@galaxyproject/jupyterlite 0.0.17 → 0.0.19

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 (88) hide show
  1. package/package.json +4 -3
  2. package/static/dist/_output/build/schemas/all_federated.json +1 -1
  3. package/static/dist/_output/extensions/@jupyterlite/ai/install.json +5 -0
  4. package/static/dist/_output/extensions/@jupyterlite/ai/package.json +252 -0
  5. package/static/dist/_output/extensions/@jupyterlite/ai/schemas/@jupyterlite/ai/settings-model.json +194 -0
  6. package/static/dist/_output/extensions/@jupyterlite/ai/static/116.010504c67cccbe983101.js +1 -0
  7. package/static/dist/_output/extensions/@jupyterlite/ai/static/155.33f38a7e48ddbeb5bb6e.js +1 -0
  8. package/static/dist/_output/extensions/@jupyterlite/ai/static/180.96635ff74c0413e0c580.js +1 -0
  9. package/static/dist/_output/extensions/@jupyterlite/ai/static/19.a1bb726875fe6561330e.js +1 -0
  10. package/static/dist/_output/extensions/@jupyterlite/ai/static/306.17ff80cd7d3702012f98.js +1 -0
  11. package/static/dist/_output/extensions/@jupyterlite/ai/static/313.e439dd0f4960f6e7585f.js +1 -0
  12. package/static/dist/_output/extensions/@jupyterlite/ai/static/324.77487b82034275866b8c.js +1 -0
  13. package/static/dist/_output/extensions/@jupyterlite/ai/static/340.e42ea25ea5b1b374a682.js +1 -0
  14. package/static/dist/_output/extensions/@jupyterlite/ai/static/374.d7b4dcf29eb3d2ebfd70.js +1 -0
  15. package/static/dist/_output/extensions/@jupyterlite/ai/static/472.05d097796e83ea9a22b4.js +1 -0
  16. package/static/dist/_output/extensions/@jupyterlite/ai/static/529.600d1aebb2de2d73fecb.js +2 -0
  17. package/static/dist/_output/extensions/@jupyterlite/ai/static/529.600d1aebb2de2d73fecb.js.LICENSE.txt +8 -0
  18. package/static/dist/_output/extensions/@jupyterlite/ai/static/537.eb8d9ccd76231e36d75f.js +1 -0
  19. package/static/dist/_output/extensions/@jupyterlite/ai/static/593.284fd5d2b50defc573f3.js +1 -0
  20. package/static/dist/_output/extensions/@jupyterlite/ai/static/665.564d208c226b2753e13b.js +1 -0
  21. package/static/dist/_output/extensions/@jupyterlite/ai/static/669.0094374ba6e3143702f7.js +1 -0
  22. package/static/dist/_output/extensions/@jupyterlite/ai/static/692.911f4d7dca73b3737833.js +1 -0
  23. package/static/dist/_output/extensions/@jupyterlite/ai/static/694.e439dd0f4960f6e7585f.js +1 -0
  24. package/static/dist/_output/extensions/@jupyterlite/ai/static/709.7578153f9eed366ee430.js +2 -0
  25. package/static/dist/_output/extensions/@jupyterlite/ai/static/709.7578153f9eed366ee430.js.LICENSE.txt +19 -0
  26. package/static/dist/_output/extensions/@jupyterlite/ai/static/728.d7c2cb9a2f7fdd846b35.js +1 -0
  27. package/static/dist/_output/extensions/@jupyterlite/ai/static/764.312b4b53ed50be5bf3f8.js +1 -0
  28. package/static/dist/_output/extensions/@jupyterlite/ai/static/798.dca29a3fc3b23c555f6b.js +1 -0
  29. package/static/dist/_output/extensions/@jupyterlite/ai/static/88.898492ebc5b41a4607c6.js +2 -0
  30. package/static/dist/_output/extensions/@jupyterlite/ai/static/88.898492ebc5b41a4607c6.js.LICENSE.txt +1 -0
  31. package/static/dist/_output/extensions/@jupyterlite/ai/static/885.1670a5138e0a13def795.js +1 -0
  32. package/static/dist/_output/extensions/@jupyterlite/ai/static/918.e91fcd78edba173284a4.js +1 -0
  33. package/static/dist/_output/extensions/@jupyterlite/ai/static/92.55c2fe71a33184c2e66d.js +1 -0
  34. package/static/dist/_output/extensions/@jupyterlite/ai/static/952.003f03c751075980ac7f.js +183 -0
  35. package/static/dist/_output/extensions/@jupyterlite/ai/static/remoteEntry.2f103c13fd640ab93eb9.js +1 -0
  36. package/static/dist/_output/extensions/@jupyterlite/ai/static/style.js +4 -0
  37. package/static/dist/_output/extensions/@jupyterlite/ai/static/third-party-licenses.json +352 -0
  38. package/static/dist/_output/extensions/jl-galaxy/extension.js +1 -1
  39. package/static/dist/_output/extensions/jupyter-secrets-manager/install.json +5 -0
  40. package/static/dist/_output/extensions/jupyter-secrets-manager/package.json +207 -0
  41. package/static/dist/_output/extensions/jupyter-secrets-manager/schemas/jupyter-secrets-manager/manager.json +14 -0
  42. package/static/dist/_output/extensions/jupyter-secrets-manager/static/728.69cdb8043c4eb7a36084.js +1 -0
  43. package/static/dist/_output/extensions/jupyter-secrets-manager/static/810.7ac328ef761c19894484.js +1 -0
  44. package/static/dist/_output/extensions/jupyter-secrets-manager/static/remoteEntry.6610dc2c9e0921c7f94a.js +1 -0
  45. package/static/dist/_output/extensions/jupyter-secrets-manager/static/style.js +4 -0
  46. package/static/dist/_output/extensions/jupyter-secrets-manager/static/third-party-licenses.json +16 -0
  47. package/static/dist/_output/extensions/jupyterlab-cell-input-footer-extension/install.json +5 -0
  48. package/static/dist/_output/extensions/jupyterlab-cell-input-footer-extension/package.json +90 -0
  49. package/static/dist/_output/extensions/jupyterlab-cell-input-footer-extension/static/374.f7ab05aeba5c1aa173c9.js +1 -0
  50. package/static/dist/_output/extensions/jupyterlab-cell-input-footer-extension/static/432.7cb3263d05824765a0d2.js +1 -0
  51. package/static/dist/_output/extensions/jupyterlab-cell-input-footer-extension/static/509.9384daafd8fb72a4ff3a.js +1 -0
  52. package/static/dist/_output/extensions/jupyterlab-cell-input-footer-extension/static/993.f7ab05aeba5c1aa173c9.js +1 -0
  53. package/static/dist/_output/extensions/jupyterlab-cell-input-footer-extension/static/remoteEntry.f80ac7a8e97b08d2a2fd.js +1 -0
  54. package/static/dist/_output/extensions/jupyterlab-cell-input-footer-extension/static/style.js +4 -0
  55. package/static/dist/_output/extensions/jupyterlab-cell-input-footer-extension/static/third-party-licenses.json +22 -0
  56. package/static/dist/_output/extensions/jupyterlab-diff/install.json +5 -0
  57. package/static/dist/_output/extensions/jupyterlab-diff/package.json +224 -0
  58. package/static/dist/_output/extensions/jupyterlab-diff/static/299.07069b808cb23f84a242.js +1 -0
  59. package/static/dist/_output/extensions/jupyterlab-diff/static/379.2e2a6add1111d74422d2.js +1 -0
  60. package/static/dist/_output/extensions/jupyterlab-diff/static/383.dbd292b18614d410ed4b.js +1 -0
  61. package/static/dist/_output/extensions/jupyterlab-diff/static/499.e9c141febe62f251e965.js +1 -0
  62. package/static/dist/_output/extensions/jupyterlab-diff/static/680.07069b808cb23f84a242.js +1 -0
  63. package/static/dist/_output/extensions/jupyterlab-diff/static/728.559a28b17e14994cba46.js +1 -0
  64. package/static/dist/_output/extensions/jupyterlab-diff/static/747.e3256716cc1134700a59.js +1 -0
  65. package/static/dist/_output/extensions/jupyterlab-diff/static/879.749253139a5186f32109.js +1 -0
  66. package/static/dist/_output/extensions/jupyterlab-diff/static/remoteEntry.4830528fbe7c3ca55989.js +1 -0
  67. package/static/dist/_output/extensions/jupyterlab-diff/static/style.js +4 -0
  68. package/static/dist/_output/extensions/jupyterlab-diff/static/third-party-licenses.json +94 -0
  69. package/static/dist/_output/extensions/jupyterlab-eventlistener-extension/install.json +5 -0
  70. package/static/dist/_output/extensions/jupyterlab-eventlistener-extension/package.json +90 -0
  71. package/static/dist/_output/extensions/jupyterlab-eventlistener-extension/static/432.57100b29bc9fea211a0e.js +1 -0
  72. package/static/dist/_output/extensions/jupyterlab-eventlistener-extension/static/509.d1cc43983763b6a85f45.js +1 -0
  73. package/static/dist/_output/extensions/jupyterlab-eventlistener-extension/static/666.84cadfe40c86b502f11d.js +1 -0
  74. package/static/dist/_output/extensions/jupyterlab-eventlistener-extension/static/remoteEntry.5577376b289c1f9e2dc2.js +1 -0
  75. package/static/dist/_output/extensions/jupyterlab-eventlistener-extension/static/style.js +4 -0
  76. package/static/dist/_output/extensions/jupyterlab-eventlistener-extension/static/third-party-licenses.json +22 -0
  77. package/static/dist/_output/jupyter-lite.json +43 -20
  78. package/static/dist/_output/pypi/attrs-25.4.0-py3-none-any.whl +0 -0
  79. package/static/dist/_output/pypi/gxy-0.0.0-py3-none-any.whl +0 -0
  80. package/static/dist/_output/pypi/jupyter_core-5.9.1-py3-none-any.whl +0 -0
  81. package/static/dist/_output/pypi/narwhals-2.13.0-py3-none-any.whl +0 -0
  82. package/static/dist/_output/pypi/{platformdirs-4.4.0-py3-none-any.whl → platformdirs-4.5.1-py3-none-any.whl} +0 -0
  83. package/static/dist/_output/pypi/referencing-0.37.0-py3-none-any.whl +0 -0
  84. package/static/dist/index.js +2 -2
  85. package/static/dist/_output/pypi/attrs-25.3.0-py3-none-any.whl +0 -0
  86. package/static/dist/_output/pypi/jupyter_core-5.8.1-py3-none-any.whl +0 -0
  87. package/static/dist/_output/pypi/narwhals-2.6.0-py3-none-any.whl +0 -0
  88. package/static/dist/_output/pypi/referencing-0.36.2-py3-none-any.whl +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkjupyterlab_diff=self.webpackChunkjupyterlab_diff||[]).push([[747],{747:(t,e,i)=>{i.d(e,{Ar:()=>c,Bc:()=>Ct,Gw:()=>ht,OO:()=>Ot,et:()=>a,wm:()=>gt,yU:()=>Tt});var o=i(195),n=i(24),s=i(84);class l{constructor(t,e,i,o){this.state=t,this.pos=e,this.explicit=i,this.view=o,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let e=(0,s.syntaxTree)(this.state).resolveInner(this.pos,-1);for(;e&&t.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),o=e.text.slice(i-e.from,this.pos-e.from),n=o.search(d(t,!1));return n<0?null:{from:i+n,to:this.pos,text:o.slice(n)}}get aborted(){return null==this.abortListeners}addEventListener(t,e,i){"abort"==t&&this.abortListeners&&(this.abortListeners.push(e),i&&i.onDocChange&&(this.abortOnDocChange=!0))}}function r(t){let e=Object.keys(t).join(""),i=/\w/.test(e);return i&&(e=e.replace(/\w/g,"")),`[${i?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function a(t){let e=t.map((t=>"string"==typeof t?{label:t}:t)),[i,o]=e.every((t=>/^\w+$/.test(t.label)))?[/\w*$/,/\w+$/]:function(t){let e=Object.create(null),i=Object.create(null);for(let{label:o}of t){e[o[0]]=!0;for(let t=1;t<o.length;t++)i[o[t]]=!0}let o=r(e)+r(i)+"*$";return[new RegExp("^"+o),new RegExp(o)]}(e);return t=>{let n=t.matchBefore(o);return n||t.explicit?{from:n?n.from:t.pos,options:e,validFor:i}:null}}function c(t,e){return i=>{for(let e=(0,s.syntaxTree)(i.state).resolveInner(i.pos,-1);e;e=e.parent){if(t.indexOf(e.name)>-1)return null;if(e.type.isTop)break}return e(i)}}class h{constructor(t,e,i,o){this.completion=t,this.source=e,this.match=i,this.score=o}}function p(t){return t.selection.main.from}function d(t,e){var i;let{source:o}=t,n=e&&"^"!=o[0],s="$"!=o[o.length-1];return n||s?new RegExp(`${n?"^":""}(?:${o})${s?"$":""}`,null!==(i=t.flags)&&void 0!==i?i:t.ignoreCase?"i":""):t}const f=o.Annotation.define();function u(t,e,i,n){let{main:s}=t.selection,l=i-s.from,r=n-s.from;return{...t.changeByRange((a=>{if(a!=s&&i!=n&&t.sliceDoc(a.from+l,a.from+r)!=t.sliceDoc(i,n))return{range:a};let c=t.toText(e);return{changes:{from:a.from+l,to:n==s.from?a.to:a.from+r,insert:c},range:o.EditorSelection.cursor(a.from+l+c.length)}})),scrollIntoView:!0,userEvent:"input.complete"}}const m=new WeakMap;function g(t){if(!Array.isArray(t))return t;let e=m.get(t);return e||m.set(t,e=a(t)),e}const v=o.StateEffect.define(),w=o.StateEffect.define();class b{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e<t.length;){let i=(0,o.codePointAt)(t,e),n=(0,o.codePointSize)(i);this.chars.push(i);let s=t.slice(e,e+n),l=s.toUpperCase();this.folded.push((0,o.codePointAt)(l==s?s.toLowerCase():l,0)),e+=n}this.astral=t.length!=this.chars.length}ret(t,e){return this.score=t,this.matched=e,this}match(t){if(0==this.pattern.length)return this.ret(-100,[]);if(t.length<this.pattern.length)return null;let{chars:e,folded:i,any:n,precise:s,byWord:l}=this;if(1==e.length){let n=(0,o.codePointAt)(t,0),s=(0,o.codePointSize)(n),l=s==t.length?0:-100;if(n==e[0]);else{if(n!=i[0])return null;l+=-200}return this.ret(l,[0,s])}let r=t.indexOf(this.pattern);if(0==r)return this.ret(t.length==this.pattern.length?0:-100,[0,this.pattern.length]);let a=e.length,c=0;if(r<0){for(let s=0,l=Math.min(t.length,200);s<l&&c<a;){let l=(0,o.codePointAt)(t,s);l!=e[c]&&l!=i[c]||(n[c++]=s),s+=(0,o.codePointSize)(l)}if(c<a)return null}let h=0,p=0,d=!1,f=0,u=-1,m=-1,g=/[a-z]/.test(t),v=!0;for(let n=0,c=Math.min(t.length,200),w=0;n<c&&p<a;){let c=(0,o.codePointAt)(t,n);r<0&&(h<a&&c==e[h]&&(s[h++]=n),f<a&&(c==e[f]||c==i[f]?(0==f&&(u=n),m=n+1,f++):f=0));let b,y=c<255?c>=48&&c<=57||c>=97&&c<=122?2:c>=65&&c<=90?1:0:(b=(0,o.fromCodePoint)(c))!=b.toLowerCase()?1:b!=b.toUpperCase()?2:0;(!n||1==y&&g||0==w&&0!=y)&&(e[p]==c||i[p]==c&&(d=!0)?l[p++]=n:l.length&&(v=!1)),w=y,n+=(0,o.codePointSize)(c)}return p==a&&0==l[0]&&v?this.result((d?-200:0)-100,l,t):f==a&&0==u?this.ret(-200-t.length+(m==t.length?0:-100),[0,m]):r>-1?this.ret(-700-t.length,[r,r+this.pattern.length]):f==a?this.ret(-900-t.length,[u,m]):p==a?this.result((d?-200:0)-100-700+(v?0:-1100),l,t):2==e.length?null:this.result((n[0]?-700:0)-200-1100,n,t)}result(t,e,i){let n=[],s=0;for(let t of e){let e=t+(this.astral?(0,o.codePointSize)((0,o.codePointAt)(i,t)):1);s&&n[s-1]==t?n[s-1]=e:(n[s++]=t,n[s++]=e)}return this.ret(t-i.length,n)}}class y{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length<this.pattern.length)return null;let e=t.slice(0,this.pattern.length),i=e==this.pattern?0:e.toLowerCase()==this.folded?-200:null;return null==i?null:(this.matched=[0,e.length],this.score=i+(t.length==this.pattern.length?0:-100),this)}}const x=o.Facet.define({combine:t=>(0,o.combineConfig)(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:S,filterStrict:!1,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>i=>C(t(i),e(i)),optionClass:(t,e)=>i=>C(t(i),e(i)),addToOptions:(t,e)=>t.concat(e),filterStrict:(t,e)=>t||e})});function C(t,e){return t?e?t+" "+e:t:e}function S(t,e,i,o,s,l){let r,a,c=t.textDirection==n.Direction.RTL,h=c,p=!1,d="top",f=e.left-s.left,u=s.right-e.right,m=o.right-o.left,g=o.bottom-o.top;if(h&&f<Math.min(m,u)?h=!1:!h&&u<Math.min(m,f)&&(h=!0),m<=(h?f:u))r=Math.max(s.top,Math.min(i.top,s.bottom-g))-e.top,a=Math.min(400,h?f:u);else{p=!0,a=Math.min(400,(c?e.right:s.right-e.left)-30);let t=s.bottom-e.bottom;t>=g||t>e.top?r=i.bottom-e.top:(d="bottom",r=e.bottom-i.top)}return{style:`${d}: ${r/((e.bottom-e.top)/l.offsetHeight)}px; max-width: ${a/((e.right-e.left)/l.offsetWidth)}px`,class:"cm-completionInfo-"+(p?c?"left-narrow":"right-narrow":h?"left":"right")}}function E(t,e,i){if(t<=i)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let t=Math.floor(e/i);return{from:t*i,to:(t+1)*i}}let o=Math.floor((t-e)/i);return{from:t-(o+1)*i,to:t-o*i}}class I{constructor(t,e,i){this.view=t,this.stateField=e,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:t=>this.placeInfo(t),key:this},this.space=null,this.currentClass="";let o=t.state.field(e),{options:n,selected:s}=o.open,l=t.state.facet(x);this.optionContent=function(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(t){let e=document.createElement("div");return e.classList.add("cm-completionIcon"),t.type&&e.classList.add(...t.type.split(/\s+/g).map((t=>"cm-completionIcon-"+t))),e.setAttribute("aria-hidden","true"),e},position:20}),e.push({render(t,e,i,o){let n=document.createElement("span");n.className="cm-completionLabel";let s=t.displayLabel||t.label,l=0;for(let t=0;t<o.length;){let e=o[t++],i=o[t++];e>l&&n.appendChild(document.createTextNode(s.slice(l,e)));let r=n.appendChild(document.createElement("span"));r.appendChild(document.createTextNode(s.slice(e,i))),r.className="cm-completionMatchedText",l=i}return l<s.length&&n.appendChild(document.createTextNode(s.slice(l))),n},position:50},{render(t){if(!t.detail)return null;let e=document.createElement("span");return e.className="cm-completionDetail",e.textContent=t.detail,e},position:80}),e.sort(((t,e)=>t.position-e.position)).map((t=>t.render))}(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=E(n.length,s,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",(i=>{let{options:o}=t.state.field(e).open;for(let e,n=i.target;n&&n!=this.dom;n=n.parentNode)if("LI"==n.nodeName&&(e=/-(\d+)$/.exec(n.id))&&+e[1]<o.length)return this.applyCompletion(t,o[+e[1]]),void i.preventDefault()})),this.dom.addEventListener("focusout",(e=>{let i=t.state.field(this.stateField,!1);i&&i.tooltip&&t.state.facet(x).closeOnBlur&&e.relatedTarget!=t.contentDOM&&t.dispatch({effects:w.of(null)})})),this.showOptions(n,o.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(t){var e;let i=t.state.field(this.stateField),o=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),i!=o){let{options:n,selected:s,disabled:l}=i.open;o.open&&o.open.options==n||(this.range=E(n.length,s,t.state.facet(x).maxRenderedOptions),this.showOptions(n,i.id)),this.updateSel(),l!=(null===(e=o.open)||void 0===e?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let t of this.currentClass.split(" "))t&&this.dom.classList.remove(t);for(let t of e.split(" "))t&&this.dom.classList.add(t);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected<this.range.from||e.selected>=this.range.to)&&(this.range=E(e.options.length,e.selected,this.view.state.facet(x).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:i}=e.options[e.selected],{info:o}=i;if(!o)return;let s="string"==typeof o?document.createTextNode(o):o(i);if(!s)return;"then"in s?s.then((e=>{e&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(e,i)})).catch((t=>(0,n.logException)(this.view.state,t,"completion info"))):this.addInfoPane(s,i)}}addInfoPane(t,e){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",null!=t.nodeType)i.appendChild(t),this.infoDestroy=null;else{let{dom:e,destroy:o}=t;i.appendChild(e),this.infoDestroy=o||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let i=this.list.firstChild,o=this.range.from;i;i=i.nextSibling,o++)"LI"==i.nodeName&&i.id?o==t?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected"):o--;return e&&function(t,e){let i=t.getBoundingClientRect(),o=e.getBoundingClientRect(),n=i.height/t.offsetHeight;o.top<i.top?t.scrollTop-=(i.top-o.top)/n:o.bottom>i.bottom&&(t.scrollTop+=(o.bottom-i.bottom)/n)}(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),o=t.getBoundingClientRect(),n=this.space;if(!n){let t=this.dom.ownerDocument.documentElement;n={left:0,top:0,right:t.clientWidth,bottom:t.clientHeight}}return o.top>Math.min(n.bottom,e.bottom)-10||o.bottom<Math.max(n.top,e.top)+10?null:this.view.state.facet(x).positionInfo(this.view,e,o,i,n,this.dom)}placeInfo(t){this.info&&(t?(t.style&&(this.info.style.cssText=t.style),this.info.className="cm-tooltip cm-completionInfo "+(t.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(t,e,i){const o=document.createElement("ul");o.id=e,o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.setAttribute("aria-label",this.view.state.phrase("Completions")),o.addEventListener("mousedown",(t=>{t.target==o&&t.preventDefault()}));let n=null;for(let s=i.from;s<i.to;s++){let{completion:l,match:r}=t[s],{section:a}=l;if(a){let t="string"==typeof a?a:a.name;t!=n&&(s>i.from||0==i.from)&&(n=t,"string"!=typeof a&&a.header?o.appendChild(a.header(a)):o.appendChild(document.createElement("completion-section")).textContent=t)}const c=o.appendChild(document.createElement("li"));c.id=e+"-"+s,c.setAttribute("role","option");let h=this.optionClass(l);h&&(c.className=h);for(let t of this.optionContent){let e=t(l,this.view.state,this.view,r);e&&c.appendChild(e)}}return i.from&&o.classList.add("cm-completionListIncompleteTop"),i.to<t.length&&o.classList.add("cm-completionListIncompleteBottom"),o}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function P(t,e){return i=>new I(i,t,e)}function k(t){return 100*(t.boost||0)+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}class D{constructor(t,e,i,o,n,s){this.options=t,this.attrs=e,this.tooltip=i,this.timestamp=o,this.selected=n,this.disabled=s}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new D(this.options,R(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,i,o,n,s){if(o&&!s&&t.some((t=>t.isPending)))return o.setDisabled();let l=function(t,e){let i=[],o=null,n=t=>{i.push(t);let{section:e}=t.completion;if(e){o||(o=[]);let t="string"==typeof e?e:e.name;o.some((e=>e.name==t))||o.push("string"==typeof e?{name:t}:e)}},s=e.facet(x);for(let o of t)if(o.hasResult()){let t=o.result.getMatch;if(!1===o.result.filter)for(let e of o.result.options)n(new h(e,o.source,t?t(e):[],1e9-i.length));else{let i,l=e.sliceDoc(o.from,o.to),r=s.filterStrict?new y(l):new b(l);for(let e of o.result.options)if(i=r.match(e.label)){let s=e.displayLabel?t?t(e,i.matched):[]:i.matched;n(new h(e,o.source,s,i.score+(e.boost||0)))}}}if(o){let t=Object.create(null),e=0,n=(t,e)=>{var i,o;return(null!==(i=t.rank)&&void 0!==i?i:1e9)-(null!==(o=e.rank)&&void 0!==o?o:1e9)||(t.name<e.name?-1:1)};for(let i of o.sort(n))e-=1e5,t[i.name]=e;for(let e of i){let{section:i}=e.completion;i&&(e.score+=t["string"==typeof i?i:i.name])}}let l=[],r=null,a=s.compareCompletions;for(let t of i.sort(((t,e)=>e.score-t.score||a(t.completion,e.completion)))){let e=t.completion;!r||r.label!=e.label||r.detail!=e.detail||null!=r.type&&null!=e.type&&r.type!=e.type||r.apply!=e.apply||r.boost!=e.boost?l.push(t):k(t.completion)>k(r)&&(l[l.length-1]=t),r=t.completion}return l}(t,e);if(!l.length)return o&&t.some((t=>t.isPending))?o.setDisabled():null;let r=e.facet(x).selectOnOpen?0:-1;if(o&&o.selected!=r&&-1!=o.selected){let t=o.options[o.selected].completion;for(let e=0;e<l.length;e++)if(l[e].completion==t){r=e;break}}return new D(l,R(i,r),{pos:t.reduce(((t,e)=>e.hasResult()?Math.min(t,e.from):t),1e8),create:z,above:n.aboveCursor},o?o.timestamp:Date.now(),r,!1)}map(t){return new D(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new D(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class A{constructor(t,e,i){this.active=t,this.id=e,this.open=i}static start(){return new A(L,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,i=e.facet(x),o=(i.override||e.languageDataAt("autocomplete",p(e)).map(g)).map((e=>(this.active.find((t=>t.source==e))||new B(e,this.active.some((t=>0!=t.state))?1:0)).update(t,i)));o.length==this.active.length&&o.every(((t,e)=>t==this.active[e]))&&(o=this.active);let n=this.open,s=t.effects.some((t=>t.is(U)));n&&t.docChanged&&(n=n.map(t.changes)),t.selection||o.some((e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to)))||!function(t,e){if(t==e)return!0;for(let i=0,o=0;;){for(;i<t.length&&!t[i].hasResult();)i++;for(;o<e.length&&!e[o].hasResult();)o++;let n=i==t.length,s=o==e.length;if(n||s)return n==s;if(t[i++].result!=e[o++].result)return!1}}(o,this.active)||s?n=D.build(o,e,this.id,n,i,s):n&&n.disabled&&!o.some((t=>t.isPending))&&(n=null),!n&&o.every((t=>!t.isPending))&&o.some((t=>t.hasResult()))&&(o=o.map((t=>t.hasResult()?new B(t.source,0):t)));for(let e of t.effects)e.is($)&&(n=n&&n.setSelected(e.value,this.id));return o==this.active&&n==this.open?this:new A(o,this.id,n)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?T:O}}const T={"aria-autocomplete":"list"},O={};function R(t,e){let i={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(i["aria-activedescendant"]=t+"-"+e),i}const L=[];function M(t,e){if(t.isUserEvent("input.complete")){let i=t.annotation(f);if(i&&e.activateOnCompletion(i))return 12}let i=t.isUserEvent("input.type");return i&&e.activateOnTyping?5:i?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class B{constructor(t,e,i=!1){this.source=t,this.state=e,this.explicit=i}hasResult(){return!1}get isPending(){return 1==this.state}update(t,e){let i=M(t,e),o=this;(8&i||16&i&&this.touches(t))&&(o=new B(o.source,0)),4&i&&0==o.state&&(o=new B(this.source,1)),o=o.updateFor(t,i);for(let e of t.effects)if(e.is(v))o=new B(o.source,1,e.value);else if(e.is(w))o=new B(o.source,0);else if(e.is(U))for(let t of e.value)t.source==o.source&&(o=t);return o}updateFor(t,e){return this.map(t.changes)}map(t){return this}touches(t){return t.changes.touchesRange(p(t.state))}}class F extends B{constructor(t,e,i,o,n,s){super(t,3,e),this.limit=i,this.result=o,this.from=n,this.to=s}hasResult(){return!0}updateFor(t,e){var i;if(!(3&e))return this.map(t.changes);let o=this.result;o.map&&!t.changes.empty&&(o=o.map(o,t.changes));let n=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),r=p(t.state);if(r>s||!o||2&e&&(p(t.startState)==this.from||r<this.limit))return new B(this.source,4&e?1:0);let a=t.changes.mapPos(this.limit);return function(t,e,i,o){if(!t)return!1;let n=e.sliceDoc(i,o);return"function"==typeof t?t(n,i,o,e):d(t,!0).test(n)}(o.validFor,t.state,n,s)?new F(this.source,this.explicit,a,o,n,s):o.update&&(o=o.update(o,n,s,new l(t.state,r,!1)))?new F(this.source,this.explicit,a,o,o.from,null!==(i=o.to)&&void 0!==i?i:p(t.state)):new B(this.source,1,this.explicit)}map(t){return t.empty?this:(this.result.map?this.result.map(this.result,t):this.result)?new F(this.source,this.explicit,t.mapPos(this.limit),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new B(this.source,0)}touches(t){return t.changes.touchesRange(this.from,this.to)}}const U=o.StateEffect.define({map:(t,e)=>t.map((t=>t.map(e)))}),$=o.StateEffect.define(),N=o.StateField.define({create:()=>A.start(),update:(t,e)=>t.update(e),provide:t=>[n.showTooltip.from(t,(t=>t.tooltip)),n.EditorView.contentAttributes.from(t,(t=>t.attrs))]});function V(t,e){const i=e.completion.apply||e.completion.label;let o=t.state.field(N).active.find((t=>t.source==e.source));return o instanceof F&&("string"==typeof i?t.dispatch({...u(t.state,i,o.from,o.to),annotations:f.of(e.completion)}):i(t,e.completion,o.from,o.to),!0)}const z=P(N,V);function W(t,e="option"){return i=>{let o=i.state.field(N,!1);if(!o||!o.open||o.open.disabled||Date.now()-o.open.timestamp<i.state.facet(x).interactionDelay)return!1;let s,l=1;"page"==e&&(s=(0,n.getTooltip)(i,o.open.tooltip))&&(l=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:r}=o.open.options,a=o.open.selected>-1?o.open.selected+l*(t?1:-1):t?0:r-1;return a<0?a="page"==e?0:r-1:a>=r&&(a="page"==e?r-1:0),i.dispatch({effects:$.of(a)}),!0}}const q=t=>!!t.state.field(N,!1)&&(t.dispatch({effects:v.of(!0)}),!0);class H{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}const j=n.ViewPlugin.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(N).active)e.isPending&&this.startQuery(e)}update(t){let e=t.state.field(N),i=t.state.facet(x);if(!t.selectionSet&&!t.docChanged&&t.startState.field(N)==e)return;let o=t.transactions.some((t=>{let e=M(t,i);return 8&e||(t.selection||t.docChanged)&&!(3&e)}));for(let e=0;e<this.running.length;e++){let i=this.running[e];if(o||i.context.abortOnDocChange&&t.docChanged||i.updates.length+t.transactions.length>50&&Date.now()-i.time>1e3){for(let t of i.context.abortListeners)try{t()}catch(t){(0,n.logException)(this.view.state,t)}i.context.abortListeners=null,this.running.splice(e--,1)}else i.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some((t=>t.effects.some((t=>t.is(v)))))&&(this.pendingStart=!0);let s=this.pendingStart?50:i.activateOnTypingDelay;if(this.debounceUpdate=e.active.some((t=>t.isPending&&!this.running.some((e=>e.active.source==t.source))))?setTimeout((()=>this.startUpdate()),s):-1,0!=this.composing)for(let e of t.transactions)e.isUserEvent("input.type")?this.composing=2:2==this.composing&&e.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(N);for(let t of e.active)t.isPending&&!this.running.some((e=>e.active.source==t.source))&&this.startQuery(t);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(x).updateSyncTime))}startQuery(t){let{state:e}=this.view,i=p(e),o=new l(e,i,t.explicit,this.view),s=new H(t,o);this.running.push(s),Promise.resolve(t.source(o)).then((t=>{s.context.aborted||(s.done=t||null,this.scheduleAccept())}),(t=>{this.view.dispatch({effects:w.of(null)}),(0,n.logException)(this.view.state,t)}))}scheduleAccept(){this.running.every((t=>void 0!==t.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(x).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],i=this.view.state.facet(x),o=this.view.state.field(N);for(let n=0;n<this.running.length;n++){let s=this.running[n];if(void 0===s.done)continue;if(this.running.splice(n--,1),s.done){let o=p(s.updates.length?s.updates[0].startState:this.view.state),n=Math.min(o,s.done.from+(s.active.explicit?0:1)),l=new F(s.active.source,s.active.explicit,n,s.done,s.done.from,null!==(t=s.done.to)&&void 0!==t?t:o);for(let t of s.updates)l=l.update(t,i);if(l.hasResult()){e.push(l);continue}}let l=o.active.find((t=>t.source==s.active.source));if(l&&l.isPending)if(null==s.done){let t=new B(s.active.source,0);for(let e of s.updates)t=t.update(e,i);t.isPending||e.push(t)}else this.startQuery(l)}(e.length||o.open&&o.open.disabled)&&this.view.dispatch({effects:U.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(N,!1);if(e&&e.tooltip&&this.view.state.facet(x).closeOnBlur){let i=e.open&&(0,n.getTooltip)(this.view,e.open.tooltip);i&&i.dom.contains(t.relatedTarget)||setTimeout((()=>this.view.dispatch({effects:w.of(null)})),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:v.of(!1)})),20),this.composing=0}}}),K="object"==typeof navigator&&/Win/.test(navigator.platform),Q=o.Prec.highest(n.EditorView.domEventHandlers({keydown(t,e){let i=e.state.field(N,!1);if(!i||!i.open||i.open.disabled||i.open.selected<0||t.key.length>1||t.ctrlKey&&(!K||!t.altKey)||t.metaKey)return!1;let o=i.open.options[i.open.selected],n=i.active.find((t=>t.source==o.source)),s=o.completion.commitCharacters||n.result.commitCharacters;return s&&s.indexOf(t.key)>-1&&V(e,o),!1}})),_=n.EditorView.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class X{constructor(t,e,i,o){this.field=t,this.line=e,this.from=i,this.to=o}}class G{constructor(t,e,i){this.field=t,this.from=e,this.to=i}map(t){let e=t.mapPos(this.from,-1,o.MapMode.TrackDel),i=t.mapPos(this.to,1,o.MapMode.TrackDel);return null==e||null==i?null:new G(this.field,e,i)}}class Y{constructor(t,e){this.lines=t,this.fieldPositions=e}instantiate(t,e){let i=[],o=[e],n=t.doc.lineAt(e),l=/^\s*/.exec(n.text)[0];for(let n of this.lines){if(i.length){let i=l,r=/^\t*/.exec(n)[0].length;for(let e=0;e<r;e++)i+=t.facet(s.indentUnit);o.push(e+i.length-r),n=i+n.slice(r)}i.push(n),e+=n.length+1}let r=this.fieldPositions.map((t=>new G(t.field,o[t.line]+t.from,o[t.line]+t.to)));return{text:i,ranges:r}}static parse(t){let e,i=[],o=[],n=[];for(let s of t.split(/\r\n?|\n/)){for(;e=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(s);){let t=e[1]?+e[1]:null,l=e[2]||e[3]||"",r=-1,a=l.replace(/\\[{}]/g,(t=>t[1]));for(let e=0;e<i.length;e++)(null!=t?i[e].seq==t:a&&i[e].name==a)&&(r=e);if(r<0){let e=0;for(;e<i.length&&(null==t||null!=i[e].seq&&i[e].seq<t);)e++;i.splice(e,0,{seq:t,name:a}),r=e;for(let t of n)t.field>=r&&t.field++}for(let t of n)if(t.line==o.length&&t.from>e.index){let i=e[2]?3+(e[1]||"").length:2;t.from-=i,t.to-=i}n.push(new X(r,o.length,e.index,e.index+a.length)),s=s.slice(0,e.index)+l+s.slice(e.index+e[0].length)}s=s.replace(/\\([{}])/g,((t,e,i)=>{for(let t of n)t.line==o.length&&t.from>i&&(t.from--,t.to--);return e})),o.push(s)}return new Y(o,n)}}let J=n.Decoration.widget({widget:new class extends n.WidgetType{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),Z=n.Decoration.mark({class:"cm-snippetField"});class tt{constructor(t,e){this.ranges=t,this.active=e,this.deco=n.Decoration.set(t.map((t=>(t.from==t.to?J:Z).range(t.from,t.to))),!0)}map(t){let e=[];for(let i of this.ranges){let o=i.map(t);if(!o)return null;e.push(o)}return new tt(e,this.active)}selectionInsideField(t){return t.ranges.every((t=>this.ranges.some((e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))))}}const et=o.StateEffect.define({map:(t,e)=>t&&t.map(e)}),it=o.StateEffect.define(),ot=o.StateField.define({create:()=>null,update(t,e){for(let i of e.effects){if(i.is(et))return i.value;if(i.is(it)&&t)return new tt(t.ranges,i.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>n.EditorView.decorations.from(t,(t=>t?t.deco:n.Decoration.none))});function nt(t,e){return o.EditorSelection.create(t.filter((t=>t.field==e)).map((t=>o.EditorSelection.range(t.from,t.to))))}function st(t){let e=Y.parse(t);return(t,i,n,s)=>{let{text:l,ranges:r}=e.instantiate(t.state,n),{main:a}=t.state.selection,c={changes:{from:n,to:s==a.from?a.to:s,insert:o.Text.of(l)},scrollIntoView:!0,annotations:i?[f.of(i),o.Transaction.userEvent.of("input.complete")]:void 0};if(r.length&&(c.selection=nt(r,0)),r.some((t=>t.field>0))){let e=new tt(r,0),i=c.effects=[et.of(e)];void 0===t.state.field(ot,!1)&&i.push(o.StateEffect.appendConfig.of([ot,ct,pt,_]))}t.dispatch(t.state.update(c))}}function lt(t){return({state:e,dispatch:i})=>{let o=e.field(ot,!1);if(!o||t<0&&0==o.active)return!1;let n=o.active+t,s=t>0&&!o.ranges.some((e=>e.field==n+t));return i(e.update({selection:nt(o.ranges,n),effects:et.of(s?null:new tt(o.ranges,n)),scrollIntoView:!0})),!0}}const rt=[{key:"Tab",run:lt(1),shift:lt(-1)},{key:"Escape",run:({state:t,dispatch:e})=>!!t.field(ot,!1)&&(e(t.update({effects:et.of(null)})),!0)}],at=o.Facet.define({combine:t=>t.length?t[0]:rt}),ct=o.Prec.highest(n.keymap.compute([at],(t=>t.facet(at))));function ht(t,e){return{...e,apply:st(t)}}const pt=n.EditorView.domEventHandlers({mousedown(t,e){let i,o=e.state.field(ot,!1);if(!o||null==(i=e.posAtCoords({x:t.clientX,y:t.clientY})))return!1;let n=o.ranges.find((t=>t.from<=i&&t.to>=i));return!(!n||n.field==o.active||(e.dispatch({selection:nt(o.ranges,n.field),effects:et.of(o.ranges.some((t=>t.field>n.field))?new tt(o.ranges,n.field):null),scrollIntoView:!0}),0))}}),dt={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ft=o.StateEffect.define({map(t,e){let i=e.mapPos(t,-1,o.MapMode.TrackAfter);return null==i?void 0:i}}),ut=new class extends o.RangeValue{};ut.startSide=1,ut.endSide=-1;const mt=o.StateField.define({create:()=>o.RangeSet.empty,update(t,e){if(t=t.map(e.changes),e.selection){let i=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:t=>t>=i.from&&t<=i.to})}for(let i of e.effects)i.is(ft)&&(t=t.update({add:[ut.range(i.value,i.value+1)]}));return t}});function gt(){return[xt,mt]}const vt="()[]{}<>«»»«[]{}";function wt(t){for(let e=0;e<16;e+=2)if(vt.charCodeAt(e)==t)return vt.charAt(e+1);return(0,o.fromCodePoint)(t<128?t:t+1)}function bt(t,e){return t.languageDataAt("closeBrackets",e)[0]||dt}const yt="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),xt=n.EditorView.inputHandler.of(((t,e,i,n)=>{if((yt?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let s=t.state.selection.main;if(n.length>2||2==n.length&&1==(0,o.codePointSize)((0,o.codePointAt)(n,0))||e!=s.from||i!=s.to)return!1;let l=function(t,e){let i=bt(t,t.selection.main.head),n=i.brackets||dt.brackets;for(let s of n){let l=wt((0,o.codePointAt)(s,0));if(e==s)return l==s?kt(t,s,n.indexOf(s+s+s)>-1,i):It(t,s,l,i.before||dt.before);if(e==l&&St(t,t.selection.main.from))return Pt(t,0,l)}return null}(t.state,n);return!!l&&(t.dispatch(l),!0)})),Ct=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=bt(t,t.selection.main.head).brackets||dt.brackets,n=null,s=t.changeByRange((e=>{if(e.empty){let n=function(t,e){let i=t.sliceString(e-2,e);return(0,o.codePointSize)((0,o.codePointAt)(i,0))==i.length?i:i.slice(1)}(t.doc,e.head);for(let s of i)if(s==n&&Et(t.doc,e.head)==wt((0,o.codePointAt)(s,0)))return{changes:{from:e.head-s.length,to:e.head+s.length},range:o.EditorSelection.cursor(e.head-s.length)}}return{range:n=e}}));return n||e(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!n}}];function St(t,e){let i=!1;return t.field(mt).between(0,t.doc.length,(t=>{t==e&&(i=!0)})),i}function Et(t,e){let i=t.sliceString(e,e+2);return i.slice(0,(0,o.codePointSize)((0,o.codePointAt)(i,0)))}function It(t,e,i,n){let s=null,l=t.changeByRange((l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:i,from:l.to}],effects:ft.of(l.to+e.length),range:o.EditorSelection.range(l.anchor+e.length,l.head+e.length)};let r=Et(t.doc,l.head);return!r||/\s/.test(r)||n.indexOf(r)>-1?{changes:{insert:e+i,from:l.head},effects:ft.of(l.head+e.length),range:o.EditorSelection.cursor(l.head+e.length)}:{range:s=l}}));return s?null:t.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function Pt(t,e,i){let n=null,s=t.changeByRange((e=>e.empty&&Et(t.doc,e.head)==i?{changes:{from:e.head,to:e.head+i.length,insert:i},range:o.EditorSelection.cursor(e.head+i.length)}:n={range:e}));return n?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function kt(t,e,i,n){let l=n.stringPrefixes||dt.stringPrefixes,r=null,a=t.changeByRange((n=>{if(!n.empty)return{changes:[{insert:e,from:n.from},{insert:e,from:n.to}],effects:ft.of(n.to+e.length),range:o.EditorSelection.range(n.anchor+e.length,n.head+e.length)};let a,c=n.head,h=Et(t.doc,c);if(h==e){if(Dt(t,c))return{changes:{insert:e+e,from:c},effects:ft.of(c+e.length),range:o.EditorSelection.cursor(c+e.length)};if(St(t,c)){let n=i&&t.sliceDoc(c,c+3*e.length)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+n.length,insert:n},range:o.EditorSelection.cursor(c+n.length)}}}else{if(i&&t.sliceDoc(c-2*e.length,c)==e+e&&(a=At(t,c-2*e.length,l))>-1&&Dt(t,a))return{changes:{insert:e+e+e+e,from:c},effects:ft.of(c+e.length),range:o.EditorSelection.cursor(c+e.length)};if(t.charCategorizer(c)(h)!=o.CharCategory.Word&&At(t,c,l)>-1&&!function(t,e,i,o){let n=(0,s.syntaxTree)(t).resolveInner(e,-1),l=o.reduce(((t,e)=>Math.max(t,e.length)),0);for(let s=0;s<5;s++){let s=t.sliceDoc(n.from,Math.min(n.to,n.from+i.length+l)),r=s.indexOf(i);if(!r||r>-1&&o.indexOf(s.slice(0,r))>-1){let e=n.firstChild;for(;e&&e.from==n.from&&e.to-e.from>i.length+r;){if(t.sliceDoc(e.to-i.length,e.to)==i)return!1;e=e.firstChild}return!0}let a=n.to==e&&n.parent;if(!a)break;n=a}return!1}(t,c,e,l))return{changes:{insert:e+e,from:c},effects:ft.of(c+e.length),range:o.EditorSelection.cursor(c+e.length)}}return{range:r=n}}));return r?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function Dt(t,e){let i=(0,s.syntaxTree)(t).resolveInner(e+1);return i.parent&&i.from==e}function At(t,e,i){let n=t.charCategorizer(e);if(n(t.sliceDoc(e-1,e))!=o.CharCategory.Word)return e;for(let s of i){let i=e-s.length;if(t.sliceDoc(i,e)==s&&n(t.sliceDoc(i-1,i))!=o.CharCategory.Word)return i}return-1}function Tt(t={}){return[Q,N,x.of(t),j,Rt,_]}const Ot=[{key:"Ctrl-Space",run:q},{mac:"Alt-`",run:q},{mac:"Alt-i",run:q},{key:"Escape",run:t=>{let e=t.state.field(N,!1);return!(!e||!e.active.some((t=>0!=t.state))||(t.dispatch({effects:w.of(null)}),0))}},{key:"ArrowDown",run:W(!0)},{key:"ArrowUp",run:W(!1)},{key:"PageDown",run:W(!0,"page")},{key:"PageUp",run:W(!1,"page")},{key:"Enter",run:t=>{let e=t.state.field(N,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(x).interactionDelay)&&V(t,e.open.options[e.open.selected])}}],Rt=o.Prec.highest(n.keymap.computeN([x],(t=>t.facet(x).defaultKeymap?[Ot]:[])))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkjupyterlab_diff=self.webpackChunkjupyterlab_diff||[]).push([[879],{879:(e,t,n)=>{n.r(t),n.d(t,{EditorView:()=>o.EditorView,basicSetup:()=>an,minimalSetup:()=>cn});var o=n(24),r=n(195),i=n(84),s=n(708);function l(e,t){return({state:n,dispatch:o})=>{if(n.readOnly)return!1;let r=e(t,n);return!!r&&(o(n.update(r)),!0)}}const a=l(m,0),c=l(d,0),h=l(((e,t)=>d(e,t,function(e){let t=[];for(let n of e.selection.ranges){let o=e.doc.lineAt(n.from),r=n.to<=o.to?o:e.doc.lineAt(n.to);r.from>o.from&&r.from==n.to&&(r=n.to==o.to+1?o:e.doc.lineAt(n.to-1));let i=t.length-1;i>=0&&t[i].to>o.from?t[i].to=r.to:t.push({from:o.from+/^\s*/.exec(o.text)[0].length,to:r.to})}return t}(t))),0);function f(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}const u=50;function d(e,t,n=t.selection.ranges){let o=n.map((e=>f(t,e.from).block));if(!o.every((e=>e)))return null;let r=n.map(((e,n)=>function(e,{open:t,close:n},o,r){let i,s,l=e.sliceDoc(o-u,o),a=e.sliceDoc(r,r+u),c=/\s*$/.exec(l)[0].length,h=/^\s*/.exec(a)[0].length,f=l.length-c;if(l.slice(f-t.length,f)==t&&a.slice(h,h+n.length)==n)return{open:{pos:o-c,margin:c&&1},close:{pos:r+h,margin:h&&1}};r-o<=2*u?i=s=e.sliceDoc(o,r):(i=e.sliceDoc(o,o+u),s=e.sliceDoc(r-u,r));let d=/^\s*/.exec(i)[0].length,m=/\s*$/.exec(s)[0].length,p=s.length-m-n.length;return i.slice(d,d+t.length)==t&&s.slice(p,p+n.length)==n?{open:{pos:o+d+t.length,margin:/\s/.test(i.charAt(d+t.length))?1:0},close:{pos:r-m-n.length,margin:/\s/.test(s.charAt(p-1))?1:0}}:null}(t,o[n],e.from,e.to)));if(2!=e&&!r.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>r[t]?[]:[{from:e.from,insert:o[t].open+" "},{from:e.to,insert:" "+o[t].close}])))};if(1!=e&&r.some((e=>e))){let e=[];for(let t,n=0;n<r.length;n++)if(t=r[n]){let r=o[n],{open:i,close:s}=t;e.push({from:i.pos-r.open.length,to:i.pos+i.margin},{from:s.pos-s.margin,to:s.pos+r.close.length})}return{changes:e}}return null}function m(e,t,n=t.selection.ranges){let o=[],r=-1;for(let{from:e,to:i}of n){let n=o.length,s=1e9,l=f(t,e).line;if(l){for(let n=e;n<=i;){let a=t.doc.lineAt(n);if(a.from>r&&(e==i||i>a.from)){r=a.from;let e=/^\s*/.exec(a.text)[0].length,t=e==a.length,n=a.text.slice(e,e+l.length)==l?e:-1;e<a.text.length&&e<s&&(s=e),o.push({line:a,comment:n,token:l,indent:e,empty:t,single:!1})}n=a.to+1}if(s<1e9)for(let e=n;e<o.length;e++)o[e].indent<o[e].line.text.length&&(o[e].indent=s);o.length==n+1&&(o[n].single=!0)}}if(2!=e&&o.some((e=>e.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:n,indent:r,empty:i,single:s}of o)!s&&i||e.push({from:t.from+r,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&o.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:r}of o)if(n>=0){let o=t.from+n,i=o+r.length;" "==t.text[i-t.from]&&i++,e.push({from:o,to:i})}return{changes:e}}return null}const p=r.Annotation.define(),g=r.Annotation.define(),v=r.Facet.define(),y=r.Facet.define({combine:e=>(0,r.combineConfig)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,o)=>e(n,o)||t(n,o)})}),w=r.StateField.define({create:()=>q.empty,update(e,t){let n=t.state.facet(y),o=t.annotation(p);if(o){let r=M.fromTransaction(t,o.selection),i=o.side,s=0==i?e.undone:e.done;return s=r?E(s,s.length,n.minDepth,r):R(s,t.startState.selection),new q(0==i?o.rest:s,0==i?s:o.rest)}let i=t.annotation(g);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(r.Transaction.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let s=M.fromTransaction(t),l=t.annotation(r.Transaction.time),a=t.annotation(r.Transaction.userEvent);return s?e=e.addChanges(s,l,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,l,a,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new q(e.done.map(M.fromJSON),e.undone.map(M.fromJSON))});function x(e={}){return[w,y.of(e),o.EditorView.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?S:"historyRedo"==e.inputType?b:null;return!!n&&(e.preventDefault(),n(t))}})]}function k(e,t){return function({state:n,dispatch:o}){if(!t&&n.readOnly)return!1;let r=n.field(w,!1);if(!r)return!1;let i=r.pop(e,n,t);return!!i&&(o(i),!0)}}const S=k(0,!1),b=k(1,!1),C=k(0,!0),A=k(1,!0);class M{constructor(e,t,n,o,r){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=o,this.selectionsAfter=r}setSelAfter(e){return new M(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new M(e.changes&&r.ChangeSet.fromJSON(e.changes),[],e.mapped&&r.ChangeDesc.fromJSON(e.mapped),e.startSelection&&r.EditorSelection.fromJSON(e.startSelection),e.selectionsAfter.map(r.EditorSelection.fromJSON))}static fromTransaction(e,t){let n=B;for(let t of e.startState.facet(v)){let o=t(e);o.length&&(n=n.concat(o))}return!n.length&&e.changes.empty?null:new M(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,B)}static selection(e){return new M(void 0,B,void 0,void 0,e)}}function E(e,t,n,o){let r=t+1>n+20?t-n-1:0,i=e.slice(r,t);return i.push(o),i}function D(e,t){return e.length?t.length?e.concat(t):e:t}const B=[],L=200;function R(e,t){if(e.length){let n=e[e.length-1],o=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-L));return o.length&&o[o.length-1].eq(t)?e:(o.push(t),E(e,e.length-1,1e9,n.setSelAfter(o)))}return[M.selection([t])]}function I(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function O(e,t){if(!e.length)return e;let n=e.length,o=B;for(;n;){let r=P(e[n-1],t,o);if(r.changes&&!r.changes.empty||r.effects.length){let t=e.slice(0,n);return t[n-1]=r,t}t=r.mapped,n--,o=r.selectionsAfter}return o.length?[M.selection(o)]:B}function P(e,t,n){let o=D(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):B,n);if(!e.changes)return M.selection(o);let i=e.changes.map(t),s=t.mapDesc(e.changes,!0),l=e.mapped?e.mapped.composeDesc(s):s;return new M(i,r.StateEffect.mapEffects(e.effects,t),l,e.startSelection.map(s),o)}const T=/^(input\.type|delete)($|\.)/;class q{constructor(e,t,n=0,o=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=o}isolate(){return this.prevTime?new q(this.done,this.undone):this}addChanges(e,t,n,o,i){let s=this.done,l=s[s.length-1];return s=l&&l.changes&&!l.changes.empty&&e.changes&&(!n||T.test(n))&&(!l.selectionsAfter.length&&t-this.prevTime<o.newGroupDelay&&o.joinToEvent(i,function(e,t){let n=[],o=!1;return e.iterChangedRanges(((e,t)=>n.push(e,t))),t.iterChangedRanges(((e,t,r,i)=>{for(let e=0;e<n.length;){let t=n[e++],s=n[e++];i>=t&&r<=s&&(o=!0)}})),o}(l.changes,e.changes))||"input.type.compose"==n)?E(s,s.length-1,o.minDepth,new M(e.changes.compose(l.changes),D(r.StateEffect.mapEffects(e.effects,l.changes),l.effects),l.mapped,l.startSelection,B)):E(s,s.length,o.minDepth,e),new q(s,B,t,n)}addSelection(e,t,n,o){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:B;return r.length>0&&t-this.prevTime<o&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(i=r[r.length-1],s=e,i.ranges.length==s.ranges.length&&0===i.ranges.filter(((e,t)=>e.empty!=s.ranges[t].empty)).length)?this:new q(R(this.done,e),this.undone,t,n);var i,s}addMapping(e){return new q(O(this.done,e),O(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let o=0==e?this.done:this.undone;if(0==o.length)return null;let r=o[o.length-1],i=r.selectionsAfter[0]||t.selection;if(n&&r.selectionsAfter.length)return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:p.of({side:e,rest:I(o),selection:i}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let n=1==o.length?B:o.slice(0,o.length-1);return r.mapped&&(n=O(n,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:p.of({side:e,rest:n,selection:i}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}q.empty=new q(B,B);const V=[{key:"Mod-z",run:S,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:b,preventDefault:!0},{linux:"Ctrl-Shift-z",run:b,preventDefault:!0},{key:"Mod-u",run:C,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:A,preventDefault:!0}];function F(e,t){return r.EditorSelection.create(e.ranges.map(t),e.mainIndex)}function W(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function N({state:e,dispatch:t},n){let o=F(e.selection,n);return!o.eq(e.selection,!0)&&(t(W(e,o)),!0)}function z(e,t){return r.EditorSelection.cursor(t?e.to:e.from)}function $(e,t){return N(e,(n=>n.empty?e.moveByChar(n,t):z(n,t)))}function H(e){return e.textDirectionAt(e.state.selection.main.head)==o.Direction.LTR}const U=e=>$(e,!H(e)),J=e=>$(e,H(e));function G(e,t){return N(e,(n=>n.empty?e.moveByGroup(n,t):z(n,t)))}function j(e,t,n){if(t.type.prop(n))return!0;let o=t.to-t.from;return o&&(o>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function _(e,t,n){let o,l,a=(0,i.syntaxTree)(e).resolveInner(t.head),c=n?s.NodeProp.closedBy:s.NodeProp.openedBy;for(let o=t.head;;){let t=n?a.childAfter(o):a.childBefore(o);if(!t)break;j(e,t,c)?a=t:o=n?t.to:t.from}return l=a.type.prop(c)&&(o=n?(0,i.matchBrackets)(e,a.from,1):(0,i.matchBrackets)(e,a.to,-1))&&o.matched?n?o.end.to:o.end.from:n?a.to:a.from,r.EditorSelection.cursor(l,n?-1:1)}function K(e,t){return N(e,(n=>{if(!n.empty)return z(n,t);let o=e.moveVertically(n,t);return o.head!=n.head?o:e.moveToLineBoundary(n,t)}))}"undefined"!=typeof Intl&&Intl.Segmenter;const Q=e=>K(e,!1),Y=e=>K(e,!0);function Z(e){let t,n=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,r=0,i=0;if(n){for(let t of e.state.facet(o.EditorView.scrollMargins)){let n=t(e);(null==n?void 0:n.top)&&(r=Math.max(null==n?void 0:n.top,r)),(null==n?void 0:n.bottom)&&(i=Math.max(null==n?void 0:n.bottom,i))}t=e.scrollDOM.clientHeight-r-i}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:i,selfScroll:n,height:Math.max(e.defaultLineHeight,t-5)}}function X(e,t){let n,r=Z(e),{state:i}=e,s=F(i.selection,(n=>n.empty?e.moveVertically(n,t,r.height):z(n,t)));if(s.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),l=e.scrollDOM.getBoundingClientRect(),a=l.top+r.marginTop,c=l.bottom-r.marginBottom;t&&t.top>a&&t.bottom<c&&(n=o.EditorView.scrollIntoView(s.main.head,{y:"start",yMargin:t.top-a}))}return e.dispatch(W(i,s),{effects:n}),!0}const ee=e=>X(e,!1),te=e=>X(e,!0);function ne(e,t,n){let o=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?o.to:o.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==o.from&&o.length){let n=/^\s*/.exec(e.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;n&&t.head!=o.from+n&&(i=r.EditorSelection.cursor(o.from+n))}return i}function oe(e,t){let n=F(e.state.selection,(e=>{let n=t(e);return r.EditorSelection.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(W(e.state,n)),!0)}function re(e,t){return oe(e,(n=>e.moveByChar(n,t)))}const ie=e=>re(e,!H(e)),se=e=>re(e,H(e));function le(e,t){return oe(e,(n=>e.moveByGroup(n,t)))}function ae(e,t){return oe(e,(n=>e.moveVertically(n,t)))}const ce=e=>ae(e,!1),he=e=>ae(e,!0);function fe(e,t){return oe(e,(n=>e.moveVertically(n,t,Z(e).height)))}const ue=e=>fe(e,!1),de=e=>fe(e,!0),me=({state:e,dispatch:t})=>(t(W(e,{anchor:0})),!0),pe=({state:e,dispatch:t})=>(t(W(e,{anchor:e.doc.length})),!0),ge=({state:e,dispatch:t})=>(t(W(e,{anchor:e.selection.main.anchor,head:0})),!0),ve=({state:e,dispatch:t})=>(t(W(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function ye(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:i}=e,s=i.changeByRange((o=>{let{from:i,to:s}=o;if(i==s){let r=t(o);r<i?(n="delete.backward",r=we(e,r,!1)):r>i&&(n="delete.forward",r=we(e,r,!0)),i=Math.min(i,r),s=Math.max(s,r)}else i=we(e,i,!1),s=we(e,s,!0);return i==s?{range:o}:{changes:{from:i,to:s},range:r.EditorSelection.cursor(i,i<o.head?-1:1)}}));return!s.changes.empty&&(e.dispatch(i.update(s,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?o.EditorView.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function we(e,t,n){if(e instanceof o.EditorView)for(let r of e.state.facet(o.EditorView.atomicRanges).map((t=>t(e))))r.between(t,t,((e,o)=>{e<t&&o>t&&(t=n?o:e)}));return t}const xe=(e,t,n)=>ye(e,(o=>{let s,l,a=o.from,{state:c}=e,h=c.doc.lineAt(a);if(n&&!t&&a>h.from&&a<h.from+200&&!/[^ \t]/.test(s=h.text.slice(0,a-h.from))){if("\t"==s[s.length-1])return a-1;let e=(0,r.countColumn)(s,c.tabSize)%(0,i.getIndentUnit)(c)||(0,i.getIndentUnit)(c);for(let t=0;t<e&&" "==s[s.length-1-t];t++)a--;l=a}else l=(0,r.findClusterBreak)(h.text,a-h.from,t,t)+h.from,l==a&&h.number!=(t?c.doc.lines:1)?l+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(h.text.slice(l-h.from,a-h.from))&&(l=(0,r.findClusterBreak)(h.text,l-h.from,!1,!1)+h.from);return l})),ke=e=>xe(e,!1,!0),Se=e=>xe(e,!0,!1),be=(e,t)=>ye(e,(n=>{let o=n.head,{state:i}=e,s=i.doc.lineAt(o),l=i.charCategorizer(o);for(let e=null;;){if(o==(t?s.to:s.from)){o==n.head&&s.number!=(t?i.doc.lines:1)&&(o+=t?1:-1);break}let a=(0,r.findClusterBreak)(s.text,o-s.from,t)+s.from,c=s.text.slice(Math.min(o,a)-s.from,Math.max(o,a)-s.from),h=l(c);if(null!=e&&h!=e)break;" "==c&&o==n.head||(e=h),o=a}return o})),Ce=e=>be(e,!1);function Ae(e){let t=[],n=-1;for(let o of e.selection.ranges){let r=e.doc.lineAt(o.from),i=e.doc.lineAt(o.to);if(o.empty||o.to!=i.from||(i=e.doc.lineAt(o.to-1)),n>=r.number){let e=t[t.length-1];e.to=i.to,e.ranges.push(o)}else t.push({from:r.from,to:i.to,ranges:[o]});n=i.number+1}return t}function Me(e,t,n){if(e.readOnly)return!1;let o=[],i=[];for(let t of Ae(e)){if(n?t.to==e.doc.length:0==t.from)continue;let s=e.doc.lineAt(n?t.to+1:t.from-1),l=s.length+1;if(n){o.push({from:t.to,to:s.to},{from:t.from,insert:s.text+e.lineBreak});for(let n of t.ranges)i.push(r.EditorSelection.range(Math.min(e.doc.length,n.anchor+l),Math.min(e.doc.length,n.head+l)))}else{o.push({from:s.from,to:t.from},{from:t.to,insert:e.lineBreak+s.text});for(let e of t.ranges)i.push(r.EditorSelection.range(e.anchor-l,e.head-l))}}return!!o.length&&(t(e.update({changes:o,scrollIntoView:!0,selection:r.EditorSelection.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Ee(e,t,n){if(e.readOnly)return!1;let o=[];for(let t of Ae(e))n?o.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):o.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:o,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const De=Be(!1);function Be(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let o=t.changeByRange((n=>{let{from:o,to:l}=n,a=t.doc.lineAt(o),c=!e&&o==l&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,o=(0,i.syntaxTree)(e).resolveInner(t),r=o.childBefore(t),l=o.childAfter(t);return r&&l&&r.to<=t&&l.from>=t&&(n=r.type.prop(s.NodeProp.closedBy))&&n.indexOf(l.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(l.from).from&&!/\S/.test(e.sliceDoc(r.to,l.from))?{from:r.to,to:l.from}:null}(t,o);e&&(o=l=(l<=a.to?a:t.doc.lineAt(l)).to);let h=new i.IndentContext(t,{simulateBreak:o,simulateDoubleBreak:!!c}),f=(0,i.getIndentation)(h,o);for(null==f&&(f=(0,r.countColumn)(/^\s*/.exec(t.doc.lineAt(o).text)[0],t.tabSize));l<a.to&&/\s/.test(a.text[l-a.from]);)l++;c?({from:o,to:l}=c):o>a.from&&o<a.from+100&&!/\S/.test(a.text.slice(0,o))&&(o=a.from);let u=["",(0,i.indentString)(t,f)];return c&&u.push((0,i.indentString)(t,h.lineIndent(a.from,-1))),{changes:{from:o,to:l,insert:r.Text.of(u)},range:r.EditorSelection.cursor(o+1+u[1].length)}}));return n(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}}function Le(e,t){let n=-1;return e.changeByRange((o=>{let i=[];for(let r=o.from;r<=o.to;){let s=e.doc.lineAt(r);s.number>n&&(o.empty||o.to>s.from)&&(t(s,i,o),n=s.number),r=s.to+1}let s=e.changes(i);return{changes:i,range:r.EditorSelection.range(s.mapPos(o.anchor,1),s.mapPos(o.head,1))}}))}const Re=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>N(e,(t=>_(e.state,t,!H(e)))),shift:e=>oe(e,(t=>_(e.state,t,!H(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>N(e,(t=>_(e.state,t,H(e)))),shift:e=>oe(e,(t=>_(e.state,t,H(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>Me(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>Ee(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>Me(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>Ee(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,o=null;return n.ranges.length>1?o=r.EditorSelection.create([n.main]):n.main.empty||(o=r.EditorSelection.create([r.EditorSelection.cursor(n.main.head)])),!!o&&(t(W(e,o)),!0)}},{key:"Mod-Enter",run:Be(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=Ae(e).map((({from:t,to:n})=>r.EditorSelection.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:r.EditorSelection.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=F(e.selection,(t=>{let n=(0,i.syntaxTree)(e),o=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=o.node.from&&e.node.to<=o.node.to&&(o=e)}for(let e=o;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return r.EditorSelection.range(n.to,n.from)}return t}));return!n.eq(e.selection)&&(t(W(e,n)),!0)},preventDefault:!0},{key:"Mod-[",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Le(e,((t,n)=>{let o=/^\s*/.exec(t.text)[0];if(!o)return;let s=(0,r.countColumn)(o,e.tabSize),l=0,a=(0,i.indentString)(e,Math.max(0,s-(0,i.getIndentUnit)(e)));for(;l<o.length&&l<a.length&&o.charCodeAt(l)==a.charCodeAt(l);)l++;n.push({from:t.from+l,to:t.from+o.length,insert:a.slice(l)})})),{userEvent:"delete.dedent"})),!0)},{key:"Mod-]",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Le(e,((t,n)=>{n.push({from:t.from,insert:e.facet(i.indentUnit)})})),{userEvent:"input.indent"})),!0)},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),o=new i.IndentContext(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),r=Le(e,((t,r,s)=>{let l=(0,i.getIndentation)(o,t.from);if(null==l)return;/\S/.test(t.text)||(l=0);let a=/^\s*/.exec(t.text)[0],c=(0,i.indentString)(e,l);(a!=c||s.from<t.from+a.length)&&(n[t.from]=l,r.push({from:t.from,to:t.from+a.length,insert:c}))}));return r.changes.empty||t(e.update(r,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Ae(t).map((({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n})))),o=F(t.selection,(t=>{let n;if(e.lineWrapping){let o=e.lineBlockAt(t.head),r=e.coordsAtPos(t.head,t.assoc||1);r&&(n=o.bottom+e.documentTop-r.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)})).map(n);return e.dispatch({changes:n,selection:o,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let o=!1,s=F(e.selection,(t=>{let s=(0,i.matchBrackets)(e,t.head,-1)||(0,i.matchBrackets)(e,t.head,1)||t.head>0&&(0,i.matchBrackets)(e,t.head-1,1)||t.head<e.doc.length&&(0,i.matchBrackets)(e,t.head+1,-1);if(!s||!s.end)return t;o=!0;let l=s.start.from==t.head?s.end.to:s.end.from;return n?r.EditorSelection.range(t.anchor,l):r.EditorSelection.cursor(l)}));return!!o&&(t(W(e,s)),!0)}(e,t,!1)},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),o=f(e.state,n.from);return o.line?a(e):!!o.block&&h(e)}},{key:"Alt-A",run:c},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat([{key:"ArrowLeft",run:U,shift:ie,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>G(e,!H(e)),shift:e=>le(e,!H(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>N(e,(t=>ne(e,t,!H(e)))),shift:e=>oe(e,(t=>ne(e,t,!H(e)))),preventDefault:!0},{key:"ArrowRight",run:J,shift:se,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>G(e,H(e)),shift:e=>le(e,H(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>N(e,(t=>ne(e,t,H(e)))),shift:e=>oe(e,(t=>ne(e,t,H(e)))),preventDefault:!0},{key:"ArrowUp",run:Q,shift:ce,preventDefault:!0},{mac:"Cmd-ArrowUp",run:me,shift:ge},{mac:"Ctrl-ArrowUp",run:ee,shift:ue},{key:"ArrowDown",run:Y,shift:he,preventDefault:!0},{mac:"Cmd-ArrowDown",run:pe,shift:ve},{mac:"Ctrl-ArrowDown",run:te,shift:de},{key:"PageUp",run:ee,shift:ue},{key:"PageDown",run:te,shift:de},{key:"Home",run:e=>N(e,(t=>ne(e,t,!1))),shift:e=>oe(e,(t=>ne(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:me,shift:ge},{key:"End",run:e=>N(e,(t=>ne(e,t,!0))),shift:e=>oe(e,(t=>ne(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:pe,shift:ve},{key:"Enter",run:De,shift:De},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:ke,shift:ke},{key:"Delete",run:Se},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Ce},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>be(e,!0)},{mac:"Mod-Backspace",run:e=>ye(e,(t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}))},{mac:"Mod-Delete",run:e=>ye(e,(t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}))}].concat([{key:"Ctrl-b",run:U,shift:ie,preventDefault:!0},{key:"Ctrl-f",run:J,shift:se},{key:"Ctrl-p",run:Q,shift:ce},{key:"Ctrl-n",run:Y,shift:he},{key:"Ctrl-a",run:e=>N(e,(t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>oe(e,(t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>N(e,(t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>oe(e,(t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:Se},{key:"Ctrl-h",run:ke},{key:"Ctrl-k",run:e=>ye(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}))},{key:"Ctrl-Alt-h",run:Ce},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:r.Text.of(["",""])},range:r.EditorSelection.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,o=e.doc.lineAt(n),i=n==o.from?n-1:(0,r.findClusterBreak)(o.text,n-o.from,!1)+o.from,s=n==o.to?n+1:(0,r.findClusterBreak)(o.text,n-o.from,!0)+o.from;return{changes:{from:i,to:s,insert:e.doc.slice(n,s).append(e.doc.slice(i,n))},range:r.EditorSelection.cursor(s)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:te}].map((e=>({mac:e.key,run:e.run,shift:e.shift})))));function Ie(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var r=n[o];"string"==typeof r?e.setAttribute(o,r):null!=r&&(e[o]=r)}t++}for(;t<arguments.length;t++)Oe(e,arguments[t]);return e}function Oe(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)Oe(e,t[n])}}const Pe="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class Te{constructor(e,t,n=0,o=e.length,r,i){this.test=i,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,o),this.bufferStart=n,this.normalize=r?e=>r(Pe(e)):Pe,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,r.codePointAt)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,r.fromCodePoint)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,r.codePointSize)(e);let o=this.normalize(t);if(o.length)for(let e=0,r=n;;e++){let i=o.charCodeAt(e),s=this.match(i,r,this.bufferPos+this.bufferStart);if(e==o.length-1){if(s)return this.value=s,this;break}r==n&&e<t.length&&t.charCodeAt(e)==i&&r++}}}match(e,t,n){let o=null;for(let t=0;t<this.matches.length;t+=2){let r=this.matches[t],i=!1;this.query.charCodeAt(r)==e&&(r==this.query.length-1?o={from:this.matches[t+1],to:n}:(this.matches[t]++,i=!0)),i||(this.matches.splice(t,2),t-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?o={from:t,to:n}:this.matches.push(1,t)),o&&this.test&&!this.test(o.from,o.to,this.buffer,this.bufferStart)&&(o=null),o}}"undefined"!=typeof Symbol&&(Te.prototype[Symbol.iterator]=function(){return this});const qe={from:-1,to:-1,match:/.*/.exec("")},Ve="gm"+(null==/x/.unicode?"":"u");class Fe{constructor(e,t,n,o=0,r=e.length){if(this.text=e,this.to=r,this.curLine="",this.done=!1,this.value=qe,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new ze(e,t,n,o,r);this.re=new RegExp(t,Ve+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.iter=e.iter();let i=e.lineAt(o);this.curLineStart=i.from,this.matchPos=$e(e,o),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,o=n+t[0].length;if(this.matchPos=$e(this.text,o+(n==o?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<o||n>this.value.to)&&(!this.test||this.test(n,o,t)))return this.value={from:n,to:o,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}const We=new WeakMap;class Ne{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let o=We.get(e);if(!o||o.from>=n||o.to<=t){let o=new Ne(t,e.sliceString(t,n));return We.set(e,o),o}if(o.from==t&&o.to==n)return o;let{text:r,from:i}=o;return i>t&&(r=e.sliceString(t,i)+r,i=t),o.to<n&&(r+=e.sliceString(o.to,n)),We.set(e,new Ne(i,r)),new Ne(t,r.slice(t-i,n-i))}}class ze{constructor(e,t,n,o,r){this.text=e,this.to=r,this.done=!1,this.value=qe,this.matchPos=$e(e,o),this.re=new RegExp(t,Ve+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.flat=Ne.get(e,o,this.chunkEnd(o+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=$e(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Ne.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function $e(e,t){if(t>=e.length)return t;let n,o=e.lineAt(t);for(;t<o.to&&(n=o.text.charCodeAt(t-o.from))>=56320&&n<57344;)t++;return t}function He(e){let t=Ie("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:i}=e,s=i.doc.lineAt(i.selection.main.head),[,l,a,c,h]=n,f=c?+c.slice(1):0,u=a?+a:s.number;if(a&&h){let e=u/100;l&&(e=e*("-"==l?-1:1)+s.number/i.doc.lines),u=Math.round(i.doc.lines*e)}else a&&l&&(u=u*("-"==l?-1:1)+s.number);let d=i.doc.line(Math.max(1,Math.min(i.doc.lines,u))),m=r.EditorSelection.cursor(d.from+Math.max(0,Math.min(f,d.length)));e.dispatch({effects:[Ue.of(!1),o.EditorView.scrollIntoView(m.from,{y:"center"})],selection:m}),e.focus()}return{dom:Ie("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:Ue.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},Ie("label",e.state.phrase("Go to line"),": ",t)," ",Ie("button",{class:"cm-button",type:"submit"},e.state.phrase("go")),Ie("button",{name:"close",onclick:()=>{e.dispatch({effects:Ue.of(!1)}),e.focus()},"aria-label":e.state.phrase("close"),type:"button"},["×"]))}}"undefined"!=typeof Symbol&&(Fe.prototype[Symbol.iterator]=ze.prototype[Symbol.iterator]=function(){return this});const Ue=r.StateEffect.define(),Je=r.StateField.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(Ue)&&(e=n.value);return e},provide:e=>o.showPanel.from(e,(e=>e?He:null))}),Ge=o.EditorView.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),je={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},_e=r.Facet.define({combine:e=>(0,r.combineConfig)(e,je,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});function Ke(e){let t=[et,Xe];return e&&t.push(_e.of(e)),t}const Qe=o.Decoration.mark({class:"cm-selectionMatch"}),Ye=o.Decoration.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Ze(e,t,n,o){return!(0!=n&&e(t.sliceDoc(n-1,n))==r.CharCategory.Word||o!=t.doc.length&&e(t.sliceDoc(o,o+1))==r.CharCategory.Word)}const Xe=o.ViewPlugin.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(_e),{state:n}=e,i=n.selection;if(i.ranges.length>1)return o.Decoration.none;let s,l=i.main,a=null;if(l.empty){if(!t.highlightWordAroundCursor)return o.Decoration.none;let e=n.wordAt(l.head);if(!e)return o.Decoration.none;a=n.charCategorizer(l.head),s=n.sliceDoc(e.from,e.to)}else{let e=l.to-l.from;if(e<t.minSelectionLength||e>200)return o.Decoration.none;if(t.wholeWords){if(s=n.sliceDoc(l.from,l.to),a=n.charCategorizer(l.head),!Ze(a,n,l.from,l.to)||!function(e,t,n,o){return e(t.sliceDoc(n,n+1))==r.CharCategory.Word&&e(t.sliceDoc(o-1,o))==r.CharCategory.Word}(a,n,l.from,l.to))return o.Decoration.none}else if(s=n.sliceDoc(l.from,l.to),!s)return o.Decoration.none}let c=[];for(let r of e.visibleRanges){let e=new Te(n.doc,s,r.from,r.to);for(;!e.next().done;){let{from:r,to:i}=e.value;if((!a||Ze(a,n,r,i))&&(l.empty&&r<=l.from&&i>=l.to?c.push(Ye.range(r,i)):(r>=l.to||i<=l.from)&&c.push(Qe.range(r,i)),c.length>t.maxMatches))return o.Decoration.none}}return o.Decoration.set(c)}},{decorations:e=>e.decorations}),et=o.EditorView.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),tt=r.Facet.define({combine:e=>(0,r.combineConfig)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Lt(e),scrollToMatch:e=>o.EditorView.scrollIntoView(e)})});class nt{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,Ve),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new ct(this):new it(this)}getCursor(e,t=0,n){let o=e.doc?e:r.EditorState.create({doc:e});return null==n&&(n=o.doc.length),this.regexp?st(this,o,t,n):rt(this,o,t,n)}}class ot{constructor(e){this.spec=e}}function rt(e,t,n,o){return new Te(t.doc,e.unquoted,n,o,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(i=t.doc,s=t.charCategorizer(t.selection.main.head),(e,t,n,o)=>((o>e||o+n.length<t)&&(o=Math.max(0,e-2),n=i.sliceString(o,Math.min(i.length,t+2))),!(s(lt(n,e-o))==r.CharCategory.Word&&s(at(n,e-o))==r.CharCategory.Word||s(at(n,t-o))==r.CharCategory.Word&&s(lt(n,t-o))==r.CharCategory.Word))):void 0);var i,s}class it extends ot{constructor(e){super(e)}nextMatch(e,t,n){let o=rt(this.spec,e,n,e.doc.length).nextOverlapping();if(o.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);o=rt(this.spec,e,0,n).nextOverlapping()}return o.done||o.value.from==t&&o.value.to==n?null:o.value}prevMatchInRange(e,t,n){for(let o=n;;){let n=Math.max(t,o-1e4-this.spec.unquoted.length),r=rt(this.spec,e,n,o),i=null;for(;!r.nextOverlapping().done;)i=r.value;if(i)return i;if(n==t)return null;o-=1e4}}prevMatch(e,t,n){let o=this.prevMatchInRange(e,0,t);return o||(o=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),!o||o.from==t&&o.to==n?null:o}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=rt(this.spec,e,0,e.doc.length),o=[];for(;!n.next().done;){if(o.length>=t)return null;o.push(n.value)}return o}highlight(e,t,n,o){let r=rt(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)o(r.value.from,r.value.to)}}function st(e,t,n,o){return new Fe(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(i=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(i(lt(n.input,n.index))!=r.CharCategory.Word||i(at(n.input,n.index))!=r.CharCategory.Word)&&(i(at(n.input,n.index+n[0].length))!=r.CharCategory.Word||i(lt(n.input,n.index+n[0].length))!=r.CharCategory.Word)):void 0},n,o);var i}function lt(e,t){return e.slice((0,r.findClusterBreak)(e,t,!1),t)}function at(e,t){return e.slice(t,(0,r.findClusterBreak)(e,t))}class ct extends ot{nextMatch(e,t,n){let o=st(this.spec,e,n,e.doc.length).next();return o.done&&(o=st(this.spec,e,0,t).next()),o.done?null:o.value}prevMatchInRange(e,t,n){for(let o=1;;o++){let r=Math.max(t,n-1e4*o),i=st(this.spec,e,r,n),s=null;for(;!i.next().done;)s=i.value;if(s&&(r==t||s.from>r+10))return s;if(r==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,((t,n)=>{if("&"==n)return e.match[0];if("$"==n)return"$";for(let t=n.length;t>0;t--){let o=+n.slice(0,t);if(o>0&&o<e.match.length)return e.match[o]+n.slice(t)}return t}))}matchAll(e,t){let n=st(this.spec,e,0,e.doc.length),o=[];for(;!n.next().done;){if(o.length>=t)return null;o.push(n.value)}return o}highlight(e,t,n,o){let r=st(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!r.next().done;)o(r.value.from,r.value.to)}}const ht=r.StateEffect.define(),ft=r.StateEffect.define(),ut=r.StateField.define({create:e=>new dt(Ct(e).create(),null),update(e,t){for(let n of t.effects)n.is(ht)?e=new dt(n.value.create(),e.panel):n.is(ft)&&(e=new dt(e.query,n.value?bt:null));return e},provide:e=>o.showPanel.from(e,(e=>e.panel))});class dt{constructor(e,t){this.query=e,this.panel=t}}const mt=o.Decoration.mark({class:"cm-searchMatch"}),pt=o.Decoration.mark({class:"cm-searchMatch cm-searchMatch-selected"}),gt=o.ViewPlugin.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(ut))}update(e){let t=e.state.field(ut);(t!=e.startState.field(ut)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return o.Decoration.none;let{view:n}=this,i=new r.RangeSetBuilder;for(let t=0,o=n.visibleRanges,r=o.length;t<r;t++){let{from:s,to:l}=o[t];for(;t<r-1&&l>o[t+1].from-500;)l=o[++t].to;e.highlight(n.state,s,l,((e,t)=>{let o=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));i.add(e,t,o?pt:mt)}))}return i.finish()}},{decorations:e=>e.decorations});function vt(e){return t=>{let n=t.state.field(ut,!1);return n&&n.query.spec.valid?e(t,n):Et(t)}}const yt=vt(((e,{query:t})=>{let{to:n}=e.state.selection.main,o=t.nextMatch(e.state,n,n);if(!o)return!1;let i=r.EditorSelection.single(o.from,o.to),s=e.state.facet(tt);return e.dispatch({selection:i,effects:[Pt(e,o),s.scrollToMatch(i.main,e)],userEvent:"select.search"}),Mt(e),!0})),wt=vt(((e,{query:t})=>{let{state:n}=e,{from:o}=n.selection.main,i=t.prevMatch(n,o,o);if(!i)return!1;let s=r.EditorSelection.single(i.from,i.to),l=e.state.facet(tt);return e.dispatch({selection:s,effects:[Pt(e,i),l.scrollToMatch(s.main,e)],userEvent:"select.search"}),Mt(e),!0})),xt=vt(((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length||(e.dispatch({selection:r.EditorSelection.create(n.map((e=>r.EditorSelection.range(e.from,e.to)))),userEvent:"select.search.matches"}),0))})),kt=vt(((e,{query:t})=>{let{state:n}=e,{from:i,to:s}=n.selection.main;if(n.readOnly)return!1;let l=t.nextMatch(n,i,i);if(!l)return!1;let a,c,h=l,f=[],u=[];h.from==i&&h.to==s&&(c=n.toText(t.getReplacement(h)),f.push({from:h.from,to:h.to,insert:c}),h=t.nextMatch(n,h.from,h.to),u.push(o.EditorView.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+".")));let d=e.state.changes(f);return h&&(a=r.EditorSelection.single(h.from,h.to).map(d),u.push(Pt(e,h)),u.push(n.facet(tt).scrollToMatch(a.main,e))),e.dispatch({changes:d,selection:a,effects:u,userEvent:"input.replace"}),!0})),St=vt(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map((e=>{let{from:n,to:o}=e;return{from:n,to:o,insert:t.getReplacement(e)}}));if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:o.EditorView.announce.of(r),userEvent:"input.replace.all"}),!0}));function bt(e){return e.state.facet(tt).createPanel(e)}function Ct(e,t){var n,o,r,i,s;let l=e.selection.main,a=l.empty||l.to>l.from+100?"":e.sliceDoc(l.from,l.to);if(t&&!a)return t;let c=e.facet(tt);return new nt({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:c.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(o=null==t?void 0:t.caseSensitive)&&void 0!==o?o:c.caseSensitive,literal:null!==(r=null==t?void 0:t.literal)&&void 0!==r?r:c.literal,regexp:null!==(i=null==t?void 0:t.regexp)&&void 0!==i?i:c.regexp,wholeWord:null!==(s=null==t?void 0:t.wholeWord)&&void 0!==s?s:c.wholeWord})}function At(e){let t=(0,o.getPanel)(e,bt);return t&&t.dom.querySelector("[main-field]")}function Mt(e){let t=At(e);t&&t==e.root.activeElement&&t.select()}const Et=e=>{let t=e.state.field(ut,!1);if(t&&t.panel){let n=At(e);if(n&&n!=e.root.activeElement){let o=Ct(e.state,t.query.spec);o.valid&&e.dispatch({effects:ht.of(o)}),n.focus(),n.select()}}else e.dispatch({effects:[ft.of(!0),t?ht.of(Ct(e.state,t.query.spec)):r.StateEffect.appendConfig.of(qt)]});return!0},Dt=e=>{let t=e.state.field(ut,!1);if(!t||!t.panel)return!1;let n=(0,o.getPanel)(e,bt);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:ft.of(!1)}),!0},Bt=[{key:"Mod-f",run:Et,scope:"editor search-panel"},{key:"F3",run:yt,shift:wt,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:yt,shift:wt,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Dt,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:o,to:i}=n.main,s=[],l=0;for(let t=new Te(e.doc,e.sliceDoc(o,i));!t.next().done;){if(s.length>1e3)return!1;t.value.from==o&&(l=s.length),s.push(r.EditorSelection.range(t.value.from,t.value.to))}return t(e.update({selection:r.EditorSelection.create(s,l),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let t=(0,o.getPanel)(e,He);if(!t){let n=[Ue.of(!0)];null==e.state.field(Je,!1)&&n.push(r.StateEffect.appendConfig.of([Je,Ge])),e.dispatch({effects:n}),t=(0,o.getPanel)(e,He)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:n}=e,o=r.EditorSelection.create(n.ranges.map((t=>e.wordAt(t.head)||r.EditorSelection.cursor(t.head))),n.mainIndex);return!o.eq(n)&&(t(e.update({selection:o})),!0)})({state:e,dispatch:t});let i=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=i)))return!1;let s=function(e,t){let{main:n,ranges:o}=e.selection,r=e.wordAt(n.head),i=r&&r.from==n.from&&r.to==n.to;for(let n=!1,r=new Te(e.doc,t,o[o.length-1].to);;){if(r.next(),!r.done){if(n&&o.some((e=>e.from==r.value.from)))continue;if(i){let t=e.wordAt(r.value.from);if(!t||t.from!=r.value.from||t.to!=r.value.to)continue}return r.value}if(n)return null;r=new Te(e.doc,t,0,Math.max(0,o[o.length-1].from-1)),n=!0}}(e,i);return!!s&&(t(e.update({selection:e.selection.addRange(r.EditorSelection.range(s.from,s.to),!1),effects:o.EditorView.scrollIntoView(s.to)})),!0)},preventDefault:!0}];class Lt{constructor(e){this.view=e;let t=this.query=e.state.field(ut).query.spec;function n(e,t,n){return Ie("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=Ie("input",{value:t.search,placeholder:Rt(e,"Find"),"aria-label":Rt(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ie("input",{value:t.replace,placeholder:Rt(e,"Replace"),"aria-label":Rt(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ie("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Ie("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Ie("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=Ie("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>yt(e)),[Rt(e,"next")]),n("prev",(()=>wt(e)),[Rt(e,"previous")]),n("select",(()=>xt(e)),[Rt(e,"all")]),Ie("label",null,[this.caseField,Rt(e,"match case")]),Ie("label",null,[this.reField,Rt(e,"regexp")]),Ie("label",null,[this.wordField,Rt(e,"by word")]),...e.state.readOnly?[]:[Ie("br"),this.replaceField,n("replace",(()=>kt(e)),[Rt(e,"replace")]),n("replaceAll",(()=>St(e)),[Rt(e,"replace all")])],Ie("button",{name:"close",onclick:()=>Dt(e),"aria-label":Rt(e,"close"),type:"button"},["×"])])}commit(){let e=new nt({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:ht.of(e)}))}keydown(e){(0,o.runScopeHandlers)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?wt:yt)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),kt(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(ht)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(tt).top}}function Rt(e,t){return e.state.phrase(t)}const It=30,Ot=/[\s\.,:;?!]/;function Pt(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,s=Math.max(r.from,t-It),l=Math.min(i,n+It),a=e.state.sliceDoc(s,l);if(s!=r.from)for(let e=0;e<It;e++)if(!Ot.test(a[e+1])&&Ot.test(a[e])){a=a.slice(e);break}if(l!=i)for(let e=a.length-1;e>a.length-It;e--)if(!Ot.test(a[e-1])&&Ot.test(a[e])){a=a.slice(0,e);break}return o.EditorView.announce.of(`${e.state.phrase("current match")}. ${a} ${e.state.phrase("on line")} ${r.number}.`)}const Tt=o.EditorView.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),qt=[ut,r.Prec.low(gt),Tt];var Vt=n(747);class Ft{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class Wt{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let i=e,s=n.facet(Qt).markerFilter;s&&(i=s(i,n));let l=e.slice().sort(((e,t)=>e.from-t.from||e.to-t.to)),a=new r.RangeSetBuilder,c=[],h=0;for(let e=0;;){let t,r,i=e==l.length?null:l[e];if(!i&&!c.length)break;for(c.length?(t=h,r=c.reduce(((e,t)=>Math.min(e,t.to)),i&&i.from>t?i.from:1e8)):(t=i.from,r=i.to,c.push(i),e++);e<l.length;){let n=l[e];if(n.from!=t||!(n.to>n.from||n.to==t)){r=Math.min(n.from,r);break}c.push(n),e++,r=Math.min(n.to,r)}let s=sn(c);if(c.some((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from)))a.add(t,t,o.Decoration.widget({widget:new Xt(s),diagnostics:c.slice()}));else{let e=c.reduce(((e,t)=>t.markClass?e+" "+t.markClass:e),"");a.add(t,r,o.Decoration.mark({class:"cm-lintRange cm-lintRange-"+s+e,diagnostics:c.slice(),inclusiveEnd:c.some((e=>e.to>r))}))}h=r;for(let e=0;e<c.length;e++)c[e].to<=h&&c.splice(e--,1)}let f=a.finish();return new Wt(f,t,Nt(f))}}function Nt(e,t=null,n=0){let o=null;return e.between(n,1e9,((e,n,{spec:r})=>{if(!(t&&r.diagnostics.indexOf(t)<0))if(o){if(r.diagnostics.indexOf(o.diagnostic)<0)return!1;o=new Ft(o.from,n,o.diagnostic)}else o=new Ft(e,n,t||r.diagnostics[0])})),o}const zt=r.StateEffect.define(),$t=r.StateEffect.define(),Ht=r.StateEffect.define(),Ut=r.StateField.define({create:()=>new Wt(o.Decoration.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),o=null,r=e.panel;if(e.selected){let r=t.changes.mapPos(e.selected.from,1);o=Nt(n,e.selected.diagnostic,r)||Nt(n,null,r)}!n.size&&r&&t.state.facet(Qt).autoPanel&&(r=null),e=new Wt(n,r,o)}for(let n of t.effects)if(n.is(zt)){let o=t.state.facet(Qt).autoPanel?n.value.length?tn.open:null:e.panel;e=Wt.init(n.value,o,t.state)}else n.is($t)?e=new Wt(e.diagnostics,n.value?tn.open:null,e.selected):n.is(Ht)&&(e=new Wt(e.diagnostics,e.panel,n.value));return e},provide:e=>[o.showPanel.from(e,(e=>e.panel)),o.EditorView.decorations.from(e,(e=>e.diagnostics))]}),Jt=o.Decoration.mark({class:"cm-lintRange cm-lintRange-active"});function Gt(e,t,n){let o,{diagnostics:r}=e.state.field(Ut),i=-1,s=-1;r.between(t-(n<0?1:0),t+(n>0?1:0),((e,r,{spec:l})=>{if(t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0)))return o=l.diagnostics,i=e,s=r,!1}));let l=e.state.facet(Qt).tooltipFilter;return o&&l&&(o=l(o,e.state)),o?{pos:i,end:s,above:e.state.doc.lineAt(i).to<s,create:()=>({dom:jt(e,o)})}:null}function jt(e,t){return Ie("ul",{class:"cm-tooltip-lint"},t.map((t=>Zt(e,t,!1))))}const _t=e=>{let t=e.state.field(Ut,!1);return!(!t||!t.panel||(e.dispatch({effects:$t.of(!1)}),0))},Kt=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(Ut,!1);var n,i;t&&t.panel||e.dispatch({effects:(n=e.state,i=[$t.of(!0)],n.field(Ut,!1)?i:i.concat(r.StateEffect.appendConfig.of(ln)))});let s=(0,o.getPanel)(e,tn.open);return s&&s.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(Ut,!1);if(!t)return!1;let n=e.state.selection.main,o=t.diagnostics.iter(n.to+1);return!(!o.value&&(o=t.diagnostics.iter(0),!o.value||o.from==n.from&&o.to==n.to)||(e.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0}),0))}}],Qt=r.Facet.define({combine:e=>Object.assign({sources:e.map((e=>e.source)).filter((e=>null!=e))},(0,r.combineConfig)(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function Yt(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;e<n.length;e++){let o=n[e];if(/[a-zA-Z]/.test(o)&&!t.some((e=>e.toLowerCase()==o.toLowerCase()))){t.push(o);continue e}}t.push("")}return t}function Zt(e,t,n){var o;let r=n?Yt(t.actions):[];return Ie("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Ie("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null===(o=t.actions)||void 0===o?void 0:o.map(((n,o)=>{let i=!1,s=o=>{if(o.preventDefault(),i)return;i=!0;let r=Nt(e.state.field(Ut).diagnostics,t);r&&n.apply(e,r.from,r.to)},{name:l}=n,a=r[o]?l.indexOf(r[o]):-1,c=a<0?l:[l.slice(0,a),Ie("u",l.slice(a,a+1)),l.slice(a+1)];return Ie("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":` Action: ${l}${a<0?"":` (access key "${r[o]})"`}.`},c)})),t.source&&Ie("div",{class:"cm-diagnosticSource"},t.source))}class Xt extends o.WidgetType{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return Ie("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class en{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Zt(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class tn{constructor(e){this.view=e,this.items=[],this.list=Ie("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)_t(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],o=Yt(n.actions);for(let r=0;r<o.length;r++)if(o[r].toUpperCase().charCodeAt(0)==t.keyCode){let t=Nt(this.view.state.field(Ut).diagnostics,n);t&&n.actions[r].apply(e,t.from,t.to)}}}t.preventDefault()},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=Ie("div",{class:"cm-panel-lint"},this.list,Ie("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>_t(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Ut).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Ut),n=0,o=!1,r=null,i=new Set;for(e.between(0,this.view.state.doc.length,((e,s,{spec:l})=>{for(let e of l.diagnostics){if(i.has(e))continue;i.add(e);let s,l=-1;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==e){l=t;break}l<0?(s=new en(this.view,e),this.items.splice(n,0,s),o=!0):(s=this.items[l],l>n&&(this.items.splice(n,l-n),o=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute("aria-selected")||(s.dom.setAttribute("aria-selected","true"),r=s):s.dom.hasAttribute("aria-selected")&&s.dom.removeAttribute("aria-selected"),n++}}));n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)o=!0,this.items.pop();0==this.items.length&&(this.items.push(new en(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),o=!0),r?(this.list.setAttribute("aria-activedescendant",r.id),this.view.requestMeasure({key:this,read:()=>({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=Nt(this.view.state.field(Ut).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Ht.of(t)})}static open(e){return new tn(e)}}function nn(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const on=o.EditorView.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:nn("#d11")},".cm-lintRange-warning":{backgroundImage:nn("orange")},".cm-lintRange-info":{backgroundImage:nn("#999")},".cm-lintRange-hint":{backgroundImage:nn("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function rn(e){return"error"==e?4:"warning"==e?3:"info"==e?2:1}function sn(e){let t="hint",n=1;for(let o of e){let e=rn(o.severity);e>n&&(n=e,t=o.severity)}return t}o.GutterMarker;const ln=[Ut,o.EditorView.decorations.compute([Ut],(e=>{let{selected:t,panel:n}=e.field(Ut);return t&&n&&t.from!=t.to?o.Decoration.set([Jt.range(t.from,t.to)]):o.Decoration.none})),(0,o.hoverTooltip)(Gt,{hideOn:function(e,t){let n=t.pos,o=t.end||n,r=e.state.facet(Qt).hideOn(e,n,o);if(null!=r)return r;let i=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(zt)))&&!e.changes.touchesRange(i.from,Math.max(i.to,o)))}}),on],an=(()=>[(0,o.lineNumbers)(),(0,o.highlightActiveLineGutter)(),(0,o.highlightSpecialChars)(),x(),(0,i.foldGutter)(),(0,o.drawSelection)(),(0,o.dropCursor)(),r.EditorState.allowMultipleSelections.of(!0),(0,i.indentOnInput)(),(0,i.syntaxHighlighting)(i.defaultHighlightStyle,{fallback:!0}),(0,i.bracketMatching)(),(0,Vt.wm)(),(0,Vt.yU)(),(0,o.rectangularSelection)(),(0,o.crosshairCursor)(),(0,o.highlightActiveLine)(),Ke(),o.keymap.of([...Vt.Bc,...Re,...Bt,...V,...i.foldKeymap,...Vt.OO,...Kt])])(),cn=(()=>[(0,o.highlightSpecialChars)(),x(),(0,o.drawSelection)(),(0,i.syntaxHighlighting)(i.defaultHighlightStyle,{fallback:!0}),o.keymap.of([...Re,...V])])()}}]);
@@ -0,0 +1 @@
1
+ var _JUPYTERLAB;(()=>{"use strict";var e,r,t,o,a,n,i,l,u,f,d,s,c,p,h,m,v,b,g,y,j,w,P,S={414:(e,r,t)=>{var o={"./index":()=>Promise.all([t.e(70),t.e(514),t.e(499)]).then((()=>()=>t(499))),"./extension":()=>Promise.all([t.e(70),t.e(514),t.e(499)]).then((()=>()=>t(499))),"./style":()=>t.e(728).then((()=>()=>t(728)))},a=(e,r)=>(t.R=r,r=t.o(o,e)?o[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),n=(e,r)=>{if(t.S){var o="default",a=t.S[o];if(a&&a!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[o]=e,t.I(o,r)}};t.d(r,{get:()=>a,init:()=>n})}},k={};function E(e){var r=k[e];if(void 0!==r)return r.exports;var t=k[e]={id:e,exports:{}};return S[e](t,t.exports,E),t.exports}E.m=S,E.c=k,E.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return E.d(r,{a:r}),r},E.d=(e,r)=>{for(var t in r)E.o(r,t)&&!E.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},E.f={},E.e=e=>Promise.all(Object.keys(E.f).reduce(((r,t)=>(E.f[t](e,r),r)),[])),E.u=e=>e+"."+{299:"07069b808cb23f84a242",379:"2e2a6add1111d74422d2",383:"dbd292b18614d410ed4b",499:"e9c141febe62f251e965",680:"07069b808cb23f84a242",728:"559a28b17e14994cba46",747:"e3256716cc1134700a59",879:"749253139a5186f32109"}[e]+".js?v="+{299:"07069b808cb23f84a242",379:"2e2a6add1111d74422d2",383:"dbd292b18614d410ed4b",499:"e9c141febe62f251e965",680:"07069b808cb23f84a242",728:"559a28b17e14994cba46",747:"e3256716cc1134700a59",879:"749253139a5186f32109"}[e],E.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),E.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="jupyterlab-diff:",E.l=(t,o,a,n)=>{if(e[t])e[t].push(o);else{var i,l;if(void 0!==a)for(var u=document.getElementsByTagName("script"),f=0;f<u.length;f++){var d=u[f];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==r+a){i=d;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,E.nc&&i.setAttribute("nonce",E.nc),i.setAttribute("data-webpack",r+a),i.src=t),e[t]=[o];var s=(r,o)=>{i.onerror=i.onload=null,clearTimeout(c);var a=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(o))),r)return r(o)},c=setTimeout(s.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=s.bind(null,i.onerror),i.onload=s.bind(null,i.onload),l&&document.head.appendChild(i)}},E.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{E.S={};var e={},r={};E.I=(t,o)=>{o||(o=[]);var a=r[t];if(a||(a=r[t]={}),!(o.indexOf(a)>=0)){if(o.push(a),e[t])return e[t];E.o(E.S,t)||(E.S[t]={});var n=E.S[t],i="jupyterlab-diff",l=(e,r,t,o)=>{var a=n[e]=n[e]||{},l=a[r];(!l||!l.loaded&&(!o!=!l.eager?o:i>l.from))&&(a[r]={get:t,from:i,eager:!!o})},u=[];return"default"===t&&(l("@codemirror/lang-python","6.2.1",(()=>Promise.all([E.e(747),E.e(383),E.e(84),E.e(70),E.e(839),E.e(708)]).then((()=>()=>E(383))))),l("@codemirror/merge","6.11.0",(()=>Promise.all([E.e(379),E.e(84),E.e(70),E.e(839)]).then((()=>()=>E(379))))),l("codemirror","6.0.2",(()=>Promise.all([E.e(747),E.e(879),E.e(84),E.e(70),E.e(708)]).then((()=>()=>E(879))))),l("jupyterlab-cell-input-footer","0.3.0",(()=>Promise.all([E.e(514),E.e(242),E.e(680)]).then((()=>()=>E(680))))),l("jupyterlab-diff","0.6.1",(()=>Promise.all([E.e(70),E.e(514),E.e(499)]).then((()=>()=>E(499)))))),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),(()=>{var e;E.g.importScripts&&(e=E.g.location+"");var r=E.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var o=t.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=t[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),E.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),o=t[1]?r(t[1]):[];return t[2]&&(o.length++,o.push.apply(o,r(t[2]))),t[3]&&(o.push([]),o.push.apply(o,r(t[3]))),o},o=(e,r)=>{e=t(e),r=t(r);for(var o=0;;){if(o>=e.length)return o<r.length&&"u"!=(typeof r[o])[0];var a=e[o],n=(typeof a)[0];if(o>=r.length)return"u"==n;var i=r[o],l=(typeof i)[0];if(n!=l)return"o"==n&&"n"==l||"s"==l||"u"==n;if("o"!=n&&"u"!=n&&a!=i)return a<i;o++}},a=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var o=1,n=1;n<e.length;n++)o--,t+="u"==(typeof(l=e[n]))[0]?"-":(o>0?".":"")+(o=2,l);return t}var i=[];for(n=1;n<e.length;n++){var l=e[n];i.push(0===l?"not("+u()+")":1===l?"("+u()+" || "+u()+")":2===l?i.pop()+" "+i.pop():a(l))}return u();function u(){return i.pop().replace(/^\((.+)\)$/,"$1")}},n=(e,r)=>{if(0 in e){r=t(r);var o=e[0],a=o<0;a&&(o=-o-1);for(var i=0,l=1,u=!0;;l++,i++){var f,d,s=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(d=(typeof(f=r[i]))[0]))return!u||("u"==s?l>o&&!a:""==s!=a);if("u"==d){if(!u||"u"!=s)return!1}else if(u)if(s==d)if(l<=o){if(f!=e[l])return!1}else{if(a?f>e[l]:f<e[l])return!1;f!=e[l]&&(u=!1)}else if("s"!=s&&"n"!=s){if(a||l<=o)return!1;u=!1,l--}else{if(l<=o||d<s!=a)return!1;u=!1}else"s"!=s&&"n"!=s&&(u=!1,l--)}}var c=[],p=c.pop.bind(c);for(i=1;i<e.length;i++){var h=e[i];c.push(1==h?p()|p():2==h?p()&p():h?n(h,r):!p())}return!!p()},i=(e,r)=>e&&E.o(e,r),l=e=>(e.loaded=1,e.get()),u=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),f=(e,r,t,a)=>{var i=a?u(e[r]):e[r];return(r=Object.keys(i).reduce(((e,r)=>!n(t,r)||e&&!o(e,r)?e:r),0))&&i[r]},d=(e,r,t)=>{var a=t?u(e[r]):e[r];return Object.keys(a).reduce(((e,r)=>!e||!a[e].loaded&&o(e,r)?r:e),0)},s=(e,r,t,o)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(o)+")",c=(e,r,t,o,n)=>{var i=e[t];return"No satisfying version ("+a(o)+")"+(n?" for eager consumption":"")+" of shared module "+t+" found in shared scope "+r+".\nAvailable versions: "+Object.keys(i).map((e=>e+" from "+i[e].from)).join(", ")},p=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},v=(e,r,t)=>t?t():((e,r)=>p("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),b=(m=e=>function(r,t,o,a,n){var i=E.I(r);return i&&i.then&&!o?i.then(e.bind(e,r,E.S[r],t,!1,a,n)):e(r,E.S[r],t,o,a,n)})(((e,r,t,o,a,n)=>{if(!i(r,t))return v(e,t,n);var u=f(r,t,a,o);return u?l(u):n?n():void p(c(r,e,t,a,o))})),g=m(((e,r,t,o,a,u)=>{if(!i(r,t))return v(e,t,u);var f=d(r,t,o);return n(a,f)||h(s(r,t,f,a)),l(r[t][f])})),y={},j={24:()=>g("default","@codemirror/view",!1,[1,6,9,6]),195:()=>g("default","@codemirror/state",!1,[1,6,2,0]),256:()=>g("default","@lumino/widgets",!1,[1,2,3,1,,"alpha",0]),694:()=>g("default","@jupyterlab/ui-components",!1,[1,4,4,10]),762:()=>g("default","@jupyterlab/notebook",!1,[1,4,4,10]),198:()=>b("default","@codemirror/merge",!1,[1,6,11,0],(()=>Promise.all([E.e(379),E.e(84),E.e(839)]).then((()=>()=>E(379))))),325:()=>b("default","@codemirror/lang-python",!1,[1,6,2,1],(()=>Promise.all([E.e(747),E.e(383),E.e(84),E.e(839),E.e(708)]).then((()=>()=>E(383))))),332:()=>b("default","codemirror",!1,[1,6,0,2],(()=>Promise.all([E.e(747),E.e(879),E.e(84),E.e(708)]).then((()=>()=>E(879))))),337:()=>g("default","@jupyterlab/codemirror",!1,[1,4,4,10]),356:()=>b("default","jupyterlab-cell-input-footer",!1,[2,0,3,0],(()=>Promise.all([E.e(242),E.e(299)]).then((()=>()=>E(680))))),424:()=>g("default","@jupyterlab/translation",!1,[1,4,4,10]),544:()=>g("default","@jupyterlab/fileeditor",!1,[1,4,4,10]),84:()=>g("default","@codemirror/language",!1,[1,6,0,0]),839:()=>g("default","@lezer/highlight",!1,[1,1,0,0]),708:()=>g("default","@lezer/common",!1,[1,1,0,0]),53:()=>g("default","@lumino/algorithm",!1,[1,2,0,0]),262:()=>g("default","@lumino/coreutils",!1,[1,2,0,0])},w={70:[24,195],84:[84],242:[53,262],499:[198,325,332,337,356,424,544],514:[256,694,762],708:[708],839:[839]},P={},E.f.consumes=(e,r)=>{E.o(w,e)&&w[e].forEach((e=>{if(E.o(y,e))return r.push(y[e]);if(!P[e]){var t=r=>{y[e]=0,E.m[e]=t=>{delete E.c[e],t.exports=r()}};P[e]=!0;var o=r=>{delete y[e],E.m[e]=t=>{throw delete E.c[e],r}};try{var a=j[e]();a.then?r.push(y[e]=a.then(t).catch(o)):t(a)}catch(e){o(e)}}}))},(()=>{var e={61:0};E.f.j=(r,t)=>{var o=E.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else if(/^(70(|8)|242|514|839|84)$/.test(r))e[r]=0;else{var a=new Promise(((t,a)=>o=e[r]=[t,a]));t.push(o[2]=a);var n=E.p+E.u(r),i=new Error;E.l(n,(t=>{if(E.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var a=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+a+": "+n+")",i.name="ChunkLoadError",i.type=a,i.request=n,o[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var o,a,[n,i,l]=t,u=0;if(n.some((r=>0!==e[r]))){for(o in i)E.o(i,o)&&(E.m[o]=i[o]);l&&l(E)}for(r&&r(t);u<n.length;u++)a=n[u],E.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunkjupyterlab_diff=self.webpackChunkjupyterlab_diff||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),E.nc=void 0;var T=E(414);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["jupyterlab-diff"]=T})();
@@ -0,0 +1,4 @@
1
+ /* This is a generated file of CSS imports */
2
+ /* It was generated by @jupyterlab/builder in Build.ensureAssets() */
3
+
4
+ import 'jupyterlab-diff/style/index.js';
@@ -0,0 +1,94 @@
1
+ {
2
+ "packages": [
3
+ {
4
+ "name": "@codemirror/autocomplete",
5
+ "versionInfo": "6.18.7",
6
+ "licenseId": "MIT",
7
+ "extractedText": "MIT License\n\nCopyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
8
+ },
9
+ {
10
+ "name": "@codemirror/commands",
11
+ "versionInfo": "6.8.1",
12
+ "licenseId": "MIT",
13
+ "extractedText": "MIT License\n\nCopyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
14
+ },
15
+ {
16
+ "name": "@codemirror/lang-python",
17
+ "versionInfo": "6.2.1",
18
+ "licenseId": "MIT",
19
+ "extractedText": "MIT License\n\nCopyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
20
+ },
21
+ {
22
+ "name": "@codemirror/lint",
23
+ "versionInfo": "6.8.4",
24
+ "licenseId": "MIT",
25
+ "extractedText": "MIT License\n\nCopyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
26
+ },
27
+ {
28
+ "name": "@codemirror/merge",
29
+ "versionInfo": "6.11.0",
30
+ "licenseId": "MIT",
31
+ "extractedText": "MIT License\n\nCopyright (C) 2018-2022 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
32
+ },
33
+ {
34
+ "name": "@codemirror/search",
35
+ "versionInfo": "6.5.11",
36
+ "licenseId": "MIT",
37
+ "extractedText": "MIT License\n\nCopyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
38
+ },
39
+ {
40
+ "name": "@lezer/lr",
41
+ "versionInfo": "1.4.2",
42
+ "licenseId": "MIT",
43
+ "extractedText": "MIT License\n\nCopyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
44
+ },
45
+ {
46
+ "name": "@lezer/python",
47
+ "versionInfo": "1.1.15",
48
+ "licenseId": "MIT",
49
+ "extractedText": "MIT License\n\nCopyright (C) 2020 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
50
+ },
51
+ {
52
+ "name": "codemirror",
53
+ "versionInfo": "6.0.2",
54
+ "licenseId": "MIT",
55
+ "extractedText": "MIT License\n\nCopyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
56
+ },
57
+ {
58
+ "name": "crelt",
59
+ "versionInfo": "1.0.6",
60
+ "licenseId": "MIT",
61
+ "extractedText": "Copyright (C) 2020 by Marijn Haverbeke <marijn@haverbeke.berlin>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
62
+ },
63
+ {
64
+ "name": "css-loader",
65
+ "versionInfo": "6.11.0",
66
+ "licenseId": "MIT",
67
+ "extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
68
+ },
69
+ {
70
+ "name": "jupyterlab-cell-input-footer",
71
+ "versionInfo": "0.3.0",
72
+ "licenseId": "BSD-3-Clause",
73
+ "extractedText": ""
74
+ },
75
+ {
76
+ "name": "process",
77
+ "versionInfo": "0.11.10",
78
+ "licenseId": "MIT",
79
+ "extractedText": "(The MIT License)\n\nCopyright (c) 2013 Roman Shtylman <shtylman@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
80
+ },
81
+ {
82
+ "name": "style-loader",
83
+ "versionInfo": "3.3.4",
84
+ "licenseId": "MIT",
85
+ "extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
86
+ },
87
+ {
88
+ "name": "style-mod",
89
+ "versionInfo": "4.1.2",
90
+ "licenseId": "MIT",
91
+ "extractedText": "Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
92
+ }
93
+ ]
94
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "packageManager": "python",
3
+ "packageName": "jupyterlab_eventlistener",
4
+ "uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyterlab_eventlistener"
5
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "name": "jupyterlab-eventlistener-extension",
3
+ "version": "0.4.0",
4
+ "description": "JupyterLab Plugin providing a global event listener.",
5
+ "keywords": [
6
+ "jupyter",
7
+ "jupyterlab",
8
+ "jupyterlab-extension"
9
+ ],
10
+ "homepage": "https://github.com/Zsailer/jupyterlab-eventlistener",
11
+ "bugs": {
12
+ "url": "https://github.com/Zsailer/jupyterlab-eventlistener/issues"
13
+ },
14
+ "license": "BSD-3-Clause",
15
+ "author": {
16
+ "name": "Zach Sailer",
17
+ "email": "zachsailer@gmail.com"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/Zsailer/jupyterlab-eventlistener.git"
22
+ },
23
+ "sideEffects": [
24
+ "style/*.css",
25
+ "style/index.js"
26
+ ],
27
+ "main": "lib/index.js",
28
+ "types": "lib/index.d.ts",
29
+ "style": "style/index.css",
30
+ "styleModule": "style/index.js",
31
+ "directories": {
32
+ "lib": "lib/"
33
+ },
34
+ "files": [
35
+ "lib/*.d.ts",
36
+ "lib/*.js.map",
37
+ "lib/*.js",
38
+ "schema/*.json",
39
+ "style/*.css",
40
+ "style/index.js"
41
+ ],
42
+ "scripts": {
43
+ "build": "jlpm run build:lib && jlpm run build:labextension:dev",
44
+ "build:lib": "tsc --sourceMap",
45
+ "build:lib:prod": "tsc",
46
+ "build:prod": "jlpm run clean && jlpm run build:lib:prod && jlpm run build:labextension",
47
+ "build:labextension": "jupyter labextension build .",
48
+ "build:labextension:dev": "jupyter labextension build --development True .",
49
+ "clean": "jlpm run clean:lib",
50
+ "clean:lib": "rimraf lib tsconfig.tsbuildinfo node_modules",
51
+ "clean:labextension": "rimraf ../../jupyterlab_eventlistener/labextension",
52
+ "clean:all": "jlpm run clean:lib && jlpm run clean:labextension",
53
+ "install:extension": "jlpm run build",
54
+ "watch": "run-p watch:src watch:labextension",
55
+ "watch:src": "tsc -w",
56
+ "watch:labextension": "jupyter labextension watch ."
57
+ },
58
+ "dependencies": {
59
+ "@jupyterlab/application": "^4.0.0",
60
+ "@jupyterlab/services": "^7.0.0",
61
+ "jupyterlab-eventlistener": "^0.4.0"
62
+ },
63
+ "devDependencies": {
64
+ "@jupyterlab/builder": "^4.0.5",
65
+ "@types/react": "~18.3.1",
66
+ "npm-run-all": "^4.1.5",
67
+ "rimraf": "^4.1.2",
68
+ "typescript": "~5.0.4"
69
+ },
70
+ "publishConfig": {
71
+ "access": "public"
72
+ },
73
+ "typedoc": {
74
+ "entryPoint": "./src/index.ts",
75
+ "readmeFile": "./README.md",
76
+ "displayName": "jupyterlab-eventlistener-extension",
77
+ "tsconfig": "./tsconfig.json"
78
+ },
79
+ "jupyterlab": {
80
+ "extension": true,
81
+ "schemaDir": "./schema",
82
+ "outputDir": "../../jupyterlab_eventlistener/labextension",
83
+ "sharedPackages": {},
84
+ "_build": {
85
+ "load": "static/remoteEntry.5577376b289c1f9e2dc2.js",
86
+ "extension": "./extension",
87
+ "style": "./style"
88
+ }
89
+ }
90
+ }
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkjupyterlab_eventlistener_extension=self.webpackChunkjupyterlab_eventlistener_extension||[]).push([[432],{296:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(758),o=n.n(r),a=n(935),s=n.n(a)()(o());s.push([e.id,"/*\n See the JupyterLab Developer Guide for useful CSS Patterns:\n\n https://jupyterlab.readthedocs.io/en/stable/developer/css.html\n*/\n",""]);const i=s},935:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(s[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&s[l[0]]||(void 0!==a&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},758:e=>{e.exports=function(e){return e[1]}},591:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},s=[],i=0;i<e.length;i++){var c=e[i],u=r.base?c[0]+r.base:c[0],l=a[u]||0,p="".concat(u," ").concat(l);a[u]=l+1;var f=n(p),d={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==f)t[f].references++,t[f].updater(d);else{var v=o(d,r);r.byIndex=i,t.splice(i,0,{identifier:p,updater:v,references:1})}s.push(p)}return s}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<a.length;s++){var i=n(a[s]);t[i].references--}for(var c=r(e,o),u=0;u<a.length;u++){var l=n(a[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}a=c}}},128:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},51:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},432:(e,t,n)=>{var r=n(591),o=n.n(r),a=n(740),s=n.n(a),i=n(128),c=n.n(i),u=n(855),l=n.n(u),p=n(51),f=n.n(p),d=n(656),v=n.n(d),h=n(296),m={};m.styleTagTransform=v(),m.setAttributes=l(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=f(),o()(h.A,m),h.A&&h.A.locals&&h.A.locals}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkjupyterlab_eventlistener_extension=self.webpackChunkjupyterlab_eventlistener_extension||[]).push([[509],{509:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(411);const s="jupyterlab-eventlistener-extension",r=[{id:s,description:"An API for listening to events coming off of JupyterLab's event manager.",autoStart:!0,provides:a.IEventListener,activate:async e=>(console.log(`${s} has been activated!`),await e.serviceManager.ready,new a.EventListener(e.serviceManager.events))}]}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkjupyterlab_eventlistener_extension=self.webpackChunkjupyterlab_eventlistener_extension||[]).push([[666],{666:(e,s,t)=>{t.r(s),t.d(s,{EventListener:()=>i,IEventListener:()=>n});const n=new(t(262).Token)("eventListener");class i{constructor(e){this._listeners={},this._eventManager=e,this._eventManager.stream.connect((async(e,s)=>{if(!(s.schema_id in this._listeners))return;const t=this._listeners[s.schema_id];for(const n of t)await n(e,s.schema_id,s)}))}addListener(e,s){e in this._listeners?this._listeners[e].add(s):this._listeners[e]=new Set([s])}removeListener(e,s){e in this._listeners&&this._listeners[e].delete(s)}}}}]);
@@ -0,0 +1 @@
1
+ var _JUPYTERLAB;(()=>{"use strict";var e,r,t,n,o,i,a,l,s,u,f,d,p,c,v,h,b,m,g,y,w,j,S,P={145:(e,r,t)=>{var n={"./index":()=>Promise.all([t.e(411),t.e(509)]).then((()=>()=>t(509))),"./extension":()=>Promise.all([t.e(411),t.e(509)]).then((()=>()=>t(509))),"./style":()=>t.e(432).then((()=>()=>t(432)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),i=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>i})}},x={};function E(e){var r=x[e];if(void 0!==r)return r.exports;var t=x[e]={id:e,exports:{}};return P[e](t,t.exports,E),t.exports}E.m=P,E.c=x,E.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return E.d(r,{a:r}),r},E.d=(e,r)=>{for(var t in r)E.o(r,t)&&!E.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},E.f={},E.e=e=>Promise.all(Object.keys(E.f).reduce(((r,t)=>(E.f[t](e,r),r)),[])),E.u=e=>e+"."+{432:"57100b29bc9fea211a0e",509:"d1cc43983763b6a85f45",666:"84cadfe40c86b502f11d"}[e]+".js?v="+{432:"57100b29bc9fea211a0e",509:"d1cc43983763b6a85f45",666:"84cadfe40c86b502f11d"}[e],E.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),E.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="jupyterlab-eventlistener-extension:",E.l=(t,n,o,i)=>{if(e[t])e[t].push(n);else{var a,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var f=s[u];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+o){a=f;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,E.nc&&a.setAttribute("nonce",E.nc),a.setAttribute("data-webpack",r+o),a.src=t),e[t]=[n];var d=(r,n)=>{a.onerror=a.onload=null,clearTimeout(p);var o=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(n))),r)return r(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}},E.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{E.S={};var e={},r={};E.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];E.o(E.S,t)||(E.S[t]={});var i=E.S[t],a="jupyterlab-eventlistener-extension",l=(e,r,t,n)=>{var o=i[e]=i[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:a>l.from))&&(o[r]={get:t,from:a,eager:!!n})},s=[];return"default"===t&&(l("jupyterlab-eventlistener-extension","0.4.0",(()=>Promise.all([E.e(411),E.e(509)]).then((()=>()=>E(509))))),l("jupyterlab-eventlistener","0.4.0",(()=>Promise.all([E.e(262),E.e(666)]).then((()=>()=>E(666)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;E.g.importScripts&&(e=E.g.location+"");var r=E.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),E.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],i=(typeof o)[0];if(n>=r.length)return"u"==i;var a=r[n],l=(typeof a)[0];if(i!=l)return"o"==i&&"n"==l||"s"==l||"u"==i;if("o"!=i&&"u"!=i&&o!=a)return o<a;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,i=1;i<e.length;i++)n--,t+="u"==(typeof(l=e[i]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var a=[];for(i=1;i<e.length;i++){var l=e[i];a.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?a.pop()+" "+a.pop():o(l))}return s();function s(){return a.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var a=0,l=1,s=!0;;l++,a++){var u,f,d=l<e.length?(typeof e[l])[0]:"";if(a>=r.length||"o"==(f=(typeof(u=r[a]))[0]))return!s||("u"==d?l>n&&!o:""==d!=o);if("u"==f){if(!s||"u"!=d)return!1}else if(s)if(d==f)if(l<=n){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=d&&"n"!=d){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||f<d!=o)return!1;s=!1}else"s"!=d&&"n"!=d&&(s=!1,l--)}}var p=[],c=p.pop.bind(p);for(a=1;a<e.length;a++){var v=e[a];p.push(1==v?c()|c():2==v?c()&c():v?i(v,r):!c())}return!!c()},a=(e,r)=>e&&E.o(e,r),l=e=>(e.loaded=1,e.get()),s=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),u=(e,r,t,o)=>{var a=o?s(e[r]):e[r];return(r=Object.keys(a).reduce(((e,r)=>!i(t,r)||e&&!n(e,r)?e:r),0))&&a[r]},f=(e,r,t)=>{var o=t?s(e[r]):e[r];return Object.keys(o).reduce(((e,r)=>!e||!o[e].loaded&&n(e,r)?r:e),0)},d=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",p=(e,r,t,n,i)=>{var a=e[t];return"No satisfying version ("+o(n)+")"+(i?" for eager consumption":"")+" of shared module "+t+" found in shared scope "+r+".\nAvailable versions: "+Object.keys(a).map((e=>e+" from "+a[e].from)).join(", ")},c=e=>{throw new Error(e)},v=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},b=(e,r,t)=>t?t():((e,r)=>c("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),m=(h=e=>function(r,t,n,o,i){var a=E.I(r);return a&&a.then&&!n?a.then(e.bind(e,r,E.S[r],t,!1,o,i)):e(r,E.S[r],t,n,o,i)})(((e,r,t,n,o,i)=>{if(!a(r,t))return b(e,t,i);var s=u(r,t,o,n);return s?l(s):i?i():void c(p(r,e,t,o,n))})),g=h(((e,r,t,n,o,s)=>{if(!a(r,t))return b(e,t,s);var u=f(r,t,n);return i(o,u)||v(d(r,t,u,o)),l(r[t][u])})),y={},w={411:()=>m("default","jupyterlab-eventlistener",!1,[2,0,4,0],(()=>Promise.all([E.e(262),E.e(666)]).then((()=>()=>E(666))))),262:()=>g("default","@lumino/coreutils",!1,[1,2,0,0])},j={262:[262],411:[411]},S={},E.f.consumes=(e,r)=>{E.o(j,e)&&j[e].forEach((e=>{if(E.o(y,e))return r.push(y[e]);if(!S[e]){var t=r=>{y[e]=0,E.m[e]=t=>{delete E.c[e],t.exports=r()}};S[e]=!0;var n=r=>{delete y[e],E.m[e]=t=>{throw delete E.c[e],r}};try{var o=w[e]();o.then?r.push(y[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))},(()=>{var e={24:0};E.f.j=(r,t)=>{var n=E.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(262|411)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var i=E.p+E.u(r),a=new Error;E.l(i,(t=>{if(E.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;a.message="Loading chunk "+r+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[i,a,l]=t,s=0;if(i.some((r=>0!==e[r]))){for(n in a)E.o(a,n)&&(E.m[n]=a[n]);l&&l(E)}for(r&&r(t);s<i.length;s++)o=i[s],E.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunkjupyterlab_eventlistener_extension=self.webpackChunkjupyterlab_eventlistener_extension||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),E.nc=void 0;var k=E(145);(_JUPYTERLAB=void 0===_JUPYTERLAB?{}:_JUPYTERLAB)["jupyterlab-eventlistener-extension"]=k})();
@@ -0,0 +1,4 @@
1
+ /* This is a generated file of CSS imports */
2
+ /* It was generated by @jupyterlab/builder in Build.ensureAssets() */
3
+
4
+ import 'jupyterlab-eventlistener-extension/style/index.js';
@@ -0,0 +1,22 @@
1
+ {
2
+ "packages": [
3
+ {
4
+ "name": "css-loader",
5
+ "versionInfo": "6.11.0",
6
+ "licenseId": "MIT",
7
+ "extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
8
+ },
9
+ {
10
+ "name": "jupyterlab-eventlistener",
11
+ "versionInfo": "0.4.0",
12
+ "licenseId": "BSD-3-Clause",
13
+ "extractedText": ""
14
+ },
15
+ {
16
+ "name": "style-loader",
17
+ "versionInfo": "3.3.4",
18
+ "licenseId": "MIT",
19
+ "extractedText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
20
+ }
21
+ ]
22
+ }