@stigmer/server-slim 0.1.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 +3 -0
- package/console/404.html +1 -0
- package/console/__next.__PAGE__.txt +54 -0
- package/console/__next._full.txt +71 -0
- package/console/__next._index.txt +62 -0
- package/console/__next._tree.txt +6 -0
- package/console/_next/static/GjBokeF86FffwftazOhh6/_buildManifest.js +11 -0
- package/console/_next/static/GjBokeF86FffwftazOhh6/_clientMiddlewareManifest.js +1 -0
- package/console/_next/static/GjBokeF86FffwftazOhh6/_ssgManifest.js +1 -0
- package/console/_next/static/chunks/0376wi8qbsw94.js +1 -0
- package/console/_next/static/chunks/04cglffeuwumk.js +1 -0
- package/console/_next/static/chunks/04d276dp3qb52.js +1 -0
- package/console/_next/static/chunks/05526ws9tzwim.js +1 -0
- package/console/_next/static/chunks/05t5235u7o-c4.js +25 -0
- package/console/_next/static/chunks/06fz-g9t73bd6.js +4 -0
- package/console/_next/static/chunks/0789xt7opwvm-.js +24 -0
- package/console/_next/static/chunks/07twy5plc911w.js +1 -0
- package/console/_next/static/chunks/08-p5zefc1rea.js +1 -0
- package/console/_next/static/chunks/085db4op75mf5.js +1 -0
- package/console/_next/static/chunks/0923388wak11-.js +1 -0
- package/console/_next/static/chunks/0_7s7fzux7kiv.js +1 -0
- package/console/_next/static/chunks/0_bjj6hug8d9a.js +1 -0
- package/console/_next/static/chunks/0_zscrk6o0d0-.js +1 -0
- package/console/_next/static/chunks/0a4x97q7frgj3.js +1 -0
- package/console/_next/static/chunks/0ab5jlm8l0aud.js +1 -0
- package/console/_next/static/chunks/0c_c2b4z1yc02.js +1 -0
- package/console/_next/static/chunks/0cuyycns49hl4.js +1 -0
- package/console/_next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- package/console/_next/static/chunks/0d8f3-znyc_to.js +1 -0
- package/console/_next/static/chunks/0e-f1rkyz_u2k.js +1 -0
- package/console/_next/static/chunks/0ffx83gbnwq09.js +28 -0
- package/console/_next/static/chunks/0fyno0jk61txk.js +115 -0
- package/console/_next/static/chunks/0ggwoicp90w_s.js +1 -0
- package/console/_next/static/chunks/0h_7_i44vofe3.js +1 -0
- package/console/_next/static/chunks/0hagmppwo8s-f.js +1 -0
- package/console/_next/static/chunks/0hfvbn6c9k3pf.js +1 -0
- package/console/_next/static/chunks/0hw7vilkfpzlc.js +1 -0
- package/console/_next/static/chunks/0kb63xcvghh_3.js +1 -0
- package/console/_next/static/chunks/0ko5wsi6kukgd.js +1 -0
- package/console/_next/static/chunks/0kq99qin4db-q.js +1 -0
- package/console/_next/static/chunks/0kqg4u5n17gje.js +1 -0
- package/console/_next/static/chunks/0ky9qppyx1n57.js +62 -0
- package/console/_next/static/chunks/0og4_5pph-mhm.js +1 -0
- package/console/_next/static/chunks/0p7p-bpdrqx75.js +1 -0
- package/console/_next/static/chunks/0q2bnr94vvuc2.js +1 -0
- package/console/_next/static/chunks/0q3sxhnylk_gn.js +1 -0
- package/console/_next/static/chunks/0qg6l3tattq3j.js +1 -0
- package/console/_next/static/chunks/0qwyk_70quvjh.js +1 -0
- package/console/_next/static/chunks/0qzyqii8_m5r2.js +1 -0
- package/console/_next/static/chunks/0rlfx91598uvc.js +1 -0
- package/console/_next/static/chunks/0s9njms3lumhx.js +1 -0
- package/console/_next/static/chunks/0srualwd948m1.js +29 -0
- package/console/_next/static/chunks/0u4m2805tgi7x.js +1 -0
- package/console/_next/static/chunks/0udcs-1vq74rp.js +1 -0
- package/console/_next/static/chunks/0vno04lmwdchj.js +1 -0
- package/console/_next/static/chunks/0vt1_fu_q116n.js +1 -0
- package/console/_next/static/chunks/0vuq85gcb9zcl.js +1 -0
- package/console/_next/static/chunks/0wxazby0i4xu3.js +5 -0
- package/console/_next/static/chunks/0yeh2zqwmmec0.js +22 -0
- package/console/_next/static/chunks/0zvl88sijsrqk.js +1 -0
- package/console/_next/static/chunks/110bgpy30m6m6.js +1 -0
- package/console/_next/static/chunks/14ipylvs6qyyw.js +1 -0
- package/console/_next/static/chunks/1745jt9onokna.js +1 -0
- package/console/_next/static/chunks/177rfq0tsoku9.js +4 -0
- package/console/_next/static/chunks/17mfsiiquey1d.js +1 -0
- package/console/_next/static/chunks/197iuvi8udifl.js +1 -0
- package/console/_next/static/chunks/1_2-z0tjk0xio.js +1 -0
- package/console/_next/static/chunks/1_gh5a14dqnji.js +1 -0
- package/console/_next/static/chunks/1ame8n7x9g3xc.js +1 -0
- package/console/_next/static/chunks/1apepr-7dz16b.js +1 -0
- package/console/_next/static/chunks/1dtukwrl8nulc.js +1 -0
- package/console/_next/static/chunks/1e0br64ibniud.js +24 -0
- package/console/_next/static/chunks/1fm-45g777ifx.js +1 -0
- package/console/_next/static/chunks/1g_iha5barqef.js +1 -0
- package/console/_next/static/chunks/1glr_lki18csr.js +2 -0
- package/console/_next/static/chunks/1hl355w6m5bp5.js +1 -0
- package/console/_next/static/chunks/1id3p9v9v5knn.js +1 -0
- package/console/_next/static/chunks/1j6kp4gg0_ylt.js +80 -0
- package/console/_next/static/chunks/1jssq3ch7qgd6.js +60 -0
- package/console/_next/static/chunks/1jzfyfh-3gqlb.js +1 -0
- package/console/_next/static/chunks/1k3d5c49mpp-2.js +1 -0
- package/console/_next/static/chunks/1kte_bxw9m-ie.js +1 -0
- package/console/_next/static/chunks/1lw52jm27gon2.js +1 -0
- package/console/_next/static/chunks/1m9e28v8syzxx.js +34 -0
- package/console/_next/static/chunks/1mrmq_pigo_yb.js +1 -0
- package/console/_next/static/chunks/1muf1a96cgbv5.js +1 -0
- package/console/_next/static/chunks/1n1x0ykt8by6w.js +1 -0
- package/console/_next/static/chunks/1qu0tqybdtj0_.js +1 -0
- package/console/_next/static/chunks/1r8itpdfffwxa.js +1 -0
- package/console/_next/static/chunks/1r_opkrpbuykx.js +1 -0
- package/console/_next/static/chunks/1tl0h3c_bp62t.js +1 -0
- package/console/_next/static/chunks/1v1m1fr8f0yle.js +1 -0
- package/console/_next/static/chunks/1v34vj52v7q0g.js +1 -0
- package/console/_next/static/chunks/1wztfxoxnu5_9.js +1 -0
- package/console/_next/static/chunks/1x7exm5d_hhb8.js +153 -0
- package/console/_next/static/chunks/1xwdphzrhi9cn.js +1 -0
- package/console/_next/static/chunks/1yc4gdqzxa5ie.js +1 -0
- package/console/_next/static/chunks/1zunrzvni97zi.js +1 -0
- package/console/_next/static/chunks/1zv6mtmekep40.js +36 -0
- package/console/_next/static/chunks/2-jaie5wchnsy.js +1 -0
- package/console/_next/static/chunks/20aa5hen470pm.js +1 -0
- package/console/_next/static/chunks/2116ko93nwgx8.js +1 -0
- package/console/_next/static/chunks/23vk0ig36j0he.js +1 -0
- package/console/_next/static/chunks/245vlws7l85dk.js +1 -0
- package/console/_next/static/chunks/24__o4dkdytc8.js +1 -0
- package/console/_next/static/chunks/24iwqo9ejhxl8.js +127 -0
- package/console/_next/static/chunks/24o9ia1be2cze.js +1 -0
- package/console/_next/static/chunks/25aea0bgjydel.css +1 -0
- package/console/_next/static/chunks/26-p2jxr4f20d.js +1 -0
- package/console/_next/static/chunks/28c--yt2jaxxf.js +1 -0
- package/console/_next/static/chunks/28vym848oh1ng.js +1 -0
- package/console/_next/static/chunks/29ou6qb6p1lni.js +1 -0
- package/console/_next/static/chunks/2aalpmeu_tni-.js +3 -0
- package/console/_next/static/chunks/2c4ifddi2dal0.js +20 -0
- package/console/_next/static/chunks/2ckm4edha_gkb.js +43 -0
- package/console/_next/static/chunks/2d5ods6a8n6yd.js +1 -0
- package/console/_next/static/chunks/2dm5g7ylrulvb.js +15 -0
- package/console/_next/static/chunks/2dtosus35_o5k.js +1 -0
- package/console/_next/static/chunks/2e0_cm1_wv-b4.js +1 -0
- package/console/_next/static/chunks/2fh_0n31hibdi.js +226 -0
- package/console/_next/static/chunks/2fjsaw5pgjcqb.js +1 -0
- package/console/_next/static/chunks/2h5pk3yu15nwr.js +1 -0
- package/console/_next/static/chunks/2i7w4yyf77gzw.js +1 -0
- package/console/_next/static/chunks/2jo3q7mfk65kd.js +1 -0
- package/console/_next/static/chunks/2jutbapb-t64n.js +31 -0
- package/console/_next/static/chunks/2k6tx8-w1creu.js +148 -0
- package/console/_next/static/chunks/2kh_m5onqedc5.js +1 -0
- package/console/_next/static/chunks/2ltzdgpjq3v6a.js +1 -0
- package/console/_next/static/chunks/2o2ftjhtb8od3.js +2 -0
- package/console/_next/static/chunks/2pyn841-jq-oo.js +10 -0
- package/console/_next/static/chunks/2rn289343m-y_.js +139 -0
- package/console/_next/static/chunks/2t2l3h2w_04bb.js +1 -0
- package/console/_next/static/chunks/2v11hooq3xd5t.js +15 -0
- package/console/_next/static/chunks/2vsg5t3fnqmfn.js +1 -0
- package/console/_next/static/chunks/2wayafjfoiq7q.css +6 -0
- package/console/_next/static/chunks/2xsvteosdtsb-.js +1 -0
- package/console/_next/static/chunks/2y-x8nhnufxzb.js +1 -0
- package/console/_next/static/chunks/2za4b-si894xj.js +1 -0
- package/console/_next/static/chunks/3-igvp1-n4pxs.js +104 -0
- package/console/_next/static/chunks/3-k25f-adpe5f.js +1 -0
- package/console/_next/static/chunks/3-pzmot7dbrfa.js +1 -0
- package/console/_next/static/chunks/3-x5lrgs3wcpl.js +80 -0
- package/console/_next/static/chunks/30nrkrr9518_z.js +1 -0
- package/console/_next/static/chunks/316lh1-hzgnod.js +1 -0
- package/console/_next/static/chunks/31wj1au8smjge.js +1 -0
- package/console/_next/static/chunks/329o6uup9qmb3.js +1 -0
- package/console/_next/static/chunks/34_1w929-5o6r.js +287 -0
- package/console/_next/static/chunks/35szx1ga574xu.js +1 -0
- package/console/_next/static/chunks/36tg522pkl8hm.js +1 -0
- package/console/_next/static/chunks/37-y9fgnir35a.js +1 -0
- package/console/_next/static/chunks/39wss1g0ffaqt.js +1 -0
- package/console/_next/static/chunks/3_cv0gj1bm3l6.js +1 -0
- package/console/_next/static/chunks/3_f8gd_6816re.js +101 -0
- package/console/_next/static/chunks/3a4qfuhsxefh2.js +12 -0
- package/console/_next/static/chunks/3asb3ztrvogwl.js +1 -0
- package/console/_next/static/chunks/3bsxbw10qhvqo.js +1 -0
- package/console/_next/static/chunks/3by94g38ljxl1.js +1 -0
- package/console/_next/static/chunks/3c_6owv8m4rta.js +90 -0
- package/console/_next/static/chunks/3ea2eo8b5gmju.js +2 -0
- package/console/_next/static/chunks/3ercnb2rksl_a.js +1 -0
- package/console/_next/static/chunks/3esxfmmm0ypxb.js +2 -0
- package/console/_next/static/chunks/3exiw74xbmika.js +1 -0
- package/console/_next/static/chunks/3f88-tc5u2heg.js +1 -0
- package/console/_next/static/chunks/3f_axahrombdp.js +1 -0
- package/console/_next/static/chunks/3gz91kn_v2lfa.js +1 -0
- package/console/_next/static/chunks/3i9z3x7tka5x2.js +1 -0
- package/console/_next/static/chunks/3ih4kfufd47st.js +1 -0
- package/console/_next/static/chunks/3itfi41ayfopd.js +15 -0
- package/console/_next/static/chunks/3iwgig-fgcscf.js +15 -0
- package/console/_next/static/chunks/3jf8qh1ev3gb4.js +2 -0
- package/console/_next/static/chunks/3l6svfyqdsq6o.js +1 -0
- package/console/_next/static/chunks/3lj0i-qlb4ah2.js +64 -0
- package/console/_next/static/chunks/3lmx6tkunfd3u.js +1 -0
- package/console/_next/static/chunks/3lp4d64he__am.js +152 -0
- package/console/_next/static/chunks/3m_jz3b2j38nn.js +1 -0
- package/console/_next/static/chunks/3oe9w1b39nzmn.js +3 -0
- package/console/_next/static/chunks/3on7r_d8o-kna.js +1 -0
- package/console/_next/static/chunks/3pbpowf3kdu5z.js +119 -0
- package/console/_next/static/chunks/3pwwv0u29nk8c.js +23 -0
- package/console/_next/static/chunks/3rweyye6o1z6b.js +79 -0
- package/console/_next/static/chunks/3sdqgrmvxm_u4.js +201 -0
- package/console/_next/static/chunks/3t3vbs-x5hixj.js +1 -0
- package/console/_next/static/chunks/3thqnz0a5zy-h.js +9 -0
- package/console/_next/static/chunks/3udubdawo7583.js +1 -0
- package/console/_next/static/chunks/3uz4lg6e199sb.js +1 -0
- package/console/_next/static/chunks/3v2mkz_46uei2.js +1 -0
- package/console/_next/static/chunks/3w5crjmhb-3um.js +1 -0
- package/console/_next/static/chunks/3waxhrmr_82j5.js +93 -0
- package/console/_next/static/chunks/3zmlzef_jxopu.js +1 -0
- package/console/_next/static/chunks/3zqvalj8nr-1y.js +1 -0
- package/console/_next/static/chunks/40igag4gq4k0a.js +77 -0
- package/console/_next/static/chunks/40wq034qcdji_.js +1 -0
- package/console/_next/static/chunks/44crhetqymq_e.js +34 -0
- package/console/_next/static/chunks/44q2pv6a3w19q.js +1 -0
- package/console/_next/static/chunks/turbopack-2u1d16houkiyo.js +1 -0
- package/console/_next/static/media/GeistMono_Variable-s.p.21mfa-4xv0w3g.woff2 +0 -0
- package/console/_next/static/media/Geist_Variable-s.p.217kyf1h_p0cg.woff2 +0 -0
- package/console/_next/static/media/IBMPlexMono_Medium-s.2v25u5rd2tsaf.woff2 +0 -0
- package/console/_next/static/media/IBMPlexMono_Regular-s.09u63wo58kris.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Bold-s.3iicodgz0epim.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Light-s.3ntejfdcyftfg.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Medium-s.3n25cgfiu6qss.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_Regular-s.2e_-c_m03txvi.woff2 +0 -0
- package/console/_next/static/media/IBMPlexSans_SemiBold-s.2sutjpuns2xc5.woff2 +0 -0
- package/console/_next/static/media/Inter_Variable-s.2-lfiv6s83kzn.woff2 +0 -0
- package/console/_next/static/media/Nunito_Variable-s.3r4_r9s3kxd_-.woff2 +0 -0
- package/console/_not-found/__next._full.txt +73 -0
- package/console/_not-found/__next._index.txt +62 -0
- package/console/_not-found/__next._not-found.__PAGE__.txt +61 -0
- package/console/_not-found/__next._tree.txt +5 -0
- package/console/_not-found.html +1 -0
- package/console/_not-found.txt +73 -0
- package/console/apple-touch-icon-dark.png +0 -0
- package/console/apple-touch-icon-light.png +0 -0
- package/console/auth/callback/__next._full.txt +82 -0
- package/console/auth/callback/__next._index.txt +62 -0
- package/console/auth/callback/__next._tree.txt +8 -0
- package/console/auth/callback/__next.auth.callback.__PAGE__.txt +67 -0
- package/console/auth/callback.html +1 -0
- package/console/auth/callback.txt +82 -0
- package/console/auth/oauth/callback/__next._full.txt +84 -0
- package/console/auth/oauth/callback/__next._index.txt +62 -0
- package/console/auth/oauth/callback/__next._tree.txt +9 -0
- package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +69 -0
- package/console/auth/oauth/callback.html +1 -0
- package/console/auth/oauth/callback.txt +84 -0
- package/console/brand-avatar.png +0 -0
- package/console/chat/__placeholder__/__next._full.txt +80 -0
- package/console/chat/__placeholder__/__next._index.txt +62 -0
- package/console/chat/__placeholder__/__next._tree.txt +8 -0
- package/console/chat/__placeholder__/__next.chat.$d$channel.__PAGE__.txt +65 -0
- package/console/chat/__placeholder__.html +1 -0
- package/console/chat/__placeholder__.txt +80 -0
- package/console/connect/__placeholder__/__next._full.txt +79 -0
- package/console/connect/__placeholder__/__next._index.txt +62 -0
- package/console/connect/__placeholder__/__next._tree.txt +8 -0
- package/console/connect/__placeholder__/__next.connect.$d$token.__PAGE__.txt +64 -0
- package/console/connect/__placeholder__.html +1 -0
- package/console/connect/__placeholder__.txt +79 -0
- package/console/conversations/__next._full.txt +79 -0
- package/console/conversations/__next._index.txt +62 -0
- package/console/conversations/__next._tree.txt +7 -0
- package/console/conversations/__next.conversations.__PAGE__.txt +64 -0
- package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +83 -0
- package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +9 -0
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +68 -0
- package/console/conversations/__placeholder__/__placeholder__.html +1 -0
- package/console/conversations/__placeholder__/__placeholder__.txt +83 -0
- package/console/conversations.html +1 -0
- package/console/conversations.txt +79 -0
- package/console/dashboard/__next._full.txt +77 -0
- package/console/dashboard/__next._index.txt +62 -0
- package/console/dashboard/__next._tree.txt +7 -0
- package/console/dashboard/__next.dashboard.__PAGE__.txt +62 -0
- package/console/dashboard.html +1 -0
- package/console/dashboard.txt +77 -0
- package/console/desktop/billing/__next._full.txt +82 -0
- package/console/desktop/billing/__next._index.txt +62 -0
- package/console/desktop/billing/__next._tree.txt +8 -0
- package/console/desktop/billing/__next.desktop.billing.__PAGE__.txt +67 -0
- package/console/desktop/billing.html +1 -0
- package/console/desktop/billing.txt +82 -0
- package/console/embed.js +1 -0
- package/console/favicon-dark-16x16.png +0 -0
- package/console/favicon-dark-32x32.png +0 -0
- package/console/favicon-dark.ico +0 -0
- package/console/favicon-dark.svg +1 -0
- package/console/favicon-light-16x16.png +0 -0
- package/console/favicon-light-32x32.png +0 -0
- package/console/favicon-light.ico +0 -0
- package/console/favicon-light.svg +1 -0
- package/console/index.html +1 -0
- package/console/index.txt +71 -0
- package/console/invite/__placeholder__/__next._full.txt +80 -0
- package/console/invite/__placeholder__/__next._index.txt +62 -0
- package/console/invite/__placeholder__/__next._tree.txt +8 -0
- package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +65 -0
- package/console/invite/__placeholder__.html +1 -0
- package/console/invite/__placeholder__.txt +80 -0
- package/console/library/__next._full.txt +89 -0
- package/console/library/__next._index.txt +62 -0
- package/console/library/__next._tree.txt +7 -0
- package/console/library/__next.library.__PAGE__.txt +74 -0
- package/console/library/agents/__next._full.txt +94 -0
- package/console/library/agents/__next._index.txt +62 -0
- package/console/library/agents/__next._tree.txt +8 -0
- package/console/library/agents/__next.library.agents.__PAGE__.txt +79 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +96 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +81 -0
- package/console/library/agents/__placeholder__/__placeholder__.html +1 -0
- package/console/library/agents/__placeholder__/__placeholder__.txt +96 -0
- package/console/library/agents/new/__next._full.txt +99 -0
- package/console/library/agents/new/__next._index.txt +62 -0
- package/console/library/agents/new/__next._tree.txt +9 -0
- package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +84 -0
- package/console/library/agents/new.html +1 -0
- package/console/library/agents/new.txt +99 -0
- package/console/library/agents.html +1 -0
- package/console/library/agents.txt +94 -0
- package/console/library/environments/__next._full.txt +95 -0
- package/console/library/environments/__next._index.txt +62 -0
- package/console/library/environments/__next._tree.txt +8 -0
- package/console/library/environments/__next.library.environments.__PAGE__.txt +80 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next._full.txt +97 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/environments/__placeholder__/__placeholder__/__next.library.environments.$d$org.$d$slug.__PAGE__.txt +82 -0
- package/console/library/environments/__placeholder__/__placeholder__.html +1 -0
- package/console/library/environments/__placeholder__/__placeholder__.txt +97 -0
- package/console/library/environments/new/__next._full.txt +99 -0
- package/console/library/environments/new/__next._index.txt +62 -0
- package/console/library/environments/new/__next._tree.txt +9 -0
- package/console/library/environments/new/__next.library.environments.new.__PAGE__.txt +84 -0
- package/console/library/environments/new.html +1 -0
- package/console/library/environments/new.txt +99 -0
- package/console/library/environments.html +1 -0
- package/console/library/environments.txt +95 -0
- package/console/library/files/__next._full.txt +94 -0
- package/console/library/files/__next._index.txt +62 -0
- package/console/library/files/__next._tree.txt +8 -0
- package/console/library/files/__next.library.files.__PAGE__.txt +79 -0
- package/console/library/files.html +1 -0
- package/console/library/files.txt +94 -0
- package/console/library/plugins/__next._full.txt +94 -0
- package/console/library/plugins/__next._index.txt +62 -0
- package/console/library/plugins/__next._tree.txt +8 -0
- package/console/library/plugins/__next.library.plugins.__PAGE__.txt +79 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next._full.txt +97 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.__PAGE__.txt +82 -0
- package/console/library/plugins/__placeholder__/__placeholder__.html +1 -0
- package/console/library/plugins/__placeholder__/__placeholder__.txt +97 -0
- package/console/library/plugins/upload/__next._full.txt +99 -0
- package/console/library/plugins/upload/__next._index.txt +62 -0
- package/console/library/plugins/upload/__next._tree.txt +9 -0
- package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +84 -0
- package/console/library/plugins/upload.html +1 -0
- package/console/library/plugins/upload.txt +99 -0
- package/console/library/plugins.html +1 -0
- package/console/library/plugins.txt +94 -0
- package/console/library/routines/__next._full.txt +94 -0
- package/console/library/routines/__next._index.txt +62 -0
- package/console/library/routines/__next._tree.txt +8 -0
- package/console/library/routines/__next.library.routines.__PAGE__.txt +79 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next._full.txt +97 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/routines/__placeholder__/__placeholder__/__next.library.routines.$d$org.$d$slug.__PAGE__.txt +82 -0
- package/console/library/routines/__placeholder__/__placeholder__.html +1 -0
- package/console/library/routines/__placeholder__/__placeholder__.txt +97 -0
- package/console/library/routines/new/__next._full.txt +98 -0
- package/console/library/routines/new/__next._index.txt +62 -0
- package/console/library/routines/new/__next._tree.txt +9 -0
- package/console/library/routines/new/__next.library.routines.new.__PAGE__.txt +83 -0
- package/console/library/routines/new.html +1 -0
- package/console/library/routines/new.txt +98 -0
- package/console/library/routines.html +1 -0
- package/console/library/routines.txt +94 -0
- package/console/library/skills/__next._full.txt +94 -0
- package/console/library/skills/__next._index.txt +62 -0
- package/console/library/skills/__next._tree.txt +8 -0
- package/console/library/skills/__next.library.skills.__PAGE__.txt +79 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +96 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +62 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +10 -0
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +81 -0
- package/console/library/skills/__placeholder__/__placeholder__.html +1 -0
- package/console/library/skills/__placeholder__/__placeholder__.txt +96 -0
- package/console/library/skills/new/__next._full.txt +98 -0
- package/console/library/skills/new/__next._index.txt +62 -0
- package/console/library/skills/new/__next._tree.txt +9 -0
- package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +83 -0
- package/console/library/skills/new.html +1 -0
- package/console/library/skills/new.txt +98 -0
- package/console/library/skills.html +1 -0
- package/console/library/skills.txt +94 -0
- package/console/library.html +1 -0
- package/console/library.txt +89 -0
- package/console/login/__next._full.txt +81 -0
- package/console/login/__next._index.txt +62 -0
- package/console/login/__next._tree.txt +7 -0
- package/console/login/__next.login.__PAGE__.txt +66 -0
- package/console/login.html +1 -0
- package/console/login.txt +81 -0
- package/console/marketplace/__next._full.txt +81 -0
- package/console/marketplace/__next._index.txt +62 -0
- package/console/marketplace/__next._tree.txt +7 -0
- package/console/marketplace/__next.marketplace.__PAGE__.txt +66 -0
- package/console/marketplace.html +1 -0
- package/console/marketplace.txt +81 -0
- package/console/models/__next._full.txt +77 -0
- package/console/models/__next._index.txt +62 -0
- package/console/models/__next._tree.txt +7 -0
- package/console/models/__next.models.__PAGE__.txt +62 -0
- package/console/models.html +1 -0
- package/console/models.txt +77 -0
- package/console/oauth/slack/callback/__next._full.txt +84 -0
- package/console/oauth/slack/callback/__next._index.txt +62 -0
- package/console/oauth/slack/callback/__next._tree.txt +9 -0
- package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +69 -0
- package/console/oauth/slack/callback.html +1 -0
- package/console/oauth/slack/callback.txt +84 -0
- package/console/runs/__placeholder__/__next._full.txt +77 -0
- package/console/runs/__placeholder__/__next._index.txt +62 -0
- package/console/runs/__placeholder__/__next._tree.txt +8 -0
- package/console/runs/__placeholder__/__next.runs.$d$id.__PAGE__.txt +62 -0
- package/console/runs/__placeholder__.html +1 -0
- package/console/runs/__placeholder__.txt +77 -0
- package/console/sessions/__placeholder__/__next._full.txt +77 -0
- package/console/sessions/__placeholder__/__next._index.txt +62 -0
- package/console/sessions/__placeholder__/__next._tree.txt +8 -0
- package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +62 -0
- package/console/sessions/__placeholder__.html +1 -0
- package/console/sessions/__placeholder__.txt +77 -0
- package/console/settings/__next._full.txt +85 -0
- package/console/settings/__next._index.txt +62 -0
- package/console/settings/__next._tree.txt +7 -0
- package/console/settings/__next.settings.__PAGE__.txt +70 -0
- package/console/settings/access-history/__next._full.txt +87 -0
- package/console/settings/access-history/__next._index.txt +62 -0
- package/console/settings/access-history/__next._tree.txt +8 -0
- package/console/settings/access-history/__next.settings.access-history.__PAGE__.txt +72 -0
- package/console/settings/access-history.html +1 -0
- package/console/settings/access-history.txt +87 -0
- package/console/settings/account-preferences/__next._full.txt +87 -0
- package/console/settings/account-preferences/__next._index.txt +62 -0
- package/console/settings/account-preferences/__next._tree.txt +8 -0
- package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +72 -0
- package/console/settings/account-preferences.html +1 -0
- package/console/settings/account-preferences.txt +87 -0
- package/console/settings/api-keys/__next._full.txt +86 -0
- package/console/settings/api-keys/__next._index.txt +62 -0
- package/console/settings/api-keys/__next._tree.txt +8 -0
- package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +71 -0
- package/console/settings/api-keys.html +1 -0
- package/console/settings/api-keys.txt +86 -0
- package/console/settings/billing/__next._full.txt +89 -0
- package/console/settings/billing/__next._index.txt +62 -0
- package/console/settings/billing/__next._tree.txt +8 -0
- package/console/settings/billing/__next.settings.billing.__PAGE__.txt +74 -0
- package/console/settings/billing.html +1 -0
- package/console/settings/billing.txt +89 -0
- package/console/settings/channel-apps/__next._full.txt +87 -0
- package/console/settings/channel-apps/__next._index.txt +62 -0
- package/console/settings/channel-apps/__next._tree.txt +8 -0
- package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +72 -0
- package/console/settings/channel-apps.html +1 -0
- package/console/settings/channel-apps.txt +87 -0
- package/console/settings/federation-issuers/__next._full.txt +88 -0
- package/console/settings/federation-issuers/__next._index.txt +62 -0
- package/console/settings/federation-issuers/__next._tree.txt +8 -0
- package/console/settings/federation-issuers/__next.settings.federation-issuers.__PAGE__.txt +73 -0
- package/console/settings/federation-issuers.html +1 -0
- package/console/settings/federation-issuers.txt +88 -0
- package/console/settings/invitations/__next._full.txt +87 -0
- package/console/settings/invitations/__next._index.txt +62 -0
- package/console/settings/invitations/__next._tree.txt +8 -0
- package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +72 -0
- package/console/settings/invitations.html +1 -0
- package/console/settings/invitations.txt +87 -0
- package/console/settings/licenses/__next._full.txt +90 -0
- package/console/settings/licenses/__next._index.txt +62 -0
- package/console/settings/licenses/__next._tree.txt +8 -0
- package/console/settings/licenses/__next.settings.licenses.__PAGE__.txt +75 -0
- package/console/settings/licenses.html +1 -0
- package/console/settings/licenses.txt +90 -0
- package/console/settings/members/__next._full.txt +86 -0
- package/console/settings/members/__next._index.txt +62 -0
- package/console/settings/members/__next._tree.txt +8 -0
- package/console/settings/members/__next.settings.members.__PAGE__.txt +71 -0
- package/console/settings/members.html +1 -0
- package/console/settings/members.txt +86 -0
- package/console/settings/memory/__next._full.txt +86 -0
- package/console/settings/memory/__next._index.txt +62 -0
- package/console/settings/memory/__next._tree.txt +8 -0
- package/console/settings/memory/__next.settings.memory.__PAGE__.txt +71 -0
- package/console/settings/memory.html +1 -0
- package/console/settings/memory.txt +86 -0
- package/console/settings/model-catalog/__next._full.txt +89 -0
- package/console/settings/model-catalog/__next._index.txt +62 -0
- package/console/settings/model-catalog/__next._tree.txt +8 -0
- package/console/settings/model-catalog/__next.settings.model-catalog.__PAGE__.txt +74 -0
- package/console/settings/model-catalog.html +1 -0
- package/console/settings/model-catalog.txt +89 -0
- package/console/settings/notifications/__next._full.txt +89 -0
- package/console/settings/notifications/__next._index.txt +62 -0
- package/console/settings/notifications/__next._tree.txt +8 -0
- package/console/settings/notifications/__next.settings.notifications.__PAGE__.txt +74 -0
- package/console/settings/notifications.html +1 -0
- package/console/settings/notifications.txt +89 -0
- package/console/settings/oauth-apps/__next._full.txt +87 -0
- package/console/settings/oauth-apps/__next._index.txt +62 -0
- package/console/settings/oauth-apps/__next._tree.txt +8 -0
- package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +72 -0
- package/console/settings/oauth-apps.html +1 -0
- package/console/settings/oauth-apps.txt +87 -0
- package/console/settings/org-embedding/__next._full.txt +87 -0
- package/console/settings/org-embedding/__next._index.txt +62 -0
- package/console/settings/org-embedding/__next._tree.txt +8 -0
- package/console/settings/org-embedding/__next.settings.org-embedding.__PAGE__.txt +72 -0
- package/console/settings/org-embedding.html +1 -0
- package/console/settings/org-embedding.txt +87 -0
- package/console/settings/org-policies/__next._full.txt +87 -0
- package/console/settings/org-policies/__next._index.txt +62 -0
- package/console/settings/org-policies/__next._tree.txt +8 -0
- package/console/settings/org-policies/__next.settings.org-policies.__PAGE__.txt +72 -0
- package/console/settings/org-policies.html +1 -0
- package/console/settings/org-policies.txt +87 -0
- package/console/settings/org-preferences/__next._full.txt +87 -0
- package/console/settings/org-preferences/__next._index.txt +62 -0
- package/console/settings/org-preferences/__next._tree.txt +8 -0
- package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +72 -0
- package/console/settings/org-preferences.html +1 -0
- package/console/settings/org-preferences.txt +87 -0
- package/console/settings/org-profile/__next._full.txt +89 -0
- package/console/settings/org-profile/__next._index.txt +62 -0
- package/console/settings/org-profile/__next._tree.txt +8 -0
- package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +74 -0
- package/console/settings/org-profile.html +1 -0
- package/console/settings/org-profile.txt +89 -0
- package/console/settings/plans/__next._full.txt +89 -0
- package/console/settings/plans/__next._index.txt +62 -0
- package/console/settings/plans/__next._tree.txt +8 -0
- package/console/settings/plans/__next.settings.plans.__PAGE__.txt +74 -0
- package/console/settings/plans.html +1 -0
- package/console/settings/plans.txt +89 -0
- package/console/settings/service-accounts/__next._full.txt +87 -0
- package/console/settings/service-accounts/__next._index.txt +62 -0
- package/console/settings/service-accounts/__next._tree.txt +8 -0
- package/console/settings/service-accounts/__next.settings.service-accounts.__PAGE__.txt +72 -0
- package/console/settings/service-accounts.html +1 -0
- package/console/settings/service-accounts.txt +87 -0
- package/console/settings/teams/__next._full.txt +86 -0
- package/console/settings/teams/__next._index.txt +62 -0
- package/console/settings/teams/__next._tree.txt +8 -0
- package/console/settings/teams/__next.settings.teams.__PAGE__.txt +71 -0
- package/console/settings/teams.html +1 -0
- package/console/settings/teams.txt +86 -0
- package/console/settings/usage/__next._full.txt +86 -0
- package/console/settings/usage/__next._index.txt +62 -0
- package/console/settings/usage/__next._tree.txt +8 -0
- package/console/settings/usage/__next.settings.usage.__PAGE__.txt +71 -0
- package/console/settings/usage.html +1 -0
- package/console/settings/usage.txt +86 -0
- package/console/settings/vaults/__next._full.txt +86 -0
- package/console/settings/vaults/__next._index.txt +62 -0
- package/console/settings/vaults/__next._tree.txt +8 -0
- package/console/settings/vaults/__next.settings.vaults.__PAGE__.txt +71 -0
- package/console/settings/vaults.html +1 -0
- package/console/settings/vaults.txt +86 -0
- package/console/settings.html +1 -0
- package/console/settings.txt +85 -0
- package/main.js +1656 -0
- package/mappings.wasm +0 -0
- package/package.json +25 -0
- package/workflow-bundle-agent-execution.js +29297 -0
- package/workflow-bundle-evals.js +11997 -0
- package/workflow-bundle-grading.js +11155 -0
- package/workflow-bundle-routine.js +11300 -0
- package/workflow-worker-thread.cjs +111 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,547902,t=>{"use strict";var e=t.i(707510),s=t.i(443578),i=t.i(233755),r=t.i(669587),n=t.i(908381),a=t.i(171206),o=function(){var t=(0,a.p)(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,2],s=[1,3],i=[1,4],r=[2,4],n=[1,9],o=[1,11],l=[1,16],c=[1,17],h=[1,18],d=[1,19],u=[1,33],p=[1,20],y=[1,21],g=[1,22],f=[1,23],m=[1,24],S=[1,26],k=[1,27],b=[1,28],T=[1,29],_=[1,30],E=[1,31],C=[1,32],$=[1,35],x=[1,36],D=[1,37],I=[1,38],v=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],L=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],w=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:(0,a.p)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:(0,a.p)(function(t,e,s,i,r,n,a){var o=n.length-1;switch(r){case 3:return i.setRootDoc(n[o]),n[o];case 4:this.$=[];break;case 5:"nl"!=n[o]&&(n[o-1].push(n[o]),this.$=n[o-1]);break;case 6:case 7:case 12:this.$=n[o];break;case 8:this.$="nl";break;case 13:let l=n[o-1];l.description=i.trimColon(n[o]),this.$=l;break;case 14:this.$={stmt:"relation",state1:n[o-2],state2:n[o]};break;case 15:let c=i.trimColon(n[o]);this.$={stmt:"relation",state1:n[o-3],state2:n[o-1],description:c};break;case 19:this.$={stmt:"state",id:n[o-3],type:"default",description:"",doc:n[o-1]};break;case 20:var h=n[o],d=n[o-2].trim();if(n[o].match(":")){var u=n[o].split(":");h=u[0],d=[d,u[1]]}this.$={stmt:"state",id:h,type:"default",description:d};break;case 21:this.$={stmt:"state",id:n[o-3],type:"default",description:n[o-5],doc:n[o-1]};break;case 22:this.$={stmt:"state",id:n[o],type:"fork"};break;case 23:this.$={stmt:"state",id:n[o],type:"join"};break;case 24:this.$={stmt:"state",id:n[o],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:n[o-1].trim(),note:{position:n[o-2].trim(),text:n[o].trim()}};break;case 29:this.$=n[o].trim(),i.setAccTitle(this.$);break;case 30:case 31:this.$=n[o].trim(),i.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:n[o-3],url:n[o-2],tooltip:n[o-1]};break;case 33:this.$={stmt:"click",id:n[o-3],url:n[o-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:n[o-1].trim(),classes:n[o].trim()};break;case 36:this.$={stmt:"style",id:n[o-1].trim(),styleClass:n[o].trim()};break;case 37:this.$={stmt:"applyClass",id:n[o-1].trim(),styleClass:n[o].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:n[o].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:n[o-2].trim(),classes:[n[o].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:e,5:s,6:i},{1:[3]},{3:5,4:e,5:s,6:i},{3:6,4:e,5:s,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:C,51:$,52:x,53:D,54:I,57:v},t(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:C,51:$,52:x,53:D,54:I,57:v},t(A,[2,7]),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,40],15:[1,41]}),t(A,[2,16]),{18:[1,42]},t(A,[2,18],{20:[1,43]}),{23:[1,44]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(A,[2,28]),{34:[1,49]},{36:[1,50]},t(A,[2,31]),{13:51,24:u,57:v},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(L,[2,44],{58:[1,56]}),t(L,[2,45],{58:[1,57]}),t(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(A,[2,6]),t(A,[2,13]),{13:58,24:u,57:v},t(A,[2,17]),t(w,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(A,[2,29]),t(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(A,[2,14],{14:[1,71]}),{4:n,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,72],22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:C,51:$,52:x,53:D,54:I,57:v},t(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(L,[2,46]),t(L,[2,47]),t(A,[2,15]),t(A,[2,19]),t(w,r,{7:78}),t(A,[2,26]),t(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:n,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,81],22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:C,51:$,52:x,53:D,54:I,57:v},t(A,[2,32]),t(A,[2,33]),t(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:(0,a.p)(function(t,e){if(e.recoverable)this.trace(t);else{var s=Error(t);throw s.hash=e,s}},"parseError"),parse:(0,a.p)(function(t){var e=this,s=[0],i=[],r=[null],n=[],o=this.table,l="",c=0,h=0,d=0,u=n.slice.call(arguments,1),p=Object.create(this.lexer),y={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y[g]=this.yy[g]);p.setInput(t,y),y.lexer=p,y.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;n.push(f);var m=p.options&&p.options.ranges;function S(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.parseError?this.parseError=y.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,a.p)(function(t){s.length=s.length-2*t,r.length=r.length-t,n.length=n.length-t},"popStack"),(0,a.p)(S,"lex");for(var k,b,T,_,E,C,$,x,D,I={};;){if(T=s[s.length-1],this.defaultActions[T]?_=this.defaultActions[T]:(null==k&&(k=S()),_=o[T]&&o[T][k]),void 0===_||!_.length||!_[0]){var v="";for(C in D=[],o[T])this.terminals_[C]&&C>2&&D.push("'"+this.terminals_[C]+"'");v=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(v,{text:p.match,token:this.terminals_[k]||k,line:p.yylineno,loc:f,expected:D})}if(_[0]instanceof Array&&_.length>1)throw Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(_[0]){case 1:s.push(k),r.push(p.yytext),n.push(p.yylloc),s.push(_[1]),k=null,b?(k=b,b=null):(h=p.yyleng,l=p.yytext,c=p.yylineno,f=p.yylloc,d>0&&d--);break;case 2:if($=this.productions_[_[1]][1],I.$=r[r.length-$],I._$={first_line:n[n.length-($||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-($||1)].first_column,last_column:n[n.length-1].last_column},m&&(I._$.range=[n[n.length-($||1)].range[0],n[n.length-1].range[1]]),void 0!==(E=this.performAction.apply(I,[l,h,c,y,_[1],r,n].concat(u))))return E;$&&(s=s.slice(0,-1*$*2),r=r.slice(0,-1*$),n=n.slice(0,-1*$)),s.push(this.productions_[_[1]][0]),r.push(I.$),n.push(I._$),x=o[s[s.length-2]][s[s.length-1]],s.push(x);break;case 3:return!0}}return!0},"parse")};function O(){this.yy={}}return N.lexer={EOF:1,parseError:(0,a.p)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,a.p)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,a.p)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,a.p)(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,a.p)(function(){return this._more=!0,this},"more"),reject:(0,a.p)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,a.p)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,a.p)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,a.p)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,a.p)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,a.p)(function(t,e){var s,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var n in r)this[n]=r[n];return!1},"test_match"),next:(0,a.p)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,s,i,r=this._currentRules(),n=0;n<r.length;n++)if((s=this._input.match(this.rules[r[n]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,r[n])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,a.p)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,a.p)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,a.p)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,a.p)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,a.p)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,a.p)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,a.p)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,a.p)(function(t,e,s,i){function r(){let s=e.yytext.indexOf("%%");if(0===s)return!1;if(s>0){let i=e.yytext.slice(0,s),r=e.yytext.slice(s);r&&t.lexer.unput(r),e.yytext=i}return!0}switch((0,a.p)(r,"processId"),s){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 43:return 51;case 5:case 44:return 52;case 6:case 45:return 53;case 7:case 46:return 54;case 8:case 77:return 5;case 9:case 10:case 11:case 12:case 56:case 62:break;case 13:case 33:return this.pushState("SCALE"),17;case 14:case 34:return 18;case 15:case 21:case 35:case 50:case 53:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 36:this.pushState("STATE");break;case 37:case 40:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 38:case 41:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:case 64:if(!r())return;return this.popState(),"ID";case 51:return"STATE_DESCR";case 52:return 19;case 54:return this.popState(),this.pushState("struct"),20;case 55:return this.popState(),21;case 57:return this.begin("NOTE"),29;case 58:return this.popState(),this.pushState("NOTE_ID"),59;case 59:return this.popState(),this.pushState("NOTE_ID"),60;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 63:return"NOTE_TEXT";case 65:if(!r())return;return this.popState(),this.pushState("NOTE_TEXT"),24;case 66:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 67:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 68:case 69:return 6;case 70:return 16;case 71:return 57;case 72:if(!r())return;return 24;case 73:return e.yytext=e.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 58;case 78:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,55,56,57,71,72,73,74,75,76],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,54,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}},(0,a.p)(O,"Parser"),O.prototype=N,N.Parser=O,new O}();o.parser=o;var l="TB",c="state",h="root",d="relation",u="default",p="divider",y="fill:none",g="fill: #333",f="markdown",m="normal",S="rect",k="rectWithTitle",b="divider",T="roundedWithTitle",_="statediagram",E=`${_}-state`,C="transition",$=`${C} note-edge`,x=`${_}-note`,D=`${_}-cluster`,I=`${_}-cluster-alt`,v="parent",A="note",L="----",w=`${L}${A}`,N=`${L}${v}`,O=(0,a.p)((t,e=l)=>{if(!t.doc)return e;let s=e;for(let e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),R=(0,a.p)(function(t,e){return e.db.getClasses()},"getClasses"),B=(0,a.p)(async function(t,o,l,c){a.d.info("REF0:"),a.d.info("Drawing state diagram (v2)",o);let{securityLevel:h,state:d,layout:u}=(0,n.z)();c.db.extract(c.db.getRootDocV2());let p=c.db.getData(),y=(0,e.f)(o,h);p.type=c.type,p.layoutAlgorithm=u,p.nodeSpacing=d?.nodeSpacing||50,p.rankSpacing=d?.rankSpacing||50,"neo"===(0,n.z)().look?p.markers=["barbNeo"]:p.markers=["barb"],p.diagramId=o,await (0,i.a)(p,y);try{("function"==typeof c.db.getLinks?c.db.getLinks():new Map).forEach((t,e)=>{let s,i="string"==typeof e?e:"string"==typeof e?.id?e.id:"";if(!i)return void a.d.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e));let r=y.node()?.querySelectorAll("g");if(r?.forEach(t=>{t.textContent?.trim()===i&&(s=t)}),!s)return void a.d.warn("⚠️ Could not find node matching text:",i);let n=s.parentNode;if(!n)return void a.d.warn("⚠️ Node has no parent, cannot wrap:",i);let o=document.createElementNS("http://www.w3.org/2000/svg","a"),l=t.url.replace(/^"+|"+$/g,"");if(o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),o.setAttribute("target","_blank"),t.tooltip){let e=t.tooltip.replace(/^"+|"+$/g,"");o.setAttribute("title",e)}n.replaceChild(o,s),o.appendChild(s),a.d.info("🔗 Wrapped node in <a> tag for:",i,t.url)})}catch(t){a.d.error("❌ Error injecting clickable links:",t)}r.u.insertTitle(y,"statediagramTitleText",d?.titleTopMargin??25,c.db.getDiagramTitle()),(0,s.f)(y,8,_,d?.useMaxWidth??!0)},"draw"),F=new Map,P=0;function Y(t="",e=0,s="",i=L){let r=null!==s&&s.length>0?`${i}${s}`:"";return`state-${t}${r}-${e}`}(0,a.p)(Y,"stateDomId");var G=(0,a.p)((t,e,s,i,r,o,l,h)=>{a.d.trace("items",e),e.forEach(e=>{switch(e.stmt){case c:case u:U(t,e,s,i,r,o,l,h);break;case d:{U(t,e.state1,s,i,r,o,l,h),U(t,e.state2,s,i,r,o,l,h);let a="neo"===l,c={id:"edge"+P,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:a?"arrow_barb_neo":"arrow_barb",style:y,labelStyle:"",label:n.E.sanitizeText(e.description??"",(0,n.z)()),arrowheadStyle:g,labelpos:"c",labelType:f,thickness:m,classes:C,look:l};r.push(c),P++}}})},"setupDoc"),z=(0,a.p)((t,e=l)=>{let s=e;if(t.doc)for(let e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir");function j(t,e,s){if(!e.id||"</join></fork>"===e.id||"</choice>"===e.id)return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(t=>{let i=s.get(t);i&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...i.styles])}));let i=t.find(t=>t.id===e.id);i?Object.assign(i,e):t.push(e)}function W(t){return t?.classes?.join(" ")??""}function M(t){return t?.styles??[]}(0,a.p)(j,"insertOrUpdateNode"),(0,a.p)(W,"getClassesFromDbInfo"),(0,a.p)(M,"getStylesFromDbInfo");var U=(0,a.p)((t,e,s,i,r,o,l,c)=>{let h=e.id,d=s.get(h),_=W(d),C=M(d),L=(0,n.z)();if(a.d.info("dataFetcher parsedItem",e,d,C),"root"!==h){let s=S;!0===e.start?s="stateStart":!1===e.start&&(s="stateEnd"),e.type!==u&&(s=e.type),F.get(h)||F.set(h,{id:h,shape:s,description:n.E.sanitizeText(h,L),cssClasses:`${_} ${E}`,cssStyles:C});let d=F.get(h);e.description&&(Array.isArray(d.description)?(d.shape=k,d.description.push(e.description)):d.description?.length&&d.description.length>0?(d.shape=k,d.description===h?d.description=[e.description]:d.description=[d.description,e.description]):(d.shape=S,d.description=e.description),d.description=n.E.sanitizeTextOrArray(d.description,L)),d.description?.length===1&&d.shape===k&&("group"===d.type?d.shape=T:d.shape=S),!d.type&&e.doc&&(a.d.info("Setting cluster for XCX",h,z(e)),d.type="group",d.isGroup=!0,d.dir=z(e),d.shape=e.type===p?b:T,d.cssClasses=`${d.cssClasses} ${D} ${o?I:""}`);let O={labelStyle:"",shape:d.shape,label:d.description,cssClasses:d.cssClasses,cssCompiledStyles:[],cssStyles:d.cssStyles,id:h,dir:d.dir,domId:Y(h,P),type:d.type,isGroup:"group"===d.type,padding:8,rx:10,ry:10,look:l,labelType:"markdown"};if(O.shape===b&&(O.label=""),t&&"root"!==t.id&&(a.d.trace("Setting node ",h," to be child of its parent ",t.id),O.parentId=t.id),O.centerLabel=!0,e.note){let t={labelStyle:"",shape:"note",label:e.note.text,labelType:"markdown",cssClasses:x,cssStyles:[],cssCompiledStyles:[],id:h+w+"-"+P,domId:Y(h,P,A),type:d.type,isGroup:"group"===d.type,padding:L.flowchart?.padding,look:l,position:e.note.position},s=h+N,n={labelStyle:"",shape:"noteGroup",label:e.note.text,cssClasses:d.cssClasses,cssStyles:[],id:h+N,domId:Y(h,P,v),type:"group",isGroup:!0,padding:16,look:l,position:e.note.position};P++,n.id=s,t.parentId=s,j(i,n,c),j(i,t,c),j(i,O,c);let a=h,o=t.id;"left of"===e.note.position&&(a=t.id,o=h),r.push({id:a+"-"+o,start:a,end:o,arrowhead:"none",arrowTypeEnd:"",style:y,labelStyle:"",classes:$,arrowheadStyle:g,labelpos:"c",labelType:f,thickness:m,look:l})}else j(i,O,c)}e.doc&&(a.d.trace("Adding nodes children "),G(e,e.doc,s,i,r,!o,l,c))},"dataFetcher"),H=(0,a.p)(()=>{F.clear(),P=0},"reset"),X="start",K="color",V="fill",J=(0,a.p)(()=>new Map,"newClassesList"),q=(0,a.p)(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),Q=(0,a.p)(t=>JSON.parse(JSON.stringify(t)),"clone"),Z=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=J(),this.documents={root:q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=n.d,this.setAccTitle=n.b,this.getAccDescription=n.j,this.setAccDescription=n.C,this.setDiagramTitle=n.a,this.getDiagramTitle=n.F,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}static{(0,a.p)(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){for(let e of(this.clear(!0),Array.isArray(t)?t:t.doc))switch(e.stmt){case c:this.addState(e.id.trim(),e.type,e.doc,e.description,e.note);break;case d:this.addRelation(e.state1,e.state2,e.description);break;case"classDef":this.addStyleClass(e.id.trim(),e.classes);break;case"style":this.handleStyleDef(e);break;case"applyClass":this.setCssClass(e.id.trim(),e.styleClass);break;case"click":this.addLink(e.id,e.url,e.tooltip)}let e=this.getStates(),s=(0,n.z)();for(let t of(H(),U(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,s.look,this.classes),this.nodes))if(Array.isArray(t.label)){if(t.description=t.label.slice(1),t.isGroup&&t.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${t.id}]`);t.label=t.label[0]}}handleStyleDef(t){let e=t.id.trim().split(","),s=t.styleClass.split(",");for(let t of e){let e=this.getState(t);if(!e){let s=t.trim();this.addState(s),e=this.getState(s)}e&&(e.styles=s.map(t=>t.replace(/;/g,"")?.trim()))}}setRootDoc(t){a.d.info("Setting root doc",t),this.rootDoc=t,1===this.version?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,e,s){if(e.stmt===d){this.docTranslator(t,e.state1,!0),this.docTranslator(t,e.state2,!1);return}if(e.stmt===c&&("[*]"===e.id?(e.id=t.id+(s?"_start":"_end"),e.start=s):e.id=e.id.trim()),e.stmt!==h&&e.stmt!==c||!e.doc)return;let i=[],n=[];for(let t of e.doc)if(t.type===p){let e=Q(t);e.doc=Q(n),i.push(e),n=[]}else n.push(t);if(i.length>0&&n.length>0){let t={stmt:c,id:(0,r.$)(),type:"divider",doc:Q(n)};i.push(Q(t)),e.doc=i}e.doc.forEach(t=>this.docTranslator(e,t,!0))}getRootDocV2(){return this.docTranslator({id:h,stmt:h},{id:h,stmt:h,doc:this.rootDoc},!0),{id:h,doc:this.rootDoc}}addState(t,e=u,s,i,r,o,l,h){let d=t?.trim();if(this.currentDocument.states.has(d)){let t=this.currentDocument.states.get(d);if(!t)throw Error(`State not found: ${d}`);t.doc||(t.doc=s),t.type||(t.type=e)}else a.d.info("Adding state ",d,i),this.currentDocument.states.set(d,{stmt:c,id:d,descriptions:[],type:e,doc:s,note:r,classes:[],styles:[],textStyles:[]});if(i&&(a.d.info("Setting state description",d,i),(Array.isArray(i)?i:[i]).forEach(t=>this.addDescription(d,t.trim()))),r){let t=this.currentDocument.states.get(d);if(!t)throw Error(`State not found: ${d}`);t.note=r,t.note.text=n.E.sanitizeText(t.note.text,(0,n.z)())}o&&(a.d.info("Setting state classes",d,o),(Array.isArray(o)?o:[o]).forEach(t=>this.setCssClass(d,t.trim()))),l&&(a.d.info("Setting state styles",d,l),(Array.isArray(l)?l:[l]).forEach(t=>this.setStyle(d,t.trim()))),h&&(a.d.info("Setting state styles",d,l),(Array.isArray(h)?h:[h]).forEach(t=>this.setTextStyle(d,t.trim())))}clear(t){this.nodes=[],this.edges=[],this.documents={root:q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=J(),t||(this.links=new Map,(0,n.M)())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){a.d.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,s){this.links.set(t,{url:e,tooltip:s}),a.d.warn("Adding link",t,e,s)}getLinks(){return this.links}startIdIfNeeded(t=""){return"[*]"===t?(this.startEndCount++,`${X}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=u){return"[*]"===t?X:e}endIdIfNeeded(t=""){return"[*]"===t?(this.startEndCount++,`end${this.startEndCount}`):t}endTypeIfNeeded(t="",e=u){return"[*]"===t?"end":e}addRelationObjs(t,e,s=""){let i=this.startIdIfNeeded(t.id.trim()),r=this.startTypeIfNeeded(t.id.trim(),t.type),a=this.startIdIfNeeded(e.id.trim()),o=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(i,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(a,o,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:i,id2:a,relationTitle:n.E.sanitizeText(s,(0,n.z)())})}addRelation(t,e,s){if("object"==typeof t&&"object"==typeof e)this.addRelationObjs(t,e,s);else if("string"==typeof t&&"string"==typeof e){let i=this.startIdIfNeeded(t.trim()),r=this.startTypeIfNeeded(t),a=this.endIdIfNeeded(e.trim()),o=this.endTypeIfNeeded(e);this.addState(i,r),this.addState(a,o),this.currentDocument.relations.push({id1:i,id2:a,relationTitle:s?n.E.sanitizeText(s,(0,n.z)()):void 0})}}addDescription(t,e){let s=this.currentDocument.states.get(t),i=e.startsWith(":")?e.replace(":","").trim():e;s?.descriptions?.push(n.E.sanitizeText(i,(0,n.z)()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});let s=this.classes.get(t);e&&s&&e.split(",").forEach(t=>{let e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(K).exec(t)){let t=e.replace(V,"bgFill").replace(K,V);s.textStyles.push(t)}s.styles.push(e)})}getClasses(){return this.classes}setCssClass(t,e){t.split(",").forEach(t=>{let s=this.getState(t);if(!s){let e=t.trim();this.addState(e),s=this.getState(e)}s?.classes?.push(e)})}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}getDirectionStatement(){return this.rootDoc.find(t=>"dir"===t.stmt)}getDirection(){return this.getDirectionStatement()?.value??"TB"}setDirection(t){let e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){let t=(0,n.z)();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:O(this.getRootDocV2())}}getConfig(){return(0,n.z)().state}},tt=(0,a.p)(t=>`
|
|
2
|
+
defs [id$="-barbEnd"] {
|
|
3
|
+
fill: ${t.transitionColor};
|
|
4
|
+
stroke: ${t.transitionColor};
|
|
5
|
+
}
|
|
6
|
+
g.stateGroup text {
|
|
7
|
+
fill: ${t.nodeBorder};
|
|
8
|
+
stroke: none;
|
|
9
|
+
font-size: 10px;
|
|
10
|
+
}
|
|
11
|
+
g.stateGroup text {
|
|
12
|
+
fill: ${t.textColor};
|
|
13
|
+
stroke: none;
|
|
14
|
+
font-size: 10px;
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
g.stateGroup .state-title {
|
|
18
|
+
font-weight: bolder;
|
|
19
|
+
fill: ${t.stateLabelColor};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
g.stateGroup rect {
|
|
23
|
+
fill: ${t.mainBkg};
|
|
24
|
+
stroke: ${t.nodeBorder};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
g.stateGroup line {
|
|
28
|
+
stroke: ${t.lineColor};
|
|
29
|
+
stroke-width: ${t.strokeWidth||1};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.transition {
|
|
33
|
+
stroke: ${t.transitionColor};
|
|
34
|
+
stroke-width: ${t.strokeWidth||1};
|
|
35
|
+
fill: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.stateGroup .composit {
|
|
39
|
+
fill: ${t.background};
|
|
40
|
+
border-bottom: 1px
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.stateGroup .alt-composit {
|
|
44
|
+
fill: #e0e0e0;
|
|
45
|
+
border-bottom: 1px
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.state-note {
|
|
49
|
+
stroke: ${t.noteBorderColor};
|
|
50
|
+
fill: ${t.noteBkgColor};
|
|
51
|
+
|
|
52
|
+
text {
|
|
53
|
+
fill: ${t.noteTextColor};
|
|
54
|
+
stroke: none;
|
|
55
|
+
font-size: 10px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.stateLabel .box {
|
|
60
|
+
stroke: none;
|
|
61
|
+
stroke-width: 0;
|
|
62
|
+
fill: ${t.mainBkg};
|
|
63
|
+
opacity: 0.5;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.edgeLabel .label rect {
|
|
67
|
+
fill: ${t.labelBackgroundColor};
|
|
68
|
+
opacity: 0.5;
|
|
69
|
+
}
|
|
70
|
+
.edgeLabel {
|
|
71
|
+
background-color: ${t.edgeLabelBackground};
|
|
72
|
+
p {
|
|
73
|
+
background-color: ${t.edgeLabelBackground};
|
|
74
|
+
}
|
|
75
|
+
rect {
|
|
76
|
+
opacity: 0.5;
|
|
77
|
+
background-color: ${t.edgeLabelBackground};
|
|
78
|
+
fill: ${t.edgeLabelBackground};
|
|
79
|
+
}
|
|
80
|
+
text-align: center;
|
|
81
|
+
}
|
|
82
|
+
.edgeLabel .label text {
|
|
83
|
+
fill: ${t.transitionLabelColor||t.tertiaryTextColor};
|
|
84
|
+
}
|
|
85
|
+
.label div .edgeLabel {
|
|
86
|
+
color: ${t.transitionLabelColor||t.tertiaryTextColor};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.stateLabel text {
|
|
90
|
+
fill: ${t.stateLabelColor};
|
|
91
|
+
font-size: 10px;
|
|
92
|
+
font-weight: bold;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.node circle.state-start {
|
|
96
|
+
fill: ${t.specialStateColor};
|
|
97
|
+
stroke: ${t.specialStateColor};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.node .fork-join {
|
|
101
|
+
fill: ${t.specialStateColor};
|
|
102
|
+
stroke: ${t.specialStateColor};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.node circle.state-end {
|
|
106
|
+
fill: ${t.innerEndBackground};
|
|
107
|
+
stroke: ${t.background};
|
|
108
|
+
stroke-width: 1.5
|
|
109
|
+
}
|
|
110
|
+
.end-state-inner {
|
|
111
|
+
fill: ${t.compositeBackground||t.background};
|
|
112
|
+
// stroke: ${t.background};
|
|
113
|
+
stroke-width: 1.5
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.node rect {
|
|
117
|
+
fill: ${t.stateBkg||t.mainBkg};
|
|
118
|
+
stroke: ${t.stateBorder||t.nodeBorder};
|
|
119
|
+
stroke-width: ${t.strokeWidth||1}px;
|
|
120
|
+
}
|
|
121
|
+
.node polygon {
|
|
122
|
+
fill: ${t.mainBkg};
|
|
123
|
+
stroke: ${t.stateBorder||t.nodeBorder};;
|
|
124
|
+
stroke-width: ${t.strokeWidth||1}px;
|
|
125
|
+
}
|
|
126
|
+
[id$="-barbEnd"] {
|
|
127
|
+
fill: ${t.lineColor};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.statediagram-cluster rect {
|
|
131
|
+
fill: ${t.compositeTitleBackground};
|
|
132
|
+
stroke: ${t.stateBorder||t.nodeBorder};
|
|
133
|
+
stroke-width: ${t.strokeWidth||1}px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.cluster-label, .nodeLabel {
|
|
137
|
+
color: ${t.stateLabelColor};
|
|
138
|
+
// line-height: 1;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.statediagram-cluster rect.outer {
|
|
142
|
+
rx: 5px;
|
|
143
|
+
ry: 5px;
|
|
144
|
+
}
|
|
145
|
+
.statediagram-state .divider {
|
|
146
|
+
stroke: ${t.stateBorder||t.nodeBorder};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.statediagram-state .title-state {
|
|
150
|
+
rx: 5px;
|
|
151
|
+
ry: 5px;
|
|
152
|
+
}
|
|
153
|
+
.statediagram-cluster.statediagram-cluster .inner {
|
|
154
|
+
fill: ${t.compositeBackground||t.background};
|
|
155
|
+
}
|
|
156
|
+
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
157
|
+
fill: ${t.altBackground?t.altBackground:"#efefef"};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.statediagram-cluster .inner {
|
|
161
|
+
rx:0;
|
|
162
|
+
ry:0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.statediagram-state rect.basic {
|
|
166
|
+
rx: 5px;
|
|
167
|
+
ry: 5px;
|
|
168
|
+
}
|
|
169
|
+
.statediagram-state rect.divider {
|
|
170
|
+
stroke-dasharray: 10,10;
|
|
171
|
+
fill: ${t.altBackground?t.altBackground:"#efefef"};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.note-edge {
|
|
175
|
+
stroke-dasharray: 5;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.statediagram-note rect {
|
|
179
|
+
fill: ${t.noteBkgColor};
|
|
180
|
+
stroke: ${t.noteBorderColor};
|
|
181
|
+
stroke-width: 1px;
|
|
182
|
+
rx: 0;
|
|
183
|
+
ry: 0;
|
|
184
|
+
}
|
|
185
|
+
.statediagram-note rect {
|
|
186
|
+
fill: ${t.noteBkgColor};
|
|
187
|
+
stroke: ${t.noteBorderColor};
|
|
188
|
+
stroke-width: 1px;
|
|
189
|
+
rx: 0;
|
|
190
|
+
ry: 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.statediagram-note text {
|
|
194
|
+
fill: ${t.noteTextColor};
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.statediagram-note .nodeLabel {
|
|
198
|
+
color: ${t.noteTextColor};
|
|
199
|
+
}
|
|
200
|
+
.statediagram .edgeLabel {
|
|
201
|
+
color: red; // ${t.noteTextColor};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
[id$="-dependencyStart"], [id$="-dependencyEnd"] {
|
|
205
|
+
fill: ${t.lineColor};
|
|
206
|
+
stroke: ${t.lineColor};
|
|
207
|
+
stroke-width: ${t.strokeWidth||1};
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.statediagramTitleText {
|
|
211
|
+
text-anchor: middle;
|
|
212
|
+
font-size: 18px;
|
|
213
|
+
fill: ${t.textColor};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
[data-look="neo"].statediagram-cluster rect {
|
|
217
|
+
fill: ${t.mainBkg};
|
|
218
|
+
stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder};
|
|
219
|
+
stroke-width: ${t.strokeWidth??1};
|
|
220
|
+
}
|
|
221
|
+
[data-look="neo"].statediagram-cluster rect.outer {
|
|
222
|
+
rx: ${t.radius}px;
|
|
223
|
+
ry: ${t.radius}px;
|
|
224
|
+
filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"}
|
|
225
|
+
}
|
|
226
|
+
`,"getStyles");t.s(["t",0,Z,"g",0,o,"u",0,{getClasses:R,draw:B,getDir:O},"v",0,tt])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,229969,t=>{"use strict";var n={},i=function(t,i,r,e,s){var o=new Worker(n[i]||(n[i]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(t){var n=t.data,i=n.$e$;if(i){var r=Error(i[0]);r.code=i[1],r.stack=i[2],s(r,null)}else s(null,n)},o.postMessage(r,e),o},r=Uint8Array,e=Uint16Array,s=Int32Array,o=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),a=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),h=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f=function(t,n){for(var i=new e(31),r=0;r<31;++r)i[r]=n+=1<<t[r-1];for(var o=new s(i[30]),r=1;r<30;++r)for(var a=i[r];a<i[r+1];++a)o[a]=a-i[r]<<5|r;return{b:i,r:o}},u=f(o,2),l=u.b,c=u.r;l[28]=258,c[258]=28;for(var p=f(a,0),v=p.b,d=p.r,g=new e(32768),y=0;y<32768;++y){var b=(43690&y)>>1|(21845&y)<<1;b=(61680&(b=(52428&b)>>2|(13107&b)<<2))>>4|(3855&b)<<4,g[y]=((65280&b)>>8|(255&b)<<8)>>1}for(var m=function(t,n,i){for(var r,s=t.length,o=0,a=new e(n);o<s;++o)t[o]&&++a[t[o]-1];var h=new e(n);for(o=1;o<n;++o)h[o]=h[o-1]+a[o-1]<<1;if(i){r=new e(1<<n);var f=15-n;for(o=0;o<s;++o)if(t[o])for(var u=o<<4|t[o],l=n-t[o],c=h[t[o]-1]++<<l,p=c|(1<<l)-1;c<=p;++c)r[g[c]>>f]=u}else for(r=new e(s),o=0;o<s;++o)t[o]&&(r[o]=g[h[t[o]-1]++]>>15-t[o]);return r},w=new r(288),y=0;y<144;++y)w[y]=8;for(var y=144;y<256;++y)w[y]=9;for(var y=256;y<280;++y)w[y]=7;for(var y=280;y<288;++y)w[y]=8;for(var x=new r(32),y=0;y<32;++y)x[y]=5;var z=m(w,9,0),k=m(w,9,1),M=m(x,5,0),S=m(x,5,1),A=function(t){for(var n=t[0],i=1;i<t.length;++i)t[i]>n&&(n=t[i]);return n},C=function(t,n,i){var r=n/8|0;return(t[r]|t[r+1]<<8)>>(7&n)&i},T=function(t,n){var i=n/8|0;return(t[i]|t[i+1]<<8|t[i+2]<<16)>>(7&n)},O=function(t){return(t+7)/8|0},q=function(t,n,i){return(null==n||n<0)&&(n=0),(null==i||i>t.length)&&(i=t.length),new r(t.subarray(n,i))},D=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,i){var r=Error(n||D[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,E),!i)throw r;return r},U=function(t,n,i,e){var s=t.length,f=e?e.length:0;if(!s||n.f&&!n.l)return i||new r(0);var u=!i,c=u||2!=n.i,p=n.i;u&&(i=new r(3*s));var d=function(t){var n=i.length;if(t>n){var e=new r(Math.max(2*n,t));e.set(i),i=e}},g=n.f||0,y=n.p||0,b=n.b||0,w=n.l,x=n.d,z=n.m,M=n.n,D=8*s;do{if(!w){g=C(t,y,1);var U=C(t,y+1,3);if(y+=3,U)if(1==U)w=k,x=S,z=9,M=5;else if(2==U){var I=C(t,y,31)+257,B=C(t,y+10,15)+4,F=I+C(t,y+5,31)+1;y+=14;for(var R=new r(F),$=new r(19),j=0;j<B;++j)$[h[j]]=C(t,y+3*j,7);y+=3*B;for(var G=A($),L=(1<<G)-1,Z=m($,G,1),j=0;j<F;){var K=Z[C(t,y,L)];y+=15&K;var P=K>>4;if(P<16)R[j++]=P;else{var H=0,V=0;for(16==P?(V=3+C(t,y,3),y+=2,H=R[j-1]):17==P?(V=3+C(t,y,7),y+=3):18==P&&(V=11+C(t,y,127),y+=7);V--;)R[j++]=H}}var W=R.subarray(0,I),Y=R.subarray(I);z=A(W),M=A(Y),w=m(W,z,1),x=m(Y,M,1)}else E(1);else{var P=O(y)+4,J=t[P-4]|t[P-3]<<8,N=P+J;if(N>s){p&&E(0);break}c&&d(b+J),i.set(t.subarray(P,N),b),n.b=b+=J,n.p=y=8*N,n.f=g;continue}if(y>D){p&&E(0);break}}c&&d(b+131072);for(var Q=(1<<z)-1,X=(1<<M)-1,_=y;;_=y){var H=w[T(t,y)&Q],tt=H>>4;if((y+=15&H)>D){p&&E(0);break}if(H||E(2),tt<256)i[b++]=tt;else if(256==tt){_=y,w=null;break}else{var tn=tt-254;if(tt>264){var j=tt-257,ti=o[j];tn=C(t,y,(1<<ti)-1)+l[j],y+=ti}var tr=x[T(t,y)&X],te=tr>>4;tr||E(3),y+=15&tr;var Y=v[te];if(te>3){var ti=a[te];Y+=T(t,y)&(1<<ti)-1,y+=ti}if(y>D){p&&E(0);break}c&&d(b+131072);var ts=b+tn;if(b<Y){var to=f-Y,ta=Math.min(Y,ts);for(to+b<0&&E(3);b<ta;++b)i[b]=e[to+b]}for(;b<ts;++b)i[b]=i[b-Y]}}n.l=w,n.p=_,n.b=b,n.f=g,w&&(g=1,n.m=z,n.d=x,n.n=M)}while(!g)return b!=i.length&&u?q(i,0,b):i.subarray(0,b)},I=function(t,n,i){i<<=7&n;var r=n/8|0;t[r]|=i,t[r+1]|=i>>8},B=function(t,n,i){i<<=7&n;var r=n/8|0;t[r]|=i,t[r+1]|=i>>8,t[r+2]|=i>>16},F=function(t,n){for(var i=[],s=0;s<t.length;++s)t[s]&&i.push({s:s,f:t[s]});var o=i.length,a=i.slice();if(!o)return{t:K,l:0};if(1==o){var h=new r(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],u=i[1],l=0,c=1,p=2;for(i[0]={s:-1,f:f.f+u.f,l:f,r:u};c!=o-1;)f=i[i[l].f<i[p].f?l++:p++],u=i[l!=c&&i[l].f<i[p].f?l++:p++],i[c++]={s:-1,f:f.f+u.f,l:f,r:u};for(var v=a[0].s,s=1;s<o;++s)a[s].s>v&&(v=a[s].s);var d=new e(v+1),g=R(i[c-1],d,0);if(g>n){var s=0,y=0,b=g-n,m=1<<b;for(a.sort(function(t,n){return d[n.s]-d[t.s]||t.f-n.f});s<o;++s){var w=a[s].s;if(d[w]>n)y+=m-(1<<g-d[w]),d[w]=n;else break}for(y>>=b;y>0;){var x=a[s].s;d[x]<n?y-=1<<n-d[x]++-1:++s}for(;s>=0&&y;--s){var z=a[s].s;d[z]==n&&(--d[z],++y)}g=n}return{t:new r(d),l:g}},R=function(t,n,i){return -1==t.s?Math.max(R(t.l,n,i+1),R(t.r,n,i+1)):n[t.s]=i},$=function(t){for(var n=t.length;n&&!t[--n];);for(var i=new e(++n),r=0,s=t[0],o=1,a=function(t){i[r++]=t},h=1;h<=n;++h)if(t[h]==s&&h!=n)++o;else{if(!s&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(s),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(s);o=1,s=t[h]}return{c:i.subarray(0,r),n:n}},j=function(t,n){for(var i=0,r=0;r<n.length;++r)i+=t[r]*n[r];return i},G=function(t,n,i){var r=i.length,e=O(n+2);t[e]=255&r,t[e+1]=r>>8,t[e+2]=255^t[e],t[e+3]=255^t[e+1];for(var s=0;s<r;++s)t[e+s+4]=i[s];return(e+4+r)*8},L=function(t,n,i,r,s,f,u,l,c,p,v){I(n,v++,i),++s[256];for(var d,g,y,b,k=F(s,15),S=k.t,A=k.l,C=F(f,15),T=C.t,O=C.l,q=$(S),D=q.c,E=q.n,U=$(T),R=U.c,L=U.n,Z=new e(19),K=0;K<D.length;++K)++Z[31&D[K]];for(var K=0;K<R.length;++K)++Z[31&R[K]];for(var P=F(Z,7),H=P.t,V=P.l,W=19;W>4&&!H[h[W-1]];--W);var Y=p+5<<3,J=j(s,w)+j(f,x)+u,N=j(s,S)+j(f,T)+u+14+3*W+j(Z,H)+2*Z[16]+3*Z[17]+7*Z[18];if(c>=0&&Y<=J&&Y<=N)return G(n,v,t.subarray(c,c+p));if(I(n,v,1+(N<J)),v+=2,N<J){d=m(S,A,0),g=S,y=m(T,O,0),b=T;var Q=m(H,V,0);I(n,v,E-257),I(n,v+5,L-1),I(n,v+10,W-4),v+=14;for(var K=0;K<W;++K)I(n,v+3*K,H[h[K]]);v+=3*W;for(var X=[D,R],_=0;_<2;++_)for(var tt=X[_],K=0;K<tt.length;++K){var tn=31&tt[K];I(n,v,Q[tn]),v+=H[tn],tn>15&&(I(n,v,tt[K]>>5&127),v+=tt[K]>>12)}}else d=z,g=w,y=M,b=x;for(var K=0;K<l;++K){var ti=r[K];if(ti>255){var tn=ti>>18&31;B(n,v,d[tn+257]),v+=g[tn+257],tn>7&&(I(n,v,ti>>23&31),v+=o[tn]);var tr=31&ti;B(n,v,y[tr]),v+=b[tr],tr>3&&(B(n,v,ti>>5&8191),v+=a[tr])}else B(n,v,d[ti]),v+=g[ti]}return B(n,v,d[256]),v+g[256]},Z=new s([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),K=new r(0),P=function(t,n,i,h,f,u){var l=u.z||t.length,p=new r(h+l+5*(1+Math.ceil(l/7e3))+f),v=p.subarray(h,p.length-f),g=u.l,y=7&(u.r||0);if(n){y&&(v[0]=u.r>>3);for(var b=Z[n-1],m=b>>13,w=8191&b,x=(1<<i)-1,z=u.p||new e(32768),k=u.h||new e(x+1),M=Math.ceil(i/3),S=2*M,A=function(n){return(t[n]^t[n+1]<<M^t[n+2]<<S)&x},C=new s(25e3),T=new e(288),D=new e(32),E=0,U=0,I=u.i||0,B=0,F=u.w||0,R=0;I+2<l;++I){var $=A(I),j=32767&I,K=k[$];if(z[j]=K,k[$]=j,F<=I){var P=l-I;if((E>7e3||B>24576)&&(P>423||!g)){y=L(t,v,0,C,T,D,U,B,R,I-R,y),B=E=U=0,R=I;for(var H=0;H<286;++H)T[H]=0;for(var H=0;H<30;++H)D[H]=0}var V=2,W=0,Y=w,J=j-K&32767;if(P>2&&$==A(I-J))for(var N=Math.min(m,P)-1,Q=Math.min(32767,I),X=Math.min(258,P);J<=Q&&--Y&&j!=K;){if(t[I+V]==t[I+V-J]){for(var _=0;_<X&&t[I+_]==t[I+_-J];++_);if(_>V){if(V=_,W=J,_>N)break;for(var tt=Math.min(J,_-2),tn=0,H=0;H<tt;++H){var ti=I-J+H&32767,tr=z[ti],te=ti-tr&32767;te>tn&&(tn=te,K=ti)}}}K=z[j=K],J+=j-K&32767}if(W){C[B++]=0x10000000|c[V]<<18|d[W];var ts=31&c[V],to=31&d[W];U+=o[ts]+a[to],++T[257+ts],++D[to],F=I+V,++E}else C[B++]=t[I],++T[t[I]]}}for(I=Math.max(I,F);I<l;++I)C[B++]=t[I],++T[t[I]];y=L(t,v,g,C,T,D,U,B,R,I-R,y),g||(u.r=7&y|v[y/8|0]<<3,y-=7,u.h=k,u.p=z,u.i=I,u.w=F)}else{for(var I=u.w||0;I<l+g;I+=65535){var ta=I+65535;ta>=l&&(v[y/8|0]=g,ta=l),y=G(v,y+1,t.subarray(I,ta))}u.i=l}return q(p,0,h+O(y)+f)},H=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var i=n,r=9;--r;)i=(1&i&&-0x12477ce0)^i>>>1;t[n]=i}return t}(),V=function(){var t=-1;return{p:function(n){for(var i=t,r=0;r<n.length;++r)i=H[255&i^n[r]]^i>>>8;t=i},d:function(){return~t}}},W=function(){var t=1,n=0;return{p:function(i){for(var r=t,e=n,s=0|i.length,o=0;o!=s;){for(var a=Math.min(o+2655,s);o<a;++o)e+=r+=i[o];r=(65535&r)+15*(r>>16),e=(65535&e)+15*(e>>16)}t=r,n=e},d:function(){return t%=65521,n%=65521,(255&t)<<24|(65280&t)<<8|(255&n)<<8|n>>8}}},Y=function(t,n,i,e,s){if(!s&&(s={l:1},n.dictionary)){var o=n.dictionary.subarray(-32768),a=new r(o.length+t.length);a.set(o),a.set(t,o.length),t=a,s.w=o.length}return P(t,null==n.level?6:n.level,null==n.mem?s.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+n.mem,i,e,s)},J=function(t,n){var i={};for(var r in t)i[r]=t[r];for(var r in n)i[r]=n[r];return i},N=function(t,n,i){for(var r=t(),e=t.toString(),s=e.slice(e.indexOf("[")+1,e.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<r.length;++o){var a=r[o],h=s[o];if("function"==typeof a){n+=";"+h+"=";var f=a.toString();if(a.prototype)if(-1!=f.indexOf("[native code]")){var u=f.indexOf(" ",8)+1;n+=f.slice(u,f.indexOf("(",u))}else for(var l in n+=f,a.prototype)n+=";"+h+".prototype."+l+"="+a.prototype[l].toString();else n+=f}else i[h]=a}return n},Q=[],X=function(t){var n=[];for(var i in t)t[i].buffer&&n.push((t[i]=new t[i].constructor(t[i])).buffer);return n},_=function(t,n,r,e){if(!Q[r]){for(var s="",o={},a=t.length-1,h=0;h<a;++h)s=N(t[h],s,o);Q[r]={c:N(t[a],s,o),e:o}}var f=J({},Q[r].e);return i(Q[r].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+n.toString()+"}",r,f,X(f),e)},tt=function(){return[r,e,s,o,a,h,l,v,k,S,g,D,m,A,C,T,O,q,E,U,tM,te,ts]},tn=function(){return[r,e,s,o,a,h,c,d,z,w,M,x,g,Z,K,m,I,B,F,R,$,j,G,L,O,q,P,Y,tx,te]},ti=function(){return[tp,tv]},tr=function(){return[ty]},te=function(t){return postMessage(t,[t.buffer])},ts=function(t){return t&&{out:t.size&&new r(t.size),dictionary:t.dictionary}},to=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){n.data[0]?(t.push(n.data[0],n.data[1]),postMessage([n.data[0].length])):t.flush(n.data[1])}},ta=function(t,n,i,r,e,s,o){var a,h=_(t,r,e,function(t,i){t?(h.terminate(),n.ondata.call(n,t)):Array.isArray(i)?1==i.length?(n.queuedSize-=i[0],n.ondrain&&n.ondrain(i[0])):(i[1]&&h.terminate(),n.ondata.call(n,t,i[0],i[1])):o(i)});h.postMessage(i),n.queuedSize=0,n.push=function(t,i){n.ondata||E(5),a&&n.ondata(E(4,0,1),null,!!i),n.queuedSize+=t.length,h.postMessage([t,a=i],t.buffer instanceof ArrayBuffer?[t.buffer]:[])},n.terminate=function(){h.terminate()},s&&(n.flush=function(t){h.postMessage([0,t])})},th=function(t,n){return t[n]|t[n+1]<<8},tf=function(t,n){return(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0},tu=function(t,n){return tf(t,n)+0x100000000*tf(t,n+4)},tl=function(t,n,i){for(;i;++n)t[n]=i,i>>>=8},tc=function(t,n){var i=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:2*(9==n.level),t[9]=3,0!=n.mtime&&tl(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),i){t[3]=8;for(var r=0;r<=i.length;++r)t[r+10]=i.charCodeAt(r)}},tp=function(t){(31!=t[0]||139!=t[1]||8!=t[2])&&E(6,"invalid gzip data");var n=t[3],i=10;4&n&&(i+=(t[10]|t[11]<<8)+2);for(var r=(n>>3&1)+(n>>4&1);r>0;r-=!t[i++]);return i+(2&n)},tv=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},td=function(t){return 10+(t.filename?t.filename.length+1:0)},tg=function(t,n){var i=n.level;if(t[0]=120,t[1]=(0==i?0:i<6?1:9==i?3:2)<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var r=W();r.p(n.dictionary),tl(t,2,r.d())}},ty=function(t,n){return((15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&E(6,"invalid zlib data"),(t[1]>>5&1)==+!n&&E(6,"invalid zlib data: "+(32&t[1]?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function tb(t,n){return"function"==typeof t&&(n=t,t={}),this.ondata=n,t}var tm=function(){function t(t,n){if("function"==typeof t&&(n=t,t={}),this.ondata=n,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new r(98304),this.o.dictionary){var i=this.o.dictionary.subarray(-32768);this.b.set(i,32768-i.length),this.s.i=32768-i.length}}return t.prototype.p=function(t,n){this.ondata(Y(t,this.o,0,0,this.s),n)},t.prototype.push=function(t,n){this.ondata||E(5),this.s.l&&E(4);var i=t.length+this.s.z;if(i>this.b.length){if(i>2*this.b.length-32768){var e=new r(-32768&i);e.set(this.b.subarray(0,this.s.z)),this.b=e}var s=this.b.length-this.s.z;this.b.set(t.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(s),32768),this.s.z=t.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=1&n,(this.s.z>this.s.w+8191||n)&&(this.p(this.b,n||!1),this.s.w=this.s.i,this.s.i-=2),n&&(this.s=this.o={},this.b=K)},t.prototype.flush=function(t){if(this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,t){var n=new r(6);n[0]=this.s.r>>3;var i=G(n,this.s.r,K);this.s.r=0,this.ondata(n.subarray(0,i>>3),!1)}},t}(),tw=function(t,n){ta([tn,function(){return[to,tm]}],this,tb.call(this,t,n),function(t){onmessage=to(new tm(t.data))},6,1)};function tx(t,n){return Y(t,n||{},0,0)}var tz=function(){function t(t,n){"function"==typeof t&&(n=t,t={}),this.ondata=n;var i=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:i?i.length:0},this.o=new r(32768),this.p=new r(0),i&&this.o.set(i)}return t.prototype.e=function(t){if(this.ondata||E(5),this.d&&E(4),this.p.length){if(t.length){var n=new r(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length),this.p=n}}else this.p=t},t.prototype.c=function(t){this.s.i=+(this.d=t||!1);var n=this.s.b,i=U(this.p,this.s,this.o);this.ondata(q(i,n,this.s.b),this.d),this.o=q(i,this.s.b-32768),this.s.b=this.o.length,this.p=q(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}(),tk=function(t,n){ta([tt,function(){return[to,tz]}],this,tb.call(this,t,n),function(t){onmessage=to(new tz(t.data))},7,0)};function tM(t,n){return U(t,{i:2},n&&n.out,n&&n.dictionary)}(function(){function t(t,n){this.c=V(),this.l=0,this.v=1,tm.call(this,t,n)}t.prototype.push=function(t,n){this.c.p(t),this.l+=t.length,tm.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var i=Y(t,this.o,this.v&&td(this.o),n&&8,this.s);this.v&&(tc(i,this.o),this.v=0),n&&(tl(i,i.length-8,this.c.d()),tl(i,i.length-4,this.l)),this.ondata(i,n)},t.prototype.flush=function(t){tm.prototype.flush.call(this,t)}})();var tS=function(){function t(t,n){this.v=1,this.r=0,tz.call(this,t,n)}return t.prototype.push=function(t,n){if(tz.prototype.e.call(this,t),this.r+=t.length,this.v){var i=this.p.subarray(this.v-1),e=i.length>3?tp(i):4;if(e>i.length){if(!n)return}else this.v>1&&this.onmember&&this.onmember(this.r-i.length);this.p=i.subarray(e),this.v=0}tz.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=O(this.s.p)+9,this.s={i:0},this.o=new r(0),this.push(new r(0),n)):n&&tz.prototype.c.call(this,n)},t}(),tA=function(t,n){var i=this;ta([tt,ti,function(){return[to,tz,tS]}],this,tb.call(this,t,n),function(t){var n=new tS(t.data);n.onmember=function(t){return postMessage(t)},onmessage=to(n)},9,0,function(t){return i.onmember&&i.onmember(t)})},tC=(function(){function t(t,n){this.c=W(),this.v=1,tm.call(this,t,n)}t.prototype.push=function(t,n){this.c.p(t),tm.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var i=Y(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(tg(i,this.o),this.v=0),n&&tl(i,i.length-4,this.c.d()),this.ondata(i,n)},t.prototype.flush=function(t){tm.prototype.flush.call(this,t)}}(),function(){function t(t,n){tz.call(this,t,n),this.v=t&&t.dictionary?2:1}return t.prototype.push=function(t,n){if(tz.prototype.e.call(this,t),this.v){if(this.p.length<6&&!n)return;this.p=this.p.subarray(ty(this.p,this.v-1)),this.v=0}n&&(this.p.length<4&&E(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),tz.prototype.c.call(this,n)},t}()),tT=function(t,n){ta([tt,tr,function(){return[to,tz,tC]}],this,tb.call(this,t,n),function(t){onmessage=to(new tC(t.data))},11,0)},tO=function(){function t(t,n){this.o=tb.call(this,t,n)||{},this.G=tS,this.I=tz,this.Z=tC}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,i){t.ondata(n,i)}},t.prototype.push=function(t,n){if(this.ondata||E(5),this.s)this.s.push(t,n);else{if(this.p&&this.p.length){var i=new r(this.p.length+t.length);i.set(this.p),i.set(t,this.p.length)}else this.p=t;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,n),this.p=null)}},t}();function tq(t,n){tO.call(this,t,n),this.queuedSize=0,this.G=tA,this.I=tk,this.Z=tT}tq.prototype.i=function(){var t=this;this.s.ondata=function(n,i,r){t.ondata(n,i,r)},this.s.ondrain=function(n){t.queuedSize-=n,t.ondrain&&t.ondrain(n)}},tq.prototype.push=function(t,n){this.queuedSize+=t.length,tO.prototype.push.call(this,t,n)};var tD=function(t,n,i,e){for(var s in t){var o=t[s],a=n+s,h=e;Array.isArray(o)&&(h=J(e,o[1]),o=o[0]),ArrayBuffer.isView(o)?i[a]=[o,h]:(i[a+="/"]=[new r(0),h],tD(o,a,i,e))}},tE="u">typeof TextEncoder&&new TextEncoder,tU="u">typeof TextDecoder&&new TextDecoder,tI=0;try{tU.decode(K,{stream:!0}),tI=1}catch(t){}var tB=function(t){for(var n="",i=0;;){var r=t[i++],e=(r>127)+(r>223)+(r>239);if(i+e>t.length)return{s:n,r:q(t,i-1)};e?3==e?n+=String.fromCharCode(55296|(r=((15&r)<<18|(63&t[i++])<<12|(63&t[i++])<<6|63&t[i++])-65536)>>10,56320|1023&r):1&e?n+=String.fromCharCode((31&r)<<6|63&t[i++]):n+=String.fromCharCode((15&r)<<12|(63&t[i++])<<6|63&t[i++]):n+=String.fromCharCode(r)}};function tF(t,n){if(n){for(var i=new r(t.length),e=0;e<t.length;++e)i[e]=t.charCodeAt(e);return i}if(tE)return tE.encode(t);for(var s=t.length,o=new r(t.length+(t.length>>1)),a=0,h=function(t){o[a++]=t},e=0;e<s;++e){if(a+5>o.length){var f=new r(a+8+(s-e<<1));f.set(o),o=f}var u=t.charCodeAt(e);u<128||n?h(u):(u<2048?h(192|u>>6):(u>55295&&u<57344?(h(240|(u=65536+(1047552&u)|1023&t.charCodeAt(++e))>>18),h(128|u>>12&63)):h(224|u>>12),h(128|u>>6&63)),h(128|63&u))}return q(o,0,a)}function tR(t,n){if(n){for(var i="",r=0;r<t.length;r+=16384)i+=String.fromCharCode.apply(null,t.subarray(r,r+16384));return i}if(tU)return tU.decode(t);var e=tB(t),s=e.s,i=e.r;return i.length&&E(8),s}(function(t){this.ondata=t,tI?this.t=new TextDecoder:this.p=K}).prototype.push=function(t,n){if(this.ondata||E(5),n=!!n,this.t){this.ondata(this.t.decode(t,{stream:!0}),n),n&&(this.t.decode().length&&E(8),this.t=null);return}this.p||E(4);var i=new r(this.p.length+t.length);i.set(this.p),i.set(t,this.p.length);var e=tB(i),s=e.s,o=e.r;n?(o.length&&E(8),this.p=null):this.p=o,this.ondata(s,n)},(function(t){this.ondata=t}).prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(tF(t),this.d=n||!1)};var t$=function(t){return 1==t?3:t<6?2:+(9==t)},tj=function(t,n,i){var r=th(t,n+28),e=th(t,n+30),s=tR(t.subarray(n+46,n+46+r),!(2048&th(t,n+8))),o=n+46+r,a=tG(t,o,e,i,tf(t,n+20),tf(t,n+24),tf(t,n+42)),h=a[0],f=a[1],u=a[2];return[th(t,n+10),h,f,s,o+e+th(t,n+32),u]},tG=function(t,n,i,r,e,s,o){var a=0xffffffff==e,h=0xffffffff==s,f=0xffffffff==o,u=n+i;if(r&&a+h+f){for(;n+4<u;n+=4+th(t,n+2))if(1==th(t,n))return[a?tu(t,n+4+8*h):e,h?tu(t,n+4):s,f?tu(t,n+4+8*(h+a)):o,1];r<2&&E(13)}return[e,s,o,0]},tL=function(t){var n=0;if(t)for(var i in t){var r=t[i].length;r>65535&&E(9),n+=r+4}return n},tZ=function(t,n,i,r,e,s,o,a){var h=r.length,f=i.extra,u=a&&a.length,l=tL(f);tl(t,n,null!=o?0x2014b50:0x4034b50),n+=4,null!=o&&(t[n++]=20,t[n++]=i.os),t[n]=20,n+=2,t[n++]=i.flag<<1|(s<0&&8),t[n++]=e&&8,t[n++]=255&i.compression,t[n++]=i.compression>>8;var c=new Date(null==i.mtime?Date.now():i.mtime),p=c.getFullYear()-1980;if((p<0||p>119)&&E(10),tl(t,n,p<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),n+=4,-1!=s&&(tl(t,n,i.crc),tl(t,n+4,s<0?-s-2:s),tl(t,n+8,i.size)),tl(t,n+12,h),tl(t,n+14,l),n+=16,null!=o&&(tl(t,n,u),tl(t,n+6,i.attrs),tl(t,n+10,o),n+=14),t.set(r,n),n+=h,l)for(var v in f){var d=f[v],g=d.length;tl(t,n,+v),tl(t,n+2,g),t.set(d,n+4),n+=4+g}return u&&(t.set(a,n),n+=u),n},tK=function(t,n,i,r,e){tl(t,n,0x6054b50),tl(t,n+8,i),tl(t,n+10,i),tl(t,n+12,r),tl(t,n+16,e)},tP=function(){function t(t){this.filename=t,this.c=V(),this.size=0,this.compression=0}return t.prototype.process=function(t,n){this.ondata(null,t,n)},t.prototype.push=function(t,n){this.ondata||E(5),this.c.p(t),this.size+=t.length,n&&(this.crc=this.c.d()),this.process(t,n||!1)},t}();function tH(t,n){var i=this;n||(n={}),tP.call(this,t),this.d=new tm(n,function(t,n){i.ondata(null,t,n)}),this.compression=8,this.flag=t$(n.level)}function tV(t,n){var i=this;n||(n={}),tP.call(this,t),this.d=new tw(n,function(t,n,r){i.ondata(t,n,r)}),this.compression=8,this.flag=t$(n.level),this.terminate=this.d.terminate}function tW(t){this.ondata=t,this.u=[],this.d=1}tH.prototype.process=function(t,n){try{this.d.push(t,n)}catch(t){this.ondata(t,null,n)}},tH.prototype.push=function(t,n){tP.prototype.push.call(this,t,n)},tV.prototype.process=function(t,n){this.d.push(t,n)},tV.prototype.push=function(t,n){tP.prototype.push.call(this,t,n)},tW.prototype.add=function(t){var n=this;if(this.ondata||E(5),2&this.d)this.ondata(E(4+(1&this.d)*8,0,1),null,!1);else{var i=tF(t.filename),e=i.length,s=t.comment,o=s&&tF(s),a=e!=t.filename.length||o&&s.length!=o.length,h=e+tL(t.extra)+30;e>65535&&this.ondata(E(11,0,1),null,!1);var f=new r(h);tZ(f,0,t,i,a,-1);var u=[f],l=function(){for(var t=0,i=u;t<i.length;t++){var r=i[t];n.ondata(null,r,!1)}u=[]},c=this.d;this.d=0;var p=this.u.length,v=J(t,{f:i,u:a,o:o,t:function(){t.terminate&&t.terminate()},r:function(){if(l(),c){var t=n.u[p+1];t?t.r():n.d=1}c=1}}),d=0;t.ondata=function(i,e,s){if(i)n.ondata(i,e,s),n.terminate();else if(d+=e.length,u.push(e),s){var o=new r(16);tl(o,0,0x8074b50),tl(o,4,t.crc),tl(o,8,d),tl(o,12,t.size),u.push(o),v.c=d,v.b=h+d+16,v.crc=t.crc,v.size=t.size,c&&v.r(),c=1}else c&&l()},this.u.push(v)}},tW.prototype.end=function(){var t=this;2&this.d?this.ondata(E(4+(1&this.d)*8,0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},tW.prototype.e=function(){for(var t=0,n=0,i=0,e=0,s=this.u;e<s.length;e++){var o=s[e];i+=46+o.f.length+tL(o.extra)+(o.o?o.o.length:0)}for(var a=new r(i+22),h=0,f=this.u;h<f.length;h++){var o=f[h];tZ(a,t,o,o.f,o.u,-o.c-2,n,o.o),t+=46+o.f.length+tL(o.extra)+(o.o?o.o.length:0),n+=o.b}tK(a,t,this.u.length,i,n),this.ondata(null,a,!0),this.d=2},tW.prototype.terminate=function(){for(var t=0,n=this.u;t<n.length;t++)n[t].t();this.d=2};var tY=function(){function t(){}return t.prototype.push=function(t,n){this.ondata(null,t,n)},t.compression=0,t}();function tJ(){var t=this;this.i=new tz(function(n,i){t.ondata(null,n,i)})}function tN(t,n){var i=this;n<32e4?this.i=new tz(function(t,n){i.ondata(null,t,n)}):(this.i=new tk(function(t,n,r){i.ondata(t,n,r)}),this.terminate=this.i.terminate)}function tQ(t){this.onfile=t,this.k=[],this.o={0:tY},this.p=K}tJ.prototype.push=function(t,n){try{this.i.push(t,n)}catch(t){this.ondata(t,null,n)}},tJ.compression=8,tN.prototype.push=function(t,n){this.i.terminate&&(t=q(t,0)),this.i.push(t,n)},tN.compression=8,tQ.prototype.push=function(t,n){var i=this;if(this.onfile||E(5),this.p||E(4),this.c>0){var e=Math.min(this.c,t.length),s=t.subarray(0,e);if(this.c-=e,this.d?this.d.push(s,!this.c):this.k[0].push(s),(t=t.subarray(e)).length)return this.push(t,n)}else{var o=0,a=0,h=void 0,f=void 0;this.p.length?t.length?((f=new r(this.p.length+t.length)).set(this.p),f.set(t,this.p.length)):f=this.p:f=t;for(var u=f.length,l=this.c,c=l&&this.d,p=this;a<u-4&&"break"!==function(){var t=tf(f,a);if(0x4034b50==t){o=1,h=a,p.d=null,p.c=0;var n=th(f,a+6),r=th(f,a+8),e=th(f,a+26),s=th(f,a+28);if(u>a+30+e+s){var c,v=[];p.k.unshift(v),o=2;var d=tf(f,a+18),g=tf(f,a+22),y=tR(f.subarray(a+30,a+=30+e),!(2048&n)),b=tG(f,a,s,2,d,g,0),m=b[0],w=b[1],x=b[3];8&n&&(m=-1-x),a+=s,p.c=m;var z={name:y,compression:r,start:function(){if(z.ondata||E(5),m){var t=i.o[r];t||z.ondata(E(14,"unknown compression type "+r,1),null,!1),(c=m<0?new t(y):new t(y,m,w)).ondata=function(t,n,i){z.ondata(t,n,i)};for(var n=0;n<v.length;n++){var e=v[n];c.push(e,!1)}i.k[0]==v&&i.c?i.d=c:c.push(K,!0)}else z.ondata(null,K,!0)},terminate:function(){c&&c.terminate&&c.terminate()}};m>=0&&(z.size=m,z.originalSize=w),p.onfile(z)}return"break"}if(l){if(0x8074b50==t)return h=a+=12+(-2==l&&8),o=3,p.c=0,"break";else if(0x2014b50==t)return h=a-=4,o=3,p.c=0,"break"}}();++a);if(this.p=K,l<0){var v=o?f.subarray(0,h-12-(-2==l&&8)-(0x8074b50==tf(f,h-16)&&4)):f.subarray(0,a);c?c.push(v,!!o):this.k[+(2==o)].push(v)}if(2&o)return this.push(f.subarray(a),n);this.p=f.subarray(a)}n&&(this.c&&E(13),this.p=null)},tQ.prototype.register=function(t){this.o[t.compression]=t},"function"==typeof queueMicrotask&&queueMicrotask,t.s(["strFromU8",0,tR,"unzipSync",0,function(t,n){for(var i={},e=t.length-22;0x6054b50!=tf(t,e);--e)(!e||t.length-e>65558)&&E(13);var s=th(t,e+8);if(!s)return{};var o=tf(t,e+16),a=0x7064b50==tf(t,e-20);if(a){var h=tf(t,e-12);(a=0x6064b50==tf(t,h))&&(s=tf(t,h+32),o=tf(t,h+48))}for(var f=n&&n.filter,u=0;u<s;++u){var l=tj(t,o,a),c=l[0],p=l[1],v=l[2],d=l[3],g=l[4],y=l[5],b=y+30+th(t,y+26)+th(t,y+28);o=g,(!f||f({name:d,size:p,originalSize:v,compression:c}))&&(c?8==c?i[d]=tM(t.subarray(b,b+p),{out:new r(v)}):E(14,"unknown compression type "+c):i[d]=q(t,b,b+p))}return i},"zipSync",0,function(t,n){n||(n={});var i={},e=[];tD(t,"",i,n);var s=0,o=0;for(var a in i){var h=i[a],f=h[0],u=h[1],l=8*(0!=u.level),c=tF(a),p=c.length,v=u.comment,d=v&&tF(v),g=d&&d.length,y=tL(u.extra);p>65535&&E(11);var b=l?tx(f,u):f,m=b.length,w=V();w.p(f),e.push(J(u,{size:f.length,crc:w.d(),c:b,f:c,m:d,u:p!=a.length||d&&v.length!=g,o:s,compression:l})),s+=30+p+y+m,o+=76+2*(p+y)+(g||0)+m}for(var x=new r(o+22),z=s,k=o-s,M=0;M<e.length;++M){var c=e[M];tZ(x,c.o,c,c.f,c.u,c.c.length);var S=30+c.f.length+tL(c.extra);x.set(c.c,c.o+S),tZ(x,s,c,c.f,c.u,c.c.length,c.o,c.m),s+=16+S+(c.m?c.m.length:0)}return tK(x,s,e.length,k,z),x}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,250760,e=>{"use strict";var t=e.i(974265),s=e.i(651023),i=e.i(19738),r=e.i(878894),n=e.i(367240),a=e.i(588092),l=e.i(610595),c=e.i(102508);let o={auth:"Authentication required",permission:"Access denied","not-found":"Page not found",server:"Server error",unavailable:"Service unavailable"};e.s(["default",0,function({error:e,reset:d}){let u=(0,l.V)(e),m=(0,l.g)(e),f=o[u]??"Something went wrong",x="auth"===u||"permission"===u?a.f:r.f;return(0,s.useEffect)(()=>{console.error("[RootErrorBoundary]",e)},[e]),(0,t.jsx)("div",{className:"flex min-h-[60vh] flex-col items-center justify-center px-4",children:(0,t.jsxs)("div",{className:"w-full max-w-sm space-y-6 text-center",children:[(0,t.jsx)("div",{className:"bg-destructive-subtle mx-auto flex size-12 items-center justify-center rounded-full",children:(0,t.jsx)(x,{className:"text-destructive size-6"})}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h1",{className:"text-lg font-semibold",children:f}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:m})]}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[(0,t.jsxs)(c.f,{variant:"outline",onClick:d,children:[(0,t.jsx)(n.f,{className:"mr-1.5 size-3.5"}),"Try again"]}),(0,t.jsx)(i.default,{href:"/",className:"hover:bg-muted hover:text-foreground inline-flex h-8 items-center justify-center rounded-lg px-2.5 text-sm font-medium transition-colors",children:"Go to Dashboard"})]}),e.digest&&(0,t.jsxs)("p",{className:"text-muted-foreground-subtle font-mono text-xs",children:["Reference: ",e.digest]})]})})}])},588092,e=>{"use strict";let t=(0,e.i(475254).f)("shield-x",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]);e.s(["f",0,t],588092)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,475176,e=>{"use strict";var t=e.i(974265);e.s(["default",0,function({reset:e}){return(0,t.jsx)("html",{lang:"en",children:(0,t.jsx)("body",{style:{margin:0,fontFamily:"system-ui, sans-serif"},children:(0,t.jsx)("div",{style:{display:"flex",minHeight:"100vh",alignItems:"center",justifyContent:"center"},children:(0,t.jsxs)("div",{style:{textAlign:"center",maxWidth:400},children:[(0,t.jsx)("h1",{style:{fontSize:18,fontWeight:600,marginBottom:8},children:"Something went wrong"}),(0,t.jsx)("p",{style:{color:"#666",fontSize:14,marginBottom:24},children:"An unexpected error occurred."}),(0,t.jsx)("button",{onClick:e,style:{padding:"8px 16px",borderRadius:8,border:"none",background:"#111",color:"#fff",fontSize:14,cursor:"pointer"},children:"Try again"})]})})})})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,10284,e=>{"use strict";var t=e.i(974265),s=e.i(651023),n=e.i(981997),a=e.i(893976),r=e.i(94875),i=e.i(330428),l=e.i(543727),o=e.i(752930),d=e.i(311015),c=e.i(582458),c=c,g=e.i(610595),u=e.i(65642);function m({conversation:e,participation:s,supportsStaffReplies:n=!0,className:i}){if(!e.needsAttention)return null;let{takeOver:l,clearAttention:o,pendingCommands:d,commandErrors:h}=s,x=h.get("clearAttention")??h.get("takeOver"),f=e.control===r.o.control_human;return(0,t.jsxs)("div",{className:(0,a.f)("stg:border-b stg:border-border stg:bg-destructive-subtle stg:px-4 stg:py-2",i),role:"status",children:[(0,t.jsxs)("div",{className:"stg:flex stg:flex-wrap stg:items-center stg:justify-between stg:gap-2",children:[(0,t.jsxs)("p",{className:"stg:flex stg:min-w-0 stg:items-start stg:gap-1.5 stg:text-sm stg:text-destructive",children:[(0,t.jsx)(c.f,{"aria-hidden":"true",className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsxs)("span",{className:"stg:min-w-0 stg:break-words",children:["The agent asked for a human",e.attentionReason?(0,t.jsxs)(t.Fragment,{children:[" — “",e.attentionReason,"”"]}):"."]})]}),(0,t.jsxs)("div",{className:"stg:ml-auto stg:flex stg:shrink-0 stg:items-center stg:gap-2",children:[(0,t.jsx)(u.f,{variant:"outline",size:"xs",onClick:()=>void o().catch(()=>{}),disabled:d.has("clearAttention"),children:d.has("clearAttention")?"Dismissing…":"Dismiss"}),!f&&n&&(0,t.jsx)(u.f,{variant:"primary",size:"xs",onClick:()=>void l().catch(()=>{}),disabled:d.has("takeOver"),children:d.has("takeOver")?"Taking over…":"Take over"})]})]}),x&&(0,t.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-destructive",children:(0,g.g)(x)})]})}var h=e.i(385663),x=e.i(475254);let f=(0,x.f)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);var c=c,p=e.i(379410),v=e.i(973621);function b({onSend:e,isSending:n,onOpenTemplatePicker:r,disabledReason:l,advisory:o,className:d}){let m=(0,s.useId)(),x=null!=o&&""!==o,[j,y]=(0,s.useState)(null),N=(0,v.f)({onSubmit:t=>{y(null),e({kind:"text",body:t}).then(e=>{e.outcome===i.i.refused?(N.setMessage(t),y({kind:"refused",text:e.detail||"The provider refused this message."})):e.outcome===i.i.queued&&y({kind:"queued",text:"Delivery hit a transient issue — the platform is retrying in the background."})},e=>{N.setMessage(t),y({kind:"error",text:(0,g.g)(e)})})},disabled:null!==l||n});return null!==l?(0,t.jsx)("div",{className:(0,a.f)("stg:border-t stg:border-border stg:px-4 stg:py-3",d),children:(0,t.jsx)("p",{className:"stg:text-center stg:text-xs stg:text-muted-foreground",children:l})}):(0,t.jsxs)("div",{className:(0,a.f)("stg:border-t stg:border-border stg:px-4 stg:py-3",d),children:[x&&(0,t.jsxs)("p",{id:m,className:"stg:mb-2 stg:flex stg:items-start stg:gap-1.5 stg:rounded-md stg:bg-status-degraded-subtle stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-status-degraded",children:[(0,t.jsx)(c.f,{"aria-hidden":"true",className:"stg:mt-0.5 stg:size-3.5 stg:shrink-0"}),(0,t.jsx)("span",{className:"stg:min-w-0",children:o})]}),j&&(0,t.jsx)("p",{className:(0,a.f)("stg:mb-2 stg:text-xs","queued"===j.kind?"stg:text-muted-foreground":"stg:text-destructive"),role:"status",children:j.text}),(0,t.jsxs)("div",{className:"stg:flex stg:items-end stg:gap-2",children:[(0,t.jsx)("textarea",{...N.textareaProps,rows:1,placeholder:"Reply as your business…","aria-label":"Reply to the customer","aria-describedby":x?m:void 0,className:(0,a.f)("stg:min-h-9 stg:flex-1 stg:resize-none stg:rounded-md stg:border stg:border-border stg:bg-background","stg:px-3 stg:py-2 stg:text-sm stg:text-foreground stg:placeholder:text-muted-foreground-faint","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")}),r&&(0,t.jsx)(u.f,{variant:"outline",size:"sm",onClick:r,disabled:n,"aria-label":"Send a template reply",children:(0,t.jsx)(h.f,{"aria-hidden":"true",className:"stg:size-4"})}),(0,t.jsxs)(u.f,{variant:"primary",size:"sm",onClick:N.submit,disabled:!N.canSubmit||n,"aria-label":"Send reply",children:[n?(0,t.jsx)(p.f,{}):(0,t.jsx)(f,{"aria-hidden":"true",className:"stg:size-4"}),n?"Sending…":"Send"]})]})]})}var j=e.i(531245),y=e.i(284614);function N({conversation:e,participation:n,unansweredCustomer:i,supportsStaffReplies:l,currentIdentityAccountId:o,className:d}){let[c,m]=(0,s.useState)(!1),h=e.control===r.o.control_human,x=h&&void 0!==o&&e.controlledBy===o,{takeOver:f,handBack:p,pendingCommands:v,commandErrors:b}=n,k=b.get("takeOver")??b.get("handBack");return(0,t.jsxs)("div",{className:(0,a.f)("stg:border-b stg:border-border stg:px-4 stg:py-2",h?"stg:bg-primary-subtle":"stg:bg-muted-faint",d),children:[(0,t.jsxs)("div",{className:"stg:flex stg:flex-wrap stg:items-center stg:justify-between stg:gap-2",children:[(0,t.jsx)("p",{className:"stg:flex stg:items-center stg:gap-1.5 stg:text-sm stg:text-foreground",children:h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y.f,{"aria-hidden":"true",className:"stg:size-4 stg:text-muted-foreground"}),x?"You have this conversation — the agent is quiet until you hand it back.":void 0!==o?"A teammate has this conversation — the agent is quiet until handback.":"This conversation is with a human — the agent is quiet until handback."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.f,{"aria-hidden":"true",className:"stg:size-4 stg:text-muted-foreground"}),"The agent is serving this conversation."]})}),c?(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("span",{className:"stg:text-xs stg:text-destructive",children:"The customer's last message has no reply — the agent stays quiet until they write again."}),(0,t.jsx)(u.f,{variant:"outline",size:"xs",onClick:()=>{m(!1),p().catch(()=>{})},disabled:v.has("handBack"),children:"Hand back anyway"}),(0,t.jsx)(u.f,{variant:"primary",size:"xs",onClick:()=>m(!1),children:"Keep the conversation"})]}):h?(0,t.jsx)(u.f,{variant:"outline",size:"xs",onClick:()=>{i?m(!0):p().catch(()=>{})},disabled:v.has("handBack"),children:v.has("handBack")?"Handing back…":"Hand back to agent"}):(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[!l&&(0,t.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:"This channel's provider has no staff send lane yet — a takeover would silence the agent with no way to reply."}),(0,t.jsx)(u.f,{variant:"outline",size:"xs",onClick:()=>void f().catch(()=>{}),disabled:!l||v.has("takeOver"),children:v.has("takeOver")?"Taking over…":"Take over"})]})]}),k&&(0,t.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-destructive",children:(0,g.g)(k)})]})}var k=e.i(17616),w=e.i(686311),c=c,S=e.i(869803),C=e.i(361353),I=e.i(188482),T=e.i(885612),M=e.i(954950);function z(e){switch(e.author){case r.u.author_customer:return"customer";case r.u.author_agent:return"agent";case r.u.author_teammate:return"teammate";case r.u.author_platform:return"platform";default:return"unknown"}}function A(e){switch(e.deliveryStatus){case T.A.pending:return"pending";case T.A.delivering:return"delivering";case T.A.delivered:return"delivered";case T.A.failed:return"failed";case T.A.suppressed:return"suppressed";default:return null}}function _(e){switch(e.receiptState){case M.h.receipt_sent:return"sent";case M.h.receipt_delivered:return"delivered";case M.h.receipt_read:return"read";case M.h.receipt_failed:return"failed";default:return null}}function R(e,t){return""!==e.displayName?e.displayName:"slack"===t?"Slack thread":e.conversationKey}function K(e,t){return"whatsapp"!==t||""===e.displayName?null:e.conversationKey}function $(e,t){var s,n;let a,r,i=(s=t.at,n=e.at,a=s?.seconds??D,a!==(r=n?.seconds??D)?a<r?-1:1:(s?.nanos??0)-(n?.nanos??0));return 0!==i?i:e.itemId<t.itemId?1:e.itemId>t.itemId?-1:0}let D=BigInt(0);function L({conversations:e,isLoading:n,error:i,hasMore:o,loadMore:c,isLoadingMore:m,channels:h,channelFilter:x,onChannelFilterChange:f,filter:p=r.r.channel_conversation_list_filter_unspecified,onFilterChange:v,selected:b,onSelect:j,now:y,className:N}){let k=(0,s.useId)(),C=new Map(h.map(e=>[e.metadata?.id??"",(0,l.T)(e.spec?.type?.case)]));return(0,t.jsxs)("div",{"aria-label":"Conversation list",className:(0,a.f)("stg:flex stg:min-h-0 stg:flex-col",N),children:[(void 0!==v||h.length>1)&&(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-2 stg:border-b stg:border-border stg:px-3 stg:py-2",children:[void 0!==v&&(0,t.jsx)(E,{value:p,onChange:v}),h.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("label",{className:"stg:sr-only",htmlFor:k,children:"Filter by channel"}),(0,t.jsxs)("select",{id:k,value:x,onChange:e=>f(e.target.value),className:(0,a.f)("stg:w-full stg:rounded-md stg:border stg:border-border stg:bg-background stg:px-2 stg:py-1.5","stg:text-sm stg:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[(0,t.jsx)("option",{value:"",children:"All channels"}),h.map(e=>(0,t.jsx)("option",{value:e.metadata?.id,children:e.metadata?.name||e.metadata?.slug},e.metadata?.id))]})]})]}),(0,t.jsx)("div",{className:"stg:min-h-0 stg:flex-1 stg:overflow-y-auto stg:p-2",children:n?(0,t.jsx)(B,{}):i?(0,t.jsx)("p",{className:"stg:px-2 stg:py-6 stg:text-center stg:text-sm stg:text-destructive",children:(0,g.g)(i)}):0===e.length?0===h.length?(0,t.jsx)(d.f,{variant:"first-use",icon:(0,t.jsx)(w.f,{className:"stg:size-8"}),title:"No channels to watch",description:"Conversations arrive through an agent's channels. Connect a channel — or ask a channel owner for access — and customer conversations appear here."}):p===r.r.filter_wants_human?(0,t.jsx)(d.f,{variant:"first-use",icon:(0,t.jsx)(w.f,{className:"stg:size-8"}),title:"Nothing needs a human right now",description:"Conversations appear here when the agent asks for attention, or when a human-held conversation has a customer message awaiting a reply."}):(0,t.jsx)(d.f,{variant:"first-use",icon:(0,t.jsx)(w.f,{className:"stg:size-8"}),title:"No conversations yet",description:"When a customer messages one of your channels, their conversation appears here."}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.g,{children:(0,t.jsx)("ul",{className:(0,a.f)(S.J,"stg:space-y-0.5"),children:e.map(e=>(0,t.jsx)(P,{conversation:e,label:R(e,C.get(e.channelId)?.id??null),contact:K(e,C.get(e.channelId)?.id??null),isSelected:b?.channelId===e.channelId&&b?.conversationKey===e.conversationKey,onSelect:j,now:y},`${e.channelId}:${e.conversationKey}`))})}),o&&(0,t.jsx)("div",{className:"stg:flex stg:justify-center stg:py-2",children:(0,t.jsx)(u.f,{variant:"ghost",size:"xs",onClick:c,disabled:m,children:m?"Loading…":"Show more"})})]})})]})}let O=[{value:r.r.channel_conversation_list_filter_unspecified,label:"All",ariaLabel:"All conversations"},{value:r.r.filter_wants_human,label:"Needs human",ariaLabel:"Conversations where a human action is wanted"}];function E({value:e,onChange:n}){let r=(0,s.useRef)([]),i=(0,s.useCallback)(t=>{t!==e&&n(t)},[e,n]),l=(0,s.useCallback)((e,t)=>{let s=null;"ArrowRight"===e.key||"ArrowDown"===e.key?(e.preventDefault(),s=(t+1)%O.length):("ArrowLeft"===e.key||"ArrowUp"===e.key)&&(e.preventDefault(),s=(t-1+O.length)%O.length),null!==s&&(r.current[s]?.focus(),i(O[s].value))},[i]);return(0,t.jsx)("div",{role:"radiogroup","aria-label":"Conversation filter",className:"stg:inline-flex stg:self-start stg:rounded-md stg:bg-muted stg:p-0.5",children:O.map((s,n)=>{let o=e===s.value;return(0,t.jsx)("button",{ref:e=>{r.current[n]=e},type:"button",role:"radio","aria-checked":o,"aria-label":s.ariaLabel,tabIndex:o?0:-1,onClick:()=>i(s.value),onKeyDown:e=>l(e,n),className:(0,a.f)("stg:inline-flex stg:cursor-pointer stg:items-center stg:rounded-sm stg:px-2 stg:py-1 stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",o?"stg:bg-background stg:text-foreground stg:shadow-sm":"stg:text-muted-foreground stg:hover:text-foreground"),children:s.label},s.value)})})}let F={strong:"Customer awaiting reply — a human has this conversation; the agent will not answer",muted:"Customer awaiting reply — the agent has this conversation"},P=(0,s.memo)(function({conversation:e,label:s,contact:n,isSelected:i,onSelect:l,now:o}){let d=e.control===r.o.control_human,g=e.awaitingReply?e.control===r.o.control_human?"strong":"muted":null,u=e.lastActivityAt?(0,k.S)(e.lastActivityAt):null;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>l(e),"aria-current":i?"true":void 0,className:(0,a.f)("stg:flex stg:w-full stg:items-center stg:gap-2.5 stg:rounded-md stg:px-2.5 stg:py-2 stg:text-left","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",i?"stg:bg-primary-subtle":"stg:hover:bg-accent"),children:[(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)("p",{className:"stg:truncate stg:text-sm stg:font-medium stg:text-foreground",children:s}),e.needsAttention&&(0,t.jsxs)(I.W,{children:[(0,t.jsxs)(I.y,{render:(0,t.jsx)("span",{className:"stg:shrink-0"}),children:[(0,t.jsx)(c.f,{"aria-hidden":"true",className:"stg:size-3.5 stg:text-destructive"}),(0,t.jsx)("span",{className:"stg:sr-only",children:e.attentionReason?`Needs attention: ${e.attentionReason}`:"Needs attention"})]}),(0,t.jsx)(I.Y,{side:"top",children:e.attentionReason||"Needs attention"})]})]}),null!==n&&(0,t.jsx)("p",{className:"stg:mt-0.5 stg:truncate stg:text-xs stg:text-muted-foreground-faint",children:n}),d&&(0,t.jsxs)("p",{className:"stg:mt-0.5 stg:flex stg:items-center stg:gap-1 stg:text-xs stg:text-muted-foreground",children:[(0,t.jsx)(y.f,{"aria-hidden":"true",className:"stg:size-3"}),"Human has the conversation"]})]}),(null!==u||null!==g)&&(0,t.jsxs)("span",{className:"stg:flex stg:shrink-0 stg:flex-col stg:items-end stg:gap-1",children:[u&&(0,t.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground-faint",children:(0,C.f)(u,o)}),g&&(0,t.jsxs)(I.W,{children:[(0,t.jsxs)(I.y,{render:(0,t.jsx)("span",{className:"stg:flex"}),children:[(0,t.jsx)("span",{"aria-hidden":"true",className:(0,a.f)("stg:size-2 stg:rounded-full","strong"===g?"stg:bg-primary":"stg:border-2 stg:border-muted-foreground")}),(0,t.jsx)("span",{className:"stg:sr-only",children:F[g]})]}),(0,t.jsx)(I.Y,{side:"top",children:F[g]})]})]})]})})});function B(){return(0,t.jsx)("div",{className:"stg:space-y-1 stg:p-1","aria-hidden":"true",children:[1,2,3,4].map(e=>(0,t.jsx)("div",{className:"stg:h-11 stg:animate-pulse stg:rounded-md stg:bg-muted-faint"},e))})}var q=e.i(766354),U=e.i(37727),W=e.i(468806),H=e.i(364802),Y=e.i(928240),Q=e.i(182990);function V({open:e,onOpenChange:n,channelSlug:a,org:r,onSend:i,isSending:l,modal:o=!0}){let d=(0,s.useId)();return(0,t.jsx)(W.f,{open:e,onOpenChange:n,modal:o,width:"2xl","aria-labelledby":d,children:e&&(0,t.jsx)(J,{titleId:d,channelSlug:a,org:r,onSend:i,isSending:l,onClose:()=>n(!1)})})}function J({titleId:e,channelSlug:n,org:a,onSend:r,isSending:i,onClose:l}){let{templates:o,isLoading:d,error:c}=(0,Q.f)(n,a,{approvedOnly:!0}),[g,m]=(0,s.useState)(null);return(0,t.jsxs)("div",{className:"stg:flex stg:max-h-[75vh] stg:flex-col",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-3 stg:border-b stg:border-border stg:px-5 stg:py-4",children:[(0,t.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:items-center stg:gap-2",children:[null!==g&&(0,t.jsx)(u.f,{variant:"ghost",size:"xs",onClick:()=>m(null),disabled:i,"aria-label":"Back to the template list",children:(0,t.jsx)(q.f,{className:"stg:size-4"})}),(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsx)("h2",{id:e,className:"stg:text-sm stg:font-semibold stg:text-popover-foreground",children:null===g?"Send a template":g.name}),(0,t.jsx)("p",{className:"stg:mt-0.5 stg:text-xs stg:text-muted-foreground",children:null===g?"Approved templates deliver even after the 24-hour reply window closes.":"Fill the template's variables — the preview is the exact message the customer receives."})]})]}),(0,t.jsx)(u.f,{variant:"ghost",size:"xs",onClick:l,"aria-label":"Close template picker",children:(0,t.jsx)(U.X,{className:"stg:size-4"})})]}),(0,t.jsx)("div",{className:"stg:min-h-0 stg:flex-1 stg:overflow-y-auto stg:p-4",children:null===g?(0,t.jsx)(X,{templates:o,isLoading:d,error:c,onChoose:m}):(0,t.jsx)(G,{template:g,onSend:r,isSending:i,onClose:l})})]})}function X({templates:e,isLoading:s,error:n,onChoose:r}){return s?(0,t.jsx)("div",{className:"stg:space-y-2 stg:p-1",children:[1,2,3].map(e=>(0,t.jsx)("div",{className:"stg:h-16 stg:animate-pulse stg:rounded-lg stg:bg-muted-faint"},e))}):n?(0,t.jsx)("p",{className:"stg:px-2 stg:py-6 stg:text-center stg:text-sm stg:text-destructive",children:(0,g.g)(n)}):0===e.length?(0,t.jsx)(d.f,{variant:"first-use",icon:(0,t.jsx)(h.f,{className:"stg:size-8"}),title:"No approved templates found",description:"Templates are authored and approved in WhatsApp Manager — Stigmer keeps no copy. Approved templates appear here automatically; the channel card's Templates dialog shows every status, including pending and rejected ones."}):(0,t.jsx)("ul",{className:(0,a.f)(S.J,"stg:space-y-2"),children:e.map(e=>{let s=e.unsupportedReason?`Not sendable: ${e.unsupportedReason}`:"IMAGE"===e.headerFormat?"Not sendable from the console yet: this template's image header needs a hosted image at send time.":null;return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>r(e),disabled:null!==s,className:(0,a.f)("stg:w-full stg:rounded-lg stg:border stg:border-border stg:p-3 stg:text-left","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",null===s&&"stg:hover:border-ring stg:hover:bg-muted-faint"),children:[(0,t.jsxs)("div",{className:(0,a.f)("stg:flex stg:min-w-0 stg:flex-wrap stg:items-center stg:gap-x-2 stg:gap-y-1",null!==s&&"stg:opacity-60"),children:[(0,t.jsx)(H.f,{text:e.name,className:"stg:text-sm stg:font-medium stg:text-foreground"}),(0,t.jsx)("span",{className:"stg:shrink-0 stg:text-xs stg:text-muted-foreground",children:e.language}),e.headerFormat&&(0,t.jsxs)("span",{className:"stg:shrink-0 stg:rounded stg:bg-muted-subtle stg:px-1.5 stg:py-0.5 stg:text-xs stg:text-muted-foreground",children:[e.headerFormat," header"]})]}),e.bodyText&&(0,t.jsx)("p",{className:(0,a.f)("stg:mt-1.5 stg:line-clamp-2 stg:whitespace-pre-wrap stg:text-xs stg:leading-relaxed stg:text-muted-foreground",null!==s&&"stg:opacity-60"),children:e.bodyText}),null!==s&&(0,t.jsx)("p",{className:"stg:mt-1.5 stg:text-xs stg:text-status-degraded",children:s})]})},`${e.name}\0${e.language}`)})})}function G({template:e,onSend:n,isSending:r,onClose:l}){let o=(0,s.useId)(),[d,c]=(0,s.useState)({}),[m,h]=(0,s.useState)(null),x=(0,s.useMemo)(()=>(0,Y.B)(e.bodyText),[e.bodyText]),v=e.parameterNames,b=v.every(e=>""!==(d[e]??"").trim());return(0,t.jsxs)("div",{className:"stg:space-y-4",children:[m&&(0,t.jsx)("p",{className:"stg:text-xs stg:text-destructive",role:"status",children:m.text}),v.length>0&&(0,t.jsx)("div",{className:"stg:space-y-3",children:v.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:`${o}-${e}`,className:"stg:mb-1 stg:block stg:text-xs stg:font-medium stg:text-foreground",children:e}),(0,t.jsx)("input",{id:`${o}-${e}`,type:"text",value:d[e]??"",onChange:t=>c(s=>({...s,[e]:t.target.value})),disabled:r,className:(0,a.f)("stg:w-full stg:rounded-md stg:border stg:border-border stg:bg-background","stg:px-3 stg:py-2 stg:text-sm stg:text-foreground stg:placeholder:text-muted-foreground-faint","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring")})]},e))}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"stg:mb-1 stg:text-xs stg:font-medium stg:text-foreground",children:"Preview"}),(0,t.jsx)("p",{className:"stg:whitespace-pre-wrap stg:rounded-md stg:border stg:border-border stg:bg-muted-faint stg:p-3 stg:text-sm stg:leading-relaxed stg:text-foreground",children:x.map((e,s)=>{if("text"===e.kind)return(0,t.jsx)("span",{children:e.value},s);let n=(d[e.value.replace(/^\{\{\s*|\s*\}\}$/g,"")]??"").trim();return""!==n?(0,t.jsx)("span",{children:n},s):(0,t.jsx)("code",{className:"stg:rounded stg:bg-muted-subtle stg:px-1 stg:font-mono stg:text-muted-foreground",children:e.value},s)})})]}),(0,t.jsx)("div",{className:"stg:flex stg:justify-end",children:(0,t.jsxs)(u.f,{variant:"primary",size:"sm",onClick:()=>{h(null);let t=Object.fromEntries(v.map(e=>[e,(d[e]??"").trim()]));n({kind:"template",name:e.name,language:e.language,parameters:t}).then(e=>{e.outcome===i.i.refused?h({kind:"refused",text:e.detail||"The provider refused this template."}):l()},e=>{h({kind:"error",text:(0,g.g)(e)})})},disabled:!b||r,"aria-label":"Send template",children:[r?(0,t.jsx)(p.f,{}):(0,t.jsx)(f,{"aria-hidden":"true",className:"stg:size-4"}),r?"Sending…":"Send template"]})})]})}let Z=(0,x.f)("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]);var ee=e.i(643531);let et=(0,x.f)("check-check",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]),es=(0,x.f)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]),en=(0,x.f)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var c=c,ea=e.i(901982),er=e.i(106909),ei=e.i(891287),el=e.i(309826),eo=e.i(933221),ed=e.i(781836),ec=e.i(255817),eg=e.i(616701);let eu={url:null};var em=e.i(14480);function eh({media:e,address:s,className:n}){return e.contentType.startsWith("image/")?(0,t.jsx)(ef,{media:e,address:s,className:n}):(0,t.jsx)(ep,{media:e,address:s,className:n})}function ex(e){return e.filename||"media"}function ef({media:e,address:n,className:i}){let{url:l,error:o}=function(e,t,n){let a=(0,ec.f)(),i=((void 0)??!0)&&""!==e&&""!==t&&""!==n,{data:l,isLoading:o,isRefetching:d,error:c,refetch:g}=(0,eg.f)(i?()=>a.channel.getMediaDownloadUrl((0,ei.f)(r.G,{channelId:e,conversationKey:t,itemId:n})).then(e=>({url:e.url||null})):null,[e,t,n,i,a],eu,{cacheKey:i?`conversation-media-url:${e}:${t}:${n}`:void 0});return(0,s.useMemo)(()=>({url:l.url,isLoading:o,isRefetching:d,error:c,refetch:g}),[l.url,o,d,c,g])}(n.channelId,n.conversationKey,n.itemId),[d,c]=(0,s.useState)(!1),g=ex(e);return o?(0,t.jsx)(ep,{media:e,address:n,className:i}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:()=>c(!0),"aria-label":`Preview ${g}`,className:(0,a.f)(eo.s,"stg:block stg:rounded-md stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",i),children:(0,t.jsx)("span",{className:"stg:relative stg:block stg:h-40 stg:w-56 stg:max-w-full stg:overflow-hidden stg:rounded-md",children:l?(0,t.jsx)("img",{src:l,alt:"","aria-hidden":"true",loading:"lazy",className:"stg:h-full stg:w-full stg:object-cover"}):(0,t.jsx)("span",{className:"stg:block stg:h-full stg:w-full stg:animate-pulse stg:bg-muted","aria-hidden":"true"})})}),d&&(0,t.jsx)(el.f,{src:l,filename:g,open:!0,onClose:()=>c(!1)})]})}function ep({media:e,address:n,className:i}){let{open:l,isOpening:o,error:d}=function(e){let t=(0,ec.f)(),[n,a]=(0,s.useState)(!1),[i,l]=(0,s.useState)(null),o=(0,s.useCallback)(async()=>{if(!n){a(!0),l(null);try{let s=await t.channel.getMediaDownloadUrl((0,ei.f)(r.G,{channelId:e.channelId,conversationKey:e.conversationKey,itemId:e.itemId}));s.url&&function(e){if("u"<typeof document)return window.open(e,"_blank","noopener,noreferrer");let t=document.createElement("a");t.href=e,t.rel="noopener noreferrer",t.target="_blank",document.body.appendChild(t),t.click(),document.body.removeChild(t)}(s.url)}catch(e){l((0,ed.f)(e))}finally{a(!1)}}},[t,e.channelId,e.conversationKey,e.itemId,n]);return(0,s.useMemo)(()=>({open:o,isOpening:n,error:i}),[o,n,i])}(n),c=ex(e),u=e.sizeBytes>BigInt(0)?(0,em.f)(Number(e.sizeBytes)):null;return(0,t.jsxs)("div",{className:i,children:[(0,t.jsx)("span",{className:"stg:inline-flex stg:max-w-[240px] stg:items-center stg:rounded-md stg:bg-muted-subtle stg:px-2 stg:py-1 stg:text-xs stg:text-foreground",children:(0,t.jsxs)("button",{type:"button",onClick:()=>void l(),disabled:o,"aria-label":`Open ${c}`,className:(0,a.f)(eo.s,"stg:flex stg:min-w-0 stg:items-center stg:gap-1.5 stg:rounded-sm stg:hover:text-accent-foreground stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",o&&"stg:opacity-70"),children:[(0,t.jsx)(ev,{}),(0,t.jsx)(H.f,{text:c,className:"stg:min-w-0"}),null!==u&&(0,t.jsx)("span",{className:"stg:shrink-0 stg:text-muted-foreground",children:u})]})}),null!==d&&(0,t.jsx)("p",{className:"stg:mt-1 stg:break-words stg:text-xs stg:text-destructive",children:(0,g.g)(d)})]})}function ev(){return(0,t.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"stg:shrink-0 stg:text-muted-foreground","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M8 1H4C3.45 1 3 1.45 3 2V12C3 12.55 3.45 13 4 13H10C10.55 13 11 12.55 11 12V4L8 1Z"}),(0,t.jsx)("path",{d:"M8 1V4H11"})]})}function eb({items:e,channelId:n,conversationKey:r,isLoading:i,error:o,hasOlder:c,loadOlder:m,isLoadingOlder:h,provider:x,now:f,pinToLatestSignal:p,className:v}){let{scrollRef:b,sentinelRef:j,contentRef:y,isFollowing:N,jumpToLatest:C}=(0,er.i)();(0,er.L)(p,C);let T=(0,s.useMemo)(()=>(function(e,t){let s=t??new Date,n=[],a="";for(let t of e){let e=t.at?(0,k.S)(t.at):null,r=e?e.toDateString():"undated";r!==a&&(a=r,n.push({label:e?function(e,t){if(e.toDateString()===t.toDateString())return"Today";let s=new Date(t);return(s.setDate(t.getDate()-1),e.toDateString()===s.toDateString())?"Yesterday":e.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric",...e.getFullYear()===t.getFullYear()?{}:{year:"numeric"}})}(e,s):"Earlier",items:[]})),n[n.length-1].items.push(t)}return n})(e,f),[e,f]),M=(0,l.T)(x??void 0),z=M?.timelineIncludesCustomerMessages??!0;return(0,t.jsx)(I.g,{children:(0,t.jsxs)("div",{"aria-label":"Conversation timeline",className:(0,a.f)("stg:relative stg:flex stg:min-h-0 stg:flex-1 stg:flex-col",v),children:[(0,t.jsxs)("div",{ref:b,className:"stg:min-h-0 stg:flex-1 stg:overflow-y-auto stg:[overflow-anchor:none] stg:px-4 stg:py-3",children:[!z&&M&&(0,t.jsxs)("div",{className:"stg:mb-3 stg:flex stg:items-start stg:gap-2 stg:rounded-md stg:border stg:border-border stg:bg-muted-faint stg:px-3 stg:py-2 stg:text-xs stg:text-muted-foreground",children:[(0,t.jsx)(en,{"aria-hidden":"true",className:"stg:mt-0.5 stg:size-3.5 stg:shrink-0"}),(0,t.jsxs)("p",{children:["Customer messages on ",M.label," channels aren't shown here yet — this thread has replies, sends, and internal events only."]})]}),i?(0,t.jsx)(eC,{}):o?(0,t.jsx)("p",{className:"stg:px-2 stg:py-6 stg:text-center stg:text-sm stg:text-destructive",children:(0,g.g)(o)}):0===e.length?(0,t.jsx)(d.f,{variant:"first-use",icon:(0,t.jsx)(w.f,{className:"stg:size-8"}),title:"No messages yet",description:"The conversation's messages appear here as they happen."}):(0,t.jsxs)("div",{ref:y,children:[c&&(0,t.jsx)("div",{className:"stg:flex stg:justify-center stg:pb-2",children:(0,t.jsx)(u.f,{variant:"ghost",size:"xs",onClick:m,disabled:h,children:h?"Loading…":"Load earlier messages"})}),T.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"stg:my-2 stg:text-center stg:text-xs stg:text-muted-foreground-faint",role:"separator",children:e.label}),(0,t.jsx)("ul",{className:(0,a.f)(S.J,"stg:space-y-1.5"),children:e.items.map(e=>(0,t.jsx)(ey,{item:e,channelId:n,conversationKey:r},e.itemId))})]},e.label))]}),(0,t.jsx)("div",{ref:j,"aria-hidden":"true"})]}),(0,t.jsx)(ea.f,{visible:!N,onClick:C})]})})}let ej={agent:"Agent",teammate:"Teammate",platform:"Automated",unknown:"Unknown sender"},ey=(0,s.memo)(function({item:e,channelId:s,conversationKey:n}){if(e.lane===r.a.lane_internal)return(0,t.jsx)(eS,{item:e});let i=z(e),l="customer"===i,o=void 0!==e.media&&s&&n?{channelId:s,conversationKey:n,itemId:e.itemId}:null,d=e.text||(null!==o?"":function(e){if(""!==e.text||""===e.providerMessageType)return null;switch(e.providerMessageType){case"text":return null;case"image":return"Photo";case"video":return"Video";case"audio":return"Voice message";case"document":return"Document";case"sticker":return"Sticker";case"location":return"Location";case"contacts":return"Contact card";default:return`Unsupported message (${e.providerMessageType})`}}(e)),c="delivered"===A(e)&&"failed"===_(e)&&""!==e.receiptDetail?e.receiptDetail:null,g="failed"!==A(e)?null:""!==e.attemptDetail?e.attemptDetail:"errored"===function(e){switch(e.attemptFailureKind){case T.$.attempt_refused:return"refused";case T.$.attempt_errored:return"errored";case T.$.attempt_withdrawn:return"withdrawn";default:return null}}(e)?"Delivery failed due to a technical problem on the platform's side.":null;return(0,t.jsx)("li",{className:(0,a.f)("stg:flex",l?"stg:justify-start":"stg:justify-end"),children:(0,t.jsxs)("div",{className:(0,a.f)("stg:max-w-[80%] stg:rounded-lg stg:px-3 stg:py-2",l?"stg:bg-muted-subtle":"stg:bg-primary-subtle"),children:[!l&&(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-muted-foreground",children:ej[i]}),null!==o&&void 0!==e.media&&(0,t.jsx)(eh,{media:e.media,address:o,className:e.text?"stg:mb-1.5":void 0}),(d||null===o)&&(0,t.jsx)("p",{className:(0,a.f)("stg:whitespace-pre-wrap stg:break-words stg:text-sm stg:text-foreground",!e.text&&"stg:italic stg:text-muted-foreground"),children:d||"Message content unavailable"}),null!==c&&(0,t.jsx)("p",{className:"stg:mt-1 stg:break-words stg:text-xs stg:text-destructive",children:c}),null!==g&&(0,t.jsx)("p",{className:"stg:mt-1 stg:break-words stg:text-xs stg:text-destructive",children:g}),(0,t.jsx)(ek,{item:e})]})})});function eN({hint:e,className:s,children:n}){return(0,t.jsxs)(I.W,{children:[(0,t.jsx)(I.y,{render:(0,t.jsx)("span",{className:s}),children:n}),(0,t.jsx)(I.Y,{side:"top",children:e})]})}function ek({item:e}){let s=A(e),n=e.at?(0,k.S)(e.at).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}):"";return(0,t.jsxs)("p",{className:"stg:mt-1 stg:flex stg:items-center stg:justify-end stg:gap-1 stg:text-xs stg:text-muted-foreground-faint",children:[(0,t.jsx)("span",{children:n}),"failed"===s&&(0,t.jsxs)(eN,{hint:"The platform could not deliver this message",className:"stg:flex stg:items-center stg:gap-0.5 stg:text-destructive",children:[(0,t.jsx)(c.f,{"aria-hidden":"true",className:"stg:size-3"}),"Not delivered"]}),"suppressed"===s&&(0,t.jsxs)(eN,{hint:"Withheld because a human had the conversation when it came due",className:"stg:flex stg:items-center stg:gap-0.5",children:[(0,t.jsx)(Z,{"aria-hidden":"true",className:"stg:size-3"}),"Held"]}),("pending"===s||"delivering"===s)&&(0,t.jsxs)(eN,{hint:"Sending",className:"stg:flex stg:items-center stg:gap-0.5",children:[(0,t.jsx)(es,{"aria-hidden":"true",className:"stg:size-3"}),(0,t.jsx)("span",{className:"stg:sr-only",children:"Sending"})]}),"delivered"===s&&(0,t.jsx)(ew,{item:e})]})}function ew({item:e}){let s=_(e);return"failed"===s?(0,t.jsxs)(eN,{hint:"The provider accepted this message but could not deliver it",className:"stg:flex stg:items-center stg:gap-0.5 stg:text-destructive",children:[(0,t.jsx)(c.f,{"aria-hidden":"true",className:"stg:size-3"}),"Delivery failed"]}):"read"===s?(0,t.jsxs)(eN,{hint:"Read by the customer",className:"stg:text-primary",children:[(0,t.jsx)(et,{"aria-hidden":"true",className:"stg:size-3.5"}),(0,t.jsx)("span",{className:"stg:sr-only",children:"Read"})]}):"delivered"===s?(0,t.jsxs)(eN,{hint:"Delivered to the customer's device",children:[(0,t.jsx)(et,{"aria-hidden":"true",className:"stg:size-3.5"}),(0,t.jsx)("span",{className:"stg:sr-only",children:"Delivered"})]}):(0,t.jsxs)(eN,{hint:"Sent",children:[(0,t.jsx)(ee.f,{"aria-hidden":"true",className:"stg:size-3.5"}),(0,t.jsx)("span",{className:"stg:sr-only",children:"Sent"})]})}function eS({item:e}){let s="agent"===z(e)&&""!==e.text;return(0,t.jsx)("li",{className:"stg:flex stg:justify-center",children:(0,t.jsx)("div",{className:(0,a.f)("stg:flex stg:max-w-[90%] stg:items-start stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-center stg:text-xs",s?"stg:bg-destructive-subtle stg:text-destructive":"stg:bg-muted-faint stg:text-muted-foreground"),children:s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.f,{"aria-hidden":"true",className:"stg:mt-0.5 stg:size-3.5 stg:shrink-0"}),(0,t.jsxs)("span",{className:"stg:min-w-0 stg:break-words",children:["Agent escalated to a human — “",e.text,"”"]})]}):""!==e.text?(0,t.jsx)("span",{className:"stg:min-w-0 stg:break-words",children:e.text}):(0,t.jsx)("span",{children:"A teammate resolved the attention flag"})})})}function eC(){return(0,t.jsxs)("div",{className:"stg:space-y-2","aria-hidden":"true",children:[(0,t.jsx)("div",{className:"stg:h-10 stg:w-3/5 stg:animate-pulse stg:rounded-lg stg:bg-muted-faint"}),(0,t.jsx)("div",{className:"stg:ml-auto stg:h-10 stg:w-3/5 stg:animate-pulse stg:rounded-lg stg:bg-muted-faint"}),(0,t.jsx)("div",{className:"stg:h-10 stg:w-2/5 stg:animate-pulse stg:rounded-lg stg:bg-muted-faint"})]})}var eI=e.i(705450),eT=e.i(910304),eM=e.i(799190);let ez={items:[],nextPageToken:"",seq:0},eA={rows:new Map,seq:0};function e_(e){return`${e.channelId}\0${e.conversationKey}`}function eR(e){let t=e.lastActivityAt;return t?1e3*Number(t.seconds)+Math.floor(t.nanos/1e6):0}var eK=e.i(232217);let e$={items:[],nextPageToken:""};function eD(e,t){let s=null;for(let n of t){let t=e.get(n.itemId);t&&(0,eI.f)(r.J,t,n)||(s??=new Map(e)).set(n.itemId,n)}return s??e}function eL({org:e,selected:c,onSelectionChange:g,currentIdentityAccountId:u,headerAccessory:h,channelHref:x,now:f,scrollOnSend:p=!0,className:v}){let[j,y]=(0,s.useState)(""),[w,S]=(0,s.useState)(r.r.channel_conversation_list_filter_unspecified),{channels:C}=(0,o.f)(e||null),I=(0,s.useMemo)(()=>C.filter(e=>e.spec?.type?.case!=="web"),[C]),T=function(e){let{org:t,channelId:n="",filter:a=r.r.channel_conversation_list_filter_unspecified,pageSize:i=50}=e,l=e.refetchIntervalMs??eM.E,o=(0,ec.f)(),d=(0,s.useRef)(0),c=t?async()=>{let e=d.current,s=await o.channel.listConversations((0,ei.f)(r.X,{org:t,channelId:n,filter:a,pageSize:i}));return{items:s.entries,nextPageToken:s.nextPageToken,seq:e}}:null,{data:g,isLoading:u,isRefetching:m,error:h,refetch:x}=(0,eg.f)(c,[t,n,a,i,o],ez,{refetchInterval:l,refetchOnWindowFocus:!0}),[f,p]=(0,s.useState)(null),[v,b]=(0,s.useState)(!1),[j,y]=(0,s.useState)(null),[N,k]=(0,s.useState)(eA),w=(0,s.useRef)(0);(0,s.useEffect)(()=>{w.current+=1,p(null),b(!1),y(null),k(eA)},[t,n,a,i,o]);let S=(0,s.useCallback)(e=>{let t=++d.current;k(s=>{let n=new Map(s.rows);return n.set(e_(e),e),{rows:n,seq:t}}),x()},[x]);(0,s.useEffect)(()=>{0!==N.rows.size&&g.seq>=N.seq&&k(eA)},[g,N]);let C=null!==f?f.nextPageToken:g.nextPageToken,I=(0,s.useCallback)(()=>{if(!t||v||""===C)return;let e=w.current;b(!0),y(null),o.channel.listConversations((0,ei.f)(r.X,{org:t,channelId:n,filter:a,pageSize:i,pageToken:C})).then(t=>{w.current===e&&(p(e=>({pages:[...e?.pages??[],t.entries],nextPageToken:t.nextPageToken})),b(!1))},t=>{w.current===e&&(y((0,ed.f)(t)),b(!1))})},[t,n,a,i,o,v,C]),T=(0,s.useMemo)(()=>{let e=new Set,t=[];for(let s of[...g.items,...f?.pages.flat()??[]]){let n=e_(s);e.has(n)||(e.add(n),t.push(N.rows.get(n)??s))}for(let[s,i]of N.rows){if(e.has(s)||a!==r.r.channel_conversation_list_filter_unspecified||""!==n&&i.channelId!==n)continue;let l=eR(i),o=t.findIndex(e=>eR(e)<l);t.splice(-1===o?t.length:o,0,i),e.add(s)}return t},[g.items,f,N,n,a]),M=""!==C;return(0,s.useMemo)(()=>({conversations:T,hasMore:M,loadMore:I,isLoadingMore:v,loadMoreError:j,isLoading:u,isRefetching:m,error:h,refetch:x,applyServerState:S}),[T,M,I,v,j,u,m,h,x,S])}({org:e||null,channelId:j,filter:w}),M=function(e,t){let n=(0,ec.f)(),a=(void 0)??eM.Q,i=""!==e&&""!==t,[l,o]=(0,s.useState)(null),[d,c]=(0,s.useState)(!1),[g,u]=(0,s.useState)(!1),[m,h]=(0,s.useState)(i),[x,f]=(0,s.useState)(null),[p,v]=(0,s.useState)(0),b=(0,s.useRef)(0),j=(0,s.useRef)(0),y=(0,s.useRef)(!1),N=(0,s.useCallback)(()=>v(e=>e+1),[]),k=(0,s.useCallback)(e=>{b.current+=1,o(e),c(!1),u(!0),f(null)},[]);(0,s.useEffect)(()=>{b.current+=1,o(null),c(!1),u(!1),f(null),i||(h(!1),y.current=!1)},[e,t,n,i]),(0,s.useEffect)(()=>{if(!i)return;let s=b.current,a=++j.current;h(!0),y.current=!0;let l=()=>{j.current===a&&(h(!1),y.current=!1)};n.channel.getConversation((0,ei.f)(r.Q,{channelId:e,conversationKey:t})).then(e=>{b.current===s&&(o(t=>t&&(0,eI.f)(r.T,t,e)?t:e),c(!1),u(!0),f(null)),l()},e=>{b.current===s&&((0,eT.c)(e)?(o(null),c(!0),u(!0),f(null)):f((0,ed.f)(e))),l()})},[i,e,t,n,p]),(0,s.useEffect)(()=>{if(!i||!a||a<=0)return;let e=setInterval(()=>{y.current||N()},a);return()=>clearInterval(e)},[i,a,N]),(0,s.useEffect)(()=>{if(!i)return;let e=()=>{y.current||N()},t=()=>{"visible"===document.visibilityState&&e()};return window.addEventListener("focus",e),document.addEventListener("visibilitychange",t),()=>{window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",t)}},[i,N]);let w=m&&!g,S=m&&g;return(0,s.useMemo)(()=>({conversation:l,awaitingCustomer:d,isLoading:w,isRefetching:S,error:x,refetch:N,applyServerState:k}),[l,d,w,S,x,N,k])}(c?.channelId??"",c?.conversationKey??""),z=function(e,t){let n=(void 0)??50,a=(void 0)??eM.Q,i=(0,ec.f)(),l=""!==e&&""!==t,o=l?async()=>{let s=await i.channel.listTimeline((0,ei.f)(r.O,{channelId:e,conversationKey:t,pageSize:n}));return{items:s.entries,nextPageToken:s.nextPageToken}}:null,{data:d,isLoading:c,isRefetching:g,error:u,refetch:m}=(0,eg.f)(o,[e,t,n,i],e$,{refetchInterval:a,refetchOnWindowFocus:!0}),[h,x]=(0,s.useState)(new Map),[f,p]=(0,s.useState)(null),[v,b]=(0,s.useState)(!1),[j,y]=(0,s.useState)(null),N=(0,s.useRef)(0);(0,s.useEffect)(()=>{N.current+=1,x(new Map),p(null),b(!1),y(null)},[e,t,n,i]),(0,s.useEffect)(()=>{d!==e$&&(x(e=>eD(e,d.items)),p(e=>null===e?d.nextPageToken:e))},[d]);let k=(0,s.useCallback)(()=>{if(!l||v||!f)return;let s=N.current;b(!0),y(null),i.channel.listTimeline((0,ei.f)(r.O,{channelId:e,conversationKey:t,pageSize:n,pageToken:f})).then(e=>{N.current===s&&(x(t=>eD(t,e.entries)),p(e.nextPageToken),b(!1))},e=>{N.current===s&&(y((0,ed.f)(e)),b(!1))})},[l,v,f,e,t,n,i]),w=(0,s.useMemo)(()=>Array.from(h.values()).sort($).reverse(),[h]),S=null!==f&&""!==f;return(0,s.useMemo)(()=>({items:w,hasOlder:S,loadOlder:k,isLoadingOlder:v,loadOlderError:j,isLoading:c,isRefetching:g,error:u,refetch:m}),[w,S,k,v,j,c,g,u,m])}(c?.channelId??"",c?.conversationKey??""),A=M.applyServerState,_=T.applyServerState,D=(0,s.useCallback)(e=>{A(e),_(e)},[A,_]),O=function(e){let{channelId:t,conversationKey:n,onConversation:a}=e,i=(0,ec.f)(),l=(0,eK.f)(),{run:o}=l,d=(0,s.useCallback)(()=>(0,ei.f)(r.S,{channelId:t,conversationKey:n}),[t,n]),c=(0,s.useCallback)(()=>o("takeOver",async()=>{let e=await i.channel.takeOver(d());return a?.(e),e}),[o,i,d,a]),g=(0,s.useCallback)(()=>o("handBack",async()=>{let e=await i.channel.handBack(d());return a?.(e),e}),[o,i,d,a]),u=(0,s.useCallback)(()=>o("clearAttention",async()=>{let e=await i.channel.clearAttention(d());return a?.(e),e}),[o,i,d,a]),m=(0,s.useCallback)(e=>o("reply",async()=>{let s=await i.channel.reply((0,ei.f)(r.R,{channelId:t,conversationKey:n,payload:{kind:"text"===e.kind?{case:"text",value:{body:e.body}}:{case:"template",value:{name:e.name,language:e.language,parameters:{...e.parameters}}}}}));if(a)try{a(await i.channel.getConversation((0,ei.f)(r.Q,{channelId:t,conversationKey:n})))}catch{}return s}),[o,i,t,n,a]);return(0,s.useMemo)(()=>({reply:m,takeOver:c,handBack:g,clearAttention:u,pendingCommands:l.submittingKeys,commandErrors:l.errorsByKey,clearErrors:l.clearErrors}),[m,c,g,u,l.submittingKeys,l.errorsByKey,l.clearErrors])}({channelId:c?.channelId??"",conversationKey:c?.conversationKey??"",onConversation:D}),E=(0,s.useMemo)(()=>c?I.find(e=>e.metadata?.id===c.channelId)??null:null,[I,c]),F=(0,l.T)(E?.spec?.type?.case),P=M.conversation?.awaitingReply??!1,B=F&&!F.supportsStaffReplies?`Staff replies aren't available on ${F.label} channels yet — the agent keeps serving this conversation.`:M.awaitingCustomer?"The customer hasn't written yet — staff replies unlock with their first message.":null,q=M.conversation?function(e,t,s){if("whatsapp"!==t)return null;let n=e.lastCustomerMessageAt;return void 0===n?null:s.getTime()-(0,k.S)(n).getTime()>=864e5?"closed":"open"}(M.conversation,F?.id??null,f??new Date):null,[U,W]=(0,s.useState)(!1),H=(F?.supportsMessageTemplates??!1)&&null!==E,Y="closed"===q&&F?`${F.label} closes free-form replies 24 hours after the customer's last message — a reply sent now will probably fail. The window reopens when the customer writes again.${H?" Approved templates still deliver — use the template button beside Send.":""}`:null,Q=(0,s.useCallback)(e=>g({channelId:e.channelId,conversationKey:e.conversationKey}),[g]),[J,X]=(0,s.useState)(null),G=c?`${c.channelId}:${c.conversationKey}`:"",Z=null!==J&&J.selectionKey===G?J.itemId:null;(0,s.useEffect)(()=>{null!==Z&&z.items.some(e=>e.itemId===Z)&&X(null)},[z.items,Z]);let[ee,et]=(0,s.useState)(0),es=(0,s.useCallback)(async e=>{let t=await O.reply(e);if(t.outcome!==i.i.refused&&""!==t.outboundMessageId){var s;X({selectionKey:G,itemId:(s=t.outboundMessageId,`ob:${s}`)}),et(e=>e+1)}return z.refetch(),t},[O.reply,z.refetch,G]),en=M.conversation?R(M.conversation,F?.id??null):c?.conversationKey??"",ea=M.conversation?K(M.conversation,F?.id??null):null,er=E?E.metadata?.name||E.metadata?.slug:null,el=E&&x?x(E):null,eo="function"==typeof h?h({channel:E}):h;return(0,t.jsxs)("div",{"aria-label":"Conversations workbench",className:(0,a.f)("stg:flex stg:min-h-0 stg:flex-1",v),children:[(0,t.jsx)(L,{className:"stg:w-80 stg:shrink-0 stg:border-r stg:border-border",conversations:T.conversations,isLoading:T.isLoading,error:T.error,hasMore:T.hasMore,loadMore:T.loadMore,isLoadingMore:T.isLoadingMore,channels:I,channelFilter:j,onChannelFilterChange:y,filter:w,onFilterChange:S,selected:c,onSelect:Q,now:f}),null===c?(0,t.jsx)("div",{className:"stg:flex stg:min-w-0 stg:flex-1 stg:items-center stg:justify-center stg:p-6",children:(0,t.jsx)(d.f,{variant:"first-use",icon:(0,t.jsx)(n.f,{className:"stg:size-8"}),title:"Select a conversation",description:"Pick a conversation to read its thread, reply as your business, or take over from the agent."})}):(0,t.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:flex-1 stg:flex-col",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:gap-2 stg:border-b stg:border-border stg:px-4 stg:py-2.5",children:[(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsx)("h2",{className:"stg:truncate stg:text-sm stg:font-semibold stg:text-foreground",children:en}),(null!==ea||er)&&(0,t.jsxs)("p",{className:"stg:truncate stg:text-xs stg:text-muted-foreground",children:[ea,null!==ea&&er&&" · ",er&&(el?(0,t.jsx)("a",{href:el,className:"stg:hover:text-foreground stg:hover:underline",children:er}):er)]})]}),eo]}),M.conversation&&(0,t.jsx)(m,{conversation:M.conversation,participation:O,supportsStaffReplies:F?.supportsStaffReplies??!0}),M.conversation&&(0,t.jsx)(N,{conversation:M.conversation,participation:O,unansweredCustomer:P,supportsStaffReplies:F?.supportsStaffReplies??!0,currentIdentityAccountId:u}),(0,t.jsx)(eb,{items:z.items,channelId:c.channelId,conversationKey:c.conversationKey,isLoading:z.isLoading,error:z.error,hasOlder:z.hasOlder,loadOlder:z.loadOlder,isLoadingOlder:z.isLoadingOlder,provider:F?.id??null,now:f,pinToLatestSignal:p?ee:void 0}),(0,t.jsx)(b,{onSend:es,isSending:O.pendingCommands.has("reply")||null!==Z,onOpenTemplatePicker:H&&null===B?()=>W(!0):void 0,disabledReason:B,advisory:Y}),H&&(0,t.jsx)(V,{open:U,onOpenChange:W,channelSlug:E?.metadata?.slug??"",org:E?.metadata?.org??"",onSend:es,isSending:O.pendingCommands.has("reply")||null!==Z})]},`${c.channelId}:${c.conversationKey}`)]})}var eO=e.i(217127),eE=e.i(297629),eF=e.i(42592),eP=e.i(504788),eB=e.i(170255),eq=e.i(312056);let eU=/^\/conversations\/([^/]+)\/([^/]+)\/?$/;e.s(["ConversationsPage",0,function(){let e=(0,eE.x)(),n=(0,eF.b)(),{currentPath:a,navigate:r}=(0,eq.useAppNavigation)(),i=(0,s.useMemo)(()=>{let e;return(e=a.match(eU))?{channelId:decodeURIComponent(e[1]),conversationKey:decodeURIComponent(e[2])}:null},[a]),l=(0,s.useCallback)(e=>{r(e?`/conversations/${encodeURIComponent(e.channelId)}/${encodeURIComponent(e.conversationKey)}`:"/conversations")},[r]);return(0,t.jsx)("div",{className:"flex h-full min-h-0 flex-col",children:(0,t.jsx)(eL,{org:e,selected:i,onSelectionChange:l,headerAccessory:i?({channel:s})=>(0,t.jsx)(eO.f,{resource:{kind:eB.X.channel,kindString:"channel",id:i.channelId,org:e,name:s?.metadata?.name||s?.metadata?.slug},label:"Channel access"}):void 0,channelHref:t=>t.spec?.agentRef&&!(0,eP.Q)(t.spec.agentRef)?`/library/agents/${n(t.spec.agentRef.org||e)}/${t.spec.agentRef.slug}?tab=channels`:null})})}],10284)}]);
|