MCPcopy
hub / github.com/google/adk-python / slice

Method slice

src/google/adk/cli/browser/main-3CUQG2IN.js:245–245  ·  view source on GitHub ↗
(e,A=this.length)

Source from the content-addressed store, hash-verified

243${E}`,`
244${u}}`])},g=B=>B.map(u=>`.${C(u)}`).join(""),C=B=>qlA.test(B)?B:JSON.stringify(B),d=(B,[u,E,f],[m,v,S])=>u.length+B.reduce((k,M)=>k+M.length+E.length,0)-E.length+f.length<=(e?.maxLineLength??tgA)?u+B.join(E)+f:m+B.join(v)+S;return r(i,"")};function VO(i,e,A){return er(YlA(e)?yM(e,A):e,A)(i)}var qO={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};var ngA={prefix:"far",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M384 32c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96C0 60.7 28.7 32 64 32l320 0zM64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16L64 80zm230.7 89.9c7.8-10.7 22.8-13.1 33.5-5.3 10.7 7.8 13.1 22.8 5.3 33.5L211.4 366.1c-4.1 5.7-10.5 9.3-17.5 9.8-7 .5-13.9-2-18.8-6.9l-55.9-55.9c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l36 36 105.6-145.2z"]},DM=ngA;var WO={prefix:"far",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M296.5 291.1C321 265.2 336 230.4 336 192 336 112.5 271.5 48 192 48S48 112.5 48 192c0 38.4 15 73.2 39.5 99.1 21.3 22.4 44.9 54 53.3 92.9l102.4 0c8.4-39 32-70.5 53.3-92.9zm34.8 33C307.7 349 288 379.4 288 413.7l0 18.3c0 44.2-35.8 80-80 80l-32 0c-44.2 0-80-35.8-80-80l0-18.3C96 379.4 76.3 349 52.7 324.1 20 289.7 0 243.2 0 192 0 86 86 0 192 0S384 86 384 192c0 51.2-20 97.7-52.7 132.1zM144 184c0 13.3-10.7 24-24 24s-24-10.7-24-24c0-48.6 39.4-88 88-88 13.3 0 24 10.7 24 24s-10.7 24-24 24c-22.1 0-40 17.9-40 40z"]};var vM={prefix:"far",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M384 80c8.8 0 16 7.2 16 16l0 320c0 8.8-7.2 16-16 16L64 432c-8.8 0-16-7.2-16-16L48 96c0-8.8 7.2-16 16-16l320 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32z"]};var ZO={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M480.1 192l7.9 0c13.3 0 24-10.7 24-24l0-144c0-9.7-5.8-18.5-14.8-22.2S477.9 .2 471 7L419.3 58.8C375 22.1 318 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1C79.2 135.5 159.3 64 256 64 300.4 64 341.2 79 373.7 104.3L327 151c-6.9 6.9-8.9 17.2-5.2 26.2S334.3 192 344 192l136.1 0zm29.4 100.5c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-44.4 0-85.2-15-117.7-40.3L185 361c6.9-6.9 8.9-17.2 5.2-26.2S177.7 320 168 320L24 320c-13.3 0-24 10.7-24 24L0 488c0 9.7 5.8 18.5 14.8 22.2S34.1 511.8 41 505l51.8-51.8C137 489.9 194 512 256 512 385 512 491.7 416.6 509.4 292.5z"]};var bM={prefix:"fas",iconName:"paste",icon:[512,512,["file-clipboard"],"f0ea","M64 0C28.7 0 0 28.7 0 64L0 384c0 35.3 28.7 64 64 64l112 0 0-224c0-61.9 50.1-112 112-112l64 0 0-48c0-35.3-28.7-64-64-64L64 0zM248 112l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24zm40 48c-35.3 0-64 28.7-64 64l0 224c0 35.3 28.7 64 64 64l160 0c35.3 0 64-28.7 64-64l0-165.5c0-17-6.7-33.3-18.7-45.3l-58.5-58.5c-12-12-28.3-18.7-45.3-18.7L288 160z"]};var ogA={prefix:"fas",iconName:"crop-simple",icon:[512,512,["crop-alt"],"f565","M128 32c0-17.7-14.3-32-32-32S64 14.3 64 32l0 32-32 0C14.3 64 0 78.3 0 96s14.3 32 32 32l32 0 0 256c0 35.3 28.7 64 64 64l208 0 0-64-208 0 0-352zM384 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-32 32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0 0-256c0-35.3-28.7-64-64-64l-208 0 0 64 208 0 0 352z"]},XO=ogA;var Ku={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M32 64C19.1 64 7.4 71.8 2.4 83.8S.2 109.5 9.4 118.6L192 301.3 192 416c0 8.5 3.4 16.6 9.4 22.6l64 64c9.2 9.2 22.9 11.9 34.9 6.9S320 492.9 320 480l0-178.7 182.6-182.6c9.2-9.2 11.9-22.9 6.9-34.9S492.9 64 480 64L32 64z"]};var agA={prefix:"fas",iconName:"square-caret-down",icon:[448,512,["caret-square-down"],"f150","M384 480c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0zM224 352c-6.7 0-13-2.8-17.6-7.7l-104-112c-6.5-7-8.2-17.2-4.4-25.9S110.5 192 120 192l208 0c9.5 0 18.2 5.7 22 14.4s2.1 18.9-4.4 25.9l-104 112c-4.5 4.9-10.9 7.7-17.6 7.7z"]},$O=agA;var JB={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M249.3 235.8c10.2 12.6 9.5 31.1-2.2 42.8l-128 128c-9.2 9.2-22.9 11.9-34.9 6.9S64.5 396.9 64.5 384l0-256c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l128 128 2.2 2.4z"]};var rgA={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Uu=rgA;var AJ={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},eJ={prefix:"fas",iconName:"caret-left",icon:[256,512,[],"f0d9","M7.7 235.8c-10.3 12.6-9.5 31.1 2.2 42.8l128 128c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-256c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-128 128-2.2 2.4z"]};var tJ={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M201.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L224 173.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]};var iJ={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8-79.3 23.6-137.1 97.1-137.1 184.1 0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256 512 397.4 397.4 512 256 512S0 397.4 0 256c0-116 77.1-213.9 182.9-245.4 16.9-5 34.8 4.6 39.8 21.5z"]};var sgA={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},MM=sgA;var lgA={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L368 46.1 465.9 144 490.3 119.6c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L432 177.9 334.1 80 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},nJ=lgA;var SM={prefix:"fas",iconName:"clone",icon:[512,512,[],"f24d","M288 448l-224 0 0-224 48 0 0-64-48 0c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l224 0c35.3 0 64-28.7 64-64l0-48-64 0 0 48zm-64-96l224 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L224 0c-35.3 0-64 28.7-64 64l0 224c0 35.3 28.7 64 64 64z"]};var ggA={prefix:"fas",iconName:"square-check",icon:[448,512,[9745,9989,61510,"check-square"],"f14a","M384 32c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96C0 60.7 28.7 32 64 32l320 0zM342 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L189.1 315.2 137 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.9 7.5 18.8 7s13.4-4.1 17.5-9.8L347.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z"]},kM=ggA;var cgA={prefix:"fas",iconName:"square-caret-up",icon:[448,512,["caret-square-up"],"f151","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM224 160c6.7 0 13 2.8 17.6 7.7l104 112c6.5 7 8.2 17.2 4.4 25.9S337.5 320 328 320l-208 0c-9.5 0-18.2-5.7-22-14.4s-2.1-18.9 4.4-25.9l104-112c4.5-4.9 10.9-7.7 17.6-7.7z"]},oJ=cgA;var Tu={prefix:"fas",iconName:"code",icon:[576,512,[],"f121","M360.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm64.6 136.1c-12.5 12.5-12.5 32.8 0 45.3l73.4 73.4-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0zm-274.7 0c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 150.6 182.6c12.5-12.5 12.5-32.8 0-45.3z"]};var _M={prefix:"fas",iconName:"angle-right",icon:[256,512,[8250],"f105","M247.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L179.2 256 41.9 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"]};var CgA={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 336a80 80 0 1 0 -.6-160 80 80 0 1 0 .6 160z"]},aJ=CgA;var rJ={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2S34.1 320.2 41 327l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2S177.7 512 168 512z"]};var oC={prefix:"fas",iconName:"wrench",icon:[576,512,[128295],"f0ad","M509.4 98.6c7.6-7.6 20.3-5.7 24.1 4.3 6.8 17.7 10.5 37 10.5 57.1 0 88.4-71.6 160-160 160-17.5 0-34.4-2.8-50.2-8L146.9 498.9c-28.1 28.1-73.7 28.1-101.8 0s-28.1-73.7 0-101.8L232 210.2c-5.2-15.8-8-32.6-8-50.2 0-88.4 71.6-160 160-160 20.1 0 39.4 3.7 57.1 10.5 10 3.8 11.8 16.5 4.3 24.1l-88.7 88.7c-3 3-4.7 7.1-4.7 11.3l0 41.4c0 8.8 7.2 16 16 16l41.4 0c4.2 0 8.3-1.7 11.3-4.7l88.7-88.7z"]},m6={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M136.7 5.9C141.1-7.2 153.3-16 167.1-16l113.9 0c13.8 0 26 8.8 30.4 21.9L320 32 416 32c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 8.7-26.1zM32 144l384 0 0 304c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-304zm88 64c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24z"]};var w6={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]};var sJ={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},lJ=sJ;var Ou=sJ;var dd={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M352.9 21.2L308 66.1 445.9 204 490.8 159.1C504.4 145.6 512 127.2 512 108s-7.6-37.6-21.2-51.1L455.1 21.2C441.6 7.6 423.2 0 404 0s-37.6 7.6-51.1 21.2zM274.1 100L58.9 315.1c-10.7 10.7-18.5 24.1-22.6 38.7L.9 481.6c-2.3 8.3 0 17.3 6.2 23.4s15.1 8.5 23.4 6.2l127.8-35.5c14.6-4.1 27.9-11.8 38.7-22.6L412 237.9 274.1 100z"]};var gJ={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]};var cJ={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]};var dgA={prefix:"fas",iconName:"arrow-down-short-wide",icon:[576,512,["sort-amount-desc","sort-amount-down-alt"],"f884","M246.6 374.6l-96 96c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L96 370.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 306.7 41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3zM320 32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]};var Ju=dgA;var IgA={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},w2=IgA;var BgA={prefix:"fas",iconName:"scissors",icon:[512,512,[9984,9986,9988,"cut"],"f0c4","M192 256l-39.5 39.5c-12.6-4.9-26.2-7.5-40.5-7.5-61.9 0-112 50.1-112 112s50.1 112 112 112 112-50.1 112-112c0-14.3-2.7-27.9-7.5-40.5L499.2 76.8c7.1-7.1 7.1-18.5 0-25.6-28.3-28.3-74.1-28.3-102.4 0L256 192 216.5 152.5c4.9-12.6 7.5-26.2 7.5-40.5 0-61.9-50.1-112-112-112S0 50.1 0 112 50.1 224 112 224c14.3 0 27.9-2.7 40.5-7.5L192 256zm97.9 97.9L396.8 460.8c28.3 28.3 74.1 28.3 102.4 0 7.1-7.1 7.1-18.5 0-25.6l-145.3-145.3-64 64zM64 112a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm48 240a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},Id=BgA;var Yu={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[512,512,[8644,"exchange"],"f0ec","M502.6 150.6l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L402.7 160 32 160c-17.7 0-32-14.3-32-32S14.3 96 32 96l370.7 0-41.4-41.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3zm-397.3 352l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L109.3 352 480 352c17.7 0 32 14.3 32 32s-14.3 32-32 32l-370.7 0 41.4 41.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0z"]};var xM={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M140.3 135.2c12.6-10.3 31.1-9.5 42.8 2.2l128 128c9.2 9.2 11.9 22.9 6.9 34.9S301.4 320 288.5 320l-256 0c-12.9 0-24.6-7.8-29.6-19.8S.7 274.5 9.9 265.4l128-128 2.4-2.2z"]};var CJ={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439.5 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2S450.2 240 440.5 240l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87zM72.5 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S62.8 272 72.5 272z"]};var Bd={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]};var aC={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-200.6c0-17.4-7.1-34.1-19.7-46.2L370.6 17.8C358.7 6.4 342.8 0 326.3 0L192 0zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-64 0 0 16-192 0 0-256 16 0 0-64-16 0z"]};var hgA={prefix:"fas",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M436.7 74.7L448 85.4 448 32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l47.9 0-7.6-7.2c-.2-.2-.4-.4-.6-.6-75-75-196.5-75-271.5 0s-75 196.5 0 271.5 196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c99.9-99.9 261.7-100 361.7-.3z"]};var y6=hgA;var r0={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M140.3 376.8c12.6 10.2 31.1 9.5 42.8-2.2l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301.4 192 288.5 192l-256 0c-12.9 0-24.6 7.8-29.6 19.8S.7 237.5 9.9 246.6l128 128 2.4 2.2z"]};var EgA={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z"]};var D6=EgA;var RM={prefix:"fas",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96C0 60.7 28.7 32 64 32z"]};var NM={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]};var DV=Vp(BJ(),1);var hJ=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function QgA(i,e){return!!(i===e||hJ(i)&&hJ(e))}function ugA(i,e){if(i.length!==e.length)return!1;for(var A=0;A<i.length;A++)if(!QgA(i[A],e[A]))return!1;return!0}function YB(i,e){e===void 0&&(e=ugA);var A=null;function t(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(A&&A.lastThis===this&&e(n,A.lastArgs))return A.lastResult;var a=i.apply(this,n);return A={lastResult:a,lastArgs:n,lastThis:this},a}return t.clear=function(){A=null},t}var adA=Vp(EJ(),1);var LM=class{add(e,A,t){if(typeof arguments[0]!="string")for(let n in arguments[0])this.add(n,arguments[0][n],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(n){this[n]=this[n]||[],A&&this[n][t?"unshift":"push"](A)},this)}run(e,A){this[e]=this[e]||[],this[e].forEach(function(t){t.call(A&&A.context?A.context:A,A)})}},GM=class{constructor(e){this.jsep=e,this.registered={}}register(){for(var e=arguments.length,A=new Array(e),t=0;t<e;t++)A[t]=arguments[t];A.forEach(n=>{if(typeof n!="object"||!n.name||!n.init)throw new Error("Invalid JSEP plugin format");this.registered[n.name]||(n.init(this.jsep),this.registered[n.name]=n)})}},rl=class i{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+i.version}static addUnaryOp(e){return i.max_unop_len=Math.max(e.length,i.max_unop_len),i.unary_ops[e]=1,i}static addBinaryOp(e,A,t){return i.max_binop_len=Math.max(e.length,i.max_binop_len),i.binary_ops[e]=A,t?i.right_associative.add(e):i.right_associative.delete(e),i}static addIdentifierChar(e){return i.additional_identifier_chars.add(e),i}static addLiteral(e,A){return i.literals[e]=A,i}static removeUnaryOp(e){return delete i.unary_ops[e],e.length===i.max_unop_len&&(i.max_unop_len=i.getMaxKeyLen(i.unary_ops)),i}static removeAllUnaryOps(){return i.unary_ops={},i.max_unop_len=0,i}static removeIdentifierChar(e){return i.additional_identifier_chars.delete(e),i}static removeBinaryOp(e){return delete i.binary_ops[e],e.length===i.max_binop_len&&(i.max_binop_len=i.getMaxKeyLen(i.binary_ops)),i.right_associative.delete(e),i}static removeAllBinaryOps(){return i.binary_ops={},i.max_binop_len=0,i}static removeLiteral(e){return delete i.literals[e],i}static removeAllLiterals(){return i.literals={},i}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new i(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map(A=>A.length))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return i.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!i.binary_ops[String.fromCharCode(e)]||i.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return i.isIdentifierStart(e)||i.isDecimalDigit(e)}throwError(e){let A=new Error(e+" at character "+this.index);throw A.index=this.index,A.description=e,A}runHook(e,A){if(i.hooks[e]){let t={context:this,node:A};return i.hooks.run(e,t),t.node}return A}searchHook(e){if(i.hooks[e]){let A={context:this};return i.hooks[e].find(function(t){return t.call(A.context,A),A.node}),A.node}}gobbleSpaces(){let e=this.code;for(;e===i.SPACE_CODE||e===i.TAB_CODE||e===i.LF_CODE||e===i.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");let e=this.gobbleExpressions(),A=e.length===1?e[0]:{type:i.COMPOUND,body:e};return this.runHook("after-all",A)}gobbleExpressions(e){let A=[],t,n;for(;this.index<this.expr.length;)if(t=this.code,t===i.SEMCOL_CODE||t===i.COMMA_CODE)this.index++;else if(n=this.gobbleExpression())A.push(n);else if(this.index<this.expr.length){if(t===e)break;this.throwError('Unexpected "'+this.char+'"')}return A}gobbleExpression(){let e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}gobbleBinaryOp(){this.gobbleSpaces();let e=this.expr.substr(this.index,i.max_binop_len),A=e.length;for(;A>0;){if(i.binary_ops.hasOwnProperty(e)&&(!i.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!i.isIdentifierPart(this.expr.charCodeAt(this.index+e.length))))return this.index+=A,e;e=e.substr(0,--A)}return!1}gobbleBinaryExpression(){let e,A,t,n,o,a,r,s,l;if(a=this.gobbleToken(),!a||(A=this.gobbleBinaryOp(),!A))return a;for(o={value:A,prec:i.binaryPrecedence(A),right_a:i.right_associative.has(A)},r=this.gobbleToken(),r||this.throwError("Expected expression after "+A),n=[a,o,r];A=this.gobbleBinaryOp();){if(t=i.binaryPrecedence(A),t===0){this.index-=A.length;break}o={value:A,prec:t,right_a:i.right_associative.has(A)},l=A;let g=C=>o.right_a&&C.right_a?t>C.prec:t<=C.prec;for(;n.length>2&&g(n[n.length-2]);)r=n.pop(),A=n.pop().value,a=n.pop(),e={type:i.BINARY_EXP,operator:A,left:a,right:r},n.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+l),n.push(o,e)}for(s=n.length-1,e=n[s];s>1;)e={type:i.BINARY_EXP,operator:n[s-1].value,left:n[s-2],right:e},s-=2;return e}gobbleToken(){let e,A,t,n;if(this.gobbleSpaces(),n=this.searchHook("gobble-token"),n)return this.runHook("after-token",n);if(e=this.code,i.isDecimalDigit(e)||e===i.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===i.SQUOTE_CODE||e===i.DQUOTE_CODE)n=this.gobbleStringLiteral();else if(e===i.OBRACK_CODE)n=this.gobbleArray();else{for(A=this.expr.substr(this.index,i.max_unop_len),t=A.length;t>0;){if(i.unary_ops.hasOwnProperty(A)&&(!i.isIdentifierStart(this.code)||this.index+A.length<this.expr.length&&!i.isIdentifierPart(this.expr.charCodeAt(this.index+A.length)))){this.index+=t;let o=this.gobbleToken();return o||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:i.UNARY_EXP,operator:A,argument:o,prefix:!0})}A=A.substr(0,--t)}i.isIdentifierStart(e)?(n=this.gobbleIdentifier(),i.literals.hasOwnProperty(n.name)?n={type:i.LITERAL,value:i.literals[n.name],raw:n.name}:n.name===i.this_str&&(n={type:i.THIS_EXP})):e===i.OPAREN_CODE&&(n=this.gobbleGroup())}return n?(n=this.gobbleTokenProperty(n),this.runHook("after-token",n)):this.runHook("after-token",!1)}gobbleTokenProperty(e){this.gobbleSpaces();let A=this.code;for(;A===i.PERIOD_CODE||A===i.OBRACK_CODE||A===i.OPAREN_CODE||A===i.QUMARK_CODE;){let t;if(A===i.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==i.PERIOD_CODE)break;t=!0,this.index+=2,this.gobbleSpaces(),A=this.code}this.index++,A===i.OBRACK_CODE?(e={type:i.MEMBER_EXP,computed:!0,object:e,property:this.gobbleExpression()},e.property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),A=this.code,A!==i.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):A===i.OPAREN_CODE?e={type:i.CALL_EXP,arguments:this.gobbleArguments(i.CPAREN_CODE),callee:e}:(A===i.PERIOD_CODE||t)&&(t&&this.index--,this.gobbleSpaces(),e={type:i.MEMBER_EXP,computed:!1,object:e,property:this.gobbleIdentifier()}),t&&(e.optional=!0),this.gobbleSpaces(),A=this.code}return e}gobbleNumericLiteral(){let e="",A,t;for(;i.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);if(this.code===i.PERIOD_CODE)for(e+=this.expr.charAt(this.index++);i.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);if(A=this.char,A==="e"||A==="E"){for(e+=this.expr.charAt(this.index++),A=this.char,(A==="+"||A==="-")&&(e+=this.expr.charAt(this.index++));i.isDecimalDigit(this.code);)e+=this.expr.charAt(this.index++);i.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+e+this.char+")")}return t=this.code,i.isIdentifierStart(t)?this.throwError("Variable names cannot start with a number ("+e+this.char+")"):(t===i.PERIOD_CODE||e.length===1&&e.charCodeAt(0)===i.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:i.LITERAL,value:parseFloat(e),raw:e}}gobbleStringLiteral(){let e="",A=this.index,t=this.expr.charAt(this.index++),n=!1;for(;this.index<this.expr.length;){let o=this.expr.charAt(this.index++);if(o===t){n=!0;break}else if(o==="\\")switch(o=this.expr.charAt(this.index++),o){case"n":e+=`
245`;break;case"r":e+="\r";break;case"t":e+=" ";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=o}else e+=o}return n||this.throwError('Unclosed quote after "'+e+'"'),{type:i.LITERAL,value:e,raw:this.expr.substring(A,this.index)}}gobbleIdentifier(){let e=this.code,A=this.index;for(i.isIdentifierStart(e)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(e=this.code,i.isIdentifierPart(e));)this.index++;return{type:i.IDENTIFIER,name:this.expr.slice(A,this.index)}}gobbleArguments(e){let A=[],t=!1,n=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let o=this.code;if(o===e){t=!0,this.index++,e===i.CPAREN_CODE&&n&&n>=A.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}else if(o===i.COMMA_CODE){if(this.index++,n++,n!==A.length){if(e===i.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===i.CBRACK_CODE)for(let a=A.length;a<n;a++)A.push(null)}}else if(A.length!==n&&n!==0)this.throwError("Expected comma");else{let a=this.gobbleExpression();(!a||a.type===i.COMPOUND)&&this.throwError("Expected comma"),A.push(a)}}return t||this.throwError("Expected "+String.fromCharCode(e)),A}gobbleGroup(){this.index++;let e=this.gobbleExpressions(i.CPAREN_CODE);if(this.code===i.CPAREN_CODE)return this.index++,e.length===1?e[0]:e.length?{type:i.SEQUENCE_EXP,expressions:e}:!1;this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:i.ARRAY_EXP,elements:this.gobbleArguments(i.CBRACK_CODE)}}},pgA=new LM;Object.assign(rl,{hooks:pgA,plugins:new GM(rl),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"});rl.max_unop_len=rl.getMaxKeyLen(rl.unary_ops);rl.max_binop_len=rl.getMaxKeyLen(rl.binary_ops);var s0=i=>new rl(i).parse(),fgA=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(rl).filter(i=>!fgA.includes(i)&&s0[i]===void 0).forEach(i=>{s0[i]=rl[i]});s0.Jsep=rl;var mgA="ConditionalExpression",wgA={name:"ternary",init(i){i.hooks.add("after-expression",function(A){if(A.node&&this.code===i.QUMARK_CODE){this.index++;let t=A.node,n=this.gobbleExpression();if(n||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===i.COLON_CODE){this.index++;let o=this.gobbleExpression();if(o||this.throwError("Expected expression"),A.node={type:mgA,test:t,consequent:n,alternate:o},t.operator&&i.binary_ops[t.operator]<=.9){let a=t;for(;a.right.operator&&i.binary_ops[a.right.operator]<=.9;)a=a.right;A.node.test=a.right,a.right=A.node,A.node=t}}else this.throwError("Expected :")}})}};s0.plugins.register(wgA);var QJ=47,ygA=92,DgA={name:"regex",init(i){i.hooks.add("gobble-token",function(A){if(this.code===QJ){let t=++this.index,n=!1;for(;this.index<this.expr.length;){if(this.code===QJ&&!n){let o=this.expr.slice(t,this.index),a="";for(;++this.index<this.expr.length;){let s=this.code;if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57)a+=this.char;else break}let r;try{r=new RegExp(o,a)}catch(s){this.throwError(s.message)}return A.node={type:i.LITERAL,value:r,raw:this.expr.slice(t-1,this.index)},A.node=this.gobbleTokenProperty(A.node),A.node}this.code===i.OBRACK_CODE?n=!0:n&&this.code===i.CBRACK_CODE&&(n=!1),this.index+=this.code===ygA?2:1}this.throwError("Unclosed Regex")}})}},FM=43,vgA=45,HB={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[FM,vgA],assignmentPrecedence:.9,init(i){let e=[i.IDENTIFIER,i.MEMBER_EXP];HB.assignmentOperators.forEach(t=>i.addBinaryOp(t,HB.assignmentPrecedence,!0)),i.hooks.add("gobble-token",function(n){let o=this.code;HB.updateOperators.some(a=>a===o&&a===this.expr.charCodeAt(this.index+1))&&(this.index+=2,n.node={type:"UpdateExpression",operator:o===FM?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},(!n.node.argument||!e.includes(n.node.argument.type))&&this.throwError(`Unexpected ${n.node.operator}`))}),i.hooks.add("after-token",function(n){if(n.node){let o=this.code;HB.updateOperators.some(a=>a===o&&a===this.expr.charCodeAt(this.index+1))&&(e.includes(n.node.type)||this.throwError(`Unexpected ${n.node.operator}`),this.index+=2,n.node={type:"UpdateExpression",operator:o===FM?"++":"--",argument:n.node,prefix:!1})}}),i.hooks.add("after-expression",function(n){n.node&&A(n.node)});function A(t){HB.assignmentOperators.has(t.operator)?(t.type="AssignmentExpression",A(t.left),A(t.right)):t.operator||Object.values(t).forEach(n=>{n&&typeof n=="object"&&A(n)})}}};s0.plugins.register(DgA,HB);s0.addUnaryOp("typeof");s0.addUnaryOp("void");s0.addLiteral("null",null);s0.addLiteral("undefined",void 0);var bgA=new Set(["constructor","__proto__","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),zo={evalAst(i,e){switch(i.type){case"BinaryExpression":case"LogicalExpression":return zo.evalBinaryExpression(i,e);case"Compound":return zo.evalCompound(i,e);case"ConditionalExpression":return zo.evalConditionalExpression(i,e);case"Identifier":return zo.evalIdentifier(i,e);case"Literal":return zo.evalLiteral(i,e);case"MemberExpression":return zo.evalMemberExpression(i,e);case"UnaryExpression":return zo.evalUnaryExpression(i,e);case"ArrayExpression":return zo.evalArrayExpression(i,e);case"CallExpression":return zo.evalCallExpression(i,e);case"AssignmentExpression":return zo.evalAssignmentExpression(i,e);default:throw SyntaxError("Unexpected expression",i)}},evalBinaryExpression(i,e){return{"||":(t,n)=>t||n(),"&&":(t,n)=>t&&n(),"|":(t,n)=>t|n(),"^":(t,n)=>t^n(),"&":(t,n)=>t&n(),"==":(t,n)=>t==n(),"!=":(t,n)=>t!=n(),"===":(t,n)=>t===n(),"!==":(t,n)=>t!==n(),"<":(t,n)=>t<n(),">":(t,n)=>t>n(),"<=":(t,n)=>t<=n(),">=":(t,n)=>t>=n(),"<<":(t,n)=>t<<n(),">>":(t,n)=>t>>n(),">>>":(t,n)=>t>>>n(),"+":(t,n)=>t+n(),"-":(t,n)=>t-n(),"*":(t,n)=>t*n(),"/":(t,n)=>t/n(),"%":(t,n)=>t%n()}[i.operator](zo.evalAst(i.left,e),()=>zo.evalAst(i.right,e))},evalCompound(i,e){let A;for(let t=0;t<i.body.length;t++){i.body[t].type==="Identifier"&&["var","let","const"].includes(i.body[t].name)&&i.body[t+1]&&i.body[t+1].type==="AssignmentExpression"&&(t+=1);let n=i.body[t];A=zo.evalAst(n,e)}return A},evalConditionalExpression(i,e){return zo.evalAst(i.test,e)?zo.evalAst(i.consequent,e):zo.evalAst(i.alternate,e)},evalIdentifier(i,e){if(Object.hasOwn(e,i.name))return e[i.name];throw ReferenceError(`${i.name} is not defined`)},evalLiteral(i){return i.value},evalMemberExpression(i,e){let A=String(i.computed?zo.evalAst(i.property):i.property.name),t=zo.evalAst(i.object,e);if(t==null)throw TypeError(`Cannot read properties of ${t} (reading '${A}')`);if(!Object.hasOwn(t,A)&&bgA.has(A))throw TypeError(`Cannot read properties of ${t} (reading '${A}')`);let n=t[A];return typeof n=="function"?n.bind(t):n},evalUnaryExpression(i,e){return{"-":t=>-zo.evalAst(t,e),"!":t=>!zo.evalAst(t,e),"~":t=>~zo.evalAst(t,e),"+":t=>+zo.evalAst(t,e),typeof:t=>typeof zo.evalAst(t,e),void:t=>{zo.evalAst(t,e)}}[i.operator](i.argument)},evalArrayExpression(i,e){return i.elements.map(A=>zo.evalAst(A,e))},evalCallExpression(i,e){let A=i.arguments.map(n=>zo.evalAst(n,e)),t=zo.evalAst(i.callee,e);if(t===Function)throw new Error("Function constructor is disabled");return t(...A)},evalAssignmentExpression(i,e){if(i.left.type!=="Identifier")throw SyntaxError("Invalid left-hand side in assignment");let A=i.left.name,t=zo.evalAst(i.right,e);return e[A]=t,e[A]}},KM=class{constructor(e){this.code=e,this.ast=s0(this.code)}runInNewContext(e){let A=Object.assign(Object.create(null),e);return zo.evalAst(this.ast,A)}};function y2(i,e){return i=i.slice(),i.push(e),i}function UM(i,e){return e=e.slice(),e.unshift(i),e}var TM=class extends Error{constructor(e){super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),this.avoidNew=!0,this.value=e,this.name="NewError"}};function Qo(i,e,A,t,n){if(!(this instanceof Qo))try{return new Qo(i,e,A,t,n)}catch(a){if(!a.avoidNew)throw a;return a.value}typeof i=="string"&&(n=t,t=A,A=e,e=i,i=null);let o=i&&typeof i=="object";if(i=i||{},this.json=i.json||A,this.path=i.path||e,this.resultType=i.resultType||"value",this.flatten=i.flatten||!1,this.wrap=Object.hasOwn(i,"wrap")?i.wrap:!0,this.sandbox=i.sandbox||{},this.eval=i.eval===void 0?"safe":i.eval,this.ignoreEvalErrors=typeof i.ignoreEvalErrors>"u"?!1:i.ignoreEvalErrors,this.parent=i.parent||null,this.parentProperty=i.parentProperty||null,this.callback=i.callback||t||null,this.otherTypeCallback=i.otherTypeCallback||n||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},i.autostart!==!1){let a={path:o?i.path:e};o?"json"in i&&(a.json=i.json):a.json=A;let r=this.evaluate(a);if(!r||typeof r!="object")throw new TM(r);return r}}Qo.prototype.evaluate=function(i,e,A,t){let n=this.parent,o=this.parentProperty,{flatten:a,wrap:r}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,A=A||this.callback,this.currOtherTypeCallback=t||this.otherTypeCallback,e=e||this.json,i=i||this.path,i&&typeof i=="object"&&!Array.isArray(i)){if(!i.path&&i.path!=="")throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(i,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');({json:e}=i),a=Object.hasOwn(i,"flatten")?i.flatten:a,this.currResultType=Object.hasOwn(i,"resultType")?i.resultType:this.currResultType,this.currSandbox=Object.hasOwn(i,"sandbox")?i.sandbox:this.currSandbox,r=Object.hasOwn(i,"wrap")?i.wrap:r,this.currEval=Object.hasOwn(i,"eval")?i.eval:this.currEval,A=Object.hasOwn(i,"callback")?i.callback:A,this.currOtherTypeCallback=Object.hasOwn(i,"otherTypeCallback")?i.otherTypeCallback:this.currOtherTypeCallback,n=Object.hasOwn(i,"parent")?i.parent:n,o=Object.hasOwn(i,"parentProperty")?i.parentProperty:o,i=i.path}if(n=n||null,o=o||null,Array.isArray(i)&&(i=Qo.toPathString(i)),!i&&i!==""||!e)return;let s=Qo.toPathArray(i);s[0]==="$"&&s.length>1&&s.shift(),this._hasParentSelector=null;let l=this._trace(s,e,["$"],n,o,A).filter(function(g){return g&&!g.isParentSelector});return l.length?!r&&l.length===1&&!l[0].hasArrExpr?this._getPreferredOutput(l[0]):l.reduce((g,C)=>{let d=this._getPreferredOutput(C);return a&&Array.isArray(d)?g=g.concat(d):g.push(d),g},[]):r?[]:void 0};Qo.prototype._getPreferredOutput=function(i){let e=this.currResultType;switch(e){case"all":{let A=Array.isArray(i.path)?i.path:Qo.toPathArray(i.path);return i.pointer=Qo.toPointer(A),i.path=typeof i.path=="string"?i.path:Qo.toPathString(i.path),i}case"value":case"parent":case"parentProperty":return i[e];case"path":return Qo.toPathString(i[e]);case"pointer":return Qo.toPointer(i.path);default:throw new TypeError("Unknown result type")}};Qo.prototype._handleCallback=function(i,e,A){if(e){let t=this._getPreferredOutput(i);i.path=typeof i.path=="string"?i.path:Qo.toPathString(i.path),e(t,A,i)}};Qo.prototype._trace=function(i,e,A,t,n,o,a,r){let s;if(!i.length)return s={path:A,value:e,parent:t,parentProperty:n,hasArrExpr:a},this._handleCallback(s,o,"value"),s;let l=i[0],g=i.slice(1),C=[];function d(B){Array.isArray(B)?B.forEach(u=>{C.push(u)}):C.push(B)}if((typeof l!="string"||r)&&e&&Object.hasOwn(e,l))d(this._trace(g,e[l],y2(A,l),e,l,o,a));else if(l==="*")this._walk(e,B=>{d(this._trace(g,e[B],y2(A,B),e,B,o,!0,!0))});else if(l==="..")d(this._trace(g,e,A,t,n,o,a)),this._walk(e,B=>{typeof e[B]=="object"&&d(this._trace(i.slice(),e[B],y2(A,B),e,B,o,!0))});else{if(l==="^")return this._hasParentSelector=!0,{path:A.slice(0,-1),expr:g,isParentSelector:!0};if(l==="~")return s={path:y2(A,l),value:n,parent:t,parentProperty:null},this._handleCallback(s,o,"property"),s;if(l==="$")d(this._trace(g,e,A,null,null,o,a));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(l))d(this._slice(l,g,e,A,t,n,o));else if(l.indexOf("?(")===0){if(this.currEval===!1)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");let B=l.replace(/^\?\((.*?)\)$/u,"$1"),u=/@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(B);u?this._walk(e,E=>{let f=[u[2]],m=u[1]?e[E][u[1]]:e[E];this._trace(f,m,A,t,n,o,!0).length>0&&d(this._trace(g,e[E],y2(A,E),e,E,o,!0))}):this._walk(e,E=>{this._eval(B,e[E],E,A,t,n)&&d(this._trace(g,e[E],y2(A,E),e,E,o,!0))})}else if(l[0]==="("){if(this.currEval===!1)throw new Error("Eval [(expr)] prevented in JSONPath expression.");d(this._trace(UM(this._eval(l,e,A.at(-1),A.slice(0,-1),t,n),g),e,A,t,n,o,a))}else if(l[0]==="@"){let B=!1,u=l.slice(1,-2);switch(u){case"scalar":(!e||!["object","function"].includes(typeof e))&&(B=!0);break;case"boolean":case"string":case"undefined":case"function":typeof e===u&&(B=!0);break;case"integer":Number.isFinite(e)&&!(e%1)&&(B=!0);break;case"number":Number.isFinite(e)&&(B=!0);break;case"nonFinite":typeof e=="number"&&!Number.isFinite(e)&&(B=!0);break;case"object":e&&typeof e===u&&(B=!0);break;case"array":Array.isArray(e)&&(B=!0);break;case"other":B=this.currOtherTypeCallback(e,A,t,n);break;case"null":e===null&&(B=!0);break;default:throw new TypeError("Unknown value type "+u)}if(B)return s={path:A,value:e,parent:t,parentProperty:n},this._handleCallback(s,o,"value"),s}else if(l[0]==="`"&&e&&Object.hasOwn(e,l.slice(1))){let B=l.slice(1);d(this._trace(g,e[B],y2(A,B),e,B,o,a,!0))}else if(l.includes(",")){let B=l.split(",");for(let u of B)d(this._trace(UM(u,g),e,A,t,n,o,!0))}else!r&&e&&Object.hasOwn(e,l)&&d(this._trace(g,e[l],y2(A,l),e,l,o,a,!0))}if(this._hasParentSelector)for(let B=0;B<C.length;B++){let u=C[B];if(u&&u.isParentSelector){let E=this._trace(u.expr,e,u.path,t,n,o,a);if(Array.isArray(E)){C[B]=E[0];let f=E.length;for(let m=1;m<f;m++)B++,C.splice(B,0,E[m])}else C[B]=E}}return C};Qo.prototype._walk=function(i,e){if(Array.isArray(i)){let A=i.length;for(let t=0;t<A;t++)e(t)}else i&&typeof i=="object"&&Object.keys(i).forEach(A=>{e(A)})};Qo.prototype._slice=function(i,e,A,t,n,o,a){if(!Array.isArray(A))return;let r=A.length,s=i.split(":"),l=s[2]&&Number.parseInt(s[2])||1,g=s[0]&&Number.parseInt(s[0])||0,C=s[1]&&Number.parseInt(s[1])||r;g=g<0?Math.max(0,g+r):Math.min(r,g),C=C<0?Math.max(0,C+r):Math.min(r,C);let d=[];for(let B=g;B<C;B+=l)this._trace(UM(B,e),A,t,n,o,a,!0).forEach(E=>{d.push(E)});return d};Qo.prototype._eval=function(i,e,A,t,n,o){this.currSandbox._$_parentProperty=o,this.currSandbox._$_parent=n,this.currSandbox._$_property=A,this.currSandbox._$_root=this.json,this.currSandbox._$_v=e;let a=i.includes("@path");a&&(this.currSandbox._$_path=Qo.toPathString(t.concat([A])));let r=this.currEval+"Script:"+i;if(!Qo.cache[r]){let s=i.replaceAll("@parentProperty","_$_parentProperty").replaceAll("@parent","_$_parent").replaceAll("@property","_$_property").replaceAll("@root","_$_root").replaceAll(/@([.\s)[])/gu,"_$_v$1");if(a&&(s=s.replaceAll("@path","_$_path")),this.currEval==="safe"||this.currEval===!0||this.currEval===void 0)Qo.cache[r]=new this.safeVm.Script(s);else if(this.currEval==="native")Qo.cache[r]=new this.vm.Script(s);else if(typeof this.currEval=="function"&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){let l=this.currEval;Qo.cache[r]=new l(s)}else if(typeof this.currEval=="function")Qo.cache[r]={runInNewContext:l=>this.currEval(s,l)};else throw new TypeError(`Unknown "eval" property "${this.currEval}"`)}try{return Qo.cache[r].runInNewContext(this.currSandbox)}catch(s){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+s.message+": "+i)}};Qo.cache={};Qo.toPathString=function(i){let e=i,A=e.length,t="$";for(let n=1;n<A;n++)/^(~|\^|@.*?\(\))$/u.test(e[n])||(t+=/^[0-9*]+$/u.test(e[n])?"["+e[n]+"]":"['"+e[n]+"']");return t};Qo.toPointer=function(i){let e=i,A=e.length,t="";for(let n=1;n<A;n++)/^(~|\^|@.*?\(\))$/u.test(e[n])||(t+="/"+e[n].toString().replaceAll("~","~0").replaceAll("/","~1"));return t};Qo.toPathArray=function(i){let{cache:e}=Qo;if(e[i])return e[i].concat();let A=[],n=i.replaceAll(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/gu,";$&;").replaceAll(/[['](\??\(.*?\))[\]'](?!.\])/gu,function(o,a){return"[#"+(A.push(a)-1)+"]"}).replaceAll(/\[['"]([^'\]]*)['"]\]/gu,function(o,a){return"['"+a.replaceAll(".","%@%").replaceAll("~","%%@@%%")+"']"}).replaceAll("~",";~;").replaceAll(/['"]?\.['"]?(?![^[]*\])|\[['"]?/gu,";").replaceAll("%@%",".").replaceAll("%%@@%%","~").replaceAll(/(?:;)?(\^+)(?:;)?/gu,function(o,a){return";"+a.split("").join(";")+";"}).replaceAll(/;;;|;;/gu,";..;").replaceAll(/;$|'?\]|'$/gu,"").split(";").map(function(o){let a=o.match(/#(\d+)/u);return!a||!a[1]?o:A[a[1]]});return e[i]=n,e[i].concat()};Qo.prototype.safeVm={Script:KM};var MgA=function(i,e,A){let t=i.length;for(let n=0;n<t;n++){let o=i[n];A(o)&&e.push(i.splice(n--,1)[0])}},OM=class{constructor(e){this.code=e}runInNewContext(e){let A=this.code,t=Object.keys(e),n=[];MgA(t,n,l=>typeof e[l]=="function");let o=t.map(l=>e[l]);A=n.reduce((l,g)=>{let C=e[g].toString();return/function/u.test(C)||(C="function "+C),"var "+g+"="+C+";"+l},"")+A,!/(['"])use strict\1/u.test(A)&&!t.includes("arguments")&&(A="var arguments = undefined;"+A),A=A.replace(/;\s*$/u,"");let r=A.lastIndexOf(";"),s=r!==-1?A.slice(0,r+1)+" return "+A.slice(r+1):" return "+A;return new Function(...t,s)(...o)}};Qo.prototype.vm={Script:OM};var YM=[],mJ=[];(()=>{let i="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,A=0;e<i.length;e++)(e%2?mJ:YM).push(A=A+i[e])})();function SgA(i){if(i<768)return!1;for(let e=0,A=YM.length;;){let t=e+A>>1;if(i<YM[t])A=t;else if(i>=mJ[t])e=t+1;else return!0;if(e==A)return!1}}function uJ(i){return i>=127462&&i<=127487}var pJ=8205;function wJ(i,e,A=!0,t=!0){return(A?yJ:kgA)(i,e,t)}function yJ(i,e,A){if(e==i.length)return e;e&&DJ(i.charCodeAt(e))&&vJ(i.charCodeAt(e-1))&&e--;let t=JM(i,e);for(e+=fJ(t);e<i.length;){let n=JM(i,e);if(t==pJ||n==pJ||A&&SgA(n))e+=fJ(n),t=n;else if(uJ(n)){let o=0,a=e-2;for(;a>=0&&uJ(JM(i,a));)o++,a-=2;if(o%2==0)break;e+=2}else break}return e}function kgA(i,e,A){for(;e>0;){let t=yJ(i,e-2,A);if(t<e)return t;e--}return 0}function JM(i,e){let A=i.charCodeAt(e);if(!vJ(A)||e+1==i.length)return A;let t=i.charCodeAt(e+1);return DJ(t)?(A-55296<<10)+(t-56320)+65536:A}function DJ(i){return i>=56320&&i<57344}function vJ(i){return i>=55296&&i<56320}function fJ(i){return i<65536?1:2}var On=class i{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,A,t){[e,A]=qB(this,e,A);let n=[];return this.decompose(0,e,n,2),t.length&&t.decompose(0,t.length,n,3),this.decompose(A,this.length,n,1),PB.from(n,this.length-(A-e)+t.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,A=this.length){[e,A]=qB(this,e,A);let t=[];return this.decompose(e,A,t,0),PB.from(t,A-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let A=this.scanIdentical(e,1),t=this.length-this.scanIdentical(e,-1),n=new Qd(this),o=new Qd(e);for(let a=A,r=A;;){if(n.next(a),o.next(a),a=0,n.lineBreak!=o.lineBreak||n.done!=o.done||n.value!=o.value)return!1;if(r+=n.value.length,n.done||r>=t)return!0}}iter(e=1){return new Qd(this,e)}iterRange(e,A=this.length){return new _6(this,e,A)}iterLines(e,A){let t;if(e==null)t=this.iter();else{A==null&&(A=this.lines+1);let n=this.line(e).from;t=this.iterRange(n,Math.max(n,A==this.lines+1?this.length:A<=1?0:this.line(A-1).to))}return new x6(t)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?i.empty:e.length<=32?new xl(e):PB.from(xl.split(e,[]))}},xl=class i extends On{constructor(e,A=_gA(e)){super(),this.text=e,this.length=A}get lines(){return this.text.length}get children(){return null}lineInner(e,A,t,n){for(let o=0;;o++){let a=this.text[o],r=n+a.length;if((A?t:r)>=e)return new PM(n,r,t,a);n=r+1,t++}}decompose(e,A,t,n){let o=e<=0&&A>=this.length?this:new i(bJ(this.text,e,A),Math.min(A,this.length)-Math.max(0,e));if(n&1){let a=t.pop(),r=k6(o.text,a.text.slice(),0,o.length);if(r.length<=32)t.push(new i(r,a.length+o.length));else{let s=r.length>>1;t.push(new i(r.slice(0,s)),new i(r.slice(s)))}}else t.push(o)}replace(e,A,t){if(!(t instanceof i))return super.replace(e,A,t);[e,A]=qB(this,e,A);let n=k6(this.text,k6(t.text,bJ(this.text,0,e)),A),o=this.length+t.length-(A-e);return n.length<=32?new i(n,o):PB.from(i.split(n,[]),o)}sliceString(e,A=this.length,t=`
246`){[e,A]=qB(this,e,A);let n="";for(let o=0,a=0;o<=A&&a<this.text.length;a++){let r=this.text[a],s=o+r.length;o>e&&a&&(n+=t),e<s&&A>o&&(n+=r.slice(Math.max(0,e-o),A-o)),o=s+1}return n}flatten(e){for(let A of this.text)e.push(A)}scanIdentical(){return 0}static split(e,A){let t=[],n=-1;for(let o of e)t.push(o),n+=o.length+1,t.length==32&&(A.push(new i(t,n)),t=[],n=-1);return n>-1&&A.push(new i(t,n)),A}},PB=class i extends On{constructor(e,A){super(),this.children=e,this.length=A,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,A,t,n){for(let o=0;;o++){let a=this.children[o],r=n+a.length,s=t+a.lines-1;if((A?s:r)>=e)return a.lineInner(e,A,t,n);n=r+1,t=s+1}}decompose(e,A,t,n){for(let o=0,a=0;a<=A&&o<this.children.length;o++){let r=this.children[o],s=a+r.length;if(e<=s&&A>=a){let l=n&((a<=e?1:0)|(s>=A?2:0));a>=e&&s<=A&&!l?t.push(r):r.decompose(e-a,A-a,t,l)}a=s+1}}replace(e,A,t){if([e,A]=qB(this,e,A),t.lines<this.lines)for(let n=0,o=0;n<this.children.length;n++){let a=this.children[n],r=o+a.length;if(e>=o&&A<=r){let s=a.replace(e-o,A-o,t),l=this.lines-a.lines+s.lines;if(s.lines<l>>4&&s.lines>l>>6){let g=this.children.slice();return g[n]=s,new i(g,this.length-(A-e)+t.length)}return super.replace(o,r,s)}o=r+1}return super.replace(e,A,t)}sliceString(e,A=this.length,t=`
247`){[e,A]=qB(this,e,A);let n="";for(let o=0,a=0;o<this.children.length&&a<=A;o++){let r=this.children[o],s=a+r.length;a>e&&o&&(n+=t),e<s&&A>a&&(n+=r.sliceString(e-a,A-a,t)),a=s+1}return n}flatten(e){for(let A of this.children)A.flatten(e)}scanIdentical(e,A){if(!(e instanceof i))return 0;let t=0,[n,o,a,r]=A>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=A,o+=A){if(n==a||o==r)return t;let s=this.children[n],l=e.children[o];if(s!=l)return t+s.scanIdentical(l,A);t+=s.length+1}}static from(e,A=e.reduce((t,n)=>t+n.length+1,-1)){let t=0;for(let B of e)t+=B.lines;if(t<32){let B=[];for(let u of e)u.flatten(B);return new xl(B,A)}let n=Math.max(32,t>>5),o=n<<1,a=n>>1,r=[],s=0,l=-1,g=[];function C(B){let u;if(B.lines>o&&B instanceof i)for(let E of B.children)C(E);else B.lines>a&&(s>a||!s)?(d(),r.push(B)):B instanceof xl&&s&&(u=g[g.length-1])instanceof xl&&B.lines+u.lines<=32?(s+=B.lines,l+=B.length+1,g[g.length-1]=new xl(u.text.concat(B.text),u.length+1+B.length)):(s+B.lines>n&&d(),s+=B.lines,l+=B.length+1,g.push(B))}function d(){s!=0&&(r.push(g.length==1?g[0]:i.from(g,l)),l=-1,s=g.length=0)}for(let B of e)C(B);return d(),r.length==1?r[0]:new i(r,A)}};On.empty=new xl([""],0);function _gA(i){let e=-1;for(let A of i)e+=A.length+1;return e}function k6(i,e,A=0,t=1e9){for(let n=0,o=0,a=!0;o<i.length&&n<=t;o++){let r=i[o],s=n+r.length;s>=A&&(s>t&&(r=r.slice(0,t-n)),n<A&&(r=r.slice(A-n)),a?(e[e.length-1]+=r,a=!1):e.push(r)),n=s+1}return e}function bJ(i,e,A){return k6(i,[""],e,A)}var Qd=class{constructor(e,A=1){this.dir=A,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[A>0?1:(e instanceof xl?e.text.length:e.children.length)<<1]}nextInner(e,A){for(this.done=this.lineBreak=!1;;){let t=this.nodes.length-1,n=this.nodes[t],o=this.offsets[t],a=o>>1,r=n instanceof xl?n.text.length:n.children.length;if(a==(A>0?r:0)){if(t==0)return this.done=!0,this.value="",this;A>0&&this.offsets[t-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(A>0?0:1)){if(this.offsets[t]+=A,e==0)return this.lineBreak=!0,this.value=`
248`,this;e--}else if(n instanceof xl){let s=n.text[a+(A<0?-1:0)];if(this.offsets[t]+=A,s.length>Math.max(0,e))return this.value=e==0?s:A>0?s.slice(e):s.slice(0,s.length-e),this;e-=s.length}else{let s=n.children[a+(A<0?-1:0)];e>s.length?(e-=s.length,this.offsets[t]+=A):(A<0&&this.offsets[t]--,this.nodes.push(s),this.offsets.push(A>0?1:(s instanceof xl?s.text.length:s.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},_6=class{constructor(e,A,t){this.value="",this.done=!1,this.cursor=new Qd(e,A>t?-1:1),this.pos=A>t?e.length:0,this.from=Math.min(A,t),this.to=Math.max(A,t)}nextInner(e,A){if(A<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,A<0?this.pos-this.to:this.from-this.pos);let t=A<0?this.pos-this.from:this.to-this.pos;e>t&&(e=t),t-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*A,this.value=n.length<=t?n:A<0?n.slice(n.length-t):n.slice(0,t),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},x6=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:A,lineBreak:t,value:n}=this.inner.next(e);return A&&this.afterBreak?(this.value="",this.afterBreak=!1):A?(this.done=!0,this.value=""):t?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(On.prototype[Symbol.iterator]=function(){return this.iter()},Qd.prototype[Symbol.iterator]=_6.prototype[Symbol.iterator]=x6.prototype[Symbol.iterator]=function(){return this});var PM=class{constructor(e,A,t,n){this.from=e,this.to=A,this.number=t,this.text=n}get length(){return this.to-this.from}};function qB(i,e,A){return e=Math.max(0,Math.min(i.length,e)),[e,Math.max(e,Math.min(i.length,A))]}function tr(i,e,A=!0,t=!0){return wJ(i,e,A,t)}function xgA(i){return i>=56320&&i<57344}function RgA(i){return i>=55296&&i<56320}function $r(i,e){let A=i.charCodeAt(e);if(!RgA(A)||e+1==i.length)return A;let t=i.charCodeAt(e+1);return xgA(t)?(A-55296<<10)+(t-56320)+65536:A}function qu(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode((i>>10)+55296,(i&1023)+56320))}function Rl(i){return i<65536?1:2}var jM=/\r\n?|\n/,Wr=(function(i){return i[i.Simple=0]="Simple",i[i.TrackDel=1]="TrackDel",i[i.TrackBefore=2]="TrackBefore",i[i.TrackAfter=3]="TrackAfter",i})(Wr||(Wr={})),v2=class i{constructor(e){this.sections=e}get length(){let e=0;for(let A=0;A<this.sections.length;A+=2)e+=this.sections[A];return e}get newLength(){let e=0;for(let A=0;A<this.sections.length;A+=2){let t=this.sections[A+1];e+=t<0?this.sections[A]:t}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let A=0,t=0,n=0;A<this.sections.length;){let o=this.sections[A++],a=this.sections[A++];a<0?(e(t,n,o),n+=o):n+=a,t+=o}}iterChangedRanges(e,A=!1){VM(this,e,A)}get invertedDesc(){let e=[];for(let A=0;A<this.sections.length;){let t=this.sections[A++],n=this.sections[A++];n<0?e.push(t,n):e.push(n,t)}return new i(e)}composeDesc(e){return this.empty?e:e.empty?this:NJ(this,e)}mapDesc(e,A=!1){return e.empty?this:qM(this,e,A)}mapPos(e,A=-1,t=Wr.Simple){let n=0,o=0;for(let a=0;a<this.sections.length;){let r=this.sections[a++],s=this.sections[a++],l=n+r;if(s<0){if(l>e)return o+(e-n);o+=r}else{if(t!=Wr.Simple&&l>=e&&(t==Wr.TrackDel&&n<e&&l>e||t==Wr.TrackBefore&&n<e||t==Wr.TrackAfter&&l>e))return null;if(l>e||l==e&&A<0&&!r)return e==n||A<0?o:o+s;o+=s}n=l}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return o}touchesRange(e,A=e){for(let t=0,n=0;t<this.sections.length&&n<=A;){let o=this.sections[t++],a=this.sections[t++],r=n+o;if(a>=0&&n<=A&&r>=e)return n<e&&r>A?"cover":!0;n=r}return!1}toString(){let e="";for(let A=0;A<this.sections.length;){let t=this.sections[A++],n=this.sections[A++];e+=(e?" ":"")+t+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(A=>typeof A!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new i(e)}static create(e){return new i(e)}},Zr=class i extends v2{constructor(e,A){super(e),this.inserted=A}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return VM(this,(A,t,n,o,a)=>e=e.replace(n,n+(t-A),a),!1),e}mapDesc(e,A=!1){return qM(this,e,A,!0)}invert(e){let A=this.sections.slice(),t=[];for(let n=0,o=0;n<A.length;n+=2){let a=A[n],r=A[n+1];if(r>=0){A[n]=r,A[n+1]=a;let s=n>>1;for(;t.length<s;)t.push(On.empty);t.push(a?e.slice(o,o+a):On.empty)}o+=a}return new i(A,t)}compose(e){return this.empty?e:e.empty?this:NJ(this,e,!0)}map(e,A=!1){return e.empty?this:qM(this,e,A,!0)}iterChanges(e,A=!1){VM(this,e,A)}get desc(){return v2.create(this.sections)}filter(e){let A=[],t=[],n=[],o=new ud(this);A:for(let a=0,r=0;;){let s=a==e.length?1e9:e[a++];for(;r<s||r==s&&o.len==0;){if(o.done)break A;let g=Math.min(o.len,s-r);ws(n,g,-1);let C=o.ins==-1?-1:o.off==0?o.ins:0;ws(A,g,C),C>0&&D2(t,A,o.text),o.forward(g),r+=g}let l=e[a++];for(;r<l;){if(o.done)break A;let g=Math.min(o.len,l-r);ws(A,g,-1),ws(n,g,o.ins==-1?-1:o.off==0?o.ins:0),o.forward(g),r+=g}}return{changes:new i(A,t),filtered:v2.create(n)}}toJSON(){let e=[];for(let A=0;A<this.sections.length;A+=2){let t=this.sections[A],n=this.sections[A+1];n<0?e.push(t):n==0?e.push([t]):e.push([t].concat(this.inserted[A>>1].toJSON()))}return e}static of(e,A,t){let n=[],o=[],a=0,r=null;function s(g=!1){if(!g&&!n.length)return;a<A&&ws(n,A-a,-1);let C=new i(n,o);r=r?r.compose(C.map(r)):C,n=[],o=[],a=0}function l(g){if(Array.isArray(g))for(let C of g)l(C);else if(g instanceof i){if(g.length!=A)throw new RangeError(`Mismatched change set length (got ${g.length}, expected ${A})`);s(),r=r?r.compose(g.map(r)):g}else{let{from:C,to:d=C,insert:B}=g;if(C>d||C<0||d>A)throw new RangeError(`Invalid change range ${C} to ${d} (in doc of length ${A})`);let u=B?typeof B=="string"?On.of(B.split(t||jM)):B:On.empty,E=u.length;if(C==d&&E==0)return;C<a&&s(),C>a&&ws(n,C-a,-1),ws(n,d-C,E),D2(o,n,u),a=d}}return l(e),s(!r),r}static empty(e){return new i(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let A=[],t=[];for(let n=0;n<e.length;n++){let o=e[n];if(typeof o=="number")A.push(o,-1);else{if(!Array.isArray(o)||typeof o[0]!="number"||o.some((a,r)=>r&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)A.push(o[0],0);else{for(;t.length<n;)t.push(On.empty);t[n]=On.of(o.slice(1)),A.push(o[0],t[n].length)}}}return new i(A,t)}static createSet(e,A){return new i(e,A)}};function ws(i,e,A,t=!1){if(e==0&&A<=0)return;let n=i.length-2;n>=0&&A<=0&&A==i[n+1]?i[n]+=e:n>=0&&e==0&&i[n]==0?i[n+1]+=A:t?(i[n]+=e,i[n+1]+=A):i.push(e,A)}function D2(i,e,A){if(A.length==0)return;let t=e.length-2>>1;if(t<i.length)i[i.length-1]=i[i.length-1].append(A);else{for(;i.length<t;)i.push(On.empty);i.push(A)}}function VM(i,e,A){let t=i.inserted;for(let n=0,o=0,a=0;a<i.sections.length;){let r=i.sections[a++],s=i.sections[a++];if(s<0)n+=r,o+=r;else{let l=n,g=o,C=On.empty;for(;l+=r,g+=s,s&&t&&(C=C.append(t[a-2>>1])),!(A||a==i.sections.length||i.sections[a+1]<0);)r=i.sections[a++],s=i.sections[a++];e(n,l,o,g,C),n=l,o=g}}}function qM(i,e,A,t=!1){let n=[],o=t?[]:null,a=new ud(i),r=new ud(e);for(let s=-1;;){if(a.done&&r.len||r.done&&a.len)throw new Error("Mismatched change set lengths");if(a.ins==-1&&r.ins==-1){let l=Math.min(a.len,r.len);ws(n,l,-1),a.forward(l),r.forward(l)}else if(r.ins>=0&&(a.ins<0||s==a.i||a.off==0&&(r.len<a.len||r.len==a.len&&!A))){let l=r.len;for(ws(n,r.ins,-1);l;){let g=Math.min(a.len,l);a.ins>=0&&s<a.i&&a.len<=g&&(ws(n,0,a.ins),o&&D2(o,n,a.text),s=a.i),a.forward(g),l-=g}r.next()}else if(a.ins>=0){let l=0,g=a.len;for(;g;)if(r.ins==-1){let C=Math.min(g,r.len);l+=C,g-=C,r.forward(C)}else if(r.ins==0&&r.len<g)g-=r.len,r.next();else break;ws(n,l,s<a.i?a.ins:0),o&&s<a.i&&D2(o,n,a.text),s=a.i,a.forward(a.len-g)}else{if(a.done&&r.done)return o?Zr.createSet(n,o):v2.create(n);throw new Error("Mismatched change set lengths")}}}function NJ(i,e,A=!1){let t=[],n=A?[]:null,o=new ud(i),a=new ud(e);for(let r=!1;;){if(o.done&&a.done)return n?Zr.createSet(t,n):v2.create(t);if(o.ins==0)ws(t,o.len,0,r),o.next();else if(a.len==0&&!a.done)ws(t,0,a.ins,r),n&&D2(n,t,a.text),a.next();else{if(o.done||a.done)throw new Error("Mismatched change set lengths");{let s=Math.min(o.len2,a.len),l=t.length;if(o.ins==-1){let g=a.ins==-1?-1:a.off?0:a.ins;ws(t,s,g,r),n&&g&&D2(n,t,a.text)}else a.ins==-1?(ws(t,o.off?0:o.len,s,r),n&&D2(n,t,o.textBit(s))):(ws(t,o.off?0:o.len,a.off?0:a.ins,r),n&&!a.off&&D2(n,t,a.text));r=(o.ins>s||a.ins>=0&&a.len>s)&&(r||t.length>l),o.forward2(s),a.forward(s)}}}}var ud=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,A=this.i-2>>1;return A>=e.length?On.empty:e[A]}textBit(e){let{inserted:A}=this.set,t=this.i-2>>1;return t>=A.length&&!e?On.empty:A[t].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},zB=class i{constructor(e,A,t){this.from=e,this.to=A,this.flags=t}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,A=-1){let t,n;return this.empty?t=n=e.mapPos(this.from,A):(t=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),t==this.from&&n==this.to?this:new i(t,n,this.flags)}extend(e,A=e,t=0){if(e<=this.anchor&&A>=this.anchor)return Be.range(e,A,void 0,void 0,t);let n=Math.abs(e-this.anchor)>Math.abs(A-this.anchor)?e:A;return Be.range(this.anchor,n,void 0,void 0,t)}eq(e,A=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!A||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Be.range(e.anchor,e.head)}static create(e,A,t){return new i(e,A,t)}},Be=class i{constructor(e,A){this.ranges=e,this.mainIndex=A}map(e,A=-1){return e.empty?this:i.create(this.ranges.map(t=>t.map(e,A)),this.mainIndex)}eq(e,A=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;t<this.ranges.length;t++)if(!this.ranges[t].eq(e.ranges[t],A))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new i([this.main],0)}addRange(e,A=!0){return i.create([e].concat(this.ranges),A?0:this.mainIndex+1)}replaceRange(e,A=this.mainIndex){let t=this.ranges.slice();return t[A]=e,i.create(t,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new i(e.ranges.map(A=>zB.fromJSON(A)),e.main)}static single(e,A=e){return new i([i.range(e,A)],0)}static create(e,A=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let t=0,n=0;n<e.length;n++){let o=e[n];if(o.empty?o.from<=t:o.from<t)return i.normalized(e.slice(),A);t=o.to}return new i(e,A)}static cursor(e,A=0,t,n){return zB.create(e,e,(A==0?0:A<0?8:16)|(t==null?7:Math.min(6,t))|(n??16777215)<<6)}static range(e,A,t,n,o){let a=(t??16777215)<<6|(n==null?7:Math.min(6,n));return!o&&e!=A&&(o=A<e?1:-1),A<e?zB.create(A,e,48|a):zB.create(e,A,(o?o<0?8:16:0)|a)}static normalized(e,A=0){let t=e[A];e.sort((n,o)=>n.from-o.from),A=e.indexOf(t);for(let n=1;n<e.length;n++){let o=e[n],a=e[n-1];if(o.empty?o.from<=a.to:o.from<a.to){let r=a.from,s=Math.max(o.to,a.to);n<=A&&A--,e.splice(--n,2,o.anchor>o.head?i.range(s,r):i.range(r,s))}}return new i(e,A)}};function FJ(i,e){for(let A of i.ranges)if(A.to>e)throw new RangeError("Selection points outside of document")}var n9=0,nt=class i{constructor(e,A,t,n,o){this.combine=e,this.compareInput=A,this.compare=t,this.isStatic=n,this.id=n9++,this.default=e([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(e={}){return new i(e.combine||(A=>A),e.compareInput||((A,t)=>A===t),e.compare||(e.combine?(A,t)=>A===t:o9),!!e.static,e.enables)}of(e){return new jB([],this,0,e)}compute(e,A){if(this.isStatic)throw new Error("Can't compute a static facet");return new jB(e,this,1,A)}computeN(e,A){if(this.isStatic)throw new Error("Can't compute a static facet");return new jB(e,this,2,A)}from(e,A){return A||(A=t=>t),this.compute([e],t=>A(t.field(e)))}};function o9(i,e){return i==e||i.length==e.length&&i.every((A,t)=>A===e[t])}var jB=class{constructor(e,A,t,n){this.dependencies=e,this.facet=A,this.type=t,this.value=n,this.id=n9++}dynamicSlot(e){var A;let t=this.value,n=this.facet.compareInput,o=this.id,a=e[o]>>1,r=this.type==2,s=!1,l=!1,g=[];for(let C of this.dependencies)C=="doc"?s=!0:C=="selection"?l=!0:(((A=e[C.id])!==null&&A!==void 0?A:1)&1)==0&&g.push(e[C.id]);return{create(C){return C.values[a]=t(C),1},update(C,d){if(s&&d.docChanged||l&&(d.docChanged||d.selection)||WM(C,g)){let B=t(C);if(r?!MJ(B,C.values[a],n):!n(B,C.values[a]))return C.values[a]=B,1}return 0},reconfigure:(C,d)=>{let B,u=d.config.address[o];if(u!=null){let E=F6(d,u);if(this.dependencies.every(f=>f instanceof nt?d.facet(f)===C.facet(f):f instanceof La?d.field(f,!1)==C.field(f,!1):!0)||(r?MJ(B=t(C),E,n):n(B=t(C),E)))return C.values[a]=E,0}else B=t(C);return C.values[a]=B,1}}}};function MJ(i,e,A){if(i.length!=e.length)return!1;for(let t=0;t<i.length;t++)if(!A(i[t],e[t]))return!1;return!0}function WM(i,e){let A=!1;for(let t of e)zu(i,t)&1&&(A=!0);return A}function NgA(i,e,A){let t=A.map(s=>i[s.id]),n=A.map(s=>s.type),o=t.filter(s=>!(s&1)),a=i[e.id]>>1;function r(s){let l=[];for(let g=0;g<t.length;g++){let C=F6(s,t[g]);if(n[g]==2)for(let d of C)l.push(d);else l.push(C)}return e.combine(l)}return{create(s){for(let l of t)zu(s,l);return s.values[a]=r(s),1},update(s,l){if(!WM(s,o))return 0;let g=r(s);return e.compare(g,s.values[a])?0:(s.values[a]=g,1)},reconfigure(s,l){let g=WM(s,t),C=l.config.facets[e.id],d=l.facet(e);if(C&&!g&&o9(A,C))return s.values[a]=d,0;let B=r(s);return e.compare(B,d)?(s.values[a]=d,0):(s.values[a]=B,1)}}}var b6=nt.define({static:!0}),La=class i{constructor(e,A,t,n,o){this.id=e,this.createF=A,this.updateF=t,this.compareF=n,this.spec=o,this.provides=void 0}static define(e){let A=new i(n9++,e.create,e.update,e.compare||((t,n)=>t===n),e);return e.provide&&(A.provides=e.provide(A)),A}create(e){let A=e.facet(b6).find(t=>t.field==this);return(A?.create||this.createF)(e)}slot(e){let A=e[this.id]>>1;return{create:t=>(t.values[A]=this.create(t),1),update:(t,n)=>{let o=t.values[A],a=this.updateF(o,n);return this.compareF(o,a)?0:(t.values[A]=a,1)},reconfigure:(t,n)=>{let o=t.facet(b6),a=n.facet(b6),r;return(r=o.find(s=>s.field==this))&&r!=a.find(s=>s.field==this)?(t.values[A]=r.create(t),1):n.config.address[this.id]!=null?(t.values[A]=n.field(this),0):(t.values[A]=this.create(t),1)}}}init(e){return[this,b6.of({field:this,create:e})]}get extension(){return this}},hd={lowest:4,low:3,default:2,high:1,highest:0};function Hu(i){return e=>new R6(e,i)}var oc={highest:Hu(hd.highest),high:Hu(hd.high),default:Hu(hd.default),low:Hu(hd.low),lowest:Hu(hd.lowest)},R6=class{constructor(e,A){this.inner=e,this.prec=A}},g0=class i{of(e){return new Pu(this,e)}reconfigure(e){return i.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},Pu=class{constructor(e,A){this.compartment=e,this.inner=A}},N6=class i{constructor(e,A,t,n,o,a){for(this.base=e,this.compartments=A,this.dynamicSlots=t,this.address=n,this.staticValues=o,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<t.length;)this.statusTemplate.push(0)}staticFacet(e){let A=this.address[e.id];return A==null?e.default:this.staticValues[A>>1]}static resolve(e,A,t){let n=[],o=Object.create(null),a=new Map;for(let d of FgA(e,A,a))d instanceof La?n.push(d):(o[d.facet.id]||(o[d.facet.id]=[])).push(d);let r=Object.create(null),s=[],l=[];for(let d of n)r[d.id]=l.length<<1,l.push(B=>d.slot(B));let g=t?.config.facets;for(let d in o){let B=o[d],u=B[0].facet,E=g&&g[d]||[];if(B.every(f=>f.type==0))if(r[u.id]=s.length<<1|1,o9(E,B))s.push(t.facet(u));else{let f=u.combine(B.map(m=>m.value));s.push(t&&u.compare(f,t.facet(u))?t.facet(u):f)}else{for(let f of B)f.type==0?(r[f.id]=s.length<<1|1,s.push(f.value)):(r[f.id]=l.length<<1,l.push(m=>f.dynamicSlot(m)));r[u.id]=l.length<<1,l.push(f=>NgA(f,u,B))}}let C=l.map(d=>d(r));return new i(e,a,C,r,s,o)}};function FgA(i,e,A){let t=[[],[],[],[],[]],n=new Map;function o(a,r){let s=n.get(a);if(s!=null){if(s<=r)return;let l=t[s].indexOf(a);l>-1&&t[s].splice(l,1),a instanceof Pu&&A.delete(a.compartment)}if(n.set(a,r),Array.isArray(a))for(let l of a)o(l,r);else if(a instanceof Pu){if(A.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let l=e.get(a.compartment)||a.inner;A.set(a.compartment,l),o(l,r)}else if(a instanceof R6)o(a.inner,a.prec);else if(a instanceof La)t[r].push(a),a.provides&&o(a.provides,r);else if(a instanceof jB)t[r].push(a),a.facet.extensions&&o(a.facet.extensions,hd.default);else{let l=a.extension;if(!l)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(l,r)}}return o(i,hd.default),t.reduce((a,r)=>a.concat(r))}function zu(i,e){if(e&1)return 2;let A=e>>1,t=i.status[A];if(t==4)throw new Error("Cyclic dependency between fields and/or facets");if(t&2)return t;i.status[A]=4;let n=i.computeSlot(i,i.config.dynamicSlots[A]);return i.status[A]=2|n}function F6(i,e){return e&1?i.config.staticValues[e>>1]:i.values[e>>1]}var SJ=nt.define(),HM=nt.define({combine:i=>i.some(e=>e),static:!0}),LJ=nt.define({combine:i=>i.length?i[0]:void 0,static:!0}),GJ=nt.define(),KJ=nt.define(),UJ=nt.define(),kJ=nt.define({combine:i=>i.length?i[0]:!1}),sl=class{constructor(e,A){this.type=e,this.value=A}static define(){return new ZM}},ZM=class{of(e){return new sl(this,e)}},XM=class{constructor(e){this.map=e}of(e){return new ln(this,e)}},ln=(()=>{class i{constructor(A,t){this.type=A,this.value=t}map(A){let t=this.type.map(this.value,A);return t===void 0?void 0:t==this.value?this:new i(this.type,t)}is(A){return this.type==A}static define(A={}){return new XM(A.map||(t=>t))}static mapEffects(A,t){if(!A.length)return A;let n=[];for(let o of A){let a=o.map(t);a&&n.push(a)}return n}}return i.reconfigure=i.define(),i.appendConfig=i.define(),i})(),l0=(()=>{class i{constructor(A,t,n,o,a,r){this.startState=A,this.changes=t,this.selection=n,this.effects=o,this.annotations=a,this.scrollIntoView=r,this._doc=null,this._state=null,n&&FJ(n,t.newLength),a.some(s=>s.type==i.time)||(this.annotations=a.concat(i.time.of(Date.now())))}static create(A,t,n,o,a,r){return new i(A,t,n,o,a,r)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(A){for(let t of this.annotations)if(t.type==A)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(A){let t=this.annotation(i.userEvent);return!!(t&&(t==A||t.length>A.length&&t.slice(0,A.length)==A&&t[A.length]=="."))}}return i.time=sl.define(),i.userEvent=sl.define(),i.addToHistory=sl.define(),i.remote=sl.define(),i})();function LgA(i,e){let A=[];for(let t=0,n=0;;){let o,a;if(t<i.length&&(n==e.length||e[n]>=i[t]))o=i[t++],a=i[t++];else if(n<e.length)o=e[n++],a=e[n++];else return A;!A.length||A[A.length-1]<o?A.push(o,a):A[A.length-1]<a&&(A[A.length-1]=a)}}function TJ(i,e,A){var t;let n,o,a;return A?(n=e.changes,o=Zr.empty(e.changes.length),a=i.changes.compose(e.changes)):(n=e.changes.map(i.changes),o=i.changes.mapDesc(e.changes,!0),a=i.changes.compose(n)),{changes:a,selection:e.selection?e.selection.map(o):(t=i.selection)===null||t===void 0?void 0:t.map(n),effects:ln.mapEffects(i.effects,n).concat(ln.mapEffects(e.effects,o)),annotations:i.annotations.length?i.annotations.concat(e.annotations):e.annotations,scrollIntoView:i.scrollIntoView||e.scrollIntoView}}function $M(i,e,A){let t=e.selection,n=VB(e.annotations);return e.userEvent&&(n=n.concat(l0.userEvent.of(e.userEvent))),{changes:e.changes instanceof Zr?e.changes:Zr.of(e.changes||[],A,i.facet(LJ)),selection:t&&(t instanceof Be?t:Be.single(t.anchor,t.head)),effects:VB(e.effects),annotations:n,scrollIntoView:!!e.scrollIntoView}}function OJ(i,e,A){let t=$M(i,e.length?e[0]:{},i.doc.length);e.length&&e[0].filter===!1&&(A=!1);for(let o=1;o<e.length;o++){e[o].filter===!1&&(A=!1);let a=!!e[o].sequential;t=TJ(t,$M(i,e[o],a?t.changes.newLength:i.doc.length),a)}let n=l0.create(i,t.changes,t.selection,t.effects,t.annotations,t.scrollIntoView);return KgA(A?GgA(n):n)}function GgA(i){let e=i.startState,A=!0;for(let n of e.facet(GJ)){let o=n(i);if(o===!1){A=!1;break}Array.isArray(o)&&(A=A===!0?o:LgA(A,o))}if(A!==!0){let n,o;if(A===!1)o=i.changes.invertedDesc,n=Zr.empty(e.doc.length);else{let a=i.changes.filter(A);n=a.changes,o=a.filtered.mapDesc(a.changes).invertedDesc}i=l0.create(e,n,i.selection&&i.selection.map(o),ln.mapEffects(i.effects,o),i.annotations,i.scrollIntoView)}let t=e.facet(KJ);for(let n=t.length-1;n>=0;n--){let o=t[n](i);o instanceof l0?i=o:Array.isArray(o)&&o.length==1&&o[0]instanceof l0?i=o[0]:i=OJ(e,VB(o),!1)}return i}function KgA(i){let e=i.startState,A=e.facet(UJ),t=i;for(let n=A.length-1;n>=0;n--){let o=A[n](i);o&&Object.keys(o).length&&(t=TJ(t,$M(e,o,i.changes.newLength),!0))}return t==i?i:l0.create(e,i.changes,i.selection,t.effects,t.annotations,t.scrollIntoView)}var UgA=[];function VB(i){return i==null?UgA:Array.isArray(i)?i:[i]}var $o=(function(i){return i[i.Word=0]="Word",i[i.Space=1]="Space",i[i.Other=2]="Other",i})($o||($o={})),TgA=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,A9;try{A9=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(i){}function OgA(i){if(A9)return A9.test(i);for(let e=0;e<i.length;e++){let A=i[e];if(/\w/.test(A)||A>"\x80"&&(A.toUpperCase()!=A.toLowerCase()||TgA.test(A)))return!0}return!1}function JgA(i){return e=>{if(!/\S/.test(e))return $o.Space;if(OgA(e))return $o.Word;for(let A=0;A<i.length;A++)if(e.indexOf(i[A])>-1)return $o.Word;return $o.Other}}var ir=(()=>{class i{constructor(A,t,n,o,a,r){this.config=A,this.doc=t,this.selection=n,this.values=o,this.status=A.statusTemplate.slice(),this.computeSlot=a,r&&(r._state=this);for(let s=0;s<this.config.dynamicSlots.length;s++)zu(this,s<<1);this.computeSlot=null}field(A,t=!0){let n=this.config.address[A.id];if(n==null){if(t)throw new RangeError("Field is not present in this state");return}return zu(this,n),F6(this,n)}update(...A){return OJ(this,A,!0)}applyTransaction(A){let t=this.config,{base:n,compartments:o}=t;for(let s of A.effects)s.is(g0.reconfigure)?(t&&(o=new Map,t.compartments.forEach((l,g)=>o.set(g,l)),t=null),o.set(s.value.compartment,s.value.extension)):s.is(ln.reconfigure)?(t=null,n=s.value):s.is(ln.appendConfig)&&(t=null,n=VB(n).concat(s.value));let a;t?a=A.startState.values.slice():(t=N6.resolve(n,o,this),a=new i(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(l,g)=>g.reconfigure(l,this),null).values);let r=A.startState.facet(HM)?A.newSelection:A.newSelection.asSingle();new i(t,A.newDoc,r,a,(s,l)=>l.update(s,A),A)}replaceSelection(A){return typeof A=="string"&&(A=this.toText(A)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:A},range:Be.cursor(t.from+A.length)}))}changeByRange(A){let t=this.selection,n=A(t.ranges[0]),o=this.changes(n.changes),a=[n.range],r=VB(n.effects);for(let s=1;s<t.ranges.length;s++){let l=A(t.ranges[s]),g=this.changes(l.changes),C=g.map(o);for(let B=0;B<s;B++)a[B]=a[B].map(C);let d=o.mapDesc(g,!0);a.push(l.range.map(d)),o=o.compose(C),r=ln.mapEffects(r,C).concat(ln.mapEffects(VB(l.effects),d))}return{changes:o,selection:Be.create(a,t.mainIndex),effects:r}}changes(A=[]){return A instanceof Zr?A:Zr.of(A,this.doc.length,this.facet(i.lineSeparator))}toText(A){return On.of(A.split(this.facet(i.lineSeparator)||jM))}sliceDoc(A=0,t=this.doc.length){return this.doc.sliceString(A,t,this.lineBreak)}facet(A){let t=this.config.address[A.id];return t==null?A.default:(zu(this,t),F6(this,t))}toJSON(A){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(A)for(let n in A){let o=A[n];o instanceof La&&this.config.address[o.id]!=null&&(t[n]=o.spec.toJSON(this.field(A[n]),this))}return t}static fromJSON(A,t={},n){if(!A||typeof A.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let o=[];if(n){for(let a in n)if(Object.prototype.hasOwnProperty.call(A,a)){let r=n[a],s=A[a];o.push(r.init(l=>r.spec.fromJSON(s,l)))}}return i.create({doc:A.doc,selection:Be.fromJSON(A.selection),extensions:t.extensions?o.concat([t.extensions]):o})}static create(A={}){let t=N6.resolve(A.extensions||[],new Map),n=A.doc instanceof On?A.doc:On.of((A.doc||"").split(t.staticFacet(i.lineSeparator)||jM)),o=A.selection?A.selection instanceof Be?A.selection:Be.single(A.selection.anchor,A.selection.head):Be.single(0);return FJ(o,n.length),t.staticFacet(HM)||(o=o.asSingle()),new i(t,n,o,t.dynamicSlots.map(()=>null),(a,r)=>r.create(a),null)}get tabSize(){return this.facet(i.tabSize)}get lineBreak(){return this.facet(i.lineSeparator)||`

Callers 15

frFunction · 0.80
CeFunction · 0.80
tFunction · 0.80
chunk-TNJPXCAB.jsFile · 0.80
chunk-WLB2FJ7K.jsFile · 0.80
HtFunction · 0.80
geFunction · 0.80
chunk-JW2YJHYO.jsFile · 0.80
chunk-QMDHABEH.jsFile · 0.80
StFunction · 0.80
constructorMethod · 0.80
YeFunction · 0.80

Calls 4

decomposeMethod · 0.95
qBFunction · 0.85
fromMethod · 0.45
maxMethod · 0.45

Tested by 1

itFunction · 0.64