pi-webapp 0.1.31-alpha.5 → 0.1.31
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/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/bin/package-pi-cli.d.mts +1 -0
- package/bin/package-pi-cli.mjs +26 -0
- package/bin/pi-webapp.mjs +4 -2
- package/dist/extension.js +27 -25
- package/dist/hosted-recovery.js +3 -1
- package/dist/hosted-worker.js +3 -1
- package/docs/sentry.md +15 -11
- package/package.json +4 -4
- package/web/dist/assets/app-CkT84si6.js +2 -0
- package/web/dist/assets/app.js +4 -2
- package/web/dist/assets/asciidoc-fDuF7HNn.js +2 -0
- package/web/dist/assets/bat-CIKKTCO7.js +2 -0
- package/web/dist/assets/bibtex-D13O2Wvh.js +2 -0
- package/web/dist/assets/c-BxgHfdNM.js +2 -0
- package/web/dist/assets/clojure-CiHGeAtp.js +2 -0
- package/web/dist/assets/cmake-DmzJtVCe.js +2 -0
- package/web/dist/assets/cpp-WTsyTmWk.js +2 -0
- package/web/dist/assets/csharp-BusYHIEz.js +2 -0
- package/web/dist/assets/css-D-q0lhfR.js +2 -0
- package/web/dist/assets/csv-DFLln536.js +2 -0
- package/web/dist/assets/dart-CafiI-9_.js +2 -0
- package/web/dist/assets/diff-Br1ISN9_.js +2 -0
- package/web/dist/assets/dotenv-CIz2XDph.js +2 -0
- package/web/dist/assets/elixir-R3IvWmT5.js +2 -0
- package/web/dist/assets/erlang-NGps-vi9.js +2 -0
- package/web/dist/assets/fish-ByHW6pZw.js +2 -0
- package/web/dist/assets/fsharp-BOBx9XdV.js +2 -0
- package/web/dist/assets/go-BeHf35-M.js +2 -0
- package/web/dist/assets/graphql-Bu7dAtew.js +2 -0
- package/web/dist/assets/groovy-zjY2ZfG0.js +2 -0
- package/web/dist/assets/haskell-CMvfT32Y.js +2 -0
- package/web/dist/assets/hcl-RKiXyu-a.js +2 -0
- package/web/dist/assets/html-COcRjUs1.js +2 -0
- package/web/dist/assets/html-derivative-C2Epw9Yg.js +2 -0
- package/web/dist/assets/http-BtEaP0_p.js +2 -0
- package/web/dist/assets/ini-DuzuNcum.js +2 -0
- package/web/dist/assets/java-K8yEFi64.js +2 -0
- package/web/dist/assets/javascript-D_ijBMSX.js +2 -0
- package/web/dist/assets/julia-yApUWuwQ.js +2 -0
- package/web/dist/assets/kotlin-BSbocnsc.js +2 -0
- package/web/dist/assets/latex-B2rh6wcV.js +2 -0
- package/web/dist/assets/less-DrDudO82.js +2 -0
- package/web/dist/assets/log-ljR8DmTe.js +2 -0
- package/web/dist/assets/lua-DyIUvKwX.js +2 -0
- package/web/dist/assets/make-D75dUjYA.js +2 -0
- package/web/dist/assets/markdown-CW047eNb.js +2 -0
- package/web/dist/assets/mdx-XsqTTZB4.js +2 -0
- package/web/dist/assets/nix-CipIrdNI.js +2 -0
- package/web/dist/assets/perl-CpGQZpC_.js +2 -0
- package/web/dist/assets/php-mDUeg8is.js +2 -0
- package/web/dist/assets/plugin-BNln-AV2.js +2 -0
- package/web/dist/assets/plugin-BR-ExlfJ.js +2 -0
- package/web/dist/assets/plugin-DO3fYZIM.js +2 -0
- package/web/dist/assets/powershell-jgDnaG9I.js +2 -0
- package/web/dist/assets/proto-BIjSd36w.js +2 -0
- package/web/dist/assets/python-D7_Ztkaq.js +2 -0
- package/web/dist/assets/r-CJzV5ecV.js +2 -0
- package/web/dist/assets/rst-D36AriVO.js +2 -0
- package/web/dist/assets/ruby-DfvZI7yF.js +2 -0
- package/web/dist/assets/rust-DSBpfBj6.js +2 -0
- package/web/dist/assets/scala-C5J7wQ_u.js +2 -0
- package/web/dist/assets/scss-Ce0Xtdy1.js +2 -0
- package/web/dist/assets/sql-B8q9hRYB.js +2 -0
- package/web/dist/assets/svelte-Bbeskamu.js +2 -0
- package/web/dist/assets/swift-BYyWkiAC.js +2 -0
- package/web/dist/assets/system-verilog-DeQRavVp.js +2 -0
- package/web/dist/assets/telemetry-client-CBQBug9X.js +2 -0
- package/web/dist/assets/toml-D4Tpftfr.js +2 -0
- package/web/dist/assets/vb-CT8kYl35.js +2 -0
- package/web/dist/assets/verilog-CRrcH6Pt.js +2 -0
- package/web/dist/assets/vue-_U3Asls5.js +2 -0
- package/web/dist/assets/xml-DCBoxqhY.js +2 -0
- package/web/dist/assets/yaml-jmrW97Mk.js +2 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import{l as t,b as ne,a as ie,r as h,j as e,f as u,g as re,h as Y,I as Q,u as U,i as ce,k as K,M as oe,m as le,o as de,F as Z,H as he,B as fe,d as ue}from"./app-CkT84si6.js";import{d as me}from"./app.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new a.Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="81d2c7dd-b1ed-4a43-bc9d-98e4bfef1a50",a._sentryDebugIdIdentifier="sentry-dbid-81d2c7dd-b1ed-4a43-bc9d-98e4bfef1a50")}catch{}})();function W(a){const s={stage:["已暂存文件。","File staged."],unstage:["已取消暂存,工作区内容保留。","File unstaged. Working content preserved."],commit:["提交成功。","Commit created."],"create-branch":["分支已创建。","Branch created."],"switch-branch":["已切换分支。","Branch switched."],state_changed:["仓库状态已变化,已刷新;请检查后重新操作。","Repository changed. Review the refreshed state before trying again."],busy:["Git 操作正在进行,请稍后刷新。","A Git operation is in progress. Refresh shortly."],agent_busy:["共用此工作树的聊天正在运行,请等待回复结束。","A chat sharing this working tree is running. Wait for it to finish."],session_changed:["聊天已切换,请返回原聊天检查仓库状态。","Chat switched. Return to the original chat to check the repository."],root_required:["提交和切换分支请在仓库根目录工作区操作。","Open the repository root workspace to commit or switch branches."],operation_in_progress:["请先在终端完成冲突处理或正在进行的 Git 操作。","Finish conflict resolution or the ongoing Git operation in the terminal first."],index_locked:["Git 锁被占用,请等待其他 Git 操作完成。","Git is locked. Wait for other Git operations to finish."],too_many_changes:["仓库改动或分支过多,请在终端操作。","Too many changes or branches. Use the terminal for this operation."],dirty_worktree:["切换分支前请先提交或处理全部改动,包括未跟踪文件。","Commit or resolve all changes, including untracked files, before switching branches."],nothing_staged:["请先暂存要提交的文件。","Stage files before committing."],identity_missing:["请先在终端配置 Git user.name 和 user.email。","Configure Git user.name and user.email in the terminal first."],invalid_branch:["分支名称无效,请检查后重试。","Invalid branch name. Check the name and try again."],branch_exists:["同名分支已存在。","A branch with this name already exists."],branch_in_use:["该分支正在其他工作树中使用。","This branch is checked out in another worktree."],no_commits:["创建分支前请先完成首次提交。","Create an initial commit before creating a branch."],invalid_path:["该文件不支持此操作,请刷新检查。","This file cannot be changed here. Refresh and check it."],invalid_message:["请填写提交说明(最多 8 KB)。","Enter a commit message (up to 8 KB)."],git_failed:["Git 操作失败。请检查仓库、身份、签名或 hooks 配置,再刷新确认。","Git operation failed. Check repository, identity, signing or hooks configuration, then refresh."],outcome_unknown:["未能确认操作结果。请刷新检查暂存区、历史和分支,确认前不要重复提交。","Operation outcome is unknown. Refresh and check staging, history and branches before repeating it."]},i=s[a]??s.git_failed;return t(...i)}async function M(a,s,i,o){return ne(await ie(`/api/workspace/git/${a}`,{method:"POST",headers:{Authorization:`Bearer ${me()}`,"Content-Type":"application/json"},body:JSON.stringify({sessionId:s,...i}),signal:o}))}const H={control:(a,s)=>M("control",a,{},s),write:(a,s)=>M("write",a,s),status:(a,s)=>M("status",a,{},s),diff:(a,s,i,o)=>M("diff",a,{path:s,area:i},o),history:(a,s,i)=>M("history",a,{cursor:s},i),commit:(a,s,i,o)=>M("commit-detail",a,{hash:s,parentIndex:i},o),commitDiff:(a,s,i,o,n)=>M("commit-diff",a,{hash:s,path:i,parentIndex:o},n)};function V(a,s,i,o=!0){const[n,_]=h.useState(null),[g,m]=h.useState(!0),[l,w]=h.useState(!1),[C,$]=h.useState(0),d=h.useCallback(()=>{m(!0),$(f=>f+1)},[]);return h.useEffect(()=>{if(!s)return;let f=!1,G=!1,v=!1;const E=new AbortController,N=async()=>{if(!(f||document.visibilityState==="hidden")){if(G){v=!0;return}G=!0,m(!0);try{const y=await a(E.signal);f||(_(p=>JSON.stringify(p)===JSON.stringify(y)?p:y),w(!1))}catch{f||w(!0)}finally{G=!1,f||(m(!1),v&&(v=!1,N()))}}};N();const j=o?window.setInterval(()=>{N()},5e3):void 0,b=()=>{N()};return window.addEventListener("focus",b),window.addEventListener("pi-workspace-git-changed",b),document.addEventListener("visibilitychange",b),()=>{f=!0,E.abort(),window.clearInterval(j),window.removeEventListener("pi-workspace-git-changed",b),window.removeEventListener("focus",b),document.removeEventListener("visibilitychange",b)}},[a,s,i,C,o]),{value:n,loading:g,error:l,refresh:d}}const pe="_panel_1ndkv_2",ge="_viewSwitch_1ndkv_3",be="_viewButton_1ndkv_4",xe="_repoBar_1ndkv_5",ke="_branchPicker_1ndkv_6",_e="_branchTrigger_1ndkv_7",je="_repoName_1ndkv_11",ye="_divergence_1ndkv_12",ve="_count_1ndkv_13",Ne="_scope_1ndkv_14",we="_changesScroll_1ndkv_15",Ce="_groupHeading_1ndkv_16",Se="_list_1ndkv_18",$e="_changeRow_1ndkv_19",Le="_change_1ndkv_15",Re="_diffScroll_1ndkv_23",Ge="_filename_1ndkv_25",Ee="_status_1ndkv_27",Be="_added_1ndkv_28",Te="_removed_1ndkv_29",De="_fileAction_1ndkv_30",Pe="_commitFooter_1ndkv_32",Ae="_commitForm_1ndkv_33",Fe="_rootHint_1ndkv_36",We="_actionRow_1ndkv_37",He="_hint_1ndkv_38",Ie="_feedback_1ndkv_38",Me="_feedbackRow_1ndkv_41",Oe="_actionButton_1ndkv_44",Ve="_branchPopover_1ndkv_46",qe="_pickerHeader_1ndkv_47",Ue="_branchSearch_1ndkv_49",Je="_field_1ndkv_49",ze="_branchList_1ndkv_50",Ke="_branchOption_1ndkv_52",Qe="_newBranch_1ndkv_56",Xe="_form_1ndkv_58",Ye="_checkbox_1ndkv_60",Ze="_diffSummary_1ndkv_64",et="_stats_1ndkv_65",tt="_diff_1ndkv_23",st="_diffLine_1ndkv_68",at="_lineNumber_1ndkv_69",nt="_lineText_1ndkv_70",it="_diffHunk_1ndkv_74",rt="_diffNotice_1ndkv_75",ct="_noNewline_1ndkv_76",ot="_reviewLayout_1ndkv_79",lt="_inlinePreview_1ndkv_81",dt="_inlineDiffToolbar_1ndkv_83",ht="_diffIdentity_1ndkv_84",ft="_diffDetails_1ndkv_85",ut="_diffArea_1ndkv_86",mt="_diffNavigation_1ndkv_88",pt="_diffPosition_1ndkv_89",gt="_diffViewport_1ndkv_91",c={panel:pe,viewSwitch:ge,viewButton:be,repoBar:xe,branchPicker:ke,branchTrigger:_e,repoName:je,divergence:ye,count:ve,scope:Ne,changesScroll:we,groupHeading:Ce,list:Se,changeRow:$e,change:Le,diffScroll:Re,filename:Ge,status:Ee,added:Be,removed:Te,fileAction:De,commitFooter:Pe,commitForm:Ae,rootHint:Fe,actionRow:We,hint:He,feedback:Ie,feedbackRow:Me,actionButton:Oe,branchPopover:Ve,pickerHeader:qe,branchSearch:Ue,field:Je,branchList:ze,branchOption:Ke,newBranch:Qe,form:Xe,checkbox:Ye,diffSummary:Ze,stats:et,diff:tt,diffLine:st,lineNumber:at,lineText:nt,diffHunk:it,diffNotice:rt,noNewline:ct,reviewLayout:ot,inlinePreview:lt,inlineDiffToolbar:dt,diffIdentity:ht,diffDetails:ft,diffArea:ut,diffNavigation:mt,diffPosition:pt,diffViewport:gt};function ee({children:a,preview:s,selectionKey:i,onClose:o}){const n=h.useRef(null),_=!!s;return h.useEffect(()=>{var g,m;_&&i&&((m=(g=n.current)==null?void 0:g.querySelector('[data-git-file][aria-pressed="true"]'))==null||m.scrollIntoView({block:"nearest",inline:"nearest"}))},[i,_]),e.jsxs("div",{className:c.reviewLayout,"data-preview":_,ref:n,children:[a,s&&e.jsx("div",{className:c.inlinePreview,role:"region","aria-label":t("差异预览","Diff preview"),onKeyDown:g=>{g.key==="Escape"&&!g.nativeEvent.isComposing&&!g.defaultPrevented&&(g.preventDefault(),o())},children:s})]})}function z(a){return a==="staged"?t("已暂存","Staged"):a==="unstaged"?t("未暂存","Unstaged"):t("未跟踪","Untracked")}function bt(a){let s=0,i=0,o=!1;const n=a.split(`
|
|
2
2
|
`);return n.at(-1)===""&&n.pop(),n.map(_=>{const g=_.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(_.startsWith("diff --git ")&&(o=!1),g&&(s=Number(g[1]),i=Number(g[2]),o=!0),o&&!g){if(_.startsWith("+"))return{kind:"add",text:_,oldLine:null,newLine:i++};if(_.startsWith("-"))return{kind:"remove",text:_,oldLine:s++,newLine:null};if(_.startsWith(" "))return{kind:"context",text:_,oldLine:s++,newLine:i++}}return{kind:"meta",text:_,oldLine:null,newLine:null}})}function xt(a){const s=[],i=[],o=[];let n=null,_="",g="",m="";for(const l of bt(a)){if(l.kind!=="meta"){l.kind==="context"?n=null:n===null&&(n=i.length,i.push(s.length)),s.push({...l,kind:l.kind,change:n});continue}const w=l.text.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@\s?(.*)$/);if(w)n=null,s.push({kind:"hunk",oldLine:Number(w[1]),newLine:Number(w[2]),text:w[3],change:null});else if(l.text==="\"){const C=s.at(-1);C&&C.kind!=="hunk"&&(C.noNewline=!0)}else l.text.startsWith("diff --git ")?(n=null,_=g=m=""):l.text.startsWith("old mode ")?_=l.text.slice(9):l.text.startsWith("new mode ")?o.push({kind:"mode",from:_,to:l.text.slice(9)}):l.text.startsWith("rename from ")?g=l.text.slice(12):l.text.startsWith("rename to ")?o.push({kind:"rename",from:g,to:l.text.slice(10)}):l.text.startsWith("copy from ")?m=l.text.slice(10):l.text.startsWith("copy to ")?o.push({kind:"copy",from:m,to:l.text.slice(8)}):l.text.startsWith("new file mode ")?o.push({kind:"added",from:"",to:l.text.slice(14)}):l.text.startsWith("deleted file mode ")&&o.push({kind:"deleted",from:l.text.slice(18),to:""})}return{lines:s,changes:i,notices:o.filter(l=>!i.length||l.kind!=="added"&&l.kind!=="deleted")}}function te({path:a,label:s,value:i,loading:o,error:n,refresh:_,onClose:g}){const m=(i==null?void 0:i.kind)==="text"?i.patch:"",l=h.useMemo(()=>xt(m),[m,a]),{lines:w,changes:C,notices:$}=l,d=h.useRef(null),[f,G]=h.useState(null),v=(f==null?void 0:f.preview)===l?f.index:-1;h.useEffect(()=>{var p;(p=d.current)==null||p.scrollTo({top:0,left:0})},[l]);const E=p=>{if(o||n||p<0||p>=C.length)return;const R=d.current,A=R==null?void 0:R.querySelector(`[data-change="${p}"][data-change-start="true"]`);!R||!A||(R.scrollTo({top:R.scrollTop+A.getBoundingClientRect().top-R.getBoundingClientRect().top,left:R.scrollLeft}),G({preview:l,index:p}))},N=w.filter(p=>p.kind==="add").length,j=w.filter(p=>p.kind==="remove").length,b=(i==null?void 0:i.kind)==="text"&&e.jsxs("span",{className:c.stats,children:[e.jsxs("span",{className:c.added,children:["+",N]}),e.jsxs("span",{className:c.removed,children:["−",j]})]}),y={empty:t("此文件在所选范围内没有文本差异,或已不在改动列表中。","No text differences in this scope, or this file is no longer changed."),binary:t("二进制文件不支持文本差异预览。","Text diff is unavailable for binary files."),"too-large":t("差异过大,最多显示 512 KB / 10000 行。","Diff exceeds the preview limit of 512 KB / 10000 lines."),unsupported:t("此文件类型不支持差异预览。","Diff is unavailable for this file type."),conflict:t("此文件存在未解决的合并冲突,请在工作区文件或终端中检查。","This file has unresolved merge conflicts. Inspect it in workspace files or the terminal."),submodule:t("子模块已发生变化,请在子模块工作区中查看具体差异。","Submodule changed. Open its workspace to inspect the changes.")};return e.jsxs("div",{className:u.body,children:[e.jsxs("div",{className:g?c.inlineDiffToolbar:u.toolbar,children:[g?e.jsxs("div",{className:c.diffIdentity,children:[e.jsx("span",{className:u.path,title:a,children:a}),e.jsxs("div",{className:c.diffDetails,children:[e.jsx("span",{className:c.diffArea,title:s,children:s}),b]})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:u.path,title:a,children:a}),e.jsx("span",{className:u.readonly,children:t("只读","Read only")})]}),e.jsxs("div",{className:c.diffNavigation,role:"group","aria-label":t("改动跳转","Change navigation"),children:[e.jsx("button",{type:"button",className:u.iconButton,"aria-label":t("上一处改动","Previous change"),title:t("上一处改动","Previous change"),disabled:o||n||v<=0,onClick:()=>E(v-1),children:e.jsx(re,{})}),e.jsxs("span",{className:c.diffPosition,role:"status","aria-label":t("改动位置","Change position"),"aria-live":"polite","aria-atomic":"true",title:t(`第 ${v+1} / ${C.length} 处改动`,`Change ${v+1} of ${C.length}`),children:[v+1,"/",C.length]}),e.jsx("button",{type:"button",className:u.iconButton,"aria-label":t("下一处改动","Next change"),title:t("下一处改动","Next change"),disabled:o||n||v+1>=C.length,onClick:()=>E(v+1),children:e.jsx(Y,{})})]}),e.jsx("button",{type:"button",className:u.iconButton,"aria-label":t("刷新差异","Refresh diff"),title:t("刷新差异","Refresh diff"),onClick:_,children:e.jsx(Q,{})}),g&&e.jsx("button",{type:"button",className:u.iconButton,"aria-label":t("关闭差异预览","Close diff preview"),title:t("关闭差异预览 · Esc","Close diff preview · Esc"),onClick:g,children:"×"})]}),!g&&e.jsxs("div",{className:c.diffSummary,children:[e.jsx("span",{children:s}),b]}),n&&e.jsxs("div",{className:u.state,role:"status",children:[t("差异读取失败,请重试。","Could not read this diff. Try again.")," ",e.jsx("button",{type:"button",className:u.textButton,onClick:_,children:t("重试","Retry")})]}),e.jsxs("div",{className:`${u.preview} ${c.diffViewport}`,"aria-busy":o,children:[!i&&!n&&e.jsx("p",{className:u.state,role:"status",children:t("正在读取差异…","Reading diff…")}),i&&i.kind!=="text"&&e.jsx("p",{className:u.state,role:"status",children:y[i.kind]}),(i==null?void 0:i.kind)==="text"&&e.jsxs("div",{ref:d,className:c.diffScroll,tabIndex:0,role:"region","aria-label":t("文件差异","File diff"),children:[$.map((p,R)=>e.jsx("p",{className:c.diffNotice,children:kt(p)},R)),!w.length&&!$.length&&e.jsx("p",{className:u.state,children:y.empty}),e.jsx("pre",{className:c.diff,children:e.jsx("code",{children:w.map((p,R)=>p.kind==="hunk"?e.jsxs("span",{className:c.diffHunk,"data-kind":"hunk",children:[e.jsx("span",{"aria-hidden":"true",children:"···"}),e.jsxs("span",{children:[t(`行 ${p.oldLine} / ${p.newLine}`,`Lines ${p.oldLine} / ${p.newLine}`),p.text&&` · ${p.text}`]})]},R):e.jsxs("span",{className:c.diffLine,"data-kind":p.kind,"data-change":p.change??void 0,"data-change-start":p.change!==null&&C[p.change]===R?"true":void 0,"data-active":p.change!==null&&v===p.change?"true":void 0,children:[e.jsx("span",{className:c.lineNumber,"aria-hidden":"true",children:p.oldLine}),e.jsx("span",{className:c.lineNumber,"aria-hidden":"true",children:p.newLine}),e.jsxs("span",{className:c.lineText,children:[p.text||" ",p.noNewline&&e.jsx("span",{className:c.noNewline,title:t("文件末尾无换行","No newline at end of file"),"aria-label":t("文件末尾无换行","No newline at end of file"),children:"↵"})]})]},R))})})]})]})]})}function kt(a){switch(a.kind){case"mode":return t(`文件权限:${a.from} → ${a.to}`,`File mode: ${a.from} → ${a.to}`);case"rename":return t(`重命名:${a.from} → ${a.to}`,`Renamed: ${a.from} → ${a.to}`);case"copy":return t(`复制:${a.from} → ${a.to}`,`Copied: ${a.from} → ${a.to}`);case"added":return t("新增空文件","Empty file added");case"deleted":return t("删除空文件","Empty file deleted")}}const se=h.memo(function({sessionId:s,path:i,area:o,visible:n,idle:_,onClose:g}){U();const m=h.useCallback(w=>H.diff(s,i,o,w),[s,i,o]),l=V(m,n,_);return e.jsx(te,{path:i,label:z(o),onClose:g,...l})});function _t(a,s){if(!a)return null;const i=s.find(n=>n.path===a.path);if(!i)return null;const o=i.conflict?["unstaged"]:i.untracked?["untracked"]:[...i.worktree!=="."?["unstaged"]:[],...i.index!=="."?["staged"]:[]];return o.includes(a.area)?a:o[0]?{path:a.path,area:o[0]}:null}function jt({branch:a,control:s,disabled:i,model:o,open:n,onOpenChange:_,onDraftChange:g,onWrite:m}){const l=h.useRef(null),w=h.useRef(null),C=h.useRef(null),[$,d]=h.useState(!1),[f,G]=h.useState(!1),[v,E]=h.useState("");ce(w,n,()=>_(!1)),h.useEffect(()=>{if(!n){d(!1),E(""),G(!1);return}const y=p=>{var R;p.target instanceof Node&&!((R=l.current)!=null&&R.contains(p.target))&&_(!1)};return document.addEventListener("pointerdown",y),()=>document.removeEventListener("pointerdown",y)},[n,_]),h.useEffect(()=>{var y;$&&((y=C.current)==null||y.focus())},[$]);const N=s!=null&&s.scope?"root_required":s!=null&&s.dirty?"dirty_worktree":null,j=(s==null?void 0:s.branches.filter(y=>y.name.toLocaleLowerCase().includes(v.toLocaleLowerCase())))??[],b=async(y,p)=>{G(!0),await m(y,p)&&_(!1)};return e.jsxs("div",{ref:l,className:c.branchPicker,children:[e.jsxs("button",{type:"button",className:c.branchTrigger,disabled:!s,"aria-label":t("管理分支","Manage branches"),"aria-haspopup":"dialog","aria-expanded":n,title:a??t("分离 HEAD","Detached HEAD"),onClick:()=>_(!n),children:[e.jsx(K,{}),e.jsx("span",{children:a??t("分离 HEAD","Detached HEAD")}),e.jsx(Y,{})]}),n&&e.jsxs(oe,{ref:w,className:c.branchPopover,compact:!0,role:"dialog","aria-modal":"true","aria-label":t("管理分支","Manage branches"),children:[e.jsxs("div",{className:c.pickerHeader,children:[e.jsx("span",{children:$?t("新建分支","New branch"):t("本地分支","Local branches")}),e.jsx("button",{type:"button",className:u.iconButton,"aria-label":t("关闭分支面板","Close branches"),onClick:()=>_(!1),children:"×"})]}),$?e.jsxs("form",{className:c.form,"aria-label":t("创建分支","Create branch"),onSubmit:y=>{y.preventDefault(),!i&&o.branch.trim()&&(s!=null&&s.head)&&!(o.checkout&&N)&&b("create-branch",{branch:o.branch,checkout:o.checkout})},children:[e.jsxs("label",{className:c.field,children:[t("分支名称","Branch name"),e.jsx("input",{ref:C,"aria-label":t("新分支名称","New branch name"),maxLength:256,value:o.branch,disabled:o.pending,placeholder:"feature/name",onChange:y=>{o.branch=y.target.value,g()}})]}),e.jsxs("label",{className:c.checkbox,children:[e.jsx("input",{type:"checkbox",checked:o.checkout,disabled:o.pending,onChange:y=>{o.checkout=y.target.checked,g()}}),t("创建后切换","Switch after creating")]}),o.checkout&&N&&e.jsx("p",{className:c.hint,children:W(N)}),e.jsxs("div",{className:c.actionRow,children:[e.jsx("button",{type:"button",className:u.textButton,onClick:()=>d(!1),children:t("返回","Back")}),e.jsx("button",{className:c.actionButton,type:"submit",disabled:i||!o.branch.trim()||!(s!=null&&s.head)||o.checkout&&!!N,children:t("创建分支","Create branch")})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("input",{className:c.branchSearch,type:"search","data-modal-autofocus":!0,"aria-label":t("搜索分支","Search branches"),value:v,placeholder:t("搜索分支…","Search branches…"),onChange:y=>E(y.target.value)}),e.jsxs("div",{className:c.branchList,role:"group","aria-label":t("本地分支","Local branches"),children:[j.map(y=>e.jsxs("button",{type:"button",className:c.branchOption,title:y.name,disabled:i||!!N||y.current||y.occupied||!(s!=null&&s.head),"aria-label":t(`切换到分支:${y.name}`,`Switch to branch: ${y.name}`),onClick:()=>{b("switch-branch",{branch:y.name})},children:[e.jsx(K,{}),e.jsx("span",{children:y.name}),(y.current||y.occupied)&&e.jsx("small",{children:y.current?t("当前","Current"):t("其他工作树","Other worktree")})]},y.name)),j.length===0&&e.jsx("p",{className:c.hint,children:t("没有匹配的分支。","No matching branches.")})]}),N&&e.jsx("p",{className:c.hint,children:W(N)}),e.jsxs("button",{type:"button",className:c.newBranch,disabled:o.pending||!(s!=null&&s.head),"aria-label":t("新建分支","New branch"),onClick:()=>d(!0),children:[e.jsx(le,{}),t("新建分支…","New branch…")]})]}),!(s!=null&&s.head)&&e.jsx("p",{className:c.hint,children:W("no_commits")}),o.pending&&e.jsx("p",{className:c.hint,role:"status",children:t("正在执行…","Running…")}),(s==null?void 0:s.blocked)&&e.jsx("p",{className:c.hint,children:W(s.blocked)}),f&&o.outcome&&!o.outcome.ok&&e.jsx("p",{className:c.feedback,"data-error":"true",role:"status",children:W(o.outcome.reason)})]})]})}function yt(a){let s=[],i=0,o=1;const n=[];for(const _ of a){const g=s.findIndex(d=>d.hash===_.hash),m=g<0?s.length:g,l=g<0?i++%4:s[m].color,w=[...s];g>=0&&s.splice(g,1);let C=Math.min(m,s.length);const $=[...new Set(_.parents)];for(const[d,f]of $.entries())s.some(G=>G.hash===f)||s.splice(C++,0,{hash:f,color:d===0?l:i++%4});n.push({lane:m,color:l,incoming:g>=0,rails:w.flatMap((d,f)=>d.hash===_.hash?[]:[{from:f,to:s.findIndex(G=>G.hash===d.hash),color:d.color}]),parents:$.map(d=>{const f=s.findIndex(G=>G.hash===d);return{hash:d,from:m,to:f,color:s[f].color}})}),o=Math.max(o,m+1,w.length,s.length)}return{rows:n,width:o*16+16}}const vt="_history_1fyyf_1",Nt="_historyToolbar_1fyyf_2",wt="_graphScroll_1fyyf_3",Ct="_historyList_1fyyf_4",St="_commitRow_1fyyf_5",$t="_loadMore_1fyyf_7",Lt="_parentLink_1fyyf_7",Rt="_graph_1fyyf_3",Gt="_commitCopy_1fyyf_15",Et="_subject_1fyyf_16",Bt="_refLine_1fyyf_17",Tt="_ref_1fyyf_17",Dt="_merge_1fyyf_20",Pt="_commitMeta_1fyyf_21",At="_detail_1fyyf_27",Ft="_message_1fyyf_33",Wt="_parentList_1fyyf_35",Ht="_parentSelect_1fyyf_36",It="_fileStats_1fyyf_38",B={history:vt,historyToolbar:Nt,graphScroll:wt,historyList:Ct,commitRow:St,loadMore:$t,parentLink:Lt,graph:Rt,commitCopy:Gt,subject:Et,refLine:Bt,ref:Tt,merge:Dt,commitMeta:Pt,detail:At,message:Ft,parentList:Wt,parentSelect:Ht,fileStats:It},Mt=h.memo(function({sessionId:s,visible:i,idle:o,model:n,onCommit:_}){const g=U(),m=h.useCallback(x=>H.history(s,void 0,x),[s]),{value:l,loading:w,error:C,refresh:$}=V(m,i,o),[d,f]=h.useState(n.history),[G,v]=h.useState(n.selected),[E,N]=h.useState(!1),[j,b]=h.useState(!1),y=()=>{b(!1),$()},p=h.useRef(null);h.useEffect(()=>{var x,D;l&&(((x=n.history)==null?void 0:x.snapshot)!==l.snapshot||!n.history.commits.length)&&((D=p.current)==null||D.abort(),N(!1),b(!1),n.history=l,f(l))},[l,n]),h.useEffect(()=>{var x;return i||((x=p.current)==null||x.abort(),N(!1)),()=>{var D;return(D=p.current)==null?void 0:D.abort()}},[i]);const R=async()=>{var k;const x=n.history;if(!(x!=null&&x.nextCursor)||E)return;const D=new AbortController;p.current=D,N(!0),b(!1);try{const F=await H.history(s,x.nextCursor,D.signal);if(D.signal.aborted||((k=n.history)==null?void 0:k.snapshot)!==F.snapshot||n.history.nextCursor!==x.nextCursor)return;const I=new Set(x.commits.map(L=>L.hash)),O={...F,commits:[...x.commits,...F.commits.filter(L=>!I.has(L.hash))]};n.history=O,f(O)}catch{D.signal.aborted||b(!0)}finally{D.signal.aborted||N(!1)}},A=h.useMemo(()=>yt((d==null?void 0:d.commits)??[]),[d==null?void 0:d.commits]),T=x=>x*16+12,J=x=>{n.selected=x,v(x),_(x)},q={"--git-graph-width":`${A.width}px`};return e.jsxs("div",{className:B.history,"aria-busy":w||E,children:[e.jsxs("div",{className:B.historyToolbar,children:[e.jsx("span",{children:t("提交历史与分支图","Commit history & graph")}),e.jsx("button",{className:u.textButton,type:"button",onClick:y,"aria-label":t("刷新提交历史","Refresh history"),children:t("刷新","Refresh")})]}),(d==null?void 0:d.scope)&&e.jsxs("p",{className:u.state,children:[t("展示仓库提交关系;文件差异仅限当前目录:","Repository history; file diffs are limited to: "),d.scope]}),(C||j)&&e.jsxs("p",{className:u.state,role:"status",children:[t("历史读取失败或分支已变化,请刷新历史。","Could not read history, or refs changed. Refresh history.")," ",e.jsx("button",{className:u.textButton,type:"button",onClick:y,children:t("重试","Retry")})]}),!d&&!C&&e.jsx("p",{className:u.state,role:"status",children:t("正在读取历史…","Reading history…")}),(d==null?void 0:d.kind)==="not-repository"&&e.jsx("p",{className:u.state,children:t("当前工作区不在 Git 仓库中。","This workspace is not in a Git repository.")}),(d==null?void 0:d.kind)==="unavailable"&&e.jsx("p",{className:u.state,children:t("Git 不可用。","Git is unavailable.")}),(d==null?void 0:d.kind)==="repository"&&d.commits.length===0&&e.jsx("p",{className:u.state,role:"status",children:t("仓库尚无提交。","This repository has no commits yet.")}),e.jsx("div",{className:B.graphScroll,children:e.jsx("ol",{className:B.historyList,style:q,"aria-label":t("提交历史","Commit history"),children:d==null?void 0:d.commits.map((x,D)=>{const k=A.rows[D],F=d.refs.filter(L=>L.hash===x.hash),I=new Date(x.authoredAt),O=Number.isNaN(I.getTime())?x.authoredAt:I.toLocaleDateString(g==="zh"?"zh-CN":"en-US");return e.jsx("li",{children:e.jsxs("button",{type:"button",className:B.commitRow,"data-commit":x.hash,"aria-current":G===x.hash?"true":void 0,"aria-label":t(`查看提交 ${x.hash.slice(0,7)}:${x.subject}`,`View commit ${x.hash.slice(0,7)}: ${x.subject}`),onClick:()=>J(x.hash),children:[e.jsxs("svg",{width:A.width,height:84,className:B.graph,"aria-hidden":"true","data-git-graph-row":x.hash,children:[k.rails.map((L,r)=>e.jsx("path",{"data-color":L.color,d:`M${T(L.from)} 0 L${T(L.from)} 42 C${T(L.from)} 64 ${T(L.to)} 64 ${T(L.to)} 84`},`r${r}`)),k.incoming&&e.jsx("path",{"data-color":k.color,d:`M${T(k.lane)} 0 V42`}),k.parents.map(L=>e.jsx("path",{"data-parent":L.hash,"data-color":L.color,d:`M${T(k.lane)} 42 C${T(k.lane)} 64 ${T(L.to)} 64 ${T(L.to)} 84`},L.hash)),e.jsx("circle",{"data-color":k.color,cx:T(k.lane),cy:42,r:4})]}),e.jsxs("span",{className:B.commitCopy,children:[e.jsx("span",{className:B.subject,children:x.subject||t("(无提交说明)","(No subject)")}),e.jsxs("span",{className:B.refLine,title:F.map(L=>`${L.kind}: ${L.name}`).join(" · "),children:[d.head===x.hash&&e.jsx("span",{className:B.ref,"data-kind":"head",children:"HEAD"}),F.map(L=>e.jsxs("span",{className:B.ref,"data-kind":L.kind,children:[L.kind==="tag"?`${t("标签","tag")}: `:L.kind==="remote"?`${t("远端","remote")}: `:"",L.name]},`${L.kind}/${L.name}`)),x.parents.length>1&&e.jsx("span",{className:B.merge,children:t("合并","Merge")})]}),e.jsxs("span",{className:B.commitMeta,children:[e.jsx("code",{children:x.hash.slice(0,7)}),e.jsx("span",{children:x.author}),e.jsx("time",{dateTime:x.authoredAt,title:x.authoredAt,children:O})]})]})]})},x.hash)})})}),(d==null?void 0:d.nextCursor)&&e.jsx("button",{type:"button",className:B.loadMore,disabled:E||w||d.snapshot!==(l==null?void 0:l.snapshot),onClick:()=>{R()},children:E?t("正在加载…","Loading…"):t("加载更多提交","Load more commits")})]})});function Ot(a){return{A:t("新增","Added"),M:t("修改","Modified"),D:t("删除","Deleted"),R:t("重命名","Renamed"),C:t("复制","Copied"),T:t("类型变化","Type changed"),U:t("冲突","Conflict"),"?":t("未跟踪","Untracked")}[a]??a}const Vt=h.memo(function({sessionId:s,visible:i,idle:o,model:n,onCommit:_}){U();const g=h.useRef(null),[m,l]=h.useState(n.selection),w=h.useCallback(r=>{n.selection=r,l(r)},[n]),C=h.useCallback(()=>{var S;const r=(S=g.current)==null?void 0:S.querySelector('[data-git-file][aria-pressed="true"]');w(null),requestAnimationFrame(()=>r==null?void 0:r.focus({preventScroll:!0}))},[w]),[$,d]=h.useState(n.view),f=h.useRef(null);h.useEffect(()=>{if(!i)return;const r=de(document);return f.current=r,()=>{r.dispose(),f.current=null}},[i]);const G=h.useCallback(r=>H.status(s,r),[s]),{value:v,loading:E,error:N}=V(G,i&&$==="changes",o),j=h.useCallback(r=>H.control(s,r),[s]),{value:b,loading:y,error:p}=V(j,i&&$==="changes",o),[R,A]=h.useState(!1);h.useEffect(()=>{(!i||$!=="changes")&&A(!1)},[i,$]);const[,T]=h.useReducer(r=>r+1,0);h.useEffect(()=>{const r=()=>T();return window.addEventListener("pi-workspace-git-changed",r),()=>window.removeEventListener("pi-workspace-git-changed",r)},[]);const J=()=>window.dispatchEvent(new Event("pi-workspace-git-changed")),q=o?b==null?void 0:b.blocked:"agent_busy",x=n.pending||!(b!=null&&b.version)||y||p||N||!!q,D=async(r,S={})=>{if(x||n.pending||!b)return!1;n.pending=!0,n.outcome=null,T();try{return await H.write(s,{action:r,expected:b.version,...S}),n.outcome={ok:!0,reason:r},r==="commit"&&n.message===S.message&&(n.message=""),r==="create-branch"&&n.branch===S.branch&&(n.branch=""),!0}catch(P){return n.outcome={ok:!1,reason:P instanceof he?P.reason??(P.status<500?"git_failed":"outcome_unknown"):"outcome_unknown"},!1}finally{n.pending=!1,window.dispatchEvent(new Event("pi-workspace-git-changed"))}},k=(v==null?void 0:v.kind)==="repository"?v:null;h.useEffect(()=>{if(!i||$!=="changes"||E||N||!v)return;const r=_t(n.selection,v.kind==="repository"?v.entries:[]);r!==n.selection&&(n.selection=r,l(r))},[v,E,N,i,$,n]);const F=k?[{title:t("冲突","Conflicts"),area:"unstaged",changes:k.entries.filter(r=>r.conflict),conflict:!0},{title:z("staged"),area:"staged",changes:k.entries.filter(r=>!r.conflict&&!r.untracked&&r.index!==".")},{title:z("unstaged"),area:"unstaged",changes:k.entries.filter(r=>!r.conflict&&!r.untracked&&r.worktree!==".")},{title:z("untracked"),area:"untracked",changes:k.entries.filter(r=>r.untracked)}]:[],I=!x&&!(k!=null&&k.scope)&&!!(b!=null&&b.staged)&&!!n.message.trim(),O=(k==null?void 0:k.root.split(/[\\/]/).at(-1))??"",L=k?[k.root,k.head,k.upstream??t("未设置上游分支","No upstream branch")].filter(Boolean).join(`
|
|
3
3
|
`):"";return e.jsxs("div",{ref:g,className:`${u.body} ${c.panel}`,children:[e.jsxs("div",{className:u.toolbar,children:[e.jsx("div",{className:c.viewSwitch,role:"group","aria-label":t("Git 视图","Git view"),children:["changes","history"].map(r=>e.jsx("button",{type:"button",className:`${u.textButton} ${c.viewButton}`,"aria-pressed":$===r,onClick:()=>{n.view=r,d(r)},children:r==="changes"?t("改动","Changes"):t("历史","History")},r))}),$==="history"&&e.jsx("span",{className:u.readonly,children:t("只读","Read only")}),$==="changes"&&e.jsx("button",{type:"button",className:u.iconButton,"aria-label":t("刷新 Git 状态","Refresh Git status"),title:t("刷新 Git 状态","Refresh Git status"),onClick:J,children:e.jsx(Q,{})})]}),$==="history"?e.jsx("div",{className:u.scroll,children:e.jsx(Mt,{sessionId:s,visible:i,idle:o,model:n,onCommit:_})}):e.jsxs(e.Fragment,{children:[k&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:c.repoBar,children:[e.jsx(jt,{branch:k.branch,control:b,disabled:x,model:n,open:R,onOpenChange:A,onDraftChange:T,onWrite:D}),e.jsx("span",{className:c.repoName,title:L,children:O}),k.upstream&&k.ahead!==null&&e.jsxs("span",{className:c.divergence,title:t("上游差异(本地记录)","Upstream divergence (local refs)"),children:["↑",k.ahead," ↓",k.behind]}),e.jsxs("span",{className:c.count,title:t("改动文件","Changed files"),children:[k.entries.length,k.truncated?"+":""]})]}),k.scope&&e.jsxs("div",{className:c.scope,title:k.scope,children:[t("当前目录:","Directory: "),k.scope]})]}),e.jsx(ee,{selectionKey:m?JSON.stringify(m):null,onClose:C,preview:m&&k?e.jsx(se,{sessionId:s,path:m.path,area:m.area,visible:i&&$==="changes",idle:o,onClose:C},JSON.stringify([s,m])):null,children:e.jsxs("div",{className:`${u.scroll} ${c.changesScroll}`,"aria-busy":E,role:"region","aria-label":t("改动文件","Changed files"),children:[N&&e.jsxs("div",{className:u.state,role:"status",children:[t("Git 读取失败,请检查仓库或重试。","Could not read Git. Check the repository or try again.")," ",e.jsx("button",{type:"button",className:u.textButton,onClick:J,children:t("重试","Retry")})]}),!v&&!N&&e.jsx("p",{className:u.state,role:"status",children:t("正在读取仓库…","Reading repository…")}),(v==null?void 0:v.kind)==="not-repository"&&e.jsx("p",{className:u.state,role:"status",children:t("当前工作区不在 Git 仓库中。","This workspace is not in a Git repository.")}),(v==null?void 0:v.kind)==="unavailable"&&e.jsx("p",{className:u.state,role:"status",children:t("Git 不可用,请在 Pi 所在机器安装 Git。","Git is unavailable. Install Git on the machine running Pi.")}),k&&e.jsxs(e.Fragment,{children:[k.entries.length===0&&e.jsx("p",{className:u.state,role:"status",children:k.scope?t("当前目录没有未提交改动。","No uncommitted changes in this directory."):t("工作区干净,没有未提交改动。","Working tree clean. No uncommitted changes.")}),F.filter(r=>r.changes.length>0).map(r=>e.jsxs("section",{"aria-label":r.title,children:[e.jsxs("h3",{className:c.groupHeading,children:[r.title,e.jsx("span",{children:r.changes.length})]}),e.jsx("ul",{className:c.list,children:r.changes.map(S=>{const P=r.conflict?"U":r.area==="staged"?S.index:S.worktree;return e.jsxs("li",{className:c.changeRow,children:[e.jsxs("button",{type:"button",className:c.change,title:S.originalPath?`${S.originalPath} → ${S.path}`:S.path,"data-git-file":JSON.stringify([r.area,S.path]),"aria-pressed":(m==null?void 0:m.path)===S.path&&m.area===r.area,onClick:()=>w({path:S.path,area:r.area}),"aria-label":`${S.path}, ${Ot(P)}`,children:[e.jsx(Z,{path:S.path,size:16}),e.jsxs("span",{className:c.filename,children:[S.path,S.originalPath&&e.jsxs("small",{children:[S.originalPath," → ",S.path]})]}),e.jsx("span",{className:c.status,"data-status":P,"aria-hidden":"true",children:P})]}),!r.conflict&&!S.submodule&&e.jsx("button",{type:"button",className:c.fileAction,disabled:x,"aria-label":r.area==="staged"?t(`取消暂存 ${S.path}`,`Unstage ${S.path}`):t(`暂存 ${S.path}`,`Stage ${S.path}`),title:r.area==="staged"?t("取消暂存","Unstage"):t("暂存","Stage"),onClick:()=>{D(r.area==="staged"?"unstage":"stage",{path:S.path})},children:r.area==="staged"?"−":"+"})]},S.path)})})]},r.title)),k.truncated&&e.jsx("p",{className:u.state,children:t("仅显示前 1000 个改动文件,请缩小工作区范围。","Showing the first 1000 changed files. Open a smaller workspace to see more.")})]})]})}),k&&e.jsxs("div",{className:c.commitFooter,"aria-busy":n.pending,children:[q&&e.jsx("p",{className:c.hint,role:"status",children:W(q)}),p&&e.jsx("p",{className:c.hint,role:"status",children:t("操作状态读取失败,请刷新。","Could not read operation state. Refresh to retry.")}),n.pending&&!R&&e.jsx("p",{className:c.hint,role:"status",children:t("正在执行 Git 操作…","Running Git operation…")}),n.outcome&&!R&&e.jsxs("div",{className:c.feedbackRow,children:[e.jsx("p",{className:c.feedback,"data-error":!n.outcome.ok,role:"status",children:W(n.outcome.reason)}),e.jsx("button",{type:"button",className:u.iconButton,"aria-label":t("关闭 Git 提示","Dismiss Git message"),onClick:()=>{n.outcome=null,T()},children:"×"})]}),k.scope?e.jsx("p",{className:c.rootHint,title:W("root_required"),children:t("提交请打开仓库根目录","Commit from repository root")}):e.jsxs("form",{className:c.commitForm,"aria-label":t("创建提交","Create commit"),onSubmit:r=>{r.preventDefault(),I&&D("commit",{message:n.message})},children:[e.jsx("textarea",{"aria-label":t("提交说明","Commit message"),rows:1,maxLength:8192,disabled:n.pending,value:n.message,placeholder:t("提交说明…","Commit message…"),onChange:r=>{n.message=r.target.value,T()},onKeyDown:r=>{var P,X;const S=((P=f.current)==null?void 0:P.guards(r.nativeEvent))??r.nativeEvent.isComposing;r.key==="Enter"&&(r.metaKey||r.ctrlKey)&&!S&&(r.preventDefault(),(X=r.currentTarget.form)==null||X.requestSubmit())}}),e.jsxs("div",{className:c.actionRow,children:[e.jsx("span",{className:c.hint,children:b!=null&&b.staged?t(`仅暂存区 · ${b.staged} 个文件`,`Staged only · ${b.staged} files`):t("先暂存要提交的文件","Stage files to commit")}),e.jsx("button",{className:c.actionButton,type:"submit",disabled:!I,title:t("仅提交暂存区 · ⌘/Ctrl+Enter","Commit staged files · ⌘/Ctrl+Enter"),children:t("提交","Commit")})]})]})]})]})]})}),qt=h.memo(function({sessionId:s,hash:i,visible:o,idle:n,onCommit:_}){U();const g=h.useRef(null),[m,l]=h.useState(null),w=()=>{var b;const j=(b=g.current)==null?void 0:b.querySelector('[data-git-file][aria-pressed="true"]');l(null),requestAnimationFrame(()=>j==null?void 0:j.focus({preventScroll:!0}))},[C,$]=h.useState(0),d=h.useCallback(j=>H.commit(s,i,C,j),[s,i,C]),{value:f,loading:G,error:v,refresh:E}=V(d,o,n,!1),N=(f==null?void 0:f.parentIndex)===C?f:null;return h.useEffect(()=>{N&&m&&!N.files.some(j=>j.path===m)&&l(null)},[N,m]),e.jsxs("div",{className:`${u.body} ${c.panel}`,ref:g,children:[e.jsxs("div",{className:u.toolbar,children:[e.jsxs("span",{className:u.path,children:[t("提交详情","Commit details")," · ",i.slice(0,7)]}),e.jsx("span",{className:u.readonly,children:t("只读","Read only")}),e.jsx("button",{className:u.iconButton,type:"button",onClick:E,"aria-label":t("刷新提交详情","Refresh commit"),children:e.jsx(Q,{})})]}),e.jsx(ee,{selectionKey:m,onClose:w,preview:m&&N?e.jsx(ae,{sessionId:s,hash:i,path:m,parentIndex:C,visible:o,idle:n,onClose:w},JSON.stringify([s,i,C,m])):null,children:e.jsxs("div",{className:u.scroll,"aria-busy":G,children:[v&&e.jsxs("p",{className:u.state,role:"status",children:[t("提交读取失败,可能已不可达。","Could not read this commit. It may no longer be reachable.")," ",e.jsx("button",{className:u.textButton,type:"button",onClick:E,children:t("重试","Retry")})]}),!f&&!v&&e.jsx("p",{className:u.state,role:"status",children:t("正在读取提交…","Reading commit…")}),f&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:B.detail,children:[e.jsx("h2",{children:f.subject||t("(无提交说明)","(No subject)")}),e.jsxs("dl",{children:[e.jsx("dt",{children:t("提交","Commit")}),e.jsx("dd",{children:e.jsx("code",{children:f.hash})}),e.jsx("dt",{children:t("作者","Author")}),e.jsxs("dd",{children:[f.author," <",f.email,">"]}),e.jsx("dt",{children:t("创作时间","Authored")}),e.jsx("dd",{children:e.jsx("time",{dateTime:f.authoredAt,children:f.authoredAt})}),e.jsx("dt",{children:t("提交者","Committer")}),e.jsxs("dd",{children:[f.committer," <",f.committerEmail,">"]}),e.jsx("dt",{children:t("提交时间","Committed")}),e.jsx("dd",{children:e.jsx("time",{dateTime:f.committedAt,children:f.committedAt})}),e.jsx("dt",{children:t("父提交","Parents")}),e.jsx("dd",{className:B.parentList,children:f.parents.length?f.parents.map((j,b)=>e.jsx("button",{type:"button",className:B.parentLink,onClick:()=>_(j),"aria-label":t(`打开父提交 ${b+1}:${j.slice(0,7)}`,`Open parent ${b+1}: ${j.slice(0,7)}`),children:e.jsx("code",{children:j.slice(0,7)})},j)):t("根提交","Root commit")})]}),e.jsx("div",{className:B.message,"aria-label":t("完整提交说明","Full commit message"),children:f.message}),f.scope&&e.jsxs("p",{className:u.state,children:[t("文件改动仅限:","File changes limited to: "),f.scope]})]}),f.parents.length>1?e.jsxs("label",{className:B.parentSelect,children:[t("比较基准","Compare against"),e.jsx("select",{"aria-label":t("比较父提交","Compare parent"),value:C,onChange:j=>{l(null),$(Number(j.target.value))},children:f.parents.map((j,b)=>e.jsxs("option",{value:b,children:[t(`父提交 ${b+1}`,`Parent ${b+1}`)," · ",j.slice(0,7)]},`${b}/${j}`))})]}):e.jsx("p",{className:u.state,children:f.parents.length?t("与父提交比较","Compared with parent"):t("与空目录比较","Compared with empty tree")}),!N&&!v&&e.jsx("p",{className:u.state,role:"status",children:t("正在读取文件改动…","Reading changed files…")}),N&&e.jsxs("section",{"aria-label":t("提交文件","Commit files"),children:[e.jsxs("h3",{className:c.groupHeading,children:[t("改动文件","Changed files"),e.jsxs("span",{children:[N.files.length,N.truncated?"+":""]})]}),N.files.length===0&&e.jsx("p",{className:u.state,children:t("所选比较在当前目录中没有文件改动。","No file changes in this directory for this comparison.")}),e.jsx("ul",{className:c.list,children:N.files.map(j=>e.jsx("li",{children:e.jsxs("button",{className:c.change,type:"button","data-git-file":j.path,"aria-pressed":m===j.path,onClick:()=>l(j.path),"aria-label":t(`查看提交差异:${j.path}`,`View commit diff: ${j.path}`),children:[e.jsx(Z,{path:j.path,size:16}),e.jsx("span",{className:c.filename,children:j.path}),e.jsx("span",{className:B.fileStats,children:j.additions===null?t("二进制","Binary"):e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:c.added,children:["+",j.additions]}),e.jsxs("span",{className:c.removed,children:["−",j.deletions]})]})}),e.jsx("span",{className:c.status,"data-status":j.status,children:j.status})]})},j.path))}),N.truncated&&e.jsx("p",{className:u.state,children:t("仅显示前 1000 个文件。","Showing the first 1000 files.")})]})]})]})})]})}),ae=h.memo(function({sessionId:s,hash:i,path:o,parentIndex:n,visible:_,idle:g,onClose:m}){U();const l=h.useCallback($=>H.commitDiff(s,i,o,n,$),[s,i,o,n]),w=V(l,_,g,!1),C=w.value?w.value.parentHash?`${t("父提交","Parent")} ${w.value.parentHash.slice(0,7)}`:t("空目录","Empty tree"):"";return e.jsx(te,{onClose:m,path:o,label:`${i.slice(0,7)}${C?` · ${C}`:""}`,...w})}),Ut=()=>({selection:null,view:"changes",history:null,selected:null,message:"",branch:"",checkout:!0,pending:!1,outcome:null}),Jt={id:fe.git},Qt=ue({id:Jt.id,apiVersion:1,activate(){},workbench:{apiVersion:1,entry:{label:{zh:"Git 改动",en:"Git changes"},description:{zh:"查看分支、工作区改动与文件差异",en:"Review branches, workspace changes and file diffs"},kind:"git",icon:K},panels:[{kind:"git",title:()=>e.jsxs(e.Fragment,{children:[e.jsx(K,{size:16}),e.jsx("span",{children:"Git"})]}),component:a=>e.jsx(Vt,{sessionId:a.session.sessionId,visible:a.visible,idle:a.session.idle,model:a.resource(Ut),onCommit:s=>a.open("git-commit",s,s.slice(0,7))})},{kind:"git-commit",component:a=>e.jsx(qt,{sessionId:a.session.sessionId,hash:a.contentId,visible:a.visible,idle:a.session.idle,onCommit:s=>a.open("git-commit",s,s.slice(0,7))})},{kind:"git-diff",component:a=>{const[s,i]=JSON.parse(a.contentId);return e.jsx(se,{sessionId:a.session.sessionId,area:s,path:i,visible:a.visible,idle:a.session.idle})}},{kind:"git-commit-diff",component:a=>{const[s,i,o]=JSON.parse(a.contentId);return e.jsx(ae,{sessionId:a.session.sessionId,hash:s,parentIndex:i,path:o,visible:a.visible,idle:a.session.idle})}}]}});export{Qt as default};
|
|
4
|
+
|
|
5
|
+
//# debugId=81d2c7dd-b1ed-4a43-bc9d-98e4bfef1a50
|
|
@@ -37,3 +37,5 @@ WARNING: This link could potentially be dangerous`)){let i=window.open();if(i){t
|
|
|
37
37
|
* Copyright (c) 2011 Fabrice Bellard
|
|
38
38
|
*/var mh=2,Sh=1,wh=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){var c;if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:((c=this._terminal.options.overviewRuler)==null?void 0:c.width)||14,i=window.getComputedStyle(this._terminal.element.parentElement),s=parseInt(i.getPropertyValue("height")),r=Math.max(0,parseInt(i.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),o={top:parseInt(n.getPropertyValue("padding-top")),bottom:parseInt(n.getPropertyValue("padding-bottom")),right:parseInt(n.getPropertyValue("padding-right")),left:parseInt(n.getPropertyValue("padding-left"))},h=o.top+o.bottom,l=o.right+o.left,a=s-h,d=r-l-t;return{cols:Math.max(mh,Math.floor(d/e.css.cell.width)),rows:Math.max(Sh,Math.floor(a/e.css.cell.height))}}};function bh(e,t){var r;const i=(r=document.querySelector('meta[name="pi-style-nonce"]'))==null?void 0:r.content,s=document.createElement;document.createElement=function(n,o){const h=s.call(document,n,o);return i&&h instanceof HTMLStyleElement&&(h.nonce=i),h};try{e.open(t)}finally{document.createElement=s}}class yh{constructor(t,i){V(this,"element",document.createElement("div"));V(this,"terminal",new vh({cursorBlink:!0,scrollback:2e3,fontSize:13,fontFamily:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",minimumContrastRatio:4.5}));V(this,"fit",new wh);V(this,"state",{phase:"starting"});V(this,"listeners",new Set);V(this,"lifetime");V(this,"retry");V(this,"opened",!1);V(this,"created",!1);V(this,"disposed",!1);V(this,"commands",Promise.resolve());V(this,"queued",0);V(this,"active",!0);V(this,"creation");V(this,"offline",()=>{var t;this.state.phase==="exited"||this.state.phase==="failed"||((t=this.lifetime)==null||t.abort(),this.patch({phase:"disconnected"}))});V(this,"online",()=>{this.connect()});V(this,"id");V(this,"sessionId");V(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));V(this,"getSnapshot",()=>this.state);this.id=t,this.sessionId=i,this.element.style.cssText="width:100%;height:100%;min-width:0;overflow:hidden",this.terminal.loadAddon(this.fit),window.addEventListener("offline",this.offline),window.addEventListener("online",this.online),this.terminal.onData(s=>this.input(s)),this.terminal.onResize(s=>{this.state.phase==="connected"&&this.active&&this.enqueue("resize",s)})}patch(t){this.state=t,this.terminal.options.disableStdin=t.phase!=="connected"||!this.active;for(const i of this.listeners)i()}activate(t){this.active=t,this.terminal.options.disableStdin=!t||this.state.phase!=="connected",t&&this.opened&&!this.lifetime&&this.state.phase==="disconnected"&&this.connect()}mount(t){var i;t.append(this.element),this.opened||(this.opened=!0,bh(this.terminal,this.element),(i=this.terminal.textarea)==null||i.setAttribute("aria-label","Terminal input"),this.connect())}measure(){if(!this.element.isConnected||!this.element.clientWidth||!this.element.clientHeight||this.element.closest("[aria-hidden=true]"))return;const t=document.body.hasAttribute("data-ds-dark-theme");this.terminal.options.theme=t?{background:"#151618",foreground:"#e5e5e5",cursor:"#e5e5e5"}:{background:"#ffffff",foreground:"#242424",cursor:"#242424"};const i=this.fit.proposeDimensions();i&&this.terminal.resize(Math.min(500,Math.max(2,i.cols)),Math.min(300,Math.max(1,i.rows)))}async request(t,i,s){return sn(`/api/terminal/${t}`,{method:"POST",headers:{Authorization:`Bearer ${on()}`,"Content-Type":"application/json"},body:JSON.stringify({sessionId:this.sessionId,id:this.id,...i}),signal:s},{expectedNetworkFailure:!0})}async connect(){if(this.disposed||this.lifetime||!this.active||!navigator.onLine||this.state.phase==="exited")return;clearTimeout(this.retry);const t=new AbortController;this.lifetime=t,this.patch({phase:this.created?"disconnected":"starting"});try{if(this.created||(this.creation=this.request("create",{cols:this.terminal.cols,rows:this.terminal.rows}).then(Lt),await this.creation,this.created=!0),this.disposed)return;const i=await this.request("attach",{},t.signal);i.response.ok||await Lt(i);const s=i.response.body.getReader();try{const r=new TextDecoder;let n="";for(;!this.disposed;){const{done:o,value:h}=await s.read();if(o)break;if(n+=r.decode(h,{stream:!0}),n.length>2*1024*1024)throw new Error("Terminal stream overflow");let l;for(;(l=n.indexOf(`
|
|
39
39
|
`))>=0;){const a=JSON.parse(n.slice(0,l));if(n=n.slice(l+1),a.type==="snapshot")this.terminal.reset(),this.terminal.resize(a.cols,a.rows),await new Promise(d=>this.terminal.write(a.screen,d)),this.patch({phase:"connected"}),this.measure(),this.active&&this.enqueue("resize",{cols:this.terminal.cols,rows:this.terminal.rows});else if(a.type==="output")await new Promise(d=>this.terminal.write(a.data,d));else{if(a.type==="resize")continue;if(a.type==="exit"){this.patch({phase:"exited",exitCode:a.exitCode});return}}}}throw new Error("Terminal disconnected")}finally{await s.cancel().catch(()=>{}),s.releaseLock()}}catch(i){if(this.disposed)return;const s=i instanceof si&&i.status!==409&&i.status<500;this.patch({phase:s?"failed":"disconnected",reason:i instanceof si?i.reason:void 0}),s||(this.retry=setTimeout(()=>{this.connect()},1500))}finally{this.lifetime===t&&(this.lifetime=void 0)}}input(t){var s;if(this.state.phase!=="connected"||!this.active)return;if(this.queued+t.length>64*1024){(s=this.lifetime)==null||s.abort();return}let i="";for(const r of t)i+=r,i.length>=4e3&&(this.enqueue("input",{data:i}),i="");i&&this.enqueue("input",{data:i})}enqueue(t,i){var n;const s=this.lifetime,r=((n=i.data)==null?void 0:n.length)??0;this.queued+=r,this.commands=this.commands.then(async()=>{this.disposed||!this.active||this.state.phase!=="connected"||s!==this.lifetime||s!=null&&s.signal.aborted||await Lt(await this.request(t,i,s==null?void 0:s.signal))}).catch(o=>{o instanceof si&&o.status===409||s==null||s.abort()}).finally(()=>{this.queued-=r})}dispose(){var t;this.disposed=!0,clearTimeout(this.retry),(t=this.lifetime)==null||t.abort(),window.removeEventListener("offline",this.offline),window.removeEventListener("online",this.online),(async()=>{try{await this.creation,this.created&&await Lt(await this.request("close",{}))}catch{}this.terminal.dispose(),this.element.remove(),this.listeners.clear()})()}}const Ch="_root_nznr3_1",kh="_screen_nznr3_3",xh="_status_nznr3_4",vi={root:Ch,screen:kh,status:xh};function Eh(e){switch(e){case"terminal_shell_unavailable":return Me("终端不可用:默认 shell 不存在或不可执行。请修正 SHELL(Windows 为 COMSPEC)后重启应用。","Terminal unavailable: the default shell is missing or not executable. Correct SHELL (COMSPEC on Windows) and restart the app.");case"terminal_workspace_unavailable":return Me("终端不可用:工作区目录不存在或不可访问。请切换到有效工作区后新建终端。","Terminal unavailable: the workspace directory is missing or inaccessible. Select a valid workspace, then open a new terminal.");case"terminal_runtime_unavailable":return Me("终端不可用:本机终端组件启动失败。请重新安装或修复应用的 node-pty 依赖后重启。","Terminal unavailable: the native terminal component failed to start. Reinstall or repair the app's node-pty dependency, then restart.");case"terminal_limit":return Me("终端数量已达上限,请关闭不用的终端后重试。","Terminal limit reached. Close unused terminals and try again.");default:return Me("终端不可用,请检查默认 shell 和工作区目录后重新打开。","Terminal unavailable. Check the default shell and workspace directory, then open a new terminal.")}}function Bh({model:e,visible:t,onNew:i}){const s=e,r=Me("终端输入","Terminal input"),n=Pt.useRef(null),o=Pt.useSyncExternalStore(e.subscribe,e.getSnapshot);return Pt.useLayoutEffect(()=>{const h=n.current;s.mount(h);const l=new ResizeObserver(()=>s.measure());l.observe(h);const a=new MutationObserver(()=>s.measure());return a.observe(document.body,{attributes:!0,attributeFilter:["data-ds-dark-theme"]}),()=>{l.disconnect(),a.disconnect(),s.element.remove()}},[e]),Pt.useLayoutEffect(()=>{var h;(h=e.terminal.textarea)==null||h.setAttribute("aria-label",r),t&&(e.measure(),e.terminal.focus())},[e,t,o.phase,r]),Je.jsxs("section",{className:vi.root,"data-workspace-terminal":e.id,"data-terminal-phase":o.phase,children:[o.phase!=="connected"&&Je.jsxs("div",{className:vi.status,role:"status",children:[Je.jsx("span",{children:o.phase==="starting"?Me("正在启动终端…","Starting terminal…"):o.phase==="disconnected"?Me("连接断开,正在重连…","Disconnected. Reconnecting…"):o.phase==="exited"?Me(`进程已退出(${o.exitCode})`,`Process exited (${o.exitCode})`):Eh(o.reason)}),(o.phase==="failed"||o.phase==="exited")&&Je.jsx(rn,{size:"sm",onClick:i,children:Me("新建终端","New terminal")})]}),Je.jsx("div",{className:vi.screen,ref:n})]})}const Th=nn({id:ds.id,apiVersion:1,activate(){},workbench:{apiVersion:1,entry:{label:{zh:"打开终端",en:"Open terminal"},panelTitle:ds.name,description:{zh:"在当前工作区中运行交互式 Shell",en:"Run an interactive shell in this workspace"},kind:"terminal",multiple:!0,icon:()=>Je.jsx("span",{"aria-hidden":"true",style:{fontFamily:"monospace",fontSize:24},children:"›_"})},panels:[{kind:"terminal",component:e=>Je.jsx(Bh,{model:e.resource(()=>new yh(e.contentId,e.session.sessionId),t=>t.dispose(),(t,i)=>t.activate(i)),visible:e.visible,onNew:()=>e.open("terminal",an(),e.locale==="zh"?"终端":"Terminal")})}]}});export{Th as default};
|
|
40
|
+
|
|
41
|
+
//# debugId=0f124f10-25fa-4d17-81dd-7b4f4560e6d1
|
|
@@ -1 +1,3 @@
|
|
|
1
1
|
(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9f720773-eec1-4742-b45d-b028add5ee03",e._sentryDebugIdIdentifier="sentry-dbid-9f720773-eec1-4742-b45d-b028add5ee03")}catch{}})();const t=Object.freeze(JSON.parse('{"displayName":"PowerShell","name":"powershell","patterns":[{"begin":"<#","beginCaptures":{"0":{"name":"punctuation.definition.comment.block.begin.powershell"}},"end":"#>","endCaptures":{"0":{"name":"punctuation.definition.comment.block.end.powershell"}},"name":"comment.block.powershell","patterns":[{"include":"#commentEmbeddedDocs"}]},{"match":"[2-6]>&1|>>?|<<|[<>]|>\\\\||[1-6]>|[1-6]>>","name":"keyword.operator.redirection.powershell"},{"include":"#commands"},{"include":"#commentLine"},{"include":"#variable"},{"include":"#subexpression"},{"include":"#function"},{"include":"#attribute"},{"include":"#UsingDirective"},{"include":"#type"},{"include":"#hashtable"},{"include":"#doubleQuotedString"},{"include":"#scriptblock"},{"include":"#doubleQuotedStringEscapes"},{"applyEndPatternLast":true,"begin":"[\'‘-‛]","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.powershell"}},"end":"[\'‘-‛]","endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}},"name":"string.quoted.single.powershell","patterns":[{"match":"[\'‘-‛]{2}","name":"constant.character.escape.powershell"}]},{"begin":"(@[\\"“”„])\\\\s*$","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.powershell"}},"end":"^[\\"“”„]@","endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}},"name":"string.quoted.double.heredoc.powershell","patterns":[{"include":"#variableNoProperty"},{"include":"#doubleQuotedStringEscapes"},{"include":"#interpolation"}]},{"begin":"(@[\'‘-‛])\\\\s*$","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.powershell"}},"end":"^[\'‘-‛]@","endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}},"name":"string.quoted.single.heredoc.powershell"},{"include":"#numericConstant"},{"begin":"(@)(\\\\()","beginCaptures":{"1":{"name":"keyword.other.array.begin.powershell"},"2":{"name":"punctuation.section.group.begin.powershell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}},"name":"meta.group.array-expression.powershell","patterns":[{"include":"$self"}]},{"begin":"((\\\\$))(\\\\()","beginCaptures":{"1":{"name":"keyword.other.substatement.powershell"},"2":{"name":"punctuation.definition.subexpression.powershell"},"3":{"name":"punctuation.section.group.begin.powershell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}},"name":"meta.group.complex.subexpression.powershell","patterns":[{"include":"$self"}]},{"match":"\\\\b((([-.0-9A-Z_a-z]+)\\\\.(?i:exe|com|cmd|bat)))\\\\b","name":"support.function.powershell"},{"match":"(?<![-.\\\\w])((?i:begin|break|catch|clean|continue|data|default|define|do|dynamicparam|else|elseif|end|exit|finally|for|from|if|in|inlinescript|parallel|param|process|return|sequence|switch|throw|trap|try|until|var|while)|[%?])(?!\\\\w)","name":"keyword.control.powershell"},{"match":"(?<![-\\\\w]|[^)]\\\\.)((?i:(foreach|where)(?!-object))|[%?])(?!\\\\w)","name":"keyword.control.powershell"},{"begin":"(?<!\\\\w)(--%)(?!\\\\w)","beginCaptures":{"1":{"name":"keyword.control.powershell"}},"end":"$","patterns":[{"match":".+","name":"string.unquoted.powershell"}]},{"match":"(?<!\\\\w)((?i:hidden|static))(?!\\\\w)","name":"storage.modifier.powershell"},{"captures":{"1":{"name":"storage.type.powershell"},"2":{"name":"entity.name.function"}},"match":"(?<![-\\\\w])((?i:class)|[%?])\\\\s+([-_\\\\p{L}\\\\d]?{1,})\\\\b"},{"match":"(?<!\\\\w)-(?i:is(?:not)?|as)\\\\b","name":"keyword.operator.comparison.powershell"},{"match":"(?<!\\\\w)-(?i:[ci]?(?:eq|ne|[gl][et]|(?:not)?(?:like|match|contains|in)|replace))(?!\\\\p{L})","name":"keyword.operator.comparison.powershell"},{"match":"(?<!\\\\w)-(?i:join|split)(?!\\\\p{L})|!","name":"keyword.operator.unary.powershell"},{"match":"(?<!\\\\w)-(?i:and|or|not|xor)(?!\\\\p{L})|!","name":"keyword.operator.logical.powershell"},{"match":"(?<!\\\\w)-(?i:band|bor|bnot|bxor|shl|shr)(?!\\\\p{L})","name":"keyword.operator.bitwise.powershell"},{"match":"(?<!\\\\w)-(?i:f)(?!\\\\p{L})","name":"keyword.operator.string-format.powershell"},{"match":"[-%*+/]?=|[-%*+/]","name":"keyword.operator.assignment.powershell"},{"match":"\\\\|{2}|&{2}|;","name":"punctuation.terminator.statement.powershell"},{"match":"&|(?<!\\\\w)\\\\.(?= )|[,`|]","name":"keyword.operator.other.powershell"},{"match":"(?<!\\\\s|^)\\\\.\\\\.(?=-?\\\\d|[$(])","name":"keyword.operator.range.powershell"}],"repository":{"RequiresDirective":{"begin":"(?<=#)(?i:(requires))\\\\s","beginCaptures":{"0":{"name":"keyword.control.requires.powershell"}},"end":"$","name":"meta.requires.powershell","patterns":[{"match":"-(?i:Modules|PSSnapin|RunAsAdministrator|ShellId|Version|Assembly|PSEdition)","name":"keyword.other.powershell"},{"match":"(?<!-)\\\\b\\\\p{L}+|\\\\d+(?:\\\\.\\\\d+)*","name":"variable.parameter.powershell"},{"include":"#hashtable"}]},"UsingDirective":{"captures":{"1":{"name":"keyword.control.using.powershell"},"2":{"name":"keyword.other.powershell"},"3":{"name":"variable.parameter.powershell"}},"match":"(?<!\\\\w)(?i:(using))\\\\s+(?i:(namespace|module))\\\\s+(?i:((?:\\\\w+\\\\.?)+))"},"attribute":{"begin":"(\\\\[)\\\\s*\\\\b(?i)(cmdletbinding|alias|outputtype|parameter|validatenotnull|validatenotnullorempty|validatecount|validateset|allownull|allowemptycollection|allowemptystring|validatescript|validaterange|validatepattern|validatelength|supportswildcards)\\\\b","beginCaptures":{"1":{"name":"punctuation.section.bracket.begin.powershell"},"2":{"name":"support.function.attribute.powershell"}},"end":"(])","endCaptures":{"1":{"name":"punctuation.section.bracket.end.powershell"}},"name":"meta.attribute.powershell","patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.group.begin.powershell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}},"patterns":[{"include":"$self"},{"captures":{"1":{"name":"variable.parameter.attribute.powershell"},"2":{"name":"keyword.operator.assignment.powershell"}},"match":"(?i)\\\\b(mandatory|valuefrompipeline|valuefrompipelinebypropertyname|valuefromremainingarguments|position|parametersetname|defaultparametersetname|supportsshouldprocess|supportspaging|positionalbinding|helpuri|confirmimpact|helpmessage)\\\\b\\\\s+{0,1}(=)?"}]}]},"commands":{"patterns":[{"match":"(?:([-:\\\\\\\\_\\\\p{L}\\\\d])*\\\\\\\\)?\\\\b(?i:Add|Approve|Assert|Backup|Block|Build|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Deploy|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Mount|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Write)-.+?(?:\\\\.(?i:exe|cmd|bat|ps1))?\\\\b","name":"support.function.powershell"},{"match":"(?<!\\\\w)(?i:foreach-object)(?!\\\\w)","name":"support.function.powershell"},{"match":"(?<!\\\\w)(?i:where-object)(?!\\\\w)","name":"support.function.powershell"},{"match":"(?<!\\\\w)(?i:sort-object)(?!\\\\w)","name":"support.function.powershell"},{"match":"(?<!\\\\w)(?i:tee-object)(?!\\\\w)","name":"support.function.powershell"}]},"commentEmbeddedDocs":{"patterns":[{"captures":{"1":{"name":"constant.string.documentation.powershell"},"2":{"name":"keyword.operator.documentation.powershell"}},"match":"(?:^|\\\\G)(?i:\\\\s*(\\\\.)(COMPONENT|DESCRIPTION|EXAMPLE|FUNCTIONALITY|INPUTS|LINK|NOTES|OUTPUTS|ROLE|SYNOPSIS))\\\\s*$","name":"comment.documentation.embedded.powershell"},{"captures":{"1":{"name":"constant.string.documentation.powershell"},"2":{"name":"keyword.operator.documentation.powershell"},"3":{"name":"keyword.operator.documentation.powershell"}},"match":"(?:^|\\\\G)(?i:\\\\s*(\\\\.)(EXTERNALHELP|FORWARDHELP(?:CATEGORY|TARGETNAME)|PARAMETER|REMOTEHELPRUNSPACE))\\\\s+(.+?)\\\\s*$","name":"comment.documentation.embedded.powershell"}]},"commentLine":{"begin":"(?<![-\\\\\\\\`])(#)#*","captures":{"1":{"name":"punctuation.definition.comment.powershell"}},"end":"$\\\\n?","name":"comment.line.powershell","patterns":[{"include":"#commentEmbeddedDocs"},{"include":"#RequiresDirective"}]},"doubleQuotedString":{"applyEndPatternLast":true,"begin":"[\\"“”„]","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.powershell"}},"end":"[\\"“”„]","endCaptures":{"0":{"name":"punctuation.definition.string.end.powershell"}},"name":"string.quoted.double.powershell","patterns":[{"match":"(?i)\\\\b[-%+.0-9A-Z_]+@[-.0-9A-Z]+\\\\.[A-Z]{2,64}\\\\b"},{"include":"#variableNoProperty"},{"include":"#doubleQuotedStringEscapes"},{"match":"[\\"“”„]{2}","name":"constant.character.escape.powershell"},{"include":"#interpolation"},{"match":"`\\\\s*$","name":"keyword.other.powershell"}]},"doubleQuotedStringEscapes":{"patterns":[{"match":"`[\\"$\'0`abefnrtv‘-„]","name":"constant.character.escape.powershell"},{"include":"#unicodeEscape"}]},"function":{"begin":"^\\\\s*+(?i)(function|filter|configuration|workflow)\\\\s+(?:(global|local|script|private):)?([-._\\\\p{L}\\\\d]+)","beginCaptures":{"0":{"name":"meta.function.powershell"},"1":{"name":"storage.type.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"3":{"name":"entity.name.function.powershell"}},"end":"(?=[({])","patterns":[{"include":"#commentLine"}]},"hashtable":{"begin":"(@)(\\\\{)","beginCaptures":{"1":{"name":"keyword.other.hashtable.begin.powershell"},"2":{"name":"punctuation.section.braces.begin.powershell"}},"end":"(})","endCaptures":{"1":{"name":"punctuation.section.braces.end.powershell"}},"name":"meta.hashtable.powershell","patterns":[{"captures":{"1":{"name":"punctuation.definition.string.begin.powershell"},"2":{"name":"variable.other.readwrite.powershell"},"3":{"name":"punctuation.definition.string.end.powershell"},"4":{"name":"keyword.operator.assignment.powershell"}},"match":"\\\\b([\\"\']?)(\\\\w+)([\\"\']?)\\\\s+{0,1}(=)\\\\s+{0,1}","name":"meta.hashtable.assignment.powershell"},{"include":"#scriptblock"},{"include":"$self"}]},"interpolation":{"begin":"(((\\\\$)))((\\\\())","beginCaptures":{"1":{"name":"keyword.other.substatement.powershell"},"2":{"name":"punctuation.definition.substatement.powershell"},"3":{"name":"punctuation.section.embedded.substatement.begin.powershell"},"4":{"name":"punctuation.section.group.begin.powershell"},"5":{"name":"punctuation.section.embedded.substatement.begin.powershell"}},"contentName":"interpolated.complex.source.powershell","end":"(\\\\))","endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"},"1":{"name":"punctuation.section.embedded.substatement.end.powershell"}},"name":"meta.embedded.substatement.powershell","patterns":[{"include":"$self"}]},"numericConstant":{"patterns":[{"captures":{"1":{"name":"constant.numeric.hex.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?0[Xx][_\\\\h]+(?:[LUlu]|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[gkmpt]b)?)\\\\b"},{"captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?[0-9_]+{0,1}\\\\.[0-9_]+(?:[Ee][0-9]+)?[DFMdfm]?)((?i:[gkmpt]b)?)\\\\b"},{"captures":{"1":{"name":"constant.numeric.octal.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?0[Bb][01_]+(?:[LUlu]|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[gkmpt]b)?)\\\\b"},{"captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?[0-9_]+[Ee][0-9_]?+[DFMdfm]?)((?i:[gkmpt]b)?)\\\\b"},{"captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?[0-9_]+\\\\.[Ee][0-9_]?+[DFMdfm]?)((?i:[gkmpt]b)?)\\\\b"},{"captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?[0-9_]+\\\\.?[DFMdfm])((?i:[gkmpt]b)?)\\\\b"},{"captures":{"1":{"name":"constant.numeric.integer.powershell"},"2":{"name":"keyword.other.powershell"}},"match":"(?<!\\\\w)([-+]?[0-9_]+\\\\.?(?:[LUlu]|UL|Ul|uL|ul|LU|Lu|lU|lu)?)((?i:[gkmpt]b)?)\\\\b"}]},"scriptblock":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.braces.begin.powershell"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.braces.end.powershell"}},"name":"meta.scriptblock.powershell","patterns":[{"include":"$self"}]},"subexpression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.group.begin.powershell"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.section.group.end.powershell"}},"name":"meta.group.simple.subexpression.powershell","patterns":[{"include":"$self"}]},"type":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.section.bracket.begin.powershell"}},"end":"]","endCaptures":{"0":{"name":"punctuation.section.bracket.end.powershell"}},"patterns":[{"match":"(?!\\\\d+|\\\\.)[.\\\\p{L}\\\\p{N}]+","name":"storage.type.powershell"},{"include":"$self"}]},"unicodeEscape":{"patterns":[{"match":"`u\\\\{(?:(?:10)?(\\\\h){1,4}|0?\\\\g<1>{1,5})}","name":"constant.character.escape.powershell"},{"match":"`u(?:\\\\{\\\\h{0,6}.)?","name":"invalid.character.escape.powershell"}]},"variable":{"patterns":[{"captures":{"0":{"name":"constant.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"}},"match":"(\\\\$)(?i:(False|Null|True))\\\\b"},{"captures":{"0":{"name":"variable.other.constant.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}},"match":"(\\\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?\\\\b"},{"captures":{"0":{"name":"support.variable.automatic.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}},"match":"(\\\\$)([$?^]|(?i:_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This)\\\\b)((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?"},{"captures":{"0":{"name":"variable.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}},"match":"(\\\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|InformationPreference|LogCommandHealthEvent|LogCommandLifecycleEvent|LogEngineHealthEvent|LogEngineLifecycleEvent|LogProviderHealthEvent|LogProviderLifecycleEvent|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|PSCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoLoadingPreference|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|ProgressPreference|VerbosePreference|WarningPreference|WhatIfPreference))((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?\\\\b"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"4":{"name":"variable.other.member.powershell"}},"match":"(?i:([$@])(global|local|private|script|using|workflow):([_\\\\p{L}\\\\d]+))((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"punctuation.section.braces.begin.powershell"},"3":{"name":"storage.modifier.scope.powershell"},"5":{"name":"punctuation.section.braces.end.powershell"},"6":{"name":"variable.other.member.powershell"}},"match":"(?i:(\\\\$)(\\\\{)(global|local|private|script|using|workflow):([^}]*[^`}])(}))((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"support.variable.drive.powershell"},"4":{"name":"variable.other.member.powershell"}},"match":"(?i:([$@])([_\\\\p{L}\\\\d]+:)?([_\\\\p{L}\\\\d]+))((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"punctuation.section.braces.begin.powershell"},"3":{"name":"support.variable.drive.powershell"},"5":{"name":"punctuation.section.braces.end.powershell"},"6":{"name":"variable.other.member.powershell"}},"match":"(?i:(\\\\$)(\\\\{)([_\\\\p{L}\\\\d]+:)?([^}]*[^`}])(}))((?:\\\\.[_\\\\p{L}\\\\d]+)*\\\\b)?"}]},"variableNoProperty":{"patterns":[{"captures":{"0":{"name":"constant.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"}},"match":"(\\\\$)(?i:(False|Null|True))\\\\b"},{"captures":{"0":{"name":"variable.other.constant.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}},"match":"(\\\\$)(?i:(Error|ExecutionContext|Host|Home|PID|PsHome|PsVersionTable|ShellID))\\\\b"},{"captures":{"0":{"name":"support.variable.automatic.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}},"match":"(\\\\$)([$?^]|(?i:_|Args|ConsoleFileName|Event|EventArgs|EventSubscriber|ForEach|Input|LastExitCode|Matches|MyInvocation|NestedPromptLevel|Profile|PSBoundParameters|PsCmdlet|PsCulture|PSDebugContext|PSItem|PSCommandPath|PSScriptRoot|PsUICulture|Pwd|Sender|SourceArgs|SourceEventArgs|StackTrace|Switch|This)\\\\b)"},{"captures":{"0":{"name":"variable.language.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"3":{"name":"variable.other.member.powershell"}},"match":"(\\\\$)(?i:(ConfirmPreference|DebugPreference|ErrorActionPreference|ErrorView|FormatEnumerationLimit|InformationPreference|LogCommandHealthEvent|LogCommandLifecycleEvent|LogEngineHealthEvent|LogEngineLifecycleEvent|LogProviderHealthEvent|LogProviderLifecycleEvent|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount|MaximumHistoryCount|MaximumVariableCount|OFS|OutputEncoding|PSCulture|PSDebugContext|PSDefaultParameterValues|PSEmailServer|PSItem|PSModuleAutoLoadingPreference|PSModuleAutoloadingPreference|PSSenderInfo|PSSessionApplicationName|PSSessionConfigurationName|PSSessionOption|ProgressPreference|VerbosePreference|WarningPreference|WhatIfPreference))\\\\b"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"4":{"name":"variable.other.member.powershell"}},"match":"(?i:(\\\\$)(global|local|private|script|using|workflow):([_\\\\p{L}\\\\d]+))"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"storage.modifier.scope.powershell"},"4":{"name":"keyword.other.powershell"},"5":{"name":"variable.other.member.powershell"}},"match":"(?i:(\\\\$)(\\\\{)(global|local|private|script|using|workflow):([^}]*[^`}])(}))"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"support.variable.drive.powershell"},"4":{"name":"variable.other.member.powershell"}},"match":"(?i:(\\\\$)([_\\\\p{L}\\\\d]+:)?([_\\\\p{L}\\\\d]+))"},{"captures":{"0":{"name":"variable.other.readwrite.powershell"},"1":{"name":"punctuation.definition.variable.powershell"},"2":{"name":"punctuation.section.braces.begin"},"3":{"name":"support.variable.drive.powershell"},"5":{"name":"punctuation.section.braces.end"}},"match":"(?i:(\\\\$)(\\\\{)([_\\\\p{L}\\\\d]+:)?([^}]*[^`}])(}))"}]}},"scopeName":"source.powershell","aliases":["ps","ps1","pwsh"]}')),a=[t];export{a as default};
|
|
2
|
+
|
|
3
|
+
//# debugId=9f720773-eec1-4742-b45d-b028add5ee03
|
|
@@ -1 +1,3 @@
|
|
|
1
1
|
(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0d9d457b-f006-4c68-837c-4645bfadfcb5",e._sentryDebugIdIdentifier="sentry-dbid-0d9d457b-f006-4c68-837c-4645bfadfcb5")}catch{}})();const n=Object.freeze(JSON.parse(`{"displayName":"Protocol Buffer 3","fileTypes":["proto"],"name":"proto","patterns":[{"include":"#comments"},{"include":"#syntax"},{"include":"#package"},{"include":"#import"},{"include":"#optionStmt"},{"include":"#message"},{"include":"#enum"},{"include":"#service"}],"repository":{"comments":{"patterns":[{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.proto"},{"begin":"//","end":"$\\\\n?","name":"comment.line.double-slash.proto"}]},"constants":{"match":"\\\\b(true|false|max|[A-Z_]+)\\\\b","name":"constant.language.proto"},"enum":{"begin":"(enum)(\\\\s+)([A-Za-z][0-9A-Z_a-z]*)(\\\\s*)(\\\\{)?","beginCaptures":{"1":{"name":"keyword.other.proto"},"3":{"name":"entity.name.class.proto"}},"end":"}","patterns":[{"include":"#reserved"},{"include":"#optionStmt"},{"include":"#comments"},{"begin":"([A-Za-z][0-9A-Z_a-z]*)\\\\s*(=)\\\\s*(-?0[Xx]\\\\h+|-?[0-9]+)","beginCaptures":{"1":{"name":"variable.other.proto"},"2":{"name":"keyword.operator.assignment.proto"},"3":{"name":"constant.numeric.proto"}},"end":"(;)","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"include":"#fieldOptions"}]}]},"field":{"begin":"\\\\s*(optional|repeated|required)?\\\\s*(\\\\.?[.\\\\w]+)\\\\s+(\\\\w+)\\\\s*(=)\\\\s*(0[Xx]\\\\h+|[0-9]+)","beginCaptures":{"1":{"name":"storage.modifier.proto"},"2":{"name":"storage.type.proto"},"3":{"name":"variable.other.proto"},"4":{"name":"keyword.operator.assignment.proto"},"5":{"name":"constant.numeric.proto"}},"end":"(;)","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"include":"#fieldOptions"}]},"fieldOptions":{"begin":"\\\\[","end":"]","patterns":[{"include":"#constants"},{"include":"#number"},{"include":"#string"},{"include":"#subMsgOption"},{"include":"#optionName"}]},"ident":{"match":"\\\\.?[A-Za-z][.0-9A-Z_a-z]*","name":"entity.name.class.proto"},"import":{"captures":{"1":{"name":"keyword.other.proto"},"2":{"name":"keyword.other.proto"},"3":{"name":"string.quoted.double.proto.import"},"4":{"name":"punctuation.terminator.proto"}},"match":"\\\\s*(import)\\\\s+(weak|public)?\\\\s*(\\"[^\\"]+\\")\\\\s*(;)"},"kv":{"begin":"(\\\\w+)\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.other.proto"},"2":{"name":"punctuation.separator.key-value.proto"}},"end":"(;)|,|(?=[/A-Z_a-z}])","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"include":"#constants"},{"include":"#number"},{"include":"#string"},{"include":"#subMsgOption"}]},"mapfield":{"begin":"\\\\s*(map)\\\\s*(<)\\\\s*(\\\\.?[.\\\\w]+)\\\\s*,\\\\s*(\\\\.?[.\\\\w]+)\\\\s*(>)\\\\s+(\\\\w+)\\\\s*(=)\\\\s*(\\\\d+)","beginCaptures":{"1":{"name":"storage.type.proto"},"2":{"name":"punctuation.definition.typeparameters.begin.proto"},"3":{"name":"storage.type.proto"},"4":{"name":"storage.type.proto"},"5":{"name":"punctuation.definition.typeparameters.end.proto"},"6":{"name":"variable.other.proto"},"7":{"name":"keyword.operator.assignment.proto"},"8":{"name":"constant.numeric.proto"}},"end":"(;)","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"include":"#fieldOptions"}]},"message":{"begin":"(message|extend)(\\\\s+)([A-Z_a-z][.0-9A-Z_a-z]*)(\\\\s*)(\\\\{)?","beginCaptures":{"1":{"name":"keyword.other.proto"},"3":{"name":"entity.name.class.message.proto"}},"end":"}","patterns":[{"include":"#reserved"},{"include":"$self"},{"include":"#enum"},{"include":"#optionStmt"},{"include":"#comments"},{"include":"#oneof"},{"include":"#field"},{"include":"#mapfield"}]},"method":{"begin":"(rpc)\\\\s+([A-Za-z][0-9A-Z_a-z]*)","beginCaptures":{"1":{"name":"keyword.other.proto"},"2":{"name":"entity.name.function"}},"end":"}|(;)","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"include":"#comments"},{"include":"#optionStmt"},{"include":"#rpcKeywords"},{"include":"#ident"}]},"number":{"match":"\\\\b((0([Xx])\\\\h*)|(([0-9]+\\\\.?[0-9]*)|(\\\\.[0-9]+))(([Ee])([-+])?[0-9]+)?)\\\\b","name":"constant.numeric.proto"},"oneof":{"begin":"(oneof)\\\\s+([A-Za-z][0-9A-Z_a-z]*)\\\\s*\\\\{?","beginCaptures":{"1":{"name":"keyword.other.proto"},"2":{"name":"variable.other.proto"}},"end":"}","patterns":[{"include":"#optionStmt"},{"include":"#comments"},{"include":"#field"}]},"optionName":{"captures":{"1":{"name":"support.other.proto"},"2":{"name":"support.other.proto"},"3":{"name":"support.other.proto"}},"match":"(\\\\w+|\\\\(\\\\w+(\\\\.\\\\w+)*\\\\))(\\\\.\\\\w+)*"},"optionStmt":{"begin":"(option)\\\\s+(\\\\w+|\\\\(\\\\w+(\\\\.\\\\w+)*\\\\))(\\\\.\\\\w+)*\\\\s*(=)","beginCaptures":{"1":{"name":"keyword.other.proto"},"2":{"name":"support.other.proto"},"3":{"name":"support.other.proto"},"4":{"name":"support.other.proto"},"5":{"name":"keyword.operator.assignment.proto"}},"end":"(;)","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"include":"#constants"},{"include":"#number"},{"include":"#string"},{"include":"#subMsgOption"}]},"package":{"captures":{"1":{"name":"keyword.other.proto"},"2":{"name":"string.unquoted.proto.package"},"3":{"name":"punctuation.terminator.proto"}},"match":"\\\\s*(package)\\\\s+([.\\\\w]+)\\\\s*(;)"},"reserved":{"begin":"(reserved)\\\\s+","beginCaptures":{"1":{"name":"keyword.other.proto"}},"end":"(;)","endCaptures":{"1":{"name":"punctuation.terminator.proto"}},"patterns":[{"captures":{"1":{"name":"constant.numeric.proto"},"3":{"name":"keyword.other.proto"},"4":{"name":"constant.numeric.proto"}},"match":"(\\\\d+)(\\\\s+(to)\\\\s+(\\\\d+))?"},{"include":"#string"}]},"rpcKeywords":{"match":"\\\\b(stream|returns)\\\\b","name":"keyword.other.proto"},"service":{"begin":"(service)\\\\s+([A-Za-z][.0-9A-Z_a-z]*)\\\\s*\\\\{?","beginCaptures":{"1":{"name":"keyword.other.proto"},"2":{"name":"entity.name.class.message.proto"}},"end":"}","patterns":[{"include":"#comments"},{"include":"#optionStmt"},{"include":"#method"}]},"storagetypes":{"match":"\\\\b(double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes)\\\\b","name":"storage.type.proto"},"string":{"match":"([\\"'])(?:\\\\\\\\.|[^\\\\\\\\])*?\\\\1","name":"string.quoted.double.proto"},"subMsgOption":{"begin":"\\\\{","end":"}","patterns":[{"include":"#kv"},{"include":"#comments"}]},"syntax":{"captures":{"1":{"name":"keyword.other.proto"},"2":{"name":"keyword.operator.assignment.proto"},"3":{"name":"string.quoted.double.proto.syntax"},"4":{"name":"punctuation.terminator.proto"}},"match":"\\\\s*(syntax)\\\\s*(=)\\\\s*(\\"proto[23]\\")\\\\s*(;)"}},"scopeName":"source.proto","aliases":["protobuf"]}`)),r=[n];export{r as default};
|
|
2
|
+
|
|
3
|
+
//# debugId=0d9d457b-f006-4c68-837c-4645bfadfcb5
|
|
@@ -1 +1,3 @@
|
|
|
1
1
|
(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f1f0da1d-2fa1-457e-99ec-79b74cb08586",e._sentryDebugIdIdentifier="sentry-dbid-f1f0da1d-2fa1-457e-99ec-79b74cb08586")}catch{}})();const t=Object.freeze(JSON.parse(`{"displayName":"Python","name":"python","patterns":[{"include":"#statement"},{"include":"#expression"}],"repository":{"annotated-parameter":{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(:)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.annotation.python"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"}]},"assignment-operator":{"match":"<<=|>>=|//=|\\\\*\\\\*=|\\\\+=|-=|/=|@=|\\\\*=|%=|~=|\\\\^=|&=|\\\\|=|=(?!=)","name":"keyword.operator.assignment.python"},"backticks":{"begin":"\`","end":"\`|(?<!\\\\\\\\)(\\\\n)","name":"invalid.deprecated.backtick.python","patterns":[{"include":"#expression"}]},"builtin-callables":{"patterns":[{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#builtin-exceptions"},{"include":"#builtin-functions"},{"include":"#builtin-types"}]},"builtin-exceptions":{"match":"(?<!\\\\.)\\\\b((Arithmetic|Assertion|Attribute|Buffer|BlockingIO|BrokenPipe|ChildProcess|(Connection(Aborted|Refused|Reset)?)|EOF|Environment|FileExists|FileNotFound|FloatingPoint|IO|Import|Indentation|Index|Interrupted|IsADirectory|NotADirectory|Permission|ProcessLookup|Timeout|Key|Lookup|Memory|Name|NotImplemented|OS|Overflow|Reference|Runtime|Recursion|Syntax|System|Tab|Type|UnboundLocal|Unicode(Encode|Decode|Translate)?|Value|Windows|ZeroDivision|ModuleNotFound)Error|((Pending)?Deprecation|Runtime|Syntax|User|Future|Import|Unicode|Bytes|Resource)?Warning|SystemExit|Stop(Async)?Iteration|KeyboardInterrupt|GeneratorExit|(Base)?Exception)\\\\b","name":"support.type.exception.python"},"builtin-functions":{"patterns":[{"match":"(?<!\\\\.)\\\\b(__import__|abs|aiter|all|any|anext|ascii|bin|breakpoint|callable|chr|compile|copyright|credits|delattr|dir|divmod|enumerate|eval|exec|exit|filter|format|getattr|globals|hasattr|hash|help|hex|id|input|isinstance|issubclass|iter|len|license|locals|map|max|memoryview|min|next|oct|open|ord|pow|print|quit|range|reload|repr|reversed|round|setattr|sorted|sum|vars|zip)\\\\b","name":"support.function.builtin.python"},{"match":"(?<!\\\\.)\\\\b(file|reduce|intern|raw_input|unicode|cmp|basestring|execfile|long|xrange)\\\\b","name":"variable.legacy.builtin.python"}]},"builtin-possible-callables":{"patterns":[{"include":"#builtin-callables"},{"include":"#magic-names"}]},"builtin-types":{"match":"(?<!\\\\.)\\\\b(bool|bytearray|bytes|classmethod|complex|dict|float|frozenset|int|list|object|property|set|slice|staticmethod|str|tuple|type|super)\\\\b","name":"support.type.python"},"call-wrapper-inheritance":{"begin":"\\\\b(?=([_[:alpha:]]\\\\w*)\\\\s*(\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.function-call.python","patterns":[{"include":"#inheritance-name"},{"include":"#function-arguments"}]},"class-declaration":{"patterns":[{"begin":"\\\\s*(class)\\\\s+(?=[_[:alpha:]]\\\\w*\\\\s*([(:]))","beginCaptures":{"1":{"name":"storage.type.class.python"}},"end":"(:)","endCaptures":{"1":{"name":"punctuation.section.class.begin.python"}},"name":"meta.class.python","patterns":[{"include":"#class-name"},{"include":"#class-inheritance"}]}]},"class-inheritance":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.inheritance.begin.python"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.inheritance.end.python"}},"name":"meta.class.inheritance.python","patterns":[{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.arguments.python"},{"match":",","name":"punctuation.separator.inheritance.python"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"},{"match":"\\\\bmetaclass\\\\b","name":"support.type.metaclass.python"},{"include":"#illegal-names"},{"include":"#class-kwarg"},{"include":"#call-wrapper-inheritance"},{"include":"#expression-base"},{"include":"#member-access-class"},{"include":"#inheritance-identifier"}]},"class-kwarg":{"captures":{"1":{"name":"entity.other.inherited-class.python variable.parameter.class.python"},"2":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)(?!=)"},"class-name":{"patterns":[{"include":"#illegal-object-name"},{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"entity.name.type.class.python"}]},"codetags":{"captures":{"1":{"name":"keyword.codetag.notation.python"}},"match":"\\\\b(NOTE|XXX|HACK|FIXME|BUG|TODO)\\\\b"},"comments":{"patterns":[{"begin":"#\\\\s*(type:)\\\\s*+(?!$|#)","beginCaptures":{"0":{"name":"meta.typehint.comment.python"},"1":{"name":"comment.typehint.directive.notation.python"}},"contentName":"meta.typehint.comment.python","end":"$|(?=#)","name":"comment.line.number-sign.python","patterns":[{"match":"\\\\Gignore(?=\\\\s*(?:$|#))","name":"comment.typehint.ignore.notation.python"},{"match":"(?<!\\\\.)\\\\b(bool|bytes|float|int|object|str|List|Dict|Iterable|Sequence|Set|FrozenSet|Callable|Union|Tuple|Any|None)\\\\b","name":"comment.typehint.type.notation.python"},{"match":"([]()*,.=\\\\[]|(->))","name":"comment.typehint.punctuation.notation.python"},{"match":"([_[:alpha:]]\\\\w*)","name":"comment.typehint.variable.notation.python"}]},{"include":"#comments-base"}]},"comments-base":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"$()","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-double-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?=\\"\\"\\"))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"comments-string-single-three":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.python"}},"end":"($|(?='''))","name":"comment.line.number-sign.python","patterns":[{"include":"#codetags"}]},"curly-braces":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dict.begin.python"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dict.end.python"}},"patterns":[{"match":":","name":"punctuation.separator.dict.python"},{"include":"#expression"}]},"decorator":{"begin":"^\\\\s*((@))\\\\s*(?=[_[:alpha:]]\\\\w*)","beginCaptures":{"1":{"name":"entity.name.function.decorator.python"},"2":{"name":"punctuation.definition.decorator.python"}},"end":"(\\\\))(.*?)(?=\\\\s*(?:#|$))|(?=[\\\\n#])","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"invalid.illegal.decorator.python"}},"name":"meta.function.decorator.python","patterns":[{"include":"#decorator-name"},{"include":"#function-arguments"}]},"decorator-name":{"patterns":[{"include":"#builtin-callables"},{"include":"#illegal-object-name"},{"captures":{"2":{"name":"punctuation.separator.period.python"}},"match":"([_[:alpha:]]\\\\w*)|(\\\\.)","name":"entity.name.function.decorator.python"},{"include":"#line-continuation"},{"captures":{"1":{"name":"invalid.illegal.decorator.python"}},"match":"\\\\s*([^#(.\\\\\\\\_[:alpha:]\\\\s].*?)(?=#|$)","name":"invalid.illegal.decorator.python"}]},"docstring":{"patterns":[{"begin":"('''|\\"\\"\\")","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"}},"name":"string.quoted.docstring.multi.python","patterns":[{"include":"#docstring-prompt"},{"include":"#codetags"},{"include":"#docstring-guts-unicode"}]},{"begin":"([Rr])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"}},"name":"string.quoted.docstring.raw.multi.python","patterns":[{"include":"#string-consume-escape"},{"include":"#docstring-prompt"},{"include":"#codetags"}]},{"begin":"([\\"'])","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\1)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.docstring.single.python","patterns":[{"include":"#codetags"},{"include":"#docstring-guts-unicode"}]},{"begin":"([Rr])([\\"'])","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.docstring.raw.single.python","patterns":[{"include":"#string-consume-escape"},{"include":"#codetags"}]}]},"docstring-guts-unicode":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"docstring-prompt":{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"(?:^|\\\\G)\\\\s*((?:>>>|\\\\.\\\\.\\\\.)\\\\s)(?=\\\\s*\\\\S)"},"docstring-statement":{"begin":"^(?=\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))","end":"((?<=\\\\1)|^)(?!\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))","patterns":[{"include":"#docstring"}]},"double-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"double-one-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"double-one-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#double-one-regexp-character-set"},{"include":"#double-one-regexp-comments"},{"include":"#regexp-flags"},{"include":"#double-one-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#double-one-regexp-lookahead"},{"include":"#double-one-regexp-lookahead-negative"},{"include":"#double-one-regexp-lookbehind"},{"include":"#double-one-regexp-lookbehind-negative"},{"include":"#double-one-regexp-conditional"},{"include":"#double-one-regexp-parentheses-non-capturing"},{"include":"#double-one-regexp-parentheses"}]},"double-one-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-one-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\\"))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-one-regexp-expression"}]},"double-three-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"double-three-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"double-three-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#double-three-regexp-character-set"},{"include":"#double-three-regexp-comments"},{"include":"#regexp-flags"},{"include":"#double-three-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#double-three-regexp-lookahead"},{"include":"#double-three-regexp-lookahead-negative"},{"include":"#double-three-regexp-lookbehind"},{"include":"#double-three-regexp-lookbehind-negative"},{"include":"#double-three-regexp-conditional"},{"include":"#double-three-regexp-parentheses-non-capturing"},{"include":"#double-three-regexp-parentheses"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"double-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?=\\"\\"\\"))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#double-three-regexp-expression"},{"include":"#comments-string-double-three"}]},"ellipsis":{"match":"\\\\.\\\\.\\\\.","name":"constant.other.ellipsis.python"},"escape-sequence":{"match":"\\\\\\\\(x\\\\h{2}|[0-7]{1,3}|[\\"'\\\\\\\\abfnrtv])","name":"constant.character.escape.python"},"escape-sequence-unicode":{"patterns":[{"match":"\\\\\\\\(u\\\\h{4}|U\\\\h{8}|N\\\\{[\\\\w\\\\s]+?})","name":"constant.character.escape.python"}]},"expression":{"patterns":[{"include":"#expression-base"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"expression-bare":{"patterns":[{"include":"#backticks"},{"include":"#illegal-anno"},{"include":"#literal"},{"include":"#regexp"},{"include":"#string"},{"include":"#lambda"},{"include":"#generator"},{"include":"#illegal-operator"},{"include":"#operator"},{"include":"#curly-braces"},{"include":"#item-access"},{"include":"#list"},{"include":"#odd-function-call"},{"include":"#round-braces"},{"include":"#function-call"},{"include":"#builtin-functions"},{"include":"#builtin-types"},{"include":"#builtin-exceptions"},{"include":"#magic-names"},{"include":"#special-names"},{"include":"#illegal-names"},{"include":"#special-variables"},{"include":"#ellipsis"},{"include":"#punctuation"},{"include":"#line-continuation"}]},"expression-base":{"patterns":[{"include":"#comments"},{"include":"#expression-bare"},{"include":"#line-continuation"}]},"f-expression":{"patterns":[{"include":"#expression-bare"},{"include":"#member-access"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"}]},"fregexp-base-expression":{"patterns":[{"include":"#fregexp-quantifier"},{"include":"#fstring-formatting-braces"},{"match":"\\\\{.*?}"},{"include":"#regexp-base-common"}]},"fregexp-quantifier":{"match":"\\\\{\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}}","name":"keyword.operator.quantifier.regexp"},"fstring-fnorm-quoted-multi-line":{"begin":"\\\\b([Ff])([BUbu])?('''|\\"\\"\\")","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.multi.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.multi.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-multi-core"}]},"fstring-fnorm-quoted-single-line":{"begin":"\\\\b([Ff])([BUbu])?(([\\"']))","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.single.python storage.type.string.python"},"2":{"name":"invalid.illegal.prefix.python"},"3":{"name":"punctuation.definition.string.begin.python string.interpolated.python string.quoted.single.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-single-core"}]},"fstring-formatting":{"patterns":[{"include":"#fstring-formatting-braces"},{"include":"#fstring-formatting-singe-brace"}]},"fstring-formatting-braces":{"patterns":[{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"2":{"name":"invalid.illegal.brace.python"},"3":{"name":"constant.character.format.placeholder.other.python"}},"match":"(\\\\{)(\\\\s*?)(})"},{"match":"(\\\\{\\\\{|}})","name":"constant.character.escape.python"}]},"fstring-formatting-singe-brace":{"match":"(}(?!}))","name":"invalid.illegal.brace.python"},"fstring-guts":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"},{"include":"#fstring-formatting"}]},"fstring-illegal-multi-brace":{"patterns":[{"include":"#impossible"}]},"fstring-illegal-single-brace":{"begin":"(\\\\{)(?=[^\\\\n}]*$\\\\n?)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})|(?=\\\\n)","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-single"},{"include":"#f-expression"}]},"fstring-multi-brace":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-multi"},{"include":"#f-expression"}]},"fstring-multi-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|'''|\\"\\"\\"))|\\\\n","name":"string.interpolated.python string.quoted.multi.python"},"fstring-normf-quoted-multi-line":{"begin":"\\\\b([BUbu])([Ff])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"string.interpolated.python string.quoted.multi.python storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python string.quoted.multi.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-multi-core"}]},"fstring-normf-quoted-single-line":{"begin":"\\\\b([BUbu])([Ff])(([\\"']))","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"string.interpolated.python string.quoted.single.python storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python string.quoted.single.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-single-core"}]},"fstring-raw-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#fstring-formatting"}]},"fstring-raw-multi-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|'''|\\"\\"\\"))|\\\\n","name":"string.interpolated.python string.quoted.raw.multi.python"},"fstring-raw-quoted-multi-line":{"begin":"\\\\b([Rr][Ff]|[Ff][Rr])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.raw.multi.python storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python string.quoted.raw.multi.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.multi.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-raw-guts"},{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"include":"#fstring-raw-multi-core"}]},"fstring-raw-quoted-single-line":{"begin":"\\\\b([Rr][Ff]|[Ff][Rr])(([\\"']))","beginCaptures":{"1":{"name":"string.interpolated.python string.quoted.raw.single.python storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python string.quoted.raw.single.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python string.interpolated.python string.quoted.raw.single.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.fstring.python","patterns":[{"include":"#fstring-raw-guts"},{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"include":"#fstring-raw-single-core"}]},"fstring-raw-single-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|([\\"'])|((?<!\\\\\\\\)\\\\n)))|\\\\n","name":"string.interpolated.python string.quoted.raw.single.python"},"fstring-single-brace":{"begin":"(\\\\{)","beginCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"end":"(})|(?=\\\\n)","endCaptures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"patterns":[{"include":"#fstring-terminator-single"},{"include":"#f-expression"}]},"fstring-single-core":{"match":"(.+?)($(\\\\n?)|(?=[\\\\\\\\{}]|([\\"'])|((?<!\\\\\\\\)\\\\n)))|\\\\n","name":"string.interpolated.python string.quoted.single.python"},"fstring-terminator-multi":{"patterns":[{"match":"(=(![ars])?)(?=})","name":"storage.type.format.python"},{"match":"(=?![ars])(?=})","name":"storage.type.format.python"},{"captures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"match":"(=?(?:![ars])?)(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-multi-tail"}]},"fstring-terminator-multi-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})","patterns":[{"include":"#fstring-illegal-multi-brace"},{"include":"#fstring-multi-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"fstring-terminator-single":{"patterns":[{"match":"(=(![ars])?)(?=})","name":"storage.type.format.python"},{"match":"(=?![ars])(?=})","name":"storage.type.format.python"},{"captures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"match":"(=?(?:![ars])?)(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)(?=})"},{"include":"#fstring-terminator-single-tail"}]},"fstring-terminator-single-tail":{"begin":"(=?(?:![ars])?)(:)(?=.*?\\\\{)","beginCaptures":{"1":{"name":"storage.type.format.python"},"2":{"name":"storage.type.format.python"}},"end":"(?=})|(?=\\\\n)","patterns":[{"include":"#fstring-illegal-single-brace"},{"include":"#fstring-single-brace"},{"match":"([%EFGXb-gnosx])(?=})","name":"storage.type.format.python"},{"match":"(\\\\.\\\\d+)","name":"storage.type.format.python"},{"match":"(,)","name":"storage.type.format.python"},{"match":"(\\\\d+)","name":"storage.type.format.python"},{"match":"(#)","name":"storage.type.format.python"},{"match":"([- +])","name":"storage.type.format.python"},{"match":"([<=>^])","name":"storage.type.format.python"},{"match":"(\\\\w)","name":"storage.type.format.python"}]},"function-arguments":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.python"}},"contentName":"meta.function-call.arguments.python","end":"(?=\\\\))(?!\\\\)\\\\s*\\\\()","patterns":[{"match":"(,)","name":"punctuation.separator.arguments.python"},{"captures":{"1":{"name":"keyword.operator.unpacking.arguments.python"}},"match":"(?:(?<=[(,])|^)\\\\s*(\\\\*{1,2})"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"captures":{"1":{"name":"variable.parameter.function-call.python"},"2":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)(?!=)"},{"match":"=(?!=)","name":"keyword.operator.assignment.python"},{"include":"#expression"},{"captures":{"1":{"name":"punctuation.definition.arguments.end.python"},"2":{"name":"punctuation.definition.arguments.begin.python"}},"match":"\\\\s*(\\\\))\\\\s*(\\\\()"}]},"function-call":{"begin":"\\\\b(?=([_[:alpha:]]\\\\w*)\\\\s*(\\\\())","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.function-call.python","patterns":[{"include":"#special-variables"},{"include":"#function-name"},{"include":"#function-arguments"}]},"function-declaration":{"begin":"\\\\s*(?:\\\\b(async)\\\\s+)?\\\\b(def)\\\\s+(?=[_[:alpha:]]\\\\p{word}*\\\\s*\\\\()","beginCaptures":{"1":{"name":"storage.type.function.async.python"},"2":{"name":"storage.type.function.python"}},"end":"(:|(?=[\\\\n\\"#']))","endCaptures":{"1":{"name":"punctuation.section.function.begin.python"}},"name":"meta.function.python","patterns":[{"include":"#function-def-name"},{"include":"#parameters"},{"include":"#line-continuation"},{"include":"#return-annotation"}]},"function-def-name":{"patterns":[{"include":"#illegal-object-name"},{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"entity.name.function.python"}]},"function-name":{"patterns":[{"include":"#builtin-possible-callables"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.function-call.generic.python"}]},"generator":{"begin":"\\\\bfor\\\\b","beginCaptures":{"0":{"name":"keyword.control.flow.python"}},"end":"\\\\bin\\\\b","endCaptures":{"0":{"name":"keyword.control.flow.python"}},"patterns":[{"include":"#expression"}]},"illegal-anno":{"match":"->","name":"invalid.illegal.annotation.python"},"illegal-names":{"captures":{"1":{"name":"keyword.control.flow.python"},"2":{"name":"keyword.control.import.python"}},"match":"\\\\b(?:(and|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|in|is|(?<=\\\\.)lambda|lambda(?=\\\\s*[.=])|nonlocal|not|or|pass|raise|return|try|while|with|yield)|(as|import))\\\\b"},"illegal-object-name":{"match":"\\\\b(True|False|None)\\\\b","name":"keyword.illegal.name.python"},"illegal-operator":{"patterns":[{"match":"&&|\\\\|\\\\||--|\\\\+\\\\+","name":"invalid.illegal.operator.python"},{"match":"[$?]","name":"invalid.illegal.operator.python"},{"match":"!\\\\b","name":"invalid.illegal.operator.python"}]},"import":{"patterns":[{"begin":"\\\\b(?<!\\\\.)(from)\\\\b(?=.+import)","beginCaptures":{"1":{"name":"keyword.control.import.python"}},"end":"$|(?=import)","patterns":[{"match":"\\\\.+","name":"punctuation.separator.period.python"},{"include":"#expression"}]},{"begin":"\\\\b(?<!\\\\.)(import)\\\\b","beginCaptures":{"1":{"name":"keyword.control.import.python"}},"end":"$","patterns":[{"match":"\\\\b(?<!\\\\.)as\\\\b","name":"keyword.control.import.python"},{"include":"#expression"}]}]},"impossible":{"match":"$.^"},"inheritance-identifier":{"captures":{"1":{"name":"entity.other.inherited-class.python"}},"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b"},"inheritance-name":{"patterns":[{"include":"#lambda-incomplete"},{"include":"#builtin-possible-callables"},{"include":"#inheritance-identifier"}]},"item-access":{"patterns":[{"begin":"\\\\b(?=[_[:alpha:]]\\\\w*\\\\s*\\\\[)","end":"(])","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"name":"meta.item-access.python","patterns":[{"include":"#item-name"},{"include":"#item-index"},{"include":"#expression"}]}]},"item-index":{"begin":"(\\\\[)","beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.python"}},"contentName":"meta.item-access.arguments.python","end":"(?=])","patterns":[{"match":":","name":"punctuation.separator.slice.python"},{"include":"#expression"}]},"item-name":{"patterns":[{"include":"#special-variables"},{"include":"#builtin-functions"},{"include":"#special-names"},{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.indexed-name.python"}]},"lambda":{"patterns":[{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"((?<=\\\\.)lambda|lambda(?=\\\\s*[.=]))"},{"captures":{"1":{"name":"storage.type.function.lambda.python"}},"match":"\\\\b(lambda)\\\\s*?(?=[\\\\n,]|$)"},{"begin":"\\\\b(lambda)\\\\b","beginCaptures":{"1":{"name":"storage.type.function.lambda.python"}},"contentName":"meta.function.lambda.parameters.python","end":"(:)|(\\\\n)","endCaptures":{"1":{"name":"punctuation.section.function.lambda.begin.python"}},"name":"meta.lambda-function.python","patterns":[{"match":"/","name":"keyword.operator.positional.parameter.python"},{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.parameter.python"},{"include":"#lambda-nested-incomplete"},{"include":"#illegal-names"},{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.parameters.python"}},"match":"([_[:alpha:]]\\\\w*)\\\\s*(?:(,)|(?=:|$))"},{"include":"#comments"},{"include":"#backticks"},{"include":"#illegal-anno"},{"include":"#lambda-parameter-with-default"},{"include":"#line-continuation"},{"include":"#illegal-operator"}]}]},"lambda-incomplete":{"match":"\\\\blambda(?=\\\\s*[),])","name":"storage.type.function.lambda.python"},"lambda-nested-incomplete":{"match":"\\\\blambda(?=\\\\s*[),:])","name":"storage.type.function.lambda.python"},"lambda-parameter-with-default":{"begin":"\\\\b([_[:alpha:]]\\\\w*)\\\\s*(=)","beginCaptures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"keyword.operator.python"}},"end":"(,)|(?=:|$)","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"}]},"line-continuation":{"patterns":[{"captures":{"1":{"name":"punctuation.separator.continuation.line.python"},"2":{"name":"invalid.illegal.line.continuation.python"}},"match":"(\\\\\\\\)\\\\s*(\\\\S.*$\\\\n?)"},{"begin":"(\\\\\\\\)\\\\s*$\\\\n?","beginCaptures":{"1":{"name":"punctuation.separator.continuation.line.python"}},"end":"(?=^\\\\s*$)|(?!(\\\\s*[Rr]?('''|\\"\\"\\"|[\\"']))|\\\\G()$)","patterns":[{"include":"#regexp"},{"include":"#string"}]}]},"list":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.list.begin.python"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.list.end.python"}},"patterns":[{"include":"#expression"}]},"literal":{"patterns":[{"match":"\\\\b(True|False|None|NotImplemented|Ellipsis)\\\\b","name":"constant.language.python"},{"include":"#number"}]},"loose-default":{"begin":"(=)","beginCaptures":{"1":{"name":"keyword.operator.python"}},"end":"(,)|(?=\\\\))","endCaptures":{"1":{"name":"punctuation.separator.parameters.python"}},"patterns":[{"include":"#expression"}]},"magic-function-names":{"captures":{"1":{"name":"support.function.magic.python"}},"match":"\\\\b(__(?:abs|add|aenter|aexit|aiter|and|anext|await|bool|call|ceil|class_getitem|cmp|coerce|complex|contains|copy|deepcopy|del|delattr|delete|delitem|delslice|dir|div|divmod|enter|eq|exit|float|floor|floordiv|format|get??|getattr|getattribute|getinitargs|getitem|getnewargs|getslice|getstate|gt|hash|hex|iadd|iand|idiv|ifloordiv||ilshift|imod|imul|index|init|instancecheck|int|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|len??|long|lshift|lt|missing|mod|mul|neg??|new|next|nonzero|oct|or|pos|pow|radd|rand|rdiv|rdivmod|reduce|reduce_ex|repr|reversed|rfloordiv||rlshift|rmod|rmul|ror|round|rpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|set_name|setslice|setstate|sizeof|str|sub|subclasscheck|truediv|trunc|unicode|xor|matmul|rmatmul|imatmul|init_subclass|set_name|fspath|bytes|prepare|length_hint)__)\\\\b"},"magic-names":{"patterns":[{"include":"#magic-function-names"},{"include":"#magic-variable-names"}]},"magic-variable-names":{"captures":{"1":{"name":"support.variable.magic.python"}},"match":"\\\\b(__(?:all|annotations|bases|builtins|class|closure|code|debug|defaults|dict|doc|file|func|globals|kwdefaults|match_args|members|metaclass|methods|module|mro|mro_entries|name|qualname|post_init|self|signature|slots|subclasses|version|weakref|wrapped|classcell|spec|path|package|future|traceback)__)\\\\b"},"member-access":{"begin":"(\\\\.)\\\\s*(?!\\\\.)","beginCaptures":{"1":{"name":"punctuation.separator.period.python"}},"end":"(?<=\\\\S)(?=\\\\W)|(^|(?<=\\\\s))(?=[^\\\\\\\\\\\\w\\\\s])|$","name":"meta.member.access.python","patterns":[{"include":"#function-call"},{"include":"#member-access-base"},{"include":"#member-access-attribute"}]},"member-access-attribute":{"match":"\\\\b([_[:alpha:]]\\\\w*)\\\\b","name":"meta.attribute.python"},"member-access-base":{"patterns":[{"include":"#magic-names"},{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#special-names"},{"include":"#line-continuation"},{"include":"#item-access"}]},"member-access-class":{"begin":"(\\\\.)\\\\s*(?!\\\\.)","beginCaptures":{"1":{"name":"punctuation.separator.period.python"}},"end":"(?<=\\\\S)(?=\\\\W)|$","name":"meta.member.access.python","patterns":[{"include":"#call-wrapper-inheritance"},{"include":"#member-access-base"},{"include":"#inheritance-identifier"}]},"number":{"name":"constant.numeric.python","patterns":[{"include":"#number-float"},{"include":"#number-dec"},{"include":"#number-hex"},{"include":"#number-oct"},{"include":"#number-bin"},{"include":"#number-long"},{"match":"\\\\b[0-9]+\\\\w+","name":"invalid.illegal.name.python"}]},"number-bin":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Bb])(_?[01])+\\\\b","name":"constant.numeric.bin.python"},"number-dec":{"captures":{"1":{"name":"storage.type.imaginary.number.python"},"2":{"name":"invalid.illegal.dec.python"}},"match":"(?<![.\\\\w])(?:[1-9](?:_?[0-9])*|0+|[0-9](?:_?[0-9])*([Jj])|0([0-9]+)(?![.Ee]))\\\\b","name":"constant.numeric.dec.python"},"number-float":{"captures":{"1":{"name":"storage.type.imaginary.number.python"}},"match":"(?<!\\\\w)(?:(?:\\\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\\\.[0-9](?:_?[0-9])*|[0-9](?:_?[0-9])*\\\\.)(?:[Ee][-+]?[0-9](?:_?[0-9])*)?|[0-9](?:_?[0-9])*[Ee][-+]?[0-9](?:_?[0-9])*)([Jj])?\\\\b","name":"constant.numeric.float.python"},"number-hex":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Xx])(_?\\\\h)+\\\\b","name":"constant.numeric.hex.python"},"number-long":{"captures":{"2":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])([1-9][0-9]*|0)([Ll])\\\\b","name":"constant.numeric.bin.python"},"number-oct":{"captures":{"1":{"name":"storage.type.number.python"}},"match":"(?<![.\\\\w])(0[Oo])(_?[0-7])+\\\\b","name":"constant.numeric.oct.python"},"odd-function-call":{"begin":"(?<=[])])\\\\s*(?=\\\\()","end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.arguments.end.python"}},"patterns":[{"include":"#function-arguments"}]},"operator":{"captures":{"1":{"name":"keyword.operator.logical.python"},"2":{"name":"keyword.control.flow.python"},"3":{"name":"keyword.operator.bitwise.python"},"4":{"name":"keyword.operator.arithmetic.python"},"5":{"name":"keyword.operator.comparison.python"},"6":{"name":"keyword.operator.assignment.python"}},"match":"\\\\b(?<!\\\\.)(?:(and|or|not|in|is)|(for|if|else|await|yield(?:\\\\s+from)?))(?!\\\\s*:)\\\\b|(<<|>>|[\\\\&^|~])|(\\\\*\\\\*|[-%*+]|//|[/@])|(!=|==|>=|<=|[<>])|(:=)"},"parameter-special":{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"variable.parameter.function.language.special.self.python"},"3":{"name":"variable.parameter.function.language.special.cls.python"},"4":{"name":"punctuation.separator.parameters.python"}},"match":"\\\\b((self)|(cls))\\\\b\\\\s*(?:(,)|(?=\\\\)))"},"parameters":{"begin":"(\\\\()","beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.python"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.parameters.end.python"}},"name":"meta.function.parameters.python","patterns":[{"match":"/","name":"keyword.operator.positional.parameter.python"},{"match":"(\\\\*\\\\*?)","name":"keyword.operator.unpacking.parameter.python"},{"include":"#lambda-incomplete"},{"include":"#illegal-names"},{"include":"#illegal-object-name"},{"include":"#parameter-special"},{"captures":{"1":{"name":"variable.parameter.function.language.python"},"2":{"name":"punctuation.separator.parameters.python"}},"match":"([_[:alpha:]]\\\\w*)\\\\s*(?:(,)|(?=[\\\\n#)=]))"},{"include":"#comments"},{"include":"#loose-default"},{"include":"#annotated-parameter"}]},"punctuation":{"patterns":[{"match":":","name":"punctuation.separator.colon.python"},{"match":",","name":"punctuation.separator.element.python"}]},"regexp":{"patterns":[{"include":"#regexp-single-three-line"},{"include":"#regexp-double-three-line"},{"include":"#regexp-single-one-line"},{"include":"#regexp-double-one-line"}]},"regexp-backreference":{"captures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.begin.regexp"},"2":{"name":"entity.name.tag.named.backreference.regexp"},"3":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.backreference.named.end.regexp"}},"match":"(\\\\()(\\\\?P=\\\\w+(?:\\\\s+\\\\p{alnum}+)?)(\\\\))","name":"meta.backreference.named.regexp"},"regexp-backreference-number":{"captures":{"1":{"name":"entity.name.tag.backreference.regexp"}},"match":"(\\\\\\\\[1-9]\\\\d?)","name":"meta.backreference.regexp"},"regexp-base-common":{"patterns":[{"match":"\\\\.","name":"support.other.match.any.regexp"},{"match":"\\\\^","name":"support.other.match.begin.regexp"},{"match":"\\\\$","name":"support.other.match.end.regexp"},{"match":"[*+?]\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.disjunction.regexp"},{"include":"#regexp-escape-sequence"}]},"regexp-base-expression":{"patterns":[{"include":"#regexp-quantifier"},{"include":"#regexp-base-common"}]},"regexp-charecter-set-escapes":{"patterns":[{"match":"\\\\\\\\[\\\\\\\\abfnrtv]","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-special"},{"match":"\\\\\\\\([0-7]{1,3})","name":"constant.character.escape.regexp"},{"include":"#regexp-escape-character"},{"include":"#regexp-escape-unicode"},{"include":"#regexp-escape-catchall"}]},"regexp-double-one-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\")|(?<!\\\\\\\\)(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.single.python","patterns":[{"include":"#double-one-regexp-expression"}]},"regexp-double-three-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(\\"\\"\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\"\\"\\")","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.multi.python","patterns":[{"include":"#double-three-regexp-expression"}]},"regexp-escape-catchall":{"match":"\\\\\\\\(.|\\\\n)","name":"constant.character.escape.regexp"},"regexp-escape-character":{"match":"\\\\\\\\(x\\\\h{2}|0[0-7]{1,2}|[0-7]{3})","name":"constant.character.escape.regexp"},"regexp-escape-sequence":{"patterns":[{"include":"#regexp-escape-special"},{"include":"#regexp-escape-character"},{"include":"#regexp-escape-unicode"},{"include":"#regexp-backreference-number"},{"include":"#regexp-escape-catchall"}]},"regexp-escape-special":{"match":"\\\\\\\\([ABDSWZbdsw])","name":"support.other.escape.special.regexp"},"regexp-escape-unicode":{"match":"\\\\\\\\(u\\\\h{4}|U\\\\h{8})","name":"constant.character.unicode.regexp"},"regexp-flags":{"match":"\\\\(\\\\?[Laimsux]+\\\\)","name":"storage.modifier.flag.regexp"},"regexp-quantifier":{"match":"\\\\{(\\\\d+|\\\\d+,(\\\\d+)?|,\\\\d+)}","name":"keyword.operator.quantifier.regexp"},"regexp-single-one-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(')","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(')|(?<!\\\\\\\\)(\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.single.python","patterns":[{"include":"#single-one-regexp-expression"}]},"regexp-single-three-line":{"begin":"\\\\b(([Uu]r)|([Bb]r)|(r[Bb]?))(''')","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"storage.type.string.python"},"5":{"name":"punctuation.definition.string.begin.python"}},"end":"(''')","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.regexp.quoted.multi.python","patterns":[{"include":"#single-three-regexp-expression"}]},"return-annotation":{"begin":"(->)","beginCaptures":{"1":{"name":"punctuation.separator.annotation.result.python"}},"end":"(?=:)","patterns":[{"include":"#expression"}]},"round-braces":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.parenthesis.begin.python"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.parenthesis.end.python"}},"patterns":[{"include":"#expression"}]},"semicolon":{"patterns":[{"match":";$","name":"invalid.deprecated.semicolon.python"}]},"single-one-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"single-one-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"single-one-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#single-one-regexp-character-set"},{"include":"#single-one-regexp-comments"},{"include":"#regexp-flags"},{"include":"#single-one-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#single-one-regexp-lookahead"},{"include":"#single-one-regexp-lookahead-negative"},{"include":"#single-one-regexp-lookbehind"},{"include":"#single-one-regexp-lookbehind-negative"},{"include":"#single-one-regexp-conditional"},{"include":"#single-one-regexp-parentheses-non-capturing"},{"include":"#single-one-regexp-parentheses"}]},"single-one-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-one-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?='))|((?=(?<!\\\\\\\\)\\\\n))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-one-regexp-expression"}]},"single-three-regexp-character-set":{"patterns":[{"match":"\\\\[\\\\^?](?!.*?])"},{"begin":"(\\\\[)(\\\\^)?(])?","beginCaptures":{"1":{"name":"punctuation.character.set.begin.regexp constant.other.set.regexp"},"2":{"name":"keyword.operator.negation.regexp"},"3":{"name":"constant.character.set.regexp"}},"end":"(]|(?='''))","endCaptures":{"1":{"name":"punctuation.character.set.end.regexp constant.other.set.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.character.set.regexp","patterns":[{"include":"#regexp-charecter-set-escapes"},{"match":"\\\\N","name":"constant.character.set.regexp"}]}]},"single-three-regexp-comments":{"begin":"\\\\(\\\\?#","beginCaptures":{"0":{"name":"punctuation.comment.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"punctuation.comment.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"comment.regexp","patterns":[{"include":"#codetags"}]},"single-three-regexp-conditional":{"begin":"(\\\\()\\\\?\\\\((\\\\w+(?:\\\\s+\\\\p{alnum}+)?|\\\\d+)\\\\)","beginCaptures":{"0":{"name":"keyword.operator.conditional.regexp"},"1":{"name":"punctuation.parenthesis.conditional.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.conditional.negative.regexp punctuation.parenthesis.conditional.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-expression":{"patterns":[{"include":"#regexp-base-expression"},{"include":"#single-three-regexp-character-set"},{"include":"#single-three-regexp-comments"},{"include":"#regexp-flags"},{"include":"#single-three-regexp-named-group"},{"include":"#regexp-backreference"},{"include":"#single-three-regexp-lookahead"},{"include":"#single-three-regexp-lookahead-negative"},{"include":"#single-three-regexp-lookbehind"},{"include":"#single-three-regexp-lookbehind-negative"},{"include":"#single-three-regexp-conditional"},{"include":"#single-three-regexp-parentheses-non-capturing"},{"include":"#single-three-regexp-parentheses"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookahead":{"begin":"(\\\\()\\\\?=","beginCaptures":{"0":{"name":"keyword.operator.lookahead.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookahead.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookahead-negative":{"begin":"(\\\\()\\\\?!","beginCaptures":{"0":{"name":"keyword.operator.lookahead.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookahead.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookahead.negative.regexp punctuation.parenthesis.lookahead.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookbehind":{"begin":"(\\\\()\\\\?<=","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-lookbehind-negative":{"begin":"(\\\\()\\\\?<!","beginCaptures":{"0":{"name":"keyword.operator.lookbehind.negative.regexp"},"1":{"name":"punctuation.parenthesis.lookbehind.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"keyword.operator.lookbehind.negative.regexp punctuation.parenthesis.lookbehind.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-named-group":{"begin":"(\\\\()(\\\\?P<\\\\w+(?:\\\\s+\\\\p{alnum}+)?>)","beginCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.begin.regexp"},"2":{"name":"entity.name.tag.named.group.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.named.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"name":"meta.named.regexp","patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses":{"begin":"\\\\(","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"single-three-regexp-parentheses-non-capturing":{"begin":"\\\\(\\\\?:","beginCaptures":{"0":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.begin.regexp"}},"end":"(\\\\)|(?='''))","endCaptures":{"1":{"name":"support.other.parenthesis.regexp punctuation.parenthesis.non-capturing.end.regexp"},"2":{"name":"invalid.illegal.newline.python"}},"patterns":[{"include":"#single-three-regexp-expression"},{"include":"#comments-string-single-three"}]},"special-names":{"match":"\\\\b(_*\\\\p{upper}[_\\\\d]*\\\\p{upper})[[:upper:]\\\\d]*(_\\\\w*)?\\\\b","name":"constant.other.caps.python"},"special-variables":{"captures":{"1":{"name":"variable.language.special.self.python"},"2":{"name":"variable.language.special.cls.python"}},"match":"\\\\b(?<!\\\\.)(?:(self)|(cls))\\\\b"},"statement":{"patterns":[{"include":"#import"},{"include":"#class-declaration"},{"include":"#function-declaration"},{"include":"#generator"},{"include":"#statement-keyword"},{"include":"#assignment-operator"},{"include":"#decorator"},{"include":"#docstring-statement"},{"include":"#semicolon"}]},"statement-keyword":{"patterns":[{"match":"\\\\b((async\\\\s+)?\\\\s*def)\\\\b","name":"storage.type.function.python"},{"match":"\\\\b(?<!\\\\.)as\\\\b(?=.*[:\\\\\\\\])","name":"keyword.control.flow.python"},{"match":"\\\\b(?<!\\\\.)as\\\\b","name":"keyword.control.import.python"},{"match":"\\\\b(?<!\\\\.)(async|continue|del|assert|break|finally|for|from|elif|else|if|except|pass|raise|return|try|while|with)\\\\b","name":"keyword.control.flow.python"},{"match":"\\\\b(?<!\\\\.)(global|nonlocal)\\\\b","name":"storage.modifier.declaration.python"},{"match":"\\\\b(?<!\\\\.)(class)\\\\b","name":"storage.type.class.python"},{"captures":{"1":{"name":"keyword.control.flow.python"}},"match":"^\\\\s*(case|match)(?=\\\\s*([-\\"#'(+:\\\\[{\\\\w\\\\d]|$))\\\\b"}]},"string":{"patterns":[{"include":"#string-quoted-multi-line"},{"include":"#string-quoted-single-line"},{"include":"#string-bin-quoted-multi-line"},{"include":"#string-bin-quoted-single-line"},{"include":"#string-raw-quoted-multi-line"},{"include":"#string-raw-quoted-single-line"},{"include":"#string-raw-bin-quoted-multi-line"},{"include":"#string-raw-bin-quoted-single-line"},{"include":"#fstring-fnorm-quoted-multi-line"},{"include":"#fstring-fnorm-quoted-single-line"},{"include":"#fstring-normf-quoted-multi-line"},{"include":"#fstring-normf-quoted-single-line"},{"include":"#fstring-raw-quoted-multi-line"},{"include":"#fstring-raw-quoted-single-line"}]},"string-bin-quoted-multi-line":{"begin":"\\\\b([Bb])('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.binary.multi.python","patterns":[{"include":"#string-entity"}]},"string-bin-quoted-single-line":{"begin":"\\\\b([Bb])(([\\"']))","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.binary.single.python","patterns":[{"include":"#string-entity"}]},"string-brace-formatting":{"patterns":[{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"3":{"name":"storage.type.format.python"},"4":{"name":"storage.type.format.python"}},"match":"(\\\\{\\\\{|}}|\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"']+])*(![ars])?(:\\\\w?[<=>^]?[- +]?#?\\\\d*,?(\\\\.\\\\d+)?[%EFGXb-gnosx]?)?})","name":"meta.format.brace.python"},{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"},"3":{"name":"storage.type.format.python"},"4":{"name":"storage.type.format.python"}},"match":"(\\\\{\\\\w*(\\\\.[_[:alpha:]]\\\\w*|\\\\[[^]\\"']+])*(![ars])?(:)[^\\\\n\\"'{}]*(?:\\\\{[^\\\\n\\"'}]*?}[^\\\\n\\"'{}]*)*})","name":"meta.format.brace.python"}]},"string-consume-escape":{"match":"\\\\\\\\[\\\\n\\"'\\\\\\\\]"},"string-entity":{"patterns":[{"include":"#escape-sequence"},{"include":"#string-line-continuation"},{"include":"#string-formatting"}]},"string-formatting":{"captures":{"1":{"name":"constant.character.format.placeholder.other.python"}},"match":"(%(\\\\([\\\\w\\\\s]*\\\\))?[- #+0]*(\\\\d+|\\\\*)?(\\\\.(\\\\d+|\\\\*))?([Lhl])?[%EFGXa-giorsux])","name":"meta.format.percent.python"},"string-line-continuation":{"match":"\\\\\\\\$","name":"constant.language.python"},"string-multi-bad-brace1-formatting-raw":{"begin":"(?=\\\\{%(.*?(?!'''|\\"\\"\\"))%})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"}]},"string-multi-bad-brace1-formatting-unicode":{"begin":"(?=\\\\{%(.*?(?!'''|\\"\\"\\"))%})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"string-multi-bad-brace2-formatting-raw":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!'''|\\"\\"\\")})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-multi-bad-brace2-formatting-unicode":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!'''|\\"\\"\\")[^!.:\\\\[}\\\\w]).*?(?!'''|\\"\\"\\")})","end":"(?='''|\\"\\"\\")","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"}]},"string-quoted-multi-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?('''|\\"\\"\\")","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.multi.python","patterns":[{"include":"#string-multi-bad-brace1-formatting-unicode"},{"include":"#string-multi-bad-brace2-formatting-unicode"},{"include":"#string-unicode-guts"}]},"string-quoted-single-line":{"begin":"(?:\\\\b([Rr])(?=[Uu]))?([Uu])?(([\\"']))","beginCaptures":{"1":{"name":"invalid.illegal.prefix.python"},"2":{"name":"storage.type.string.python"},"3":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\3)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.single.python","patterns":[{"include":"#string-single-bad-brace1-formatting-unicode"},{"include":"#string-single-bad-brace2-formatting-unicode"},{"include":"#string-unicode-guts"}]},"string-raw-bin-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-raw-bin-quoted-multi-line":{"begin":"\\\\b(R[Bb]|[Bb]R)('''|\\"\\"\\")","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.binary.multi.python","patterns":[{"include":"#string-raw-bin-guts"}]},"string-raw-bin-quoted-single-line":{"begin":"\\\\b(R[Bb]|[Bb]R)(([\\"']))","beginCaptures":{"1":{"name":"storage.type.string.python"},"2":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\2)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.binary.single.python","patterns":[{"include":"#string-raw-bin-guts"}]},"string-raw-guts":{"patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"},{"include":"#string-brace-formatting"}]},"string-raw-quoted-multi-line":{"begin":"\\\\b(([Uu]R)|(R))('''|\\"\\"\\")","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\4)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.multi.python","patterns":[{"include":"#string-multi-bad-brace1-formatting-raw"},{"include":"#string-multi-bad-brace2-formatting-raw"},{"include":"#string-raw-guts"}]},"string-raw-quoted-single-line":{"begin":"\\\\b(([Uu]R)|(R))(([\\"']))","beginCaptures":{"2":{"name":"invalid.deprecated.prefix.python"},"3":{"name":"storage.type.string.python"},"4":{"name":"punctuation.definition.string.begin.python"}},"end":"(\\\\4)|((?<!\\\\\\\\)\\\\n)","endCaptures":{"1":{"name":"punctuation.definition.string.end.python"},"2":{"name":"invalid.illegal.newline.python"}},"name":"string.quoted.raw.single.python","patterns":[{"include":"#string-single-bad-brace1-formatting-raw"},{"include":"#string-single-bad-brace2-formatting-raw"},{"include":"#string-raw-guts"}]},"string-single-bad-brace1-formatting-raw":{"begin":"(?=\\\\{%(.*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n)))%})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#string-consume-escape"}]},"string-single-bad-brace1-formatting-unicode":{"begin":"(?=\\\\{%(.*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n)))%})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#escape-sequence"},{"include":"#string-line-continuation"}]},"string-single-bad-brace2-formatting-raw":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))[^!.:\\\\[}\\\\w]).*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#string-consume-escape"},{"include":"#string-formatting"}]},"string-single-bad-brace2-formatting-unicode":{"begin":"(?!\\\\{\\\\{)(?=\\\\{(\\\\w*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))[^!.:\\\\[}\\\\w]).*?(?!([\\"'])|((?<!\\\\\\\\)\\\\n))})","end":"(?=([\\"'])|((?<!\\\\\\\\)\\\\n))","patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"}]},"string-unicode-guts":{"patterns":[{"include":"#escape-sequence-unicode"},{"include":"#string-entity"},{"include":"#string-brace-formatting"}]}},"scopeName":"source.python","aliases":["py"]}`)),i=[t];export{i as default};
|
|
2
|
+
|
|
3
|
+
//# debugId=f1f0da1d-2fa1-457e-99ec-79b74cb08586
|
|
@@ -1 +1,3 @@
|
|
|
1
1
|
(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="95347ddc-a3c5-4aaf-9798-2e3c3b4743ee",e._sentryDebugIdIdentifier="sentry-dbid-95347ddc-a3c5-4aaf-9798-2e3c3b4743ee")}catch{}})();const a=Object.freeze(JSON.parse(`{"displayName":"R","fileTypes":["R","r","Rprofile"],"foldingStartMarker":"\\\\{\\\\s*(?:#|$)","foldingStopMarker":"^\\\\s*}","name":"r","patterns":[{"include":"#roxygen-example"},{"include":"#basic"}],"repository":{"basic":{"patterns":[{"include":"#roxygen"},{"include":"#comment"},{"include":"#expression"}]},"basic-roxygen-example":{"patterns":[{"match":"^\\\\s*#+'","name":"comment.line"},{"include":"#comment"},{"include":"#expression"}]},"brackets":{"patterns":[{"begin":"\\\\{","end":"}","name":"meta.bracket","patterns":[{"include":"#basic"}]},{"begin":"\\\\[","end":"]","name":"meta.bracket","patterns":[{"captures":{"1":{"name":"variable.parameter"}},"match":"([.\\\\w]+)\\\\s*(?==[^=])"},{"include":"#basic"}]},{"begin":"\\\\(","end":"\\\\)","name":"meta.bracket","patterns":[{"captures":{"1":{"name":"variable.parameter"}},"match":"([.\\\\w]+)\\\\s*(?==[^=])"},{"include":"#basic"}]}]},"comment":{"match":"#.*","name":"comment.line"},"escape-code":{"match":"\\\\\\\\[\\"'\\\\\\\\\`abefnrtv]","name":"constant.character.escape"},"escape-hex":{"match":"\\\\\\\\x\\\\h+","name":"constant.numeric"},"escape-invalid":{"match":"\\\\\\\\.","name":"invalid"},"escape-octal":{"match":"\\\\\\\\\\\\d{1,3}","name":"constant.character.escape"},"escape-unicode":{"match":"\\\\\\\\[Uu](?:\\\\h+|\\\\{\\\\h+})","name":"constant.character.escape"},"escapes":{"patterns":[{"include":"#escape-code"},{"include":"#escape-hex"},{"include":"#escape-octal"},{"include":"#escape-unicode"},{"include":"#escape-invalid"}]},"expression":{"patterns":[{"include":"#brackets"},{"include":"#raw-strings"},{"include":"#strings"},{"include":"#function-definition"},{"include":"#keywords"},{"include":"#namespace-call"},{"include":"#function-call"},{"include":"#identifiers"},{"include":"#numbers"},{"include":"#operators"}]},"function-call":{"captures":{"0":{"name":"meta.function-call"},"1":{"name":"entity.name.function"}},"match":"([.\\\\w]+)(?=\\\\()"},"function-definition":{"begin":"(function)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.other"},"2":{"name":"meta.bracket"}},"end":"(\\\\))","endCaptures":{"1":{"name":"meta.bracket"}},"name":"meta.function.definition","patterns":[{"begin":"([.\\\\w]+)","beginCaptures":{"1":{"name":"variable.parameter"}},"end":"(?=[),])","patterns":[{"include":"#basic"}]},{"include":"#basic"}]},"identifier-quoted":{"begin":"\`","end":"\`","name":"variable.object","patterns":[{"match":"\\\\\\\\\`"}]},"identifier-syntactic":{"match":"[.\\\\p{L}\\\\p{Nl}][.\\\\p{L}\\\\p{Nl}\\\\p{Mn}\\\\p{Mc}\\\\d\\\\p{Pc}]*","name":"variable.object"},"identifiers":{"patterns":[{"include":"#identifier-syntactic"},{"include":"#identifier-quoted"}]},"keywords":{"patterns":[{"include":"#keywords-control"},{"include":"#keywords-builtin"},{"include":"#keywords-constant"}]},"keywords-builtin":{"match":"(?:setGroupGeneric|setRefClass|setGeneric|NextMethod|setMethod|UseMethod|tryCatch|setClass|warning|require|library|R6Class|return|switch|attach|detach|source|stop|try)(?=\\\\()","name":"keyword.other"},"keywords-constant":{"match":"(?:NA_character_|NA_integer_|NA_complex_|NA_real_|TRUE|FALSE|NULL|Inf|NaN|NA)\\\\b","name":"constant.language"},"keywords-control":{"match":"(?:\\\\\\\\|function|if|else|in|break|next|repeat|for|while)\\\\b","name":"keyword"},"latex":{"patterns":[{"match":"\\\\\\\\\\\\w+","name":"keyword.other"}]},"markdown":{"patterns":[{"begin":"(\`{3,})\\\\s*(.*)","beginCaptures":{"1":{"name":"comment.line"},"2":{"name":"entity.name.section"}},"end":"(\\\\1)","endCaptures":{"1":{"name":"comment.line"}},"patterns":[{"match":"^\\\\s*#+'","name":"comment.line"}]},{"captures":{"1":{"name":"meta.bracket"},"2":{"name":"variable.object"},"3":{"name":"keyword.operator"},"4":{"name":"entity.name.function"},"5":{"name":"meta.bracket"},"6":{"name":"meta.bracket"}},"match":"(\\\\[)(?:(\\\\w+)(:{2,3}))?(\\\\w+)(\\\\(\\\\))?(])"},{"match":"(\\\\s+|^)(__.+?__)\\\\b","name":"markdown.bold"},{"match":"(\\\\s+|^)(_(?=[^_])(?:\\\\\\\\.|[^\\\\\\\\_])*?_)\\\\b","name":"markdown.italic"},{"match":"(\\\\*\\\\*.+?\\\\*\\\\*)","name":"markdown.bold"},{"match":"(\\\\*(?=[^*\\\\s])(?:\\\\\\\\.|[^*\\\\\\\\])*?\\\\*)","name":"markdown.italic"},{"match":"(\`(?:[^\\\\\\\\\`]|\\\\\\\\.)*\`)","name":"markup.quote"},{"match":"(<)([^>]*)(>)","name":"markup.underline.link"}]},"namespace-call":{"captures":{"1":{"name":"entity.name.namespace.r"},"2":{"name":"keyword.operator"}},"match":"(?<![.0-9A-Z_a-z])([.A-Z_a-z][.0-9A-Z_a-z]*)(:::?)"},"numbers":{"patterns":[{"match":"0[Xx]\\\\h+(?:p[-+]?\\\\d+)?[Li]?","name":"constant.numeric"},{"match":"(?:\\\\d+(?:\\\\.\\\\d*)?|\\\\.\\\\d+)(?:[Ee][-+]?\\\\d*)?[Li]?","name":"constant.numeric"}]},"operators":{"match":"%.*?%|:::?|:=|\\\\|>|=>|%%|>=|<=|==|!=|<<-|->>?|<-|\\\\|\\\\||&&|[-+=]|\\\\*\\\\*?|[!$\\\\&,/:<>?@^|~]","name":"keyword.operator"},"qqstring":{"begin":"\\"","end":"\\"","name":"string.quoted.double","patterns":[{"include":"#escapes"}]},"qstring":{"begin":"'","end":"'","name":"string.quoted.single","patterns":[{"include":"#escapes"}]},"raw-strings":{"name":"string.quoted.other","patterns":[{"begin":"[Rr]\\"(-*)\\\\{","end":"}\\\\1\\"","name":"string.quoted.other"},{"begin":"[Rr]'(-*)\\\\{","end":"}\\\\1'","name":"string.quoted.other"},{"begin":"[Rr]\\"(-*)\\\\[","end":"]\\\\1\\"","name":"string.quoted.other"},{"begin":"[Rr]'(-*)\\\\[","end":"]\\\\1'","name":"string.quoted.other"},{"begin":"[Rr]\\"(-*)\\\\(","end":"\\\\)\\\\1\\"","name":"string.quoted.other"},{"begin":"[Rr]'(-*)\\\\(","end":"\\\\)\\\\1'","name":"string.quoted.other"}]},"roxygen":{"begin":"^(\\\\s*#+')","beginCaptures":{"1":{"name":"comment.line.roxygen"}},"end":"$","patterns":[{"include":"#markdown"},{"include":"#roxygen-tokens"},{"include":"#latex"},{"match":".","name":"comment.line"}]},"roxygen-example":{"begin":"^(\\\\s*#+')\\\\s*(?:(@examples)\\\\s*|(@examplesIf)\\\\s+(.*))$","beginCaptures":{"1":{"name":"comment.line"},"2":{"name":"keyword.other"},"3":{"name":"keyword.other"},"4":{"patterns":[{"include":"#expression"}]}},"end":"^(?:\\\\s*(?=#+'\\\\s*@)|\\\\s*(?!#+'))","patterns":[{"match":"^\\\\s*#+'","name":"comment.line"},{"match":"[]()\\\\[{}]","name":"meta.bracket"},{"include":"#latex"},{"include":"#roxygen-tokens"},{"include":"#basic-roxygen-example"}]},"roxygen-tokens":{"patterns":[{"match":"@@","name":"constant.character.escape"},{"begin":"(@(?:param|field|slot))\\\\s*","beginCaptures":{"1":{"name":"keyword.other"}},"end":"\\\\s|$","patterns":[{"match":"([.\\\\w]+)","name":"variable.parameter"},{"match":",","name":"keyword.operator"}]},{"match":"@(?!@)\\\\w*","name":"keyword.other"}]},"strings":{"patterns":[{"include":"#qstring"},{"include":"#qqstring"}]}},"scopeName":"source.r"}`)),r=[a];export{r as default};
|
|
2
|
+
|
|
3
|
+
//# debugId=95347ddc-a3c5-4aaf-9798-2e3c3b4743ee
|
|
@@ -1 +1,3 @@
|
|
|
1
1
|
import{h as a}from"./html-derivative-C2Epw9Yg.js";import c from"./cpp-WTsyTmWk.js";import t from"./python-D7_Ztkaq.js";import{j as o}from"./javascript-D_ijBMSX.js";import{s as r}from"./app-CkT84si6.js";import s from"./yaml-jmrW97Mk.js";import l from"./cmake-DmzJtVCe.js";import i from"./ruby-DfvZI7yF.js";import"./html-COcRjUs1.js";import"./css-D-q0lhfR.js";import"./c-BxgHfdNM.js";import"./app.js";import"./xml-DCBoxqhY.js";import"./java-K8yEFi64.js";import"./sql-B8q9hRYB.js";import"./graphql-Bu7dAtew.js";import"./lua-DyIUvKwX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="215cce73-a3fe-423f-9de9-4d6e3af6c2a9",e._sentryDebugIdIdentifier="sentry-dbid-215cce73-a3fe-423f-9de9-4d6e3af6c2a9")}catch{}})();const d=Object.freeze(JSON.parse('{"displayName":"reStructuredText","name":"rst","patterns":[{"include":"#body"}],"repository":{"anchor":{"match":"^\\\\.{2}\\\\s+(_[^:]+:)\\\\s*","name":"entity.name.tag.anchor"},"block":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+\\\\S+::)(.*)","beginCaptures":{"2":{"name":"keyword.control"},"3":{"name":"variable"}},"end":"^(?!\\\\1\\\\s|\\\\s*$)","patterns":[{"include":"#block-param"},{"include":"#body"}]},"block-comment":{"begin":"^(\\\\s*)\\\\.{2}(\\\\s+|$)","end":"^(?:(?=\\\\S)|\\\\s*$)","name":"comment.block","patterns":[{"begin":"^\\\\s{3,}(?=\\\\S)","name":"comment.block","while":"^(?:\\\\s{3}.*|\\\\s*$)"}]},"block-param":{"patterns":[{"captures":{"1":{"name":"keyword.control"},"2":{"name":"variable.parameter"}},"match":"(:param\\\\s+(.+?):)(?:\\\\s|$)"},{"captures":{"1":{"name":"keyword.control"},"2":{"patterns":[{"match":"\\\\b(0x[A-Fa-f\\\\d]+|\\\\d+)\\\\b","name":"constant.numeric"},{"include":"#inline-markup"}]}},"match":"(:.+?:)(?:$|\\\\s+(.*))"}]},"blocks":{"patterns":[{"include":"#domains"},{"include":"#doctest"},{"include":"#code-block-cpp"},{"include":"#code-block-py"},{"include":"#code-block-console"},{"include":"#code-block-javascript"},{"include":"#code-block-yaml"},{"include":"#code-block-cmake"},{"include":"#code-block-kconfig"},{"include":"#code-block-ruby"},{"include":"#code-block-dts"},{"include":"#code-block"},{"include":"#doctest-block"},{"include":"#raw-html"},{"include":"#block"},{"include":"#literal-block"},{"include":"#block-comment"}]},"body":{"patterns":[{"include":"#title"},{"include":"#inline-markup"},{"include":"#anchor"},{"include":"#line-block"},{"include":"#replace-include"},{"include":"#footnote"},{"include":"#substitution"},{"include":"#blocks"},{"include":"#table"},{"include":"#simple-table"},{"include":"#options-list"}]},"bold":{"begin":"(?<=[\\"\'(<\\\\[{\\\\s]|^)\\\\*{2}[^*\\\\s]","end":"\\\\*{2}|^\\\\s*$","name":"markup.bold"},"citation":{"applyEndPatternLast":0,"begin":"(?<=[\\"\'(<\\\\[{\\\\s]|^)`[^`\\\\s]","end":"`_{0,2}|^\\\\s*$","name":"entity.name.tag"},"code-block":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)","beginCaptures":{"2":{"name":"keyword.control"}},"patterns":[{"include":"#block-param"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-cmake":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(cmake)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.cmake"}},"patterns":[{"include":"#block-param"},{"include":"source.cmake"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-console":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(console|shell|bash)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.console"}},"patterns":[{"include":"#block-param"},{"include":"source.shell"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-cpp":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(c|c\\\\+\\\\+|cpp|C|C\\\\+\\\\+|CPP|Cpp)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.cpp"}},"patterns":[{"include":"#block-param"},{"include":"source.cpp"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-dts":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(dts|DTS|devicetree)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.dts"}},"patterns":[{"include":"#block-param"},{"include":"source.dts"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-javascript":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(javascript)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.js"}},"patterns":[{"include":"#block-param"},{"include":"source.js"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-kconfig":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*([Kk]config)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.kconfig"}},"patterns":[{"include":"#block-param"},{"include":"source.kconfig"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-py":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(python)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.py"}},"patterns":[{"include":"#block-param"},{"include":"source.python"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-ruby":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(ruby)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.ruby"}},"patterns":[{"include":"#block-param"},{"include":"source.ruby"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"code-block-yaml":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+(code(?:|-block))::)\\\\s*(ya?ml)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"4":{"name":"variable.parameter.codeblock.yaml"}},"patterns":[{"include":"#block-param"},{"include":"source.yaml"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"doctest":{"begin":"^(>>>)\\\\s*(.*)","beginCaptures":{"1":{"name":"keyword.control"},"2":{"patterns":[{"include":"source.python"}]}},"end":"^\\\\s*$"},"doctest-block":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+doctest::)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"}},"patterns":[{"include":"#block-param"},{"include":"source.python"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"domain-auto":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+auto(?:class|module|exception|function|decorator|data|method|attribute|property)::)\\\\s*(.*)","beginCaptures":{"2":{"name":"keyword.control.py"},"3":{"patterns":[{"include":"source.python"}]}},"patterns":[{"include":"#block-param"},{"include":"#body"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"domain-cpp":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+c(?:pp|):(?:class|struct|function|member|var|type|enum|enum-struct|enum-class|enumerator|union|concept)::)\\\\s*(?:(@\\\\w+)|(.*))","beginCaptures":{"2":{"name":"keyword.control"},"3":{"name":"entity.name.tag"},"4":{"patterns":[{"include":"source.cpp"}]}},"patterns":[{"include":"#block-param"},{"include":"#body"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"domain-js":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+js:\\\\w+::)\\\\s*(.*)","beginCaptures":{"2":{"name":"keyword.control"},"3":{"patterns":[{"include":"source.js"}]}},"end":"^(?!\\\\1[\\\\t ]|$)","patterns":[{"include":"#block-param"},{"include":"#body"}]},"domain-py":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+py:(?:module|function|data|exception|class|attribute|property|method|staticmethod|classmethod|decorator|decoratormethod)::)\\\\s*(.*)","beginCaptures":{"2":{"name":"keyword.control"},"3":{"patterns":[{"include":"source.python"}]}},"patterns":[{"include":"#block-param"},{"include":"#body"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"domains":{"patterns":[{"include":"#domain-cpp"},{"include":"#domain-py"},{"include":"#domain-auto"},{"include":"#domain-js"}]},"escaped":{"match":"\\\\\\\\.","name":"constant.character.escape"},"footnote":{"match":"^\\\\s*\\\\.{2}\\\\s+\\\\[(?:[-.\\\\w]+|[#*]|#\\\\w+)]\\\\s+","name":"entity.name.tag"},"footnote-ref":{"match":"\\\\[(?:[-.\\\\w]+|[#*])]_","name":"entity.name.tag"},"ignore":{"patterns":[{"match":"\'[*`]+\'"},{"match":"<[*`]+>"},{"match":"\\\\{[*`]+}"},{"match":"\\\\([*`]+\\\\)"},{"match":"\\\\[[*`]+]"},{"match":"\\"[*`]+\\""}]},"inline-markup":{"patterns":[{"include":"#escaped"},{"include":"#ignore"},{"include":"#ref"},{"include":"#literal"},{"include":"#monospaced"},{"include":"#citation"},{"include":"#bold"},{"include":"#italic"},{"include":"#list"},{"include":"#macro"},{"include":"#reference"},{"include":"#footnote-ref"}]},"italic":{"begin":"(?<=[\\"\'(<\\\\[{\\\\s]|^)\\\\*[^*\\\\s]","end":"\\\\*|^\\\\s*$","name":"markup.italic"},"line-block":{"match":"^\\\\|\\\\s+","name":"keyword.control"},"list":{"match":"^\\\\s*(\\\\d+\\\\.|\\\\* -|[#A-Za-z]\\\\.|[CIMVXcimvx]+\\\\.|\\\\(\\\\d+\\\\)|\\\\d+\\\\)|[-*+])\\\\s+","name":"keyword.control"},"literal":{"captures":{"1":{"name":"keyword.control"},"2":{"name":"entity.name.tag"}},"match":"(:\\\\S+:)(`.*?`\\\\\\\\?)"},"literal-block":{"begin":"^(\\\\s*)(.*)(::)\\\\s*$","beginCaptures":{"2":{"patterns":[{"include":"#inline-markup"}]},"3":{"name":"keyword.control"}},"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"macro":{"match":"\\\\|[^|]+\\\\|","name":"entity.name.tag"},"monospaced":{"begin":"(?<=[\\"\'(<\\\\[{\\\\s]|^)``[^`\\\\s]","end":"``|^\\\\s*$","name":"string.interpolated"},"options-list":{"match":"(?:(?:^|,\\\\s+)(?:[-+]\\\\w|--?[A-Za-z][-\\\\w]+|/\\\\w+)(?:[ =](?:\\\\w+|<[^<>]+?>))?)+(?= |\\\\t|$)","name":"variable.parameter"},"raw-html":{"begin":"^(\\\\s*)(\\\\.{2}\\\\s+raw\\\\s*::)\\\\s+(html)\\\\s*$","beginCaptures":{"2":{"name":"keyword.control"},"3":{"name":"variable.parameter.html"}},"patterns":[{"include":"#block-param"},{"include":"text.html.derivative"}],"while":"^(?:\\\\1(?=\\\\s)|\\\\s*$)"},"ref":{"begin":"(:ref:)`","beginCaptures":{"1":{"name":"keyword.control"}},"end":"`|^\\\\s*$","name":"entity.name.tag","patterns":[{"match":"<.*?>","name":"markup.underline.link"}]},"reference":{"match":"[-\\\\w]*[-A-Za-z\\\\d]__?\\\\b","name":"entity.name.tag"},"replace-include":{"captures":{"1":{"name":"keyword.control"},"2":{"name":"entity.name.tag"},"3":{"name":"keyword.control"}},"match":"^\\\\s*(\\\\.{2})\\\\s+(\\\\|[^|]+\\\\|)\\\\s+(replace::)"},"simple-table":{"match":"^[=\\\\s]+$","name":"keyword.control.table"},"substitution":{"match":"^\\\\.{2}\\\\s*\\\\|([^|]+)\\\\|","name":"entity.name.tag"},"table":{"begin":"^\\\\s*\\\\+[-+=]+\\\\+\\\\s*$","beginCaptures":{"0":{"name":"keyword.control.table"}},"end":"^(?![+|])","patterns":[{"match":"[-+=|]","name":"keyword.control.table"}]},"title":{"match":"^(\\\\*{3,}|#{3,}|={3,}|~{3,}|\\\\+{3,}|-{3,}|`{3,}|\\\\^{3,}|:{3,}|\\"{3,}|_{3,}|\'{3,})$","name":"markup.heading"}},"scopeName":"source.rst","embeddedLangs":["html-derivative","cpp","python","javascript","shellscript","yaml","cmake","ruby"]}')),D=[...a,...c,...t,...o,...r,...s,...l,...i,d];export{D as default};
|
|
2
|
+
|
|
3
|
+
//# debugId=215cce73-a3fe-423f-9de9-4d6e3af6c2a9
|