@deephaven/code-studio 1.15.1 → 1.15.2-alpha-fetch-variable-def.0

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.
Files changed (53) hide show
  1. package/build/assets/{AppRoot-yoU6xO7o.js → AppRoot-DwJuOWo6.js} +4 -4
  2. package/build/assets/{AppRoot-yoU6xO7o.js.map → AppRoot-DwJuOWo6.js.map} +1 -1
  3. package/build/assets/{Chart-B-lgYFRk.js → Chart-C1i1ho1y.js} +2 -2
  4. package/build/assets/{Chart-B-lgYFRk.js.map → Chart-C1i1ho1y.js.map} +1 -1
  5. package/build/assets/{ControlType-BXDfYonb.js → ControlType-BEonYtyB.js} +4 -4
  6. package/build/assets/{ControlType-BXDfYonb.js.map → ControlType-BEonYtyB.js.map} +1 -1
  7. package/build/assets/{FormatterUtils-VvugcpnR.js → FormatterUtils-Bg2N5U7m.js} +2 -2
  8. package/build/assets/{FormatterUtils-VvugcpnR.js.map → FormatterUtils-Bg2N5U7m.js.map} +1 -1
  9. package/build/assets/{Grid-BhSfx_MV.js → Grid-Hz5UYdT_.js} +2 -2
  10. package/build/assets/{Grid-BhSfx_MV.js.map → Grid-Hz5UYdT_.js.map} +1 -1
  11. package/build/assets/GridTokenMouseHandler-DHkBdrVc.js +2 -0
  12. package/build/assets/GridTokenMouseHandler-DHkBdrVc.js.map +1 -0
  13. package/build/assets/{IrisGrid-CxxjDqw5.js → IrisGrid-DkGF7p3K.js} +3 -3
  14. package/build/assets/{IrisGrid-CxxjDqw5.js.map → IrisGrid-DkGF7p3K.js.map} +1 -1
  15. package/build/assets/{IrisGridModel-DSlx1u3X.js → IrisGridModel-DoD8cIz5.js} +3 -3
  16. package/build/assets/{IrisGridModel-DSlx1u3X.js.map → IrisGridModel-DoD8cIz5.js.map} +1 -1
  17. package/build/assets/{IrisGridShortcuts-RA3wXust.js → IrisGridShortcuts-DBc8G-3x.js} +2 -2
  18. package/build/assets/{IrisGridShortcuts-RA3wXust.js.map → IrisGridShortcuts-DBc8G-3x.js.map} +1 -1
  19. package/build/assets/{IrisGridThemeProvider-6it02n4x.js → IrisGridThemeProvider-BJrYi5zT.js} +6 -6
  20. package/build/assets/IrisGridThemeProvider-BJrYi5zT.js.map +1 -0
  21. package/build/assets/{LocalWorkspaceStorage-BZKRnSF8.js → LocalWorkspaceStorage-Ddl67eNC.js} +2 -2
  22. package/build/assets/{LocalWorkspaceStorage-BZKRnSF8.js.map → LocalWorkspaceStorage-Ddl67eNC.js.map} +1 -1
  23. package/build/assets/{MarkdownEditor-C2AAm9ih.js → MarkdownEditor-BcHfeFVY.js} +2 -2
  24. package/build/assets/{MarkdownEditor-C2AAm9ih.js.map → MarkdownEditor-BcHfeFVY.js.map} +1 -1
  25. package/build/assets/{MarkdownNotebook-DBOYivNl.js → MarkdownNotebook-Du5g1GaK.js} +2 -2
  26. package/build/assets/{MarkdownNotebook-DBOYivNl.js.map → MarkdownNotebook-Du5g1GaK.js.map} +1 -1
  27. package/build/assets/{MissingPartitionError-uL8lR3Hy.js → MissingPartitionError-Cjrlbi18.js} +2 -2
  28. package/build/assets/{MissingPartitionError-uL8lR3Hy.js.map → MissingPartitionError-Cjrlbi18.js.map} +1 -1
  29. package/build/assets/{MockChartModel-DTdba9NN.js → MockChartModel-B9nKAkLg.js} +2 -2
  30. package/build/assets/{MockChartModel-DTdba9NN.js.map → MockChartModel-B9nKAkLg.js.map} +1 -1
  31. package/build/assets/Plot-D75AfC4O.js +2 -0
  32. package/build/assets/{Plot-Cachc_IP.js.map → Plot-D75AfC4O.js.map} +1 -1
  33. package/build/assets/{Plotly-CqwB2UoY.js → Plotly-CAcUhtAR.js} +2 -2
  34. package/build/assets/{Plotly-CqwB2UoY.js.map → Plotly-CAcUhtAR.js.map} +1 -1
  35. package/build/assets/{StyleGuideRoot-DTTYIKzl.js → StyleGuideRoot-WshrSVsS.js} +2 -2
  36. package/build/assets/{StyleGuideRoot-DTTYIKzl.js.map → StyleGuideRoot-WshrSVsS.js.map} +1 -1
  37. package/build/assets/{index-Pb0fT4BS.js → index-CAjC8rry.js} +4 -4
  38. package/build/assets/{index-Pb0fT4BS.js.map → index-CAjC8rry.js.map} +1 -1
  39. package/build/assets/{index-SLNddBo_.js → index-Nhi6EDbw.js} +3 -3
  40. package/build/assets/{index-SLNddBo_.js.map → index-Nhi6EDbw.js.map} +1 -1
  41. package/build/assets/index-ODecto2-.js +2 -0
  42. package/build/assets/index-ODecto2-.js.map +1 -0
  43. package/build/assets/plotly-Cm_x6xfs.js +7 -0
  44. package/build/assets/{plotly-CJ0h1Bb8.js.map → plotly-Cm_x6xfs.js.map} +1 -1
  45. package/build/index.html +1 -1
  46. package/package.json +31 -31
  47. package/build/assets/GridTokenMouseHandler-Dem4pZ7B.js +0 -2
  48. package/build/assets/GridTokenMouseHandler-Dem4pZ7B.js.map +0 -1
  49. package/build/assets/IrisGridThemeProvider-6it02n4x.js.map +0 -1
  50. package/build/assets/Plot-Cachc_IP.js +0 -2
  51. package/build/assets/index-DZpheLqH.js +0 -2
  52. package/build/assets/index-DZpheLqH.js.map +0 -1
  53. package/build/assets/plotly-CJ0h1Bb8.js +0 -7
@@ -1,4 +1,4 @@
1
- import{ab as vt,bu as Pt,r as c,I as d,bv as xt,a7 as wt,K as q,L as St,U as pe,bw as Et,M as B,bx as Tt,by as Ot,av as Ct,aW as Lt,a8 as Rt,a9 as kt,bz as Ft,H as _t,bA as Ze,a3 as Dt,a0 as It,bB as At}from"./vendor-DJYze3uU.js";import{J as Nt,s as j,a$ as R,K as F,t as jt,B as I,aw as et,at as Ut,_ as Bt,U as fe,au as Mt,u as $t,aN as V,R as Wt,aP as Yt,c7 as Gt,G as qt,c0 as Ht,b0 as zt,Q as Kt,d9 as Xt,c8 as Qt,da as Jt,cj as Vt,cg as Zt,db as en,ch as tn,aa as nn,$ as on,a0 as rn,cZ as an,d0 as Pe,ay as sn,d7 as ln,bk as dn,ad as cn,dc as N,P as ne,d8 as un,dd as pn,de as fn,df as xe,dg as we,dh as Se,di as Ee,I as hn,D as mn,a as Te}from"./ControlType-BXDfYonb.js";import{k as yn,aJ as gn,aK as bn,aL as vn,e as Pn,M as xn,b as wn,aM as Sn,aN as En,c as Tn,aD as tt,L as H,aG as On,N as he,s as Cn,l as Ln}from"./index-SLNddBo_.js";import{l as nt,m as Oe,k as Rn}from"./IrisGridShortcuts-RA3wXust.js";import{e as kn,U as Fn,l as Ce}from"./monaco-DaE0jI-i.js";function Le(t,e,n,i,o,a,s){try{var l=t[a](s),r=l.value}catch(u){return void n(u)}l.done?e(r):Promise.resolve(r).then(i,o)}function _n(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function s(r){Le(a,i,o,s,l,"next",r)}function l(r){Le(a,i,o,s,l,"throw",r)}s(void 0)})}}var Dn=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["dashboardData","*","openedMap"],["layoutStorage"],["storage"]],it=10;function In(t){var e=new Map;return function(i,o){var a,s=[...(a=e.get(this))!==null&&a!==void 0?a:[],i];if(o===Object(o)&&e.set(o,[...s]),s.shift(),!An(s,t))return o instanceof Map?Array.from(o.entries()):o}}function An(t,e){for(var n=function(s){if(t.length===e[s].length&&t.every((l,r)=>e[s][r]==="*"||l===e[s][r]))return{v:!0}},i,o=0;o<e.length;o+=1)if(i=n(o),i)return i.v;return!1}function Nn(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:it,o=Pt({maximumDepth:i});return(e=o(t,In(n),2))!==null&&e!==void 0?e:""}function jn(t){return JSON.stringify(t,null,2)}function Un(t){var e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0"),o=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0"),s=String(t.getSeconds()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(i,"-").concat(o).concat(a).concat(s)}function Bn(t,e,n){return re.apply(this,arguments)}function re(){return re=_n(function*(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Dn,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(Un(new Date),"_support_logs"),a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:it,s=new vt,l=s.folder(o);l.file("console.txt",t.getFormattedHistory()),e!=null&&l.file("metadata.json",jn(e)),n!=null&&l.file("redux.json",Nn(n,i,a));var r=yield s.generateAsync({type:"blob"}),u=document.createElement("a");u.href=URL.createObjectURL(r),u.download="".concat(o,".zip"),u.click()}),re.apply(this,arguments)}function co(){var{selectedThemeKey:t,setSelectedThemeKey:e,themes:n}=Nt(),i=c.useCallback(o=>{o!=null&&e("".concat(o))},[e]);return d.jsx(xt,{label:"Pick a color scheme",items:n,selectedKey:t,onSelectionChange:i,children:o=>d.jsx(wt,{children:o.name},o.themeKey)})}function uo(t){var{className:e,style:n}=t;return d.jsx("div",{className:q("dh-logo",e),style:n})}function ot(t,e,n){return(e=Mn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mn(t){var e=$n(t,"string");return typeof e=="symbol"?e:e+""}function $n(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class J extends c.Component{static getHeight(e){var n=e.scrollWidth-e.clientWidth;return e.scrollHeight-n}constructor(e){super(e),ot(this,"nodeRef",pe.createRef()),this.handleEntered=this.handleEntered.bind(this)}handleEntered(){var e=this.nodeRef.current;if(e){e.style.height="";var{autoFocusOnShow:n}=this.props;if(n!==void 0&&n){var i=e.querySelector("input, select, textarea");i!=null&&i.focus()}}}handleEnter(){var e=this.nodeRef.current;e&&(e.style.height="0")}handleEntering(){var e=this.nodeRef.current;e&&(e.style.height="".concat(J.getHeight(e),"px"))}handleExiting(){var e=this.nodeRef.current;e&&(e.style.height="0")}handleExit(){var e=this.nodeRef.current;e&&(e.style.height="".concat(J.getHeight(e),"px"))}render(){var{children:e,className:n,in:i,"data-testid":o}=this.props;return d.jsx(St,{in:i,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered,onExit:this.handleExit,onExiting:this.handleExiting,timeout:350,nodeRef:this.nodeRef,children:a=>d.jsx("div",{ref:this.nodeRef,className:q({collapse:a==="exited"},n),"data-testid":o,children:e})})}}ot(J,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});var po={CYCLE_TO_NEXT_STACK:j.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_STACK",name:"Cycle To Next Stack",shortcut:[R.CTRL,F.SINGLE_QUOTE],macShortcut:[R.CMD,F.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_STACK:j.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_STACK",name:"Cycle To Previous Stack",shortcut:[R.CTRL,F.SEMICOLON],macShortcut:[R.CMD,F.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_TAB:j.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_TAB",name:"Cycle To Next Tab",shortcut:[R.CTRL,R.SHIFT,F.DOUBLE_QUOTE],macShortcut:[R.CMD,R.SHIFT,F.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_TAB:j.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_TAB",name:"Cycle To Previous Tab",shortcut:[R.CTRL,R.SHIFT,F.COLON],macShortcut:[R.CMD,R.SHIFT,F.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_DASHBOARD:j.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_DASHBOARD",name:"Cycle To Next Dashboard",shortcut:[R.CTRL,F.PERIOD],macShortcut:[R.CMD,F.PERIOD],isEditable:!0}),CYCLE_TO_PREVIOUS_DASHBOARD:j.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_DASHBOARD",name:"Cycle To Previous Dashboard",shortcut:[R.CTRL,F.COMMA],macShortcut:[R.CMD,F.COMMA],isEditable:!0})};function Re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function ie(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Re(Object(n),!0).forEach(function(i){Wn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Wn(t,e,n){return(e=Yn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yn(t){var e=Gn(t,"string");return typeof e=="symbol"?e:e+""}function Gn(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var rt=c.memo(t=>{var{tab:e,onClose:n,onSelect:i,isActive:o,activeRef:a,index:s,isDraggable:l,contextActions:r,renderAfterTabContent:u}=t,{key:b,isClosable:h=n!=null,title:g,icon:m}=e,P;return m!=null&&(P=pe.isValidElement(m)?m:d.jsx(B,{icon:m})),d.jsx(Et,{draggableId:b,index:s,isDragDisabled:!l,children:(x,w)=>d.jsxs("div",{className:"context-menu-wrapper",ref:o?a:null,children:[d.jsxs("div",ie(ie(ie({ref:x.innerRef},x.draggableProps),x.dragHandleProps),{},{className:q("btn btn-link btn-nav-tab",{active:o},{dragging:w.isDragging}),"data-testid":"btn-nav-tab-".concat(g),role:"tab",tabIndex:0,onAuxClick:p=>{h&&p.button===1&&p.buttons===0&&(n==null||n(b))},onClick:p=>{if(h&&p.button===1&&p.buttons===0){n==null||n(b);return}p.button===0&&p.buttons===0&&(p.target.focus(),i(b))},onKeyPress:p=>{p.key==="Enter"&&i(b)},children:[P,d.jsxs("span",{className:"btn-nav-tab-title",children:[g,d.jsx(jt,{children:g})]}),u==null?void 0:u(e),h&&d.jsx(I,{kind:"ghost",className:"btn-nav-tab-close",onClick:p=>{n==null||n(b),p.stopPropagation(),p.preventDefault()},icon:yn,tooltip:"Close"})]})),d.jsx(et,{actions:r})]})},b)});rt.displayName="NavTab";function qn(t){var{onSelect:e,tabs:n=Ut}=t,[i,o]=c.useState(""),[a,s]=c.useState(0),l=c.useRef(null),r=c.useRef(null),u=c.useRef([]);c.useEffect(()=>{var p;(p=l.current)===null||p===void 0||p.focus()},[]),c.useEffect(()=>{s(0)},[i]),c.useEffect(()=>{if(a>=0&&u.current[a]){var p;(p=u.current[a])===null||p===void 0||p.scrollIntoView({behavior:"auto",block:"nearest"})}},[a]);var b=c.useCallback(p=>{o(p.target.value)},[]),h=c.useCallback(p=>{e(p)},[e]),g=c.useCallback(p=>{p.preventDefault()},[]),m=c.useMemo(()=>n.filter(p=>p.title.toLowerCase().includes(i.toLowerCase())),[i,n]).sort((p,k)=>{var S;return(S=p.title.localeCompare(k.title))!==null&&S!==void 0?S:0}),P=c.useCallback(p=>{if(p.key==="ArrowDown"&&m.length>0)p.preventDefault(),s(S=>S===-1?0:(S+1)%m.length);else if(p.key==="ArrowUp"&&m.length>0)p.preventDefault(),s(S=>S===-1?m.length-1:(S-1+m.length)%m.length);else if(p.key==="Enter"&&m.length>0){p.preventDefault();var k=a>=0?a:0;h(m[k])}else p.key==="Tab"&&p.preventDefault()},[m,a,h]),x=c.useMemo(()=>m.map((p,k)=>{var S;return d.jsx("li",{ref:E=>{u.current[k]=E},onMouseDown:g,children:d.jsxs(I,{kind:"ghost","data-testid":"dashboard-list-item-".concat((S=p.key)!==null&&S!==void 0?S:"","-button"),onClick:()=>h(p),className:a===k?"focused":"",style:{transition:"none"},children:[p.icon?d.jsx("span",{className:"dashboard-list-item-icon",children:pe.isValidElement(p.icon)?p.icon:d.jsx(B,{icon:p.icon})}):null,p.title]})},p.key)}),[m,h,a,g]),w=c.useMemo(()=>x.length===0?d.jsx("span",{children:"No open dashboard found."}):null,[x]);return d.jsxs("div",{className:"dashboard-list-container d-flex flex-column",children:[d.jsx("div",{className:"dashboard-list-header",children:d.jsx(Bt,{value:i,placeholder:"Find open dashboard",endPlaceholder:fe.OPEN_DASHBOARD_LIST.getDisplayText(),onChange:b,onKeyDown:P,ref:l})}),d.jsxs("ul",{className:"dashboard-list flex-grow-1",ref:r,children:[w&&d.jsx("li",{className:"dashboard-list-message",children:w}),!w&&x]})]})}function ke(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Fe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ke(Object(n),!0).forEach(function(i){Hn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Hn(t,e,n){return(e=zn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zn(t){var e=Kn(t,"string");return typeof e=="symbol"?e:e+""}function Kn(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xn=500,Qn=.01,Jn=5e-4;function _e(t){return t.scrollLeft===0}function De(t){return Math.abs(t.scrollLeft+t.clientWidth-t.scrollWidth)<=1||t.scrollWidth===0}function Vn(t,e,n){var{isClosable:i=!1,key:o}=t,a=[];if(i&&n!=null){a.push({title:"Close",order:10,group:20,action:()=>{n(o)}});for(var s=!0,l=e.length-1;l>0&&e[l].key!==t.key;l-=1)if(e[l].isClosable===!0){s=!1;break}a.push({title:"Close to the Right",order:20,group:20,action:()=>{for(var r=e.length-1;r>0&&e[r].key!==o;r-=1)e[r].isClosable===!0&&n(e[r].key)},disabled:s}),a.push({title:"Close All",order:30,group:20,action:()=>{e.forEach(r=>{r.isClosable===!0&&n(r.key)})}})}return a}function fo(t){var{activeKey:e,tabs:n,onSelect:i,onReorder:o,onClose:a,makeContextActions:s,renderAfterTabContent:l}=t,r=c.useRef(),[u,b]=c.useState(!0),[h,g]=c.useState(!1),[m,P]=c.useState(!0),[x,w]=c.useState(!0),p=c.useCallback(()=>{r.current!=null&&(r.current.clientWidth<r.current.scrollWidth&&n.length>0?b(!0):b(!1),P(_e(r.current)),w(De(r.current)))},[n]);nt(r.current,p);var k=c.useCallback(f=>{Oe.stopDragging(),f.destination&&(o==null||o(f.source.index,f.destination.index))},[o]),S=c.useCallback(()=>{if(r.current!=null){var f=_e(r.current);f!==m&&P(f);var y=De(r.current);y!==x&&w(y)}},[m,x]),E=c.useRef({cancelClick:!1}),L=c.useCallback(()=>{if(!(r.current==null||E.current.cancelClick))for(var{children:f}=r.current,y=f.length-1;y>=0;y-=1){var v=f[y];if(v.offsetLeft<r.current.scrollLeft-5){v.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});return}}},[]),C=c.useCallback(()=>{if(!(r.current==null||E.current.cancelClick))for(var{children:f}=r.current,y=0;y<f.length;y+=1){var v=f[y];if(v.offsetLeft+v.offsetWidth-5>r.current.scrollLeft+r.current.offsetWidth){v.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"});return}}},[]),M=c.useCallback(function(f,y){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,T=arguments.length>3?arguments[3]:void 0,_=r.current;_!=null&&(E.current.cancelClick=!0,f==="left"?_.scrollLeft=y-v:f==="right"&&(_.scrollLeft=y+v),E.current.rAF=requestAnimationFrame(K=>{var be=T??K,ve=K-be,te=Qn*ve+.5*Jn*ve**2;te=Math.min(te,_.scrollWidth),M(f,y,te,be)}))},[]),$=c.useCallback(()=>{var{holdTimer:f,rAF:y}=E.current;f!=null&&(clearTimeout(f),E.current.holdTimer=void 0),y!=null&&(cancelAnimationFrame(y),E.current.rAF=void 0),window.removeEventListener("mouseup",$)},[]);c.useEffect(()=>()=>window.removeEventListener("mouseup",$),[$]);var z=c.useCallback(f=>{r.current!=null&&(E.current.holdTimer=window.setTimeout(M,Xn,f,r.current.scrollLeft)),E.current.cancelClick=!1,window.addEventListener("mouseup",$)},[$,M]),ut=c.useCallback(()=>{z("left")},[z]),pt=c.useCallback(()=>{z("right")},[z]);c.useEffect(function(){var y,v=T=>{T.stopPropagation(),T.preventDefault();var _=T.currentTarget,K=Math.abs(T.deltaY)>Math.abs(T.deltaX)?T.deltaY:T.deltaX;_.scrollLeft+=Ct(K,-30,30)};return(y=r.current)===null||y===void 0||y.addEventListener("wheel",v),()=>{var T;(T=r.current)===null||T===void 0||T.removeEventListener("wheel",v)}},[]);var ft=c.useMemo(()=>{var f=new Map;return n.forEach(y=>{var{key:v}=y,T=[()=>Vn(y,n,a),()=>{var _;return(_=s==null?void 0:s(y))!==null&&_!==void 0?_:[]}];f.set(v,T)}),f},[s,n,a]),ee=c.useRef(null),ht=n.find(f=>f.key===e),mt=n.map((f,y)=>{var{key:v}=f,T=f===ht;return d.jsx(rt,{tab:f,index:y,isActive:T,activeRef:ee,onSelect:i,onClose:a,isDraggable:o!=null,contextActions:ft.get(v),renderAfterTabContent:l},v)});c.useEffect(function(){ee.current!=null&&ee.current.scrollIntoView({block:"nearest",inline:"nearest"})},[e]);var yt=()=>{g(!h)},gt=f=>{g(!1),i(f.key)},bt=()=>{g(!1)};return d.jsxs("nav",{className:"nav-container",children:[u&&d.jsx(I,{kind:"ghost",icon:d.jsx(B,{icon:gn,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-left",tooltip:"Scroll left",onClick:L,onMouseDown:ut,disabled:m}),d.jsx(Tt,{onDragStart:Oe.startDragging,onDragEnd:k,children:d.jsx(Ot,{droppableId:"droppable-tab-navigation",direction:"horizontal",children:(f,y)=>d.jsxs("div",Fe(Fe({ref:v=>{v!=null&&(r.current=v,f.innerRef(v))}},f.droppableProps),{},{className:q("nav nav-tabs",{dragging:y.draggingFromThisWith}),role:"tablist",onScroll:S,children:[mt,f.placeholder]}))})}),u&&d.jsx(I,{kind:"ghost",icon:d.jsx(B,{icon:bn,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-right",tooltip:"Scroll right",onClick:C,onMouseDown:pt,disabled:x}),d.jsx(I,{kind:"ghost",icon:d.jsx(B,{icon:vn,transform:"grow-4"}),className:"btn-dashboard-list-menu btn-show-dashboard-list",tooltip:"Search open dashboards",onClick:yt,disabled:n.length<2,style:{visibility:u?"visible":"hidden",marginLeft:"auto"},children:d.jsx(Mt,{isShown:h,className:"dashboard-list-menu-popper",onExited:bt,options:{placement:"bottom-start"},closeOnBlur:!0,interactive:!0,children:d.jsx(qn,{tabs:n,onSelect:gt})})}),d.jsx(et,{actions:[{action:()=>{g(!h)},shortcut:fe.OPEN_DASHBOARD_LIST,isGlobal:!0}]})]})}function Zn(t,e){var n=$t(),i=c.useMemo(()=>new n.CoreClient(t,e),[n,t,e]);return c.useEffect(()=>()=>{i.disconnect()},[i]),i}var me=c.createContext(null);me.displayName="ClientContext";function ho(t){var{serverUrl:e,options:n,children:i}=t,o=Zn(e,n);return d.jsx(me.Provider,{value:o,children:i})}function ei(){return V(me,"No Client available in useClient. Was code wrapped in ClientBootstrap or ClientContext.Provider?")}var ti={$schema:"http://json-schema.org/draft-07/schema#",title:"Options",type:"object",properties:{"allowed-confusables":{description:'A list of allowed "confusable" Unicode characters to ignore when enforcing `RUF001`, `RUF002`, and `RUF003`.',deprecated:!0,type:["array","null"],items:{type:"string",maxLength:1,minLength:1}},builtins:{description:"A list of builtins to treat as defined references, in addition to the system builtins.",type:["array","null"],items:{type:"string"}},"cache-dir":{description:"A path to the cache directory.\n\nBy default, Ruff stores cache results in a `.ruff_cache` directory in the current project root.\n\nHowever, Ruff will also respect the `RUFF_CACHE_DIR` environment variable, which takes precedence over that default.\n\nThis setting will override even the `RUFF_CACHE_DIR` environment variable, if set.",type:["string","null"]},"dummy-variable-rgx":{description:'A regular expression used to identify "dummy" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.',deprecated:!0,type:["string","null"]},exclude:{description:"A list of file patterns to exclude from formatting and linting.\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).\n\nNote that you'll typically want to use [`extend-exclude`](#extend-exclude) to modify the excluded paths.",type:["array","null"],items:{type:"string"}},"explicit-preview-rules":{description:"Whether to require exact codes to select preview rules. When enabled, preview rules will not be selected by prefixes — the full code of each preview rule will be required to enable the rule.",deprecated:!0,type:["boolean","null"]},extend:{description:"A path to a local `pyproject.toml` file to merge into this configuration. User home directory and environment variables will be expanded.\n\nTo resolve the current `pyproject.toml` file, Ruff will first resolve this base configuration file, then merge in any properties defined in the current configuration file.",type:["string","null"]},"extend-exclude":{description:"A list of file patterns to omit from formatting and linting, in addition to those specified by [`exclude`](#exclude).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-fixable":{description:"A list of rule codes or prefixes to consider fixable, in addition to those specified by [`fixable`](#lint_fixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-ignore":{description:"A list of rule codes or prefixes to ignore, in addition to those specified by `ignore`.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-include":{description:"A list of file patterns to include when linting, in addition to those specified by [`include`](#include).\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).",deprecated:!0,type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},"extend-safe-fixes":{description:"A list of rule codes or prefixes for which unsafe fixes should be considered safe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-select":{description:"A list of rule codes or prefixes to enable, in addition to those specified by [`select`](#lint_select).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unfixable":{description:"A list of rule codes or prefixes to consider non-auto-fixable, in addition to those specified by [`unfixable`](#lint_unfixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unsafe-fixes":{description:"A list of rule codes or prefixes for which safe fixes should be considered unsafe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},external:{description:"A list of rule codes or prefixes that are unsupported by Ruff, but should be preserved when (e.g.) validating `# noqa` directives. Useful for retaining `# noqa` directives that cover plugins not yet implemented by Ruff.",deprecated:!0,type:["array","null"],items:{type:"string"}},fix:{description:"Enable fix behavior by-default when running `ruff` (overridden by the `--fix` and `--no-fix` command-line flags). Only includes automatic fixes unless `--unsafe-fixes` is provided.",type:["boolean","null"]},"fix-only":{description:"Like [`fix`](#fix), but disables reporting on leftover violation. Implies [`fix`](#fix).",type:["boolean","null"]},fixable:{description:"A list of rule codes or prefixes to consider fixable. By default, all rules are considered fixable.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"flake8-annotations":{description:"Options for the `flake8-annotations` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8AnnotationsOptions"},{type:"null"}]},"flake8-bandit":{description:"Options for the `flake8-bandit` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BanditOptions"},{type:"null"}]},"flake8-boolean-trap":{description:"Options for the `flake8-boolean-trap` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BooleanTrapOptions"},{type:"null"}]},"flake8-bugbear":{description:"Options for the `flake8-bugbear` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BugbearOptions"},{type:"null"}]},"flake8-builtins":{description:"Options for the `flake8-builtins` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BuiltinsOptions"},{type:"null"}]},"flake8-comprehensions":{description:"Options for the `flake8-comprehensions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ComprehensionsOptions"},{type:"null"}]},"flake8-copyright":{description:"Options for the `flake8-copyright` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8CopyrightOptions"},{type:"null"}]},"flake8-errmsg":{description:"Options for the `flake8-errmsg` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ErrMsgOptions"},{type:"null"}]},"flake8-gettext":{description:"Options for the `flake8-gettext` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8GetTextOptions"},{type:"null"}]},"flake8-implicit-str-concat":{description:"Options for the `flake8-implicit-str-concat` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImplicitStrConcatOptions"},{type:"null"}]},"flake8-import-conventions":{description:"Options for the `flake8-import-conventions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImportConventionsOptions"},{type:"null"}]},"flake8-pytest-style":{description:"Options for the `flake8-pytest-style` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8PytestStyleOptions"},{type:"null"}]},"flake8-quotes":{description:"Options for the `flake8-quotes` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8QuotesOptions"},{type:"null"}]},"flake8-self":{description:"Options for the `flake8_self` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8SelfOptions"},{type:"null"}]},"flake8-tidy-imports":{description:"Options for the `flake8-tidy-imports` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TidyImportsOptions"},{type:"null"}]},"flake8-type-checking":{description:"Options for the `flake8-type-checking` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TypeCheckingOptions"},{type:"null"}]},"flake8-unused-arguments":{description:"Options for the `flake8-unused-arguments` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8UnusedArgumentsOptions"},{type:"null"}]},"force-exclude":{description:"Whether to enforce [`exclude`](#exclude) and [`extend-exclude`](#extend-exclude) patterns, even for paths that are passed to Ruff explicitly. Typically, Ruff will lint any paths passed in directly, even if they would typically be excluded. Setting `force-exclude = true` will cause Ruff to respect these exclusions unequivocally.\n\nThis is useful for [`pre-commit`](https://pre-commit.com/), which explicitly passes all changed files to the [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit) plugin, regardless of whether they're marked as excluded by Ruff's own settings.",type:["boolean","null"]},format:{description:"Options to configure code formatting.",anyOf:[{$ref:"#/definitions/FormatOptions"},{type:"null"}]},ignore:{description:"A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"ignore-init-module-imports":{description:"Avoid automatically removing unused imports in `__init__.py` files. Such imports will still be flagged, but with a dedicated message suggesting that the import is either added to the module's `__all__` symbol, or re-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports via an unsafe fix.",deprecated:!0,type:["boolean","null"]},include:{description:"A list of file patterns to include when linting.\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension. `pyproject.toml` is included here not for configuration but because we lint whether e.g. the `[project]` matches the schema.\n\nNotebook files (`.ipynb` extension) are included by default on Ruff 0.6.0+.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"indent-width":{description:`The number of spaces per indentation level (tab).
1
+ import{ab as vt,bu as Pt,r as c,I as d,bv as xt,a7 as wt,K as q,L as St,U as pe,bw as Et,M as B,bx as Tt,by as Ot,av as Ct,aW as Lt,a8 as Rt,a9 as kt,bz as Ft,H as _t,bA as Ze,a3 as Dt,a0 as It,bB as At}from"./vendor-DJYze3uU.js";import{J as Nt,s as j,a$ as R,K as F,t as jt,B as I,aw as et,at as Ut,_ as Bt,U as fe,au as Mt,u as $t,aN as V,R as Wt,aP as Yt,c7 as Gt,G as qt,c0 as Ht,b0 as zt,Q as Kt,d9 as Xt,c8 as Qt,da as Jt,cj as Vt,cg as Zt,db as en,ch as tn,aa as nn,$ as on,a0 as rn,cZ as an,d0 as Pe,ay as sn,d7 as ln,bk as dn,ad as cn,dc as N,P as ne,d8 as un,dd as pn,de as fn,df as xe,dg as we,dh as Se,di as Ee,I as hn,D as mn,a as Te}from"./ControlType-BEonYtyB.js";import{k as yn,aJ as gn,aK as bn,aL as vn,e as Pn,M as xn,b as wn,aM as Sn,aN as En,c as Tn,aD as tt,L as H,aG as On,N as he,s as Cn,l as Ln}from"./index-Nhi6EDbw.js";import{l as nt,m as Oe,k as Rn}from"./IrisGridShortcuts-DBc8G-3x.js";import{e as kn,U as Fn,l as Ce}from"./monaco-DaE0jI-i.js";function Le(t,e,n,i,o,a,s){try{var l=t[a](s),r=l.value}catch(u){return void n(u)}l.done?e(r):Promise.resolve(r).then(i,o)}function _n(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function s(r){Le(a,i,o,s,l,"next",r)}function l(r){Le(a,i,o,s,l,"throw",r)}s(void 0)})}}var Dn=[["api"],["client"],["dashboardData","*","connection"],["dashboardData","*","sessionWrapper"],["dashboardData","*","openedMap"],["layoutStorage"],["storage"]],it=10;function In(t){var e=new Map;return function(i,o){var a,s=[...(a=e.get(this))!==null&&a!==void 0?a:[],i];if(o===Object(o)&&e.set(o,[...s]),s.shift(),!An(s,t))return o instanceof Map?Array.from(o.entries()):o}}function An(t,e){for(var n=function(s){if(t.length===e[s].length&&t.every((l,r)=>e[s][r]==="*"||l===e[s][r]))return{v:!0}},i,o=0;o<e.length;o+=1)if(i=n(o),i)return i.v;return!1}function Nn(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:it,o=Pt({maximumDepth:i});return(e=o(t,In(n),2))!==null&&e!==void 0?e:""}function jn(t){return JSON.stringify(t,null,2)}function Un(t){var e=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0"),o=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0"),s=String(t.getSeconds()).padStart(2,"0");return"".concat(e,"-").concat(n,"-").concat(i,"-").concat(o).concat(a).concat(s)}function Bn(t,e,n){return re.apply(this,arguments)}function re(){return re=_n(function*(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Dn,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"".concat(Un(new Date),"_support_logs"),a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:it,s=new vt,l=s.folder(o);l.file("console.txt",t.getFormattedHistory()),e!=null&&l.file("metadata.json",jn(e)),n!=null&&l.file("redux.json",Nn(n,i,a));var r=yield s.generateAsync({type:"blob"}),u=document.createElement("a");u.href=URL.createObjectURL(r),u.download="".concat(o,".zip"),u.click()}),re.apply(this,arguments)}function co(){var{selectedThemeKey:t,setSelectedThemeKey:e,themes:n}=Nt(),i=c.useCallback(o=>{o!=null&&e("".concat(o))},[e]);return d.jsx(xt,{label:"Pick a color scheme",items:n,selectedKey:t,onSelectionChange:i,children:o=>d.jsx(wt,{children:o.name},o.themeKey)})}function uo(t){var{className:e,style:n}=t;return d.jsx("div",{className:q("dh-logo",e),style:n})}function ot(t,e,n){return(e=Mn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mn(t){var e=$n(t,"string");return typeof e=="symbol"?e:e+""}function $n(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class J extends c.Component{static getHeight(e){var n=e.scrollWidth-e.clientWidth;return e.scrollHeight-n}constructor(e){super(e),ot(this,"nodeRef",pe.createRef()),this.handleEntered=this.handleEntered.bind(this)}handleEntered(){var e=this.nodeRef.current;if(e){e.style.height="";var{autoFocusOnShow:n}=this.props;if(n!==void 0&&n){var i=e.querySelector("input, select, textarea");i!=null&&i.focus()}}}handleEnter(){var e=this.nodeRef.current;e&&(e.style.height="0")}handleEntering(){var e=this.nodeRef.current;e&&(e.style.height="".concat(J.getHeight(e),"px"))}handleExiting(){var e=this.nodeRef.current;e&&(e.style.height="0")}handleExit(){var e=this.nodeRef.current;e&&(e.style.height="".concat(J.getHeight(e),"px"))}render(){var{children:e,className:n,in:i,"data-testid":o}=this.props;return d.jsx(St,{in:i,classNames:{enterActive:"collapsing",enterDone:"collapse show",exitActive:"collapsing",exitDone:"collapse"},onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered,onExit:this.handleExit,onExiting:this.handleExiting,timeout:350,nodeRef:this.nodeRef,children:a=>d.jsx("div",{ref:this.nodeRef,className:q({collapse:a==="exited"},n),"data-testid":o,children:e})})}}ot(J,"defaultProps",{className:"",autoFocusOnShow:!1,"data-testid":void 0});var po={CYCLE_TO_NEXT_STACK:j.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_STACK",name:"Cycle To Next Stack",shortcut:[R.CTRL,F.SINGLE_QUOTE],macShortcut:[R.CMD,F.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_STACK:j.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_STACK",name:"Cycle To Previous Stack",shortcut:[R.CTRL,F.SEMICOLON],macShortcut:[R.CMD,F.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_TAB:j.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_TAB",name:"Cycle To Next Tab",shortcut:[R.CTRL,R.SHIFT,F.DOUBLE_QUOTE],macShortcut:[R.CMD,R.SHIFT,F.SINGLE_QUOTE],isEditable:!0}),CYCLE_TO_PREVIOUS_TAB:j.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_TAB",name:"Cycle To Previous Tab",shortcut:[R.CTRL,R.SHIFT,F.COLON],macShortcut:[R.CMD,R.SHIFT,F.SEMICOLON],isEditable:!0}),CYCLE_TO_NEXT_DASHBOARD:j.createAndAdd({id:"NAVIGATION.CYCLE_TO_NEXT_DASHBOARD",name:"Cycle To Next Dashboard",shortcut:[R.CTRL,F.PERIOD],macShortcut:[R.CMD,F.PERIOD],isEditable:!0}),CYCLE_TO_PREVIOUS_DASHBOARD:j.createAndAdd({id:"NAVIGATION.CYCLE_TO_PREVIOUS_DASHBOARD",name:"Cycle To Previous Dashboard",shortcut:[R.CTRL,F.COMMA],macShortcut:[R.CMD,F.COMMA],isEditable:!0})};function Re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function ie(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Re(Object(n),!0).forEach(function(i){Wn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Wn(t,e,n){return(e=Yn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yn(t){var e=Gn(t,"string");return typeof e=="symbol"?e:e+""}function Gn(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var rt=c.memo(t=>{var{tab:e,onClose:n,onSelect:i,isActive:o,activeRef:a,index:s,isDraggable:l,contextActions:r,renderAfterTabContent:u}=t,{key:b,isClosable:h=n!=null,title:g,icon:m}=e,P;return m!=null&&(P=pe.isValidElement(m)?m:d.jsx(B,{icon:m})),d.jsx(Et,{draggableId:b,index:s,isDragDisabled:!l,children:(x,w)=>d.jsxs("div",{className:"context-menu-wrapper",ref:o?a:null,children:[d.jsxs("div",ie(ie(ie({ref:x.innerRef},x.draggableProps),x.dragHandleProps),{},{className:q("btn btn-link btn-nav-tab",{active:o},{dragging:w.isDragging}),"data-testid":"btn-nav-tab-".concat(g),role:"tab",tabIndex:0,onAuxClick:p=>{h&&p.button===1&&p.buttons===0&&(n==null||n(b))},onClick:p=>{if(h&&p.button===1&&p.buttons===0){n==null||n(b);return}p.button===0&&p.buttons===0&&(p.target.focus(),i(b))},onKeyPress:p=>{p.key==="Enter"&&i(b)},children:[P,d.jsxs("span",{className:"btn-nav-tab-title",children:[g,d.jsx(jt,{children:g})]}),u==null?void 0:u(e),h&&d.jsx(I,{kind:"ghost",className:"btn-nav-tab-close",onClick:p=>{n==null||n(b),p.stopPropagation(),p.preventDefault()},icon:yn,tooltip:"Close"})]})),d.jsx(et,{actions:r})]})},b)});rt.displayName="NavTab";function qn(t){var{onSelect:e,tabs:n=Ut}=t,[i,o]=c.useState(""),[a,s]=c.useState(0),l=c.useRef(null),r=c.useRef(null),u=c.useRef([]);c.useEffect(()=>{var p;(p=l.current)===null||p===void 0||p.focus()},[]),c.useEffect(()=>{s(0)},[i]),c.useEffect(()=>{if(a>=0&&u.current[a]){var p;(p=u.current[a])===null||p===void 0||p.scrollIntoView({behavior:"auto",block:"nearest"})}},[a]);var b=c.useCallback(p=>{o(p.target.value)},[]),h=c.useCallback(p=>{e(p)},[e]),g=c.useCallback(p=>{p.preventDefault()},[]),m=c.useMemo(()=>n.filter(p=>p.title.toLowerCase().includes(i.toLowerCase())),[i,n]).sort((p,k)=>{var S;return(S=p.title.localeCompare(k.title))!==null&&S!==void 0?S:0}),P=c.useCallback(p=>{if(p.key==="ArrowDown"&&m.length>0)p.preventDefault(),s(S=>S===-1?0:(S+1)%m.length);else if(p.key==="ArrowUp"&&m.length>0)p.preventDefault(),s(S=>S===-1?m.length-1:(S-1+m.length)%m.length);else if(p.key==="Enter"&&m.length>0){p.preventDefault();var k=a>=0?a:0;h(m[k])}else p.key==="Tab"&&p.preventDefault()},[m,a,h]),x=c.useMemo(()=>m.map((p,k)=>{var S;return d.jsx("li",{ref:E=>{u.current[k]=E},onMouseDown:g,children:d.jsxs(I,{kind:"ghost","data-testid":"dashboard-list-item-".concat((S=p.key)!==null&&S!==void 0?S:"","-button"),onClick:()=>h(p),className:a===k?"focused":"",style:{transition:"none"},children:[p.icon?d.jsx("span",{className:"dashboard-list-item-icon",children:pe.isValidElement(p.icon)?p.icon:d.jsx(B,{icon:p.icon})}):null,p.title]})},p.key)}),[m,h,a,g]),w=c.useMemo(()=>x.length===0?d.jsx("span",{children:"No open dashboard found."}):null,[x]);return d.jsxs("div",{className:"dashboard-list-container d-flex flex-column",children:[d.jsx("div",{className:"dashboard-list-header",children:d.jsx(Bt,{value:i,placeholder:"Find open dashboard",endPlaceholder:fe.OPEN_DASHBOARD_LIST.getDisplayText(),onChange:b,onKeyDown:P,ref:l})}),d.jsxs("ul",{className:"dashboard-list flex-grow-1",ref:r,children:[w&&d.jsx("li",{className:"dashboard-list-message",children:w}),!w&&x]})]})}function ke(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Fe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ke(Object(n),!0).forEach(function(i){Hn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Hn(t,e,n){return(e=zn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zn(t){var e=Kn(t,"string");return typeof e=="symbol"?e:e+""}function Kn(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xn=500,Qn=.01,Jn=5e-4;function _e(t){return t.scrollLeft===0}function De(t){return Math.abs(t.scrollLeft+t.clientWidth-t.scrollWidth)<=1||t.scrollWidth===0}function Vn(t,e,n){var{isClosable:i=!1,key:o}=t,a=[];if(i&&n!=null){a.push({title:"Close",order:10,group:20,action:()=>{n(o)}});for(var s=!0,l=e.length-1;l>0&&e[l].key!==t.key;l-=1)if(e[l].isClosable===!0){s=!1;break}a.push({title:"Close to the Right",order:20,group:20,action:()=>{for(var r=e.length-1;r>0&&e[r].key!==o;r-=1)e[r].isClosable===!0&&n(e[r].key)},disabled:s}),a.push({title:"Close All",order:30,group:20,action:()=>{e.forEach(r=>{r.isClosable===!0&&n(r.key)})}})}return a}function fo(t){var{activeKey:e,tabs:n,onSelect:i,onReorder:o,onClose:a,makeContextActions:s,renderAfterTabContent:l}=t,r=c.useRef(),[u,b]=c.useState(!0),[h,g]=c.useState(!1),[m,P]=c.useState(!0),[x,w]=c.useState(!0),p=c.useCallback(()=>{r.current!=null&&(r.current.clientWidth<r.current.scrollWidth&&n.length>0?b(!0):b(!1),P(_e(r.current)),w(De(r.current)))},[n]);nt(r.current,p);var k=c.useCallback(f=>{Oe.stopDragging(),f.destination&&(o==null||o(f.source.index,f.destination.index))},[o]),S=c.useCallback(()=>{if(r.current!=null){var f=_e(r.current);f!==m&&P(f);var y=De(r.current);y!==x&&w(y)}},[m,x]),E=c.useRef({cancelClick:!1}),L=c.useCallback(()=>{if(!(r.current==null||E.current.cancelClick))for(var{children:f}=r.current,y=f.length-1;y>=0;y-=1){var v=f[y];if(v.offsetLeft<r.current.scrollLeft-5){v.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"});return}}},[]),C=c.useCallback(()=>{if(!(r.current==null||E.current.cancelClick))for(var{children:f}=r.current,y=0;y<f.length;y+=1){var v=f[y];if(v.offsetLeft+v.offsetWidth-5>r.current.scrollLeft+r.current.offsetWidth){v.scrollIntoView({behavior:"smooth",block:"nearest",inline:"end"});return}}},[]),M=c.useCallback(function(f,y){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,T=arguments.length>3?arguments[3]:void 0,_=r.current;_!=null&&(E.current.cancelClick=!0,f==="left"?_.scrollLeft=y-v:f==="right"&&(_.scrollLeft=y+v),E.current.rAF=requestAnimationFrame(K=>{var be=T??K,ve=K-be,te=Qn*ve+.5*Jn*ve**2;te=Math.min(te,_.scrollWidth),M(f,y,te,be)}))},[]),$=c.useCallback(()=>{var{holdTimer:f,rAF:y}=E.current;f!=null&&(clearTimeout(f),E.current.holdTimer=void 0),y!=null&&(cancelAnimationFrame(y),E.current.rAF=void 0),window.removeEventListener("mouseup",$)},[]);c.useEffect(()=>()=>window.removeEventListener("mouseup",$),[$]);var z=c.useCallback(f=>{r.current!=null&&(E.current.holdTimer=window.setTimeout(M,Xn,f,r.current.scrollLeft)),E.current.cancelClick=!1,window.addEventListener("mouseup",$)},[$,M]),ut=c.useCallback(()=>{z("left")},[z]),pt=c.useCallback(()=>{z("right")},[z]);c.useEffect(function(){var y,v=T=>{T.stopPropagation(),T.preventDefault();var _=T.currentTarget,K=Math.abs(T.deltaY)>Math.abs(T.deltaX)?T.deltaY:T.deltaX;_.scrollLeft+=Ct(K,-30,30)};return(y=r.current)===null||y===void 0||y.addEventListener("wheel",v),()=>{var T;(T=r.current)===null||T===void 0||T.removeEventListener("wheel",v)}},[]);var ft=c.useMemo(()=>{var f=new Map;return n.forEach(y=>{var{key:v}=y,T=[()=>Vn(y,n,a),()=>{var _;return(_=s==null?void 0:s(y))!==null&&_!==void 0?_:[]}];f.set(v,T)}),f},[s,n,a]),ee=c.useRef(null),ht=n.find(f=>f.key===e),mt=n.map((f,y)=>{var{key:v}=f,T=f===ht;return d.jsx(rt,{tab:f,index:y,isActive:T,activeRef:ee,onSelect:i,onClose:a,isDraggable:o!=null,contextActions:ft.get(v),renderAfterTabContent:l},v)});c.useEffect(function(){ee.current!=null&&ee.current.scrollIntoView({block:"nearest",inline:"nearest"})},[e]);var yt=()=>{g(!h)},gt=f=>{g(!1),i(f.key)},bt=()=>{g(!1)};return d.jsxs("nav",{className:"nav-container",children:[u&&d.jsx(I,{kind:"ghost",icon:d.jsx(B,{icon:gn,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-left",tooltip:"Scroll left",onClick:L,onMouseDown:ut,disabled:m}),d.jsx(Tt,{onDragStart:Oe.startDragging,onDragEnd:k,children:d.jsx(Ot,{droppableId:"droppable-tab-navigation",direction:"horizontal",children:(f,y)=>d.jsxs("div",Fe(Fe({ref:v=>{v!=null&&(r.current=v,f.innerRef(v))}},f.droppableProps),{},{className:q("nav nav-tabs",{dragging:y.draggingFromThisWith}),role:"tablist",onScroll:S,children:[mt,f.placeholder]}))})}),u&&d.jsx(I,{kind:"ghost",icon:d.jsx(B,{icon:bn,transform:"grow-4"}),className:"tab-controls-btn tab-controls-btn-right",tooltip:"Scroll right",onClick:C,onMouseDown:pt,disabled:x}),d.jsx(I,{kind:"ghost",icon:d.jsx(B,{icon:vn,transform:"grow-4"}),className:"btn-dashboard-list-menu btn-show-dashboard-list",tooltip:"Search open dashboards",onClick:yt,disabled:n.length<2,style:{visibility:u?"visible":"hidden",marginLeft:"auto"},children:d.jsx(Mt,{isShown:h,className:"dashboard-list-menu-popper",onExited:bt,options:{placement:"bottom-start"},closeOnBlur:!0,interactive:!0,children:d.jsx(qn,{tabs:n,onSelect:gt})})}),d.jsx(et,{actions:[{action:()=>{g(!h)},shortcut:fe.OPEN_DASHBOARD_LIST,isGlobal:!0}]})]})}function Zn(t,e){var n=$t(),i=c.useMemo(()=>new n.CoreClient(t,e),[n,t,e]);return c.useEffect(()=>()=>{i.disconnect()},[i]),i}var me=c.createContext(null);me.displayName="ClientContext";function ho(t){var{serverUrl:e,options:n,children:i}=t,o=Zn(e,n);return d.jsx(me.Provider,{value:o,children:i})}function ei(){return V(me,"No Client available in useClient. Was code wrapped in ClientBootstrap or ClientContext.Provider?")}var ti={$schema:"http://json-schema.org/draft-07/schema#",title:"Options",type:"object",properties:{"allowed-confusables":{description:'A list of allowed "confusable" Unicode characters to ignore when enforcing `RUF001`, `RUF002`, and `RUF003`.',deprecated:!0,type:["array","null"],items:{type:"string",maxLength:1,minLength:1}},builtins:{description:"A list of builtins to treat as defined references, in addition to the system builtins.",type:["array","null"],items:{type:"string"}},"cache-dir":{description:"A path to the cache directory.\n\nBy default, Ruff stores cache results in a `.ruff_cache` directory in the current project root.\n\nHowever, Ruff will also respect the `RUFF_CACHE_DIR` environment variable, which takes precedence over that default.\n\nThis setting will override even the `RUFF_CACHE_DIR` environment variable, if set.",type:["string","null"]},"dummy-variable-rgx":{description:'A regular expression used to identify "dummy" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.',deprecated:!0,type:["string","null"]},exclude:{description:"A list of file patterns to exclude from formatting and linting.\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).\n\nNote that you'll typically want to use [`extend-exclude`](#extend-exclude) to modify the excluded paths.",type:["array","null"],items:{type:"string"}},"explicit-preview-rules":{description:"Whether to require exact codes to select preview rules. When enabled, preview rules will not be selected by prefixes — the full code of each preview rule will be required to enable the rule.",deprecated:!0,type:["boolean","null"]},extend:{description:"A path to a local `pyproject.toml` file to merge into this configuration. User home directory and environment variables will be expanded.\n\nTo resolve the current `pyproject.toml` file, Ruff will first resolve this base configuration file, then merge in any properties defined in the current configuration file.",type:["string","null"]},"extend-exclude":{description:"A list of file patterns to omit from formatting and linting, in addition to those specified by [`exclude`](#exclude).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-fixable":{description:"A list of rule codes or prefixes to consider fixable, in addition to those specified by [`fixable`](#lint_fixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-ignore":{description:"A list of rule codes or prefixes to ignore, in addition to those specified by `ignore`.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-include":{description:"A list of file patterns to include when linting, in addition to those specified by [`include`](#include).\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"extend-per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).",deprecated:!0,type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},"extend-safe-fixes":{description:"A list of rule codes or prefixes for which unsafe fixes should be considered safe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-select":{description:"A list of rule codes or prefixes to enable, in addition to those specified by [`select`](#lint_select).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unfixable":{description:"A list of rule codes or prefixes to consider non-auto-fixable, in addition to those specified by [`unfixable`](#lint_unfixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unsafe-fixes":{description:"A list of rule codes or prefixes for which safe fixes should be considered unsafe.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},external:{description:"A list of rule codes or prefixes that are unsupported by Ruff, but should be preserved when (e.g.) validating `# noqa` directives. Useful for retaining `# noqa` directives that cover plugins not yet implemented by Ruff.",deprecated:!0,type:["array","null"],items:{type:"string"}},fix:{description:"Enable fix behavior by-default when running `ruff` (overridden by the `--fix` and `--no-fix` command-line flags). Only includes automatic fixes unless `--unsafe-fixes` is provided.",type:["boolean","null"]},"fix-only":{description:"Like [`fix`](#fix), but disables reporting on leftover violation. Implies [`fix`](#fix).",type:["boolean","null"]},fixable:{description:"A list of rule codes or prefixes to consider fixable. By default, all rules are considered fixable.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"flake8-annotations":{description:"Options for the `flake8-annotations` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8AnnotationsOptions"},{type:"null"}]},"flake8-bandit":{description:"Options for the `flake8-bandit` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BanditOptions"},{type:"null"}]},"flake8-boolean-trap":{description:"Options for the `flake8-boolean-trap` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BooleanTrapOptions"},{type:"null"}]},"flake8-bugbear":{description:"Options for the `flake8-bugbear` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BugbearOptions"},{type:"null"}]},"flake8-builtins":{description:"Options for the `flake8-builtins` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8BuiltinsOptions"},{type:"null"}]},"flake8-comprehensions":{description:"Options for the `flake8-comprehensions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ComprehensionsOptions"},{type:"null"}]},"flake8-copyright":{description:"Options for the `flake8-copyright` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8CopyrightOptions"},{type:"null"}]},"flake8-errmsg":{description:"Options for the `flake8-errmsg` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ErrMsgOptions"},{type:"null"}]},"flake8-gettext":{description:"Options for the `flake8-gettext` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8GetTextOptions"},{type:"null"}]},"flake8-implicit-str-concat":{description:"Options for the `flake8-implicit-str-concat` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImplicitStrConcatOptions"},{type:"null"}]},"flake8-import-conventions":{description:"Options for the `flake8-import-conventions` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8ImportConventionsOptions"},{type:"null"}]},"flake8-pytest-style":{description:"Options for the `flake8-pytest-style` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8PytestStyleOptions"},{type:"null"}]},"flake8-quotes":{description:"Options for the `flake8-quotes` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8QuotesOptions"},{type:"null"}]},"flake8-self":{description:"Options for the `flake8_self` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8SelfOptions"},{type:"null"}]},"flake8-tidy-imports":{description:"Options for the `flake8-tidy-imports` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TidyImportsOptions"},{type:"null"}]},"flake8-type-checking":{description:"Options for the `flake8-type-checking` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8TypeCheckingOptions"},{type:"null"}]},"flake8-unused-arguments":{description:"Options for the `flake8-unused-arguments` plugin.",deprecated:!0,anyOf:[{$ref:"#/definitions/Flake8UnusedArgumentsOptions"},{type:"null"}]},"force-exclude":{description:"Whether to enforce [`exclude`](#exclude) and [`extend-exclude`](#extend-exclude) patterns, even for paths that are passed to Ruff explicitly. Typically, Ruff will lint any paths passed in directly, even if they would typically be excluded. Setting `force-exclude = true` will cause Ruff to respect these exclusions unequivocally.\n\nThis is useful for [`pre-commit`](https://pre-commit.com/), which explicitly passes all changed files to the [`ruff-pre-commit`](https://github.com/astral-sh/ruff-pre-commit) plugin, regardless of whether they're marked as excluded by Ruff's own settings.",type:["boolean","null"]},format:{description:"Options to configure code formatting.",anyOf:[{$ref:"#/definitions/FormatOptions"},{type:"null"}]},ignore:{description:"A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"ignore-init-module-imports":{description:"Avoid automatically removing unused imports in `__init__.py` files. Such imports will still be flagged, but with a dedicated message suggesting that the import is either added to the module's `__all__` symbol, or re-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports via an unsafe fix.",deprecated:!0,type:["boolean","null"]},include:{description:"A list of file patterns to include when linting.\n\nInclusion are based on globs, and should be single-path patterns, like `*.pyw`, to include any file with the `.pyw` extension. `pyproject.toml` is included here not for configuration but because we lint whether e.g. the `[project]` matches the schema.\n\nNotebook files (`.ipynb` extension) are included by default on Ruff 0.6.0+.\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"indent-width":{description:`The number of spaces per indentation level (tab).
2
2
 
3
3
  Used by the formatter and when enforcing long-line violations (like \`E501\`) to determine the visual width of a tab.
4
4
 
@@ -79,4 +79,4 @@ foo, bar, quux = this_is_a_long_line(lion, hippo, lemur, bear) ''' pass \`\`\`
79
79
  ( foo, bar, quux, ) = this_is_a_long_line( lion, hippo, lemur, bear, ) """ pass \`\`\``,anyOf:[{$ref:"#/definitions/DocstringCodeLineWidth"},{type:"null"}]},exclude:{description:"A list of file patterns to exclude from formatting in addition to the files excluded globally (see [`exclude`](#exclude), and [`extend-exclude`](#extend-exclude)).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"indent-style":{description:'Whether to use spaces or tabs for indentation.\n\n`indent-style = "space"` (default):\n\n```python def f(): print("Hello") # Spaces indent the `print` statement. ```\n\n`indent-style = "tab"`:\n\n```python def f(): print("Hello") # A tab `\\t` indents the `print` statement. ```\n\nPEP 8 recommends using spaces for [indentation](https://peps.python.org/pep-0008/#indentation). We care about accessibility; if you do not need tabs for accessibility, we do not recommend you use them.\n\nSee [`indent-width`](#indent-width) to configure the number of spaces per indentation and the tab width.',anyOf:[{$ref:"#/definitions/IndentStyle"},{type:"null"}]},"line-ending":{description:"The character Ruff uses at the end of a line.\n\n* `auto`: The newline style is detected automatically on a file per file basis. Files with mixed line endings will be converted to the first detected line ending. Defaults to `\\n` for files that contain no line endings. * `lf`: Line endings will be converted to `\\n`. The default line ending on Unix. * `cr-lf`: Line endings will be converted to `\\r\\n`. The default line ending on Windows. * `native`: Line endings will be converted to `\\n` on Unix and `\\r\\n` on Windows.",anyOf:[{$ref:"#/definitions/LineEnding"},{type:"null"}]},preview:{description:"Whether to enable the unstable preview style formatting.",type:["boolean","null"]},"quote-style":{description:'Configures the preferred quote character for strings. The recommended options are\n\n* `double` (default): Use double quotes `"` * `single`: Use single quotes `\'`\n\nIn compliance with [PEP 8](https://peps.python.org/pep-0008/) and [PEP 257](https://peps.python.org/pep-0257/), Ruff prefers double quotes for triple quoted strings and docstrings even when using `quote-style = "single"`.\n\nRuff deviates from using the configured quotes if doing so prevents the need for escaping quote characters inside the string:\n\n```python a = "a string without any quotes" b = "It\'s monday morning" ```\n\nRuff will change the quotes of the string assigned to `a` to single quotes when using `quote-style = "single"`. However, Ruff uses double quotes for the string assigned to `b` because using single quotes would require escaping the `\'`, which leads to the less readable code: `\'It\\\'s monday morning\'`.\n\nIn addition, Ruff supports the quote style `preserve` for projects that already use a mixture of single and double quotes and can\'t migrate to the `double` or `single` style. The quote style `preserve` leaves the quotes of all strings unchanged.',anyOf:[{$ref:"#/definitions/QuoteStyle"},{type:"null"}]},"skip-magic-trailing-comma":{description:"Ruff uses existing trailing commas as an indication that short lines should be left separate. If this option is set to `true`, the magic trailing comma is ignored.\n\nFor example, Ruff leaves the arguments separate even though collapsing the arguments to a single line doesn't exceed the line length if `skip-magic-trailing-comma = false`:\n\n```python # The arguments remain on separate lines because of the trailing comma after `b` def test( a, b, ): pass ```\n\nSetting `skip-magic-trailing-comma = true` changes the formatting to:\n\n```python # The arguments remain on separate lines because of the trailing comma after `b` def test(a, b): pass ```",type:["boolean","null"]}},additionalProperties:!1},ImportSection:{anyOf:[{$ref:"#/definitions/ImportType"},{type:"string"}]},ImportType:{type:"string",enum:["future","standard-library","third-party","first-party","local-folder"]},IndentStyle:{oneOf:[{description:"Use tabs to indent code.",type:"string",enum:["tab"]},{description:"Use [`IndentWidth`] spaces to indent code.",type:"string",enum:["space"]}]},IndentWidth:{description:"The size of a tab.",type:"integer",format:"uint8",minimum:1},IsortOptions:{type:"object",properties:{"case-sensitive":{description:"Sort imports taking into account case sensitivity.",type:["boolean","null"]},classes:{description:"An override list of tokens to always recognize as a Class for [`order-by-type`](#lint_isort_order-by-type) regardless of casing.",type:["array","null"],items:{type:"string"}},"combine-as-imports":{description:"Combines as imports on the same line. See isort's [`combine-as-imports`](https://pycqa.github.io/isort/docs/configuration/options.html#combine-as-imports) option.",type:["boolean","null"]},constants:{description:"An override list of tokens to always recognize as a CONSTANT for [`order-by-type`](#lint_isort_order-by-type) regardless of casing.",type:["array","null"],items:{type:"string"}},"default-section":{description:"Define a default section for any imports that don't fit into the specified [`section-order`](#lint_isort_section-order).",anyOf:[{$ref:"#/definitions/ImportSection"},{type:"null"}]},"detect-same-package":{description:"Whether to automatically mark imports from within the same package as first-party. For example, when `detect-same-package = true`, then when analyzing files within the `foo` package, any imports from within the `foo` package will be considered first-party.\n\nThis heuristic is often unnecessary when `src` is configured to detect all first-party sources; however, if `src` is _not_ configured, this heuristic can be useful to detect first-party imports from _within_ (but not _across_) first-party packages.",type:["boolean","null"]},"extra-standard-library":{description:"A list of modules to consider standard-library, in addition to those known to Ruff in advance.\n\nSupports glob patterns. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"force-single-line":{description:"Forces all from imports to appear on their own line.",type:["boolean","null"]},"force-sort-within-sections":{description:"Don't sort straight-style imports (like `import sys`) before from-style imports (like `from itertools import groupby`). Instead, sort the imports by module, independent of import style.",type:["boolean","null"]},"force-to-top":{description:"Force specific imports to the top of their appropriate section.",type:["array","null"],items:{type:"string"}},"force-wrap-aliases":{description:"Force `import from` statements with multiple members and at least one alias (e.g., `import A as B`) to wrap such that every line contains exactly one member. For example, this formatting would be retained, rather than condensing to a single line:\n\n```python from .utils import ( test_directory as test_directory, test_id as test_id ) ```\n\nNote that this setting is only effective when combined with `combine-as-imports = true`. When [`combine-as-imports`](#lint_isort_combine-as-imports) isn't enabled, every aliased `import from` will be given its own line, in which case, wrapping is not necessary.\n\nWhen using the formatter, ensure that [`format.skip-magic-trailing-comma`](#format_skip-magic-trailing-comma) is set to `false` (default) when enabling `force-wrap-aliases` to avoid that the formatter collapses members if they all fit on a single line.",type:["boolean","null"]},"forced-separate":{description:"A list of modules to separate into auxiliary block(s) of imports, in the order specified.",type:["array","null"],items:{type:"string"}},"from-first":{description:"Whether to place `import from` imports before straight imports when sorting.\n\nFor example, by default, imports will be sorted such that straight imports appear before `import from` imports, as in: ```python import os import sys from typing import List ```\n\nSetting `from-first = true` will instead sort such that `import from` imports appear before straight imports, as in: ```python from typing import List import os import sys ```",type:["boolean","null"]},"known-first-party":{description:"A list of modules to consider first-party, regardless of whether they can be identified as such via introspection of the local filesystem.\n\nSupports glob patterns. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"known-local-folder":{description:"A list of modules to consider being a local folder. Generally, this is reserved for relative imports (`from . import module`).\n\nSupports glob patterns. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"known-third-party":{description:"A list of modules to consider third-party, regardless of whether they can be identified as such via introspection of the local filesystem.\n\nSupports glob patterns. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"length-sort":{description:"Sort imports by their string length, such that shorter imports appear before longer imports. For example, by default, imports will be sorted alphabetically, as in: ```python import collections import os ```\n\nSetting `length-sort = true` will instead sort such that shorter imports appear before longer imports, as in: ```python import os import collections ```",type:["boolean","null"]},"length-sort-straight":{description:"Sort straight imports by their string length. Similar to [`length-sort`](#lint_isort_length-sort), but applies only to straight imports and doesn't affect `from` imports.",type:["boolean","null"]},"lines-after-imports":{description:"The number of blank lines to place after imports. Use `-1` for automatic determination.\n\nRuff uses at most one blank line after imports in typing stub files (files with `.pyi` extension) in accordance to the typing style recommendations ([source](https://typing.readthedocs.io/en/latest/source/stubs.html#blank-lines)).\n\nWhen using the formatter, only the values `-1`, `1`, and `2` are compatible because it enforces at least one empty and at most two empty lines after imports.",type:["integer","null"],format:"int"},"lines-between-types":{description:'The number of lines to place between "direct" and `import from` imports.\n\nWhen using the formatter, only the values `0` and `1` are compatible because it preserves up to one empty line after imports in nested blocks.',type:["integer","null"],format:"uint",minimum:0},"no-lines-before":{description:"A list of sections that should _not_ be delineated from the previous section via empty lines.",type:["array","null"],items:{$ref:"#/definitions/ImportSection"}},"no-sections":{description:"Put all imports into the same section bucket.\n\nFor example, rather than separating standard library and third-party imports, as in: ```python import os import sys\n\nimport numpy import pandas ```\n\nSetting `no-sections = true` will instead group all imports into a single section: ```python import numpy import os import pandas import sys ```",type:["boolean","null"]},"order-by-type":{description:"Order imports by type, which is determined by case, in addition to alphabetically.",type:["boolean","null"]},"relative-imports-order":{description:'Whether to place "closer" imports (fewer `.` characters, most local) before "further" imports (more `.` characters, least local), or vice versa.\n\nThe default ("furthest-to-closest") is equivalent to isort\'s [`reverse-relative`](https://pycqa.github.io/isort/docs/configuration/options.html#reverse-relative) default (`reverse-relative = false`); setting this to "closest-to-furthest" is equivalent to isort\'s `reverse-relative = true`.',anyOf:[{$ref:"#/definitions/RelativeImportsOrder"},{type:"null"}]},"required-imports":{description:"Add the specified import line to all files.",type:["array","null"],items:{$ref:"#/definitions/NameImports"}},"section-order":{description:"Override in which order the sections should be output. Can be used to move custom sections.",type:["array","null"],items:{$ref:"#/definitions/ImportSection"}},sections:{description:'A list of mappings from section names to modules.\n\nBy default, imports are categorized according to their type (e.g., `future`, `third-party`, and so on). This setting allows you to group modules into custom sections, to augment or override the built-in sections.\n\nFor example, to group all testing utilities, you could create a `testing` section: ```toml testing = ["pytest", "hypothesis"] ```\n\nThe values in the list are treated as glob patterns. For example, to match all packages in the LangChain ecosystem (`langchain-core`, `langchain-openai`, etc.): ```toml langchain = ["langchain-*"] ```\n\nCustom sections should typically be inserted into the [`section-order`](#lint_isort_section-order) list to ensure that they\'re displayed as a standalone group and in the intended order, as in: ```toml section-order = [ "future", "standard-library", "third-party", "first-party", "local-folder", "testing" ] ```\n\nIf a custom section is omitted from [`section-order`](#lint_isort_section-order), imports in that section will be assigned to the [`default-section`](#lint_isort_default-section) (which defaults to `third-party`).',type:["object","null"],additionalProperties:{type:"array",items:{type:"string"}}},"single-line-exclusions":{description:"One or more modules to exclude from the single line rule.",type:["array","null"],items:{type:"string"}},"split-on-trailing-comma":{description:"If a comma is placed after the last member in a multi-line import, then the imports will never be folded into one line.\n\nSee isort's [`split-on-trailing-comma`](https://pycqa.github.io/isort/docs/configuration/options.html#split-on-trailing-comma) option.\n\nWhen using the formatter, ensure that [`format.skip-magic-trailing-comma`](#format_skip-magic-trailing-comma) is set to `false` (default) when enabling `split-on-trailing-comma` to avoid that the formatter removes the trailing commas.",type:["boolean","null"]},variables:{description:"An override list of tokens to always recognize as a var for [`order-by-type`](#lint_isort_order-by-type) regardless of casing.",type:["array","null"],items:{type:"string"}}},additionalProperties:!1},LineEnding:{oneOf:[{description:"The newline style is detected automatically on a file per file basis. Files with mixed line endings will be converted to the first detected line ending. Defaults to [`LineEnding::Lf`] for a files that contain no line endings.",type:"string",enum:["auto"]},{description:"Line endings will be converted to `\\n` as is common on Unix.",type:"string",enum:["lf"]},{description:"Line endings will be converted to `\\r\\n` as is common on Windows.",type:"string",enum:["cr-lf"]},{description:"Line endings will be converted to `\\n` on Unix and `\\r\\n` on Windows.",type:"string",enum:["native"]}]},LineLength:{description:`The length of a line of text that is considered too long.
80
80
 
81
81
  The allowed range of values is 1..=320`,type:"integer",format:"uint16",maximum:320,minimum:1},LineWidth:{description:"The maximum visual width to which the formatter should try to limit a line.",type:"integer",format:"uint16",minimum:1},LintOptions:{description:"Configures how Ruff checks your code.\n\nOptions specified in the `lint` section take precedence over the deprecated top-level settings.",type:"object",properties:{"allowed-confusables":{description:'A list of allowed "confusable" Unicode characters to ignore when enforcing `RUF001`, `RUF002`, and `RUF003`.',type:["array","null"],items:{type:"string",maxLength:1,minLength:1}},"dummy-variable-rgx":{description:'A regular expression used to identify "dummy" variables, or those which should be ignored when enforcing (e.g.) unused-variable rules. The default expression matches `_`, `__`, and `_var`, but not `_var_`.',type:["string","null"]},exclude:{description:"A list of file patterns to exclude from linting in addition to the files excluded globally (see [`exclude`](#exclude), and [`extend-exclude`](#extend-exclude)).\n\nExclusions are based on globs, and can be either:\n\n- Single-path patterns, like `.mypy_cache` (to exclude any directory named `.mypy_cache` in the tree), `foo.py` (to exclude any file named `foo.py`), or `foo_*.py` (to exclude any file matching `foo_*.py` ). - Relative patterns, like `directory/foo.py` (to exclude that specific file) or `directory/*.py` (to exclude any Python files in `directory`). Note that these paths are relative to the project root (e.g., the directory containing your `pyproject.toml`).\n\nFor more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).",type:["array","null"],items:{type:"string"}},"explicit-preview-rules":{description:"Whether to require exact codes to select preview rules. When enabled, preview rules will not be selected by prefixes — the full code of each preview rule will be required to enable the rule.",type:["boolean","null"]},"extend-fixable":{description:"A list of rule codes or prefixes to consider fixable, in addition to those specified by [`fixable`](#lint_fixable).",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-ignore":{description:"A list of rule codes or prefixes to ignore, in addition to those specified by `ignore`.",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, in addition to any rules excluded by [`per-file-ignores`](#lint_per-file-ignores).",type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},"extend-safe-fixes":{description:"A list of rule codes or prefixes for which unsafe fixes should be considered safe.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-select":{description:"A list of rule codes or prefixes to enable, in addition to those specified by [`select`](#lint_select).",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unfixable":{description:"A list of rule codes or prefixes to consider non-auto-fixable, in addition to those specified by [`unfixable`](#lint_unfixable).",deprecated:!0,type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"extend-unsafe-fixes":{description:"A list of rule codes or prefixes for which safe fixes should be considered unsafe.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},external:{description:"A list of rule codes or prefixes that are unsupported by Ruff, but should be preserved when (e.g.) validating `# noqa` directives. Useful for retaining `# noqa` directives that cover plugins not yet implemented by Ruff.",type:["array","null"],items:{type:"string"}},fixable:{description:"A list of rule codes or prefixes to consider fixable. By default, all rules are considered fixable.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"flake8-annotations":{description:"Options for the `flake8-annotations` plugin.",anyOf:[{$ref:"#/definitions/Flake8AnnotationsOptions"},{type:"null"}]},"flake8-bandit":{description:"Options for the `flake8-bandit` plugin.",anyOf:[{$ref:"#/definitions/Flake8BanditOptions"},{type:"null"}]},"flake8-boolean-trap":{description:"Options for the `flake8-boolean-trap` plugin.",anyOf:[{$ref:"#/definitions/Flake8BooleanTrapOptions"},{type:"null"}]},"flake8-bugbear":{description:"Options for the `flake8-bugbear` plugin.",anyOf:[{$ref:"#/definitions/Flake8BugbearOptions"},{type:"null"}]},"flake8-builtins":{description:"Options for the `flake8-builtins` plugin.",anyOf:[{$ref:"#/definitions/Flake8BuiltinsOptions"},{type:"null"}]},"flake8-comprehensions":{description:"Options for the `flake8-comprehensions` plugin.",anyOf:[{$ref:"#/definitions/Flake8ComprehensionsOptions"},{type:"null"}]},"flake8-copyright":{description:"Options for the `flake8-copyright` plugin.",anyOf:[{$ref:"#/definitions/Flake8CopyrightOptions"},{type:"null"}]},"flake8-errmsg":{description:"Options for the `flake8-errmsg` plugin.",anyOf:[{$ref:"#/definitions/Flake8ErrMsgOptions"},{type:"null"}]},"flake8-gettext":{description:"Options for the `flake8-gettext` plugin.",anyOf:[{$ref:"#/definitions/Flake8GetTextOptions"},{type:"null"}]},"flake8-implicit-str-concat":{description:"Options for the `flake8-implicit-str-concat` plugin.",anyOf:[{$ref:"#/definitions/Flake8ImplicitStrConcatOptions"},{type:"null"}]},"flake8-import-conventions":{description:"Options for the `flake8-import-conventions` plugin.",anyOf:[{$ref:"#/definitions/Flake8ImportConventionsOptions"},{type:"null"}]},"flake8-pytest-style":{description:"Options for the `flake8-pytest-style` plugin.",anyOf:[{$ref:"#/definitions/Flake8PytestStyleOptions"},{type:"null"}]},"flake8-quotes":{description:"Options for the `flake8-quotes` plugin.",anyOf:[{$ref:"#/definitions/Flake8QuotesOptions"},{type:"null"}]},"flake8-self":{description:"Options for the `flake8_self` plugin.",anyOf:[{$ref:"#/definitions/Flake8SelfOptions"},{type:"null"}]},"flake8-tidy-imports":{description:"Options for the `flake8-tidy-imports` plugin.",anyOf:[{$ref:"#/definitions/Flake8TidyImportsOptions"},{type:"null"}]},"flake8-type-checking":{description:"Options for the `flake8-type-checking` plugin.",anyOf:[{$ref:"#/definitions/Flake8TypeCheckingOptions"},{type:"null"}]},"flake8-unused-arguments":{description:"Options for the `flake8-unused-arguments` plugin.",anyOf:[{$ref:"#/definitions/Flake8UnusedArgumentsOptions"},{type:"null"}]},ignore:{description:"A list of rule codes or prefixes to ignore. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"ignore-init-module-imports":{description:"Avoid automatically removing unused imports in `__init__.py` files. Such imports will still be flagged, but with a dedicated message suggesting that the import is either added to the module's `__all__` symbol, or re-exported with a redundant alias (e.g., `import os as os`).\n\nThis option is enabled by default, but you can opt-in to removal of imports via an unsafe fix.",deprecated:!0,type:["boolean","null"]},isort:{description:"Options for the `isort` plugin.",anyOf:[{$ref:"#/definitions/IsortOptions"},{type:"null"}]},"logger-objects":{description:'A list of objects that should be treated equivalently to a `logging.Logger` object.\n\nThis is useful for ensuring proper diagnostics (e.g., to identify `logging` deprecations and other best-practices) for projects that re-export a `logging.Logger` object from a common module.\n\nFor example, if you have a module `logging_setup.py` with the following contents: ```python import logging\n\nlogger = logging.getLogger(__name__) ```\n\nAdding `"logging_setup.logger"` to `logger-objects` will ensure that `logging_setup.logger` is treated as a `logging.Logger` object when imported from other modules (e.g., `from logging_setup import logger`).',type:["array","null"],items:{type:"string"}},mccabe:{description:"Options for the `mccabe` plugin.",anyOf:[{$ref:"#/definitions/McCabeOptions"},{type:"null"}]},"pep8-naming":{description:"Options for the `pep8-naming` plugin.",anyOf:[{$ref:"#/definitions/Pep8NamingOptions"},{type:"null"}]},"per-file-ignores":{description:"A list of mappings from file pattern to rule codes or prefixes to exclude, when considering any matching files. An initial '!' negates the file pattern.",type:["object","null"],additionalProperties:{type:"array",items:{$ref:"#/definitions/RuleSelector"}}},preview:{description:"Whether to enable preview mode. When preview mode is enabled, Ruff will use unstable rules and fixes.",type:["boolean","null"]},pycodestyle:{description:"Options for the `pycodestyle` plugin.",anyOf:[{$ref:"#/definitions/PycodestyleOptions"},{type:"null"}]},pydocstyle:{description:"Options for the `pydocstyle` plugin.",anyOf:[{$ref:"#/definitions/PydocstyleOptions"},{type:"null"}]},pyflakes:{description:"Options for the `pyflakes` plugin.",anyOf:[{$ref:"#/definitions/PyflakesOptions"},{type:"null"}]},pylint:{description:"Options for the `pylint` plugin.",anyOf:[{$ref:"#/definitions/PylintOptions"},{type:"null"}]},pyupgrade:{description:"Options for the `pyupgrade` plugin.",anyOf:[{$ref:"#/definitions/PyUpgradeOptions"},{type:"null"}]},ruff:{description:"Options for the `ruff` plugin",anyOf:[{$ref:"#/definitions/RuffOptions"},{type:"null"}]},select:{description:"A list of rule codes or prefixes to enable. Prefixes can specify exact rules (like `F841`), entire categories (like `F`), or anything in between.\n\nWhen breaking ties between enabled and disabled rules (via `select` and `ignore`, respectively), more specific prefixes override less specific prefixes.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}},"task-tags":{description:'A list of task tags to recognize (e.g., "TODO", "FIXME", "XXX").\n\nComments starting with these tags will be ignored by commented-out code detection (`ERA`), and skipped by line-length rules (`E501`) if [`ignore-overlong-task-comments`](#lint_pycodestyle_ignore-overlong-task-comments) is set to `true`.',type:["array","null"],items:{type:"string"}},"typing-modules":{description:"A list of modules whose exports should be treated equivalently to members of the `typing` module.\n\nThis is useful for ensuring proper type annotation inference for projects that re-export `typing` and `typing_extensions` members from a compatibility module. If omitted, any members imported from modules apart from `typing` and `typing_extensions` will be treated as ordinary Python objects.",type:["array","null"],items:{type:"string"}},unfixable:{description:"A list of rule codes or prefixes to consider non-fixable.",type:["array","null"],items:{$ref:"#/definitions/RuleSelector"}}},additionalProperties:!1},McCabeOptions:{type:"object",properties:{"max-complexity":{description:"The maximum McCabe complexity to allow before triggering `C901` errors.",type:["integer","null"],format:"uint",minimum:0}},additionalProperties:!1},NameImports:{type:"string"},OutputFormat:{oneOf:[{type:"string",enum:["concise","full","json","json-lines","junit","grouped","github","gitlab","pylint","rdjson","azure","sarif"]},{deprecated:!0,type:"string",enum:["text"]}]},ParametrizeNameType:{type:"string",enum:["csv","tuple","list"]},ParametrizeValuesRowType:{type:"string",enum:["tuple","list"]},ParametrizeValuesType:{type:"string",enum:["tuple","list"]},Pep8NamingOptions:{type:"object",properties:{"classmethod-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a class method (in addition to the builtin `@classmethod`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list takes a `cls` argument as its first argument.\n\nExpects to receive a list of fully-qualified names (e.g., `pydantic.validator`, rather than `validator`) or alternatively a plain name which is then matched against the last segment in case the decorator itself consists of a dotted name.",type:["array","null"],items:{type:"string"}},"extend-ignore-names":{description:'Additional names (or patterns) to ignore when considering `pep8-naming` violations, in addition to those included in [`ignore-names`](#lint_pep8-naming_ignore-names).\n\nSupports glob patterns. For example, to ignore all names starting with `test_` or ending with `_test`, you could use `ignore-names = ["test_*", "*_test"]`. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).',type:["array","null"],items:{type:"string"}},"ignore-names":{description:'A list of names (or patterns) to ignore when considering `pep8-naming` violations.\n\nSupports glob patterns. For example, to ignore all names starting with `test_` or ending with `_test`, you could use `ignore-names = ["test_*", "*_test"]`. For more information on the glob syntax, refer to the [`globset` documentation](https://docs.rs/globset/latest/globset/#syntax).',type:["array","null"],items:{type:"string"}},"staticmethod-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a static method (in addition to the builtin `@staticmethod`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list has no `self` or `cls` argument.\n\nExpects to receive a list of fully-qualified names (e.g., `belay.Device.teardown`, rather than `teardown`) or alternatively a plain name which is then matched against the last segment in case the decorator itself consists of a dotted name.",type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PyUpgradeOptions:{type:"object",properties:{"keep-runtime-typing":{description:"Whether to avoid [PEP 585](https://peps.python.org/pep-0585/) (`List[int]` -> `list[int]`) and [PEP 604](https://peps.python.org/pep-0604/) (`Union[str, int]` -> `str | int`) rewrites even if a file imports `from __future__ import annotations`.\n\nThis setting is only applicable when the target Python version is below 3.9 and 3.10 respectively, and is most commonly used when working with libraries like Pydantic and FastAPI, which rely on the ability to parse type annotations at runtime. The use of `from __future__ import annotations` causes Python to treat the type annotations as strings, which typically allows for the use of language features that appear in later Python versions but are not yet supported by the current version (e.g., `str | int`). However, libraries that rely on runtime type annotations will break if the annotations are incompatible with the current Python version.\n\nFor example, while the following is valid Python 3.8 code due to the presence of `from __future__ import annotations`, the use of `str | int` prior to Python 3.10 will cause Pydantic to raise a `TypeError` at runtime:\n\n```python from __future__ import annotations\n\nimport pydantic\n\nclass Foo(pydantic.BaseModel): bar: str | int ```",type:["boolean","null"]}},additionalProperties:!1},PycodestyleOptions:{type:"object",properties:{"ignore-overlong-task-comments":{description:'Whether line-length violations (`E501`) should be triggered for comments starting with [`task-tags`](#lint_task-tags) (by default: "TODO", "FIXME", and "XXX").',type:["boolean","null"]},"max-doc-length":{description:"The maximum line length to allow for [`doc-line-too-long`](https://docs.astral.sh/ruff/rules/doc-line-too-long/) violations within documentation (`W505`), including standalone comments. By default, this is set to `null` which disables reporting violations.\n\nThe length is determined by the number of characters per line, except for lines containing Asian characters or emojis. For these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nSee the [`doc-line-too-long`](https://docs.astral.sh/ruff/rules/doc-line-too-long/) rule for more information.",anyOf:[{$ref:"#/definitions/LineLength"},{type:"null"}]},"max-line-length":{description:"The maximum line length to allow for [`line-too-long`](https://docs.astral.sh/ruff/rules/line-too-long/) violations. By default, this is set to the value of the [`line-length`](#line-length) option.\n\nUse this option when you want to detect extra-long lines that the formatter can't automatically split by setting `pycodestyle.line-length` to a value larger than [`line-length`](#line-length).\n\n```toml # The formatter wraps lines at a length of 88. line-length = 88\n\n[pycodestyle] # E501 reports lines that exceed the length of 100. max-line-length = 100 ```\n\nThe length is determined by the number of characters per line, except for lines containing East Asian characters or emojis. For these lines, the [unicode width](https://unicode.org/reports/tr11/) of each character is added up to determine the length.\n\nSee the [`line-too-long`](https://docs.astral.sh/ruff/rules/line-too-long/) rule for more information.",anyOf:[{$ref:"#/definitions/LineLength"},{type:"null"}]}},additionalProperties:!1},PydocstyleOptions:{type:"object",properties:{convention:{description:'Whether to use Google-style, NumPy-style conventions, or the [PEP 257](https://peps.python.org/pep-0257/) defaults when analyzing docstring sections.\n\nEnabling a convention will disable all rules that are not included in the specified convention. As such, the intended workflow is to enable a convention and then selectively enable or disable any additional rules on top of it.\n\nFor example, to use Google-style conventions but avoid requiring documentation for every function parameter:\n\n```toml [tool.ruff.lint] # Enable all `pydocstyle` rules, limiting to those that adhere to the # Google convention via `convention = "google"`, below. select = ["D"]\n\n# On top of the Google convention, disable `D417`, which requires # documentation for every function parameter. ignore = ["D417"]\n\n[tool.ruff.lint.pydocstyle] convention = "google" ```\n\nTo enable an additional rule that\'s excluded from the convention, select the desired rule via its fully qualified rule code (e.g., `D400` instead of `D4` or `D40`):\n\n```toml [tool.ruff.lint] # Enable D400 on top of the Google convention. extend-select = ["D400"]\n\n[tool.ruff.lint.pydocstyle] convention = "google" ```',anyOf:[{$ref:"#/definitions/Convention"},{type:"null"}]},"ignore-decorators":{description:"Ignore docstrings for functions or methods decorated with the specified fully-qualified decorators.",type:["array","null"],items:{type:"string"}},"property-decorators":{description:"A list of decorators that, when applied to a method, indicate that the method should be treated as a property (in addition to the builtin `@property` and standard-library `@functools.cached_property`).\n\nFor example, Ruff will expect that any method decorated by a decorator in this list can use a non-imperative summary line.",type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PyflakesOptions:{type:"object",properties:{"extend-generics":{description:'Additional functions or classes to consider generic, such that any subscripts should be treated as type annotation (e.g., `ForeignKey` in `django.db.models.ForeignKey["User"]`.\n\nExpects to receive a list of fully-qualified names (e.g., `django.db.models.ForeignKey`, rather than `ForeignKey`).',type:["array","null"],items:{type:"string"}}},additionalProperties:!1},PylintOptions:{type:"object",properties:{"allow-dunder-method-names":{description:"Dunder methods name to allow, in addition to the default set from the Python standard library (see `PLW3201`).",type:["array","null"],items:{type:"string"},uniqueItems:!0},"allow-magic-value-types":{description:'Constant types to ignore when used as "magic values" (see `PLR2004`).',type:["array","null"],items:{$ref:"#/definitions/ConstantType"}},"max-args":{description:"Maximum number of arguments allowed for a function or method definition (see `PLR0913`).",type:["integer","null"],format:"uint",minimum:0},"max-bool-expr":{description:"Maximum number of Boolean expressions allowed within a single `if` statement (see `PLR0916`).",type:["integer","null"],format:"uint",minimum:0},"max-branches":{description:"Maximum number of branches allowed for a function or method body (see `PLR0912`).",type:["integer","null"],format:"uint",minimum:0},"max-locals":{description:"Maximum number of local variables allowed for a function or method body (see `PLR0914`).",type:["integer","null"],format:"uint",minimum:0},"max-nested-blocks":{description:"Maximum number of nested blocks allowed within a function or method body (see `PLR1702`).",type:["integer","null"],format:"uint",minimum:0},"max-positional-args":{description:"Maximum number of positional arguments allowed for a function or method definition (see `PLR0917`).\n\nIf not specified, defaults to the value of `max-args`.",type:["integer","null"],format:"uint",minimum:0},"max-public-methods":{description:"Maximum number of public methods allowed for a class (see `PLR0904`).",type:["integer","null"],format:"uint",minimum:0},"max-returns":{description:"Maximum number of return statements allowed for a function or method body (see `PLR0911`)",type:["integer","null"],format:"uint",minimum:0},"max-statements":{description:"Maximum number of statements allowed for a function or method body (see `PLR0915`).",type:["integer","null"],format:"uint",minimum:0}},additionalProperties:!1},PythonVersion:{type:"string",enum:["py37","py38","py39","py310","py311","py312","py313"]},Quote:{oneOf:[{description:"Use double quotes.",type:"string",enum:["double"]},{description:"Use single quotes.",type:"string",enum:["single"]}]},QuoteStyle:{type:"string",enum:["single","double","preserve"]},RelativeImportsOrder:{oneOf:[{description:'Place "closer" imports (fewer `.` characters, most local) before "further" imports (more `.` characters, least local).',type:"string",enum:["closest-to-furthest"]},{description:'Place "further" imports (more `.` characters, least local) imports before "closer" imports (fewer `.` characters, most local).',type:"string",enum:["furthest-to-closest"]}]},RequiredVersion:{type:"string"},RuffOptions:{type:"object",properties:{"parenthesize-tuple-in-subscript":{description:"Whether to prefer accessing items keyed by tuples with parentheses around the tuple (see `RUF031`).",type:["boolean","null"]}},additionalProperties:!1},RuleSelector:{type:"string",enum:["A","A0","A00","A001","A002","A003","A004","A005","A006","AIR","AIR0","AIR00","AIR001","ALL","ANN","ANN0","ANN00","ANN001","ANN002","ANN003","ANN1","ANN10","ANN101","ANN102","ANN2","ANN20","ANN201","ANN202","ANN204","ANN205","ANN206","ANN4","ANN40","ANN401","ARG","ARG0","ARG00","ARG001","ARG002","ARG003","ARG004","ARG005","ASYNC","ASYNC1","ASYNC10","ASYNC100","ASYNC105","ASYNC109","ASYNC11","ASYNC110","ASYNC115","ASYNC116","ASYNC2","ASYNC21","ASYNC210","ASYNC22","ASYNC220","ASYNC221","ASYNC222","ASYNC23","ASYNC230","ASYNC25","ASYNC251","B","B0","B00","B002","B003","B004","B005","B006","B007","B008","B009","B01","B010","B011","B012","B013","B014","B015","B016","B017","B018","B019","B02","B020","B021","B022","B023","B024","B025","B026","B027","B028","B029","B03","B030","B031","B032","B033","B034","B035","B039","B9","B90","B901","B904","B905","B909","BLE","BLE0","BLE00","BLE001","C","C4","C40","C400","C401","C402","C403","C404","C405","C406","C408","C409","C41","C410","C411","C413","C414","C415","C416","C417","C418","C419","C42","C420","C9","C90","C901","COM","COM8","COM81","COM812","COM818","COM819","CPY","CPY0","CPY00","CPY001","D","D1","D10","D100","D101","D102","D103","D104","D105","D106","D107","D2","D20","D200","D201","D202","D203","D204","D205","D206","D207","D208","D209","D21","D210","D211","D212","D213","D214","D215","D3","D30","D300","D301","D4","D40","D400","D401","D402","D403","D404","D405","D406","D407","D408","D409","D41","D410","D411","D412","D413","D414","D415","D416","D417","D418","D419","DJ","DJ0","DJ00","DJ001","DJ003","DJ006","DJ007","DJ008","DJ01","DJ012","DJ013","DOC","DOC2","DOC20","DOC201","DOC202","DOC4","DOC40","DOC402","DOC403","DOC5","DOC50","DOC501","DOC502","DTZ","DTZ0","DTZ00","DTZ001","DTZ002","DTZ003","DTZ004","DTZ005","DTZ006","DTZ007","DTZ01","DTZ011","DTZ012","E","E1","E10","E101","E11","E111","E112","E113","E114","E115","E116","E117","E2","E20","E201","E202","E203","E204","E21","E211","E22","E221","E222","E223","E224","E225","E226","E227","E228","E23","E231","E24","E241","E242","E25","E251","E252","E26","E261","E262","E265","E266","E27","E271","E272","E273","E274","E275","E3","E30","E301","E302","E303","E304","E305","E306","E4","E40","E401","E402","E5","E50","E501","E502","E7","E70","E701","E702","E703","E71","E711","E712","E713","E714","E72","E721","E722","E73","E731","E74","E741","E742","E743","E9","E90","E902","E99","E999","EM","EM1","EM10","EM101","EM102","EM103","ERA","ERA0","ERA00","ERA001","EXE","EXE0","EXE00","EXE001","EXE002","EXE003","EXE004","EXE005","F","F4","F40","F401","F402","F403","F404","F405","F406","F407","F5","F50","F501","F502","F503","F504","F505","F506","F507","F508","F509","F52","F521","F522","F523","F524","F525","F54","F541","F6","F60","F601","F602","F62","F621","F622","F63","F631","F632","F633","F634","F7","F70","F701","F702","F704","F706","F707","F72","F722","F8","F81","F811","F82","F821","F822","F823","F84","F841","F842","F9","F90","F901","FA","FA1","FA10","FA100","FA102","FAST","FAST0","FAST00","FAST001","FAST002","FAST003","FBT","FBT0","FBT00","FBT001","FBT002","FBT003","FIX","FIX0","FIX00","FIX001","FIX002","FIX003","FIX004","FLY","FLY0","FLY00","FLY002","FURB","FURB1","FURB10","FURB101","FURB103","FURB105","FURB11","FURB110","FURB113","FURB116","FURB118","FURB12","FURB129","FURB13","FURB131","FURB132","FURB136","FURB14","FURB140","FURB142","FURB145","FURB148","FURB15","FURB152","FURB154","FURB157","FURB16","FURB161","FURB163","FURB164","FURB166","FURB167","FURB168","FURB169","FURB17","FURB171","FURB177","FURB18","FURB180","FURB181","FURB187","FURB19","FURB192","G","G0","G00","G001","G002","G003","G004","G01","G010","G1","G10","G101","G2","G20","G201","G202","I","I0","I00","I001","I002","ICN","ICN0","ICN00","ICN001","ICN002","ICN003","INP","INP0","INP00","INP001","INT","INT0","INT00","INT001","INT002","INT003","ISC","ISC0","ISC00","ISC001","ISC002","ISC003","LOG","LOG0","LOG00","LOG001","LOG002","LOG007","LOG009","N","N8","N80","N801","N802","N803","N804","N805","N806","N807","N81","N811","N812","N813","N814","N815","N816","N817","N818","N9","N99","N999","NPY","NPY0","NPY00","NPY001","NPY002","NPY003","NPY2","NPY20","NPY201","PD","PD0","PD00","PD002","PD003","PD004","PD007","PD008","PD009","PD01","PD010","PD011","PD012","PD013","PD015","PD1","PD10","PD101","PD9","PD90","PD901","PERF","PERF1","PERF10","PERF101","PERF102","PERF2","PERF20","PERF203","PERF4","PERF40","PERF401","PERF402","PERF403","PGH","PGH0","PGH00","PGH003","PGH004","PGH005","PIE","PIE7","PIE79","PIE790","PIE794","PIE796","PIE8","PIE80","PIE800","PIE804","PIE807","PIE808","PIE81","PIE810","PL","PLC","PLC0","PLC01","PLC010","PLC0105","PLC013","PLC0131","PLC0132","PLC02","PLC020","PLC0205","PLC0206","PLC0208","PLC04","PLC041","PLC0414","PLC0415","PLC1","PLC19","PLC190","PLC1901","PLC2","PLC24","PLC240","PLC2401","PLC2403","PLC27","PLC270","PLC2701","PLC28","PLC280","PLC2801","PLC3","PLC30","PLC300","PLC3002","PLE","PLE0","PLE01","PLE010","PLE0100","PLE0101","PLE011","PLE0115","PLE0116","PLE0117","PLE0118","PLE02","PLE023","PLE0237","PLE024","PLE0241","PLE03","PLE030","PLE0302","PLE0303","PLE0304","PLE0305","PLE0307","PLE0308","PLE0309","PLE06","PLE060","PLE0604","PLE0605","PLE064","PLE0643","PLE07","PLE070","PLE0704","PLE1","PLE11","PLE113","PLE1132","PLE114","PLE1141","PLE1142","PLE12","PLE120","PLE1205","PLE1206","PLE13","PLE130","PLE1300","PLE1307","PLE131","PLE1310","PLE15","PLE150","PLE1507","PLE151","PLE1519","PLE152","PLE1520","PLE17","PLE170","PLE1700","PLE2","PLE25","PLE250","PLE2502","PLE251","PLE2510","PLE2512","PLE2513","PLE2514","PLE2515","PLE4","PLE47","PLE470","PLE4703","PLR","PLR0","PLR01","PLR012","PLR0124","PLR013","PLR0133","PLR02","PLR020","PLR0202","PLR0203","PLR0206","PLR04","PLR040","PLR0402","PLR09","PLR090","PLR0904","PLR091","PLR0911","PLR0912","PLR0913","PLR0914","PLR0915","PLR0916","PLR0917","PLR1","PLR17","PLR170","PLR1702","PLR1704","PLR171","PLR1711","PLR1714","PLR172","PLR1722","PLR173","PLR1730","PLR1733","PLR1736","PLR2","PLR20","PLR200","PLR2004","PLR204","PLR2044","PLR5","PLR55","PLR550","PLR5501","PLR6","PLR61","PLR610","PLR6104","PLR62","PLR620","PLR6201","PLR63","PLR630","PLR6301","PLW","PLW0","PLW01","PLW010","PLW0108","PLW012","PLW0120","PLW0127","PLW0128","PLW0129","PLW013","PLW0131","PLW0133","PLW017","PLW0177","PLW02","PLW021","PLW0211","PLW024","PLW0245","PLW04","PLW040","PLW0406","PLW06","PLW060","PLW0602","PLW0603","PLW0604","PLW064","PLW0642","PLW07","PLW071","PLW0711","PLW1","PLW15","PLW150","PLW1501","PLW1508","PLW1509","PLW151","PLW1510","PLW1514","PLW16","PLW164","PLW1641","PLW2","PLW21","PLW210","PLW2101","PLW29","PLW290","PLW2901","PLW3","PLW32","PLW320","PLW3201","PLW33","PLW330","PLW3301","PT","PT0","PT00","PT001","PT002","PT003","PT004","PT005","PT006","PT007","PT008","PT009","PT01","PT010","PT011","PT012","PT013","PT014","PT015","PT016","PT017","PT018","PT019","PT02","PT020","PT021","PT022","PT023","PT024","PT025","PT026","PT027","PTH","PTH1","PTH10","PTH100","PTH101","PTH102","PTH103","PTH104","PTH105","PTH106","PTH107","PTH108","PTH109","PTH11","PTH110","PTH111","PTH112","PTH113","PTH114","PTH115","PTH116","PTH117","PTH118","PTH119","PTH12","PTH120","PTH121","PTH122","PTH123","PTH124","PTH2","PTH20","PTH201","PTH202","PTH203","PTH204","PTH205","PTH206","PTH207","PYI","PYI0","PYI00","PYI001","PYI002","PYI003","PYI004","PYI005","PYI006","PYI007","PYI008","PYI009","PYI01","PYI010","PYI011","PYI012","PYI013","PYI014","PYI015","PYI016","PYI017","PYI018","PYI019","PYI02","PYI020","PYI021","PYI024","PYI025","PYI026","PYI029","PYI03","PYI030","PYI032","PYI033","PYI034","PYI035","PYI036","PYI04","PYI041","PYI042","PYI043","PYI044","PYI045","PYI046","PYI047","PYI048","PYI049","PYI05","PYI050","PYI051","PYI052","PYI053","PYI054","PYI055","PYI056","PYI057","PYI058","PYI059","PYI06","PYI062","PYI063","PYI064","PYI066","Q","Q0","Q00","Q000","Q001","Q002","Q003","Q004","RET","RET5","RET50","RET501","RET502","RET503","RET504","RET505","RET506","RET507","RET508","RSE","RSE1","RSE10","RSE102","RUF","RUF0","RUF00","RUF001","RUF002","RUF003","RUF005","RUF006","RUF007","RUF008","RUF009","RUF01","RUF010","RUF012","RUF013","RUF015","RUF016","RUF017","RUF018","RUF019","RUF02","RUF020","RUF021","RUF022","RUF023","RUF024","RUF026","RUF027","RUF028","RUF029","RUF03","RUF030","RUF031","RUF032","RUF033","RUF034","RUF1","RUF10","RUF100","RUF101","RUF2","RUF20","RUF200","S","S1","S10","S101","S102","S103","S104","S105","S106","S107","S108","S11","S110","S112","S113","S2","S20","S201","S202","S3","S30","S301","S302","S303","S304","S305","S306","S307","S308","S31","S310","S311","S312","S313","S314","S315","S316","S317","S318","S319","S32","S320","S321","S323","S324","S4","S40","S401","S402","S403","S404","S405","S406","S407","S408","S409","S41","S411","S412","S413","S415","S5","S50","S501","S502","S503","S504","S505","S506","S507","S508","S509","S6","S60","S601","S602","S603","S604","S605","S606","S607","S608","S609","S61","S610","S611","S612","S7","S70","S701","S702","SIM","SIM1","SIM10","SIM101","SIM102","SIM103","SIM105","SIM107","SIM108","SIM109","SIM11","SIM110","SIM112","SIM113","SIM114","SIM115","SIM116","SIM117","SIM118","SIM2","SIM20","SIM201","SIM202","SIM208","SIM21","SIM210","SIM211","SIM212","SIM22","SIM220","SIM221","SIM222","SIM223","SIM3","SIM30","SIM300","SIM4","SIM40","SIM401","SIM9","SIM91","SIM910","SIM911","SLF","SLF0","SLF00","SLF001","SLOT","SLOT0","SLOT00","SLOT000","SLOT001","SLOT002","T","T1","T10","T100","T2","T20","T201","T203","TCH","TCH0","TCH00","TCH001","TCH002","TCH003","TCH004","TCH005","TCH01","TCH010","TD","TD0","TD00","TD001","TD002","TD003","TD004","TD005","TD006","TD007","TID","TID2","TID25","TID251","TID252","TID253","TRY","TRY0","TRY00","TRY002","TRY003","TRY004","TRY2","TRY20","TRY201","TRY3","TRY30","TRY300","TRY301","TRY302","TRY4","TRY40","TRY400","TRY401","UP","UP0","UP00","UP001","UP003","UP004","UP005","UP006","UP007","UP008","UP009","UP01","UP010","UP011","UP012","UP013","UP014","UP015","UP017","UP018","UP019","UP02","UP020","UP021","UP022","UP023","UP024","UP025","UP026","UP027","UP028","UP029","UP03","UP030","UP031","UP032","UP033","UP034","UP035","UP036","UP037","UP038","UP039","UP04","UP040","UP041","UP042","UP043","W","W1","W19","W191","W2","W29","W291","W292","W293","W3","W39","W391","W5","W50","W505","W6","W60","W605","YTT","YTT1","YTT10","YTT101","YTT102","YTT103","YTT2","YTT20","YTT201","YTT202","YTT203","YTT204","YTT3","YTT30","YTT301","YTT302","YTT303"]},Strictness:{oneOf:[{description:"Ban imports that extend into the parent module or beyond.",type:"string",enum:["parents"]},{description:"Ban all relative imports.",type:"string",enum:["all"]}]}}};function Ie(t,e,n,i,o,a,s){try{var l=t[a](s),r=l.value}catch(u){return void n(u)}l.done?e(r):Promise.resolve(r).then(i,o)}function ni(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function s(r){Ie(a,i,o,s,l,"next",r)}function l(r){Ie(a,i,o,s,l,"throw",r)}s(void 0)})}}var at=Fn.parse("inmemory://dh-config/ruff-settings.json");function ii(){var{schemas:t=[]}=Ce.json.jsonDefaults.diagnosticsOptions;t.some(e=>e.uri==="json://ruff-schema")||Ce.json.jsonDefaults.setDiagnosticsOptions({schemas:[...t,{uri:"json://ruff-schema",fileMatch:[at.toString()],schema:ti}]})}function oi(){return ae.apply(this,arguments)}function ae(){return ae=ni(function*(){return yield Kt.initRuff(),"v".concat(Ft.version())}),ae.apply(this,arguments)}function mo(t){var{text:e,isOpen:n,onClose:i,onSave:o,readOnly:a=!1,defaultSettings:s=Wt}=t,[l,r]=c.useState(!1),[u,b]=c.useState(!1),h=c.useRef(),g=c.useMemo(()=>JSON.stringify(s,null,2),[s]),{data:m}=Rn(oi),[P]=c.useState(()=>kn.createModel(e,"json",at)),x=c.useCallback(()=>{n&&(i(),h.current=void 0,P.dispose())},[n,i,P]),w=c.useCallback(()=>{if(n){try{var L,C;o(JSON.parse((L=(C=h.current)===null||C===void 0||(C=C.getModel())===null||C===void 0?void 0:C.getValue())!==null&&L!==void 0?L:""))}catch{}x()}},[n,x,o]),p=c.useCallback(()=>{Pn(P),P.setValue(g)},[P,g]),k=c.useCallback(L=>{var C;try{JSON.parse(L),r(!0)}catch{r(!1)}b(((C=h.current)===null||C===void 0||(C=C.getModel())===null||C===void 0?void 0:C.getValue())===g)},[g]),S=Yt(k,500,{leading:!0}),E=c.useCallback(L=>{h.current=L,P.onDidChangeContent(()=>{S(P.getValue())}),ii(),S(P.getValue())},[S,P]);return n?d.jsxs(xn,{isOpen:n,centered:!0,keyboard:!0,clickOutside:!1,toggle:x,size:"lg",className:"ruff-settings-modal",children:[d.jsxs(wn,{closeButton:!1,children:[d.jsxs("span",{className:"settings-modal-title mr-auto",children:["Ruff ",m," Settings"]}),d.jsx(Lt,{href:"https://docs.astral.sh/ruff/settings/",target:"_blank",children:d.jsx(I,{kind:"ghost",onClick:Gt,icon:Sn,children:"Settings Docs"})}),d.jsxs(Rt,{isDisabled:u,onPress:p,children:[d.jsx(kt,{children:d.jsx(B,{icon:En})}),d.jsx(qt,{children:"Reset to default"})]})]}),d.jsx(Tn,{style:{height:"80vh"},children:d.jsx(Ht,{onEditorInitialized:E,settings:{readOnly:a,value:e,language:"json",folding:!0,padding:{bottom:16},lineNumbers:"on",overviewRulerLanes:0,model:P}})}),d.jsx(zt,{children:a?d.jsx(I,{kind:"secondary","data-dismiss":"modal",onClick:x,children:"Close"}):d.jsxs(d.Fragment,{children:[d.jsx(I,{kind:"secondary","data-dismiss":"modal",onClick:x,children:"Cancel"}),d.jsx(I,{kind:"primary","data-dismiss":"modal",tooltip:l?void 0:"Cannot save invalid JSON",disabled:!l,onClick:w,children:"Save"})]})})]}):null}var yo="io.deephaven.message.LoginOptions.request",ri="io.deephaven.message.SessionDetails.request",go="io.deephaven.broadcast",ai="io.deephaven.broadcast.Login",si="io.deephaven.broadcast.Logout";function bo(t){return tt(t)&&t.message===ai}function vo(t){return tt(t)&&t.message===si}function li(t,e,n){return(e=di(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function di(t){var e=ci(t,"string");return typeof e=="symbol"?e:e+""}function ci(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class ui extends Error{constructor(){super(...arguments),li(this,"isNoConsolesError",!0)}}function pi(t){return t.isNoConsolesError}function Ae(t,e,n,i,o,a,s){try{var l=t[a](s),r=l.value}catch(u){return void n(u)}l.done?e(r):Promise.resolve(r).then(i,o)}function Z(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function s(r){Ae(a,i,o,s,l,"next",r)}function l(r){Ae(a,i,o,s,l,"throw",r)}s(void 0)})}}var Y=H.module("SessionUtils");function fi(t,e,n){return se.apply(this,arguments)}function se(){return se=Z(function*(t,e,n){Y.info("Getting console types...");var i=yield e.getConsoleTypes();if(i.length===0)throw new ui("No console types available");Y.info("Available types:",i);var o=i[0];Y.info("Starting session with type",o);var a=yield e.startSession(o),s={type:o,id:_t()};return Y.info("Console session established",s),{session:a,config:s,connection:e,details:n,dh:t}}),se.apply(this,arguments)}function Po(t,e,n){return Y.info("createCoreClient",e),new t.CoreClient(e,n)}function hi(t){return t!=null&&typeof t=="object"}function mi(){return le.apply(this,arguments)}function le(){return le=Z(function*(){var t=yield On(ri);if(!hi(t))throw new Error("Unexpected session details response: ".concat(t));return t}),le.apply(this,arguments)}function xo(){return de.apply(this,arguments)}function de(){return de=Z(function*(){var t=new URLSearchParams(window.location.search);switch(t.get("authProvider")){case"parent":return mi()}return{}}),de.apply(this,arguments)}function wo(t,e,n){return ce.apply(this,arguments)}function ce(){return ce=Z(function*(t,e,n){var i;try{i=yield fi(t,e,n)}catch(o){if(!pi(o))throw o}return i}),ce.apply(this,arguments)}function Ne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function yi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ne(Object(n),!0).forEach(function(i){gi(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function gi(t,e,n){return(e=bi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bi(t){var e=vi(t,"string");return typeof e=="symbol"?e:e+""}function vi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Pi=100,oe=()=>{},xi=Object.freeze({});function wi(t){var{id:e="default",children:n,emptyDashboard:i,layoutConfig:o,layoutSettings:a=xi,onLayoutConfigChange:s=oe,onGoldenLayoutChange:l=oe,onLayoutInitialized:r=oe,fallbackComponent:u=Xt,hydrate:b,dehydrate:h,panelWrapper:g}=t,m=c.useRef(null),[P,x]=c.useState(!1),[w,p]=c.useState();c.useEffect(function(){if(!m.current){p(void 0);return}var E=yi({},Qt.makeDefaultLayout());E.settings===void 0&&(E.settings={}),Object.assign(E.settings,a),E.content=[];var L=new Jt(E,m.current),C=()=>{L.off("initialised",C),x(!0)};return L.on("initialised",C),u!=null&&L.setFallbackComponent(u),L.init(),p(L),l(L),()=>{L.destroy()}},[a,u,l,x,p]);var k=c.useMemo(()=>Ze(()=>{w!=null&&w.isInitialised&&(w==null||w.updateSize())},Pi),[w]);return nt(m.current,k),d.jsxs("div",{className:"dashboard-container w-100 h-100",children:[d.jsx("div",{className:"w-100 h-100",ref:m}),P&&w&&d.jsx(Vt.Provider,{value:w,children:d.jsx(Zt.Provider,{value:e,children:d.jsx(en,{children:d.jsx(tn,{emptyDashboard:i,id:e,layout:w,layoutConfig:o,onLayoutChange:s,onLayoutInitialized:r,hydrate:b,dehydrate:h,panelWrapper:g,children:n})})})})]})}var Si=["id","isActive","plugins"];function je(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Ue(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?je(Object(n),!0).forEach(function(i){Ei(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Ei(t,e,n){return(e=Ti(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ti(t){var e=Oi(t,"string");return typeof e=="symbol"?e:e+""}function Oi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ci(t,e){if(t==null)return{};var n,i,o=Li(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Li(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;n[i]=t[i]}return n}function Ri(t){var{id:e,isActive:n,plugins:i}=t,o=Ci(t,Si),[a,s]=c.useState(n),l=Dt(),r=c.useCallback(u=>{l(e===nn?on({layoutConfig:u}):rn(e,{layoutConfig:u}))},[e,l]);return!a&&n&&s(!0),a?d.jsx(wi,Ue(Ue({id:e,onLayoutConfigChange:r},o),{},{children:i})):d.jsx(he,{"data-testid":"lazy-dashboard-loading"})}function ki(t){var e=[...t.entries()].filter(n=>{var[,i]=n;return an(i)||Pe(i)});return e.map(n=>{var[i,o]=n;if(Pe(o)){var{DashboardPlugin:a}=o;return d.jsx(a,{},i)}var{component:s}=o;return d.jsx(s,{},i)})}function So(){var t=sn(),e=c.useMemo(()=>ki(t),[t]);return e}var Eo=c.createContext({}),Fi=c.createContext({});Fi.displayName="UserPermissionsOverrideContext";var st=c.createContext(null);st.displayName="UserContext";var lt=c.createContext(null);lt.displayName="ConnectionContext";function Be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Me(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Be(Object(n),!0).forEach(function(i){_i(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function _i(t,e,n){return(e=Di(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Di(t){var e=Ii(t,"string");return typeof e=="symbol"?e:e+""}function Ii(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function To(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{action:()=>{Bn(Ln,Me(Me({},t),{},{userAgent:navigator.userAgent}),Cn.getState())},shortcut:fe.EXPORT_LOGS,isGlobal:e}}function $e(t,e,n,i,o,a,s){try{var l=t[a](s),r=l.value}catch(u){return void n(u)}l.done?e(r):Promise.resolve(r).then(i,o)}function Ai(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function s(r){$e(a,i,o,s,l,"next",r)}function l(r){$e(a,i,o,s,l,"throw",r)}s(void 0)})}}var ye=c.createContext(null);ye.displayName="ServerConfigContext";function Oo(t){var{children:e}=t,n=ei(),[i,o]=c.useState(),[a,s]=c.useState();c.useEffect(function(){var u=!1;function b(){return h.apply(this,arguments)}function h(){return h=Ai(function*(){try{var g=yield n.getServerConfigValues();u||o(new Map(g))}catch(m){u||s(m)}}),h.apply(this,arguments)}return b(),()=>{u=!0}},[n]);var l=i==null;return l||a!=null?d.jsx(he,{"data-testid":"server-config-bootstrap-loading",isLoading:l&&a==null,errorMessage:ln(a)}):d.jsx(ye.Provider,{value:i,children:e})}function Co(){return V(ye,"No server config available in useServerConfig. Was code wrapped in ServerConfigBootstrap or ServerConfigContext.Provider?")}function We(t,e,n,i,o,a,s){try{var l=t[a](s),r=l.value}catch(u){return void n(u)}l.done?e(r):Promise.resolve(r).then(i,o)}function Ni(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function s(r){We(a,i,o,s,l,"next",r)}function l(r){We(a,i,o,s,l,"throw",r)}s(void 0)})}}function Ye(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Ge(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ye(Object(n),!0).forEach(function(i){ji(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ji(t,e,n){return(e=Ui(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ui(t){var e=Bi(t,"string");return typeof e=="symbol"?e:e+""}function Bi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Lo(t){var{dashboards:e,activeDashboard:n,onLayoutInitialized:i,onGoldenLayoutChange:o,plugins:a,emptyDashboard:s=d.jsx(he,{"data-testid":"app-dashboards-loading"})}=t,l=dn(),r=c.useCallback((u,b)=>{var{metadata:h}=u;try{if(h!=null)return Ge(Ge({fetch:function(){var g=Ni(function*(){return l(h)});function m(){return g.apply(this,arguments)}return m}()},u),{},{localDashboardId:b})}catch{}return cn.hydrate(u,b)},[l]);return d.jsx("div",{className:"tab-content",children:e.map(u=>d.jsx("div",{className:q("tab-pane",{active:u.id===n}),children:d.jsx(Ri,{id:u.id,isActive:u.id===n,emptyDashboard:s,layoutConfig:u.layoutConfig,layoutSettings:u.layoutSettings,onLayoutInitialized:i,onGoldenLayoutChange:o,hydrate:r,plugins:a},u.key)},u.id))})}function Ro(){return V(lt,"No IdeConnection available in useConnection. Was code wrapped in ConnectionContext.Provider?")}function ko(){return V(st,"No user available in useUser. Was code wrapped in UserBootstrap or UserContext.Provider?")}function qe(t,e,n,i,o,a,s){try{var l=t[a](s),r=l.value}catch(u){return void n(u)}l.done?e(r):Promise.resolve(r).then(i,o)}function Mi(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function s(r){qe(a,i,o,s,l,"next",r)}function l(r){qe(a,i,o,s,l,"throw",r)}s(void 0)})}}function D(t,e,n){return(e=$i(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $i(t){var e=Wi(t,"string");return typeof e=="symbol"?e:e+""}function Wi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var W=H.module("GrpcFileStorageTable");class G{constructor(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n;D(this,"storageService",void 0),D(this,"baseRoot",void 0),D(this,"root",void 0),D(this,"currentSize",0),D(this,"currentViewport",void 0),D(this,"listeners",[]),D(this,"viewportUpdatePromise",void 0),D(this,"currentViewportData",void 0),D(this,"childTables",new Map),this.storageService=e,this.baseRoot=n,this.root=i,i===n&&(this.doRefresh=It(this.doRefresh.bind(this),G.REFRESH_DEBOUNCE))}removeBaseRoot(e){return N.removeRoot(this.baseRoot,e)}getViewportData(){var e;return this.viewportUpdatePromise||this.refreshInternal(),(e=this.viewportUpdatePromise)!==null&&e!==void 0?e:Promise.resolve({items:[],offset:0})}getSnapshot(e){throw new Error("Method not implemented.")}get size(){return this.currentSize}setExpanded(e,n){var i=e.split("/"),o=i.shift();if((o===void 0||o==="")&&(o=i.shift()),o===void 0||o==="")throw new Error("Invalid path: ".concat(e));var a=i.join("/");if(n){if(!this.childTables.has(o)){var s=new G(this.storageService,this.baseRoot,"".concat(this.root,"/").concat(o));this.childTables.set(o,s)}if(a){var l=this.childTables.get(o);l==null||l.setExpanded(a,n)}}else if(this.childTables.has(o))if(a){var r=this.childTables.get(o);r==null||r.setExpanded(a,n)}else this.childTables.delete(o);this.currentViewport&&this.refreshInternal()}collapseAll(){this.childTables.clear(),this.currentViewport&&this.refreshInternal()}setSearch(e){throw new Error("Method not implemented.")}setViewport(e){this.currentViewport=e,this.refreshInternal()}setFilters(){throw new Error("Method not implemented.")}setSorts(){throw new Error("Method not implemented.")}setReversed(){throw new Error("Method not implemented.")}close(){this.listeners=[]}onUpdate(e){return this.listeners=[...this.listeners,e],()=>{this.listeners=this.listeners.filter(n=>n!==e)}}doRefresh(e){W.debug2("doRefresh",this.root),e(this.fetchData())}refresh(){var e;W.debug2("refresh",this.root),(e=this.viewportUpdatePromise)===null||e===void 0||e.cancel();var n=new Promise(o=>{this.doRefresh(o)}),i=ne.makeCancelable(n.then(o=>{if(this.viewportUpdatePromise!==i)throw new un;return this.currentViewportData=o,this.sendUpdate(),o}));i.catch(o=>{ne.isCanceled(o)||W.error("Error updating viewport",o)}),this.viewportUpdatePromise=i}refreshInternal(){try{this.refresh()}catch(e){ne.isCanceled(e)||W.error("Unable to refresh data",e)}}fetchData(){var e=this;return Mi(function*(){var{currentViewport:n}=e;if(!n)throw new Error("No viewport set");for(var i=yield e.storageService.listItems(e.root),o=i.map(h=>({type:h.type,filename:e.removeBaseRoot(h.filename),basename:h.basename,id:e.removeBaseRoot(h.filename),isExpanded:h.type==="directory"?e.childTables.has(h.basename):void 0})).sort((h,g)=>h.type!==g.type?h.type==="directory"?-1:1:h.basename.localeCompare(g.basename)),a=0;a<o.length;a+=1){var s=o[a],{basename:l,filename:r}=s;if(r===e.removeBaseRoot("".concat(e.root,"/").concat(l))&&s.type==="directory"){var u=e.childTables.get(l);if(u!=null){u.setViewport({top:0,bottom:n.bottom-a});var b=yield u.getViewportData();o.splice(a+1,0,...b.items)}}}return e.currentSize=o.length,W.debug2(e.root,"items",o,n),o=o.slice(n.top,n.bottom),{items:o,offset:n.top}})()}sendUpdate(){for(var e,{listeners:n}=this,i=(e=this.currentViewportData)!==null&&e!==void 0?e:{items:[],offset:0},o=0;o<n.length;o+=1)n[o](i)}}D(G,"REFRESH_DEBOUNCE",50);function He(t,e,n,i,o,a,s){try{var l=t[a](s),r=l.value}catch(u){return void n(u)}l.done?e(r):Promise.resolve(r).then(i,o)}function A(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function s(r){He(a,i,o,s,l,"next",r)}function l(r){He(a,i,o,s,l,"throw",r)}s(void 0)})}}function U(t,e,n){return(e=Yi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yi(t){var e=Gi(t,"string");return typeof e=="symbol"?e:e+""}function Gi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var qi=H.module("GrpcFileStorage");class ge{constructor(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";U(this,"dh",void 0),U(this,"storageService",void 0),U(this,"tables",[]),U(this,"root",void 0),U(this,"refreshTables",Ze(()=>{this.tables.forEach(o=>o.refresh())},ge.REFRESH_THROTTLE)),this.dh=e,this.storageService=n,this.root=i}removeRoot(e){return N.removeRoot(this.root,e)}addRoot(e){return N.addRoot(this.root,e)}createDirectory(e){var n=this;return A(function*(){return yield n.storageService.createDirectory(n.addRoot(e)),n.refreshTables(),{type:"directory",id:e,filename:e,basename:N.getBaseName(e)}})()}getTable(){var e=this;return A(function*(){var n=new G(e.storageService,e.root);return e.tables.push(n),n})()}saveFile(e){var n=this;return A(function*(){var i=n.dh.storage.FileContents.text(e.content);return yield n.storageService.saveFile(n.addRoot(e.filename),i,!0),n.refreshTables(),e})()}loadFile(e){var n=this;return A(function*(){var i=yield n.storageService.loadFile(n.addRoot(e)),o=yield i.text();return{filename:e,basename:N.getBaseName(e),content:o}})()}copyFile(e,n){var i=this;return A(function*(){var o=yield i.storageService.loadFile(i.addRoot(e));yield i.storageService.saveFile(i.addRoot(n),o,!1),i.refreshTables()})()}deleteFile(e){var n=this;return A(function*(){yield n.storageService.deleteItem(n.addRoot(e)),n.refreshTables()})()}moveFile(e,n){var i=this;return A(function*(){yield i.storageService.moveItem(i.addRoot(e),i.addRoot(n)),i.refreshTables()})()}info(e){var n=this;return A(function*(){var i=yield n.storageService.listItems(n.addRoot(N.getPath(e)),N.getBaseName(e));if(i.length===0)throw new pn;if(i.length>1)throw qi.error("More than one matching file found, should never happen.",i),new Error("More than one matching file found");var o=i[0];if(!fn(o.type))throw new Error("Unexpected file type: ".concat(o.type));return{filename:n.removeRoot(o.filename),basename:o.basename,id:n.removeRoot(o.filename),type:o.type}})()}}U(ge,"REFRESH_THROTTLE",150);function ze(t,e,n,i,o,a,s){try{var l=t[a](s),r=l.value}catch(u){return void n(u)}l.done?e(r):Promise.resolve(r).then(i,o)}function Ke(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function s(r){ze(a,i,o,s,l,"next",r)}function l(r){ze(a,i,o,s,l,"throw",r)}s(void 0)})}}function Xe(t,e,n){return(e=Hi(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hi(t){var e=zi(t,"string");return typeof e=="symbol"?e:e+""}function zi(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Fo{constructor(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Xe(this,"storageService",void 0),Xe(this,"root",void 0),this.storageService=e,this.root=n}getLayouts(){var e=this;return Ke(function*(){var n=yield e.storageService.listItems(e.root,"*.json");return n.map(i=>i.basename)})()}getLayout(e){var n=this;return Ke(function*(){var i=yield n.storageService.loadFile("".concat(n.root,"/").concat(e)),o=yield i.text();return JSON.parse(o)})()}}function Ki(t){return t.version===2}function Xi(t){return Array.isArray(t)}function Qe(t,e,n,i,o,a,s){try{var l=t[a](s),r=l.value}catch(u){return void n(u)}l.done?e(r):Promise.resolve(r).then(i,o)}function Qi(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function s(r){Qe(a,i,o,s,l,"next",r)}function l(r){Qe(a,i,o,s,l,"throw",r)}s(void 0)})}}var X=H.module("UserLayoutUtils"),Ji={layoutConfig:[{type:"column",content:[{type:"row",height:40,content:[{type:"stack",content:[{type:"react-component",component:xe.COMPONENT,title:xe.TITLE,isClosable:!1},{type:"react-component",component:we.COMPONENT,title:we.TITLE,isClosable:!1}]},{type:"stack",width:25,content:[{type:"react-component",component:Se.COMPONENT,title:Se.TITLE,isClosable:!1},{type:"react-component",component:Ee.COMPONENT,title:Ee.TITLE,isClosable:!1}]}]},{type:"row",content:[{type:"stack",title:"Notebooks",content:[]}]}]}],links:[],filterSets:[],version:2},Vi={layoutConfig:[],links:[],filterSets:[],version:2};function dt(t){if(Ki(t))return t;if(Xi(t)){var e=t;return{layoutConfig:e,links:[],filterSets:[],version:2}}throw new Error("Unexpected layout import format: ".concat(t))}function Zi(t){return ue.apply(this,arguments)}function ue(){return ue=Qi(function*(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;try{var n=yield t.getLayouts();if(n.length>0)try{var i=yield t.getLayout(n[0]);return dt(i)}catch(o){X.error("Unable to load layout",n[0],":",o),X.warn("No valid layouts found, falling back to default layout")}}catch(o){X.error("Unable to fetch layout list",o),X.warn("Falling back to default layout")}return e?Ji:Vi}),ue.apply(this,arguments)}function eo(t){var{filterSets:e,layoutConfig:n,links:i,pluginDataMap:o}=t,a={filterSets:e,layoutConfig:n,links:i,pluginDataMap:o,version:2};return a}const to={exportLayout:eo,getDefaultLayout:Zi,normalizeLayout:dt};function Je(t,e,n,i,o,a,s){try{var l=t[a](s),r=l.value}catch(u){return void n(u)}l.done?e(r):Promise.resolve(r).then(i,o)}function Q(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var a=t.apply(e,n);function s(r){Je(a,i,o,s,l,"next",r)}function l(r){Je(a,i,o,s,l,"throw",r)}s(void 0)})}}function ct(t,e,n){return(e=no(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function no(t){var e=io(t,"string");return typeof e=="symbol"?e:e+""}function io(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ve=H.module("LocalWorkspaceStorage");class O{static getBooleanServerConfig(e,n){var i,o;if((e==null||(i=e.get(n))===null||i===void 0?void 0:i.toLowerCase())==="true")return!0;if((e==null||(o=e.get(n))===null||o===void 0?void 0:o.toLowerCase())==="false")return!1}static getJSONServerConfig(e,n){var i=e==null?void 0:e.get(n);if(i!=null)try{return JSON.parse(i)}catch{Ve.error("Unable to parse JSON server config for key ".concat(n,". Value: ").concat(i));return}}static makeDefaultWorkspaceSettings(e){var n={defaultDateTimeFormat:Te.DEFAULT_DATETIME_FORMAT_STRING,formatter:[],timeZone:Te.DEFAULT_TIME_ZONE_ID,showTimeZone:!1,showTSeparator:!0,disableMoveConfirmation:!1,defaultDecimalFormatOptions:{defaultFormatString:mn.DEFAULT_FORMAT_STRING},defaultIntegerFormatOptions:{defaultFormatString:hn.DEFAULT_FORMAT_STRING},truncateNumbersWithPound:!1,showEmptyStrings:!0,showNullStrings:!0,showExtraGroupColumn:!0,notebookSettings:{isMinimapEnabled:!1,formatOnSave:!1,python:{linter:{isEnabled:!0}}},webgl:!0,webglEditable:!0,gridDensity:"regular"},i={defaultDateTimeFormat:e==null?void 0:e.get("dateTimeFormat"),formatter:[],timeZone:e==null?void 0:e.get("timeZone"),showTimeZone:O.getBooleanServerConfig(e,"showTimeZone"),showTSeparator:O.getBooleanServerConfig(e,"showTSeparator"),disableMoveConfirmation:O.getBooleanServerConfig(e,"disableMoveConfirmation"),defaultDecimalFormatOptions:(e==null?void 0:e.get("decimalFormat"))!==void 0?{defaultFormatString:e==null?void 0:e.get("decimalFormat")}:void 0,defaultIntegerFormatOptions:(e==null?void 0:e.get("integerFormat"))!==void 0?{defaultFormatString:e==null?void 0:e.get("integerFormat")}:void 0,truncateNumbersWithPound:O.getBooleanServerConfig(e,"truncateNumbersWithPound"),showEmptyStrings:O.getBooleanServerConfig(e,"showEmptyStrings"),showNullStrings:O.getBooleanServerConfig(e,"showNullStrings"),showExtraGroupColumn:O.getBooleanServerConfig(e,"showExtraGroupColumn"),notebookSettings:{isMinimapEnabled:O.getBooleanServerConfig(e,"web.user.notebookSettings.isMinimapEnabled"),formatOnSave:O.getBooleanServerConfig(e,"web.user.notebookSettings.formatOnSave"),python:{linter:{isEnabled:O.getBooleanServerConfig(e,"web.user.notebookSettings.python.linter.isEnabled"),config:O.getJSONServerConfig(e,"web.user.notebookSettings.python.linter.config")}}},webgl:O.getBooleanServerConfig(e,"web.webgl"),webglEditable:O.getBooleanServerConfig(e,"web.webgl.editable")};return At({},n,i)}static makeWorkspaceData(e,n){return Q(function*(){var{filterSets:i,links:o,layoutConfig:a,pluginDataMap:s={}}=yield to.getDefaultLayout(e,n==null?void 0:n.isConsoleAvailable);return{settings:{},layoutConfig:a,closed:[{}],links:o,filterSets:i,pluginDataMap:s}})()}static makeDefaultWorkspace(e,n){return Q(function*(){return{data:yield O.makeWorkspaceData(e,n)}})()}constructor(e){ct(this,"layoutStorage",void 0),this.layoutStorage=e}load(e){var n=this;return Q(function*(){try{var i,o=JSON.parse((i=localStorage.getItem(O.STORAGE_KEY))!==null&&i!==void 0?i:"");return o}catch{return Ve.info("Unable to load workspace data, initializing to default data"),O.makeDefaultWorkspace(n.layoutStorage,e)}})()}save(e){return Q(function*(){return localStorage.setItem(O.STORAGE_KEY,JSON.stringify(e)),e})()}}ct(O,"STORAGE_KEY","deephaven.WorkspaceStorage");export{Lo as A,go as B,J as C,qn as D,Fi as E,st as F,Fo as G,Eo as H,lt as I,Oo as J,Ji as K,uo as L,Vi as M,po as N,G as O,eo as P,Zi as Q,mo as R,ri as S,co as T,to as U,Xi as V,Ki as W,dt as X,si as a,fo as b,To as c,Ro as d,Bn as e,Co as f,ki as g,ko as h,xo as i,ge as j,O as k,wo as l,ho as m,me as n,ai as o,yo as p,ui as q,Po as r,fi as s,bo as t,ei as u,vo as v,pi as w,wi as x,Ri as y,So as z};
82
- //# sourceMappingURL=LocalWorkspaceStorage-BZKRnSF8.js.map
82
+ //# sourceMappingURL=LocalWorkspaceStorage-Ddl67eNC.js.map