@axiom-lattice/gateway 10.3.0 → 11.0.0
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/{A2AAuthService-UKN53ZGP.mjs → A2AAuthService-UYWSDE5L.mjs} +2 -2
- package/dist/{a2a-YLKZE5JG.mjs → a2a-OCCSVNWB.mjs} +3 -3
- package/dist/{a2a-standard-ELY7MTJB.mjs → a2a-standard-2IJP4JG5.mjs} +2 -2
- package/dist/{chunk-BIMO2ILH.mjs → chunk-5EXTBV2Z.mjs} +6 -3
- package/dist/chunk-5EXTBV2Z.mjs.map +1 -0
- package/dist/{chunk-JGQURU44.mjs → chunk-6DTR3CPW.mjs} +2 -2
- package/dist/chunk-6DTR3CPW.mjs.map +1 -0
- package/dist/{chunk-BOPNXTMO.mjs → chunk-7XTRBDCF.mjs} +2 -2
- package/dist/{chunk-MFWTGNQR.mjs → chunk-HBDRSIPK.mjs} +1 -1
- package/dist/chunk-HBDRSIPK.mjs.map +1 -0
- package/dist/{chunk-YR32MWEJ.mjs → chunk-JQWIJDZN.mjs} +2 -2
- package/dist/{chunk-LCM4OQTI.mjs → chunk-NQS3U4KP.mjs} +23 -1
- package/dist/chunk-NQS3U4KP.mjs.map +1 -0
- package/dist/{chunk-NYYSBNDG.mjs → chunk-Q5ADRJ3T.mjs} +2 -2
- package/dist/{chunk-7CG57LEF.mjs → chunk-WKHTSTB6.mjs} +2 -2
- package/dist/chunk-WKHTSTB6.mjs.map +1 -0
- package/dist/embed/agent-chat-loader.js +1 -1
- package/dist/embed/embed-page-AgentDetailSideApp-CQEMTLCM.js +1 -0
- package/dist/embed/embed-page-AgentGovernanceWorkbench-MFE7A3HX.js +1 -0
- package/dist/embed/{embed-page-LangfuseDashboard-C5ZHCYOD.js → embed-page-LangfuseDashboard-FXNWREGX.js} +1 -1
- package/dist/embed/embed-page-MessageGraph-2KRSGTMR.js +6 -0
- package/dist/embed/embed-page-ReactChart-BFMFGXXT.js +1 -0
- package/dist/embed/{embed-page-SkillFlow-4WN6SBBR.js → embed-page-SkillFlow-F24RIIPR.js} +1 -1
- package/dist/embed/{embed-page-TasksSideApp-JWXHAGJ3.js → embed-page-TasksSideApp-EKOC6GR5.js} +1 -1
- package/dist/embed/{embed-page-ThreadMaintenancePanel-BIPYRPG7.js → embed-page-ThreadMaintenancePanel-25HFF6LC.js} +1 -1
- package/dist/embed/embed-page-TopologyRuntimeView-AZ56RJ3H.js +6 -0
- package/dist/embed/{embed-page-WorkflowAutomationView-5Z5LIL2H.js → embed-page-WorkflowAutomationView-TZR47MHE.js} +1 -1
- package/dist/embed/{embed-page-abnfDiagram-N423BO3Z-G35TGDL3.js → embed-page-abnfDiagram-N423BO3Z-4HBLZWO7.js} +1 -1
- package/dist/embed/{embed-page-architectureDiagram-T3A2C74G-3BPO7RRI.js → embed-page-architectureDiagram-T3A2C74G-ZMH2RUZR.js} +1 -1
- package/dist/embed/{embed-page-blockDiagram-VBNYF7ZC-4IOAZLE3.js → embed-page-blockDiagram-VBNYF7ZC-DOS6CKB7.js} +1 -1
- package/dist/embed/{embed-page-c4Diagram-5PPSVZJV-7FVWUUL4.js → embed-page-c4Diagram-5PPSVZJV-GCQQWQJ4.js} +1 -1
- package/dist/embed/{embed-page-chunk-OJORJR7X.js → embed-page-chunk-43ZJCYNA.js} +1 -1
- package/dist/embed/{embed-page-chunk-B4EAWKYT.js → embed-page-chunk-5VJZ7DJM.js} +1 -1
- package/dist/embed/{embed-page-chunk-Z4KLLEUH.js → embed-page-chunk-5ZRWN6T7.js} +1 -1
- package/dist/embed/{embed-page-chunk-D4ICPD5X.js → embed-page-chunk-7IPWMDQ3.js} +1 -1
- package/dist/embed/embed-page-chunk-CWVHIM56.js +69 -0
- package/dist/embed/embed-page-chunk-DLSQ2OWQ.js +1 -0
- package/dist/embed/{embed-page-chunk-3MT44IAN.js → embed-page-chunk-FPA5BD6K.js} +1 -1
- package/dist/embed/{embed-page-chunk-EP6TRRST.js → embed-page-chunk-FUNZXEPN.js} +1 -1
- package/dist/embed/{embed-page-chunk-KOCOGP7G.js → embed-page-chunk-GA5A7NLC.js} +1 -1
- package/dist/embed/{embed-page-chunk-EZBBN23V.js → embed-page-chunk-GWB56NNU.js} +1 -1
- package/dist/embed/{embed-page-chunk-DVOV6TZI.js → embed-page-chunk-I7EMCZI6.js} +1 -1
- package/dist/embed/{embed-page-chunk-X2ALKNHQ.js → embed-page-chunk-JAZH5PLN.js} +1 -1
- package/dist/embed/{embed-page-chunk-IK542MPZ.js → embed-page-chunk-ME637LUU.js} +1 -1
- package/dist/embed/{embed-page-chunk-I7ESIG2O.js → embed-page-chunk-MM3IA4HE.js} +1 -1
- package/dist/embed/{embed-page-chunk-YUWPQRVF.js → embed-page-chunk-NY2J2ZAX.js} +1 -1
- package/dist/embed/{embed-page-chunk-PNJ7DZ5V.js → embed-page-chunk-QQZUP2A4.js} +1 -1
- package/dist/embed/{embed-page-chunk-XWR7WUUN.js → embed-page-chunk-RPGUOUD3.js} +1 -1
- package/dist/embed/embed-page-chunk-S2G53SSD.js +217 -0
- package/dist/embed/{embed-page-chunk-NUKT6SH3.js → embed-page-chunk-S2XGVDY7.js} +1 -1
- package/dist/embed/{embed-page-chunk-JRORGMGI.js → embed-page-chunk-TJMEWCV7.js} +147 -147
- package/dist/embed/{embed-page-chunk-7E2Z7TAR.js → embed-page-chunk-U6PURUXV.js} +1 -1
- package/dist/embed/{embed-page-chunk-LKNA7XLR.js → embed-page-chunk-UAXOXJ4N.js} +1 -1
- package/dist/embed/{embed-page-chunk-CV2LFQZA.js → embed-page-chunk-UWC5QL3B.js} +1 -1
- package/dist/embed/{embed-page-chunk-CJYKMTD7.js → embed-page-chunk-V3HPWIF4.js} +1 -1
- package/dist/embed/{embed-page-chunk-JAHIW5IQ.js → embed-page-chunk-W4W6GR5T.js} +1 -1
- package/dist/embed/{embed-page-chunk-JAMKPUN7.js → embed-page-chunk-X2TOGOMH.js} +1 -1
- package/dist/embed/{embed-page-chunk-BL44I3VR.js → embed-page-chunk-XP37R2JT.js} +6 -6
- package/dist/embed/{embed-page-chunk-UVNC53TL.js → embed-page-chunk-YGBGMNRQ.js} +1 -1
- package/dist/embed/{embed-page-chunk-2EHKMAOV.js → embed-page-chunk-YI3NKQSA.js} +1 -1
- package/dist/embed/embed-page-classDiagram-JCYQIIEL-QS7YU54N.js +1 -0
- package/dist/embed/embed-page-classDiagram-v2-OCEON4UE-EMQVQCCM.js +1 -0
- package/dist/embed/{embed-page-cynefinDiagram-MW4NZA55-3QBH5TCJ.js → embed-page-cynefinDiagram-MW4NZA55-PAQOPJV2.js} +1 -1
- package/dist/embed/{embed-page-dagre-VZM6K2ZE-JB3F5OD3.js → embed-page-dagre-VZM6K2ZE-35URH6ZO.js} +1 -1
- package/dist/embed/{embed-page-diagram-7IWD3JNH-33KTKPAG.js → embed-page-diagram-7IWD3JNH-CYEWFX2M.js} +1 -1
- package/dist/embed/{embed-page-diagram-B4RE2ZJO-HURI4UTY.js → embed-page-diagram-B4RE2ZJO-YQLA7HKI.js} +1 -1
- package/dist/embed/{embed-page-diagram-LBJQPF4R-XDFU7A3K.js → embed-page-diagram-LBJQPF4R-R5X23WLT.js} +1 -1
- package/dist/embed/{embed-page-diagram-Q27KOJAE-WCF3Y7MH.js → embed-page-diagram-Q27KOJAE-CSOUXGQI.js} +1 -1
- package/dist/embed/{embed-page-diagram-UB23O5K3-A4XJCZZ2.js → embed-page-diagram-UB23O5K3-ZYKI7DKR.js} +1 -1
- package/dist/embed/{embed-page-ebnfDiagram-BXEA7PRR-XZ65TQZ5.js → embed-page-ebnfDiagram-BXEA7PRR-AXHHSO6J.js} +1 -1
- package/dist/embed/embed-page-echarts-AD736F33.js +1 -0
- package/dist/embed/{embed-page-en-PPUKY32O.js → embed-page-en-BRZZWMIP.js} +1 -1
- package/dist/embed/{embed-page-en-3DNM36A2.js → embed-page-en-RKPA6NPQ.js} +3 -1
- package/dist/embed/{embed-page-erDiagram-JOGREHBK-HAMRJORU.js → embed-page-erDiagram-JOGREHBK-TIWNY54V.js} +1 -1
- package/dist/embed/embed-page-flowDiagram-UKHOOZJN-YZBV5FD5.js +1 -0
- package/dist/embed/{embed-page-ganttDiagram-PKOTCBZU-K5INERM6.js → embed-page-ganttDiagram-PKOTCBZU-LQ65QV2D.js} +1 -1
- package/dist/embed/{embed-page-gitGraphDiagram-DS77QQ5N-GZ5MSQH3.js → embed-page-gitGraphDiagram-DS77QQ5N-JXOCEBS4.js} +1 -1
- package/dist/embed/{embed-page-infoDiagram-6WML65LV-U6G3NNSP.js → embed-page-infoDiagram-6WML65LV-JXXYLFOE.js} +1 -1
- package/dist/embed/{embed-page-ishikawaDiagram-WSZJBQD7-EYGGRQN3.js → embed-page-ishikawaDiagram-WSZJBQD7-AXPRA54P.js} +1 -1
- package/dist/embed/{embed-page-journeyDiagram-NVQOT4AX-XS4LDJC3.js → embed-page-journeyDiagram-NVQOT4AX-FLTEDSGP.js} +1 -1
- package/dist/embed/{embed-page-jspdf.es.min-XOYWIBVE.js → embed-page-jspdf.es.min-Y4RIBUHC.js} +17 -17
- package/dist/embed/{embed-page-kanban-definition-27J2QSJJ-FW7UGXYI.js → embed-page-kanban-definition-27J2QSJJ-GLES277J.js} +1 -1
- package/dist/embed/embed-page-katex-JBKN2BFH.js +257 -0
- package/dist/embed/{embed-page-mermaid-AQNL2ZVI.js → embed-page-mermaid-TRGRXQWI.js} +2 -2
- package/dist/embed/embed-page-mindmap-definition-FAOFIHXS-IK7SJKOY.js +96 -0
- package/dist/embed/{embed-page-pegDiagram-VL7TDLO6-KNUT3CIR.js → embed-page-pegDiagram-VL7TDLO6-WTW3QO5Z.js} +1 -1
- package/dist/embed/{embed-page-pieDiagram-7S7Q4E2Y-NA5D6ASE.js → embed-page-pieDiagram-7S7Q4E2Y-IO7RF3AF.js} +1 -1
- package/dist/embed/{embed-page-quadrantDiagram-CIZ2JOQS-ZP6CLE62.js → embed-page-quadrantDiagram-CIZ2JOQS-77SBD3YG.js} +1 -1
- package/dist/embed/{embed-page-railroadDiagram-AXF67PYL-2IW2UZXA.js → embed-page-railroadDiagram-AXF67PYL-OW3L5JI4.js} +1 -1
- package/dist/embed/{embed-page-requirementDiagram-LRYGKXZP-CXPDAY5Y.js → embed-page-requirementDiagram-LRYGKXZP-APMTCGOA.js} +1 -1
- package/dist/embed/{embed-page-sankeyDiagram-W5VNT64P-F2LGR2H3.js → embed-page-sankeyDiagram-W5VNT64P-FZX3QVUX.js} +1 -1
- package/dist/embed/{embed-page-sequenceDiagram-SI44F4Z6-GJMWRLXS.js → embed-page-sequenceDiagram-SI44F4Z6-HGLMDT4H.js} +1 -1
- package/dist/embed/{embed-page-stateDiagram-OKZ733FA-2C3LJEVN.js → embed-page-stateDiagram-OKZ733FA-DYGG6K57.js} +1 -1
- package/dist/embed/embed-page-stateDiagram-v2-UEYNNEHI-BZIFN7WW.js +1 -0
- package/dist/embed/{embed-page-swimlanes-SLNWSIFB-FVZEOHUB.js → embed-page-swimlanes-SLNWSIFB-OKHSRANK.js} +1 -1
- package/dist/embed/embed-page-swimlanesDiagram-ULZ7WXOC-CTOAIWO4.js +8 -0
- package/dist/embed/{embed-page-timeline-definition-Z64GVDOM-G7N7WGUT.js → embed-page-timeline-definition-Z64GVDOM-F6LUVHOK.js} +1 -1
- package/dist/embed/{embed-page-vennDiagram-T6HMQDX7-F7T3NLBE.js → embed-page-vennDiagram-T6HMQDX7-QA2TWRL4.js} +1 -1
- package/dist/embed/{embed-page-wardleyDiagram-T6FBY63Y-KQ66EZSM.js → embed-page-wardleyDiagram-T6FBY63Y-DL57P2VA.js} +1 -1
- package/dist/embed/{embed-page-xychartDiagram-ELKLHX3M-22WT4PGT.js → embed-page-xychartDiagram-ELKLHX3M-V2Q7NF4U.js} +1 -1
- package/dist/embed/{embed-page-zh-4SFTLL5M.js → embed-page-zh-D4S5EDEI.js} +1 -1
- package/dist/embed/{embed-page-zh-OA54TF5G.js → embed-page-zh-LQCDXDUF.js} +3 -1
- package/dist/embed/embed-page.js +3 -3
- package/dist/embed/mcp-app-page.js +19 -19
- package/dist/index.js +2130 -1445
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1195 -318
- package/dist/index.mjs.map +1 -1
- package/dist/{mcp-apps-MZECSNN2.mjs → mcp-apps-MKHHUJE4.mjs} +2 -2
- package/dist/{open-Y7PAA2VJ.mjs → open-TJLQARLV.mjs} +8 -8
- package/dist/open-TJLQARLV.mjs.map +1 -0
- package/dist/{open-catalog-NVGP6SQP.mjs → open-catalog-LLTMSZGH.mjs} +2 -2
- package/dist/{open-exposure-HGYT5VFC.mjs → open-exposure-2CSXJTM3.mjs} +3 -3
- package/dist/{open-files-WK4SQHE3.mjs → open-files-QIMOTHSN.mjs} +2 -2
- package/dist/{open-session-CLZT3HVG.mjs → open-session-F5H6PFSN.mjs} +3 -3
- package/dist/open-session-F5H6PFSN.mjs.map +1 -0
- package/dist/{openLattice-D5YTSZBY.mjs → openLattice-KFUREFWM.mjs} +2 -2
- package/dist/{registerExposedPlugins-2JGXSMAL.mjs → registerExposedPlugins-N6ENBBKN.mjs} +3 -3
- package/dist/{resources-YD5DOPGD.mjs → resources-53PXMFQI.mjs} +37 -12
- package/dist/resources-53PXMFQI.mjs.map +1 -0
- package/dist/{sandboxOpenCredentialProvider-RTYOYRCT.mjs → sandboxOpenCredentialProvider-3CUISBEL.mjs} +4 -4
- package/dist/sandboxOpenCredentialProvider-3CUISBEL.mjs.map +1 -0
- package/package.json +10 -11
- package/dist/chunk-7CG57LEF.mjs.map +0 -1
- package/dist/chunk-BIMO2ILH.mjs.map +0 -1
- package/dist/chunk-JGQURU44.mjs.map +0 -1
- package/dist/chunk-LCM4OQTI.mjs.map +0 -1
- package/dist/chunk-MFWTGNQR.mjs.map +0 -1
- package/dist/chunk-PWHUWFXL.mjs +0 -173
- package/dist/chunk-PWHUWFXL.mjs.map +0 -1
- package/dist/collection_service-RTRJEQFL.mjs +0 -8
- package/dist/embed/embed-page-AgentDetailSideApp-7KV3SLDR.js +0 -1
- package/dist/embed/embed-page-AgentGovernanceWorkbench-SVXBIDD2.js +0 -1
- package/dist/embed/embed-page-MessageGraph-YU76I7TO.js +0 -6
- package/dist/embed/embed-page-ReactChart-KN2C7M65.js +0 -1
- package/dist/embed/embed-page-TopologyRuntimeView-FPLRJ3NO.js +0 -6
- package/dist/embed/embed-page-chunk-NXYALHX3.js +0 -69
- package/dist/embed/embed-page-chunk-YJQVMCUN.js +0 -217
- package/dist/embed/embed-page-classDiagram-JCYQIIEL-F3ZGV5RH.js +0 -1
- package/dist/embed/embed-page-classDiagram-v2-OCEON4UE-WK33F7MR.js +0 -1
- package/dist/embed/embed-page-echarts-EYVCOS2L.js +0 -1
- package/dist/embed/embed-page-flowDiagram-UKHOOZJN-FCTARXK6.js +0 -1
- package/dist/embed/embed-page-katex-W5DMKJAE.js +0 -257
- package/dist/embed/embed-page-mindmap-definition-FAOFIHXS-LS6BVRC5.js +0 -96
- package/dist/embed/embed-page-stateDiagram-v2-UEYNNEHI-QI633DEL.js +0 -1
- package/dist/embed/embed-page-swimlanesDiagram-ULZ7WXOC-7W6HH2PU.js +0 -8
- package/dist/kbProvider-2D6DZ34N.mjs +0 -50
- package/dist/kbProvider-2D6DZ34N.mjs.map +0 -1
- package/dist/open-Y7PAA2VJ.mjs.map +0 -1
- package/dist/open-session-CLZT3HVG.mjs.map +0 -1
- package/dist/registerExposedPlugins-2JGXSMAL.mjs.map +0 -1
- package/dist/resources-YD5DOPGD.mjs.map +0 -1
- package/dist/sandboxOpenCredentialProvider-RTYOYRCT.mjs.map +0 -1
- /package/dist/{A2AAuthService-UKN53ZGP.mjs.map → A2AAuthService-UYWSDE5L.mjs.map} +0 -0
- /package/dist/{a2a-YLKZE5JG.mjs.map → a2a-OCCSVNWB.mjs.map} +0 -0
- /package/dist/{a2a-standard-ELY7MTJB.mjs.map → a2a-standard-2IJP4JG5.mjs.map} +0 -0
- /package/dist/{chunk-BOPNXTMO.mjs.map → chunk-7XTRBDCF.mjs.map} +0 -0
- /package/dist/{chunk-YR32MWEJ.mjs.map → chunk-JQWIJDZN.mjs.map} +0 -0
- /package/dist/{chunk-NYYSBNDG.mjs.map → chunk-Q5ADRJ3T.mjs.map} +0 -0
- /package/dist/{collection_service-RTRJEQFL.mjs.map → mcp-apps-MKHHUJE4.mjs.map} +0 -0
- /package/dist/{open-catalog-NVGP6SQP.mjs.map → open-catalog-LLTMSZGH.mjs.map} +0 -0
- /package/dist/{open-exposure-HGYT5VFC.mjs.map → open-exposure-2CSXJTM3.mjs.map} +0 -0
- /package/dist/{open-files-WK4SQHE3.mjs.map → open-files-QIMOTHSN.mjs.map} +0 -0
- /package/dist/{mcp-apps-MZECSNN2.mjs.map → openLattice-KFUREFWM.mjs.map} +0 -0
- /package/dist/{openLattice-D5YTSZBY.mjs.map → registerExposedPlugins-N6ENBBKN.mjs.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as R,b as Q,c as at,d as wt}from"./embed-page-chunk-7AXKFOLH.js";import{c as q}from"./embed-page-chunk-
|
|
1
|
+
import{a as R,b as Q,c as at,d as wt}from"./embed-page-chunk-7AXKFOLH.js";import{c as q}from"./embed-page-chunk-7IPWMDQ3.js";import{c as mt,d as ut}from"./embed-page-chunk-ME637LUU.js";import{a as gt}from"./embed-page-chunk-X2TOGOMH.js";import{a as bt}from"./embed-page-chunk-7TH7FFVA.js";import{c as xt}from"./embed-page-chunk-I7EMCZI6.js";import{p as H,t as yt}from"./embed-page-chunk-UAXOXJ4N.js";import{Z as U,t as E,x as tt}from"./embed-page-chunk-FPA5BD6K.js";import{b as x}from"./embed-page-chunk-2BOYLGSX.js";import{C as j,D as nt,F as st,G as ot,H as rt,L as it,O as ct,S as lt,T as dt,U as pt,V as ht,W as ft,X as kt}from"./embed-page-chunk-DM5ESF6C.js";import{b as W}from"./embed-page-chunk-S4XZPBRM.js";import{a as p}from"./embed-page-chunk-444E5YR2.js";var Yt=p((r,t,a,e,o,n=!1,s)=>{t.arrowTypeStart&&Mt(r,"start",t.arrowTypeStart,a,e,o,n,s),t.arrowTypeEnd&&Mt(r,"end",t.arrowTypeEnd,a,e,o,n,s)},"addEdgeMarkers"),Ht={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Bt=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Mt=p((r,t,a,e,o,n,s=!1,i)=>{let l=Ht[a],m=l&&Bt.includes(l.type);if(!l){x.warn(`Unknown arrow type: ${a}`);return}let c=l.type,d=`${o}_${n}-${c}${t==="start"?"Start":"End"}${s&&m?"-margin":""}`;if(i&&i.trim()!==""){let g=i.replace(/[^\dA-Za-z]/g,"_"),y=`${d}_${g}`;if(!document.getElementById(y)){let f=document.getElementById(d);if(f){let w=f.cloneNode(!0);w.id=y,w.querySelectorAll("path, circle, line").forEach(B=>{B.setAttribute("stroke",i),l.fill&&B.setAttribute("fill",i)}),f.parentNode?.appendChild(w)}}r.attr(`marker-${t}`,`url(${e}#${y})`)}else r.attr(`marker-${t}`,`url(${e}#${d})`)},"addEdgeMarker"),Tt=p(r=>typeof r=="string"?r:U()?.flowchart?.curve,"resolveEdgeCurveType"),F=new Map,L=new Map,Lr=p(()=>{F.clear(),L.clear()},"clear"),I=p(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),_r=p(async(r,t)=>{let a=U(),e=tt(a),{labelStyles:o}=ut(t);t.labelStyle=o;let n=r.insert("g").attr("class","edgeLabel"),s=n.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",m=await xt(r,t.label,{style:I(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:i?void 0:void 0},a);s.node().appendChild(m),x.info("abc82",t,t.labelType);let c=m.getBBox(),u=c;if(e){let d=m.children[0],g=W(m);c=d.getBoundingClientRect(),u=c,g.attr("width",c.width),g.attr("height",c.height)}else{let d=W(m).select("text").node();d&&typeof d.getBBox=="function"&&(u=d.getBBox())}s.attr("transform",R(u,e)),F.set(t.id,n),t.width=c.width,t.height=c.height;let h;if(t.startLabelLeft){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(g,t.startLabelLeft,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).startLeft=d,Z(h,t.startLabelLeft)}if(t.startLabelRight){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(g,t.startLabelRight,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).startRight=d,Z(h,t.startLabelRight)}if(t.endLabelLeft){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(d,t.endLabelLeft,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).endLeft=d,Z(h,t.endLabelLeft)}if(t.endLabelRight){let d=r.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),y=await q(d,t.endLabelRight,I(t.labelStyle)||"",!1,!1);h=y;let f=y.getBBox();if(e){let w=y.children[0],k=W(y);f=w.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}g.attr("transform",R(f,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).endRight=d,Z(h,t.endLabelRight)}return m},"insertEdgeLabel");function Z(r,t){tt(U())&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}p(Z,"setTerminalWidth");var vr=p((r,t)=>{x.debug("Moving label abc88 ",r.id,r.label,F.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,e=U(),{subGraphTitleTotalMargin:o}=gt(e);if(r.label){let n=F.get(r.id),s=r.x,i=r.y;if(a){let l=H.calcLabelPosition(a);x.debug("Moving label "+r.label+" from (",s,",",i,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(s=l.x,i=l.y)}n.attr("transform",`translate(${s}, ${i+o/2})`)}if(r.startLabelLeft){let n=L.get(r.id).startLeft,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}if(r.startLabelRight){let n=L.get(r.id).startRight,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}if(r.endLabelLeft){let n=L.get(r.id).endLeft,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}if(r.endLabelRight){let n=L.get(r.id).endRight,s=r.x,i=r.y;if(a){let l=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);s=l.x,i=l.y}n.attr("transform",`translate(${s}, ${i})`)}},"positionEdgeLabel"),Ct=p((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[a,e]=t,o=Math.abs(e.x-a.x),n=Math.abs(e.y-a.y);return o<.001||n<.001?t:n>=o?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),zt=p((r,t)=>{let a=r.x,e=r.y,o=Math.abs(t.x-a),n=Math.abs(t.y-e),s=r.width/2,i=r.height/2;return o>=s||n>=i},"outsideNode"),At=p((r,t,a)=>{x.debug(`intersection calc abc89:
|
|
2
2
|
outsidePoint: ${JSON.stringify(t)}
|
|
3
3
|
insidePoint : ${JSON.stringify(a)}
|
|
4
4
|
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let e=r.x,o=r.y,n=Math.abs(e-a.x),s=r.width/2,i=a.x<t.x?s-n:s+n,l=r.height/2,m=Math.abs(t.y-a.y),c=Math.abs(t.x-a.x);if(Math.abs(o-t.y)*s>Math.abs(e-t.x)*l){let u=a.y<t.y?t.y-l-o:o-l-t.y;i=c*u/m;let h={x:a.x<t.x?a.x+i:a.x-c+i,y:a.y<t.y?a.y+m-u:a.y-m+u};return i===0&&(h.x=t.x,h.y=t.y),c===0&&(h.x=t.x),m===0&&(h.y=t.y),x.debug(`abc89 top/bottom calc, Q ${m}, q ${u}, R ${c}, r ${i}`,h),h}else{a.x<t.x?i=t.x-s-e:i=e-s-t.x;let u=m*i/c,h=a.x<t.x?a.x+c-i:a.x-c+i,d=a.y<t.y?a.y+u:a.y-u;return x.debug(`sides calc abc89, Q ${m}, q ${u}, R ${c}, r ${i}`,{_x:h,_y:d}),i===0&&(h=t.x,d=t.y),c===0&&(h=t.x),m===0&&(d=t.y),{x:h,y:d}}},"intersection"),Lt=p((r,t)=>{x.warn("abc88 cutPathAtIntersect",r,t);let a=[],e=r[0],o=!1;return r.forEach(n=>{if(x.info("abc88 checking point",n,t),!zt(t,n)&&!o){let s=At(t,e,n);x.debug("abc88 inside",n,e,s),x.debug("abc88 intersection",s,t);let i=!1;a.forEach(l=>{i=i||l.x===s.x&&l.y===s.y}),a.some(l=>l.x===s.x&&l.y===s.y)?x.warn("abc88 no intersect",s,a):a.push(s),o=!0}else x.warn("abc88 outside",n,e),e=n,o||a.push(n)}),x.debug("returning points",a),a},"cutPathAtIntersect");function vt(r){let t=[],a=[];for(let e=1;e<r.length-1;e++){let o=r[e-1],n=r[e],s=r[e+1];(o.x===n.x&&n.y===s.y&&Math.abs(n.x-s.x)>5&&Math.abs(n.y-o.y)>5||o.y===n.y&&n.x===s.x&&Math.abs(n.x-o.x)>5&&Math.abs(n.y-s.y)>5)&&(t.push(n),a.push(e))}return{cornerPoints:t,cornerPointPositions:a}}p(vt,"extractCornerPoints");var _t=p(function(r,t,a){let e=t.x-r.x,o=t.y-r.y,n=Math.sqrt(e*e+o*o),s=a/n;return{x:t.x-s*e,y:t.y-s*o}},"findAdjacentPoint"),Rt=p(function(r){let{cornerPointPositions:t}=vt(r),a=[];for(let e=0;e<r.length;e++)if(t.includes(e)){let o=r[e-1],n=r[e+1],s=r[e],i=_t(o,s,5),l=_t(n,s,5),m=l.x-i.x,c=l.y-i.y;a.push(i);let u=Math.sqrt(2)*2,h={x:s.x,y:s.y};if(Math.abs(n.x-o.x)>10&&Math.abs(n.y-o.y)>=10){x.debug("Corner point fixing",Math.abs(n.x-o.x),Math.abs(n.y-o.y));let d=5;s.x===i.x?h={x:m<0?i.x-d+u:i.x+d-u,y:c<0?i.y-u:i.y+u}:h={x:m<0?i.x-u:i.x+u,y:c<0?i.y-d+u:i.y+d-u}}else x.debug("Corner point skipping fixing",Math.abs(n.x-o.x),Math.abs(n.y-o.y));a.push(h,l)}else a.push(r[e]);return a},"fixCorners"),Pt=p((r,t,a)=>{let e=r-t-a,o=2,n=2,s=o+n,i=Math.floor(e/s),l=Array(i).fill(`${o} ${n}`).join(" ");return`0 ${t} ${l} ${a}`},"generateDashArray"),Sr=p(function(r,t,a,e,o,n,s,i=!1){if(!s)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:l,layout:m}=U(),c=t.points,u=!1,h=o;var d=n;let g=[];for(let b in t.cssCompiledStyles)mt(b)||g.push(t.cssCompiledStyles[b]);if(m==="swimlane"){if(d.intersect&&h.intersect&&Array.isArray(c)&&c.length>=2)if(c.length===2)c=[h.intersect(c[0]),d.intersect(c[1])];else{let b=c.slice(1,-1),$=b[0],v=b[b.length-1],S=.5,C=Math.abs(c[c.length-1].x-v.x)<S&&Math.abs(c[c.length-1].y-v.y)<S,X=h.intersect($),Y=C?v:d.intersect(v),z=Math.abs(Y.x-v.x)<S&&Math.abs(Y.y-v.y)<S,Wt=Math.abs(X.x-$.x)<S&&Math.abs(X.y-$.y)<S?[]:[X],Xt=z?[]:[Y];c=[...Wt,...b,...Xt]}c=Ct(t,c)}else d.intersect&&h.intersect&&!i&&(c=c.slice(1,t.points.length-1),c.unshift(h.intersect(c[0])),c.push(d.intersect(c[c.length-1])));let y=btoa(JSON.stringify(c));t.toCluster&&(x.info("to cluster abc88",a.get(t.toCluster)),c=Lt(t.points,a.get(t.toCluster).node),u=!0),t.fromCluster&&(x.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(c,null,2)),c=Lt(c.reverse(),a.get(t.fromCluster).node).reverse(),u=!0);let f=c.filter(b=>!Number.isNaN(b.y)),w=Tt(t.curve);w!=="rounded"&&(f=Rt(f));let k=j;switch(w){case"linear":k=j;break;case"basis":k=rt;break;case"cardinal":k=it;break;case"bumpX":k=st;break;case"bumpY":k=ot;break;case"catmullRom":k=ct;break;case"monotoneX":k=lt;break;case"monotoneY":k=dt;break;case"natural":k=pt;break;case"step":k=ht;break;case"stepAfter":k=kt;break;case"stepBefore":k=ft;break;case"rounded":k=j;break;default:k=rt}let{x:B,y:J}=wt(t),P=nt().x(B).y(J).curve(k),_;switch(t.thickness){case"normal":_="edge-thickness-normal";break;case"thick":_="edge-thickness-thick";break;case"invisible":_="edge-thickness-invisible";break;default:_="edge-thickness-normal"}switch(t.pattern){case"solid":_+=" edge-pattern-solid";break;case"dotted":_+=" edge-pattern-dotted";break;case"dashed":_+=" edge-pattern-dashed";break;default:_+=" edge-pattern-solid"}let M,N=w==="rounded"?St(Ot(f,t),5):P(f),O=Array.isArray(t.style)?t.style:[t.style],V=O.find(b=>b?.startsWith("stroke:")),T="";t.animate&&(T="edge-animation-fast"),t.animation&&(T="edge-animation-"+t.animation);let G=!1;if(t.look==="handDrawn"){let b=bt.svg(r);Object.assign([],f);let $=b.path(N,{roughness:.3,seed:l});_+=" transition",M=W($).select("path").attr("id",`${s}-${t.id}`).attr("class"," "+_+(t.classes?" "+t.classes:"")+(T?" "+T:"")).attr("style",O?O.reduce((S,C)=>S+";"+C,""):"");let v=M.attr("d");M.attr("d",v),r.node().appendChild(M.node())}else{let b=g.join(";"),$=O?O.reduce((z,A)=>z+A+";",""):"",v=(b?b+";"+$+";":$)+";"+(O?O.reduce((z,A)=>z+";"+A,""):"");M=r.append("path").attr("d",N).attr("id",`${s}-${t.id}`).attr("class"," "+_+(t.classes?" "+t.classes:"")+(T?" "+T:"")).attr("style",v),V=v.match(/stroke:([^;]+)/)?.[1],G=t.animate===!0||!!t.animation||b.includes("animation");let S=M.node(),C=typeof S.getTotalLength=="function"?S.getTotalLength():0,X=at[t.arrowTypeStart]||0,Y=at[t.arrowTypeEnd]||0;if(t.look==="neo"&&!G){let A=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Pt(C,X,Y):`0 ${X} ${C-X-Y} ${Y}`}; stroke-dashoffset: 0;`;M.attr("style",A+M.attr("style"))}}M.attr("data-edge",!0),M.attr("data-et","edge"),M.attr("data-id",t.id),M.attr("data-points",y),M.attr("data-look",yt(t.look)),t.showPoints&&f.forEach(b=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",b.x).attr("cy",b.y)});let D="";(U().flowchart.arrowMarkerAbsolute||U().state.arrowMarkerAbsolute)&&(D=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,D=D.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),x.info("arrowTypeStart",t.arrowTypeStart),x.info("arrowTypeEnd",t.arrowTypeEnd);let $t=!G&&t?.look==="neo";Yt(M,t,D,s,e,$t,V);let Et=Math.floor(c.length/2),Ut=c[Et];H.isLabelCoordinateInPath(Ut,M.attr("d"))||(u=!0);let K={};return u&&(K.updatedPath=c),K.originalPath=t.points,K},"insertEdge");function St(r,t){if(r.length<2)return"";let a="",e=r.length,o=1e-5;for(let n=0;n<e;n++){let s=r[n],i=r[n-1],l=r[n+1];if(n===0)a+=`M${s.x},${s.y}`;else if(n===e-1)a+=`L${s.x},${s.y}`;else{let m=s.x-i.x,c=s.y-i.y,u=l.x-s.x,h=l.y-s.y,d=Math.hypot(m,c),g=Math.hypot(u,h);if(d<o||g<o){a+=`L${s.x},${s.y}`;continue}let y=m/d,f=c/d,w=u/g,k=h/g,B=y*w+f*k,J=Math.max(-1,Math.min(1,B)),P=Math.acos(J);if(P<o||Math.abs(Math.PI-P)<o){a+=`L${s.x},${s.y}`;continue}let _=Math.min(t/Math.sin(P/2),d/2,g/2),M=s.x-y*_,N=s.y-f*_,O=s.x+w*_,V=s.y+k*_;a+=`L${M},${N}`,a+=`Q${s.x},${s.y} ${O},${V}`}}return a}p(St,"generateRoundedPath");function et(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-r.x,e=t.y-r.y;return{angle:Math.atan2(e,a),deltaX:a,deltaY:e}}p(et,"calculateDeltaAndAngle");function Ot(r,t){let a=r.map(o=>({...o}));if(r.length>=2&&Q[t.arrowTypeStart]){let o=Q[t.arrowTypeStart],n=r[0],s=r[1],{angle:i}=et(n,s),l=o*Math.cos(i),m=o*Math.sin(i);a[0].x=n.x+l,a[0].y=n.y+m}let e=r.length;if(e>=2&&Q[t.arrowTypeEnd]){let o=Q[t.arrowTypeEnd],n=r[e-1],s=r[e-2],{angle:i}=et(s,n),l=o*Math.cos(i),m=o*Math.sin(i);a[e-1].x=n.x-l,a[e-1].y=n.y-m}return a}p(Ot,"applyMarkerOffsetsToPoints");var qt=p((r,t,a,e)=>{t.forEach(o=>{pr[o](r,a,e)})},"insertMarkers"),Qt=p((r,t,a)=>{x.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),It=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Zt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Nt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Vt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),Dt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),jt=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),Ft=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),Jt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),Gt=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{transitionColor:n}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),Kt=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),tr=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("d","M9,0 L9,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),rr=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),ar=p((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),er=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),nr=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n,mainBkg:s}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),i.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);let l=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),sr=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),or=p((r,t,a)=>{let e=E(),{themeVariables:o}=e,{strokeWidth:n,mainBkg:s}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);let l=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),ir=p((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import{f as Ur,h as Dr,j as er,l as Ce,o as yt,t as vt}from"./embed-page-chunk-XP37R2JT.js";import{b as _r,l as xe}from"./embed-page-chunk-QQZUP2A4.js";import{a as F}from"./embed-page-chunk-L2PNY33P.js";import{$ as Nr,Sa as Or,T as xt,Ta as Br,U as ie,Ua as zr,V as ze,W as Lr,X as Fe,Y as A,aa as jr,b as $r,fb as Se,ib as _e,l as Mr,q as Fr}from"./embed-page-chunk-TWJOR2LG.js";import{a as M}from"./embed-page-chunk-MPQBYKDM.js";import{c as Zt,e as g}from"./embed-page-chunk-45A47GH2.js";var Io=Zt(_=>{"use strict";var Z=typeof Symbol=="function"&&Symbol.for,sr=Z?Symbol.for("react.element"):60103,cr=Z?Symbol.for("react.portal"):60106,Rt=Z?Symbol.for("react.fragment"):60107,It=Z?Symbol.for("react.strict_mode"):60108,$t=Z?Symbol.for("react.profiler"):60114,Mt=Z?Symbol.for("react.provider"):60109,Ft=Z?Symbol.for("react.context"):60110,lr=Z?Symbol.for("react.async_mode"):60111,Lt=Z?Symbol.for("react.concurrent_mode"):60111,Nt=Z?Symbol.for("react.forward_ref"):60112,jt=Z?Symbol.for("react.suspense"):60113,La=Z?Symbol.for("react.suspense_list"):60120,Ot=Z?Symbol.for("react.memo"):60115,Bt=Z?Symbol.for("react.lazy"):60116,Na=Z?Symbol.for("react.block"):60121,ja=Z?Symbol.for("react.fundamental"):60117,Oa=Z?Symbol.for("react.responder"):60118,Ba=Z?Symbol.for("react.scope"):60119;function de(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case sr:switch(e=e.type,e){case lr:case Lt:case Rt:case $t:case It:case jt:return e;default:switch(e=e&&e.$$typeof,e){case Ft:case Nt:case Bt:case Ot:case Mt:return e;default:return t}}case cr:return t}}}function Ro(e){return de(e)===Lt}_.AsyncMode=lr;_.ConcurrentMode=Lt;_.ContextConsumer=Ft;_.ContextProvider=Mt;_.Element=sr;_.ForwardRef=Nt;_.Fragment=Rt;_.Lazy=Bt;_.Memo=Ot;_.Portal=cr;_.Profiler=$t;_.StrictMode=It;_.Suspense=jt;_.isAsyncMode=function(e){return Ro(e)||de(e)===lr};_.isConcurrentMode=Ro;_.isContextConsumer=function(e){return de(e)===Ft};_.isContextProvider=function(e){return de(e)===Mt};_.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===sr};_.isForwardRef=function(e){return de(e)===Nt};_.isFragment=function(e){return de(e)===Rt};_.isLazy=function(e){return de(e)===Bt};_.isMemo=function(e){return de(e)===Ot};_.isPortal=function(e){return de(e)===cr};_.isProfiler=function(e){return de(e)===$t};_.isStrictMode=function(e){return de(e)===It};_.isSuspense=function(e){return de(e)===jt};_.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Rt||e===Lt||e===$t||e===It||e===jt||e===La||typeof e=="object"&&e!==null&&(e.$$typeof===Bt||e.$$typeof===Ot||e.$$typeof===Mt||e.$$typeof===Ft||e.$$typeof===Nt||e.$$typeof===ja||e.$$typeof===Oa||e.$$typeof===Ba||e.$$typeof===Na)};_.typeOf=de});var Mo=Zt((Hs,$o)=>{"use strict";$o.exports=Io()});var zo=Zt((Gs,Bo)=>{"use strict";var dr=Mo(),za={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ua={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},jo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ur={};ur[dr.ForwardRef]=Ua;ur[dr.Memo]=jo;function Fo(e){return dr.isMemo(e)?jo:ur[e.$$typeof]||za}var Da=Object.defineProperty,Wa=Object.getOwnPropertyNames,Lo=Object.getOwnPropertySymbols,Va=Object.getOwnPropertyDescriptor,Ha=Object.getPrototypeOf,No=Object.prototype;function Oo(e,t,r){if(typeof t!="string"){if(No){var o=Ha(t);o&&o!==No&&Oo(e,o,r)}var n=Wa(t);Lo&&(n=n.concat(Lo(t)));for(var a=Fo(e),i=Fo(t),s=0;s<n.length;++s){var c=n[s];if(!_a[c]&&!(r&&r[c])&&!(i&&i[c])&&!(a&&a[c])){var l=Va(t,c);try{Da(e,c,l)}catch{}}}}return e}Bo.exports=Oo});var fa=!1;function ha(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ga(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Wr=(function(){function e(r){var o=this;this._insertTag=function(n){var a;o.tags.length===0?o.insertionPoint?a=o.insertionPoint.nextSibling:o.prepend?a=o.container.firstChild:a=o.before:a=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(n,a),o.tags.push(n)},this.isSpeedy=r.speedy===void 0?!fa:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ga(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var a=ha(n);try{a.insertRule(o,a.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var n;return(n=o.parentNode)==null?void 0:n.removeChild(o)}),this.tags=[],this.ctr=0},e})();var ee="-ms-",it="-moz-",O="-webkit-",bt="comm",Ue="rule",De="decl";var Vr="@import";var Ct="@keyframes";var Hr="@layer";var Gr=Math.abs,Le=String.fromCharCode,qr=Object.assign;function Kr(e,t){return K(e,0)^45?(((t<<2^K(e,0))<<2^K(e,1))<<2^K(e,2))<<2^K(e,3):0}function wt(e){return e.trim()}function tr(e,t){return(e=t.exec(e))?e[0]:e}function N(e,t,r){return e.replace(t,r)}function st(e,t){return e.indexOf(t)}function K(e,t){return e.charCodeAt(t)|0}function Te(e,t,r){return e.slice(t,r)}function oe(e){return e.length}function We(e){return e.length}function Ve(e,t){return t.push(e),e}function rr(e,t){return e.map(t).join("")}var St=1,He=1,Xr=0,ne=0,Y=0,qe="";function ct(e,t,r,o,n,a,i){return{value:e,root:t,parent:r,type:o,props:n,children:a,line:St,column:He,length:i,return:""}}function Ke(e,t){return qr(ct("",null,null,"",null,null,0),e,{length:-e.length},t)}function Yr(){return Y}function Jr(){return Y=ne>0?K(qe,--ne):0,He--,Y===10&&(He=1,St--),Y}function ae(){return Y=ne<Xr?K(qe,ne++):0,He++,Y===10&&(He=1,St++),Y}function pe(){return K(qe,ne)}function lt(){return ne}function Xe(e,t){return Te(qe,e,t)}function Ge(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Tt(e){return St=He=1,Xr=oe(qe=e),ne=0,[]}function Pt(e){return qe="",e}function Ye(e){return wt(Xe(ne-1,or(e===91?e+2:e===40?e+1:e)))}function Qr(e){for(;(Y=pe())&&Y<33;)ae();return Ge(e)>2||Ge(Y)>3?"":" "}function Zr(e,t){for(;--t&&ae()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return Xe(e,lt()+(t<6&&pe()==32&&ae()==32))}function or(e){for(;ae();)switch(Y){case e:return ne;case 34:case 39:e!==34&&e!==39&&or(Y);break;case 40:e===41&&or(e);break;case 92:ae();break}return ne}function eo(e,t){for(;ae()&&e+Y!==57;)if(e+Y===84&&pe()===47)break;return"/*"+Xe(t,ne-1)+"*"+Le(e===47?e:ae())}function to(e){for(;!Ge(pe());)ae();return Xe(e,ne)}function no(e){return Pt(At("",null,null,null,[""],e=Tt(e),0,[0],e))}function At(e,t,r,o,n,a,i,s,c){for(var l=0,p=0,y=i,u=0,w=0,h=0,f=1,d=1,m=1,x=0,T="",j=n,B=a,z=o,v=T;d;)switch(h=x,x=ae()){case 40:if(h!=108&&K(v,y-1)==58){st(v+=N(Ye(x),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:v+=Ye(x);break;case 9:case 10:case 13:case 32:v+=Qr(h);break;case 92:v+=Zr(lt()-1,7);continue;case 47:switch(pe()){case 42:case 47:Ve(xa(eo(ae(),lt()),t,r),c);break;default:v+="/"}break;case 123*f:s[l++]=oe(v)*m;case 125*f:case 59:case 0:switch(x){case 0:case 125:d=0;case 59+p:m==-1&&(v=N(v,/\f/g,"")),w>0&&oe(v)-y&&Ve(w>32?oo(v+";",o,r,y-1):oo(N(v," ","")+";",o,r,y-2),c);break;case 59:v+=";";default:if(Ve(z=ro(v,t,r,l,p,n,s,T,j=[],B=[],y),a),x===123)if(p===0)At(v,t,z,z,j,a,y,s,B);else switch(u===99&&K(v,3)===110?100:u){case 100:case 108:case 109:case 115:At(e,z,z,o&&Ve(ro(e,z,z,0,0,n,s,T,n,j=[],y),B),n,B,y,s,o?j:B);break;default:At(v,z,z,z,[""],B,0,s,B)}}l=p=w=0,f=m=1,T=v="",y=i;break;case 58:y=1+oe(v),w=h;default:if(f<1){if(x==123)--f;else if(x==125&&f++==0&&Jr()==125)continue}switch(v+=Le(x),x*f){case 38:m=p>0?1:(v+="\f",-1);break;case 44:s[l++]=(oe(v)-1)*m,m=1;break;case 64:pe()===45&&(v+=Ye(ae())),u=pe(),p=y=oe(T=v+=to(lt())),x++;break;case 45:h===45&&oe(v)==2&&(f=0)}}return a}function ro(e,t,r,o,n,a,i,s,c,l,p){for(var y=n-1,u=n===0?a:[""],w=We(u),h=0,f=0,d=0;h<o;++h)for(var m=0,x=Te(e,y+1,y=Gr(f=i[h])),T=e;m<w;++m)(T=wt(f>0?u[m]+" "+x:N(x,/&\f/g,u[m])))&&(c[d++]=T);return ct(e,t,r,n===0?Ue:s,c,l,p)}function xa(e,t,r){return ct(e,t,r,bt,Le(Yr()),Te(e,2,-2),0)}function oo(e,t,r,o){return ct(e,t,r,De,Te(e,0,o),Te(e,o+1,-1),o)}function Ne(e,t){for(var r="",o=We(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function ao(e,t,r,o){switch(e.type){case Hr:if(e.children.length)break;case Vr:case De:return e.return=e.return||e.value;case bt:return"";case Ct:return e.return=e.value+"{"+Ne(e.children,o)+"}";case Ue:e.value=e.props.join(",")}return oe(r=Ne(e.children,o))?e.return=e.value+"{"+r+"}":""}function io(e){var t=We(e);return function(r,o,n,a){for(var i="",s=0;s<t;s++)i+=e[s](r,o,n,a)||"";return i}}function so(e){return function(t){t.root||(t=t.return)&&e(t)}}var nr=function(t){var r=new WeakMap;return function(o){if(r.has(o))return r.get(o);var n=t(o);return r.set(o,n),n}};function co(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var ya=function(t,r,o){for(var n=0,a=0;n=a,a=pe(),n===38&&a===12&&(r[o]=1),!Ge(a);)ae();return Xe(t,ne)},va=function(t,r){var o=-1,n=44;do switch(Ge(n)){case 0:n===38&&pe()===12&&(r[o]=1),t[o]+=ya(ne-1,r,o);break;case 2:t[o]+=Ye(n);break;case 4:if(n===44){t[++o]=pe()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=Le(n)}while(n=ae());return t},ba=function(t,r){return Pt(va(Tt(t),r))},lo=new WeakMap,Ca=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,n=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!lo.get(o))&&!n){lo.set(t,!0);for(var a=[],i=ba(r,a),s=o.props,c=0,l=0;c<i.length;c++)for(var p=0;p<s.length;p++,l++)t.props[l]=a[c]?i[c].replace(/&\f/g,s[p]):s[p]+" "+i[c]}}},wa=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function uo(e,t){switch(Kr(e,t)){case 5103:return O+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+it+e+ee+e+e;case 6828:case 4268:return O+e+ee+e+e;case 6165:return O+e+ee+"flex-"+e+e;case 5187:return O+e+N(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+ee+"flex-$1$2")+e;case 5443:return O+e+ee+"flex-item-"+N(e,/flex-|-self/,"")+e;case 4675:return O+e+ee+"flex-line-pack"+N(e,/align-content|flex-|-self/,"")+e;case 5548:return O+e+ee+N(e,"shrink","negative")+e;case 5292:return O+e+ee+N(e,"basis","preferred-size")+e;case 6060:return O+"box-"+N(e,"-grow","")+O+e+ee+N(e,"grow","positive")+e;case 4554:return O+N(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return N(N(N(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return N(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return N(N(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+ee+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4095:case 3583:case 4068:case 2532:return N(e,/(.+)-inline(.+)/,O+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(oe(e)-1-t>6)switch(K(e,t+1)){case 109:if(K(e,t+4)!==45)break;case 102:return N(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+it+(K(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~st(e,"stretch")?uo(N(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(K(e,t+1)!==115)break;case 6444:switch(K(e,oe(e)-3-(~st(e,"!important")&&10))){case 107:return N(e,":",":"+O)+e;case 101:return N(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(K(e,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+ee+"$2box$3")+e}break;case 5936:switch(K(e,t+11)){case 114:return O+e+ee+N(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+ee+N(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+ee+N(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return O+e+ee+e+e}return e}var Sa=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case De:t.return=uo(t.value,t.length);break;case Ct:return Ne([Ke(t,{value:N(t.value,"@","@"+O)})],n);case Ue:if(t.length)return rr(t.props,function(a){switch(tr(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ne([Ke(t,{props:[N(a,/:(read-\w+)/,":"+it+"$1")]})],n);case"::placeholder":return Ne([Ke(t,{props:[N(a,/:(plac\w+)/,":"+O+"input-$1")]}),Ke(t,{props:[N(a,/:(plac\w+)/,":"+it+"$1")]}),Ke(t,{props:[N(a,/:(plac\w+)/,ee+"input-$1")]})],n)}return""})}},Ta=[Sa],kt=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(f){var d=f.getAttribute("data-emotion");d.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var n=t.stylisPlugins||Ta,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(f){for(var d=f.getAttribute("data-emotion").split(" "),m=1;m<d.length;m++)a[d[m]]=!0;s.push(f)});var c,l=[Ca,wa];{var p,y=[ao,so(function(f){p.insert(f)})],u=io(l.concat(n,y)),w=function(d){return Ne(no(d),u)};c=function(d,m,x,T){p=x,w(d?d+"{"+m.styles+"}":m.styles),T&&(h.inserted[m.name]=!0)}}var h={key:r,sheet:new Wr({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return h.sheet.hydrate(s),h};function mo(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var po={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Pa=!1,Aa=/[A-Z]|^ms/g,ka=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xo=function(t){return t.charCodeAt(1)===45},fo=function(t){return t!=null&&typeof t!="boolean"},ar=co(function(e){return xo(e)?e:e.replace(Aa,"-$&").toLowerCase()}),ho=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ka,function(o,n,a){return ye={name:n,styles:a,next:ye},n})}return po[t]!==1&&!xo(t)&&typeof r=="number"&&r!==0?r+"px":r},Ea="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function dt(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return ye={name:n.name,styles:n.styles,next:ye},n.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)ye={name:i.name,styles:i.styles,next:ye},i=i.next;var s=a.styles+";";return s}return Ra(e,t,r)}case"function":{if(e!==void 0){var c=ye,l=r(e);return ye=c,dt(e,t,l)}break}}var p=r;if(t==null)return p;var y=t[p];return y!==void 0?y:p}function Ra(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=dt(e,t,r[n])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var s=i;t!=null&&t[s]!==void 0?o+=a+"{"+t[s]+"}":fo(s)&&(o+=ar(a)+":"+ho(a,s)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&Pa)throw new Error(Ea);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var c=0;c<i.length;c++)fo(i[c])&&(o+=ar(a)+":"+ho(a,i[c])+";");else{var l=dt(e,t,i);switch(a){case"animation":case"animationName":{o+=ar(a)+":"+l+";";break}default:o+=a+"{"+l+"}"}}}}return o}var go=/label:\s*([^\s;{]+)\s*(;|$)/g,ye;function se(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,n="";ye=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,n+=dt(r,t,a);else{var i=a;n+=i[0]}for(var s=1;s<e.length;s++)if(n+=dt(r,t,e[s]),o){var c=a;n+=c[s]}go.lastIndex=0;for(var l="",p;(p=go.exec(n))!==null;)l+="-"+p[1];var y=mo(n)+l;return{name:y,styles:n,next:ye}}var Ia=!0;function Pe(e,t,r){var o="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(o+=n+" ")}),o}var Je=function(t,r,o){var n=t.key+"-"+r.name;(o===!1||Ia===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},Qe=function(t,r,o){Je(t,r,o);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+n:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function yo(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function vo(e,t,r){var o=[],n=Pe(e,o,r);return o.length<2?r:n+t(o)}var je=function(t){var r=kt(t);r.sheet.speedy=function(s){this.isSpeedy=s},r.compat=!0;var o=function(){for(var c=arguments.length,l=new Array(c),p=0;p<c;p++)l[p]=arguments[p];var y=se(l,r.registered,void 0);return Qe(r,y,!1),r.key+"-"+y.name},n=function(){for(var c=arguments.length,l=new Array(c),p=0;p<c;p++)l[p]=arguments[p];var y=se(l,r.registered),u="animation-"+y.name;return yo(r,{name:y.name,styles:"@keyframes "+u+"{"+y.styles+"}"}),u},a=function(){for(var c=arguments.length,l=new Array(c),p=0;p<c;p++)l[p]=arguments[p];var y=se(l,r.registered);yo(r,y)},i=function(){for(var c=arguments.length,l=new Array(c),p=0;p<c;p++)l[p]=arguments[p];return vo(r.registered,o,$a(l))};return{css:o,cx:i,injectGlobal:a,keyframes:n,hydrate:function(c){c.forEach(function(l){r.inserted[l]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Pe.bind(null,r.registered),merge:vo.bind(null,r.registered,o)}},$a=function e(t){for(var r="",o=0;o<t.length;o++){var n=t[o];if(n!=null){var a=void 0;switch(typeof n){case"boolean":break;case"object":{if(Array.isArray(n))a=e(n);else{a="";for(var i in n)n[i]&&i&&(a&&(a+=" "),a+=i)}break}default:a=n}a&&(r&&(r+=" "),r+=a)}}return r};var ve=je({key:"css"}),ds=ve.flush,us=ve.hydrate,ms=ve.cx,ps=ve.merge,fs=ve.getRegisteredStyles,hs=ve.injectGlobal,gs=ve.keyframes,xs=ve.css,ys=ve.sheet,bo=ve.cache;var Co=(function(){function e(){Nr(this,e),Lr(this,"_cacheList",[bo])}return jr(e,[{key:"add",value:function(r){var o=this.getCache(r.key);return o||(this._cacheList.push(r),r)}},{key:"delete",value:function(r){this._cacheList=this._cacheList.filter(function(o){return o.key!==r.key})}},{key:"hasCache",value:function(r){return this._cacheList.some(function(o){return o.key===r.key})}},{key:"getCache",value:function(r){return this._cacheList.find(function(o){return o.key===r})}},{key:"getCacheList",value:function(){return this._cacheList}}]),e})();var wo=typeof document<"u",ir=function(t,r){return"".concat(t,"-").concat(r)},So=function(t,r,o,n){var a=n.hashPriority||"high";Je(t,r,o);var i=".".concat(ir(t.key,r.name)),s=a==="low"?":where(".concat(i,")"):i;if(t.inserted[r.name]===void 0){var c="",l=r;do{var p=t.insert(r===l?s:"",l,t.sheet,!0);!wo&&p!==void 0&&(c+=p),l=l.next}while(l!==void 0);if(!wo&&c.length!==0)return c}};var Ze=function(t){return ze(t)==="object"&&"styles"in t&&"name"in t&&"toString"in t},To=function e(t){for(var r="",o=0;o<t.length;o++){var n=t[o];if(n!==null){var a=void 0;switch(ze(n)){case"boolean":break;case"object":{if(Array.isArray(n))a=e(n);else{a="";for(var i in n)n[i]&&i&&(a&&(a+=" "),a+=i)}break}default:a=n}a&&(r&&(r+=" "),r+=a)}}return r},Po=function(t,r,o){var n=[],a=Pe(t,n,o);return n.length<2?o:a+r(n)};var Ma=function(t,r){return function(){for(var o=arguments.length,n=new Array(o),a=0;a<o;a++)n[a]=arguments[a];var i=se(n,t.registered,void 0);return So(t,i,!1,r),ir(t.key,i.name)}},Fa=function(t,r){return function(){for(var o=arguments.length,n=new Array(o),a=0;a<o;a++)n[a]=arguments[a];var i=n.map(function(s){return Ze(s)?r(s):s});return Po(t.registered,r,To(i))}},Et=function(t,r){var o=Ma(t,{hashPriority:r.hashPriority||"high",label:r.label}),n=Fa(t,o);return{css:o,cx:n}};var he=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return se(r)};var Ao="acss";var Cr=g(M());var ko=g(M()),Eo=function(t){return(0,ko.createContext)(t)};var ce=g(M()),zt=g(M());var ut=g(M()),Ga=function(t){return t()},_o=ut.useInsertionEffect?ut.useInsertionEffect:!1,mr=_o||Ga,pr=_o||ut.useLayoutEffect;var Uo=!1,Do=ce.createContext(typeof HTMLElement<"u"?kt({key:"css"}):null),qa=Do.Provider;var _t=function(t){return(0,zt.forwardRef)(function(r,o){var n=(0,zt.useContext)(Do);return t(r,n,o)})},Ae=ce.createContext({});var Ka=function(t,r){if(typeof r=="function"){var o=r(t);return o}return $r({},t,r)},Xa=nr(function(e){return nr(function(t){return Ka(e,t)})}),hr=function(t){var r=ce.useContext(Ae);return t.theme!==r&&(r=Xa(r)(t.theme)),ce.createElement(Ae.Provider,{value:r},t.children)};var Ut={}.hasOwnProperty,fr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Wo=function(t,r){var o={};for(var n in r)Ut.call(r,n)&&(o[n]=r[n]);return o[fr]=t,o},Ya=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return Je(r,o,n),mr(function(){return Qe(r,o,n)}),null},Ja=_t(function(e,t,r){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var n=e[fr],a=[o],i="";typeof e.className=="string"?i=Pe(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=se(a,void 0,ce.useContext(Ae));i+=t.key+"-"+s.name;var c={};for(var l in e)Ut.call(e,l)&&l!=="css"&&l!==fr&&!Uo&&(c[l]=e[l]);return c.className=i,r&&(c.ref=r),ce.createElement(ce.Fragment,null,ce.createElement(Ya,{cache:t,serialized:s,isStringTag:typeof n=="string"}),ce.createElement(n,c))}),Vo=Ja;var ke=g(M());var uc=g(zo()),Ho=function(t,r){var o=arguments;if(r==null||!Ut.call(r,"css"))return ke.createElement.apply(void 0,o);var n=o.length,a=new Array(n);a[0]=Vo,a[1]=Wo(t,r);for(var i=2;i<n;i++)a[i]=o[i];return ke.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Ho||(Ho={}));var Go=_t(function(e,t){var r=e.styles,o=se([r],void 0,ke.useContext(Ae)),n=ke.useRef();return pr(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+a+" "+o.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",a),i.hydrate([c])),n.current=[i,s],function(){i.flush()}},[t]),pr(function(){var a=n.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(o.next!==void 0&&Qe(t,o.next,!0),i.tags.length){var c=i.tags[i.tags.length-1].nextElementSibling;i.before=c,i.flush()}t.insert("",o,i,!1)},[t,o.name]),null});var qo=g(M()),Ko=g(F()),Xo=function(t){return function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return(0,qo.memo)(function(a){var i=t();return(0,Ko.jsx)(Go,{styles:se(o,void 0,A(A({},a),{},{theme:i}))})})}};var Yo=function(t){return function(r){var o=t(r);return function(n){var a=o(n),i=a.styles;return i}}};var Ee=g(M()),gr=g(F()),Qa=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],Jo=function(t){return(0,Ee.memo)(function(r){var o=r.children,n=r.prefix,a=r.speedy,i=r.getStyleManager,s=r.container,c=r.nonce,l=r.insertionPoint,p=r.stylisPlugins,y=r.linters,u=Fe(r,Qa),w=(0,Ee.useContext)(t),h=n??w.sheet.key,f=s??w.sheet.container,d=a??w.sheet.isSpeedy,m=(0,Ee.useMemo)(function(){var T=!1,j=je({speedy:d??T,key:h,container:f,nonce:c,insertionPoint:l,stylisPlugins:p});if(typeof global<"u"){var B=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;B&&(j.cache=B.add(j.cache))}return j},[h,d,f,c,l,p]);(0,Ee.useEffect)(function(){i?.(m)},[m]);var x=(0,gr.jsx)(t.Provider,{value:m,children:o});return Object.keys(u).length||f?(0,gr.jsx)(Fr,A(A({linters:y,container:f},u),{},{children:x})):x})};var mt=g(M());var rn=g(M());var Qo=function(t){var r=t.css,o=t.token;return{buttonDefaultHover:r({backgroundColor:o.colorBgContainer,border:"1px solid ".concat(o.colorBorder),cursor:"pointer",":hover":{color:o.colorPrimaryHover,borderColor:o.colorPrimaryHover},":active":{color:o.colorPrimaryActive,borderColor:o.colorPrimaryActive}})}};var Zo=function(t){return Object.fromEntries(Object.entries(t).map(function(r){var o=ie(r,2),n=o[0],a=o[1];return[n,a.styles]}))};var et=function(){var t=Se.useToken(),r=t.token;return r};var tn=g(M());var en=g(M());var Re=function(t){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(t,")")):{matches:!1}};var xr,Dt=(0,en.createContext)({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(xr=Re("dark"))!==null&&xr!==void 0&&xr.matches?"dark":"light"});var Ie=function(){return(0,tn.useContext)(Dt)};var on=function(){var t=et(),r=Ie(),o=r.appearance,n=r.isDarkMode;return(0,rn.useMemo)(function(){return Zo(Qo({token:t,css:he,appearance:o,isDarkMode:n}))},[t,o,n])};var nn=g(M());var Wt=function(){var t=et(),r=on();return(0,nn.useMemo)(function(){return A(A({},t),{},{stylish:r})},[t,r])};var an=function(t){return A(A({},t),{},{mobile:t.xs,tablet:t.md,laptop:t.lg,desktop:t.xxl})};var sn=g(M()),cn=function(){var t=et(),r={xs:"@media (max-width: ".concat(t.screenXSMax,"px)"),sm:"@media (max-width: ".concat(t.screenSMMax,"px)"),md:"@media (max-width: ".concat(t.screenMDMax,"px)"),lg:"@media (max-width: ".concat(t.screenLGMax,"px)"),xl:"@media (max-width: ".concat(t.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(t.screenXXLMin,"px)")};return(0,sn.useMemo)(function(){return an(r)},[t])},ln=function(t,r){return Object.entries(t).map(function(o){var n=ie(o,2),a=n[0],i=n[1],s=i;return Ze(i)||(s=he(i)),r[a]?"".concat(r[a]," {").concat(s.styles,"}"):""}).join("")};var Za=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],ei=["prefixCls","iconPrefixCls"],dn=function(t){var r=t.hashPriority,o=t.useTheme,n=t.EmotionContext;return function(a,i){var s=i?.__BABEL_FILE_NAME__,c=!!s;return function(l){var p=o(),y=(0,mt.useContext)(n),u=y.cache,w=Et(u,{hashPriority:i?.hashPriority||r,label:i?.label}),h=w.cx,f=w.css,d=cn(),m=(0,mt.useMemo)(function(){var x;if(a instanceof Function){var T=p.stylish,j=p.appearance,B=p.isDarkMode,z=p.prefixCls,v=p.iconPrefixCls,G=Fe(p,Za),Q=function(W){return ln(W,d)};Object.assign(Q,d),x=a({token:G,stylish:T,appearance:j,isDarkMode:B,prefixCls:z,iconPrefixCls:v,cx:h,css:he,responsive:Q},l)}else x=a;return ze(x)==="object"&&(Ze(x)?x=f(x):x=Object.fromEntries(Object.entries(x).map(function(ue){var W=ie(ue,2),we=W[0],me=W[1],ot=c?"".concat(s,"-").concat(we):void 0;return ze(me)==="object"?c?[we,f(me,"label:".concat(ot))]:[we,f(me)]:[we,me]}))),x},[l,p]);return(0,mt.useMemo)(function(){var x=p.prefixCls,T=p.iconPrefixCls,j=Fe(p,ei);return{styles:m,cx:h,theme:j,prefixCls:x,iconPrefixCls:T}},[m,p])}}};var ht=g(M());var un=g(F()),yr=function(t){if(t.ThemeProvider)return t.ThemeProvider;var r=t.ThemeContext;return function(o){return(0,un.jsx)(r.Provider,{value:o.theme,children:o.children})}};var mn=hr,Vt=Ae;var tt=g(M());var pn=g(F()),fn=(0,tt.memo)(function(e){var t=e.children,r=e.theme,o=e.prefixCls,n=e.getStaticInstance,a=e.staticInstanceConfig,i=Ie(),s=i.appearance,c=i.isDarkMode,l=Or.useMessage(a?.message),p=ie(l,2),y=p[0],u=p[1],w=zr.useNotification(a?.notification),h=ie(w,2),f=h[0],d=h[1],m=Br.useModal(),x=ie(m,2),T=x[0],j=x[1];(0,tt.useEffect)(function(){n?.({message:y,modal:T,notification:f})},[]);var B=(0,tt.useMemo)(function(){var z=c?Se.darkAlgorithm:Se.defaultAlgorithm,v=r;if(typeof r=="function"&&(v=r(s)),!v)return{algorithm:z};var G=v.algorithm?v.algorithm instanceof Array?v.algorithm:[v.algorithm]:[];return A(A({},v),{},{algorithm:v.algorithm?[z].concat(Mr(G)):z})},[r,c]);return(0,pn.jsxs)(xt,{prefixCls:o,theme:B,children:[u,d,j,t]})});fn.displayName="AntdProvider";var hn=fn;var Oe=g(M());var xn=g(M());function ti(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,n,a,i,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(o=a.call(r)).done)&&(s.push(o.value),s.length!==t);c=!0);}catch(p){l=!0,n=p}finally{try{if(!c&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw n}}return s}}function ri(e,t){return oi(e)||ti(e,t)||ni(e,t)||ai()}function oi(e){if(Array.isArray(e))return e}function ni(e,t){if(e){if(typeof e=="string")return gn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gn(e,t)}}function gn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function ai(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ii(e,t){var r=t||{},o=r.defaultValue,n=r.value,a=r.onChange,i=r.postState,s=xn.default.useState(function(){return n!==void 0?n:o!==void 0?typeof o=="function"?o():o:typeof e=="function"?e():e}),c=ri(s,2),l=c[0],p=c[1],y=n!==void 0?n:l;i&&(y=i(y));function u(w){p(w),y!==w&&a&&a(w,y)}return[y,u]}var vr=ii;var br=g(M()),Ht=function(t){typeof br.startTransition=="function"?(0,br.startTransition)(t):t()};var yn=g(F()),vn=g(F()),$e,si=function(t){var r=t.themeMode,o=t.setAppearance,n=t.setBrowserPrefers,a=function(){Ht(function(){Re("dark").matches?o("dark"):o("light")})},i=function(){Ht(function(){Re("dark").matches?n("dark"):n("light")})};return(0,Oe.useLayoutEffect)(function(){if(r!=="auto"){Ht(function(){o(r)});return}return setTimeout(a,1),$e||($e=Re("dark")),$e.addEventListener("change",a),function(){$e.removeEventListener("change",a)}},[r]),(0,Oe.useLayoutEffect)(function(){return $e||($e=Re("dark")),$e.addEventListener("change",i),function(){$e.removeEventListener("change",i)}},[]),null},bn=(0,Oe.memo)(function(e){var t,r=e.children,o=e.appearance,n=e.defaultAppearance,a=e.onAppearanceChange,i=e.themeMode,s=e.defaultThemeMode,c=e.onThemeModeChange,l=e.useTheme,p=l(),y=p.appearance,u=p.themeMode,w=vr("light",{value:i,defaultValue:s??u,onChange:function(ue){return c?.(ue)}}),h=ie(w,2),f=h[0],d=h[1],m=vr("light",{value:o,defaultValue:n??y,onChange:function(ue){return a?.(ue)}}),x=ie(m,2),T=x[0],j=x[1],B=(0,Oe.useState)((t=Re("dark"))!==null&&t!==void 0&&t.matches?"dark":"light"),z=ie(B,2),v=z[0],G=z[1];return(0,vn.jsxs)(Dt.Provider,{value:{themeMode:f,setThemeMode:d,appearance:T,setAppearance:j,isDarkMode:T==="dark",browserPrefers:v},children:[typeof window<"u"&&(0,yn.jsx)(si,{themeMode:f,setAppearance:j,setBrowserPrefers:G}),r]})});bn.displayName="ThemeSwitcher";var Cn=bn;var pt=g(M());var wn=g(F()),ci=["stylish"],li=function(t){var r=t.children,o=t.customToken,n=t.defaultCustomToken,a=t.customStylish,i=t.prefixCls,s=t.StyledThemeProvider,c=Ie(),l=c.appearance,p=c.isDarkMode,y=Wt(),u=y.stylish,w=Fe(y,ci),h=(0,pt.useMemo)(function(){return n?n instanceof Function?n({token:w,appearance:l,isDarkMode:p}):n:{}},[n,w,l]),f=(0,pt.useMemo)(function(){return o instanceof Function?A(A({},h),o({token:w,appearance:l,isDarkMode:p})):A(A({},h),o)},[h,o,w,l]),d=(0,pt.useMemo)(function(){return a?a({token:A(A({},w),f),stylish:u,appearance:l,isDarkMode:p,css:he}):{}},[a,w,f,u,l]),m=(0,pt.useMemo)(function(){return A(A({},d),u)},[d,u]),x=A(A(A(A({},w),f),{},{stylish:m},c),{},{prefixCls:i});return(0,wn.jsx)(s,{theme:x,children:r})},Sn=li;var ft=g(F()),Tn=function(t){var r=t.styledConfig?yr(t.styledConfig):void 0,o=t.StyleEngineContext;return(0,ht.memo)(function(n){var a=n.children,i=n.customToken,s=n.customStylish,c=n.theme,l=n.getStaticInstance,p=n.prefixCls,y=n.staticInstanceConfig,u=n.appearance,w=n.defaultAppearance,h=n.onAppearanceChange,f=n.themeMode,d=n.defaultThemeMode,m=n.onThemeModeChange,x=n.styled,T=(0,ht.useContext)(o),j=T.prefixCls,B=T.StyledThemeContext,z=T.CustomThemeContext,v=(0,ht.useContext)(z),G=x?yr(x):r||mn,Q=p||j;return(0,ft.jsx)(o.Provider,{value:{prefixCls:Q,StyledThemeContext:x?.ThemeContext||B||Vt,CustomThemeContext:z},children:(0,ft.jsx)(Cn,{themeMode:f,defaultThemeMode:d,onThemeModeChange:m,defaultAppearance:w,appearance:u,onAppearanceChange:h,useTheme:t.useTheme,children:(0,ft.jsx)(hn,{prefixCls:Q,staticInstanceConfig:y,theme:c,getStaticInstance:l,children:(0,ft.jsx)(Sn,{prefixCls:Q,customToken:i,defaultCustomToken:v,customStylish:s,StyledThemeProvider:G,children:a})})})})})};var Be=g(M());var Pn=function(t){return function(){var r=t.StyleEngineContext,o=(0,Be.useContext)(r),n=o.StyledThemeContext,a=o.CustomThemeContext,i=o.prefixCls,s=Wt(),c=Ie(),l=(0,Be.useContext)(a),p=(0,Be.useContext)(n??Vt)||{},y=(0,Be.useContext)(xt.ConfigContext),u=y.iconPrefixCls,w=y.getPrefixCls,h=w(),f=i&&i!=="ant"?i:h,d=(0,Be.useMemo)(function(){return A(A(A(A({},s),c),l),{},{prefixCls:f,iconPrefixCls:u})},[s,c,l,f,u]);return!p||Object.keys(p).length===0?d:A(A({},p),{},{prefixCls:f,iconPrefixCls:u})}};var An=new Co;typeof global<"u"&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=An);var kn=function(t){var r,o,n,a=A(A({},t),{},{key:(r=t.key)!==null&&r!==void 0?r:"zcss",speedy:(o=t.speedy)!==null&&o!==void 0?o:!1}),i=je({key:a.key,speedy:a.speedy,container:a.container}),s=Eo(i),c=Jo(s);i.cache=An.add(i.cache);var l=(0,Cr.createContext)(a.customToken?a.customToken:{}),p=(n=a.styled)===null||n===void 0?void 0:n.ThemeContext,y=(0,Cr.createContext)({CustomThemeContext:l,StyledThemeContext:p,prefixCls:a?.prefixCls,iconPrefixCls:a?.iconPrefixCls}),u=Pn({StyleEngineContext:y}),w=dn({hashPriority:a.hashPriority,useTheme:u,EmotionContext:s}),h=Xo(u),f=Yo(w),d=Tn({styledConfig:a.styled,StyleEngineContext:y,useTheme:u});d.displayName="AntdStyleThemeProvider";var m=Et(i.cache,{hashPriority:a.hashPriority}),x=m.cx,T=i.injectGlobal,j=i.keyframes;return{createStyles:w,createGlobalStyle:h,createStylish:f,css:he,cx:x,keyframes:j,injectGlobal:T,styleManager:i,useTheme:u,StyleProvider:c,ThemeProvider:d}};var ge=kn({key:Ao,speedy:!1}),En=ge.createStyles,Ql=ge.createGlobalStyle,Zl=ge.createStylish,ed=ge.css,td=ge.cx,rd=ge.keyframes,od=ge.injectGlobal,nd=ge.styleManager,ad=ge.ThemeProvider,id=ge.StyleProvider,sd=ge.useTheme;var C=g(M());var fi=g(M());var Rn={primary:{50:"#f0f4ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},success:"#22c55e",warning:"#f59e0b",error:"#ef4444",info:"#3b82f6",light:{bg:"#fafafa",surface:"rgba(255, 255, 255, 1)",surfaceHover:"#f9fafb",surfaceActive:"#f3f4f6",border:"#e5e7eb",borderHover:"#d1d5db",text:"#111827",textSecondary:"#6b7280",textMuted:"#9ca3af"},dark:{bg:"#0a0a0a",surface:"rgba(23, 23, 23, 0.95)",surfaceHover:"#1f1f1f",surfaceActive:"#262626",border:"#27272a",borderHover:"#3f3f46",text:"#fafafa",textSecondary:"#a1a1aa",textMuted:"#71717a"}},In={none:"0",sm:"4px",md:"10px",lg:"16px",xl:"20px",xxl:"28px",xxxl:"32px",full:"9999px"},$n={0:"0",1:"4px",2:"8px",3:"12px",4:"16px",5:"20px",6:"24px",8:"32px",10:"40px",12:"48px"},Mn={none:"none",sm:"0 1px 2px rgba(0, 0, 0, 0.04)",md:"0 2px 8px rgba(0, 0, 0, 0.06)",lg:"0 4px 12px rgba(0, 0, 0, 0.08)",xl:"0 8px 24px rgba(0, 0, 0, 0.1)"},Fn={fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',sizes:{xs:{size:"12px",lineHeight:"16px",weight:400},sm:{size:"14px",lineHeight:"20px",weight:400},base:{size:"16px",lineHeight:"24px",weight:400},lg:{size:"18px",lineHeight:"28px",weight:500},xl:{size:"20px",lineHeight:"28px",weight:600},"2xl":{size:"24px",lineHeight:"32px",weight:600}}},Ln={duration:{fast:"150ms",normal:"250ms",slow:"350ms"},easing:{default:"cubic-bezier(0.4, 0, 0.2, 1)",bounce:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},L={colors:Rn,radius:In,spacing:$n,shadows:Mn,typography:Fn,animation:Ln};var gt={token:{colorPrimary:L.colors.primary[500],colorPrimaryHover:L.colors.primary[600],colorPrimaryActive:L.colors.primary[700],colorSuccess:L.colors.success,colorWarning:L.colors.warning,colorError:L.colors.error,colorInfo:L.colors.info,colorText:L.colors.light.text,colorTextSecondary:L.colors.light.textSecondary,colorTextTertiary:L.colors.light.textMuted,colorBgContainer:L.colors.light.surface,colorBgElevated:L.colors.light.surface,colorBgLayout:L.colors.light.bg,colorBorder:L.colors.light.border,colorBorderSecondary:L.colors.light.borderHover,fontFamily:L.typography.fontFamily,fontSize:16,fontSizeSM:14,fontSizeLG:18,lineHeight:1.5,borderRadius:8,borderRadiusLG:12,borderRadiusSM:4,borderRadiusXS:2,boxShadow:L.shadows.md,boxShadowSecondary:L.shadows.lg,boxShadowTertiary:L.shadows.xl,motionDurationFast:L.animation.duration.fast,motionDurationMid:L.animation.duration.normal,motionDurationSlow:L.animation.duration.slow},components:{Card:{borderRadius:12,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.06)"},Button:{borderRadius:8,controlHeight:40,controlHeightLG:44,controlHeightSM:32},Input:{borderRadius:8,controlHeight:40},Modal:{borderRadius:16},Select:{borderRadius:8,controlHeight:40},Tag:{borderRadius:4},Alert:{borderRadius:8},Menu:{borderRadius:8},Dropdown:{borderRadius:8}}},di={...gt,token:{...gt.token,colorText:L.colors.dark.text,colorTextSecondary:L.colors.dark.textSecondary,colorTextTertiary:L.colors.dark.textMuted,colorBgContainer:L.colors.dark.surface,colorBgElevated:L.colors.dark.surface,colorBgLayout:L.colors.dark.bg,colorBgMask:"rgba(0, 0, 0, 0.7)",colorBorder:L.colors.dark.border,colorBorderSecondary:L.colors.dark.borderHover},components:{...gt.components,Modal:{...gt.components?.Modal,colorBgElevated:L.colors.dark.surface}}};var{colors:pd,radius:fd,spacing:hd,shadows:gd,typography:xd,animation:yd}=L;var Gt=g(M());var rt=g(M()),pi=g(F()),Ed=(0,rt.createContext)(null);var wr=g(F()),jd=(0,Gt.createContext)(!1);var jn=g(F());var zn=g(M());var _n=g(F()),{Title:Xd,Paragraph:Yd}=_e;var Tr=g(M());var Dn=g(F()),{Title:cu,Paragraph:lu}=_e;var Wn=g(M());var yi=g(F());var Pr=g(F()),{Text:vu}=_e;var qt=g(M());var Vn=g(M());var vi=g(F());var bi=g(M());var Hn=g(F()),{useToken:Nu}=Se;var ju=En(({token:e,css:t})=>({surface:t`
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
width: 100%;
|
|
7
|
+
max-width: 720px;
|
|
8
|
+
max-height: min(84vh, 760px);
|
|
9
|
+
background: ${e.colorBgContainer};
|
|
10
|
+
border: 1px solid ${e.colorBorderSecondary};
|
|
11
|
+
border-radius: 16px;
|
|
12
|
+
box-shadow: ${e.boxShadowSecondary};
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
`,closeButton:t`
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 12px;
|
|
17
|
+
right: 12px;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
width: 32px;
|
|
22
|
+
height: 32px;
|
|
23
|
+
padding: 0;
|
|
24
|
+
border: none;
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
background: transparent;
|
|
27
|
+
color: ${e.colorTextTertiary};
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
transition: background 0.15s, color 0.15s;
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
background: ${e.colorFillSecondary};
|
|
33
|
+
color: ${e.colorText};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:focus-visible {
|
|
37
|
+
outline: 2px solid ${e.colorPrimary};
|
|
38
|
+
outline-offset: 2px;
|
|
39
|
+
}
|
|
40
|
+
`,header:t`
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
padding: 24px 24px 16px;
|
|
43
|
+
text-align: center;
|
|
44
|
+
`,logo:t`
|
|
45
|
+
width: 64px;
|
|
46
|
+
height: 64px;
|
|
47
|
+
background: ${e.colorPrimary};
|
|
48
|
+
border-radius: 16px;
|
|
49
|
+
margin: 0 auto 16px;
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
`,title:t`
|
|
54
|
+
margin: 0 0 4px;
|
|
55
|
+
font-size: ${e.fontSizeHeading4}px;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
color: ${e.colorText};
|
|
58
|
+
line-height: 1.4;
|
|
59
|
+
`,subtitle:t`
|
|
60
|
+
margin: 0;
|
|
61
|
+
font-size: ${e.fontSize}px;
|
|
62
|
+
color: ${e.colorTextSecondary};
|
|
63
|
+
line-height: 1.5;
|
|
64
|
+
`,toolbar:t`
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
gap: 8px;
|
|
69
|
+
padding: 0 24px 12px;
|
|
70
|
+
`,scrollRegion:t`
|
|
71
|
+
flex: 1 1 auto;
|
|
72
|
+
min-height: 120px;
|
|
73
|
+
max-height: min(52vh, 460px);
|
|
74
|
+
overflow-y: auto;
|
|
75
|
+
overflow-x: hidden;
|
|
76
|
+
padding: 0 24px;
|
|
77
|
+
position: relative;
|
|
78
|
+
|
|
79
|
+
&::-webkit-scrollbar {
|
|
80
|
+
width: 8px;
|
|
81
|
+
}
|
|
82
|
+
&::-webkit-scrollbar-track {
|
|
83
|
+
background: transparent;
|
|
84
|
+
}
|
|
85
|
+
&::-webkit-scrollbar-thumb {
|
|
86
|
+
background: ${e.colorBorder};
|
|
87
|
+
border-radius: 4px;
|
|
88
|
+
}
|
|
89
|
+
`,grid:t`
|
|
90
|
+
display: grid;
|
|
91
|
+
gap: ${e.marginSM}px;
|
|
92
|
+
padding-bottom: 4px;
|
|
93
|
+
`,gridOne:t`
|
|
94
|
+
grid-template-columns: minmax(0, 1fr);
|
|
95
|
+
`,gridTwo:t`
|
|
96
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
97
|
+
|
|
98
|
+
@media (max-width: 480px) {
|
|
99
|
+
grid-template-columns: minmax(0, 1fr);
|
|
100
|
+
}
|
|
101
|
+
`,card:t`
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
gap: 12px;
|
|
105
|
+
padding: 12px 14px;
|
|
106
|
+
min-height: 64px;
|
|
107
|
+
width: 100%;
|
|
108
|
+
min-width: 0;
|
|
109
|
+
text-align: left;
|
|
110
|
+
/* A <button> does not inherit the page font by default. */
|
|
111
|
+
font: inherit;
|
|
112
|
+
color: inherit;
|
|
113
|
+
background: ${e.colorBgContainer};
|
|
114
|
+
border: 1px solid ${e.colorBorderSecondary};
|
|
115
|
+
border-radius: 12px;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
transition: border-color 0.15s, background 0.15s;
|
|
118
|
+
|
|
119
|
+
&:hover {
|
|
120
|
+
border-color: ${e.colorPrimaryBorder};
|
|
121
|
+
background: ${e.colorFillQuaternary};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&:focus-visible {
|
|
125
|
+
outline: 2px solid ${e.colorPrimary};
|
|
126
|
+
outline-offset: 2px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* The border + tint is the whole selected affordance — no check icon. */
|
|
130
|
+
&[aria-pressed="true"] {
|
|
131
|
+
border-color: ${e.colorPrimary};
|
|
132
|
+
background: ${e.colorPrimaryBg};
|
|
133
|
+
}
|
|
134
|
+
`,avatar:t`
|
|
135
|
+
width: 40px;
|
|
136
|
+
height: 40px;
|
|
137
|
+
border-radius: 50%;
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
flex-shrink: 0;
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
font-size: ${e.fontSizeLG}px;
|
|
144
|
+
font-weight: 600;
|
|
145
|
+
`,cardBody:t`
|
|
146
|
+
flex: 1;
|
|
147
|
+
min-width: 0;
|
|
148
|
+
`,cardName:t`
|
|
149
|
+
margin: 0;
|
|
150
|
+
font-size: ${e.fontSize}px;
|
|
151
|
+
font-weight: 600;
|
|
152
|
+
line-height: 1.4;
|
|
153
|
+
color: ${e.colorText};
|
|
154
|
+
white-space: nowrap;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
text-overflow: ellipsis;
|
|
157
|
+
`,cardDescription:t`
|
|
158
|
+
margin: 2px 0 0;
|
|
159
|
+
font-size: ${e.fontSizeSM}px;
|
|
160
|
+
line-height: 1.4;
|
|
161
|
+
color: ${e.colorTextTertiary};
|
|
162
|
+
white-space: nowrap;
|
|
163
|
+
overflow: hidden;
|
|
164
|
+
text-overflow: ellipsis;
|
|
165
|
+
`,centeredBody:t`
|
|
166
|
+
flex: 1 1 auto;
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
align-items: center;
|
|
170
|
+
justify-content: center;
|
|
171
|
+
gap: 12px;
|
|
172
|
+
padding: 48px 24px;
|
|
173
|
+
text-align: center;
|
|
174
|
+
color: ${e.colorTextSecondary};
|
|
175
|
+
`,emptyTitle:t`
|
|
176
|
+
font-size: ${e.fontSizeLG}px;
|
|
177
|
+
font-weight: 600;
|
|
178
|
+
color: ${e.colorText};
|
|
179
|
+
`,footer:t`
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
display: flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
justify-content: space-between;
|
|
184
|
+
gap: 8px;
|
|
185
|
+
padding: 16px 24px;
|
|
186
|
+
border-top: 1px solid ${e.colorBorderSecondary};
|
|
187
|
+
background: ${e.colorFillQuaternary};
|
|
188
|
+
`,footerActions:t`
|
|
189
|
+
display: flex;
|
|
190
|
+
align-items: center;
|
|
191
|
+
gap: 4px;
|
|
192
|
+
min-width: 0;
|
|
193
|
+
flex-wrap: wrap;
|
|
194
|
+
`,srOnly:t`
|
|
195
|
+
position: absolute;
|
|
196
|
+
width: 1px;
|
|
197
|
+
height: 1px;
|
|
198
|
+
padding: 0;
|
|
199
|
+
margin: -1px;
|
|
200
|
+
overflow: hidden;
|
|
201
|
+
clip: rect(0 0 0 0);
|
|
202
|
+
white-space: nowrap;
|
|
203
|
+
border: 0;
|
|
204
|
+
`}));var Ci=g(M());var Gn=g(F());var Ar=g(M());var qn=g(F()),Kt=(0,C.createContext)(null),vm=()=>{let e=(0,C.useContext)(Kt);if(!e)throw new Error("useWorkspaceContext must be used within a WorkspaceContextProvider");return e};var bm=({children:e,workspaceId:t,projectId:r,client:o,isolated:n=!1})=>{let{currentTenant:a,isAuthenticated:i}=Ce(),s=a?.id||"",{config:c}=vt(),l=xe(),p=()=>t!==void 0?t:!n&&typeof window<"u"?sessionStorage.getItem("workspaceId"):null,y=()=>r!==void 0?r:!n&&typeof window<"u"?sessionStorage.getItem("projectId"):null,[u,w]=(0,C.useState)(p),[h,f]=(0,C.useState)(y);(0,C.useLayoutEffect)(()=>{o?o.setWorkspaceContext(u||void 0,h||void 0):Ur.setWorkspaceContext(u||void 0,h||void 0)},[u,h,o]);let[d,m]=(0,C.useState)([]),[x,T]=(0,C.useState)([]),[j,B]=(0,C.useState)([]),[z,v]=(0,C.useState)([]),[G,Q]=(0,C.useState)([]),[ue,W]=(0,C.useState)([]),[we,me]=(0,C.useState)([]),[ot,V]=(0,C.useState)(!1),[Yt,H]=(0,C.useState)(null),R=C.default.useMemo(()=>{let b=i?er("lattice_token")||c.apiKey||"":c.apiKey||"";return new Dr({baseURL:c.baseURL,apiKey:b,assistantId:"",transport:"sse"},s)},[c.baseURL,c.apiKey,s,i]),nt=(0,C.useCallback)(()=>{v([]),T([]),B([]),Q([]),W([]),me([]),w(t??null),n||sessionStorage.removeItem("workspaceId"),f(r??null),n||sessionStorage.removeItem("projectId")},[v,T,B,Q,W,me,w,f,t,r,n]),I=(0,C.useCallback)(()=>{m([]),nt()},[nt,m]);(0,C.useEffect)(()=>{I(),E()},[s]);let E=(0,C.useCallback)(async()=>{V(!0),H(null);try{let b=await R.listWorkspaces();m(b)}catch(b){H(b instanceof Error?b.message:l("chatWorkspace.workspace.loadWorkspacesFailed"))}finally{V(!1)}},[R,l]),$=(0,C.useCallback)(async b=>{let P=b||u;if(!P){T([]),B([]),v([]),Q([]),W([]),me([]);return}V(!0),H(null);try{let S=await R.listProjects(P),U=re=>re.kind!=="public"&&re.kind!=="training"&&re.kind!=="personal",at=re=>re.kind==="public"&&!re.id.startsWith(_r),Rr=S.filter(U),Ir=S.filter(at),pa=new Set([...Rr,...Ir].map(re=>re.id));T(Rr),B(Ir),v(S.filter(re=>pa.has(re.id))),Q(S.filter(re=>re.kind==="training")),W(S.filter(re=>re.kind==="personal")),me(S.filter(re=>re.kind!=="personal"))}catch(S){H(S instanceof Error?S.message:l("chatWorkspace.workspace.loadProjectsFailed"))}finally{V(!1)}},[R,u,l]);(0,C.useEffect)(()=>{!n&&u&&typeof window<"u"&&sessionStorage.setItem("workspaceId",u)},[u,n]),(0,C.useEffect)(()=>{!n&&h&&typeof window<"u"&&sessionStorage.setItem("projectId",h)},[h,n]),(0,C.useEffect)(()=>{E().catch(b=>{console.warn("Failed to load workspaces:",b)})},[E]),(0,C.useEffect)(()=>{if(d.length>0&&!u){let b=d[0];w(b.id)}},[d,u]);let q=(0,C.useRef)(u);(0,C.useEffect)(()=>{u?$(u):(T([]),B([]),v([]),Q([]),W([]),me([])),q.current!=null&&q.current!==u&&f(r??null),q.current=u},[u,$]);let fe=(0,C.useCallback)(async b=>{V(!0),H(null);try{let P=await R.createWorkspace(b);return await E(),P}catch(P){let S=P instanceof Error?P.message:l("chatWorkspace.workspace.createWorkspaceFailed");throw H(S),P}finally{V(!1)}},[R,E,l]),be=(0,C.useCallback)(async(b,P)=>{V(!0),H(null);try{let S=await R.updateWorkspace(b,P);return await E(),S}catch(S){let U=S instanceof Error?S.message:l("chatWorkspace.workspace.updateWorkspaceFailed");throw H(U),S}finally{V(!1)}},[R,E,l]),te=(0,C.useCallback)(async b=>{V(!0),H(null);try{await R.deleteWorkspace(b),u===b&&nt(),await E()}catch(P){let S=P instanceof Error?P.message:l("chatWorkspace.workspace.deleteWorkspaceFailed");throw H(S),P}finally{V(!1)}},[R,u,E,l]),le=(0,C.useCallback)(async(b,P)=>{V(!0),H(null);try{let S=await R.createProject(b,P);return await $(b),S}catch(S){let U=S instanceof Error?S.message:l("chatWorkspace.projects.createFailed");throw H(U),S}finally{V(!1)}},[R,$,l]),Me=(0,C.useCallback)(async(b,P,S)=>{V(!0),H(null);try{let U=await R.updateProject(b,P,S);return await $(b),U}catch(U){let at=U instanceof Error?U.message:l("chatWorkspace.workspace.updateProjectFailed");throw H(at),U}finally{V(!1)}},[R,$,l]),Er=(0,C.useCallback)(async(b,P)=>{V(!0),H(null);try{await R.deleteProject(b,P),h===P&&f(null),await $(b)}catch(S){let U=S instanceof Error?S.message:l("chatWorkspace.workspace.deleteProjectFailed");throw H(U),S}finally{V(!1)}},[R,h,$,l]),Jt=(0,C.useCallback)(async(b="/",P)=>{if(!u||!h)return[];V(!0),H(null);try{return await R.listPath(u,h,b,P)}catch(S){return H(S instanceof Error?S.message:l("chatWorkspace.workspace.loadFilesFailed")),[]}finally{V(!1)}},[R,u,h,l]),ra=(0,C.useCallback)(async(b,P)=>{let S=b;return S.startsWith("~/")&&(S=`/${S.slice(2)}`),S.startsWith("/")||(S=`/${S}`),Jt(S,P)},[Jt]),Qt=(0,C.useCallback)(async(b,P,S)=>{if(!u||!h)throw new Error("Workspace and project must be selected before uploading files");V(!0),H(null);try{return await R.uploadFile(u,h,P,b,S)}catch(U){let at=U instanceof Error?U.message:l("chatWorkspace.workspace.uploadFailed");throw H(at),U}finally{V(!1)}},[R,u,h,l]),oa=(0,C.useCallback)(async(b,P,S)=>{let U=b;return U.startsWith("~/")&&(U=`/${U.slice(2)}`),Qt(U,P,S)},[Qt]),na=(0,C.useCallback)(async(b,P,S,U)=>{if(!u)throw new Error("Workspace must be selected before uploading files");return R.uploadFile(u,b,S,P,U)},[R,u]),aa=(0,C.useCallback)((b,P)=>!u||!h?"":R.getFileViewUrl(u,h,b,P),[R,u,h]),ia=(0,C.useCallback)((b,P)=>!u||!h?"":R.getFileDownloadUrl(u,h,b,P),[R,u,h]),sa=(0,C.useCallback)(async(b,P)=>{if(!u||!h)throw new Error("Workspace and project must be selected");return R.downloadFolder(u,h,b,P)},[R,u,h]),ca=(0,C.useCallback)(b=>{if(!s||!u||!h)return"";let P=b.replace(/^\/?project\//,"").replace(/^\/+/,"").replace(/\/+$/,"");return`${c.baseURL}/f/${s}/${u}/${h}/${P}`},[s,u,h,c.baseURL]),la=(0,C.useCallback)(async(b,P,S)=>{if(!u||!h)throw new Error("Workspace and project must be selected");return R.resources.share({resourcePath:b,assistantId:P,...S})},[R,u,h]),da=(0,C.useCallback)(async()=>R.resources.listShares(),[R]),ua=(0,C.useCallback)(async b=>{await R.resources.unshare(b)},[R]),ma={workspaceId:u,projectId:h,workspaces:d,businessProjects:x,publicProjects:j,projects:z,trainingProjects:G,personalProjects:ue,allProjects:we,loading:ot,error:Yt,setWorkspace:w,setProject:f,createWorkspace:fe,updateWorkspace:be,deleteWorkspace:te,createProject:le,updateProject:Me,deleteProject:Er,refreshWorkspaces:E,refreshProjects:$,listPath:Jt,listPathByFolder:ra,uploadFile:Qt,uploadFileToFolder:oa,uploadFileToProject:na,getFileViewUrl:aa,getFileDownloadUrl:ia,downloadFolder:sa,getDirectFileUrl:ca,shareFile:la,listShares:da,unshareFile:ua},Ai=d.find(b=>b.id===u)?.name,ki=b=>{f(b.id)};return(0,qn.jsx)(Kt.Provider,{value:ma,children:e})};var k=g(M());var X=g(M());var Yn=g(F()),Kn=(0,X.createContext)({assistants:[],currentAssistant:null,isLoading:!1,error:null,listAssistants:async()=>{},getAssistant:async()=>{throw new Error("Not implemented")},createAssistant:async()=>{throw new Error("Not implemented")},updateAssistant:async()=>{throw new Error("Not implemented")},deleteAssistant:async()=>{},selectAssistant:async()=>{},clearCurrentAssistant:()=>{},refresh:async()=>{}}),Sm=({children:e,autoLoad:t=!0,initialAssistantId:r=null})=>{let o=yt(r||""),[n,a]=(0,X.useState)({assistants:[],currentAssistant:null,isLoading:!1,error:null}),i=(0,X.useRef)([]);(0,X.useEffect)(()=>{i.current=n.assistants},[n.assistants]);let s=(0,X.useCallback)(async()=>{a(f=>({...f,isLoading:!0,error:null}));try{let f=await o.assistants.list()??[];a(d=>({...d,assistants:f,isLoading:!1,currentAssistant:d.currentAssistant&&f.some(m=>m.id===d.currentAssistant?.id)?d.currentAssistant:d.currentAssistant&&f[0]||null}))}catch(f){a(d=>({...d,isLoading:!1,error:f instanceof Error?f:new Error(String(f))}))}},[o]),c=(0,X.useCallback)(async f=>{a(d=>({...d,isLoading:!0,error:null}));try{let d=await o.assistants.get(f);return a(m=>({...m,assistants:m.assistants.map(x=>x.id===f?d:x),isLoading:!1})),d}catch(d){throw a(m=>({...m,isLoading:!1,error:d instanceof Error?d:new Error(String(d))})),d}},[o]),l=(0,X.useCallback)(async f=>{a(d=>({...d,isLoading:!0,error:null}));try{let d=await o.assistants.create(f);return a(m=>({...m,assistants:[...m.assistants,d],isLoading:!1})),d}catch(d){throw a(m=>({...m,isLoading:!1,error:d instanceof Error?d:new Error(String(d))})),d}},[o]),p=(0,X.useCallback)(async(f,d)=>{a(m=>({...m,isLoading:!0,error:null}));try{let m=await o.assistants.update(f,d);return a(x=>({...x,assistants:x.assistants.map(T=>T.id===f?m:T),currentAssistant:x.currentAssistant?.id===f?m:x.currentAssistant,isLoading:!1})),m}catch(m){throw a(x=>({...x,isLoading:!1,error:m instanceof Error?m:new Error(String(m))})),m}},[o]),y=(0,X.useCallback)(async f=>{a(d=>({...d,isLoading:!0,error:null}));try{await o.assistants.delete(f),a(d=>({...d,assistants:d.assistants.filter(m=>m.id!==f),currentAssistant:d.currentAssistant?.id===f?null:d.currentAssistant,isLoading:!1}))}catch(d){throw a(m=>({...m,isLoading:!1,error:d instanceof Error?d:new Error(String(d))})),d}},[o]),u=(0,X.useCallback)(async f=>{a(d=>({...d,isLoading:!0,error:null}));try{let d=i.current.find(m=>m.id===f);if(d)a(m=>({...m,currentAssistant:d,isLoading:!1}));else{let m=await o.assistants.get(f);a(x=>({...x,assistants:[...x.assistants,m],currentAssistant:m,isLoading:!1}))}}catch(d){throw a(m=>({...m,isLoading:!1,error:d instanceof Error?d:new Error(String(d))})),d}},[o]),w=(0,X.useCallback)(()=>{a(f=>({...f,currentAssistant:null}))},[]),h=(0,X.useCallback)(async()=>{await s()},[s]);return(0,X.useEffect)(()=>{t&&s()},[t,s]),(0,X.useEffect)(()=>{if(console.log("[AssistantContext] selection effect fired",{initialAssistantId:r,assistantsCount:n.assistants.length,currentAssistantId:n.currentAssistant?.id,currentAssistantName:n.currentAssistant?.name}),n.assistants.length>0){let f=n.currentAssistant&&n.assistants.some(d=>d.id===n.currentAssistant?.id);if(console.log("[AssistantContext] isCurrentAssistantValid:",f,"initialAssistantId:",r),!f)if(r){let d=n.assistants.find(m=>m.id===r);console.log("[AssistantContext] find result for",r,":",d?.id??"NOT FOUND"),d?a(m=>({...m,currentAssistant:d})):(console.warn(`[AssistantContext] initialAssistantId "${r}" not found in assistant list, falling back to first assistant`,`
|
|
205
|
+
assistants:`,n.assistants.map(m=>({id:m.id,name:m.name}))),a(m=>({...m,currentAssistant:m.assistants[0]})))}else a(d=>({...d,currentAssistant:d.assistants[0]}))}},[r,n.assistants,n.currentAssistant]),(0,Yn.jsx)(Kn.Provider,{value:{...n,listAssistants:s,getAssistant:c,createAssistant:l,updateAssistant:p,deleteAssistant:y,selectAssistant:u,clearCurrentAssistant:w,refresh:h},children:e})},Xn=()=>{let e=(0,X.useContext)(Kn);if(!e)throw new Error("useAssistantContext must be used within an AssistantContextProvider");return e};var Zn=g(F()),kr=(0,k.createContext)(null);function Xt(e,t){return{id:e.id,label:t||e.metadata?.label||new Date(e.createdAt).toLocaleString(),createdAt:e.createdAt?.toString(),updatedAt:e.updatedAt?.toString()}}function Jn(e){return e?{label:e}:{}}var wi="lattice_active_thread";function Qn(e,t){return`${wi}:${e}:${t}`}function Si(e,t){if(typeof window>"u")return null;try{return window.sessionStorage.getItem(Qn(e,t))}catch{return null}}function Ti(e,t,r){if(!(typeof window>"u"))try{window.sessionStorage.setItem(Qn(e,t),r)}catch{}}function Rm(e){let t=e.replace(/```attachments[\s\S]*?```/g,"").trim();return t?t.length<=15?t:t.slice(0,15)+"...":""}var Im=({children:e})=>{let{currentAssistant:t}=Xn(),r=t?.id||null,o=vt(),n=yt(r||""),[a,i]=(0,k.useState)([]),[s,c]=(0,k.useState)(null),[l,p]=(0,k.useState)(null),[y,u]=(0,k.useState)(!1),[w,h]=(0,k.useState)(null),[f,d]=(0,k.useState)({}),m=(0,k.useRef)(null),x=(0,k.useRef)(null),T=(0,k.useRef)(!1),j=(0,k.useRef)(0),B=(0,k.useRef)(n);(0,k.useEffect)(()=>{B.current=n},[n]);let z=(0,k.useContext)(Kt),v=`${z?.workspaceId??""}:${z?.projectId??""}`,G=(0,k.useCallback)(async(I=!1)=>{let E=B.current;if(!r||!E.assistantId){j.current+=1,i([]),u(!1),T.current=!1,m.current=null;return}if(!I&&T.current&&m.current===r)return;let $=++j.current;T.current=!0,u(!0),h(null);try{let q=await E.threads.list();if($!==j.current)return;let be=q.sort((te,le)=>{let Me=new Date(te.updatedAt).getTime();return new Date(le.updatedAt).getTime()-Me}).map(te=>Xt(te));if(be.length===0)try{let te=await E.threads.create({metadata:Jn()});if($!==j.current)return;let le=Xt(te);i([le]),c(le.id)}catch(te){if($!==j.current)return;let le=te instanceof Error?te:new Error(String(te));h(le),console.error("Failed to create initial thread:",le),i([])}else{i(be);let te=Si(r,v);c(le=>le&&be.some(Me=>Me.id===le)?le:te&&be.some(Me=>Me.id===te)?te:be[0].id)}p(r),m.current=r}catch(q){if($!==j.current)return;let fe=q instanceof Error?q:new Error(String(q));h(fe),console.error("Failed to load threads:",fe)}finally{$===j.current&&(u(!1),T.current=!1)}},[r,v]);(0,k.useEffect)(()=>{let I=B.current,$=x.current!==r;r&&I.assistantId===r?($&&(c(null),i([]),p(null),x.current=r),m.current!==r&&G()):(c(null),i([]),p(null),m.current=null,x.current=null)},[r,G]);let Q=(0,k.useRef)(v);(0,k.useEffect)(()=>{let I=B.current;!r||!I.assistantId||Q.current!==v&&(Q.current=v,c(null),p(null),m.current=null,G())},[v,r,G]),(0,k.useEffect)(()=>{!r||!s||Ti(r,v,s)},[r,v,s]);let ue=(0,k.useMemo)(()=>!r||!s||l!==r?null:a.find(I=>I.id===s)||null,[r,s,a,l]),W=(0,k.useCallback)(I=>{c(I?I.id:null)},[]),we=(0,k.useCallback)(I=>{a.find($=>$.id===I)&&c(I)},[a]),me=(0,k.useCallback)(async(I,E)=>{if(!r||!n.assistantId)throw new Error("No assistant selected");u(!0),h(null);try{let $=await n.threads.create({metadata:Jn(I),...E??{}}),q=Xt($,I);return await G(),c(q.id),q}catch($){let q=$ instanceof Error?$:new Error(String($));throw h(q),q}finally{u(!1)}},[r,n,G]),ot=(0,k.useCallback)(async()=>{if(!r||!n.assistantId)return[];u(!0),h(null);try{let $=(await n.threads.list()).sort((q,fe)=>{let be=new Date(q.updatedAt).getTime();return new Date(fe.updatedAt).getTime()-be}).map(q=>Xt(q));return i($),$}catch(I){let E=I instanceof Error?I:new Error(String(I));return h(E),a}finally{u(!1)}},[r,n,a]),V=(0,k.useCallback)(async I=>{if(!r||!n.assistantId)throw new Error("No assistant selected");h(null);try{let $=(await n.threads.get(I.id)).metadata||{};await n.threads.update(I.id,{metadata:{...$,label:I.label}}),i(q=>q.map(fe=>fe.id===I.id?{...fe,label:I.label}:fe))}catch(E){let $=E instanceof Error?E:new Error(String(E));throw h($),$}},[r,n]),Yt=(0,k.useCallback)(I=>a.find(E=>E.id===I)||null,[a]),H=(0,k.useCallback)(async I=>{if(!r||!n.assistantId)throw new Error("No assistant selected");u(!0),h(null);try{await n.threads.delete(I),await G(!0),c(E=>E===I?null:E)}catch(E){let $=E instanceof Error?E:new Error(String(E));throw h($),$}finally{u(!1)}},[r,n,G]),R=(0,k.useCallback)(()=>{c(null)},[]),nt=(0,k.useCallback)(I=>{d(E=>({...E,...I}))},[]);return(0,Zn.jsx)(kr.Provider,{value:{assistantId:r,thread:ue,threadId:s,threads:a,isLoading:y,error:w,setThread:W,selectThread:we,createThread:me,listThreads:ot,updateThread:V,getThreadById:Yt,deleteThread:H,clearThread:R,refresh:G,customRunConfig:f,updateCustomRunConfig:nt},children:e})},$m=()=>{let e=(0,k.useContext)(kr);if(!e)throw new Error("useConversationContext must be used within a ConversationContextProvider");return e},Mm=()=>(0,k.useContext)(kr);var D=g(M()),ta=g(F()),J=()=>{throw new Error("ChatUIContextProvider not found")},ea=(0,D.createContext)({detailVisible:!1,setDetailVisible:J,detailSize:"large",setDetailSize:J,detailSelectedCard:null,setDetailSelectedCard:J,openDetail:J,closeDetail:J,toolsVisible:!1,setToolsVisible:J,toggleTools:J,toolSelectedCard:null,setToolSelectedCard:J,openTools:J,closeTools:J,sideAppVisible:!1,setSideAppVisible:J,sideAppSize:"large",setSideAppSize:J,sideAppSelectedCard:null,setSideAppSelectedCard:J,openSideApp:J,closeSideApp:J,menuCollapsed:void 0,setMenuCollapsed:J,openContentApp:J,closeContentApp:J,contentAppVisible:!1,setcontentAppVisible:J,contentAppSelectedCard:null,setContentAppSelectedCard:J}),Nm=({children:e,defaultMenuCollapsed:t})=>{let[r,o]=(0,D.useState)(!1),[n,a]=(0,D.useState)(!1),[i,s]=(0,D.useState)("large"),[c,l]=(0,D.useState)(null),[p,y]=(0,D.useState)(!1),[u,w]=(0,D.useState)(null),[h,f]=(0,D.useState)(null),[d,m]=(0,D.useState)(t??void 0),x=(0,D.useCallback)(W=>{l(W),o(!0)},[]),T=(0,D.useCallback)(()=>{l(null),o(!1)},[]),j=(0,D.useCallback)(W=>{w(W),y(!0)},[]),B=(0,D.useCallback)(()=>{w(null),y(!1)},[]),z=(0,D.useCallback)(W=>{x(W)},[x]),v=(0,D.useCallback)(W=>{f(W),a(!0)},[]),G=(0,D.useCallback)(()=>{T()},[T]),Q=(0,D.useCallback)(()=>{f(null),a(!1)},[]),ue=(0,D.useCallback)(()=>{y(W=>!W)},[]);return(0,ta.jsx)(ea.Provider,{value:{detailVisible:r,setDetailVisible:o,detailSize:i,setDetailSize:s,detailSelectedCard:c,setDetailSelectedCard:l,openDetail:x,closeDetail:T,toolsVisible:p,setToolsVisible:y,toggleTools:ue,toolSelectedCard:u,setToolSelectedCard:w,openTools:j,closeTools:B,sideAppVisible:r,setSideAppVisible:o,sideAppSize:i,setSideAppSize:s,sideAppSelectedCard:c,setSideAppSelectedCard:l,openSideApp:z,closeSideApp:G,openContentApp:v,closeContentApp:Q,menuCollapsed:d,setMenuCollapsed:m,contentAppVisible:n,setcontentAppVisible:a,contentAppSelectedCard:h,setContentAppSelectedCard:f},children:e})},jm=()=>(0,D.useContext)(ea);export{Kn as a,Sm as b,Xn as c,Rn as d,In as e,L as f,En as g,Kt as h,vm as i,bm as j,kr as k,Rm as l,Im as m,$m as n,Mm as o,Nm as p,jm as q};
|
|
206
|
+
/*! Bundled license information:
|
|
207
|
+
|
|
208
|
+
react-is/cjs/react-is.production.min.js:
|
|
209
|
+
(** @license React v16.13.1
|
|
210
|
+
* react-is.production.min.js
|
|
211
|
+
*
|
|
212
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the MIT license found in the
|
|
215
|
+
* LICENSE file in the root directory of this source tree.
|
|
216
|
+
*)
|
|
217
|
+
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as P}from"./embed-page-chunk-
|
|
1
|
+
import{a as P}from"./embed-page-chunk-GA5A7NLC.js";import{G as W,N as _,S as B,Z as Y,h as E,t as z}from"./embed-page-chunk-FPA5BD6K.js";import{b as T}from"./embed-page-chunk-2BOYLGSX.js";import{a as h}from"./embed-page-chunk-444E5YR2.js";var b="",N="",A="",M=[],R=new Map,k=h(e=>W(e,Y()),"sanitizeText"),F=h(e=>{switch(e.type){case"terminal":return{...e,value:k(e.value)};case"nonterminal":return{...e,name:k(e.name)};case"sequence":return{...e,elements:e.elements.map(F)};case"choice":return{...e,alternatives:e.alternatives.map(F)};case"optional":return{...e,element:F(e.element)};case"repetition":return{...e,element:F(e.element),separator:e.separator?F(e.separator):void 0};case"special":return{...e,text:k(e.text)}}},"sanitizeAstNode"),U=h(()=>{b="",N="",A="",M.length=0,R.clear(),B(),T.debug("[Railroad] Database cleared")},"clear"),I=h(e=>{b=k(e),T.debug("[Railroad] Title set:",e)},"setTitle"),X=h(()=>b,"getTitle"),j=h(e=>{let i={...e,name:k(e.name),definition:F(e.definition),comment:e.comment?k(e.comment):void 0};T.debug("[Railroad] Adding rule:",i.name),R.has(i.name)&&T.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),M.push(i),R.set(i.name,i)},"addRule"),K=h(()=>M,"getRules"),J=h(e=>R.get(e),"getRule"),Q=h(e=>{N=k(e).replace(/^\s+/g,""),T.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),Z=h(()=>N,"getAccTitle"),V=h(e=>{A=k(e).replace(/\n\s+/g,`
|
|
2
2
|
`),T.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ee=h(()=>A,"getAccDescription"),te=I,re=X,ie={clear:U,setTitle:I,getTitle:X,addRule:j,getRules:K,getRule:J,setAccTitle:Q,getAccTitle:Z,setAccDescription:V,getAccDescription:ee,setDiagramTitle:te,getDiagramTitle:re},g={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},ne=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,ae=/^[\w "',.-]+$/,oe=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),H=h(e=>e?Object.keys(e).every(i=>i==="railroad"||oe.has(i)):!1,"isRailroadStyleOptions"),le=h(e=>e?"railroad"in e&&e.railroad?e.railroad:H(e)?e:{}:{},"extractRailroadOverrides"),se=h(e=>{if(!e||H(e))return{};let{railroad:i,svgId:a,theme:r,look:t,...n}=e;return n},"extractThemeOverrides"),m=h((e,i)=>{if(typeof e!="string")return i;let a=e.trim();return ne.test(a)?a:i},"sanitizeColorValue"),q=h((e,i)=>{if(typeof e!="string")return i;let a=e.trim();return ae.test(a)?a:i},"sanitizeFontFamilyValue"),S=h((e,i)=>{let a=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(a)&&a>=0?a:i},"sanitizeNumberValue"),de=h(e=>{let i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),ce=h(e=>{let i=q(e.fontFamily,g.fontFamily),a=de(e.fontSize)??g.fontSize;return{...g,fontFamily:i,fontSize:a,terminalFill:m(e.secondBkg??e.secondaryColor,g.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,g.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,g.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,g.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,g.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,g.nonTerminalTextColor),lineColor:m(e.lineColor,g.lineColor),markerFill:m(e.lineColor,g.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,g.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,g.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,g.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,g.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,g.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,g.ruleNameColor)}},"buildThemeDefaults"),O=h(e=>{let i=z(),a={...E(),...i.themeVariables??{},...se(e)},r=ce(a),t={...i.railroad??{},...le(e)};return{compactMode:t.compactMode??r.compactMode,padding:S(t.padding,r.padding),verticalSeparation:S(t.verticalSeparation,r.verticalSeparation),horizontalSeparation:S(t.horizontalSeparation,r.horizontalSeparation),arcRadius:S(t.arcRadius,r.arcRadius),fontSize:S(t.fontSize,r.fontSize),fontFamily:q(t.fontFamily,r.fontFamily),terminalFill:m(t.terminalFill,r.terminalFill),terminalStroke:m(t.terminalStroke,r.terminalStroke),terminalTextColor:m(t.terminalTextColor,r.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:m(t.lineColor,r.lineColor),strokeWidth:S(t.strokeWidth,r.strokeWidth),markerFill:m(t.markerFill,r.markerFill),commentFill:m(t.commentFill,r.commentFill),commentStroke:m(t.commentStroke,r.commentStroke),commentTextColor:m(t.commentTextColor,r.commentTextColor),specialFill:m(t.specialFill,r.specialFill),specialStroke:m(t.specialStroke,r.specialStroke),ruleNameColor:m(t.ruleNameColor,r.ruleNameColor),showMarkers:t.showMarkers??r.showMarkers,markerRadius:S(t.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),Te=h(e=>{let{fontFamily:i,fontSize:a,terminalFill:r,terminalStroke:t,terminalTextColor:n,nonTerminalFill:p,nonTerminalStroke:s,nonTerminalTextColor:o,lineColor:u,strokeWidth:c,markerFill:d,commentFill:w,commentStroke:l,commentTextColor:f,specialFill:y,specialStroke:v,ruleNameColor:C}=O(e);return`
|
|
3
3
|
.railroad-diagram {
|
|
4
4
|
font-family: ${i};
|