notebook 7.3.0a0__py3-none-any.whl → 7.3.0b0__py3-none-any.whl

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.

Potentially problematic release.


This version of notebook might be problematic. Click here for more details.

Files changed (233) hide show
  1. notebook/_version.py +1 -1
  2. notebook/app.py +10 -2
  3. notebook/static/113.bundle.js +1 -1
  4. notebook/static/1198.bundle.js +1 -1
  5. notebook/static/131.bundle.js +1 -1
  6. notebook/static/134.bundle.js +1 -1
  7. notebook/static/1408.bundle.js +1 -1
  8. notebook/static/1496.bundle.js +1 -1
  9. notebook/static/1584.bundle.js +1 -1
  10. notebook/static/1647.bundle.js +1 -1
  11. notebook/static/1650.bundle.js +1 -1
  12. notebook/static/1684.bundle.js +1 -1
  13. notebook/static/170.bundle.js +1 -1
  14. notebook/static/1809.bundle.js +1 -1
  15. notebook/static/1827.bundle.js +1 -1
  16. notebook/static/1828.bundle.js +1 -1
  17. notebook/static/1833.bundle.js +1 -1
  18. notebook/static/1958.bundle.js +1 -1
  19. notebook/static/1962.bundle.js +1 -1
  20. notebook/static/2007.bundle.js +1 -1
  21. notebook/static/2065.bundle.js +1 -1
  22. notebook/static/2088.bundle.js +1 -1
  23. notebook/static/2089.bundle.js +1 -1
  24. notebook/static/2122.bundle.js +1 -1
  25. notebook/static/2167.bundle.js +1 -1
  26. notebook/static/2184.bundle.js +1 -1
  27. notebook/static/2311.bundle.js +1 -1
  28. notebook/static/2401.bundle.js +1 -1
  29. notebook/static/2424.bundle.js +377 -0
  30. notebook/static/2479.bundle.js +1 -1
  31. notebook/static/2489.bundle.js +1 -1
  32. notebook/static/2607.bundle.js +1 -1
  33. notebook/static/2615.bundle.js +1 -1
  34. notebook/static/2636.bundle.js +1 -1
  35. notebook/static/2756.bundle.js +1 -1
  36. notebook/static/2813.bundle.js +1 -1
  37. notebook/static/2866.bundle.js +1 -1
  38. notebook/static/2924.bundle.js +1 -1
  39. notebook/static/2944.bundle.js +1 -1
  40. notebook/static/2955.bundle.js +1 -0
  41. notebook/static/3129.bundle.js +1 -1
  42. notebook/static/3146.bundle.js +1 -1
  43. notebook/static/3187.bundle.js +1 -1
  44. notebook/static/3213.bundle.js +1 -1
  45. notebook/static/3301.bundle.js +1 -1
  46. notebook/static/3325.bundle.js +1 -1
  47. notebook/static/3340.bundle.js +1 -1
  48. notebook/static/3360.bundle.js +1 -1
  49. notebook/static/{1261.bundle.js → 3463.bundle.js} +1 -1
  50. notebook/static/3466.bundle.js +1 -1
  51. notebook/static/35.bundle.js +1 -1
  52. notebook/static/3512.bundle.js +1 -1
  53. notebook/static/3676.bundle.js +1 -1
  54. notebook/static/3680.bundle.js +1 -1
  55. notebook/static/374.bundle.js +1 -1
  56. notebook/static/3768.bundle.js +1 -1
  57. notebook/static/377.bundle.js +1 -1
  58. notebook/static/3863.bundle.js +1 -1
  59. notebook/static/3881.bundle.js +1 -1
  60. notebook/static/4042.bundle.js +1 -1
  61. notebook/static/4058.bundle.js +1 -1
  62. notebook/static/409.bundle.js +1 -1
  63. notebook/static/4212.bundle.js +1 -1
  64. notebook/static/4242.bundle.js +79 -0
  65. notebook/static/4271.bundle.js +1 -1
  66. notebook/static/4291.bundle.js +1 -1
  67. notebook/static/4382.bundle.js +1 -1
  68. notebook/static/4526.bundle.js +1 -1
  69. notebook/static/4588.bundle.js +1 -1
  70. notebook/static/4630.bundle.js +1 -1
  71. notebook/static/4645.bundle.js +1 -1
  72. notebook/static/4811.bundle.js +1 -1
  73. notebook/static/4837.bundle.js +1 -1
  74. notebook/static/5099.bundle.js +1 -1
  75. notebook/static/5135.bundle.js +1 -1
  76. notebook/static/5166.bundle.js +1 -1
  77. notebook/static/5234.bundle.js +1 -1
  78. notebook/static/5254.bundle.js +1 -1
  79. notebook/static/5261.bundle.js +1 -1
  80. notebook/static/5263.bundle.js +1 -0
  81. notebook/static/5313.bundle.js +1 -1
  82. notebook/static/5325.bundle.js +1 -1
  83. notebook/static/5346.bundle.js +1 -1
  84. notebook/static/5426.bundle.js +1 -1
  85. notebook/static/5430.bundle.js +653 -0
  86. notebook/static/545.bundle.js +1 -1
  87. notebook/static/5451.bundle.js +1 -1
  88. notebook/static/5573.bundle.js +1 -1
  89. notebook/static/5601.bundle.js +1 -1
  90. notebook/static/5649.bundle.js +3 -3
  91. notebook/static/5733.bundle.js +1 -1
  92. notebook/static/5828.bundle.js +1 -1
  93. notebook/static/5850.bundle.js +1 -1
  94. notebook/static/5912.bundle.js +1 -1
  95. notebook/static/5921.bundle.js +1 -1
  96. notebook/static/6017.bundle.js +1 -1
  97. notebook/static/6061.bundle.js +1 -1
  98. notebook/static/6139.bundle.js +1 -1
  99. notebook/static/62.bundle.js +1 -1
  100. notebook/static/6271.bundle.js +1 -1
  101. notebook/static/6345.bundle.js +1 -1
  102. notebook/static/6604.bundle.js +1 -1
  103. notebook/static/6621.bundle.js +1 -1
  104. notebook/static/6627.bundle.js +1 -1
  105. notebook/static/6648.bundle.js +1 -0
  106. notebook/static/6731.bundle.js +1 -1
  107. notebook/static/6748.bundle.js +1 -1
  108. notebook/static/677.bundle.js +1 -1
  109. notebook/static/6815.bundle.js +1 -1
  110. notebook/static/6853.bundle.js +1 -1
  111. notebook/static/6893.bundle.js +1 -1
  112. notebook/static/690.bundle.js +1 -1
  113. notebook/static/6962.bundle.js +1 -1
  114. notebook/static/6999.bundle.js +1 -1
  115. notebook/static/7226.bundle.js +1 -1
  116. notebook/static/7252.bundle.js +1 -1
  117. notebook/static/7302.bundle.js +1 -1
  118. notebook/static/7386.bundle.js +1 -1
  119. notebook/static/7391.bundle.js +1 -1
  120. notebook/static/7450.bundle.js +1 -1
  121. notebook/static/7543.bundle.js +1 -1
  122. notebook/static/755.bundle.js +1 -1
  123. notebook/static/7603.bundle.js +1 -1
  124. notebook/static/7639.bundle.js +1 -1
  125. notebook/static/7655.bundle.js +1 -1
  126. notebook/static/{4427.bundle.js → 7674.bundle.js} +1 -1
  127. notebook/static/7684.bundle.js +1 -1
  128. notebook/static/7812.bundle.js +1 -1
  129. notebook/static/7819.bundle.js +1 -1
  130. notebook/static/7821.bundle.js +1 -1
  131. notebook/static/7854.bundle.js +1 -1
  132. notebook/static/7866.bundle.js +1 -0
  133. notebook/static/7900.bundle.js +1 -1
  134. notebook/static/7906.bundle.js +1 -1
  135. notebook/static/7995.bundle.js +1 -1
  136. notebook/static/8010.bundle.js +1 -1
  137. notebook/static/8032.bundle.js +1 -1
  138. notebook/static/8471.bundle.js +1 -1
  139. notebook/static/8579.bundle.js +1 -1
  140. notebook/static/8633.bundle.js +1 -1
  141. notebook/static/8635.bundle.js +41 -0
  142. notebook/static/8771.bundle.js +1 -1
  143. notebook/static/8781.bundle.js +1 -1
  144. notebook/static/8875.bundle.js +1 -1
  145. notebook/static/8907.bundle.js +1 -1
  146. notebook/static/8928.bundle.js +1 -1
  147. notebook/static/8929.bundle.js +1 -1
  148. notebook/static/893.bundle.js +1 -1
  149. notebook/static/901.bundle.js +1 -1
  150. notebook/static/9068.bundle.js +1 -1
  151. notebook/static/911.bundle.js +1 -1
  152. notebook/static/9136.bundle.js +1 -1
  153. notebook/static/9151.bundle.js +1 -1
  154. notebook/static/9161.bundle.js +1 -1
  155. notebook/static/9268.bundle.js +1 -1
  156. notebook/static/9335.bundle.js +1 -1
  157. notebook/static/9341.bundle.js +1 -1
  158. notebook/static/9380.bundle.js +1 -1
  159. notebook/static/9605.bundle.js +1 -1
  160. notebook/static/9638.bundle.js +1 -1
  161. notebook/static/9672.bundle.js +352 -0
  162. notebook/static/9680.bundle.js +1 -1
  163. notebook/static/9685.bundle.js +1 -1
  164. notebook/static/9752.bundle.js +1 -1
  165. notebook/static/9799.bundle.js +1 -0
  166. notebook/static/9821.bundle.js +1 -1
  167. notebook/static/9852.bundle.js +1 -1
  168. notebook/static/bundle.js +1 -1
  169. notebook/static/third-party-licenses.json +127 -133
  170. notebook/templates/consoles.html +1 -1
  171. notebook/templates/edit.html +1 -1
  172. notebook/templates/error.html +1 -1
  173. notebook/templates/notebooks.html +1 -1
  174. notebook/templates/terminals.html +1 -1
  175. notebook/templates/tree.html +1 -1
  176. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig +17 -17
  177. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig +5 -5
  178. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig +6 -6
  179. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig +11 -11
  180. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig +18 -18
  181. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json +0 -1
  182. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/package.json +13 -13
  183. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +12 -12
  184. notebook-7.3.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.6d49b092e49dc147dc54.js → notebook-7.3.0b0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.67f8b11d2af855286118.js +1 -1
  185. notebook-7.3.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/646.57a345a80ce9f0e64830.js → notebook-7.3.0b0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/907.767373e59d0c0e33ef12.js +1 -1
  186. notebook-7.3.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.7bcc163b9139ecb2b25b.js → notebook-7.3.0b0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.50419fa0a72e54064396.js +1 -1
  187. notebook-7.3.0b0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.fd0956ebf15f666a19f8.js +1 -0
  188. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/third-party-licenses.json +2 -2
  189. {notebook-7.3.0a0.dist-info → notebook-7.3.0b0.dist-info}/METADATA +2 -2
  190. {notebook-7.3.0a0.dist-info → notebook-7.3.0b0.dist-info}/RECORD +213 -222
  191. {notebook-7.3.0a0.dist-info → notebook-7.3.0b0.dist-info}/WHEEL +1 -1
  192. notebook/static/1226.bundle.js +0 -1
  193. notebook/static/1750.bundle.js +0 -1
  194. notebook/static/1884.bundle.js +0 -386
  195. notebook/static/4045.bundle.js +0 -1
  196. notebook/static/4434.bundle.js +0 -1
  197. notebook/static/5018.bundle.js +0 -1
  198. notebook/static/5712.bundle.js +0 -1
  199. notebook/static/6164.bundle.js +0 -1
  200. notebook/static/6318.bundle.js +0 -1
  201. notebook/static/6619.bundle.js +0 -1
  202. notebook/static/6898.bundle.js +0 -1
  203. notebook/static/7506.bundle.js +0 -703
  204. notebook/static/7579.bundle.js +0 -1
  205. notebook/static/8054.bundle.js +0 -1
  206. notebook/static/8647.bundle.js +0 -1
  207. notebook/static/8723.bundle.js +0 -1
  208. notebook/static/9092.bundle.js +0 -1
  209. notebook/static/9734.bundle.js +0 -1
  210. notebook/static/9906.bundle.js +0 -1
  211. notebook-7.3.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.9381fdb35e72f41d8af1.js +0 -1
  212. /notebook/static/{7506.bundle.js.LICENSE.txt → 4242.bundle.js.LICENSE.txt} +0 -0
  213. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/etc/jupyter/jupyter_server_config.d/notebook.json +0 -0
  214. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/applications/jupyter-notebook.desktop +0 -0
  215. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/icons/hicolor/scalable/apps/notebook.svg +0 -0
  216. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json +0 -0
  217. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json +0 -0
  218. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json +0 -0
  219. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json +0 -0
  220. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json +0 -0
  221. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json +0 -0
  222. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json +0 -0
  223. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json +0 -0
  224. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/edit-notebook-metadata.json +0 -0
  225. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json +0 -0
  226. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json +0 -0
  227. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +0 -0
  228. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/interface-switcher.json +0 -0
  229. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +0 -0
  230. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js +0 -0
  231. {notebook-7.3.0a0.data → notebook-7.3.0b0.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/style.js +0 -0
  232. {notebook-7.3.0a0.dist-info → notebook-7.3.0b0.dist-info}/entry_points.txt +0 -0
  233. {notebook-7.3.0a0.dist-info → notebook-7.3.0b0.dist-info}/licenses/LICENSE +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4271],{64271:(t,e,s)=>{s.r(e),s.d(e,{Debouncer:()=>o,Poll:()=>r,RateLimiter:()=>h,Throttler:()=>d});var i,a=s(20998),n=s(81997);class r{constructor(t){var e;this._disposed=new n.Signal(this),this._lingered=0,this._tick=new a.PromiseDelegate,this._ticked=new n.Signal(this),this._factory=t.factory,this._linger=null!==(e=t.linger)&&void 0!==e?e:i.DEFAULT_LINGER,this._standby=t.standby||i.DEFAULT_STANDBY,this._state={...i.DEFAULT_STATE,timestamp:(new Date).getTime()};const s=t.frequency||{},r=Math.max(s.interval||0,s.max||0,i.DEFAULT_FREQUENCY.max);this.frequency={...i.DEFAULT_FREQUENCY,...s,max:r},this.name=t.name||i.DEFAULT_NAME,"auto"in t&&!t.auto||setTimeout((()=>this.start()))}get disposed(){return this._disposed}get frequency(){return this._frequency}set frequency(t){if(this.isDisposed||a.JSONExt.deepEqual(t,this.frequency||{}))return;let{backoff:e,interval:s,max:i}=t;if(s=Math.round(s),i=Math.round(i),"number"==typeof e&&e<1)throw new Error("Poll backoff growth factor must be at least 1");if((s<0||s>i)&&s!==r.NEVER)throw new Error("Poll interval must be between 0 and max");if(i>r.MAX_INTERVAL&&i!==r.NEVER)throw new Error(`Max interval must be less than ${r.MAX_INTERVAL}`);this._frequency={backoff:e,interval:s,max:i}}get isDisposed(){return"disposed"===this.state.phase}get standby(){return this._standby}set standby(t){this.isDisposed||this.standby===t||(this._standby=t)}get state(){return this._state}get tick(){return this._tick.promise}get ticked(){return this._ticked}async*[Symbol.asyncIterator](){for(;!this.isDisposed;)yield this.state,await this.tick.catch((()=>{}))}dispose(){this.isDisposed||(this._state={...i.DISPOSED_STATE,timestamp:(new Date).getTime()},this._tick.promise.catch((t=>{})),this._tick.reject(new Error(`Poll (${this.name}) is disposed.`)),this._disposed.emit(void 0),n.Signal.clearData(this))}refresh(){return this.schedule({cancel:({phase:t})=>"refreshed"===t,interval:r.IMMEDIATE,phase:"refreshed"})}async schedule(t={}){if(this.isDisposed)return;if(t.cancel&&t.cancel(this.state))return;const e=this._tick,s=new a.PromiseDelegate,i={interval:this.frequency.interval,payload:null,phase:"standby",timestamp:(new Date).getTime(),...t};this._state=i,this._tick=s,clearTimeout(this._timeout),this._ticked.emit(this.state),e.resolve(this),await e.promise,i.interval!==r.NEVER?this._timeout=setTimeout((()=>{this.isDisposed||this.tick!==s.promise||this._execute()}),i.interval):this._timeout=void 0}start(){return this.schedule({cancel:({phase:t})=>"constructed"!==t&&"standby"!==t&&"stopped"!==t,interval:r.IMMEDIATE,phase:"started"})}stop(){return this.schedule({cancel:({phase:t})=>"stopped"===t,interval:r.NEVER,phase:"stopped"})}get hidden(){return i.hidden}_execute(){let t="function"==typeof this.standby?this.standby():this.standby;if("never"===t?t=!1:"when-hidden"===t&&(this.hidden?t=++this._lingered>this._linger:(this._lingered=0,t=!1)),t)return void this.schedule();const e=this.tick;this._factory(this.state).then((t=>{this.isDisposed||this.tick!==e||this.schedule({payload:t,phase:"rejected"===this.state.phase?"reconnected":"resolved"})})).catch((t=>{this.isDisposed||this.tick!==e||this.schedule({interval:i.sleep(this.frequency,this.state),payload:t,phase:"rejected"})}))}}!function(t){t.IMMEDIATE=0,t.MAX_INTERVAL=2147483647,t.NEVER=1/0}(r||(r={})),function(t){t.DEFAULT_BACKOFF=3,t.DEFAULT_FREQUENCY={backoff:!0,interval:1e3,max:3e4},t.DEFAULT_LINGER=1,t.DEFAULT_NAME="unknown",t.DEFAULT_STANDBY="when-hidden",t.DEFAULT_STATE={interval:r.NEVER,payload:null,phase:"constructed",timestamp:new Date(0).getTime()},t.DISPOSED_STATE={interval:r.NEVER,payload:null,phase:"disposed",timestamp:new Date(0).getTime()},t.sleep=function(e,s){const{backoff:i,interval:a,max:n}=e;if(a===r.NEVER)return a;const h=!0===i?t.DEFAULT_BACKOFF:!1===i?1:i,o=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}(a,s.interval*h);return Math.min(n,o)},t.hidden="undefined"!=typeof document&&(document.addEventListener("visibilitychange",(()=>{t.hidden="hidden"===document.visibilityState})),document.addEventListener("pagehide",(()=>{t.hidden="hidden"===document.visibilityState})),"hidden"===document.visibilityState)}(i||(i={}));class h{constructor(t,e=500){this.args=void 0,this.payload=null,this.limit=e,this.poll=new r({auto:!1,factory:async()=>{const{args:e}=this;return this.args=void 0,t(...e)},frequency:{backoff:!1,interval:r.NEVER,max:r.NEVER},standby:"never"}),this.payload=new a.PromiseDelegate,this.poll.ticked.connect(((t,e)=>{const{payload:s}=this;return"resolved"===e.phase?(this.payload=new a.PromiseDelegate,void s.resolve(e.payload)):"rejected"===e.phase||"stopped"===e.phase?(this.payload=new a.PromiseDelegate,s.promise.catch((t=>{})),void s.reject(e.payload)):void 0}),this)}get isDisposed(){return null===this.payload}dispose(){this.isDisposed||(this.args=void 0,this.payload=null,this.poll.dispose())}async stop(){return this.poll.stop()}}class o extends h{invoke(...t){return this.args=t,this.poll.schedule({interval:this.limit,phase:"invoked"}),this.payload.promise}}class d extends h{constructor(t,e){super(t,"number"==typeof e?e:e&&e.limit),this._trailing=!1,"number"!=typeof e&&e&&"trailing"===e.edge&&(this._trailing=!0),this._interval=this._trailing?this.limit:r.IMMEDIATE}invoke(...t){const e="invoked"!==this.poll.state.phase;return(e||this._trailing)&&(this.args=t),e&&this.poll.schedule({interval:this._interval,phase:"invoked"}),this.payload.promise}}}}]);
1
+ "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4271],{64271:(t,e,s)=>{s.r(e),s.d(e,{Debouncer:()=>o,Poll:()=>r,RateLimiter:()=>h,Throttler:()=>d});var i,a=s(21961),n=s(2159);class r{constructor(t){var e;this._disposed=new n.Signal(this),this._lingered=0,this._tick=new a.PromiseDelegate,this._ticked=new n.Signal(this),this._factory=t.factory,this._linger=null!==(e=t.linger)&&void 0!==e?e:i.DEFAULT_LINGER,this._standby=t.standby||i.DEFAULT_STANDBY,this._state={...i.DEFAULT_STATE,timestamp:(new Date).getTime()};const s=t.frequency||{},r=Math.max(s.interval||0,s.max||0,i.DEFAULT_FREQUENCY.max);this.frequency={...i.DEFAULT_FREQUENCY,...s,max:r},this.name=t.name||i.DEFAULT_NAME,"auto"in t&&!t.auto||setTimeout((()=>this.start()))}get disposed(){return this._disposed}get frequency(){return this._frequency}set frequency(t){if(this.isDisposed||a.JSONExt.deepEqual(t,this.frequency||{}))return;let{backoff:e,interval:s,max:i}=t;if(s=Math.round(s),i=Math.round(i),"number"==typeof e&&e<1)throw new Error("Poll backoff growth factor must be at least 1");if((s<0||s>i)&&s!==r.NEVER)throw new Error("Poll interval must be between 0 and max");if(i>r.MAX_INTERVAL&&i!==r.NEVER)throw new Error(`Max interval must be less than ${r.MAX_INTERVAL}`);this._frequency={backoff:e,interval:s,max:i}}get isDisposed(){return"disposed"===this.state.phase}get standby(){return this._standby}set standby(t){this.isDisposed||this.standby===t||(this._standby=t)}get state(){return this._state}get tick(){return this._tick.promise}get ticked(){return this._ticked}async*[Symbol.asyncIterator](){for(;!this.isDisposed;)yield this.state,await this.tick.catch((()=>{}))}dispose(){this.isDisposed||(this._state={...i.DISPOSED_STATE,timestamp:(new Date).getTime()},this._tick.promise.catch((t=>{})),this._tick.reject(new Error(`Poll (${this.name}) is disposed.`)),this._disposed.emit(void 0),n.Signal.clearData(this))}refresh(){return this.schedule({cancel:({phase:t})=>"refreshed"===t,interval:r.IMMEDIATE,phase:"refreshed"})}async schedule(t={}){if(this.isDisposed)return;if(t.cancel&&t.cancel(this.state))return;const e=this._tick,s=new a.PromiseDelegate,i={interval:this.frequency.interval,payload:null,phase:"standby",timestamp:(new Date).getTime(),...t};this._state=i,this._tick=s,clearTimeout(this._timeout),this._ticked.emit(this.state),e.resolve(this),await e.promise,i.interval!==r.NEVER?this._timeout=setTimeout((()=>{this.isDisposed||this.tick!==s.promise||this._execute()}),i.interval):this._timeout=void 0}start(){return this.schedule({cancel:({phase:t})=>"constructed"!==t&&"standby"!==t&&"stopped"!==t,interval:r.IMMEDIATE,phase:"started"})}stop(){return this.schedule({cancel:({phase:t})=>"stopped"===t,interval:r.NEVER,phase:"stopped"})}get hidden(){return i.hidden}_execute(){let t="function"==typeof this.standby?this.standby():this.standby;if("never"===t?t=!1:"when-hidden"===t&&(this.hidden?t=++this._lingered>this._linger:(this._lingered=0,t=!1)),t)return void this.schedule();const e=this.tick;this._factory(this.state).then((t=>{this.isDisposed||this.tick!==e||this.schedule({payload:t,phase:"rejected"===this.state.phase?"reconnected":"resolved"})})).catch((t=>{this.isDisposed||this.tick!==e||this.schedule({interval:i.sleep(this.frequency,this.state),payload:t,phase:"rejected"})}))}}!function(t){t.IMMEDIATE=0,t.MAX_INTERVAL=2147483647,t.NEVER=1/0}(r||(r={})),function(t){t.DEFAULT_BACKOFF=3,t.DEFAULT_FREQUENCY={backoff:!0,interval:1e3,max:3e4},t.DEFAULT_LINGER=1,t.DEFAULT_NAME="unknown",t.DEFAULT_STANDBY="when-hidden",t.DEFAULT_STATE={interval:r.NEVER,payload:null,phase:"constructed",timestamp:new Date(0).getTime()},t.DISPOSED_STATE={interval:r.NEVER,payload:null,phase:"disposed",timestamp:new Date(0).getTime()},t.sleep=function(e,s){const{backoff:i,interval:a,max:n}=e;if(a===r.NEVER)return a;const h=!0===i?t.DEFAULT_BACKOFF:!1===i?1:i,o=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}(a,s.interval*h);return Math.min(n,o)},t.hidden="undefined"!=typeof document&&(document.addEventListener("visibilitychange",(()=>{t.hidden="hidden"===document.visibilityState})),document.addEventListener("pagehide",(()=>{t.hidden="hidden"===document.visibilityState})),"hidden"===document.visibilityState)}(i||(i={}));class h{constructor(t,e=500){this.args=void 0,this.payload=null,this.limit=e,this.poll=new r({auto:!1,factory:async()=>{const{args:e}=this;return this.args=void 0,t(...e)},frequency:{backoff:!1,interval:r.NEVER,max:r.NEVER},standby:"never"}),this.payload=new a.PromiseDelegate,this.poll.ticked.connect(((t,e)=>{const{payload:s}=this;return"resolved"===e.phase?(this.payload=new a.PromiseDelegate,void s.resolve(e.payload)):"rejected"===e.phase||"stopped"===e.phase?(this.payload=new a.PromiseDelegate,s.promise.catch((t=>{})),void s.reject(e.payload)):void 0}),this)}get isDisposed(){return null===this.payload}dispose(){this.isDisposed||(this.args=void 0,this.payload=null,this.poll.dispose())}async stop(){return this.poll.stop()}}class o extends h{invoke(...t){return this.args=t,this.poll.schedule({interval:this.limit,phase:"invoked"}),this.payload.promise}}class d extends h{constructor(t,e){super(t,"number"==typeof e?e:e&&e.limit),this._trailing=!1,"number"!=typeof e&&e&&"trailing"===e.edge&&(this._trailing=!0),this._interval=this._trailing?this.limit:r.IMMEDIATE}invoke(...t){const e="invoked"!==this.poll.state.phase;return(e||this._trailing)&&(this.args=t),e&&this.poll.schedule({interval:this._interval,phase:"invoked"}),this.payload.promise}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4291],{54291:(e,t,r)=>{r.r(t),r.d(t,{Drag:()=>i});var n,o=r(2549);class i{constructor(e){this._onScrollFrame=()=>{if(!this._scrollTarget)return;let{element:e,edge:t,distance:r}=this._scrollTarget,o=n.SCROLL_EDGE_SIZE-r,i=Math.pow(o/n.SCROLL_EDGE_SIZE,2),s=Math.max(1,Math.round(i*n.SCROLL_EDGE_SIZE));switch(t){case"top":e.scrollTop-=s;break;case"left":e.scrollLeft-=s;break;case"right":e.scrollLeft+=s;break;case"bottom":e.scrollTop+=s}requestAnimationFrame(this._onScrollFrame)},this._disposed=!1,this._dropAction="none",this._override=null,this._currentTarget=null,this._currentElement=null,this._promise=null,this._scrollTarget=null,this._resolve=null,this.document=e.document||document,this.mimeData=e.mimeData,this.dragImage=e.dragImage||null,this.proposedAction=e.proposedAction||"copy",this.supportedActions=e.supportedActions||"all",this.source=e.source||null}dispose(){if(!this._disposed){if(this._disposed=!0,this._currentTarget){let e=new PointerEvent("pointerup",{bubbles:!0,cancelable:!0,clientX:-1,clientY:-1});n.dispatchDragLeave(this,this._currentTarget,null,e)}this._finalize("none")}}get isDisposed(){return this._disposed}start(e,t){if(this._disposed)return Promise.resolve("none");if(this._promise)return this._promise;this._addListeners(),this._attachDragImage(e,t),this._promise=new Promise((e=>{this._resolve=e}));let r=new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,clientX:e,clientY:t});return document.dispatchEvent(r),this._promise}handleEvent(e){switch(e.type){case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;default:e.preventDefault(),e.stopPropagation()}}moveDragImage(e,t){this.dragImage&&(this.dragImage.style.transform=`translate(${e}px, ${t}px)`)}_evtPointerMove(e){e.preventDefault(),e.stopPropagation(),this._updateCurrentTarget(e),this._updateDragScroll(e),this.moveDragImage(e.clientX,e.clientY)}_evtPointerUp(e){if(e.preventDefault(),e.stopPropagation(),0!==e.button)return;if(this._updateCurrentTarget(e),!this._currentTarget)return void this._finalize("none");if("none"===this._dropAction)return n.dispatchDragLeave(this,this._currentTarget,null,e),void this._finalize("none");let t=n.dispatchDrop(this,this._currentTarget,e);this._finalize(t)}_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),27===e.keyCode&&this.dispose()}_addListeners(){document.addEventListener("pointerdown",this,!0),document.addEventListener("pointermove",this,!0),document.addEventListener("pointerup",this,!0),document.addEventListener("pointerenter",this,!0),document.addEventListener("pointerleave",this,!0),document.addEventListener("pointerover",this,!0),document.addEventListener("pointerout",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("keyup",this,!0),document.addEventListener("keypress",this,!0),document.addEventListener("contextmenu",this,!0)}_removeListeners(){document.removeEventListener("pointerdown",this,!0),document.removeEventListener("pointermove",this,!0),document.removeEventListener("pointerup",this,!0),document.removeEventListener("pointerenter",this,!0),document.removeEventListener("pointerleave",this,!0),document.removeEventListener("pointerover",this,!0),document.removeEventListener("pointerout",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("keyup",this,!0),document.removeEventListener("keypress",this,!0),document.removeEventListener("contextmenu",this,!0)}_updateDragScroll(e){let t=n.findScrollTarget(e);(this._scrollTarget||t)&&(this._scrollTarget||setTimeout(this._onScrollFrame,500),this._scrollTarget=t)}_updateCurrentTarget(e){let t=this._currentTarget,r=this._currentTarget,o=this._currentElement,i=n.findElementBehindBackdrop(e,this.document);this._currentElement=i,i!==o&&i!==r&&n.dispatchDragExit(this,r,i,e),i!==o&&i!==r&&(r=n.dispatchDragEnter(this,i,r,e)),r!==t&&(this._currentTarget=r,n.dispatchDragLeave(this,t,r,e));let s=n.dispatchDragOver(this,r,e);this._setDropAction(s)}_attachDragImage(e,t){if(!this.dragImage)return;this.dragImage.classList.add("lm-mod-drag-image");let r=this.dragImage.style;r.pointerEvents="none",r.position="fixed",r.transform=`translate(${e}px, ${t}px)`,(this.document instanceof Document?this.document.body:this.document.firstElementChild).appendChild(this.dragImage)}_detachDragImage(){if(!this.dragImage)return;let e=this.dragImage.parentNode;e&&e.removeChild(this.dragImage)}_setDropAction(e){if(e=n.validateAction(e,this.supportedActions),!this._override||this._dropAction!==e)switch(e){case"none":this._dropAction=e,this._override=i.overrideCursor("no-drop",this.document);break;case"copy":this._dropAction=e,this._override=i.overrideCursor("copy",this.document);break;case"link":this._dropAction=e,this._override=i.overrideCursor("alias",this.document);break;case"move":this._dropAction=e,this._override=i.overrideCursor("move",this.document)}}_finalize(e){let t=this._resolve;this._removeListeners(),this._detachDragImage(),this._override&&(this._override.dispose(),this._override=null),this.mimeData.clear(),this._disposed=!0,this._dropAction="none",this._currentTarget=null,this._currentElement=null,this._scrollTarget=null,this._promise=null,this._resolve=null,t&&t(e)}}!function(e){class t extends DragEvent{constructor(e,t){super(t.type,{bubbles:!0,cancelable:!0,altKey:e.altKey,button:e.button,clientX:e.clientX,clientY:e.clientY,ctrlKey:e.ctrlKey,detail:0,metaKey:e.metaKey,relatedTarget:t.related,screenX:e.screenX,screenY:e.screenY,shiftKey:e.shiftKey,view:window});const{drag:r}=t;this.dropAction="none",this.mimeData=r.mimeData,this.proposedAction=r.proposedAction,this.supportedActions=r.supportedActions,this.source=r.source}}e.Event=t,e.overrideCursor=function(e,t=document){return n.overrideCursor(e,t)}}(i||(i={})),function(e){function t(t,o=document){if(t){if(r&&t==r.event)return r.element;e.cursorBackdrop.style.zIndex="-1000";const n=o.elementFromPoint(t.clientX,t.clientY);return e.cursorBackdrop.style.zIndex="",r={event:t,element:n},n}{const t=e.cursorBackdrop.style.transform;if(n&&t===n.transform)return n.element;const r=e.cursorBackdrop.getBoundingClientRect();e.cursorBackdrop.style.zIndex="-1000";const i=o.elementFromPoint(r.left+r.width/2,r.top+r.height/2);return e.cursorBackdrop.style.zIndex="",n={transform:t,element:i},i}}e.SCROLL_EDGE_SIZE=20,e.validateAction=function(e,t){return s[e]&a[t]?e:"none"},e.findElementBehindBackdrop=t;let r=null,n=null;e.findScrollTarget=function(r){let n=r.clientX,o=r.clientY,i=t(r);for(;i;i=i.parentElement){if(!i.hasAttribute("data-lm-dragscroll"))continue;let t=0,r=0;i===document.body&&(t=window.pageXOffset,r=window.pageYOffset);let s=i.getBoundingClientRect(),a=s.top+r,c=s.left+t,l=c+s.width,d=a+s.height;if(n<c||n>=l||o<a||o>=d)continue;let u,p=n-c+1,h=o-a+1,m=l-n,v=d-o,g=Math.min(p,h,m,v);if(g>e.SCROLL_EDGE_SIZE)continue;switch(g){case v:u="bottom";break;case h:u="top";break;case m:u="right";break;case p:u="left";break;default:throw"unreachable"}let _,f=i.scrollWidth-i.clientWidth,E=i.scrollHeight-i.clientHeight;switch(u){case"top":_=E>0&&i.scrollTop>0;break;case"left":_=f>0&&i.scrollLeft>0;break;case"right":_=f>0&&i.scrollLeft<f;break;case"bottom":_=E>0&&i.scrollTop<E;break;default:throw"unreachable"}if(_)return{element:i,edge:u,distance:g}}return null},e.dispatchDragEnter=function(e,t,r,n){if(!t)return null;let o=new i.Event(n,{drag:e,related:r,type:"lm-dragenter"});if(!t.dispatchEvent(o))return t;const s=e.document instanceof Document?e.document.body:e.document.firstElementChild;return t===s?r:(o=new i.Event(n,{drag:e,related:r,type:"lm-dragenter"}),s.dispatchEvent(o),s)},e.dispatchDragExit=function(e,t,r,n){if(!t)return;let o=new i.Event(n,{drag:e,related:r,type:"lm-dragexit"});t.dispatchEvent(o)},e.dispatchDragLeave=function(e,t,r,n){if(!t)return;let o=new i.Event(n,{drag:e,related:r,type:"lm-dragleave"});t.dispatchEvent(o)},e.dispatchDragOver=function(e,t,r){if(!t)return"none";let n=new i.Event(r,{drag:e,related:null,type:"lm-dragover"});return t.dispatchEvent(n)?"none":n.dropAction},e.dispatchDrop=function(e,t,r){if(!t)return"none";let n=new i.Event(r,{drag:e,related:null,type:"lm-drop"});return t.dispatchEvent(n)?"none":n.dropAction};const s={none:0,copy:1,link:2,move:4},a={none:s.none,copy:s.copy,link:s.link,move:s.move,"copy-link":s.copy|s.link,"copy-move":s.copy|s.move,"link-move":s.link|s.move,all:s.copy|s.link|s.move};function c(t){e.cursorBackdrop&&(e.cursorBackdrop.style.transform=`translate(${t.clientX}px, ${t.clientY}px)`)}function l(r){if(!e.cursorBackdrop)return;let n=t();if(!n)return;const o=n.closest("[data-lm-dragscroll]");o&&(o.scrollTop+=e.cursorBackdrop.scrollTop-u,o.scrollLeft+=e.cursorBackdrop.scrollLeft-u,d())}function d(){e.cursorBackdrop.scrollTop=u,e.cursorBackdrop.scrollLeft=u}e.overrideCursor=function(t,r=document){let n=++p;const i=r instanceof Document?r.body:r.firstElementChild;return e.cursorBackdrop.isConnected||(e.cursorBackdrop.style.transform="scale(0)",i.appendChild(e.cursorBackdrop),d(),document.addEventListener("pointermove",c,{capture:!0,passive:!0}),e.cursorBackdrop.addEventListener("scroll",l,{capture:!0,passive:!0})),e.cursorBackdrop.style.cursor=t,new o.DisposableDelegate((()=>{n===p&&e.cursorBackdrop.isConnected&&(document.removeEventListener("pointermove",c,!0),e.cursorBackdrop.removeEventListener("scroll",l,!0),i.removeChild(e.cursorBackdrop))}))};const u=500;let p=0;e.cursorBackdrop=function(){const e=document.createElement("div");return e.classList.add("lm-cursor-backdrop"),e}()}(n||(n={}))}}]);
1
+ "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4291],{54291:(e,t,r)=>{r.r(t),r.d(t,{Drag:()=>i});var n,o=r(49901);class i{constructor(e){this._onScrollFrame=()=>{if(!this._scrollTarget)return;let{element:e,edge:t,distance:r}=this._scrollTarget,o=n.SCROLL_EDGE_SIZE-r,i=Math.pow(o/n.SCROLL_EDGE_SIZE,2),s=Math.max(1,Math.round(i*n.SCROLL_EDGE_SIZE));switch(t){case"top":e.scrollTop-=s;break;case"left":e.scrollLeft-=s;break;case"right":e.scrollLeft+=s;break;case"bottom":e.scrollTop+=s}requestAnimationFrame(this._onScrollFrame)},this._disposed=!1,this._dropAction="none",this._override=null,this._currentTarget=null,this._currentElement=null,this._promise=null,this._scrollTarget=null,this._resolve=null,this.document=e.document||document,this.mimeData=e.mimeData,this.dragImage=e.dragImage||null,this.proposedAction=e.proposedAction||"copy",this.supportedActions=e.supportedActions||"all",this.source=e.source||null}dispose(){if(!this._disposed){if(this._disposed=!0,this._currentTarget){let e=new PointerEvent("pointerup",{bubbles:!0,cancelable:!0,clientX:-1,clientY:-1});n.dispatchDragLeave(this,this._currentTarget,null,e)}this._finalize("none")}}get isDisposed(){return this._disposed}start(e,t){if(this._disposed)return Promise.resolve("none");if(this._promise)return this._promise;this._addListeners(),this._attachDragImage(e,t),this._promise=new Promise((e=>{this._resolve=e}));let r=new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,clientX:e,clientY:t});return document.dispatchEvent(r),this._promise}handleEvent(e){switch(e.type){case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;default:e.preventDefault(),e.stopPropagation()}}moveDragImage(e,t){this.dragImage&&(this.dragImage.style.transform=`translate(${e}px, ${t}px)`)}_evtPointerMove(e){e.preventDefault(),e.stopPropagation(),this._updateCurrentTarget(e),this._updateDragScroll(e),this.moveDragImage(e.clientX,e.clientY)}_evtPointerUp(e){if(e.preventDefault(),e.stopPropagation(),0!==e.button)return;if(this._updateCurrentTarget(e),!this._currentTarget)return void this._finalize("none");if("none"===this._dropAction)return n.dispatchDragLeave(this,this._currentTarget,null,e),void this._finalize("none");let t=n.dispatchDrop(this,this._currentTarget,e);this._finalize(t)}_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),27===e.keyCode&&this.dispose()}_addListeners(){document.addEventListener("pointerdown",this,!0),document.addEventListener("pointermove",this,!0),document.addEventListener("pointerup",this,!0),document.addEventListener("pointerenter",this,!0),document.addEventListener("pointerleave",this,!0),document.addEventListener("pointerover",this,!0),document.addEventListener("pointerout",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("keyup",this,!0),document.addEventListener("keypress",this,!0),document.addEventListener("contextmenu",this,!0)}_removeListeners(){document.removeEventListener("pointerdown",this,!0),document.removeEventListener("pointermove",this,!0),document.removeEventListener("pointerup",this,!0),document.removeEventListener("pointerenter",this,!0),document.removeEventListener("pointerleave",this,!0),document.removeEventListener("pointerover",this,!0),document.removeEventListener("pointerout",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("keyup",this,!0),document.removeEventListener("keypress",this,!0),document.removeEventListener("contextmenu",this,!0)}_updateDragScroll(e){let t=n.findScrollTarget(e);(this._scrollTarget||t)&&(this._scrollTarget||setTimeout(this._onScrollFrame,500),this._scrollTarget=t)}_updateCurrentTarget(e){let t=this._currentTarget,r=this._currentTarget,o=this._currentElement,i=n.findElementBehindBackdrop(e,this.document);this._currentElement=i,i!==o&&i!==r&&n.dispatchDragExit(this,r,i,e),i!==o&&i!==r&&(r=n.dispatchDragEnter(this,i,r,e)),r!==t&&(this._currentTarget=r,n.dispatchDragLeave(this,t,r,e));let s=n.dispatchDragOver(this,r,e);this._setDropAction(s)}_attachDragImage(e,t){if(!this.dragImage)return;this.dragImage.classList.add("lm-mod-drag-image");let r=this.dragImage.style;r.pointerEvents="none",r.position="fixed",r.transform=`translate(${e}px, ${t}px)`,(this.document instanceof Document?this.document.body:this.document.firstElementChild).appendChild(this.dragImage)}_detachDragImage(){if(!this.dragImage)return;let e=this.dragImage.parentNode;e&&e.removeChild(this.dragImage)}_setDropAction(e){if(e=n.validateAction(e,this.supportedActions),!this._override||this._dropAction!==e)switch(e){case"none":this._dropAction=e,this._override=i.overrideCursor("no-drop",this.document);break;case"copy":this._dropAction=e,this._override=i.overrideCursor("copy",this.document);break;case"link":this._dropAction=e,this._override=i.overrideCursor("alias",this.document);break;case"move":this._dropAction=e,this._override=i.overrideCursor("move",this.document)}}_finalize(e){let t=this._resolve;this._removeListeners(),this._detachDragImage(),this._override&&(this._override.dispose(),this._override=null),this.mimeData.clear(),this._disposed=!0,this._dropAction="none",this._currentTarget=null,this._currentElement=null,this._scrollTarget=null,this._promise=null,this._resolve=null,t&&t(e)}}!function(e){class t extends DragEvent{constructor(e,t){super(t.type,{bubbles:!0,cancelable:!0,altKey:e.altKey,button:e.button,clientX:e.clientX,clientY:e.clientY,ctrlKey:e.ctrlKey,detail:0,metaKey:e.metaKey,relatedTarget:t.related,screenX:e.screenX,screenY:e.screenY,shiftKey:e.shiftKey,view:window});const{drag:r}=t;this.dropAction="none",this.mimeData=r.mimeData,this.proposedAction=r.proposedAction,this.supportedActions=r.supportedActions,this.source=r.source}}e.Event=t,e.overrideCursor=function(e,t=document){return n.overrideCursor(e,t)}}(i||(i={})),function(e){function t(t,o=document){if(t){if(r&&t==r.event)return r.element;e.cursorBackdrop.style.zIndex="-1000";const n=o.elementFromPoint(t.clientX,t.clientY);return e.cursorBackdrop.style.zIndex="",r={event:t,element:n},n}{const t=e.cursorBackdrop.style.transform;if(n&&t===n.transform)return n.element;const r=e.cursorBackdrop.getBoundingClientRect();e.cursorBackdrop.style.zIndex="-1000";const i=o.elementFromPoint(r.left+r.width/2,r.top+r.height/2);return e.cursorBackdrop.style.zIndex="",n={transform:t,element:i},i}}e.SCROLL_EDGE_SIZE=20,e.validateAction=function(e,t){return s[e]&a[t]?e:"none"},e.findElementBehindBackdrop=t;let r=null,n=null;e.findScrollTarget=function(r){let n=r.clientX,o=r.clientY,i=t(r);for(;i;i=i.parentElement){if(!i.hasAttribute("data-lm-dragscroll"))continue;let t=0,r=0;i===document.body&&(t=window.pageXOffset,r=window.pageYOffset);let s=i.getBoundingClientRect(),a=s.top+r,c=s.left+t,l=c+s.width,d=a+s.height;if(n<c||n>=l||o<a||o>=d)continue;let u,p=n-c+1,h=o-a+1,m=l-n,v=d-o,g=Math.min(p,h,m,v);if(g>e.SCROLL_EDGE_SIZE)continue;switch(g){case v:u="bottom";break;case h:u="top";break;case m:u="right";break;case p:u="left";break;default:throw"unreachable"}let _,f=i.scrollWidth-i.clientWidth,E=i.scrollHeight-i.clientHeight;switch(u){case"top":_=E>0&&i.scrollTop>0;break;case"left":_=f>0&&i.scrollLeft>0;break;case"right":_=f>0&&i.scrollLeft<f;break;case"bottom":_=E>0&&i.scrollTop<E;break;default:throw"unreachable"}if(_)return{element:i,edge:u,distance:g}}return null},e.dispatchDragEnter=function(e,t,r,n){if(!t)return null;let o=new i.Event(n,{drag:e,related:r,type:"lm-dragenter"});if(!t.dispatchEvent(o))return t;const s=e.document instanceof Document?e.document.body:e.document.firstElementChild;return t===s?r:(o=new i.Event(n,{drag:e,related:r,type:"lm-dragenter"}),s.dispatchEvent(o),s)},e.dispatchDragExit=function(e,t,r,n){if(!t)return;let o=new i.Event(n,{drag:e,related:r,type:"lm-dragexit"});t.dispatchEvent(o)},e.dispatchDragLeave=function(e,t,r,n){if(!t)return;let o=new i.Event(n,{drag:e,related:r,type:"lm-dragleave"});t.dispatchEvent(o)},e.dispatchDragOver=function(e,t,r){if(!t)return"none";let n=new i.Event(r,{drag:e,related:null,type:"lm-dragover"});return t.dispatchEvent(n)?"none":n.dropAction},e.dispatchDrop=function(e,t,r){if(!t)return"none";let n=new i.Event(r,{drag:e,related:null,type:"lm-drop"});return t.dispatchEvent(n)?"none":n.dropAction};const s={none:0,copy:1,link:2,move:4},a={none:s.none,copy:s.copy,link:s.link,move:s.move,"copy-link":s.copy|s.link,"copy-move":s.copy|s.move,"link-move":s.link|s.move,all:s.copy|s.link|s.move};function c(t){e.cursorBackdrop&&(e.cursorBackdrop.style.transform=`translate(${t.clientX}px, ${t.clientY}px)`)}function l(r){if(!e.cursorBackdrop)return;let n=t();if(!n)return;const o=n.closest("[data-lm-dragscroll]");o&&(o.scrollTop+=e.cursorBackdrop.scrollTop-u,o.scrollLeft+=e.cursorBackdrop.scrollLeft-u,d())}function d(){e.cursorBackdrop.scrollTop=u,e.cursorBackdrop.scrollLeft=u}e.overrideCursor=function(t,r=document){let n=++p;const i=r instanceof Document?r.body:r.firstElementChild;return e.cursorBackdrop.isConnected||(e.cursorBackdrop.style.transform="scale(0)",i.appendChild(e.cursorBackdrop),d(),document.addEventListener("pointermove",c,{capture:!0,passive:!0}),e.cursorBackdrop.addEventListener("scroll",l,{capture:!0,passive:!0})),e.cursorBackdrop.style.cursor=t,new o.DisposableDelegate((()=>{n===p&&e.cursorBackdrop.isConnected&&(document.removeEventListener("pointermove",c,!0),e.cursorBackdrop.removeEventListener("scroll",l,!0),i.removeChild(e.cursorBackdrop))}))};const u=500;let p=0;e.cursorBackdrop=function(){const e=document.createElement("div");return e.classList.add("lm-cursor-backdrop"),e}()}(n||(n={}))}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4382,7906],{54382:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var n=r(54509),o=r(94978);const c="jp-mod-searchable",a=[{id:"@jupyter-notebook/documentsearch-extension:notebookShellWidgetListener",requires:[o.INotebookShell,n.ISearchProviderRegistry],autoStart:!0,description:"A plugin to add document search functionalities",activate:(e,t,r)=>{const n=e=>{e&&(r.hasProvider(e)?e.addClass(c):e.removeClass(c))};r.changed.connect((()=>n(t.currentWidget))),t.currentChanged.connect(((e,r)=>{t.currentWidget&&n(t.currentWidget)}))}}]}}]);
1
+ "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4382,7906],{54382:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var n=r(95514),o=r(28976);const c="jp-mod-searchable",a=[{id:"@jupyter-notebook/documentsearch-extension:notebookShellWidgetListener",requires:[o.INotebookShell,n.ISearchProviderRegistry],autoStart:!0,description:"A plugin to add document search functionalities",activate:(e,t,r)=>{const n=e=>{e&&(r.hasProvider(e)?e.addClass(c):e.removeClass(c))};r.changed.connect((()=>n(t.currentWidget))),t.currentChanged.connect(((e,r)=>{t.currentWidget&&n(t.currentWidget)}))}}]}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4526],{92489:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataConnector=void 0,t.DataConnector=class{async list(e){throw new Error("DataConnector#list method has not been implemented.")}async remove(e){throw new Error("DataConnector#remove method has not been implemented.")}async save(e,t){throw new Error("DataConnector#save method has not been implemented.")}}},34526:function(e,t,s){var r=this&&this.__createBinding||(Object.create?function(e,t,s,r){void 0===r&&(r=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,r,a)}:function(e,t,s,r){void 0===r&&(r=s),e[r]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||r(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(92489),t),a(s(40379),t),a(s(44089),t),a(s(27130),t),a(s(37209),t)},40379:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},44089:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RestorablePool=void 0;const r=s(20998),a=s(14421),i=s(81997);var n;t.RestorablePool=class{constructor(e){this._added=new i.Signal(this),this._current=null,this._currentChanged=new i.Signal(this),this._hasRestored=!1,this._isDisposed=!1,this._objects=new Set,this._restore=null,this._restored=new r.PromiseDelegate,this._updated=new i.Signal(this),this.namespace=e.namespace}get added(){return this._added}get current(){return this._current}set current(e){this._current!==e&&null!==e&&this._objects.has(e)&&(this._current=e,this._currentChanged.emit(this._current))}get currentChanged(){return this._currentChanged}get isDisposed(){return this._isDisposed}get restored(){return this._restored.promise}get size(){return this._objects.size}get updated(){return this._updated}async add(e){var t,s;if(e.isDisposed){const t="A disposed object cannot be added.";throw console.warn(t,e),new Error(t)}if(this._objects.has(e)){const t="This object already exists in the pool.";throw console.warn(t,e),new Error(t)}if(this._objects.add(e),e.disposed.connect(this._onInstanceDisposed,this),!n.injectedProperty.get(e)){if(this._restore){const{connector:r}=this._restore,a=this._restore.name(e);if(a){const i=`${this.namespace}:${a}`,o=null===(s=(t=this._restore).args)||void 0===s?void 0:s.call(t,e);n.nameProperty.set(e,i),await r.save(i,{data:o})}}this._added.emit(e)}}dispose(){this.isDisposed||(this._current=null,this._isDisposed=!0,this._objects.clear(),i.Signal.clearData(this))}find(e){const t=this._objects.values();for(const s of t)if(e(s))return s}forEach(e){this._objects.forEach(e)}filter(e){const t=[];return this.forEach((s=>{e(s)&&t.push(s)})),t}inject(e){return n.injectedProperty.set(e,!0),this.add(e)}has(e){return this._objects.has(e)}async restore(e){if(this._hasRestored)throw new Error("This pool has already been restored.");this._hasRestored=!0;const{command:t,connector:s,registry:r,when:a}=e,i=this.namespace,n=a?[s.list(i)].concat(a):[s.list(i)];this._restore=e;const[o]=await Promise.all(n),c=await Promise.all(o.ids.map((async(e,a)=>{const i=o.values[a],n=i&&i.data;return void 0===n?s.remove(e):r.execute(t,n).catch((()=>s.remove(e)))})));return this._restored.resolve(),c}async save(e){var t,s;const r=n.injectedProperty.get(e);if(!this._restore||!this.has(e)||r)return;const{connector:a}=this._restore,i=this._restore.name(e),o=n.nameProperty.get(e),c=i?`${this.namespace}:${i}`:"";if(o&&o!==c&&await a.remove(o),n.nameProperty.set(e,c),c){const r=null===(s=(t=this._restore).args)||void 0===s?void 0:s.call(t,e);await a.save(c,{data:r})}o!==c&&this._updated.emit(e)}_onInstanceDisposed(e){if(this._objects.delete(e),e===this._current&&(this._current=null,this._currentChanged.emit(this._current)),n.injectedProperty.get(e))return;if(!this._restore)return;const{connector:t}=this._restore,s=n.nameProperty.get(e);s&&t.remove(s)}},function(e){e.injectedProperty=new a.AttachedProperty({name:"injected",create:()=>!1}),e.nameProperty=new a.AttachedProperty({name:"name",create:()=>""})}(n||(n={}))},27130:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StateDB=void 0;const r=s(81997);class a{constructor(e={}){this._changed=new r.Signal(this);const{connector:t,transform:s}=e;this._connector=t||new a.Connector,this._ready=s?s.then((e=>{const{contents:t,type:s}=e;switch(s){case"cancel":default:return;case"clear":return this._clear();case"merge":return this._merge(t||{});case"overwrite":return this._overwrite(t||{})}})):Promise.resolve(void 0)}get changed(){return this._changed}async clear(){await this._ready,await this._clear()}async fetch(e){return await this._ready,this._fetch(e)}async list(e){return await this._ready,this._list(e)}async remove(e){await this._ready,await this._remove(e),this._changed.emit({id:e,type:"remove"})}async save(e,t){await this._ready,await this._save(e,t),this._changed.emit({id:e,type:"save"})}async toJSON(){await this._ready;const{ids:e,values:t}=await this._list();return t.reduce(((t,s,r)=>(t[e[r]]=s,t)),{})}async _clear(){await Promise.all((await this._list()).ids.map((e=>this._remove(e))))}async _fetch(e){const t=await this._connector.fetch(e);if(t)return JSON.parse(t).v}async _list(e=""){const{ids:t,values:s}=await this._connector.list(e);return{ids:t,values:s.map((e=>JSON.parse(e).v))}}async _merge(e){await Promise.all(Object.keys(e).map((t=>e[t]&&this._save(t,e[t]))))}async _overwrite(e){await this._clear(),await this._merge(e)}async _remove(e){return this._connector.remove(e)}async _save(e,t){return this._connector.save(e,JSON.stringify({v:t}))}}t.StateDB=a,function(e){e.Connector=class{constructor(){this._storage={}}async fetch(e){return this._storage[e]}async list(e=""){return Object.keys(this._storage).reduce(((t,s)=>(""!==e&&e!==s.split(":")[0]||(t.ids.push(s),t.values.push(this._storage[s])),t)),{ids:[],values:[]})}async remove(e){delete this._storage[e]}async save(e,t){this._storage[e]=t}}}(a||(t.StateDB=a={}))},37209:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IStateDB=void 0;const r=s(20998);t.IStateDB=new r.Token("@jupyterlab/coreutils:IStateDB",'A service for the JupyterLab state database.\n Use this if you want to store data that will persist across page loads.\n See "state database" for more information.')}}]);
1
+ "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4526],{92489:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataConnector=void 0,t.DataConnector=class{async list(e){throw new Error("DataConnector#list method has not been implemented.")}async remove(e){throw new Error("DataConnector#remove method has not been implemented.")}async save(e,t){throw new Error("DataConnector#save method has not been implemented.")}}},34526:function(e,t,s){var r=this&&this.__createBinding||(Object.create?function(e,t,s,r){void 0===r&&(r=s);var a=Object.getOwnPropertyDescriptor(t,s);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,r,a)}:function(e,t,s,r){void 0===r&&(r=s),e[r]=t[s]}),a=this&&this.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||r(t,e,s)};Object.defineProperty(t,"__esModule",{value:!0}),a(s(92489),t),a(s(40379),t),a(s(44089),t),a(s(27130),t),a(s(37209),t)},40379:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},44089:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RestorablePool=void 0;const r=s(21961),a=s(80480),i=s(2159);var n;t.RestorablePool=class{constructor(e){this._added=new i.Signal(this),this._current=null,this._currentChanged=new i.Signal(this),this._hasRestored=!1,this._isDisposed=!1,this._objects=new Set,this._restore=null,this._restored=new r.PromiseDelegate,this._updated=new i.Signal(this),this.namespace=e.namespace}get added(){return this._added}get current(){return this._current}set current(e){this._current!==e&&null!==e&&this._objects.has(e)&&(this._current=e,this._currentChanged.emit(this._current))}get currentChanged(){return this._currentChanged}get isDisposed(){return this._isDisposed}get restored(){return this._restored.promise}get size(){return this._objects.size}get updated(){return this._updated}async add(e){var t,s;if(e.isDisposed){const t="A disposed object cannot be added.";throw console.warn(t,e),new Error(t)}if(this._objects.has(e)){const t="This object already exists in the pool.";throw console.warn(t,e),new Error(t)}if(this._objects.add(e),e.disposed.connect(this._onInstanceDisposed,this),!n.injectedProperty.get(e)){if(this._restore){const{connector:r}=this._restore,a=this._restore.name(e);if(a){const i=`${this.namespace}:${a}`,o=null===(s=(t=this._restore).args)||void 0===s?void 0:s.call(t,e);n.nameProperty.set(e,i),await r.save(i,{data:o})}}this._added.emit(e)}}dispose(){this.isDisposed||(this._current=null,this._isDisposed=!0,this._objects.clear(),i.Signal.clearData(this))}find(e){const t=this._objects.values();for(const s of t)if(e(s))return s}forEach(e){this._objects.forEach(e)}filter(e){const t=[];return this.forEach((s=>{e(s)&&t.push(s)})),t}inject(e){return n.injectedProperty.set(e,!0),this.add(e)}has(e){return this._objects.has(e)}async restore(e){if(this._hasRestored)throw new Error("This pool has already been restored.");this._hasRestored=!0;const{command:t,connector:s,registry:r,when:a}=e,i=this.namespace,n=a?[s.list(i)].concat(a):[s.list(i)];this._restore=e;const[o]=await Promise.all(n),c=await Promise.all(o.ids.map((async(e,a)=>{const i=o.values[a],n=i&&i.data;return void 0===n?s.remove(e):r.execute(t,n).catch((()=>s.remove(e)))})));return this._restored.resolve(),c}async save(e){var t,s;const r=n.injectedProperty.get(e);if(!this._restore||!this.has(e)||r)return;const{connector:a}=this._restore,i=this._restore.name(e),o=n.nameProperty.get(e),c=i?`${this.namespace}:${i}`:"";if(o&&o!==c&&await a.remove(o),n.nameProperty.set(e,c),c){const r=null===(s=(t=this._restore).args)||void 0===s?void 0:s.call(t,e);await a.save(c,{data:r})}o!==c&&this._updated.emit(e)}_onInstanceDisposed(e){if(this._objects.delete(e),e===this._current&&(this._current=null,this._currentChanged.emit(this._current)),n.injectedProperty.get(e))return;if(!this._restore)return;const{connector:t}=this._restore,s=n.nameProperty.get(e);s&&t.remove(s)}},function(e){e.injectedProperty=new a.AttachedProperty({name:"injected",create:()=>!1}),e.nameProperty=new a.AttachedProperty({name:"name",create:()=>""})}(n||(n={}))},27130:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StateDB=void 0;const r=s(2159);class a{constructor(e={}){this._changed=new r.Signal(this);const{connector:t,transform:s}=e;this._connector=t||new a.Connector,this._ready=s?s.then((e=>{const{contents:t,type:s}=e;switch(s){case"cancel":default:return;case"clear":return this._clear();case"merge":return this._merge(t||{});case"overwrite":return this._overwrite(t||{})}})):Promise.resolve(void 0)}get changed(){return this._changed}async clear(){await this._ready,await this._clear()}async fetch(e){return await this._ready,this._fetch(e)}async list(e){return await this._ready,this._list(e)}async remove(e){await this._ready,await this._remove(e),this._changed.emit({id:e,type:"remove"})}async save(e,t){await this._ready,await this._save(e,t),this._changed.emit({id:e,type:"save"})}async toJSON(){await this._ready;const{ids:e,values:t}=await this._list();return t.reduce(((t,s,r)=>(t[e[r]]=s,t)),{})}async _clear(){await Promise.all((await this._list()).ids.map((e=>this._remove(e))))}async _fetch(e){const t=await this._connector.fetch(e);if(t)return JSON.parse(t).v}async _list(e=""){const{ids:t,values:s}=await this._connector.list(e);return{ids:t,values:s.map((e=>JSON.parse(e).v))}}async _merge(e){await Promise.all(Object.keys(e).map((t=>e[t]&&this._save(t,e[t]))))}async _overwrite(e){await this._clear(),await this._merge(e)}async _remove(e){return this._connector.remove(e)}async _save(e,t){return this._connector.save(e,JSON.stringify({v:t}))}}t.StateDB=a,function(e){e.Connector=class{constructor(){this._storage={}}async fetch(e){return this._storage[e]}async list(e=""){return Object.keys(this._storage).reduce(((t,s)=>(""!==e&&e!==s.split(":")[0]||(t.ids.push(s),t.values.push(this._storage[s])),t)),{ids:[],values:[]})}async remove(e){delete this._storage[e]}async save(e,t){this._storage[e]=t}}}(a||(t.StateDB=a={}))},37209:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IStateDB=void 0;const r=s(21961);t.IStateDB=new r.Token("@jupyterlab/coreutils:IStateDB",'A service for the JupyterLab state database.\n Use this if you want to store data that will persist across page loads.\n See "state database" for more information.')}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4588],{64588:(e,t,O)=>{O.r(t),O.d(t,{autoCloseTags:()=>E,completeFromSchema:()=>V,xml:()=>X,xmlLanguage:()=>x});var n=O(49906),a=O(92209);function r(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}let l=null,s=null,o=0;function i(e,t){let O=e.pos+t;if(s==e&&o==O)return l;for(;9==(n=e.peek(t))||10==n||13==n||32==n;)t++;var n;let a="";for(;;){let O=e.peek(t);if(!r(O))break;a+=String.fromCharCode(O),t++}return s=e,o=O,l=a||null}function y(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let t=0;t<e.length;t++)this.hash+=(this.hash<<4)+e.charCodeAt(t)+(e.charCodeAt(t)<<8)}const c=new n.IK({start:null,shift:(e,t,O,n)=>1==t?new y(i(n,1)||"",e):e,reduce:(e,t)=>11==t&&e?e.parent:e,reuse(e,t,O,n){let a=t.type.id;return 1==a||13==a?new y(i(n,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),p=new n.Jq(((e,t)=>{if(60==e.next)if(e.advance(),47==e.next){e.advance();let O=i(e,0);if(!O)return e.acceptToken(5);if(t.context&&O==t.context.name)return e.acceptToken(2);for(let n=t.context;n;n=n.parent)if(n.name==O)return e.acceptToken(3,-2);e.acceptToken(4)}else if(33!=e.next&&63!=e.next)return e.acceptToken(1)}),{contextual:!0});function $(e,t){return new n.Jq((O=>{for(let n=0,a=0;;a++){if(O.next<0){a&&O.acceptToken(e);break}if(O.next==t.charCodeAt(n)){if(n++,n==t.length){a>=t.length&&O.acceptToken(e,1-t.length);break}}else n=O.next==t.charCodeAt(0)?1:0;O.advance()}}))}const u=$(35,"--\x3e"),g=$(36,"?>"),S=$(37,"]]>"),m=(0,a.styleTags)({Text:a.tags.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":a.tags.angleBracket,TagName:a.tags.tagName,"MismatchedCloseTag/Tagname":[a.tags.tagName,a.tags.invalid],AttributeName:a.tags.attributeName,AttributeValue:a.tags.attributeValue,Is:a.tags.definitionOperator,"EntityReference CharacterReference":a.tags.character,Comment:a.tags.blockComment,ProcessingInst:a.tags.processingInstruction,DoctypeDecl:a.tags.documentMeta,Cdata:a.tags.special(a.tags.string)}),f=n.WQ.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'jO!bO,59eOOOO-E6w-E6wO'xOpO1G.uO'xOpO1G.uOOOP1G.u1G.uO(QOpO7+$fOOOP7+$f7+$fO(YO!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(eO#tO'#CnOOOO1G.q1G.qO(sOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO({O#tO,59YOOOO,59Y,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.t",stateData:")Z~OPQOSVOTWOVWOWWOXWOiXOxPO}TO!PUO~OuZOw]O~O^`Oy^O~OPQOQcOSVOTWOVWOWWOXWOxPO}TO!PUO~ORdO~P!SOseO|gO~OthO!OjO~O^lOy^O~OuZOwoO~O^qOy^O~O[vO`sOdwOy^O~ORyO~P!SO^{Oy^O~OseO|}O~OthO!O!PO~O^!QOy^O~O[!SOy^O~O[!VO`sOd!WOy^O~Oa!YOy^O~Oy^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oy^O~O[!_Oy^O~O[!aOy^O~O[!cO`sOd!dOy^O~O[!cO`sOd!dO~Oa!eOy^O~Oy^Oz!gO~Oy^O[ma`madma~O[!jOy^O~O[!kOy^O~O[!lO`sOd!mO~OW!pOX!pOz!rO{!pO~O[!sOy^O~OW!pOX!pOz!vO{!pO~O",goto:"%[wPPPPPPPPPPxxP!OP!UPP!_!iP!oxxxP!u!{#R$Z$j$p$v$|PPPP%SXWORYbXRORYb_t`qru!T!U!bQ!h!YS!o!e!fR!t!nQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!i!nQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!i!]R!n!eQu`S!UqrU![u!U!bR!b!TQ!q!gR!u!qQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:47,context:c,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"]],propSources:[m],skipped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nw!^$n!^!_%y!_!`$n!`!aFV!a;'S$n;'S;=`&e<%lO$nZF`W!OQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZGPYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_#P$n#P#QGo#Q;'S$n;'S;=`&e<%lO$nZGvYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aHf!a;'S$n;'S;=`&e<%lO$nZHoWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n",tokenizers:[p,u,g,S,0,1,2,3],topRules:{Document:[0,6]},tokenPrec:0});var d=O(17592),h=O(89843),T=O(83112);function P(e,t){let O=t&&t.getChild("TagName");return O?e.sliceString(O.from,O.to):""}function v(e,t){let O=t&&t.firstChild;return O&&"OpenTag"==O.name?P(e,O):""}function _(e){for(let t=e&&e.parent;t;t=t.parent)if("Element"==t.name)return t;return null}class C{constructor(e,t,O){this.attrs=t,this.attrValues=O,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map((e=>({label:e,type:"text"}))):[]}}const b=/^[:\-\.\w\u00b7-\uffff]*$/;function w(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function W(e){return"string"==typeof e?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function V(e,t){let O=[],n=[],a=Object.create(null);for(let e of t){let t=w(e);O.push(t),e.global&&n.push(t),e.values&&(a[e.name]=e.values.map(W))}let r=[],l=[],s=Object.create(null);for(let t of e){let e=n,o=a;t.attributes&&(e=e.concat(t.attributes.map((e=>"string"==typeof e?O.find((t=>t.label==e))||{label:e,type:"property"}:(e.values&&(o==a&&(o=Object.create(o)),o[e.name]=e.values.map(W)),w(e))))));let i=new C(t,e,o);s[i.name]=i,r.push(i),t.top&&l.push(i)}l.length||(l=r);for(let t=0;t<r.length;t++){let O=e[t],n=r[t];if(O.children)for(let e of O.children)s[e]&&n.children.push(s[e]);else n.children=r}return e=>{var t;let{doc:O}=e.state,o=function(e,t){var O;let n=(0,d.syntaxTree)(e).resolveInner(t,-1),a=null;for(let e=n;!a&&e.parent;e=e.parent)"OpenTag"!=e.name&&"CloseTag"!=e.name&&"SelfClosingTag"!=e.name&&"MismatchedCloseTag"!=e.name||(a=e);if(a&&(a.to>t||a.lastChild.type.isError)){let e=a.parent;if("TagName"==n.name)return"CloseTag"==a.name||"MismatchedCloseTag"==a.name?{type:"closeTag",from:n.from,context:e}:{type:"openTag",from:n.from,context:_(e)};if("AttributeName"==n.name)return{type:"attrName",from:n.from,context:a};if("AttributeValue"==n.name)return{type:"attrValue",from:n.from,context:a};let O=n==a||"Attribute"==n.name?n.childBefore(t):n;return"StartTag"==(null==O?void 0:O.name)?{type:"openTag",from:t,context:_(e)}:"StartCloseTag"==(null==O?void 0:O.name)&&O.to<=t?{type:"closeTag",from:t,context:e}:"Is"==(null==O?void 0:O.name)?{type:"attrValue",from:t,context:a}:O?{type:"attrName",from:t,context:a}:null}if("StartCloseTag"==n.name)return{type:"closeTag",from:t,context:n.parent};for(;n.parent&&n.to==t&&!(null===(O=n.lastChild)||void 0===O?void 0:O.type.isError);)n=n.parent;return"Element"==n.name||"Text"==n.name||"Document"==n.name?{type:"tag",from:t,context:"Element"==n.name?n:_(n)}:null}(e.state,e.pos);if(!o||"tag"==o.type&&!e.explicit)return null;let{type:i,from:y,context:c}=o;if("openTag"==i){let e=l,t=v(O,c);if(t){let O=s[t];e=(null==O?void 0:O.children)||r}return{from:y,options:e.map((e=>e.completion)),validFor:b}}if("closeTag"==i){let n=v(O,c);return n?{from:y,to:e.pos+(">"==O.sliceString(e.pos,e.pos+1)?1:0),options:[(null===(t=s[n])||void 0===t?void 0:t.closeNameCompletion)||{label:n+">",type:"type"}],validFor:b}:null}if("attrName"==i){let e=s[P(O,c)];return{from:y,options:(null==e?void 0:e.attrs)||n,validFor:b}}if("attrValue"==i){let t=function(e,t,O){let n=t&&t.getChildren("Attribute").find((e=>e.from<=O&&e.to>=O)),a=n&&n.getChild("AttributeName");return a?e.sliceString(a.from,a.to):""}(O,c,y);if(!t)return null;let n=s[P(O,c)],r=((null==n?void 0:n.attrValues)||a)[t];return r&&r.length?{from:y,to:e.pos+('"'==O.sliceString(e.pos,e.pos+1)?1:0),options:r,validFor:/^"[^"]*"?$/}:null}if("tag"==i){let t=v(O,c),n=s[t],a=[],o=c&&c.lastChild;!t||o&&"CloseTag"==o.name&&P(O,o)==t||a.push(n?n.closeCompletion:{label:"</"+t+">",type:"type",boost:2});let i=a.concat(((null==n?void 0:n.children)||(c?r:l)).map((e=>e.openCompletion)));if(c&&(null==n?void 0:n.text.length)){let t=c.firstChild;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(i=i.concat(n.text))}return{from:y,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}return null}}const x=d.LRLanguage.define({name:"xml",parser:f.configure({props:[d.indentNodeProp.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit}),d.foldNodeProp.add({Element(e){let t=e.firstChild,O=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==O.name?O.from:e.to}:null}}),d.bracketMatchingHandle.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function X(e={}){let t=[x.data.of({autocomplete:V(e.elements||[],e.attributes||[])})];return!1!==e.autoCloseTags&&t.push(E),new d.LanguageSupport(x,t)}function Q(e,t,O=e.length){if(!t)return"";let n=t.firstChild,a=n&&n.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,O)):""}const E=T.EditorView.inputHandler.of(((e,t,O,n,a)=>{if(e.composing||e.state.readOnly||t!=O||">"!=n&&"/"!=n||!x.isActiveAt(e.state,t,-1))return!1;let r=a(),{state:l}=r,s=l.changeByRange((e=>{var t,O,a;let r,{head:s}=e,o=l.doc.sliceString(s-1,s)==n,i=(0,d.syntaxTree)(l).resolveInner(s,-1);if(o&&">"==n&&"EndTag"==i.name){let n=i.parent;if("CloseTag"!=(null===(O=null===(t=n.parent)||void 0===t?void 0:t.lastChild)||void 0===O?void 0:O.name)&&(r=Q(l.doc,n.parent,s)))return{range:e,changes:{from:s,to:s+(">"===l.doc.sliceString(s,s+1)?1:0),insert:`</${r}>`}}}else if(o&&"/"==n&&"StartCloseTag"==i.name){let e=i.parent;if(i.from==s-2&&"CloseTag"!=(null===(a=e.lastChild)||void 0===a?void 0:a.name)&&(r=Q(l.doc,e,s))){let e=s+(">"===l.doc.sliceString(s,s+1)?1:0),t=`${r}>`;return{range:h.EditorSelection.cursor(s+t.length,-1),changes:{from:s,to:e,insert:t}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([r,l.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}))}}]);
1
+ "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4588],{64588:(e,t,O)=>{O.r(t),O.d(t,{autoCloseTags:()=>E,completeFromSchema:()=>V,xml:()=>X,xmlLanguage:()=>x});var n=O(49906),a=O(92209);function r(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}let l=null,s=null,o=0;function i(e,t){let O=e.pos+t;if(s==e&&o==O)return l;for(;9==(n=e.peek(t))||10==n||13==n||32==n;)t++;var n;let a="";for(;;){let O=e.peek(t);if(!r(O))break;a+=String.fromCharCode(O),t++}return s=e,o=O,l=a||null}function y(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let t=0;t<e.length;t++)this.hash+=(this.hash<<4)+e.charCodeAt(t)+(e.charCodeAt(t)<<8)}const c=new n.IK({start:null,shift:(e,t,O,n)=>1==t?new y(i(n,1)||"",e):e,reduce:(e,t)=>11==t&&e?e.parent:e,reuse(e,t,O,n){let a=t.type.id;return 1==a||13==a?new y(i(n,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),p=new n.Jq(((e,t)=>{if(60==e.next)if(e.advance(),47==e.next){e.advance();let O=i(e,0);if(!O)return e.acceptToken(5);if(t.context&&O==t.context.name)return e.acceptToken(2);for(let n=t.context;n;n=n.parent)if(n.name==O)return e.acceptToken(3,-2);e.acceptToken(4)}else if(33!=e.next&&63!=e.next)return e.acceptToken(1)}),{contextual:!0});function $(e,t){return new n.Jq((O=>{for(let n=0,a=0;;a++){if(O.next<0){a&&O.acceptToken(e);break}if(O.next==t.charCodeAt(n)){if(n++,n==t.length){a>=t.length&&O.acceptToken(e,1-t.length);break}}else n=O.next==t.charCodeAt(0)?1:0;O.advance()}}))}const u=$(35,"--\x3e"),g=$(36,"?>"),S=$(37,"]]>"),m=(0,a.styleTags)({Text:a.tags.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":a.tags.angleBracket,TagName:a.tags.tagName,"MismatchedCloseTag/Tagname":[a.tags.tagName,a.tags.invalid],AttributeName:a.tags.attributeName,AttributeValue:a.tags.attributeValue,Is:a.tags.definitionOperator,"EntityReference CharacterReference":a.tags.character,Comment:a.tags.blockComment,ProcessingInst:a.tags.processingInstruction,DoctypeDecl:a.tags.documentMeta,Cdata:a.tags.special(a.tags.string)}),f=n.WQ.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#Cw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!WOy^O~Oa!YOy^O~Oy^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oy^O~O[!_Oy^O~O[!aOy^O~O[!cO`sOd!dOy^O~O[!cO`sOd!dO~Oa!eOy^O~Oy^Oz!gO~Oy^O[ma`madma~O[!jOy^O~O[!kOy^O~O[!lO`sOd!mO~OW!pOX!pOz!rO{!pO~O[!sOy^O~OW!pOX!pOz!vO{!pO~O",goto:"%[wPPPPPPPPPPxxP!OP!UPP!_!iP!oxxxP!u!{#R$Z$j$p$v$|PPPP%SXWORYbXRORYb_t`qru!T!U!bQ!h!YS!o!e!fR!t!nQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!i!nQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!i!]R!n!eQu`S!UqrU![u!U!bR!b!TQ!q!gR!u!qQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:47,context:c,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"]],propSources:[m],skippedNodes:[0],repeatNodeCount:8,tokenData:"IX~R!XOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs'ssv$nvw(Zw}$n}!O*l!O!P$n!P!Q,{!Q![$n![!].e!]!^$n!^!_1v!_!`Cz!`!aDm!a!bE`!b!c$n!c!}.e!}#P$n#P#QFx#Q#R$n#R#S.e#S#T$n#T#o.e#o%W$n%W%o.e%o%p$n%p&a.e&a&b$n&b1p.e1p4U$n4U4d.e4d4e$n4e$IS.e$IS$I`$n$I`$Ib.e$Ib$Kh$n$Kh%#t.e%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enizers:[p,u,g,S,0,1,2,3],topRules:{Document:[0,6]},tokenPrec:0});var d=O(17592),h=O(89843),T=O(63720);function P(e,t){let O=t&&t.getChild("TagName");return O?e.sliceString(O.from,O.to):""}function v(e,t){let O=t&&t.firstChild;return O&&"OpenTag"==O.name?P(e,O):""}function _(e){for(let t=e&&e.parent;t;t=t.parent)if("Element"==t.name)return t;return null}class C{constructor(e,t,O){this.attrs=t,this.attrValues=O,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map((e=>({label:e,type:"text"}))):[]}}const b=/^[:\-\.\w\u00b7-\uffff]*$/;function w(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function W(e){return"string"==typeof e?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function V(e,t){let O=[],n=[],a=Object.create(null);for(let e of t){let t=w(e);O.push(t),e.global&&n.push(t),e.values&&(a[e.name]=e.values.map(W))}let r=[],l=[],s=Object.create(null);for(let t of e){let e=n,o=a;t.attributes&&(e=e.concat(t.attributes.map((e=>"string"==typeof e?O.find((t=>t.label==e))||{label:e,type:"property"}:(e.values&&(o==a&&(o=Object.create(o)),o[e.name]=e.values.map(W)),w(e))))));let i=new C(t,e,o);s[i.name]=i,r.push(i),t.top&&l.push(i)}l.length||(l=r);for(let t=0;t<r.length;t++){let O=e[t],n=r[t];if(O.children)for(let e of O.children)s[e]&&n.children.push(s[e]);else n.children=r}return e=>{var t;let{doc:O}=e.state,o=function(e,t){var O;let n=(0,d.syntaxTree)(e).resolveInner(t,-1),a=null;for(let e=n;!a&&e.parent;e=e.parent)"OpenTag"!=e.name&&"CloseTag"!=e.name&&"SelfClosingTag"!=e.name&&"MismatchedCloseTag"!=e.name||(a=e);if(a&&(a.to>t||a.lastChild.type.isError)){let e=a.parent;if("TagName"==n.name)return"CloseTag"==a.name||"MismatchedCloseTag"==a.name?{type:"closeTag",from:n.from,context:e}:{type:"openTag",from:n.from,context:_(e)};if("AttributeName"==n.name)return{type:"attrName",from:n.from,context:a};if("AttributeValue"==n.name)return{type:"attrValue",from:n.from,context:a};let O=n==a||"Attribute"==n.name?n.childBefore(t):n;return"StartTag"==(null==O?void 0:O.name)?{type:"openTag",from:t,context:_(e)}:"StartCloseTag"==(null==O?void 0:O.name)&&O.to<=t?{type:"closeTag",from:t,context:e}:"Is"==(null==O?void 0:O.name)?{type:"attrValue",from:t,context:a}:O?{type:"attrName",from:t,context:a}:null}if("StartCloseTag"==n.name)return{type:"closeTag",from:t,context:n.parent};for(;n.parent&&n.to==t&&!(null===(O=n.lastChild)||void 0===O?void 0:O.type.isError);)n=n.parent;return"Element"==n.name||"Text"==n.name||"Document"==n.name?{type:"tag",from:t,context:"Element"==n.name?n:_(n)}:null}(e.state,e.pos);if(!o||"tag"==o.type&&!e.explicit)return null;let{type:i,from:y,context:c}=o;if("openTag"==i){let e=l,t=v(O,c);if(t){let O=s[t];e=(null==O?void 0:O.children)||r}return{from:y,options:e.map((e=>e.completion)),validFor:b}}if("closeTag"==i){let n=v(O,c);return n?{from:y,to:e.pos+(">"==O.sliceString(e.pos,e.pos+1)?1:0),options:[(null===(t=s[n])||void 0===t?void 0:t.closeNameCompletion)||{label:n+">",type:"type"}],validFor:b}:null}if("attrName"==i){let e=s[P(O,c)];return{from:y,options:(null==e?void 0:e.attrs)||n,validFor:b}}if("attrValue"==i){let t=function(e,t,O){let n=t&&t.getChildren("Attribute").find((e=>e.from<=O&&e.to>=O)),a=n&&n.getChild("AttributeName");return a?e.sliceString(a.from,a.to):""}(O,c,y);if(!t)return null;let n=s[P(O,c)],r=((null==n?void 0:n.attrValues)||a)[t];return r&&r.length?{from:y,to:e.pos+('"'==O.sliceString(e.pos,e.pos+1)?1:0),options:r,validFor:/^"[^"]*"?$/}:null}if("tag"==i){let t=v(O,c),n=s[t],a=[],o=c&&c.lastChild;!t||o&&"CloseTag"==o.name&&P(O,o)==t||a.push(n?n.closeCompletion:{label:"</"+t+">",type:"type",boost:2});let i=a.concat(((null==n?void 0:n.children)||(c?r:l)).map((e=>e.openCompletion)));if(c&&(null==n?void 0:n.text.length)){let t=c.firstChild;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(i=i.concat(n.text))}return{from:y,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}return null}}const x=d.LRLanguage.define({name:"xml",parser:f.configure({props:[d.indentNodeProp.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit}),d.foldNodeProp.add({Element(e){let t=e.firstChild,O=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==O.name?O.from:e.to}:null}}),d.bracketMatchingHandle.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function X(e={}){let t=[x.data.of({autocomplete:V(e.elements||[],e.attributes||[])})];return!1!==e.autoCloseTags&&t.push(E),new d.LanguageSupport(x,t)}function Q(e,t,O=e.length){if(!t)return"";let n=t.firstChild,a=n&&n.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,O)):""}const E=T.EditorView.inputHandler.of(((e,t,O,n,a)=>{if(e.composing||e.state.readOnly||t!=O||">"!=n&&"/"!=n||!x.isActiveAt(e.state,t,-1))return!1;let r=a(),{state:l}=r,s=l.changeByRange((e=>{var t,O,a;let r,{head:s}=e,o=l.doc.sliceString(s-1,s)==n,i=(0,d.syntaxTree)(l).resolveInner(s,-1);if(o&&">"==n&&"EndTag"==i.name){let n=i.parent;if("CloseTag"!=(null===(O=null===(t=n.parent)||void 0===t?void 0:t.lastChild)||void 0===O?void 0:O.name)&&(r=Q(l.doc,n.parent,s)))return{range:e,changes:{from:s,to:s+(">"===l.doc.sliceString(s,s+1)?1:0),insert:`</${r}>`}}}else if(o&&"/"==n&&"StartCloseTag"==i.name){let e=i.parent;if(i.from==s-2&&"CloseTag"!=(null===(a=e.lastChild)||void 0===a?void 0:a.name)&&(r=Q(l.doc,e,s))){let e=s+(">"===l.doc.sliceString(s,s+1)?1:0),t=`${r}>`;return{range:h.EditorSelection.cursor(s+t.length,-1),changes:{from:s,to:e,insert:t}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([r,l.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}))}}]);