notebook 7.1.0a0__py3-none-any.whl → 7.1.0a1__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 (271) hide show
  1. notebook/_version.py +1 -1
  2. notebook/app.py +5 -2
  3. notebook/static/1053.bundle.js +1 -1
  4. notebook/static/1157.bundle.js +1 -0
  5. notebook/static/1169.bundle.js +1 -1
  6. notebook/static/1198.bundle.js +1 -1
  7. notebook/static/131.bundle.js +2 -2
  8. notebook/static/1326.bundle.js +2 -0
  9. notebook/static/1337.bundle.js +1 -1
  10. notebook/static/134.bundle.js +1 -1
  11. notebook/static/1408.bundle.js +1 -1
  12. notebook/static/1496.bundle.js +1 -0
  13. notebook/static/1584.bundle.js +1 -1
  14. notebook/static/1604.bundle.js +1 -0
  15. notebook/static/1647.bundle.js +1 -1
  16. notebook/static/1650.bundle.js +1 -1
  17. notebook/static/1682.bundle.js +1 -1
  18. notebook/static/1684.bundle.js +1 -1
  19. notebook/static/1809.bundle.js +1 -1
  20. notebook/static/1827.bundle.js +1 -1
  21. notebook/static/1833.bundle.js +1 -1
  22. notebook/static/1835.bundle.js +1 -1
  23. notebook/static/1895.bundle.js +1 -0
  24. notebook/static/1950.bundle.js +1 -1
  25. notebook/static/1958.bundle.js +1 -1
  26. notebook/static/2007.bundle.js +1 -1
  27. notebook/static/2067.bundle.js +1 -1
  28. notebook/static/2088.bundle.js +1 -1
  29. notebook/static/2089.bundle.js +1 -1
  30. notebook/static/2122.bundle.js +1 -1
  31. notebook/static/2167.bundle.js +1 -1
  32. notebook/static/2184.bundle.js +1 -1
  33. notebook/static/2311.bundle.js +1 -1
  34. notebook/static/2401.bundle.js +1 -1
  35. notebook/static/2479.bundle.js +1 -1
  36. notebook/static/2489.bundle.js +1 -1
  37. notebook/static/2502.bundle.js +1 -0
  38. notebook/static/2512.bundle.js +1 -1
  39. notebook/static/2515.bundle.js +1 -0
  40. notebook/static/2552.bundle.js +1 -1
  41. notebook/static/2577.bundle.js +1 -0
  42. notebook/static/2607.bundle.js +1 -1
  43. notebook/static/2615.bundle.js +1 -1
  44. notebook/static/270.bundle.js +1 -1
  45. notebook/static/2866.bundle.js +1 -1
  46. notebook/static/2883.bundle.js +1 -1
  47. notebook/static/2913.bundle.js +1 -1
  48. notebook/static/2924.bundle.js +1 -1
  49. notebook/static/2944.bundle.js +1 -0
  50. notebook/static/3079.bundle.js +1 -1
  51. notebook/static/3129.bundle.js +1 -1
  52. notebook/static/3146.bundle.js +1 -1
  53. notebook/static/3190.bundle.js +2 -0
  54. notebook/static/3213.bundle.js +1 -1
  55. notebook/static/3301.bundle.js +1 -1
  56. notebook/static/3340.bundle.js +1 -1
  57. notebook/static/3360.bundle.js +1 -1
  58. notebook/static/3466.bundle.js +1 -1
  59. notebook/static/3512.bundle.js +1 -1
  60. notebook/static/3642.bundle.js +1 -0
  61. notebook/static/3676.bundle.js +1 -1
  62. notebook/static/3680.bundle.js +1 -1
  63. notebook/static/3768.bundle.js +1 -1
  64. notebook/static/377.bundle.js +1 -1
  65. notebook/static/3863.bundle.js +1 -1
  66. notebook/static/3881.bundle.js +1 -1
  67. notebook/static/4042.bundle.js +1 -1
  68. notebook/static/4058.bundle.js +1 -1
  69. notebook/static/4131.bundle.js +1 -1
  70. notebook/static/4166.bundle.js +1 -0
  71. notebook/static/4212.bundle.js +1 -1
  72. notebook/static/4271.bundle.js +1 -1
  73. notebook/static/4291.bundle.js +1 -1
  74. notebook/static/433.bundle.js +1 -0
  75. notebook/static/4382.bundle.js +1 -1
  76. notebook/static/4461.bundle.js +1 -0
  77. notebook/static/4499.bundle.js +1 -0
  78. notebook/static/4501.bundle.js +1 -0
  79. notebook/static/4526.bundle.js +1 -1
  80. notebook/static/4558.bundle.js +1 -1
  81. notebook/static/4588.bundle.js +1 -1
  82. notebook/static/4630.bundle.js +1 -1
  83. notebook/static/4645.bundle.js +1 -1
  84. notebook/static/4670.bundle.js +1 -1
  85. notebook/static/4810.bundle.js +1 -1
  86. notebook/static/4811.bundle.js +1 -1
  87. notebook/static/4837.bundle.js +1 -1
  88. notebook/static/4892.bundle.js +1 -0
  89. notebook/static/5088.bundle.js +1 -1
  90. notebook/static/5099.bundle.js +1 -1
  91. notebook/static/5115.bundle.js +1 -1
  92. notebook/static/5135.bundle.js +1 -1
  93. notebook/static/514.bundle.js +1 -1
  94. notebook/static/5313.bundle.js +1 -1
  95. notebook/static/5325.bundle.js +1 -1
  96. notebook/static/5346.bundle.js +1 -1
  97. notebook/static/5376.bundle.js +1 -0
  98. notebook/static/5426.bundle.js +1 -1
  99. notebook/static/5573.bundle.js +1 -1
  100. notebook/static/5601.bundle.js +1 -1
  101. notebook/static/5649.bundle.js +1 -1
  102. notebook/static/5733.bundle.js +1 -1
  103. notebook/static/5828.bundle.js +1 -1
  104. notebook/static/5850.bundle.js +1 -1
  105. notebook/static/5874.bundle.js +744 -0
  106. notebook/static/5874.bundle.js.LICENSE.txt +4 -0
  107. notebook/static/5912.bundle.js +1 -1
  108. notebook/static/5921.bundle.js +1 -1
  109. notebook/static/5982.bundle.js +1 -0
  110. notebook/static/6017.bundle.js +1 -1
  111. notebook/static/6027.bundle.js +1 -1
  112. notebook/static/6061.bundle.js +1 -1
  113. notebook/static/6139.bundle.js +1 -1
  114. notebook/static/62.bundle.js +1 -1
  115. notebook/static/6249.bundle.js +1 -0
  116. notebook/static/6256.bundle.js +1 -1
  117. notebook/static/6262.bundle.js +1 -0
  118. notebook/static/6271.bundle.js +1 -1
  119. notebook/static/6345.bundle.js +1 -1
  120. notebook/static/6405.bundle.js +1 -0
  121. notebook/static/6604.bundle.js +1 -1
  122. notebook/static/6621.bundle.js +1 -1
  123. notebook/static/6627.bundle.js +1 -1
  124. notebook/static/6731.bundle.js +1 -1
  125. notebook/static/6815.bundle.js +1 -1
  126. notebook/static/6853.bundle.js +1 -1
  127. notebook/static/{4842.bundle.js → 6869.bundle.js} +1 -1
  128. notebook/static/6893.bundle.js +1 -1
  129. notebook/static/690.bundle.js +1 -1
  130. notebook/static/6962.bundle.js +1 -1
  131. notebook/static/6972.bundle.js +1 -1
  132. notebook/static/6999.bundle.js +1 -1
  133. notebook/static/7154.bundle.js +1 -1
  134. notebook/static/7226.bundle.js +1 -1
  135. notebook/static/7252.bundle.js +1 -1
  136. notebook/static/7302.bundle.js +1 -1
  137. notebook/static/7333.bundle.js +2 -0
  138. notebook/static/7339.bundle.js +1 -0
  139. notebook/static/7369.bundle.js +1 -1
  140. notebook/static/7386.bundle.js +1 -1
  141. notebook/static/7391.bundle.js +1 -1
  142. notebook/static/7394.bundle.js +1 -1
  143. notebook/static/7427.bundle.js +1 -1
  144. notebook/static/7582.bundle.js +1 -1
  145. notebook/static/{7407.bundle.js → 7590.bundle.js} +1 -1
  146. notebook/static/7603.bundle.js +1 -1
  147. notebook/static/7639.bundle.js +1 -1
  148. notebook/static/7674.bundle.js +1 -1
  149. notebook/static/7684.bundle.js +1 -1
  150. notebook/static/7811.bundle.js +1 -1
  151. notebook/static/7819.bundle.js +1 -1
  152. notebook/static/7866.bundle.js +1 -1
  153. notebook/static/7900.bundle.js +1 -1
  154. notebook/static/7906.bundle.js +1 -1
  155. notebook/static/7943.bundle.js +1 -0
  156. notebook/static/8010.bundle.js +1 -1
  157. notebook/static/8032.bundle.js +1 -1
  158. notebook/static/8055.bundle.js +1 -0
  159. notebook/static/8579.bundle.js +1 -1
  160. notebook/static/8633.bundle.js +1 -1
  161. notebook/static/8771.bundle.js +1 -1
  162. notebook/static/8781.bundle.js +1 -0
  163. notebook/static/882.bundle.js +1 -0
  164. notebook/static/8845.bundle.js +1 -1
  165. notebook/static/8875.bundle.js +1 -1
  166. notebook/static/8907.bundle.js +1 -1
  167. notebook/static/8928.bundle.js +1 -1
  168. notebook/static/8929.bundle.js +1 -1
  169. notebook/static/893.bundle.js +1 -1
  170. notebook/static/901.bundle.js +1 -1
  171. notebook/static/9068.bundle.js +1 -1
  172. notebook/static/911.bundle.js +1 -1
  173. notebook/static/9151.bundle.js +1 -1
  174. notebook/static/9161.bundle.js +1 -1
  175. notebook/static/9239.bundle.js +1 -1
  176. notebook/static/9250.bundle.js +1 -1
  177. notebook/static/9268.bundle.js +1 -1
  178. notebook/static/9284.bundle.js +1 -0
  179. notebook/static/9308.bundle.js +1 -1
  180. notebook/static/9335.bundle.js +1 -1
  181. notebook/static/9341.bundle.js +1 -1
  182. notebook/static/9380.bundle.js +1 -1
  183. notebook/static/9466.bundle.js +1 -0
  184. notebook/static/9554.bundle.js +1 -0
  185. notebook/static/9605.bundle.js +1 -1
  186. notebook/static/9638.bundle.js +1 -1
  187. notebook/static/9680.bundle.js +1 -1
  188. notebook/static/9685.bundle.js +1 -1
  189. notebook/static/9752.bundle.js +1 -1
  190. notebook/static/9799.bundle.js +1 -1
  191. notebook/static/9821.bundle.js +1 -1
  192. notebook/static/9852.bundle.js +1 -1
  193. notebook/static/9987.bundle.js +1 -0
  194. notebook/static/bundle.js +1 -1
  195. notebook/static/third-party-licenses.json +177 -111
  196. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig +15 -15
  197. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig +5 -5
  198. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig +6 -6
  199. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig +10 -10
  200. notebook-7.1.0a1.data/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +17 -0
  201. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig +17 -17
  202. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/package.json +12 -12
  203. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +11 -11
  204. notebook-7.1.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/50.e41798f78fa32030e149.js +1 -0
  205. notebook-7.1.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.9fa8bfe8da6242a4fc6b.js +1 -0
  206. notebook-7.1.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.79046a2eb17bde1af38c.js → notebook-7.1.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.faa0d74ec3a151a81a90.js +1 -1
  207. notebook-7.1.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js +1 -0
  208. notebook-7.1.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.02d92bfa6cab99929020.js +1 -0
  209. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/third-party-licenses.json +4 -4
  210. {notebook-7.1.0a0.dist-info → notebook-7.1.0a1.dist-info}/METADATA +2 -2
  211. notebook-7.1.0a1.dist-info/RECORD +430 -0
  212. notebook/static/1306.bundle.js +0 -1
  213. notebook/static/1945.bundle.js +0 -1
  214. notebook/static/1964.bundle.js +0 -1
  215. notebook/static/3412.bundle.js +0 -1
  216. notebook/static/3434.bundle.js +0 -1
  217. notebook/static/3618.bundle.js +0 -1
  218. notebook/static/3672.bundle.js +0 -1
  219. notebook/static/3791.bundle.js +0 -1
  220. notebook/static/3993.bundle.js +0 -1
  221. notebook/static/4234.bundle.js +0 -1
  222. notebook/static/4793.bundle.js +0 -1
  223. notebook/static/4826.bundle.js +0 -1
  224. notebook/static/4867.bundle.js +0 -1
  225. notebook/static/5058.bundle.js +0 -1
  226. notebook/static/5329.bundle.js +0 -1
  227. notebook/static/5591.bundle.js +0 -1
  228. notebook/static/5642.bundle.js +0 -1
  229. notebook/static/6359.bundle.js +0 -1
  230. notebook/static/6667.bundle.js +0 -1
  231. notebook/static/6843.bundle.js +0 -1
  232. notebook/static/7763.bundle.js +0 -1
  233. notebook/static/7764.bundle.js +0 -1
  234. notebook/static/8723.bundle.js +0 -2
  235. notebook/static/880.bundle.js +0 -1
  236. notebook/static/8968.bundle.js +0 -1
  237. notebook/static/9086.bundle.js +0 -1
  238. notebook/static/9213.bundle.js +0 -2
  239. notebook/static/9381.bundle.js +0 -1
  240. notebook/static/9514.bundle.js +0 -1
  241. notebook/static/9545.bundle.js +0 -1
  242. notebook/static/973.bundle.js +0 -2
  243. notebook-7.1.0a0.data/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +0 -10
  244. notebook-7.1.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.ffc2f99974c3b184be5a.js +0 -1
  245. notebook-7.1.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/776.c7baadfaddfd4518c935.js +0 -1
  246. notebook-7.1.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/922.0beff4620746e288bd5e.js +0 -1
  247. notebook-7.1.0a0.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.e73b0142911cf6300a74.js +0 -1
  248. notebook-7.1.0a0.dist-info/RECORD +0 -427
  249. /notebook/static/{9213.bundle.js.LICENSE.txt → 1326.bundle.js.LICENSE.txt} +0 -0
  250. /notebook/static/{8723.bundle.js.LICENSE.txt → 3190.bundle.js.LICENSE.txt} +0 -0
  251. /notebook/static/{973.bundle.js.LICENSE.txt → 7333.bundle.js.LICENSE.txt} +0 -0
  252. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/etc/jupyter/jupyter_server_config.d/notebook.json +0 -0
  253. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/applications/jupyter-notebook.desktop +0 -0
  254. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/icons/hicolor/scalable/apps/notebook.svg +0 -0
  255. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json +0 -0
  256. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json +0 -0
  257. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json +0 -0
  258. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json +0 -0
  259. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json +0 -0
  260. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json +0 -0
  261. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json +0 -0
  262. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json +0 -0
  263. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json +0 -0
  264. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json +0 -0
  265. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json +0 -0
  266. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/interface-switcher.json +0 -0
  267. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +0 -0
  268. {notebook-7.1.0a0.data → notebook-7.1.0a1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/style.js +0 -0
  269. {notebook-7.1.0a0.dist-info → notebook-7.1.0a1.dist-info}/WHEEL +0 -0
  270. {notebook-7.1.0a0.dist-info → notebook-7.1.0a1.dist-info}/entry_points.txt +0 -0
  271. {notebook-7.1.0a0.dist-info → notebook-7.1.0a1.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[7339],{47339:(t,e,a)=>{a.d(e,{diagram:()=>f});var i=a(56869),n=a(23617),d=a(7259),r=a(67406),s=a(77019);a(27693),a(7608),a(31699);const o={},c=(t,e,a)=>{const i=(0,s.c)().state.padding,n=2*(0,s.c)().state.padding,d=t.node().getBBox(),r=d.width,o=d.x,c=t.append("text").attr("x",0).attr("y",(0,s.c)().state.titleShift).attr("font-size",(0,s.c)().state.fontSize).attr("class","state-title").text(e.id),g=c.node().getBBox().width+n;let p,h=Math.max(g,r);h===r&&(h+=n);const l=t.node().getBBox();e.doc,p=o-i,g>r&&(p=(r-h)/2+i),Math.abs(o-l.x)<i&&g>r&&(p=o-(g-r)/2);const x=1-(0,s.c)().state.textHeight;return t.insert("rect",":first-child").attr("x",p).attr("y",x).attr("class",a?"alt-composit":"composit").attr("width",h).attr("height",l.height+(0,s.c)().state.textHeight+(0,s.c)().state.titleShift+1).attr("rx","0"),c.attr("x",p+i),g<=r&&c.attr("x",o+(h-n)/2-g/2+i),t.insert("rect",":first-child").attr("x",p).attr("y",(0,s.c)().state.titleShift-(0,s.c)().state.textHeight-(0,s.c)().state.padding).attr("width",h).attr("height",3*(0,s.c)().state.textHeight).attr("rx",(0,s.c)().state.radius),t.insert("rect",":first-child").attr("x",p).attr("y",(0,s.c)().state.titleShift-(0,s.c)().state.textHeight-(0,s.c)().state.padding).attr("width",h).attr("height",l.height+3+2*(0,s.c)().state.textHeight).attr("rx",(0,s.c)().state.radius),t},g=function(t,e){const a=e.id,i={id:a,label:e.id,width:0,height:0},n=t.append("g").attr("id",a).attr("class","stateGroup");"start"===e.type&&(t=>{t.append("circle").attr("class","start-state").attr("r",(0,s.c)().state.sizeUnit).attr("cx",(0,s.c)().state.padding+(0,s.c)().state.sizeUnit).attr("cy",(0,s.c)().state.padding+(0,s.c)().state.sizeUnit)})(n),"end"===e.type&&(t=>{t.append("circle").attr("class","end-state-outer").attr("r",(0,s.c)().state.sizeUnit+(0,s.c)().state.miniPadding).attr("cx",(0,s.c)().state.padding+(0,s.c)().state.sizeUnit+(0,s.c)().state.miniPadding).attr("cy",(0,s.c)().state.padding+(0,s.c)().state.sizeUnit+(0,s.c)().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",(0,s.c)().state.sizeUnit).attr("cx",(0,s.c)().state.padding+(0,s.c)().state.sizeUnit+2).attr("cy",(0,s.c)().state.padding+(0,s.c)().state.sizeUnit+2)})(n),"fork"!==e.type&&"join"!==e.type||((t,e)=>{let a=(0,s.c)().state.forkWidth,i=(0,s.c)().state.forkHeight;if(e.parentId){let t=a;a=i,i=t}t.append("rect").style("stroke","black").style("fill","black").attr("width",a).attr("height",i).attr("x",(0,s.c)().state.padding).attr("y",(0,s.c)().state.padding)})(n,e),"note"===e.type&&((t,e)=>{e.attr("class","state-note");const a=e.append("rect").attr("x",0).attr("y",(0,s.c)().state.padding),i=e.append("g"),{textWidth:n,textHeight:d}=((t,e,a,i)=>{let n=0;const d=i.append("text");d.style("text-anchor","start"),d.attr("class","noteText");let r=t.replace(/\r\n/g,"<br/>");r=r.replace(/\n/g,"<br/>");const o=r.split(s.e.lineBreakRegex);let c=1.25*(0,s.c)().state.noteMargin;for(const t of o){const e=t.trim();if(e.length>0){const t=d.append("tspan");t.text(e),0===c&&(c+=t.node().getBBox().height),n+=c,t.attr("x",0+(0,s.c)().state.noteMargin),t.attr("y",0+n+1.25*(0,s.c)().state.noteMargin)}}return{textWidth:d.node().getBBox().width,textHeight:n}})(t,0,0,i);a.attr("height",d+2*(0,s.c)().state.noteMargin),a.attr("width",n+2*(0,s.c)().state.noteMargin)})(e.note.text,n),"divider"===e.type&&(t=>{t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,s.c)().state.textHeight).attr("class","divider").attr("x2",2*(0,s.c)().state.textHeight).attr("y1",0).attr("y2",0)})(n),"default"===e.type&&0===e.descriptions.length&&((t,e)=>{const a=t.append("text").attr("x",2*(0,s.c)().state.padding).attr("y",(0,s.c)().state.textHeight+2*(0,s.c)().state.padding).attr("font-size",(0,s.c)().state.fontSize).attr("class","state-title").text(e.id).node().getBBox();t.insert("rect",":first-child").attr("x",(0,s.c)().state.padding).attr("y",(0,s.c)().state.padding).attr("width",a.width+2*(0,s.c)().state.padding).attr("height",a.height+2*(0,s.c)().state.padding).attr("rx",(0,s.c)().state.radius)})(n,e),"default"===e.type&&e.descriptions.length>0&&((t,e)=>{const a=t.append("text").attr("x",2*(0,s.c)().state.padding).attr("y",(0,s.c)().state.textHeight+1.3*(0,s.c)().state.padding).attr("font-size",(0,s.c)().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),i=a.height,n=t.append("text").attr("x",(0,s.c)().state.padding).attr("y",i+.4*(0,s.c)().state.padding+(0,s.c)().state.dividerMargin+(0,s.c)().state.textHeight).attr("class","state-description");let d=!0,r=!0;e.descriptions.forEach((function(t){d||(function(t,e,a){const i=t.append("tspan").attr("x",2*(0,s.c)().state.padding).text(e);a||i.attr("dy",(0,s.c)().state.textHeight)}(n,t,r),r=!1),d=!1}));const o=t.append("line").attr("x1",(0,s.c)().state.padding).attr("y1",(0,s.c)().state.padding+i+(0,s.c)().state.dividerMargin/2).attr("y2",(0,s.c)().state.padding+i+(0,s.c)().state.dividerMargin/2).attr("class","descr-divider"),c=n.node().getBBox(),g=Math.max(c.width,a.width);o.attr("x2",g+3*(0,s.c)().state.padding),t.insert("rect",":first-child").attr("x",(0,s.c)().state.padding).attr("y",(0,s.c)().state.padding).attr("width",g+2*(0,s.c)().state.padding).attr("height",c.height+i+2*(0,s.c)().state.padding).attr("rx",(0,s.c)().state.radius)})(n,e);const d=n.node().getBBox();return i.width=d.width+2*(0,s.c)().state.padding,i.height=d.height+2*(0,s.c)().state.padding,r=i,o[a]=r,i;var r};let p,h=0;const l={},x=(t,e,a,o,u,f,y)=>{const w=new r.k({compound:!0,multigraph:!0});let b,B=!0;for(b=0;b<t.length;b++)if("relation"===t[b].stmt){B=!1;break}a?w.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:B?1:p.edgeLengthFactor,nodeSep:B?1:50,isMultiGraph:!0}):w.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:B?1:p.edgeLengthFactor,nodeSep:B?1:50,ranker:"tight-tree",isMultiGraph:!0}),w.setDefaultEdgeLabel((function(){return{}})),y.db.extract(t);const m=y.db.getStates(),k=y.db.getRelations(),E=Object.keys(m);for(const t of E){const i=m[t];let n;if(a&&(i.parentId=a),i.doc){let t=e.append("g").attr("id",i.id).attr("class","stateGroup");n=x(i.doc,t,i.id,!o,u,f,y);{t=c(t,i,o);let e=t.node().getBBox();n.width=e.width,n.height=e.height+p.padding/2,l[i.id]={y:p.compositTitleSize}}}else n=g(e,i);if(i.note){const t={descriptions:[],id:i.id+"-note",note:i.note,type:"note"},a=g(e,t);"left of"===i.note.position?(w.setNode(n.id+"-note",a),w.setNode(n.id,n)):(w.setNode(n.id,n),w.setNode(n.id+"-note",a)),w.setParent(n.id,n.id+"-group"),w.setParent(n.id+"-note",n.id+"-group")}else w.setNode(n.id,n)}s.l.debug("Count=",w.nodeCount(),w);let N=0;k.forEach((function(t){var e;N++,s.l.debug("Setting edge",t),w.setEdge(t.id1,t.id2,{relation:t,width:(e=t.title,e?e.length*p.fontSizeFactor:1),height:p.labelHeight*s.e.getRows(t.title).length,labelpos:"c"},"id"+N)})),(0,d.bK)(w),s.l.debug("Graph after layout",w.nodes());const v=e.node();w.nodes().forEach((function(t){void 0!==t&&void 0!==w.node(t)?(s.l.warn("Node "+t+": "+JSON.stringify(w.node(t))),u.select("#"+v.id+" #"+t).attr("transform","translate("+(w.node(t).x-w.node(t).width/2)+","+(w.node(t).y+(l[t]?l[t].y:0)-w.node(t).height/2)+" )"),u.select("#"+v.id+" #"+t).attr("data-x-shift",w.node(t).x-w.node(t).width/2),f.querySelectorAll("#"+v.id+" #"+t+" .divider").forEach((t=>{const e=t.parentElement;let a=0,i=0;e&&(e.parentElement&&(a=e.parentElement.getBBox().width),i=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(i)&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",a-i-8)}))):s.l.debug("No Node "+t+": "+JSON.stringify(w.node(t)))}));let M=v.getBBox();w.edges().forEach((function(t){void 0!==t&&void 0!==w.edge(t)&&(s.l.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(w.edge(t))),function(t,e,a){e.points=e.points.filter((t=>!Number.isNaN(t.y)));const d=e.points,r=(0,n.jvg)().x((function(t){return t.x})).y((function(t){return t.y})).curve(n.$0Z),o=t.append("path").attr("d",r(d)).attr("id","edge"+h).attr("class","transition");let c="";if((0,s.c)().state.arrowMarkerAbsolute&&(c=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,c=c.replace(/\(/g,"\\("),c=c.replace(/\)/g,"\\)")),o.attr("marker-end","url("+c+"#"+function(t){switch(t){case i.d.relationType.AGGREGATION:return"aggregation";case i.d.relationType.EXTENSION:return"extension";case i.d.relationType.COMPOSITION:return"composition";case i.d.relationType.DEPENDENCY:return"dependency"}}(i.d.relationType.DEPENDENCY)+"End)"),void 0!==a.title){const i=t.append("g").attr("class","stateLabel"),{x:n,y:d}=s.u.calcLabelPosition(e.points),r=s.e.getRows(a.title);let o=0;const c=[];let g=0,p=0;for(let t=0;t<=r.length;t++){const e=i.append("text").attr("text-anchor","middle").text(r[t]).attr("x",n).attr("y",d+o),a=e.node().getBBox();if(g=Math.max(g,a.width),p=Math.min(p,a.x),s.l.info(a.x,n,d+o),0===o){const t=e.node().getBBox();o=t.height,s.l.info("Title height",o,d)}c.push(e)}let h=o*r.length;if(r.length>1){const t=(r.length-1)*o*.5;c.forEach(((e,a)=>e.attr("y",d+a*o-t))),h=o*r.length}const l=i.node().getBBox();i.insert("rect",":first-child").attr("class","box").attr("x",n-g/2-(0,s.c)().state.padding/2).attr("y",d-h/2-(0,s.c)().state.padding/2-3.5).attr("width",g+(0,s.c)().state.padding).attr("height",h+(0,s.c)().state.padding),s.l.info(l)}h++}(e,w.edge(t),w.edge(t).relation))})),M=v.getBBox();const S={id:a||"root",label:a||"root",width:0,height:0};return S.width=M.width+2*p.padding,S.height=M.height+2*p.padding,s.l.debug("Doc rendered",S,w),S},u={setConf:function(){},draw:function(t,e,a,i){p=(0,s.c)().state;const d=(0,s.c)().securityLevel;let r;"sandbox"===d&&(r=(0,n.Ys)("#i"+e));const o="sandbox"===d?(0,n.Ys)(r.nodes()[0].contentDocument.body):(0,n.Ys)("body"),c="sandbox"===d?r.nodes()[0].contentDocument:document;s.l.debug("Rendering diagram "+t);const g=o.select(`[id='${e}']`);g.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z");const h=i.db.getRootDoc();x(h,g,void 0,!1,o,c,i);const l=p.padding,u=g.node().getBBox(),f=u.width+2*l,y=u.height+2*l,w=1.75*f;(0,s.i)(g,y,w,p.useMaxWidth),g.attr("viewBox",`${u.x-p.padding} ${u.y-p.padding} `+f+" "+y)}},f={parser:i.p,db:i.d,renderer:u,styles:i.s,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,i.d.clear()}}}}]);