thursday-agent 0.28.0 → 0.29.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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/thread/file/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
- package/.next/server/app/api/reach/route.js.nft.json +1 -1
- package/.next/server/app/api/routine/route.js.nft.json +1 -1
- package/.next/server/app/api/signins/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/end/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/plan/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +11 -11
- package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page/server-reference-manifest.json +68 -68
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/_0tkzlv1._.js +11 -9
- package/.next/server/chunks/_1_0gehg._.js +11 -9
- package/.next/server/chunks/features_14kex_m._.js +3 -1
- package/.next/server/chunks/features_1xn6un-._.js +3 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1ngprpi._.js → [root-of-the-server]__07mxab7._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0auk-ke._.js +13 -8
- package/.next/server/chunks/ssr/{[root-of-the-server]__11_ws3y._.js → [root-of-the-server]__0bgf9r2._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__1j2x83w._.js → [root-of-the-server]__0nfq6eh._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0utwbb5._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__13xx3dr._.js → [root-of-the-server]__18l3o37._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__1qiq402._.js → [root-of-the-server]__1njrrpi._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__1t38-p_._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__02-kwsg._.js → [root-of-the-server]__1vgf-i-._.js} +2 -2
- package/.next/server/chunks/ssr/{_15zznka._.js → _01l1svp._.js} +2 -2
- package/.next/server/chunks/ssr/{_1e1qe7w._.js → _01m2s2p._.js} +2 -2
- package/.next/server/chunks/ssr/{_0a31ywo._.js → _06o_p34._.js} +2 -2
- package/.next/server/chunks/ssr/{_1nnl9sj._.js → _0ps83ki._.js} +2 -2
- package/.next/server/chunks/ssr/{_1tc_gbg._.js → _0tfponz._.js} +2 -2
- package/.next/server/chunks/ssr/{_0ldpw1q._.js → _0x9aecq._.js} +2 -2
- package/.next/server/chunks/ssr/_128r03g._.js +3 -1
- package/.next/server/chunks/ssr/{_0nans9v._.js → _16qphtt._.js} +2 -2
- package/.next/server/chunks/ssr/_17fa2ns._.js +5 -5
- package/.next/server/chunks/ssr/_1_px1o-._.js +1 -1
- package/.next/server/chunks/ssr/_1e_9qjr._.js +1 -1
- package/.next/server/chunks/ssr/{_19g10gj._.js → _1k5f6cg._.js} +2 -2
- package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
- package/.next/server/chunks/ssr/_1rlfzdj._.js +6 -0
- package/.next/server/chunks/ssr/_1soynbw._.js +2 -2
- package/.next/server/chunks/ssr/{_1qtcl42._.js → _1tu2bpk._.js} +2 -2
- package/.next/server/chunks/ssr/{components_ui_markdown-body_tsx_13aa4_2._.js → components_ui_markdown-body_tsx_1ac61z0._.js} +2 -2
- package/.next/server/chunks/ssr/features_0rrgq_t._.js +1 -1
- package/.next/server/chunks/ssr/features_ai_components_model-picker_tsx_0ucb1y9._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_components_01ye2wp._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_components_bot-setting_tsx_01ajft6._.js +1 -1
- package/.next/server/chunks/ssr/features_bot_components_thread-setting_tsx_0yae7zy._.js +1 -1
- package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +1 -1
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +1 -1
- package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
- package/.next/server/chunks/ssr/features_skills_components_skills-setting_tsx_1wtuuip._.js +1 -1
- package/.next/server/chunks/ssr/features_thursday_components_thursday-setting_tsx_1_6ydrc._.js +1 -1
- package/.next/server/chunks/ssr/{node_modules_107hxun._.js → node_modules_0-8ygub._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1v-un0n._.js → node_modules_012orll._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1uyu3cc._.js → node_modules_02fw1bp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0wa05ay._.js → node_modules_02t-i_c._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_069gsbk._.js → node_modules_03ntdqv._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_150qjpq._.js → node_modules_04e__3n._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0kdc_b7._.js → node_modules_0507yvc._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1xtd9ml._.js → node_modules_06oedzb._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_05fihwh._.js → node_modules_0b8revr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0jrjbfv._.js → node_modules_0dfjba7._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0walxvo._.js → node_modules_0i3xlf-._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0ou72wu._.js → node_modules_0k-r85l._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_19gok-9._.js → node_modules_0kdzuew._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1-vdt7b._.js → node_modules_0mbx677._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1vh6nr-._.js → node_modules_0o5tzyn._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0z8o0-n._.js → node_modules_0pv4uha._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17-v4n4._.js → node_modules_0qrh5xo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0jqaiyb._.js → node_modules_0t4ep0l._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ia9-w8._.js → node_modules_0tx0umb._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_19acw__._.js → node_modules_0ukjqyk._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_050v667._.js → node_modules_0w-dsl0._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0gb732y._.js → node_modules_0x_do0y._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0q8xm6u._.js → node_modules_0x_r46g._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_152bm83._.js → node_modules_0zw6cf-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1misalx._.js → node_modules_122hfb2._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_2045nus._.js → node_modules_13rr6rm._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0skzy7i._.js → node_modules_152kfg-._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0wsygp2._.js → node_modules_15f2sid._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_06b7g0r._.js → node_modules_162v3_m._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1pt7o47._.js → node_modules_16wbh_d._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1x7napn._.js → node_modules_1838s3x._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0zi89fj._.js → node_modules_1_rbg_o._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1jt8w7f._.js → node_modules_1awgatr._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1n5ds4a._.js → node_modules_1g9_m7_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1fa_3_c._.js → node_modules_1hgqn53._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1si826e._.js → node_modules_1j59ehc._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0y_dhgi._.js → node_modules_1jvg854._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_140qn14._.js → node_modules_1k9u0x_._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_06p_ayw._.js → node_modules_1kqsyd_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1jrlct1._.js → node_modules_1kv5-zo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1b45v66._.js → node_modules_1lwcjnq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_13ccsqp._.js → node_modules_1mxdor4._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_04qcy8e._.js → node_modules_1o_q011._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_0ljjw5o._.js → node_modules_1p5__vf._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0jaxs1q._.js → node_modules_1p_tdep._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0xetrwd._.js → node_modules_1qyanf-._.js} +2 -2
- package/.next/server/chunks/ssr/{node_modules_1861d28._.js → node_modules_1rrbt-g._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1k0ygyl._.js → node_modules_1rtx020._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_12409ud._.js → node_modules_1rxd-pq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_uhcxd._.js → node_modules_1sum8sx._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_18uwehg._.js → node_modules_1tqxzmp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ob-uxg._.js → node_modules_1u5xb0j._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0-zy1_5._.js → node_modules_1umqska._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_20llbw8._.js → node_modules_1v065ct._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1o1ud40._.js → node_modules_1w2-as3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0v0l095._.js → node_modules_1ywecve._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_0-moq-r._.js → node_modules_katex_dist_katex_mjs_1l3addz._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_1bf0rdx._.js → node_modules_katex_dist_katex_mjs_1y07ypr._.js} +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +69 -69
- package/.next/static/chunks/{0km5rjf8k0gst.js → 0eepme181mw6f.js} +1 -1
- package/.next/static/chunks/{25tttxgpn-fdl.js → 0rx67d-x-1mmv.js} +2 -2
- package/.next/static/chunks/{2tlvu360xbisx.js → 0wwq57j09skhy.js} +1 -1
- package/.next/static/chunks/0xlr5fmtxb42l.js +4 -0
- package/.next/static/chunks/{3f4aku2z0zdxp.js → 0yp1so_h9mfhf.js} +1 -1
- package/.next/static/chunks/{1vxq-0uxcm5yl.js → 14e3ie8pgxgdb.js} +1 -1
- package/.next/static/chunks/{0_o7o4-itqsz7.js → 1b-3utyj58fn1.js} +1 -1
- package/.next/static/chunks/{1o4z63f94c3r-.js → 1c3tarihhldvd.js} +1 -1
- package/.next/static/chunks/{2njcedjozdqm7.js → 1j2zjawu_2th7.js} +1 -1
- package/.next/static/chunks/{2zvo7b47hhxi5.js → 1l0_q-kf0cbaj.js} +1 -1
- package/.next/static/chunks/{1hwehpk3kk-pc.js → 1la1aeosxvwmz.js} +1 -1
- package/.next/static/chunks/{29fpns41ml485.js → 1n3a07w81jbc-.js} +1 -1
- package/.next/static/chunks/{3ul6m16ba_i3u.js → 227tjgj_th6uf.js} +1 -1
- package/.next/static/chunks/{1zwj72bhapocl.js → 29r_coa80ubpw.js} +1 -1
- package/.next/static/chunks/{06ymo4xf31ggh.js → 2adz3q18q052w.js} +1 -1
- package/.next/static/chunks/{1ki7x6-ehua0u.js → 2b08w7t0hc1fp.js} +1 -1
- package/.next/static/chunks/{0i4df8t5_6a-g.js → 2gl-fo_rmmmq0.js} +1 -1
- package/.next/static/chunks/{1e3karuzhh7ik.js → 2h5rvagz5wdhy.js} +1 -1
- package/.next/static/chunks/2jo02hrgs_zqm.js +1 -0
- package/.next/static/chunks/{3ymtwwxmbactm.js → 2voeol7_1tit_.js} +1 -1
- package/.next/static/chunks/{277zw6dp5yzks.js → 36hfkcfa5a6be.js} +5 -5
- package/.next/static/chunks/{17ow2tmvy65in.js → 3a98r51s8rjtt.js} +1 -1
- package/.next/static/chunks/{2jn9y4sol_low.js → 3hl237797_a8e.js} +2 -2
- package/.next/static/chunks/3sjv-rshh-98q.js +1 -0
- package/.next/static/chunks/{1pxe_gpjic1_h.js → 3tejx8kiotsia.js} +1 -1
- package/.next/static/chunks/{1vwqvgit8a1vm.js → 42xlx1decmn82.js} +1 -1
- package/guide/calls.md +3 -1
- package/package.json +1 -1
- package/.next/server/chunks/ssr/_131wmbl._.js +0 -6
- package/.next/static/chunks/0lc_77uhatqgd.js +0 -1
- package/.next/static/chunks/1gca5ia-a-3e2.js +0 -1
- package/.next/static/chunks/3qhhs3dk6cdbq.js +0 -4
- /package/.next/static/{pekZvsOZ3_8_ohluwgZtY → mTdCVAiiVKCutbZcekyHn}/_buildManifest.js +0 -0
- /package/.next/static/{pekZvsOZ3_8_ohluwgZtY → mTdCVAiiVKCutbZcekyHn}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{pekZvsOZ3_8_ohluwgZtY → mTdCVAiiVKCutbZcekyHn}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,107941,e=>{"use strict";var t=e.i(843476),n=e.i(24071),i=e.i(867927),s=e.i(482022),r=e.i(829600),a=e.i(456420);let o={name:"file-code-corner",size:24,node:[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],aliases:["file-code-2"]};o.node;let l=(0,a.default)(o);var d=e.i(905015),c=e.i(226091),u=e.i(726067),m=e.i(569644),x=e.i(815170),f=e.i(51921);let h={name:"sheet",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]};h.node;let p=(0,a.default)(h);var g=e.i(759659),v=e.i(438583),y=e.i(271645),k=e.i(798120),j=e.i(167881),b=e.i(917162),S=e.i(41533),w=e.i(895836),N=e.i(621285),A=e.i(659198),F=e.i(95187);let C=(0,F.createServerReference)("7f89e7518201a26fc0af61b33ef4349819a74bc1c8",F.callServer,void 0,F.findSourceMapURL,"emptyScratchAction");var P=e.i(796312),$=e.i(245629),R=e.i(609856),z=e.i(283653),E=e.i(647163);let T={markdown:c.FileText,csv:p,json:d.FileJson,text:c.FileText,frame:l,image:x.Image,audio:f.Music,video:v.Video,none:r.File};function M({label:e,rows:n,children:i}){return 0===n.length?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"px-3 pt-3 pb-1 font-mono text-[10px] text-muted-foreground",children:e}),i]})}function W({entry:e,active:n,onPick:s}){let r="dir"===e.kind?u.Folder:T[e.view];return(0,t.jsxs)("button",{type:"button",onClick:s,title:"file"===e.kind?`${e.name} \xb7 ${(0,$.shortAgo)(e.at)}`:e.name,className:(0,E.cn)("mx-2 flex items-center gap-2 rounded-md px-2 py-1.5 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",n?(0,E.cn)(w.PICKED_ROW,"font-medium"):"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,t.jsx)(r,{className:"size-3.5 shrink-0 opacity-70"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),"file"===e.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:(0,E.formatBytes)(e.bytes)}),(0,t.jsx)("span",{className:"w-3.5 shrink-0"})]}):(0,t.jsx)(i.ChevronRight,{className:"size-3.5 shrink-0 text-muted-foreground/50"})]})}function O({empty:e}){return(0,t.jsx)("div",{className:"space-y-4 p-8",children:e?(0,t.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:["Nothing here yet. What a bot writes during a call lands in"," ",(0,t.jsxs)("span",{className:"font-mono text-[13px] text-foreground",children:[S.PATHS.artifacts,"/"]})," ","— a page, a table, a picture — and shows up here to open."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"Pick a file on the left."}),(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:"Only what the app can open is listed — a page, a table, a picture, a note. Installed packages and tool leftovers are left out, and no folder is measured, so a folder opens as fast as it lists. Reveal folder, at the foot, opens everything else."})]})})}function K({file:e,onGone:n}){let i=e.path,[r]=(0,R.useServerAction)(P.revealFileAction),[a,o]=(0,R.useServerAction)(A.deleteWorkspaceFileAction,{okMessage:"File deleted",onOk:()=>{(0,z.revalidate)(k.queryKey.workspace),n()}}),l=async()=>{await b.notify.confirm({title:`Delete ${i.split("/").pop()}?`,description:"It is deleted from disk for good.",okText:"Delete",destructive:!0})&&a(i)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-b border-border/60 px-6 py-2",children:[(0,t.jsx)(B,{path:i}),(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:[(0,E.formatBytes)(e.bytes)," · ",(0,$.shortAgo)(e.at)]}),(0,t.jsx)("a",{href:k.queryKey.fileView(i),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:"grid size-7 shrink-0 place-items-center rounded-md text-muted-foreground outline-none transition-colors hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(s.ExternalLink,{className:"size-4"})}),(0,t.jsx)(j.Button,{size:"icon-sm",variant:"ghost","aria-label":"Reveal in the file manager",className:"text-muted-foreground",onClick:()=>r(i),children:(0,t.jsx)(m.FolderOpen,{})}),(0,t.jsx)(j.Button,{size:"icon-sm",variant:"ghost","aria-label":"Delete",loading:o,className:"text-muted-foreground",onClick:l,children:(0,t.jsx)(g.Trash2,{})})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:(0,t.jsx)(N.FilePreview,{path:i,bytes:e.bytes})})]})}function B({path:e}){let n=["workspace",...e.split("/").filter(Boolean)];return(0,t.jsx)("span",{className:"flex min-w-0 flex-1 items-center gap-1 font-mono text-[11px] text-muted-foreground",children:n.map((e,s)=>(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[s>0&&(0,t.jsx)(i.ChevronRight,{className:"size-3 shrink-0 opacity-50"}),(0,t.jsx)("span",{className:(0,E.cn)("truncate",s===n.length-1&&"text-foreground"),children:e})]},`${s}-${e}`))})}e.s(["WorkspaceSetting",0,function(){let[e,i]=(0,y.useState)(""),[s,r]=(0,y.useState)(S.WORKSPACE_VIEW.rows),[a,o]=(0,y.useState)(null),[l,d]=(0,y.useState)(""),{data:c,isLoading:u,error:x}=(0,z.useServerRoute)(k.queryKey.workspaceFolder(e,s),{keepPreviousData:!0}),f=e=>{i(e),r(S.WORKSPACE_VIEW.rows)},[h,p]=(0,R.useServerAction)(C,{okMessage:"Scratch emptied",onOk:()=>(0,z.revalidate)(k.queryKey.workspace)}),[g]=(0,R.useServerAction)(P.revealFileAction),v=async()=>{await b.notify.confirm({title:"Empty scratch?",description:`Everything under ${S.PATHS.scratch}/ is deleted for good. ${S.PATHS.artifacts}/ and ${S.PATHS.projects}/ are untouched.`,okText:"Empty",destructive:!0})&&h()};if(u)return(0,t.jsx)(w.SettingPanesSkeleton,{});if(x)return(0,t.jsx)(w.SettingError,{message:x.message});let N=c?.entries??[],A=c?.total??0,F=l.trim().toLowerCase(),$=F?N.filter(e=>e.name.toLowerCase().includes(F)):N,E=$.filter(e=>"dir"===e.kind),T=$.filter(e=>"file"===e.kind),B=""!==e||N.some(e=>"dir"===e.kind&&e.name===S.PATHS.scratch),V=N.find(e=>"file"===e.kind&&e.path===a?.path)??a;return(0,t.jsx)(w.SettingPanes,{footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.SettingRailNote,{children:(0,t.jsxs)("span",{className:"font-mono",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:`${S.PATHS.workspace}${e?`/${e}`:""}`}),` \xb7 ${function(e,t){let n=e.filter(e=>"dir"===e.kind).length,i=e.length-n,s=[n&&`${n} ${1===n?"folder":"folders"}`,i&&`${i} ${1===i?"file":"files"}`].filter(Boolean);if(!s.length)return"empty";let r=s.join(" · ");return t>e.length?`${r} of ${t.toLocaleString("en")}`:r}(N,A)}`]})}),(0,t.jsxs)(j.Button,{variant:"outline",size:"sm",onClick:()=>g(e||"."),children:[(0,t.jsx)(m.FolderOpen,{}),"Reveal folder"]}),B&&(0,t.jsx)(j.Button,{variant:"outline",size:"sm",loading:p,onClick:v,className:"text-destructive hover:text-destructive",children:"Empty scratch"})]}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsx)(w.SettingFilter,{value:l,onChange:d,placeholder:"Filter this folder",className:"mx-2 mb-1.5 w-auto"}),e&&(0,t.jsxs)("button",{type:"button",onClick:()=>f(e.split("/").slice(0,-1).join("/")),className:"mx-2 mb-1 flex items-center gap-1 rounded-md px-2 py-1 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)(n.ChevronLeft,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.split("/").slice(0,-1).pop()??"workspace"})]}),0===$.length?(0,t.jsx)("p",{className:"px-4 py-3 text-xs text-muted-foreground",children:F?"Nothing matches":"Empty folder"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(M,{label:"folders",rows:E,children:E.map(e=>(0,t.jsx)(W,{entry:e,onPick:()=>f(e.path)},e.path))}),(0,t.jsx)(M,{label:"files",rows:T,children:T.map(e=>(0,t.jsx)(W,{entry:e,active:e.path===a?.path,onPick:()=>"file"===e.kind&&o(e)},e.path))})]}),A>N.length&&(0,t.jsx)("button",{type:"button",onClick:()=>r(s+S.WORKSPACE_VIEW.rows),className:"mx-2 mt-2 rounded-md px-2 py-1.5 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:`Show ${Math.min(S.WORKSPACE_VIEW.rows,A-N.length)} more of ${A.toLocaleString("en")}`})]}),right:V?.kind==="file"?(0,t.jsx)(K,{file:V,onGone:()=>o(null)},V.path):(0,t.jsx)(O,{empty:!e&&0===N.length})})}],107941)},659198,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7f43d014e833b14ed7130bfbf36b5d04acccac3324",t.callServer,void 0,t.findSourceMapURL,"deleteWorkspaceFileAction");e.s(["deleteWorkspaceFileAction",0,n])},726067,e=>{"use strict";var t=e.i(456420);let n={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};n.node;let i=(0,t.default)(n);e.s(["Folder",0,i],726067)},759659,e=>{"use strict";var t=e.i(456420);let n={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};n.node;let i=(0,t.default)(n);e.s(["Trash2",0,i],759659)}]);
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,496336,41464,e=>{"use strict";var t=e.i(843476),n=e.i(716327),r=e.i(271645),i=e.i(647163);e.s(["FoldedText",0,function({text:e,subject:a,clamp:s="line-clamp-3",tall:l="max-h-40",className:o}){let[d,c]=(0,r.useState)(!1),[u,f]=(0,r.useState)(!1),p=(0,r.useRef)(null),[m,h]=(0,r.useState)(e);return m!==e&&(h(e),c(!1)),(0,r.useEffect)(()=>{let e=p.current;e&&!d&&f(e.scrollHeight>e.clientHeight+1)},[d,e]),(0,t.jsxs)("div",{className:(0,i.cn)("flex items-start gap-1",o),children:[(0,t.jsx)("p",{ref:p,className:(0,i.cn)("min-w-0 flex-1 text-[13px] leading-snug break-keep wrap-anywhere",d?(0,i.cn)(l,"overflow-y-auto scrollbar-none"):s),children:e}),(u||d)&&(0,t.jsx)("button",{type:"button",onClick:()=>c(e=>!e),"aria-label":d?`Fold the ${a}`:`Read the whole ${a}`,className:"shrink-0 rounded-md p-0.5 opacity-60 outline-none transition-opacity hover:opacity-100 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(n.ChevronDown,{className:(0,i.cn)("size-3.5",d&&"rotate-180")})})]})}],496336);var a=e.i(95187);let s=(0,a.createServerReference)("7fce538d4b90bf69139fa1d065dedd37485077f3d8",a.callServer,void 0,a.findSourceMapURL,"answerThreadAction");e.s(["answerThreadAction",0,s],41464)},947627,e=>{"use strict";var t=e.i(843476),n=e.i(647163);e.s(["Table",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,n.cn)("w-full caption-bottom text-sm",e),...r})})},"TableBody",0,function({className:e,...r}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,n.cn)("[&_tr:last-child]:border-0",e),...r})},"TableCell",0,function({className:e,...r}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,n.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0",e),...r})},"TableHead",0,function({className:e,...r}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,n.cn)("h-9 px-2 text-left align-middle font-mono text-[11px] font-normal tracking-[0.1em] whitespace-nowrap text-muted-foreground uppercase [&:has([role=checkbox])]:pr-0",e),...r})},"TableHeader",0,function({className:e,...r}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,n.cn)("[&_tr]:border-b",e),...r})},"TableRow",0,function({className:e,...r}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,n.cn)("border-b border-border/60 transition-colors data-[state=selected]:bg-muted hover:bg-muted/40",e),...r})}])},853483,e=>{"use strict";var t=e.i(843476),n=e.i(867927),r=e.i(271645),i=e.i(511769),a=e.i(798120),s=e.i(167881),l=e.i(660302),o=e.i(671428),d=e.i(41533),c=e.i(698410),u=e.i(358182),f=e.i(399512),p=e.i(978411),m=e.i(989409),h=e.i(609856),g=e.i(283653),x=e.i(647163);let b="rounded-2xl bg-background py-1.5 pr-1.5 pl-3.5 ring-1 ring-border/80 transition-shadow focus-within:ring-ring/60",y="px-1 text-[12.5px] leading-5 text-muted-foreground break-keep";function v(e,t){return e?.find(e=>e.name===t)??{name:t}}function w({path:e,note:n}){let{data:r}=(0,g.useServerRoute)(a.queryKey.bot),[i,s]=(0,h.useServerAction)(u.tellFileThreadAction,{onOk:()=>(0,g.revalidate)(a.queryKey.threads)}),o=v(r,n.to),d="running"===n.status,c=async t=>{try{let r=await i(e,t,n.thread.id);return p.screenActs.announce({kind:"answered",id:r.id,label:r.label,answer:`About ${e}: ${t}`,recipient:r.to}),!0}catch{return!1}};return(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1.5",children:[n.paused?(0,t.jsx)("p",{className:(0,x.cn)(y,"line-clamp-2"),children:`Paused: ${n.paused} Sending this picks it up again.`}):d?(0,t.jsx)("p",{className:y,children:(0,t.jsx)(l.ShinyText,{text:`${o.name} is working \xb7 it reads this before its next step`})}):null,(0,t.jsx)(f.DraftComposer,{threadId:n.thread.id,recipient:o.name,draftKey:`file:${e}`,send:c,busy:s,claimsDrops:!1,placeholder:d?`What's off? ${o.name} reads this before its next step`:`Anything to change here? ${o.name} picks the thread back up`,label:`Note to ${o.name} about this file`,leading:(0,t.jsxs)("span",{className:"mt-1 inline-flex h-5 shrink-0 items-center gap-1 self-start rounded-full bg-muted pr-2 pl-[3px] text-[12px] leading-none font-medium",children:[(0,t.jsx)("span",{className:"pl-1 text-muted-foreground",children:"To"}),(0,t.jsx)(f.Face,{bot:o,size:14}),(0,t.jsx)("span",{className:"max-w-32 truncate",children:o.name})]}),className:b}),(0,t.jsx)("p",{className:"px-1 font-mono text-[11px] text-muted-foreground",children:`${o.name} reads it with this file named \xb7 the answer shows in the thread`})]})}function j({path:e,suggested:n,lead:i,onThread:s}){let{data:l}=(0,g.useServerRoute)(a.queryKey.bot),[d,u]=(0,r.useState)(null),[p,m]=(0,h.useServerAction)(c.handFileAction,{onOk:e=>{(0,g.revalidate)(a.queryKey.threads),s(e.id)}});if(!l)return(0,t.jsx)(o.Skeleton,{className:"h-10 w-full rounded-2xl"});let x=l.filter(e=>!e.disabled),v=x.find(e=>e.name===(d??n))??x[0]??null;if(!v)return(0,t.jsx)("p",{className:y,children:"No bot is switched on to hand it to. Turn one on in Settings › Bots."});let w=async t=>{try{return await p(v.name,e,t),!0}catch{return!1}};return(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1.5",children:[(0,t.jsx)("p",{className:y,children:i}),(0,t.jsx)(f.DraftComposer,{threadId:`file:${e}`,recipient:v.name,send:w,busy:m,claimsDrops:!1,placeholder:`Hand this file to ${v.name} as a new job`,label:`New job for ${v.name} with this file`,leading:(0,t.jsx)(f.RecipientPicker,{current:v,bots:x,disabled:m,onPick:u}),className:b})]})}e.s(["FileNoteBar",0,function({path:e,note:n,failure:i,onThread:a,onOpenThread:l}){let[d,c]=(0,r.useState)(!1);if(i)return(0,t.jsx)("p",{className:"px-1 text-xs text-destructive",children:`Could not tell where a note about this file would go: ${(0,x.errorToString)(i)}`});if(!n)return(0,t.jsx)(o.Skeleton,{className:"h-10 w-full rounded-2xl"});switch(n.state){case"gone":return(0,t.jsx)("p",{className:y,children:"This file is no longer on disk."});case"asking":return(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl py-2 pr-2 pl-3.5 ring-1 ring-waiting/40",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)("span",{className:(0,x.cn)("text-[12.5px] font-medium",x.WAITING_INK),children:`${n.bot} is waiting on your answer`}),(0,t.jsx)("span",{className:"line-clamp-2 text-[13px] leading-snug break-keep wrap-anywhere",children:n.question})]}),(0,t.jsx)(s.Button,{size:"sm",className:"shrink-0 rounded-full",onClick:()=>l(n.thread.id),children:"Answer in the thread"})]});case"refused":if(d)return(0,t.jsx)(j,{path:e,suggested:null,lead:"What you send starts a new job, with this file.",onThread:a});return(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl bg-muted/60 py-2 pr-2 pl-3.5",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 text-[13px] leading-snug break-keep wrap-anywhere",children:n.why}),"deleted"===n.reason?(0,t.jsx)(s.Button,{size:"sm",variant:"outline",className:"shrink-0 rounded-full",onClick:()=>c(!0),children:"Hand to another bot"}):(0,t.jsx)(s.Button,{size:"sm",variant:"outline",className:"shrink-0 rounded-full",onClick:()=>(0,m.openSettings)("keys"),children:"Open Settings"})]});case"none":return(0,t.jsx)(j,{path:e,suggested:n.bot,lead:`${n.threadDeleted?"This file's thread was deleted.":"No thread's report names this file."} What you send starts a new one.`,onThread:a});case"open":return(0,t.jsx)(w,{path:e,note:n})}},"FileThreadChip",0,function({note:e,onOpen:r}){let{data:i}=(0,g.useServerRoute)(a.queryKey.bot);if(!e||!("thread"in e))return null;let{thread:s}=e;return(0,t.jsxs)("button",{type:"button",onClick:()=>r(s.id),"aria-label":`Open the thread ${s.label}`,className:"inline-flex h-6.5 max-w-56 shrink-0 items-center gap-1.5 rounded-full bg-muted pr-2 pl-1.5 text-[12px] font-medium outline-none transition-colors hover:bg-muted-foreground/15 focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(f.Face,{bot:v(i,s.bot),size:14}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:s.label}),(0,t.jsx)(n.ChevronRight,{className:"size-3 shrink-0 text-muted-foreground"})]})},"useFileNote",0,function(e,t){let[n,s]=(0,r.useState)(t);(0,r.useEffect)(()=>s(t),[e,t]);let l=null!==e&&(e.startsWith(`${d.PATHS.artifacts}/`)||null!==n),{data:o,error:c}=(0,g.useServerRoute)(l&&a.queryKey.fileNote(e,n),{onError:()=>void 0});return(0,i.useAppEvent)({files:()=>void(0,g.revalidate)(a.queryKey.fileNotes)}),{filed:l,file:o?.file??null,note:o?.note,failure:c,follow:s}}])},399512,709190,e=>{"use strict";var t=e.i(843476),n=e.i(96892),r=e.i(716327),i=e.i(24071),a=e.i(867927),s=e.i(931619),l=e.i(919191),o=e.i(632781),d=e.i(64801),c=e.i(250832),u=e.i(929272),f=e.i(263676),p=e.i(271645),m=e.i(798120),h=e.i(167881),g=e.i(463415),x=e.i(496336),b=e.i(683408),y=e.i(660302),v=e.i(184762),w=e.i(265402),j=e.i(41464),k=e.i(443497),N=e.i(652669),S=e.i(451888),C=e.i(635963),M=e.i(978411),_=e.i(989409),R=e.i(702377),O=e.i(6799),z=e.i(41533),E=e.i(83928),A=e.i(95187);let T=(0,A.createServerReference)("7f41b4b309283e69967bf5fefa6d2084b317926a86",A.callServer,void 0,A.findSourceMapURL,"giveFilesAction");var P=e.i(609856),$=e.i(647163);let I=[],F=()=>I,D=()=>()=>{};function L(e){return e.size<=z.GIVEN_FILES.maxBytes||(O.toast.add({type:"error",title:`${e.name} is larger than ${Math.round(z.GIVEN_FILES.maxBytes/1024/1024)} MB.`}),!1)}function B(e){let t=(0,p.useRef)(e?.onKept);t.current=e?.onKept;let n=e?.held,[r,i]=(0,p.useState)([]),a=(0,p.useSyncExternalStore)(n?.subscribe??D,n?.read??F,F),s=n?a:r,l=(0,p.useCallback)(e=>{n?n.write(e(n.read())):i(e)},[n]),[o]=(0,P.useServerAction)(T),d=(0,p.useCallback)(async e=>{let n=e.filter(L),r=z.GIVEN_FILES.perMessage-s.length;n.length>r&&O.toast.add({type:"error",title:`At most ${z.GIVEN_FILES.perMessage} files at a time.`});let i=n.slice(0,Math.max(0,r));if(!i.length)return[];let a=i.map(e=>({key:crypto.randomUUID(),name:e.name,bytes:e.size,path:null}));l(e=>[...e,...a]);let d=new FormData;for(let e of i)d.append("file",e);try{let e=await o(d),n=t.current?.(e);return l(t=>t.map(t=>{let r=a.findIndex(e=>e.key===t.key);return r<0?t:{...t,path:e[r]??null,note:n}})),e}catch{return l(e=>e.filter(e=>!a.some(t=>t.key===e.key))),[]}},[s.length,o,l]);return{files:s,take:d,keepApart:(0,p.useCallback)(async e=>{if(!L(e))return null;let t=new FormData;t.append("file",e);try{return(await o(t))[0]??null}catch{return null}},[o]),remove:e=>l(t=>t.filter(t=>t.key!==e)),clear:()=>l(()=>[]),arriving:s.some(e=>null===e.path),paths:s.flatMap(e=>e.path??[]),withPaths:e=>[e.trim(),...s.flatMap(e=>e.path??[])].filter(Boolean).join("\n")}}function K({files:e,onRemove:n,dense:r=!1,children:i,className:a}){let s=r?"size-8 rounded-lg":"size-10 rounded-[9px]";return(0,t.jsxs)("div",{className:(0,$.cn)("flex flex-wrap gap-1.5",a),children:[e.map(e=>(0,t.jsxs)("span",{className:(0,$.cn)("flex max-w-64 items-center bg-muted/70",r?"h-10.5 gap-2 rounded-xl py-1 pr-1.5 pl-1":"h-13 gap-2.5 rounded-[14px] py-1.5 pr-2 pl-1.5"),children:[e.path?(0,t.jsx)(E.FileThumb,{path:e.path,bytes:e.bytes,className:(0,$.cn)("shrink-0 overflow-hidden ring-1 ring-foreground/6",s)}):(0,t.jsx)("span",{className:(0,$.cn)("grid shrink-0 place-items-center bg-background text-muted-foreground ring-1 ring-foreground/6",s),children:(0,t.jsx)(o.Loader2,{className:"size-3.5 animate-spin"})}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,t.jsx)("span",{className:(0,$.cn)("truncate",r?"text-xs leading-4":"text-[12.5px] leading-4.5"),children:e.name}),(0,t.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[U(e.bytes),e.note&&` \xb7 ${e.note}`]})]}),(0,t.jsx)("button",{type:"button","aria-label":`Take ${e.name} out`,onClick:()=>n(e.key),className:"grid size-5 shrink-0 place-items-center rounded-full text-muted-foreground outline-none hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,t.jsx)(f.X,{className:"size-3.5"})})]},e.key)),i]})}let q=null,W={claim:e=>(q=e,()=>{q===e&&(q=null)}),offer:(e,t)=>!!q&&!!e?.closest?.("[data-room]")&&(q(t),!0)},U=e=>e<1048576?`${Math.max(1,Math.round(e/1024))} KB`:`${(e/1024/1024).toFixed(1)} MB`;e.s(["GivenFiles",0,K,"roomDrop",0,W,"useGivenFiles",0,B],709190);var H=e.i(319841),V=e.i(283653);function G({className:e,children:n}){return(0,t.jsx)("div",{className:(0,$.cn)("flex min-w-0 flex-col gap-2.5 rounded-[18px] bg-muted py-2 pr-2 pl-3.5",e),children:n})}function J({bot:e,word:n,children:r}){return(0,t.jsxs)("div",{className:"flex min-h-7 min-w-0 items-center gap-1.5",children:[(0,t.jsx)("span",{title:e.name,className:"shrink-0 leading-none",children:(0,t.jsx)(Z,{bot:e,size:16})}),(0,t.jsx)("span",{className:(0,$.cn)("truncate text-[12px] leading-4 font-medium",$.WAITING_INK),children:n}),r]})}function X({options:e,picked:n,busy:r,onChoose:i}){return(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:e.map(e=>(0,t.jsxs)(h.Button,{type:"button",size:"sm",variant:"ghost",loading:n===e,disabled:r,onClick:()=>i(e),"data-continue":e===S.THREAD_CONTINUE?"":void 0,className:"h-7 gap-1.5 rounded-full bg-background px-3 text-[12.5px] hover:bg-background/60 dark:hover:bg-background/60",children:[e===S.THREAD_CONTINUE&&n!==e&&(0,t.jsx)(s.ChevronsRight,{className:"size-3.5 text-muted-foreground"}),e]},e))})}function Y({threadId:e,recipient:r,draftKey:i,send:a,busy:s,placeholder:l,label:c,autoFocus:u=!1,onEscape:f,leading:m,trailing:g,className:x,claimsDrops:b=!0}){let[y,w]=(0,p.useState)(()=>M.threadDrafts.get(e,r,i)),[j,k]=(0,p.useState)(!1),N=t=>{w(t),M.threadDrafts.set(e,r,t,i)},S=B({held:(0,p.useMemo)(()=>M.threadDrafts.files(e,r,i),[e,r,i])}),C=(0,p.useRef)(null),{take:_}=S;(0,p.useEffect)(()=>b?W.claim(e=>void _(e)):void 0,[_,b]);let R=!!y.trim()&&!s&&!S.arriving,O=async()=>{R&&(k(!0),await a(S.withPaths(y))&&(N(""),S.clear()),k(!1))};return(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),O()},className:(0,$.cn)("flex min-w-0 flex-wrap items-end gap-1",x),children:[S.files.length>0&&(0,t.jsx)(K,{dense:!0,files:S.files,onRemove:S.remove,className:"w-full pb-1"}),m,(0,t.jsx)(v.Textarea,{value:y,rows:1,readOnly:s,"aria-busy":s,autoFocus:u,onChange:e=>N(e.target.value),onPaste:e=>{let t=[...e.clipboardData.files];t.length&&(e.preventDefault(),_(t))},onKeyDown:e=>{let t=(0,H.composing)(e);if("Escape"===e.key&&f&&!t){e.preventDefault(),f();return}"Enter"!==e.key||e.shiftKey||t||(e.preventDefault(),O())},placeholder:l,"aria-label":c,className:"max-h-32 min-h-0 min-w-0 flex-1 resize-none border-0 bg-transparent px-0 py-1 text-[13px] leading-5 shadow-none focus-visible:ring-0 dark:bg-transparent"}),(0,t.jsx)("input",{ref:C,type:"file",multiple:!0,hidden:!0,onChange:e=>{_([...e.target.files??[]]),e.target.value=""}}),(0,t.jsx)(h.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:s,"aria-label":"Add files",onClick:()=>C.current?.click(),className:"rounded-full text-muted-foreground",children:(0,t.jsx)(d.Paperclip,{})}),g,(0,t.jsx)(h.Button,{type:"submit",size:"icon-sm",variant:R?"default":"ghost",disabled:!R,"aria-label":"Send",className:"rounded-full",children:j?(0,t.jsx)(o.Loader2,{className:"animate-spin"}):(0,t.jsx)(n.ArrowUp,{})})]})}function Q({current:e,bots:n,disabled:i,onPick:a}){return(0,t.jsxs)(g.DropdownMenu,{children:[(0,t.jsxs)(g.DropdownMenuTrigger,{render:(0,t.jsx)("button",{type:"button",disabled:i,"aria-label":`Message ${e.name}; choose another bot`,className:"mt-1 inline-flex h-5 shrink-0 items-center gap-1 self-start rounded-full bg-muted pr-1.5 pl-[3px] text-[12px] leading-none font-medium outline-none transition-colors hover:bg-muted-foreground/15 focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50"}),children:[(0,t.jsx)("span",{className:"pl-1 text-muted-foreground",children:"To"}),(0,t.jsx)(Z,{bot:e,size:14}),(0,t.jsx)("span",{className:"max-w-32 truncate",children:e.name}),(0,t.jsx)(r.ChevronDown,{className:"size-3 shrink-0 text-muted-foreground"})]}),(0,t.jsx)(g.DropdownMenuContent,{align:"start",children:(0,t.jsx)(g.DropdownMenuGroup,{children:n.map(e=>(0,t.jsxs)(g.DropdownMenuItem,{onClick:()=>a(e.name),children:[(0,t.jsx)(Z,{bot:e,size:16}),e.name]},e.name))})})]})}function Z({bot:e,size:n}){return(0,t.jsx)(C.BotMark,{size:n,seed:e.name,color:e.icon?.color,shape:e.icon?.shape,outline:e.icon?.outline,paint:e.icon?.paint,notify:!1,className:"shrink-0"})}function ee(){let[e,t]=(0,P.useServerAction)(j.answerThreadAction,{onOk:()=>(0,V.revalidate)(m.queryKey.threads)});return[async(t,n,r,i)=>{let a=n.trim();if(!a)return!1;try{let n=await e(t.id,a,r,i);return M.screenActs.announce({kind:"answered",id:n.id,label:n.label,answer:a,recipient:r,replyTo:i}),!0}catch{return!1}},t]}e.s(["DraftComposer",0,Y,"Face",0,Z,"RecipientPicker",0,Q,"ThreadReply",0,function({thread:e,status:n,faces:r=[],to:s=null,className:d,claimsDrops:g=!0}){let[v,j]=(0,p.useState)(),[C,O]=(0,p.useState)(()=>M.threadDrafts.recipient(e.id)??e.bot),[z,E]=(0,p.useState)(!1),[A,T]=(0,p.useState)(null),[I,F]=(0,p.useState)({id:e.id,bot:e.bot});(I.id!==e.id||I.bot!==e.bot)&&(F({id:e.id,bot:e.bot}),O(M.threadDrafts.recipient(e.id)??e.bot),j(void 0),E(!1)),(0,p.useEffect)(()=>{s&&M.threadDrafts.tab(e.id)!==s&&(M.threadDrafts.follow(e.id,s),O(s))},[e.id,s]);let D=e.room.participants,L=e.room.questions,B=Math.max(0,L.findIndex(e=>e.id===v)),K=L[B],q="waiting"===n?e.ask:null,W=(0,S.isAppStop)(q),U=K?.bot??(D.some(e=>e.bot===C)?C:e.bot),H=K?.id,[Z,et]=ee(),[en,er]=(0,P.useServerAction)(k.cancelThreadAction,{onOk:e=>{(0,V.revalidate)(m.queryKey.threads),M.screenActs.announce({kind:"stopped",id:e.id,label:e.label})}}),ei=et||er,ea=e.room.deliveries.filter(e=>!e.delivered),[es,el]=(0,P.useServerAction)(N.withdrawStepInAction,{onOk:()=>(0,V.revalidate)(m.queryKey.threads)}),eo=ea.map(e=>`${e.bot}: ${e.text}`).join(" · "),ed=D.filter(e=>"running"===e.state).map(e=>e.bot),ec=ed.join(", ")||e.bot,eu="running"===n&&D.some(e=>e.bot===U&&("running"===e.state||"queued"===e.state)),ef="running"===n&&!eu,ep=U!==e.bot,em=e=>r.find(t=>t.name===e)??{name:e},eh=async t=>{if(ei)return!1;let n=await Z(e,t,U,H);return n&&eu&&E(!1),n},eg=async e=>{T(e),await eh(e),T(null)},ex=(r=!1)=>"running"===n||"waiting"===n?(0,t.jsxs)(h.Button,{type:"button",size:"sm",variant:"ghost",loading:er,disabled:ei,onClick:()=>en(e.id),"aria-label":"Stop this thread",className:(0,$.cn)("h-7 shrink-0 gap-1.5 rounded-full px-2.5 text-[12px]",r&&"bg-background px-3 hover:bg-background/60 dark:hover:bg-background/60"),children:[!er&&(0,t.jsx)(u.Square,{className:"size-2.5 fill-current"}),"Stop"]}):null;if(K){let n=K.options??[],r=K.text;return(0,t.jsxs)(G,{className:d,children:[(0,t.jsx)(J,{bot:em(U),word:"Question",children:(0,t.jsxs)("span",{className:"ml-auto flex shrink-0 items-center gap-1.5",children:[L.length>1&&(0,t.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-label":"Previous question",disabled:ei||0===B,onClick:()=>j(L[B-1].id),children:(0,t.jsx)(i.ChevronLeft,{})}),(0,t.jsxs)("span",{className:"font-mono text-[10px] text-muted-foreground tabular-nums","aria-live":"polite",children:[B+1," / ",L.length]}),(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-label":"Next question",disabled:ei||B===L.length-1,onClick:()=>j(L[B+1].id),children:(0,t.jsx)(a.ChevronRight,{})})]}),ex(!0)]})}),r&&(0,t.jsx)("div",{className:"max-h-[min(14rem,30vh)] min-w-0 overflow-y-auto overscroll-contain pr-1.5",children:(0,t.jsx)(b.Markdown,{className:"min-w-0 text-[13px] leading-snug wrap-anywhere break-keep [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",children:r})}),n.length>0&&(0,t.jsx)(X,{options:n,picked:A,busy:ei,onChoose:eg}),(0,t.jsx)(R.SignInAsk,{bot:U,onAllowed:eh}),(0,t.jsx)(Y,{claimsDrops:g,threadId:e.id,recipient:U,draftKey:K.id,send:eh,busy:ei,placeholder:n.length?"Or write your own answer…":"Your answer…",label:`Answer for ${U}`},JSON.stringify([e.id,U,K.id]))]})}return W?(0,t.jsxs)(G,{className:d,children:[(0,t.jsx)(J,{bot:em(e.bot),word:"Paused",children:(0,t.jsx)("span",{className:"ml-auto flex shrink-0",children:ex(!0)})}),q?.refused&&(0,t.jsxs)("p",{className:"text-[13px] leading-5 text-destructive",children:[(0,w.refusedWords)(q.refused),"."]}),q?.question&&(0,t.jsx)(x.FoldedText,{text:q.question,subject:"message",clamp:q.refused?"line-clamp-2":"line-clamp-3",tall:"max-h-40",className:q.refused?"font-mono text-[11px] leading-4 text-muted-foreground":void 0}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[q?.refused&&(0,t.jsxs)(h.Button,{type:"button",size:"sm",onClick:()=>(0,_.openSettings)("keys"),className:"h-7 gap-1.5 rounded-full px-3 text-[12.5px]",children:[(0,t.jsx)(c.Settings2,{className:"size-3.5"}),"Open Settings"]}),(0,t.jsx)(X,{options:q?.options.length?q.options:[S.THREAD_CONTINUE],picked:A,busy:ei,onChoose:eg})]}),(0,t.jsx)(Y,{claimsDrops:g,threadId:e.id,recipient:U,send:eh,busy:ei,placeholder:"Or put it another way…",label:`Message for ${U}`},JSON.stringify([e.id,U,"paused"]))]}):eu&&!z?(0,t.jsxs)("div",{className:(0,$.cn)("flex min-w-0 flex-col rounded-2xl bg-muted/40 ring-1 ring-border/50",d),children:[ea.map(n=>(0,t.jsxs)("div",{className:"flex items-start gap-2 border-border/60 border-b py-2.5 pr-1.5 pl-3.5",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsxs)("p",{className:"flex min-w-0 items-center gap-1.5 font-mono text-[10px] leading-4",children:[(0,t.jsx)(o.Loader2,{className:"size-3 shrink-0 animate-spin text-muted-foreground"}),(0,t.jsx)(y.ShinyText,{text:`Step-in \xb7 waits for ${n.bot}'s next step`,speed:2.2,className:"min-w-0 truncate"})]}),(0,t.jsx)("p",{className:"whitespace-pre-wrap break-keep wrap-anywhere text-[13px] leading-snug",children:n.text})]}),(0,t.jsx)(h.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:el,onClick:()=>es(e.id,n.id),"aria-label":"Take it back",className:"shrink-0 text-muted-foreground/60 hover:text-foreground",children:(0,t.jsx)(f.X,{})})]},n.id)),(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 py-1.5 pr-1.5 pl-3.5",children:[(0,t.jsx)(y.ShinyText,{text:`${ec} \xb7 Working`,speed:2.4,className:"min-w-0 flex-1 truncate text-[12.5px] leading-5 break-keep"}),(0,t.jsxs)(h.Button,{type:"button",size:"sm",variant:"ghost",disabled:ei,onClick:()=>E(!0),className:"h-7 shrink-0 gap-1.5 rounded-full px-2.5 text-[12px]",children:[(0,t.jsx)(l.CornerDownLeft,{className:"size-3.5"}),"Step in"]}),(0,t.jsx)("span",{className:"h-4 w-px shrink-0 bg-border"}),ex()]})]}):(0,t.jsxs)("div",{className:(0,$.cn)("flex min-w-0 flex-col gap-1.5",d),children:[ef&&(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2 pr-1.5 pl-3.5",children:[(0,t.jsxs)("p",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-[12.5px] leading-5",children:[(0,t.jsxs)("span",{className:"shrink-0 text-muted-foreground",children:[U," is idle"]}),ed.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"shrink-0 text-muted-foreground/50",children:"·"}),(0,t.jsx)(y.ShinyText,{text:`${ed.join(", ")} working`,speed:2.4,className:"min-w-0 truncate"})]})]}),(0,t.jsx)("span",{className:"h-4 w-px shrink-0 bg-border"}),ex()]}),(0,t.jsx)(Y,{claimsDrops:g,threadId:e.id,recipient:U,send:eh,busy:ei,autoFocus:eu,onEscape:eu?()=>E(!1):void 0,placeholder:eu?`What's off? ${U} reads this before its next step`:ef?`Anything for ${U}? It starts again as soon as you send`:"Anything more? It picks up where it left off",label:`Message for ${U}`,className:"rounded-2xl bg-background py-1.5 pr-1.5 pl-3.5 ring-1 ring-border/80 transition-shadow focus-within:ring-ring/60",leading:D.length>1?(0,t.jsx)(Q,{current:em(U),bots:D.map(e=>em(e.bot)),disabled:ei,onPick:t=>{M.threadDrafts.select(e.id,t),O(t)}}):null,trailing:eu?(0,t.jsx)(h.Button,{type:"button",size:"icon-sm",variant:"ghost",disabled:ei,onClick:()=>E(!1),"aria-label":"Never mind",className:"text-muted-foreground",children:(0,t.jsx)(f.X,{})}):null},JSON.stringify([e.id,U])),ep&&(0,t.jsxs)("p",{className:"min-w-0 truncate px-1 text-xs text-muted-foreground",children:[U,"’s answer goes back to ",e.bot]}),!!eo&&!eu&&(0,t.jsxs)("p",{className:"flex min-w-0 items-center gap-2 px-1 text-xs text-muted-foreground",children:[(0,t.jsx)(o.Loader2,{className:"size-3 shrink-0 animate-spin"}),(0,t.jsxs)("span",{className:"truncate",children:["Sending to ",eo]})]})]})},"useAnswerThread",0,ee],399512)},443497,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7f0f762989a186f7c632721d4846c9606c9c54c54e",t.callServer,void 0,t.findSourceMapURL,"cancelThreadAction");e.s(["cancelThreadAction",0,n])},652669,702377,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7f1d268986d539b2480e75d0f67874435fbfc43668",t.callServer,void 0,t.findSourceMapURL,"withdrawStepInAction");e.s(["withdrawStepInAction",0,n],652669);var r=e.i(843476),i=e.i(798120),a=e.i(167881),s=e.i(609856),l=e.i(283653),o=e.i(211658);e.s(["SignInAsk",0,function({bot:e,onAllowed:t}){let{data:n}=(0,l.useServerRoute)(i.queryKey.signIns),[d,c]=(0,s.useServerAction)(o.setSignInBotAction,{onOk:()=>(0,l.revalidate)(i.queryKey.signIns)}),u=(n??[]).filter(t=>t.asking.includes(e));return u.length?(0,r.jsx)("div",{className:"flex flex-wrap gap-1.5",children:u.map(n=>(0,r.jsxs)(a.Button,{type:"button",size:"sm",loading:c,onClick:()=>void d(n.site,n.account,e,!0).then(()=>t(`Yes — you may use my ${n.site} sign-in as ${n.account}.`)).catch(()=>{}),children:["Let ",e," use ",n.site," (",n.account,")"]},`${n.site}
|
|
2
|
-
${n.account}`))}):null}],702377)},698410,358182,e=>{"use strict";var t=e.i(95187);let n=(0,t.createServerReference)("7f7f0bb1826cc3e9f9180e34f0eb014abccf383d7a",t.callServer,void 0,t.findSourceMapURL,"handFileAction");e.s(["handFileAction",0,n],698410);let r=(0,t.createServerReference)("7fbc2c8158f3cb5ce03c16e104b6d078f5a2bb2893",t.callServer,void 0,t.findSourceMapURL,"tellFileThreadAction");e.s(["tellFileThreadAction",0,r],358182)},83928,e=>{"use strict";var t=e.i(843476),n=e.i(829600),r=e.i(989360),i=e.i(575780),a=e.i(905015),s=e.i(693819),l=e.i(226091),o=e.i(227148),d=e.i(941464),c=e.i(51921),u=e.i(609374),f=e.i(657688),p=e.i(271645),m=e.i(798120),h=e.i(683408),g=e.i(41533),x=e.i(616172),b=e.i(647163);let y={markdown:l.FileText,csv:s.FileSpreadsheet,json:a.FileJson,text:o.FileType,image:i.FileImage,audio:c.Music,video:d.FileVideo},v={pdf:l.FileText,html:r.FileCode,htm:r.FileCode,docx:o.FileType,xlsx:s.FileSpreadsheet,pptx:u.Presentation};function w(e){return v[(0,x.extensionOf)(e)]??y[(0,x.viewKindOf)(e)]??n.File}let j=new Set(["markdown","text","csv","json"]);function k(e,t){let n=(0,x.viewKindOf)(e);return void 0!==t&&t>g.WORKSPACE_VIEW.elementMax?"glyph":"image"===n?"image":"frame"===n&&/\.html?$/i.test(e)?"page":j.has(n)?"text":"glyph"}function N({width:e,className:n,children:r}){let i=(0,p.useRef)(null),[a,s]=(0,p.useState)(null),[l,o]=(0,p.useState)(!1);(0,p.useLayoutEffect)(()=>{let e=i.current;if(!e)return;let t=()=>s({w:e.clientWidth,h:e.clientHeight});t();let{top:n,bottom:r}=e.getBoundingClientRect();r>-400&&n<window.innerHeight+400&&o(!0);let a=new ResizeObserver(t);return a.observe(e),()=>a.disconnect()},[]),(0,p.useEffect)(()=>{let e=i.current;if(!e||l)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&o(!0)},{rootMargin:"400px"});return t.observe(e),()=>t.disconnect()},[l]);let d=l&&a?a.w/e:0;return(0,t.jsx)("span",{ref:i,"aria-hidden":!0,className:(0,b.cn)("relative block overflow-hidden",n),children:d>0&&a&&(0,t.jsx)("span",{className:"absolute top-0 left-0 block origin-top-left",style:{width:e,transform:`scale(${d})`},children:r(Math.ceil(a.h/d))})})}function S({path:e,onMissing:n}){let[r,i]=(0,p.useState)(null);return((0,p.useEffect)(()=>{let t=new AbortController;return fetch(m.queryKey.file(e),{headers:{range:`bytes=0-${g.FILE_THUMB.textBytes-1}`},signal:t.signal}).then(e=>e.ok?e.text():Promise.reject()).then(e=>i(e.replace(/\uFFFD+$/,""))).catch(()=>{t.signal.aborted||n()}),()=>t.abort()},[e,n]),null===r)?null:"markdown"===(0,x.viewKindOf)(e)?(0,t.jsx)("div",{className:"pointer-events-none px-9 py-8 text-[15px] text-foreground",children:(0,t.jsx)(h.Markdown,{controls:!1,components:{a:"span"},children:r})}):(0,t.jsx)("pre",{className:"pointer-events-none px-7 py-6 font-mono text-[13px] leading-relaxed whitespace-pre-wrap text-foreground",children:r})}e.s(["FileThumb",0,function({path:e,bytes:n,glyph:r="size-4",className:i}){let[a,s]=(0,p.useState)(!1),l=(0,p.useCallback)(()=>s(!0),[]),o=a?"glyph":k(e,n);if("image"===o)return(0,t.jsx)("span",{className:(0,b.cn)("relative block overflow-hidden bg-muted",i),children:(0,t.jsx)(f.default,{src:m.queryKey.file(e),alt:"",fill:!0,sizes:`${g.FILE_THUMB.imageWidth}px`,loading:"lazy",decoding:"async",onError:()=>s(!0),className:"object-cover dark:brightness-[0.82]"})});if("page"===o)return(0,t.jsx)(N,{width:g.FILE_THUMB.pageWidth,className:(0,b.cn)("bg-white dark:brightness-[0.82]",i),children:n=>(0,t.jsx)("iframe",{title:"",src:m.queryKey.fileFace(e),sandbox:"allow-scripts",loading:"lazy",tabIndex:-1,"aria-hidden":!0,scrolling:"no",style:{width:g.FILE_THUMB.pageWidth,height:n},className:"pointer-events-none block border-0 bg-white"})});if("text"===o)return(0,t.jsx)(N,{width:g.FILE_THUMB.textWidth,className:(0,b.cn)("bg-background dark:brightness-[0.82]",i),children:()=>(0,t.jsx)(S,{path:e,onMissing:l})});let d=w(e);return(0,t.jsx)("span",{className:(0,b.cn)("grid place-items-center bg-muted text-muted-foreground",i),children:(0,t.jsx)(d,{className:r})})},"faceOf",0,k,"fileIcon",0,w])},621285,204856,796312,e=>{"use strict";var t=e.i(843476),n=e.i(401851),r=e.i(24071),i=e.i(867927),a=e.i(482022),s=e.i(657688),l=e.i(271645),o=e.i(798120),d=e.i(167881),c=e.i(630374),u=e.i(683408),f=e.i(671428),p=e.i(947627),m=e.i(41533),h=e.i(853483),g=e.i(978411),x=e.i(616172);let b=/^[0-9a-f]{0,32}$/,y=e=>"object"==typeof e&&null!==e&&"string"==typeof e.base&&b.test(e.base)&&"string"==typeof e.html&&Number.isFinite(e.at);function v(e,t,n){let r;if(!e)return{error:"this browser keeps nothing"};let i=`thursday-page-drafts:${t}`;try{r=e.getItem(i)}catch{return{error:"this browser keeps nothing"}}let a=[];try{let e=JSON.parse(r??"[]");Array.isArray(e)&&(a=e.filter(y))}catch{}let s=function(e,t){let n=e;if("string"==typeof t.drop&&(n=n.filter(e=>e.base!==t.drop)),void 0===t.hold)return n;if(!y(t.hold))return"not a page's edits";let{base:r,html:i,at:a}=t.hold;return(n=[...n.filter(e=>e.base!==r),{base:r,html:i,at:a}]).length>m.PAGE_DRAFTS.perFile?`${m.PAGE_DRAFTS.perFile} sets of this page's edits are kept aside already`:n.reduce((e,t)=>e+t.html.length,0)>m.PAGE_DRAFTS.chars?"too large to keep aside":n}(a,n);if("string"==typeof s)return{error:s};if(void 0!==n.hold||void 0!==n.drop)try{s.length?e.setItem(i,JSON.stringify(s)):e.removeItem(i)}catch{return{error:"this browser has no room left to keep them"}}return{drafts:s}}var w=e.i(95187);let j=(0,w.createServerReference)("7f3e9f3d27972bf6e9c4e56ed151019005888f66c0",w.callServer,void 0,w.findSourceMapURL,"openFileAction");e.s(["openFileAction",0,j],204856);let k=(0,w.createServerReference)("7f683290ea5e4aac19f81855a1cf917da781f8918b",w.callServer,void 0,w.findSourceMapURL,"revealFileAction");e.s(["revealFileAction",0,k],796312);let N=(0,w.createServerReference)("7ff5e3918c42b1b164e0189ba0ed8366abd1d33484",w.callServer,void 0,w.findSourceMapURL,"savePageAction");var S=e.i(319841),C=e.i(393080),M=e.i(609856),_=e.i(647163);let R=new Set(["frame","image","audio","video"]);function O(e){let t=(0,x.workspaceRelative)(e);return t?"none"===(0,x.viewKindOf)(t)?{how:"os"}:{how:"dialog",path:t}:{how:"os"}}let z=(0,l.createContext)(null),E={dialog:{prose:"px-5 py-4",block:"px-4 py-3"},page:{prose:"px-5 py-6 sm:px-8",block:"px-5 py-5"},inline:{prose:"pb-3",block:"pb-3"}};function A({kind:e,content:n,truncated:r,where:i="dialog"}){return(0,t.jsxs)(t.Fragment,{children:[null!=r&&(0,t.jsx)(T,{of:r}),(0,t.jsx)(P,{kind:e,content:n,where:i})]})}function T({of:e}){return(0,t.jsxs)("p",{className:"border-b border-border/60 px-5 py-2.5 font-mono text-[11px] text-muted-foreground",children:[`Showing the first ${(0,_.formatBytes)(m.WORKSPACE_VIEW.textMax)} of ${(0,_.formatBytes)(e)}. `,"Open the file itself for the rest."]})}function P({kind:e,content:n,where:r}){let i=E[r];switch(e){case"markdown":return(0,t.jsx)("div",{className:(0,_.cn)("min-w-0 text-sm leading-relaxed",i.prose),children:(0,t.jsx)(u.Markdown,{children:n})});case"csv":return(0,t.jsx)(V,{content:n,className:i.block});case"json":return(0,t.jsx)(H,{text:function(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}(n),className:i.block});default:return(0,t.jsx)(H,{text:n,className:i.block})}}function $(e,t=0){let[n,r]=(0,l.useState)(null),[i,a]=(0,l.useState)(null),[s,d]=(0,l.useState)(null);return(0,l.useEffect)(()=>{if(!e)return;r(null),a(null),d(null);let t=!1;return fetch(o.queryKey.file(e),{headers:{range:`bytes=0-${m.WORKSPACE_VIEW.textMax-1}`}}).then(async e=>{if(!e.ok)throw Error(await e.text());return{text:await e.text(),of:function(e){let t=e.headers.get("content-range")?.match(/^bytes \d+-(\d+)\/(\d+)$/);if(!t)return null;let[,n,r]=t.map(Number);return n+1<r?r:null}(e)}}).then(({text:e,of:n})=>{t||(r(null===n?e:e.slice(0,e.lastIndexOf("\n")+1||void 0)),d(n))}).catch(e=>!t&&a((0,_.errorToString)(e))),()=>{t=!0}},[e,t]),{content:n,failure:i,truncated:s}}let I={named:new Map,opened:new Map,showing:new WeakMap,takes:new WeakMap,saves:new Map,listening:!1},F=e=>{let t=I.named.get(e);return t||(t=crypto.randomUUID(),I.named.set(e,t),I.opened.set(t,e)),{thursday:"host",as:t}};async function D(e){let t=e.source,n=e.data;if(!t||"null"!==e.origin||"string"!=typeof n?.thursday)return;if("hello"===n.thursday){I.takes.set(t,Array.isArray(n.can)?n.can.filter(e=>"string"==typeof e):[]);let e=I.showing.get(t);e&&t.postMessage(F(e),"*");return}if("drafts"===n.thursday){let e=I.opened.get(n.as);if(!e)return;let r=v(L(),e,n),i={as:n.as,id:n.id};t.postMessage("error"in r?{...i,thursday:"not-held",error:r.error}:{...i,thursday:"drafts",drafts:r.drafts},"*");return}let r="save"===n.thursday&&I.opened.get(n.as);if(!r||"string"!=typeof n.html)return;let i=await N(r,n.html,"string"==typeof n.base?n.base:""),a={as:n.as,id:n.id};(0,C.isResultOk)(i)&&!i.data.changed?I.saves.set(r,i.data.version):"string"==typeof n.words&&v(L(),r,{hold:{base:"string"==typeof n.base?n.base:"",html:n.words,at:Date.now()}}),t.postMessage((0,C.isResultOk)(i)?i.data.changed?{...a,thursday:"not-saved",changed:!0}:{...a,thursday:"saved",revision:i.data.revision}:{...a,thursday:"not-saved",error:i.message},"*")}function L(){try{return window.localStorage}catch{return null}}function B({path:e,className:n,takeKeys:r,written:i,onUntold:a,onReloaded:s}){let d=(0,l.useRef)(null),c=(0,l.useRef)(!1),u=(0,l.useRef)(s);u.current=s;let f=(0,l.useRef)(a);f.current=a;let p=(0,l.useCallback)(()=>{r&&d.current?.focus();let t=d.current?.contentWindow;t&&(I.showing.set(t,e),t.postMessage(F(e),"*"),c.current&&(c.current=!1,u.current?.()))},[e,r]);return(0,l.useEffect)(p,[p]),(0,l.useEffect)(()=>{if(!i)return;let t=d.current?.contentWindow;if(!t)return;let n=I.takes.get(t);n?.includes("changed")?(c.current=!0,t.postMessage({thursday:"changed",as:F(e).as,revision:i.revision},"*")):f.current?.(n?"older":"plain")},[i,e]),(0,l.useEffect)(()=>{I.listening||(I.listening=!0,window.addEventListener("message",D))},[]),(0,t.jsx)("iframe",{ref:d,title:e,src:o.queryKey.file(e),allow:"clipboard-write *; fullscreen *; autoplay *",className:n,onLoad:p})}function K({path:e,kind:n,where:r,takeKeys:i,again:a=0,written:s,onUntold:l,onReloaded:d}){let c=a?`${o.queryKey.file(e)}?again=${a}`:o.queryKey.file(e);return"frame"===n?(0,t.jsx)(B,{path:e,className:"h-full w-full bg-white",takeKeys:i,written:s,onUntold:l,onReloaded:d}):"image"===n?(0,t.jsx)("img",{src:c,alt:e,className:"dialog"===r?"mx-auto max-h-[calc(100vh-11rem)] object-contain p-4":"mx-auto max-w-full p-6"}):"audio"===n?(0,t.jsx)("audio",{controls:!0,src:c,className:"w-full p-6",children:(0,t.jsx)("track",{kind:"captions"})}):(0,t.jsx)("video",{controls:!0,src:c,className:"mx-auto max-h-full max-w-full p-4",children:(0,t.jsx)("track",{kind:"captions"})})}function q({path:e}){let[n,r]=(0,M.useServerAction)(j);return(0,t.jsxs)("div",{className:"space-y-4 p-8",children:[(0,t.jsx)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:"Nothing here can draw this file. It opens in its own program."}),(0,t.jsx)(d.Button,{variant:"outline",loading:r,onClick:()=>n(e),children:"Open it"})]})}function W({path:e,bytes:n}){let[r,i]=(0,M.useServerAction)(k);return(0,t.jsxs)("div",{className:"space-y-4 p-8",children:[(0,t.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:[`This file is ${(0,_.formatBytes)(n)} — too big to draw here without `,"taking the window with it. Open it where it is instead."]}),(0,t.jsx)(d.Button,{variant:"outline",loading:i,onClick:()=>r(e),children:"Reveal in the file manager"})]})}function U({path:e,opening:u,group:p=[],kind:x,byHer:b,from:y,onPath:v,onClose:w}){let j="image"===x,k=R.has(x),{note:N,filed:C,failure:M,again:O,written:z,reloadedAt:E,stale:T,reload:P,follow:F,untold:D,reloaded:L}=function(e,t,n,r){let{filed:i,file:a,note:s,failure:o,follow:d}=(0,h.useFileNote)(e,n),[c,u]=(0,l.useState)(0),[f,p]=(0,l.useState)(null),[m,g]=(0,l.useState)(null),[x,b]=(0,l.useState)(!1),y=(0,l.useRef)(null);(0,l.useEffect)(()=>{u(0),p(null),g(null),b(!1),y.current=null},[e,t]);let v=(0,l.useCallback)(()=>{u(e=>e+1),p(null),b(!1),g(new Date)},[]),w=a?.version??null,j=a?.revision??null;return(0,l.useEffect)(()=>{if(!w)return;let t=y.current;y.current=w,null===t||t===w||(null===e||I.saves.get(e)!==w)&&("frame"===r?p(e=>({n:(e?.n??0)+1,revision:j})):"audio"===r||"video"===r?b(!0):v())},[w,j,r,v]),{filed:i,note:s,failure:o,again:c,written:f,reloadedAt:m,stale:x,reload:v,follow:d,untold:(0,l.useCallback)(e=>{if("plain"===e)return v();p(null),b(!0)},[v]),reloaded:(0,l.useCallback)(()=>{p(null),g(new Date)},[])}}(e,u,y,x),{content:B,failure:q,truncated:W}=$(k?null:e,O),H=e?.split("/").pop()??"",V=e?p.indexOf(e):-1,G=e=>{!(V<0)&&v&&v(p[(V+e+p.length)%p.length])},{left:J,keep:X}=function(e,t){let[n,r]=(0,l.useState)(null),i=(0,l.useRef)(t);i.current=t;let a=(0,l.useRef)(()=>void 0);return(0,l.useEffect)(()=>{if(!e)return void r(null);let t=Math.round(m.WORKSPACE_VIEW.autoCloseMs/1e3);r(t);let n=()=>{for(let e of(window.clearInterval(l),["pointermove","keydown","wheel","blur"]))window.removeEventListener(e,s);r(null)},s=()=>n(),l=window.setInterval(()=>{if((t-=1)>0)return r(t);n(),i.current()},1e3);for(let e of["pointermove","keydown","wheel","blur"])window.addEventListener(e,s);return a.current=n,n},[e]),{left:n,keep:(0,l.useCallback)(()=>a.current(),[])}}(b&&null!==e,w),Y="frame"===x||"video"===x,Q=(0,l.useRef)(null),Z=e=>{g.roomOpens.open(e),w()};return(0,t.jsx)(c.Dialog,{open:null!==e,onOpenChange:e=>!e&&w(),children:(0,t.jsxs)(c.DialogContent,{ref:Q,initialFocus:Q,onKeyDown:e=>{(0,S.capturesKeys)(e.target)||("ArrowLeft"===e.key&&G(-1),"ArrowRight"===e.key&&G(1))},onPointerOver:X,className:(0,_.cn)("flex flex-col gap-0 overflow-hidden p-0",Y?"h-[min(42rem,calc(100vh-3rem))] sm:max-w-232":"max-h-[calc(100vh-3rem)] sm:max-w-4xl"),children:[(0,t.jsx)(c.DialogTitle,{className:"sr-only",children:H}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1 border-b border-border/60 py-2 pr-12 pl-4",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px]",children:e}),null!==J&&(0,t.jsx)("span",{className:"shrink-0 pr-1 font-mono text-[11px] text-muted-foreground tabular-nums",children:`Closing in ${J}s`}),T?(0,t.jsx)(d.Button,{variant:"ghost",size:"xs",className:"shrink-0 font-normal text-muted-foreground",onClick:P,children:"Changed since it opened · Reload"}):E&&(0,t.jsx)("span",{className:"shrink-0 pr-1 font-mono text-[11px] text-muted-foreground tabular-nums",children:`Reloaded at ${(0,n.format)(E,"HH:mm")}`}),C&&(0,t.jsx)(h.FileThreadChip,{note:N,onOpen:Z}),V>=0&&p.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground tabular-nums",children:[V+1," / ",p.length]}),(0,t.jsx)(d.Button,{variant:"ghost",size:"icon-sm","aria-label":"Previous image",onClick:()=>G(-1),children:(0,t.jsx)(r.ChevronLeft,{})}),(0,t.jsx)(d.Button,{variant:"ghost",size:"icon-sm","aria-label":"Next image",onClick:()=>G(1),children:(0,t.jsx)(i.ChevronRight,{})})]}),e&&(0,t.jsx)("a",{href:o.queryKey.fileView(e),target:"_blank",rel:"noreferrer","aria-label":"Open in a new tab",className:(0,_.cn)((0,d.buttonVariants)({variant:"ghost",size:"icon-sm"})),children:(0,t.jsx)(a.ExternalLink,{})})]}),(0,t.jsx)("div",{className:(0,_.cn)("min-h-0 flex-1","frame"===x?"overflow-hidden":"overflow-auto"),children:k&&e?(0,t.jsx)(K,{path:e,kind:x,where:"dialog",takeKeys:!b,again:O,written:z,onUntold:D,onReloaded:L},`${u}:${O}`):q?(0,t.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:q}):null===B?(0,t.jsxs)("div",{className:"space-y-3 p-5",children:[(0,t.jsx)(f.Skeleton,{className:"h-5 w-2/3"}),(0,t.jsx)(f.Skeleton,{className:"h-4 w-full"}),(0,t.jsx)(f.Skeleton,{className:"h-4 w-5/6"})]}):(0,t.jsx)(A,{kind:x,content:B,truncated:W})}),j&&p.length>1&&(0,t.jsx)("div",{className:"flex shrink-0 justify-center gap-1.5 border-t border-border/60 p-2.5",children:p.map(n=>(0,t.jsx)("button",{type:"button","aria-label":n.split("/").pop(),onClick:()=>v?.(n),className:(0,_.cn)("size-11 shrink-0 overflow-hidden rounded-md outline-none focus-visible:ring-3 focus-visible:ring-ring/50",n===e?"ring-2 ring-foreground":"opacity-55"),children:(0,t.jsx)(s.default,{src:o.queryKey.file(n),alt:"",width:96,height:96,loading:"lazy",className:"size-full bg-muted object-cover"})},n))}),C&&e&&(0,t.jsx)("div",{className:"shrink-0 border-t border-border/60 px-3 pt-2.5 pb-3",children:(0,t.jsx)(h.FileNoteBar,{path:e,note:N,failure:M,onThread:F,onOpenThread:Z})})]})})}function H({text:e,className:n}){return(0,t.jsx)("pre",{className:(0,_.cn)("overflow-x-auto font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-foreground/90",n),children:e})}function V({content:e,className:n}){let[r,...i]=(0,l.useMemo)(()=>(function(e){let t=[],n=[],r="",i=!1;for(let a=0;a<e.length;a++){let s=e[a];i?'"'===s&&'"'===e[a+1]?(r+='"',a++):'"'===s?i=!1:r+=s:'"'===s?i=!0:","===s?(n.push(r),r=""):"\n"===s||"\r"===s?("\r"===s&&"\n"===e[a+1]&&a++,n.push(r),t.push(n),n=[],r=""):r+=s}return(r.length||n.length)&&(n.push(r),t.push(n)),t.filter(e=>e.some(e=>e.trim()))})(e),[e]),a=(0,l.useMemo)(()=>(r??[]).map((e,t)=>i.some(e=>""!==(e[t]??"").trim())&&i.every(e=>{let n=(e[t]??"").trim();return""===n||/^[+-]?[\d,]*\.?\d+%?$/.test(n)})),[r,i]);return r?(0,t.jsx)("div",{className:(0,_.cn)("overflow-x-auto",n),children:(0,t.jsxs)(p.Table,{children:[(0,t.jsx)(p.TableHeader,{children:(0,t.jsx)(p.TableRow,{children:r.map((e,n)=>(0,t.jsx)(p.TableHead,{className:(0,_.cn)("whitespace-nowrap",a[n]&&"text-right"),children:e},`${n}-${e}`))})}),(0,t.jsx)(p.TableBody,{children:i.map((e,n)=>(0,t.jsx)(p.TableRow,{children:r.map((r,i)=>(0,t.jsx)(p.TableCell,{className:(0,_.cn)("whitespace-nowrap",a[i]&&"text-right tabular-nums"),children:e[i]??""},`${n}-${i}`))},`${n}-${e[0]??""}`))})]})}):(0,t.jsx)(H,{text:e,className:n})}e.s(["FileBody",0,A,"FileFrame",0,B,"FileLink",0,function({path:e,group:n,from:r=null,className:i,title:a,label:s,children:d}){let c=O(e),u=(0,l.useContext)(z),[f,p]=(0,M.useServerAction)(j);return(0,t.jsx)("button",{type:"button",disabled:p,title:a??e,"aria-label":s,className:i,onClick:()=>{"dialog"===c.how?u?u(c.path,n,!1,r):window.open(o.queryKey.fileView(c.path),"_blank"):f(e)},children:d})},"FilePreview",0,function({path:e,bytes:n}){let r=(0,x.viewKindOf)(e),{content:i,failure:a,truncated:s}=$(R.has(r)||"none"===r?null:e);return"none"===r?(0,t.jsx)(q,{path:e}):("frame"===r||"image"===r)&&n>m.WORKSPACE_VIEW.elementMax?(0,t.jsx)(W,{path:e,bytes:n}):R.has(r)?(0,t.jsx)(K,{path:e,kind:r,where:"preview"}):a?(0,t.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:a}):null===i?(0,t.jsxs)("div",{className:"space-y-3 p-5",children:[(0,t.jsx)(f.Skeleton,{className:"h-5 w-2/3"}),(0,t.jsx)(f.Skeleton,{className:"h-4 w-full"}),(0,t.jsx)(f.Skeleton,{className:"h-4 w-5/6"})]}):(0,t.jsx)(A,{kind:r,content:i,truncated:s})},"FileViewer",0,function({children:e}){let[n,r]=(0,l.useState)(null),i=(0,l.useRef)(0),a=(0,l.useCallback)((e,t=[],n=!1,a=null)=>r({path:e,group:t,byHer:n,from:a,n:++i.current}),[]);return(0,t.jsxs)(z,{value:a,children:[e,(0,t.jsx)(U,{path:n?.path??null,opening:n?.n??0,group:n?.group??[],kind:n?(0,x.viewKindOf)(n.path):"text",byHer:n?.byHer??!1,from:n?.from??null,onPath:e=>r(t=>t&&{...t,path:e}),onClose:()=>r(null)})]})},"fileTarget",0,O,"useFileText",0,$,"useOpenFile",0,function(){let e=(0,l.useContext)(z);return(0,l.useCallback)((t,n=[],r=!1,i=null)=>{let a=O(t);return"os"!==a.how&&(e?(e(a.path,n,r,i),!0):null!==window.open(o.queryKey.fileView(a.path),"_blank"))},[e])}],621285)},616172,e=>{"use strict";var t=e.i(798120),n=e.i(41533);let r=e=>`text/${e}; charset=utf-8`,i={md:{kind:"markdown",mime:r("markdown")},markdown:{kind:"markdown",mime:r("markdown")},csv:{kind:"csv",mime:r("csv")},json:{kind:"json",mime:"application/json; charset=utf-8"},txt:{kind:"text",mime:r("plain")},log:{kind:"text",mime:r("plain")},html:{kind:"frame",mime:r("html")},htm:{kind:"frame",mime:r("html")},pdf:{kind:"frame",mime:"application/pdf"},png:{kind:"image",mime:"image/png"},jpg:{kind:"image",mime:"image/jpeg"},jpeg:{kind:"image",mime:"image/jpeg"},gif:{kind:"image",mime:"image/gif"},webp:{kind:"image",mime:"image/webp"},svg:{kind:"image",mime:"image/svg+xml"},mp3:{kind:"audio",mime:"audio/mpeg"},wav:{kind:"audio",mime:"audio/wav"},mp4:{kind:"video",mime:"video/mp4"},webm:{kind:"video",mime:"video/webm"},docx:{kind:"none",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},xlsx:{kind:"none",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},pptx:{kind:"none",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"},css:{kind:"none",mime:r("css")},js:{kind:"none",mime:r("javascript")},woff2:{kind:"none",mime:"font/woff2"}},a=e=>e.split(".").pop()?.toLowerCase()??"",s=e=>i[a(e)]?.kind??"none",l=new Set(["css","js","woff2"]),o=Object.keys(i).filter(e=>!l.has(e)),d=RegExp(String.raw`(?<![\p{L}\p{N}_/:@%-])\/?(?:[\p{L}\p{N}_.@%-]+/)*[\p{L}\p{N}_@%-]+(?:\.[\p{L}\p{N}_-]+)*\.(?:${o.join("|")})\b`,"giu"),c=`${n.PATHS.workspace}/`,u=t.queryKey.file("");function f(e){let t=function(e){if(!e.startsWith(u))return e;let t=e.slice(u.length);try{return decodeURIComponent(t)}catch{return t}}(e.trim()),n=t.indexOf(c);return n>=0?t.slice(n+c.length)||null:t.startsWith("/")||/^[A-Za-z]:/.test(t)||t.split("/").includes("..")?null:t||null}let p=e=>e.startsWith(`${n.PATHS.artifacts}/`)&&["md","markdown","html","htm"].includes(a(e));e.s(["extensionOf",0,a,"isPicture",0,e=>"image"===s(e)&&"svg"!==a(e),"leadFirst",0,function(e){let t=e.findIndex(p);return t>0?[e[t],...e.filter((e,n)=>n!==t)]:e},"mimeOf",0,e=>i[a(e)]?.mime??"application/octet-stream","pathsIn",0,function(e){let t=e.replace(/\b[a-z][\w+.-]*:\/\/\S+/gi," ").replace(/\b[a-z][\w+.-]+:(?=\/)/gi," "),n=new Set,r="";for(let[e]of t.matchAll(d)){let t=!e.includes("/"),i=function(e){let t=f(e);if(!t)return null;let[n,...r]=t.split("/");return r.length&&n.includes(".")?null:t}(t?r+e:e);t||(r=i?.slice(0,i.lastIndexOf("/")+1)??""),i&&n.add(i)}return[...n].slice(0,12)},"viewKindOf",0,s,"workspaceRelative",0,f])},931619,919191,64801,e=>{"use strict";var t=e.i(456420);let n={name:"chevrons-right",size:24,node:[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]};n.node;let r=(0,t.default)(n);e.s(["ChevronsRight",0,r],931619);let i={name:"corner-down-left",size:24,node:[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]]};i.node;let a=(0,t.default)(i);e.s(["CornerDownLeft",0,a],919191);let s={name:"paperclip",size:24,node:[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]};s.node;let l=(0,t.default)(s);e.s(["Paperclip",0,l],64801)},905015,e=>{"use strict";var t=e.i(456420);let n={name:"file-braces",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],aliases:["file-json"]};n.node;let r=(0,t.default)(n);e.s(["FileJson",0,r],905015)},989360,575780,e=>{"use strict";var t=e.i(456420);let n={name:"file-code",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]};n.node;let r=(0,t.default)(n);e.s(["FileCode",0,r],989360);let i={name:"file-image",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]};i.node;let a=(0,t.default)(i);e.s(["FileImage",0,a],575780)},693819,227148,941464,e=>{"use strict";var t=e.i(456420);let n={name:"file-spreadsheet",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]};n.node;let r=(0,t.default)(n);e.s(["FileSpreadsheet",0,r],693819);let i={name:"file-type",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M11 18h2",key:"12mj7e"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5",key:"qbrxap"}]]};i.node;let a=(0,t.default)(i);e.s(["FileType",0,a],227148);let s={name:"file-play",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z",key:"1tzo1f"}]],aliases:["file-video"]};s.node;let l=(0,t.default)(s);e.s(["FileVideo",0,l],941464)},51921,e=>{"use strict";var t=e.i(456420);let n={name:"music",size:24,node:[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]};n.node;let r=(0,t.default)(n);e.s(["Music",0,r],51921)},609374,e=>{"use strict";var t=e.i(456420);let n={name:"presentation",size:24,node:[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]};n.node;let r=(0,t.default)(n);e.s(["Presentation",0,r],609374)},250832,e=>{"use strict";var t=e.i(456420);let n={name:"settings-2",size:24,node:[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]};n.node;let r=(0,t.default)(n);e.s(["Settings2",0,r],250832)},929272,e=>{"use strict";var t=e.i(456420);let n={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};n.node;let r=(0,t.default)(n);e.s(["Square",0,r],929272)},325633,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return h},defaultHead:function(){return u}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(555682),s=e.r(190809),l=e.r(843476),o=s._(e.r(271645)),d=a._(e.r(898879)),c=e.r(742732);function u(){return[(0,l.jsx)("meta",{charSet:"utf-8"},"charset"),(0,l.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}let p=["name","httpEquiv","charSet","itemProp"];function m(e){let t,n,r,i;return e.reduce(f,[]).reverse().concat(u().reverse()).filter((t=new Set,n=new Set,r=new Set,i={},e=>{let a=!0,s=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){s=!0;let n=e.key.slice(e.key.indexOf("$")+1);t.has(n)?a=!1:t.add(n)}switch(e.type){case"title":case"base":n.has(e.type)?a=!1:n.add(e.type);break;case"meta":for(let t=0,n=p.length;t<n;t++){let n=p[t];if(e.props.hasOwnProperty(n))if("charSet"===n)r.has(n)?a=!1:r.add(n);else{let t=e.props[n],r=i[n]||new Set;("name"!==n||!s)&&r.has(t)?a=!1:(r.add(t),i[n]=r)}}}return a})).reverse().map((e,t)=>{let n=e.key||t;return o.default.cloneElement(e,{key:n})})}let h=function({children:e}){let t=(0,o.useContext)(c.HeadManagerContext);return(0,l.jsx)(d.default,{reduceComponentsToState:m,headManager:t,children:e})};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},918556,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let r=e.r(555682)._(e.r(271645)),i=e.r(987690),a=r.default.createContext(i.imageConfigDefault)},65856,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"RouterContext",{enumerable:!0,get:function(){return r}});let r=e.r(555682)._(e.r(271645)).default.createContext(null)},670965,(e,t,n)=>{"use strict";function r(e,t){let n=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-n)<Math.abs(e-n)?t:e,t.qualities[0]):n}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"findClosestQuality",{enumerable:!0,get:function(){return r}})},1948,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});let r=e.r(670965),i=e.r(543369);function a({config:e,src:t,width:n,quality:s}){let l=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,i.getAssetToken)())l=void 0;else{let e=t.indexOf("?");if(-1!==e){let n=new URLSearchParams(t.slice(e+1)),r=n.get("dpl");if(r){l=r,n.delete("dpl");let i=n.toString();t=t.slice(0,e)+(i?"?"+i:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
|
|
3
|
-
Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let o=(0,r.findClosestQuality)(s,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${n}&q=${o}${t.startsWith("/")&&l?`&dpl=${l}`:""}`}a.__next_img_default=!0;let s=a},818581,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=e.r(271645);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=a(e,r)),t&&(i.current=a(t,r))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},605500,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Image",{enumerable:!0,get:function(){return w}});let r=e.r(555682),i=e.r(190809),a=e.r(843476),s=i._(e.r(271645)),l=r._(e.r(174080)),o=r._(e.r(325633)),d=e.r(908927),c=e.r(987690),u=e.r(918556),f=e.r(65856),p=r._(e.r(1948)),m=e.r(818581),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[48,96,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,n,r,i,a,s){let l=e?.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),n?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}r?.current&&r.current(e)}}))}function x(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b="u"<typeof window?s.useEffect:s.useLayoutEffect,y=(0,s.forwardRef)(({src:e,srcSet:t,sizes:n,height:r,width:i,decoding:l,className:o,style:d,fetchPriority:c,placeholder:u,loading:f,unoptimized:p,fill:h,onLoadRef:y,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:j,sizesInput:k,onLoad:N,onError:S,...C},M)=>{let _=(0,s.useRef)(!1),R=(0,s.useRef)(null);b(()=>{let{current:e}=_,{current:t}=R;e||null===t||(S&&(t.src=t.src),t.complete&&g(t,u,y,v,w,p,k),_.current=!0)},[e,u,y,v,S,p,k]);let O=(0,m.useMergedRef)(M,R);return(0,a.jsx)("img",{...C,...x(c),loading:f,width:i,height:r,decoding:l,"data-nimg":h?"fill":"1",className:o,style:d,sizes:n,srcSet:t,src:e,ref:O,onLoad:e=>{g(e.currentTarget,u,y,v,w,p,k)},onError:e=>{j(!0),"empty"!==u&&w(!0),S&&S(e)}})});function v({isAppRouter:e,imgAttributes:t}){let n={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...x(t.fetchPriority)};return e&&l.default.preload?(l.default.preload(t.src,n),null):(0,a.jsx)(o.default,{children:(0,a.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...n},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,s.forwardRef)((e,t)=>{let n=(0,s.useContext)(f.RouterContext),r=(0,s.useContext)(u.ImageConfigContext),i=(0,s.useMemo)(()=>{let e=h||r||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n,qualities:i,localPatterns:"u"<typeof window?r?.localPatterns:e.localPatterns}},[r]),{onLoad:l,onLoadingComplete:o}=e,m=(0,s.useRef)(l);(0,s.useEffect)(()=>{m.current=l},[l]);let g=(0,s.useRef)(o);(0,s.useEffect)(()=>{g.current=o},[o]);let[x,b]=(0,s.useState)(!1),[w,j]=(0,s.useState)(!1),{props:k,meta:N}=(0,d.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:x,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{...k,unoptimized:N.unoptimized,placeholder:N.placeholder,fill:N.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:j,sizesInput:e.sizes,ref:t}),N.preload?(0,a.jsx)(v,{isAppRouter:!n,imgAttributes:k}):null]})});("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},794909,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return c},getImageProps:function(){return d}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(555682),s=e.r(908927),l=e.r(605500),o=a._(e.r(1948));function d(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[48,96,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let c=l.Image},657688,(e,t,n)=>{t.exports=e.r(794909)},488143,(e,t,n)=>{"use strict";function r({widthInt:e,heightInt:t,blurWidth:n,blurHeight:i,blurDataURL:a,objectFit:s}){let l=n?40*n:e,o=i?40*i:t,d=l&&o?`viewBox='0 0 ${l} ${o}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${d}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${d?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${a}'/%3E%3C/svg%3E`}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},987690,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return a},imageConfigDefault:function(){return s}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},908927,(e,t,n)=>{"use strict";e.i(247167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImgProps",{enumerable:!0,get:function(){return d}});let r=e.r(543369),i=e.r(488143),a=e.r(987690),s=["-moz-initial","fill","none","scale-down",void 0];function l(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function d({src:e,sizes:t,unoptimized:n=!1,priority:c=!1,preload:u=!1,loading:f,className:p,quality:m,width:h,height:g,fill:x=!1,style:b,overrideSrc:y,onLoad:v,onLoadingComplete:w,placeholder:j="empty",blurDataURL:k,fetchPriority:N,decoding:S="async",layout:C,objectFit:M,objectPosition:_,lazyBoundary:R,lazyRoot:O,...z},E){var A;let T,P,$,{imgConf:I,showAltText:F,blurComplete:D,defaultLoader:L}=E,B=I||a.imageConfigDefault;if("allSizes"in B)T=B;else{let e=[...B.deviceSizes,...B.imageSizes].sort((e,t)=>e-t),t=B.deviceSizes.sort((e,t)=>e-t),n=B.qualities?.sort((e,t)=>e-t);T={...B,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===L)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let K=z.loader||L;delete z.loader,delete z.srcSet;let q="__next_img_default"in K;if(q){if("custom"===T.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
|
|
4
|
-
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=K;K=t=>{let{config:n,...r}=t;return e(r)}}if(C){"fill"===C&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[C];e&&(b={...b,...e});let n={responsive:"100vw",fill:"100vw"}[C];n&&!t&&(t=n)}let W="",U=o(h),H=o(g);if((A=e)&&"object"==typeof A&&(l(A)||void 0!==A.src)){let t=l(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(P=t.blurWidth,$=t.blurHeight,k=k||t.blurDataURL,W=t.src,!x)if(U||H){if(U&&!H){let e=U/t.width;H=Math.round(t.height*e)}else if(!U&&H){let e=H/t.height;U=Math.round(t.width*e)}}else U=t.width,H=t.height}let V=!c&&!u&&("lazy"===f||void 0===f);(!(e="string"==typeof e?e:W)||e.startsWith("data:")||e.startsWith("blob:"))&&(n=!0,V=!1),T.unoptimized&&(n=!0),q&&!T.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(n=!0);let G=o(m),J=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:_}:{},F?{}:{color:"transparent"},b),X=D||"empty"===j?null:"blur"===j?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:U,heightInt:H,blurWidth:P,blurHeight:$,blurDataURL:k||"",objectFit:J.objectFit})}")`:`url("${j}")`,Y=s.includes(J.objectFit)?"fill"===J.objectFit?"100% 100%":"cover":J.objectFit,Q=X?{backgroundSize:Y,backgroundPosition:J.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},Z=function({config:e,src:t,unoptimized:n,width:i,quality:a,sizes:s,loader:l}){if(n){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,r.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,r.getAssetToken)())e=void 0;else if(e){let n=t.indexOf("?");if(-1!==n){let r=new URLSearchParams(t.slice(n+1));r.get("dpl")||(r.append("dpl",e),t=t.slice(0,n)+"?"+r.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:o,kind:d}=function({deviceSizes:e,allSizes:t},n,r){if(r){let n=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=n.exec(r);)i.push(parseInt(e[2]));if(i.length){let n=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*n),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof n?{widths:e,kind:"w"}:{widths:[...new Set([n,2*n].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,s),c=o.length-1;return{sizes:s||"w"!==d?s:"100vw",srcSet:o.map((n,r)=>`${l({config:e,src:t,quality:a,width:n})} ${"w"===d?n:r+1}${d}`).join(", "),src:l({config:e,src:t,quality:a,width:o[c]})}}({config:T,src:e,unoptimized:n,width:U,quality:G,sizes:t,loader:K}),ee=V?"lazy":f;return{props:{...z,loading:ee,fetchPriority:N,width:U,height:H,decoding:S,className:p,style:{...J,...Q},sizes:Z.sizes,srcSet:Z.srcSet,src:y||Z.src},meta:{unoptimized:n,preload:u||c,placeholder:j,fill:x}}}},898879,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return l}});let r=e.r(271645),i="u"<typeof window,a=i?()=>{}:r.useLayoutEffect,s=i?()=>{}:r.useEffect;function l(e){let{headManager:t,reduceComponentsToState:n}=e;function l(){if(t&&t.mountedInstances){let e=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(e))}}return i&&(t?.mountedInstances?.add(e.children),l()),a(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),a(()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}}]);
|
|
File without changes
|
/package/.next/static/{pekZvsOZ3_8_ohluwgZtY → mTdCVAiiVKCutbZcekyHn}/_clientMiddlewareManifest.js
RENAMED
|
File without changes
|
|
File without changes
|