@forsion/unit 2.13.2 → 2.13.3
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/main.mjs +3 -3
- package/package.json +1 -1
- package/release.json +5 -5
- package/web/assets/{ArtificialView-Bs_6B211.js → ArtificialView-DS97zlMg.js} +1 -1
- package/web/assets/{AutomationBuilder-C-IFaaBp.js → AutomationBuilder-BsJc8wuC.js} +1 -1
- package/web/assets/{CalendarConfigView-DEsNvVkD.js → CalendarConfigView-BN8mraSo.js} +1 -1
- package/web/assets/{CalendarView-D7ZUE_dr.js → CalendarView-D55PA1vn.js} +1 -1
- package/web/assets/{CapabilityMenu-CrsaTtDe.js → CapabilityMenu-BVrokPpT.js} +1 -1
- package/web/assets/{CheckboxInput-DVO2-1J7.js → CheckboxInput-BuJ3HPm_.js} +1 -1
- package/web/assets/{Chrome-BvpbCvo1.js → Chrome-amTcZNE4.js} +1 -1
- package/web/assets/{CodeView-CB4kG7Y6.js → CodeView-DRVh13k9.js} +3 -3
- package/web/assets/DashboardGridView-D9s9pez_.css +1 -0
- package/web/assets/{DashboardGridView-tgaj9-SM.js → DashboardGridView-DlFyYfUh.js} +2 -2
- package/web/assets/{EventCard-c6s4uGBu.js → EventCard-DUrn2krw.js} +1 -1
- package/web/assets/{ExcalidrawCanvas-NdV86AR3.js → ExcalidrawCanvas-TpbzBF-J.js} +1 -1
- package/web/assets/{FloatingToc-ldOYWe2C.js → FloatingToc-B1d4-5EL.js} +1 -1
- package/web/assets/HomepageView-DnQ_5Obe.css +1 -0
- package/web/assets/{HomepageView-4joJWYlg.js → HomepageView-nzKfbHM-.js} +1 -1
- package/web/assets/{ImageStudioPanels-DgMYAsHj.js → ImageStudioPanels-B2PTq6Yb.js} +1 -1
- package/web/assets/{ImageStudioView-_CYHoOoG.js → ImageStudioView-Cawr6pGW.js} +1 -1
- package/web/assets/{InlineFiles-BIfsx3R-.js → InlineFiles-DKPH5JHz.js} +1 -1
- package/web/assets/{MarkdownBlock-wYEaBBOr.js → MarkdownBlock-BHpDy2qQ.js} +1 -1
- package/web/assets/{ModelPill-DveHcLqq.js → ModelPill-ChzAM3z1.js} +1 -1
- package/web/assets/{MuseLibraryView-Do9RnKiq.js → MuseLibraryView-DLuQ_jyV.js} +2 -2
- package/web/assets/{MuseView-3GL4Ltoj.js → MuseView-CDDwV6SR.js} +2 -2
- package/web/assets/{PageHistoryPanel-BMQC-V_l.js → PageHistoryPanel-BbdXpjJM.js} +2 -2
- package/web/assets/{PdfAnnotator-CyAw8sgq.js → PdfAnnotator-CW0wPWRB.js} +1 -1
- package/web/assets/{PenRow-BSB-h5Pb.js → PenRow-BY-MZLDQ.js} +1 -1
- package/web/assets/{ProductView-B96OeHOP.js → ProductView-0ieVL3rY.js} +1 -1
- package/web/assets/{RightPanel-BgSeCLnw.js → RightPanel-BRexwQ3W.js} +1 -1
- package/web/assets/RunLocationPicker-BrDfOu8-.css +1 -0
- package/web/assets/RunLocationPicker-CadYiE7C.js +43 -0
- package/web/assets/{SketchCard-DAD0jR0i.js → SketchCard-BcXCdBAs.js} +1 -1
- package/web/assets/{StudioGuestSurface-DlUKXBXv.js → StudioGuestSurface-ZJFKnNYF.js} +1 -1
- package/web/assets/{TodoListView-_yFkPUrw.js → TodoListView-DuRdVFgB.js} +1 -1
- package/web/assets/{Tooltip-DXuy9-1_.js → Tooltip-DtDUL18W.js} +1 -1
- package/web/assets/{UnifiedPage-EJNWKzxN.js → UnifiedPage-D7JTfABH.js} +3 -3
- package/web/assets/{amadeus-manual.en-DzRWr4BL.js → amadeus-manual.en-B8J-svqq.js} +1 -1
- package/web/assets/{amadeus-manual.zh-DW32DkL7.js → amadeus-manual.zh-CkCOFnrg.js} +1 -1
- package/web/assets/appStore-ClD7vq5L.css +1 -0
- package/web/assets/{appStore-CidPWYa0.js → appStore-affnJoin.js} +155 -117
- package/web/assets/{arrow-up-right-KPFbRA41.js → arrow-up-right-R4P9Mmxz.js} +1 -1
- package/web/assets/{astryxBridge-Bupzouso.js → astryxBridge-CT2wZJXs.js} +3 -3
- package/web/assets/{automationListSource-1aOVKBLw.js → automationListSource-JVBMsMbC.js} +1 -1
- package/web/assets/{boardSurface-BHuMoQN-.js → boardSurface-Ce0_vf9f.js} +1 -1
- package/web/assets/{book-open-CBeNsIpo.js → book-open-CcXCToyx.js} +1 -1
- package/web/assets/{calendarNavStore-Duyhbmm_.js → calendarNavStore-tQJRVpum.js} +1 -1
- package/web/assets/{canvasPrefs-CxfyDTMT.js → canvasPrefs-CSuX9aLF.js} +1 -1
- package/web/assets/{chatBoxSurface-OBzO1Z5E.js → chatBoxSurface-IG6Vu4Dz.js} +1 -1
- package/web/assets/{circle-question-mark-M8QUJJYk.js → circle-question-mark-O8AhUz35.js} +1 -1
- package/web/assets/{circle-x-Szwop5L_.js → circle-x-AV2ZWulM.js} +1 -1
- package/web/assets/{client-CPUljePZ.js → client-BqhpYbYL.js} +1 -1
- package/web/assets/{code-xml-n9mgGgkv.js → code-xml-DdR58F83.js} +1 -1
- package/web/assets/{codeStudioStore-DXMQwRzG.js → codeStudioStore-Dq5i8nbE.js} +1 -1
- package/web/assets/codingNavigation-CxdCK78-.js +53 -0
- package/web/assets/codingNavigation-_tOR0ell.css +1 -0
- package/web/assets/{create-C19zqt5N.js → create-BgJN5qsj.js} +2 -2
- package/web/assets/{dashboardSurface-BwcH16Qc.js → dashboardSurface-BY-AFB-r.js} +1 -1
- package/web/assets/{deskCapture-B_LKZSPt.js → deskCapture-BD2qD6NI.js} +1 -1
- package/web/assets/{diff2html-DrCCWvpR.js → diff2html-OoRdHZ_O.js} +1 -1
- package/web/assets/{docx-preview-Bi7wekSM.js → docx-preview-B43XC8Cn.js} +1 -1
- package/web/assets/{emoji-DczIG8SO.js → emoji-BPdA62d7.js} +1 -1
- package/web/assets/{floatingTocSurface-rc1ZC7-I.js → floatingTocSurface-BM2SYE_u.js} +1 -1
- package/web/assets/{foldActions-BGocXE-o.js → foldActions-BcyvNVBs.js} +1 -1
- package/web/assets/{folder-CoOsfQ64.js → folder-CCZqnwRc.js} +1 -1
- package/web/assets/{folder-plus-d5MwIMlf.js → folder-plus-BJKT1Pqg.js} +1 -1
- package/web/assets/{gestures-CXFaEydn.js → gestures-BwPbZDkU.js} +1 -1
- package/web/assets/{hand-fuehbnkI.js → hand-DRu7IJdU.js} +1 -1
- package/web/assets/{hard-drive-Bh1DmZg0.js → hard-drive-CXNJUCXw.js} +1 -1
- package/web/assets/i18n-BMo19xaR.css +1 -0
- package/web/assets/i18n.generated-DvY59Zq3.js +15 -0
- package/web/assets/{imageStudio-Dgl1wZNB.js → imageStudio-Axwmd4GW.js} +2 -2
- package/web/assets/imageStudio-DZ0qGU2s.css +1 -0
- package/web/assets/{index-e-MxdHFO.js → index-B1rE_NwA.js} +1 -1
- package/web/assets/{index-lfow5R3O.js → index-BFTY79aq.js} +1 -1
- package/web/assets/{index-38xsQSS9.js → index-BGEkZBs2.js} +1 -1
- package/web/assets/{index-YRWOePBS.js → index-BO2XJc36.js} +1 -1
- package/web/assets/{index-B5UW6SaE.js → index-BYUntVIZ.js} +2 -2
- package/web/assets/{index-2tD0kijW.js → index-C65u4fXd.js} +1 -1
- package/web/assets/{index-BCG8Wnc4.js → index-C_Ohi-I3.js} +1 -1
- package/web/assets/{index-Dff-DL1v.js → index-CkMhazev.js} +1 -1
- package/web/assets/{index-Dc8iMctf.js → index-CobUnTcv.js} +1 -1
- package/web/assets/{index-Dy07SBfH.js → index-D102FOuM.js} +1 -1
- package/web/assets/{index-B8Co6KG3.js → index-D3CYvMpl.js} +1 -1
- package/web/assets/{index-QjVOA7QM.js → index-D78izbLA.js} +1 -1
- package/web/assets/{index-BPqoEOV_.js → index-DDMXVG0h.js} +1 -1
- package/web/assets/{index-CPLtf9Vc.js → index-DY0M_dpd.js} +1 -1
- package/web/assets/{index-7kdR1oL8.js → index-DcbZwhpE.js} +1 -1
- package/web/assets/{index-D4CSH-v1.js → index-Dlkq7gkE.js} +1 -1
- package/web/assets/{index-Ch0FIsJX.js → index-HqmJW2np.js} +1 -1
- package/web/assets/{index-DcRyQ3eU.js → index-LxlyPm0_.js} +1 -1
- package/web/assets/{index-Ce1sNSS8.js → index-Uq4J2aoW.js} +1 -1
- package/web/assets/{index-DvOrTnw2.js → index-WbVt2P8R.js} +1 -1
- package/web/assets/{index-Df9jregv.js → index-XyjIhkPw.js} +1 -1
- package/web/assets/{index-BqGpbntz.js → index-Y2kzYlZq.js} +1 -1
- package/web/assets/{index-CnDAYLti.js → index-mB0EQkyZ.js} +1 -1
- package/web/assets/{index-fViJsYjM.js → index-pJh7JN7_.js} +1 -1
- package/web/assets/{index-Dx9aIoyo.js → index-taRxNsbp.js} +1 -1
- package/web/assets/{invitePage-Dgl3-c_m.js → invitePage-BW0BH8Ac.js} +1 -1
- package/web/assets/{ipc-CNlIRMtU.js → ipc-D7yENkjV.js} +1 -1
- package/web/assets/{jszip.min-tyV0GaJg.js → jszip.min-UE5d5vPJ.js} +1 -1
- package/web/assets/{layout-grid-DFmwM9NU.js → layout-grid-Hs3eDA07.js} +1 -1
- package/web/assets/{linkFollow-iP2zfbA3.js → linkFollow-Msu1XH9v.js} +4 -4
- package/web/assets/{list-tree-i07HsP3D.js → list-tree-DmuRb-p9.js} +1 -1
- package/web/assets/{listFold-Aea6I0Sa.js → listFold-CKxjyY5_.js} +1 -1
- package/web/assets/{lock-TSDKuCod.js → lock-kffGfeHt.js} +1 -1
- package/web/assets/{log-out-DK84lW5n.js → log-out-B5gEP0tF.js} +1 -1
- package/web/assets/main-DIyFlyfK.js +20 -0
- package/web/assets/markdownEditorSurface-Cx2rqFAY.js +3 -0
- package/web/assets/{message-square-plus-3wFslIMY.js → message-square-plus-DxBPIhPS.js} +1 -1
- package/web/assets/{messages-DEAGRsC3.js → messages-4w1Khzm1.js} +1 -1
- package/web/assets/minus-CfoZ4oxr.js +1 -0
- package/web/assets/{mobileEntry-5UaAITwY.js → mobileEntry-B8JwR53-.js} +1 -1
- package/web/assets/{nativeDownload-B3JGkABw.js → nativeDownload-Udrv_tmU.js} +1 -1
- package/web/assets/{pageChrome-DFi9zs6F.js → pageChrome-D-9npbUE.js} +1 -1
- package/web/assets/{pageChrome-BDHHmRnt.css → pageChrome-eO9pb2fH.css} +1 -1
- package/web/assets/{pageTree-DZ7Eiro-.js → pageTree-CIXFRCLk.js} +2 -2
- package/web/assets/{pen-tool-ChGmX6g_.js → pen-tool-D_Y9We9x.js} +1 -1
- package/web/assets/{pencil-CJsJD7M_.js → pencil-DGiTRzW1.js} +1 -1
- package/web/assets/phoneList-BQfCJwKF.css +1 -0
- package/web/assets/{phoneList-DrxIwJxQ.js → phoneList-DHUia6HT.js} +1 -1
- package/web/assets/{pluginChat-0QI9a8Q1.js → pluginChat-BXuJiMYi.js} +1 -1
- package/web/assets/{redo-2-CI57sDFr.js → redo-2-QgiKEg9T.js} +1 -1
- package/web/assets/{rotate-ccw-xgT_0UN9.js → rotate-ccw-BLoH5er1.js} +1 -1
- package/web/assets/{sharePage-C2Yqx0NQ.js → sharePage-DYYN5usb.js} +2 -2
- package/web/assets/{shareViewer-DKPWhTJv.js → shareViewer-BzuSyJv_.js} +1 -1
- package/web/assets/{star-C9KTji9N.js → star-BmywYD3u.js} +1 -1
- package/web/assets/{tableSurface-cYs6dX6B.js → tableSurface-21LDYY_G.js} +1 -1
- package/web/assets/{terminal-DPZazOQ2.js → terminal-BlmA_Z1C.js} +1 -1
- package/web/assets/{terminalView-CsJmxE_m.js → terminalView-SAxITnRW.js} +1 -1
- package/web/assets/{type-C5J875vb.js → type-DmIL6FB-.js} +1 -1
- package/web/assets/{undo-2-BOUt5qks.js → undo-2-yMeXc8Wi.js} +1 -1
- package/web/assets/{unitAccount-BIAIxKNp.js → unitAccount-BPYRAa3m.js} +1 -1
- package/web/assets/{unitBridge-b2C6zb3a.js → unitBridge-BNVzai6X.js} +1 -1
- package/web/assets/{unitCloudTransport-NGtDDKWo.js → unitCloudTransport-iFweA1xk.js} +1 -1
- package/web/assets/{unitOwnerAccess-CwH9ApZT.js → unitOwnerAccess-Bggl7bDP.js} +1 -1
- package/web/assets/{unitShim-CY8EVkKD.js → unitShim-BP2nBO_k.js} +3 -3
- package/web/assets/{upload-CrbEAW8C.js → upload-D20PZHXc.js} +1 -1
- package/web/assets/userSpaces-CrLrKklx.js +1 -0
- package/web/assets/{viewportLock-Bi3orrUs.css → viewportLock-DO1lzA2N.css} +1 -1
- package/web/assets/viewportLock-tlT6H_Hc.js +629 -0
- package/web/assets/{workflow-DY2Cnaei.js → workflow-Bd6xBHiT.js} +1 -1
- package/web/assets/{zoom-in-BcuPvIYd.js → zoom-in-_TgFOpyv.js} +1 -1
- package/web/index.html +2 -2
- package/web/assets/DashboardGridView-hpRmBr9B.css +0 -1
- package/web/assets/HomepageView-Cxf3AWBu.css +0 -1
- package/web/assets/RunLocationPicker-CEmFio4n.css +0 -1
- package/web/assets/RunLocationPicker-M1UoJyjf.js +0 -38
- package/web/assets/appStore-DeaC1U32.css +0 -1
- package/web/assets/codingNavigation-CCjs1kon.js +0 -53
- package/web/assets/codingNavigation-yp19w6uu.css +0 -1
- package/web/assets/i18n-DjziAw8r.css +0 -1
- package/web/assets/i18n.generated-BiQFRL2U.js +0 -15
- package/web/assets/imageStudio--KF9gwHA.css +0 -1
- package/web/assets/main-D7CEGndC.js +0 -20
- package/web/assets/markdownEditorSurface-DISu_twy.js +0 -3
- package/web/assets/minus-BBdfT_sc.js +0 -1
- package/web/assets/phoneList-DvpzD3zT.css +0 -1
- package/web/assets/userSpaces-B_Njvel_.js +0 -1
- package/web/assets/viewportLock-DZ927PNz.js +0 -629
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{u as A,d as i,bO as q,j as e}from"./index-
|
|
2
|
-
`),G=r=>(r.split("/").pop()??r).replace(/\.md$/i,"");function Ht({path:r,locked:b,onClose:m}){const{t:s}=A(),y=i.useId(),[n,F]=i.useState(null),[j,I]=i.useState(null),[
|
|
1
|
+
import{u as A,d as i,bO as q,j as e}from"./index-BYUntVIZ.js";import{dm as g,bq as z,aF as U,gE as V,cq as S,l3 as K,fo as X}from"./appStore-affnJoin.js";import{c as _,D as $}from"./create-BgJN5qsj.js";import{r as B}from"./DashboardGridView-DlFyYfUh.js";import{e as O}from"./UnifiedPage-D7JTfABH.js";import"./nativeDownload-Udrv_tmU.js";import"./ipc-D7yENkjV.js";import"./client-BqhpYbYL.js";import"./FloatingToc-B1d4-5EL.js";import"./MarkdownBlock-BHpDy2qQ.js";import"./index-Y2kzYlZq.js";import"./linkFollow-Msu1XH9v.js";import"./emoji-BPdA62d7.js";import"./listFold-CKxjyY5_.js";import"./book-open-CcXCToyx.js";import"./pageChrome-D-9npbUE.js";import"./upload-D20PZHXc.js";import"./pageTree-CIXFRCLk.js";import"./pluginExt-Byb64tQO.js";import"./phoneList-DHUia6HT.js";import"./list-tree-DmuRb-p9.js";import"./pen-tool-D_Y9We9x.js";import"./pencil-DGiTRzW1.js";import"./star-BmywYD3u.js";import"./folder-plus-BJKT1Pqg.js";import"./type-DmIL6FB-.js";import"./undo-2-yMeXc8Wi.js";import"./redo-2-QgiKEg9T.js";import"./code-xml-DdR58F83.js";import"./lock-kffGfeHt.js";import"./folder-CCZqnwRc.js";import"./layout-grid-Hs3eDA07.js";import"./SketchCard-BcXCdBAs.js";import"./arrow-up-right-R4P9Mmxz.js";import"./Chrome-amTcZNE4.js";import"./minus-CfoZ4oxr.js";import"./canvasPrefs-CSuX9aLF.js";import"./hand-DRu7IJdU.js";import"./foldActions-BcyvNVBs.js";import"./message-square-plus-DxBPIhPS.js";const W=2e5,v=r=>r.replace(/\r\n?/g,`
|
|
2
|
+
`),G=r=>(r.split("/").pop()??r).replace(/\.md$/i,"");function Ht({path:r,locked:b,onClose:m}){const{t:s}=A(),y=i.useId(),[n,F]=i.useState(null),[j,I]=i.useState(null),[p,M]=i.useState(null),[o,u]=i.useState(null),[f,R]=i.useState({}),[d,L]=i.useState("content"),[N,w]=i.useState(!1),[k,E]=i.useState(!1),D=i.useRef(!1);D.current=N;const P=i.useRef(null);i.useEffect(()=>{let t=!0;return(async()=>{await q(r).catch(()=>{});try{const[a,c]=await Promise.all([g.listPageHistory?.(r)??[],g.readTextFile(r).catch(()=>null)]);if(!t)return;F(a),M(c),u(a[0]?.id??null)}catch(a){t&&I(O(a))}})(),()=>{t=!1}},[r]),i.useEffect(()=>{if(!o||o in f)return;let t=!0;return(g.readPageHistory?.(r,o)??Promise.resolve(null)).catch(()=>null).then(a=>{t&&R(c=>({...c,[o]:a}))}),()=>{t=!1}},[r,o,f]),i.useEffect(()=>{const t=a=>{a.key==="Escape"&&!D.current&&m()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[m]);const h=n?.find(t=>t.id===o)??null,l=o?f[o]:void 0,x=i.useMemo(()=>{if(d!=="diff"||typeof l!="string"||p==null)return null;const t=v(p),a=v(l);return t===a?{kind:"same"}:t.length+a.length>W?{kind:"large"}:{kind:"patch",patch:_(s("pghist.diff.current"),s("pghist.diff.version"),t,a,"","",{context:3})}},[d,l,p,s]),T=t=>{if(!n?.length)return;const a=Math.max(0,n.findIndex(H=>H.id===o)),c=n[Math.min(n.length-1,Math.max(0,a+t))];u(c.id),P.current?.querySelector(`[data-hist-id="${c.id}"]`)?.scrollIntoView({block:"nearest"})},C=async()=>{if(!h||k)return;E(!0);const t=await B(r,h);E(!1),t&&m()};return z.createPortal(e.jsxs("div",{className:"am-app tangu-lovable",style:{display:"contents"},children:[e.jsx("div",{className:"dialog-overlay",onMouseDown:m,children:e.jsxs("div",{className:"dialog amx-hist",role:"dialog","aria-modal":"true","aria-labelledby":y,"data-testid":"page-history",onMouseDown:t=>t.stopPropagation(),children:[e.jsxs("div",{className:"amx-hist-head",children:[e.jsxs("div",{className:"dialog-title",id:y,children:[s("pghist.menu"),e.jsx("span",{className:"amx-hist-note",children:G(r)})]}),e.jsx("button",{type:"button",className:"amx-hist-close",onClick:m,title:s("pghist.close"),"aria-label":s("pghist.close"),children:e.jsx(U,{size:15})})]}),e.jsx("div",{className:"amx-hist-body",children:j!=null?e.jsx("div",{className:"amx-hist-state",children:s("pghist.loadFailed",{reason:j})}):n==null?e.jsx("div",{className:"amx-hist-state",children:s("pghist.loading")}):n.length===0?e.jsx("div",{className:"amx-hist-state","data-hist-empty":!0,children:s("pghist.empty")}):e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:P,className:"amx-hist-list",role:"listbox","aria-label":s("pghist.listLabel"),tabIndex:0,onKeyDown:t=>{(t.key==="ArrowDown"||t.key==="ArrowUp")&&(t.preventDefault(),T(t.key==="ArrowDown"?1:-1))},children:n.map(t=>e.jsxs("div",{className:"amx-hist-row",role:"option","aria-selected":t.id===o,"data-hist-id":t.id,onClick:()=>u(t.id),children:[e.jsx("span",{className:"amx-hist-rel",children:V(t.at)}),e.jsxs("span",{className:"amx-hist-meta",children:[S(t.at)," · ",K(t.size)]})]},t.id))}),e.jsxs("div",{className:"amx-hist-preview",children:[e.jsx("div",{className:"amx-hist-tabs",role:"tablist",children:["content","diff"].map(t=>e.jsx("button",{type:"button",role:"tab",className:"amx-hist-tab","aria-selected":d===t,"data-hist-tab":t,onClick:()=>L(t),children:s(t==="content"?"pghist.tab.content":"pghist.tab.diff")},t))}),e.jsx("div",{className:"amx-hist-view","data-hist-view":d,children:l===void 0?e.jsx("div",{className:"amx-hist-state",children:s("pghist.loading")}):l===null?e.jsx("div",{className:"amx-hist-state",children:s("pghist.previewFailed")}):d==="content"?e.jsx("pre",{className:"amx-hist-text",children:v(l)}):x?.kind==="patch"?e.jsx($,{text:x.patch,side:!1}):e.jsx("div",{className:"amx-hist-state",children:s(x?.kind==="large"?"pghist.tooLarge":"pghist.same")})})]})]})}),e.jsxs("div",{className:"amx-hist-foot",children:[e.jsx("span",{className:"amx-hist-hint",children:s(b?"pghist.lockedHint":"pghist.restoreHint")}),e.jsx("button",{type:"button",className:"dialog-btn","data-primary":!0,"data-hist-restore":!0,disabled:b||k||!h||typeof l!="string",onClick:()=>w(!0),children:s("pghist.restore")})]})]})}),N&&h&&e.jsx(X,{title:s("pghist.confirm.title",{time:S(h.at)}),message:s("pghist.confirm.msg"),confirmLabel:s("pghist.confirm.ok"),danger:!1,onConfirm:()=>{C()},onClose:()=>w(!1)})]}),document.body)}export{Ht as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ho=Object.defineProperty;var Re=a=>{throw TypeError(a)};var Uo=(a,e,t)=>e in a?Ho(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Oe=(a,e,t)=>Uo(a,typeof e!="symbol"?e+"":e,t),Wo=(a,e,t)=>e.has(a)||Re("Cannot "+t);var Ot=(a,e,t)=>(Wo(a,e,"read from private field"),t?t.call(a):e.get(a)),Ne=(a,e,t)=>e.has(a)?Re("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t);import{u as Eo,d as at,j as U,o as $o,cr as Go,r as Zo}from"./index-B5UW6SaE.js";import{AnnotationMode as Qo,AnnotationEditorType as Ko,getDocument as je,GlobalWorkerOptions as Yo}from"./pdf-C2_sJa3b.js";import{p as Jo}from"./pdf.worker.min-CGb3BKV9.js";import{dm as ce,bn as Xo}from"./appStore-CidPWYa0.js";import"./nativeDownload-B3JGkABw.js";import"./ipc-CNlIRMtU.js";import"./client-CPUljePZ.js";var _o={9306(a,e,t){var o=t(4901),r=t(6823),i=TypeError;a.exports=function(n){if(o(n))return n;throw new i(r(n)+" is not a function")}},3506(a,e,t){var o=t(3925),r=String,i=TypeError;a.exports=function(n){if(o(n))return n;throw new i("Can't set "+r(n)+" as a prototype")}},7080(a,e,t){var o=t(4402).has;a.exports=function(r){return o(r),r}},3463(a){var e=TypeError;a.exports=function(t){if(typeof t=="string")return t;throw new e("Argument is not a string")}},4328(a,e,t){var o=t(4995),r=new o.WeakMap,i=o.set,n=o.remove;a.exports=function(s){return i(r,s,1),n(r,s),s}},6557(a,e,t){var o=t(4995).has;a.exports=function(r){return o(r),r}},6469(a,e,t){var o=t(8227),r=t(2360),i=t(4913).f,n=o("unscopables"),s=Array.prototype;s[n]===void 0&&i(s,n,{configurable:!0,value:r(null)}),a.exports=function(l){s[n][l]=!0}},679(a,e,t){var o=t(1625),r=TypeError;a.exports=function(i,n){if(o(n,i))return i;throw new r("Incorrect invocation")}},8551(a,e,t){var o=t(34),r=String,i=TypeError;a.exports=function(n){if(o(n))return n;throw new i(r(n)+" is not an object")}},7811(a){a.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},7394(a,e,t){var o=t(4576),r=t(6706),i=t(2195),n=o.ArrayBuffer,s=o.TypeError;a.exports=n&&r(n.prototype,"byteLength","get")||function(l){if(i(l)!=="ArrayBuffer")throw new s("ArrayBuffer expected");return l.byteLength}},3238(a,e,t){var o=t(4576),r=t(7811),i=t(7394),n=o.DataView;a.exports=function(s){if(!r||i(s)!==0)return!1;try{return new n(s),!1}catch{return!0}}},5169(a,e,t){var o=t(3238),r=TypeError;a.exports=function(i){if(o(i))throw new r("ArrayBuffer is detached");return i}},5636(a,e,t){var o=t(4576),r=t(9504),i=t(6706),n=t(7696),s=t(5169),l=t(7394),d=t(4483),c=t(1548),u=o.structuredClone,g=o.ArrayBuffer,h=o.DataView,p=Math.max,f=Math.min,m=g.prototype,x=h.prototype,k=r(m.slice),C=i(m,"resizable","get"),y=i(m,"maxByteLength","get"),v=r(x.getInt8),A=r(x.setInt8);a.exports=(c||d)&&function(S,I,b){var E=l(S),P=I===void 0?E:n(I),B=!C||!C(S),D;if(s(S),c&&(S=u(S,{transfer:[S]}),E===P&&(b||B)))return S;if(E>=P&&(!b||B))D=k(S,0,P);else{var z=b&&!B&&y?{maxByteLength:p(P,y(S))}:void 0;D=new g(P,z);for(var Q=new h(S),T=new h(D),N=f(P,E),H=0;H<N;H++)A(T,H,v(Q,H))}return c||d(S),D}},4644(a,e,t){var o=t(7811),r=t(3724),i=t(4576),n=t(4901),s=t(34),l=t(9297),d=t(6955),c=t(6823),u=t(6699),g=t(6840),h=t(2106),p=t(1625),f=t(2787),m=t(2967),x=t(8227),k=t(3392),C=t(1181),y=C.enforce,v=C.get,A=i.Int8Array,S=A&&A.prototype,I=i.Uint8ClampedArray,b=I&&I.prototype,E=A&&f(A),P=S&&f(S),B=Object.prototype,D=i.TypeError,z=x("toStringTag"),Q=k("TYPED_ARRAY_TAG"),T="TypedArrayConstructor",N=o&&!!m&&d(i.opera)!=="Opera",H=!1,W,ot,X,q={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},J={BigInt64Array:8,BigUint64Array:8},gt=function(V){if(!s(V))return!1;var _=d(V);return _==="DataView"||l(q,_)||l(J,_)},it=function(j){var V=f(j);if(s(V)){var _=v(V);return _&&l(_,T)?_[T]:it(V)}},M=function(j){if(!s(j))return!1;var V=d(j);return l(q,V)||l(J,V)},L=function(j){if(M(j))return j;throw new D("Target is not a typed array")},F=function(j){if(n(j)&&(!m||p(E,j)))return j;throw new D(c(j)+" is not a typed array constructor")},O=function(j,V,_,st){if(r){if(_)for(var et in q){var tt=i[et];if(tt&&l(tt.prototype,j))try{delete tt.prototype[j]}catch{try{tt.prototype[j]=V}catch{}}}(!P[j]||_)&&g(P,j,_?V:N&&S[j]||V,st)}},Z=function(j,V,_){var st,et;if(r){if(m){if(_){for(st in q)if(et=i[st],et&&l(et,j))try{delete et[j]}catch{}}if(!E[j]||_)try{return g(E,j,_?V:N&&E[j]||V)}catch{}else return}for(st in q)et=i[st],et&&(!et[j]||_)&&g(et,j,V)}};for(W in q)ot=i[W],X=ot&&ot.prototype,X?y(X)[T]=ot:N=!1;for(W in J)ot=i[W],X=ot&&ot.prototype,X&&(y(X)[T]=ot);if((!N||!n(E)||E===Function.prototype)&&(E=function(){throw new D("Incorrect invocation")},N))for(W in q)i[W]&&m(i[W],E);if((!N||!P||P===B)&&(P=E.prototype,N))for(W in q)i[W]&&m(i[W].prototype,P);if(N&&f(b)!==P&&m(b,P),r&&!l(P,z)){H=!0,h(P,z,{configurable:!0,get:function(){return s(this)?this[Q]:void 0}});for(W in q)i[W]&&u(i[W].prototype,Q,W)}a.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:H&&Q,aTypedArray:L,aTypedArrayConstructor:F,exportTypedArrayMethod:O,exportTypedArrayStaticMethod:Z,getTypedArrayConstructor:it,isView:gt,isTypedArray:M,TypedArray:E,TypedArrayPrototype:P}},9617(a,e,t){var o=t(5397),r=t(5610),i=t(6198),n=function(s){return function(l,d,c){var u=o(l),g=i(u);if(g===0)return!s&&-1;var h=r(c,g),p;if(s&&d!==d){for(;g>h;)if(p=u[h++],p!==p)return!0}else for(;g>h;h++)if((s||h in u)&&u[h]===d)return s||h||0;return!s&&-1}};a.exports={includes:n(!0),indexOf:n(!1)}},4527(a,e,t){var o=t(3724),r=t(4376),i=TypeError,n=Object.getOwnPropertyDescriptor,s=o&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(l){return l instanceof TypeError}})();a.exports=s?function(l,d){if(r(l)&&!n(l,"length").writable)throw new i("Cannot set read only .length");return l.length=d}:function(l,d){return l.length=d}},7680(a,e,t){var o=t(9504);a.exports=o([].slice)},6319(a,e,t){var o=t(8551),r=t(9539);a.exports=function(i,n,s,l){try{return l?n(o(s)[0],s[1]):n(s)}catch(d){r(i,"throw",d)}}},2195(a,e,t){var o=t(9504),r=o({}.toString),i=o("".slice);a.exports=function(n){return i(r(n),8,-1)}},6955(a,e,t){var o=t(2140),r=t(4901),i=t(2195),n=t(8227),s=n("toStringTag"),l=Object,d=i((function(){return arguments})())==="Arguments",c=function(u,g){try{return u[g]}catch{}};a.exports=o?i:function(u){var g,h,p;return u===void 0?"Undefined":u===null?"Null":typeof(h=c(g=l(u),s))=="string"?h:d?i(g):(p=i(g))==="Object"&&r(g.callee)?"Arguments":p}},7740(a,e,t){var o=t(9297),r=t(5031),i=t(7347),n=t(4913);a.exports=function(s,l,d){for(var c=r(l),u=n.f,g=i.f,h=0;h<c.length;h++){var p=c[h];!o(s,p)&&!(d&&o(d,p))&&u(s,p,g(l,p))}}},2211(a,e,t){var o=t(9039);a.exports=!o(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})},2529(a){a.exports=function(e,t){return{value:e,done:t}}},6699(a,e,t){var o=t(3724),r=t(4913),i=t(6980);a.exports=o?function(n,s,l){return r.f(n,s,i(1,l))}:function(n,s,l){return n[s]=l,n}},6980(a){a.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},4659(a,e,t){var o=t(3724),r=t(4913),i=t(6980);a.exports=function(n,s,l){o?r.f(n,s,i(0,l)):n[s]=l}},2106(a,e,t){var o=t(283),r=t(4913);a.exports=function(i,n,s){return s.get&&o(s.get,n,{getter:!0}),s.set&&o(s.set,n,{setter:!0}),r.f(i,n,s)}},6840(a,e,t){var o=t(4901),r=t(4913),i=t(283),n=t(9433);a.exports=function(s,l,d,c){c||(c={});var u=c.enumerable,g=c.name!==void 0?c.name:l;if(o(d)&&i(d,g,c),c.global)u?s[l]=d:n(l,d);else{try{c.unsafe?s[l]&&(u=!0):delete s[l]}catch{}u?s[l]=d:r.f(s,l,{value:d,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return s}},6279(a,e,t){var o=t(6840);a.exports=function(r,i,n){for(var s in i)o(r,s,i[s],n);return r}},9433(a,e,t){var o=t(4576),r=Object.defineProperty;a.exports=function(i,n){try{r(o,i,{value:n,configurable:!0,writable:!0})}catch{o[i]=n}return n}},3724(a,e,t){var o=t(9039);a.exports=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4483(a,e,t){var o=t(4576),r=t(9429),i=t(1548),n=o.structuredClone,s=o.ArrayBuffer,l=o.MessageChannel,d=!1,c,u,g,h;if(i)d=function(p){n(p,{transfer:[p]})};else if(s)try{l||(c=r("worker_threads"),c&&(l=c.MessageChannel)),l&&(u=new l,g=new s(2),h=function(p){u.port1.postMessage(null,[p])},g.byteLength===2&&(h(g),g.byteLength===0&&(d=h)))}catch{}a.exports=d},4055(a,e,t){var o=t(4576),r=t(34),i=o.document,n=r(i)&&r(i.createElement);a.exports=function(s){return n?i.createElement(s):{}}},6837(a){var e=TypeError,t=9007199254740991;a.exports=function(o){if(o>t)throw new e("Maximum allowed index exceeded");return o}},8727(a){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6193(a,e,t){var o=t(4215);a.exports=o==="NODE"},2839(a,e,t){var o=t(4576),r=o.navigator,i=r&&r.userAgent;a.exports=i?String(i):""},9519(a,e,t){var o=t(4576),r=t(2839),i=o.process,n=o.Deno,s=i&&i.versions||n&&n.version,l=s&&s.v8,d,c;l&&(d=l.split("."),c=d[0]>0&&d[0]<4?1:+(d[0]+d[1])),!c&&r&&(d=r.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=r.match(/Chrome\/(\d+)/),d&&(c=+d[1]))),a.exports=c},4215(a,e,t){var o=t(4576),r=t(2839),i=t(2195),n=function(s){return r.slice(0,s.length)===s};a.exports=(function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":o.Bun&&typeof Bun.version=="string"?"BUN":o.Deno&&typeof Deno.version=="object"?"DENO":i(o.process)==="process"?"NODE":o.window&&o.document?"BROWSER":"REST"})()},6518(a,e,t){var o=t(4576),r=t(7347).f,i=t(6699),n=t(6840),s=t(9433),l=t(7740),d=t(2796);a.exports=function(c,u){var g=c.target,h=c.global,p=c.stat,f,m,x,k,C,y;if(h?m=o:p?m=o[g]||s(g,{}):m=o[g]&&o[g].prototype,m)for(x in u){if(C=u[x],c.dontCallGetSet?(y=r(m,x),k=y&&y.value):k=m[x],f=d(h?x:g+(p?".":"#")+x,c.forced),!f&&k!==void 0){if(typeof C==typeof k)continue;l(C,k)}(c.sham||k&&k.sham)&&i(C,"sham",!0),n(m,x,C,c)}}},9039(a){a.exports=function(e){try{return!!e()}catch{return!0}}},8745(a,e,t){var o=t(616),r=Function.prototype,i=r.apply,n=r.call;a.exports=typeof Reflect=="object"&&Reflect.apply||(o?n.bind(i):function(){return n.apply(i,arguments)})},6080(a,e,t){var o=t(7476),r=t(9306),i=t(616),n=o(o.bind);a.exports=function(s,l){return r(s),l===void 0?s:i?n(s,l):function(){return s.apply(l,arguments)}}},616(a,e,t){var o=t(9039);a.exports=!o(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")})},9565(a,e,t){var o=t(616),r=Function.prototype.call;a.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},350(a,e,t){var o=t(3724),r=t(9297),i=Function.prototype,n=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),l=s&&(function(){}).name==="something",d=s&&(!o||o&&n(i,"name").configurable);a.exports={EXISTS:s,PROPER:l,CONFIGURABLE:d}},6706(a,e,t){var o=t(9504),r=t(9306);a.exports=function(i,n,s){try{return o(r(Object.getOwnPropertyDescriptor(i,n)[s]))}catch{}}},7476(a,e,t){var o=t(2195),r=t(9504);a.exports=function(i){if(o(i)==="Function")return r(i)}},9504(a,e,t){var o=t(616),r=Function.prototype,i=r.call,n=o&&r.bind.bind(i,i);a.exports=o?n:function(s){return function(){return i.apply(s,arguments)}}},9429(a,e,t){var o=t(4576),r=t(6193);a.exports=function(i){if(r){try{return o.process.getBuiltinModule(i)}catch{}try{return Function('return require("'+i+'")')()}catch{}}}},7751(a,e,t){var o=t(4576),r=t(4901),i=function(n){return r(n)?n:void 0};a.exports=function(n,s){return arguments.length<2?i(o[n]):o[n]&&o[n][s]}},1767(a){a.exports=function(e){return{iterator:e,next:e.next,done:!1}}},851(a,e,t){var o=t(6955),r=t(5966),i=t(4117),n=t(6269),s=t(8227),l=s("iterator");a.exports=function(d){if(!i(d))return r(d,l)||r(d,"@@iterator")||n[o(d)]}},81(a,e,t){var o=t(9565),r=t(9306),i=t(8551),n=t(6823),s=t(851),l=TypeError;a.exports=function(d,c){var u=arguments.length<2?s(d):c;if(r(u))return i(o(u,d));throw new l(n(d)+" is not iterable")}},5966(a,e,t){var o=t(9306),r=t(4117);a.exports=function(i,n){var s=i[n];return r(s)?void 0:o(s)}},3789(a,e,t){var o=t(9306),r=t(8551),i=t(9565),n=t(1291),s=t(1767),l="Invalid size",d=RangeError,c=TypeError,u=Math.max,g=function(h,p){this.set=h,this.size=u(p,0),this.has=o(h.has),this.keys=o(h.keys)};g.prototype={getIterator:function(){return s(r(i(this.keys,this.set)))},includes:function(h){return i(this.has,this.set,h)}},a.exports=function(h){r(h);var p=+h.size;if(p!==p)throw new c(l);var f=n(p);if(f<0)throw new d(l);return new g(h,f)}},4576(a){var e=function(t){return t&&t.Math===Math&&t};a.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof global=="object"&&global)||e(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()},9297(a,e,t){var o=t(9504),r=t(8981),i=o({}.hasOwnProperty);a.exports=Object.hasOwn||function(s,l){return i(r(s),l)}},421(a){a.exports={}},397(a,e,t){var o=t(7751);a.exports=o("document","documentElement")},5917(a,e,t){var o=t(3724),r=t(9039),i=t(4055);a.exports=!o&&!r(function(){return Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a!==7})},7055(a,e,t){var o=t(9504),r=t(9039),i=t(2195),n=Object,s=o("".split);a.exports=r(function(){return!n("z").propertyIsEnumerable(0)})?function(l){return i(l)==="String"?s(l,""):n(l)}:n},3706(a,e,t){var o=t(9504),r=t(4901),i=t(7629),n=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(s){return n(s)}),a.exports=i.inspectSource},1181(a,e,t){var o=t(8622),r=t(4576),i=t(34),n=t(6699),s=t(9297),l=t(7629),d=t(6119),c=t(421),u="Object already initialized",g=r.TypeError,h=r.WeakMap,p,f,m,x=function(v){return m(v)?f(v):p(v,{})},k=function(v){return function(A){var S;if(!i(A)||(S=f(A)).type!==v)throw new g("Incompatible receiver, "+v+" required");return S}};if(o||l.state){var C=l.state||(l.state=new h);C.get=C.get,C.has=C.has,C.set=C.set,p=function(v,A){if(C.has(v))throw new g(u);return A.facade=v,C.set(v,A),A},f=function(v){return C.get(v)||{}},m=function(v){return C.has(v)}}else{var y=d("state");c[y]=!0,p=function(v,A){if(s(v,y))throw new g(u);return A.facade=v,n(v,y,A),A},f=function(v){return s(v,y)?v[y]:{}},m=function(v){return s(v,y)}}a.exports={set:p,get:f,has:m,enforce:x,getterFor:k}},4209(a,e,t){var o=t(8227),r=t(6269),i=o("iterator"),n=Array.prototype;a.exports=function(s){return s!==void 0&&(r.Array===s||n[i]===s)}},4376(a,e,t){var o=t(2195);a.exports=Array.isArray||function(i){return o(i)==="Array"}},1108(a,e,t){var o=t(6955);a.exports=function(r){var i=o(r);return i==="BigInt64Array"||i==="BigUint64Array"}},4901(a){var e=typeof document=="object"&&document.all;a.exports=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"}},2796(a,e,t){var o=t(9039),r=t(4901),i=/#|\.prototype\./,n=function(u,g){var h=l[s(u)];return h===c?!0:h===d?!1:r(g)?o(g):!!g},s=n.normalize=function(u){return String(u).replace(i,".").toLowerCase()},l=n.data={},d=n.NATIVE="N",c=n.POLYFILL="P";a.exports=n},4117(a){a.exports=function(e){return e==null}},34(a,e,t){var o=t(4901);a.exports=function(r){return typeof r=="object"?r!==null:o(r)}},3925(a,e,t){var o=t(34);a.exports=function(r){return o(r)||r===null}},6395(a){a.exports=!1},5810(a,e,t){var o=t(34),r=t(1181).get;a.exports=function(n){if(!o(n))return!1;var s=r(n);return!!s&&s.type==="RawJSON"}},757(a,e,t){var o=t(7751),r=t(4901),i=t(1625),n=t(7040),s=Object;a.exports=n?function(l){return typeof l=="symbol"}:function(l){var d=o("Symbol");return r(d)&&i(d.prototype,s(l))}},507(a,e,t){var o=t(9565);a.exports=function(r,i,n){for(var s=n?r:r.iterator,l=r.next,d,c;!(d=o(l,s)).done;)if(c=i(d.value),c!==void 0)return c}},2652(a,e,t){var o=t(6080),r=t(9565),i=t(8551),n=t(6823),s=t(4209),l=t(6198),d=t(1625),c=t(81),u=t(851),g=t(9539),h=TypeError,p=function(m,x){this.stopped=m,this.result=x},f=p.prototype;a.exports=function(m,x,k){var C=k&&k.that,y=!!(k&&k.AS_ENTRIES),v=!!(k&&k.IS_RECORD),A=!!(k&&k.IS_ITERATOR),S=!!(k&&k.INTERRUPTED),I=o(x,C),b,E,P,B,D,z,Q,T=function(W){var ot=b;return b=void 0,ot&&g(ot,"normal"),new p(!0,W)},N=function(W){return y?(i(W),S?I(W[0],W[1],T):I(W[0],W[1])):S?I(W,T):I(W)};if(v)b=m.iterator;else if(A)b=m;else{if(E=u(m),!E)throw new h(n(m)+" is not iterable");if(s(E)){for(P=0,B=l(m);B>P;P++)if(D=N(m[P]),D&&d(f,D))return D;return new p(!1)}b=c(m,E)}for(z=v?m.next:b.next;!(Q=r(z,b)).done;){var H=Q.value;try{D=N(H)}catch(W){if(b)g(b,"throw",W);else throw W}if(typeof D=="object"&&D&&d(f,D))return D}return new p(!1)}},1385(a,e,t){var o=t(9539);a.exports=function(r,i,n){for(var s=r.length-1;s>=0;s--)if(r[s]!==void 0)try{n=o(r[s].iterator,i,n)}catch(l){i="throw",n=l}if(i==="throw")throw n;return n}},9539(a,e,t){var o=t(9565),r=t(8551),i=t(5966);a.exports=function(n,s,l){var d,c;r(n);try{if(d=i(n,"return"),!d){if(s==="throw")throw l;return l}d=o(d,n)}catch(u){c=!0,d=u}if(s==="throw")throw l;if(c)throw d;return r(d),l}},9462(a,e,t){var o=t(9565),r=t(2360),i=t(6699),n=t(6279),s=t(8227),l=t(1181),d=t(5966),c=t(7657).IteratorPrototype,u=t(2529),g=t(9539),h=t(1385),p=s("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",x="normal",k="throw",C=l.set,y=function(S){var I=l.getterFor(S?m:f);return n(r(c),{next:function(){var E=I(this);if(S)return E.nextHandler();if(E.done)return u(void 0,!0);try{var P=E.nextHandler();return E.returnHandlerResult?P:u(P,E.done)}catch(B){throw E.done=!0,B}},return:function(){var b=I(this),E=b.iterator,P=b.done;if(b.done=!0,S){var B=d(E,"return");return B?o(B,E):u(void 0,!0)}if(P)return u(void 0,!0);if(b.inner)try{g(b.inner.iterator,x)}catch(D){return g(E,k,D)}if(b.openIters)try{h(b.openIters,x)}catch(D){if(E)return g(E,k,D);throw D}return E&&g(E,x),u(void 0,!0)}})},v=y(!0),A=y(!1);i(A,p,"Iterator Helper"),a.exports=function(S,I,b){var E=function(B,D){D?(D.iterator=B.iterator,D.next=B.next):D=B,D.type=I?m:f,D.returnHandlerResult=!!b,D.nextHandler=S,D.counter=0,D.done=!1,C(this,D)};return E.prototype=I?v:A,E}},684(a){a.exports=function(e,t){var o=typeof Iterator=="function"&&Iterator.prototype[e];if(o)try{o.call({next:null},t).next()}catch{return!0}}},4549(a,e,t){var o=t(4576);a.exports=function(r,i){var n=o.Iterator,s=n&&n.prototype,l=s&&s[r],d=!1;if(l)try{l.call({next:function(){return{done:!0}},return:function(){d=!0}},-1)}catch(c){c instanceof i||(d=!1)}if(!d)return l}},7657(a,e,t){var o=t(9039),r=t(4901),i=t(34),n=t(2360),s=t(2787),l=t(6840),d=t(8227),c=t(6395),u=d("iterator"),g=!1,h,p,f;[].keys&&(f=[].keys(),"next"in f?(p=s(s(f)),p!==Object.prototype&&(h=p)):g=!0);var m=!i(h)||o(function(){var x={};return h[u].call(x)!==x});m?h={}:c&&(h=n(h)),r(h[u])||l(h,u,function(){return this}),a.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:g}},6269(a){a.exports={}},6198(a,e,t){var o=t(8014);a.exports=function(r){return o(r.length)}},283(a,e,t){var o=t(9504),r=t(9039),i=t(4901),n=t(9297),s=t(3724),l=t(350).CONFIGURABLE,d=t(3706),c=t(1181),u=c.enforce,g=c.get,h=String,p=Object.defineProperty,f=o("".slice),m=o("".replace),x=o([].join),k=s&&!r(function(){return p(function(){},"length",{value:8}).length!==8}),C=String(String).split("String"),y=a.exports=function(v,A,S){f(h(A),0,7)==="Symbol("&&(A="["+m(h(A),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),S&&S.getter&&(A="get "+A),S&&S.setter&&(A="set "+A),(!n(v,"name")||l&&v.name!==A)&&(s?p(v,"name",{value:A,configurable:!0}):v.name=A),k&&S&&n(S,"arity")&&v.length!==S.arity&&p(v,"length",{value:S.arity});try{S&&n(S,"constructor")&&S.constructor?s&&p(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var I=u(v);return n(I,"source")||(I.source=x(C,typeof A=="string"?A:"")),v};Function.prototype.toString=y(function(){return i(this)&&g(this).source||d(this)},"toString")},2248(a,e,t){var o=t(9504),r=Map.prototype;a.exports={Map,set:o(r.set),get:o(r.get),has:o(r.has),remove:o(r.delete),proto:r}},741(a){var e=Math.ceil,t=Math.floor;a.exports=Math.trunc||function(r){var i=+r;return(i>0?t:e)(i)}},7819(a,e,t){var o=t(9039);a.exports=!o(function(){var r="9007199254740993",i=JSON.rawJSON(r);return!JSON.isRawJSON(i)||JSON.stringify(i)!==r})},6043(a,e,t){var o=t(9306),r=TypeError,i=function(n){var s,l;this.promise=new n(function(d,c){if(s!==void 0||l!==void 0)throw new r("Bad Promise constructor");s=d,l=c}),this.resolve=o(s),this.reject=o(l)};a.exports.f=function(n){return new i(n)}},2360(a,e,t){var o=t(8551),r=t(6801),i=t(8727),n=t(421),s=t(397),l=t(4055),d=t(6119),c=">",u="<",g="prototype",h="script",p=d("IE_PROTO"),f=function(){},m=function(v){return u+h+c+v+u+"/"+h+c},x=function(v){v.write(m("")),v.close();var A=v.parentWindow.Object;return v=null,A},k=function(){var v=l("iframe"),A="java"+h+":",S;return v.style.display="none",s.appendChild(v),v.src=String(A),S=v.contentWindow.document,S.open(),S.write(m("document.F=Object")),S.close(),S.F},C,y=function(){try{C=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&C?x(C):k():x(C);for(var v=i.length;v--;)delete y[g][i[v]];return y()};n[p]=!0,a.exports=Object.create||function(A,S){var I;return A!==null?(f[g]=o(A),I=new f,f[g]=null,I[p]=A):I=y(),S===void 0?I:r.f(I,S)}},6801(a,e,t){var o=t(3724),r=t(8686),i=t(4913),n=t(8551),s=t(5397),l=t(1072);e.f=o&&!r?Object.defineProperties:function(c,u){n(c);for(var g=s(u),h=l(u),p=h.length,f=0,m;p>f;)i.f(c,m=h[f++],g[m]);return c}},4913(a,e,t){var o=t(3724),r=t(5917),i=t(8686),n=t(8551),s=t(6969),l=TypeError,d=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",g="configurable",h="writable";e.f=o?i?function(f,m,x){if(n(f),m=s(m),n(x),typeof f=="function"&&m==="prototype"&&"value"in x&&h in x&&!x[h]){var k=c(f,m);k&&k[h]&&(f[m]=x.value,x={configurable:g in x?x[g]:k[g],enumerable:u in x?x[u]:k[u],writable:!1})}return d(f,m,x)}:d:function(f,m,x){if(n(f),m=s(m),n(x),r)try{return d(f,m,x)}catch{}if("get"in x||"set"in x)throw new l("Accessors not supported");return"value"in x&&(f[m]=x.value),f}},7347(a,e,t){var o=t(3724),r=t(9565),i=t(8773),n=t(6980),s=t(5397),l=t(6969),d=t(9297),c=t(5917),u=Object.getOwnPropertyDescriptor;e.f=o?u:function(h,p){if(h=s(h),p=l(p),c)try{return u(h,p)}catch{}if(d(h,p))return n(!r(i.f,h,p),h[p])}},8480(a,e,t){var o=t(1828),r=t(8727),i=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(s){return o(s,i)}},3717(a,e){e.f=Object.getOwnPropertySymbols},2787(a,e,t){var o=t(9297),r=t(4901),i=t(8981),n=t(6119),s=t(2211),l=n("IE_PROTO"),d=Object,c=d.prototype;a.exports=s?d.getPrototypeOf:function(u){var g=i(u);if(o(g,l))return g[l];var h=g.constructor;return r(h)&&g instanceof h?h.prototype:g instanceof d?c:null}},1625(a,e,t){var o=t(9504);a.exports=o({}.isPrototypeOf)},1828(a,e,t){var o=t(9504),r=t(9297),i=t(5397),n=t(9617).indexOf,s=t(421),l=o([].push);a.exports=function(d,c){var u=i(d),g=0,h=[],p;for(p in u)!r(s,p)&&r(u,p)&&l(h,p);for(;c.length>g;)r(u,p=c[g++])&&(~n(h,p)||l(h,p));return h}},1072(a,e,t){var o=t(1828),r=t(8727);a.exports=Object.keys||function(n){return o(n,r)}},8773(a,e){var t={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!t.call({1:2},1);e.f=r?function(n){var s=o(this,n);return!!s&&s.enumerable}:t},2967(a,e,t){var o=t(6706),r=t(34),i=t(7750),n=t(3506);a.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var s=!1,l={},d;try{d=o(Object.prototype,"__proto__","set"),d(l,[]),s=l instanceof Array}catch{}return function(u,g){return i(u),n(g),r(u)&&(s?d(u,g):u.__proto__=g),u}})():void 0)},4270(a,e,t){var o=t(9565),r=t(4901),i=t(34),n=TypeError;a.exports=function(s,l){var d,c;if(l==="string"&&r(d=s.toString)&&!i(c=o(d,s))||r(d=s.valueOf)&&!i(c=o(d,s))||l!=="string"&&r(d=s.toString)&&!i(c=o(d,s)))return c;throw new n("Can't convert object to primitive value")}},5031(a,e,t){var o=t(7751),r=t(9504),i=t(8480),n=t(3717),s=t(8551),l=r([].concat);a.exports=o("Reflect","ownKeys")||function(c){var u=i.f(s(c)),g=n.f;return g?l(u,g(c)):u}},8235(a,e,t){var o=t(9504),r=t(9297),i=SyntaxError,n=parseInt,s=String.fromCharCode,l=o("".charAt),d=o("".slice),c=o(/./.exec),u={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
|
|
1
|
+
var Ho=Object.defineProperty;var Re=a=>{throw TypeError(a)};var Uo=(a,e,t)=>e in a?Ho(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Oe=(a,e,t)=>Uo(a,typeof e!="symbol"?e+"":e,t),Wo=(a,e,t)=>e.has(a)||Re("Cannot "+t);var Ot=(a,e,t)=>(Wo(a,e,"read from private field"),t?t.call(a):e.get(a)),Ne=(a,e,t)=>e.has(a)?Re("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t);import{u as Eo,d as at,j as U,o as $o,cr as Go,r as Zo}from"./index-BYUntVIZ.js";import{AnnotationMode as Qo,AnnotationEditorType as Ko,getDocument as je,GlobalWorkerOptions as Yo}from"./pdf-C2_sJa3b.js";import{p as Jo}from"./pdf.worker.min-CGb3BKV9.js";import{dm as ce,bn as Xo}from"./appStore-affnJoin.js";import"./nativeDownload-Udrv_tmU.js";import"./ipc-D7yENkjV.js";import"./client-BqhpYbYL.js";var _o={9306(a,e,t){var o=t(4901),r=t(6823),i=TypeError;a.exports=function(n){if(o(n))return n;throw new i(r(n)+" is not a function")}},3506(a,e,t){var o=t(3925),r=String,i=TypeError;a.exports=function(n){if(o(n))return n;throw new i("Can't set "+r(n)+" as a prototype")}},7080(a,e,t){var o=t(4402).has;a.exports=function(r){return o(r),r}},3463(a){var e=TypeError;a.exports=function(t){if(typeof t=="string")return t;throw new e("Argument is not a string")}},4328(a,e,t){var o=t(4995),r=new o.WeakMap,i=o.set,n=o.remove;a.exports=function(s){return i(r,s,1),n(r,s),s}},6557(a,e,t){var o=t(4995).has;a.exports=function(r){return o(r),r}},6469(a,e,t){var o=t(8227),r=t(2360),i=t(4913).f,n=o("unscopables"),s=Array.prototype;s[n]===void 0&&i(s,n,{configurable:!0,value:r(null)}),a.exports=function(l){s[n][l]=!0}},679(a,e,t){var o=t(1625),r=TypeError;a.exports=function(i,n){if(o(n,i))return i;throw new r("Incorrect invocation")}},8551(a,e,t){var o=t(34),r=String,i=TypeError;a.exports=function(n){if(o(n))return n;throw new i(r(n)+" is not an object")}},7811(a){a.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},7394(a,e,t){var o=t(4576),r=t(6706),i=t(2195),n=o.ArrayBuffer,s=o.TypeError;a.exports=n&&r(n.prototype,"byteLength","get")||function(l){if(i(l)!=="ArrayBuffer")throw new s("ArrayBuffer expected");return l.byteLength}},3238(a,e,t){var o=t(4576),r=t(7811),i=t(7394),n=o.DataView;a.exports=function(s){if(!r||i(s)!==0)return!1;try{return new n(s),!1}catch{return!0}}},5169(a,e,t){var o=t(3238),r=TypeError;a.exports=function(i){if(o(i))throw new r("ArrayBuffer is detached");return i}},5636(a,e,t){var o=t(4576),r=t(9504),i=t(6706),n=t(7696),s=t(5169),l=t(7394),d=t(4483),c=t(1548),u=o.structuredClone,g=o.ArrayBuffer,h=o.DataView,p=Math.max,f=Math.min,m=g.prototype,x=h.prototype,k=r(m.slice),C=i(m,"resizable","get"),y=i(m,"maxByteLength","get"),v=r(x.getInt8),A=r(x.setInt8);a.exports=(c||d)&&function(S,I,b){var E=l(S),P=I===void 0?E:n(I),B=!C||!C(S),D;if(s(S),c&&(S=u(S,{transfer:[S]}),E===P&&(b||B)))return S;if(E>=P&&(!b||B))D=k(S,0,P);else{var z=b&&!B&&y?{maxByteLength:p(P,y(S))}:void 0;D=new g(P,z);for(var Q=new h(S),T=new h(D),N=f(P,E),H=0;H<N;H++)A(T,H,v(Q,H))}return c||d(S),D}},4644(a,e,t){var o=t(7811),r=t(3724),i=t(4576),n=t(4901),s=t(34),l=t(9297),d=t(6955),c=t(6823),u=t(6699),g=t(6840),h=t(2106),p=t(1625),f=t(2787),m=t(2967),x=t(8227),k=t(3392),C=t(1181),y=C.enforce,v=C.get,A=i.Int8Array,S=A&&A.prototype,I=i.Uint8ClampedArray,b=I&&I.prototype,E=A&&f(A),P=S&&f(S),B=Object.prototype,D=i.TypeError,z=x("toStringTag"),Q=k("TYPED_ARRAY_TAG"),T="TypedArrayConstructor",N=o&&!!m&&d(i.opera)!=="Opera",H=!1,W,ot,X,q={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},J={BigInt64Array:8,BigUint64Array:8},gt=function(V){if(!s(V))return!1;var _=d(V);return _==="DataView"||l(q,_)||l(J,_)},it=function(j){var V=f(j);if(s(V)){var _=v(V);return _&&l(_,T)?_[T]:it(V)}},M=function(j){if(!s(j))return!1;var V=d(j);return l(q,V)||l(J,V)},L=function(j){if(M(j))return j;throw new D("Target is not a typed array")},F=function(j){if(n(j)&&(!m||p(E,j)))return j;throw new D(c(j)+" is not a typed array constructor")},O=function(j,V,_,st){if(r){if(_)for(var et in q){var tt=i[et];if(tt&&l(tt.prototype,j))try{delete tt.prototype[j]}catch{try{tt.prototype[j]=V}catch{}}}(!P[j]||_)&&g(P,j,_?V:N&&S[j]||V,st)}},Z=function(j,V,_){var st,et;if(r){if(m){if(_){for(st in q)if(et=i[st],et&&l(et,j))try{delete et[j]}catch{}}if(!E[j]||_)try{return g(E,j,_?V:N&&E[j]||V)}catch{}else return}for(st in q)et=i[st],et&&(!et[j]||_)&&g(et,j,V)}};for(W in q)ot=i[W],X=ot&&ot.prototype,X?y(X)[T]=ot:N=!1;for(W in J)ot=i[W],X=ot&&ot.prototype,X&&(y(X)[T]=ot);if((!N||!n(E)||E===Function.prototype)&&(E=function(){throw new D("Incorrect invocation")},N))for(W in q)i[W]&&m(i[W],E);if((!N||!P||P===B)&&(P=E.prototype,N))for(W in q)i[W]&&m(i[W].prototype,P);if(N&&f(b)!==P&&m(b,P),r&&!l(P,z)){H=!0,h(P,z,{configurable:!0,get:function(){return s(this)?this[Q]:void 0}});for(W in q)i[W]&&u(i[W].prototype,Q,W)}a.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:H&&Q,aTypedArray:L,aTypedArrayConstructor:F,exportTypedArrayMethod:O,exportTypedArrayStaticMethod:Z,getTypedArrayConstructor:it,isView:gt,isTypedArray:M,TypedArray:E,TypedArrayPrototype:P}},9617(a,e,t){var o=t(5397),r=t(5610),i=t(6198),n=function(s){return function(l,d,c){var u=o(l),g=i(u);if(g===0)return!s&&-1;var h=r(c,g),p;if(s&&d!==d){for(;g>h;)if(p=u[h++],p!==p)return!0}else for(;g>h;h++)if((s||h in u)&&u[h]===d)return s||h||0;return!s&&-1}};a.exports={includes:n(!0),indexOf:n(!1)}},4527(a,e,t){var o=t(3724),r=t(4376),i=TypeError,n=Object.getOwnPropertyDescriptor,s=o&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(l){return l instanceof TypeError}})();a.exports=s?function(l,d){if(r(l)&&!n(l,"length").writable)throw new i("Cannot set read only .length");return l.length=d}:function(l,d){return l.length=d}},7680(a,e,t){var o=t(9504);a.exports=o([].slice)},6319(a,e,t){var o=t(8551),r=t(9539);a.exports=function(i,n,s,l){try{return l?n(o(s)[0],s[1]):n(s)}catch(d){r(i,"throw",d)}}},2195(a,e,t){var o=t(9504),r=o({}.toString),i=o("".slice);a.exports=function(n){return i(r(n),8,-1)}},6955(a,e,t){var o=t(2140),r=t(4901),i=t(2195),n=t(8227),s=n("toStringTag"),l=Object,d=i((function(){return arguments})())==="Arguments",c=function(u,g){try{return u[g]}catch{}};a.exports=o?i:function(u){var g,h,p;return u===void 0?"Undefined":u===null?"Null":typeof(h=c(g=l(u),s))=="string"?h:d?i(g):(p=i(g))==="Object"&&r(g.callee)?"Arguments":p}},7740(a,e,t){var o=t(9297),r=t(5031),i=t(7347),n=t(4913);a.exports=function(s,l,d){for(var c=r(l),u=n.f,g=i.f,h=0;h<c.length;h++){var p=c[h];!o(s,p)&&!(d&&o(d,p))&&u(s,p,g(l,p))}}},2211(a,e,t){var o=t(9039);a.exports=!o(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})},2529(a){a.exports=function(e,t){return{value:e,done:t}}},6699(a,e,t){var o=t(3724),r=t(4913),i=t(6980);a.exports=o?function(n,s,l){return r.f(n,s,i(1,l))}:function(n,s,l){return n[s]=l,n}},6980(a){a.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},4659(a,e,t){var o=t(3724),r=t(4913),i=t(6980);a.exports=function(n,s,l){o?r.f(n,s,i(0,l)):n[s]=l}},2106(a,e,t){var o=t(283),r=t(4913);a.exports=function(i,n,s){return s.get&&o(s.get,n,{getter:!0}),s.set&&o(s.set,n,{setter:!0}),r.f(i,n,s)}},6840(a,e,t){var o=t(4901),r=t(4913),i=t(283),n=t(9433);a.exports=function(s,l,d,c){c||(c={});var u=c.enumerable,g=c.name!==void 0?c.name:l;if(o(d)&&i(d,g,c),c.global)u?s[l]=d:n(l,d);else{try{c.unsafe?s[l]&&(u=!0):delete s[l]}catch{}u?s[l]=d:r.f(s,l,{value:d,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return s}},6279(a,e,t){var o=t(6840);a.exports=function(r,i,n){for(var s in i)o(r,s,i[s],n);return r}},9433(a,e,t){var o=t(4576),r=Object.defineProperty;a.exports=function(i,n){try{r(o,i,{value:n,configurable:!0,writable:!0})}catch{o[i]=n}return n}},3724(a,e,t){var o=t(9039);a.exports=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4483(a,e,t){var o=t(4576),r=t(9429),i=t(1548),n=o.structuredClone,s=o.ArrayBuffer,l=o.MessageChannel,d=!1,c,u,g,h;if(i)d=function(p){n(p,{transfer:[p]})};else if(s)try{l||(c=r("worker_threads"),c&&(l=c.MessageChannel)),l&&(u=new l,g=new s(2),h=function(p){u.port1.postMessage(null,[p])},g.byteLength===2&&(h(g),g.byteLength===0&&(d=h)))}catch{}a.exports=d},4055(a,e,t){var o=t(4576),r=t(34),i=o.document,n=r(i)&&r(i.createElement);a.exports=function(s){return n?i.createElement(s):{}}},6837(a){var e=TypeError,t=9007199254740991;a.exports=function(o){if(o>t)throw new e("Maximum allowed index exceeded");return o}},8727(a){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6193(a,e,t){var o=t(4215);a.exports=o==="NODE"},2839(a,e,t){var o=t(4576),r=o.navigator,i=r&&r.userAgent;a.exports=i?String(i):""},9519(a,e,t){var o=t(4576),r=t(2839),i=o.process,n=o.Deno,s=i&&i.versions||n&&n.version,l=s&&s.v8,d,c;l&&(d=l.split("."),c=d[0]>0&&d[0]<4?1:+(d[0]+d[1])),!c&&r&&(d=r.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=r.match(/Chrome\/(\d+)/),d&&(c=+d[1]))),a.exports=c},4215(a,e,t){var o=t(4576),r=t(2839),i=t(2195),n=function(s){return r.slice(0,s.length)===s};a.exports=(function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":o.Bun&&typeof Bun.version=="string"?"BUN":o.Deno&&typeof Deno.version=="object"?"DENO":i(o.process)==="process"?"NODE":o.window&&o.document?"BROWSER":"REST"})()},6518(a,e,t){var o=t(4576),r=t(7347).f,i=t(6699),n=t(6840),s=t(9433),l=t(7740),d=t(2796);a.exports=function(c,u){var g=c.target,h=c.global,p=c.stat,f,m,x,k,C,y;if(h?m=o:p?m=o[g]||s(g,{}):m=o[g]&&o[g].prototype,m)for(x in u){if(C=u[x],c.dontCallGetSet?(y=r(m,x),k=y&&y.value):k=m[x],f=d(h?x:g+(p?".":"#")+x,c.forced),!f&&k!==void 0){if(typeof C==typeof k)continue;l(C,k)}(c.sham||k&&k.sham)&&i(C,"sham",!0),n(m,x,C,c)}}},9039(a){a.exports=function(e){try{return!!e()}catch{return!0}}},8745(a,e,t){var o=t(616),r=Function.prototype,i=r.apply,n=r.call;a.exports=typeof Reflect=="object"&&Reflect.apply||(o?n.bind(i):function(){return n.apply(i,arguments)})},6080(a,e,t){var o=t(7476),r=t(9306),i=t(616),n=o(o.bind);a.exports=function(s,l){return r(s),l===void 0?s:i?n(s,l):function(){return s.apply(l,arguments)}}},616(a,e,t){var o=t(9039);a.exports=!o(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")})},9565(a,e,t){var o=t(616),r=Function.prototype.call;a.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},350(a,e,t){var o=t(3724),r=t(9297),i=Function.prototype,n=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),l=s&&(function(){}).name==="something",d=s&&(!o||o&&n(i,"name").configurable);a.exports={EXISTS:s,PROPER:l,CONFIGURABLE:d}},6706(a,e,t){var o=t(9504),r=t(9306);a.exports=function(i,n,s){try{return o(r(Object.getOwnPropertyDescriptor(i,n)[s]))}catch{}}},7476(a,e,t){var o=t(2195),r=t(9504);a.exports=function(i){if(o(i)==="Function")return r(i)}},9504(a,e,t){var o=t(616),r=Function.prototype,i=r.call,n=o&&r.bind.bind(i,i);a.exports=o?n:function(s){return function(){return i.apply(s,arguments)}}},9429(a,e,t){var o=t(4576),r=t(6193);a.exports=function(i){if(r){try{return o.process.getBuiltinModule(i)}catch{}try{return Function('return require("'+i+'")')()}catch{}}}},7751(a,e,t){var o=t(4576),r=t(4901),i=function(n){return r(n)?n:void 0};a.exports=function(n,s){return arguments.length<2?i(o[n]):o[n]&&o[n][s]}},1767(a){a.exports=function(e){return{iterator:e,next:e.next,done:!1}}},851(a,e,t){var o=t(6955),r=t(5966),i=t(4117),n=t(6269),s=t(8227),l=s("iterator");a.exports=function(d){if(!i(d))return r(d,l)||r(d,"@@iterator")||n[o(d)]}},81(a,e,t){var o=t(9565),r=t(9306),i=t(8551),n=t(6823),s=t(851),l=TypeError;a.exports=function(d,c){var u=arguments.length<2?s(d):c;if(r(u))return i(o(u,d));throw new l(n(d)+" is not iterable")}},5966(a,e,t){var o=t(9306),r=t(4117);a.exports=function(i,n){var s=i[n];return r(s)?void 0:o(s)}},3789(a,e,t){var o=t(9306),r=t(8551),i=t(9565),n=t(1291),s=t(1767),l="Invalid size",d=RangeError,c=TypeError,u=Math.max,g=function(h,p){this.set=h,this.size=u(p,0),this.has=o(h.has),this.keys=o(h.keys)};g.prototype={getIterator:function(){return s(r(i(this.keys,this.set)))},includes:function(h){return i(this.has,this.set,h)}},a.exports=function(h){r(h);var p=+h.size;if(p!==p)throw new c(l);var f=n(p);if(f<0)throw new d(l);return new g(h,f)}},4576(a){var e=function(t){return t&&t.Math===Math&&t};a.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof global=="object"&&global)||e(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()},9297(a,e,t){var o=t(9504),r=t(8981),i=o({}.hasOwnProperty);a.exports=Object.hasOwn||function(s,l){return i(r(s),l)}},421(a){a.exports={}},397(a,e,t){var o=t(7751);a.exports=o("document","documentElement")},5917(a,e,t){var o=t(3724),r=t(9039),i=t(4055);a.exports=!o&&!r(function(){return Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a!==7})},7055(a,e,t){var o=t(9504),r=t(9039),i=t(2195),n=Object,s=o("".split);a.exports=r(function(){return!n("z").propertyIsEnumerable(0)})?function(l){return i(l)==="String"?s(l,""):n(l)}:n},3706(a,e,t){var o=t(9504),r=t(4901),i=t(7629),n=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(s){return n(s)}),a.exports=i.inspectSource},1181(a,e,t){var o=t(8622),r=t(4576),i=t(34),n=t(6699),s=t(9297),l=t(7629),d=t(6119),c=t(421),u="Object already initialized",g=r.TypeError,h=r.WeakMap,p,f,m,x=function(v){return m(v)?f(v):p(v,{})},k=function(v){return function(A){var S;if(!i(A)||(S=f(A)).type!==v)throw new g("Incompatible receiver, "+v+" required");return S}};if(o||l.state){var C=l.state||(l.state=new h);C.get=C.get,C.has=C.has,C.set=C.set,p=function(v,A){if(C.has(v))throw new g(u);return A.facade=v,C.set(v,A),A},f=function(v){return C.get(v)||{}},m=function(v){return C.has(v)}}else{var y=d("state");c[y]=!0,p=function(v,A){if(s(v,y))throw new g(u);return A.facade=v,n(v,y,A),A},f=function(v){return s(v,y)?v[y]:{}},m=function(v){return s(v,y)}}a.exports={set:p,get:f,has:m,enforce:x,getterFor:k}},4209(a,e,t){var o=t(8227),r=t(6269),i=o("iterator"),n=Array.prototype;a.exports=function(s){return s!==void 0&&(r.Array===s||n[i]===s)}},4376(a,e,t){var o=t(2195);a.exports=Array.isArray||function(i){return o(i)==="Array"}},1108(a,e,t){var o=t(6955);a.exports=function(r){var i=o(r);return i==="BigInt64Array"||i==="BigUint64Array"}},4901(a){var e=typeof document=="object"&&document.all;a.exports=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"}},2796(a,e,t){var o=t(9039),r=t(4901),i=/#|\.prototype\./,n=function(u,g){var h=l[s(u)];return h===c?!0:h===d?!1:r(g)?o(g):!!g},s=n.normalize=function(u){return String(u).replace(i,".").toLowerCase()},l=n.data={},d=n.NATIVE="N",c=n.POLYFILL="P";a.exports=n},4117(a){a.exports=function(e){return e==null}},34(a,e,t){var o=t(4901);a.exports=function(r){return typeof r=="object"?r!==null:o(r)}},3925(a,e,t){var o=t(34);a.exports=function(r){return o(r)||r===null}},6395(a){a.exports=!1},5810(a,e,t){var o=t(34),r=t(1181).get;a.exports=function(n){if(!o(n))return!1;var s=r(n);return!!s&&s.type==="RawJSON"}},757(a,e,t){var o=t(7751),r=t(4901),i=t(1625),n=t(7040),s=Object;a.exports=n?function(l){return typeof l=="symbol"}:function(l){var d=o("Symbol");return r(d)&&i(d.prototype,s(l))}},507(a,e,t){var o=t(9565);a.exports=function(r,i,n){for(var s=n?r:r.iterator,l=r.next,d,c;!(d=o(l,s)).done;)if(c=i(d.value),c!==void 0)return c}},2652(a,e,t){var o=t(6080),r=t(9565),i=t(8551),n=t(6823),s=t(4209),l=t(6198),d=t(1625),c=t(81),u=t(851),g=t(9539),h=TypeError,p=function(m,x){this.stopped=m,this.result=x},f=p.prototype;a.exports=function(m,x,k){var C=k&&k.that,y=!!(k&&k.AS_ENTRIES),v=!!(k&&k.IS_RECORD),A=!!(k&&k.IS_ITERATOR),S=!!(k&&k.INTERRUPTED),I=o(x,C),b,E,P,B,D,z,Q,T=function(W){var ot=b;return b=void 0,ot&&g(ot,"normal"),new p(!0,W)},N=function(W){return y?(i(W),S?I(W[0],W[1],T):I(W[0],W[1])):S?I(W,T):I(W)};if(v)b=m.iterator;else if(A)b=m;else{if(E=u(m),!E)throw new h(n(m)+" is not iterable");if(s(E)){for(P=0,B=l(m);B>P;P++)if(D=N(m[P]),D&&d(f,D))return D;return new p(!1)}b=c(m,E)}for(z=v?m.next:b.next;!(Q=r(z,b)).done;){var H=Q.value;try{D=N(H)}catch(W){if(b)g(b,"throw",W);else throw W}if(typeof D=="object"&&D&&d(f,D))return D}return new p(!1)}},1385(a,e,t){var o=t(9539);a.exports=function(r,i,n){for(var s=r.length-1;s>=0;s--)if(r[s]!==void 0)try{n=o(r[s].iterator,i,n)}catch(l){i="throw",n=l}if(i==="throw")throw n;return n}},9539(a,e,t){var o=t(9565),r=t(8551),i=t(5966);a.exports=function(n,s,l){var d,c;r(n);try{if(d=i(n,"return"),!d){if(s==="throw")throw l;return l}d=o(d,n)}catch(u){c=!0,d=u}if(s==="throw")throw l;if(c)throw d;return r(d),l}},9462(a,e,t){var o=t(9565),r=t(2360),i=t(6699),n=t(6279),s=t(8227),l=t(1181),d=t(5966),c=t(7657).IteratorPrototype,u=t(2529),g=t(9539),h=t(1385),p=s("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",x="normal",k="throw",C=l.set,y=function(S){var I=l.getterFor(S?m:f);return n(r(c),{next:function(){var E=I(this);if(S)return E.nextHandler();if(E.done)return u(void 0,!0);try{var P=E.nextHandler();return E.returnHandlerResult?P:u(P,E.done)}catch(B){throw E.done=!0,B}},return:function(){var b=I(this),E=b.iterator,P=b.done;if(b.done=!0,S){var B=d(E,"return");return B?o(B,E):u(void 0,!0)}if(P)return u(void 0,!0);if(b.inner)try{g(b.inner.iterator,x)}catch(D){return g(E,k,D)}if(b.openIters)try{h(b.openIters,x)}catch(D){if(E)return g(E,k,D);throw D}return E&&g(E,x),u(void 0,!0)}})},v=y(!0),A=y(!1);i(A,p,"Iterator Helper"),a.exports=function(S,I,b){var E=function(B,D){D?(D.iterator=B.iterator,D.next=B.next):D=B,D.type=I?m:f,D.returnHandlerResult=!!b,D.nextHandler=S,D.counter=0,D.done=!1,C(this,D)};return E.prototype=I?v:A,E}},684(a){a.exports=function(e,t){var o=typeof Iterator=="function"&&Iterator.prototype[e];if(o)try{o.call({next:null},t).next()}catch{return!0}}},4549(a,e,t){var o=t(4576);a.exports=function(r,i){var n=o.Iterator,s=n&&n.prototype,l=s&&s[r],d=!1;if(l)try{l.call({next:function(){return{done:!0}},return:function(){d=!0}},-1)}catch(c){c instanceof i||(d=!1)}if(!d)return l}},7657(a,e,t){var o=t(9039),r=t(4901),i=t(34),n=t(2360),s=t(2787),l=t(6840),d=t(8227),c=t(6395),u=d("iterator"),g=!1,h,p,f;[].keys&&(f=[].keys(),"next"in f?(p=s(s(f)),p!==Object.prototype&&(h=p)):g=!0);var m=!i(h)||o(function(){var x={};return h[u].call(x)!==x});m?h={}:c&&(h=n(h)),r(h[u])||l(h,u,function(){return this}),a.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:g}},6269(a){a.exports={}},6198(a,e,t){var o=t(8014);a.exports=function(r){return o(r.length)}},283(a,e,t){var o=t(9504),r=t(9039),i=t(4901),n=t(9297),s=t(3724),l=t(350).CONFIGURABLE,d=t(3706),c=t(1181),u=c.enforce,g=c.get,h=String,p=Object.defineProperty,f=o("".slice),m=o("".replace),x=o([].join),k=s&&!r(function(){return p(function(){},"length",{value:8}).length!==8}),C=String(String).split("String"),y=a.exports=function(v,A,S){f(h(A),0,7)==="Symbol("&&(A="["+m(h(A),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),S&&S.getter&&(A="get "+A),S&&S.setter&&(A="set "+A),(!n(v,"name")||l&&v.name!==A)&&(s?p(v,"name",{value:A,configurable:!0}):v.name=A),k&&S&&n(S,"arity")&&v.length!==S.arity&&p(v,"length",{value:S.arity});try{S&&n(S,"constructor")&&S.constructor?s&&p(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var I=u(v);return n(I,"source")||(I.source=x(C,typeof A=="string"?A:"")),v};Function.prototype.toString=y(function(){return i(this)&&g(this).source||d(this)},"toString")},2248(a,e,t){var o=t(9504),r=Map.prototype;a.exports={Map,set:o(r.set),get:o(r.get),has:o(r.has),remove:o(r.delete),proto:r}},741(a){var e=Math.ceil,t=Math.floor;a.exports=Math.trunc||function(r){var i=+r;return(i>0?t:e)(i)}},7819(a,e,t){var o=t(9039);a.exports=!o(function(){var r="9007199254740993",i=JSON.rawJSON(r);return!JSON.isRawJSON(i)||JSON.stringify(i)!==r})},6043(a,e,t){var o=t(9306),r=TypeError,i=function(n){var s,l;this.promise=new n(function(d,c){if(s!==void 0||l!==void 0)throw new r("Bad Promise constructor");s=d,l=c}),this.resolve=o(s),this.reject=o(l)};a.exports.f=function(n){return new i(n)}},2360(a,e,t){var o=t(8551),r=t(6801),i=t(8727),n=t(421),s=t(397),l=t(4055),d=t(6119),c=">",u="<",g="prototype",h="script",p=d("IE_PROTO"),f=function(){},m=function(v){return u+h+c+v+u+"/"+h+c},x=function(v){v.write(m("")),v.close();var A=v.parentWindow.Object;return v=null,A},k=function(){var v=l("iframe"),A="java"+h+":",S;return v.style.display="none",s.appendChild(v),v.src=String(A),S=v.contentWindow.document,S.open(),S.write(m("document.F=Object")),S.close(),S.F},C,y=function(){try{C=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&C?x(C):k():x(C);for(var v=i.length;v--;)delete y[g][i[v]];return y()};n[p]=!0,a.exports=Object.create||function(A,S){var I;return A!==null?(f[g]=o(A),I=new f,f[g]=null,I[p]=A):I=y(),S===void 0?I:r.f(I,S)}},6801(a,e,t){var o=t(3724),r=t(8686),i=t(4913),n=t(8551),s=t(5397),l=t(1072);e.f=o&&!r?Object.defineProperties:function(c,u){n(c);for(var g=s(u),h=l(u),p=h.length,f=0,m;p>f;)i.f(c,m=h[f++],g[m]);return c}},4913(a,e,t){var o=t(3724),r=t(5917),i=t(8686),n=t(8551),s=t(6969),l=TypeError,d=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",g="configurable",h="writable";e.f=o?i?function(f,m,x){if(n(f),m=s(m),n(x),typeof f=="function"&&m==="prototype"&&"value"in x&&h in x&&!x[h]){var k=c(f,m);k&&k[h]&&(f[m]=x.value,x={configurable:g in x?x[g]:k[g],enumerable:u in x?x[u]:k[u],writable:!1})}return d(f,m,x)}:d:function(f,m,x){if(n(f),m=s(m),n(x),r)try{return d(f,m,x)}catch{}if("get"in x||"set"in x)throw new l("Accessors not supported");return"value"in x&&(f[m]=x.value),f}},7347(a,e,t){var o=t(3724),r=t(9565),i=t(8773),n=t(6980),s=t(5397),l=t(6969),d=t(9297),c=t(5917),u=Object.getOwnPropertyDescriptor;e.f=o?u:function(h,p){if(h=s(h),p=l(p),c)try{return u(h,p)}catch{}if(d(h,p))return n(!r(i.f,h,p),h[p])}},8480(a,e,t){var o=t(1828),r=t(8727),i=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(s){return o(s,i)}},3717(a,e){e.f=Object.getOwnPropertySymbols},2787(a,e,t){var o=t(9297),r=t(4901),i=t(8981),n=t(6119),s=t(2211),l=n("IE_PROTO"),d=Object,c=d.prototype;a.exports=s?d.getPrototypeOf:function(u){var g=i(u);if(o(g,l))return g[l];var h=g.constructor;return r(h)&&g instanceof h?h.prototype:g instanceof d?c:null}},1625(a,e,t){var o=t(9504);a.exports=o({}.isPrototypeOf)},1828(a,e,t){var o=t(9504),r=t(9297),i=t(5397),n=t(9617).indexOf,s=t(421),l=o([].push);a.exports=function(d,c){var u=i(d),g=0,h=[],p;for(p in u)!r(s,p)&&r(u,p)&&l(h,p);for(;c.length>g;)r(u,p=c[g++])&&(~n(h,p)||l(h,p));return h}},1072(a,e,t){var o=t(1828),r=t(8727);a.exports=Object.keys||function(n){return o(n,r)}},8773(a,e){var t={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!t.call({1:2},1);e.f=r?function(n){var s=o(this,n);return!!s&&s.enumerable}:t},2967(a,e,t){var o=t(6706),r=t(34),i=t(7750),n=t(3506);a.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var s=!1,l={},d;try{d=o(Object.prototype,"__proto__","set"),d(l,[]),s=l instanceof Array}catch{}return function(u,g){return i(u),n(g),r(u)&&(s?d(u,g):u.__proto__=g),u}})():void 0)},4270(a,e,t){var o=t(9565),r=t(4901),i=t(34),n=TypeError;a.exports=function(s,l){var d,c;if(l==="string"&&r(d=s.toString)&&!i(c=o(d,s))||r(d=s.valueOf)&&!i(c=o(d,s))||l!=="string"&&r(d=s.toString)&&!i(c=o(d,s)))return c;throw new n("Can't convert object to primitive value")}},5031(a,e,t){var o=t(7751),r=t(9504),i=t(8480),n=t(3717),s=t(8551),l=r([].concat);a.exports=o("Reflect","ownKeys")||function(c){var u=i.f(s(c)),g=n.f;return g?l(u,g(c)):u}},8235(a,e,t){var o=t(9504),r=t(9297),i=SyntaxError,n=parseInt,s=String.fromCharCode,l=o("".charAt),d=o("".slice),c=o(/./.exec),u={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
|
|
2
2
|
`,"\\r":"\r","\\t":" "},g=/^[\da-f]{4}$/i,h=/^[\u0000-\u001F]$/;a.exports=function(p,f){for(var m=!0,x="";f<p.length;){var k=l(p,f);if(k==="\\"){var C=d(p,f,f+2);if(r(u,C))x+=u[C],f+=2;else if(C==="\\u"){f+=2;var y=d(p,f,f+4);if(!c(g,y))throw new i("Bad Unicode escape at: "+f);x+=s(n(y,16)),f+=4}else throw new i('Unknown escape sequence: "'+C+'"')}else if(k==='"'){m=!1,f++;break}else{if(c(h,k))throw new i("Bad control character in string literal at: "+f);x+=k,f++}}if(m)throw new i("Unterminated string at: "+f);return{value:x,end:f}}},7750(a,e,t){var o=t(4117),r=TypeError;a.exports=function(i){if(o(i))throw new r("Can't call method on "+i);return i}},9286(a,e,t){var o=t(4402),r=t(8469),i=o.Set,n=o.add;a.exports=function(s){var l=new i;return r(s,function(d){n(l,d)}),l}},3440(a,e,t){var o=t(7080),r=t(4402),i=t(9286),n=t(5170),s=t(3789),l=t(8469),d=t(507),c=r.has,u=r.remove;a.exports=function(h){var p=o(this),f=s(h),m=i(p);return n(m)<=f.size?l(m,function(x){f.includes(x)&&u(m,x)}):d(f.getIterator(),function(x){c(m,x)&&u(m,x)}),m}},4402(a,e,t){var o=t(9504),r=Set.prototype;a.exports={Set,add:o(r.add),has:o(r.has),remove:o(r.delete),proto:r}},8750(a,e,t){var o=t(7080),r=t(4402),i=t(5170),n=t(3789),s=t(8469),l=t(507),d=r.Set,c=r.add,u=r.has;a.exports=function(h){var p=o(this),f=n(h),m=new d;return i(p)>f.size?l(f.getIterator(),function(x){u(p,x)&&c(m,x)}):s(p,function(x){f.includes(x)&&c(m,x)}),m}},4449(a,e,t){var o=t(7080),r=t(4402).has,i=t(5170),n=t(3789),s=t(8469),l=t(507),d=t(9539);a.exports=function(u){var g=o(this),h=n(u);if(i(g)<=h.size)return s(g,function(f){if(h.includes(f))return!1},!0)!==!1;var p=h.getIterator();return l(p,function(f){if(r(g,f))return d(p.iterator,"normal",!1)})!==!1}},3838(a,e,t){var o=t(7080),r=t(5170),i=t(8469),n=t(3789);a.exports=function(l){var d=o(this),c=n(l);return r(d)>c.size?!1:i(d,function(u){if(!c.includes(u))return!1},!0)!==!1}},8527(a,e,t){var o=t(7080),r=t(4402).has,i=t(5170),n=t(3789),s=t(507),l=t(9539);a.exports=function(c){var u=o(this),g=n(c);if(i(u)<g.size)return!1;var h=g.getIterator();return s(h,function(p){if(!r(u,p))return l(h.iterator,"normal",!1)})!==!1}},8469(a,e,t){var o=t(9504),r=t(507),i=t(4402),n=i.Set,s=i.proto,l=o(s.forEach),d=o(s.keys),c=d(new n).next;a.exports=function(u,g,h){return h?r({iterator:d(u),next:c},g):l(u,g)}},4916(a,e,t){var o=t(7751),r=function(n){return{size:n,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(n){return{size:n,has:function(){return!0},keys:function(){throw new Error("e")}}};a.exports=function(n,s){var l=o("Set");try{new l()[n](r(0));try{return new l()[n](r(-1)),!1}catch{if(!s)return!0;try{return new l()[n](i(-1/0)),!1}catch{var d=new l([1,2]);return s(d[n](i(1/0)))}}}catch{return!1}}},9835(a){a.exports=function(e){try{var t=new Set,o={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},r=t[e](o);return r.size===1&&r.values().next().value===4}catch{return!1}}},5170(a,e,t){var o=t(6706),r=t(4402);a.exports=o(r.proto,"size","get")||function(i){return i.size}},3650(a,e,t){var o=t(7080),r=t(4402),i=t(9286),n=t(3789),s=t(507),l=r.add,d=r.has,c=r.remove;a.exports=function(g){var h=o(this),p=n(g).getIterator(),f=i(h);return s(p,function(m){d(h,m)?c(f,m):l(f,m)}),f}},4204(a,e,t){var o=t(7080),r=t(4402).add,i=t(9286),n=t(3789),s=t(507);a.exports=function(d){var c=o(this),u=n(d).getIterator(),g=i(c);return s(u,function(h){r(g,h)}),g}},6119(a,e,t){var o=t(5745),r=t(3392),i=o("keys");a.exports=function(n){return i[n]||(i[n]=r(n))}},7629(a,e,t){var o=t(6395),r=t(4576),i=t(9433),n="__core-js_shared__",s=a.exports=r[n]||i(n,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:o?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745(a,e,t){var o=t(7629);a.exports=function(r,i){return o[r]||(o[r]=i||{})}},533(a,e,t){var o=t(9504),r=t(8014),i=t(655),n=t(2333),s=t(7750),l=o(n),d=o("".slice),c=Math.ceil,u=function(g){return function(h,p,f){var m=i(s(h)),x=r(p),k=m.length;if(x<=k)return m;var C=f===void 0?" ":i(f),y,v;return C===""?m:(y=x-k,v=l(C,c(y/C.length)),v.length>y&&(v=d(v,0,y)),g?m+v:v+m)}};a.exports={start:u(!1),end:u(!0)}},2333(a,e,t){var o=t(1291),r=t(655),i=t(7750),n=RangeError,s=Math.floor;a.exports=function(d){var c=r(i(this)),u="",g=o(d);if(g<0||g===1/0)throw new n("Wrong number of repetitions");for(;g>0;(g=s(g/2))&&(c+=c))g%2&&(u+=c);return u}},1548(a,e,t){var o=t(4576),r=t(9039),i=t(9519),n=t(4215),s=o.structuredClone;a.exports=!!s&&!r(function(){if(n==="DENO"&&i>92||n==="NODE"&&i>94||n==="BROWSER"&&i>97)return!1;var l=new ArrayBuffer(8),d=s(l,{transfer:[l]});return l.byteLength!==0||d.byteLength!==8})},4495(a,e,t){var o=t(9519),r=t(9039),i=t(4576),n=i.String;a.exports=!!Object.getOwnPropertySymbols&&!r(function(){var s=Symbol("symbol detection");return!n(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&o&&o<41})},5610(a,e,t){var o=t(1291),r=Math.max,i=Math.min;a.exports=function(n,s){var l=o(n);return l<0?r(l+s,0):i(l,s)}},5854(a,e,t){var o=t(2777),r=TypeError;a.exports=function(i){var n=o(i,"number");if(typeof n=="number")throw new r("Can't convert number to bigint");return BigInt(n)}},7696(a,e,t){var o=t(1291),r=t(8014),i=RangeError;a.exports=function(n){if(n===void 0)return 0;var s=o(n),l=r(s);if(s!==l)throw new i("Wrong length or index");return l}},5397(a,e,t){var o=t(7055),r=t(7750);a.exports=function(i){return o(r(i))}},1291(a,e,t){var o=t(741);a.exports=function(r){var i=+r;return i!==i||i===0?0:o(i)}},8014(a,e,t){var o=t(1291),r=Math.min;a.exports=function(i){var n=o(i);return n>0?r(n,9007199254740991):0}},8981(a,e,t){var o=t(7750),r=Object;a.exports=function(i){return r(o(i))}},2777(a,e,t){var o=t(9565),r=t(34),i=t(757),n=t(5966),s=t(4270),l=t(8227),d=TypeError,c=l("toPrimitive");a.exports=function(u,g){if(!r(u)||i(u))return u;var h=n(u,c),p;if(h){if(g===void 0&&(g="default"),p=o(h,u,g),!r(p)||i(p))return p;throw new d("Can't convert object to primitive value")}return g===void 0&&(g="number"),s(u,g)}},6969(a,e,t){var o=t(2777),r=t(757);a.exports=function(i){var n=o(i,"string");return r(n)?n:n+""}},2140(a,e,t){var o=t(8227),r=o("toStringTag"),i={};i[r]="z",a.exports=String(i)==="[object z]"},655(a,e,t){var o=t(6955),r=String;a.exports=function(i){if(o(i)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return r(i)}},6823(a){var e=String;a.exports=function(t){try{return e(t)}catch{return"Object"}}},3392(a,e,t){var o=t(9504),r=0,i=Math.random(),n=o(1.1.toString);a.exports=function(s){return"Symbol("+(s===void 0?"":s)+")_"+n(++r+i,36)}},7416(a,e,t){var o=t(9039),r=t(8227),i=t(3724),n=t(6395),s=r("iterator");a.exports=!o(function(){var l=new URL("b?a=1&b=2&c=3","https://a"),d=l.searchParams,c=new URLSearchParams("a=1&a=2&b=3"),u="";return l.pathname="c%20d",d.forEach(function(g,h){d.delete("b"),u+=h+g}),c.delete("a",2),c.delete("b",void 0),n&&(!l.toJSON||!c.has("a",1)||c.has("a",2)||!c.has("a",void 0)||c.has("b"))||!d.size&&(n||!i)||!d.sort||l.href!=="https://a/c%20d?a=1&c=3"||d.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!d[s]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://тест").host!=="xn--e1aybc"||new URL("https://a#б").hash!=="#%D0%B1"||u!=="a1c3"||new URL("https://x",void 0).host!=="x"})},7040(a,e,t){var o=t(4495);a.exports=o&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},8686(a,e,t){var o=t(3724),r=t(9039);a.exports=o&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},2812(a){var e=TypeError;a.exports=function(t,o){if(t<o)throw new e("Not enough arguments");return t}},8622(a,e,t){var o=t(4576),r=t(4901),i=o.WeakMap;a.exports=r(i)&&/native code/.test(String(i))},4995(a,e,t){var o=t(9504),r=WeakMap.prototype;a.exports={WeakMap,set:o(r.set),get:o(r.get),has:o(r.has),remove:o(r.delete)}},8227(a,e,t){var o=t(4576),r=t(5745),i=t(9297),n=t(3392),s=t(4495),l=t(7040),d=o.Symbol,c=r("wks"),u=l?d.for||d:d&&d.withoutSetter||n;a.exports=function(g){return i(c,g)||(c[g]=s&&i(d,g)?d[g]:u("Symbol."+g)),c[g]}},7452(a){a.exports=`
|
|
3
3
|
\v\f\r \u2028\u2029\uFEFF`},6573(a,e,t){var o=t(3724),r=t(2106),i=t(3238),n=ArrayBuffer.prototype;o&&!("detached"in n)&&r(n,"detached",{configurable:!0,get:function(){return i(this)}})},7936(a,e,t){var o=t(6518),r=t(5636);r&&o({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return r(this,arguments.length?arguments[0]:void 0,!1)}})},8100(a,e,t){var o=t(6518),r=t(5636);r&&o({target:"ArrayBuffer",proto:!0},{transfer:function(){return r(this,arguments.length?arguments[0]:void 0,!0)}})},4423(a,e,t){var o=t(6518),r=t(9617).includes,i=t(9039),n=t(6469),s=i(function(){return!Array(1).includes()}),l=i(function(){return[,1].includes(void 0,1)});o({target:"Array",proto:!0,forced:s||l},{includes:function(c){return r(this,c,arguments.length>1?arguments[1]:void 0)}}),n("includes")},4114(a,e,t){var o=t(6518),r=t(8981),i=t(6198),n=t(4527),s=t(6837),l=t(9039),d=l(function(){return[].push.call({length:4294967296},1)!==4294967297}),c=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(g){return g instanceof TypeError}},u=d||!c();o({target:"Array",proto:!0,arity:1,forced:u},{push:function(h){var p=r(this),f=i(p),m=arguments.length;s(f+m);for(var x=0;x<m;x++)p[f]=arguments[x],f++;return n(p,f),f}})},8111(a,e,t){var o=t(6518),r=t(4576),i=t(679),n=t(8551),s=t(4901),l=t(2787),d=t(2106),c=t(4659),u=t(9039),g=t(9297),h=t(8227),p=t(7657).IteratorPrototype,f=t(3724),m=t(6395),x="constructor",k="Iterator",C=h("toStringTag"),y=TypeError,v=r[k],A=m||!s(v)||v.prototype!==p||!u(function(){v({})}),S=function(){if(i(this,p),l(this)===p)throw new y("Abstract class Iterator not directly constructable")},I=function(b,E){f?d(p,b,{configurable:!0,get:function(){return E},set:function(P){if(n(this),this===p)throw new y("You can't redefine this property");g(this,b)?this[b]=P:c(this,b,P)}}):p[b]=E};g(p,C)||I(C,k),(A||!g(p,x)||p[x]===Object)&&I(x,S),S.prototype=p,o({global:!0,constructor:!0,forced:A},{Iterator:S})},1148(a,e,t){var o=t(6518),r=t(9565),i=t(2652),n=t(9306),s=t(8551),l=t(1767),d=t(9539),c=t(4549),u=c("every",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:u},{every:function(h){s(this);try{n(h)}catch(m){d(this,"throw",m)}if(u)return r(u,this,h);var p=l(this),f=0;return!i(p,function(m,x){if(!h(m,f++))return x()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},2489(a,e,t){var o=t(6518),r=t(9565),i=t(9306),n=t(8551),s=t(1767),l=t(9462),d=t(6319),c=t(6395),u=t(9539),g=t(684),h=t(4549),p=!c&&!g("filter",function(){}),f=!c&&!p&&h("filter",TypeError),m=c||p||f,x=l(function(){for(var k=this.iterator,C=this.predicate,y=this.next,v,A,S;;){if(v=n(r(y,k)),A=this.done=!!v.done,A)return;if(S=v.value,d(k,C,[S,this.counter++],!0))return S}});o({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(C){n(this);try{i(C)}catch(y){u(this,"throw",y)}return f?r(f,this,C):new x(s(this),{predicate:C})}})},7588(a,e,t){var o=t(6518),r=t(9565),i=t(2652),n=t(9306),s=t(8551),l=t(1767),d=t(9539),c=t(4549),u=c("forEach",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(h){s(this);try{n(h)}catch(m){d(this,"throw",m)}if(u)return r(u,this,h);var p=l(this),f=0;i(p,function(m){h(m,f++)},{IS_RECORD:!0})}})},1701(a,e,t){var o=t(6518),r=t(9565),i=t(9306),n=t(8551),s=t(1767),l=t(9462),d=t(6319),c=t(9539),u=t(684),g=t(4549),h=t(6395),p=!h&&!u("map",function(){}),f=!h&&!p&&g("map",TypeError),m=h||p||f,x=l(function(){var k=this.iterator,C=n(r(this.next,k)),y=this.done=!!C.done;if(!y)return d(k,this.mapper,[C.value,this.counter++],!0)});o({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(C){n(this);try{i(C)}catch(y){c(this,"throw",y)}return f?r(f,this,C):new x(s(this),{mapper:C})}})},3579(a,e,t){var o=t(6518),r=t(9565),i=t(2652),n=t(9306),s=t(8551),l=t(1767),d=t(9539),c=t(4549),u=c("some",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(h){s(this);try{n(h)}catch(m){d(this,"throw",m)}if(u)return r(u,this,h);var p=l(this),f=0;return i(p,function(m,x){if(h(m,f++))return x()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},9112(a,e,t){var o=t(6518),r=t(3724),i=t(4576),n=t(7751),s=t(9504),l=t(9565),d=t(4901),c=t(34),u=t(4376),g=t(9297),h=t(655),p=t(6198),f=t(4659),m=t(9039),x=t(8235),k=t(4495),C=i.JSON,y=i.Number,v=i.SyntaxError,A=C&&C.parse,S=n("Object","keys"),I=Object.getOwnPropertyDescriptor,b=s("".charAt),E=s("".slice),P=s(/./.exec),B=s([].push),D=/^\d$/,z=/^[1-9]$/,Q=/^[\d-]$/,T=/^[\t\n\r ]$/,N=0,H=1,W=function(M,L){M=h(M);var F=new J(M,0),O=F.parse(),Z=O.value,j=F.skip(T,O.end);if(j<M.length)throw new v('Unexpected extra character: "'+b(M,j)+'" after the parsed data at: '+j);return d(L)?ot({"":Z},"",L,O):Z},ot=function(M,L,F,O){var Z=M[L],j=O&&Z===O.value,V=j&&typeof O.source=="string"?{source:O.source}:{},_,st,et,tt,dt;if(c(Z)){var pt=u(Z),St=j?O.nodes:pt?[]:{};if(pt)for(_=St.length,et=p(Z),tt=0;tt<et;tt++)X(Z,tt,ot(Z,""+tt,F,tt<_?St[tt]:void 0));else for(st=S(Z),et=p(st),tt=0;tt<et;tt++)dt=st[tt],X(Z,dt,ot(Z,dt,F,g(St,dt)?St[dt]:void 0))}return l(F,M,L,Z,V)},X=function(M,L,F){if(r){var O=I(M,L);if(O&&!O.configurable)return}F===void 0?delete M[L]:f(M,L,F)},q=function(M,L,F,O){this.value=M,this.end=L,this.source=F,this.nodes=O},J=function(M,L){this.source=M,this.index=L};J.prototype={fork:function(M){return new J(this.source,M)},parse:function(){var M=this.source,L=this.skip(T,this.index),F=this.fork(L),O=b(M,L);if(P(Q,O))return F.number();switch(O){case"{":return F.object();case"[":return F.array();case'"':return F.string();case"t":return F.keyword(!0);case"f":return F.keyword(!1);case"n":return F.keyword(null)}throw new v('Unexpected character: "'+O+'" at: '+L)},node:function(M,L,F,O,Z){return new q(L,O,M?null:E(this.source,F,O),Z)},object:function(){for(var M=this.source,L=this.index+1,F=!1,O={},Z={},j=!1;L<M.length;){if(L=this.until(['"',"}"],L),b(M,L)==="}"&&!F){L++,j=!0;break}var V=this.fork(L).string(),_=V.value;L=V.end,L=this.until([":"],L)+1,L=this.skip(T,L),V=this.fork(L).parse(),f(Z,_,V),f(O,_,V.value),L=this.until([",","}"],V.end);var st=b(M,L);if(st===",")F=!0,L++;else if(st==="}"){L++,j=!0;break}}if(!j)throw new v("Unterminated object at: "+L);return this.node(H,O,this.index,L,Z)},array:function(){for(var M=this.source,L=this.index+1,F=!1,O=[],Z=[],j=!1;L<M.length;){if(L=this.skip(T,L),b(M,L)==="]"&&!F){L++,j=!0;break}var V=this.fork(L).parse();if(B(Z,V),B(O,V.value),L=this.until([",","]"],V.end),b(M,L)===",")F=!0,L++;else if(b(M,L)==="]"){L++,j=!0;break}}if(!j)throw new v("Unterminated array at: "+L);return this.node(H,O,this.index,L,Z)},string:function(){var M=this.index,L=x(this.source,this.index+1);return this.node(N,L.value,M,L.end)},number:function(){var M=this.source,L=this.index,F=L;if(b(M,F)==="-"&&F++,b(M,F)==="0")F++;else if(P(z,b(M,F)))F=this.skip(D,F+1);else throw new v("Failed to parse number at: "+F);if(b(M,F)==="."){var O=F+1;if(F=this.skip(D,O),O===F)throw new v("Failed to parse number's fraction at: "+F)}if(b(M,F)==="e"||b(M,F)==="E"){F++,(b(M,F)==="+"||b(M,F)==="-")&&F++;var Z=F;if(F=this.skip(D,F),Z===F)throw new v("Failed to parse number's exponent value at: "+F)}return this.node(N,y(E(M,L,F)),L,F)},keyword:function(M){var L=""+M,F=this.index,O=F+L.length;if(E(this.source,F,O)!==L)throw new v("Failed to parse value at: "+F);return this.node(N,M,F,O)},skip:function(M,L){for(var F=this.source;L<F.length&&P(M,b(F,L));L++);return L},until:function(M,L){L=this.skip(T,L);for(var F=b(this.source,L),O=0;O<M.length;O++)if(M[O]===F)return L;throw new v('Unexpected character: "'+F+'" at: '+L)}};var gt=m(function(){var M="9007199254740993",L;return A(M,function(F,O,Z){L=Z.source}),L!==M}),it=k&&!m(function(){return 1/A("-0 ")!==-1/0});o({target:"JSON",stat:!0,forced:gt},{parse:function(L,F){return it&&!d(F)?A(L):W(L,F)}})},3110(a,e,t){var o=t(6518),r=t(7751),i=t(8745),n=t(9565),s=t(9504),l=t(9039),d=t(4376),c=t(4901),u=t(5810),g=t(757),h=t(2195),p=t(655),f=t(7680),m=t(8235),x=t(3392),k=t(4495),C=t(7819),y=String,v=r("JSON","stringify"),A=s(/./.exec),S=s("".charAt),I=s("".charCodeAt),b=s("".replace),E=s("".slice),P=s([].push),B=s(1.1.toString),D=/[\uD800-\uDFFF]/g,z=/^[\uD800-\uDBFF]$/,Q=/^[\uDC00-\uDFFF]$/,T=x(),N=T.length,H=!k||l(function(){var J=r("Symbol")("stringify detection");return v([J])!=="[null]"||v({a:J})!=="{}"||v(Object(J))!=="{}"}),W=l(function(){return v("\uDF06\uD834")!=='"\\udf06\\ud834"'||v("\uDEAD")!=='"\\udead"'}),ot=H?function(J,gt){var it=f(arguments),M=q(gt);if(!(!c(M)&&(J===void 0||g(J))))return it[1]=function(L,F){if(c(M)&&(F=n(M,this,y(L),F)),!g(F))return F},i(v,null,it)}:v,X=function(J,gt,it){var M=S(it,gt-1),L=S(it,gt+1);return A(z,J)&&!A(Q,L)||A(Q,J)&&!A(z,M)?"\\u"+B(I(J,0),16):J},q=function(J){if(c(J))return J;if(d(J)){for(var gt=J.length,it=[],M=0;M<gt;M++){var L=J[M];typeof L=="string"?P(it,L):(typeof L=="number"||h(L)==="Number"||h(L)==="String")&&P(it,p(L))}var F=it.length,O=!0;return function(Z,j){if(O)return O=!1,j;if(d(this))return j;for(var V=0;V<F;V++)if(it[V]===Z)return j}}};v&&o({target:"JSON",stat:!0,arity:3,forced:H||W||!C},{stringify:function(gt,it,M){var L=q(it),F=[],O=ot(gt,function(tt,dt){var pt=c(L)?n(L,this,y(tt),dt):dt;return!C&&u(pt)?T+(P(F,pt.rawJSON)-1):pt},M);if(typeof O!="string"||(W&&(O=b(O,D,X)),C))return O;for(var Z="",j=O.length,V=0;V<j;V++){var _=S(O,V);if(_==='"'){var st=m(O,++V).end-1,et=E(O,V,st);Z+=E(et,0,N)===T?F[E(et,N)]:'"'+et+'"',V=st}else Z+=_}return Z}})},2731(a,e,t){var o=t(6518),r=t(9306),i=t(2248),n=t(6395),s=i.get,l=i.has,d=i.set;o({target:"Map",proto:!0,real:!0,forced:n},{getOrInsertComputed:function(u,g){var h=l(this,u);if(r(g),h)return s(this,u);u===0&&1/u===-1/0&&(u=0);var p=g(u);return d(this,u,p),p}})},5367(a,e,t){var o=t(6518),r=t(2248),i=t(6395),n=r.get,s=r.has,l=r.set;o({target:"Map",proto:!0,real:!0,forced:i},{getOrInsert:function(c,u){return s(this,c)?n(this,c):(l(this,c,u),u)}})},4628(a,e,t){var o=t(6518),r=t(6043);o({target:"Promise",stat:!0},{withResolvers:function(){var n=r.f(this);return{promise:n.promise,resolve:n.resolve,reject:n.reject}}})},6069(a,e,t){var o=t(6518),r=t(9504),i=t(3463),n=t(9297),s=t(533).start,l=t(7452),d=Array,c=RegExp.escape,u=r("".charAt),g=r("".charCodeAt),h=r(1.1.toString),p=r([].join),f=/^[0-9a-z]/i,m=/^[$()*+./?[\\\]^{|}]/,x=RegExp("^[!\"#%&',\\-:;<=>@`~"+l+"]"),k=r(f.exec),C={" ":"t","\n":"n","\v":"v","\f":"f","\r":"r"},y=function(A){var S=h(g(A,0),16);return S.length<3?"\\x"+s(S,2,"0"):"\\u"+s(S,4,"0")},v=!c||c("ab")!=="\\x61b";o({target:"RegExp",stat:!0,forced:v},{escape:function(S){i(S);for(var I=S.length,b=d(I),E=0;E<I;E++){var P=u(S,E);if(E===0&&k(f,P))b[E]=y(P);else if(n(C,P))b[E]="\\"+C[P];else if(k(m,P))b[E]="\\"+P;else if(k(x,P))b[E]=y(P);else{var B=g(P,0);(B&63488)!==55296?b[E]=P:B>=56320||E+1>=I||(g(S,E+1)&64512)!==56320?b[E]=y(P):(b[E]=P,b[++E]=u(S,E))}}return p(b,"")}})},7642(a,e,t){var o=t(6518),r=t(3440),i=t(9039),n=t(4916),s=!n("difference",function(d){return d.size===0}),l=s||i(function(){var d={size:1,has:function(){return!0},keys:function(){var u=0;return{next:function(){var g=u++>1;return c.has(1)&&c.clear(),{done:g,value:2}}}}},c=new Set([1,2,3,4]);return c.difference(d).size!==3});o({target:"Set",proto:!0,real:!0,forced:l},{difference:r})},8004(a,e,t){var o=t(6518),r=t(9039),i=t(8750),n=t(4916),s=!n("intersection",function(l){return l.size===2&&l.has(1)&&l.has(2)})||r(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});o({target:"Set",proto:!0,real:!0,forced:s},{intersection:i})},3853(a,e,t){var o=t(6518),r=t(4449),i=t(4916),n=!i("isDisjointFrom",function(s){return!s});o({target:"Set",proto:!0,real:!0,forced:n},{isDisjointFrom:r})},5876(a,e,t){var o=t(6518),r=t(3838),i=t(4916),n=!i("isSubsetOf",function(s){return s});o({target:"Set",proto:!0,real:!0,forced:n},{isSubsetOf:r})},2475(a,e,t){var o=t(6518),r=t(8527),i=t(4916),n=!i("isSupersetOf",function(s){return!s});o({target:"Set",proto:!0,real:!0,forced:n},{isSupersetOf:r})},5024(a,e,t){var o=t(6518),r=t(3650),i=t(9835),n=t(4916),s=!n("symmetricDifference")||!i("symmetricDifference");o({target:"Set",proto:!0,real:!0,forced:s},{symmetricDifference:r})},1698(a,e,t){var o=t(6518),r=t(4204),i=t(9835),n=t(4916),s=!n("union")||!i("union");o({target:"Set",proto:!0,real:!0,forced:s},{union:r})},9577(a,e,t){var o=t(4644),r=t(1108),i=t(6198),n=t(1291),s=t(5854),l=o.aTypedArray,d=o.getTypedArrayConstructor,c=o.exportTypedArrayMethod,u=RangeError,g=(function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(p){return p===8}})(),h=g&&(function(){try{new Int8Array(1).with(-.5,1)}catch{return!0}})();c("with",function(p,f){var m=l(this),x=i(m),k=n(p),C=k<0?x+k:k,y=r(m)?s(f):+f;if(C>=x||C<0)throw new u("Incorrect index");for(var v=new(d(m))(x),A=0;A<x;A++)v[A]=A===C?y:m[A];return v},!g||h)},9452(a,e,t){var o=t(6518),r=t(9306),i=t(6557),n=t(4328),s=t(4995),l=t(6395),d=s.get,c=s.has,u=s.set,g=l||!(function(){try{WeakMap.prototype.getOrInsertComputed&&new WeakMap().getOrInsertComputed(1,function(){throw 1})}catch(h){return h instanceof TypeError}})();o({target:"WeakMap",proto:!0,real:!0,forced:g},{getOrInsertComputed:function(p,f){if(l||i(this),n(p),r(f),c(this,p))return d(this,p);var m=f(p);return u(this,p,m),m}})},8454(a,e,t){var o=t(6518),r=t(4995),i=t(6395),n=r.get,s=r.has,l=r.set;o({target:"WeakMap",proto:!0,real:!0,forced:i},{getOrInsert:function(c,u){return s(this,c)?n(this,c):(l(this,c,u),u)}})},4603(a,e,t){var o=t(6840),r=t(9504),i=t(655),n=t(2812),s=URLSearchParams,l=s.prototype,d=r(l.append),c=r(l.delete),u=r(l.forEach),g=r([].push),h=new s("a=1&a=2&b=3");h.delete("a",1),h.delete("b",void 0),h+""!="a=2"&&o(l,"delete",function(p){var f=arguments.length,m=f<2?void 0:arguments[1];if(f&&m===void 0)return c(this,p);var x=[];u(this,function(S,I){g(x,{key:I,value:S})}),n(f,1);for(var k=i(p),C=i(m),y=0,v=x.length,A;y<v;)A=x[y],c(this,A.key),y++;for(y=0;y<v;)A=x[y++],A.key===k&&A.value===C||d(this,A.key,A.value)},{enumerable:!0,unsafe:!0})},7566(a,e,t){var o=t(6840),r=t(9504),i=t(655),n=t(2812),s=URLSearchParams,l=s.prototype,d=r(l.getAll),c=r(l.has),u=new s("a=1");(u.has("a",2)||!u.has("a",void 0))&&o(l,"has",function(h){var p=arguments.length,f=p<2?void 0:arguments[1];if(p&&f===void 0)return c(this,h);var m=d(this,h);n(p,1);for(var x=i(f),k=0;k<m.length;)if(m[k++]===x)return!0;return!1},{enumerable:!0,unsafe:!0})},8721(a,e,t){var o=t(3724),r=t(9504),i=t(2106),n=URLSearchParams.prototype,s=r(n.forEach);o&&!("size"in n)&&i(n,"size",{get:function(){var d=0;return s(this,function(){d++}),d},configurable:!0,enumerable:!0})},5781(a,e,t){var o=t(6518),r=t(7751),i=t(2812),n=t(655),s=t(7416),l=r("URL");o({target:"URL",stat:!0,forced:!s},{parse:function(c){var u=i(arguments.length,1),g=n(c),h=u<2||arguments[1]===void 0?void 0:n(arguments[1]);try{return new l(g,h)}catch{return null}}})}},Ve={};function G(a){var e=Ve[a];if(e!==void 0)return e.exports;var t=Ve[a]={exports:{}};return _o[a].call(t.exports,t,t.exports,G),t.exports}G.d=(a,e)=>{for(var t in e)G.o(e,t)&&!G.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:e[t]})};G.o=(a,e)=>Object.prototype.hasOwnProperty.call(a,e);G(4114);G(6573);G(8100);G(7936);G(8111);G(2489);G(7588);G(1701);G(3110);G(5367);G(2731);G(4628);G(6069);G(7642);G(8004);G(3853);G(5876);G(2475);G(5024);G(1698);G(9577);const{AbortException:qo,AnnotationEditorLayer:tr,AnnotationEditorParamsType:Da,AnnotationEditorType:ht,AnnotationEditorUIManager:er,AnnotationLayer:or,AnnotationMode:wt,AnnotationType:ko,applyOpacity:Ba,build:Ra,ColorPicker:Oa,createValidAbsoluteUrl:Ao,CSSConstants:Na,DOMSVGFactory:ja,DrawLayer:rr,FeatureTest:So,fetchData:ze,findContrastColor:Va,getDocument:za,getFilenameFromUrl:Ha,getPdfFilenameFromUrl:ir,getRGB:Ua,getRGBA:Wa,getUuid:$a,getXfaPageViewport:Ga,GlobalWorkerOptions:Za,ImageKind:Qa,InvalidPDFException:Ka,isDataScheme:Ya,isPdfFile:ar,isValidExplicitDest:nr,makeArr:sr,makeMap:lr,makeObj:Ja,MathClamp:dr,noContextMenu:Xa,normalizeUnicode:cr,OPS:_a,OutputScale:oe,PasswordResponses:qa,PDFDataRangeTransport:tn,PDFDateString:en,PDFWorker:on,PermissionFlag:Nt,PixelsPerInch:yt,RenderingCancelledException:xe,renderRichText:rn,ResponseException:an,setLayerDimensions:Lo,shadow:Kt,SignatureExtractor:nn,stopEvent:we,SupportedImageMimeTypes:sn,TextLayer:ur,TextLayerImages:gr,TouchManager:ln,updateUrlHash:hr,Util:Se,VerbosityLevel:dn,version:He,XfaLayer:ue}=globalThis.pdfjsLib,ft={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};function pr(a){return a<11904}function fr(a){return(a&65408)===0}function mr(a){return a>=97&&a<=122||a>=65&&a<=90}function br(a){return a>=48&&a<=57}function vr(a){return a===32||a===9||a===13||a===10}function xr(a){return a>=13312&&a<=40959||a>=63744&&a<=64255}function wr(a){return a>=12448&&a<=12543}function Cr(a){return a>=12352&&a<=12447}function yr(a){return a>=65376&&a<=65439}function Er(a){return(a&65408)===3584}function Xt(a){return pr(a)?fr(a)?vr(a)?ft.SPACE:mr(a)||br(a)||a===95?ft.ALPHA_LETTER:ft.PUNCT:Er(a)?ft.THAI_LETTER:a===160?ft.SPACE:ft.ALPHA_LETTER:xr(a)?ft.HAN_LETTER:wr(a)?ft.KATAKANA_LETTER:Cr(a)?ft.HIRAGANA_LETTER:yr(a)?ft.HALFWIDTH_KATAKANA_LETTER:ft.ALPHA_LETTER}let Mt;function kr(){if(!Mt){const a=[],e=[],t=new RegExp("^\\p{M}$","u");for(let r=0;r<65536;r++){if(r>=55296&&r<=57343)continue;const i=String.fromCharCode(r);if(i.normalize("NFKC")!==i&&!t.test(i)){if(e.length!==2){e[0]=e[1]=r;continue}e[1]+1!==r?(e[0]===e[1]?a.push(String.fromCharCode(e[0])):a.push(`${String.fromCharCode(e[0])}-${String.fromCharCode(e[1])}`),e[0]=e[1]=r):e[1]=r}}const o=a.join("");if(!Mt)Mt=o;else if(o!==Mt){for(let r=1;r<o.length;r++)if(o[r]!==Mt[r]){console.log(`Difference at index ${r}: U+${o.charCodeAt(r).toString(16).toUpperCase().padStart(4,"0")}!== U+${Mt.charCodeAt(r).toString(16).toUpperCase().padStart(4,"0")}`);break}throw new Error("getNormalizeWithNFKC - update the `NormalizeWithNFKC` string.")}}return Mt}G(4423);G(4603);G(7566);G(8721);const Ar="auto",To=1,Ue=1.1,Sr=.1,Lr=25,ge=0,Tr=1.25,We=40,$e=5,jt={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},xt={DISABLE:0,ENABLE:1,ENABLE_PERMISSIONS:2},$={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3},ut={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function Pr(a,e){let t=a.offsetParent;if(!t){console.error("offsetParent is not set -- cannot scroll");return}let o=a.offsetTop+a.clientTop,r=a.offsetLeft+a.clientLeft;for(;t.clientHeight===t.scrollHeight&&t.clientWidth===t.scrollWidth;)if(o+=t.offsetTop,r+=t.offsetLeft,t=t.offsetParent,!t)return;e&&(e.top!==void 0&&(o+=e.top),e.left!==void 0&&(r+=e.left,t.scrollLeft=r)),t.scrollTop=o}function Fr(a,e,t=void 0){const o=function(n){i||(i=window.requestAnimationFrame(function(){i=null;const l=a.scrollLeft,d=r.lastX;l!==d&&(r.right=l>d),r.lastX=l;const c=a.scrollTop,u=r.lastY;c!==u&&(r.down=c>u),r.lastY=c,e(r)}))},r={right:!0,down:!0,lastX:a.scrollLeft,lastY:a.scrollTop,_eventHandler:o};let i=null;return a.addEventListener("scroll",o,{useCapture:!0,signal:t}),t?.addEventListener("abort",()=>window.cancelAnimationFrame(i),{once:!0}),r}function ne(a){const e=new Map;for(const[t,o]of new URLSearchParams(a))e.set(t.toLowerCase(),o);return e}const Ge=/[\x00-\x1F]/g;function Gt(a,e=!1){return Ge.test(a)?e?a.replaceAll(Ge,t=>t==="\0"?"":" "):a.replaceAll("\0",""):a}function Yt(a,e,t=0){let o=t,r=a.length-1;if(r<0||!e(a[r]))return a.length;if(e(a[o]))return o;for(;o<r;){const i=o+r>>1,n=a[i];e(n)?r=i:o=i+1}return o}function Ze(a){if(Math.floor(a)===a)return[a,1];const e=1/a,t=8;if(e>t)return[1,t];if(Math.floor(e)===e)return[1,e];const o=a>1?e:a;let r=0,i=1,n=1,s=1;for(;;){const d=r+n,c=i+s;if(c>t)break;o<=d/c?(n=d,s=c):(r=d,i=c)}let l;return o-r/i<n/s-o?l=o===a?[r,i]:[i,r]:l=o===a?[n,s]:[s,n],l}function _t(a,e){return a-a%e}function Mr(a,e,t){if(a<2)return a;let o=e[a].div,r=o.offsetTop+o.clientTop;r>=t&&(o=e[a-1].div,r=o.offsetTop+o.clientTop);for(let i=a-2;i>=0&&(o=e[i].div,!(o.offsetTop+o.clientTop+o.clientHeight<=r));--i)a=i;return a}function Ir({scrollEl:a,views:e,sortByVisibility:t=!1,horizontal:o=!1,rtl:r=!1}){const i=a.scrollTop,n=i+a.clientHeight,s=a.scrollLeft,l=s+a.clientWidth;function d(k){const C=k.div;return C.offsetTop+C.clientTop+C.clientHeight>i}function c(k){const C=k.div,y=C.offsetLeft+C.clientLeft,v=y+C.clientWidth;return r?y<l:v>s}const u=[],g=new Set,h=e.length;let p=Yt(e,o?c:d);p>0&&p<h&&!o&&(p=Mr(p,e,i));let f=o?l:-1;for(let k=p;k<h;k++){const C=e[k],y=C.div,v=y.offsetLeft+y.clientLeft,A=y.offsetTop+y.clientTop,S=y.clientWidth,I=y.clientHeight,b=v+S,E=A+I;if(f===-1)E>=n&&(f=E);else if((o?v:A)>f)break;if(E<=i||A>=n||b<=s||v>=l)continue;const P=Math.max(0,i-A),B=Math.max(0,s-v),D=P+Math.max(0,E-n),z=B+Math.max(0,b-l),Q=(I-D)/I,T=(S-z)/S,N=Q*T*100|0;u.push({id:C.id,x:v,y:A,visibleArea:N===100?null:{minX:B,minY:P,maxX:Math.min(b,l)-v,maxY:Math.min(E,n)-A},view:C,percent:N,widthPercent:T*100|0}),g.add(C.id)}const m=u[0],x=u.at(-1);return t&&u.sort(function(k,C){const y=k.percent-C.percent;return Math.abs(y)>.001?-y:k.id-C.id}),{first:m,last:x,views:u,ids:g}}function Po(a){return Number.isInteger(a)&&a%90===0}function Dr(a){return Number.isInteger(a)&&Object.values($).includes(a)&&a!==$.UNKNOWN}function Br(a){return Number.isInteger(a)&&Object.values(ut).includes(a)&&a!==ut.UNKNOWN}function Qe(a){return a.width<=a.height}new Promise(function(a){window.requestAnimationFrame(a)});const Rr=document.documentElement.style;class Or{#t=null;#e=null;#i=0;#o=null;#r=!0;constructor(e){this.#t=e.classList,this.#o=e.style}get percent(){return this.#i}set percent(e){if(this.#i=e,isNaN(e)){this.#t.add("indeterminate");return}this.#t.remove("indeterminate"),this.#o.setProperty("--progressBar-percent",`${this.#i}%`)}setWidth(e){if(!e)return;const o=e.parentNode.offsetWidth-e.offsetWidth;o>0&&this.#o.setProperty("--progressBar-end-offset",`${o}px`)}setDisableAutoFetch(e=5e3){this.#i===100||isNaN(this.#i)||(this.#e&&clearTimeout(this.#e),this.show(),this.#e=setTimeout(()=>{this.#e=null,this.hide()},e))}hide(){this.#r&&(this.#r=!1,this.#t.add("hidden"))}show(){this.#r||(this.#r=!0,this.#t.remove("hidden"))}}function Nr(a){let e=$.VERTICAL,t=ut.NONE;switch(a){case"SinglePage":e=$.PAGE;break;case"OneColumn":break;case"TwoPageLeft":e=$.PAGE;case"TwoColumnLeft":t=ut.ODD;break;case"TwoPageRight":e=$.PAGE;case"TwoColumnRight":t=ut.EVEN;break}return{scrollMode:e,spreadMode:t}}const qt=(function(){const a=document.createElement("div");return a.style.width="round(down, calc(1.6666666666666665 * 792px), 1px)",a.style.width==="calc(1320px)"?Math.fround:e=>e})(),Lt={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3},jr=250,Ke={"‐":"-","‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},Ye=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]);let Je;const Vr=new RegExp("\\p{M}+","gu"),zr=new RegExp("([+^$|])|(\\p{P}+)|(\\s+)|(\\p{M})|(\\p{L})","gu"),Hr=new RegExp("([^\\p{M}])\\p{M}*$","u"),Ur=new RegExp("^\\p{M}*([^\\p{M}])","u"),Wr=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,Xe=new Map,$r="[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]",_e=new Map;let he=null,pe=null;function re(a,e={}){const t=[];let o;for(;(o=Wr.exec(a))!==null;){let{index:k}=o;for(const C of o[0]){let y=Xe.get(C);y||(y=C.normalize("NFD").length,Xe.set(C,y)),t.push([y,k++])}}const r=t.length>0,i=e.ignoreDashEOL??!1;let n;if(!r&&he)n=he;else if(r&&pe)n=pe;else{const k=Object.keys(Ke).join(""),C=kr(),S=[`[${k}]`,`[${C}]`,"(?:゙|゚)\\n","\\p{M}+(?:-\\n)?","\\p{Ll}-\\n(?=\\p{Ll})|\\p{Lu}-\\n(?=\\p{L})","\\S-\\n","(?:\\p{Ideographic}|[-ヿ])\\n","\\n",r?$r:"\\u0000"];n=new RegExp(S.map(I=>`(${I})`).join("|"),"gum"),r?pe=n:he=n}const s=[];for(;(o=Vr.exec(a))!==null;)s.push([o[0].length,o.index]);let l=a.normalize("NFD");const d=[0,0];let c=0,u=0,g=0,h=0,p=0,f=!1;l=l.replace(n,(k,C,y,v,A,S,I,b,E,P,B)=>{if(B-=h,C){const D=Ke[C],z=D.length;for(let Q=1;Q<z;Q++)d.push(B-g+Q,g-Q);return g-=z-1,D}if(y){let D=_e.get(y);D||(D=y.normalize("NFKC"),_e.set(y,D));const z=D.length;for(let Q=1;Q<z;Q++)d.push(B-g+Q,g-Q);return g-=z-1,D}if(v)return f=!0,B+p===s[c]?.[1]?++c:(d.push(B-1-g+1,g-1),g-=1,h+=1),d.push(B-g+1,g),h+=1,p+=1,v.charAt(0);if(A){const D=A.endsWith(`
|
|
4
4
|
`),z=D?A.length-2:A.length;f=!0;let Q=z;B+p===s[c]?.[1]&&(Q-=s[c][0],++c);for(let T=1;T<=Q;T++)d.push(B-1-g+T,g-T);return g-=Q,h+=Q,D?(B+=z-1,d.push(B-g+1,1+g),g+=1,h+=1,p+=1,A.slice(0,z)):A}if(S){if(i)return h+=1,p+=1,S.slice(0,-1);const D=S.length-2;return d.push(B-g+D,1+g),g+=1,h+=1,p+=1,S.slice(0,-2)}if(I)return h+=1,p+=1,I.slice(0,-1);if(b){const D=b.length-1;return d.push(B-g+D,g),h+=1,p+=1,b.slice(0,-1)}if(E)return d.push(B-g+1,g-1),g-=1,h+=1,p+=1," ";if(B+p===t[u]?.[1]){const D=t[u][0]-1;++u;for(let z=1;z<=D;z++)d.push(B-(g-z),g-z);g-=D,h+=D}return P}),d.push(l.length,g);const m=new Uint32Array(d.length>>1),x=new Int32Array(d.length>>1);for(let k=0,C=d.length;k<C;k+=2)m[k>>1]=d[k],x[k>>1]=d[k+1];return[l,[m,x],f]}function Fo(a,e,t){if(!a)return[e,t];const[o,r]=a,i=e,n=e+t-1;let s=Yt(o,g=>g>=i);o[s]>i&&--s;let l=Yt(o,g=>g>=n,s);o[l]>n&&--l;const d=i+r[s],u=n+r[l]+1-d;return[d,u]}class Mo{#t=null;#e=!0;#i=0;#o=null;#r=null;constructor({linkService:e,eventBus:t,updateMatchesCountOnProgress:o=!0}){this._linkService=e,this._eventBus=t,this.#e=o,this.onIsPageVisible=null,this.#n(),t._on("find",this.#a.bind(this)),t._on("findbarclose",this.#E.bind(this)),t._on("pagesedited",this.#y.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this.#t}setDocument(e){this._pdfDocument&&this.#n(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}#a(e){if(!e)return;const t=this._pdfDocument,{type:o}=e;(this.#t===null||this.#d(e))&&(this._dirtyMatch=!0),this.#t=e,o!=="highlightallchange"&&this.#C(Lt.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||t&&this._pdfDocument!==t)return;this.#v();const r=!this._highlightMatches,i=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),o?this._dirtyMatch?this.#c():o==="again"?(this.#c(),r&&this.#t.highlightAll&&this.#m()):o==="highlightallchange"?(i?this.#c():this._highlightMatches=!0,this.#m()):this.#c():this._findTimeout=setTimeout(()=>{this.#c(),this._findTimeout=null},jr)})}scrollMatchIntoView({element:e=null,pageIndex:t=-1,matchIndex:o=-1}){if(!(!this._scrollMatches||!e)){{if(o===-1||o!==this._selected.matchIdx)return;if(t===-1||t!==this._selected.pageIdx)return}this._scrollMatches=!1,e.scrollIntoView({block:"start",inline:"center"})}}#n(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this.#i=0,this.#t=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this.#o=null,this._firstPageCapability=Promise.withResolvers()}get#s(){const{query:e}=this.#t;return typeof e=="string"?(e!==this._rawQuery&&(this._rawQuery=e,[this._normalizedQuery]=re(e)),this._normalizedQuery):(e||[]).filter(t=>!!t).map(t=>re(t)[0])}#d(e){const t=e.query,o=this.#t.query,r=typeof t;if(r!==typeof o)return!0;if(r==="string"){if(t!==o)return!0}else if(JSON.stringify(t)!==JSON.stringify(o))return!0;switch(e.type){case"again":const n=this._selected.pageIdx+1,s=this._linkService;return n>=1&&n<=s.pagesCount&&n!==s.page&&!(this.onIsPageVisible?.(n)??!0);case"highlightallchange":return!1}return!0}#l(e,t,o){let r=e.slice(0,t).match(Hr);if(r){const i=e.charCodeAt(t),n=r[1].charCodeAt(0);if(Xt(i)===Xt(n))return!1}if(r=e.slice(t+o).match(Ur),r){const i=e.charCodeAt(t+o-1),n=r[1].charCodeAt(0);if(Xt(i)===Xt(n))return!1}return!0}#u(e,t){const{matchDiacritics:o}=this.#t;let r=!1;const i=(s,l)=>s===e?l:e.startsWith(s)?`${l}[ ]*`:e.endsWith(s)?`[ ]*${l}`:`[ ]*${l}[ ]*`;e=e.replaceAll(zr,(s,l,d,c,u,g)=>l?i(l,RegExp.escape(l)):d?i(d,RegExp.escape(d)):c?"[ ]+":o?u||g:u?Ye.has(u.charCodeAt(0))?u:"":t?(r=!0,`${g}\\p{M}*`):g);const n="[ ]*";return e.endsWith(n)&&(e=e.slice(0,e.length-n.length)),o&&t&&(Je||=String.fromCharCode(...Ye),r=!0,e=`${e}(?=[${Je}]|[^\\p{M}]|$)`),[r,e]}#h(e){if(!this.#t)return;const t=this.#s;if(t.length===0)return;const o=this._pageContents[e],r=this.match(t,o,e),i=this._pageMatches[e]=[],n=this._pageMatchesLength[e]=[],s=this._pageDiffs[e];r?.forEach(({index:d,length:c})=>{const[u,g]=Fo(s,d,c);g&&(i.push(u),n.push(g))}),this.#t.highlightAll&&this.#p(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this.#b());const l=i.length;this._matchesCountTotal+=l,this.#e?l>0&&this.#x():++this.#i===this._linkService.pagesCount&&this.#x()}match(e,t,o){const r=this._hasDiacritics[o];let i=!1;if(typeof e=="string"?[i,e]=this.#u(e,r):e=e.sort().reverse().map(u=>{const[g,h]=this.#u(u,r);return i||=g,`(${h})`}).join("|"),!e)return;const{caseSensitive:n,entireWord:s}=this.#t,l=`g${i?"u":""}${n?"":"i"}`;e=new RegExp(e,l);const d=[];let c;for(;(c=e.exec(t))!==null;)s&&!this.#l(t,c.index,c[0].length)||d.push({index:c.index,length:c[0].length});return d}#v(){if(this._extractTextPromises.length>0)return;let e=Promise.resolve();const t={disableNormalization:!0},o=this._pdfDocument;for(let r=0,i=this._linkService.pagesCount;r<i;r++){const{promise:n,resolve:s}=Promise.withResolvers();this._extractTextPromises[r]=n,e=e.then(async()=>{if(o!==this._pdfDocument){s();return}await o.getPage(r+1).then(l=>l.getTextContent(t)).then(l=>{const d=[];for(const c of l.items)d.push(c.str),c.hasEOL&&d.push(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as w,R as W,co as L,t as o,j as g,d as R}from"./index-B5UW6SaE.js";import{G as l,r$ as v}from"./appStore-CidPWYa0.js";import{R as F}from"./client-CPUljePZ.js";import{P as T}from"./pen-tool-ChGmX6g_.js";import{P as z}from"./pencil-CJsJD7M_.js";const A=[["path",{d:"m11 10 3 3",key:"fzmg1i"}],["path",{d:"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z",key:"p4q2r7"}],["path",{d:"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031",key:"wy6l02"}]],N=l("brush",A);const _=[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]],D=l("feather",_);const U=[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]],B=l("highlighter",U);const j=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],V=l("pen-line",j);const H=[["path",{d:"M22 2 2 22",key:"y4kqgn"}]],K=l("slash",H),m="amx.boardUiMode",u=new Set,$=["full","compact"];let h=null;const y=()=>{if(h)return h;try{const e=localStorage.getItem(m);if(e&&$.includes(e))return e;if(localStorage.getItem("amx.boardCompact")==="1")return"compact"}catch{}return"compact"},ie=e=>{h=e;try{localStorage.setItem(m,e)}catch{}for(const n of u)n()},ae=e=>(u.add(e),()=>u.delete(e));typeof window<"u"&&window.addEventListener("storage",e=>{if(e.key===m){h=null;for(const n of u)n()}});w({"boardengine.assetLoadFailed":{zh:"画板引擎资源加载失败:{url}(自托管副本缺失?重跑 npm run postinstall)",en:"Whiteboard engine assets failed to load: {url} (self-hosted copy missing? Re-run npm run postinstall)"},"boardengine.libMissing":{zh:"画板引擎已加载但没挂上 ExcalidrawLib",en:"Whiteboard engine loaded but did not expose ExcalidrawLib"}});const C={getPreferredUIMode:y,settings:{get desktopUIMode(){return y()},tabletUIMode:"compact",phoneUIMode:"mobile",disableContextMenu:!1,disableDoubleClickTextEditing:!1,penModeCrosshairVisible:!0,penModeDoubleTapEraser:!0,penModeSingleFingerPanning:!0,syncElementLinkWithText:!1,zoomMax:30,zoomMin:.1,zoomStep:.05,zoomToFitMaxLevel:2},excalidrawConfig:{areaLimit:16777216,widthHeightLimit:32767},getObsidianDevice:()=>{const e=navigator.userAgent,n=/Android/i.test(e),t=/iPad|iPhone|iPod/.test(e)||/Mac/.test(e)&&"ontouchend"in document,r=n||t,i=r&&Math.min(screen.width,screen.height)<600;return{isDesktop:!r,isPhone:i,isTablet:r&&!i,isMobile:r,isMacOS:/Mac/.test(e)&&!t,isWindows:/Win/.test(e),isLinux:/Linux/.test(e)&&!n,isIOS:t,isAndroid:n}},getHighlightColor:()=>{},getMermaid:async()=>null,loadFontFromFile:async()=>null,activeExcalidrawView:null,attachInlineLinkSuggester:()=>({destroy:()=>{}}),runAction:()=>{},getLabel:e=>e},s=globalThis;s.React=W;s.ReactDOM=Object.assign({},v,F);s.ReactJSXRuntime=L;const b=s.app;b?.plugins?.plugins?b.plugins.plugins["obsidian-excalidraw-plugin"]=C:s.app={plugins:{plugins:{"obsidian-excalidraw-plugin":C}}};const O=new URL("excalidraw/",document.baseURI).href,I=(e,n)=>new Promise((t,r)=>{e.onload=()=>t(),e.onerror=()=>r(new Error(o("boardengine.assetLoadFailed",{url:n}))),document.head.appendChild(e)}),d=document.createElement("link");d.rel="stylesheet";d.href=`${O}excalidraw.css`;const p=document.createElement("script");p.src=`${O}excalidraw.js`;await Promise.all([I(d,d.href),I(p,p.src)]);const P=s.ExcalidrawLib;if(!P)throw new Error(o("boardengine.libMissing"));const{Excalidraw:oe,MainMenu:se,serializeAsJSON:le,restoreElements:ce,newElementWith:ue,CaptureUpdateAction:f,exportToSvg:he,getCommonBounds:de}=P,q=["default","finetip","fountain","marker","highlighter","thick-thin","thin-thick-thin"];w({"excalipen.default":{zh:"默认",en:"Default"},"excalipen.finetip":{zh:"细尖笔",en:"Fine tip"},"excalipen.fountain":{zh:"钢笔",en:"Fountain pen"},"excalipen.marker":{zh:"马克笔",en:"Marker"},"excalipen.highlighter":{zh:"荧光笔",en:"Highlighter"},"excalipen.thickThin":{zh:"粗到细",en:"Thick to thin"},"excalipen.thinThickThin":{zh:"两头细",en:"Tapered ends"}});const x={get default(){return o("excalipen.default")},get finetip(){return o("excalipen.finetip")},get fountain(){return o("excalipen.fountain")},get marker(){return o("excalipen.marker")},get highlighter(){return o("excalipen.highlighter")},get"thick-thin"(){return o("excalipen.thickThin")},get"thin-thick-thin"(){return o("excalipen.thinThickThin")}},E={default:{type:"default",freedrawOnly:!1,strokeColor:"#000000",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:0,roughness:0,penOptions:{highlighter:!1,constantPressure:!1,hasOutline:!1,outlineWidth:1,options:{thinning:.6,smoothing:.5,streamline:.5,easing:"easeOutSine",start:{cap:!0,taper:0,easing:"linear"},end:{cap:!0,taper:0,easing:"linear"}}}},highlighter:{type:"highlighter",freedrawOnly:!0,strokeColor:"#FFC47C",backgroundColor:"#FFC47C",fillStyle:"solid",strokeWidth:4,roughness:null,penOptions:{highlighter:!0,constantPressure:!0,hasOutline:!1,outlineWidth:1,options:{thinning:0,smoothing:.5,streamline:.5,easing:"linear",start:{taper:0,cap:!1,easing:"linear"},end:{taper:0,cap:!1,easing:"linear"}}}},finetip:{type:"finetip",freedrawOnly:!1,strokeColor:"#3E6F8D",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:.5,roughness:0,penOptions:{highlighter:!1,hasOutline:!1,outlineWidth:1,constantPressure:!0,options:{smoothing:.4,thinning:-.5,streamline:.4,easing:"linear",start:{taper:5,cap:!1,easing:"linear"},end:{taper:5,cap:!1,easing:"linear"}}}},fountain:{type:"fountain",freedrawOnly:!1,strokeColor:"#000000",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:2,roughness:0,penOptions:{highlighter:!1,constantPressure:!1,hasOutline:!1,outlineWidth:1,options:{smoothing:.2,thinning:.6,streamline:.2,easing:"easeInOutSine",start:{taper:150,cap:!0,easing:"linear"},end:{taper:1,cap:!0,easing:"linear"}}}},marker:{type:"marker",freedrawOnly:!0,strokeColor:"#B83E3E",backgroundColor:"#FF7C7C",fillStyle:"dashed",strokeWidth:2,roughness:3,penOptions:{highlighter:!1,constantPressure:!0,hasOutline:!0,outlineWidth:4,options:{thinning:1,smoothing:.5,streamline:.5,easing:"linear",start:{taper:0,cap:!0,easing:"linear"},end:{taper:0,cap:!0,easing:"linear"}}}},"thick-thin":{type:"thick-thin",freedrawOnly:!0,strokeColor:"#CECDCC",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:0,roughness:null,penOptions:{highlighter:!0,constantPressure:!0,hasOutline:!1,outlineWidth:1,options:{thinning:1,smoothing:.5,streamline:.5,easing:"linear",start:{taper:0,cap:!0,easing:"linear"},end:{cap:!0,taper:!0,easing:"linear"}}}},"thin-thick-thin":{type:"thin-thick-thin",freedrawOnly:!0,strokeColor:"#CECDCC",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:0,roughness:null,penOptions:{highlighter:!0,constantPressure:!0,hasOutline:!1,outlineWidth:1,options:{thinning:1,smoothing:.5,streamline:.5,easing:"linear",start:{cap:!0,taper:!0,easing:"linear"},end:{cap:!0,taper:!0,easing:"linear"}}}}},J={default:z,finetip:V,fountain:D,marker:N,highlighter:B,"thick-thin":T,"thin-thick-thin":K},X={.25:"extraThin",.5:"thin",1:"medium",2:"bold",4:"extraBold"},Y=e=>{const n=X[e];return n?{currentItemStrokeWidthKey:n,currentItemStrokeWidth:null}:{currentItemStrokeWidthKey:null,currentItemStrokeWidth:e}},G={topPicks:{elementStroke:["#1e1e1e","#e03131","#2f9e44","#1971c2","#ffd43b"]}};function M(e,n){const t=n.getAppState();n.updateScene({appState:{currentStrokeOptions:{...e.penOptions,options:{...e.penOptions.options}},colorPalette:e.type==="highlighter"?G:void 0,...e.strokeWidth?Y(e.strokeWidth):null,currentItemStrokeVariability:e.penOptions?.constantPressure?"constant":"variable",...e.backgroundColor?{currentItemBackgroundColor:e.backgroundColor}:null,...e.strokeColor?{currentItemStrokeColor:e.strokeColor}:null,...e.fillStyle?{currentItemFillStyle:e.fillStyle}:null,...e.roughness!==null?{currentItemRoughness:e.roughness}:null,...t.resetCustomPen?null:{resetCustomPen:{currentItemStrokeWidthKey:t.currentItemStrokeWidthKey??null,currentItemStrokeWidth:t.currentItemStrokeWidth??null,currentItemStrokeVariability:t.currentItemStrokeVariability??null,currentItemBackgroundColor:t.currentItemBackgroundColor??null,currentItemStrokeColor:t.currentItemStrokeColor??null,currentItemFillStyle:t.currentItemFillStyle??null,currentItemRoughness:t.currentItemRoughness??null}}},captureUpdate:f.NEVER})}function k(e,n,t){n.updateScene({appState:{...e?{currentItemStrokeWidthKey:e.currentItemStrokeWidthKey??null,currentItemStrokeWidth:e.currentItemStrokeWidth??null,currentItemStrokeVariability:e.currentItemStrokeVariability??null,currentItemBackgroundColor:e.currentItemBackgroundColor??null,currentItemStrokeColor:e.currentItemStrokeColor??null,currentItemFillStyle:e.currentItemFillStyle??null,currentItemRoughness:e.currentItemRoughness??null}:null,resetCustomPen:null,...t?{currentStrokeOptions:null,colorPalette:void 0}:null},captureUpdate:f.NEVER})}const ge=()=>({active:null,pending:!1});function Q(e,n,t){const r=n.current,i=e.getAppState();if(r.active===t&&i.activeTool.type==="freedraw"){r.active=null,r.pending=!1,k(i.resetCustomPen,e,!0);return}r.active=t,r.pending=!0,M(E[t],e),e.setActiveTool({type:"freedraw"})}function pe(e,n){const t=e.getAppState().currentStrokeOptions;t?.options&&e.updateScene({appState:{currentStrokeOptions:{...t,options:{...t.options,thinning:0,start:{...t.options.start,cap:n,taper:0},end:{...t.options.end,cap:n,taper:0}}}},captureUpdate:f.NEVER})}function me(e,n){const t=n.current;t.active&&(t.active=null,t.pending=!1,k(e.getAppState().resetCustomPen,e,!0))}function fe(e,n,t,r){const i=r.current;i.pending&&n==="freedraw"&&(i.pending=!1),R.useEffect(()=>{const a=i.active;if(!e||!a||i.pending)return;const c=E[a];c.freedrawOnly&&(n!=="freedraw"&&t?k(t,e,!1):n==="freedraw"&&!t&&M(c,e))},[e,i,n,t])}function ke({api:e,ui:n,state:t}){const r=t.current,i=n.tool;return e?g.jsx("div",{className:"amx-penrow buttonList",children:q.map(a=>{const c=J[a],S=r.active===a&&i==="freedraw";return g.jsx("label",{className:S?"active":"",title:x[a],"data-on":S||void 0,onClick:()=>Q(e,t,a),children:g.jsx(c,{size:16,"aria-label":x[a]})},a)})}):null}export{f as C,oe as E,B as H,se as M,E as P,q as a,M as b,me as c,ke as d,he as e,ae as f,de as g,y as h,ue as i,ie as j,le as k,ge as n,Q as p,ce as r,pe as s,fe as u,Y as w};
|
|
1
|
+
import{r as w,R as W,co as L,t as o,j as g,d as R}from"./index-BYUntVIZ.js";import{G as l,s0 as v}from"./appStore-affnJoin.js";import{R as F}from"./client-BqhpYbYL.js";import{P as T}from"./pen-tool-D_Y9We9x.js";import{P as z}from"./pencil-DGiTRzW1.js";const A=[["path",{d:"m11 10 3 3",key:"fzmg1i"}],["path",{d:"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z",key:"p4q2r7"}],["path",{d:"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031",key:"wy6l02"}]],N=l("brush",A);const _=[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]],D=l("feather",_);const U=[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]],B=l("highlighter",U);const j=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],V=l("pen-line",j);const H=[["path",{d:"M22 2 2 22",key:"y4kqgn"}]],K=l("slash",H),m="amx.boardUiMode",u=new Set,$=["full","compact"];let h=null;const y=()=>{if(h)return h;try{const e=localStorage.getItem(m);if(e&&$.includes(e))return e;if(localStorage.getItem("amx.boardCompact")==="1")return"compact"}catch{}return"compact"},ie=e=>{h=e;try{localStorage.setItem(m,e)}catch{}for(const n of u)n()},ae=e=>(u.add(e),()=>u.delete(e));typeof window<"u"&&window.addEventListener("storage",e=>{if(e.key===m){h=null;for(const n of u)n()}});w({"boardengine.assetLoadFailed":{zh:"画板引擎资源加载失败:{url}(自托管副本缺失?重跑 npm run postinstall)",en:"Whiteboard engine assets failed to load: {url} (self-hosted copy missing? Re-run npm run postinstall)"},"boardengine.libMissing":{zh:"画板引擎已加载但没挂上 ExcalidrawLib",en:"Whiteboard engine loaded but did not expose ExcalidrawLib"}});const C={getPreferredUIMode:y,settings:{get desktopUIMode(){return y()},tabletUIMode:"compact",phoneUIMode:"mobile",disableContextMenu:!1,disableDoubleClickTextEditing:!1,penModeCrosshairVisible:!0,penModeDoubleTapEraser:!0,penModeSingleFingerPanning:!0,syncElementLinkWithText:!1,zoomMax:30,zoomMin:.1,zoomStep:.05,zoomToFitMaxLevel:2},excalidrawConfig:{areaLimit:16777216,widthHeightLimit:32767},getObsidianDevice:()=>{const e=navigator.userAgent,n=/Android/i.test(e),t=/iPad|iPhone|iPod/.test(e)||/Mac/.test(e)&&"ontouchend"in document,r=n||t,i=r&&Math.min(screen.width,screen.height)<600;return{isDesktop:!r,isPhone:i,isTablet:r&&!i,isMobile:r,isMacOS:/Mac/.test(e)&&!t,isWindows:/Win/.test(e),isLinux:/Linux/.test(e)&&!n,isIOS:t,isAndroid:n}},getHighlightColor:()=>{},getMermaid:async()=>null,loadFontFromFile:async()=>null,activeExcalidrawView:null,attachInlineLinkSuggester:()=>({destroy:()=>{}}),runAction:()=>{},getLabel:e=>e},s=globalThis;s.React=W;s.ReactDOM=Object.assign({},v,F);s.ReactJSXRuntime=L;const b=s.app;b?.plugins?.plugins?b.plugins.plugins["obsidian-excalidraw-plugin"]=C:s.app={plugins:{plugins:{"obsidian-excalidraw-plugin":C}}};const O=new URL("excalidraw/",document.baseURI).href,I=(e,n)=>new Promise((t,r)=>{e.onload=()=>t(),e.onerror=()=>r(new Error(o("boardengine.assetLoadFailed",{url:n}))),document.head.appendChild(e)}),d=document.createElement("link");d.rel="stylesheet";d.href=`${O}excalidraw.css`;const p=document.createElement("script");p.src=`${O}excalidraw.js`;await Promise.all([I(d,d.href),I(p,p.src)]);const P=s.ExcalidrawLib;if(!P)throw new Error(o("boardengine.libMissing"));const{Excalidraw:oe,MainMenu:se,serializeAsJSON:le,restoreElements:ce,newElementWith:ue,CaptureUpdateAction:f,exportToSvg:he,getCommonBounds:de}=P,q=["default","finetip","fountain","marker","highlighter","thick-thin","thin-thick-thin"];w({"excalipen.default":{zh:"默认",en:"Default"},"excalipen.finetip":{zh:"细尖笔",en:"Fine tip"},"excalipen.fountain":{zh:"钢笔",en:"Fountain pen"},"excalipen.marker":{zh:"马克笔",en:"Marker"},"excalipen.highlighter":{zh:"荧光笔",en:"Highlighter"},"excalipen.thickThin":{zh:"粗到细",en:"Thick to thin"},"excalipen.thinThickThin":{zh:"两头细",en:"Tapered ends"}});const x={get default(){return o("excalipen.default")},get finetip(){return o("excalipen.finetip")},get fountain(){return o("excalipen.fountain")},get marker(){return o("excalipen.marker")},get highlighter(){return o("excalipen.highlighter")},get"thick-thin"(){return o("excalipen.thickThin")},get"thin-thick-thin"(){return o("excalipen.thinThickThin")}},E={default:{type:"default",freedrawOnly:!1,strokeColor:"#000000",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:0,roughness:0,penOptions:{highlighter:!1,constantPressure:!1,hasOutline:!1,outlineWidth:1,options:{thinning:.6,smoothing:.5,streamline:.5,easing:"easeOutSine",start:{cap:!0,taper:0,easing:"linear"},end:{cap:!0,taper:0,easing:"linear"}}}},highlighter:{type:"highlighter",freedrawOnly:!0,strokeColor:"#FFC47C",backgroundColor:"#FFC47C",fillStyle:"solid",strokeWidth:4,roughness:null,penOptions:{highlighter:!0,constantPressure:!0,hasOutline:!1,outlineWidth:1,options:{thinning:0,smoothing:.5,streamline:.5,easing:"linear",start:{taper:0,cap:!1,easing:"linear"},end:{taper:0,cap:!1,easing:"linear"}}}},finetip:{type:"finetip",freedrawOnly:!1,strokeColor:"#3E6F8D",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:.5,roughness:0,penOptions:{highlighter:!1,hasOutline:!1,outlineWidth:1,constantPressure:!0,options:{smoothing:.4,thinning:-.5,streamline:.4,easing:"linear",start:{taper:5,cap:!1,easing:"linear"},end:{taper:5,cap:!1,easing:"linear"}}}},fountain:{type:"fountain",freedrawOnly:!1,strokeColor:"#000000",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:2,roughness:0,penOptions:{highlighter:!1,constantPressure:!1,hasOutline:!1,outlineWidth:1,options:{smoothing:.2,thinning:.6,streamline:.2,easing:"easeInOutSine",start:{taper:150,cap:!0,easing:"linear"},end:{taper:1,cap:!0,easing:"linear"}}}},marker:{type:"marker",freedrawOnly:!0,strokeColor:"#B83E3E",backgroundColor:"#FF7C7C",fillStyle:"dashed",strokeWidth:2,roughness:3,penOptions:{highlighter:!1,constantPressure:!0,hasOutline:!0,outlineWidth:4,options:{thinning:1,smoothing:.5,streamline:.5,easing:"linear",start:{taper:0,cap:!0,easing:"linear"},end:{taper:0,cap:!0,easing:"linear"}}}},"thick-thin":{type:"thick-thin",freedrawOnly:!0,strokeColor:"#CECDCC",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:0,roughness:null,penOptions:{highlighter:!0,constantPressure:!0,hasOutline:!1,outlineWidth:1,options:{thinning:1,smoothing:.5,streamline:.5,easing:"linear",start:{taper:0,cap:!0,easing:"linear"},end:{cap:!0,taper:!0,easing:"linear"}}}},"thin-thick-thin":{type:"thin-thick-thin",freedrawOnly:!0,strokeColor:"#CECDCC",backgroundColor:"transparent",fillStyle:"hachure",strokeWidth:0,roughness:null,penOptions:{highlighter:!0,constantPressure:!0,hasOutline:!1,outlineWidth:1,options:{thinning:1,smoothing:.5,streamline:.5,easing:"linear",start:{cap:!0,taper:!0,easing:"linear"},end:{cap:!0,taper:!0,easing:"linear"}}}}},J={default:z,finetip:V,fountain:D,marker:N,highlighter:B,"thick-thin":T,"thin-thick-thin":K},X={.25:"extraThin",.5:"thin",1:"medium",2:"bold",4:"extraBold"},Y=e=>{const n=X[e];return n?{currentItemStrokeWidthKey:n,currentItemStrokeWidth:null}:{currentItemStrokeWidthKey:null,currentItemStrokeWidth:e}},G={topPicks:{elementStroke:["#1e1e1e","#e03131","#2f9e44","#1971c2","#ffd43b"]}};function M(e,n){const t=n.getAppState();n.updateScene({appState:{currentStrokeOptions:{...e.penOptions,options:{...e.penOptions.options}},colorPalette:e.type==="highlighter"?G:void 0,...e.strokeWidth?Y(e.strokeWidth):null,currentItemStrokeVariability:e.penOptions?.constantPressure?"constant":"variable",...e.backgroundColor?{currentItemBackgroundColor:e.backgroundColor}:null,...e.strokeColor?{currentItemStrokeColor:e.strokeColor}:null,...e.fillStyle?{currentItemFillStyle:e.fillStyle}:null,...e.roughness!==null?{currentItemRoughness:e.roughness}:null,...t.resetCustomPen?null:{resetCustomPen:{currentItemStrokeWidthKey:t.currentItemStrokeWidthKey??null,currentItemStrokeWidth:t.currentItemStrokeWidth??null,currentItemStrokeVariability:t.currentItemStrokeVariability??null,currentItemBackgroundColor:t.currentItemBackgroundColor??null,currentItemStrokeColor:t.currentItemStrokeColor??null,currentItemFillStyle:t.currentItemFillStyle??null,currentItemRoughness:t.currentItemRoughness??null}}},captureUpdate:f.NEVER})}function k(e,n,t){n.updateScene({appState:{...e?{currentItemStrokeWidthKey:e.currentItemStrokeWidthKey??null,currentItemStrokeWidth:e.currentItemStrokeWidth??null,currentItemStrokeVariability:e.currentItemStrokeVariability??null,currentItemBackgroundColor:e.currentItemBackgroundColor??null,currentItemStrokeColor:e.currentItemStrokeColor??null,currentItemFillStyle:e.currentItemFillStyle??null,currentItemRoughness:e.currentItemRoughness??null}:null,resetCustomPen:null,...t?{currentStrokeOptions:null,colorPalette:void 0}:null},captureUpdate:f.NEVER})}const ge=()=>({active:null,pending:!1});function Q(e,n,t){const r=n.current,i=e.getAppState();if(r.active===t&&i.activeTool.type==="freedraw"){r.active=null,r.pending=!1,k(i.resetCustomPen,e,!0);return}r.active=t,r.pending=!0,M(E[t],e),e.setActiveTool({type:"freedraw"})}function pe(e,n){const t=e.getAppState().currentStrokeOptions;t?.options&&e.updateScene({appState:{currentStrokeOptions:{...t,options:{...t.options,thinning:0,start:{...t.options.start,cap:n,taper:0},end:{...t.options.end,cap:n,taper:0}}}},captureUpdate:f.NEVER})}function me(e,n){const t=n.current;t.active&&(t.active=null,t.pending=!1,k(e.getAppState().resetCustomPen,e,!0))}function fe(e,n,t,r){const i=r.current;i.pending&&n==="freedraw"&&(i.pending=!1),R.useEffect(()=>{const a=i.active;if(!e||!a||i.pending)return;const c=E[a];c.freedrawOnly&&(n!=="freedraw"&&t?k(t,e,!1):n==="freedraw"&&!t&&M(c,e))},[e,i,n,t])}function ke({api:e,ui:n,state:t}){const r=t.current,i=n.tool;return e?g.jsx("div",{className:"amx-penrow buttonList",children:q.map(a=>{const c=J[a],S=r.active===a&&i==="freedraw";return g.jsx("label",{className:S?"active":"",title:x[a],"data-on":S||void 0,onClick:()=>Q(e,t,a),children:g.jsx(c,{size:16,"aria-label":x[a]})},a)})}):null}export{f as C,oe as E,B as H,se as M,E as P,q as a,M as b,me as c,ke as d,he as e,ae as f,de as g,y as h,ue as i,ie as j,le as k,ge as n,Q as p,ce as r,pe as s,fe as u,Y as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as C,d as e,j as t}from"./index-
|
|
1
|
+
import{u as C,d as e,j as t}from"./index-BYUntVIZ.js";import{n7 as k,a6 as E,aC as y,n8 as R,q as P,ab as I,hx as q,aE as z,aN as A,iM as F,iN as L}from"./appStore-affnJoin.js";import"./client-BqhpYbYL.js";import{S as O}from"./StudioGuestSurface-ZJFKnNYF.js";import{u as T}from"./codeStudioStore-Dq5i8nbE.js";/* empty css */import{C as W}from"./code-xml-DdR58F83.js";import"./nativeDownload-Udrv_tmU.js";import"./ipc-D7yENkjV.js";function J({leaf:d,params:N}){const{t:a}=C(),r=k(N),[i,u]=e.useState("loading"),[p,S]=e.useState(""),[c,f]=e.useState(null),x=e.useRef(null),v=e.useRef(null),l=e.useRef(0),b=E(s=>s.spaces.some(o=>o.id==="coding"))&&!!y("code-studio"),h=e.useCallback(async s=>{const o=window.tangu?.productsGet;if(!(!r||!o))try{const n=await o(r);s===l.current&&n&&f(n)}catch{}},[r]),m=e.useCallback(async()=>{const s=window.tangu?.productsServe;if(!r||!s){u("gone");return}const o=++l.current;u("loading");try{const n=await s(r);if(o!==l.current)return;S(n.url),f(n.product),u("ready")}catch(n){if(o!==l.current)return;const g=R(n);u(g),g==="unservable"&&h(o)}},[r,h]);e.useEffect(()=>(m(),()=>{l.current++}),[m]),e.useEffect(()=>{c&&d.setTitle(c.name)},[d,c]);const w=e.useCallback(()=>P.getState().activateLeaf(d.id),[d.id]),j=e.useCallback(s=>{I("coding"),requestAnimationFrame(()=>{T.getState().openProject(s.root,s.name)})},[]);return t.jsxs("div",{className:"art-product","data-product-view":!0,"data-product-id":r??"","data-status":i,children:[t.jsxs("div",{className:"art-bar",children:[t.jsx("span",{className:"art-bar-name",children:c?.name??a("view.product")}),t.jsx("button",{className:"btn ghost sm","data-action":"reload",title:a("artificial.product.reload"),"aria-label":a("artificial.product.reload"),disabled:i==="unservable",onClick:()=>i==="ready"?v.current?.reload():void m(),children:t.jsx(q,{size:14})}),t.jsx("button",{className:"btn ghost sm","data-action":"external",title:a("artificial.product.openExternal"),"aria-label":a("artificial.product.openExternal"),disabled:!p,onClick:()=>{window.tangu?.openExternal?.(p)},children:t.jsx(z,{size:14})}),b&&c&&t.jsx("button",{className:"btn ghost sm","data-action":"edit",title:a("artificial.action.edit"),"aria-label":a("artificial.action.edit"),onClick:()=>j(c),children:t.jsx(W,{size:14})})]}),i==="loading"&&t.jsxs("div",{className:"art-state",role:"status","data-state":"loading",children:[t.jsx(A,{size:16,className:"spin"})," ",a("artificial.product.loading")]}),i==="gone"&&t.jsx("div",{className:"art-state",role:"alert","data-state":"gone",children:t.jsx("div",{className:"art-state-title",children:a("artificial.product.gone")})}),i==="unservable"&&t.jsxs("div",{className:"art-state",role:"alert","data-state":"unservable",children:[t.jsx("div",{className:"art-state-title",children:a("artificial.product.unservable")}),t.jsx("p",{children:a("artificial.product.unservableBody")}),b&&c&&t.jsx("button",{className:"btn sm","data-action":"edit-instead",onClick:()=>j(c),children:a("artificial.action.edit")})]}),i==="error"&&t.jsxs("div",{className:"art-state",role:"alert","data-state":"error",children:[t.jsx("div",{className:"art-state-title",children:a("artificial.product.failed")}),t.jsx("button",{className:"btn sm","data-action":"retry",onClick:()=>{m()},children:a("common.retry")})]}),i==="ready"&&t.jsxs(t.Fragment,{children:[t.jsx("div",{ref:x,className:"art-anchor"}),t.jsx(O,{anchorRef:x,onActivate:w,children:t.jsx("div",{className:"art-guest",children:t.jsx(F,{ref:s=>{v.current=s},className:"art-frame","data-product-id":r??"",src:p,partition:L,allowpopups:"true"})})})]})]})}export{J as ProductView};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{G as pe,aJ as Pe,gr as Le,U as $e,I as Oe,aN as $,mY as _e,cj as T,cC as X,mZ as Re,bq as Be,ai as He,a5 as Ue,m_ as We,V as Ge,aE as ie,aP as he,aK as qe,aF as Ke,Z as me,_ as fe,l3 as ge,lx as Ve,m$ as Ye,t as U,gI as Xe,n0 as Je,at as Ze,c6 as Qe,ct as xe,bK as ye,n1 as et,ly as le,lz as tt,lA as ve,aO as nt,n2 as st,lD as at}from"./appStore-CidPWYa0.js";import{c as rt}from"./nativeDownload-B3JGkABw.js";import{u as P,d as g,j as r,R as ot,Q as it}from"./index-B5UW6SaE.js";import"./client-CPUljePZ.js";import{B as lt}from"./book-open-CBeNsIpo.js";import{F as ct}from"./folder-plus-d5MwIMlf.js";import{F as ce}from"./folder-CoOsfQ64.js";import{U as dt}from"./upload-CrbEAW8C.js";import{P as ut}from"./pencil-CJsJD7M_.js";const pt=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],Vt=pe("check-check",pt);const ht=[["path",{d:"M14 9 9 4 4 9",key:"1af5af"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]],mt=pe("corner-left-up",ht),we=new Set(["image/png","image/jpeg","image/webp","image/gif"]),ft=20*1024*1024;function gt(e){return{version:2,id:crypto.randomUUID(),name:e,updatedAt:Date.now(),sessionId:null,images:[],elements:[],order:[],collected:[]}}function Yt(e,n){return e.images.filter(t=>!t.hidden).sort((t,a)=>t.x-a.x||t.y-a.y).slice(0,n)}function Xt(e,n,t){const a=Math.min(1,360/Math.max(e,n));return{x:t.length?Math.max(...t.map(s=>s.x+s.w))+32:0,y:0,w:e*a,h:n*a}}function Jt(e){const n=new Map;let t="";for(const a of e){a.role==="user"&&(t=a.content);for(const[s,o]of(a.displayFiles||[]).entries()){if(!we.has(o.mime||"")&&!/\.(png|jpe?g|webp|gif)$/i.test(o.name)||!o.path&&!o.dataUrl)continue;const c=o.path?`${o.sourceSessionId||""}:${o.path}`:`${a.id}:${s}:${o.name}`;n.set(c,{key:c,file:o,prompt:t})}}return[...n.values()]}function Zt(e){const n=Math.max(1,Math.ceil(Math.sqrt(e.length)));return e.map((t,a)=>{const s=G(t),o=300/Math.max(s.w,s.h);return{...t,x:a%n*340,y:Math.floor(a/n)*360,w:s.w*o,h:s.h*o}})}function Qt(e){return`brightness(${e.brightness}%) contrast(${e.contrast}%) saturate(${e.saturation}%)`}function xt(e){const n=e;if(!n||n.version!==1&&n.version!==2||typeof n.id!="string"||typeof n.name!="string"||!((n.sessionId===null||typeof n.sessionId=="string")&&Number.isFinite(n.updatedAt)&&Array.isArray(n.collected)&&n.collected.every(s=>typeof s=="string")&&Array.isArray(n.images)&&n.images.every(s=>be(s)&&s.blob instanceof Blob&&we.has(s.blob.type)&&s.blob.size<=ft&&[s.x,s.y,s.w,s.h,s.width,s.height,s.brightness,s.contrast,s.saturation].every(Number.isFinite)&&s.w>0&&s.h>0&&s.width>0&&s.height>0&&[s.brightness,s.contrast,s.saturation].every(o=>o>=0&&o<=200)&&(s.crop===void 0||yt(s.crop,s.width,s.height))&&(s.rotation===void 0||Number.isFinite(s.rotation)&&s.rotation>=0&&s.rotation<360)&&(s.parentId===void 0||typeof s.parentId=="string")&&[s.flipX,s.flipY].every(o=>o===void 0||typeof o=="boolean"))&&(n.elements===void 0||Array.isArray(n.elements)&&n.elements.every(vt))&&(n.order===void 0||Array.isArray(n.order)&&n.order.every(s=>typeof s=="string"))))return!1;const a=[...n.images,...n.elements||[]].map(s=>s.id);return new Set(a).size===a.length}const J=e=>"blob"in e&&e.blob instanceof Blob,W=e=>!J(e)&&e.kind==="frame",be=e=>!!e&&typeof e.id=="string"&&typeof e.name=="string"&&[e.x,e.y,e.w,e.h].every(n=>Number.isFinite(n)&&Math.abs(n)<=1e6)&&e.w>0&&e.h>0&&[e.locked,e.hidden].every(n=>n===void 0||typeof n=="boolean"),yt=(e,n,t)=>!!e&&[e.x,e.y,e.w,e.h].every(Number.isFinite)&&e.x>=0&&e.y>=0&&e.w>=1&&e.h>=1&&e.x+e.w<=n&&e.y+e.h<=t;function vt(e){return be(e)&&!("blob"in e)&&["text","rectangle","ellipse","frame"].includes(e.kind)&&[e.fill,e.stroke].every(n=>typeof n=="string"&&/^(#[\da-f]{6}|transparent)$/i.test(n))&&[e.strokeWidth,e.radius,e.fontSize].every(Number.isFinite)&&e.strokeWidth>=0&&e.strokeWidth<=100&&e.radius>=0&&e.radius<=1e3&&e.fontSize>=6&&e.fontSize<=500&&typeof e.text=="string"&&e.text.length<=1e4&&["sans-serif","serif","monospace"].includes(e.fontFamily)&&typeof e.bold=="boolean"&&["left","center","right"].includes(e.align)}function G(e){const n=e.crop||{w:e.width,h:e.height},t=(e.rotation||0)*Math.PI/180;return{w:Math.round((Math.abs(n.w*Math.cos(t))+Math.abs(n.h*Math.sin(t)))*1e8)/1e8,h:Math.round((Math.abs(n.w*Math.sin(t))+Math.abs(n.h*Math.cos(t)))*1e8)/1e8}}function en(e,n){const t={...e,...n},a=G(t),s=G(e),o=e.w/s.w,c=a.w*o,l=a.h*o;return{...t,x:e.x+(e.w-c)/2,y:e.y+(e.h-l)/2,w:c,h:l}}function q(e){const n=[...e.images,...e.elements||[]],t=new Map((e.order||[]).map((a,s)=>[a,s]));return n.sort((a,s)=>Number(W(s))-Number(W(a))||(t.get(a.id)??1e9)-(t.get(s.id)??1e9))}function Z(e,n){return{...e,version:2,images:n.filter(J),elements:n.filter(t=>!J(t)),order:n.map(t=>t.id)}}function wt(e,n){return Z(e,q(e).map(n))}const bt=(e,n)=>n.x>=e.x&&n.y>=e.y&&n.x+n.w<=e.x+e.w+.01&&n.y+n.h<=e.y+e.h+.01;function tn(e,n){const t=q(e),a=new Map(n);for(const s of t.filter(W)){const o=n.get(s.id);if(!(!o||s.locked||o.x===s.x&&o.y===s.y))for(const c of t)!W(c)&&!c.locked&&!a.has(c.id)&&bt(s,c)&&a.set(c.id,{...c,x:c.x+o.x-s.x,y:c.y+o.y-s.y})}return wt(e,s=>s.locked||!a.has(s.id)?s:{...s,...a.get(s.id)})}function nn(e,n,t=0,a=0){return{id:crypto.randomUUID(),kind:e,name:n,x:t,y:a,w:e==="frame"?1080:320,h:e==="frame"?1080:e==="text"?120:240,fill:e==="frame"?"#ffffff":e==="text"?"#242424":"#c9c4b8",stroke:"#242424",strokeWidth:0,radius:0,text:e==="text"?n:"",fontSize:40,fontFamily:"sans-serif",bold:!1,align:"left"}}function sn(e,n=32,t=32){return e.map(a=>({...a,id:crypto.randomUUID(),locked:!1,x:a.x+n,y:a.y+t}))}function an(e,n,t){const a=q(e),s=new Set(n);if(t==="front"||t==="back"){const c=a.filter(u=>s.has(u.id)),l=a.filter(u=>!s.has(u.id));return Z(e,t==="front"?[...l,...c]:[...c,...l])}const o=t==="up"?1:-1;for(let c=o===1?a.length-2:1;c>=0&&c<a.length;c-=o)s.has(a[c].id)&&a[c+o]&&!s.has(a[c+o].id)&&([a[c],a[c+o]]=[a[c+o],a[c]]);return Z(e,a)}const jt=["1:1","4:5","5:4","2:3","3:2","16:9","9:16"],kt=["1:1","2:3","3:2","16:9","9:16"],R=e=>{const[n,t]=e.split(":").map(Number);return n>0&&t>0?n/t:1};function St(e,n){const t=e>0&&n>0?e/n:1,a=jt.find(s=>Math.abs(Math.log(R(s)/t))<.012);return a||(t>=1?`${Number(t.toFixed(2))}:1`:`1:${Number((1/t).toFixed(2))}`)}function rn(e,n){const t=G(e),a=St(t.w,t.h),s=n==="original"?a:n,o=n==="original"?t.w/t.h:R(s),c=kt.reduce((l,u)=>Math.abs(Math.log(R(u)/o))<Math.abs(Math.log(R(l)/o))?u:l);return{aspect:o,requested:s,engine:c,originalLabel:a}}function on(e,n,t){if(!(e>0&&n>0&&t>0))return;const a=e/n;if(Math.abs(Math.log(a/t))<.001)return;if(a>t){const o=n*t;return{x:(e-o)/2,y:0,w:o,h:n}}const s=e/t;return{x:0,y:(n-s)/2,w:e,h:s}}function Nt(e,n,t=[]){const a=new Set(n.sourceIds||[]),s=e.images.filter(d=>a.has(d.id)),o=[...q(e),...t],c=s.length?Math.min(360,Math.max(s[0].w,s[0].h)):320,l=Math.max(.2,Math.min(5,n.aspect||1)),u=l>=1?c:c*l,p=l>=1?c/l:c,m=s.length?Math.max(...s.map(d=>d.x+d.w)):o.length?Math.max(...o.map(d=>d.x+d.w)):-32,h=s.length?Math.min(...s.map(d=>d.y)):0;return Array.from({length:Math.max(1,Math.min(4,Math.round(n.count)||1))},(d,x)=>({x:m+32+x*(u+32),y:h,w:u,h:p}))}function ln(e,n){if(e!=="generate_image"&&e!=="edit_image")return null;let t={};try{t=n?JSON.parse(n):{}}catch{}const a=typeof t.size=="string"&&/^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(t.size)?t.size:"1:1",s=Number.isInteger(t.n)?Number(t.n):1;return{count:Math.max(1,Math.min(4,s)),aspect:R(a),ratio:a,kind:e==="edit_image"?"edit":"generate"}}let V;function je(){return V??=new Promise((e,n)=>{const t=indexedDB.open("forsion-image-studio",1);t.onupgradeneeded=()=>t.result.createObjectStore("boards",{keyPath:"id"}),t.onsuccess=()=>e(t.result),t.onerror=()=>{V=void 0,n(t.error)},t.onblocked=()=>{V=void 0,n(new Error("Image Studio storage is blocked by another window"))}})}async function Dt(){const e=await je();return new Promise((n,t)=>{const a=e.transaction("boards").objectStore("boards").getAll();a.onsuccess=()=>{if(!a.result.every(xt)){t(new Error("Image Studio contains an unreadable project"));return}n(a.result)},a.onerror=()=>t(a.error)})}async function Mt(e){const n=await je();return new Promise((t,a)=>{const s=n.transaction("boards","readwrite");s.objectStore("boards").put(e),s.oncomplete=()=>t(),s.onerror=()=>a(s.error),s.onabort=()=>a(s.error||new Error("Image Studio save was interrupted"))})}let de,Q,zt=0;const _=new Set;let O;function Y(e){_.add(e),ue.setState({saving:!0}),clearTimeout(Q),Q=setTimeout(()=>{ue.getState().flush()},250)}const ue=rt((e,n)=>({boards:{},activeId:null,ready:!1,error:"",saving:!1,selection:[],past:{},future:{},placeholders:{},generationTools:{},pending:null,hydrate:()=>de??=(async()=>{try{const t=await Dt();let a=null;try{a=localStorage.getItem("image-studio.active")}catch{}e({boards:Object.fromEntries(t.map(s=>[s.id,s])),activeId:t.find(s=>s.id===a)?.id||null,ready:!0,error:""})}catch(t){e({error:String(t),ready:!1}),de=void 0}})(),create:t=>{if(!n().ready)return"";const a=gt(t);return e(s=>({boards:{...s.boards,[a.id]:a}})),n().open(a.id),Y(a.id),a.id},open:t=>{if(n().boards[t]){e({activeId:t,selection:[],pending:null});try{localStorage.setItem("image-studio.active",t)}catch{}}},close:()=>{if(n().activeId){e({activeId:null,selection:[],pending:null});try{localStorage.removeItem("image-studio.active")}catch{}}},update:(t,a,s=!0)=>{const o=n().boards[t];if(!o)return;const c=a(o);c!==o&&(e(l=>({boards:{...l.boards,[t]:{...c,updatedAt:Date.now()}},...s?{past:{...l.past,[t]:[...(l.past[t]||[]).slice(-29),o]},future:{...l.future,[t]:[]}}:{}})),Y(t))},undo:(t,a=!1)=>{const s=a?"future":"past",o=a?"past":"future",c=n()[s][t]||[],l=n().boards[t],u=c.at(-1);!l||!u||(e(p=>({boards:{...p.boards,[t]:{...u,sessionId:l.sessionId,collected:l.collected,updatedAt:Date.now()}},[s]:{...p[s],[t]:c.slice(0,-1)},[o]:{...p[o],[t]:[...p[o][t]||[],l]},selection:[]})),Y(t))},flush:async()=>{if(clearTimeout(Q),O)return O;O=(async()=>{try{for(;_.size;){const t=_.values().next().value,a=n().boards[t];_.delete(t);try{a&&await Mt(a)}catch(s){throw _.add(t),s}}e({saving:!1,error:""})}catch(t){e({saving:!1,error:String(t)})}})();try{await O}finally{O=void 0}},queue:(t,a,s=[])=>e(o=>({pending:{sessionId:t,text:o.pending?.sessionId===t?`${o.pending.text}
|
|
1
|
+
import{G as pe,aJ as Pe,gr as Le,U as $e,I as Oe,aN as $,mZ as _e,cj as T,cC as X,m_ as Re,bq as Be,ai as He,a5 as Ue,m$ as We,V as Ge,aE as ie,aP as he,aK as qe,aF as Ke,Z as me,_ as fe,l3 as ge,lx as Ve,n0 as Ye,t as U,gI as Xe,n1 as Je,at as Ze,c6 as Qe,ct as xe,bK as ye,n2 as et,ly as le,lz as tt,lA as ve,aO as nt,n3 as st,lD as at}from"./appStore-affnJoin.js";import{c as rt}from"./nativeDownload-Udrv_tmU.js";import{u as P,d as g,j as r,R as ot,Q as it}from"./index-BYUntVIZ.js";import"./client-BqhpYbYL.js";import{B as lt}from"./book-open-CcXCToyx.js";import{F as ct}from"./folder-plus-BJKT1Pqg.js";import{F as ce}from"./folder-CCZqnwRc.js";import{U as dt}from"./upload-D20PZHXc.js";import{P as ut}from"./pencil-DGiTRzW1.js";const pt=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],Vt=pe("check-check",pt);const ht=[["path",{d:"M14 9 9 4 4 9",key:"1af5af"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]],mt=pe("corner-left-up",ht),we=new Set(["image/png","image/jpeg","image/webp","image/gif"]),ft=20*1024*1024;function gt(e){return{version:2,id:crypto.randomUUID(),name:e,updatedAt:Date.now(),sessionId:null,images:[],elements:[],order:[],collected:[]}}function Yt(e,n){return e.images.filter(t=>!t.hidden).sort((t,a)=>t.x-a.x||t.y-a.y).slice(0,n)}function Xt(e,n,t){const a=Math.min(1,360/Math.max(e,n));return{x:t.length?Math.max(...t.map(s=>s.x+s.w))+32:0,y:0,w:e*a,h:n*a}}function Jt(e){const n=new Map;let t="";for(const a of e){a.role==="user"&&(t=a.content);for(const[s,o]of(a.displayFiles||[]).entries()){if(!we.has(o.mime||"")&&!/\.(png|jpe?g|webp|gif)$/i.test(o.name)||!o.path&&!o.dataUrl)continue;const c=o.path?`${o.sourceSessionId||""}:${o.path}`:`${a.id}:${s}:${o.name}`;n.set(c,{key:c,file:o,prompt:t})}}return[...n.values()]}function Zt(e){const n=Math.max(1,Math.ceil(Math.sqrt(e.length)));return e.map((t,a)=>{const s=G(t),o=300/Math.max(s.w,s.h);return{...t,x:a%n*340,y:Math.floor(a/n)*360,w:s.w*o,h:s.h*o}})}function Qt(e){return`brightness(${e.brightness}%) contrast(${e.contrast}%) saturate(${e.saturation}%)`}function xt(e){const n=e;if(!n||n.version!==1&&n.version!==2||typeof n.id!="string"||typeof n.name!="string"||!((n.sessionId===null||typeof n.sessionId=="string")&&Number.isFinite(n.updatedAt)&&Array.isArray(n.collected)&&n.collected.every(s=>typeof s=="string")&&Array.isArray(n.images)&&n.images.every(s=>be(s)&&s.blob instanceof Blob&&we.has(s.blob.type)&&s.blob.size<=ft&&[s.x,s.y,s.w,s.h,s.width,s.height,s.brightness,s.contrast,s.saturation].every(Number.isFinite)&&s.w>0&&s.h>0&&s.width>0&&s.height>0&&[s.brightness,s.contrast,s.saturation].every(o=>o>=0&&o<=200)&&(s.crop===void 0||yt(s.crop,s.width,s.height))&&(s.rotation===void 0||Number.isFinite(s.rotation)&&s.rotation>=0&&s.rotation<360)&&(s.parentId===void 0||typeof s.parentId=="string")&&[s.flipX,s.flipY].every(o=>o===void 0||typeof o=="boolean"))&&(n.elements===void 0||Array.isArray(n.elements)&&n.elements.every(vt))&&(n.order===void 0||Array.isArray(n.order)&&n.order.every(s=>typeof s=="string"))))return!1;const a=[...n.images,...n.elements||[]].map(s=>s.id);return new Set(a).size===a.length}const J=e=>"blob"in e&&e.blob instanceof Blob,W=e=>!J(e)&&e.kind==="frame",be=e=>!!e&&typeof e.id=="string"&&typeof e.name=="string"&&[e.x,e.y,e.w,e.h].every(n=>Number.isFinite(n)&&Math.abs(n)<=1e6)&&e.w>0&&e.h>0&&[e.locked,e.hidden].every(n=>n===void 0||typeof n=="boolean"),yt=(e,n,t)=>!!e&&[e.x,e.y,e.w,e.h].every(Number.isFinite)&&e.x>=0&&e.y>=0&&e.w>=1&&e.h>=1&&e.x+e.w<=n&&e.y+e.h<=t;function vt(e){return be(e)&&!("blob"in e)&&["text","rectangle","ellipse","frame"].includes(e.kind)&&[e.fill,e.stroke].every(n=>typeof n=="string"&&/^(#[\da-f]{6}|transparent)$/i.test(n))&&[e.strokeWidth,e.radius,e.fontSize].every(Number.isFinite)&&e.strokeWidth>=0&&e.strokeWidth<=100&&e.radius>=0&&e.radius<=1e3&&e.fontSize>=6&&e.fontSize<=500&&typeof e.text=="string"&&e.text.length<=1e4&&["sans-serif","serif","monospace"].includes(e.fontFamily)&&typeof e.bold=="boolean"&&["left","center","right"].includes(e.align)}function G(e){const n=e.crop||{w:e.width,h:e.height},t=(e.rotation||0)*Math.PI/180;return{w:Math.round((Math.abs(n.w*Math.cos(t))+Math.abs(n.h*Math.sin(t)))*1e8)/1e8,h:Math.round((Math.abs(n.w*Math.sin(t))+Math.abs(n.h*Math.cos(t)))*1e8)/1e8}}function en(e,n){const t={...e,...n},a=G(t),s=G(e),o=e.w/s.w,c=a.w*o,l=a.h*o;return{...t,x:e.x+(e.w-c)/2,y:e.y+(e.h-l)/2,w:c,h:l}}function q(e){const n=[...e.images,...e.elements||[]],t=new Map((e.order||[]).map((a,s)=>[a,s]));return n.sort((a,s)=>Number(W(s))-Number(W(a))||(t.get(a.id)??1e9)-(t.get(s.id)??1e9))}function Z(e,n){return{...e,version:2,images:n.filter(J),elements:n.filter(t=>!J(t)),order:n.map(t=>t.id)}}function wt(e,n){return Z(e,q(e).map(n))}const bt=(e,n)=>n.x>=e.x&&n.y>=e.y&&n.x+n.w<=e.x+e.w+.01&&n.y+n.h<=e.y+e.h+.01;function tn(e,n){const t=q(e),a=new Map(n);for(const s of t.filter(W)){const o=n.get(s.id);if(!(!o||s.locked||o.x===s.x&&o.y===s.y))for(const c of t)!W(c)&&!c.locked&&!a.has(c.id)&&bt(s,c)&&a.set(c.id,{...c,x:c.x+o.x-s.x,y:c.y+o.y-s.y})}return wt(e,s=>s.locked||!a.has(s.id)?s:{...s,...a.get(s.id)})}function nn(e,n,t=0,a=0){return{id:crypto.randomUUID(),kind:e,name:n,x:t,y:a,w:e==="frame"?1080:320,h:e==="frame"?1080:e==="text"?120:240,fill:e==="frame"?"#ffffff":e==="text"?"#242424":"#c9c4b8",stroke:"#242424",strokeWidth:0,radius:0,text:e==="text"?n:"",fontSize:40,fontFamily:"sans-serif",bold:!1,align:"left"}}function sn(e,n=32,t=32){return e.map(a=>({...a,id:crypto.randomUUID(),locked:!1,x:a.x+n,y:a.y+t}))}function an(e,n,t){const a=q(e),s=new Set(n);if(t==="front"||t==="back"){const c=a.filter(u=>s.has(u.id)),l=a.filter(u=>!s.has(u.id));return Z(e,t==="front"?[...l,...c]:[...c,...l])}const o=t==="up"?1:-1;for(let c=o===1?a.length-2:1;c>=0&&c<a.length;c-=o)s.has(a[c].id)&&a[c+o]&&!s.has(a[c+o].id)&&([a[c],a[c+o]]=[a[c+o],a[c]]);return Z(e,a)}const jt=["1:1","4:5","5:4","2:3","3:2","16:9","9:16"],kt=["1:1","2:3","3:2","16:9","9:16"],R=e=>{const[n,t]=e.split(":").map(Number);return n>0&&t>0?n/t:1};function St(e,n){const t=e>0&&n>0?e/n:1,a=jt.find(s=>Math.abs(Math.log(R(s)/t))<.012);return a||(t>=1?`${Number(t.toFixed(2))}:1`:`1:${Number((1/t).toFixed(2))}`)}function rn(e,n){const t=G(e),a=St(t.w,t.h),s=n==="original"?a:n,o=n==="original"?t.w/t.h:R(s),c=kt.reduce((l,u)=>Math.abs(Math.log(R(u)/o))<Math.abs(Math.log(R(l)/o))?u:l);return{aspect:o,requested:s,engine:c,originalLabel:a}}function on(e,n,t){if(!(e>0&&n>0&&t>0))return;const a=e/n;if(Math.abs(Math.log(a/t))<.001)return;if(a>t){const o=n*t;return{x:(e-o)/2,y:0,w:o,h:n}}const s=e/t;return{x:0,y:(n-s)/2,w:e,h:s}}function Nt(e,n,t=[]){const a=new Set(n.sourceIds||[]),s=e.images.filter(d=>a.has(d.id)),o=[...q(e),...t],c=s.length?Math.min(360,Math.max(s[0].w,s[0].h)):320,l=Math.max(.2,Math.min(5,n.aspect||1)),u=l>=1?c:c*l,p=l>=1?c/l:c,m=s.length?Math.max(...s.map(d=>d.x+d.w)):o.length?Math.max(...o.map(d=>d.x+d.w)):-32,h=s.length?Math.min(...s.map(d=>d.y)):0;return Array.from({length:Math.max(1,Math.min(4,Math.round(n.count)||1))},(d,x)=>({x:m+32+x*(u+32),y:h,w:u,h:p}))}function ln(e,n){if(e!=="generate_image"&&e!=="edit_image")return null;let t={};try{t=n?JSON.parse(n):{}}catch{}const a=typeof t.size=="string"&&/^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(t.size)?t.size:"1:1",s=Number.isInteger(t.n)?Number(t.n):1;return{count:Math.max(1,Math.min(4,s)),aspect:R(a),ratio:a,kind:e==="edit_image"?"edit":"generate"}}let V;function je(){return V??=new Promise((e,n)=>{const t=indexedDB.open("forsion-image-studio",1);t.onupgradeneeded=()=>t.result.createObjectStore("boards",{keyPath:"id"}),t.onsuccess=()=>e(t.result),t.onerror=()=>{V=void 0,n(t.error)},t.onblocked=()=>{V=void 0,n(new Error("Image Studio storage is blocked by another window"))}})}async function Dt(){const e=await je();return new Promise((n,t)=>{const a=e.transaction("boards").objectStore("boards").getAll();a.onsuccess=()=>{if(!a.result.every(xt)){t(new Error("Image Studio contains an unreadable project"));return}n(a.result)},a.onerror=()=>t(a.error)})}async function Mt(e){const n=await je();return new Promise((t,a)=>{const s=n.transaction("boards","readwrite");s.objectStore("boards").put(e),s.oncomplete=()=>t(),s.onerror=()=>a(s.error),s.onabort=()=>a(s.error||new Error("Image Studio save was interrupted"))})}let de,Q,zt=0;const _=new Set;let O;function Y(e){_.add(e),ue.setState({saving:!0}),clearTimeout(Q),Q=setTimeout(()=>{ue.getState().flush()},250)}const ue=rt((e,n)=>({boards:{},activeId:null,ready:!1,error:"",saving:!1,selection:[],past:{},future:{},placeholders:{},generationTools:{},pending:null,hydrate:()=>de??=(async()=>{try{const t=await Dt();let a=null;try{a=localStorage.getItem("image-studio.active")}catch{}e({boards:Object.fromEntries(t.map(s=>[s.id,s])),activeId:t.find(s=>s.id===a)?.id||null,ready:!0,error:""})}catch(t){e({error:String(t),ready:!1}),de=void 0}})(),create:t=>{if(!n().ready)return"";const a=gt(t);return e(s=>({boards:{...s.boards,[a.id]:a}})),n().open(a.id),Y(a.id),a.id},open:t=>{if(n().boards[t]){e({activeId:t,selection:[],pending:null});try{localStorage.setItem("image-studio.active",t)}catch{}}},close:()=>{if(n().activeId){e({activeId:null,selection:[],pending:null});try{localStorage.removeItem("image-studio.active")}catch{}}},update:(t,a,s=!0)=>{const o=n().boards[t];if(!o)return;const c=a(o);c!==o&&(e(l=>({boards:{...l.boards,[t]:{...c,updatedAt:Date.now()}},...s?{past:{...l.past,[t]:[...(l.past[t]||[]).slice(-29),o]},future:{...l.future,[t]:[]}}:{}})),Y(t))},undo:(t,a=!1)=>{const s=a?"future":"past",o=a?"past":"future",c=n()[s][t]||[],l=n().boards[t],u=c.at(-1);!l||!u||(e(p=>({boards:{...p.boards,[t]:{...u,sessionId:l.sessionId,collected:l.collected,updatedAt:Date.now()}},[s]:{...p[s],[t]:c.slice(0,-1)},[o]:{...p[o],[t]:[...p[o][t]||[],l]},selection:[]})),Y(t))},flush:async()=>{if(clearTimeout(Q),O)return O;O=(async()=>{try{for(;_.size;){const t=_.values().next().value,a=n().boards[t];_.delete(t);try{a&&await Mt(a)}catch(s){throw _.add(t),s}}e({saving:!1,error:""})}catch(t){e({saving:!1,error:String(t)})}})();try{await O}finally{O=void 0}},queue:(t,a,s=[])=>e(o=>({pending:{sessionId:t,text:o.pending?.sessionId===t?`${o.pending.text}
|
|
2
2
|
|
|
3
3
|
${a}`:a,attachments:[...o.pending?.sessionId===t?o.pending.attachments:[],...s],seq:++zt}})),consume:t=>n().pending?.seq!==t?!1:(e({pending:null}),!0),beginGeneration:(t,a,s)=>{const o=n().boards[t];if(!o)return[];const c=n().placeholders[t]||[],l=Nt(o,s,c),u=crypto.randomUUID(),p=Date.now(),m=l.map((h,d)=>({...h,id:crypto.randomUUID(),generationId:u,boardId:t,sessionId:a,sourceIds:s.sourceIds||[],kind:s.kind,status:"preparing",aspect:s.aspect,ratio:s.ratio,index:d,count:l.length,createdAt:p}));return e(h=>({placeholders:{...h.placeholders,[t]:[...h.placeholders[t]||[],...m]}})),m.map(h=>h.id)},activateGeneration:t=>{const a=new Set(t);e(s=>({placeholders:Object.fromEntries(Object.entries(s.placeholders).map(([o,c])=>[o,c.map(l=>a.has(l.id)&&l.status==="preparing"?{...l,status:"running"}:l)]))}))},bindGenerationTool:(t,a,s,o)=>{if((n().generationTools[t]||[]).includes(s))return;e(m=>({generationTools:{...m.generationTools,[t]:[...(m.generationTools[t]||[]).slice(-199),s]}}));const l=(n().placeholders[t]||[]).find(m=>m.sessionId===a&&!m.toolId&&m.status!=="failed");if(l){e(m=>({placeholders:{...m.placeholders,[t]:(m.placeholders[t]||[]).map(h=>h.generationId===l.generationId?{...h,toolId:s,status:"running"}:h)}}));return}const u=n().beginGeneration(t,a,o),p=new Set(u);e(m=>({placeholders:{...m.placeholders,[t]:(m.placeholders[t]||[]).map(h=>p.has(h.id)?{...h,toolId:s,status:"running"}:h)}}))},failGeneration:(t,a)=>{const s=a.ids?new Set(a.ids):null;e(o=>({placeholders:{...o.placeholders,[t]:(o.placeholders[t]||[]).map(c=>(!s||s.has(c.id))&&(!a.sessionId||c.sessionId===a.sessionId)&&(!a.toolId||c.toolId===a.toolId)?{...c,status:"failed"}:c)}}))},takeGeneration:(t,a)=>{const o=(n().placeholders[t]||[]).filter(c=>c.sessionId===a&&c.status!=="failed").sort((c,l)=>c.createdAt-l.createdAt||c.index-l.index)[0];if(o)return e(c=>({placeholders:{...c.placeholders,[t]:(c.placeholders[t]||[]).filter(l=>l.id!==o.id)}})),o},removeGeneration:(t,a)=>e(s=>({placeholders:{...s.placeholders,[t]:(s.placeholders[t]||[]).filter(o=>o.id!==a)}}))})),Ft=({containerRef:e,scanTrigger:n})=>{const{t}=P(),[a,s]=g.useState([]),[o,c]=g.useState(null),l=g.useCallback(()=>{const p=e.current;if(!p){s(d=>d.length?[]:d);return}const m=p.querySelectorAll('[data-toc-msg-role="user"], [data-toc-level]'),h=[];m.forEach(d=>{if(d.id){if(d.dataset.tocMsgRole==="user"){const x=(d.dataset.tocTitle||d.textContent||"").trim();x&&h.push({id:d.id,level:0,kind:"user",text:x})}else if(d.dataset.tocLevel){const x=(d.textContent||"").trim();x&&h.push({id:d.id,level:Number(d.dataset.tocLevel)||1,kind:"heading",text:x})}}}),s(d=>d.length===h.length&&d.every((x,w)=>x.id===h[w].id&&x.text===h[w].text)?d:h)},[e]);g.useEffect(()=>{l();const p=e.current;if(!p)return;let m=0;const h=new MutationObserver(()=>{cancelAnimationFrame(m),m=requestAnimationFrame(l)});return h.observe(p,{childList:!0,subtree:!0,characterData:!0}),()=>{cancelAnimationFrame(m),h.disconnect()}},[l,e,n]),g.useEffect(()=>{const p=e.current;if(!p||a.length===0)return;const m=new Set,h=new IntersectionObserver(d=>{for(const w of d)w.isIntersecting?m.add(w.target.id):m.delete(w.target.id);const x=a.find(w=>m.has(w.id));x&&c(x.id)},{root:p,rootMargin:"0px 0px -65% 0px",threshold:0});for(const d of a)try{const x=p.querySelector(`#${CSS.escape(d.id)}`);x&&h.observe(x)}catch{}return()=>h.disconnect()},[a,e]);const u=g.useCallback(p=>{const m=e.current;if(!m)return;let h=null;try{h=m.querySelector(`#${CSS.escape(p)}`)}catch{return}if(!h)return;const d=h.getBoundingClientRect().top-m.getBoundingClientRect().top+m.scrollTop;m.scrollTo({top:Math.max(0,d-16),behavior:"smooth"}),c(p)},[e]);return a.length===0?r.jsx("div",{className:"panel-note",children:t("toc.emptyNote")}):r.jsx("div",{className:"toc-list",children:a.map(p=>r.jsxs("button",{type:"button",className:`toc-item${p.kind==="user"?" user":""}${o===p.id?" active":""}`,style:{paddingLeft:6+p.level*14},title:p.text,onClick:()=>u(p.id),children:[p.kind==="user"?r.jsx(Pe,{size:12,className:"toc-ico"}):r.jsx(Le,{size:11,className:"toc-ico"}),r.jsx("span",{className:"toc-text",children:p.text})]},p.id))})};function Ct(e){if(e==="__host__")return"#b8860b";let n=0;for(let t=0;t<e.length;t++)n=n*31+e.charCodeAt(t)>>>0;return`hsl(${n%360} 62% 45%)`}const ke=({segs:e})=>r.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:e.map((n,t)=>n.t==="tool"?r.jsxs("div",{className:"panel-note",style:{fontSize:"var(--ui-font-caption, 11px)",opacity:n.error?.95:.7},children:["🔧 ",r.jsx("b",{children:n.name}),n.preview?` — ${n.preview.slice(0,200)}`:""]},t):n.t==="vote"?r.jsxs("div",{className:"panel-note",style:{fontSize:"var(--ui-font-caption, 11px)"},children:["🗳 ",n.text]},t):r.jsxs("div",{children:[n.speaker&&r.jsxs("div",{className:"msg-role-with-avatar",style:{color:n.color,fontSize:12,fontWeight:600,marginBottom:2,display:"flex",alignItems:"center",gap:4},children:[r.jsx("span",{className:"msg-avatar fallback",style:{background:n.color,width:16,height:16,fontSize:10},children:n.speaker.slice(0,1)}),r.jsx("span",{children:n.speaker})]}),r.jsx("div",{className:"msg-content",style:{fontSize:"var(--ui-font-meta, 12px)"},children:r.jsx(X,{content:n.text||""})})]},t))}),It=({sessionId:e,runId:n})=>{const{t}=P(),[a,s]=g.useState([]),[o,c]=g.useState(!0),l=g.useRef(null);return g.useEffect(()=>{const u=new AbortController;s([]),c(!0);let p="",m="";const h=d=>s(x=>{const w=x[x.length-1];return w&&w.t==="text"?[...x.slice(0,-1),{...w,text:w.text+d}]:[...x,{t:"text",speaker:p,color:m,text:d}]});return _e(T(e),n,d=>{const x=d.payload||{};switch(d.type){case"group_speaker":x.phase==="start"&&(p=x.name||x.slug||"",m=Ct(String(x.slug||"")),s(w=>[...w,{t:"text",speaker:p,color:m,text:""}]));break;case"token":x.delta&&h(String(x.delta));break;case"tool_call":s(w=>[...w,{t:"tool",name:String(x.name||"")}]);break;case"group_vote":s(w=>[...w,{t:"vote",text:`${x.endCount}/${x.total} ${t("panel.subchats.voteEnd")}`}]);break;case"group_ended":case"done":case"error":c(!1);break}},u.signal).catch(()=>c(!1)),()=>u.abort()},[e,n,t]),g.useEffect(()=>{l.current?.scrollIntoView({block:"end"})},[a]),r.jsxs("div",{children:[a.length===0&&o&&r.jsxs("div",{className:"panel-note",style:{fontSize:11.5},children:[r.jsx($,{size:12,className:"spin"})," ",t("panel.subchats.connecting")]}),r.jsx(ke,{segs:a}),o&&a.length>0&&r.jsxs("div",{className:"panel-note",style:{fontSize:11.5,marginTop:6},children:[r.jsx($,{size:12,className:"spin"})," ",t("panel.subchats.live")]}),r.jsx("div",{ref:l})]})},Et=({sessionId:e,subChats:n})=>{const{t}=P(),a=n||[],[s,o]=g.useState(null),c=a.find(l=>l.id===s)||a[a.length-1]||null;return a.length?r.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[r.jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,maxHeight:140,overflowY:"auto"},children:a.map(l=>r.jsxs("div",{role:"button",tabIndex:0,className:`file-row${c?.id===l.id?" selected":""}`,onClick:()=>o(l.id),children:[l.kind==="discussion"?r.jsx($e,{size:13}):r.jsx(Oe,{size:13}),r.jsx("span",{className:"file-name",title:l.title,children:l.title||l.id.slice(0,8)}),l.streaming&&r.jsx($,{size:12,className:"spin",style:{opacity:.6}})]},l.id))}),r.jsx("div",{style:{height:1,background:"var(--border)"}}),c&&r.jsx("div",{style:{padding:"0 4px"},children:c.kind==="discussion"&&c.runId?r.jsx(It,{sessionId:e,runId:c.runId}):r.jsxs(r.Fragment,{children:[r.jsx(ke,{segs:c.segs}),c.segs.length===0&&r.jsx("div",{className:"panel-note",style:{fontSize:"var(--ui-font-caption, 11px)"},children:t("panel.subchats.starting")}),c.streaming&&c.segs.length>0&&r.jsxs("div",{className:"panel-note",style:{fontSize:11.5,marginTop:6},children:[r.jsx($,{size:12,className:"spin"})," ",t("panel.subchats.live")]})]})})]}):r.jsx("div",{className:"panel-note",children:t("panel.subchats.empty")})},At="application/x-tangu-paths",cn=e=>{const{t:n}=P(),[t,a]=g.useState("workspace"),s=e.view??t,o=r.jsxs(r.Fragment,{children:[s==="workspace"&&r.jsx(Tt,{...e}),s==="toc"&&r.jsx(Ft,{containerRef:e.chatScrollRef,scanTrigger:e.messages.length}),s==="memory"&&r.jsx($t,{...e}),s==="subchats"&&r.jsx(Et,{sessionId:e.sessionId,subChats:e.subChats})]});return e.view?r.jsx("div",{className:"right-panel-body",children:o}):r.jsxs("aside",{className:"right-panel",children:[r.jsxs("div",{className:"right-panel-tabs",children:[r.jsxs("button",{className:t==="workspace"?"active":"",onClick:()=>a("workspace"),children:[r.jsx(Ue,{size:13})," ",n("panel.tab.workspace")]}),r.jsxs("button",{className:t==="toc"?"active":"",onClick:()=>a("toc"),children:[r.jsx(We,{size:13})," ",n("panel.tab.toc")]}),r.jsxs("button",{className:t==="memory"?"active":"",onClick:()=>a("memory"),children:[r.jsx(lt,{size:13})," ",n("panel.tab.memory")]}),r.jsxs("button",{className:t==="subchats"?"active":"",onClick:()=>a("subchats"),children:[r.jsx(Ge,{size:13})," ",n("panel.tab.subchats"),e.subChats&&e.subChats.length>0&&r.jsx("span",{style:{marginLeft:3,fontSize:"var(--ui-font-caption, 11px)",fontWeight:700,background:"var(--accent)",color:"var(--on-accent)",borderRadius:"var(--radius-sm, 6px)",padding:"0 4px",lineHeight:"14px"},children:e.subChats.length})]})]}),r.jsx("div",{className:"right-panel-body",children:o})]})};function Se(e){const[n,t]=g.useState(new Set),a=g.useRef(null),s=e.join(`
|
|
4
4
|
`);g.useEffect(()=>{t(u=>{const p=new Set([...u].filter(m=>e.includes(m)));return p.size===u.size?u:p})},[s]);const o=u=>{t(new Set([u])),a.current=u};return{selected:n,onClick:(u,p)=>{if(p.metaKey||p.ctrlKey)t(m=>{const h=new Set(m);return h.has(u)?h.delete(u):h.add(u),h}),a.current=u;else if(p.shiftKey&&a.current){const m=e.indexOf(a.current),h=e.indexOf(u);if(m>=0&&h>=0){const[d,x]=m<h?[m,h]:[h,m];t(new Set(e.slice(d,x+1)))}else o(u)}else o(u)},only:o,clear:()=>{t(new Set),a.current=null}}}const Ne=({menu:e,onClose:n,autoFocus:t=!1})=>{const[a,s]=g.useState(()=>!0),o=g.useRef({menu:e,onClose:n});o.current={menu:e,onClose:n},g.useEffect(()=>{if(a)return;const l=new AbortController;return Re(o.current.menu.items,{signal:l.signal}).then(u=>{if(!l.signal.aborted){if(!u.handled){s(!0);return}o.current.onClose(),u.value?.run()}}),()=>l.abort()},[a,e.x,e.y]);const c=g.useRef(null);return g.useEffect(()=>{a&&t&&c.current?.focus({preventScroll:!0})},[a,t,e.x,e.y]),g.useEffect(()=>{if(!a)return;const l=()=>n(),u=p=>{p.key==="Escape"&&n()};return window.addEventListener("pointerdown",l),window.addEventListener("contextmenu",l),window.addEventListener("keydown",u),window.addEventListener("blur",l),()=>{window.removeEventListener("pointerdown",l),window.removeEventListener("contextmenu",l),window.removeEventListener("keydown",u),window.removeEventListener("blur",l)}},[n,a]),a?Be.createPortal(r.jsx(He,{className:"ctx-menu",role:"menu",x:e.x,y:e.y,onPointerDown:l=>l.stopPropagation(),onContextMenu:l=>{l.preventDefault(),l.stopPropagation()},onKeyDown:l=>{if(l.key==="Escape"||l.key==="Tab"){l.preventDefault(),l.stopPropagation(),n();return}if(!["ArrowDown","ArrowUp","Home","End"].includes(l.key))return;l.preventDefault(),l.stopPropagation();const u=Array.from(l.currentTarget.querySelectorAll("button:not(:disabled)")),p=u.indexOf(document.activeElement),m=l.key==="Home"?0:l.key==="End"?u.length-1:(p+(l.key==="ArrowDown"?1:-1)+u.length)%u.length;u[m]?.focus()},children:e.items.map((l,u)=>r.jsxs(ot.Fragment,{children:[l.separatorBefore&&r.jsx("div",{className:"ctx-separator",role:"separator"}),r.jsxs("button",{ref:u===e.items.findIndex(p=>!p.disabled)?c:void 0,role:"menuitem","aria-label":l.label,disabled:l.disabled,className:`ctx-item${l.danger?" danger":""}`,onClick:()=>{n(),l.run()},children:[l.icon,r.jsx("span",{children:l.label}),l.shortcut&&r.jsx("kbd",{className:"ctx-shortcut","aria-hidden":"true",children:l.shortcut})]})]},u))}),document.body):null},De=(e,n)=>({x:e.clientX,y:e.clientY}),Tt=e=>e.sessionConfig?.execMode==="host"&&e.sessionConfig.cwd&&window.tangu?.listDir?r.jsx(Pt,{cwd:e.sessionConfig.cwd,running:e.running,onToast:e.onToast,onOpenPreview:e.onOpenPreview}):r.jsx(Lt,{...e}),Pt=({cwd:e,running:n,onToast:t,onOpenPreview:a})=>{const{t:s}=P(),[o,c]=g.useState(e),[l,u]=g.useState([]),[p,m]=g.useState(!1),[h,d]=g.useState(null),[x,w]=g.useState(""),[E,k]=g.useState(!1),[N,D]=g.useState(""),[f,S]=g.useState(null),[b,C]=g.useState(null),[M,z]=g.useState(null),[Me,B]=g.useState(!1),F=Se(l.map(i=>i.path)),L=!!window.tangu?.mkdirHost,K=!!window.tangu?.revealHostPath;g.useEffect(()=>{c(e),d(null),k(!1)},[e]);const I=g.useCallback(async()=>{if(window.tangu?.listDir){m(!0);try{u(await window.tangu.listDir(o))}catch(i){t(s("panel.toast.listDirFail",{err:i?.message||i}),!0)}finally{m(!1)}}},[o,t]);g.useEffect(()=>{I()},[I,n]);const H=i=>{const y=Math.max(i.lastIndexOf("/"),i.lastIndexOf("\\"));return y>0?i.slice(0,y):i},ze=o===e,ee=o.startsWith(e)?o.slice(e.length).replace(/^[/\\]+/,""):o,te=i=>{i.isDir||!window.tangu?.readHostFile||a({name:i.name,path:i.path,load:async()=>{const y=await window.tangu.readHostFile(i.path);return y.tooLarge?{tooLarge:!0,size:y.size}:{mimeType:y.mimeType,bytes:ve(y.content),size:y.size,mtimeMs:y.mtimeMs}},download:K?()=>{window.tangu?.revealHostPath?.(i.path)}:void 0})},ne=i=>{i.isDir?c(i.path):te(i)},Fe=i=>{d(i.path),w(i.name)},Ce=async i=>{const y=x.trim();if(d(null),!(!y||y===i.name||!window.tangu?.renameHostPath))try{await window.tangu.renameHostPath(i.path,y),I()}catch(j){t(s("panel.toast.renameFail",{err:j?.message||j}),!0)}},se=async()=>{const i=N.trim();if(k(!1),D(""),!(!i||!window.tangu?.mkdirHost))try{await window.tangu.mkdirHost(o,i),I()}catch(y){t(s("panel.toast.mkdirFail",{err:y?.message||y}),!0)}},Ie=async i=>{if(!(!i.length||!window.tangu?.trashHostPath||!window.confirm(i.length===1?s("panel.confirm.trash",{name:i[0].split(/[/\\]/).pop()||""}):s("panel.confirm.trashN",{n:String(i.length)}))))try{for(const j of i)await window.tangu.trashHostPath(j);F.clear(),I()}catch(j){t(s("panel.toast.deleteFail",{err:j?.message||j}),!0)}},Ee=async(i,y)=>{const j=y.filter(v=>v!==i);if(!(!j.length||!window.tangu?.moveHostPath))try{for(const v of j)await window.tangu.moveHostPath(v,i);F.clear(),I()}catch(v){t(s("panel.toast.moveFail",{err:v?.message||v}),!0)}},ae=async(i,y)=>{if(!window.tangu?.copyHostFiles||!window.tangu?.getPathForFile)return;const j=Array.from(i).map(v=>{try{return window.tangu.getPathForFile(v)}catch{return""}}).filter(Boolean);if(j.length)try{const v=await window.tangu.copyHostFiles(j,y);t(s("panel.toast.copied",{n:String(v.copied)})),I()}catch(v){t(s("panel.toast.copyFail",{err:v?.message||v}),!0)}},Ae=(i,y)=>{i.preventDefault(),i.stopPropagation();const j=F.selected.has(y.path)?[...F.selected]:[y.path];F.selected.has(y.path)||F.only(y.path);const v=j.length>1,A=[];!v&&!y.isDir&&A.push({label:s("panel.action.preview"),icon:r.jsx(xe,{size:13}),run:()=>te(y)}),!v&&L&&A.push({label:s("panel.action.rename"),icon:r.jsx(ut,{size:13}),run:()=>Fe(y)}),!v&&K&&A.push({label:s("panel.action.revealInFileManager"),icon:r.jsx(ie,{size:13}),run:()=>window.tangu?.revealHostPath?.(y.path)}),L&&A.push({label:v?s("panel.action.deleteN",{n:String(j.length)}):s("panel.action.moveToTrash"),icon:r.jsx(ye,{size:13}),danger:!0,run:()=>{Ie(j)}}),A.length&&S({...De(i,A.length),items:A})},Te=(i,y)=>{if(i.altKey&&window.tangu?.startHostDrag){i.preventDefault(),window.tangu.startHostDrag(y.path);return}const j=F.selected.has(y.path)?[...F.selected]:[y.path];C(j),i.dataTransfer.setData(At,JSON.stringify(j)),i.dataTransfer.effectAllowed="copyMove"},re=(i,y)=>{const j=L&&i.dataTransfer.types.includes("Files");!b&&!j||b?.includes(y)||(i.preventDefault(),i.stopPropagation(),z(y),B(!1))},oe=(i,y)=>{i.preventDefault(),i.stopPropagation();const j=i.dataTransfer.files,v=b;z(null),C(null),j?.length?ae(j,y):v?.length&&Ee(y,v)};return r.jsxs("div",{className:Me?"wsfiles dragover":"wsfiles",onClick:i=>{i.target===i.currentTarget&&F.clear()},onDragOver:i=>{L&&i.dataTransfer.types.includes("Files")&&!b&&(i.preventDefault(),B(!0))},onDragLeave:i=>{i.currentTarget.contains(i.relatedTarget)||B(!1)},onDrop:i=>{i.preventDefault(),B(!1),z(null),i.dataTransfer.files?.length&&!b&&ae(i.dataTransfer.files,o)},children:[r.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4,marginBottom:6},children:[r.jsx("span",{className:"panel-section-title",style:{flex:1,padding:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:o,children:ee?`…/${ee}`:e.split(/[/\\]/).filter(Boolean).pop()||e}),L&&r.jsx("button",{className:"icon-btn",style:{width:24,height:24},onClick:()=>{k(!0),D("")},title:s("panel.action.newFolder"),children:r.jsx(ct,{size:13})}),K&&r.jsx("button",{className:"icon-btn",style:{width:24,height:24},onClick:()=>window.tangu?.revealHostPath?.(o),title:s("panel.action.openCurDirInFileManager"),children:r.jsx(ie,{size:13})}),r.jsx("button",{className:"icon-btn",style:{width:24,height:24},onClick:()=>{I()},title:s("panel.action.refresh"),children:p?r.jsx($,{size:13,className:"spin"}):r.jsx(he,{size:13})})]}),E&&r.jsxs("div",{className:"file-row",style:{cursor:"default"},children:[r.jsx(ce,{size:13,style:{color:"var(--accent-ink)"}}),r.jsx("input",{autoFocus:!0,className:"file-rename-input",value:N,placeholder:s("panel.placeholder.newFolderName"),onChange:i=>D(i.target.value),onKeyDown:i=>{i.key==="Enter"?se():i.key==="Escape"&&(k(!1),D(""))},onBlur:()=>{k(!1),D("")}}),r.jsxs("span",{className:"file-act",style:{opacity:1},children:[r.jsx("button",{className:"icon-btn",style:{width:22,height:22},title:s("panel.action.create"),onMouseDown:i=>{i.preventDefault(),se()},children:r.jsx(qe,{size:12})}),r.jsx("button",{className:"icon-btn",style:{width:22,height:22},title:s("panel.action.cancel"),onMouseDown:i=>{i.preventDefault(),k(!1),D("")},children:r.jsx(Ke,{size:12})})]})]}),!ze&&r.jsxs("div",{className:`file-row${M===H(o)?" drop-target":""}`,role:"button",tabIndex:0,onClick:()=>c(H(o)),onDragOver:i=>re(i,H(o)),onDragLeave:()=>z(null),onDrop:i=>oe(i,H(o)),children:[r.jsx(mt,{size:13}),r.jsx("span",{className:"file-name",children:s("panel.parentDir")})]}),l.length===0&&!p&&!E&&r.jsx("div",{className:"panel-note",children:s("panel.emptyDir")}),l.map(i=>{const y=F.selected.has(i.path),j=i.isDir&&M===i.path;return r.jsxs("div",{className:`file-row${y?" selected":""}${j?" drop-target":""}`,role:"button",tabIndex:0,draggable:L&&h!==i.path,onDragStart:v=>Te(v,i),onDragEnd:()=>{C(null),z(null)},onDragOver:i.isDir?v=>re(v,i.path):void 0,onDragLeave:i.isDir?()=>z(null):void 0,onDrop:i.isDir?v=>oe(v,i.path):void 0,onClick:v=>{h!==i.path&&F.onClick(i.path,v)},onDoubleClick:()=>{h!==i.path&&ne(i)},onContextMenu:v=>Ae(v,i),onKeyDown:v=>{h!==i.path&&v.key==="Enter"&&(v.preventDefault(),ne(i))},children:[i.isDir?r.jsx(ce,{size:13,style:{color:"var(--accent-ink)"}}):/\.(png|jpe?g|gif|webp|svg|bmp)$/i.test(i.name)?r.jsx(me,{size:13}):r.jsx(fe,{size:13}),h===i.path?r.jsx("input",{autoFocus:!0,className:"file-rename-input",value:x,onClick:v=>v.stopPropagation(),onChange:v=>w(v.target.value),onKeyDown:v=>{v.stopPropagation(),v.key==="Enter"?Ce(i):v.key==="Escape"&&d(null)},onBlur:()=>d(null)}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"file-name",children:i.name}),!i.isDir&&r.jsx("span",{className:"file-size",children:ge(i.size)})]})]},i.path)}),f&&r.jsx(Ne,{menu:f,onClose:()=>S(null)})]})},Lt=({cfg:e,sessionId:n,running:t,onToast:a,onOpenPreview:s})=>{const{t:o}=P(),[c,l]=g.useState([]),[u,p]=g.useState(!1),[m,h]=g.useState(null),d=Se(c.map(f=>f.path)),x=g.useCallback(async()=>{p(!0);try{l(await Ve(T(n),n))}catch(f){a(o("panel.toast.workspaceLoadFail",{err:f?.message||f}),!0)}finally{p(!1)}},[e,n,a]);g.useEffect(()=>{x()},[x,t]);const w=f=>{s({name:f.path,load:async()=>{const S=await tt(T(n),n,f.path);return{mimeType:S.mimeType,bytes:ve(S.content),size:S.size}},download:()=>{le(T(n),n,f.path).catch(S=>a(S.message,!0))}})},E=f=>{le(T(n),n,f).catch(S=>a(S.message,!0))},k=async f=>{if(!(!f.length||!window.confirm(f.length===1?o("panel.confirm.delete",{name:f[0].replace(/^\//,"")}):o("panel.confirm.deleteN",{n:String(f.length)}))))try{for(const b of f)await at(T(n),n,b);d.clear(),x()}catch(b){a(b.message,!0)}},N=async f=>{if(!f?.length)return;const S=await Promise.all(Array.from(f).map(async b=>{const C=new Uint8Array(await b.arrayBuffer());let M="";for(let z=0;z<C.length;z+=32768)M+=String.fromCharCode(...C.subarray(z,z+32768));return{path:b.name,content:btoa(M),encoding:"base64",mimeType:b.type}}));try{const b=await et(T(n),n,S);a(o("panel.toast.uploaded",{saved:b.saved,total:b.total})),x()}catch(b){a(o("panel.toast.uploadFail",{err:b?.message||b}),!0)}},D=(f,S)=>{f.preventDefault(),f.stopPropagation();const b=d.selected.has(S.path)?[...d.selected]:[S.path];d.selected.has(S.path)||d.only(S.path);const C=b.length>1,M=[];C||M.push({label:o("panel.action.preview"),icon:r.jsx(xe,{size:13}),run:()=>w(S)}),C||M.push({label:o("panel.action.download"),icon:r.jsx(nt,{size:13}),run:()=>E(S.path)}),M.push({label:C?o("panel.action.deleteN",{n:String(b.length)}):o("panel.action.delete"),icon:r.jsx(ye,{size:13}),danger:!0,run:()=>{k(b)}}),h({...De(f,M.length),items:M})};return r.jsxs("div",{onClick:f=>{f.target===f.currentTarget&&d.clear()},onDragOver:f=>f.preventDefault(),onDrop:f=>{f.preventDefault(),N(f.dataTransfer.files)},children:[r.jsxs("div",{style:{display:"flex",gap:4,marginBottom:6},children:[r.jsx("span",{className:"panel-section-title",style:{flex:1,padding:0},children:o("panel.sessionFiles")}),r.jsxs("label",{className:"icon-btn",style:{width:24,height:24},title:o("panel.action.uploadFile"),children:[r.jsx(dt,{size:13}),r.jsx("input",{type:"file",multiple:!0,hidden:!0,onChange:f=>{N(f.target.files),f.target.value=""}})]}),r.jsx("button",{className:"icon-btn",style:{width:24,height:24},onClick:()=>{x()},title:o("panel.action.refresh"),children:u?r.jsx($,{size:13,className:"spin"}):r.jsx(he,{size:13})})]}),c.length===0&&r.jsx("div",{className:"panel-note",children:o("panel.noFilesYet")}),c.map(f=>{const S=d.selected.has(f.path);return r.jsxs("div",{className:`file-row${S?" selected":""}`,role:"button",tabIndex:0,onClick:b=>d.onClick(f.path,b),onDoubleClick:()=>w(f),onContextMenu:b=>D(b,f),onKeyDown:b=>{b.key==="Enter"&&(b.preventDefault(),w(f))},children:[f.mimeType.startsWith("image/")?r.jsx(me,{size:13}):r.jsx(fe,{size:13}),r.jsx("span",{className:"file-name",children:f.path.replace(/^\//,"")}),r.jsx("span",{className:"file-size",children:ge(f.size)})]},f.path)}),m&&r.jsx(Ne,{menu:m,onClose:()=>h(null)})]})},$t=({cfg:e,sessionConfig:n,onToast:t})=>{const a=n?.groupChat&&n.groupAgents?.length?Array.from(new Set(n.groupAgents)):[n?.agentSlug||it];return r.jsx("div",{children:a.map(s=>r.jsx(Ot,{cfg:e,slug:s,onToast:t,showName:a.length>1,canAppend:a.length===1},s))})},Ot=({cfg:e,slug:n,onToast:t,showName:a,canAppend:s})=>{const{t:o}=P(),[c,l]=g.useState(null),[u,p]=g.useState([]),[m,h]=g.useState(null),[d,x]=g.useState(""),w=g.useCallback(async()=>{try{l(await Ye(U(),n))}catch(k){l(null),t(o("panel.toast.memoryLoadFail",{err:k?.message||k}),!0)}try{const k=(await Xe(U(),n)).slice().sort((f,S)=>S.localeCompare(f)).slice(0,3),D=(await Promise.all(k.map(async f=>({date:f,content:await Je(U(),n,f)})))).filter(f=>f.content.trim());p(D),h(f=>f??D[0]?.date??null)}catch{p([])}},[e,n,t,o]);g.useEffect(()=>{w()},[w]);const E=async()=>{const k=d.trim();if(k)try{const N=await st(U(),k,n);t(N.appended?o("panel.toast.memorySaved"):o("panel.toast.memoryNotWritten")),x(""),w()}catch(N){t(o("panel.toast.appendFail",{err:N?.message||N}),!0)}};return r.jsxs("div",{className:"agentmem",children:[a&&r.jsx("div",{className:"agentmem-agent",children:n}),r.jsx("div",{className:"panel-section-title",children:o("panel.memory.currentAgent")}),c===null&&r.jsx("div",{className:"panel-note",children:o("panel.memory.notConnected")}),c!==null&&(c.trim()?r.jsx("div",{style:{fontSize:"var(--ui-font-meta, 12px)",padding:"0 8px"},className:"msg-content",children:r.jsx(X,{content:c})}):r.jsx("div",{className:"panel-note",children:o("panel.memory.empty")})),s&&r.jsxs("div",{style:{display:"flex",gap:6,padding:"8px 8px 0"},children:[r.jsx("input",{type:"text",value:d,placeholder:o("panel.memory.appendPlaceholder"),onChange:k=>x(k.target.value),onKeyDown:k=>k.key==="Enter"&&void E(),style:{flex:1,fontSize:"var(--ui-font-meta, 12px)",padding:"5px 8px",background:"var(--bg-card)",border:"var(--border-width) solid var(--border)",borderRadius:"var(--radius-sm)",outline:"none"}}),r.jsx("button",{className:"btn ghost sm",onClick:()=>{E()},children:o("panel.memory.append")})]}),r.jsx("div",{className:"panel-section-title",style:{marginTop:14},children:o("panel.memory.recentLogs")}),u.length===0&&r.jsx("div",{className:"panel-note",children:o("panel.log.none")}),u.map(k=>{const N=m===k.date;return r.jsxs("div",{className:"agentmem-log",children:[r.jsxs("button",{className:"agentmem-log-head",onClick:()=>h(N?null:k.date),children:[N?r.jsx(Ze,{size:12}):r.jsx(Qe,{size:12}),r.jsx("span",{children:k.date})]}),N&&r.jsx("div",{className:"agentmem-log-body msg-content",children:r.jsx(X,{content:k.content})})]},k.date)})]})};export{Ne as C,jt as E,we as I,ft as M,cn as R,Vt as a,q as b,Yt as c,G as d,Z as e,tn as f,Zt as g,Xt as h,J as i,De as j,W as k,gt as l,wt as m,nn as n,rn as o,xt as p,Qt as q,an as r,ln as s,en as t,ue as u,yt as v,Jt as w,on as x,sn as y,bt as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.agent-avatar-initial{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-weight:600;line-height:1;-webkit-user-select:none;user-select:none}.agent-avatar-glyph{display:block}.agent-avatar-fill{width:100%;height:100%;container-type:size;color:var(--text-muted)}.agent-avatar-fill .agent-avatar-glyph{font-size:42cqmin;font-weight:500}.agent-avatar-initial.agent-avatar-mini,img.agent-avatar-mini{display:inline-flex;flex:0 0 auto;width:16px;height:16px;border-radius:var(--radius-sm, 6px);object-fit:cover}.agent-avatar-initial.agent-avatar-mini{background:var(--overlay-medium);color:var(--text-muted);font-size:var(--ui-font-caption, 11px)}.t2c{position:relative;width:100%}.dv-groupview:has(.wb-tab--icon) .t2-chat-view{--t2c-card-surface: var(--sidebar-card-bg, var(--bg))}.t2c-inner{max-width:880px;margin:0 auto;width:100%;box-sizing:border-box;padding:8px 28px 16px;display:flex;flex-direction:column;gap:8px}.t2c-iconbtn{width:28px;height:28px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:var(--text-muted);border-radius:var(--radius-pill, 999px);cursor:pointer;transition:background var(--duration-fast, .15s),color var(--duration-fast, .15s)}.t2c-iconbtn:hover:not(:disabled){background:var(--overlay-light, rgba(127, 127, 127, .1));color:var(--text)}.t2c-iconbtn:disabled{opacity:.4;cursor:default}.t2c-stop{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 12px;flex-shrink:0;border:none;border-radius:var(--radius-pill, 999px);background:color-mix(in srgb,var(--danger, #e0564b) 14%,transparent);color:var(--danger, #e0564b);font-size:var(--ui-font-caption, 11px);font-family:var(--font-ui);cursor:pointer}.t2c-stop:hover{background:color-mix(in srgb,var(--danger, #e0564b) 22%,transparent)}.t2c-quotes{display:flex;flex-direction:column;gap:6px;margin-bottom:8px;max-height:172px;overflow-y:auto}.t2c-quote{display:flex;gap:8px;align-items:flex-start;flex:none;padding:8px 8px 8px 10px;background:var(--overlay-light, rgba(127, 127, 127, .08));border-radius:var(--radius-md, 10px)}.t2c-quote-mark{flex:none;margin-top:2px;color:var(--accent-ink)}.t2c-quote-text{flex:1;min-width:0;font-size:var(--ui-font-meta, 12px);line-height:var(--ui-line-meta, 1.5);color:var(--text-muted);white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.t2c-quote-x{flex:none;display:grid;place-items:center;width:20px;height:20px;background:none;border:none;border-radius:var(--radius-sm, 6px);cursor:pointer;color:var(--text-faint, var(--text-muted));padding:0;transition:background var(--duration-fast),color var(--duration-fast)}.t2c-quote-x:hover{background:var(--overlay-medium, rgba(127, 127, 127, .16));color:var(--text)}.t2c-hint{font-size:var(--ui-font-caption, 11px);color:var(--danger, #e0564b);margin-bottom:6px}.t2c-chiprow{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.t2c-refrow{align-items:center}.t2c-reflabel{font-size:var(--ui-font-meta, 12px);color:var(--text-faint);flex-shrink:0}.t2c-menu{position:absolute;bottom:100%;left:0;right:0;margin-bottom:6px;background:var(--bg-card, var(--bg));border:var(--border-width, 1px) solid var(--border);border-radius:var(--radius-md, 12px);max-height:260px;overflow-y:auto;z-index:30;box-shadow:var(--card-shadow, 0 8px 28px rgba(0, 0, 0, .18));padding:6px}.t2c-menu-item{width:100%;min-height:var(--menu-item-min-height);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:var(--menu-item-pad-block) var(--menu-item-pad-inline);font-size:var(--menu-text-size);border:none;background:transparent;color:var(--text);text-align:left;border-radius:var(--radius-sm, 8px);cursor:pointer}.t2c-menu-item[data-active]{background:var(--menu-hover, rgba(127, 127, 127, .12))}.t2c-menu-cmd{font-size:var(--ui-font-caption, 11px);font-weight:600;white-space:nowrap}.t2c-menu-desc{font-size:var(--ui-font-caption, 11px);color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.t2c-menu-sec{padding:5px 10px 3px;font-size:var(--ui-font-caption, 11px);color:var(--text-faint, var(--text-muted))}.t2c-pill{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border:none;border-radius:var(--radius-pill, 999px);background:var(--overlay-light, rgba(127, 127, 127, .1));color:var(--text);font-size:var(--t2c-font-control, 12px);font-family:var(--font-ui);cursor:pointer;transition:background var(--duration-fast, .15s)}.t2c-row .composer-chip{font-size:var(--t2c-font-control, 12px)}.t2c-pill:hover{background:var(--overlay-medium, rgba(127, 127, 127, .18))}.t2c-pill.active{background:color-mix(in srgb,var(--accent-ink) 16%,transparent);color:var(--accent-ink)}.t2c-pill-label{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mode-pill-wrap{position:relative;display:inline-flex}.t2c-pill.mode-pill-btn{min-width:0;interpolate-size:allow-keywords;width:fit-content;transition:background var(--duration-fast, .15s),width .18s var(--ease-spring)}.t2c-pill.mode-pill-btn.is-open{display:grid;grid-template-columns:16px minmax(0,1fr) 16px;width:224px;background:var(--overlay-medium, rgba(127, 127, 127, .18))}.mode-pill-wrap.is-open{width:224px;flex-shrink:0}.mode-pill-btn.is-open>svg{justify-self:center}.mode-pill-btn.is-open .t2c-pill-label{width:100%;max-width:none;text-align:center}.add-pill-wrap{position:relative;display:inline-flex}.t2c-pill.add-pill-btn{box-sizing:border-box;display:grid;grid-template-columns:16px minmax(0,0fr) 0;justify-content:center;gap:0;width:28px;height:28px;min-width:0;padding:0;overflow:hidden;color:var(--text-muted);transition:background var(--duration-fast, .15s),color var(--duration-fast, .15s),width .18s var(--ease-spring),grid-template-columns .18s var(--ease-spring),gap .18s var(--ease-spring),padding .18s var(--ease-spring)}.t2c-pill.add-pill-btn.is-open{grid-template-columns:16px minmax(0,1fr) 16px;justify-content:stretch;gap:4px;width:224px;padding:4px 9px;color:var(--text);background:var(--overlay-medium, rgba(127, 127, 127, .18))}.add-pill-plus{justify-self:center;transition:transform .2s var(--ease-spring)}.add-pill-btn.is-open .add-pill-plus{transform:rotate(45deg)}.add-pill-label{min-width:0;overflow:hidden;color:var(--text);text-align:center;white-space:nowrap;opacity:0;transition:opacity .12s ease}.add-pill-btn.is-open .add-pill-label{opacity:1;transition-delay:.04s}.add-pill-chevron{justify-self:center;opacity:0;transition:opacity .12s ease}.add-pill-btn.is-open .add-pill-chevron{opacity:1;transition-delay:.04s}.composer-menu--add{left:0;width:224px;min-width:0;max-width:none;max-height:none;overflow:visible}.composer-menu--add .menu-item{font-size:var(--t2c-font-control, 12px)}.composer-menu--add .menu-item .grow{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer-menu--add .add-menu-parent>svg:last-child{flex:none;color:var(--text-faint)}.add-menu-sub{position:absolute;bottom:100%;left:calc(100% + 6px);width:min(268px,calc(100cqw - 16px));min-width:0;max-width:calc(100cqw - 16px);padding:5px;background:var(--bg-card, var(--bg));border:var(--border-width, 1px) solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--card-shadow);animation:pop .16s var(--ease-spring)}.add-menu-sub.left{left:auto;right:calc(100% + 6px)}.add-menu-sub.stacked{left:0;right:auto}.add-menu-search{display:flex;align-items:center;gap:7px;margin:1px 1px 4px;padding:7px 8px;border-radius:var(--radius-md);background:var(--overlay-light, rgba(127, 127, 127, .08));color:var(--text-faint)}.add-menu-search:focus-within{box-shadow:0 0 0 var(--focus-ring) var(--sel-line)}.add-menu-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:var(--t2c-font-control, 12px)}.add-menu-search input::placeholder{color:var(--text-faint)}.add-menu-sub-scroll{max-height:286px;overflow-y:auto;overscroll-behavior:contain}.add-menu-result{align-items:flex-start!important}.add-menu-result>svg{flex:none;margin-top:1px;color:var(--text-muted)}.add-menu-result-main{display:flex;min-width:0;flex-direction:column;gap:1px}.add-menu-result-title,.add-menu-result-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.add-menu-result-title{color:inherit}.add-menu-result-meta{color:var(--text-faint);font-size:var(--t2c-font-meta, 11px)}.add-menu-empty{padding:10px 9px;color:var(--text-faint);font-size:var(--t2c-font-meta, 11px)}.add-menu-section-gap{margin-top:4px;border-top:var(--border-width, 1px) solid var(--border)}.composer-menu--mode .mode-normal-row{display:flex;align-items:center;gap:2px}.composer-menu--mode .mode-normal-row>.menu-item{width:auto;flex:1 1 auto;min-width:0}.composer-menu--mode .mode-normal-row>.mode-agent-trigger{flex:0 1 auto;max-width:50%;gap:3px;color:var(--text-faint)}.composer-menu--mode .mode-normal-row>.mode-agent-trigger[aria-expanded=true]{background:var(--menu-hover);color:var(--text)}.mode-agent-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.t2c-row [data-cmenu],.t2c-row .t2c-pill,.t2c-row .composer-chip,.t2c-pill-label,.t2c-row .composer-chip .pill-marquee{min-width:0}.t2c-pill svg{flex-shrink:0}@container (max-width: 480px){.t2c-pill-label,.t2c-row .composer-chip .pill-marquee,.t2c-row .composer-chip .pill-ultra-tag{display:none}.mode-pill-btn.is-open .t2c-pill-label,.model-pill-btn.is-open .pill-marquee{display:block}.model-pill-btn.is-open .pill-ultra-tag{display:inline}}.t2c-row .composer-chip.model-pill-btn--native .pill-marquee{display:inline-block;max-width:128px;text-overflow:ellipsis}.t2c-row .composer-chip.model-pill-btn--native .pill-ultra-tag{display:inline}@container (max-width: 600px){.t2c-row:has(>.add-pill-wrap.is-open)>.t2c-capsule-peer:not(.add-pill-wrap),.t2c-row:has(>.mode-pill-wrap.is-open)>.t2c-capsule-peer:not(.mode-pill-wrap),.t2c-row:has(>.model-pill-wrap.is-open)>.t2c-capsule-peer:not(.model-pill-wrap),.t2c-row:has(>.add-pill-wrap.is-open)>.t2c-collapse-on-capsule-open,.t2c-row:has(>.mode-pill-wrap.is-open)>.t2c-collapse-on-capsule-open,.t2c-row:has(>.model-pill-wrap.is-open)>.t2c-collapse-on-capsule-open{display:none}}@media(prefers-reduced-motion:reduce){.t2c-pill.mode-pill-btn,.t2c-pill.add-pill-btn{transition:background var(--duration-fast, .15s)}.add-pill-plus,.add-pill-label,.add-pill-chevron{transition:none}.add-menu-sub{animation:none}}.t2c-ctxring{position:relative;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0}.t2c-ctxring-btn{display:inline-flex;padding:0;border:none;background:none;color:inherit;cursor:pointer}.t2c-ctxring svg{transform:rotate(-90deg)}.t2c-ctxring-track{fill:none;stroke:var(--overlay-light, rgba(127, 127, 127, .2));stroke-width:3}.t2c-ctxring-fill{fill:none;stroke:var(--accent-ink);stroke-width:3;stroke-linecap:round;transition:stroke-dashoffset .35s var(--ease-out, ease)}.t2c-ctxring[data-warn] .t2c-ctxring-fill{stroke:var(--danger, #e0564b)}.t2c-ctxring-pop span[data-warn]{color:var(--danger, #e0564b)}.t2c-ctxring-pop{position:absolute;bottom:calc(100% + 8px);left:0;z-index:30;display:none;flex-direction:column;gap:7px;padding:11px 12px;width:300px;max-width:calc(100vw - 32px);box-sizing:border-box;background:var(--bg-card, var(--bg));border:var(--border-width, 1px) solid var(--border);border-radius:var(--radius-md, 12px);box-shadow:var(--card-shadow, 0 8px 28px rgba(0, 0, 0, .18));font-size:var(--ui-font-meta, 12px);font-family:var(--font-ui);color:var(--text-muted);text-align:left}.t2c-ctxring.is-open .t2c-ctxring-pop{display:flex}.t2c-cu-head{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;width:100%;padding:0;border:none;background:none;font:inherit;color:var(--text-muted);cursor:pointer}.t2c-cu-title{color:var(--text-muted)}.t2c-cu-num{margin-left:auto;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}.t2c-ctxring .t2c-cu-chev{flex-shrink:0;color:var(--text-faint);transform:none;transition:transform .15s var(--ease-out, ease)}.t2c-cu-head[aria-expanded=true] .t2c-cu-chev{transform:rotate(90deg)}.t2c-cu-bar{display:flex;height:6px;border-radius:var(--radius-pill, 999px);overflow:hidden;background:var(--overlay-light, rgba(127, 127, 127, .16))}.t2c-cu-bar>span{flex-shrink:0;height:100%}.t2c-cu-bar>span+span:not(.t2c-cu-buffer){margin-left:1px}.t2c-cu-bar>.t2c-cu-buffer{margin-left:auto}.t2c-cu-buffer{background:repeating-linear-gradient(-45deg,var(--overlay-medium, rgba(127, 127, 127, .3)) 0 2px,transparent 2px 4px)}.t2c-cu-detail{display:flex;flex-direction:column;gap:6px}.t2c-cu-legend{max-height:clamp(140px,calc(100vh - 420px),360px);overflow-y:auto}.t2c-ctxring-pop .t2c-ctxinfo-files{max-height:120px;overflow-y:auto}.t2c-cu-legend{display:flex;flex-direction:column;gap:3px}.t2c-cu-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto 44px;align-items:center;gap:7px}.t2c-cu-row>i{width:9px;height:9px;border-radius:2px}.t2c-cu-row>i.is-free{border:var(--border-width, 1px) solid var(--border);box-sizing:border-box}.t2c-cu-row>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.t2c-cu-row>span:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums;color:var(--text-faint);white-space:nowrap}.t2c-cu-row.is-sub{font-size:var(--ui-font-caption, 11px)}.t2c-cu-row.is-sub>span:nth-child(2){padding-left:8px;color:var(--text-faint)}.t2c-cu-foot{display:flex;align-items:center;gap:8px}.t2c-cu-foot>.t2c-ctxring-compact{margin-left:auto}.t2c-ctxinfo-src{color:var(--text-faint);font-size:var(--ui-font-caption, 11px)}.t2c-ctxinfo-files{display:flex;flex-direction:column;gap:2px;padding-top:6px;border-top:var(--border-width, 1px) solid var(--border);font-size:var(--ui-font-caption, 11px)}.t2c-ctxinfo-label{color:var(--text-faint)}.t2c-ctxinfo-file{font-family:var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.t2c-ctxinfo-file.dim{font-family:inherit;opacity:.6}.t2c-ctxring-compact{flex-shrink:0;padding:3px 9px;border:none;border-radius:var(--radius-pill, 999px);background:var(--overlay-light, rgba(127, 127, 127, .12));color:var(--text);font-size:var(--ui-font-caption, 11px);font-family:var(--font-ui);cursor:pointer}.t2c-ctxring-compact:hover{background:var(--overlay-medium, rgba(127, 127, 127, .2))}.t2c-cu-limits{display:flex;flex-direction:column;gap:8px;padding-top:9px;border-top:var(--border-width, 1px) solid var(--border)}.t2c-cu-limits-title{display:flex;align-items:center;gap:6px;color:var(--text-faint)}.t2c-cu-limit{display:flex;flex-direction:column;gap:5px}.t2c-cu-limit-line{display:flex;align-items:baseline;gap:8px;white-space:nowrap;font-variant-numeric:tabular-nums}.t2c-cu-limit-line>:nth-child(2){margin-left:auto}.t2c-cu-limit-name{color:var(--text)}.t2c-cu-limit-reset{color:var(--text-faint);overflow:hidden;text-overflow:ellipsis}.t2c-cu-limit .t2c-cu-bar{height:5px}.t2c-cu-limit .t2c-cu-bar>span{background:var(--model-tag-blue)}.t2c-cu-limit .t2c-cu-bar[data-warn]>span{background:var(--danger, #e0564b)}.t2c-iconbtn.recording{color:var(--danger, #e5484d);animation:t2c-mic-pulse 1s ease-in-out infinite}@keyframes t2c-mic-pulse{0%,to{opacity:1}50%{opacity:.45}}.t2c-voicebar{display:flex;align-items:center;gap:8px;flex:1;min-width:0;animation:t2c-voicebar-in .22s var(--ease-out, ease)}@keyframes t2c-voicebar-in{0%{opacity:0;transform:translate(8px)}to{opacity:1;transform:none}}.t2c-voicewave{flex:1;min-width:0;height:30px;display:block}.t2c-voicelabel{flex-shrink:0;font-size:var(--ui-font-meta, 12px);color:var(--text-muted);font-family:var(--font-ui)}.t2c-voicetime{flex-shrink:0;min-width:34px;text-align:right;font-size:var(--ui-font-caption, 11px);color:var(--text-muted);font-variant-numeric:tabular-nums}.t2c-voicestop{flex-shrink:0;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:var(--radius-pill, 999px);background:var(--overlay-light, rgba(127, 127, 127, .1));color:var(--text);cursor:pointer;transition:background var(--duration-fast, .15s)}.t2c-voicestop:hover{background:var(--overlay-medium, rgba(127, 127, 127, .2))}.t2c-steer{display:flex;flex-direction:column;gap:2px;padding:6px 10px;border-radius:var(--radius-md, 12px);background:var(--overlay-light, rgba(127, 127, 127, .07));border:1px solid transparent;animation:t2c-steer-in .18s var(--ease-out, ease)}@keyframes t2c-steer-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.t2c-steer{animation:none}}.t2c-steer-item{display:flex;align-items:center;gap:7px;min-width:0;padding:2px 0}.t2c-steer-ic{flex-shrink:0;color:var(--text-faint, var(--text-muted))}.t2c-steer-text{flex:1;min-width:0;font-size:var(--ui-font-meta, 12px);color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t2c-steer-x{flex-shrink:0;background:none;border:none;cursor:pointer;color:var(--text-faint, var(--text-muted));padding:2px;line-height:0;border-radius:var(--radius-pill, 999px)}.t2c-steer-x:hover{color:var(--text);background:var(--overlay-light, rgba(127, 127, 127, .1))}.t2c-steer-foot{display:flex;align-items:center;gap:8px;margin-top:2px}.t2c-steer-hint{flex:1;min-width:0;font-size:var(--ui-font-caption, 11px);color:var(--text-faint, var(--text-muted));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t2c-steer-now{flex-shrink:0;display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border:none;border-radius:var(--radius-pill, 999px);cursor:pointer;background:var(--overlay-light, rgba(127, 127, 127, .12));color:var(--text);font-size:var(--ui-font-caption, 11px);font-family:var(--font-ui);transition:background var(--duration-fast, .15s)}.t2c-steer-now:hover{background:var(--overlay-medium, rgba(127, 127, 127, .2))}@container (max-width: 360px){.t2c-refrow{margin-bottom:6px}.t2c-reflabel{display:none}.t2c-refrow .attach-chip{min-width:0;max-width:min(100%,240px)}.t2c-stop{width:32px;padding-inline:0;justify-content:center}.t2c-stop-label{display:none}}.t2c-pill.mode-pill-btn[data-danger]{color:var(--danger);background:var(--danger-light)}.t2c-pill.mode-pill-btn[data-danger]:hover,.t2c-pill.mode-pill-btn[data-danger].is-open{background:color-mix(in srgb,var(--danger) 16%,transparent)}.t2c-apv{position:relative;display:flex;flex-direction:column;padding:4px 12px 10px;background:var(--t2c-card-surface, var(--bg-card, var(--bg)));border:var(--border-width, 1px) solid var(--border);border-radius:var(--radius-md, 12px);box-shadow:var(--card-shadow, 0 6px 22px rgba(0, 0, 0, .08));animation:t2c-steer-in .18s var(--ease-out, ease)}@media(prefers-reduced-motion:reduce){.t2c-apv{animation:none}}.t2c-apv-head{display:flex;align-items:center;gap:6px;width:100%;padding:6px 0;border:none;background:none;cursor:pointer;text-align:left;color:var(--text-muted);font-family:var(--font-ui);font-size:var(--ui-font-meta, 12px)}.t2c-apv-ic{flex-shrink:0;color:var(--accent-ink)}.t2c-apv-title{flex:1;min-width:0;font-weight:600;color:var(--text)}.t2c-apv-chev{flex-shrink:0;transition:transform var(--duration-fast, .15s)}.t2c-apv-chev.is-collapsed{transform:rotate(-90deg)}.t2c-apv-head:has(.is-collapsed){padding-bottom:0}.t2c-apv-body{max-height:min(40vh,400px);overflow-y:auto}.t2c-apv .t2c-apv-body>.approval-card,.t2c-apv .t2c-apv-body>.inquiry-card,.t2c-apv .t2c-apv-body>.plan-decision{border-color:transparent;box-shadow:none;background:transparent;padding:0;opacity:1}.t2c-apv .approval-card .approval-title{margin-bottom:6px}.t2c-apv .approval-diff{max-height:min(24vh,220px)}.t2c-apv .approval-actions{position:sticky;bottom:0;z-index:1;padding:8px 0 2px;margin-top:-2px;background:var(--t2c-card-surface, var(--bg-card, var(--bg)));transition:opacity var(--duration-fast, .15s)}.t2c-apv-body:is(.is-arming,.is-sent) :is(.approval-actions,.inquiry-opts,.inquiry-input){pointer-events:none;opacity:.55}.t2c-apv .inquiry-opts,.t2c-apv .inquiry-input{transition:opacity var(--duration-fast, .15s)}.t2c-apv .plan-decision-title{display:flex;align-items:center;gap:7px;margin-bottom:8px;font-size:var(--ui-font-body, 13px);font-weight:600;color:var(--text)}.t2c-apv .plan-decision-title svg{flex-shrink:0;color:var(--accent-ink)}.t2c-apv textarea.plan-edit{display:block;width:100%;box-sizing:border-box;min-height:140px;max-height:30vh;margin-bottom:8px;padding:8px 10px;font-family:var(--font-mono);font-size:var(--ui-font-meta, 12px);color:var(--text);background:var(--bg-card);border:var(--border-width, 1px) solid var(--border);border-radius:var(--radius-sm, 8px);resize:vertical;outline:none}.t2c-apv textarea.plan-edit:focus{border-color:var(--accent-ink)}.t2c-apv .plan-decision .inquiry-input{margin-top:8px}.t2c-apv-from{font-size:var(--ui-font-caption, 11px);color:var(--text-faint, var(--text-muted));margin-bottom:2px}.t2c-apv-rest{display:flex;flex-direction:column;gap:1px;max-height:108px;overflow-y:auto;margin:0 -6px 8px;padding-bottom:6px;border-bottom:var(--border-width, 1px) solid var(--overlay-medium, rgba(127, 127, 127, .16))}.t2c-apv-row{display:flex;align-items:center;gap:8px;min-width:0;width:100%;padding:4px 6px;border:none;border-radius:var(--radius-sm, 8px);background:none;cursor:pointer;text-align:left;font-family:var(--font-ui);font-size:var(--ui-font-meta, 12px);color:var(--text-muted)}.t2c-apv-row:hover{background:var(--overlay-light, rgba(127, 127, 127, .1));color:var(--text)}.t2c-apv-row-from{flex-shrink:0;color:var(--text-faint, var(--text-muted))}.t2c-apv-row-name{flex-shrink:0;font-weight:600;color:var(--text)}.t2c-apv-row-preview{flex:1;min-width:0;font-family:var(--font-mono);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t2c-apv-row-ic{flex-shrink:0;color:var(--accent-ink)}.t2c-apv-row-text{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t2c-field{display:flex;align-items:flex-end;gap:8px}.t2c-field>.t2c-ta{flex:1 1 auto;min-width:0;align-self:center}.t2c-card--phone .t2c-row{margin-top:6px}.t2c-card--phone .t2c-send{width:42px;height:42px}.t2c-card--phone .t2c-send svg{width:21px;height:21px}.t2c-card--phone .t2c-stop{width:42px;height:42px;padding-inline:0;justify-content:center}.t2c-card--phone .t2c-stop svg{width:14px;height:14px}.t2c-card--phone .t2c-stop-label{display:none}.t2c-card--phone .t2c-iconbtn{position:relative;width:38px;height:38px}.t2c-card--phone .t2c-iconbtn svg{width:19px;height:19px}.t2c-card--phone .add-pill-wrap{flex:0 0 auto}.t2c-card--phone .t2c-pill.add-pill-btn:not(.is-open){position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;overflow:visible}.t2c-card--phone .add-pill-btn:not(.is-open) .add-pill-plus{width:20px;height:20px}.t2c-card--phone .add-pill-btn:not(.is-open) :is(.add-pill-label,.add-pill-chevron){display:none}.t2c-card--phone :is(.t2c-iconbtn,.add-pill-btn:not(.is-open)):after{content:"";position:absolute;inset:-2px}.t2c-card--phone .t2c-ctxring-btn:after{content:"";position:absolute;inset:-9px -3px}.t2c-card--phone .model-pill-wrap{flex:0 1 auto;min-width:0}.t2c-card--phone .t2c-row .model-pill-wrap .composer-chip.model-pill-btn,.t2c-card--phone .t2c-pill.mode-pill-btn{box-sizing:border-box;height:42px;margin-block:-2px;max-width:100%;padding-inline:11px;border-block:3.5px solid transparent;background-clip:padding-box}.t2c-card--phone .t2c-row .composer-chip.model-pill-btn .pill-marquee{display:inline-block;max-width:none;text-overflow:ellipsis}.t2c-card--phone .t2c-row .composer-chip.model-pill-btn .pill-ultra-tag{display:inline}.t2c-card--phone .model-pill-wrap.is-plan .composer-chip.model-pill-btn:not(.is-max){color:var(--accent-ink);background-color:color-mix(in srgb,var(--accent-ink) 16%,transparent)}.t2c-card--phone .model-pill-wrap.is-danger .composer-chip.model-pill-btn{color:var(--danger);background-color:var(--danger-light)}.compact-chat-picker{display:none}@container (max-width: 520px){.t2-chat-col .newchat-pickers{flex-direction:row;align-items:stretch;gap:8px;padding-inline:12px}.newchat-pickers>.engine-picker{flex:1 1 0;min-width:0;animation:none}.newchat-pickers>.engine-picker>.engine-picker-bar,.newchat-pickers>.engine-picker>.engine-picker-hint{display:none}.newchat-pickers .compact-chat-picker{position:relative;display:flex;align-items:center;gap:7px;width:100%;min-width:0;min-height:38px;padding:8px 10px;box-sizing:border-box;border-radius:var(--radius-md, 12px);background:var(--bg-card);color:var(--text);font-size:var(--ui-font-body, 13px);line-height:1.4;cursor:pointer}.compact-chat-picker:hover{background:var(--overlay-medium)}.compact-chat-picker:focus-within{outline:var(--focus-ring) solid var(--accent-ink);outline-offset:2px}.compact-chat-picker-kind{flex:none;color:var(--text-muted);font-size:var(--ui-font-meta, 12px)}.compact-chat-picker-icon{display:inline-flex;flex:none}.compact-chat-picker-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.compact-chat-picker>svg{flex:none;color:var(--text-muted)}.compact-chat-picker select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}}@container (max-width: 360px){.t2-chat-col .newchat-pickers{flex-direction:column;gap:6px}}.agent-select-strip .agent-pill-index{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:14px;height:14px;margin-right:4px;padding:0 3px;border-radius:var(--radius-pill, 999px);background:var(--overlay-medium);color:var(--text-muted);font-size:var(--ui-font-caption, 11px);font-weight:600;line-height:1}.agent-select-strip .agent-select-sep{flex:none;width:1px;height:20px;margin:0 4px;background:var(--border)}.t2d-sections{display:flex;flex-direction:column;margin-top:4.5px}.t2d-toggle{gap:6px}.t2d-name{flex:0 1 auto}.t2d-status{flex:0 1 auto;min-width:0;margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ui-font-caption, 11px);font-weight:400;letter-spacing:0;text-transform:none;color:var(--text-faint, var(--text-muted))}.t2d-status[data-tone=warn]{color:var(--warning, var(--text-muted))}.t2d-emoji{display:inline-flex;width:1em;justify-content:center;font-size:var(--ui-font-body, 13px);line-height:1}.t2d-empty{padding:4.5px 6px 6px 30px;color:var(--text-faint, var(--text-muted));font-size:var(--ui-font-meta, 12px)}@media(pointer:coarse){.t2d-section .t2s-srow-menu{opacity:.7}}.runloc-pill:disabled{cursor:default;opacity:1}.runloc-status{flex:none;font-size:var(--ui-font-caption, 11px);color:var(--text-faint, var(--text-muted));white-space:nowrap}.runloc-status[data-tone=warn]{color:var(--warning, var(--text-muted))}.newchat-projectbar-inner:has(>.runloc),.hp-projectbar:has(>.runloc){flex-wrap:wrap;gap:6px}
|