@paperclipai/ui 2026.1001.0 → 2026.1002.0-beta.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/README.md +10 -0
- package/dist/assets/AgentAvatar-Bft2msHv.js +1 -0
- package/dist/assets/AgentIdentity-zREyjorM.js +1 -0
- package/dist/assets/Agents.production-D3AxCzSU.js +2 -0
- package/dist/assets/CompanyActivity.production-b0SQ5rfD.js +1 -0
- package/dist/assets/CompanyExport-DHXmetcj.js +4 -0
- package/dist/assets/CompanySkills.production-e_yTYtnL.js +10 -0
- package/dist/assets/Costs.production-CXPYlTyz.js +1 -0
- package/dist/assets/EmptyState-B-rETwdA.js +1 -0
- package/dist/assets/MarkdownBody-Dv7SlJj8.js +16 -0
- package/dist/assets/MarkdownEditor-DQS6dOgd.js +85 -0
- package/dist/assets/OrgChart.production-8gxb_7y9.js +1 -0
- package/dist/assets/PageSkeleton-C6uhSaT_.js +1 -0
- package/dist/assets/RoutineDetail.production-DjAV5y7Z.js +1 -0
- package/dist/assets/RoutineRunVariablesDialog-wOU7aljJ.js +5 -0
- package/dist/assets/Routines.production-FSJtXwoa.js +1 -0
- package/dist/assets/SidebarContext-Cknm99fV.js +1 -0
- package/dist/assets/StatusIcon-B6nz5YWy.js +1 -0
- package/dist/assets/{abnfDiagram-VCTEODGH-CeUqklE5.js → abnfDiagram-VCTEODGH-wiE_K2ku.js} +1 -1
- package/dist/assets/agents-DzKLJLOv.js +1 -0
- package/dist/assets/apl-MHzTCvfx.js +1 -0
- package/dist/assets/arc-BQ55EiX2.js +1 -0
- package/dist/assets/architecture-7GRP2DOG-B-bRgmfI.js +1 -0
- package/dist/assets/architectureDiagram-5GKGNRK7-BkhBoP5_.js +36 -0
- package/dist/assets/array-CL5Tisss.js +1 -0
- package/dist/assets/asciiarmor-DFLNSgns.js +1 -0
- package/dist/assets/asn1-CfPVWRYE.js +1 -0
- package/dist/assets/asterisk-CJ4OeA7Y.js +1 -0
- package/dist/assets/badge-CdIt-Ch4.js +1 -0
- package/dist/assets/blockDiagram-I7D4REHJ-fyVn7r-9.js +129 -0
- package/dist/assets/{bot-COC10wvJ.js → bot-Dcik2SZd.js} +1 -1
- package/dist/assets/brainfuck-NEHkmXMc.js +1 -0
- package/dist/assets/button-Ch-88g_s.js +1 -0
- package/dist/assets/c4Diagram-7LVT6UL2-BqC3qTZS.js +38 -0
- package/dist/assets/card-Bf_YmROq.js +1 -0
- package/dist/assets/channel-0B5iAV5A.js +1 -0
- package/dist/assets/{check-DK7e4lDi.js → check-wtOgT3Rw.js} +1 -1
- package/dist/assets/checkbox-D4HSzIFm.js +1 -0
- package/dist/assets/{chevron-down-BBudOVoh.js → chevron-down-BWLTC8P1.js} +1 -1
- package/dist/assets/{chevron-right-b2Qebt4W.js → chevron-right-CofOASex.js} +1 -1
- package/dist/assets/chunk-2Q5K7J3B-CkPHWFj-.js +1 -0
- package/dist/assets/chunk-4HAMMTFA-CGGd_Pxz.js +62 -0
- package/dist/assets/{chunk-5VM5RSS4-tW0M6uUA.js → chunk-5VM5RSS4-2H3r6wq0.js} +1 -1
- package/dist/assets/chunk-75Z2AOVW-BaPl5WA6.js +2 -0
- package/dist/assets/chunk-DU6HZSFF-2P5iNHqg.js +127 -0
- package/dist/assets/{chunk-F27PBJKO-D-T3WcpD.js → chunk-F27PBJKO-Ci7GmRgM.js} +1 -1
- package/dist/assets/chunk-FOHPRMQF-7Ogwfo6e.js +153 -0
- package/dist/assets/chunk-GMAD6QVW-BfvaaEBW.js +70 -0
- package/dist/assets/chunk-GVQU2GXP-Cwp_Wpj2.js +1 -0
- package/dist/assets/chunk-IMKFNOWR-BjXu-u1C.js +231 -0
- package/dist/assets/chunk-JWPE2WC7--HEGjv3t.js +1 -0
- package/dist/assets/{chunk-L3NEJ4N5-Bisxd1gC.js → chunk-L3NEJ4N5-JUd1UqX1.js} +1 -1
- package/dist/assets/chunk-OSK3NFVY-DlrxddG-.js +10 -0
- package/dist/assets/{chunk-P2QGCYS3-owBRpBNx.js → chunk-P2QGCYS3-CjqEi3mx.js} +1 -1
- package/dist/assets/{chunk-POPQ4Y6H-DIX5L3DW.js → chunk-POPQ4Y6H-BytmIqFc.js} +1 -1
- package/dist/assets/chunk-PWAF6VOD-CR3rNBNB.js +1 -0
- package/dist/assets/chunk-SHT3W25Y-B1Klag0Z.js +168 -0
- package/dist/assets/chunk-SVP7TREG-A4BO1_5v.js +88 -0
- package/dist/assets/chunk-TICWLB2K-B4lRXha0.js +206 -0
- package/dist/assets/{chunk-XXDRQBXY-CoimeqAb.js → chunk-XXDRQBXY-BhrH-9FX.js} +1 -1
- package/dist/assets/chunk-Y2CYZVJY-OvsAdhaO.js +1 -0
- package/dist/assets/classDiagram-ZZMXUADV-icHQAbF4.js +1 -0
- package/dist/assets/classDiagram-v2-VYDZK3BY-icHQAbF4.js +1 -0
- package/dist/assets/clike-CIx9nZSv.js +1 -0
- package/dist/assets/clipboard-CFX36smB.js +1 -0
- package/dist/assets/clojure-DFaIEz5O.js +1 -0
- package/dist/assets/cmake-koz-qBlo.js +1 -0
- package/dist/assets/cobol-Bo8Zw9gB.js +1 -0
- package/dist/assets/coffeescript-CXYzYf-Y.js +1 -0
- package/dist/assets/commonlisp-C4OOCwkD.js +1 -0
- package/dist/assets/company-members-Ddb6gDoA.js +1 -0
- package/dist/assets/cose-bilkent-JH36ORCC-ShY6JvWh.js +1 -0
- package/dist/assets/createLucideIcon-DNYM09J7.js +92 -0
- package/dist/assets/crystal-BlJXQDvy.js +1 -0
- package/dist/assets/css-DEZwfVpY.js +1 -0
- package/dist/assets/cynefin-OW5HDTMX-SmJ8tLYh.js +1 -0
- package/dist/assets/cynefinDiagram-5FMLGOSQ-Qp2NNXUx.js +62 -0
- package/dist/assets/cypher-z2oFsVv2.js +1 -0
- package/dist/assets/cytoscape.esm-B68Piqei.js +321 -0
- package/dist/assets/d-Dkt6y7AQ.js +1 -0
- package/dist/assets/dagre-Bnei_7lW.js +1 -0
- package/dist/assets/{dagre-GXQ25YYZ-D_xDP9Jk.js → dagre-GXQ25YYZ-C1bu-Sbk.js} +1 -1
- package/dist/assets/defaultLocale-C2Bpu8Ih.js +1 -0
- package/dist/assets/definition-DKtokiaS.js +1 -0
- package/dist/assets/diagram-S7CK7UJ4-D0cqRe3j.js +30 -0
- package/dist/assets/diagram-UQ7AKVKN-DdEgR6LR.js +41 -0
- package/dist/assets/diagram-VSXAHHWV-B_APewr5.js +3 -0
- package/dist/assets/diagram-VX7I27RA-B2quR8-z.js +24 -0
- package/dist/assets/diagram-Z3DM3KII-BpQRCt5N.js +24 -0
- package/dist/assets/diff-C60bAYOU.js +1 -0
- package/dist/assets/dist-B0TRtKS8.js +1 -0
- package/dist/assets/dist-BRrJTSwu.js +1 -0
- package/dist/assets/dist-BX-OCtve.js +7 -0
- package/dist/assets/dist-BXoB5t8y.js +1 -0
- package/dist/assets/dist-BeN6V24C.js +1 -0
- package/dist/assets/dist-Bs8B1orN.js +1 -0
- package/dist/assets/dist-BuzarGBs.js +1 -0
- package/dist/assets/dist-C2jegCUe.js +2 -0
- package/dist/assets/dist-C8CoeHVO.js +6 -0
- package/dist/assets/{dist-CHwsnPz1.js → dist-CBo4NvFW.js} +1 -1
- package/dist/assets/dist-CEGuZvuA.js +1 -0
- package/dist/assets/dist-CSbL7rtN.js +1 -0
- package/dist/assets/dist-CWrRKmYk.js +1 -0
- package/dist/assets/dist-CXeuJs-w.js +1 -0
- package/dist/assets/dist-Cj4C2HPs.js +1 -0
- package/dist/assets/dist-DCJXgQu0.js +13 -0
- package/dist/assets/dist-DKJ0FdKS.js +1 -0
- package/dist/assets/dist-DZgNtG8a.js +1 -0
- package/dist/assets/dist-DoBOMP6Y.js +1 -0
- package/dist/assets/dist-DpmnjHX9.js +1 -0
- package/dist/assets/dist-DsLYqWnM.js +1 -0
- package/dist/assets/dist-DyyIM2uF.js +3 -0
- package/dist/assets/dist-IPIdwQ5A.js +1 -0
- package/dist/assets/dist-YH7EZ8d1.js +1 -0
- package/dist/assets/dist-oQmcCiSD.js +1 -0
- package/dist/assets/dist-sLIQSVjm.js +13 -0
- package/dist/assets/dist-xQwUswee.js +1 -0
- package/dist/assets/{dockerfile-DX_VfMW1.js → dockerfile-BttNdtK0.js} +1 -1
- package/dist/assets/dtd-CCVZU5Da.js +1 -0
- package/dist/assets/dylan-3pmV5wzs.js +1 -0
- package/dist/assets/ebnf-bm-I2WIh.js +1 -0
- package/dist/assets/{ebnfDiagram-PWID7BFC-Cj6UijMt.js → ebnfDiagram-PWID7BFC-C9x73jSZ.js} +1 -1
- package/dist/assets/ecl-BIv3PrZb.js +1 -0
- package/dist/assets/eiffel-DuLnr4-r.js +1 -0
- package/dist/assets/elm-njbaCU-L.js +1 -0
- package/dist/assets/environments-dEEL2m8L.js +1 -0
- package/dist/assets/erDiagram-RLTQ6QDP-Dkp7z94L.js +99 -0
- package/dist/assets/erlang-CuhOC2I8.js +1 -0
- package/dist/assets/eventmodeling-NTZA5JFV-CCSRuDgA.js +1 -0
- package/dist/assets/{external-link-u6E8YvQ2.js → external-link-g6kEjm-a.js} +1 -1
- package/dist/assets/{factor-aVI-w_hC.js → factor-CM3-9V3b.js} +1 -1
- package/dist/assets/fcl-nWsMJ92o.js +1 -0
- package/dist/assets/{file-text-Da6MLJ2s.js → file-text-DtHatlKA.js} +1 -1
- package/dist/assets/flowDiagram-HODETNUW-CDvpIOlT.js +1 -0
- package/dist/assets/forth-BQ9HrCVY.js +1 -0
- package/dist/assets/fortran-DHJe28ev.js +1 -0
- package/dist/assets/ganttDiagram-EL5Y4UJY-CJs7mNJX.js +292 -0
- package/dist/assets/gas-ByO0qYMr.js +1 -0
- package/dist/assets/gherkin-CwOmHL5K.js +1 -0
- package/dist/assets/gitGraph-4MIJSDKK-SUTvd_QT.js +1 -0
- package/dist/assets/gitGraphDiagram-WWUBYQGX-ByeD7NPE.js +106 -0
- package/dist/assets/graphlib-DHhK3saS.js +1 -0
- package/dist/assets/groovy-ByXGF8cx.js +1 -0
- package/dist/assets/haskell-CHSpCNOy.js +1 -0
- package/dist/assets/haxe-P2jh68ck.js +1 -0
- package/dist/assets/health-Bbs1y0lq.js +1 -0
- package/dist/assets/heartbeats-Bjk0OF1N.js +1 -0
- package/dist/assets/http-0jwMmfWP.js +1 -0
- package/dist/assets/idl-DTVVj6r5.js +1 -0
- package/dist/assets/index-BWOXadpj.css +1 -0
- package/dist/assets/index-ChaaJ8xT.js +790 -0
- package/dist/assets/info-A6RAGUB7-DP8pqSDg.js +1 -0
- package/dist/assets/{infoDiagram-27XIBGKW-tmLmUh4S.js → infoDiagram-27XIBGKW-B6sR9qVK.js} +1 -1
- package/dist/assets/init-BXPE0p7i.js +1 -0
- package/dist/assets/input-CUpc3cYt.js +1 -0
- package/dist/assets/ishikawaDiagram-5VMMS53U-HFQ3gYGN.js +70 -0
- package/dist/assets/javascript-Cblpdx44.js +1 -0
- package/dist/assets/journeyDiagram-3NMN7TZE-BtoNErTz.js +139 -0
- package/dist/assets/julia-KVJvUu_F.js +1 -0
- package/dist/assets/kanban-definition-UXKFOSKX-Y55yoRj4.js +89 -0
- package/dist/assets/katex-Du_FPwxl.js +257 -0
- package/dist/assets/label-Dywf6mVV.js +5 -0
- package/dist/assets/line-CJEZO7lL.js +1 -0
- package/dist/assets/linear-s0r5e4qh.js +1 -0
- package/dist/assets/livescript-DSHsJPcD.js +1 -0
- package/dist/assets/{loader-circle-gHxHifAN.js → loader-circle-BiSCFlGq.js} +1 -1
- package/dist/assets/lua-Vher-70I.js +1 -0
- package/dist/assets/mathematica-CE9SaVsW.js +1 -0
- package/dist/assets/mbox-JGl1Fgvq.js +1 -0
- package/dist/assets/mention-chips-CP2xtZaa.js +17 -0
- package/dist/assets/mermaid-parser.core-CHJSk6z0.js +7 -0
- package/dist/assets/mermaid.core-G_BSi0G0.js +42 -0
- package/dist/assets/mindmap-definition-YA3MSWOX-BnlANYwV.js +96 -0
- package/dist/assets/mirc-BGWbO906.js +1 -0
- package/dist/assets/mllike-DuNQsEw8.js +1 -0
- package/dist/assets/model-DL5biheO.js +1 -0
- package/dist/assets/modelica-5XCgKQt8.js +1 -0
- package/dist/assets/mscgen-mVFg19ri.js +1 -0
- package/dist/assets/mumps-C7oS353s.js +1 -0
- package/dist/assets/nginx-DXVlpyCz.js +1 -0
- package/dist/assets/{nsis-Dn6O1rXh.js → nsis-KFC6hioG.js} +1 -1
- package/dist/assets/ntriples-5ckCopnn.js +1 -0
- package/dist/assets/{octagon-alert-BKTYrKwo.js → octagon-alert-Uov86157.js} +1 -1
- package/dist/assets/octave-D1J2QQNt.js +1 -0
- package/dist/assets/ordinal-BJyFM1v8.js +1 -0
- package/dist/assets/oz-CPsllMDD.js +1 -0
- package/dist/assets/packet-AYTQ26CC-DHxu-C4z.js +1 -0
- package/dist/assets/pascal-B-I6JP0Y.js +1 -0
- package/dist/assets/path-D6mommQw.js +1 -0
- package/dist/assets/{pegDiagram-XKGWAZYB-CZJCh8aE.js → pegDiagram-XKGWAZYB-CHhCzuLt.js} +1 -1
- package/dist/assets/perl-CI8WIWBi.js +1 -0
- package/dist/assets/pie-WAS4IAKB-CP_gIBKD.js +1 -0
- package/dist/assets/pieDiagram-E7YTZNPT-CEGI1j0Q.js +39 -0
- package/dist/assets/pig-FQI0W3S3.js +1 -0
- package/dist/assets/powershell-BAu6x78A.js +1 -0
- package/dist/assets/preload-helper-CceJXRIF.js +1 -0
- package/dist/assets/prod-COP_vZWu.js +495 -0
- package/dist/assets/properties-BKTTDgau.js +1 -0
- package/dist/assets/protobuf-UWh8gh_j.js +1 -0
- package/dist/assets/pug-C20tNwmy.js +1 -0
- package/dist/assets/puppet-BAHVzCkO.js +1 -0
- package/dist/assets/python-C2DOnsac.js +1 -0
- package/dist/assets/q-Cooe-Nh8.js +1 -0
- package/dist/assets/quadrantDiagram-AXDQQJYC-BfVC-A1t.js +7 -0
- package/dist/assets/r-CktBKya9.js +1 -0
- package/dist/assets/radar-RG4KPBEZ-DbvKbV6l.js +1 -0
- package/dist/assets/railroad-74A4TZTK-BPHjMWIu.js +1 -0
- package/dist/assets/railroad-abnf-HS5TGJTU-DKY8xCGL.js +1 -0
- package/dist/assets/railroad-ebnf-LZEXJU2U-DK75GN4x.js +1 -0
- package/dist/assets/railroad-peg-WCYAUIDC-0bHp9JB9.js +1 -0
- package/dist/assets/{railroadDiagram-O6MQD6OU-C78d9qwp.js → railroadDiagram-O6MQD6OU-Bwh6snZb.js} +1 -1
- package/dist/assets/requirementDiagram-BXWQKSXE-NEvTOdsw.js +84 -0
- package/dist/assets/rolldown-runtime-ZpX3ckPj.js +1 -0
- package/dist/assets/{rotate-ccw-qxQJzzIG.js → rotate-ccw-C6yYBKsh.js} +1 -1
- package/dist/assets/rough.esm-DnC5Tr1g.js +1 -0
- package/dist/assets/router-CRA9PE43.js +15 -0
- package/dist/assets/rpm-Csj9nLHl.js +1 -0
- package/dist/assets/ruby-bGx9eo-K.js +1 -0
- package/dist/assets/runtime-IAg0vdY9.js +4137 -0
- package/dist/assets/sankeyDiagram-P5KCCOFB-AvKb1lr-.js +40 -0
- package/dist/assets/sas-Drou_EQ9.js +1 -0
- package/dist/assets/{save-DfpNjg8P.js → save-DNPla8EZ.js} +1 -1
- package/dist/assets/scheme-DcjG9bAf.js +1 -0
- package/dist/assets/select-UtgOcEFR.js +1 -0
- package/dist/assets/sequenceDiagram-WJ2MYXX4-BP0QZnHN.js +162 -0
- package/dist/assets/sheet-9fsKc7SR.js +1 -0
- package/dist/assets/shell-BSKClwid.js +1 -0
- package/dist/assets/sieve-CcvsXPZo.js +1 -0
- package/dist/assets/simple-mode-B79cVo-x.js +1 -0
- package/dist/assets/sizeCapture-INFHLROL-XURNLuv_.js +1 -0
- package/dist/assets/skeleton-D4FHTI1W.js +1 -0
- package/dist/assets/smalltalk-Cmg-4mjQ.js +1 -0
- package/dist/assets/solr-Dj8ahEwG.js +1 -0
- package/dist/assets/sparql-LAJYmgfk.js +1 -0
- package/dist/assets/spreadsheet-B8doD_pL.js +1 -0
- package/dist/assets/sql-C3kWxFGw.js +1 -0
- package/dist/assets/src-Bssc388C.js +1 -0
- package/dist/assets/{stateDiagram-D77RDMKH-BO4nO03f.js → stateDiagram-D77RDMKH-Ce0Wj7yz.js} +1 -1
- package/dist/assets/stateDiagram-v2-MP3YSRHH-CREL-f_f.js +1 -0
- package/dist/assets/stex-CW6K5Nmu.js +1 -0
- package/dist/assets/stylus-BS-Ienrc.js +1 -0
- package/dist/assets/swift-BD82LMDK.js +1 -0
- package/dist/assets/swimlanes-42K2YHIH-CX7zPtNU.js +1 -0
- package/dist/assets/swimlanesDiagram-VR7AAH4N-B22pD4D6.js +8 -0
- package/dist/assets/tabs-DBs-axwT.js +1 -0
- package/dist/assets/tcl-RZa1cqc-.js +1 -0
- package/dist/assets/textile-C-BY_OGF.js +1 -0
- package/dist/assets/tiddlywiki-C9bm_Oju.js +1 -0
- package/dist/assets/tiki-DJOT-rFT.js +1 -0
- package/dist/assets/timeline-definition-24CTP7MA-Bw21rjHm.js +120 -0
- package/dist/assets/toml-Civ2fTsu.js +1 -0
- package/dist/assets/treeView-Q6P3EWNA-CzxfDhvq.js +1 -0
- package/dist/assets/treemap-WGGIJYW6-DNWYF4zd.js +1 -0
- package/dist/assets/{triangle-alert-qe2-abhl.js → triangle-alert-y8TEvMhW.js} +1 -1
- package/dist/assets/troff-Lns35Xcq.js +1 -0
- package/dist/assets/ttcn-7vlxVTUK.js +1 -0
- package/dist/assets/ttcn-cfg-B8qhhp6o.js +1 -0
- package/dist/assets/turtle-DTIS1YQ7.js +1 -0
- package/dist/assets/use-adapter-capabilities-oDC15BPq.js +1 -0
- package/dist/assets/useHiddenSettings-Czca2p7e.js +1 -0
- package/dist/assets/vb-BO8UacKu.js +1 -0
- package/dist/assets/vbscript-DWLru3lT.js +1 -0
- package/dist/assets/velocity-BIIn-Nl2.js +1 -0
- package/dist/assets/vennDiagram-4TSXK5OY-BuncstTm.js +34 -0
- package/dist/assets/verilog-BVYlmXGg.js +1 -0
- package/dist/assets/vhdl-Cn8cC8Yb.js +1 -0
- package/dist/assets/wardley-WFR3VGLG-C18JBEVS.js +1 -0
- package/dist/assets/wardleyDiagram-VM6X3IG4-DOHY7xcd.js +78 -0
- package/dist/assets/webidl-ChvzbZ5-.js +1 -0
- package/dist/assets/xquery-BKN7qEbU.js +1 -0
- package/dist/assets/xychartDiagram-S5SC5T6Z-qOWxoNte.js +7 -0
- package/dist/assets/yacas-BG9ha7tU.js +1 -0
- package/dist/assets/z80-CB2cGLew.js +1 -0
- package/dist/assets/zap-BpPgjHaw.js +41 -0
- package/dist/brands/apps/browser-use.svg +6 -0
- package/dist/brands/apps/cognee.png +0 -0
- package/dist/brands/apps/fireflies.svg +76 -0
- package/dist/brands/apps/honcho.svg +33 -0
- package/dist/brands/apps/manifest.json +45 -0
- package/dist/brands/apps/supermemory.png +0 -0
- package/dist/brands/apps/zep.png +0 -0
- package/dist/index.html +111 -48
- package/dist/sw.js +30 -2
- package/package.json +1 -1
- package/dist/assets/AgentAvatar-BQcATpuj.js +0 -1
- package/dist/assets/AgentIdentity-BXcOx6mh.js +0 -1
- package/dist/assets/Agents.production-C7NlT4VK.js +0 -2
- package/dist/assets/CompanyActivity.production-Cgazkupd.js +0 -1
- package/dist/assets/CompanyExport-Ev3HdqhS.js +0 -4
- package/dist/assets/CompanySkills.production-7siOM3js.js +0 -10
- package/dist/assets/Costs.production-Cu8FzmAy.js +0 -1
- package/dist/assets/EmptyState-CYmXJZra.js +0 -1
- package/dist/assets/MarkdownBody-BEus0G6E.js +0 -16
- package/dist/assets/MarkdownEditor-CD9YgySM.js +0 -85
- package/dist/assets/OrgChart.production-Bvqk8YmB.js +0 -1
- package/dist/assets/PageSkeleton-D4Rq27Ma.js +0 -1
- package/dist/assets/RoutineDetail.production-CWjzpK9Y.js +0 -1
- package/dist/assets/RoutineRunVariablesDialog-CkU8B8MT.js +0 -5
- package/dist/assets/Routines.production-h1V_AmcV.js +0 -1
- package/dist/assets/SidebarContext-OkDZBsa5.js +0 -1
- package/dist/assets/StatusIcon-byMXAxms.js +0 -1
- package/dist/assets/agents-V80gCTZE.js +0 -1
- package/dist/assets/alert-dialog-1Ls2_KxR.js +0 -1
- package/dist/assets/apl-HgHEXXot.js +0 -1
- package/dist/assets/arc-BZl4jCoI.js +0 -1
- package/dist/assets/architecture-7GRP2DOG-CkriZcN3.js +0 -1
- package/dist/assets/architectureDiagram-5GKGNRK7-RqNI_8mY.js +0 -36
- package/dist/assets/array-DbBWA3E_.js +0 -1
- package/dist/assets/asciiarmor-BCMA6NWE.js +0 -1
- package/dist/assets/asn1-Kzy7voXy.js +0 -1
- package/dist/assets/asterisk-ChB64vS0.js +0 -1
- package/dist/assets/badge-WXINLaUd.js +0 -1
- package/dist/assets/blockDiagram-I7D4REHJ-BwcT_g2x.js +0 -129
- package/dist/assets/brainfuck-CMTsipah.js +0 -1
- package/dist/assets/button-CpKYuv7H.js +0 -1
- package/dist/assets/c4Diagram-7LVT6UL2-atfHjUSb.js +0 -38
- package/dist/assets/card-HysMztk1.js +0 -1
- package/dist/assets/channel-DlRO_I6j.js +0 -1
- package/dist/assets/checkbox-CVAmstPh.js +0 -1
- package/dist/assets/chunk-2Q5K7J3B-CRXVsPGE.js +0 -1
- package/dist/assets/chunk-4HAMMTFA-DqvaupOy.js +0 -62
- package/dist/assets/chunk-75Z2AOVW-DiS8VKrk.js +0 -2
- package/dist/assets/chunk-DU6HZSFF-BGoS2car.js +0 -127
- package/dist/assets/chunk-FOHPRMQF-Dz43VZiQ.js +0 -153
- package/dist/assets/chunk-GMAD6QVW-MmvIX4Sc.js +0 -70
- package/dist/assets/chunk-GVQU2GXP-DhZG4QQ3.js +0 -1
- package/dist/assets/chunk-IMKFNOWR-CNic77Qq.js +0 -231
- package/dist/assets/chunk-JWPE2WC7-CE3kxLOT.js +0 -1
- package/dist/assets/chunk-OSK3NFVY-Ddgve4Pk.js +0 -10
- package/dist/assets/chunk-PWAF6VOD-lq2Ihi8Q.js +0 -1
- package/dist/assets/chunk-SHT3W25Y-DKXas9x9.js +0 -168
- package/dist/assets/chunk-SVP7TREG-BXHkIpKZ.js +0 -88
- package/dist/assets/chunk-TICWLB2K-CnxxJuD4.js +0 -206
- package/dist/assets/chunk-Y2CYZVJY-CrVYBJys.js +0 -1
- package/dist/assets/classDiagram-ZZMXUADV-BwvdXWUu.js +0 -1
- package/dist/assets/classDiagram-v2-VYDZK3BY-BwvdXWUu.js +0 -1
- package/dist/assets/clike-BevCOpZ6.js +0 -1
- package/dist/assets/clipboard-aF8KQ9q6.js +0 -1
- package/dist/assets/clojure-Cj19RBE9.js +0 -1
- package/dist/assets/cmake-U5GsXmRz.js +0 -1
- package/dist/assets/cobol-DmYfZL7R.js +0 -1
- package/dist/assets/coffeescript-sEBj_57X.js +0 -1
- package/dist/assets/commonlisp-Bw-z7IkA.js +0 -1
- package/dist/assets/company-members-BZZ2-bPJ.js +0 -1
- package/dist/assets/cose-bilkent-JH36ORCC-DrZwSItB.js +0 -1
- package/dist/assets/createLucideIcon-BeRqU-eU.js +0 -92
- package/dist/assets/crystal-B9RjEXPe.js +0 -1
- package/dist/assets/css-osG3334y.js +0 -1
- package/dist/assets/cynefin-OW5HDTMX-B5ZFR4ff.js +0 -1
- package/dist/assets/cynefinDiagram-5FMLGOSQ-cnvXcijg.js +0 -62
- package/dist/assets/cypher-CDAKrY0K.js +0 -1
- package/dist/assets/cytoscape.esm-DqfuVUrS.js +0 -321
- package/dist/assets/d-G8gZfho_.js +0 -1
- package/dist/assets/dagre-CJh2-Y3p.js +0 -1
- package/dist/assets/defaultLocale-DxpPsLCS.js +0 -1
- package/dist/assets/definition-maHSCy67.js +0 -1
- package/dist/assets/diagram-S7CK7UJ4-Dg-i42B2.js +0 -30
- package/dist/assets/diagram-UQ7AKVKN-CBTP00QI.js +0 -41
- package/dist/assets/diagram-VSXAHHWV-DCjV5SD2.js +0 -3
- package/dist/assets/diagram-VX7I27RA-BfTvz0Je.js +0 -24
- package/dist/assets/diagram-Z3DM3KII-BO68fsRP.js +0 -24
- package/dist/assets/diff-CkUo3vbi.js +0 -1
- package/dist/assets/dist-1Vbv3UeY.js +0 -1
- package/dist/assets/dist-3X4R8yVQ.js +0 -6
- package/dist/assets/dist-BKiybaXf.js +0 -1
- package/dist/assets/dist-BUQozcx1.js +0 -1
- package/dist/assets/dist-BaeJv1Ne.js +0 -1
- package/dist/assets/dist-BhQfqKSi.js +0 -1
- package/dist/assets/dist-Bm5_pSKs.js +0 -1
- package/dist/assets/dist-BmGTAfrH.js +0 -1
- package/dist/assets/dist-Brc4UvOQ.js +0 -1
- package/dist/assets/dist-C0kLYwkU.js +0 -1
- package/dist/assets/dist-CNVd5rgQ.js +0 -1
- package/dist/assets/dist-CTixs-RA.js +0 -1
- package/dist/assets/dist-CVgzzQrE.js +0 -1
- package/dist/assets/dist-CXg81YUW.js +0 -1
- package/dist/assets/dist-CdHJcDiF.js +0 -3
- package/dist/assets/dist-CfKIp54h.js +0 -1
- package/dist/assets/dist-CsnGSuKF.js +0 -1
- package/dist/assets/dist-CtI8dNPm.js +0 -7
- package/dist/assets/dist-D13FbmAD.js +0 -1
- package/dist/assets/dist-DAoNwvdn.js +0 -1
- package/dist/assets/dist-DURTM04V.js +0 -1
- package/dist/assets/dist-DVHRvcMf.js +0 -1
- package/dist/assets/dist-Df25AjwT.js +0 -13
- package/dist/assets/dist-Dqqmm7he.js +0 -13
- package/dist/assets/dist-QYegKcqn.js +0 -2
- package/dist/assets/dist-XSLaHh6M.js +0 -1
- package/dist/assets/dtd-DeaIxSc8.js +0 -1
- package/dist/assets/dylan-Yac_wH_X.js +0 -1
- package/dist/assets/ebnf-VNZi7k5n.js +0 -1
- package/dist/assets/ecl-DIrkXxFx.js +0 -1
- package/dist/assets/eiffel-H873bhsD.js +0 -1
- package/dist/assets/elm-ClUTGo5O.js +0 -1
- package/dist/assets/environments-CGkF40-l.js +0 -1
- package/dist/assets/erDiagram-RLTQ6QDP-DhLLnn7M.js +0 -99
- package/dist/assets/erlang-Bqdi3Bi8.js +0 -1
- package/dist/assets/eventmodeling-NTZA5JFV-DIQ3J6CH.js +0 -1
- package/dist/assets/fcl-BAuNlvTV.js +0 -1
- package/dist/assets/flowDiagram-HODETNUW-C3s_OghW.js +0 -1
- package/dist/assets/forth-DrZE71Jy.js +0 -1
- package/dist/assets/fortran-DTMl8J_7.js +0 -1
- package/dist/assets/ganttDiagram-EL5Y4UJY-Fxr8qnn6.js +0 -292
- package/dist/assets/gas-C05ow7k1.js +0 -1
- package/dist/assets/gherkin-MY0AvnMW.js +0 -1
- package/dist/assets/gitGraph-4MIJSDKK-CaHgTKXm.js +0 -1
- package/dist/assets/gitGraphDiagram-WWUBYQGX-DZdZOv4c.js +0 -106
- package/dist/assets/graphlib-CcZRqhff.js +0 -1
- package/dist/assets/groovy-DyP1Fpyw.js +0 -1
- package/dist/assets/haskell-Bo1ZIvh5.js +0 -1
- package/dist/assets/haxe-DRLWKgjc.js +0 -1
- package/dist/assets/heartbeats-CvEO7-H9.js +0 -1
- package/dist/assets/http-UMnO1pa3.js +0 -1
- package/dist/assets/idl-D1SpNDuX.js +0 -1
- package/dist/assets/index-DAL4r-07.js +0 -743
- package/dist/assets/index-DMnW_oKd.css +0 -1
- package/dist/assets/info-A6RAGUB7-Cz6qDQwi.js +0 -1
- package/dist/assets/init-y2Fo_kt5.js +0 -1
- package/dist/assets/input-B5MAXq4y.js +0 -1
- package/dist/assets/ishikawaDiagram-5VMMS53U-DJmyo96V.js +0 -70
- package/dist/assets/javascript-Dpv-sTo5.js +0 -1
- package/dist/assets/journeyDiagram-3NMN7TZE-Ba8gXlko.js +0 -139
- package/dist/assets/julia-xNPhGaGn.js +0 -1
- package/dist/assets/kanban-definition-UXKFOSKX-D0VnXXdB.js +0 -89
- package/dist/assets/katex-CX1jT6nm.js +0 -257
- package/dist/assets/label-C3dXM7kq.js +0 -5
- package/dist/assets/line-LJDy1sKx.js +0 -1
- package/dist/assets/linear-OCaJevt3.js +0 -1
- package/dist/assets/livescript-zjWWle_Z.js +0 -1
- package/dist/assets/lua-5dyAxH4Z.js +0 -1
- package/dist/assets/mathematica-CRuBwcU2.js +0 -1
- package/dist/assets/mbox-BvIJCs03.js +0 -1
- package/dist/assets/mention-chips-cDedVg4e.js +0 -17
- package/dist/assets/mermaid-parser.core-CQEYnCr6.js +0 -7
- package/dist/assets/mermaid.core-BTrfiQpo.js +0 -42
- package/dist/assets/mindmap-definition-YA3MSWOX-DgP2SUGK.js +0 -96
- package/dist/assets/minus-ChIPJ-_O.js +0 -1
- package/dist/assets/mirc-WDl4E_V9.js +0 -1
- package/dist/assets/mllike-YIlOgzvN.js +0 -1
- package/dist/assets/model-C7Gtly3i.js +0 -1
- package/dist/assets/modelica-B5lJKsMe.js +0 -1
- package/dist/assets/mscgen-CINNGGuz.js +0 -1
- package/dist/assets/mumps-Dk8iJohU.js +0 -1
- package/dist/assets/nginx-xWbMltqE.js +0 -1
- package/dist/assets/ntriples-BJmuWkiw.js +0 -1
- package/dist/assets/octave-CXDj0uyJ.js +0 -1
- package/dist/assets/ordinal-BbH5k6M-.js +0 -1
- package/dist/assets/oz-CqyT75hx.js +0 -1
- package/dist/assets/packet-AYTQ26CC-BMHPsXzT.js +0 -1
- package/dist/assets/pascal-D4V8WzY2.js +0 -1
- package/dist/assets/path-B-366Oci.js +0 -1
- package/dist/assets/perl-uhCCAAVy.js +0 -1
- package/dist/assets/pie-WAS4IAKB-pGOSxw8H.js +0 -1
- package/dist/assets/pieDiagram-E7YTZNPT-BG5RrRld.js +0 -39
- package/dist/assets/pig-BbLsR4pf.js +0 -1
- package/dist/assets/powershell-BUvok8HH.js +0 -1
- package/dist/assets/preload-helper-BATLnrmA.js +0 -1
- package/dist/assets/prod-D9EwR80O.js +0 -495
- package/dist/assets/properties-S0qkYrRb.js +0 -1
- package/dist/assets/protobuf-DxFWsHLN.js +0 -1
- package/dist/assets/pug-BuNNmWOl.js +0 -1
- package/dist/assets/puppet-BLE7Ro_J.js +0 -1
- package/dist/assets/python-m4uYbAuQ.js +0 -1
- package/dist/assets/q-pnYhjEv1.js +0 -1
- package/dist/assets/quadrantDiagram-AXDQQJYC-C6TD9oPd.js +0 -7
- package/dist/assets/r-Bpos9fnB.js +0 -1
- package/dist/assets/radar-RG4KPBEZ-BD6q6RIL.js +0 -1
- package/dist/assets/railroad-74A4TZTK-CAEU8Viw.js +0 -1
- package/dist/assets/railroad-abnf-HS5TGJTU-B-EHz-28.js +0 -1
- package/dist/assets/railroad-ebnf-LZEXJU2U-DN2YlJ2m.js +0 -1
- package/dist/assets/railroad-peg-WCYAUIDC-DGF2WcUd.js +0 -1
- package/dist/assets/requirementDiagram-BXWQKSXE-DvtkJsyN.js +0 -84
- package/dist/assets/rolldown-runtime-BQ-vy_Pv.js +0 -1
- package/dist/assets/rough.esm-CSuoPZ5o.js +0 -1
- package/dist/assets/router-BOdzPyui.js +0 -15
- package/dist/assets/rpm-CSlbpSDJ.js +0 -1
- package/dist/assets/ruby-B_MU5FGb.js +0 -1
- package/dist/assets/runtime-BQOZ45Xl.js +0 -4137
- package/dist/assets/sankeyDiagram-P5KCCOFB-DwzeHjbs.js +0 -40
- package/dist/assets/sas-DGRGofQt.js +0 -1
- package/dist/assets/scheme-6o3npgZL.js +0 -1
- package/dist/assets/select-BF8ejJ2O.js +0 -1
- package/dist/assets/sequenceDiagram-WJ2MYXX4-BMwJnN_3.js +0 -162
- package/dist/assets/shell-B_MNADuE.js +0 -1
- package/dist/assets/sieve-QxZfwjiW.js +0 -1
- package/dist/assets/simple-mode-Dt5axubo.js +0 -1
- package/dist/assets/sizeCapture-INFHLROL-DcFjDF0H.js +0 -1
- package/dist/assets/skeleton-doHoWUyP.js +0 -1
- package/dist/assets/smalltalk-DQ4VSJkY.js +0 -1
- package/dist/assets/solr-BSz0AZOi.js +0 -1
- package/dist/assets/sparql-Ba6wVavx.js +0 -1
- package/dist/assets/spreadsheet-DiqxJV4y.js +0 -1
- package/dist/assets/sql-YkF1z3DZ.js +0 -1
- package/dist/assets/src-VN6SNed8.js +0 -1
- package/dist/assets/stateDiagram-v2-MP3YSRHH-BqqLY1lJ.js +0 -1
- package/dist/assets/stex-CsQikr8H.js +0 -1
- package/dist/assets/stylus-Cqzo5uS7.js +0 -1
- package/dist/assets/swift-DFCua_GN.js +0 -1
- package/dist/assets/swimlanes-42K2YHIH-Cf8mWlMT.js +0 -1
- package/dist/assets/swimlanesDiagram-VR7AAH4N-B3Tm1YCa.js +0 -8
- package/dist/assets/tabs-me9ALDrS.js +0 -1
- package/dist/assets/tcl-CnSuC1oG.js +0 -1
- package/dist/assets/textile-D_DpZr83.js +0 -1
- package/dist/assets/tiddlywiki-bEePZ2Ra.js +0 -1
- package/dist/assets/tiki-BsiOUmcZ.js +0 -1
- package/dist/assets/timeline-definition-24CTP7MA-CtYtv1Lh.js +0 -120
- package/dist/assets/toml-Cr58a6NH.js +0 -1
- package/dist/assets/treeView-Q6P3EWNA-CAXVTxJU.js +0 -1
- package/dist/assets/treemap-WGGIJYW6-DalCeSvh.js +0 -1
- package/dist/assets/troff-8UDMOo-3.js +0 -1
- package/dist/assets/ttcn-CYYHMuI4.js +0 -1
- package/dist/assets/ttcn-cfg-GPY3QPal.js +0 -1
- package/dist/assets/turtle-DzlWuZvW.js +0 -1
- package/dist/assets/use-adapter-capabilities-puMjEC1q.js +0 -1
- package/dist/assets/vb-LZAplkc9.js +0 -1
- package/dist/assets/vbscript-CiHBNs7b.js +0 -1
- package/dist/assets/velocity-Z2yLaCKG.js +0 -1
- package/dist/assets/vennDiagram-4TSXK5OY-BaO9UVSs.js +0 -34
- package/dist/assets/verilog-BdGaR9ZS.js +0 -1
- package/dist/assets/vhdl-DxqozbPM.js +0 -1
- package/dist/assets/wardley-WFR3VGLG-9Q2tkeHl.js +0 -1
- package/dist/assets/wardleyDiagram-VM6X3IG4-BxCub2kp.js +0 -78
- package/dist/assets/webidl-BNiC0yJq.js +0 -1
- package/dist/assets/xquery-kQB9s-mX.js +0 -1
- package/dist/assets/xychartDiagram-S5SC5T6Z-BH8mT-UV.js +0 -7
- package/dist/assets/yacas-Dw-sAHuw.js +0 -1
- package/dist/assets/z80-B8w_N1kM.js +0 -1
- package/dist/assets/zap-RyxHXn8C.js +0 -41
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var ot=Object.defineProperty;var o=(i,h)=>ot(i,"name",{value:h,configurable:!0});import{i as _e}from"./rolldown-runtime-ZpX3ckPj.js";import{Gr as dt,Jr as lt,Kr as ct,L as J,M,S as Ie,T as m,U as ut,Y as v,fr as qe,pr as S,x as mt}from"./createLucideIcon-DNYM09J7.js";import{i as z,n as B,r as pt,t as te}from"./tabs-DBs-axwT.js";import{r as gt,t as xt}from"./EmptyState-B-rETwdA.js";import{t as ht}from"./chevron-down-BWLTC8P1.js";import{t as bt}from"./chevron-right-CofOASex.js";import{t as vt}from"./button-Ch-88g_s.js";import{t as yt}from"./AgentIdentity-zREyjorM.js";import{i as _,o as $,r as F,s as L,t as q}from"./card-Bf_YmROq.js";import{t as se}from"./PageSkeleton-C6uhSaT_.js";import{C as De,Cn as re,D as Ae,E as ft,Kn as jt,Ln as ne,O as Fe,Rn as ie,S as Nt,T as Ct,Wn as oe,b as wt,k as N,qt as kt,tn as Ke,vt as Tt,w as Ee,x as St,yt as ae}from"./index-ChaaJ8xT.js";var l=_e(lt(),1),e=_e(ct(),1),Bt="__none__";function Mt(){const i=new Date,h=i.getDay(),y=h===0?-6:1-h,u=new Date(i.getFullYear(),i.getMonth(),i.getDate()+y,0,0,0,0),f=new Date(u.getFullYear(),u.getMonth(),u.getDate()+6,23,59,59,999);return{from:u.toISOString(),to:f.toISOString()}}o(Mt,"currentWeekRange");function Pt({provider:i,rows:h}){const y=h.reduce((f,b)=>f+b.inputTokens+b.cachedInputTokens+b.outputTokens,0),u=h.reduce((f,b)=>f+b.costCents,0);return(0,e.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("span",{children:J(i)}),(0,e.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:M(y)}),(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:m(u)})]})}o(Pt,"ProviderTabLabel");function It({biller:i,rows:h}){const y=h.reduce((f,b)=>f+b.inputTokens+b.cachedInputTokens+b.outputTokens,0),u=h.reduce((f,b)=>f+b.costCents,0);return(0,e.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("span",{children:J(i)}),(0,e.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:M(y)}),(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:m(u)})]})}o(It,"BillerTabLabel");function C({label:i,value:h,subtitle:y,icon:u}){return(0,e.jsx)(q,{className:"block p-4",children:(0,e.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsx)("div",{className:"text-(length:--text-micro) uppercase tracking-(--tracking-eyebrow) text-muted-foreground",children:i}),(0,e.jsx)("div",{className:"mt-2 text-2xl font-semibold tabular-nums",children:h}),(0,e.jsx)("div",{className:"mt-1 text-xs leading-5 text-muted-foreground",children:y})]}),(0,e.jsx)("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md border border-border",children:(0,e.jsx)(u,{className:"h-4 w-4 text-muted-foreground"})})]})})}o(C,"MetricTile");function Re({debitCents:i,creditCents:h,netCents:y,estimatedDebitCents:u,eventCount:f}){return(0,e.jsxs)(q,{children:[(0,e.jsxs)($,{className:"px-5 pt-5 pb-2",children:[(0,e.jsx)(L,{className:"text-base",children:"Finance ledger"}),(0,e.jsx)(_,{children:"Account-level charges that do not map to a single inference request."})]}),(0,e.jsxs)(F,{className:"grid gap-3 px-5 pb-5 pt-2 sm:grid-cols-2 xl:grid-cols-4",children:[(0,e.jsx)(C,{label:"Debits",value:m(i),subtitle:`${f} total event${f===1?"":"s"} in range`,icon:oe}),(0,e.jsx)(C,{label:"Credits",value:m(h),subtitle:"Refunds, offsets, and credit returns",icon:jt}),(0,e.jsx)(C,{label:"Net",value:m(y),subtitle:"Debit minus credit for the selected period",icon:re}),(0,e.jsx)(C,{label:"Estimated",value:m(u),subtitle:"Estimated debits that are not yet invoice-authoritative",icon:ie})]})]})}o(Re,"FinanceSummaryCard");function zt(){const{selectedCompanyId:i}=ut(),{setBreadcrumbs:h}=gt(),y=dt(),[u,f]=(0,l.useState)("overview"),[b,de]=(0,l.useState)("all"),[O,le]=(0,l.useState)("all"),{preset:K,setPreset:$e,customFrom:Le,setCustomFrom:Oe,customTo:We,setCustomTo:ze,from:g,to:x,customReady:D}=Nt();(0,l.useEffect)(()=>{h([{label:"Costs"}])},[h]);const[Qe,Ye]=(0,l.useState)(()=>new Date().toDateString()),X=(0,l.useRef)(null);(0,l.useEffect)(()=>{const t=o(()=>{const s=new Date,n=new Date(s.getFullYear(),s.getMonth(),s.getDate()+1).getTime()-s.getTime();X.current=setTimeout(()=>{Ye(new Date().toDateString()),t()},n)},"schedule");return t(),()=>{X.current!=null&&clearTimeout(X.current)}},[]);const P=(0,l.useMemo)(()=>Mt(),[Qe]),d=i??Bt,{data:A,isLoading:Ue,error:ce}=S({queryKey:v.budgets.overview(d),queryFn:o(()=>ae.overview(d),"queryFn"),enabled:!!i&&D,refetchInterval:3e4,staleTime:5e3}),ue=o(()=>{i&&(y.invalidateQueries({queryKey:v.budgets.overview(i)}),y.invalidateQueries({queryKey:v.dashboard(i)}),y.invalidateQueries({queryKey:v.agents.list(i)}),y.invalidateQueries({queryKey:v.projects.all(i)}))},"invalidateBudgetViews"),me=qe({mutationFn:o(t=>ae.upsertPolicy(d,{scopeType:t.scopeType,scopeId:t.scopeId,amount:t.amount,windowKind:t.windowKind}),"mutationFn"),onSuccess:ue}),E=qe({mutationFn:o(t=>ae.resolveIncident(d,t.incidentId,t),"mutationFn"),onSuccess:ue}),{data:a,isLoading:Ve,error:He}=S({queryKey:v.costs(d,g||void 0,x||void 0),queryFn:o(async()=>{const[t,s,n,r]=await Promise.all([N.summary(d,g||void 0,x||void 0),N.byAgent(d,g||void 0,x||void 0),N.byProject(d,g||void 0,x||void 0),N.byAgentModel(d,g||void 0,x||void 0)]);return{summary:t,byAgent:s,byProject:n,byAgentModel:r}},"queryFn"),enabled:!!i&&D}),{data:p,isLoading:pe,error:Z}=S({queryKey:[v.financeSummary(d,g||void 0,x||void 0),v.financeByBiller(d,g||void 0,x||void 0),v.financeByKind(d,g||void 0,x||void 0),v.financeEvents(d,g||void 0,x||void 0,18)],queryFn:o(async()=>{const[t,s,n,r]=await Promise.all([N.financeSummary(d,g||void 0,x||void 0),N.financeByBiller(d,g||void 0,x||void 0),N.financeByKind(d,g||void 0,x||void 0),N.financeEvents(d,g||void 0,x||void 0,18)]);return{summary:t,byBiller:s,byKind:n,events:r}},"queryFn"),enabled:!!i&&D}),[Ge,ge]=(0,l.useState)(new Set);(0,l.useEffect)(()=>{ge(new Set)},[d,g,x]);function Je(t){ge(s=>{const n=new Set(s);return n.has(t)?n.delete(t):n.add(t),n})}o(Je,"toggleAgent");const Xe=(0,l.useMemo)(()=>{const t=new Map;for(const s of a?.byAgentModel??[]){const n=t.get(s.agentId)??[];n.push(s),t.set(s.agentId,n)}for(const[s,n]of t)t.set(s,n.slice().sort((r,c)=>c.costCents-r.costCents));return t},[a?.byAgentModel]),{data:Q}=S({queryKey:v.usageByProvider(d,g||void 0,x||void 0),queryFn:o(()=>N.byProvider(d,g||void 0,x||void 0),"queryFn"),enabled:!!i&&D&&(u==="providers"||u==="billers"),refetchInterval:3e4,staleTime:1e4}),{data:xe}=S({queryKey:v.usageByBiller(d,g||void 0,x||void 0),queryFn:o(()=>N.byBiller(d,g||void 0,x||void 0),"queryFn"),enabled:!!i&&D&&u==="billers",refetchInterval:3e4,staleTime:1e4}),{data:he}=S({queryKey:v.usageByProvider(d,P.from,P.to),queryFn:o(()=>N.byProvider(d,P.from,P.to),"queryFn"),enabled:!!i&&(u==="providers"||u==="billers"),refetchInterval:3e4,staleTime:1e4}),{data:be}=S({queryKey:v.usageByBiller(d,P.from,P.to),queryFn:o(()=>N.byBiller(d,P.from,P.to),"queryFn"),enabled:!!i&&u==="billers",refetchInterval:3e4,staleTime:1e4}),{data:ve}=S({queryKey:v.usageWindowSpend(d),queryFn:o(()=>N.windowSpend(d),"queryFn"),enabled:!!i&&u==="providers",refetchInterval:3e4,staleTime:1e4}),{data:R,isLoading:ye}=S({queryKey:v.usageQuotaWindows(d),queryFn:o(()=>N.quotaWindows(d),"queryFn"),enabled:!!i&&u==="providers",refetchInterval:3e5,staleTime:6e4}),w=(0,l.useMemo)(()=>{const t=new Map;for(const s of Q??[]){const n=t.get(s.provider)??[];n.push(s),t.set(s.provider,n)}return t},[Q]),T=(0,l.useMemo)(()=>{const t=new Map;for(const s of xe??[]){const n=t.get(s.biller)??[];n.push(s),t.set(s.biller,n)}return t},[xe]),fe=(0,l.useMemo)(()=>{const t=new Map;for(const s of he??[])t.set(s.provider,(t.get(s.provider)??0)+s.costCents);return t},[he]),je=(0,l.useMemo)(()=>{const t=new Map;for(const s of be??[])t.set(s.biller,(t.get(s.biller)??0)+s.costCents);return t},[be]),Ne=(0,l.useMemo)(()=>{const t=new Map;for(const s of ve??[]){const n=t.get(s.provider)??[];n.push(s),t.set(s.provider,n)}return t},[ve]),Ce=(0,l.useMemo)(()=>{const t=new Map;for(const s of R??[])s.ok&&s.windows.length>0&&t.set(s.provider,s.windows);return t},[R]),we=(0,l.useMemo)(()=>{const t=new Map;for(const s of R??[])!s.ok&&s.error&&t.set(s.provider,s.error);return t},[R]),ke=(0,l.useMemo)(()=>{const t=new Map;for(const s of R??[])typeof s.source=="string"&&s.source.length>0&&t.set(s.provider,s.source);return t},[R]),Te=(0,l.useMemo)(()=>{const t=new Map;if(K!=="mtd")return t;const s=a?.summary.budgetCents??0;if(s<=0)return t;const n=a?.summary.spendCents??0,r=new Date,c=r.getDate(),k=new Date(r.getFullYear(),r.getMonth()+1,0).getDate();for(const[j,nt]of w){const ee=nt.reduce((rt,it)=>rt+it.costCents,0),Pe=s*(n>0?ee/n:0);if(Pe<=0){t.set(j,!1);continue}const at=ee/Math.max(c,1);t.set(j,ee+at*(k-c)>Pe)}return t},[K,a,w]),Y=(0,l.useMemo)(()=>Array.from(w.keys()),[w]),U=(0,l.useMemo)(()=>Array.from(T.keys()),[T]),V=b==="all"||Y.includes(b)?b:"all";(0,l.useEffect)(()=>{V!==b&&de("all")},[V,b]);const H=O==="all"||U.includes(O)?O:"all";(0,l.useEffect)(()=>{H!==O&&le("all")},[H,O]);const Ze=(0,l.useMemo)(()=>{const t=Array.from(w.keys()),s=t.reduce((r,c)=>r+(w.get(c)?.reduce((k,j)=>k+j.inputTokens+j.cachedInputTokens+j.outputTokens,0)??0),0),n=t.reduce((r,c)=>r+(w.get(c)?.reduce((k,j)=>k+j.costCents,0)??0),0);return[{value:"all",label:(0,e.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("span",{children:"All providers"}),t.length>0?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:M(s)}),(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:m(n)})]}):null]})},...t.map(r=>({value:r,label:(0,e.jsx)(Pt,{provider:r,rows:w.get(r)??[]})}))]},[w]),et=(0,l.useMemo)(()=>{const t=Array.from(T.keys()),s=t.reduce((r,c)=>r+(T.get(c)?.reduce((k,j)=>k+j.inputTokens+j.cachedInputTokens+j.outputTokens,0)??0),0),n=t.reduce((r,c)=>r+(T.get(c)?.reduce((k,j)=>k+j.costCents,0)??0),0);return[{value:"all",label:(0,e.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("span",{children:"All billers"}),t.length>0?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:M(s)}),(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:m(n)})]}):null]})},...t.map(r=>({value:r,label:(0,e.jsx)(It,{biller:r,rows:T.get(r)??[]})}))]},[T]),Se=(a?.byAgent??[]).reduce((t,s)=>t+s.inputTokens+s.cachedInputTokens+s.outputTokens,0),Be=p?.events??[],W=A?.policies??[],I=A?.activeIncidents??[],tt=(0,l.useMemo)(()=>({company:W.filter(t=>t.scopeType==="company"),agent:W.filter(t=>t.scopeType==="agent"),project:W.filter(t=>t.scopeType==="project")}),[W]);if(!i)return(0,e.jsx)(xt,{icon:ne,message:"Select a company to view costs."});const G=K==="custom"&&!D,st=(Ve||pe)&&D,Me=He??Z;return(0,e.jsxs)("div",{className:"space-y-6",children:[(0,e.jsxs)("div",{className:"space-y-5",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h1",{className:"text-3xl font-semibold tracking-tight",children:"Costs"}),(0,e.jsx)("p",{className:"mt-2 max-w-2xl text-sm leading-6 text-muted-foreground",children:"Inference spend, platform fees, credits, and live quota windows."})]}),(0,e.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:wt.map(t=>(0,e.jsx)(vt,{variant:K===t?"secondary":"ghost",size:"sm",onClick:o(()=>$e(t),"onClick"),"aria-pressed":K===t,children:St[t]},t))})]}),K==="custom"?(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2 border border-border p-3",children:[(0,e.jsx)("input",{type:"date",value:Le,onChange:o(t=>Oe(t.target.value),"onChange"),className:"h-9 rounded-md border border-input bg-background px-3 text-sm text-foreground"}),(0,e.jsx)("span",{className:"text-sm text-muted-foreground",children:"to"}),(0,e.jsx)("input",{type:"date",value:We,onChange:o(t=>ze(t.target.value),"onChange"),className:"h-9 rounded-md border border-input bg-background px-3 text-sm text-foreground"})]}):null,(0,e.jsxs)("div",{className:"grid gap-3 lg:grid-cols-4",children:[(0,e.jsx)(C,{label:"Inference spend",value:m(a?.summary.spendCents??0),subtitle:`${M(Se)} tokens across request-scoped events`,icon:ne}),(0,e.jsx)(C,{label:"Budget",value:I.length>0?String(I.length):a?.summary.budgetCents&&a.summary.budgetCents>0?`${a.summary.utilizationPercent}%`:"Open",subtitle:I.length>0?`${A?.pausedAgentCount??0} agents paused · ${A?.pausedProjectCount??0} projects paused`:a?.summary.budgetCents&&a.summary.budgetCents>0?`${m(a.summary.spendCents)} of ${m(a.summary.budgetCents)}`:"No monthly cap configured",icon:ie}),(0,e.jsx)(C,{label:"Finance net",value:m(p?.summary.netCents??0),subtitle:`${m(p?.summary.debitCents??0)} debits · ${m(p?.summary.creditCents??0)} credits`,icon:re}),(0,e.jsx)(C,{label:"Finance events",value:String(p?.summary.eventCount??0),subtitle:`${m(p?.summary.estimatedDebitCents??0)} estimated in range`,icon:oe})]})]}),(0,e.jsxs)(te,{value:u,onValueChange:o(t=>f(t),"onValueChange"),children:[(0,e.jsxs)(pt,{variant:"line",className:"justify-start",children:[(0,e.jsx)(z,{value:"overview",children:"Overview"}),(0,e.jsx)(z,{value:"budgets",children:"Budgets"}),(0,e.jsx)(z,{value:"providers",children:"Providers"}),(0,e.jsx)(z,{value:"billers",children:"Billers"}),(0,e.jsx)(z,{value:"finance",children:"Finance"})]}),(0,e.jsx)(B,{value:"overview",className:"mt-4 space-y-4",children:G?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select a start and end date to load data."}):st?(0,e.jsx)(se,{variant:"costs"}):Me?(0,e.jsx)("p",{className:"text-sm text-destructive",children:Me.message}):(0,e.jsxs)(e.Fragment,{children:[I.length>0?(0,e.jsx)("div",{className:"grid gap-4 xl:grid-cols-2",children:I.slice(0,2).map(t=>(0,e.jsx)(Ae,{incident:t,isMutating:E.isPending,onKeepPaused:o(()=>E.mutate({incidentId:t.id,action:"keep_paused"}),"onKeepPaused"),onRaiseAndResume:o(s=>E.mutate({incidentId:t.id,action:"raise_budget_and_resume",amount:s}),"onRaiseAndResume")},t.id))}):null,(0,e.jsxs)("div",{className:"grid gap-4 xl:grid-cols-(--gtc-31)",children:[(0,e.jsxs)(q,{children:[(0,e.jsxs)($,{className:"px-5 pt-5 pb-2",children:[(0,e.jsx)(L,{className:"text-base",children:"Inference ledger"}),(0,e.jsx)(_,{children:"Request-scoped inference spend for the selected period."})]}),(0,e.jsxs)(F,{className:"space-y-4 px-5 pb-5 pt-2",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-3",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-3xl font-semibold tabular-nums",children:m(a?.summary.spendCents??0)}),(0,e.jsx)("div",{className:"mt-1 text-sm text-muted-foreground",children:a?.summary.budgetCents&&a.summary.budgetCents>0?`Budget ${m(a.summary.budgetCents)}`:"Unlimited budget"})]}),(0,e.jsxs)("div",{className:"border border-border px-4 py-3 text-right",children:[(0,e.jsx)("div",{className:"text-(length:--text-micro) uppercase tracking-(--tracking-eyebrow) text-muted-foreground",children:"usage"}),(0,e.jsx)("div",{className:"mt-1 text-lg font-medium tabular-nums",children:M(Se)})]})]}),a?.summary.budgetCents&&a.summary.budgetCents>0?(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsx)("div",{className:"h-2 overflow-hidden bg-muted",children:(0,e.jsx)("div",{className:Ie("h-full transition-(--tp-width-background-color) duration-150",a.summary.utilizationPercent>90?"bg-(--status-task-blocked)":a.summary.utilizationPercent>70?"bg-(--status-task-todo)":"bg-(--status-task-done)"),style:{width:`${Math.min(100,a.summary.utilizationPercent)}%`}})}),(0,e.jsxs)("div",{className:"text-xs text-muted-foreground",children:[a.summary.utilizationPercent,"% of monthly budget consumed in this range."]})]}):null]})]}),(0,e.jsx)(Re,{debitCents:p?.summary.debitCents??0,creditCents:p?.summary.creditCents??0,netCents:p?.summary.netCents??0,estimatedDebitCents:p?.summary.estimatedDebitCents??0,eventCount:p?.summary.eventCount??0})]}),(0,e.jsxs)("div",{className:"grid gap-4 xl:grid-cols-(--gtc-32)",children:[(0,e.jsxs)(q,{children:[(0,e.jsxs)($,{className:"px-5 pt-5 pb-2",children:[(0,e.jsx)(L,{className:"text-base",children:"By agent"}),(0,e.jsx)(_,{children:"What each agent consumed in the selected period."})]}),(0,e.jsx)(F,{className:"space-y-2 px-5 pb-5 pt-2",children:(a?.byAgent.length??0)===0?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"No cost events yet."}):a?.byAgent.map(t=>{const s=Xe.get(t.agentId)??[],n=Ge.has(t.agentId),r=s.length>0;return(0,e.jsxs)("div",{className:"border border-border px-4 py-3",children:[(0,e.jsxs)("div",{className:Ie("flex items-start justify-between gap-3",r?"cursor-pointer select-none":""),onClick:o(()=>r&&Je(t.agentId),"onClick"),children:[(0,e.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[r?n?(0,e.jsx)(ht,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):(0,e.jsx)(bt,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):(0,e.jsx)("span",{className:"h-3 w-3 shrink-0"}),(0,e.jsx)(yt,{agent:{id:t.agentId,name:t.agentName??t.agentId,appearance:t.agentAppearance},size:"sm"}),t.agentStatus==="terminated"?(0,e.jsx)(kt,{status:"terminated"}):null]}),(0,e.jsxs)("div",{className:"text-right text-sm tabular-nums",children:[(0,e.jsx)("div",{className:"font-medium",children:m(t.costCents)}),(0,e.jsxs)("div",{className:"text-xs text-muted-foreground",children:["in ",M(t.inputTokens+t.cachedInputTokens)," · out ",M(t.outputTokens)]}),t.apiRunCount>0||t.subscriptionRunCount>0?(0,e.jsxs)("div",{className:"text-xs text-muted-foreground",children:[t.apiRunCount>0?`${t.apiRunCount} api`:"0 api"," · ",t.subscriptionRunCount>0?`${t.subscriptionRunCount} subscription`:"0 subscription"]}):null]})]}),n&&s.length>0?(0,e.jsx)("div",{className:"mt-3 space-y-2 border-l border-border pl-4",children:s.map(c=>{const k=t.costCents>0?Math.round(c.costCents/t.costCents*100):0;return(0,e.jsxs)("div",{className:"flex items-start justify-between gap-3 text-xs",children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"truncate font-medium text-foreground",children:[J(c.provider),(0,e.jsx)("span",{className:"mx-1 text-border",children:"/"}),(0,e.jsx)("span",{className:"font-mono",children:c.model})]}),(0,e.jsxs)("div",{className:"truncate text-muted-foreground",children:[J(c.biller)," · ",mt(c.billingType)]})]}),(0,e.jsxs)("div",{className:"text-right tabular-nums",children:[(0,e.jsxs)("div",{className:"font-medium",children:[m(c.costCents),(0,e.jsxs)("span",{className:"ml-1 font-normal text-muted-foreground",children:["(",k,"%)"]})]}),(0,e.jsxs)("div",{className:"text-muted-foreground",children:[M(c.inputTokens+c.cachedInputTokens+c.outputTokens)," tok"]})]})]},`${c.provider}:${c.model}:${c.billingType}`)})}):null]},t.agentId)})})]}),(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)(q,{children:[(0,e.jsxs)($,{className:"px-5 pt-5 pb-2",children:[(0,e.jsx)(L,{className:"text-base",children:"By project"}),(0,e.jsx)(_,{children:"Run costs attributed through project-linked tasks."})]}),(0,e.jsx)(F,{className:"space-y-2 px-5 pb-5 pt-2",children:(a?.byProject.length??0)===0?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"No project-attributed run costs yet."}):a?.byProject.map((t,s)=>(0,e.jsxs)("div",{className:"flex items-center justify-between gap-3 border border-border px-3 py-2 text-sm",children:[(0,e.jsx)("span",{className:"truncate",children:t.projectName??t.projectId??"Unattributed"}),(0,e.jsx)("span",{className:"font-medium tabular-nums",children:m(t.costCents)})]},t.projectId??`unattributed-${s}`))})]}),(0,e.jsx)(Ee,{rows:Be.slice(0,6),emptyMessage:"No finance events yet. Add account-level charges once biller invoices or credits land."})]})]})]})}),(0,e.jsx)(B,{value:"budgets",className:"mt-4 space-y-4",children:Ue?(0,e.jsx)(se,{variant:"costs"}):ce?(0,e.jsx)("p",{className:"text-sm text-destructive",children:ce.message}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(q,{className:"border-border/70 bg-(image:--gradient-extract-2)",children:[(0,e.jsxs)($,{className:"px-5 pt-5 pb-3",children:[(0,e.jsx)(L,{className:"text-base",children:"Budget control plane"}),(0,e.jsx)(_,{children:"Hard-stop spend limits for agents and projects. Provider subscription quota stays separate and appears under Providers."})]}),(0,e.jsxs)(F,{className:"grid gap-3 px-5 pb-5 pt-0 md:grid-cols-4",children:[(0,e.jsx)(C,{label:"Active incidents",value:String(I.length),subtitle:"Open soft or hard threshold crossings",icon:re}),(0,e.jsx)(C,{label:"Pending approvals",value:String(A?.pendingApprovalCount??0),subtitle:"Budget override approvals awaiting board action",icon:oe}),(0,e.jsx)(C,{label:"Paused agents",value:String(A?.pausedAgentCount??0),subtitle:"Agent heartbeats blocked by budget",icon:ie}),(0,e.jsx)(C,{label:"Paused projects",value:String(A?.pausedProjectCount??0),subtitle:"Project execution blocked by budget",icon:ne})]})]}),I.length>0?(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold",children:"Active incidents"}),(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Resolve hard stops here by raising the budget or explicitly keeping the scope paused."})]}),(0,e.jsx)("div",{className:"grid gap-4 xl:grid-cols-2",children:I.map(t=>(0,e.jsx)(Ae,{incident:t,isMutating:E.isPending,onKeepPaused:o(()=>E.mutate({incidentId:t.id,action:"keep_paused"}),"onKeepPaused"),onRaiseAndResume:o(s=>E.mutate({incidentId:t.id,action:"raise_budget_and_resume",amount:s}),"onRaiseAndResume")},t.id))})]}):null,(0,e.jsxs)("div",{className:"space-y-5",children:[["company","agent","project"].map(t=>{const s=tt[t];return s.length===0?null:(0,e.jsxs)("section",{className:"space-y-3",children:[(0,e.jsxs)("div",{children:[(0,e.jsxs)("h2",{className:"text-lg font-semibold capitalize",children:[t," budgets"]}),(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:t==="company"?"Company-wide monthly policy.":t==="agent"?"Recurring monthly spend policies for individual agents.":"Lifetime spend policies for execution-bound projects."})]}),(0,e.jsx)("div",{className:"grid gap-4 xl:grid-cols-2",children:s.map(n=>(0,e.jsx)(Tt,{summary:n,isSaving:me.isPending,onSave:o(r=>me.mutate({scopeType:n.scopeType,scopeId:n.scopeId,amount:r,windowKind:n.windowKind}),"onSave")},n.policyId))})]},t)}),W.length===0?(0,e.jsx)(q,{children:(0,e.jsx)(F,{className:"px-5 py-8 text-sm text-muted-foreground",children:"No budget policies yet. Set agent and project budgets from their detail pages, or use the existing company monthly budget control."})}):null]})]})}),(0,e.jsx)(B,{value:"providers",className:"mt-4 space-y-4",children:G?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select a start and end date to load data."}):(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(te,{value:V,onValueChange:de,children:[(0,e.jsx)(Ke,{items:Ze,value:V}),(0,e.jsx)(B,{value:"all",className:"mt-4",children:Y.length===0?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"No cost events in this period."}):(0,e.jsx)("div",{className:"grid gap-4 md:grid-cols-2",children:Y.map(t=>(0,e.jsx)(De,{provider:t,rows:w.get(t)??[],budgetMonthlyCents:a?.summary.budgetCents??0,totalCompanySpendCents:a?.summary.spendCents??0,weekSpendCents:fe.get(t)??0,windowRows:Ne.get(t)??[],showDeficitNotch:Te.get(t)??!1,quotaWindows:Ce.get(t)??[],quotaError:we.get(t)??null,quotaSource:ke.get(t)??null,quotaLoading:ye},t))})}),Y.map(t=>(0,e.jsx)(B,{value:t,className:"mt-4",children:(0,e.jsx)(De,{provider:t,rows:w.get(t)??[],budgetMonthlyCents:a?.summary.budgetCents??0,totalCompanySpendCents:a?.summary.spendCents??0,weekSpendCents:fe.get(t)??0,windowRows:Ne.get(t)??[],showDeficitNotch:Te.get(t)??!1,quotaWindows:Ce.get(t)??[],quotaError:we.get(t)??null,quotaSource:ke.get(t)??null,quotaLoading:ye})},t))]})})}),(0,e.jsx)(B,{value:"billers",className:"mt-4 space-y-4",children:G?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select a start and end date to load data."}):(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(te,{value:H,onValueChange:le,children:[(0,e.jsx)(Ke,{items:et,value:H}),(0,e.jsx)(B,{value:"all",className:"mt-4",children:U.length===0?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"No billable events in this period."}):(0,e.jsx)("div",{className:"grid gap-4 md:grid-cols-2",children:U.map(t=>{const s=(T.get(t)??[])[0];if(!s)return null;const n=(Q??[]).filter(r=>r.biller===t);return(0,e.jsx)(Fe,{row:s,weekSpendCents:je.get(t)??0,budgetMonthlyCents:a?.summary.budgetCents??0,totalCompanySpendCents:a?.summary.spendCents??0,providerRows:n},t)})})}),U.map(t=>{const s=(T.get(t)??[])[0];if(!s)return null;const n=(Q??[]).filter(r=>r.biller===t);return(0,e.jsx)(B,{value:t,className:"mt-4",children:(0,e.jsx)(Fe,{row:s,weekSpendCents:je.get(t)??0,budgetMonthlyCents:a?.summary.budgetCents??0,totalCompanySpendCents:a?.summary.spendCents??0,providerRows:n})},t)})]})})}),(0,e.jsx)(B,{value:"finance",className:"mt-4 space-y-4",children:G?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select a start and end date to load data."}):pe?(0,e.jsx)(se,{variant:"costs"}):Z?(0,e.jsx)("p",{className:"text-sm text-destructive",children:Z.message}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Re,{debitCents:p?.summary.debitCents??0,creditCents:p?.summary.creditCents??0,netCents:p?.summary.netCents??0,estimatedDebitCents:p?.summary.estimatedDebitCents??0,eventCount:p?.summary.eventCount??0}),(0,e.jsxs)("div",{className:"grid gap-4 xl:grid-cols-(--gtc-33)",children:[(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)(q,{children:[(0,e.jsxs)($,{className:"px-5 pt-5 pb-2",children:[(0,e.jsx)(L,{className:"text-base",children:"By biller"}),(0,e.jsx)(_,{children:"Account-level financial events grouped by who charged or credited them."})]}),(0,e.jsx)(F,{className:"grid gap-4 px-5 pb-5 pt-2 md:grid-cols-2",children:(p?.byBiller.length??0)===0?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"No finance events yet."}):p?.byBiller.map(t=>(0,e.jsx)(ft,{row:t},t.biller))})]}),(0,e.jsx)(Ee,{rows:Be})]}),(0,e.jsx)(Ct,{rows:p?.byKind??[]})]})]})})]})]})}o(zt,"Costs");export{zt as Costs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var j=Object.defineProperty;var l=(e,a)=>j(e,"name",{value:a,configurable:!0});import{i as k}from"./rolldown-runtime-ZpX3ckPj.js";import{Jr as T,Kr as M,S as B,t as u}from"./createLucideIcon-DNYM09J7.js";import{A as x,T as N,j as P,k as w,t as E}from"./button-Ch-88g_s.js";var I=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],q=u("ban",I),D=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],p=u("circle-dashed",D),K=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],$=u("circle-dot",K),z=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],h=u("circle-minus",z),t=k(M(),1),A={sm:14,md:16,lg:20},F=u("TaskProgressSpinner",[["circle",{cx:"12",cy:"12",r:"10",pathLength:"100",strokeDasharray:"80 20",key:"progress"}]]),L={idle:x,backlog:p,todo:x,in_progress:F,in_review:$,done:P,blocked:h,cancelled:q,in_queue:h},U=p;function Q({status:e,size:a="md",className:r,title:s}){const n=A[a],i=L[e]??U,d=N[e]??"--status-task-icon-backlog",m=s?{role:"img","aria-label":s}:{"aria-hidden":!0};return(0,t.jsx)(i,{size:n,className:B("inline-block shrink-0 align-middle",e==="in_progress"&&"motion-safe:animate-spin",r),style:{color:`var(${d})`},...m,children:s?(0,t.jsx)("title",{children:s}):null})}l(Q,"StatusGlyph");var c=k(T(),1),y=(0,c.createContext)(null);function V(e,a){if(e===a)return!0;if(e.length!==a.length)return!1;for(let r=0;r<e.length;r+=1)if(e[r]?.label!==a[r]?.label||e[r]?.onClick!==a[r]?.onClick||e[r]?.href!==a[r]?.href||e[r]?.identifier!==a[r]?.identifier||e[r]?.leadingKey!==a[r]?.leadingKey||e[r]?.trailingKey!==a[r]?.trailingKey)return!1;return!0}l(V,"breadcrumbsEqual");function O(e,a){const r=e.length===0?[]:[...e].reverse().map(n=>n.label),s=a?.trim()?[a.trim()]:[];return[...r,...s,"Paperclip"].join(" • ")}l(O,"buildDocumentTitle");function R({children:e,companyName:a}){const[r,s]=(0,c.useState)([]),[n,i]=(0,c.useState)(null),[d,m]=(0,c.useState)(null),[f,v]=(0,c.useState)(null),g=(0,c.useCallback)(o=>{s(b=>V(b,o)?b:o)},[]),_=(0,c.useCallback)(o=>{v(o)},[]),C=(0,c.useCallback)(o=>{i(o)},[]),S=(0,c.useCallback)(o=>{m(o)},[]);return(0,c.useEffect)(()=>{document.title=O(r,a)},[r,a]),(0,t.jsx)(y.Provider,{value:{breadcrumbs:r,setBreadcrumbs:g,breadcrumbToolbar:n,setBreadcrumbToolbar:C,breadcrumbPanelControl:d,setBreadcrumbPanelControl:S,mobileToolbar:f,setMobileToolbar:_},children:e})}l(R,"BreadcrumbProvider");function W(){const e=(0,c.useContext)(y);if(!e)throw new Error("useBreadcrumbs must be used within BreadcrumbProvider");return e}l(W,"useBreadcrumbs");function Y({icon:e,title:a,message:r,description:s,action:n,onAction:i,hideActionIcon:d=!1}){return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[(0,t.jsx)("div",{className:"bg-muted/50 p-4 mb-4",children:(0,t.jsx)(e,{className:"h-10 w-10 text-muted-foreground/50"})}),a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-base font-semibold text-foreground mb-1.5",children:a}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-4 max-w-md",children:r})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm font-medium text-foreground mb-1",children:r}),s&&(0,t.jsx)("p",{className:"max-w-md text-sm text-muted-foreground mb-4",children:s})]}),n&&i&&(0,t.jsxs)(E,{onClick:i,children:[!d&&(0,t.jsx)(w,{className:"h-4 w-4 mr-1.5"}),n]})]})}l(Y,"EmptyState");export{h as a,q as c,Q as i,R as n,$ as o,W as r,p as s,Y as t};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-G_BSi0G0.js","assets/preload-helper-CceJXRIF.js","assets/chunk-Y2CYZVJY-OvsAdhaO.js","assets/src-Bssc388C.js","assets/rolldown-runtime-ZpX3ckPj.js","assets/chunk-DU6HZSFF-2P5iNHqg.js","assets/chunk-75Z2AOVW-BaPl5WA6.js","assets/dist-Cj4C2HPs.js","assets/chunk-PWAF6VOD-CR3rNBNB.js","assets/chunk-GMAD6QVW-BfvaaEBW.js","assets/chunk-P2QGCYS3-CjqEi3mx.js","assets/chunk-4HAMMTFA-CGGd_Pxz.js","assets/rough.esm-DnC5Tr1g.js","assets/chunk-GVQU2GXP-Cwp_Wpj2.js","assets/chunk-OSK3NFVY-DlrxddG-.js","assets/line-CJEZO7lL.js","assets/path-D6mommQw.js","assets/array-CL5Tisss.js","assets/graphlib-DHhK3saS.js","assets/chunk-L3NEJ4N5-JUd1UqX1.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var In=Object.defineProperty;var o=(e,t)=>In(e,"name",{value:t,configurable:!0});import{i as ke,n as An,t as ie}from"./rolldown-runtime-ZpX3ckPj.js";import{Gr as At,Jr as Pn,Kr as Ln,S as W,W as Rn,Y as Pt,pr as jn,rr as fe,t as Lt}from"./createLucideIcon-DNYM09J7.js";import{t as Tn}from"./preload-helper-CceJXRIF.js";import{C as Nn,V as _n,a as On,at as Rt,c as Dn,o as Fn,s as Mn,t as He}from"./router-CRA9PE43.js";import{A as tt,B as zn,C as Un,F as D,G as $n,I as _e,L as nt,M as We,O as jt,R as Bn,S as Tt,U as re,W as le,X as Z,Y as Ve,_ as ae,d as Hn,f as Wn,g as Vn,h as Kn,i as Nt,l as qn,m as Xn,p as Gn,q as B,r as Yn,u as Zn,v as Jn,w as Qn,z as er}from"./mention-chips-CP2xtZaa.js";import{b as tr,c as nr,d as rr,h as rt,i as _t,l as lr,m as or,n as ir,t as ar,u as Ot}from"./StatusIcon-B6nz5YWy.js";import{t as sr}from"./check-wtOgT3Rw.js";import{p as ur}from"./button-Ch-88g_s.js";import{i as cr,r as pr,t as fr}from"./clipboard-CFX36smB.js";import{t as dr}from"./external-link-g6kEjm-a.js";var hr=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],mr=Lt("file-code-corner",hr),gr=[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]],yr=Lt("text-wrap",gr);function J(e){const t=[];let n=-1,r=0,l=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(a===37&&le(e.charCodeAt(n+1))&&le(e.charCodeAt(n+2)))l=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(i=String.fromCharCode(a,s),l=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+l+1,i=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}o(J,"normalizeUri");var k=ke(Pn(),1),y=ke(Ln(),1);function wr(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}o(wr,"escapeStringRegexp");var Dt="paperclip.theme",kr="#18181b",vr="#ffffff",Ft=(0,k.createContext)(void 0);function br(){return typeof document>"u"||document.documentElement.classList.contains("dark")?"dark":"light"}o(br,"resolveThemeFromDocument");function xr(){if(typeof window>"u")return!1;try{const e=window.localStorage.getItem(Dt);return e==="light"||e==="dark"}catch{return!1}}o(xr,"hasStoredTheme");function Sr(e){if(typeof document>"u")return;const t=e==="dark",n=document.documentElement;n.classList.toggle("dark",t),n.style.colorScheme=t?"dark":"light";const r=document.querySelector('meta[name="theme-color"]');r instanceof HTMLMetaElement&&r.setAttribute("content",t?kr:vr)}o(Sr,"applyTheme");function Xa({children:e}){const[t,n]=(0,k.useState)(()=>br()),[r,l]=(0,k.useState)(()=>xr()),a=(0,k.useCallback)(c=>{l(!0),n(c)},[]),i=(0,k.useCallback)(()=>{l(!0),n(c=>c==="dark"?"light":"dark")},[]);(0,k.useEffect)(()=>{if(Sr(t),!!r)try{localStorage.setItem(Dt,t)}catch{}},[t,r]),(0,k.useEffect)(()=>{if(r||typeof window>"u"||typeof window.matchMedia!="function")return;const c=window.matchMedia("(prefers-color-scheme: dark)"),p=o(f=>{n(f.matches?"dark":"light")},"handleChange");return c.addEventListener("change",p),()=>c.removeEventListener("change",p)},[r]);const s=(0,k.useMemo)(()=>({theme:t,setTheme:a,toggleTheme:i}),[t,a,i]);return(0,y.jsx)(Ft.Provider,{value:s,children:e})}o(Xa,"ThemeProvider");function Cr(){const e=(0,k.useContext)(Ft);if(!e)throw new Error("useTheme must be used within ThemeProvider");return e}o(Cr,"useTheme");function Er(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}o(Er,"stringify$1");var Ir=/[ \t\n\f\r]/g;function Ar(e){return typeof e=="object"?e.type==="text"?lt(e.value):!1:lt(e)}o(Ar,"whitespace");function lt(e){return e.replace(Ir,"")===""}o(lt,"empty");var se=class{static{o(this,"Schema")}constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};se.prototype.normal={};se.prototype.property={};se.prototype.space=void 0;function Mt(e,t){const n={},r={};for(const l of e)Object.assign(n,l.property),Object.assign(r,l.normal);return new se(n,r,t)}o(Mt,"merge");function Oe(e){return e.toLowerCase()}o(Oe,"normalize$1");var F=class{static{o(this,"Info")}constructor(e,t){this.attribute=t,this.property=e}};F.prototype.attribute="";F.prototype.booleanish=!1;F.prototype.boolean=!1;F.prototype.commaOrSpaceSeparated=!1;F.prototype.commaSeparated=!1;F.prototype.defined=!1;F.prototype.mustUseProperty=!1;F.prototype.number=!1;F.prototype.overloadedBoolean=!1;F.prototype.property="";F.prototype.spaceSeparated=!1;F.prototype.space=void 0;var De=An({boolean:o(()=>E,"boolean"),booleanish:o(()=>_,"booleanish"),commaOrSpaceSeparated:o(()=>z,"commaOrSpaceSeparated"),commaSeparated:o(()=>X,"commaSeparated"),number:o(()=>m,"number"),overloadedBoolean:o(()=>Fe,"overloadedBoolean"),spaceSeparated:o(()=>T,"spaceSeparated")}),Pr=0,E=G(),_=G(),Fe=G(),m=G(),T=G(),X=G(),z=G();function G(){return 2**++Pr}o(G,"increment");var be=Object.keys(De),Ke=class extends F{static{o(this,"DefinedInfo")}constructor(e,t,n,r){let l=-1;if(super(e,t),ot(this,"space",r),typeof n=="number")for(;++l<be.length;){const a=be[l];ot(this,be[l],(n&De[a])===De[a])}}};Ke.prototype.defined=!0;function ot(e,t,n){n&&(e[t]=n)}o(ot,"mark");function Q(e){const t={},n={};for(const[r,l]of Object.entries(e.properties)){const a=new Ke(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Oe(r)]=r,n[Oe(a.attribute)]=r}return new se(t,n,e.space)}o(Q,"create");var zt=Q({properties:{ariaActiveDescendant:null,ariaAtomic:_,ariaAutoComplete:null,ariaBusy:_,ariaChecked:_,ariaColCount:m,ariaColIndex:m,ariaColSpan:m,ariaControls:T,ariaCurrent:null,ariaDescribedBy:T,ariaDetails:null,ariaDisabled:_,ariaDropEffect:T,ariaErrorMessage:null,ariaExpanded:_,ariaFlowTo:T,ariaGrabbed:_,ariaHasPopup:null,ariaHidden:_,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:T,ariaLevel:m,ariaLive:null,ariaModal:_,ariaMultiLine:_,ariaMultiSelectable:_,ariaOrientation:null,ariaOwns:T,ariaPlaceholder:null,ariaPosInSet:m,ariaPressed:_,ariaReadOnly:_,ariaRelevant:null,ariaRequired:_,ariaRoleDescription:T,ariaRowCount:m,ariaRowIndex:m,ariaRowSpan:m,ariaSelected:_,ariaSetSize:m,ariaSort:null,ariaValueMax:m,ariaValueMin:m,ariaValueNow:m,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ut(e,t){return t in e?e[t]:t}o(Ut,"caseSensitiveTransform");function $t(e,t){return Ut(e,t.toLowerCase())}o($t,"caseInsensitiveTransform");var Lr=Q({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:X,acceptCharset:T,accessKey:T,action:null,allow:null,allowFullScreen:E,allowPaymentRequest:E,allowUserMedia:E,alpha:E,alt:null,as:null,async:E,autoCapitalize:null,autoComplete:T,autoFocus:E,autoPlay:E,blocking:T,capture:null,charSet:null,checked:E,cite:null,className:T,closedBy:null,colorSpace:null,cols:m,colSpan:m,command:null,commandFor:null,content:null,contentEditable:_,controls:E,controlsList:T,coords:m|X,crossOrigin:null,data:null,dateTime:null,decoding:null,default:E,defer:E,dir:null,dirName:null,disabled:E,download:Fe,draggable:_,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:E,formTarget:null,headers:T,height:m,hidden:Fe,high:m,href:null,hrefLang:null,htmlFor:T,httpEquiv:T,id:null,imageSizes:null,imageSrcSet:null,inert:E,inputMode:null,integrity:null,is:null,isMap:E,itemId:null,itemProp:T,itemRef:T,itemScope:E,itemType:T,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:E,low:m,manifest:null,max:null,maxLength:m,media:null,method:null,min:null,minLength:m,multiple:E,muted:E,name:null,nonce:null,noModule:E,noValidate:E,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:E,optimum:m,pattern:null,ping:T,placeholder:null,playsInline:E,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:E,referrerPolicy:null,rel:T,required:E,reversed:E,rows:m,rowSpan:m,sandbox:T,scope:null,scoped:E,seamless:E,selected:E,shadowRootClonable:E,shadowRootCustomElementRegistry:E,shadowRootDelegatesFocus:E,shadowRootMode:null,shadowRootSerializable:E,shape:null,size:m,sizes:null,slot:null,span:m,spellCheck:_,src:null,srcDoc:null,srcLang:null,srcSet:null,start:m,step:null,style:null,tabIndex:m,target:null,title:null,translate:null,type:null,typeMustMatch:E,useMap:null,value:_,width:m,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:T,axis:null,background:null,bgColor:null,border:m,borderColor:null,bottomMargin:m,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:E,declare:E,event:null,face:null,frame:null,frameBorder:null,hSpace:m,leftMargin:m,link:null,longDesc:null,lowSrc:null,marginHeight:m,marginWidth:m,noResize:E,noHref:E,noShade:E,noWrap:E,object:null,profile:null,prompt:null,rev:null,rightMargin:m,rules:null,scheme:null,scrolling:_,standby:null,summary:null,text:null,topMargin:m,valueType:null,version:null,vAlign:null,vLink:null,vSpace:m,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:E,disablePictureInPicture:E,disableRemotePlayback:E,exportParts:X,part:T,prefix:null,property:null,results:m,security:null,unselectable:null},space:"html",transform:$t}),Rr=Q({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:z,accentHeight:m,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:m,amplitude:m,arabicForm:null,ascent:m,attributeName:null,attributeType:null,azimuth:m,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:m,by:null,calcMode:null,capHeight:m,className:T,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:m,diffuseConstant:m,direction:null,display:null,dur:null,divisor:m,dominantBaseline:null,download:E,dx:null,dy:null,edgeMode:null,editable:null,elevation:m,enableBackground:null,end:null,event:null,exponent:m,externalResourcesRequired:null,fill:null,fillOpacity:m,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:X,g2:X,glyphName:X,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:m,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:m,horizOriginX:m,horizOriginY:m,id:null,ideographic:m,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:m,k:m,k1:m,k2:m,k3:m,k4:m,kernelMatrix:z,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:m,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:m,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:m,overlineThickness:m,paintOrder:null,panose1:null,path:null,pathLength:m,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:T,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m,pointsAtY:m,pointsAtZ:m,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:z,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:z,rev:z,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:z,requiredFeatures:z,requiredFonts:z,requiredFormats:z,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:m,specularExponent:m,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:m,strikethroughThickness:m,string:null,stroke:null,strokeDashArray:z,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:m,strokeOpacity:m,strokeWidth:null,style:null,surfaceScale:m,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:z,tabIndex:m,tableValues:null,target:null,targetX:m,targetY:m,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:z,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:m,underlineThickness:m,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:m,values:null,vAlphabetic:m,vMathematical:m,vectorEffect:null,vHanging:m,vIdeographic:m,version:null,vertAdvY:m,vertOriginX:m,vertOriginY:m,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:m,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ut}),Bt=Q({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ht=Q({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$t}),Wt=Q({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),jr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Tr=/[A-Z]/g,it=/-[a-z]/g,Nr=/^data[-\w.:]+$/i;function _r(e,t){const n=Oe(t);let r=t,l=F;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Nr.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(it,Dr);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!it.test(a)){let i=a.replace(Tr,Or);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}l=Ke}return new l(r,t)}o(_r,"find");function Or(e){return"-"+e.toLowerCase()}o(Or,"kebab");function Dr(e){return e.charAt(1).toUpperCase()}o(Dr,"camelcase");var Fr=Mt([zt,Lr,Bt,Ht,Wt],"html"),qe=Mt([zt,Rr,Bt,Ht,Wt],"svg");function Mr(e){return e.join(" ").trim()}o(Mr,"stringify");var zr=ie(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,l=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,p=/^\s+|\s+$/g,f=`
|
|
3
|
+
`,u="/",d="*",h="",g="comment",w="declaration";function v(b,L){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];L=L||{};var x=1,I=1;function S(j){var A=j.match(r);A&&(x+=A.length);var M=j.lastIndexOf(f);I=~M?j.length-M:I+j.length}o(S,"updatePosition");function P(){var j={line:x,column:I};return function(A){return A.position=new R(j),ee(),A}}o(P,"position");function R(j){this.start=j,this.end={line:x,column:I},this.source=L.source}o(R,"Position"),R.prototype.content=b;function N(j){var A=new Error(L.source+":"+x+":"+I+": "+j);if(A.reason=j,A.filename=L.source,A.line=x,A.column=I,A.source=b,!L.silent)throw A}o(N,"error");function U(j){var A=j.exec(b);if(A){var M=A[0];return S(M),b=b.slice(M.length),A}}o(U,"match");function ee(){U(l)}o(ee,"whitespace");function te(j){var A;for(j=j||[];A=O();)A!==!1&&j.push(A);return j}o(te,"comments");function O(){var j=P();if(!(u!=b.charAt(0)||d!=b.charAt(1))){for(var A=2;h!=b.charAt(A)&&(d!=b.charAt(A)||u!=b.charAt(A+1));)++A;if(A+=2,h===b.charAt(A-1))return N("End of comment missing");var M=b.slice(2,A-2);return I+=2,S(M),b=b.slice(A),I+=2,j({type:g,comment:M})}}o(O,"comment");function ce(){var j=P(),A=U(a);if(A){if(O(),!U(i))return N("property missing ':'");var M=U(s),ve=j({type:w,property:C(A[0].replace(n,h)),value:M?C(M[0].replace(n,h)):h});return U(c),ve}}o(ce,"declaration");function pe(){var j=[];te(j);for(var A;A=ce();)A!==!1&&(j.push(A),te(j));return j}return o(pe,"declarations"),ee(),pe()}o(v,"index");function C(b){return b?b.replace(p,h):h}o(C,"trim"),t.exports=v})),Ur=ie((e=>{var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(zr());function r(l,a){let i=null;if(!l||typeof l!="string")return i;const s=(0,n.default)(l),c=typeof a=="function";return s.forEach(p=>{if(p.type!=="declaration")return;const{property:f,value:u}=p;c?a(f,u,p):u&&(i=i||{},i[f]=u)}),i}o(r,"StyleToObject")})),$r=ie((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=o(function(f){return!f||r.test(f)||t.test(f)},"skipCamelCase"),s=o(function(f,u){return u.toUpperCase()},"capitalize"),c=o(function(f,u){return"".concat(u,"-")},"trimHyphen"),p=o(function(f,u){return u===void 0&&(u={}),i(f)?f:(f=f.toLowerCase(),u.reactCompat?f=f.replace(a,c):f=f.replace(l,c),f.replace(n,s))},"camelCase");e.camelCase=p})),Br=ie(((e,t)=>{var n=(e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}})(Ur()),r=$r();function l(a,i){var s={};return!a||typeof a!="string"||(0,n.default)(a,function(c,p){c&&p&&(s[(0,r.camelCase)(c,i)]=p)}),s}o(l,"StyleToJS"),l.default=l,t.exports=l})),Vt=Kt("end"),Xe=Kt("start");function Kt(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}o(Kt,"point");function Hr(e){const t=Xe(e),n=Vt(e);if(t&&n)return{start:t,end:n}}o(Hr,"position");var Wr=ke(Br(),1),Ge={}.hasOwnProperty,Vr=new Map,Kr=/[A-Z]/g,qr=new Set(["table","tbody","thead","tfoot","tr"]),Xr=new Set(["td","th"]),qt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Gr(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=rl(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=nl(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?qe:Fr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Xt(l,e,void 0);return a&&typeof a!="string"?a:l.create(e,l.Fragment,{children:a||void 0},void 0)}o(Gr,"toJsxRuntime");function Xt(e,t,n){if(t.type==="element")return Yr(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Zr(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Qr(e,t,n);if(t.type==="mdxjsEsm")return Jr(e,t);if(t.type==="root")return el(e,t,n);if(t.type==="text")return tl(e,t)}o(Xt,"one");function Yr(e,t,n){const r=e.schema;let l=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=qe,e.schema=l),e.ancestors.push(t);const a=Yt(e,t.tagName,!1),i=ll(e,t);let s=Ze(e,t);return qr.has(t.tagName)&&(s=s.filter(function(c){return typeof c=="string"?!Ar(c):!0})),Gt(e,i,a,t),Ye(i,s),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}o(Yr,"element");function Zr(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}oe(e,t.position)}o(Zr,"mdxExpression");function Jr(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);oe(e,t.position)}o(Jr,"mdxEsm");function Qr(e,t,n){const r=e.schema;let l=r;t.name==="svg"&&r.space==="html"&&(l=qe,e.schema=l),e.ancestors.push(t);const a=t.name===null?e.Fragment:Yt(e,t.name,!0),i=ol(e,t),s=Ze(e,t);return Gt(e,i,a,t),Ye(i,s),e.ancestors.pop(),e.schema=r,e.create(t,a,i,n)}o(Qr,"mdxJsxElement");function el(e,t,n){const r={};return Ye(r,Ze(e,t)),e.create(t,e.Fragment,r,n)}o(el,"root$1");function tl(e,t){return t.value}o(tl,"text$2");function Gt(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}o(Gt,"addNode");function Ye(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}o(Ye,"addChildren");function nl(e,t,n){return r;function r(l,a,i,s){const c=Array.isArray(i.children)?n:t;return s?c(a,i,s):c(a,i)}}o(nl,"productionCreate");function rl(e,t){return n;function n(r,l,a,i){const s=Array.isArray(a.children),c=Xe(r);return t(l,a,i,s,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}o(rl,"developmentCreate");function ll(e,t){const n={};let r,l;for(l in t.properties)if(l!=="children"&&Ge.call(t.properties,l)){const a=il(e,l,t.properties[l]);if(a){const[i,s]=a;e.tableCellAlignToStyle&&i==="align"&&typeof s=="string"&&Xr.has(t.tagName)?r=s:n[i]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}o(ll,"createElementProps");function ol(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const a=l.expression;a.type;const i=a.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else oe(e,t.position);else{const l=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const i=r.value.data.estree.body[0];i.type,a=e.evaluater.evaluateExpression(i.expression)}else oe(e,t.position);else a=r.value===null?!0:r.value;n[l]=a}return n}o(ol,"createJsxElementProps");function Ze(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:Vr;for(;++r<t.children.length;){const a=t.children[r];let i;if(e.passKeys){const c=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(c){const p=l.get(c)||0;i=c+"-"+p,l.set(c,p+1)}}const s=Xt(e,a,i);s!==void 0&&n.push(s)}return n}o(Ze,"createChildren");function il(e,t,n){const r=_r(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Er(n):Mr(n)),r.property==="style"){let l=typeof n=="object"?n:al(e,String(n));return e.stylePropertyNameCase==="css"&&(l=sl(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&r.space?jr[r.property]||r.property:r.attribute,n]}}o(il,"createProperty");function al(e,t){try{return(0,Wr.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,l=new We("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=qt+"#cannot-parse-style-attribute",l}}o(al,"parseStyle");function Yt(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let a=-1,i;for(;++a<l.length;){const s=tt(l[a])?{type:"Identifier",name:l[a]}:{type:"Literal",value:l[a]};i=i?{type:"MemberExpression",object:i,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}r=i}else r=tt(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const l=r.value;return Ge.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(r);oe(e)}o(Yt,"findComponentFromName");function oe(e,t){const n=new We("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=qt+"#cannot-handle-mdx-estrees-without-createevaluater",n}o(oe,"crashEstree");function sl(e){const t={};let n;for(n in e)Ge.call(e,n)&&(t[ul(n)]=e[n]);return t}o(sl,"transformStylesToCssCasing");function ul(e){let t=e.replace(Kr,cl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}o(ul,"transformStyleToCssCasing");function cl(e){return"-"+e.toLowerCase()}o(cl,"toDash");var xe={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};function pl(e){const t=this;t.parser=n;function n(r){return Kn(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}o(n,"parser")}o(pl,"remarkParse");function fl(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}o(fl,"blockquote");function dl(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
4
|
+
`}]}o(dl,"hardBreak");function hl(e,t){const n=t.value?t.value+`
|
|
5
|
+
`:"",r={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}o(hl,"code$1");function ml(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}o(ml,"strikethrough");function gl(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}o(gl,"emphasis");function yl(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),l=J(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let i,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=a+1,s+=1,e.footnoteCounts.set(r,s);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,c);const p={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,p),e.applyData(t,p)}o(yl,"footnoteReference$1");function wl(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}o(wl,"heading");function kl(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}o(kl,"html");function Zt(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),a=l[0];a&&a.type==="text"?a.value="["+a.value:l.unshift({type:"text",value:"["});const i=l[l.length-1];return i&&i.type==="text"?i.value+=r:l.push({type:"text",value:r}),l}o(Zt,"revert");function vl(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zt(e,t);const l={src:J(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,a),e.applyData(t,a)}o(vl,"imageReference");function bl(e,t){const n={src:J(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}o(bl,"image");function xl(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}o(xl,"inlineCode");function Sl(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Zt(e,t);const l={href:J(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}o(Sl,"linkReference");function Cl(e,t){const n={href:J(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}o(Cl,"link");function El(e,t,n){const r=e.all(t),l=n?Il(n):Jt(t),a={},i=[];if(typeof t.checked=="boolean"){const f=r[0];let u;f&&f.type==="element"&&f.tagName==="p"?u=f:(u={type:"element",tagName:"p",properties:{},children:[]},r.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const f=r[s];(l||s!==0||f.type!=="element"||f.tagName!=="p")&&i.push({type:"text",value:`
|
|
6
|
+
`}),f.type==="element"&&f.tagName==="p"&&!l?i.push(...f.children):i.push(f)}const c=r[r.length-1];c&&(l||c.type!=="element"||c.tagName!=="p")&&i.push({type:"text",value:`
|
|
7
|
+
`});const p={type:"element",tagName:"li",properties:a,children:i};return e.patch(t,p),e.applyData(t,p)}o(El,"listItem");function Il(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Jt(n[r])}return t}o(Il,"listLoose");function Jt(e){const t=e.spread;return t??e.children.length>1}o(Jt,"listItemLoose");function Al(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<r.length;){const i=r[l];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}o(Al,"list");function Pl(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}o(Pl,"paragraph");function Ll(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}o(Ll,"root");function Rl(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}o(Rl,"strong");function jl(e,t){const n=e.all(t),r=n.shift(),l=[];if(r){const i={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],i),l.push(i)}if(n.length>0){const i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Xe(t.children[1]),c=Vt(t.children[t.children.length-1]);s&&c&&(i.position={start:s,end:c}),l.push(i)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,a),e.applyData(t,a)}o(jl,"table");function Tl(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,i=a?a.length:t.children.length;let s=-1;const c=[];for(;++s<i;){const f=t.children[s],u={},d=a?a[s]:void 0;d&&(u.align=d);let h={type:"element",tagName:l,properties:u,children:[]};f&&(h.children=e.all(f),e.patch(f,h),h=e.applyData(f,h)),c.push(h)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,p),e.applyData(t,p)}o(Tl,"tableRow");function Nl(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}o(Nl,"tableCell");var at=9,st=32;function _l(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),l=0;const a=[];for(;r;)a.push(ut(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return a.push(ut(t.slice(l),l>0,!1)),a.join("")}o(_l,"trimLines");function ut(e,t,n){let r=0,l=e.length;if(t){let a=e.codePointAt(r);for(;a===at||a===st;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(l-1);for(;a===at||a===st;)l--,a=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}o(ut,"trimLine");function Ol(e,t){const n={type:"text",value:_l(String(t.value))};return e.patch(t,n),e.applyData(t,n)}o(Ol,"text$1");function Dl(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}o(Dl,"thematicBreak");var Fl={blockquote:fl,break:dl,code:hl,delete:ml,emphasis:gl,footnoteReference:yl,heading:wl,html:kl,imageReference:vl,image:bl,inlineCode:xl,linkReference:Sl,link:Cl,listItem:El,list:Al,paragraph:Pl,root:Ll,strong:Rl,table:jl,tableCell:Nl,tableRow:Tl,text:Ol,thematicBreak:Dl,toml:de,yaml:de,definition:de,footnoteDefinition:de};function de(){}o(de,"ignore");var ct=typeof self=="object"?self:globalThis,Ml=o((e,t)=>{const n=o((l,a)=>(e.set(a,l),l),"as"),r=o(l=>{if(e.has(l))return e.get(l);const[a,i]=t[l];switch(a){case 0:case-1:return n(i,l);case 1:{const s=n([],l);for(const c of i)s.push(r(c));return s}case 2:{const s=n({},l);for(const[c,p]of i)s[r(c)]=r(p);return s}case 3:return n(new Date(i),l);case 4:{const{source:s,flags:c}=i;return n(new RegExp(s,c),l)}case 5:{const s=n(new Map,l);for(const[c,p]of i)s.set(r(c),r(p));return s}case 6:{const s=n(new Set,l);for(const c of i)s.add(r(c));return s}case 7:{const{name:s,message:c}=i;return n(new ct[s](c),l)}case 8:return n(BigInt(i),l);case"BigInt":return n(Object(BigInt(i)),l);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:s}=new Uint8Array(i);return n(new DataView(s),i)}}return n(new ct[a](i),l)},"unpair");return r},"deserializer"),pt=o(e=>Ml(new Map,e)(0),"deserialize"),Y="",{toString:zl}={},{keys:Ul}=Object,ne=o(e=>{const t=typeof e;if(t!=="object"||!e)return[0,t];const n=zl.call(e).slice(8,-1);switch(n){case"Array":return[1,Y];case"Object":return[2,Y];case"Date":return[3,Y];case"RegExp":return[4,Y];case"Map":return[5,Y];case"Set":return[6,Y];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},"typeOf"),he=o(([e,t])=>e===0&&(t==="function"||t==="symbol"),"shouldSkip"),$l=o((e,t,n,r)=>{const l=o((i,s)=>{const c=r.push(i)-1;return n.set(s,c),c},"as"),a=o(i=>{if(n.has(i))return n.get(i);let[s,c]=ne(i);switch(s){case 0:{let f=i;switch(c){case"bigint":s=8,f=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);f=null;break;case"undefined":return l([-1],i)}return l([s,f],i)}case 1:{if(c){let d=i;return c==="DataView"?d=new Uint8Array(i.buffer):c==="ArrayBuffer"&&(d=new Uint8Array(i)),l([c,[...d]],i)}const f=[],u=l([s,f],i);for(const d of i)f.push(a(d));return u}case 2:{if(c)switch(c){case"BigInt":return l([c,i.toString()],i);case"Boolean":case"Number":case"String":return l([c,i.valueOf()],i)}if(t&&"toJSON"in i)return a(i.toJSON());const f=[],u=l([s,f],i);for(const d of Ul(i))(e||!he(ne(i[d])))&&f.push([a(d),a(i[d])]);return u}case 3:return l([s,i.toISOString()],i);case 4:{const{source:f,flags:u}=i;return l([s,{source:f,flags:u}],i)}case 5:{const f=[],u=l([s,f],i);for(const[d,h]of i)(e||!(he(ne(d))||he(ne(h))))&&f.push([a(d),a(h)]);return u}case 6:{const f=[],u=l([s,f],i);for(const d of i)(e||!he(ne(d)))&&f.push(a(d));return u}}const{message:p}=i;return l([s,{name:c,message:p}],i)},"pair");return a},"serializer"),ft=o((e,{json:t,lossy:n}={})=>{const r=[];return $l(!(t||n),!!t,new Map,r)(e),r},"serialize"),we=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?pt(ft(e,t)):structuredClone(e):(e,t)=>pt(ft(e,t));function Bl(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}o(Bl,"defaultFootnoteBackContent");function Hl(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}o(Hl,"defaultFootnoteBackLabel");function Wl(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Bl,r=e.options.footnoteBackLabel||Hl,l=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[c]);if(!p)continue;const f=e.all(p),u=String(p.identifier).toUpperCase(),d=J(u.toLowerCase());let h=0;const g=[],w=e.footnoteCounts.get(u);for(;w!==void 0&&++h<=w;){g.length>0&&g.push({type:"text",value:" "});let b=typeof n=="string"?n:n(c,h);typeof b=="string"&&(b={type:"text",value:b}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,h),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const v=f[f.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const b=v.children[v.children.length-1];b&&b.type==="text"?b.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...g)}else f.push(...g);const C={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(f,!0)};e.patch(p,C),s.push(C)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...we(i),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
8
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
|
9
|
+
`}]}}o(Wl,"footer");var Me={}.hasOwnProperty,Vl={};function Kl(e,t){const n=t||Vl,r=new Map,l=new Map,a={all:s,applyData:Xl,definitionById:r,footnoteById:l,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Fl,...n.handlers},one:i,options:n,patch:ql,wrap:Yl};return Tt(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const p=c.type==="definition"?r:l,f=String(c.identifier).toUpperCase();p.has(f)||p.set(f,c)}}),a;function i(c,p){const f=c.type,u=a.handlers[f];if(Me.call(a.handlers,f)&&u)return u(a,c,p);if(a.options.passThrough&&a.options.passThrough.includes(f)){if("children"in c){const{children:d,...h}=c,g=we(h);return g.children=a.all(c),g}return we(c)}return(a.options.unknownHandler||Gl)(a,c,p)}o(i,"one");function s(c){const p=[];if("children"in c){const f=c.children;let u=-1;for(;++u<f.length;){const d=a.one(f[u],c);if(d){if(u&&f[u-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=dt(d.value)),!Array.isArray(d)&&d.type==="element")){const h=d.children[0];h&&h.type==="text"&&(h.value=dt(h.value))}Array.isArray(d)?p.push(...d):p.push(d)}}}return p}o(s,"all")}o(Kl,"createState");function ql(e,t){e.position&&(t.position=Hr(e))}o(ql,"patch");function Xl(e,t){let n=t;if(e&&e.data){const r=e.data.hName,l=e.data.hChildren,a=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:"children"in n?n.children:[n]}),n.type==="element"&&a&&Object.assign(n.properties,we(a)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}o(Xl,"applyData");function Gl(e,t){const n=t.data||{},r="value"in t&&!(Me.call(n,"hProperties")||Me.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}o(Gl,"defaultUnknownHandler");function Yl(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
10
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
11
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
12
|
+
`}),n}o(Yl,"wrap$1");function dt(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}o(dt,"trimMarkdownSpaceStart");function ht(e,t){const n=Kl(e,t),r=n.one(e,void 0),l=Wl(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&("children"in a,a.children.push({type:"text",value:`
|
|
13
|
+
`},l)),a}o(ht,"toHast");function Zl(e,t){return e&&"run"in e?async function(n,r){const l=ht(n,{file:r,...t});await e.run(l,r)}:function(n,r){return ht(n,{file:r,...e||t})}}o(Zl,"remarkRehype");function mt(e){if(e)throw e}o(mt,"bail");var Jl=ie(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=o(function(u){return typeof Array.isArray=="function"?Array.isArray(u):r.call(u)==="[object Array]"},"isArray"),s=o(function(u){if(!u||r.call(u)!=="[object Object]")return!1;var d=n.call(u,"constructor"),h=u.constructor&&u.constructor.prototype&&n.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!h)return!1;var g;for(g in u);return typeof g>"u"||n.call(u,g)},"isPlainObject"),c=o(function(u,d){l&&d.name==="__proto__"?l(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},"setProperty"),p=o(function(u,d){if(d==="__proto__")if(n.call(u,d)){if(a)return a(u,d).value}else return;return u[d]},"getProperty");t.exports=o(function f(){var u,d,h,g,w,v,C=arguments[0],b=1,L=arguments.length,x=!1;for(typeof C=="boolean"&&(x=C,C=arguments[1]||{},b=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});b<L;++b)if(u=arguments[b],u!=null)for(d in u)h=p(C,d),g=p(u,d),C!==g&&(x&&g&&(s(g)||(w=i(g)))?(w?(w=!1,v=h&&i(h)?h:[]):v=h&&s(h)?h:{},c(C,{name:d,newValue:f(x,v,g)})):typeof g<"u"&&c(C,{name:d,newValue:g}));return C},"extend")})),Se=ke(Jl(),1);function ze(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}o(ze,"isPlainObject");function Ql(){const e=[],t={run:n,use:r};return t;function n(...l){let a=-1;const i=l.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);s(null,...l);function s(c,...p){const f=e[++a];let u=-1;if(c){i(c);return}for(;++u<l.length;)(p[u]===null||p[u]===void 0)&&(p[u]=l[u]);l=p,f?eo(f,s)(...p):i(null,...p)}o(s,"next")}function r(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}o(Ql,"trough");function eo(e,t){let n;return r;function r(...i){const s=e.length>i.length;let c;s&&i.push(l);try{c=e.apply(this,i)}catch(p){const f=p;if(s&&n)throw f;return l(f)}s||(c&&c.then&&typeof c.then=="function"?c.then(a,l):c instanceof Error?l(c):a(c))}function l(i,...s){n||(n=!0,t(i,...s))}function a(i){l(null,i)}}o(eo,"wrap");var $={basename:to,dirname:no,extname:ro,join:lo,sep:"/"};function to(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ue(e);let n=0,r=-1,l=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(a){n=l+1;break}}else r<0&&(a=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let i=-1,s=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(a){n=l+1;break}}else i<0&&(a=!0,i=l+1),s>-1&&(e.codePointAt(l)===t.codePointAt(s--)?s<0&&(r=l):(s=-1,r=i));return n===r?r=i:r<0&&(r=e.length),e.slice(n,r)}o(to,"basename");function no(e){if(ue(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}o(no,"dirname");function ro(e){ue(e);let t=e.length,n=-1,r=0,l=-1,a=0,i;for(;t--;){const s=e.codePointAt(t);if(s===47){if(i){r=t+1;break}continue}n<0&&(i=!0,n=t+1),s===46?l<0?l=t:a!==1&&(a=1):l>-1&&(a=-1)}return l<0||n<0||a===0||a===1&&l===n-1&&l===r+1?"":e.slice(l,n)}o(ro,"extname");function lo(...e){let t=-1,n;for(;++t<e.length;)ue(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":oo(n)}o(lo,"join");function oo(e){ue(e);const t=e.codePointAt(0)===47;let n=io(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}o(oo,"normalize");function io(e,t){let n="",r=0,l=-1,a=0,i=-1,s,c;for(;++i<=e.length;){if(i<e.length)s=e.codePointAt(i);else{if(s===47)break;s=47}if(s===47){if(!(l===i-1||a===1))if(l!==i-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),l=i,a=0;continue}}else if(n.length>0){n="",r=0,l=i,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,i):n=e.slice(l+1,i),r=i-l-1;l=i,a=0}else s===46&&a>-1?a++:a=-1}return n}o(io,"normalizeString");function ue(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}o(ue,"assertPath$1");var ao={cwd:so};function so(){return"/"}o(so,"cwd");function Ue(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}o(Ue,"isUrl");function uo(e){if(typeof e=="string")e=new URL(e);else if(!Ue(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return co(e)}o(uo,"urlToPath");function co(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}o(co,"getPathFromURLPosix");var Ce=["history","path","basename","stem","extname","dirname"],Qt=class{static{o(this,"VFile")}constructor(e){let t;e?Ue(e)?t={path:e}:typeof e=="string"||po(e)?t={value:e}:t=e:t={},this.cwd="cwd"in t?"":ao.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Ce.length;){const l=Ce[n];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let r;for(r in t)Ce.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path=="string"?$.basename(this.path):void 0}set basename(e){Ie(e,"basename"),Ee(e,"basename"),this.path=$.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?$.dirname(this.path):void 0}set dirname(e){gt(this.basename,"dirname"),this.path=$.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?$.extname(this.path):void 0}set extname(e){if(Ee(e,"extname"),gt(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=$.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Ue(e)&&(e=uo(e)),Ie(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?$.basename(this.path,this.extname):void 0}set stem(e){Ie(e,"stem"),Ee(e,"stem"),this.path=$.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new We(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function Ee(e,t){if(e&&e.includes($.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+$.sep+"`")}o(Ee,"assertPart");function Ie(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}o(Ie,"assertNonEmpty");function gt(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}o(gt,"assertPath");function po(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}o(po,"isUint8Array$1");var fo=o((function(e){const t=this.constructor.prototype,n=t[e],r=o(function(){return n.apply(r,arguments)},"apply");return Object.setPrototypeOf(r,t),r}),"CallableInstance"),ho={}.hasOwnProperty,mo=class en extends fo{static{o(this,"Processor")}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ql()}copy(){const t=new en;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data((0,Se.default)(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Le("data",this.frozen),this.namespace[t]=n,this):ho.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Le("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const l=n.call(t,...r);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=me(t),r=this.parser||this.Parser;return Ae("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ae("process",this.parser||this.Parser),Pe("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(a,i){const s=me(t),c=r.parse(s);r.run(c,s,function(f,u,d){if(f||!u||!d)return p(f);const h=u,g=r.stringify(h,d);wo(g)?d.value=g:d.result=g,p(f,d)});function p(f,u){f||!u?i(f):a?a(u):n(void 0,u)}o(p,"realDone")}o(l,"executor")}processSync(t){let n=!1,r;return this.freeze(),Ae("processSync",this.parser||this.Parser),Pe("processSync",this.compiler||this.Compiler),this.process(t,l),wt("processSync","process",n),r;function l(a,i){n=!0,mt(a),r=i}o(l,"realDone")}run(t,n,r){yt(t),this.freeze();const l=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(i,s){const c=me(n);l.run(t,c,p);function p(f,u,d){const h=u||t;f?s(f):i?i(h):r(void 0,h,d)}o(p,"realDone")}o(a,"executor")}runSync(t,n){let r=!1,l;return this.run(t,n,a),wt("runSync","run",r),l;function a(i,s){mt(i),l=s,r=!0}o(a,"realDone")}stringify(t,n){this.freeze();const r=me(n),l=this.compiler||this.Compiler;return Pe("stringify",l),yt(t),l(t,r)}use(t,...n){const r=this.attachers,l=this.namespace;if(Le("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(p){if(typeof p=="function")c(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[f,...u]=p;c(f,u)}else i(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function i(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(p.plugins),p.settings&&(l.settings=(0,Se.default)(!0,l.settings,p.settings))}function s(p){let f=-1;if(p!=null)if(Array.isArray(p))for(;++f<p.length;){const u=p[f];a(u)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function c(p,f){let u=-1,d=-1;for(;++u<r.length;)if(r[u][0]===p){d=u;break}if(d===-1)r.push([p,...f]);else if(f.length>0){let[h,...g]=f;const w=r[d][1];ze(w)&&ze(h)&&(h=(0,Se.default)(!0,w,h)),r[d]=[p,h,...g]}}}},go=new mo().freeze();function Ae(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}o(Ae,"assertParser");function Pe(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}o(Pe,"assertCompiler");function Le(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}o(Le,"assertUnfrozen");function yt(e){if(!ze(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}o(yt,"assertNode");function wt(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}o(wt,"assertDone");function me(e){return yo(e)?e:new Qt(e)}o(me,"vfile");function yo(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}o(yo,"looksLikeAVFile");function wo(e){return typeof e=="string"||ko(e)}o(wo,"looksLikeAValue");function ko(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}o(ko,"isUint8Array");var kt=[],vt={allowDangerousHtml:!0},vo=/^(https?|ircs?|mailto|xmpp)$/i,bo=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function xo(e){const t=So(e),n=Co(e);return Eo(t.runSync(t.parse(n),n),e)}o(xo,"Markdown");function So(e){const t=e.rehypePlugins||kt,n=e.remarkPlugins||kt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...vt}:vt;return go().use(pl).use(n).use(Zl,r).use(t)}o(So,"createProcessor");function Co(e){const t=e.children||"",n=new Qt;return typeof t=="string"?n.value=t:""+t,n}o(Co,"createFile");function Eo(e,t){const n=t.allowedElements,r=t.allowElement,l=t.components,a=t.disallowedElements,i=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||tn;for(const f of bo)Object.hasOwn(t,f.from)&&""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+f.id;return Tt(e,p),Gr(e,{Fragment:y.Fragment,components:l,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function p(f,u,d){if(f.type==="raw"&&d&&typeof u=="number")return i?d.children.splice(u,1):d.children[u]={type:"text",value:f.value},u;if(f.type==="element"){let h;for(h in xe)if(Object.hasOwn(xe,h)&&Object.hasOwn(f.properties,h)){const g=f.properties[h],w=xe[h];(w===null||w.includes(f.tagName))&&(f.properties[h]=c(String(g||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):a?a.includes(f.tagName):!1;if(!h&&r&&typeof u=="number"&&(h=!r(f,u,d)),h&&d&&typeof u=="number")return s&&f.children?d.children.splice(u,1,...f.children):d.children.splice(u,1),u}}o(p,"transform")}o(Eo,"post");function tn(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||r!==-1&&t>r||vo.test(e.slice(0,t))?e:""}o(tn,"defaultUrlTransform");function Io(e,t,n){const r=Qn((n||{}).ignore||[]),l=Ao(t);let a=-1;for(;++a<l.length;)Un(e,"text",i);function i(c,p){let f=-1,u;for(;++f<p.length;){const d=p[f],h=u?u.children:void 0;if(r(d,h?h.indexOf(d):void 0,u))return;u=d}if(u)return s(c,p)}o(i,"visitor");function s(c,p){const f=p[p.length-1],u=l[a][0],d=l[a][1];let h=0;const g=f.children.indexOf(c);let w=!1,v=[];u.lastIndex=0;let C=u.exec(c.value);for(;C;){const b=C.index,L={index:C.index,input:C.input,stack:[...p,c]};let x=d(...C,L);if(typeof x=="string"&&(x=x.length>0?{type:"text",value:x}:void 0),x===!1?u.lastIndex=b+1:(h!==b&&v.push({type:"text",value:c.value.slice(h,b)}),Array.isArray(x)?v.push(...x):x&&v.push(x),h=b+C[0].length,w=!0),!u.global)break;C=u.exec(c.value)}return w?(h<c.value.length&&v.push({type:"text",value:c.value.slice(h)}),f.children.splice(g,1,...v)):v=[c],g+v.length}o(s,"handler")}o(Io,"findAndReplace");function Ao(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const l=n[r];t.push([Po(l[0]),Lo(l[1])])}return t}o(Ao,"toPairs");function Po(e){return typeof e=="string"?new RegExp(wr(e),"g"):e}o(Po,"toExpression");function Lo(e){return typeof e=="function"?e:function(){return e}}o(Lo,"toFunction");var Re="phrasing",je=["autolink","link","image","label"];function Ro(){return{transforms:[Fo],enter:{literalAutolink:To,literalAutolinkEmail:Te,literalAutolinkHttp:Te,literalAutolinkWww:Te},exit:{literalAutolink:Do,literalAutolinkEmail:Oo,literalAutolinkHttp:No,literalAutolinkWww:_o}}}o(Ro,"gfmAutolinkLiteralFromMarkdown");function jo(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Re,notInConstruct:je},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Re,notInConstruct:je},{character:":",before:"[ps]",after:"\\/",inConstruct:Re,notInConstruct:je}]}}o(jo,"gfmAutolinkLiteralToMarkdown");function To(e){this.enter({type:"link",title:null,url:"",children:[]},e)}o(To,"enterLiteralAutolink");function Te(e){this.config.enter.autolinkProtocol.call(this,e)}o(Te,"enterLiteralAutolinkValue");function No(e){this.config.exit.autolinkProtocol.call(this,e)}o(No,"exitLiteralAutolinkHttp");function _o(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}o(_o,"exitLiteralAutolinkWww");function Oo(e){this.config.exit.autolinkEmail.call(this,e)}o(Oo,"exitLiteralAutolinkEmail");function Do(e){this.exit(e)}o(Do,"exitLiteralAutolink");function Fo(e){Io(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Mo],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),zo]],{ignore:["link","linkReference"]})}o(Fo,"transformGfmAutolinkLiterals");function Mo(e,t,n,r,l){let a="";if(!nn(l)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Uo(n)))return!1;const i=$o(n+r);if(!i[0])return!1;const s={type:"link",title:null,url:a+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}o(Mo,"findUrl");function zo(e,t,n,r){return!nn(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}o(zo,"findEmail");function Uo(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}o(Uo,"isCorrectDomain");function $o(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const l=nt(e,"(");let a=nt(e,")");for(;r!==-1&&l>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}o($o,"splitUrl");function nn(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Z(n)||Ve(n))&&(!t||n!==47)}o(nn,"previous");rn.peek=Yo;function Bo(){this.buffer()}o(Bo,"enterFootnoteCallString");function Ho(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}o(Ho,"enterFootnoteCall");function Wo(){this.buffer()}o(Wo,"enterFootnoteDefinitionLabelString");function Vo(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}o(Vo,"enterFootnoteDefinition");function Ko(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ae(this.sliceSerialize(e)).toLowerCase(),n.label=t}o(Ko,"exitFootnoteCallString");function qo(e){this.exit(e)}o(qo,"exitFootnoteCall");function Xo(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ae(this.sliceSerialize(e)).toLowerCase(),n.label=t}o(Xo,"exitFootnoteDefinitionLabelString");function Go(e){this.exit(e)}o(Go,"exitFootnoteDefinition");function Yo(){return"["}o(Yo,"footnoteReferencePeek");function rn(e,t,n,r){const l=n.createTracker(r);let a=l.move("[^");const i=n.enter("footnoteReference"),s=n.enter("reference");return a+=l.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),i(),a+=l.move("]"),a}o(rn,"footnoteReference");function Zo(){return{enter:{gfmFootnoteCallString:Bo,gfmFootnoteCall:Ho,gfmFootnoteDefinitionLabelString:Wo,gfmFootnoteDefinition:Vo},exit:{gfmFootnoteCallString:Ko,gfmFootnoteCall:qo,gfmFootnoteDefinitionLabelString:Xo,gfmFootnoteDefinition:Go}}}o(Zo,"gfmFootnoteFromMarkdown");function Jo(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:rn},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,l,a,i){const s=a.createTracker(i);let c=s.move("[^");const p=a.enter("footnoteDefinition"),f=a.enter("label");return c+=s.move(a.safe(a.associationId(r),{before:c,after:"]"})),f(),c+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),c+=s.move((t?`
|
|
14
|
+
`:" ")+a.indentLines(a.containerFlow(r,s.current()),t?ln:Qo))),p(),c}o(n,"footnoteDefinition")}o(Jo,"gfmFootnoteToMarkdown");function Qo(e,t,n){return t===0?e:ln(e,t,n)}o(Qo,"mapExceptFirst");function ln(e,t,n){return(n?"":" ")+e}o(ln,"mapAll");function ei(){return[Ro(),Zo(),Bn(),Zn(),Wn()]}o(ei,"gfmFromMarkdown");function ti(e){return{extensions:[jo(),Jo(e),er(),Hn(e),Gn()]}}o(ti,"gfmToMarkdown");var ni={tokenize:si,partial:!0},on={tokenize:ui,partial:!0},an={tokenize:ci,partial:!0},sn={tokenize:pi,partial:!0},ri={tokenize:fi,partial:!0},un={name:"wwwAutolink",tokenize:ii,previous:pn},cn={name:"protocolAutolink",tokenize:ai,previous:fn},V={name:"emailAutolink",tokenize:oi,previous:dn},H={};function li(){return{text:H}}o(li,"gfmAutolinkLiteral");var q=48;for(;q<123;)H[q]=V,q++,q===58?q=65:q===91&&(q=97);H[43]=V;H[45]=V;H[46]=V;H[95]=V;H[72]=[V,cn];H[104]=[V,cn];H[87]=[V,un];H[119]=[V,un];function oi(e,t,n){const r=this;let l,a;return i;function i(u){return!$e(u)||!dn.call(r,r.previous)||Je(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(u))}function s(u){return $e(u)?(e.consume(u),s):u===64?(e.consume(u),c):n(u)}function c(u){return u===46?e.check(ri,f,p)(u):u===45||u===95||le(u)?(a=!0,e.consume(u),c):f(u)}function p(u){return e.consume(u),l=!0,c}function f(u){return a&&l&&re(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(u)):n(u)}}o(oi,"tokenizeEmailAutolink");function ii(e,t,n){const r=this;return l;function l(i){return i!==87&&i!==119||!pn.call(r,r.previous)||Je(r.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ni,e.attempt(on,e.attempt(an,a),n),n)(i))}function a(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}o(ii,"tokenizeWwwAutolink");function ai(e,t,n){const r=this;let l="",a=!1;return i;function i(u){return(u===72||u===104)&&fn.call(r,r.previous)&&!Je(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(u),e.consume(u),s):n(u)}function s(u){if(re(u)&&l.length<5)return l+=String.fromCodePoint(u),e.consume(u),s;if(u===58){const d=l.toLowerCase();if(d==="http"||d==="https")return e.consume(u),c}return n(u)}function c(u){return u===47?(e.consume(u),a?p:(a=!0,c)):n(u)}function p(u){return u===null||$n(u)||B(u)||Z(u)||Ve(u)?n(u):e.attempt(on,e.attempt(an,f),n)(u)}function f(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(u)}}o(ai,"tokenizeProtocolAutolink");function si(e,t,n){let r=0;return l;function l(i){return(i===87||i===119)&&r<3?(r++,e.consume(i),l):i===46&&r===3?(e.consume(i),a):n(i)}function a(i){return i===null?n(i):t(i)}}o(si,"tokenizeWwwPrefix");function ui(e,t,n){let r,l,a;return i;function i(p){return p===46||p===95?e.check(sn,c,s)(p):p===null||B(p)||Z(p)||p!==45&&Ve(p)?c(p):(a=!0,e.consume(p),i)}function s(p){return p===95?r=!0:(l=r,r=void 0),e.consume(p),i}function c(p){return l||r||!a?n(p):t(p)}}o(ui,"tokenizeDomain");function ci(e,t){let n=0,r=0;return l;function l(i){return i===40?(n++,e.consume(i),l):i===41&&r<n?a(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(sn,t,a)(i):i===null||B(i)||Z(i)?t(i):(e.consume(i),l)}function a(i){return i===41&&r++,e.consume(i),l}}o(ci,"tokenizePath");function pi(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),l):s===60||s===null||B(s)||Z(s)?t(s):n(s)}function l(s){return s===null||s===40||s===91||B(s)||Z(s)?t(s):r(s)}function a(s){return re(s)?i(s):n(s)}function i(s){return s===59?(e.consume(s),r):re(s)?(e.consume(s),i):n(s)}}o(pi,"tokenizeTrail");function fi(e,t,n){return r;function r(a){return e.consume(a),l}function l(a){return le(a)?n(a):t(a)}}o(fi,"tokenizeEmailDomainDotTrail");function pn(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||B(e)}o(pn,"previousWww");function fn(e){return!re(e)}o(fn,"previousProtocol");function dn(e){return!(e===47||$e(e))}o(dn,"previousEmail");function $e(e){return e===43||e===45||e===46||e===95||le(e)}o($e,"gfmAtext");function Je(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}o(Je,"previousUnbalanced");var di={tokenize:bi,partial:!0};function hi(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:wi,continuation:{tokenize:ki},exit:vi}},text:{91:{name:"gfmFootnoteCall",tokenize:yi},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:mi,resolveTo:gi}}}}o(hi,"gfmFootnote");function mi(e,t,n){const r=this;let l=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;l--;){const c=r.events[l][1];if(c.type==="labelImage"){i=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!i||!i._balanced)return n(c);const p=ae(r.sliceSerialize({start:i.end,end:r.now()}));return p.codePointAt(0)!==94||!a.includes(p.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}o(mi,"tokenizePotentialGfmFootnoteCall");function gi(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",l,t],["exit",l,t],["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}o(gi,"resolveToPotentialGfmFootnoteCall");function yi(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,i;return s;function s(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),c}function c(u){return u!==94?n(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(u){if(a>999||u===93&&!i||u===null||u===91||B(u))return n(u);if(u===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return l.includes(ae(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return B(u)||(i=!0),a++,e.consume(u),u===92?f:p}function f(u){return u===91||u===92||u===93?(e.consume(u),a++,p):p(u)}}o(yi,"tokenizeGfmFootnoteCall");function wi(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,i=0,s;return c;function c(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(g)}function f(g){if(i>999||g===93&&!s||g===null||g===91||B(g))return n(g);if(g===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return a=ae(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return B(g)||(s=!0),i++,e.consume(g),g===92?u:f}function u(g){return g===91||g===92||g===93?(e.consume(g),i++,f):f(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l.includes(a)||l.push(a),jt(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}o(wi,"tokenizeDefinitionStart");function ki(e,t,n){return e.check(Vn,t,e.attempt(di,t,n))}o(ki,"tokenizeDefinitionContinuation");function vi(e){e.exit("gfmFootnoteDefinition")}o(vi,"gfmFootnoteDefinitionEnd");function bi(e,t,n){const r=this;return jt(e,l,"gfmFootnoteDefinitionIndent",5);function l(a){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(a):n(a)}}o(bi,"tokenizeIndent");function xi(e){return Jn([li(),hi(),zn(e),qn(),Xn()])}o(xi,"gfm");var Si={};function Ci(e){const t=this,n=e||Si,r=t.data(),l=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),i=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);l.push(xi(n)),a.push(ei()),i.push(ti(n))}o(Ci,"remarkGfm");var Ei=/^[A-Z][A-Z0-9]*-C\d+$/i,Ii=/\b[A-Z][A-Z0-9]*-C\d+\b/gi;function hn(e,t){if(!e)return null;const n=e.trim();if(!Ei.test(n))return null;const r=n.toUpperCase();if(t&&t.size>0){const l=r.split("-")[0];if(!l||!t.has(l))return null}return{identifier:r,href:`/cases/${encodeURIComponent(r)}`}}o(hn,"parseCaseReferenceFromHref");function mn(e,t,n="text"){return{type:"link",url:t,children:[{type:n,value:e}]}}o(mn,"createCaseLinkNode");function Ai(e,t){const n=[];let r=0,l=!1;for(const a of e.matchAll(Ii)){const i=a[0];if(!i)continue;const s=hn(i,t);if(!s)continue;const c=a.index??0;l=!0,c>r&&n.push({type:"text",value:e.slice(r,c)}),n.push(mn(i,s.href)),r=c+i.length}return l?(r<e.length&&n.push({type:"text",value:e.slice(r)}),n):null}o(Ai,"linkifyCaseReferencesInText");function gn(e,t){if(!Array.isArray(e.children)||e.children.length===0||e.type==="link"||e.type==="linkReference"||e.type==="code"||e.type==="definition"||e.type==="html")return;const n=[];for(const r of e.children){if(r.type==="inlineCode"&&typeof r.value=="string"){const l=hn(r.value,t);if(l){n.push(mn(r.value,l.href,"inlineCode"));continue}}if(r.type==="text"&&typeof r.value=="string"){const l=Ai(r.value,t);if(l){n.push(...l);continue}}gn(r,t),n.push(r)}e.children=n}o(gn,"rewriteMarkdownTree$1");function Pi(e){const t=e?.knownPrefixes&&e.knownPrefixes.length>0?new Set(e.knownPrefixes.map(n=>n.toUpperCase())):void 0;return n=>{gn(n,t)}}o(Pi,"remarkLinkCaseReferences");var Li=/^([A-Za-z0-9_.\-+][A-Za-z0-9_./\-+]*\.[A-Za-z0-9_+\-]{1,10})(?::([1-9]\d*)(?::([1-9]\d*))?|#L([1-9]\d*)(?:C([1-9]\d*))?)?$/,Ri=/^([A-Za-z0-9_.\-+][A-Za-z0-9_./\-+]+\/[A-Za-z0-9_.\-+]+)(?::([1-9]\d*)(?::([1-9]\d*))?|#L([1-9]\d*)(?:C([1-9]\d*))?)?$/,ji=/^([A-Za-z0-9_.\-+][A-Za-z0-9_./\-+]*\/)$/,Ti=["/","./","../","~/"];function ge(e){if(!e)return null;const t=Number.parseInt(e,10);return!Number.isFinite(t)||t<=0?null:t}o(ge,"toPositiveInt");function bt(e,t){if(!e||e.length>512||e.includes("\\")||e.includes("\0")||e.startsWith("/")||e.startsWith("~")||/^[A-Za-z]:/.test(e)||e.includes("//")||Ti.some(l=>e===l.slice(0,-1)))return!1;const n=t.allowTrailingSlash&&e.endsWith("/")?e.slice(0,-1):e;if(!n||/^\.+$/.test(n))return!1;const r=n.split("/");for(const l of r)if(l===""||l==="."||l==="..")return!1;return!0}o(bt,"looksLikeWorkspacePath");function yn(e){if(typeof e!="string")return null;const t=e.trim();if(!t)return null;const n=t.match(ji);if(n){const[,u]=n;return!u||!bt(u,{allowTrailingSlash:!0})||!u.slice(0,-1).includes("/")?null:{path:u,resourceKind:"directory",line:null,column:null,raw:t}}const r=t.match(Li)??t.match(Ri);if(!r)return null;const[,l,a,i,s,c]=r;if(!l||!bt(l,{allowTrailingSlash:!1}))return null;const p=ge(a)??ge(s),f=ge(i)??ge(c);return!l.includes("/")&&p===null?null:{path:l,resourceKind:"file",line:p,column:f,raw:t}}o(yn,"parseWorkspaceFileRef");function Ni(e){const t=e.line&&e.column?`${e.path}:${e.line}:${e.column}`:e.line?`${e.path}:${e.line}`:e.path;return e.projectName?`${e.projectName} / ${t}`:t}o(Ni,"formatWorkspaceFileRefDisplay");var wn="workspace-file:";function kn(e){const t=new URLSearchParams;return e.projectId&&t.set("projectId",e.projectId),e.workspaceId&&t.set("workspaceId",e.workspaceId),e.workspace&&e.workspace!=="auto"&&t.set("workspace",e.workspace),e.resourceKind==="directory"&&t.set("kind","directory"),t.set("path",e.path),e.line!==null&&t.set("line",String(e.line)),e.column!==null&&t.set("column",String(e.column)),e.projectName&&t.set("projectName",e.projectName),`${wn}?${t.toString()}`}o(kn,"buildWorkspaceFileHref");function _i(e){if(!e||typeof e!="string"||!e.startsWith(wn))return null;const t=e.slice(15),n=t.startsWith("?")?t.slice(1):t,r=new URLSearchParams(n),l=r.get("path");if(!l)return null;const a=r.get("projectId"),i=r.get("workspaceId"),s=!!(a&&i),c=r.get("projectName"),p=r.get("workspace"),f=p==="execution"||p==="project"?p:"auto",u=r.get("kind"),d=r.get("line"),h=r.get("column"),g=d?Number.parseInt(d,10):NaN,w=h?Number.parseInt(h,10):NaN;return{path:l,resourceKind:u==="directory"||l.endsWith("/")?"directory":"file",line:Number.isFinite(g)&&g>0?g:null,column:Number.isFinite(w)&&w>0?w:null,projectId:s?a:null,workspaceId:s?i:null,projectName:c||null,workspace:f,raw:l}}o(_i,"parseWorkspaceFileHref");function Oi(e){return{type:"link",url:kn(e),children:[{type:"inlineCode",value:e.raw}]}}o(Oi,"createWorkspaceFileLinkNode");function Di(e){if(!Array.isArray(e.children)||e.children.length!==1)return null;const[t]=e.children;return t?.type!=="inlineCode"||typeof t.value!="string"?null:yn(t.value)}o(Di,"parseSingleInlineCodeFileRef");function Fi(e,t){return{...e,workspace:t.workspace,projectId:t.projectId??e.projectId??null,workspaceId:t.workspaceId??e.workspaceId??null,projectName:e.projectName??null}}o(Fi,"applyResolvedTarget");function xt(e,t){const n=t(e);return n?Fi(e,n):null}o(xt,"openableRef");function vn(e,t){if(!Array.isArray(e.children)||e.children.length===0)return;if(e.type==="link"){const r=Di(e),l=r?xt(r,t):null;l&&(e.url=kn(l));return}if(e.type==="linkReference"||e.type==="code"||e.type==="definition"||e.type==="html")return;const n=[];for(const r of e.children){if(r.type==="inlineCode"&&typeof r.value=="string"){const l=yn(r.value),a=l?xt(l,t):null;if(a){n.push(Oi(a));continue}}vn(r,t),n.push(r)}e.children=n}o(vn,"rewriteMarkdownTree");function Mi(e){return o(function(){return n=>{vn(n,e)}},"remarkWorkspaceFileRefs")}o(Mi,"createRemarkWorkspaceFileRefs");function zi(e){return typeof e=="object"&&e!==null&&Array.isArray(e.children)}o(zi,"isParentNode");function Ui(e){const t=e.split(`
|
|
15
|
+
`),n=[];for(let r=0;r<t.length;r+=1){const l=t[r];l.length>0&&n.push({type:"text",value:l}),r<t.length-1&&n.push({type:"break"})}return n.length>0?n:[{type:"text",value:""}]}o(Ui,"buildSoftBreakReplacement");function bn(e){if(zi(e))for(let t=0;t<e.children.length;t+=1){const n=e.children[t];if(n?.type==="text"&&typeof n.value=="string"&&n.value.includes(`
|
|
16
|
+
`)){const r=Ui(n.value);e.children.splice(t,1,...r),t+=r.length-1;continue}bn(n)}}o(bn,"transformNode");function $i(){return e=>{bn(e)}}o($i,"remarkSoftBreaks");function ye(e){const t=new URLSearchParams;return e.projectId&&e.workspaceId&&(t.set("projectId",e.projectId),t.set("workspaceId",e.workspaceId)),"path"in e&&e.path&&t.set("path",e.path),e.workspace&&e.workspace!=="auto"&&t.set("workspace",e.workspace),"mode"in e&&e.mode&&e.mode!=="all"&&t.set("mode",e.mode),"q"in e&&e.q&&t.set("q",e.q),"limit"in e&&e.limit&&t.set("limit",String(e.limit)),"offset"in e&&e.offset&&t.set("offset",String(e.offset)),t.toString()}o(ye,"buildQuery");function Bi(e,t){const n=new URLSearchParams(ye(t));return n.set("download","1"),`/api/issues/${encodeURIComponent(e)}/file-resources/content?${n.toString()}`}o(Bi,"buildFileResourceDownloadUrl");var Hi={list(e,t={},n){const r=ye(t),l=r?`?${r}`:"";return fe.get(`/issues/${encodeURIComponent(e)}/file-resources/list${l}`,n)},availability(e,t){return fe.post(`/issues/${encodeURIComponent(e)}/file-resources/availability`,{queries:t.map(n=>({path:n.path,...n.workspace&&n.workspace!=="auto"?{workspace:n.workspace}:{},...n.projectId&&n.workspaceId?{projectId:n.projectId,workspaceId:n.workspaceId}:{}}))})},resolve(e,t){return fe.get(`/issues/${encodeURIComponent(e)}/file-resources/resolve?${ye(t)}`)},content(e,t){return fe.get(`/issues/${encodeURIComponent(e)}/file-resources/content?${ye(t)}`)},downloadUrl:Bi};var Wi=3e4,Vi={state:"pending"};function Ga(e){return{path:e.path,workspace:e.workspace??"auto",projectId:e.projectId??null,workspaceId:e.workspaceId??null}}o(Ga,"workspaceFileAvailabilityRef");function St(e){return JSON.stringify([e.workspace,e.projectId,e.workspaceId,e.path])}o(St,"workspaceFileAvailabilityKey");function Ki(e,t=100){if(e.length<=t)return e.length>0?[e]:[];const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}o(Ki,"chunkWorkspaceFileAvailabilityRefs");function qi(e){return e.workspaceKind==="project_workspace"&&e.projectId&&e.workspaceId?{workspace:"project",projectId:e.projectId,workspaceId:e.workspaceId,projectName:e.projectName??null}:{workspace:e.workspaceKind==="project_workspace"?"project":"execution",projectId:null,workspaceId:null,projectName:e.projectName??null}}o(qi,"workspaceFileAvailabilityTarget");function Xi(e){return!e.openable||!e.resource?{state:"unavailable",reason:e.unavailableReason??null}:{state:"openable",target:qi(e.resource)}}o(Xi,"workspaceFileAvailabilityFromResult");var Gi=2;function Yi(e,t){return e[0]==="issues"&&e[1]==="file-resources"&&e[2]===t}o(Yi,"isFileResourceKeyForIssue");function Zi(e){const t=At(),[n,r]=(0,k.useState)(0),l=(0,k.useRef)(new Map),a=(0,k.useRef)(new Map),i=(0,k.useRef)(new Set),s=(0,k.useRef)([]),c=(0,k.useRef)(0),p=(0,k.useRef)(null),f=(0,k.useRef)(!0),u=(0,k.useRef)(0),d=(0,k.useRef)(t);d.current=t;const h=(0,k.useRef)(e);h.current!==e&&(h.current=e,u.current+=1,p.current!==null&&(clearTimeout(p.current),p.current=null),l.current.clear(),a.current.clear(),i.current.clear(),s.current=[]);const g=(0,k.useCallback)(()=>{f.current&&r(L=>L+1)},[]),w=(0,k.useCallback)(async({chunk:L,issueId:x,generation:I})=>{const S=L.map(([P])=>P).sort();try{const P=await d.current.fetchQuery({queryKey:Pt.issues.fileResourceAvailability(x,S),queryFn:o(()=>Hi.availability(x,L.map(([,N])=>N)),"queryFn"),staleTime:Wi});if(I!==u.current)return;const R=new Map(P.results.map(N=>[St(N.query),Xi(N)]));for(const[N]of L)l.current.set(N,R.get(N)??{state:"unavailable",reason:"unmatched_reference"}),i.current.delete(N);g()}catch{if(I!==u.current)return;for(const[P]of L)i.current.delete(P)}},[g]),v=(0,k.useCallback)(()=>{for(;c.current<Gi&&s.current.length>0;){const L=s.current.shift();c.current+=1,w(L).finally(()=>{c.current-=1,v()})}},[w]),C=(0,k.useCallback)(()=>{p.current=null;const L=[...a.current.entries()];a.current.clear();const x=L.filter(([I])=>!i.current.has(I)&&!l.current.has(I));if(x.length!==0){for(const[I]of x)i.current.add(I);s.current.push(...Ki(x).map(I=>({chunk:I,issueId:e,generation:u.current}))),v()}},[v,e]),b=(0,k.useCallback)(L=>{const x=St(L),I=l.current.get(x);return I||(!i.current.has(x)&&!a.current.has(x)&&(a.current.set(x,L),p.current===null&&(p.current=setTimeout(C,0))),Vi)},[C]);return(0,k.useEffect)(()=>(f.current=!0,a.current.size>0&&p.current===null&&(p.current=setTimeout(C,0)),()=>{f.current=!1,p.current!==null&&(clearTimeout(p.current),p.current=null)}),[C]),(0,k.useEffect)(()=>t.getQueryCache().subscribe(L=>{L.type!=="updated"||L.action.type!=="invalidate"||Yi(L.query.queryKey,e)&&l.current.size!==0&&(l.current.clear(),g())}),[g,e,t]),(0,k.useMemo)(()=>({version:n,check:b}),[n,b])}o(Zi,"useWorkspaceFileAvailability");var Qe=(0,k.createContext)(null),Ji={replace:!1,preventScrollReset:!0};function xn(e){return typeof window>"u"?e:window.location.search}o(xn,"getCurrentFileViewerSearch");function Qi(e,t){return e!==xn(t)}o(Qi,"shouldNavigateFileViewerSearch");function ea(e){const t=new URLSearchParams(e),n=t.get("file");if(!n)return null;const r=t.get("line"),l=t.get("column"),a=t.get("workspace"),i=t.get("projectId"),s=t.get("workspaceId"),c=!!(i&&s),p=r?Number.parseInt(r,10):NaN,f=l?Number.parseInt(l,10):NaN,u=a==="execution"||a==="project"?a:"auto";return{path:n,line:Number.isFinite(p)&&p>0?p:null,column:Number.isFinite(f)&&f>0?f:null,workspace:u,projectId:c?i:null,workspaceId:c?s:null}}o(ea,"readFileViewerStateFromSearch");function Be(e,t){const n=new URLSearchParams(e);n.delete("browse"),n.delete("q"),n.delete("folder"),t?(n.set("file",t.path),t.line!==null?n.set("line",String(t.line)):n.delete("line"),t.column!==null?n.set("column",String(t.column)):n.delete("column"),t.workspace&&t.workspace!=="auto"?n.set("workspace",t.workspace):n.delete("workspace"),t.projectId?n.set("projectId",t.projectId):n.delete("projectId"),t.workspaceId?n.set("workspaceId",t.workspaceId):n.delete("workspaceId")):(n.delete("file"),n.delete("line"),n.delete("column"),n.delete("workspace"),n.delete("projectId"),n.delete("workspaceId"));const r=n.toString();return r?`?${r}`:""}o(Be,"writeFileViewerStateToSearch");function ta(e){const t=new URLSearchParams(e);if(t.get("browse")!=="1")return null;const n=t.get("q"),r=t.get("folder"),l=t.get("projectId"),a=t.get("workspaceId");return{q:n&&n.length>0?n:null,folderPath:r&&r.length>0?r:null,projectId:l||null,workspaceId:a||null}}o(ta,"readBrowseStateFromSearch");function Sn(e,t){const n=new URLSearchParams(e);n.delete("file"),n.delete("line"),n.delete("column"),n.delete("workspace"),n.delete("q"),n.set("browse","1"),n.set("folder",t.path),t.projectId?n.set("projectId",t.projectId):n.delete("projectId"),t.workspaceId?n.set("workspaceId",t.workspaceId):n.delete("workspaceId");const r=n.toString();return r?`?${r}`:""}o(Sn,"writeFolderViewerStateToSearch");function na(e,t){const n=new URLSearchParams(e);if(n.set("browse","1"),"q"in t){const l=t.q?.trim()??"";l?n.set("q",l):n.delete("q")}if("folderPath"in t){const l=t.folderPath?.trim()??"";l?n.set("folder",l):n.delete("folder")}"projectId"in t&&(t.projectId?n.set("projectId",t.projectId):n.delete("projectId")),"workspaceId"in t&&(t.workspaceId?n.set("workspaceId",t.workspaceId):n.delete("workspaceId"));const r=n.toString();return r?`?${r}`:""}o(na,"writeBrowseStateToSearch");function Ya({issueId:e,children:t,enabled:n=!0}){return n?(0,y.jsx)(ra,{issueId:e,children:t}):(0,y.jsx)(y.Fragment,{children:t})}o(Ya,"FileViewerProvider");function ra({issueId:e,children:t}){const n=Rt(),r=Fn(),l=(0,k.useMemo)(()=>ea(n.search),[n.search]),a=(0,k.useMemo)(()=>ta(n.search),[n.search]),i=Zi(e),s=(0,k.useCallback)((w,v)=>{Qi(w,n.search)&&r({pathname:n.pathname,hash:n.hash,search:w},{...Ji,...v,state:n.state})},[n.hash,n.pathname,n.state,r]),c=(0,k.useCallback)((w,v)=>{let C=Be(n.search,{path:w.path,line:w.line??null,column:w.column??null,workspace:w.workspace??"auto",projectId:w.projectId??null,workspaceId:w.workspaceId??null});if(v?.fromBrowse){const b=new URLSearchParams(C);b.set("browse","1");const L=new URLSearchParams(n.search),x=L.get("q"),I=L.get("folder"),S=Object.prototype.hasOwnProperty.call(v.browseState??{},"q")?v.browseState?.q:x,P=Object.prototype.hasOwnProperty.call(v.browseState??{},"folderPath")?v.browseState?.folderPath:I;S?b.set("q",S):b.delete("q"),P?b.set("folder",P):b.delete("folder"),C=b.toString()?`?${b.toString()}`:""}s(C)},[n.search,s]),p=(0,k.useCallback)(w=>{const v=new URLSearchParams(n.search);v.delete("file"),v.delete("line"),v.delete("column"),v.delete("folder"),v.set("browse","1"),typeof w?.q=="string"&&w.q.length>0?v.set("q",w.q):v.delete("q"),s(v.toString()?`?${v.toString()}`:"")},[n.search,s]),f=(0,k.useCallback)(w=>{s(na(n.search,w),{replace:!0})},[n.search,s]),u=(0,k.useCallback)(w=>{const v=Sn(n.search,{path:w.path,projectId:w.projectId??null,workspaceId:w.workspaceId??null});s(v)},[n.search,s]),d=(0,k.useCallback)(()=>{const w=new URLSearchParams(n.search);w.delete("file"),w.delete("line"),w.delete("column"),w.delete("workspace"),w.set("browse","1"),s(w.toString()?`?${w.toString()}`:"")},[n.search,s]),h=(0,k.useCallback)(()=>{const w=xn(n.search),v=new URLSearchParams(Be(w,null).replace(/^\?/,""));v.delete("browse"),v.delete("q"),v.delete("folder"),s(v.toString()?`?${v.toString()}`:"")},[n.search,s]),g=(0,k.useMemo)(()=>({issueId:e,availability:i,state:l,browse:a!==null,query:a?.q??null,browseProjectId:a?.projectId??null,browseWorkspaceId:a?.workspaceId??null,folderPath:a?.folderPath??null,open:c,openBrowse:p,updateBrowseState:f,openFolder:u,backToFiles:d,close:h}),[e,i,l,a,c,p,f,u,d,h]);return(0,y.jsx)(Qe.Provider,{value:g,children:t})}o(ra,"EnabledFileViewerProvider");function la(){return(0,k.useContext)(Qe)}o(la,"useFileViewer");function Za(){const e=(0,k.useContext)(Qe);if(!e)throw new Error("useRequiredFileViewer must be used within a FileViewerProvider");return e}o(Za,"useRequiredFileViewer");function oa({workspaceFileRef:e,label:t,className:n,onOpen:r,showIcon:l=!0,title:a}){const i=la(),s=Rt(),c=typeof t<"u"?t:Ni(e),p=!!(r||i),f=e.resourceKind==="directory"||e.path.endsWith("/"),u=e.line?` line ${e.line}${e.column?` column ${e.column}`:""}`:"",d=p?`Open ${e.path}${u} in the ${f?"workspace browser":"file viewer"}`:`Workspace ${f?"folder":"file"} ${e.path}${u}`,h=a??(p?`Open ${e.path}${u} in the ${f?"workspace browser":"file viewer"}`:`Workspace ${f?"folder":"file"} ${e.path}${u}`),g=f?Sn(s.search,{path:e.path,projectId:e.projectId??null,workspaceId:e.workspaceId??null}):Be(s.search,{path:e.path,line:e.line??null,column:e.column??null,workspace:e.workspace??"auto",projectId:e.projectId??null,workspaceId:e.workspaceId??null}),w=p?`${s.pathname}${g}${s.hash}`:"#",v=o(C=>{C.metaKey||C.ctrlKey||C.shiftKey||C.altKey||C.button===0&&(C.preventDefault(),p&&(r?r(e):f?i?.openFolder(e):i?.open(e)))},"handleClick");return(0,y.jsxs)("a",{href:w,role:p?"button":void 0,"data-workspace-file-link":"true","data-workspace-file-path":e.path,"aria-label":d,title:h,className:W("paperclip-workspace-file-link inline-flex items-center gap-1 rounded-sm border border-border bg-muted/60 px-1.5 py-0.5 font-mono text-xs leading-tight text-foreground/90 align-middle no-underline hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",n),onClick:v,children:[l?f?(0,y.jsx)(pr,{"aria-hidden":"true",className:"h-3 w-3 shrink-0 opacity-70"}):(0,y.jsx)(mr,{"aria-hidden":"true",className:"h-3 w-3 shrink-0 opacity-70"}):null,(0,y.jsx)("span",{className:"max-w-full whitespace-normal break-all text-left",children:c})]})}o(oa,"WorkspaceFileLink");function ia({category:e,liveness:t,statusIconKey:n,label:r,className:l,sizeClassName:a="h-3.5 w-3.5",inline:i=!1}){const s=ir(),c=lr(n)??nr(e),p=n==="git-merge"?"text-violet-600 border-violet-600 dark:text-violet-400 dark:border-violet-400":ur[e]??"text-muted-foreground border-muted-foreground",f=t==="fresh"||t==="unknown"?"":` (${Ot(t)})`,u=`${r??_t(e)}${f}`,d=i?"relative mr-1 inline-flex shrink-0 align-(--va-0_125em)":"relative inline-flex shrink-0",h=i?"h-3 w-3":a,g=e==="running"&&!s?"animate-spin":"";return(0,y.jsxs)("span",{role:"img","aria-label":u,className:W(d,l),children:[(0,y.jsx)(c,{"aria-hidden":"true",className:W(h,p.split(" ").filter(w=>w.startsWith("text-")).join(" "),g)}),t==="stale"?(0,y.jsx)(tr,{"aria-hidden":"true",className:W("absolute -bottom-0.5 -right-0.5 h-2 w-2 rounded-full bg-background text-muted-foreground",i?"":"p-px")}):null]})}o(ia,"ExternalObjectStatusIcon");var aa=/^\/cases\/([A-Z][A-Z0-9]*-C\d+)$/i;function sa(e){if(!e)return null;const t=decodeURIComponent(e.trim()).match(aa);return t?t[1].toUpperCase():null}o(sa,"caseIdentifierFromHref");var Ne=null;function ua({issuePathId:e,children:t}){const n=At(),[r,l]=(0,k.useState)(!1),{data:a}=jn({queryKey:Pt.issues.detail(e),enabled:r,placeholderData:Nn(n,e),queryFn:o(()=>_n.get(e),"queryFn"),staleTime:6e4}),i=a?.identifier??e,s=a?.title??i,c=a?.status,p=s!==i?`Issue ${i}: ${s}`:`Issue ${i}`;return(0,y.jsxs)(He,{to:`/issues/${i}`,"data-mention-kind":"issue",onPointerEnter:o(()=>l(!0),"onPointerEnter"),onFocus:o(()=>l(!0),"onFocus"),className:W("paperclip-markdown-issue-ref","font-normal underline"),title:s,"aria-label":p,children:[c?(0,y.jsx)(ar,{status:c,size:"md",className:"relative -top-px mr-1 inline-block h-4 w-4 align-middle"}):null,t]})}o(ua,"MarkdownIssueLink");function ca({identifier:e,children:t}){const n=On();return(0,y.jsx)(He,{to:n(e),"data-mention-kind":"case",className:W("paperclip-markdown-case-ref","font-normal underline"),"aria-label":`Case ${e}`,children:t})}o(ca,"MarkdownCaseLink");function pa({href:e,reference:t,children:n}){const r=rr(t.providerKey),l=t.displayKey?.trim()||r,a=t.statusLabel??_t(t.statusCategory),i=Ot(t.liveness),s=t.liveness==="fresh"||t.liveness==="unknown"?"":` (${i})`,c=[t.displayTitle??`${l} ${a}`,`${l} — ${a}${s}`].filter(Boolean).join(" · ");return(0,y.jsxs)("a",{href:e,target:"_blank",rel:"noopener noreferrer","data-external-link":"resolved","data-external-status":t.statusCategory,"data-external-liveness":t.liveness,title:c,"aria-label":`${l} ${a}${s}: ${t.displayTitle??e}`,className:"paperclip-markdown-external-ref",children:[(0,y.jsx)(ia,{category:t.statusCategory,liveness:t.liveness,statusIconKey:t.statusIconKey,label:`${l}: ${a}`,inline:!0}),n]})}o(pa,"MarkdownExternalLink");function fa(){return Ne||(Ne=Tn(()=>import("./mermaid.core-G_BSi0G0.js").then(e=>e.default),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),Ne}o(fa,"loadMermaid");var da={overflowWrap:"anywhere",wordBreak:"break-word"},ha={maxWidth:"100%",overflowX:"auto"},ma={position:"absolute",top:"0.4rem",right:"0.4rem",display:"inline-flex",alignItems:"center",gap:"0.25rem"},Cn={position:"static",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.25rem",minHeight:"1.55rem",padding:"0.2rem 0.4rem",borderRadius:"calc(var(--radius) - 4px)",border:"1px solid color-mix(in oklab, var(--foreground) 14%, transparent)",backgroundColor:"var(--background)",color:"var(--muted-foreground)",fontSize:"var(--text-micro)",lineHeight:1,cursor:"pointer"},Ct={...Cn,width:"1.55rem",paddingInline:0},ga={overflowWrap:"anywhere",wordBreak:"normal"};function ya(e){return e.type==="html"&&typeof e.value=="string"&&/^<!--[\s\S]*-->$/.test(e.value.trim())}o(ya,"isHtmlCommentNode");function wa(e){if(e.type!=="text"||typeof e.value!="string")return!1;const t=e.value.trim();return/^\\?<!--(?:\s*-{0,2}>?)?$/.test(t)||/^<!--(?:\s*-{0,2}(?:>)?)?$/.test(t)}o(wa,"isEscapedHtmlCommentPlaceholder");function ka(){return e=>{const t=o(n=>{const r=n.children;if(r){n.children=r.filter(l=>!ya(l)&&!wa(l));for(const l of n.children)t(l)}},"visit");t(e)}}o(ka,"remarkDropHtmlComments");function K(e){return{...da,...e}}o(K,"mergeWrapStyle");function Et(e){return{...ga,...e}}o(Et,"mergeTableCellStyle");function va(e){return{...ha,...e}}o(va,"mergeScrollableBlockStyle");function et(e){return e==null?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(t=>et(t)).join(""):""}o(et,"flattenText");function ba(e){if(!(0,k.isValidElement)(e))return null;const t=e.props;return typeof t.className!="string"||!/\blanguage-mermaid\b/i.test(t.className)?null:et(t.children).replace(/\n$/,"")}o(ba,"extractMermaidSource");function xa(e){return e.startsWith("workspace-file:")||Nt(e)?e:tn(e)}o(xa,"safeMarkdownUrlTransform");var Sa=/\[\[([^\]\r\n]+)\]\]/g,Ca=new Set(["definition","image","imageReference","link","linkReference"]);function Ea(e){const[t,...n]=e.split("|"),r=t?.trim()??"",l=n.length>0?n.join("|").trim():r;return!r||r.includes("[")||r.includes("]")?null:{target:r,label:l||r}}o(Ea,"parseWikiLinkBody");function Ia(e){const t=e.trim();if(!t||/^[a-z][a-z\d+.-]*:/i.test(t)||t.startsWith("//"))return null;const n=t.indexOf("#"),r=(n>=0?t.slice(0,n):t).trim().replace(/^\/+/,"");if(!r||r.includes("\\")||r.split("/").some(i=>!i||i==="."||i===".."))return null;const l=r.split("/").map(i=>encodeURIComponent(i)).join("/"),a=n>=0?t.slice(n+1).trim():"";return a?`${l}#${encodeURIComponent(a)}`:l}o(Ia,"encodeWikiLinkTarget");function It(e,t){const n=Ia(e);if(!n)return null;const r=t?.trim().replace(/\/+$/,"")??"";return r?`${r}/${n}`:n}o(It,"defaultWikiLinkHref");function Aa(e,t){return{type:"link",url:e,title:null,data:{hProperties:{"data-paperclip-wiki-link":"true","data-paperclip-wiki-target":t.target}},children:[{type:"text",value:t.label}]}}o(Aa,"createWikiLinkNode");function Pa(e,t){const n=[];let r=0;for(const l of e.matchAll(Sa)){const a=l[0]??"",i=l[1]??"",s=l.index??0;s>r&&n.push({type:"text",value:e.slice(r,s)});const c=Ea(i);let p=null;if(c)if(t.resolveWikiLinkHref){const f=t.resolveWikiLinkHref(c.target,c.label);p=f===void 0?It(c.target,t.wikiLinkRoot):f}else p=It(c.target,t.wikiLinkRoot);c&&p?n.push(Aa(p,c)):n.push({type:"text",value:a}),r=s+a.length}return r<e.length&&n.push({type:"text",value:e.slice(r)}),n}o(Pa,"splitTextByWikiLinks");function En(e,t){!e.children||Ca.has(e.type??"")||(e.children=e.children.flatMap(n=>n.type==="text"&&typeof n.value=="string"&&n.value.includes("[[")?Pa(n.value,t):(En(n,t),n)))}o(En,"transformWikiLinkChildren");function La(e){return o(function(){return n=>{En(n,e)}},"remarkWikiLinks")}o(La,"createRemarkWikiLinks");function Ra(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&(t.hostname==="github.com"||t.hostname==="www.github.com")}catch{return!1}}o(Ra,"isGitHubUrl");function ja(e){if(!e)return!1;try{const t=new URL(e);return t.protocol!=="http:"&&t.protocol!=="https:"?!1:typeof window>"u"?!0:t.origin!==window.location.origin}catch{return!1}}o(ja,"isExternalHttpUrl");function Ta(e,t,n){if(!t&&!n)return e;if(typeof e=="string"&&e.length>0){if(e.length===1)return(0,y.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[t,e,n]});const r=e[0],l=e[e.length-1],a=e.slice(1,-1);return(0,y.jsxs)(y.Fragment,{children:[t?(0,y.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[t,r]}):r,a,n?(0,y.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[l,n]}):l]})}return(0,y.jsxs)(y.Fragment,{children:[t,e,n]})}o(Ta,"renderLinkBody");function Na({children:e,preProps:t}){const[n,r]=(0,k.useState)(!1),[l,a]=(0,k.useState)(!1),[i,s]=(0,k.useState)(!1),c=(0,k.useRef)(null),p=(0,k.useRef)(void 0);(0,k.useEffect)(()=>()=>clearTimeout(p.current),[]);const f=(0,k.useCallback)(async()=>{const h=c.current?.innerText??et(e);try{await fr(h),a(!1),r(!0)}catch{a(!0),r(!0)}clearTimeout(p.current),p.current=setTimeout(()=>{r(!1),a(!1)},1500)},[e]),u=l?"Copy failed":n?"Copied!":"Copy",d=i?"Unwrap lines":"Wrap lines";return(0,y.jsxs)("div",{className:"paperclip-markdown-codeblock","data-wrap-lines":i||void 0,children:[(0,y.jsx)("pre",{...t,ref:c,style:{...va(t.style),...i?{overflowX:"hidden",whiteSpace:"pre-wrap",overflowWrap:"anywhere",wordBreak:"break-word"}:null},children:e}),(0,y.jsxs)("div",{className:"paperclip-markdown-codeblock-actions",style:ma,"data-active":n||l||i||void 0,children:[(0,y.jsx)("button",{type:"button",onClick:o(()=>s(h=>!h),"onClick"),"aria-label":d,title:d,className:"paperclip-markdown-codeblock-action paperclip-markdown-codeblock-wrap",style:i?{...Ct,borderColor:"color-mix(in oklab, var(--primary) 38%, transparent)",color:"var(--primary)"}:Ct,"aria-pressed":i,"data-active":i||void 0,children:(0,y.jsx)(yr,{"aria-hidden":"true",className:"h-3.5 w-3.5"})}),(0,y.jsxs)("button",{type:"button",onClick:f,"aria-label":"Copy code",title:u,className:"paperclip-markdown-codeblock-action paperclip-markdown-codeblock-copy",style:Cn,"data-copied":n||void 0,"data-failed":l||void 0,children:[n&&!l?(0,y.jsx)(sr,{"aria-hidden":"true",className:"h-3.5 w-3.5"}):(0,y.jsx)(cr,{"aria-hidden":"true",className:"h-3.5 w-3.5"}),(0,y.jsx)("span",{className:"paperclip-markdown-codeblock-action-label",children:u})]})]})]})}o(Na,"CodeBlock");function _a({source:e,darkMode:t}){const n=(0,k.useId)().replace(/[^a-zA-Z0-9_-]/g,""),[r,l]=(0,k.useState)(null),[a,i]=(0,k.useState)(null);return(0,k.useEffect)(()=>{let s=!0;return l(null),i(null),fa().then(async c=>{c.initialize({startOnLoad:!1,securityLevel:"strict",theme:t?"dark":"default",fontFamily:"inherit",suppressErrorRendering:!0});const p=await c.render(`paperclip-mermaid-${n}`,e);s&&l(p.svg)}).catch(c=>{if(!s)return;const p=c instanceof Error&&c.message?c.message:"Failed to render Mermaid diagram.";i(p)}),()=>{s=!1}},[t,n,e]),(0,y.jsx)("div",{className:"paperclip-mermaid",children:r?(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("p",{className:W("paperclip-mermaid-status",a&&"paperclip-mermaid-status-error"),children:a?`Unable to render Mermaid diagram: ${a}`:"Rendering Mermaid diagram..."}),(0,y.jsx)("pre",{className:"paperclip-mermaid-source",children:(0,y.jsx)("code",{className:"language-mermaid",children:e})})]})})}o(_a,"MermaidDiagramBlock");function Oa({children:e,className:t,style:n,softBreaks:r=!0,linkIssueReferences:l=!0,linkCaseReferences:a=!1,enableWikiLinks:i=!1,wikiLinkRoot:s,resolveWikiLinkHref:c,externalReferences:p,resolveImageSrc:f,onImageClick:u,mediaMode:d="render",resolveWorkspaceFileRef:h}){const{theme:g}=Cr(),w=Rn()?.companies,v=(0,k.useMemo)(()=>w?.length?w.map(x=>x.issuePrefix):void 0,[w]),C=(0,k.useMemo)(()=>{if(!p)return null;const x={};for(const[I,S]of Object.entries(p)){const P=rt(I)??I;x[P]=S}return x},[p]),b=(0,k.useMemo)(()=>{const x=[Ci,ka];return i&&x.push(La({wikiLinkRoot:s,resolveWikiLinkHref:c})),h&&x.push(Mi(h)),l&&x.push([Dn,{knownPrefixes:v}]),a&&x.push([Pi,{knownPrefixes:v}]),r&&x.push($i),x},[i,s,c,h,l,a,v,r]),L=(0,k.useMemo)(()=>{const x={p:o(({node:I,style:S,children:P,...R})=>(0,y.jsx)("p",{...R,style:K(S),children:P}),"p"),li:o(({node:I,style:S,children:P,...R})=>(0,y.jsx)("li",{...R,style:K(S),children:P}),"li"),blockquote:o(({node:I,style:S,children:P,...R})=>(0,y.jsx)("blockquote",{...R,style:K(S),children:P}),"blockquote"),table:o(({node:I,style:S,children:P,...R})=>(0,y.jsx)("div",{className:"paperclip-markdown-table-scroll",role:"region","aria-label":"Scrollable table",tabIndex:0,children:(0,y.jsx)("table",{...R,style:S,children:P})}),"table"),td:o(({node:I,style:S,children:P,...R})=>(0,y.jsx)("td",{...R,style:Et(S),children:P}),"td"),th:o(({node:I,style:S,children:P,...R})=>(0,y.jsx)("th",{...R,style:Et(S),children:P}),"th"),pre:o(({node:I,children:S,...P})=>{const R=ba(S);return R&&d==="render"?(0,y.jsx)(_a,{source:R,darkMode:g==="dark"}):(0,y.jsx)(Na,{preProps:P,children:S})},"pre"),code:o(({node:I,style:S,children:P,...R})=>(0,y.jsx)("code",{...R,style:K(S),children:P}),"code"),a:o(({node:I,href:S,style:P,children:R,...N})=>{const U=_i(S);if(U)return(0,y.jsx)(oa,{workspaceFileRef:U,label:R,className:typeof N.className=="string"?N.className:void 0});if(N["data-paperclip-wiki-link"]==="true"&&S&&!/^[a-z][a-z\d+.-]*:/i.test(S)&&!S.startsWith("//"))return(0,y.jsx)(He,{to:S,...N,rel:"noreferrer",style:K(P),children:R});const ee=l?Mn(S):null;if(ee)return(0,y.jsx)(ua,{issuePathId:ee.issuePathId,children:R});const te=a?sa(S):null;if(te)return(0,y.jsx)(ca,{identifier:te,children:R});const O=S?Nt(S):null;if(O){const ve=O.kind==="project"?`/projects/${O.projectId}`:O.kind==="issue"?`/issues/${O.identifier}`:O.kind==="skill"?`/skills/${O.skillId}`:O.kind==="routine"?`/routines/${O.routineId}`:O.kind==="user"?"/company/settings/access":`/agents/${O.agentId}`;return(0,y.jsx)("a",{href:ve,className:W("paperclip-mention-chip",`paperclip-mention-chip--${O.kind}`,O.kind==="project"&&"paperclip-project-mention-chip"),"data-mention-kind":O.kind,style:{...K(P),...Yn(O)},children:R})}const ce=S&&C?C[rt(S)??""]??null:null;if(ce&&S)return(0,y.jsx)(pa,{href:S,reference:ce,children:R});const pe=Ra(S),j=ja(S),A=pe?(0,y.jsx)(or,{"aria-hidden":"true",className:"mr-1 inline h-3.5 w-3.5 align-(--va-0_125em)"}):null,M=j&&!pe?(0,y.jsx)(dr,{"aria-hidden":"true",className:"ml-1 inline h-3 w-3 align-(--va-0_125em)"}):null;return(0,y.jsx)("a",{href:S,...j?{target:"_blank",rel:"noopener noreferrer"}:{rel:"noreferrer"},style:K(P),children:Ta(R,A,M)})},"a")};return d==="reference"?x.img=({src:I,alt:S,title:P})=>(0,y.jsxs)("span",{"data-markdown-image-reference":!0,title:P,children:["Image: ",S||"Untitled image",I?` (${I})`:""]}):(f||u)&&(x.img=({node:I,src:S,alt:P,...R})=>{const N=(f&&S?f(S):null)??S;return(0,y.jsx)("img",{...R,src:N,alt:P??"",onClick:u&&N?U=>{U.preventDefault(),u(N)}:void 0,style:u?{cursor:"pointer",...R.style}:R.style})}),x},[g,l,a,C,f,u,d]);return(0,y.jsx)("div",{className:W("paperclip-markdown prose prose-sm min-w-0 max-w-full break-words overflow-hidden",g==="dark"&&"prose-invert",t),style:K(n),children:(0,y.jsx)(xo,{remarkPlugins:b,components:L,urlTransform:xa,children:e})})}o(Oa,"MarkdownBodyImpl");var Ja=(0,k.memo)(Oa);export{xo as _,Ya as a,mr as b,ea as c,Za as d,na as f,yn as g,Hi as h,Ji as i,Qi as l,Ga as m,ia as n,xn as o,Be as p,oa as r,ta as s,Ja as t,la as u,Xa as v,Cr as y};
|