openpond 0.2.61 → 0.2.62
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.
- package/dist/app-server.d.ts +3264 -18
- package/dist/app-server.js +1 -1
- package/dist/chunks/{acp-FUAWCKBH.js → acp-DYRBDJRU.js} +1 -1
- package/dist/chunks/{acp-agent-XBSJ27KI.js → acp-agent-UTLP7C3I.js} +1 -1
- package/dist/chunks/{actions-command-LOHNQUWP.js → actions-command-6LF4Z4WK.js} +1 -1
- package/dist/chunks/{app-layer-4BFMOMKM.js → app-layer-N2H3RBEN.js} +1 -1
- package/dist/chunks/{app-server-connected-apps-Q2VWWJNX.js → app-server-connected-apps-3T546FE7.js} +1 -1
- package/dist/chunks/app-server-evaluations-TXD747QA.js +2 -0
- package/dist/chunks/{app-server-harness-services-2PSZBT7U.js → app-server-harness-services-BBCDV5P3.js} +1 -1
- package/dist/chunks/app-server-runtime-VEJPDAFP.js +2 -0
- package/dist/chunks/{apps-7PIBF32Q.js → apps-CTT2XYRR.js} +1 -1
- package/dist/chunks/{chunk-KK626T3Z.js → chunk-2EPR4HLF.js} +1 -1
- package/dist/chunks/{chunk-5VPU7OS7.js → chunk-2IIBCCOK.js} +1 -1
- package/dist/chunks/{chunk-ZISYLRH6.js → chunk-2UDAKLJ4.js} +1 -1
- package/dist/chunks/{chunk-BDCTN4PU.js → chunk-2V4LPUBH.js} +1 -1
- package/dist/chunks/{chunk-I3X6M6ZO.js → chunk-3R4MSE2S.js} +1 -1
- package/dist/chunks/{chunk-OFVUN4KI.js → chunk-47AXSBPV.js} +1 -1
- package/dist/chunks/{chunk-BFKYRQMA.js → chunk-4N4EH3RJ.js} +1 -1
- package/dist/chunks/chunk-4PZWGNX4.js +86 -0
- package/dist/chunks/{chunk-VFLSBDNZ.js → chunk-4RZBGKT7.js} +1 -1
- package/dist/chunks/{chunk-VBW2X42G.js → chunk-4TM75R7V.js} +1 -1
- package/dist/chunks/chunk-4U2FNXQW.js +2 -0
- package/dist/chunks/{chunk-SCCYSPQ5.js → chunk-4ZBOYWQ3.js} +1 -1
- package/dist/chunks/{chunk-VWJ5IYQP.js → chunk-547AUVKN.js} +1 -1
- package/dist/chunks/{chunk-FJ3HMHT6.js → chunk-557XSPVS.js} +1 -1
- package/dist/chunks/{chunk-ZHFH2TZN.js → chunk-557YG77L.js} +1 -1
- package/dist/chunks/{chunk-MF35MALN.js → chunk-5A6ER3M2.js} +1 -1
- package/dist/chunks/{chunk-U4HZD2GM.js → chunk-5OSM75X5.js} +1 -1
- package/dist/chunks/{chunk-TH6Y4K5Z.js → chunk-6SH4B7DV.js} +1 -1
- package/dist/chunks/chunk-6XSSM4WT.js +3 -0
- package/dist/chunks/{chunk-HN2ZK6EV.js → chunk-7JBB4PXS.js} +1 -1
- package/dist/chunks/{chunk-SID4X3YN.js → chunk-7JXZNCBC.js} +1 -1
- package/dist/chunks/chunk-7KTARW23.js +2 -0
- package/dist/chunks/{chunk-M6JRS5PA.js → chunk-ABF3W2MO.js} +1 -1
- package/dist/chunks/{chunk-CGAL7IHZ.js → chunk-AKZPMKWP.js} +1 -1
- package/dist/chunks/{chunk-SIV5P6JO.js → chunk-AMO5DVKM.js} +2 -2
- package/dist/chunks/chunk-AZ7BL5FL.js +2 -0
- package/dist/chunks/{chunk-4RHM4WN2.js → chunk-B42QQUZY.js} +1 -1
- package/dist/chunks/{chunk-3DVWJCOA.js → chunk-B4RKHHF7.js} +1 -1
- package/dist/chunks/{chunk-CQF6QZEL.js → chunk-BEI4YULC.js} +1 -1
- package/dist/chunks/chunk-BKEDG3A4.js +22 -0
- package/dist/chunks/{chunk-GEXKTGLY.js → chunk-C7M2WBWZ.js} +14 -14
- package/dist/chunks/{chunk-ELYRVTTG.js → chunk-CJUVHE4U.js} +1 -1
- package/dist/chunks/{chunk-ZUNG6YDO.js → chunk-EIX2V2KU.js} +1 -1
- package/dist/chunks/{chunk-AWPYTDH4.js → chunk-EWOTDVDJ.js} +1 -1
- package/dist/chunks/{chunk-B47JMAVW.js → chunk-F4TJ7WQV.js} +1 -1
- package/dist/chunks/{chunk-TXBIZDXG.js → chunk-F7D4BMTO.js} +1 -1
- package/dist/chunks/{chunk-BWY4D3BN.js → chunk-FFWOTZQM.js} +1 -1
- package/dist/chunks/{chunk-6RVF2J47.js → chunk-FUSCTBJI.js} +1 -1
- package/dist/chunks/{chunk-BN5AVRUG.js → chunk-GAQLXFOT.js} +1 -1
- package/dist/chunks/{chunk-LHENAWLH.js → chunk-GEKORCMN.js} +1 -1
- package/dist/chunks/{chunk-ORLJJGZZ.js → chunk-GNCEZ3UP.js} +1 -1
- package/dist/chunks/{chunk-WRQEYW3V.js → chunk-GOIKLFXK.js} +1 -1
- package/dist/chunks/{chunk-65SM7Y2G.js → chunk-GQGLPKU4.js} +1 -1
- package/dist/chunks/{chunk-LBBXVOVR.js → chunk-GSWBNJGZ.js} +1 -1
- package/dist/chunks/{chunk-7EAWLYYB.js → chunk-GV3LFSMI.js} +1 -1
- package/dist/chunks/{chunk-GQUS7MCH.js → chunk-GW5SE3FM.js} +1 -1
- package/dist/chunks/{chunk-I3W27VK4.js → chunk-HBLN4OLY.js} +1 -1
- package/dist/chunks/{chunk-SGK4GR44.js → chunk-HFJUXKT5.js} +1 -1
- package/dist/chunks/{chunk-4P3X2RXA.js → chunk-HKV7RX5E.js} +1 -1
- package/dist/chunks/{chunk-QDBYLJGH.js → chunk-HXZXDDKW.js} +1 -1
- package/dist/chunks/{chunk-LNRFRAV5.js → chunk-INO67SEN.js} +1 -1
- package/dist/chunks/{chunk-E67M5WGY.js → chunk-IWK3RTLR.js} +1 -1
- package/dist/chunks/{chunk-U447MS3Y.js → chunk-J3B2GM4A.js} +1 -1
- package/dist/chunks/chunk-JCLTFDVW.js +2 -0
- package/dist/chunks/{chunk-25RDE7DV.js → chunk-JEISPWWM.js} +1 -1
- package/dist/chunks/{chunk-D4JZALZ4.js → chunk-JIFUGA3U.js} +1 -1
- package/dist/chunks/{chunk-H2AUR7OT.js → chunk-JQRMDFF3.js} +1 -1
- package/dist/chunks/{chunk-FWIPHEVA.js → chunk-JX6OX6XE.js} +1 -1
- package/dist/chunks/{chunk-D5ADDBS5.js → chunk-JY3YSI54.js} +1 -1
- package/dist/chunks/{chunk-CM5USMXN.js → chunk-KOKX7PBS.js} +1 -1
- package/dist/chunks/{chunk-3ZWLRBYZ.js → chunk-KUPJNBWG.js} +1 -1
- package/dist/chunks/chunk-LILXHGIA.js +2 -0
- package/dist/chunks/{chunk-MCIIGQT7.js → chunk-LJDBR3RN.js} +1 -1
- package/dist/chunks/{chunk-3TYCIYW6.js → chunk-LJPO3TEL.js} +1 -1
- package/dist/chunks/{chunk-MHYI7ATG.js → chunk-LRRBYIGH.js} +2 -2
- package/dist/chunks/{chunk-P4XM7LUT.js → chunk-M5IX6VUA.js} +1 -1
- package/dist/chunks/chunk-MEK7DLX3.js +2 -0
- package/dist/chunks/{chunk-TYHCBVQT.js → chunk-MILEWROZ.js} +1 -1
- package/dist/chunks/{chunk-ZBBVRYU3.js → chunk-MNFW5WLD.js} +1 -1
- package/dist/chunks/{chunk-2VXL6AU3.js → chunk-MNXNZDDW.js} +1 -1
- package/dist/chunks/chunk-N5GPINVP.js +2 -0
- package/dist/chunks/{chunk-TSAW2QVU.js → chunk-NBE74GLF.js} +1 -1
- package/dist/chunks/{chunk-VZXZ6CHS.js → chunk-NE4ESZPT.js} +1 -1
- package/dist/chunks/{chunk-CO3OJFPU.js → chunk-NKZNPTLA.js} +1 -1
- package/dist/chunks/{chunk-WFVOG5PU.js → chunk-NLQ2UPN2.js} +1 -1
- package/dist/chunks/chunk-NOSBNHGC.js +18 -0
- package/dist/chunks/{chunk-TTN63EAM.js → chunk-NWOK6NLE.js} +1 -1
- package/dist/chunks/{chunk-6MWT6BVU.js → chunk-NWQL6FNF.js} +1 -1
- package/dist/chunks/chunk-O3MHHGC5.js +151 -0
- package/dist/chunks/{chunk-IUGK6BBY.js → chunk-OCC43RSJ.js} +1 -1
- package/dist/chunks/{chunk-BQUWZRWU.js → chunk-P74RR2GB.js} +1 -1
- package/dist/chunks/{chunk-PAZDQRYU.js → chunk-PAE3PQEC.js} +1 -1
- package/dist/chunks/{chunk-M4ZRCRJM.js → chunk-PGO4FRHU.js} +2 -2
- package/dist/chunks/chunk-Q34IF4PW.js +2 -0
- package/dist/chunks/{chunk-Q324ZA5M.js → chunk-QAVQJZCM.js} +1 -1
- package/dist/chunks/{chunk-EIIGTADO.js → chunk-RBDUMASL.js} +1 -1
- package/dist/chunks/{chunk-TMMFF6DO.js → chunk-RH43WLBX.js} +1 -1
- package/dist/chunks/{chunk-RPOD6I64.js → chunk-RTJCELRR.js} +1 -1
- package/dist/chunks/{chunk-L3GA2CQI.js → chunk-SD64CLJX.js} +1 -1
- package/dist/chunks/{chunk-TNHDD3LO.js → chunk-SXMR6E2W.js} +1 -1
- package/dist/chunks/{chunk-MLTKB5G3.js → chunk-SZKFNKWO.js} +1 -1
- package/dist/chunks/chunk-T4QXKU5Y.js +1 -0
- package/dist/chunks/{chunk-PE7UKJXK.js → chunk-T6C5BNXK.js} +1 -1
- package/dist/chunks/{chunk-OMICIPPY.js → chunk-T6JN4PND.js} +1 -1
- package/dist/chunks/{chunk-OQUKSRU3.js → chunk-TGEGXTPR.js} +1 -1
- package/dist/chunks/chunk-TM4VEMNN.js +2 -0
- package/dist/chunks/chunk-TUCKED4T.js +4 -0
- package/dist/chunks/chunk-TVTFEGTU.js +2 -0
- package/dist/chunks/{chunk-HZLV773Y.js → chunk-TW3SRBLU.js} +1 -1
- package/dist/chunks/{chunk-BNZTJPK7.js → chunk-U456UP3N.js} +1 -1
- package/dist/chunks/chunk-UC3FXTDL.js +9 -0
- package/dist/chunks/{chunk-XLULTQLZ.js → chunk-UT6F6AIB.js} +1 -1
- package/dist/chunks/{chunk-OJFDI7VM.js → chunk-UTNGEMW5.js} +1 -1
- package/dist/chunks/{chunk-DW3GJRY3.js → chunk-VAJSRUAB.js} +1 -1
- package/dist/chunks/chunk-VE6ZIGUQ.js +2 -0
- package/dist/chunks/{chunk-GLVR74PX.js → chunk-VI32G77S.js} +1 -1
- package/dist/chunks/{chunk-ROE24PN5.js → chunk-VK4TPZTA.js} +1 -1
- package/dist/chunks/{chunk-Q66LWQGF.js → chunk-VSQXDS6H.js} +1 -1
- package/dist/chunks/{chunk-4GZ2FPB5.js → chunk-VWRTE64Y.js} +1 -1
- package/dist/chunks/{chunk-QRJPLZF7.js → chunk-W5W4IODW.js} +1 -1
- package/dist/chunks/{chunk-57RY3LSR.js → chunk-WGLVSGFA.js} +1 -1
- package/dist/chunks/{chunk-I7JCARVH.js → chunk-WQMXEZVE.js} +3 -3
- package/dist/chunks/chunk-X4ZT22SG.js +2 -0
- package/dist/chunks/{chunk-DGPGOBYZ.js → chunk-XSB3T4JZ.js} +1 -1
- package/dist/chunks/{chunk-ZZWAQBA2.js → chunk-XWDFXM3S.js} +1 -1
- package/dist/chunks/{chunk-4LZLO4OW.js → chunk-Y2KPHVZK.js} +1 -1
- package/dist/chunks/chunk-ZQHPGEYT.js +2 -0
- package/dist/chunks/{chunk-T4LLJC5N.js → chunk-ZXT7V64X.js} +1 -1
- package/dist/chunks/cli-GCSO2OAI.js +2 -0
- package/dist/chunks/{configuration-command-ONGI2BJD.js → configuration-command-BU2RPG33.js} +1 -1
- package/dist/chunks/connected-app-executor-UDE7U4KG.js +2 -0
- package/dist/chunks/{connected-evidence-4J3YXU4O.js → connected-evidence-GXIY2L7C.js} +1 -1
- package/dist/chunks/{connected-starting-assets-OXLT7S4O.js → connected-starting-assets-V5QXRK5Q.js} +1 -1
- package/dist/chunks/{connection-HJWE6SEW.js → connection-XMAAGMXJ.js} +1 -1
- package/dist/chunks/{continual-CJUZM5ZQ.js → continual-FLW6DAJK.js} +1 -1
- package/dist/chunks/{core-commands-JGXU6B4C.js → core-commands-NJ6TGND4.js} +1 -1
- package/dist/chunks/{dataset-preparation-authoring-DFGJBMVF.js → dataset-preparation-authoring-IUXUQK3L.js} +1 -1
- package/dist/chunks/{datasets-MNHZAZIB.js → datasets-AH56DKLZ.js} +1 -1
- package/dist/chunks/{desktop-test-P23MHAIG.js → desktop-test-PYUTEOWO.js} +1 -1
- package/dist/chunks/{dist-IIFTZWNR.js → dist-5267UT3V.js} +1 -1
- package/dist/chunks/{dist-X64FC6NA.js → dist-HSC43RG4.js} +1 -1
- package/dist/chunks/{evaluation-coordination-6NQEH5WU.js → evaluation-coordination-3AUICOC5.js} +1 -1
- package/dist/chunks/{experiment-improvements-M27Z5OF4.js → experiment-improvements-YS7GGPDW.js} +1 -1
- package/dist/chunks/experiments-EJZK7FPT.js +2 -0
- package/dist/chunks/{experiments-signal-R3NNH7WR.js → experiments-signal-NKUIJCIY.js} +1 -1
- package/dist/chunks/{extension-C33NUFDL.js → extension-ZM6NI5O5.js} +1 -1
- package/dist/chunks/{help-M2VQGPVC.js → help-PXUUREHZ.js} +1 -1
- package/dist/chunks/host-profile-evaluation-tools-CTC5JQPD.js +2 -0
- package/dist/chunks/host-profile-external-dataset-GJWDY3YT.js +2 -0
- package/dist/chunks/hosted-app-server-composition-TLJSKMJT.js +2 -0
- package/dist/chunks/hosted-experiment-improvement-TIVXXRPG.js +3 -0
- package/dist/chunks/hosted-harness-runtime-SFLJEZFI.js +2 -0
- package/dist/chunks/{hosted-profile-candidate-37ZFY2LH.js → hosted-profile-candidate-DKEMVIYG.js} +1 -1
- package/dist/chunks/hosted-profile-compiler-V6YR6EHO.js +2 -0
- package/dist/chunks/{hosted-profile-evaluation-control-UQBMML6K.js → hosted-profile-evaluation-control-ERCXAPZD.js} +1 -1
- package/dist/chunks/{hosted-profile-evaluation-inspection-YASS4T6L.js → hosted-profile-evaluation-inspection-Q3AIIIB6.js} +1 -1
- package/dist/chunks/hosted-profile-evaluation-preparation-ELLGH44Z.js +3 -0
- package/dist/chunks/{hosted-tasksets-CVUP7MS6.js → hosted-tasksets-X2YCFYEJ.js} +1 -1
- package/dist/chunks/{human-review-IJETDOWB.js → human-review-5WM6MSON.js} +1 -1
- package/dist/chunks/{import-WLLUIDS6.js → import-JWZSZCE4.js} +1 -1
- package/dist/chunks/local-harness-improvement-runtime-IGIKM6GJ.js +2 -0
- package/dist/chunks/local-harness-taskset-review-DR2ZIDOH.js +2 -0
- package/dist/chunks/{model-projects-AVBQDNYG.js → model-projects-H22KENI4.js} +1 -1
- package/dist/chunks/opchat-3S6TSDZO.js +3 -0
- package/dist/chunks/opchat-bounded-chat-B7LPCD4U.js +2 -0
- package/dist/chunks/{organizations-DJRJWC5I.js → organizations-62YNTZTO.js} +1 -1
- package/dist/chunks/{profile-JRS3JNRC.js → profile-ELE2D7HU.js} +1 -1
- package/dist/chunks/project-action-payload-32F4X2BB.js +2 -0
- package/dist/chunks/{project-agent-2KNJFNZI.js → project-agent-O4REKO6T.js} +1 -1
- package/dist/chunks/{published-experiment-source-LFYHKFAO.js → published-experiment-source-DAOTJLIN.js} +1 -1
- package/dist/chunks/refiner-profile-service-DYMZ7J3X.js +2 -0
- package/dist/chunks/{runtime-CBJF5GMB.js → runtime-776NUSE7.js} +2 -2
- package/dist/chunks/{sandbox-command-IIGTPYN3.js → sandbox-command-UQ26NDIX.js} +1 -1
- package/dist/chunks/{sandbox-template-FTANKQIA.js → sandbox-template-WP6YCGBK.js} +1 -1
- package/dist/chunks/saved-work-PG52WCRQ.js +2 -0
- package/dist/chunks/{send-turn-5UB7ZBJV.js → send-turn-RPB65PME.js} +1 -1
- package/dist/chunks/{src-4YZF6L6H.js → src-2R4CMCJ5.js} +1 -1
- package/dist/chunks/src-AU6LG7E6.js +421 -0
- package/dist/chunks/standalone-experiment-turn-owner-SD3SUTKX.js +2 -0
- package/dist/chunks/{store-chat-resources-CGW7PDCG.js → store-chat-resources-T4LR7K25.js} +1 -1
- package/dist/chunks/{store-continual-support-reviews-GWI2FRII.js → store-continual-support-reviews-R62D2HD6.js} +1 -1
- package/dist/chunks/{store-conversation-serving-637AHKBP.js → store-conversation-serving-25O7BAR2.js} +1 -1
- package/dist/chunks/{store-create-improve-ZG653Z63.js → store-create-improve-T5E2GUKK.js} +1 -1
- package/dist/chunks/{store-datasets-IW6F2QZM.js → store-datasets-5Y4U5L3R.js} +1 -1
- package/dist/chunks/{store-evaluation-results-V5J6L4NV.js → store-evaluation-results-WUVJWCFU.js} +1 -1
- package/dist/chunks/{store-harness-workspaces-HHMM6GNK.js → store-harness-workspaces-IFEFY5CK.js} +1 -1
- package/dist/chunks/{store-human-review-V5H4QDHR.js → store-human-review-ZQNLZRGG.js} +1 -1
- package/dist/chunks/store-learned-preference-migration-validation-UH6MJQSH.js +2 -0
- package/dist/chunks/{store-local-experiments-A2UWYPVQ.js → store-local-experiments-LOH4F4TF.js} +1 -1
- package/dist/chunks/{store-model-batch-review-KMYPYWJR.js → store-model-batch-review-QO4VVKWC.js} +1 -1
- package/dist/chunks/{store-model-configuration-UXNC4PGY.js → store-model-configuration-C3HSOFD5.js} +1 -1
- package/dist/chunks/store-model-project-preparation-RQ2YTC2Y.js +2 -0
- package/dist/chunks/{store-preference-comparison-HTOXLWKF.js → store-preference-comparison-RNIFLJRW.js} +1 -1
- package/dist/chunks/{store-schedules-QVWT7AEB.js → store-schedules-DVQ2PP4F.js} +1 -1
- package/dist/chunks/{store-sidebar-file-bookmarks-G5Z6NZWL.js → store-sidebar-file-bookmarks-LXWFFYCZ.js} +1 -1
- package/dist/chunks/{store-sidebar-preferences-27FFMUWU.js → store-sidebar-preferences-4HH7LX6N.js} +1 -1
- package/dist/chunks/{store-subagents-PK7ZWLPR.js → store-subagents-JLW4GD4Q.js} +1 -1
- package/dist/chunks/{store-task-inbox-LNDCZOYE.js → store-task-inbox-DL5RYFPO.js} +1 -1
- package/dist/chunks/{store-task-inventory-IG6HGWSQ.js → store-task-inventory-NJXRXFLC.js} +1 -1
- package/dist/chunks/store-taskset-drafts-UFGN4SGF.js +9 -0
- package/dist/chunks/{store-training-NQRRPKEZ.js → store-training-VRLU6NFX.js} +1 -1
- package/dist/chunks/{store-training-jobs-F6Y2ZTXP.js → store-training-jobs-3ZHG4LGI.js} +1 -1
- package/dist/chunks/{store-training-models-NRSLSBEW.js → store-training-models-KWQD5PRP.js} +1 -1
- package/dist/chunks/{store-usage-GFHQYT34.js → store-usage-ZRS3ILF2.js} +1 -1
- package/dist/chunks/{taskset-NYLUYX6K.js → taskset-QDMCQQDJ.js} +1 -1
- package/dist/chunks/{taskset-packages-I7I5KBFP.js → taskset-packages-CBLJFWDQ.js} +1 -1
- package/dist/chunks/{teams-bot-FMAEDGSD.js → teams-bot-GF272RGC.js} +1 -1
- package/dist/chunks/{training-UBX6E7SK.js → training-DF5UEPY3.js} +1 -1
- package/dist/chunks/{training-error-AYOGHHL2.js → training-error-L5V5IBX3.js} +1 -1
- package/dist/chunks/training-hosted-I2NDBYGS.js +2 -0
- package/dist/chunks/training-hosted-report-4F25RZZ4.js +2 -0
- package/dist/chunks/training-hosted-serving-QAV7ZGGV.js +2 -0
- package/dist/chunks/training-project-preparation-XWGRY5ME.js +3 -0
- package/dist/chunks/{web-search-Q4OQVUNH.js → web-search-5RUXYIOF.js} +1 -1
- package/dist/chunks/{workspaces-XREEVSTS.js → workspaces-JRY2IE7H.js} +1 -1
- package/dist/cli.js +2 -2
- package/dist/hosted-chat.d.ts +28 -0
- package/dist/index.js +1 -1
- package/dist/skills/openpond-cli/SKILL.md +15 -2
- package/dist/skills/openpond-cli/references/compact-resource-tables.md +3 -3
- package/dist/skills/openpond-cli/references/diagnose-and-improve.md +4 -2
- package/dist/skills/openpond-cli/references/experiments-and-training.md +155 -10
- package/dist/skills/openpond-taskset-authoring/SKILL.md +5 -4
- package/dist/skills/openpond-taskset-authoring/artifact.json +7 -7
- package/dist/skills/openpond-taskset-authoring/references/failure-diagnosis.md +52 -1
- package/dist/web/assets/App-DHJVXTI2.js +54 -0
- package/dist/web/assets/App-DpFKLxuA.css +1 -0
- package/dist/web/assets/AppDialog-BurL61qE.js +1 -0
- package/dist/web/assets/AppTerminalPanel-RjFlF-a4.js +2 -0
- package/dist/web/assets/{AppToastContext-BB_2hRfw.js → AppToastContext-DZLErwj0.js} +1 -1
- package/dist/web/assets/AppsView-ttlr9ckQ.js +1 -0
- package/dist/web/assets/{AttachmentTypeIcon-DOAsVQjt.js → AttachmentTypeIcon-CpMSfHCK.js} +1 -1
- package/dist/web/assets/BrowserSidebar-Cp2l0kg0.js +1 -0
- package/dist/web/assets/{CartesianChart-DO76yfJb.js → CartesianChart-CEbM980A.js} +1 -1
- package/dist/web/assets/{ChatTimelineEntry-IKzZsHoI.js → ChatTimelineEntry-BITv20Ze.js} +1 -1
- package/dist/web/assets/{CollaborationTabs-DNoknVMD.js → CollaborationTabs-DrKJmJZK.js} +1 -1
- package/dist/web/assets/{CommandMenu-CBY2AJxV.js → CommandMenu-6oj8FUr6.js} +1 -1
- package/dist/web/assets/CommunityView-BzpIq1lD.js +1 -0
- package/dist/web/assets/ComposerAttachments-6en7m_ov.js +2 -0
- package/dist/web/assets/ComposerCreateImproveStrip-ChplO9YP.js +1 -0
- package/dist/web/assets/ConversationImportsSettings-DRHgc7j_.js +1 -0
- package/dist/web/assets/FilePagePreview-CW4J_1u7.js +2 -0
- package/dist/web/assets/GetStartedView-CaBk_mX6.js +1 -0
- package/dist/web/assets/GettingStartedDialog-EsH-8Diz.css +1 -0
- package/dist/web/assets/GettingStartedDialog-JtFLyU3F.js +1 -0
- package/dist/web/assets/{HostedModelLearningReview-B0rbIVvn.js → HostedModelLearningReview-hhcjDifK.js} +1 -1
- package/dist/web/assets/HostedModelLearningSettings-CY8198Y1.js +1 -0
- package/dist/web/assets/LabModelVersionDetailPage-f0tHT-Sn.js +1 -0
- package/dist/web/assets/LabSkillSidebar-HibUEEko.js +1 -0
- package/dist/web/assets/{LabsRoute-DOnw39du.js → LabsRoute-B61l1b8P.js} +8 -8
- package/dist/web/assets/MainChatThread-egKi0gLk.js +2 -0
- package/dist/web/assets/MainPane-2dj6Dg4l.js +95 -0
- package/dist/web/assets/{MainPane-CuBUBA9F.css → MainPane-BwHw3UYp.css} +1 -1
- package/dist/web/assets/NativeSetupTerminal-3eR9D_R3.css +1 -0
- package/dist/web/assets/NativeSetupTerminal-CNHTByLo.js +2 -0
- package/dist/web/assets/NativeSkillSidebar-DCdMbSfe.js +1 -0
- package/dist/web/assets/NewProjectDialog-t9Imnb__.js +1 -0
- package/dist/web/assets/OutputsPage-CeGq_F1S.js +1 -0
- package/dist/web/assets/{PageChrome-BBnWAENV.js → PageChrome-VHME5V8j.js} +1 -1
- package/dist/web/assets/ProjectsPage-2TMZoEPB.js +1 -0
- package/dist/web/assets/RightChatPanelStack-B3mBViGC.js +1 -0
- package/dist/web/assets/RightSidebarHomePanel-CxDYSyyx.js +1 -0
- package/dist/web/assets/ScheduledWorkPage-Dh47iH11.js +1 -0
- package/dist/web/assets/SettingsView-D2bu3tK_.js +5 -0
- package/dist/web/assets/TeamChatView-CN17AsgA.js +1 -0
- package/dist/web/assets/TerminalOverlay-DlhRpi-X.js +16 -0
- package/dist/web/assets/TrainingCreationPanel-DJKzaNFj.js +1 -0
- package/dist/web/assets/{TrainingDraftPanel-HznyNCJ4.js → TrainingDraftPanel-BhhZPPuY.js} +1 -1
- package/dist/web/assets/{TrainingMetricWorkbench-BmzHLwIP.js → TrainingMetricWorkbench-DBy8F1xp.js} +1 -1
- package/dist/web/assets/{UsageSettingsSection-C3oZ1UEP.js → UsageSettingsSection-DTZslBeW.js} +2 -2
- package/dist/web/assets/WorkSidebarPanel-Ds-eTQLs.js +1 -0
- package/dist/web/assets/WorkspaceDiffPanel-D_iyg2D4.js +11 -0
- package/dist/web/assets/WorkspaceEnvironmentMenu-Fn-NlfMQ.js +35 -0
- package/dist/web/assets/WorkspaceFileLocation-ChEeZffU.js +1 -0
- package/dist/web/assets/WorkspaceGitDialogs-D_RUXhTi.js +1 -0
- package/dist/web/assets/{WorkspaceMonacoEditor-DfsL1WIi.js → WorkspaceMonacoEditor-BJxaiDrj.js} +3 -3
- package/dist/web/assets/{WorkspacePresentationPreview-WuS_B45u.js → WorkspacePresentationPreview-A28Poeca.js} +1 -1
- package/dist/web/assets/{chat-resources-CItQ4mZD.js → chat-resources-3SvnVeKv.js} +1 -1
- package/dist/web/assets/{chevron-down-Bnma8EMP.js → chevron-down-dYn0pd4Q.js} +1 -1
- package/dist/web/assets/chevron-right-sFx2xRvT.js +1 -0
- package/dist/web/assets/{chunk-24N6A6SF-BUjzKvRC.js → chunk-BYNVSWIQ-DWh9SmdB.js} +1 -1
- package/dist/web/assets/{chunk-GAIDBPFY-BLuHpurI.js → chunk-ZFYI4P6C-BmsNtSkR.js} +1 -1
- package/dist/web/assets/{client-choice-storage-BuNdhYSV.js → client-choice-storage-DTTLbrYt.js} +1 -1
- package/dist/web/assets/{cloud-upload-DOftANif.js → cloud-upload-CRMPCFnq.js} +1 -1
- package/dist/web/assets/connected-app-mentions-D3wRZLwI.js +1 -0
- package/dist/web/assets/copy-DR4ielPn.js +1 -0
- package/dist/web/assets/{createLucideIcon-C4b2afqG.js → createLucideIcon-DmttVQ_a.js} +1 -1
- package/dist/web/assets/{cssMode-0Hn7tCrE.js → cssMode-d-2GuNvW.js} +1 -1
- package/dist/web/assets/external-link-B4rPiZEp.js +1 -0
- package/dist/web/assets/{folder-open-wJwCoIDs.js → folder-open-BrIUcUk_.js} +1 -1
- package/dist/web/assets/{folder-plus-DnTN6mcP.js → folder-plus-DwImGEt-.js} +1 -1
- package/dist/web/assets/{git-commit-horizontal-98y7PP6G.js → git-commit-horizontal-Ds1mkrlW.js} +1 -1
- package/dist/web/assets/{htmlMode-JO_QluNH.js → htmlMode-s15GR0Fn.js} +1 -1
- package/dist/web/assets/icons-CK5-nxVC.js +1 -0
- package/dist/web/assets/{image-C7HVlg3X.js → image-CY-sHbfQ.js} +1 -1
- package/dist/web/assets/{index-BsPUniZy.js → index-DYrLeSyY.js} +2 -2
- package/dist/web/assets/index-Dezj4Z2p.css +1 -0
- package/dist/web/assets/{info-BLWDShaz.js → info-aSvM8YlJ.js} +1 -1
- package/dist/web/assets/{jsonMode-BfTXJted.js → jsonMode-vos9H2hz.js} +1 -1
- package/dist/web/assets/loader-circle-cyf35w3i.js +1 -0
- package/dist/web/assets/{lspLanguageFeatures-68cAgnuv.js → lspLanguageFeatures-pQmEaoMt.js} +1 -1
- package/dist/web/assets/{maximize-2-DUWvLap6.js → maximize-2-DgF6ZVOM.js} +1 -1
- package/dist/web/assets/{monaco.contribution-_3aU1TTb.js → monaco.contribution-BPwsKvRB.js} +2 -2
- package/dist/web/assets/{monaco.contribution-h8U8HXFT.js → monaco.contribution-BbMpa0_-.js} +2 -2
- package/dist/web/assets/{monaco.contribution-CWeY6ia1.js → monaco.contribution-CJlccVX3.js} +2 -2
- package/dist/web/assets/{monaco.contribution-DOiiDDen.js → monaco.contribution-pWurLXbm.js} +2 -2
- package/dist/web/assets/{monitor-B6OuAu13.js → monitor-DlEV241C.js} +1 -1
- package/dist/web/assets/{paperclip-DSHxP9CY.js → paperclip-fnRZSIRc.js} +1 -1
- package/dist/web/assets/{pdf-RXlFwNte.js → pdf-CT3zVKCE.js} +1 -1
- package/dist/web/assets/play-wI_3FLr4.js +1 -0
- package/dist/web/assets/plus-DoJe4fLj.js +1 -0
- package/dist/web/assets/{presentation-C9WnPDVr.js → presentation-Bb8ecExR.js} +1 -1
- package/dist/web/assets/profile-agent-labels-Duh96b8x.js +1 -0
- package/dist/web/assets/{python-BQXo7wMt.js → python-DXA1xp0A.js} +1 -1
- package/dist/web/assets/{refresh-cw-NXOER_CD.js → refresh-cw-B53QjxMO.js} +1 -1
- package/dist/web/assets/{save-BxXc21N6.js → save-V1Q4Fcqa.js} +1 -1
- package/dist/web/assets/settings-lists-CtH1A57b.js +5 -0
- package/dist/web/assets/square-BqSK-hv9.js +1 -0
- package/dist/web/assets/square-terminal-Dmgkm5zY.js +1 -0
- package/dist/web/assets/submit-issue-command-DRgUboVW.js +3 -0
- package/dist/web/assets/{toggleHighContrast-Di1cRuQ4.js → toggleHighContrast-B-BD2K2Q.js} +1 -1
- package/dist/web/assets/{training-managed-adapter-81RrdT1k.js → training-managed-adapter-BXNwgd3P.js} +1 -1
- package/dist/web/assets/{training-model-data-CmVo80ZR.js → training-model-data-14942K_Z.js} +5 -5
- package/dist/web/assets/{tsMode-PxisJRYB.js → tsMode-DdgIcxK3.js} +1 -1
- package/dist/web/assets/ui-theme.generated-D-mc26qt.js +144 -0
- package/dist/web/assets/{upload-NXasN1wU.js → upload-82Y6RjLi.js} +1 -1
- package/dist/web/assets/{useAccountSettings-Dqqt1vUY.js → useAccountSettings-BgHXNpq_.js} +1 -1
- package/dist/web/assets/{useAgentInventory-BV4CUWzJ.js → useAgentInventory-B-LNn3up.js} +1 -1
- package/dist/web/assets/{useLocalAgentSchedules-Cc0M_qax.js → useLocalAgentSchedules-CsKv22Hs.js} +1 -1
- package/dist/web/assets/{useQuery-ByaRC9SK.js → useQuery-CPC2wsWm.js} +1 -1
- package/dist/web/assets/{wifi-off-aVJ3AvT_.js → wifi-off-DXOoDN9l.js} +1 -1
- package/dist/web/assets/{workers-u92Boudu.js → workers-Clf4hKt5.js} +1 -1
- package/dist/web/assets/x-IPhrr4ju.js +1 -0
- package/dist/web/assets/{yaml-BxQUS0ew.js → yaml-I1tf8Uxx.js} +1 -1
- package/dist/web/index.html +12 -3
- package/docs/command-reference.md +28 -2
- package/package.json +2 -1
- package/dist/chunks/app-server-evaluations-HAAYVEXB.js +0 -2
- package/dist/chunks/app-server-runtime-B6BAJA6L.js +0 -2
- package/dist/chunks/chunk-4N3UF3U5.js +0 -2
- package/dist/chunks/chunk-6DCXAXVD.js +0 -22
- package/dist/chunks/chunk-BLKTUFGB.js +0 -2
- package/dist/chunks/chunk-E3EKBPCB.js +0 -2
- package/dist/chunks/chunk-F5JDBDYL.js +0 -2
- package/dist/chunks/chunk-JEVA7YQL.js +0 -3
- package/dist/chunks/chunk-KC7I6E6W.js +0 -2
- package/dist/chunks/chunk-OJSK4NSW.js +0 -151
- package/dist/chunks/chunk-UBCLPZSQ.js +0 -4
- package/dist/chunks/chunk-UJBEWIR3.js +0 -8
- package/dist/chunks/chunk-V67IFV26.js +0 -86
- package/dist/chunks/chunk-VSUHJ46L.js +0 -18
- package/dist/chunks/chunk-X3WEQL3O.js +0 -2
- package/dist/chunks/chunk-XK7SPL63.js +0 -2
- package/dist/chunks/chunk-YR5ID2SS.js +0 -2
- package/dist/chunks/cli-WC45SI7E.js +0 -2
- package/dist/chunks/connected-app-executor-TZJB25UZ.js +0 -2
- package/dist/chunks/experiments-IWSCFDBB.js +0 -2
- package/dist/chunks/host-profile-evaluation-tools-EFB2YIK2.js +0 -2
- package/dist/chunks/host-profile-external-dataset-KSNREH3Q.js +0 -2
- package/dist/chunks/hosted-app-server-composition-VV545TYL.js +0 -2
- package/dist/chunks/hosted-experiment-improvement-NYLADI7S.js +0 -3
- package/dist/chunks/hosted-harness-runtime-Z54E5MD7.js +0 -2
- package/dist/chunks/hosted-profile-compiler-SW2RWTDZ.js +0 -2
- package/dist/chunks/hosted-profile-evaluation-preparation-ZAOGDQXO.js +0 -3
- package/dist/chunks/local-harness-improvement-runtime-KB4OP3SM.js +0 -2
- package/dist/chunks/local-harness-taskset-review-SUDEUGUU.js +0 -2
- package/dist/chunks/opchat-KSOJEL4W.js +0 -3
- package/dist/chunks/project-action-payload-SQ5BSQHY.js +0 -2
- package/dist/chunks/refiner-profile-service-UWI4NAZ3.js +0 -2
- package/dist/chunks/saved-work-QA46KCME.js +0 -2
- package/dist/chunks/src-E7NWAN5B.js +0 -420
- package/dist/chunks/standalone-experiment-turn-owner-SQJ5HXDZ.js +0 -2
- package/dist/chunks/store-learned-preference-migration-validation-KOCW5NOZ.js +0 -2
- package/dist/chunks/store-taskset-drafts-TA6X245D.js +0 -9
- package/dist/chunks/training-hosted-4R4QTSAN.js +0 -2
- package/dist/chunks/training-hosted-report-UQVK6FTG.js +0 -2
- package/dist/web/assets/App-Df7uYQGj.css +0 -1
- package/dist/web/assets/App-Yy3l2sdD.js +0 -56
- package/dist/web/assets/AppTerminalPanel-Dqr6VS3I.js +0 -2
- package/dist/web/assets/AppsView-27Fl_-49.js +0 -1
- package/dist/web/assets/BrowserSidebar-bnI3sSZO.js +0 -1
- package/dist/web/assets/CommunityView-CFKM7FTY.js +0 -1
- package/dist/web/assets/ComposerAttachments-BdjBddKf.js +0 -2
- package/dist/web/assets/ComposerCreateImproveStrip-ViJ5E0We.js +0 -1
- package/dist/web/assets/ConversationImportsSettings-xLl-7G9R.js +0 -1
- package/dist/web/assets/FilePagePreview-CTHuPzJt.js +0 -2
- package/dist/web/assets/GetStartedView-DvV_RMgM.js +0 -1
- package/dist/web/assets/GettingStartedDialog-B1jFmfgd.js +0 -1
- package/dist/web/assets/GettingStartedDialog-C73Bdcz2.css +0 -1
- package/dist/web/assets/HostedModelLearningSettings-DzAiutjq.js +0 -1
- package/dist/web/assets/LabModelVersionDetailPage-CF8FkRUY.js +0 -1
- package/dist/web/assets/LabSkillSidebar-gjbl9Nlv.js +0 -1
- package/dist/web/assets/MainChatThread-BUKup-JB.js +0 -2
- package/dist/web/assets/MainPane-BpE7AKXu.js +0 -92
- package/dist/web/assets/NativeSkillSidebar-Br5Lk6iU.js +0 -1
- package/dist/web/assets/NewProjectDialog-DyuKPOvF.js +0 -1
- package/dist/web/assets/OutputsPage-Dl63CVrw.js +0 -1
- package/dist/web/assets/ProjectsPage-BNF1TiyR.js +0 -1
- package/dist/web/assets/RightChatPanelStack-CxVAAbp-.js +0 -1
- package/dist/web/assets/RightSidebarHomePanel-D46ktZg-.js +0 -1
- package/dist/web/assets/ScheduledWorkPage-Cp0Hf-hs.js +0 -1
- package/dist/web/assets/SettingsView-BT57Q5Wx.js +0 -5
- package/dist/web/assets/TeamChatView-BmxTJ9E5.js +0 -1
- package/dist/web/assets/TerminalOverlay-D-Yq8av_.js +0 -16
- package/dist/web/assets/TrainingCreationPanel-CwfNPj_G.js +0 -1
- package/dist/web/assets/WorkSidebarPanel-myTA9tsh.js +0 -1
- package/dist/web/assets/WorkspaceDiffPanel-D0dzFgzW.js +0 -11
- package/dist/web/assets/WorkspaceEnvironmentMenu-AUzME1eX.js +0 -35
- package/dist/web/assets/WorkspaceFileLocation-Ai8Tz2Mz.js +0 -1
- package/dist/web/assets/WorkspaceGitDialogs-D-UCCckC.js +0 -1
- package/dist/web/assets/chevron-right-Cxv_xBz5.js +0 -1
- package/dist/web/assets/git-dialogs-C631EFyO.css +0 -1
- package/dist/web/assets/icons-kaq6k88m.js +0 -1
- package/dist/web/assets/index-DUMDOdB2.css +0 -1
- package/dist/web/assets/play-BPPQoqMl.js +0 -1
- package/dist/web/assets/plus-D18vYzHF.js +0 -1
- package/dist/web/assets/settings-lists-DMNPkGYk.js +0 -5
- package/dist/web/assets/square-Da8RuqW4.js +0 -1
- package/dist/web/assets/ui-theme.generated-R0MY_Jy0.js +0 -136
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t,h as n,m as r,p as i}from"./index-BsPUniZy.js";import{n as a}from"./api-client-Dgz-fOMl.js";import"./icons-kaq6k88m.js";import{t as o}from"./createLucideIcon-C4b2afqG.js";import{B as s,Hn as c,J as l,Pr as u,V as d,Y as f,_n as p,qn as m,rr as h,vn as g}from"./App-Yy3l2sdD.js";var _=o(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),v=o(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),y=o(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),b=o(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]),x=o(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),S=o(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),C=o(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),ee=o(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),te=o(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),ne=o(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),re=o(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),ie=o(`text-wrap`,[[`path`,{d:`m16 16-3 3 3 3`,key:`117b85`}],[`path`,{d:`M3 12h14.5a1 1 0 0 1 0 7H13`,key:`18xa6z`}],[`path`,{d:`M3 19h6`,key:`1ygdsz`}],[`path`,{d:`M3 5h18`,key:`1u36vt`}]]),w=e(t(),1);async function ae(e){if(!e)return!1;try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch(e){console.warn(`Clipboard write failed`,e)}try{let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.left=`-1000px`,t.style.top=`-1000px`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);return t.remove(),n}catch(e){return console.warn(`Clipboard fallback failed`,e),!1}}var oe=e=>/\.html?(?:[?#].*)?$/i.test(e);async function se(e,t,n,r=`local`){return(await a(e,`/v1/${r===`sandbox`?`sandboxes`:`workspaces`}/${encodeURIComponent(t)}/html-preview`,{method:`POST`,body:JSON.stringify({path:n})})).url}async function ce(e,t,n){return(await a(e,`/v1/html-previews`,{method:`POST`,body:JSON.stringify({name:t,content:n})})).url}var le=new Set(`bash.c.cc.cjs.cpp.css.csv.docx.env.gif.go.graphql.h.hpp.html.htm.ico.java.jpeg.jpg.js.json.jsx.lock.lockb.md.mdx.m4v.mjs.mov.mp4.pdf.pptx.png.py.rs.scss.sh.sql.svg.toml.ts.tsx.txt.xlsx.webp.webm.yaml.yml.zsh`.split(`.`)),ue=new Set([`AGENTS.md`,`Dockerfile`,`LICENSE`,`Makefile`,`README`]),de=String.raw`[A-Za-z0-9_.@+-]+`,fe=new RegExp(String.raw`^(?:(?:\.{1,2}|~)?[\\/]|[A-Za-z]:[\\/])?(?:${de}[\\/])+${de}(?::\d+(?::\d+)?)?`),pe=new RegExp(String.raw`^${de}(?::\d+(?::\d+)?)?`),me=/^(?:workspace|sandbox):file:[^\s<>()]+/;function he({projectTargetDetail:e,projectTargetValue:t,workspaceRepoPath:n,workspaceTargetValue:r}){return n?.trim()||(r!==`local`||!t.startsWith(`local:`)?null:e.trim()||null)}function ge(e,t,n={}){if(!Se(e[t-1]))return null;let r=e.slice(t),i=me.exec(r),a=i?null:fe.exec(r),o=i||a?null:pe.exec(r),s=Ce((i??a??o)?.[0]??``);if(!s)return null;let c=_e(s,n);return c?{...c,end:t+s.length}:null}function _e(e,t={}){let n=Ce(e.trim().replace(/^['"`]+|['"`]+$/g,``));if(!n||/^https?:\/\//i.test(n))return null;let r=ye(ve(n)).replace(/:\d+(?::\d+)?$/,``);return xe(r.replace(/(\.html?)[?#].*$/i,`$1`))?{displayPath:n,path:be(t.fileBasePath&&!/^(?:workspace|sandbox):file:/i.test(n)&&!/^(?:[~/\\]|[A-Za-z]:|(?:workspace|sandbox):file:)/.test(r)?`${t.fileBasePath.replace(/[\\/]+$/,``)}/${r.replace(/^\.\//,``)}`:r)}:null}function ve(e){let t=/^(workspace|sandbox):file:(.*)$/i.exec(e);if(!t)return e;let n=t[1]?.toLowerCase(),r=t[2]??``;return n===`sandbox`&&(r=r.replace(/^\/workspace\/app\//,``).replace(/^\/workspace\//,``)),r}function ye(e){if(!/^file:\/\//i.test(e))return e;try{let t=new URL(e);return decodeURIComponent(t.pathname)+(/\.html?$/i.test(t.pathname)?t.search+t.hash:``)}catch{return e.replace(/^file:\/\//i,``)}}function be(e){return e.replace(/\\/g,`/`).replace(/^\.\/+/,``)}function xe(e){if(/[\n\r]/.test(e)||/^[^/\\]*\s/.test(e)||/[=;?<>|]/.test(e))return!1;if(/[\\/]$/.test(e)&&/[^.~/\\]/.test(e))return!0;let t=e.replace(/\\/g,`/`).split(`/`).filter(Boolean).at(-1)??e;if(ue.has(t)||/^\.[A-Za-z_]/.test(t))return!0;let n=t.includes(`.`)?t.split(`.`).at(-1)?.toLowerCase():null;return!!(n&&le.has(n))}function Se(e){return!e||/[\s([{<"'`]/.test(e)}function Ce(e){return e.replace(/[.,;!?]+$/,``).replace(/[\])}]+$/,``)}function we(e){return/^(?:#{1,6}\s*)?(?:\*\*)?(?:(?:the|both|all)\s+)?(?:updated\s+)?(?:files|outputs|deliverables|everything|slide\s+and\s+deck)(?:\*\*)?\s*(?:(?:is|are)\s+)?(?:\(\s*)?(?:in|at|under|:)\s*`((?:~[\/]|[\/]|[A-Za-z]:[\/])[^`\n]+[\/])`/i.exec(e.trim())?.[1]??null}function Te(e,t,n){let[r,i]=(0,w.useState)({key:t,url:null,status:`loading`}),a=(0,w.useRef)(null);(0,w.useEffect)(()=>{if(!e||!t)return;d.activateConnection(e);let r=d.watch(t,n,e=>i({...e,key:t}));a.current=r;let o=()=>{document.visibilityState!==`hidden`&&r.refresh()};return window.addEventListener(`focus`,o),window.addEventListener(`openpond-runtime-connected`,o),document.addEventListener(`visibilitychange`,o),()=>{r.close(),a.current=null,window.removeEventListener(`focus`,o),window.removeEventListener(`openpond-runtime-connected`,o),document.removeEventListener(`visibilitychange`,o)}},[e,t,n]);let o=(0,w.useCallback)(()=>a.current?.refresh(!0),[]);return{...r.key===t&&e&&t?r:{url:null,status:`loading`},retry:o}}function Ee(e,t){return De(e,t).url}function De(e,t){let n=(0,w.useCallback)(()=>h.signLocalImageUrl(e,{path:t}),[e,t]);return Te(e,e&&t?s(e,`local-image`,t):null,n)}function Oe(e){let[,t]=(0,w.useState)(0),n=(0,w.useCallback)(t=>!e||!t?null:(d.activateConnection(e),d.get(s(e,`local-image`,t))),[e]),r=(0,w.useCallback)(async n=>{if(!e||!n)return null;d.activateConnection(e);let r=s(e,`local-image`,n);return d.load(r,()=>h.signLocalImageUrl(e,{path:n})).finally(()=>t(e=>e+1))},[e]);return(0,w.useMemo)(()=>({getUrl:n,loadUrl:r}),[n,r])}function ke(e,t,n){return/^(?:[~/\\]|[A-Za-z]:|file:\/\/)/.test(n)?h.signLocalImageUrl(e,{path:n}):h.signWorkspaceImageUrl(e,{appId:t,path:n})}function Ae(e,t,n){return je(e,t,n).url}function je(e,t,n){let r=(0,w.useCallback)(()=>ke(e,t,n),[e,t,n]);return Te(e,e&&t&&n?s(e,`workspace-image`,t,n):null,r)}function Me(e){let[,t]=(0,w.useState)(0),n=(0,w.useCallback)((t,n)=>!e||!t||!n?null:(d.activateConnection(e),d.get(s(e,`workspace-image`,t,n))),[e]),r=(0,w.useCallback)(async(n,r)=>{if(!e||!n||!r)return null;d.activateConnection(e);let i=s(e,`workspace-image`,n,r);return d.load(i,()=>ke(e,n,r)).finally(()=>t(e=>e+1))},[e]),i=(0,w.useCallback)((e,t)=>{r(e,t)},[r]);return(0,w.useMemo)(()=>({ensureUrl:i,getUrl:n,loadUrl:r}),[i,n,r])}var Ne=n();async function Pe(e,t){let n=window.openpond?.files?.saveImage;if(n){let r=await n({url:new URL(e,window.location.href).href,suggestedName:t});if(!r.ok&&!r.canceled)throw Error(r.error||`Could not save image.`);return}let r=window.showSaveFilePicker,i;try{i=r?await r.call(window,{suggestedName:t}):void 0}catch(e){if(e instanceof DOMException&&e.name===`AbortError`)return;throw e}let a=await fetch(e);if(!a.ok)throw Error(`Image download failed (${a.status}).`);let o=await a.blob();if(i){let e=await i.createWritable();try{await e.write(o),await e.close()}catch(t){throw await e.abort().catch(()=>void 0),t}return}let s=URL.createObjectURL(o),c=document.createElement(`a`);c.href=s,c.download=t,document.body.appendChild(c),c.click(),c.remove(),setTimeout(()=>URL.revokeObjectURL(s),6e4)}var T=r();function Fe({open:e,src:t,title:n,onClose:r}){let[i,a]=(0,w.useState)(!1),[o,s]=(0,w.useState)(!1),[l,u]=(0,w.useState)(null);if((0,w.useEffect)(()=>{if(!e)return;let t=e=>{e.key===`Escape`&&r()};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[r,e]),(0,w.useEffect)(()=>{a(!1),u(null)},[t]),!e||!t)return null;let d=(()=>{let e=n.split(`/`).pop()?.trim();if(e&&/\.[A-Za-z0-9]+$/.test(e))return e;try{let e=new URL(t,window.location.href),n=(e.searchParams.get(`path`)??e.searchParams.get(`storageName`)??e.pathname).split(/[\\/]/).pop()?.trim();if(n&&/\.[A-Za-z0-9]+$/.test(n))return n}catch{}return`image.png`})();return(0,Ne.createPortal)((0,T.jsx)(`div`,{className:`image-lightbox-backdrop`,role:`presentation`,onMouseDown:e=>{e.target===e.currentTarget&&r()},children:(0,T.jsxs)(`section`,{"aria-label":n?`Image preview: ${n}`:`Image preview`,"aria-modal":`true`,className:`image-lightbox-dialog`,role:`dialog`,children:[(0,T.jsxs)(`header`,{className:`image-lightbox-header`,children:[(0,T.jsx)(`span`,{title:n,children:n}),(0,T.jsxs)(`div`,{className:`image-lightbox-actions`,children:[(0,T.jsx)(`button`,{type:`button`,"aria-label":`Download image`,title:`Download`,disabled:o,"aria-busy":o,onClick:async()=>{if(!o){s(!0),u(null);try{await Pe(t,d)}catch(e){u(e instanceof Error?e.message:`Could not save image.`)}finally{s(!1)}}},children:(0,T.jsx)(c,{size:16})}),(0,T.jsx)(`button`,{type:`button`,"aria-label":`Close image preview`,title:`Close`,onClick:r,children:(0,T.jsx)(g,{size:16})})]})]}),l&&(0,T.jsx)(p,{error:l}),(0,T.jsx)(`div`,{className:`image-lightbox-frame`,children:i?(0,T.jsx)(p,{error:`Image preview unavailable`}):(0,T.jsx)(`img`,{alt:n||`Image preview`,decoding:`async`,draggable:!1,src:t,onError:()=>a(!0)})})]})}),document.body)}function Ie(e){let t=e.replace(/\r\n/g,`
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{f as t,g as n,h as r,m as i}from"./index-DYrLeSyY.js";import{n as a}from"./api-client-Dgz-fOMl.js";import"./icons-CK5-nxVC.js";import{t as o}from"./createLucideIcon-DmttVQ_a.js";import{t as s}from"./copy-DR4ielPn.js";import{t as c}from"./x-IPhrr4ju.js";import{$n as l,A as u,Ht as d,b as f,k as p,ln as m,mn as h,wn as g,x as _}from"./App-DHJVXTI2.js";var v=o(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),y=o(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),b=o(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),x=o(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]),S=o(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),C=o(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),ee=o(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),te=o(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),ne=o(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),re=o(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),ie=o(`text-wrap`,[[`path`,{d:`m16 16-3 3 3 3`,key:`117b85`}],[`path`,{d:`M3 12h14.5a1 1 0 0 1 0 7H13`,key:`18xa6z`}],[`path`,{d:`M3 19h6`,key:`1ygdsz`}],[`path`,{d:`M3 5h18`,key:`1u36vt`}]]),w=e(n(),1);async function ae(e){if(!e)return!1;try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch(e){console.warn(`Clipboard write failed`,e)}try{let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.left=`-1000px`,t.style.top=`-1000px`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);return t.remove(),n}catch(e){return console.warn(`Clipboard fallback failed`,e),!1}}var oe=e=>/\.html?(?:[?#].*)?$/i.test(e);async function se(e,t,n,r=`local`){return(await a(e,`/v1/${r===`sandbox`?`sandboxes`:`workspaces`}/${encodeURIComponent(t)}/html-preview`,{method:`POST`,body:JSON.stringify({path:n})})).url}async function ce(e,t,n){return(await a(e,`/v1/html-previews`,{method:`POST`,body:JSON.stringify({name:t,content:n})})).url}var le=new Set(`bash.c.cc.cjs.cpp.css.csv.docx.env.gif.go.graphql.h.hpp.html.htm.ico.java.jpeg.jpg.js.json.jsx.lock.lockb.md.mdx.m4v.mjs.mov.mp4.pdf.pptx.png.py.rs.scss.sh.sql.svg.toml.ts.tsx.txt.xlsx.webp.webm.yaml.yml.zsh`.split(`.`)),ue=new Set([`AGENTS.md`,`Dockerfile`,`LICENSE`,`Makefile`,`README`]),de=String.raw`[A-Za-z0-9_.@+-]+`,fe=new RegExp(String.raw`^(?:(?:\.{1,2}|~)?[\\/]|[A-Za-z]:[\\/])?(?:${de}[\\/])+${de}(?::\d+(?::\d+)?)?`),pe=new RegExp(String.raw`^${de}(?::\d+(?::\d+)?)?`),me=/^(?:workspace|sandbox):file:[^\s<>()]+/;function he({projectTargetDetail:e,projectTargetValue:t,workspaceRepoPath:n,workspaceTargetValue:r}){return n?.trim()||(r!==`local`||!t.startsWith(`local:`)?null:e.trim()||null)}function ge(e,t,n={}){if(!Se(e[t-1]))return null;let r=e.slice(t),i=me.exec(r),a=i?null:fe.exec(r),o=i||a?null:pe.exec(r),s=Ce((i??a??o)?.[0]??``);if(!s)return null;let c=_e(s,n);return c?{...c,end:t+s.length}:null}function _e(e,t={}){let n=Ce(e.trim().replace(/^['"`]+|['"`]+$/g,``));if(!n||/^https?:\/\//i.test(n))return null;let r=ye(ve(n)).replace(/:\d+(?::\d+)?$/,``);return xe(r.replace(/(\.html?)[?#].*$/i,`$1`))?{displayPath:n,path:be(t.fileBasePath&&!/^(?:workspace|sandbox):file:/i.test(n)&&!/^(?:[~/\\]|[A-Za-z]:|(?:workspace|sandbox):file:)/.test(r)?`${t.fileBasePath.replace(/[\\/]+$/,``)}/${r.replace(/^\.\//,``)}`:r)}:null}function ve(e){let t=/^(workspace|sandbox):file:(.*)$/i.exec(e);if(!t)return e;let n=t[1]?.toLowerCase(),r=t[2]??``;return n===`sandbox`&&(r=r.replace(/^\/workspace\/app\//,``).replace(/^\/workspace\//,``)),r}function ye(e){if(!/^file:\/\//i.test(e))return e;try{let t=new URL(e);return decodeURIComponent(t.pathname)+(/\.html?$/i.test(t.pathname)?t.search+t.hash:``)}catch{return e.replace(/^file:\/\//i,``)}}function be(e){return e.replace(/\\/g,`/`).replace(/^\.\/+/,``)}function xe(e){if(/[\n\r]/.test(e)||/^[^/\\]*\s/.test(e)||/[=;?<>|]/.test(e))return!1;if(/[\\/]$/.test(e)&&/[^.~/\\]/.test(e))return!0;let t=e.replace(/\\/g,`/`).split(`/`).filter(Boolean).at(-1)??e;if(ue.has(t)||/^\.[A-Za-z_]/.test(t))return!0;let n=t.includes(`.`)?t.split(`.`).at(-1)?.toLowerCase():null;return!!(n&&le.has(n))}function Se(e){return!e||/[\s([{<"'`]/.test(e)}function Ce(e){return e.replace(/[.,;!?]+$/,``).replace(/[\])}]+$/,``)}function we(e){return/^(?:#{1,6}\s*)?(?:\*\*)?(?:(?:the|both|all)\s+)?(?:updated\s+)?(?:files|outputs|deliverables|everything|slide\s+and\s+deck)(?:\*\*)?\s*(?:(?:is|are)\s+)?(?:\(\s*)?(?:in|at|under|:)\s*`((?:~[\/]|[\/]|[A-Za-z]:[\/])[^`\n]+[\/])`/i.exec(e.trim())?.[1]??null}function Te(e,t,n){let[r,i]=(0,w.useState)({key:t,url:null,status:`loading`}),a=(0,w.useRef)(null);(0,w.useEffect)(()=>{if(!e||!t)return;_.activateConnection(e);let r=_.watch(t,n,e=>i({...e,key:t}));a.current=r;let o=()=>{document.visibilityState!==`hidden`&&r.refresh()};return window.addEventListener(`focus`,o),window.addEventListener(`openpond-runtime-connected`,o),document.addEventListener(`visibilitychange`,o),()=>{r.close(),a.current=null,window.removeEventListener(`focus`,o),window.removeEventListener(`openpond-runtime-connected`,o),document.removeEventListener(`visibilitychange`,o)}},[e,t,n]);let o=(0,w.useCallback)(()=>a.current?.refresh(!0),[]);return{...r.key===t&&e&&t?r:{url:null,status:`loading`},retry:o}}function Ee(e,t){return De(e,t).url}function De(e,t){let n=(0,w.useCallback)(()=>g.signLocalImageUrl(e,{path:t}),[e,t]);return Te(e,e&&t?f(e,`local-image`,t):null,n)}function Oe(e){let[,t]=(0,w.useState)(0),n=(0,w.useCallback)(t=>!e||!t?null:(_.activateConnection(e),_.get(f(e,`local-image`,t))),[e]),r=(0,w.useCallback)(async n=>{if(!e||!n)return null;_.activateConnection(e);let r=f(e,`local-image`,n);return _.load(r,()=>g.signLocalImageUrl(e,{path:n})).finally(()=>t(e=>e+1))},[e]);return(0,w.useMemo)(()=>({getUrl:n,loadUrl:r}),[n,r])}function ke(e,t,n){return/^(?:[~/\\]|[A-Za-z]:|file:\/\/)/.test(n)?g.signLocalImageUrl(e,{path:n}):g.signWorkspaceImageUrl(e,{appId:t,path:n})}function Ae(e,t,n){return je(e,t,n).url}function je(e,t,n){let r=(0,w.useCallback)(()=>ke(e,t,n),[e,t,n]);return Te(e,e&&t&&n?f(e,`workspace-image`,t,n):null,r)}function Me(e){let[,t]=(0,w.useState)(0),n=(0,w.useCallback)((t,n)=>!e||!t||!n?null:(_.activateConnection(e),_.get(f(e,`workspace-image`,t,n))),[e]),r=(0,w.useCallback)(async(n,r)=>{if(!e||!n||!r)return null;_.activateConnection(e);let i=f(e,`workspace-image`,n,r);return _.load(i,()=>ke(e,n,r)).finally(()=>t(e=>e+1))},[e]),i=(0,w.useCallback)((e,t)=>{r(e,t)},[r]);return(0,w.useMemo)(()=>({ensureUrl:i,getUrl:n,loadUrl:r}),[i,n,r])}var Ne=r();async function Pe(e,t){let n=window.openpond?.files?.saveImage;if(n){let r=await n({url:new URL(e,window.location.href).href,suggestedName:t});if(!r.ok&&!r.canceled)throw Error(r.error||`Could not save image.`);return}let r=window.showSaveFilePicker,i;try{i=r?await r.call(window,{suggestedName:t}):void 0}catch(e){if(e instanceof DOMException&&e.name===`AbortError`)return;throw e}let a=await fetch(e);if(!a.ok)throw Error(`Image download failed (${a.status}).`);let o=await a.blob();if(i){let e=await i.createWritable();try{await e.write(o),await e.close()}catch(t){throw await e.abort().catch(()=>void 0),t}return}let s=URL.createObjectURL(o),c=document.createElement(`a`);c.href=s,c.download=t,document.body.appendChild(c),c.click(),c.remove(),setTimeout(()=>URL.revokeObjectURL(s),6e4)}var T=i();function Fe({open:e,src:t,title:n,onClose:r}){let[i,a]=(0,w.useState)(!1),[o,s]=(0,w.useState)(!1),[l,u]=(0,w.useState)(null);if((0,w.useEffect)(()=>{if(!e)return;let t=e=>{e.key===`Escape`&&r()};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[r,e]),(0,w.useEffect)(()=>{a(!1),u(null)},[t]),!e||!t)return null;let f=(()=>{let e=n.split(`/`).pop()?.trim();if(e&&/\.[A-Za-z0-9]+$/.test(e))return e;try{let e=new URL(t,window.location.href),n=(e.searchParams.get(`path`)??e.searchParams.get(`storageName`)??e.pathname).split(/[\\/]/).pop()?.trim();if(n&&/\.[A-Za-z0-9]+$/.test(n))return n}catch{}return`image.png`})();return(0,Ne.createPortal)((0,T.jsx)(`div`,{className:`image-lightbox-backdrop`,role:`presentation`,onMouseDown:e=>{e.target===e.currentTarget&&r()},children:(0,T.jsxs)(`section`,{"aria-label":n?`Image preview: ${n}`:`Image preview`,"aria-modal":`true`,className:`image-lightbox-dialog`,role:`dialog`,children:[(0,T.jsxs)(`header`,{className:`image-lightbox-header`,children:[(0,T.jsx)(`span`,{title:n,children:n}),(0,T.jsxs)(`div`,{className:`image-lightbox-actions`,children:[(0,T.jsx)(`button`,{type:`button`,"aria-label":`Download image`,title:`Download`,disabled:o,"aria-busy":o,onClick:async()=>{if(!o){s(!0),u(null);try{await Pe(t,f)}catch(e){u(e instanceof Error?e.message:`Could not save image.`)}finally{s(!1)}}},children:(0,T.jsx)(m,{size:16})}),(0,T.jsx)(`button`,{type:`button`,"aria-label":`Close image preview`,title:`Close`,onClick:r,children:(0,T.jsx)(c,{size:16})})]})]}),l&&(0,T.jsx)(d,{error:l}),(0,T.jsx)(`div`,{className:`image-lightbox-frame`,children:i?(0,T.jsx)(d,{error:`Image preview unavailable`}):(0,T.jsx)(`img`,{alt:n||`Image preview`,decoding:`async`,draggable:!1,src:t,onError:()=>a(!0)})})]})}),document.body)}function Ie(e){let t=e.replace(/\r\n/g,`
|
|
2
2
|
`).split(`
|
|
3
3
|
`),n=[],r=[],i=[],a=[],o=!1,s,c=null,l,u=0,d=null;function f(){r.length!==0&&(n.push({type:`paragraph`,content:r.join(`
|
|
4
4
|
`).trim()}),r=[])}function p(){i.length!==0&&(n.push({type:`blockquote`,content:i.join(`
|
|
@@ -264,10 +264,10 @@ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
264
264
|
|[ \r ]+
|
|
265
265
|
?)[ \r ]*`,yo=`[̀-ͯ]`,bo=RegExp(yo+`+$`),xo=`(`+mo+`+)|`+(vo+`|`)+`([!-\\[\\]-‧-豈-]`+(yo+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(yo+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+_o)+(`|`+go+`)`),So=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(xo,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Sa(`EOF`,new xa(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new E(`Unexpected character: '`+e[t]+`'`,new Sa(e[t],new xa(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
|
|
266
266
|
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict(`commentAtEnd`,`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`)):this.tokenRegex.lastIndex=i+1,this.lex()}return new Sa(r,new xa(this,t,this.tokenRegex.lastIndex))}},Co=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new E(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},wo=ba;$(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),$(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),$(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var To={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};$(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`"){if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new E("\\char` missing argument");else r=t.text.charCodeAt(0)}else n=10;if(n){if(r=To[t.text],r==null||r>=n)throw new E(`Invalid base-`+n+` digit `+t.text);for(var i;(i=To[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var Eo=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new E(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new E(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new E(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new E(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};$(`\\newcommand`,e=>Eo(e,!1,!0,!1)),$(`\\renewcommand`,e=>Eo(e,!0,!1,!1)),$(`\\providecommand`,e=>Eo(e,!0,!0,!0)),$(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),po[n],A.math[n],A.text[n]),``}),$(`\\bgroup`,`{`),$(`\\egroup`,`}`),$(`~`,`\\nobreakspace`),$(`\\lq`,"`"),$(`\\rq`,`'`),$(`\\aa`,`\\r a`),$(`\\AA`,`\\r A`),$(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$(`ℬ`,`\\mathscr{B}`),$(`ℰ`,`\\mathscr{E}`),$(`ℱ`,`\\mathscr{F}`),$(`ℋ`,`\\mathscr{H}`),$(`ℐ`,`\\mathscr{I}`),$(`ℒ`,`\\mathscr{L}`),$(`ℳ`,`\\mathscr{M}`),$(`ℛ`,`\\mathscr{R}`),$(`ℭ`,`\\mathfrak{C}`),$(`ℌ`,`\\mathfrak{H}`),$(`ℨ`,`\\mathfrak{Z}`),$(`\\Bbbk`,`\\Bbb{k}`),$(`\\llap`,`\\mathllap{\\textrm{#1}}`),$(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$(`\\clap`,`\\mathclap{\\textrm{#1}}`),$(`\\mathstrut`,`\\vphantom{(}`),$(`\\underbar`,`\\underline{\\text{#1}}`),$(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),$(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$(`\\ne`,`\\neq`),$(`≠`,`\\neq`),$(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$(`∉`,`\\notin`),$(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$(`⟂`,`\\perp`),$(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$(`∌`,`\\notni`),$(`⌜`,`\\ulcorner`),$(`⌝`,`\\urcorner`),$(`⌞`,`\\llcorner`),$(`⌟`,`\\lrcorner`),$(`©`,`\\copyright`),$(`®`,`\\textregistered`),$(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$(`⋮`,`\\vdots`),$(`\\varGamma`,`\\mathit{\\Gamma}`),$(`\\varDelta`,`\\mathit{\\Delta}`),$(`\\varTheta`,`\\mathit{\\Theta}`),$(`\\varLambda`,`\\mathit{\\Lambda}`),$(`\\varXi`,`\\mathit{\\Xi}`),$(`\\varPi`,`\\mathit{\\Pi}`),$(`\\varSigma`,`\\mathit{\\Sigma}`),$(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$(`\\varPhi`,`\\mathit{\\Phi}`),$(`\\varPsi`,`\\mathit{\\Psi}`),$(`\\varOmega`,`\\mathit{\\Omega}`),$(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var Do={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},Oo=new Set([`bin`,`rel`]);$(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in Do?t=Do[n]:(n.slice(0,4)===`\\not`||n in A.math&&Oo.has(A.math[n].group))&&(t=`\\dotsb`),t});var ko={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};$(`\\dotso`,function(e){return e.future().text in ko?`\\ldots\\,`:`\\ldots`}),$(`\\dotsc`,function(e){var t=e.future().text;return t in ko&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$(`\\cdots`,function(e){return e.future().text in ko?`\\@cdots\\,`:`\\@cdots`}),$(`\\dotsb`,`\\cdots`),$(`\\dotsm`,`\\cdots`),$(`\\dotsi`,`\\!\\cdots`),$(`\\dotsx`,`\\ldots\\,`),$(`\\DOTSI`,`\\relax`),$(`\\DOTSB`,`\\relax`),$(`\\DOTSX`,`\\relax`),$(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$(`\\,`,`\\tmspace+{3mu}{.1667em}`),$(`\\thinspace`,`\\,`),$(`\\>`,`\\mskip{4mu}`),$(`\\:`,`\\tmspace+{4mu}{.2222em}`),$(`\\medspace`,`\\:`),$(`\\;`,`\\tmspace+{5mu}{.2777em}`),$(`\\thickspace`,`\\;`),$(`\\!`,`\\tmspace-{3mu}{.1667em}`),$(`\\negthinspace`,`\\!`),$(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$(`\\enspace`,`\\kern.5em `),$(`\\enskip`,`\\hskip.5em\\relax`),$(`\\quad`,`\\hskip1em\\relax`),$(`\\qquad`,`\\hskip2em\\relax`),$(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$(`\\tag@paren`,`\\tag@literal{({#1})}`),$(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new E(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$(`\\newline`,`\\\\\\relax`),$(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var Ao=k(fn[`Main-Regular`][84][1]-.7*fn[`Main-Regular`][65][1]);$(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Ao+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Ao+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$(`\\@hspace`,`\\hskip #1\\relax`),$(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$(`\\ordinarycolon`,`:`),$(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$(`∷`,`\\dblcolon`),$(`∹`,`\\eqcolon`),$(`≔`,`\\coloneqq`),$(`≕`,`\\eqqcolon`),$(`⩴`,`\\Coloneqq`),$(`\\ratio`,`\\vcentcolon`),$(`\\coloncolon`,`\\dblcolon`),$(`\\colonequals`,`\\coloneqq`),$(`\\coloncolonequals`,`\\Coloneqq`),$(`\\equalscolon`,`\\eqqcolon`),$(`\\equalscoloncolon`,`\\Eqqcolon`),$(`\\colonminus`,`\\coloneq`),$(`\\coloncolonminus`,`\\Coloneq`),$(`\\minuscolon`,`\\eqcolon`),$(`\\minuscoloncolon`,`\\Eqcolon`),$(`\\coloncolonapprox`,`\\Colonapprox`),$(`\\coloncolonsim`,`\\Colonsim`),$(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$(`⟦`,`\\llbracket`),$(`⟧`,`\\rrbracket`),$(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$(`⦃`,`\\lBrace`),$(`⦄`,`\\rBrace`),$(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$(`⦵`,`\\minuso`),$(`\\darr`,`\\downarrow`),$(`\\dArr`,`\\Downarrow`),$(`\\Darr`,`\\Downarrow`),$(`\\lang`,`\\langle`),$(`\\rang`,`\\rangle`),$(`\\uarr`,`\\uparrow`),$(`\\uArr`,`\\Uparrow`),$(`\\Uarr`,`\\Uparrow`),$(`\\N`,`\\mathbb{N}`),$(`\\R`,`\\mathbb{R}`),$(`\\Z`,`\\mathbb{Z}`),$(`\\alef`,`\\aleph`),$(`\\alefsym`,`\\aleph`),$(`\\Alpha`,`\\mathrm{A}`),$(`\\Beta`,`\\mathrm{B}`),$(`\\bull`,`\\bullet`),$(`\\Chi`,`\\mathrm{X}`),$(`\\clubs`,`\\clubsuit`),$(`\\cnums`,`\\mathbb{C}`),$(`\\Complex`,`\\mathbb{C}`),$(`\\Dagger`,`\\ddagger`),$(`\\diamonds`,`\\diamondsuit`),$(`\\empty`,`\\emptyset`),$(`\\Epsilon`,`\\mathrm{E}`),$(`\\Eta`,`\\mathrm{H}`),$(`\\exist`,`\\exists`),$(`\\harr`,`\\leftrightarrow`),$(`\\hArr`,`\\Leftrightarrow`),$(`\\Harr`,`\\Leftrightarrow`),$(`\\hearts`,`\\heartsuit`),$(`\\image`,`\\Im`),$(`\\infin`,`\\infty`),$(`\\Iota`,`\\mathrm{I}`),$(`\\isin`,`\\in`),$(`\\Kappa`,`\\mathrm{K}`),$(`\\larr`,`\\leftarrow`),$(`\\lArr`,`\\Leftarrow`),$(`\\Larr`,`\\Leftarrow`),$(`\\lrarr`,`\\leftrightarrow`),$(`\\lrArr`,`\\Leftrightarrow`),$(`\\Lrarr`,`\\Leftrightarrow`),$(`\\Mu`,`\\mathrm{M}`),$(`\\natnums`,`\\mathbb{N}`),$(`\\Nu`,`\\mathrm{N}`),$(`\\Omicron`,`\\mathrm{O}`),$(`\\plusmn`,`\\pm`),$(`\\rarr`,`\\rightarrow`),$(`\\rArr`,`\\Rightarrow`),$(`\\Rarr`,`\\Rightarrow`),$(`\\real`,`\\Re`),$(`\\reals`,`\\mathbb{R}`),$(`\\Reals`,`\\mathbb{R}`),$(`\\Rho`,`\\mathrm{P}`),$(`\\sdot`,`\\cdot`),$(`\\sect`,`\\S`),$(`\\spades`,`\\spadesuit`),$(`\\sub`,`\\subset`),$(`\\sube`,`\\subseteq`),$(`\\supe`,`\\supseteq`),$(`\\Tau`,`\\mathrm{T}`),$(`\\thetasym`,`\\vartheta`),$(`\\weierp`,`\\wp`),$(`\\Zeta`,`\\mathrm{Z}`),$(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$(`\\bra`,`\\mathinner{\\langle{#1}|}`),$(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$(`\\Bra`,`\\left\\langle#1\\right|`),$(`\\Ket`,`\\left|#1\\right\\rangle`);var jo=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};$(`\\bra@ket`,jo(!1)),$(`\\bra@set`,jo(!0)),$(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$(`\\angln`,`{\\angl n}`),$(`\\blue`,`\\textcolor{##6495ed}{#1}`),$(`\\orange`,`\\textcolor{##ffa500}{#1}`),$(`\\pink`,`\\textcolor{##ff00af}{#1}`),$(`\\red`,`\\textcolor{##df0030}{#1}`),$(`\\green`,`\\textcolor{##28ae7b}{#1}`),$(`\\gray`,`\\textcolor{gray}{#1}`),$(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$(`\\blueD`,`\\textcolor{##11accd}{#1}`),$(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$(`\\tealD`,`\\textcolor{##01a995}{#1}`),$(`\\tealE`,`\\textcolor{##208170}{#1}`),$(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$(`\\greenB`,`\\textcolor{##8af281}{#1}`),$(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$(`\\redB`,`\\textcolor{##ff8482}{#1}`),$(`\\redC`,`\\textcolor{##f9685d}{#1}`),$(`\\redD`,`\\textcolor{##e84d39}{#1}`),$(`\\redE`,`\\textcolor{##bc2612}{#1}`),$(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$(`\\grayE`,`\\textcolor{##babec2}{#1}`),$(`\\grayF`,`\\textcolor{##888d93}{#1}`),$(`\\grayG`,`\\textcolor{##626569}{#1}`),$(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$(`\\grayI`,`\\textcolor{##21242c}{#1}`),$(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var Mo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},No=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Co(wo,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new So(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken();var i=this.consumeArg([`]`]);r=i.tokens,n=i.end}else{var a=this.consumeArg();r=a.tokens,t=a.start,n=a.end}return this.pushToken(new Sa(`EOF`,n.loc)),this.pushTokens(r),new Sa(``,xa.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new E(`Extra }`,i)}else if(i.text===`EOF`)throw new E(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n){if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new E(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new E(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new E(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new E(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new E(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new E(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Sa(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new So(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(po,e)||Object.prototype.hasOwnProperty.call(A.math,e)||Object.prototype.hasOwnProperty.call(A.text,e)||Object.prototype.hasOwnProperty.call(Mo,e)}isExpandable(e){var t=this.macros.get(e);return t==null?Object.prototype.hasOwnProperty.call(po,e)&&!po[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},Po=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Fo=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),Io={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},Lo={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},Ro=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new No(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new E(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Sa(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&po[i.text]&&po[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new E(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new E(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new E(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new E(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new E(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new E(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(Fo[i.text]){var s=Po.test(i.text),c=[];for(c.push(new Sa(Fo[i.text])),this.consume();;){var l=this.fetch().text;if(!Fo[l]||Po.test(l)!==s)break;c.unshift(new Sa(Fo[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n&&r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:n?{type:`supsub`,mode:this.mode,base:t,sup:n}:r?{type:`supsub`,mode:this.mode,base:t,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=po[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new E(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new E(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new E(`Can't use function '`+r+`' in math mode`,n);var a=this.parseArguments(r,i),o=a.args,s=a.optArgs;return this.callFunction(r,o,s,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=po[e];if(o&&o.handler)return o.handler(a,t,n);throw new E(`No function handler for `+e)}parseArguments(e,t){var n=t.numOptionalArgs??0,r=t.numArgs+n;if(r===0)return{args:[],optArgs:[]};for(var i=[],a=[],o=0;o<r;o++){var s=t.argTypes?.[o],c=o<n;(`primitive`in t&&t.primitive&&s==null||t.type===`sqrt`&&o===1&&a[0]==null)&&(s=`primitive`);var l=this.parseGroupOfType(`argument to '`+e+`'`,s,c);if(c)a.push(l);else if(l!=null)i.push(l);else throw new E(`Null argument, please report this as a bug`)}return{args:i,optArgs:a}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new E(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new E(`Expected group as `+e,this.fetch());return a;case`original`:case void 0:return this.parseArgumentGroup(n);default:throw new E(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e){var t=this.gullet.scanArgument(e);if(t==null)return null;for(var n=``,r;(r=this.fetch()).text!==`EOF`;)n+=r.text,this.consume();return this.consume(),t.text=n,t}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new E(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new E(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new E(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!qt(i))throw new E(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:xa.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Object.prototype.hasOwnProperty.call(Mo,r)){if(this.settings.throwOnError)throw new E(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(a&&a.type===`textord`){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:xa.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:xa.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:xa.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new E(`\\verb assertion failed --
|
|
267
|
-
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}Object.prototype.hasOwnProperty.call(Lo,t[0])&&!A[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Accented Unicode text character "`+t[0]+`" used in math mode`,e),t=Lo[t[0]]+t.slice(1));var i=bo.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(A[this.mode][t]){this.settings.strict&&this.mode===`math`&&In.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=A[this.mode][t].group,s=xa.range(e);a=gi(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(kt(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:xa.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!Io[l])throw new E(`Unknown accent ' `+l+`'`,e);var u=Io[l][this.mode]||Io[l].text;if(!u)throw new E(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:xa.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};Ro.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var zo=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new Ro(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new E(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new Sa(`\\df@tag`)])}]}return r};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`);var Bo=function(e,t){return Ho(e,t).toMarkup()},Vo=function(e,t,n){if(n.throwOnError||!(e instanceof E))throw e;var r=W([`katex-error`],[new an(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},Ho=function(e,t){var n=new lt(t);try{return ai(zo(e,n),e,n)}catch(t){return Vo(t,e,n)}};function Uo({display:e=!1,source:t}){let n=(0,w.useMemo)(()=>Bo(t,{displayMode:e,output:`htmlAndMathml`,strict:`ignore`,throwOnError:!1,trust:!1}),[e,t]);return(0,T.jsx)(e?`div`:`span`,{className:e?`markdown-math-block`:`markdown-math-inline`,dangerouslySetInnerHTML:{__html:n}})}var Wo=new Set([`.avif`,`.gif`,`.ico`,`.jpeg`,`.jpg`,`.png`,`.svg`,`.webp`]);function Go({checked:e,inline:t=!1}){return(0,T.jsx)(`input`,{"aria-label":e?`Checked item`:`Unchecked item`,checked:e,className:`markdown-checkbox ${t?`inline`:``}`,disabled:!0,readOnly:!0,type:`checkbox`})}function Ko(e,t){let n=[],r=0,i=0,a=null,o=t=>{t>i&&n.push(e.slice(i,t))};for(;r<e.length;){let s=e[r];if(s==="`"){let s=e.indexOf("`",r+1);if(s>r+1){let c=e.slice(r+1,s),l=a&&a.path.lastIndexOf(`/`)>0&&/^(?:\s*(?:\.\.\.|…)\s*)$/.test(e.slice(a.end,r))&&!/[\/]/.test(c)?a.path.slice(0,a.path.lastIndexOf(`/`)):null,u=t.onOpenFileInSidebar?_e(c,{workspaceRootPath:t.workspaceRootPath,fileBasePath:l||t.fileBasePath}):null;o(r),n.push(u?Qo(u.displayPath,u.path,u.displayPath,t,n.length):(0,T.jsx)(`code`,{children:c},n.length)),a=u?{path:u.path,end:s+1}:null,r=s+1,i=r;continue}}let c=qo(e,r);if(c){o(r),n.push((0,T.jsx)(Uo,{source:c.content},n.length)),r=c.end,i=r;continue}let l=s===`<`||e.startsWith(`!<img`,r)?is(e,r):null;if(l){let e=ds(l.src,t);if(e){o(r),n.push(Xo(l.alt,e,t,n.length)),r=l.end,i=r;continue}}let u=s===`<`?os(e,r):null;if(u){o(r),n.push(Yo(u.label,u.href,t,n.length)),r=u.end,i=r;continue}let d=s===`<`?ss(e,r):null;if(d){o(r),n.push(Yo(d.href,d.href,t,n.length)),r=d.end,i=r;continue}let f=s===`[`?as(e,r):null;if(f){o(r),n.push((0,T.jsx)(Go,{checked:f.checked,inline:!0},n.length)),r=f.end,i=r;continue}let p=e.startsWith(`![`,r)?ts(e,r):null;if(p){let e=ds(p.href,t);o(r),n.push(e?Xo(p.label,e,t,n.length):Yo(p.label||p.href,p.href,t,n.length)),r=p.end,i=r;continue}let m=s===`[`?ns(e,r):null;if(m){o(r),n.push(Yo(m.label,m.href,t,n.length)),r=m.end,i=r;continue}let h=Jo(e,r);if(h){o(r),n.push(Yo(h.href,h.href,t,n.length)),r=h.end,i=r;continue}let g=t.onOpenFileInSidebar?ge(e,r,{workspaceRootPath:t.workspaceRootPath,fileBasePath:t.fileBasePath}):null;if(g)o(r),n.push(Qo(g.displayPath,g.path,g.displayPath,t,n.length)),r=g.end,i=r;else{if(e.startsWith(`**`,r)){let a=e.indexOf(`**`,r+2);if(a>r+2){o(r),n.push((0,T.jsx)(`strong`,{children:Ko(e.slice(r+2,a),t)},n.length)),r=a+2,i=r;continue}}if(e.startsWith(`__`,r)){let a=e.indexOf(`__`,r+2);if(a>r+2){o(r),n.push((0,T.jsx)(`strong`,{children:Ko(e.slice(r+2,a),t)},n.length)),r=a+2,i=r;continue}}r+=1}}return o(e.length),n}function qo(e,t){if(e.startsWith(`\\(`,t)){let n=e.indexOf(`\\)`,t+2);return n<=t+2?null:{content:e.slice(t+2,n),end:n+2}}if(e[t]!==`$`||e[t+1]===`$`||/\s/.test(e[t+1]??``))return null;let n=t+1;for(;(n=e.indexOf(`$`,n+1))>=0;)if(e[n-1]!==`\\`&&!(e[n+1]===`$`||/\s/.test(e[n-1]??``)))return{content:e.slice(t+1,n),end:n+1};return null}function Jo(e,t){let n=t>0?e[t-1]:``;if(n&&!/[\s([{<]/.test(n))return null;let r=e.slice(t),i=/^(?:https?:\/\/|www\.)[^\s<>()]+(?:\([^\s<>()]*\)[^\s<>()]*)*/i.exec(r);if(!i)return null;let a=i[0];for(;/[.,;:!?]$/.test(a);)a=a.slice(0,-1);return a?{href:/^www\./i.test(a)?`https://${a}`:a,end:t+a.length}:null}function Yo(e,t,n,r){let i=n.conversationLinks?.get(t);if(i)return(0,T.jsx)(`a`,{href:`/tasks/${encodeURIComponent(i.conversationId)}`,onClick:e=>{n.onOpenConversation&&(e.preventDefault(),n.onOpenConversation(i.conversationId))},children:e===t?i.title:Ko(e,n)},r);let a=hs(t),o=ds(a,n),s=/^https?:\/\//i.test(a),c=o?.kind===`url`?o.src:o?.src??a,l=n.onOpenFileInSidebar?_e(a,{workspaceRootPath:n.workspaceRootPath,fileBasePath:n.fileBasePath}):null;return!o&&l?Qo(e,l.path,l.displayPath,n,r):(0,T.jsx)(`a`,{href:s||o?c:`#`,className:o?`markdown-image-link`:void 0,onBlur:()=>{o&&n.onPreviewImage(null)},onClick:e=>{o?(e.preventDefault(),xs(o,n),n.onPreviewImage(null)):s&&n.onOpenBrowserLink?(e.preventDefault(),n.onOpenBrowserLink(c)):s||e.preventDefault()},onContextMenu:e=>{e.preventDefault(),n.onPreviewImage(null),n.onOpenLinkMenu(ws(c,a,e.clientX,e.clientY))},onFocus:e=>{o&&Ss(o,n,e.currentTarget)},onMouseEnter:e=>{o&&Ss(o,n,e.currentTarget)},onMouseLeave:()=>{o&&n.onPreviewImage(null)},rel:s?`noreferrer`:void 0,target:s?`_blank`:void 0,title:a,children:e},r)}function Xo(e,t,n,r){return(0,T.jsx)(Zo,{context:n,image:t,label:e},r)}function Zo({context:e,image:t,label:n}){let r=Ae(e.connection,t.kind===`workspace`?t.appId:null,t.kind===`workspace`?t.path:null),i=Ee(e.connection,t.kind===`local`?t.path:null),a=t.kind===`url`?t.src:t.kind===`local`?i:r,o=n.trim()||t.title;return(0,T.jsx)(`button`,{type:`button`,className:`markdown-inline-image ${a?`ready`:`loading`}`,onClick:()=>{t.kind===`url`?e.onOpenImage({src:t.src,title:o}):a?e.onOpenImage({src:a,title:o}):t.kind!==`local`&&e.onOpenWorkspaceImage({appId:t.appId,path:t.path,title:o})},title:o,children:a?(0,T.jsx)(`img`,{alt:o,decoding:`async`,loading:`lazy`,src:a}):(0,T.jsx)(`span`,{"aria-hidden":`true`})})}function Qo(e,t,n,r,i){let a=fs(t,n,r);return a?(0,T.jsx)(es,{context:r,displayPath:n,image:a,label:e,path:t},i):(0,T.jsx)($o,{context:r,displayPath:n,label:e,path:t},i)}function $o({context:e,displayPath:t,label:n,path:r}){return(0,T.jsx)(`a`,{href:`#`,className:`markdown-file-link`,onClick:t=>{t.preventDefault(),e.onOpenFileInSidebar?.(r)},onContextMenu:n=>{n.preventDefault(),e.onPreviewImage(null),e.onOpenLinkMenu(Ts(r,t,n.clientX,n.clientY))},title:r,children:n})}function es({context:e,displayPath:t,image:n,label:r,path:i}){let a=je(e.connection,n.kind===`workspace`?n.appId:null,n.kind===`workspace`?n.path:null),o=De(e.connection,n.kind===`local`?n.path:null),s=n.kind===`local`?o:a,c=n.kind===`url`?n.src:s.url,[l,u]=(0,w.useState)(null),d=!!(c&&l===c)||n.kind!==`url`&&s.status===`error`,f=n.title||t;return(0,T.jsxs)(`span`,{className:`markdown-file-image-reference`,children:[(0,T.jsx)($o,{context:e,displayPath:t,label:r,path:i}),(0,T.jsx)(`button`,{type:`button`,className:`markdown-file-image-preview ${d?`error`:c?`ready`:`loading`}`,onClick:()=>{if(d){if(e.onOpenFileInSidebar&&n.kind!==`url`){e.onOpenFileInSidebar(i);return}u(null),n.kind!==`url`&&s.retry()}else n.kind===`url`?e.onOpenImage({src:n.src,title:f}):c?e.onOpenImage({src:c,title:f}):n.kind!==`local`&&e.onOpenWorkspaceImage({appId:n.appId,path:n.path,title:f})},title:f,"aria-label":d?`Retry preview for ${f}`:`Preview ${f}`,children:d?(0,T.jsx)(`span`,{children:`Preview unavailable · Retry`}):c?(0,T.jsx)(`img`,{alt:f,decoding:`async`,loading:`lazy`,src:c,onError:()=>u(c)}):(0,T.jsx)(`span`,{children:`Loading preview…`})})]})}function ts(e,t){if(!e.startsWith(`![`,t))return null;let n=t+2,r=e.indexOf(`]`,n);if(r<n||e[r+1]!==`(`)return null;let i=rs(e,r+2);return i?{label:e.slice(n,r),href:i.href,end:i.end}:null}function ns(e,t){let n=e.indexOf(`]`,t+1);if(n<=t+1||e[n+1]!==`(`)return null;let r=rs(e,n+2);return r?{label:e.slice(t+1,n),href:r.href,end:r.end}:null}function rs(e,t){if(e[t]===`<`){let n=e.indexOf(`>`,t+1);return n<0||e[n+1]!==`)`?null:{href:e.slice(t+1,n),end:n+2}}let n=0;for(let r=t;r<e.length;r+=1){let i=e[r];if(i===`\\`)r+=1;else if(i===`(`)n+=1;else if(i===`)`){if(n===0)return{href:e.slice(t,r),end:r+1};--n}}return null}function is(e,t){let n=e[t]===`!`?t+1:t;if(!/^<img\b/i.test(e.slice(n)))return null;let r=e.indexOf(`>`,n+4);if(r<0)return null;let i=e.slice(n,r+1),a=ls(i,`src`);return a?{src:a,alt:ls(i,`alt`)??ls(i,`title`)??``,end:r+1}:null}function as(e,t){let n=e.slice(t,t+3);return n===`[ ]`?{checked:!1,end:t+3}:n===`[x]`||n===`[X]`?{checked:!0,end:t+3}:null}function os(e,t){let n=e.slice(t),r=/^<a\s+[^>]*href\s*=\s*(["'])(.*?)\1[^>]*>(.*?)<\/a>/i.exec(n);return r?{href:r[2]??``,label:cs(r[3]??``),end:t+r[0].length}:null}function ss(e,t){let n=e.indexOf(`>`,t+1);if(n<=t+1)return null;let r=e.slice(t+1,n).trim();return us(r)?{href:r,end:n+1}:null}function cs(e){return e.replace(/<[^>]+>/g,``).trim()||e}function ls(e,t){let n=RegExp(`\\s${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s>]+))`,`i`).exec(e);return n?.[1]??n?.[2]??n?.[3]??null}function us(e){return/^(https?:\/\/|file:\/\/|(?:workspace|sandbox):file:|\/|\.{1,2}\/)/i.test(e)}function ds(e,t){let n=hs(e);if(!n)return null;if(/^https?:\/\//i.test(n))try{let e=new URL(n);return bs(e,t)||(ys(e,t.connection)?{kind:`url`,src:n,title:f(e.searchParams.get(`path`)??e.pathname)}:null)}catch{return null}let r=gs(_e(n,{fileBasePath:t.fileBasePath})?.path??n),i=ps(r??n,t.workspaceRootPath);if(i)return{kind:`url`,src:i,title:f(r??n)};if(!r||!l(r)||!t.connection)return null;if(_s(r))return{kind:`local`,path:r,src:t.localImageUrls.getUrl(r),title:f(r)};if(!t.activeWorkspaceAppId)return null;let a=vs(r,t.workspaceRootPath);return!a||!l(a)?null:{kind:`workspace`,appId:t.activeWorkspaceAppId,path:a,src:t.workspaceImageUrls.getUrl(t.activeWorkspaceAppId,a),title:f(a)}}function fs(e,t,n){let r=ps(e,n.workspaceRootPath)??ps(t,n.workspaceRootPath);if(r)return{kind:`url`,src:r,title:f(t)};if(!l(e)||!n.connection)return null;if(_s(e))return{kind:`local`,path:e,src:n.localImageUrls.getUrl(e),title:f(e)};if(!n.activeWorkspaceAppId)return null;let i=vs(e,n.workspaceRootPath);return!i||!l(i)?null:{kind:`workspace`,appId:n.activeWorkspaceAppId,path:i,src:n.workspaceImageUrls.getUrl(n.activeWorkspaceAppId,i),title:f(i)}}function ps(e,t){let n=vs(e,t);if(!n?.startsWith(`apps/web/public/`))return null;let r=n.slice(16);return!r||!ms(r)?null:i(r.split(`/`).map(encodeURIComponent).join(`/`))}function ms(e){let t=e.split(`?`)[0]?.split(`#`)[0]??e,n=t.lastIndexOf(`.`);return n<0?!1:Wo.has(t.slice(n).toLowerCase())}function hs(e){return e.trim().replace(/^['"`]+|['"`]+$/g,``)}function gs(e){let t=e.trim();if(!t)return null;if(t.startsWith(`file://`))try{return decodeURIComponent(new URL(t).pathname)}catch{return t.replace(/^file:\/\//,``)}if(_s(t))return t;let n=t.indexOf(`#`);n>=0&&(t=t.slice(0,n));let r=t.indexOf(`?`);return r>=0&&(t=t.slice(0,r)),t}function _s(e){return/^file:\/\//i.test(e)||/^(?:\/|~\/)/.test(e)||/^[A-Za-z]:[\\/]/.test(e)}function vs(e,t){let n=e.trim().replace(/^['"`]+|['"`]+$/g,``);if(!n)return null;if(n.startsWith(`file://`))try{n=decodeURIComponent(new URL(n).pathname)}catch{n=n.replace(/^file:\/\//,``)}if(n=n.replace(/\\/g,`/`),_s(n)){let e=t?.trim().replace(/\\/g,`/`).replace(/\/+$/,``);if(!e||!n.startsWith(`${e}/`))return null;n=n.slice(e.length+1)}n=n.replace(/^\.\/+/,``);let r=n.split(`/`).filter(Boolean);return r.length===0||r.some(e=>e===`.`||e===`..`||e===`.git`)?null:r.join(`/`)}function ys(e,t){if(t){let n=new URL(t.serverUrl);if(e.origin===n.origin){if(e.pathname===`/v1/local-image`||/\/v1\/workspaces\/[^/]+\/file-image$/.test(e.pathname))return!1;if(e.pathname===`/v1/assets/workspace-image`||e.pathname===`/v1/assets/chat-attachment-image`)return!0}}if(l(e.pathname))return!0;let n=e.searchParams.get(`path`);return!!(n&&l(n))}function bs(e,t){if(!t.connection)return null;let n=new URL(t.connection.serverUrl);if(e.origin!==n.origin)return null;let r=e.pathname===`/v1/assets/workspace-image`?e.searchParams.get(`path`):null;if(r&&l(r))return{kind:`url`,src:e.toString(),title:f(r)};let i=e.pathname===`/v1/assets/chat-attachment-image`?e.searchParams.get(`storageName`):null;if(i&&l(i))return{kind:`url`,src:e.toString(),title:f(i)};let a=/^\/v1\/workspaces\/([^/]+)\/file-image$/.exec(e.pathname),o=a?e.searchParams.get(`path`):null;if(!a||!o||!l(o))return null;let s=decodeURIComponent(a[1]),c=vs(o,t.workspaceRootPath);return!c||!l(c)?null:{kind:`workspace`,appId:s,path:c,src:t.workspaceImageUrls.getUrl(s,c),title:f(c)}}function xs(e,t){e.kind===`url`?t.onOpenImage(e):e.kind===`local`?e.src?t.onOpenImage({src:e.src,title:e.title}):t.onOpenFileInSidebar?.(e.path):e.src?t.onOpenImage({src:e.src,title:e.title}):t.onOpenFileInSidebar?t.onOpenFileInSidebar(e.path):t.onOpenWorkspaceImage({appId:e.appId,path:e.path,title:e.title})}function Ss(e,t,n){if(e.kind===`url`)t.onPreviewImage(Cs(e,n));else if(e.kind===`local`){if(e.src){t.onPreviewImage(Cs({src:e.src,title:e.title},n));return}t.localImageUrls.loadUrl(e.path).then(r=>{r&&n.matches(`:hover`)&&t.onPreviewImage(Cs({src:r,title:e.title},n))})}else e.src?t.onPreviewImage(Cs({src:e.src,title:e.title},n)):t.workspaceImageUrls.loadUrl(e.appId,e.path).then(r=>{r&&n.matches(`:hover`)&&t.onPreviewImage(Cs({src:r,title:e.title},n))})}function Cs(e,t){let n=t.getBoundingClientRect(),r=Math.max(12,Math.min(n.left,window.innerWidth-236-12)),i=n.bottom+8,a=i+172<=window.innerHeight-12?i:Math.max(12,n.top-172-8);return{...e,x:r,y:a}}function ws(e,t,n,r){return{kind:`browser`,browserHref:e,displayHref:t,x:Math.max(8,Math.min(n,window.innerWidth-220-8)),y:Math.max(8,Math.min(r,window.innerHeight-142-8))}}function Ts(e,t,n,r){return{kind:`file`,path:e,displayPath:t,x:Math.max(8,Math.min(n,window.innerWidth-220-8)),y:Math.max(8,Math.min(r,window.innerHeight-72-8))}}async function Es(e){let t=e.trim();if(!t)return!1;let n=window.openpond?.files;if(!n)return!1;try{return(await n.reveal({path:t})).ok}catch{return!1}}async function Ds(e,t){let n=e.trim(),r=window.openpond?.files;if(!n||!r?.saveAs)return{ok:!1,canceled:!1,path:null};try{let e=await r.saveAs({path:n,suggestedName:t});return{ok:e.ok,canceled:e.canceled,path:e.path??null}}catch{return{ok:!1,canceled:!1,path:null}}}var Os={bash:`Bash`,css:`CSS`,html:`HTML`,javascript:`JavaScript`,js:`JavaScript`,json:`JSON`,jsx:`JSX`,markdown:`Markdown`,md:`Markdown`,python:`Python`,py:`Python`,sh:`Shell`,shell:`Shell`,sql:`SQL`,ts:`TypeScript`,tsx:`TSX`,typescript:`TypeScript`,yaml:`YAML`,yml:`YAML`},ks=(0,w.memo)(function({content:e,language:t}){let[n,r]=(0,w.useState)(!1),[i,a]=(0,w.useState)(!1),o=As(t);return(0,w.useEffect)(()=>{if(!n)return;let e=window.setTimeout(()=>r(!1),1800);return()=>window.clearTimeout(e)},[n]),(0,T.jsxs)(`section`,{className:`markdown-code-block${i?` wrap-lines`:``}`,"aria-label":`${o} code block`,children:[(0,T.jsxs)(`header`,{className:`markdown-code-header`,children:[(0,T.jsxs)(`span`,{className:`markdown-code-language`,children:[(0,T.jsx)(x,{"aria-hidden":!0,size:15,strokeWidth:1.8}),(0,T.jsx)(`span`,{children:o})]}),(0,T.jsxs)(`span`,{className:`markdown-code-actions`,children:[(0,T.jsx)(`button`,{"aria-label":i?`Stop wrapping code`:`Wrap code`,"aria-pressed":i,className:`markdown-code-action`,title:i?`Stop wrapping`:`Wrap lines`,type:`button`,onClick:()=>a(e=>!e),children:(0,T.jsx)(ie,{"aria-hidden":!0,size:15})}),(0,T.jsx)(`button`,{"aria-label":n?`Code copied`:`Copy code`,className:`markdown-code-action`,title:n?`Copied`:`Copy code`,type:`button`,onClick:()=>{ae(e).then(e=>{e&&r(!0)})},children:n?(0,T.jsx)(m,{"aria-hidden":!0,size:15}):(0,T.jsx)(S,{"aria-hidden":!0,size:15})})]})]}),(0,T.jsx)(`pre`,{className:`markdown-code-content`,children:(0,T.jsx)(`code`,{children:e})})]})});function As(e){let t=e?.trim().toLowerCase();return t?Os[t]??t.charAt(0).toUpperCase()+t.slice(1):`Code`}function js({activeWorkspaceAppId:e=null,connection:t=null,content:n,finalizedContent:r,mutableContent:i,onOpenBrowserLink:a,onOpenFileInSidebar:o,conversationLinks:s,onOpenConversation:c,workspaceRootPath:l=null}){let u=r!==void 0||i!==void 0,d=(0,w.useMemo)(()=>u?[]:Ie(n),[n,u]),f=(0,w.useMemo)(()=>u&&r?Ie(r):[],[r,u]),p=(0,w.useMemo)(()=>u&&i?Ie(i):[],[i,u]),m=(0,w.useMemo)(()=>u?[...f,...p]:d,[u,f,p,d]),[h,g]=(0,w.useState)(null),[_,v]=(0,w.useState)(null),[y,b]=(0,w.useState)(null),x=Oe(t),S=Me(t),C=(0,w.useMemo)(()=>new Map(s?.flatMap(e=>[[e.conversationId,e],[`/tasks/${encodeURIComponent(e.conversationId)}`,e]])??[]),[s]),ee=(0,w.useCallback)(e=>{S.loadUrl(e.appId,e.path).then(t=>{t&&g({src:t,title:e.title})})},[S]),te=(0,w.useMemo)(()=>({conversationLinks:C,onOpenConversation:c,activeWorkspaceAppId:e,connection:t,onOpenBrowserLink:a,onOpenFileInSidebar:o,onOpenLinkMenu:b,onOpenImage:g,onOpenWorkspaceImage:ee,onPreviewImage:v,localImageUrls:x,workspaceImageUrls:S,workspaceRootPath:l}),[C,c,e,t,ee,x,a,o,S,l]);return(0,w.useEffect)(()=>{if(!y)return;let e=()=>b(null),t=t=>{t.key===`Escape`&&e()};return window.addEventListener(`click`,e),window.addEventListener(`keydown`,t),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`click`,e),window.removeEventListener(`keydown`,t),window.removeEventListener(`scroll`,e,!0)}},[y]),(0,T.jsxs)(`div`,{className:`markdown-message`,children:[(0,T.jsx)(Ms,{blocks:m,context:te,keyPrefix:`block`,workspaceRootPath:l}),_&&(0,T.jsx)(Is,{preview:_}),y&&(0,T.jsx)(Ls,{menu:y,onClose:()=>b(null),onOpenBrowserLink:a,onOpenFileInSidebar:o}),(0,T.jsx)(Fe,{open:!!h,src:h?.src??null,title:h?.title??``,onClose:()=>g(null)})]})}var Ms=(0,w.memo)(function({blocks:e,context:t,keyPrefix:n,workspaceRootPath:r}){return Ps(e,t,r,n)});function Ns(e,t){return t.type===`list`?e:`content`in t&&typeof t.content==`string`&&t.type!==`code`?we(t.content):null}function Ps(e,t,n,r=`block`){let i=t.fileBasePath??null;return e.map((e,a)=>{i=Ns(i,e);let o={...t,fileBasePath:i},s=`${r}-${a}`;if(e.type===`blockquote`)return(0,T.jsx)(`blockquote`,{className:`markdown-blockquote`,children:Ps(Ie(e.content),t,n,`${s}-quote`)},s);if(e.type===`code`){let t=Fs(e.content,n);return t?(0,T.jsx)(`div`,{className:`markdown-file-reference-block`,children:t.map((e,t)=>(0,T.jsx)(`div`,{className:`markdown-file-reference-line`,children:Ko(e,o)},t))},s):(0,T.jsx)(ks,{content:e.content,language:e.language},s)}if(e.type===`math`)return(0,T.jsx)(Uo,{display:!0,source:e.content},s);if(e.type===`list`){let t=e.items.map((t,n)=>(0,T.jsxs)(`li`,{className:t.checked===null?void 0:`markdown-task-list-item`,value:e.ordered?t.ordinal??void 0:void 0,children:[t.checked===null?null:(0,T.jsx)(Go,{checked:t.checked}),(0,T.jsx)(`span`,{children:Ko(t.content,o)})]},n));return e.ordered?(0,T.jsx)(`ol`,{className:`markdown-list`,start:e.start,children:t},s):(0,T.jsx)(`ul`,{className:`markdown-list`,children:t},s)}if(e.type===`heading`){let t=e.level===1?`h1`:e.level===2?`h2`:e.level===3?`h3`:`h4`;return(0,T.jsx)(t,{className:`markdown-heading`,children:Ko(e.content,o)},s)}return e.type===`table`?(0,T.jsx)(`div`,{className:`markdown-table-wrap`,children:(0,T.jsxs)(`table`,{className:`markdown-table`,children:[(0,T.jsx)(`thead`,{children:(0,T.jsx)(`tr`,{children:e.headers.map((e,t)=>(0,T.jsx)(`th`,{children:Ko(e,o)},t))})}),(0,T.jsx)(`tbody`,{children:e.rows.map((n,r)=>(0,T.jsx)(`tr`,{children:e.headers.map((e,r)=>(0,T.jsx)(`td`,{children:Ko(n[r]??``,t)},r))},r))})]})},s):(0,T.jsx)(`p`,{className:`markdown-paragraph`,children:Ko(e.content,o)},s)})}function Fs(e,t){let n=e.split(`
|
|
268
|
-
`),r=[];for(let e of n){let n=e.trim();if(!n)continue;let i=n.replace(/^(?:[-*]|\d+[.)])\s+/,``).trim().replace(/^`+|`+$/g,``).trim();if(!i||!_e(i,{workspaceRootPath:t}))return null;r.push(i)}return r.length>0?r:null}function Is({preview:e}){let[t,n]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{n(!1)},[e.src]),(0,T.jsxs)(`div`,{className:`markdown-image-hover-preview ${t?`unavailable`:``}`,style:{left:e.x,top:e.y},children:[t?(0,T.jsx)(`span`,{children:`Preview unavailable`}):(0,T.jsx)(`img`,{alt:``,src:e.src,onError:()=>n(!0)}),(0,T.jsx)(`span`,{children:e.title})]})}function Ls({menu:e,onClose:t,onOpenBrowserLink:n,onOpenFileInSidebar:r}){return e.kind===`file`?(0,T.jsxs)(`div`,{className:`markdown-link-menu`,role:`menu`,style:{left:e.x,top:e.y},onClick:e=>e.stopPropagation(),children:[(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{r?.(e.path),t()},children:/[\\/]$/.test(e.path)?`Open folder`:oe(e.path)?`Open in browser`:`Open in sidebar`}),oe(e.path)&&(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{r?.(e.path,{source:!0}),t()},children:`View source`}),(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{Es(e.path),t()},children:`Open externally`}),(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{ae(e.displayPath),t()},children:`Copy path`})]}):(0,T.jsxs)(`div`,{className:`markdown-link-menu`,role:`menu`,style:{left:e.x,top:e.y},onClick:e=>e.stopPropagation(),children:[(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{n?n(e.browserHref):window.open(e.browserHref,`_blank`,`noopener,noreferrer`),t()},children:`Open in sidebar`}),(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{n?n(e.browserHref,{newTab:!0}):window.open(e.browserHref,`_blank`,`noopener,noreferrer`),t()},children:`Open in new tab`}),(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{window.open(e.browserHref,`_blank`,`noopener,noreferrer`),t()},children:`Open externally`}),(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{ae(e.displayHref),t()},children:`Copy link`})]})}function Rs(e){let t=e.replace(/\\/g,`/`);if(!/^(?:\/|[A-Za-z]:\/)/.test(t))return null;let n=t.lastIndexOf(`/`),r=n===2&&/^[A-Za-z]:/.test(t)?t.slice(0,3):t.slice(0,n)||`/`;return
|
|
267
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}Object.prototype.hasOwnProperty.call(Lo,t[0])&&!A[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Accented Unicode text character "`+t[0]+`" used in math mode`,e),t=Lo[t[0]]+t.slice(1));var i=bo.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(A[this.mode][t]){this.settings.strict&&this.mode===`math`&&In.includes(t)&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,e);var o=A[this.mode][t].group,s=xa.range(e);a=gi(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(kt(t.charCodeAt(0))?this.mode===`math`&&this.settings.reportNonstrict(`unicodeTextInMathMode`,`Unicode text character "`+t[0]+`" used in math mode`,e):this.settings.reportNonstrict(`unknownSymbol`,`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),e)),a={type:`textord`,mode:`text`,loc:xa.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!Io[l])throw new E(`Unknown accent ' `+l+`'`,e);var u=Io[l][this.mode]||Io[l].text;if(!u)throw new E(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:xa.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};Ro.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var zo=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new Ro(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new E(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new Sa(`\\df@tag`)])}]}return r};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`);var Bo=function(e,t){return Ho(e,t).toMarkup()},Vo=function(e,t,n){if(n.throwOnError||!(e instanceof E))throw e;var r=W([`katex-error`],[new an(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},Ho=function(e,t){var n=new lt(t);try{return ai(zo(e,n),e,n)}catch(t){return Vo(t,e,n)}};function Uo({display:e=!1,source:t}){let n=(0,w.useMemo)(()=>Bo(t,{displayMode:e,output:`htmlAndMathml`,strict:`ignore`,throwOnError:!1,trust:!1}),[e,t]);return(0,T.jsx)(e?`div`:`span`,{className:e?`markdown-math-block`:`markdown-math-inline`,dangerouslySetInnerHTML:{__html:n}})}var Wo=new Set([`.avif`,`.gif`,`.ico`,`.jpeg`,`.jpg`,`.png`,`.svg`,`.webp`]);function Go({checked:e,inline:t=!1}){return(0,T.jsx)(`input`,{"aria-label":e?`Checked item`:`Unchecked item`,checked:e,className:`markdown-checkbox ${t?`inline`:``}`,disabled:!0,readOnly:!0,type:`checkbox`})}function Ko(e,t){let n=[],r=0,i=0,a=null,o=t=>{t>i&&n.push(e.slice(i,t))};for(;r<e.length;){let s=e[r];if(s==="`"){let s=e.indexOf("`",r+1);if(s>r+1){let c=e.slice(r+1,s),l=a&&a.path.lastIndexOf(`/`)>0&&/^(?:\s*(?:\.\.\.|…)\s*)$/.test(e.slice(a.end,r))&&!/[\/]/.test(c)?a.path.slice(0,a.path.lastIndexOf(`/`)):null,u=t.onOpenFileInSidebar?_e(c,{workspaceRootPath:t.workspaceRootPath,fileBasePath:l||t.fileBasePath}):null;o(r),n.push(u?Qo(u.displayPath,u.path,u.displayPath,t,n.length):(0,T.jsx)(`code`,{children:c},n.length)),a=u?{path:u.path,end:s+1}:null,r=s+1,i=r;continue}}let c=qo(e,r);if(c){o(r),n.push((0,T.jsx)(Uo,{source:c.content},n.length)),r=c.end,i=r;continue}let l=s===`<`||e.startsWith(`!<img`,r)?is(e,r):null;if(l){let e=ds(l.src,t);if(e){o(r),n.push(Xo(l.alt,e,t,n.length)),r=l.end,i=r;continue}}let u=s===`<`?os(e,r):null;if(u){o(r),n.push(Yo(u.label,u.href,t,n.length)),r=u.end,i=r;continue}let d=s===`<`?ss(e,r):null;if(d){o(r),n.push(Yo(d.href,d.href,t,n.length)),r=d.end,i=r;continue}let f=s===`[`?as(e,r):null;if(f){o(r),n.push((0,T.jsx)(Go,{checked:f.checked,inline:!0},n.length)),r=f.end,i=r;continue}let p=e.startsWith(`![`,r)?ts(e,r):null;if(p){let e=ds(p.href,t);o(r),n.push(e?Xo(p.label,e,t,n.length):Yo(p.label||p.href,p.href,t,n.length)),r=p.end,i=r;continue}let m=s===`[`?ns(e,r):null;if(m){o(r),n.push(Yo(m.label,m.href,t,n.length)),r=m.end,i=r;continue}let h=Jo(e,r);if(h){o(r),n.push(Yo(h.href,h.href,t,n.length)),r=h.end,i=r;continue}let g=t.onOpenFileInSidebar?ge(e,r,{workspaceRootPath:t.workspaceRootPath,fileBasePath:t.fileBasePath}):null;if(g)o(r),n.push(Qo(g.displayPath,g.path,g.displayPath,t,n.length)),r=g.end,i=r;else{if(e.startsWith(`**`,r)){let a=e.indexOf(`**`,r+2);if(a>r+2){o(r),n.push((0,T.jsx)(`strong`,{children:Ko(e.slice(r+2,a),t)},n.length)),r=a+2,i=r;continue}}if(e.startsWith(`__`,r)){let a=e.indexOf(`__`,r+2);if(a>r+2){o(r),n.push((0,T.jsx)(`strong`,{children:Ko(e.slice(r+2,a),t)},n.length)),r=a+2,i=r;continue}}r+=1}}return o(e.length),n}function qo(e,t){if(e.startsWith(`\\(`,t)){let n=e.indexOf(`\\)`,t+2);return n<=t+2?null:{content:e.slice(t+2,n),end:n+2}}if(e[t]!==`$`||e[t+1]===`$`||/\s/.test(e[t+1]??``))return null;let n=t+1;for(;(n=e.indexOf(`$`,n+1))>=0;)if(e[n-1]!==`\\`&&!(e[n+1]===`$`||/\d/.test(e[n+1]??``)||/\s/.test(e[n-1]??``)))return{content:e.slice(t+1,n),end:n+1};return null}function Jo(e,t){let n=t>0?e[t-1]:``;if(n&&!/[\s([{<]/.test(n))return null;let r=e.slice(t),i=/^(?:https?:\/\/|www\.)[^\s<>()]+(?:\([^\s<>()]*\)[^\s<>()]*)*/i.exec(r);if(!i)return null;let a=i[0];for(;/[.,;:!?]$/.test(a);)a=a.slice(0,-1);return a?{href:/^www\./i.test(a)?`https://${a}`:a,end:t+a.length}:null}function Yo(e,t,n,r){let i=n.conversationLinks?.get(t);if(i)return(0,T.jsx)(`a`,{href:`/tasks/${encodeURIComponent(i.conversationId)}`,onClick:e=>{n.onOpenConversation&&(e.preventDefault(),n.onOpenConversation(i.conversationId))},children:e===t?i.title:Ko(e,n)},r);let a=hs(t),o=ds(a,n),s=/^https?:\/\//i.test(a),c=o?.kind===`url`?o.src:o?.src??a,l=n.onOpenFileInSidebar?_e(a,{workspaceRootPath:n.workspaceRootPath,fileBasePath:n.fileBasePath}):null;return!o&&l?Qo(e,l.path,l.displayPath,n,r):(0,T.jsx)(`a`,{href:s||o?c:`#`,className:o?`markdown-image-link`:void 0,onBlur:()=>{o&&n.onPreviewImage(null)},onClick:e=>{o?(e.preventDefault(),xs(o,n),n.onPreviewImage(null)):s&&n.onOpenBrowserLink?(e.preventDefault(),n.onOpenBrowserLink(c)):s||e.preventDefault()},onContextMenu:e=>{e.preventDefault(),n.onPreviewImage(null),n.onOpenLinkMenu(ws(c,a,e.clientX,e.clientY))},onFocus:e=>{o&&Ss(o,n,e.currentTarget)},onMouseEnter:e=>{o&&Ss(o,n,e.currentTarget)},onMouseLeave:()=>{o&&n.onPreviewImage(null)},rel:s?`noreferrer`:void 0,target:s?`_blank`:void 0,title:a,children:e},r)}function Xo(e,t,n,r){return(0,T.jsx)(Zo,{context:n,image:t,label:e},r)}function Zo({context:e,image:t,label:n}){let r=Ae(e.connection,t.kind===`workspace`?t.appId:null,t.kind===`workspace`?t.path:null),i=Ee(e.connection,t.kind===`local`?t.path:null),a=t.kind===`url`?t.src:t.kind===`local`?i:r,o=n.trim()||t.title;return(0,T.jsx)(`button`,{type:`button`,className:`markdown-inline-image ${a?`ready`:`loading`}`,onClick:()=>{t.kind===`url`?e.onOpenImage({src:t.src,title:o}):a?e.onOpenImage({src:a,title:o}):t.kind!==`local`&&e.onOpenWorkspaceImage({appId:t.appId,path:t.path,title:o})},title:o,children:a?(0,T.jsx)(`img`,{alt:o,decoding:`async`,loading:`lazy`,src:a}):(0,T.jsx)(`span`,{"aria-hidden":`true`})})}function Qo(e,t,n,r,i){let a=fs(t,n,r);return a?(0,T.jsx)(es,{context:r,displayPath:n,image:a,label:e,path:t},i):(0,T.jsx)($o,{context:r,displayPath:n,label:e,path:t},i)}function $o({context:e,displayPath:t,label:n,path:r}){return(0,T.jsx)(`a`,{href:`#`,className:`markdown-file-link`,onClick:t=>{t.preventDefault(),e.onOpenFileInSidebar?.(r)},onContextMenu:n=>{n.preventDefault(),e.onPreviewImage(null),e.onOpenLinkMenu(Ts(r,t,n.clientX,n.clientY))},title:r,children:n})}function es({context:e,displayPath:t,image:n,label:r,path:i}){let a=je(e.connection,n.kind===`workspace`?n.appId:null,n.kind===`workspace`?n.path:null),o=De(e.connection,n.kind===`local`?n.path:null),s=n.kind===`local`?o:a,c=n.kind===`url`?n.src:s.url,[l,u]=(0,w.useState)(null),d=!!(c&&l===c)||n.kind!==`url`&&s.status===`error`,f=n.title||t;return(0,T.jsxs)(`span`,{className:`markdown-file-image-reference`,children:[(0,T.jsx)($o,{context:e,displayPath:t,label:r,path:i}),(0,T.jsx)(`button`,{type:`button`,className:`markdown-file-image-preview ${d?`error`:c?`ready`:`loading`}`,onClick:()=>{if(d){if(e.onOpenFileInSidebar&&n.kind!==`url`){e.onOpenFileInSidebar(i);return}u(null),n.kind!==`url`&&s.retry()}else n.kind===`url`?e.onOpenImage({src:n.src,title:f}):c?e.onOpenImage({src:c,title:f}):n.kind!==`local`&&e.onOpenWorkspaceImage({appId:n.appId,path:n.path,title:f})},title:f,"aria-label":d?`Retry preview for ${f}`:`Preview ${f}`,children:d?(0,T.jsx)(`span`,{children:`Preview unavailable · Retry`}):c?(0,T.jsx)(`img`,{alt:f,decoding:`async`,loading:`lazy`,src:c,onError:()=>u(c)}):(0,T.jsx)(`span`,{children:`Loading preview…`})})]})}function ts(e,t){if(!e.startsWith(`![`,t))return null;let n=t+2,r=e.indexOf(`]`,n);if(r<n||e[r+1]!==`(`)return null;let i=rs(e,r+2);return i?{label:e.slice(n,r),href:i.href,end:i.end}:null}function ns(e,t){let n=e.indexOf(`]`,t+1);if(n<=t+1||e[n+1]!==`(`)return null;let r=rs(e,n+2);return r?{label:e.slice(t+1,n),href:r.href,end:r.end}:null}function rs(e,t){if(e[t]===`<`){let n=e.indexOf(`>`,t+1);return n<0||e[n+1]!==`)`?null:{href:e.slice(t+1,n),end:n+2}}let n=0;for(let r=t;r<e.length;r+=1){let i=e[r];if(i===`\\`)r+=1;else if(i===`(`)n+=1;else if(i===`)`){if(n===0)return{href:e.slice(t,r),end:r+1};--n}}return null}function is(e,t){let n=e[t]===`!`?t+1:t;if(!/^<img\b/i.test(e.slice(n)))return null;let r=e.indexOf(`>`,n+4);if(r<0)return null;let i=e.slice(n,r+1),a=ls(i,`src`);return a?{src:a,alt:ls(i,`alt`)??ls(i,`title`)??``,end:r+1}:null}function as(e,t){let n=e.slice(t,t+3);return n===`[ ]`?{checked:!1,end:t+3}:n===`[x]`||n===`[X]`?{checked:!0,end:t+3}:null}function os(e,t){let n=e.slice(t),r=/^<a\s+[^>]*href\s*=\s*(["'])(.*?)\1[^>]*>(.*?)<\/a>/i.exec(n);return r?{href:r[2]??``,label:cs(r[3]??``),end:t+r[0].length}:null}function ss(e,t){let n=e.indexOf(`>`,t+1);if(n<=t+1)return null;let r=e.slice(t+1,n).trim();return us(r)?{href:r,end:n+1}:null}function cs(e){return e.replace(/<[^>]+>/g,``).trim()||e}function ls(e,t){let n=RegExp(`\\s${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s>]+))`,`i`).exec(e);return n?.[1]??n?.[2]??n?.[3]??null}function us(e){return/^(https?:\/\/|file:\/\/|(?:workspace|sandbox):file:|\/|\.{1,2}\/)/i.test(e)}function ds(e,t){let n=hs(e);if(!n)return null;if(/^https?:\/\//i.test(n))try{let e=new URL(n);return bs(e,t)||(ys(e,t.connection)?{kind:`url`,src:n,title:u(e.searchParams.get(`path`)??e.pathname)}:null)}catch{return null}let r=gs(_e(n,{fileBasePath:t.fileBasePath})?.path??n),i=ps(r??n,t.workspaceRootPath);if(i)return{kind:`url`,src:i,title:u(r??n)};if(!r||!p(r)||!t.connection)return null;if(_s(r))return{kind:`local`,path:r,src:t.localImageUrls.getUrl(r),title:u(r)};if(!t.activeWorkspaceAppId)return null;let a=vs(r,t.workspaceRootPath);return!a||!p(a)?null:{kind:`workspace`,appId:t.activeWorkspaceAppId,path:a,src:t.workspaceImageUrls.getUrl(t.activeWorkspaceAppId,a),title:u(a)}}function fs(e,t,n){let r=ps(e,n.workspaceRootPath)??ps(t,n.workspaceRootPath);if(r)return{kind:`url`,src:r,title:u(t)};if(!p(e)||!n.connection)return null;if(_s(e))return{kind:`local`,path:e,src:n.localImageUrls.getUrl(e),title:u(e)};if(!n.activeWorkspaceAppId)return null;let i=vs(e,n.workspaceRootPath);return!i||!p(i)?null:{kind:`workspace`,appId:n.activeWorkspaceAppId,path:i,src:n.workspaceImageUrls.getUrl(n.activeWorkspaceAppId,i),title:u(i)}}function ps(e,n){let r=vs(e,n);if(!r?.startsWith(`apps/web/public/`))return null;let i=r.slice(16);return!i||!ms(i)?null:t(i.split(`/`).map(encodeURIComponent).join(`/`))}function ms(e){let t=e.split(`?`)[0]?.split(`#`)[0]??e,n=t.lastIndexOf(`.`);return n<0?!1:Wo.has(t.slice(n).toLowerCase())}function hs(e){return e.trim().replace(/^['"`]+|['"`]+$/g,``)}function gs(e){let t=e.trim();if(!t)return null;if(t.startsWith(`file://`))try{return decodeURIComponent(new URL(t).pathname)}catch{return t.replace(/^file:\/\//,``)}if(_s(t))return t;let n=t.indexOf(`#`);n>=0&&(t=t.slice(0,n));let r=t.indexOf(`?`);return r>=0&&(t=t.slice(0,r)),t}function _s(e){return/^file:\/\//i.test(e)||/^(?:\/|~\/)/.test(e)||/^[A-Za-z]:[\\/]/.test(e)}function vs(e,t){let n=e.trim().replace(/^['"`]+|['"`]+$/g,``);if(!n)return null;if(n.startsWith(`file://`))try{n=decodeURIComponent(new URL(n).pathname)}catch{n=n.replace(/^file:\/\//,``)}if(n=n.replace(/\\/g,`/`),_s(n)){let e=t?.trim().replace(/\\/g,`/`).replace(/\/+$/,``);if(!e||!n.startsWith(`${e}/`))return null;n=n.slice(e.length+1)}n=n.replace(/^\.\/+/,``);let r=n.split(`/`).filter(Boolean);return r.length===0||r.some(e=>e===`.`||e===`..`||e===`.git`)?null:r.join(`/`)}function ys(e,t){if(t){let n=new URL(t.serverUrl);if(e.origin===n.origin){if(e.pathname===`/v1/local-image`||/\/v1\/workspaces\/[^/]+\/file-image$/.test(e.pathname))return!1;if(e.pathname===`/v1/assets/workspace-image`||e.pathname===`/v1/assets/chat-attachment-image`)return!0}}if(p(e.pathname))return!0;let n=e.searchParams.get(`path`);return!!(n&&p(n))}function bs(e,t){if(!t.connection)return null;let n=new URL(t.connection.serverUrl);if(e.origin!==n.origin)return null;let r=e.pathname===`/v1/assets/workspace-image`?e.searchParams.get(`path`):null;if(r&&p(r))return{kind:`url`,src:e.toString(),title:u(r)};let i=e.pathname===`/v1/assets/chat-attachment-image`?e.searchParams.get(`storageName`):null;if(i&&p(i))return{kind:`url`,src:e.toString(),title:u(i)};let a=/^\/v1\/workspaces\/([^/]+)\/file-image$/.exec(e.pathname),o=a?e.searchParams.get(`path`):null;if(!a||!o||!p(o))return null;let s=decodeURIComponent(a[1]),c=vs(o,t.workspaceRootPath);return!c||!p(c)?null:{kind:`workspace`,appId:s,path:c,src:t.workspaceImageUrls.getUrl(s,c),title:u(c)}}function xs(e,t){e.kind===`url`?t.onOpenImage(e):e.kind===`local`?e.src?t.onOpenImage({src:e.src,title:e.title}):t.onOpenFileInSidebar?.(e.path):e.src?t.onOpenImage({src:e.src,title:e.title}):t.onOpenFileInSidebar?t.onOpenFileInSidebar(e.path):t.onOpenWorkspaceImage({appId:e.appId,path:e.path,title:e.title})}function Ss(e,t,n){if(e.kind===`url`)t.onPreviewImage(Cs(e,n));else if(e.kind===`local`){if(e.src){t.onPreviewImage(Cs({src:e.src,title:e.title},n));return}t.localImageUrls.loadUrl(e.path).then(r=>{r&&n.matches(`:hover`)&&t.onPreviewImage(Cs({src:r,title:e.title},n))})}else e.src?t.onPreviewImage(Cs({src:e.src,title:e.title},n)):t.workspaceImageUrls.loadUrl(e.appId,e.path).then(r=>{r&&n.matches(`:hover`)&&t.onPreviewImage(Cs({src:r,title:e.title},n))})}function Cs(e,t){let n=t.getBoundingClientRect(),r=Math.max(12,Math.min(n.left,window.innerWidth-236-12)),i=n.bottom+8,a=i+172<=window.innerHeight-12?i:Math.max(12,n.top-172-8);return{...e,x:r,y:a}}function ws(e,t,n,r){return{kind:`browser`,browserHref:e,displayHref:t,x:Math.max(8,Math.min(n,window.innerWidth-220-8)),y:Math.max(8,Math.min(r,window.innerHeight-142-8))}}function Ts(e,t,n,r){return{kind:`file`,path:e,displayPath:t,x:Math.max(8,Math.min(n,window.innerWidth-220-8)),y:Math.max(8,Math.min(r,window.innerHeight-72-8))}}async function Es(e){let t=e.trim();if(!t)return!1;let n=window.openpond?.files;if(!n)return!1;try{return(await n.reveal({path:t})).ok}catch{return!1}}async function Ds(e,t){let n=e.trim(),r=window.openpond?.files;if(!n||!r?.saveAs)return{ok:!1,canceled:!1,path:null};try{let e=await r.saveAs({path:n,suggestedName:t});return{ok:e.ok,canceled:e.canceled,path:e.path??null}}catch{return{ok:!1,canceled:!1,path:null}}}var Os={bash:`Bash`,css:`CSS`,html:`HTML`,javascript:`JavaScript`,js:`JavaScript`,json:`JSON`,jsx:`JSX`,markdown:`Markdown`,md:`Markdown`,python:`Python`,py:`Python`,sh:`Shell`,shell:`Shell`,sql:`SQL`,ts:`TypeScript`,tsx:`TSX`,typescript:`TypeScript`,yaml:`YAML`,yml:`YAML`},ks=(0,w.memo)(function({content:e,language:t}){let[n,r]=(0,w.useState)(!1),[i,a]=(0,w.useState)(!1),o=As(t);return(0,w.useEffect)(()=>{if(!n)return;let e=window.setTimeout(()=>r(!1),1800);return()=>window.clearTimeout(e)},[n]),(0,T.jsxs)(`section`,{className:`markdown-code-block${i?` wrap-lines`:``}`,"aria-label":`${o} code block`,children:[(0,T.jsxs)(`header`,{className:`markdown-code-header`,children:[(0,T.jsxs)(`span`,{className:`markdown-code-language`,children:[(0,T.jsx)(S,{"aria-hidden":!0,size:15,strokeWidth:1.8}),(0,T.jsx)(`span`,{children:o})]}),(0,T.jsxs)(`span`,{className:`markdown-code-actions`,children:[(0,T.jsx)(`button`,{"aria-label":i?`Stop wrapping code`:`Wrap code`,"aria-pressed":i,className:`markdown-code-action`,title:i?`Stop wrapping`:`Wrap lines`,type:`button`,onClick:()=>a(e=>!e),children:(0,T.jsx)(ie,{"aria-hidden":!0,size:15})}),(0,T.jsx)(`button`,{"aria-label":n?`Code copied`:`Copy code`,className:`markdown-code-action`,title:n?`Copied`:`Copy code`,type:`button`,onClick:()=>{ae(e).then(e=>{e&&r(!0)})},children:n?(0,T.jsx)(h,{"aria-hidden":!0,size:15}):(0,T.jsx)(s,{"aria-hidden":!0,size:15})})]})]}),(0,T.jsx)(`pre`,{className:`markdown-code-content`,children:(0,T.jsx)(`code`,{children:e})})]})});function As(e){let t=e?.trim().toLowerCase();return t?Os[t]??t.charAt(0).toUpperCase()+t.slice(1):`Code`}function js({activeWorkspaceAppId:e=null,connection:t=null,content:n,finalizedContent:r,mutableContent:i,onOpenBrowserLink:a,onOpenFileInSidebar:o,conversationLinks:s,onOpenConversation:c,workspaceRootPath:l=null}){let u=r!==void 0||i!==void 0,d=(0,w.useMemo)(()=>u?[]:Ie(n),[n,u]),f=(0,w.useMemo)(()=>u&&r?Ie(r):[],[r,u]),p=(0,w.useMemo)(()=>u&&i?Ie(i):[],[i,u]),m=(0,w.useMemo)(()=>u?[...f,...p]:d,[u,f,p,d]),[h,g]=(0,w.useState)(null),[_,v]=(0,w.useState)(null),[y,b]=(0,w.useState)(null),x=Oe(t),S=Me(t),C=(0,w.useMemo)(()=>new Map(s?.flatMap(e=>[[e.conversationId,e],[`/tasks/${encodeURIComponent(e.conversationId)}`,e]])??[]),[s]),ee=(0,w.useCallback)(e=>{S.loadUrl(e.appId,e.path).then(t=>{t&&g({src:t,title:e.title})})},[S]),te=(0,w.useMemo)(()=>({conversationLinks:C,onOpenConversation:c,activeWorkspaceAppId:e,connection:t,onOpenBrowserLink:a,onOpenFileInSidebar:o,onOpenLinkMenu:b,onOpenImage:g,onOpenWorkspaceImage:ee,onPreviewImage:v,localImageUrls:x,workspaceImageUrls:S,workspaceRootPath:l}),[C,c,e,t,ee,x,a,o,S,l]);return(0,w.useEffect)(()=>{if(!y)return;let e=()=>b(null),t=t=>{t.key===`Escape`&&e()};return window.addEventListener(`click`,e),window.addEventListener(`keydown`,t),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`click`,e),window.removeEventListener(`keydown`,t),window.removeEventListener(`scroll`,e,!0)}},[y]),(0,T.jsxs)(`div`,{className:`markdown-message`,children:[(0,T.jsx)(Ms,{blocks:m,context:te,keyPrefix:`block`,workspaceRootPath:l}),_&&(0,T.jsx)(Is,{preview:_}),y&&(0,T.jsx)(Ls,{menu:y,onClose:()=>b(null),onOpenBrowserLink:a,onOpenFileInSidebar:o}),(0,T.jsx)(Fe,{open:!!h,src:h?.src??null,title:h?.title??``,onClose:()=>g(null)})]})}var Ms=(0,w.memo)(function({blocks:e,context:t,keyPrefix:n,workspaceRootPath:r}){return Ps(e,t,r,n)});function Ns(e,t){return t.type===`list`?e:`content`in t&&typeof t.content==`string`&&t.type!==`code`?we(t.content):null}function Ps(e,t,n,r=`block`){let i=t.fileBasePath??null;return e.map((e,a)=>{i=Ns(i,e);let o={...t,fileBasePath:i},s=`${r}-${a}`;if(e.type===`blockquote`)return(0,T.jsx)(`blockquote`,{className:`markdown-blockquote`,children:Ps(Ie(e.content),t,n,`${s}-quote`)},s);if(e.type===`code`){let t=Fs(e.content,n);return t?(0,T.jsx)(`div`,{className:`markdown-file-reference-block`,children:t.map((e,t)=>(0,T.jsx)(`div`,{className:`markdown-file-reference-line`,children:Ko(e,o)},t))},s):(0,T.jsx)(ks,{content:e.content,language:e.language},s)}if(e.type===`math`)return(0,T.jsx)(Uo,{display:!0,source:e.content},s);if(e.type===`list`){let t=e.items.map((t,n)=>(0,T.jsxs)(`li`,{className:t.checked===null?void 0:`markdown-task-list-item`,value:e.ordered?t.ordinal??void 0:void 0,children:[t.checked===null?null:(0,T.jsx)(Go,{checked:t.checked}),(0,T.jsx)(`span`,{children:Ko(t.content,o)})]},n));return e.ordered?(0,T.jsx)(`ol`,{className:`markdown-list`,start:e.start,children:t},s):(0,T.jsx)(`ul`,{className:`markdown-list`,children:t},s)}if(e.type===`heading`){let t=e.level===1?`h1`:e.level===2?`h2`:e.level===3?`h3`:`h4`;return(0,T.jsx)(t,{className:`markdown-heading`,children:Ko(e.content,o)},s)}return e.type===`table`?(0,T.jsx)(`div`,{className:`markdown-table-wrap`,children:(0,T.jsxs)(`table`,{className:`markdown-table`,children:[(0,T.jsx)(`thead`,{children:(0,T.jsx)(`tr`,{children:e.headers.map((e,t)=>(0,T.jsx)(`th`,{children:Ko(e,o)},t))})}),(0,T.jsx)(`tbody`,{children:e.rows.map((n,r)=>(0,T.jsx)(`tr`,{children:e.headers.map((e,r)=>(0,T.jsx)(`td`,{children:Ko(n[r]??``,t)},r))},r))})]})},s):(0,T.jsx)(`p`,{className:`markdown-paragraph`,children:Ko(e.content,o)},s)})}function Fs(e,t){let n=e.split(`
|
|
268
|
+
`),r=[];for(let e of n){let n=e.trim();if(!n)continue;let i=n.replace(/^(?:[-*]|\d+[.)])\s+/,``).trim().replace(/^`+|`+$/g,``).trim();if(!i||!_e(i,{workspaceRootPath:t}))return null;r.push(i)}return r.length>0?r:null}function Is({preview:e}){let[t,n]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{n(!1)},[e.src]),(0,T.jsxs)(`div`,{className:`markdown-image-hover-preview ${t?`unavailable`:``}`,style:{left:e.x,top:e.y},children:[t?(0,T.jsx)(`span`,{children:`Preview unavailable`}):(0,T.jsx)(`img`,{alt:``,src:e.src,onError:()=>n(!0)}),(0,T.jsx)(`span`,{children:e.title})]})}function Ls({menu:e,onClose:t,onOpenBrowserLink:n,onOpenFileInSidebar:r}){return e.kind===`file`?(0,T.jsxs)(`div`,{className:`markdown-link-menu`,role:`menu`,style:{left:e.x,top:e.y},onClick:e=>e.stopPropagation(),children:[(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{r?.(e.path),t()},children:/[\\/]$/.test(e.path)?`Open folder`:oe(e.path)?`Open in browser`:`Open in sidebar`}),oe(e.path)&&(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{r?.(e.path,{source:!0}),t()},children:`View source`}),(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{Es(e.path),t()},children:`Open externally`}),(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{ae(e.displayPath),t()},children:`Copy path`})]}):(0,T.jsxs)(`div`,{className:`markdown-link-menu`,role:`menu`,style:{left:e.x,top:e.y},onClick:e=>e.stopPropagation(),children:[(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{n?n(e.browserHref):window.open(e.browserHref,`_blank`,`noopener,noreferrer`),t()},children:`Open in sidebar`}),(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{n?n(e.browserHref,{newTab:!0}):window.open(e.browserHref,`_blank`,`noopener,noreferrer`),t()},children:`Open in new tab`}),(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{window.open(e.browserHref,`_blank`,`noopener,noreferrer`),t()},children:`Open externally`}),(0,T.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>{ae(e.displayHref),t()},children:`Copy link`})]})}function Rs(e){let t=e.replace(/\\/g,`/`);if(!/^(?:\/|[A-Za-z]:\/)/.test(t))return null;let n=t.lastIndexOf(`/`),r=n===2&&/^[A-Za-z]:/.test(t)?t.slice(0,3):t.slice(0,n)||`/`;return l(r)}async function zs(e){let t=Uint8Array.from(atob(e),e=>e.charCodeAt(0)),n=await crypto.subtle.digest(`SHA-256`,t.buffer);return`sha256:${Array.from(new Uint8Array(n),e=>e.toString(16).padStart(2,`0`)).join(``)}`}var Bs=`
|
|
269
269
|
|
|
270
|
-
[file truncated]`,Vs=`openpond.sandboxSourceReadback.v1`;async function Hs(e,t,n,r=[]){let i;try{i=await
|
|
270
|
+
[file truncated]`,Vs=`openpond.sandboxSourceReadback.v1`;async function Hs(e,t,n,r=[]){let i;try{i=await g.sandboxDownloadFile(e,t,n,{maxBytes:/\.(?:pdf|docx?|pptx)$/i.test(n)?20971520:p(n)?10485760:262144})}catch(i){let a=i instanceof Error?i.message:String(i);if(!Us(a))throw i;let o=Ks(r,t,n);if(o)return o;let s=!!qs(r,t)?.artifact,c=await g.sandbox(e,t).catch(()=>null);throw Error(Ws(n,c?.sandbox??null,a,{hasReadbackArtifact:s}))}let a=i.file.isBinary?i.file.contentsBase64||null:`${i.contents}${i.file.truncated?Bs:``}`;if(i.file.isBinary&&i.file.truncated)throw Error(`This file is too large to preview completely.`);return{path:i.file.path,readStamp:`${i.file.sizeBytes}:${i.file.updatedAt}`,readVersion:await zs(i.file.contentsBase64),status:``,additions:0,deletions:0,patch:``,content:a,...i.file.isBinary?{contentEncoding:`base64`}:{}}}function Us(e){return e.includes(`sandbox_not_ready`)&&e.includes(`placement_stale`)||e.includes(`sandbox_not_running`)}function Ws(e,t,n=`sandbox_not_ready:placement_stale`,r={}){let i=t?Zs(t):null,a=e||`this file`;if(r.hasReadbackArtifact)return`Sandbox file content is unavailable because the stopped runtime placement is stale. The latest source checkpoint has a saved readback artifact, but ${a} was not captured as text. Resume the sandbox to inspect it. ${n}`;if(!i)return`Sandbox file content is unavailable because the stopped runtime placement is stale. Resume the sandbox to inspect ${a}. ${n}`;let o=i.preservedSha?i.preservedSha.slice(0,12):null,s=i.sourceRef?` (${i.sourceRef})`:``;return`Sandbox file content is unavailable because the stopped runtime placement is stale. The latest source checkpoint is saved${o?` at ${o}`:``}${s}, but this Desktop app cannot read file bodies from preserved source refs yet. Resume the sandbox to inspect ${a}.`}function Gs(e,t){if(!t)return null;let n=qs(e,t);if(!n)return null;let r=Ys(n.artifact),i=new Map;for(let e of rc(r))i.set(e.path,e);for(let e of Xs(n.artifact)){let t=Js(n.artifact,e.path);t&&i.set(e.path,t)}let a=[...i.values()].sort((e,t)=>e.path.localeCompare(t.path)),o=[...new Set(a.map(e=>e.path))].sort((e,t)=>e.localeCompare(t));return{appId:t,repoPath:``,initialized:!0,dirty:!1,filesChanged:a.length,additions:a.reduce((e,t)=>e+t.additions,0),deletions:a.reduce((e,t)=>e+t.deletions,0),repoFiles:o,files:a,error:null,updatedAt:$s(Qs(n.artifact)?.createdAt)??n.event.timestamp}}function Ks(e,t,n){if(!t)return null;let r=qs(e,t);return r?Js(r.artifact,n):null}function qs(e,t){for(let n=e.length-1;n>=0;--n){let r=e[n];if(r?.name!==`workspace_action_result`)continue;let i=Qs(Qs(Qs(r.data)?.sourcePreservation)?.sourceReadbackArtifact);if(i&&i.schemaVersion===Vs&&i.sandboxId===t)return{artifact:i,event:r}}return null}function Js(e,t){let n=rc(Ys(e)).find(e=>e.path===t),r=Xs(e).find(e=>e.path===t);if(!n&&!r)return null;let i=typeof r?.content==`string`?`${r.content}${r.truncated?Bs:``}`:null;return{path:r?.path??n?.path??t,status:n?.status??`M`,additions:n?.additions??0,deletions:n?.deletions??0,patch:n?.patch??``,content:i}}function Ys(e){let t=Qs(e.patch);return typeof t?.text==`string`?t.text:``}function Xs(e){return(Array.isArray(e.files)?e.files:[]).map(e=>{let t=Qs(e),n=$s(t?.path);return n?{path:n,...typeof t?.content==`string`?{content:t.content}:{},...t?.truncated===!0?{truncated:!0}:{}}:null}).filter(e=>!!e)}function Zs(e){let t=Qs(e.metadata)??{},n=Qs(t.sourcePreservation)??Qs(t.sourcePreserve),r=Qs(t.sourceChangeDetection),i=$s(n?.preservedSha)??$s(r?.preservedSha)??null,a=$s(n?.sourceRef)??$s(r?.sourceRef)??(typeof e.repoRef==`string`?e.repoRef:null);return!i&&!a?null:{preservedSha:i,sourceRef:a}}function Qs(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:null}function $s(e){return typeof e==`string`&&e.trim()?e.trim():null}async function ec(e,t,n,r){let i=await g.sandboxUploadFile(e,t,{path:n,contents:r});return await g.preserveSandboxSource(e,t,{message:`Auto-preserve source after right sidebar save`}),{path:i.file.path,status:`M`,additions:0,deletions:0,patch:``,content:r}}function tc(e){return e.filter(e=>e.type===`file`).map(e=>e.path).sort((e,t)=>e.localeCompare(t))}function nc(e,t){let n=new Map;for(let t of rc(e?.diff??``))n.set(t.path,t);for(let e of ic(t?.porcelain??``))n.has(e.path)||n.set(e.path,e);return[...n.values()].sort((e,t)=>e.path.localeCompare(t.path))}function rc(e){let t=[],n=null,r=()=>{n&&=(t.push({path:n.path,status:n.status,additions:n.additions,deletions:n.deletions,patch:n.patchLines.join(`
|
|
271
271
|
`),content:null}),null)};for(let t of e.split(`
|
|
272
272
|
`))if(t.startsWith(`diff --git `))r(),n={path:oc(t)??`changed-file`,status:`M`,additions:0,deletions:0,patchLines:[t]};else if(n){if(n.patchLines.push(t),t.startsWith(`+++ `)){let e=sc(t.slice(4));e&&(n.path=e)}else if(t.startsWith(`--- `)){let e=sc(t.slice(4));e&&n.path===`changed-file`&&(n.path=e)}else t.startsWith(`new file mode `)&&(n.status=`A`),t.startsWith(`deleted file mode `)&&(n.status=`D`),t.startsWith(`rename to `)&&(n.status=`R`,n.path=t.slice(10).trim()||n.path),t.startsWith(`+`)&&!t.startsWith(`+++`)&&(n.additions+=1),t.startsWith(`-`)&&!t.startsWith(`---`)&&(n.deletions+=1)}return r(),t}function ic(e){let t=[];for(let n of e.split(`
|
|
273
|
-
`)){if(!n.trim())continue;let e=ac(n);e&&t.push({path:e,status:n.slice(0,2).trim()||`M`,additions:0,deletions:0,patch:``,content:null})}return t}function ac(e){let t=e.slice(3).trim();return t?t.split(` -> `).pop()?.trim()||t:null}function oc(e){let t=/^diff --git a\/(.+) b\/(.+)$/.exec(e.trim());return t?.[2]??t?.[1]??null}function sc(e){let t=e.trim();return!t||t===`/dev/null`?null:t.startsWith(`a/`)||t.startsWith(`b/`)?t.slice(2):t}function cc(e){if(!e)return[];let t=new Map(e.plans.map(e=>[e.id,e]));return e.tasksets.map(n=>{let r=e.plans.filter(e=>e.tasksetId===n.id),i=new Set(r.map(e=>e.id)),a=e.jobs.filter(e=>i.has(e.planId)).sort(bc),o=a[0]??null,s=e.models.filter(e=>e.tasksetId===n.id&&e.status===`imported`).sort((e,t)=>t.importedAt.localeCompare(e.importedAt))[0]??null,c=o?t.get(o.planId)??null:r.sort(bc)[0]??null,l=uc(n);return{taskset:n,name:mc(n.name,l),primaryMethod:l,latestRunLabel:c?dc(n,c):s?`Imported adapter`:`Not started`,latestPlan:c,latestJob:o,localModel:s,runCount:a.length,status:o?hc(o.status):n.readiness?.ready?`Ready`:`Needs review`,updatedAt:o?.updatedAt??n.updatedAt}}).sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt))}function lc(e,t){if(!e)return[];let n=new Set(e.plans.filter(e=>e.tasksetId===t).map(e=>e.id));return e.jobs.filter(e=>n.has(e.planId)).sort(bc)}function uc(e){let t=e.metadata.trainingMethod;return typeof t==`string`&&t!==`none`?t:e.readiness?.recommendedMethod&&e.readiness.recommendedMethod!==`none`?e.readiness.recommendedMethod:e.capabilities.compatibleMethods.find(e=>![`none`,`retrieval`].includes(e))??`sft`}function dc(e,t){if(!t)return`Not started`;let n=t.recipe.method,r=e.readiness?.trainingPath;return n===`sft`&&r?.primaryMethod!==`sft`&&r?.bootstrap?.method===`sft`?`SFT bootstrap`:fc(n)}function fc(e){return e===`grpo`?`RFT`:e===`dpo`?`DPO`:e===`ppo`?`PPO`:e===`sft`?`SFT`:e?.toUpperCase()??`Review`}function pc(e){return e===`grpo`||e===`ppo`?`Reinforcement`:e===`dpo`?`Preference`:e===`sft`?`Supervised`:`Training`}function mc(e,t){return/\b(model|adapter)\s*$/i.test(e.trim())?e.trim():`${e.trim()} model`}function hc(e){return e.replaceAll(`_`,` `).replace(/^./,e=>e.toUpperCase())}function gc(e){return{export:`Export only`,openpond_managed:`OpenPond Managed`}[e]??e.replaceAll(`_`,` `).replace(/^./,e=>e.toUpperCase())}function _c(e){return e?new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`}).format(new Date(e)):`Not started`}function vc(e,t){if(!e)return`Not started`;let n=t?new Date(t).getTime():Date.now(),r=Math.max(0,Math.round((n-new Date(e).getTime())/1e3));if(r<60)return`${r}s`;let i=Math.floor(r/60);if(i<60)return`${i}m ${r%60}s`;let a=Math.floor(i/60);return a<24?`${a}h ${i%60}m`:`${Math.floor(a/24)}d ${a%24}h`}function yc(e,t,n){return t||([`succeeded`,`failed`,`cancelled`].includes(e)?n:null)}function bc(e,t){return t.createdAt.localeCompare(e.createdAt)}export{ce as A,x as B,Ds as C,Ee as D,Ae as E,ne as F,y as H,te as I,ee as L,oe as M,ae as N,_e as O,re as P,C as R,Es as S,Fe as T,v as U,b as V,
|
|
273
|
+
`)){if(!n.trim())continue;let e=ac(n);e&&t.push({path:e,status:n.slice(0,2).trim()||`M`,additions:0,deletions:0,patch:``,content:null})}return t}function ac(e){let t=e.slice(3).trim();return t?t.split(` -> `).pop()?.trim()||t:null}function oc(e){let t=/^diff --git a\/(.+) b\/(.+)$/.exec(e.trim());return t?.[2]??t?.[1]??null}function sc(e){let t=e.trim();return!t||t===`/dev/null`?null:t.startsWith(`a/`)||t.startsWith(`b/`)?t.slice(2):t}function cc(e){if(!e)return[];let t=new Map(e.plans.map(e=>[e.id,e]));return e.tasksets.map(n=>{let r=e.plans.filter(e=>e.tasksetId===n.id),i=new Set(r.map(e=>e.id)),a=e.jobs.filter(e=>i.has(e.planId)).sort(bc),o=a[0]??null,s=e.models.filter(e=>e.tasksetId===n.id&&e.status===`imported`).sort((e,t)=>t.importedAt.localeCompare(e.importedAt))[0]??null,c=o?t.get(o.planId)??null:r.sort(bc)[0]??null,l=uc(n);return{taskset:n,name:mc(n.name,l),primaryMethod:l,latestRunLabel:c?dc(n,c):s?`Imported adapter`:`Not started`,latestPlan:c,latestJob:o,localModel:s,runCount:a.length,status:o?hc(o.status):n.readiness?.ready?`Ready`:`Needs review`,updatedAt:o?.updatedAt??n.updatedAt}}).sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt))}function lc(e,t){if(!e)return[];let n=new Set(e.plans.filter(e=>e.tasksetId===t).map(e=>e.id));return e.jobs.filter(e=>n.has(e.planId)).sort(bc)}function uc(e){let t=e.metadata.trainingMethod;return typeof t==`string`&&t!==`none`?t:e.readiness?.recommendedMethod&&e.readiness.recommendedMethod!==`none`?e.readiness.recommendedMethod:e.capabilities.compatibleMethods.find(e=>![`none`,`retrieval`].includes(e))??`sft`}function dc(e,t){if(!t)return`Not started`;let n=t.recipe.method,r=e.readiness?.trainingPath;return n===`sft`&&r?.primaryMethod!==`sft`&&r?.bootstrap?.method===`sft`?`SFT bootstrap`:fc(n)}function fc(e){return e===`grpo`?`RFT`:e===`dpo`?`DPO`:e===`ppo`?`PPO`:e===`sft`?`SFT`:e?.toUpperCase()??`Review`}function pc(e){return e===`grpo`||e===`ppo`?`Reinforcement`:e===`dpo`?`Preference`:e===`sft`?`Supervised`:`Training`}function mc(e,t){return/\b(model|adapter)\s*$/i.test(e.trim())?e.trim():`${e.trim()} model`}function hc(e){return e.replaceAll(`_`,` `).replace(/^./,e=>e.toUpperCase())}function gc(e){return{export:`Export only`,openpond_managed:`OpenPond Managed`}[e]??e.replaceAll(`_`,` `).replace(/^./,e=>e.toUpperCase())}function _c(e){return e?new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`}).format(new Date(e)):`Not started`}function vc(e,t){if(!e)return`Not started`;let n=t?new Date(t).getTime():Date.now(),r=Math.max(0,Math.round((n-new Date(e).getTime())/1e3));if(r<60)return`${r}s`;let i=Math.floor(r/60);if(i<60)return`${i}m ${r%60}s`;let a=Math.floor(i/60);return a<24?`${a}h ${i%60}m`:`${Math.floor(a/24)}d ${a%24}h`}function yc(e,t,n){return t||([`succeeded`,`failed`,`cancelled`].includes(e)?n:null)}function bc(e,t){return t.createdAt.localeCompare(e.createdAt)}export{ce as A,x as B,Ds as C,Ee as D,Ae as E,ne as F,y as H,te as I,ee as L,oe as M,ae as N,_e as O,re as P,C as R,Es as S,Fe as T,v as U,b as V,Gs as _,mc as a,Rs as b,yc as c,cc as d,dc as f,tc as g,nc as h,lc as i,se as j,he as k,fc as l,Hs as m,_c as n,hc as o,Bs as p,vc as r,uc as s,gc as t,pc as u,ec as v,Re as w,js as x,zs as y,S as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,o as r,r as i,s as a}from"./WorkspaceMonacoEditor-
|
|
1
|
+
import{a as e,c as t,i as n,o as r,r as i,s as a}from"./WorkspaceMonacoEditor-BJxaiDrj.js";import"./toggleHighContrast-B-BD2K2Q.js";import{t as o}from"./workers-Clf4hKt5.js";import{typescriptDefaults as s}from"./monaco.contribution-CJlccVX3.js";var c=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&=(this._worker.dispose(),null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;let e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||=(async()=>(this._worker=o({moduleId:`vs/language/typescript/tsWorker`,createWorker:()=>new Worker(new URL(`/assets/ts.worker-CwbYC1F9.js`,``+import.meta.url),{type:`module`}),label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(a.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))(),this._client}async getLanguageServiceWorker(...e){let t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},l={};l[`lib.d.ts`]=!0,l[`lib.decorators.d.ts`]=!0,l[`lib.decorators.legacy.d.ts`]=!0,l[`lib.dom.asynciterable.d.ts`]=!0,l[`lib.dom.d.ts`]=!0,l[`lib.dom.iterable.d.ts`]=!0,l[`lib.es2015.collection.d.ts`]=!0,l[`lib.es2015.core.d.ts`]=!0,l[`lib.es2015.d.ts`]=!0,l[`lib.es2015.generator.d.ts`]=!0,l[`lib.es2015.iterable.d.ts`]=!0,l[`lib.es2015.promise.d.ts`]=!0,l[`lib.es2015.proxy.d.ts`]=!0,l[`lib.es2015.reflect.d.ts`]=!0,l[`lib.es2015.symbol.d.ts`]=!0,l[`lib.es2015.symbol.wellknown.d.ts`]=!0,l[`lib.es2016.array.include.d.ts`]=!0,l[`lib.es2016.d.ts`]=!0,l[`lib.es2016.full.d.ts`]=!0,l[`lib.es2016.intl.d.ts`]=!0,l[`lib.es2017.arraybuffer.d.ts`]=!0,l[`lib.es2017.d.ts`]=!0,l[`lib.es2017.date.d.ts`]=!0,l[`lib.es2017.full.d.ts`]=!0,l[`lib.es2017.intl.d.ts`]=!0,l[`lib.es2017.object.d.ts`]=!0,l[`lib.es2017.sharedmemory.d.ts`]=!0,l[`lib.es2017.string.d.ts`]=!0,l[`lib.es2017.typedarrays.d.ts`]=!0,l[`lib.es2018.asyncgenerator.d.ts`]=!0,l[`lib.es2018.asynciterable.d.ts`]=!0,l[`lib.es2018.d.ts`]=!0,l[`lib.es2018.full.d.ts`]=!0,l[`lib.es2018.intl.d.ts`]=!0,l[`lib.es2018.promise.d.ts`]=!0,l[`lib.es2018.regexp.d.ts`]=!0,l[`lib.es2019.array.d.ts`]=!0,l[`lib.es2019.d.ts`]=!0,l[`lib.es2019.full.d.ts`]=!0,l[`lib.es2019.intl.d.ts`]=!0,l[`lib.es2019.object.d.ts`]=!0,l[`lib.es2019.string.d.ts`]=!0,l[`lib.es2019.symbol.d.ts`]=!0,l[`lib.es2020.bigint.d.ts`]=!0,l[`lib.es2020.d.ts`]=!0,l[`lib.es2020.date.d.ts`]=!0,l[`lib.es2020.full.d.ts`]=!0,l[`lib.es2020.intl.d.ts`]=!0,l[`lib.es2020.number.d.ts`]=!0,l[`lib.es2020.promise.d.ts`]=!0,l[`lib.es2020.sharedmemory.d.ts`]=!0,l[`lib.es2020.string.d.ts`]=!0,l[`lib.es2020.symbol.wellknown.d.ts`]=!0,l[`lib.es2021.d.ts`]=!0,l[`lib.es2021.full.d.ts`]=!0,l[`lib.es2021.intl.d.ts`]=!0,l[`lib.es2021.promise.d.ts`]=!0,l[`lib.es2021.string.d.ts`]=!0,l[`lib.es2021.weakref.d.ts`]=!0,l[`lib.es2022.array.d.ts`]=!0,l[`lib.es2022.d.ts`]=!0,l[`lib.es2022.error.d.ts`]=!0,l[`lib.es2022.full.d.ts`]=!0,l[`lib.es2022.intl.d.ts`]=!0,l[`lib.es2022.object.d.ts`]=!0,l[`lib.es2022.regexp.d.ts`]=!0,l[`lib.es2022.string.d.ts`]=!0,l[`lib.es2023.array.d.ts`]=!0,l[`lib.es2023.collection.d.ts`]=!0,l[`lib.es2023.d.ts`]=!0,l[`lib.es2023.full.d.ts`]=!0,l[`lib.es2023.intl.d.ts`]=!0,l[`lib.es2024.arraybuffer.d.ts`]=!0,l[`lib.es2024.collection.d.ts`]=!0,l[`lib.es2024.d.ts`]=!0,l[`lib.es2024.full.d.ts`]=!0,l[`lib.es2024.object.d.ts`]=!0,l[`lib.es2024.promise.d.ts`]=!0,l[`lib.es2024.regexp.d.ts`]=!0,l[`lib.es2024.sharedmemory.d.ts`]=!0,l[`lib.es2024.string.d.ts`]=!0,l[`lib.es5.d.ts`]=!0,l[`lib.es6.d.ts`]=!0,l[`lib.esnext.array.d.ts`]=!0,l[`lib.esnext.collection.d.ts`]=!0,l[`lib.esnext.d.ts`]=!0,l[`lib.esnext.decorators.d.ts`]=!0,l[`lib.esnext.disposable.d.ts`]=!0,l[`lib.esnext.error.d.ts`]=!0,l[`lib.esnext.float16.d.ts`]=!0,l[`lib.esnext.full.d.ts`]=!0,l[`lib.esnext.intl.d.ts`]=!0,l[`lib.esnext.iterator.d.ts`]=!0,l[`lib.esnext.promise.d.ts`]=!0,l[`lib.esnext.sharedmemory.d.ts`]=!0,l[`lib.scripthost.d.ts`]=!0,l[`lib.webworker.asynciterable.d.ts`]=!0,l[`lib.webworker.d.ts`]=!0,l[`lib.webworker.importscripts.d.ts`]=!0,l[`lib.webworker.iterable.d.ts`]=!0;function u(e,t,n=0){if(typeof e==`string`)return e;if(e===void 0)return``;let r=``;if(n){r+=t;for(let e=0;e<n;e++)r+=` `}if(r+=e.messageText,n++,e.next)for(let i of e.next)r+=u(i,t,n);return r}function d(e){return e?e.map(e=>e.text).join(``):``}var f=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let n=e.getPositionAt(t.start),r=e.getPositionAt(t.start+t.length),{lineNumber:i,column:a}=n,{lineNumber:o,column:s}=r;return{startLineNumber:i,startColumn:a,endLineNumber:o,endColumn:s}}},p=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e?e.path.indexOf(`/lib.`)===0&&!!l[e.path.slice(1)]:!1}getOrCreateModel(e){let t=r.parse(e),n=a.getModel(t);if(n)return n;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return a.createModel(this._libFiles[t.path.slice(1)],`typescript`,t);let i=s.getExtraLibs()[e];return i?a.createModel(i.content,`typescript`,t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e}),this._fetchLibFilesPromise}},m=class extends f{constructor(e,t,n,r){super(r),this._libFiles=e,this._defaults=t,this._selector=n,this._disposables=[],this._listener=Object.create(null);let i=e=>{if(e.getLanguageId()!==n)return;let t=()=>{let{onlyVisible:t}=this._defaults.getDiagnosticsOptions();t?e.isAttachedToEditor()&&this._doValidate(e):this._doValidate(e)},r,i=e.onDidChangeContent(()=>{clearTimeout(r),r=window.setTimeout(t,500)}),o=e.onDidChangeAttached(()=>{let{onlyVisible:n}=this._defaults.getDiagnosticsOptions();n&&(e.isAttachedToEditor()?t():a.setModelMarkers(e,this._selector,[]))});this._listener[e.uri.toString()]={dispose(){i.dispose(),o.dispose(),clearTimeout(r)}},t()},o=e=>{a.setModelMarkers(e,this._selector,[]);let t=e.uri.toString();this._listener[t]&&(this._listener[t].dispose(),delete this._listener[t])};this._disposables.push(a.onDidCreateModel(e=>i(e))),this._disposables.push(a.onWillDisposeModel(o)),this._disposables.push(a.onDidChangeModelLanguage(e=>{o(e.model),i(e.model)})),this._disposables.push({dispose(){for(let e of a.getModels())o(e)}});let s=()=>{for(let e of a.getModels())o(e),i(e)};this._disposables.push(this._defaults.onDidChange(s)),this._disposables.push(this._defaults.onDidExtraLibsChange(s)),a.getModels().forEach(e=>i(e))}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables=[]}async _doValidate(e){let t=await this._worker(e.uri);if(e.isDisposed())return;let n=[],{noSyntaxValidation:i,noSemanticValidation:o,noSuggestionDiagnostics:s}=this._defaults.getDiagnosticsOptions();i||n.push(t.getSyntacticDiagnostics(e.uri.toString())),o||n.push(t.getSemanticDiagnostics(e.uri.toString())),s||n.push(t.getSuggestionDiagnostics(e.uri.toString()));let c=await Promise.all(n);if(!c||e.isDisposed())return;let l=c.reduce((e,t)=>t.concat(e),[]).filter(e=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(e.code)===-1),u=l.map(e=>e.relatedInformation||[]).reduce((e,t)=>t.concat(e),[]).map(e=>e.file?r.parse(e.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(u),!e.isDisposed()&&a.setModelMarkers(e,this._selector,l.map(t=>this._convertDiagnostics(e,t)))}_convertDiagnostics(e,t){let r=t.start||0,i=t.length||1,{lineNumber:a,column:o}=e.getPositionAt(r),{lineNumber:s,column:c}=e.getPositionAt(r+i),l=[];return t.reportsUnnecessary&&l.push(n.Unnecessary),t.reportsDeprecated&&l.push(n.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:a,startColumn:o,endLineNumber:s,endColumn:c,message:u(t.messageText,`
|
|
2
2
|
`),code:t.code.toString(),tags:l,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];let n=[];return t.forEach(t=>{let r=e;if(t.file&&(r=this._libFiles.getOrCreateModel(t.file.fileName)),!r)return;let i=t.start||0,a=t.length||1,{lineNumber:o,column:s}=r.getPositionAt(i),{lineNumber:c,column:l}=r.getPositionAt(i+a);n.push({resource:r.uri,startLineNumber:o,startColumn:s,endLineNumber:c,endColumn:l,message:u(t.messageText,`
|
|
3
3
|
`)})}),n}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return i.Error;case 3:return i.Info;case 0:return i.Warning;case 2:return i.Hint}return i.Info}},h=class n extends f{get triggerCharacters(){return[`.`]}async provideCompletionItems(r,i,a,o){let s=r.getWordUntilPosition(i),c=new e(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn),l=r.uri,u=r.getOffsetAt(i),d=await this._worker(l);if(r.isDisposed())return;let f=await d.getCompletionsAtPosition(l.toString(),u);if(f&&!r.isDisposed())return{suggestions:f.entries.map(a=>{let o=c;if(a.replacementSpan){let t=r.getPositionAt(a.replacementSpan.start),n=r.getPositionAt(a.replacementSpan.start+a.replacementSpan.length);o=new e(t.lineNumber,t.column,n.lineNumber,n.column)}let s=[];return a.kindModifiers!==void 0&&a.kindModifiers.indexOf(`deprecated`)!==-1&&s.push(t.CompletionItemTag.Deprecated),{uri:l,position:i,offset:u,range:o,label:a.name,insertText:a.name,sortText:a.sortText,kind:n.convertKind(a.kind),tags:s}})}}async resolveCompletionItem(e,t){let r=e,i=r.uri,a=r.position,o=r.offset,s=await(await this._worker(i)).getCompletionEntryDetails(i.toString(),o,r.label);return s?{uri:i,position:a,label:s.name,kind:n.convertKind(s.kind),detail:d(s.displayParts),documentation:{value:n.createDocumentationString(s)}}:r}static convertKind(e){switch(e){case C.primitiveType:case C.keyword:return t.CompletionItemKind.Keyword;case C.variable:case C.localVariable:return t.CompletionItemKind.Variable;case C.memberVariable:case C.memberGetAccessor:case C.memberSetAccessor:return t.CompletionItemKind.Field;case C.function:case C.memberFunction:case C.constructSignature:case C.callSignature:case C.indexSignature:return t.CompletionItemKind.Function;case C.enum:return t.CompletionItemKind.Enum;case C.module:return t.CompletionItemKind.Module;case C.class:return t.CompletionItemKind.Class;case C.interface:return t.CompletionItemKind.Interface;case C.warning:return t.CompletionItemKind.File}return t.CompletionItemKind.Property}static createDocumentationString(e){let t=d(e.documentation);if(e.tags)for(let n of e.tags)t+=`
|
|
4
4
|
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
var e=`/* The single authored UI palette. Edit roles here, then run pnpm theme:generate.
|
|
2
|
+
Generated contract data bridges separate desktop documents; components use these variables.
|
|
3
|
+
Media surfaces and external brand artwork intentionally retain their own contrast. */
|
|
4
|
+
:root, :root[data-theme="dark"] {
|
|
5
|
+
color-scheme: dark;
|
|
6
|
+
--surface-page: #181818;
|
|
7
|
+
--surface-navigation: #202020;
|
|
8
|
+
--surface-panel: #191919;
|
|
9
|
+
--surface-raised: #1f1f1f;
|
|
10
|
+
--surface-input: #333333;
|
|
11
|
+
--surface-chat-message: #16434b;
|
|
12
|
+
--text-chat-message: #f0fbfc;
|
|
13
|
+
--surface-floating: #242424;
|
|
14
|
+
--text-primary: #f4f4f5;
|
|
15
|
+
--text-secondary: #b9b9b9;
|
|
16
|
+
--text-muted: #9a9a9a;
|
|
17
|
+
--text-disabled: #737373;
|
|
18
|
+
--action-primary: #f4f4f5;
|
|
19
|
+
--action-primary-hover: #ffffff;
|
|
20
|
+
--text-on-primary: #171717;
|
|
21
|
+
--accent-primary: #06b6d4;
|
|
22
|
+
--accent-primary-fill: #087d91;
|
|
23
|
+
--accent-info: #3aa3ff;
|
|
24
|
+
--accent-warm: #ff7a2f;
|
|
25
|
+
--text-on-accent: #ffffff;
|
|
26
|
+
--action-cayenne: #b83e27;
|
|
27
|
+
--action-cayenne-hover: #a33320;
|
|
28
|
+
--state-hover: #292929;
|
|
29
|
+
--state-pressed: #343434;
|
|
30
|
+
--state-selected: #303030;
|
|
31
|
+
--focus-ring: #67b7ff;
|
|
32
|
+
--border-subtle: rgba(255,255,255,0.06);
|
|
33
|
+
--border-default: rgba(255,255,255,0.08);
|
|
34
|
+
--border-strong: rgba(255,255,255,0.18);
|
|
35
|
+
--status-success: #8ddfa8;
|
|
36
|
+
--status-warning: #e4b06b;
|
|
37
|
+
--status-danger: #ff8d8d;
|
|
38
|
+
--status-info: #8ec5ff;
|
|
39
|
+
--status-success-fill: #34784e;
|
|
40
|
+
--status-warning-fill: #806019;
|
|
41
|
+
--status-danger-fill: #91484b;
|
|
42
|
+
--status-info-fill: #3f6394;
|
|
43
|
+
--shadow-color: rgba(0,0,0,0.42);
|
|
44
|
+
--shadow-panel-color: var(--shadow-color);
|
|
45
|
+
--backdrop: rgba(0,0,0,0.58);
|
|
46
|
+
--scrollbar-thumb: rgba(255,255,255,0.22);
|
|
47
|
+
--scrollbar-hover: rgba(255,255,255,0.34);
|
|
48
|
+
--selection-background: rgba(58,163,255,0.28);
|
|
49
|
+
--media-background: #101010;
|
|
50
|
+
--media-foreground: #f4f4f5;
|
|
51
|
+
--brand-mark-filter: none;
|
|
52
|
+
--chart-1: #67b7ff;
|
|
53
|
+
--chart-2: #9b82ff;
|
|
54
|
+
--chart-3: #ea74ca;
|
|
55
|
+
--chart-4: #ff8b78;
|
|
56
|
+
--chart-5: #f6bd5c;
|
|
57
|
+
--chart-6: #55d6ad;
|
|
58
|
+
--chart-7: #49c6e5;
|
|
59
|
+
--chart-8: #7f9cff;
|
|
60
|
+
--chart-9: #c879ff;
|
|
61
|
+
--chart-10: #8bd35f;
|
|
62
|
+
--chart-saturation: 65%;
|
|
63
|
+
--chart-lightness: 68%;
|
|
64
|
+
--compute-gpu: var(--accent-primary);
|
|
65
|
+
--compute-cpu: color-mix(in srgb, var(--accent-primary) 45%, var(--text-muted));
|
|
66
|
+
--identity-coding: var(--chart-1);
|
|
67
|
+
--identity-research: var(--chart-6);
|
|
68
|
+
--identity-review: var(--chart-3);
|
|
69
|
+
--identity-test: var(--chart-7);
|
|
70
|
+
--identity-docs: var(--chart-5);
|
|
71
|
+
--identity-planner: var(--chart-2);
|
|
72
|
+
--identity-summary: var(--text-secondary);
|
|
73
|
+
--terminal-black: var(--surface-page);
|
|
74
|
+
--terminal-red: var(--status-danger);
|
|
75
|
+
--terminal-green: var(--status-success);
|
|
76
|
+
--terminal-yellow: var(--status-warning);
|
|
77
|
+
--terminal-blue: var(--accent-info);
|
|
78
|
+
--terminal-magenta: var(--chart-3);
|
|
79
|
+
--terminal-cyan: var(--accent-primary);
|
|
80
|
+
--terminal-white: var(--text-primary);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:root[data-theme="light"] {
|
|
84
|
+
color-scheme: light;
|
|
85
|
+
--surface-page: #fafafa;
|
|
86
|
+
--surface-navigation: #f5f5f5;
|
|
87
|
+
--surface-panel: #ffffff;
|
|
88
|
+
--surface-raised: #f5f5f5;
|
|
89
|
+
--surface-input: #ffffff;
|
|
90
|
+
--surface-chat-message: #d9f1f4;
|
|
91
|
+
--text-chat-message: #153a42;
|
|
92
|
+
--surface-floating: #ffffff;
|
|
93
|
+
--text-primary: #202124;
|
|
94
|
+
--text-secondary: #505359;
|
|
95
|
+
--text-muted: #666a73;
|
|
96
|
+
--text-disabled: #858992;
|
|
97
|
+
--action-primary: #202124;
|
|
98
|
+
--action-primary-hover: #171717;
|
|
99
|
+
--text-on-primary: #ffffff;
|
|
100
|
+
--accent-primary: #087d91;
|
|
101
|
+
--accent-primary-fill: #087d91;
|
|
102
|
+
--accent-info: #1769b3;
|
|
103
|
+
--accent-warm: #a94909;
|
|
104
|
+
--text-on-accent: #ffffff;
|
|
105
|
+
--action-cayenne: #b83e27;
|
|
106
|
+
--action-cayenne-hover: #a33320;
|
|
107
|
+
--state-hover: #eeeeee;
|
|
108
|
+
--state-pressed: #e4e4e4;
|
|
109
|
+
--state-selected: #e8e8e8;
|
|
110
|
+
--focus-ring: #1769b3;
|
|
111
|
+
--border-subtle: rgba(0,0,0,0.06);
|
|
112
|
+
--border-default: rgba(0,0,0,0.12);
|
|
113
|
+
--border-strong: rgba(0,0,0,0.24);
|
|
114
|
+
--status-success: #237345;
|
|
115
|
+
--status-warning: #88580d;
|
|
116
|
+
--status-danger: #b92d3d;
|
|
117
|
+
--status-info: #1769b3;
|
|
118
|
+
--status-success-fill: #287044;
|
|
119
|
+
--status-warning-fill: #795710;
|
|
120
|
+
--status-danger-fill: #a43b44;
|
|
121
|
+
--status-info-fill: #315f9e;
|
|
122
|
+
--shadow-color: rgba(0,0,0,0.08);
|
|
123
|
+
--shadow-panel-color: transparent;
|
|
124
|
+
--backdrop: rgba(0,0,0,0.32);
|
|
125
|
+
--scrollbar-thumb: rgba(0,0,0,0.25);
|
|
126
|
+
--scrollbar-hover: rgba(0,0,0,0.4);
|
|
127
|
+
--selection-background: rgba(23,105,179,0.2);
|
|
128
|
+
--media-background: #101010;
|
|
129
|
+
--media-foreground: #f4f4f5;
|
|
130
|
+
--brand-mark-filter: invert(1);
|
|
131
|
+
--chart-1: #1769b3;
|
|
132
|
+
--chart-2: #7044b4;
|
|
133
|
+
--chart-3: #a73588;
|
|
134
|
+
--chart-4: #b44230;
|
|
135
|
+
--chart-5: #926000;
|
|
136
|
+
--chart-6: #167a5b;
|
|
137
|
+
--chart-7: #06778b;
|
|
138
|
+
--chart-8: #4359bd;
|
|
139
|
+
--chart-9: #9146ad;
|
|
140
|
+
--chart-10: #527c14;
|
|
141
|
+
--chart-saturation: 65%;
|
|
142
|
+
--chart-lightness: 36%;
|
|
143
|
+
}
|
|
144
|
+
`,t={dark:{"--surface-page":`#181818`,"--surface-navigation":`#202020`,"--surface-panel":`#191919`,"--surface-raised":`#1f1f1f`,"--surface-input":`#333333`,"--surface-chat-message":`#16434b`,"--text-chat-message":`#f0fbfc`,"--surface-floating":`#242424`,"--text-primary":`#f4f4f5`,"--text-secondary":`#b9b9b9`,"--text-muted":`#9a9a9a`,"--text-disabled":`#737373`,"--action-primary":`#f4f4f5`,"--action-primary-hover":`#ffffff`,"--text-on-primary":`#171717`,"--accent-primary":`#06b6d4`,"--accent-primary-fill":`#087d91`,"--accent-info":`#3aa3ff`,"--accent-warm":`#ff7a2f`,"--text-on-accent":`#ffffff`,"--action-cayenne":`#b83e27`,"--action-cayenne-hover":`#a33320`,"--state-hover":`#292929`,"--state-pressed":`#343434`,"--state-selected":`#303030`,"--focus-ring":`#67b7ff`,"--border-subtle":`rgba(255,255,255,0.06)`,"--border-default":`rgba(255,255,255,0.08)`,"--border-strong":`rgba(255,255,255,0.18)`,"--status-success":`#8ddfa8`,"--status-warning":`#e4b06b`,"--status-danger":`#ff8d8d`,"--status-info":`#8ec5ff`,"--status-success-fill":`#34784e`,"--status-warning-fill":`#806019`,"--status-danger-fill":`#91484b`,"--status-info-fill":`#3f6394`,"--shadow-color":`rgba(0,0,0,0.42)`,"--shadow-panel-color":`rgba(0,0,0,0.42)`,"--backdrop":`rgba(0,0,0,0.58)`,"--scrollbar-thumb":`rgba(255,255,255,0.22)`,"--scrollbar-hover":`rgba(255,255,255,0.34)`,"--selection-background":`rgba(58,163,255,0.28)`,"--media-background":`#101010`,"--media-foreground":`#f4f4f5`,"--brand-mark-filter":`none`,"--chart-1":`#67b7ff`,"--chart-2":`#9b82ff`,"--chart-3":`#ea74ca`,"--chart-4":`#ff8b78`,"--chart-5":`#f6bd5c`,"--chart-6":`#55d6ad`,"--chart-7":`#49c6e5`,"--chart-8":`#7f9cff`,"--chart-9":`#c879ff`,"--chart-10":`#8bd35f`,"--chart-saturation":`65%`,"--chart-lightness":`68%`,"--compute-gpu":`#06b6d4`,"--compute-cpu":`color-mix(in srgb, var(--accent-primary) 45%, var(--text-muted))`,"--identity-coding":`#67b7ff`,"--identity-research":`#55d6ad`,"--identity-review":`#ea74ca`,"--identity-test":`#49c6e5`,"--identity-docs":`#f6bd5c`,"--identity-planner":`#9b82ff`,"--identity-summary":`#b9b9b9`,"--terminal-black":`#181818`,"--terminal-red":`#ff8d8d`,"--terminal-green":`#8ddfa8`,"--terminal-yellow":`#e4b06b`,"--terminal-blue":`#3aa3ff`,"--terminal-magenta":`#ea74ca`,"--terminal-cyan":`#06b6d4`,"--terminal-white":`#f4f4f5`},light:{"--surface-page":`#fafafa`,"--surface-navigation":`#f5f5f5`,"--surface-panel":`#ffffff`,"--surface-raised":`#f5f5f5`,"--surface-input":`#ffffff`,"--surface-chat-message":`#d9f1f4`,"--text-chat-message":`#153a42`,"--surface-floating":`#ffffff`,"--text-primary":`#202124`,"--text-secondary":`#505359`,"--text-muted":`#666a73`,"--text-disabled":`#858992`,"--action-primary":`#202124`,"--action-primary-hover":`#171717`,"--text-on-primary":`#ffffff`,"--accent-primary":`#087d91`,"--accent-primary-fill":`#087d91`,"--accent-info":`#1769b3`,"--accent-warm":`#a94909`,"--text-on-accent":`#ffffff`,"--action-cayenne":`#b83e27`,"--action-cayenne-hover":`#a33320`,"--state-hover":`#eeeeee`,"--state-pressed":`#e4e4e4`,"--state-selected":`#e8e8e8`,"--focus-ring":`#1769b3`,"--border-subtle":`rgba(0,0,0,0.06)`,"--border-default":`rgba(0,0,0,0.12)`,"--border-strong":`rgba(0,0,0,0.24)`,"--status-success":`#237345`,"--status-warning":`#88580d`,"--status-danger":`#b92d3d`,"--status-info":`#1769b3`,"--status-success-fill":`#287044`,"--status-warning-fill":`#795710`,"--status-danger-fill":`#a43b44`,"--status-info-fill":`#315f9e`,"--shadow-color":`rgba(0,0,0,0.08)`,"--shadow-panel-color":`transparent`,"--backdrop":`rgba(0,0,0,0.32)`,"--scrollbar-thumb":`rgba(0,0,0,0.25)`,"--scrollbar-hover":`rgba(0,0,0,0.4)`,"--selection-background":`rgba(23,105,179,0.2)`,"--media-background":`#101010`,"--media-foreground":`#f4f4f5`,"--brand-mark-filter":`invert(1)`,"--chart-1":`#1769b3`,"--chart-2":`#7044b4`,"--chart-3":`#a73588`,"--chart-4":`#b44230`,"--chart-5":`#926000`,"--chart-6":`#167a5b`,"--chart-7":`#06778b`,"--chart-8":`#4359bd`,"--chart-9":`#9146ad`,"--chart-10":`#527c14`,"--chart-saturation":`65%`,"--chart-lightness":`36%`,"--compute-gpu":`#087d91`,"--compute-cpu":`color-mix(in srgb, var(--accent-primary) 45%, var(--text-muted))`,"--identity-coding":`#1769b3`,"--identity-research":`#167a5b`,"--identity-review":`#a73588`,"--identity-test":`#06778b`,"--identity-docs":`#926000`,"--identity-planner":`#7044b4`,"--identity-summary":`#505359`,"--terminal-black":`#fafafa`,"--terminal-red":`#b92d3d`,"--terminal-green":`#237345`,"--terminal-yellow":`#88580d`,"--terminal-blue":`#1769b3`,"--terminal-magenta":`#a73588`,"--terminal-cyan":`#087d91`,"--terminal-white":`#202124`}};export{e as n,t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-
|
|
1
|
+
import{t as e}from"./createLucideIcon-DmttVQ_a.js";var t=e(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t}from"./index-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t}from"./index-DYrLeSyY.js";import{wn as n}from"./App-DHJVXTI2.js";var r=e(t(),1);function i({connection:e,onError:t,onPayload:i}){let[a,o]=(0,r.useState)(!1),[s,c]=(0,r.useState)(!1);async function l(r,a){if(e){o(!0),t(null);try{i(await n.switchOpenPondAccount(e,{handle:r,baseUrl:a??null}))}catch(e){t(e instanceof Error?e.message:String(e))}finally{o(!1)}}}async function u(r,a){if(!e)return!1;o(!0),t(null);try{return i(await n.removeOpenPondAccount(e,{handle:r,baseUrl:a??null})),!0}catch(e){return t(e instanceof Error?e.message:String(e)),!1}finally{o(!1)}}async function d(r){if(e&&r.apiKey.trim()){o(!0),t(null);try{let t=r.handle?.trim(),a=r.environment?.trim();i(await n.saveOpenPondAccount(e,{apiKey:r.apiKey.trim(),handle:t||void 0,baseUrl:r.baseUrl,apiBaseUrl:r.apiBaseUrl,environment:a||`custom`,setActive:!0}))}catch(e){throw t(e instanceof Error?e.message:String(e)),e}finally{o(!1)}}}async function f(){if(e){c(!0),t(null);try{i(await n.refreshOpenPondAccounts(e))}catch(e){t(e instanceof Error?e.message:String(e))}finally{c(!1)}}}return{refreshingAccounts:s,saving:a,refreshAccounts:f,removeAccount:u,saveAccount:d,switchAccount:l}}export{i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t,s as n}from"./index-DYrLeSyY.js";import{n as r}from"./api-client-Dgz-fOMl.js";var i=[{id:`openpond_chat`,name:`Ponder Pal`,icon:n},{id:`codex`,name:`Codex`,icon:`/agent-sources/codex.svg`,provider:`codex`},{id:`claude_code`,name:`Claude Code`,icon:`/agent-sources/claude-code.svg`,provider:`claude-code`},{id:`opencode`,name:`OpenCode`,icon:`/agent-sources/opencode.svg`,provider:`opencode`},{id:`grok_build`,name:`Grok Build`,icon:`/agent-sources/grok-build.svg`,provider:`grok-build`},{id:`hermes`,name:`Hermes`,icon:`/agent-sources/hermes.png`},{id:`pi`,name:`Pi`,icon:`/agent-sources/pi.svg`},{id:`openclaw`,name:`OpenClaw`,icon:`/agent-sources/openclaw.svg`},{id:`oh_my_pi`,name:`Oh My Pi`,icon:`/agent-sources/oh-my-pi.svg`}];function a(e,t){if(e.state===`disconnected`)return`Disconnected`;if(e.state===`paused`)return`Paused`;if(e.selectedConversations===0)return`Choose conversations to upload`;if(t.running&&e.run?.state===`running`)return`Importing conversations`;if(e.error||e.run?.state===`failed`)return`Needs attention`;let n=e.schedule;return n?.frequency===`hourly`?`Hourly`:n?.frequency===`cron`?`Cron: ${n.expression}`:n?.frequency===`daily`?`Daily at ${n.time}`:n?.frequency===`weekly`?`Weekly on ${[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`][n.day]} at ${n.time}`:`Manual imports`}var o=e(t(),1),s=new WeakMap;function c(e){let[t,n]=(0,o.useState)(null),[i,a]=(0,o.useState)(null),[c,l]=(0,o.useState)(!1),u=(0,o.useRef)(0),d=(0,o.useRef)(null),f=(0,o.useCallback)(async()=>{if(!e||d.current)return;let t=new AbortController;d.current=t;let i=u.current;l(!0);try{let o=await r(e,`/v1/native-history/collector`,{method:`POST`,body:JSON.stringify({command:`inventory`}),signal:t.signal});if(i!==u.current||t.signal.aborted)return;s.set(e,o),n({connection:e,value:o}),a(null)}catch(e){i===u.current&&!t.signal.aborted&&a(e instanceof Error?e.message:`Unable to read agent connections.`)}finally{d.current===t&&(d.current=null),i===u.current&&l(!1)}},[e]);return(0,o.useEffect)(()=>{u.current++,a(null),f();let e=window.setInterval(()=>{document.hidden||f()},1e4),t=()=>{f()};return window.addEventListener(`focus`,t),()=>{u.current++,d.current?.abort(),d.current=null,window.clearInterval(e),window.removeEventListener(`focus`,t)}},[f]),{inventory:t?.connection===e?t.value:e?s.get(e)??null:null,loading:c,error:i,refresh:f}}export{i as n,a as r,c as t};
|
package/dist/web/assets/{useLocalAgentSchedules-Cc0M_qax.js → useLocalAgentSchedules-CsKv22Hs.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t}from"./index-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t}from"./index-DYrLeSyY.js";import{wn as n}from"./App-DHJVXTI2.js";var r=e(t(),1),i=5e3;function a(e){let[t,a]=(0,r.useState)([]),[s,c]=(0,r.useState)(!1),[l,u]=(0,r.useState)(null),[d,f]=(0,r.useState)(()=>new Set);(0,r.useEffect)(()=>{if(!e){a([]),u(null),c(!1);return}let t=e,r=!1;async function s(e){if(!r){e&&c(!0);try{let e=await n.localAgentSchedules(t);if(r)return;a(e.schedules),u(null)}catch(e){r||u(o(e))}finally{!r&&e&&c(!1)}}}s(!0);let l=window.setInterval(()=>void s(!1),i);return()=>{r=!0,window.clearInterval(l)}},[e]);async function p(){if(e){c(!0);try{let t=await n.syncLocalAgentSchedules(e);a(t.schedules),u(null)}catch(e){u(o(e))}finally{c(!1)}}}async function m(t){if(e&&!d.has(t.id)){g(t.id,!0);try{await n.runLocalAgentSchedule(e,t.id);let r=await n.localAgentSchedules(e);a(r.schedules),u(null)}catch(e){u(o(e))}finally{g(t.id,!1)}}}async function h(t){if(e&&!d.has(t.id)){g(t.id,!0);try{await n.patchLocalAgentSchedule(e,t.id,{enabled:!t.enabled});let r=await n.localAgentSchedules(e);a(r.schedules),u(null)}catch(e){u(o(e))}finally{g(t.id,!1)}}}function g(e,t){f(n=>{let r=new Set(n);return t?r.add(e):r.delete(e),r})}return{error:l,loading:s,pendingScheduleIds:d,refresh:p,run:m,schedules:t,toggle:h}}function o(e){return e instanceof Error?e.message:String(e)}export{a as t};
|