@decocms/mesh 2.131.2 → 2.131.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/dist/client/assets/{AlertCircle-Dkqr1r1Q.js → AlertCircle-DlPS0B2V.js} +1 -1
- package/dist/client/assets/{AlertOctagon-BwExqGuJ.js → AlertOctagon-BuLp3fZC.js} +1 -1
- package/dist/client/assets/{AlignLeft-CKUGLbMc.js → AlignLeft-CK2LK9_P.js} +1 -1
- package/dist/client/assets/{ArrowDown-CRMfpA3C.js → ArrowDown-Dz6Gxuoh.js} +1 -1
- package/dist/client/assets/{ArrowLeft-98jtQw40.js → ArrowLeft-m0b492UP.js} +1 -1
- package/dist/client/assets/{ArrowUp-s_vVz9nI.js → ArrowUp-Djo3xiq5.js} +1 -1
- package/dist/client/assets/{Check-DojSaPH3.js → Check-BIAvy6yX.js} +1 -1
- package/dist/client/assets/{CheckCircle-CjD5Bvma.js → CheckCircle-ZlxnLwuD.js} +1 -1
- package/dist/client/assets/{CheckDone01-PzZ4aJ2B.js → CheckDone01-SmxvYrNZ.js} +1 -1
- package/dist/client/assets/{CheckVerified02-BOo5Cll4.js → CheckVerified02-Cq3SMoM5.js} +1 -1
- package/dist/client/assets/{ChevronDown-BgBeiqk4.js → ChevronDown-B_XlOG4n.js} +1 -1
- package/dist/client/assets/{ChevronRight-ntt7kj2X.js → ChevronRight--WZMG8rl.js} +1 -1
- package/dist/client/assets/{Clock-hhjRO-p5.js → Clock-DF385WmK.js} +1 -1
- package/dist/client/assets/{Code01-CtiiBuUZ.js → Code01-CF9Fqf4v.js} +1 -1
- package/dist/client/assets/{Container-DETG3Vpm.js → Container-CAK8Ef10.js} +1 -1
- package/dist/client/assets/{Copy01-DAgw87le.js → Copy01-DhxT-EHF.js} +1 -1
- package/dist/client/assets/{Dataflow03-yymJ3qCi.js → Dataflow03-jO7_7pxv.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-CRDR3ikP.js → DotsHorizontal-mcB-Jm-p.js} +1 -1
- package/dist/client/assets/{DotsVertical-Cb88o4dO.js → DotsVertical-BHwWihUa.js} +1 -1
- package/dist/client/assets/{Download01-DYRyy6E8.js → Download01-BAQPnXKJ.js} +1 -1
- package/dist/client/assets/{Edit01-Ce9T4GDO.js → Edit01-BAKH21Ta.js} +1 -1
- package/dist/client/assets/{Eye-DPG-E6S3.js → Eye-CwfPY6I3.js} +1 -1
- package/dist/client/assets/{File02-Bershn1K.js → File02-BGmXPhDl.js} +1 -1
- package/dist/client/assets/{File06-CIJNH202.js → File06-Dq4QeYow.js} +1 -1
- package/dist/client/assets/{FilterLines-C-QyLRQ-.js → FilterLines-CvVXx1lM.js} +1 -1
- package/dist/client/assets/{Globe01-CUXKjyjC.js → Globe01-vtxLyn0R.js} +1 -1
- package/dist/client/assets/{Globe02-WbvfAq6T.js → Globe02-D5-pXhdl.js} +1 -1
- package/dist/client/assets/{Grid01-Q5lBUjoI.js → Grid01-DF8yAKWy.js} +1 -1
- package/dist/client/assets/{Hash02-CCAET11m.js → Hash02-rOtzXEDy.js} +1 -1
- package/dist/client/assets/{Home02-DWi1gwG-.js → Home02-B3qxGVx_.js} +1 -1
- package/dist/client/assets/{Image01-Dfl09rMQ.js → Image01-CdQc9_Kn.js} +1 -1
- package/dist/client/assets/{Inbox01-KkWlgZrW.js → Inbox01-Cgsr8OUk.js} +1 -1
- package/dist/client/assets/{InfoCircle-Khu_MP7C.js → InfoCircle-C2XIwn6f.js} +1 -1
- package/dist/client/assets/{Key01-_bxQwPT1.js → Key01-DvGVU5tM.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DVl53tU_.js → LinkExternal01-DN5IcIrY.js} +1 -1
- package/dist/client/assets/{List-B6fT_JC1.js → List-cJBOedUB.js} +1 -1
- package/dist/client/assets/{Loading01-7lPd5VY0.js → Loading01-DUKazYJk.js} +1 -1
- package/dist/client/assets/{Lock01-CqvrjdCQ.js → Lock01-BDndlndK.js} +1 -1
- package/dist/client/assets/{Play-CRp2Fiq8.js → Play-BoOE6qYY.js} +1 -1
- package/dist/client/assets/{Plus-B4CifUaz.js → Plus-xPrSIBe6.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Pv9wWC4C.js → RefreshCcw01-34kOjxGl.js} +1 -1
- package/dist/client/assets/{Rows03-70mPs707.js → Rows03-BBJg6G3G.js} +1 -1
- package/dist/client/assets/{Save01-Bf1LNfFv.js → Save01-CVZL-KwT.js} +1 -1
- package/dist/client/assets/{SearchMd-D2_y6K19.js → SearchMd-C6p4WuWU.js} +1 -1
- package/dist/client/assets/{Settings01-sVEW_DKV.js → Settings01-C-qUCDkW.js} +1 -1
- package/dist/client/assets/{Shield01-CztMZVsY.js → Shield01-CGOTAY5M.js} +1 -1
- package/dist/client/assets/{Terminal-Dc4yKk87.js → Terminal-BFqTLoyA.js} +1 -1
- package/dist/client/assets/{Trash01-DrId97Wg.js → Trash01-BtuExZ9Q.js} +1 -1
- package/dist/client/assets/{Upload01-BciJNrXE.js → Upload01-DvQiLBB9.js} +1 -1
- package/dist/client/assets/{Users03-mZsyOxFC.js → Users03-B39x9j9y.js} +1 -1
- package/dist/client/assets/{XCircle-DAMM1xqw.js → XCircle-JTpXXWsC.js} +1 -1
- package/dist/client/assets/{XClose-Bk127sk1.js → XClose-_flpZkDx.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-C-MHAVyG.js → agent-connections-preview-D4sm_ya8.js} +1 -1
- package/dist/client/assets/agent-detail-O__Ac8gp.js +2 -0
- package/dist/client/assets/agents-Bn6F1Zoa.js +1 -0
- package/dist/client/assets/{alert-dialog-CTH20CPb.js → alert-dialog-BDxMDVo1.js} +2 -2
- package/dist/client/assets/{auth-catchall-CObdt_tX.js → auth-catchall-kNoDzBnk.js} +1 -1
- package/dist/client/assets/{avatar-CLLAtWtt.js → avatar-C9P0gqhN.js} +1 -1
- package/dist/client/assets/{badge-bamcfFQO.js → badge-Cd5VRqG2.js} +1 -1
- package/dist/client/assets/{binder-BSRzuzet.js → binder-BSqhIBEo.js} +1 -1
- package/dist/client/assets/{breadcrumb-CbjyCrUB.js → breadcrumb-DW0yuSjw.js} +1 -1
- package/dist/client/assets/{card-CT9eRBO8.js → card-C7mKq0Al.js} +1 -1
- package/dist/client/assets/{chart-qBlGBPsr.js → chart-BAZKlJ67.js} +1 -1
- package/dist/client/assets/{checkbox-fZN_zkkc.js → checkbox-DBGyogTp.js} +1 -1
- package/dist/client/assets/{circle-alert-DiZHZEQ5.js → circle-alert-oNPOZrxG.js} +1 -1
- package/dist/client/assets/collapsible-BR69xWDn.js +1 -0
- package/dist/client/assets/{collection-detail-Cdyo4Jme.js → collection-detail-DRtO60n0.js} +3 -3
- package/dist/client/assets/{collection-search-BkqfEg-m.js → collection-search-DTH23sfv.js} +1 -1
- package/dist/client/assets/{collection-tab-CFsl8XVU.js → collection-tab-DcoI4Uge.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CQELj61q.js → collection-table-wrapper-17gGtoIE.js} +1 -1
- package/dist/client/assets/{collection-tabs-DYZ2tP7j.js → collection-tabs-WM8uIQcb.js} +1 -1
- package/dist/client/assets/{command-TgV2tll9.js → command-4Vw0Qhhq.js} +1 -1
- package/dist/client/assets/{connect-BUtRFK0H.js → connect-dBx1ArAL.js} +1 -1
- package/dist/client/assets/{connection-card-D6yVNj26.js → connection-card-Bnb4ztny.js} +1 -1
- package/dist/client/assets/connection-detail-CQ6_kDeT.js +1 -0
- package/dist/client/assets/connections-8KY_ShvQ.js +1 -0
- package/dist/client/assets/{constants-d5m3mPET.js → constants-BhT1RxOf.js} +1 -1
- package/dist/client/assets/constants-da5q_EnE.js +1 -0
- package/dist/client/assets/{context-2tm88ePK.js → context-BBcoPt-U.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DpKq7vI7.js → create-organization-dialog-DzVdn81Q.js} +1 -1
- package/dist/client/assets/{create-project-dialog-D3gJUHFV.js → create-project-dialog-B8Pi5NuK.js} +1 -1
- package/dist/client/assets/dialog-Dvc12rqj.js +1 -0
- package/dist/client/assets/{dropdown-menu-ChxmccFR.js → dropdown-menu-CkNoSZQN.js} +1 -1
- package/dist/client/assets/dynamic-plugin-layout-CLQB7TKz.js +1 -0
- package/dist/client/assets/editable-thread-title-CwlSHlt8.js +16 -0
- package/dist/client/assets/{empty-state-DVahD977.js → empty-state-BTWthjUh.js} +1 -1
- package/dist/client/assets/{env-vars-editor-Cteh4D4v.js → env-vars-editor-COsCn64B.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Ck5zVWtS.js → extract-connection-data-rbihX2c5.js} +1 -1
- package/dist/client/assets/{file-browser-DHCSXXck.js → file-browser-B1RzPAtd.js} +2 -2
- package/dist/client/assets/{form-CcJszJH6.js → form--v_6A-Ne.js} +1 -1
- package/dist/client/assets/{grid-view-C8HbhPQo.js → grid-view-CoEr8taJ.js} +1 -1
- package/dist/client/assets/{home-B7fxCmTd.js → home-Byv7Q--9.js} +1 -1
- package/dist/client/assets/{index-GgsXGTPv.js → index-4MyK8Ufm.js} +1 -1
- package/dist/client/assets/{index-DWR1QaYA.js → index-Br8kKohg.js} +1 -1
- package/dist/client/assets/{index-Bs0We-94.js → index-C5Tpyka5.js} +1 -1
- package/dist/client/assets/{index-7L39VpRz.js → index-C9zVB5WG.js} +3 -3
- package/dist/client/assets/{index-Ds36Fm_U.js → index-CIQsWYRd.js} +1 -1
- package/dist/client/assets/index-CmrMzoJs.js +1 -0
- package/dist/client/assets/{index-r-yz0P9p.js → index-DBNEyPj5.js} +1 -1
- package/dist/client/assets/{index-CQtw16nY.js → index-QVlRbrQ5.js} +9 -9
- package/dist/client/assets/index-Rya1vVnc.css +1 -0
- package/dist/client/assets/index-nJ7zp6px.js +1 -0
- package/dist/client/assets/{infiniteQueryObserver-CP14HTXs.js → infiniteQueryObserver-fiTcrowg.js} +1 -1
- package/dist/client/assets/{input-Bg0LE4bT.js → input-Dulb50P0.js} +1 -1
- package/dist/client/assets/{integration-icon-BXY2mwKh.js → integration-icon-DxUgniRd.js} +1 -1
- package/dist/client/assets/{label--nPLxPOS.js → label-N7w17Mk3.js} +1 -1
- package/dist/client/assets/{layout-DKJsGI23.js → layout-DamKiHJu.js} +1 -1
- package/dist/client/assets/{localstorage-keys-oS_TlQ3E.js → localstorage-keys-CZwloscb.js} +1 -1
- package/dist/client/assets/{login-CiffSVUh.js → login-Coqa5XXN.js} +1 -1
- package/dist/client/assets/{markdown-eMMio6z7.js → markdown-BZXGJB-W.js} +1 -1
- package/dist/client/assets/{mcp-oauth-IsIZEZHY.js → mcp-oauth-CNYT89wd.js} +1 -1
- package/dist/client/assets/{mcp-server-card-DM4CcEET.js → mcp-server-card-C8lGlwNL.js} +1 -1
- package/dist/client/assets/mcp-server-detail-BE_Pdjh4.js +2 -0
- package/dist/client/assets/members-BR48Zy7w.js +3 -0
- package/dist/client/assets/{monitoring-BhcuVePL.js → monitoring-BYHNRux1.js} +2 -2
- package/dist/client/assets/monitoring-dashboard-edit-C3fB0hxS.js +1 -0
- package/dist/client/assets/{monitoring-dashboard-view-BChtKAyU.js → monitoring-dashboard-view-CK5QtkLZ.js} +2 -2
- package/dist/client/assets/{oauth-callback-BKrMsxxf.js → oauth-callback-B91mfF7u.js} +1 -1
- package/dist/client/assets/{page-CN23mc6T.js → page-Bz6ZAe5V.js} +1 -1
- package/dist/client/assets/page-ClBjAvI8.js +1 -0
- package/dist/client/assets/{plugin-empty-state-Co1LYNEp.js → plugin-empty-state-09_7LKCk.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-D4zO5Njw.js → plugin-empty-state-DhaBpvUb.js} +1 -1
- package/dist/client/assets/{plugin-header-BGUmePDs.js → plugin-header-B16ya8ma.js} +1 -1
- package/dist/client/assets/{plugin-header-Bas1mlKg.js → plugin-header-DDK1Gzuw.js} +1 -1
- package/dist/client/assets/popover-Brg4j9U4.js +1 -0
- package/dist/client/assets/project-layout-BO93auVr.js +1 -0
- package/dist/client/assets/projects-list-UJWNTYbm.js +1 -0
- package/dist/client/assets/ranking-layout-C5-IAJdb.js +1 -0
- package/dist/client/assets/{readme-viewer-6FL6XLyI.js → readme-viewer-D9gvMWcQ.js} +1 -1
- package/dist/client/assets/{registry-layout-DYG56sJW.js → registry-layout-lalPIUy1.js} +3 -3
- package/dist/client/assets/{registry-utils-DC7a4FRQ.js → registry-utils-BHPNdF4d.js} +1 -1
- package/dist/client/assets/{reports-layout-DW-iK2df.js → reports-layout-DxDhUGJ8.js} +1 -1
- package/dist/client/assets/{reset-password-BqXH6TI0.js → reset-password-DL3lIlmS.js} +1 -1
- package/dist/client/assets/{resizable-Bmi8ywnl.js → resizable-FI4WTwGD.js} +1 -1
- package/dist/client/assets/{save-actions-6MVOB16y.js → save-actions-BcqCo4y3.js} +1 -1
- package/dist/client/assets/{scroll-area-SCgyyuRW.js → scroll-area-D0QNw4tp.js} +1 -1
- package/dist/client/assets/{select-CGP3oimv.js → select-D1oSPElz.js} +1 -1
- package/dist/client/assets/shell-layout-xyeS0lIg.js +3 -0
- package/dist/client/assets/{skeleton-mQwjcvS8.js → skeleton-DlHAPl4v.js} +1 -1
- package/dist/client/assets/{spinner-Cf0i7zzZ.js → spinner-BXKsVp1S.js} +1 -1
- package/dist/client/assets/{store-invite-C-CBwltf.js → store-invite-CCiSQtm-.js} +1 -1
- package/dist/client/assets/{switch-DhSajm1n.js → switch-CrrLS5F0.js} +1 -1
- package/dist/client/assets/{table-6jko7EVZ.js → table-DlgTYaKr.js} +1 -1
- package/dist/client/assets/{tabs-KIo7byD9.js → tabs-Brz8FGNW.js} +1 -1
- package/dist/client/assets/tasks--lG17-41.js +1 -0
- package/dist/client/assets/{textarea-CGNubTQN.js → textarea-COlgWmtQ.js} +1 -1
- package/dist/client/assets/{time-range-picker-Da1I56kP.js → time-range-picker-Dp-73_eh.js} +1 -1
- package/dist/client/assets/{toggle-group-BgYBpox6.js → toggle-group-DRLYbeNR.js} +1 -1
- package/dist/client/assets/{tools-list-CZoJzyx-.js → tools-list-BnQCFmS3.js} +1 -1
- package/dist/client/assets/{tooltip-BMv47aFy.js → tooltip-wsLIWfBV.js} +1 -1
- package/dist/client/assets/{topbar-portal-UpXPvyHv.js → topbar-portal-L3nYDcPb.js} +1 -1
- package/dist/client/assets/{types-C_2JvMAa.js → types-DCpHM3H3.js} +1 -1
- package/dist/client/assets/{use-binding-C2dcwpZA.js → use-binding-DA-OMuxn.js} +1 -1
- package/dist/client/assets/{use-connection-IkOXJVs8.js → use-connection-CpIvuZgj.js} +1 -1
- package/dist/client/assets/{use-copy-BowGG0wE.js → use-copy-DTGgn0Wp.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BV-BX4O9.js → use-create-virtual-mcp-V8EAMd66.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-AdOkNCam.js → use-install-from-registry-Ckk1r5Fb.js} +1 -1
- package/dist/client/assets/{use-list-state-Coa6tFOY.js → use-list-state-DttTc7Mb.js} +1 -1
- package/dist/client/assets/{use-llm-U5Tp2HaY.js → use-llm-DORYQD8S.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Bzsxv_BD.js → use-mcp-prompts-Cu7mPqG1.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BSeWl3ZG.js → use-mcp-tools-DKBxq10d.js} +1 -1
- package/dist/client/assets/{use-members-CfArLi61.js → use-members-BUB6yk2M.js} +1 -1
- package/dist/client/assets/{use-mobile-DT3I3lYu.js → use-mobile-JSb9Dln5.js} +1 -1
- package/dist/client/assets/{use-project-7ErRlLNv.js → use-project-r6R5RHNq.js} +1 -1
- package/dist/client/assets/{use-settings-modal-B_qfHumC.js → use-settings-modal-D8rRTAi8.js} +1 -1
- package/dist/client/assets/{use-view-mode-C-QHw5_R.js → use-view-mode-BM1VKKNU.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CKU96AGJ.js → use-virtual-mcp-C4vCklTv.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-1kxKg8ab.js +1 -0
- package/dist/client/assets/{useMutation-DXZOMQax.js → useMutation-C0x6BtF8.js} +1 -1
- package/dist/client/assets/useQuery-ITBNMKD9.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BFqd2TrW.js +1 -0
- package/dist/client/assets/workflow-BoAHMqIZ.js +1 -0
- package/dist/client/index.html +2 -2
- package/package.json +1 -1
- package/dist/client/assets/X-CdhcYEPm.js +0 -1
- package/dist/client/assets/agent-detail-BK0xRmME.js +0 -2
- package/dist/client/assets/agents-9jKX-hiO.js +0 -1
- package/dist/client/assets/connection-detail-DWCec7hj.js +0 -1
- package/dist/client/assets/connections-Cy0bbe_1.js +0 -1
- package/dist/client/assets/constants-nlkFmlkQ.js +0 -1
- package/dist/client/assets/dialog-DsUvY3CK.js +0 -1
- package/dist/client/assets/dynamic-plugin-layout-Civxlcd_.js +0 -1
- package/dist/client/assets/editable-thread-title-zu9gS6K0.js +0 -16
- package/dist/client/assets/index-9OYqqcI6.js +0 -1
- package/dist/client/assets/index-DGca9RW1.css +0 -1
- package/dist/client/assets/index-DoxdpoOD.js +0 -1
- package/dist/client/assets/mcp-server-detail-D0XVRD6T.js +0 -2
- package/dist/client/assets/members-CEnPPP7a.js +0 -3
- package/dist/client/assets/monitoring-dashboard-edit-QSsBIHZf.js +0 -1
- package/dist/client/assets/page-6hSDNqkW.js +0 -1
- package/dist/client/assets/popover-BtiU6fhH.js +0 -1
- package/dist/client/assets/project-layout-Bx4fNXhV.js +0 -1
- package/dist/client/assets/projects-list-DlikR8oG.js +0 -1
- package/dist/client/assets/ranking-layout-CFyA0-Iw.js +0 -1
- package/dist/client/assets/shell-layout-Digqb3dN.js +0 -3
- package/dist/client/assets/tasks-t3s4IpKE.js +0 -1
- package/dist/client/assets/use-deco-chat-open-CQvalpAq.js +0 -1
- package/dist/client/assets/useInfiniteQuery-uyheNs5A.js +0 -1
- package/dist/client/assets/useQuery-BnNC7qj6.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Bcy2cAxP.js +0 -1
- package/dist/client/assets/workflow-D41RuMSS.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as L,c as Y,o as Tr,k as OS,l as LS,j as b,B as ke,s as oi,cp as DS,cq as CC,by as Qe,cr as IC,a2 as MS,v as ee,u as jn,E as PS,t as $t,aB as RC,_ as xC,cs as kC,b9 as FS,ct as wC,cu as Rt,cv as js,cw as OC,cx as qs,cy as LC,cz as DC,cA as MC,cB as PC,n as FC,K as nh,cC as BC,cD as UC,cE as HC,cF as $C,m as BS,b as US,O as Xa,cG as li,bE as jC,$ as qC,d as zC}from"./index-7L39VpRz.js";import{u as Sa,b as rh,m as HS,M as GC,t as $S,C as VC}from"./context-2tm88ePK.js";import{P as yr,a as Sr,b as Ar}from"./popover-BtiU6fhH.js";import{S as Sm,u as WC}from"./skeleton-mQwjcvS8.js";import{S as rs}from"./spinner-Cf0i7zzZ.js";import{T as ut,a as ct,b as dt,c as as}from"./tooltip-BMv47aFy.js";import{d as jS,u as is,i as ur,f as YC}from"./constants-d5m3mPET.js";import{u as KC,g as qS,l as Am,a as Nm,r as XC,c as ZC}from"./use-mcp-prompts-Bzsxv_BD.js";import{c as QC,b as JC,e as eI,a as tI,D as nI}from"./dialog-DsUvY3CK.js";import{a as lf,F as ss,b as ls,c as rI,d as us,f as cs}from"./form-CcJszJH6.js";import{I as zS}from"./input-Bg0LE4bT.js";import{c as aI,a as iI,e as sI}from"./usage-B8eRkRZY.js";import{i as oI}from"./ArrowUp-s_vVz9nI.js";import{t as lI}from"./ChevronDown-BgBeiqk4.js";import{i as GS}from"./Edit01-Ce9T4GDO.js";import{t as ia}from"./Users03-mZsyOxFC.js";import{i as uI}from"./XCircle-DAMM1xqw.js";import{i as ah}from"./AlertCircle-Dkqr1r1Q.js";import{i as cI}from"./X-CdhcYEPm.js";import{c as dI,S as pI,d as fI,a as hI,b as mI}from"./select-CGP3oimv.js";import{i as gI}from"./ArrowLeft-98jtQw40.js";import{i as bI,t as VS,u as WS}from"./use-copy-BowGG0wE.js";import{c as EI,b as TI}from"./tabs-KIo7byD9.js";import{B as yI}from"./badge-bamcfFQO.js";import{a as SI,i as YS,b as AI,c as NI,C as vI,u as _I}from"./use-deco-chat-open-CQvalpAq.js";import{i as qn}from"./Check-DojSaPH3.js";import{i as CI}from"./Code01-CtiiBuUZ.js";import{I as ih}from"./integration-icon-BXY2mwKh.js";import{b as II}from"./use-virtual-mcp-CKU96AGJ.js";import{i as KS}from"./SearchMd-D2_y6K19.js";import{u as RI}from"./use-create-virtual-mcp-BV-BX4O9.js";import{i as xI}from"./ChevronRight-ntt7kj2X.js";import{a as ds}from"./Copy01-DAgw87le.js";import{m as kI}from"./marked.esm-BaswSlok.js";import{f as sh,p as vm,a as _m,n as Cm,h as ps,s as Aa,o as uf,b as wI,c as OI,d as zn,v as LI,e as XS,g as Im,m as DI,i as MI,r as PI}from"./markdown-eMMio6z7.js";import{W as FI,T as BI,g as ZS,s as QS}from"./types-C_2JvMAa.js";import{s as UI}from"./Eye-DPG-E6S3.js";import{s as HI}from"./Globe02-WbvfAq6T.js";import{s as $I}from"./XClose-Bk127sk1.js";import{E as jI}from"./collection-search-BkqfEg-m.js";import{g as qI,h as zI}from"./use-connection-IkOXJVs8.js";import{g as GI}from"./generate-id-Dyweu44Y.js";import{s as Rm}from"./Clock-hhjRO-p5.js";import{s as VI}from"./Trash01-DrId97Wg.js";const JS=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"M22 12h-4l-3 9L9 3l-3 9H2"}));JS.displayName="Activity";const eA=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"M17.115 15.358c-.27.306-.554.608-.851.905-4.296 4.296-9.678 5.88-12.021 3.536-1.607-1.606-1.368-4.641.325-7.775M6.89 8.725c.281-.32.578-.636.888-.947C12.074 3.482 17.456 1.9 19.8 4.243c1.608 1.607 1.367 4.645-.33 7.781m-3.206-4.246c4.296 4.296 5.88 9.678 3.536 12.021-2.343 2.343-7.725.76-12.02-3.535C3.483 11.968 1.9 6.586 4.244 4.243c2.343-2.343 7.725-.76 12.02 3.535ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));eA.displayName="Atom02";const tA=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"m21.152 10.9-9.015 9.015a5.25 5.25 0 0 1-7.425-7.425l9.016-9.015a3.5 3.5 0 1 1 4.95 4.95l-8.662 8.662a1.75 1.75 0 1 1-2.475-2.475l7.601-7.602"}));tA.displayName="Attachment01";const oh=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"m18 10-4-4M2.5 21.5l3.384-.376c.414-.046.62-.069.814-.131a2 2 0 0 0 .485-.234c.17-.111.317-.259.61-.553L21 7a2.828 2.828 0 1 0-4-4L3.794 16.206c-.294.294-.442.442-.553.611a2 2 0 0 0-.234.485c-.062.193-.085.4-.131.814L2.5 21.5Z"}));oh.displayName="Edit02";const nA=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"M15 16.5V19c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C13.398 22 12.932 22 12 22c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C9 20.398 9 19.932 9 19v-2.5m6 0c2.649-1.157 4.5-3.925 4.5-7a7.5 7.5 0 0 0-15 0c0 3.075 1.851 5.843 4.5 7m6 0H9"}));nA.displayName="Lightbulb01";const rA=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"m9 11.5 2 2L15.5 9m4.5 3c0 4.908-5.354 8.478-7.302 9.615-.221.129-.332.194-.488.227a1.137 1.137 0 0 1-.42 0c-.156-.034-.267-.098-.488-.227C9.354 20.478 4 16.908 4 12V7.217c0-.799 0-1.199.13-1.542a2 2 0 0 1 .548-.79c.276-.243.65-.383 1.398-.664l5.362-2.01c.208-.078.312-.117.419-.133a1 1 0 0 1 .286 0c.107.016.21.055.419.133l5.362 2.01c.748.28 1.123.421 1.398.664a2 2 0 0 1 .547.79c.131.343.131.743.131 1.542V12Z"}));rA.displayName="ShieldTick";const aA=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"}));aA.displayName="Stop";const iA=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"M16 8V5l3-3 1 2 2 1-3 3h-3Zm0 0-4 4m10 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m5 10a5 5 0 1 1-5-5"}));iA.displayName="Target04";const xm={}.hasOwnProperty;function sA(t,e){const n=e||{};function r(a,...i){let s=r.invalid;const o=r.handlers;if(a&&xm.call(a,t)){const l=String(a[t]);s=xm.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function WI(t){const e={};for(const n of t.arguments??[])e[n.name]=n.required?oi().min(1,"Required"):oi();return Tr(e)}function YI(t){const e={};for(const n of t.arguments??[])e[n.name]="";return e}function oA(t){const e=Y.c(64),{prompt:n,setPrompt:r,onSubmit:a}=t,i=L.useId();let s;if(e[0]!==n){const P=n?WI(n):Tr({});s=OS(P),e[0]=n,e[1]=s}else s=e[1];const l=s;let u;e[2]!==n?(u=n?YI(n):{},e[2]=n,e[3]=u):u=e[3];let c;e[4]!==l||e[5]!==u?(c={resolver:l,defaultValues:u,mode:"onChange"},e[4]=l,e[5]=u,e[6]=c):c=e[6];const d=LS(c);let p;e[7]!==n?.arguments?(p=n?.arguments??[],e[7]=n?.arguments,e[8]=p):p=e[8];const f=p;let h;e[9]!==d||e[10]!==a||e[11]!==r?(h=async P=>{await a(P),r(null),d.reset()},e[9]=d,e[10]=a,e[11]=r,e[12]=h):h=e[12];const g=h;let E;e[13]!==d||e[14]!==r?(E=P=>{P||(d.reset(),r(null))},e[13]=d,e[14]=r,e[15]=E):E=e[15];const T=E;if(!n)return null;let y;e[16]!==n.name||e[17]!==n.title?(y=n.title||n.name.replace(/_/g," "),e[16]=n.name,e[17]=n.title,e[18]=y):y=e[18];let S;e[19]!==y?(S=b.jsx(QC,{children:y}),e[19]=y,e[20]=S):S=e[20];let N;e[21]!==n.description?(N=n.description&&b.jsx("p",{className:"text-sm text-muted-foreground",children:n.description}),e[21]=n.description,e[22]=N):N=e[22];let _;e[23]!==N||e[24]!==S?(_=b.jsxs(JC,{children:[S,N]}),e[23]=N,e[24]=S,e[25]=_):_=e[25];let A;e[26]!==d||e[27]!==g?(A=P=>{P.stopPropagation(),d.handleSubmit(g)(P)},e[26]=d,e[27]=g,e[28]=A):A=e[28];let v;if(e[29]!==f||e[30]!==d.control||e[31]!==d.formState.isSubmitting){let P;e[33]!==d.control||e[34]!==d.formState.isSubmitting?(P=W=>b.jsx(ss,{control:d.control,name:W.name,render:X=>{const{field:K}=X;return b.jsxs(ls,{children:[b.jsxs(rI,{className:"text-xs",children:[W.name,W.required?null:b.jsxs("span",{className:"text-muted-foreground font-normal",children:[" ","(optional)"]})]}),b.jsx(us,{children:b.jsx(zS,{...K,value:K.value??"",required:W.required,placeholder:W.description??"",className:"h-9",disabled:d.formState.isSubmitting})}),b.jsx(cs,{})]})}},W.name),e[33]=d.control,e[34]=d.formState.isSubmitting,e[35]=P):P=e[35],v=f.map(P),e[29]=f,e[30]=d.control,e[31]=d.formState.isSubmitting,e[32]=v}else v=e[32];let R;e[36]!==T?(R=()=>T(!1),e[36]=T,e[37]=R):R=e[37];let I;e[38]!==d.formState.isSubmitting||e[39]!==R?(I=b.jsx(ke,{type:"button",variant:"ghost",onClick:R,disabled:d.formState.isSubmitting,children:"Cancel"}),e[38]=d.formState.isSubmitting,e[39]=R,e[40]=I):I=e[40];const O=!d.formState.isValid||d.formState.isSubmitting;let w;e[41]!==d.formState.isSubmitting?(w=d.formState.isSubmitting?b.jsxs("span",{className:"flex items-center gap-2",children:[b.jsx(rs,{size:"xs"}),"Loading..."]}):"Use prompt",e[41]=d.formState.isSubmitting,e[42]=w):w=e[42];let M;e[43]!==i||e[44]!==O||e[45]!==w?(M=b.jsx(ke,{type:"submit",form:i,disabled:O,children:w}),e[43]=i,e[44]=O,e[45]=w,e[46]=M):M=e[46];let H;e[47]!==I||e[48]!==M?(H=b.jsxs(eI,{children:[I,M]}),e[47]=I,e[48]=M,e[49]=H):H=e[49];let F;e[50]!==i||e[51]!==A||e[52]!==v||e[53]!==H?(F=b.jsxs("form",{id:i,className:"space-y-4 py-4",autoComplete:"off",onSubmit:A,children:[v,H]}),e[50]=i,e[51]=A,e[52]=v,e[53]=H,e[54]=F):F=e[54];let $;e[55]!==d||e[56]!==F?($=b.jsx(lf,{...d,children:F}),e[55]=d,e[56]=F,e[57]=$):$=e[57];let U;e[58]!==_||e[59]!==$?(U=b.jsxs(tI,{className:"sm:max-w-lg max-h-[80vh] overflow-y-auto",children:[_,$]}),e[58]=_,e[59]=$,e[60]=U):U=e[60];let j;return e[61]!==T||e[62]!==U?(j=b.jsx(nI,{open:!0,onOpenChange:T,children:U}),e[61]=T,e[62]=U,e[63]=j):j=e[63],j}function je(t){this.content=t}je.prototype={constructor:je,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,a=r.find(t),i=r.content.slice();return a==-1?i.push(n||t,e):(i[a+1]=e,n&&(i[a]=n)),new je(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new je(n)},addToStart:function(t,e){return new je([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new je(n)},addBefore:function(t,e,n){var r=this.remove(e),a=r.content.slice(),i=r.find(t);return a.splice(i==-1?a.length:i,0,e,n),new je(a)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=je.from(t),t.size?new je(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=je.from(t),t.size?new je(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=je.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};je.from=function(t){if(t instanceof je)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new je(e)};function lA(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let a=t.child(r),i=e.child(r);if(a==i){n+=a.nodeSize;continue}if(!a.sameMarkup(i))return n;if(a.isText&&a.text!=i.text){for(let s=0;a.text[s]==i.text[s];s++)n++;return n}if(a.content.size||i.content.size){let s=lA(a.content,i.content,n+1);if(s!=null)return s}n+=a.nodeSize}}function uA(t,e,n,r){for(let a=t.childCount,i=e.childCount;;){if(a==0||i==0)return a==i?null:{a:n,b:r};let s=t.child(--a),o=e.child(--i),l=s.nodeSize;if(s==o){n-=l,r-=l;continue}if(!s.sameMarkup(o))return{a:n,b:r};if(s.isText&&s.text!=o.text){let u=0,c=Math.min(s.text.length,o.text.length);for(;u<c&&s.text[s.text.length-u-1]==o.text[o.text.length-u-1];)u++,n--,r--;return{a:n,b:r}}if(s.content.size||o.content.size){let u=uA(s.content,o.content,n-1,r-1);if(u)return u}n-=l,r-=l}}class z{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,a=0,i){for(let s=0,o=0;o<n;s++){let l=this.content[s],u=o+l.nodeSize;if(u>e&&r(l,a+o,i||null,s)!==!1&&l.content.size){let c=o+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,n-c),r,a+c)}o=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,a){let i="",s=!0;return this.nodesBetween(e,n,(o,l)=>{let u=o.isText?o.text.slice(Math.max(e,l)-l,n-l):o.isLeaf?a?typeof a=="function"?a(o):a:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&u||o.isTextblock)&&r&&(s?s=!1:i+=r),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,a=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(a[a.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)a.push(e.content[i]);return new z(a,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],a=0;if(n>e)for(let i=0,s=0;s<n;i++){let o=this.content[i],l=s+o.nodeSize;l>e&&((s<e||l>n)&&(o.isText?o=o.cut(Math.max(0,e-s),Math.min(o.text.length,n-s)):o=o.cut(Math.max(0,e-s-1),Math.min(o.content.size,n-s-1))),r.push(o),a+=o.nodeSize),s=l}return new z(r,a)}cutByIndex(e,n){return e==n?z.empty:e==0&&n==this.content.length?this:new z(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let a=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return a[e]=n,new z(a,i)}addToStart(e){return new z([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new z(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let a=this.content[n];e(a,r,n),r+=a.nodeSize}}findDiffStart(e,n=0){return lA(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return uA(this,e,n,r)}findIndex(e){if(e==0)return Oa(0,e);if(e==this.size)return Oa(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let a=this.child(n),i=r+a.nodeSize;if(i>=e)return i==e?Oa(n+1,i):Oa(n,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return z.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new z(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return z.empty;let n,r=0;for(let a=0;a<e.length;a++){let i=e[a];r+=i.nodeSize,a&&i.isText&&e[a-1].sameMarkup(i)?(n||(n=e.slice(0,a)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new z(n||e,r)}static from(e){if(!e)return z.empty;if(e instanceof z)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new z([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}z.empty=new z([],0);const zs={index:0,offset:0};function Oa(t,e){return zs.index=t,zs.offset=e,zs}function ui(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!ui(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!ui(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let fe=class cf{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let a=0;a<e.length;a++){let i=e[a];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,a));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,a)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ui(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let a=r.create(n.attrs);return r.checkAttrs(a.attrs),a}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return cf.none;if(e instanceof cf)return[e];let n=e.slice();return n.sort((r,a)=>r.type.rank-a.type.rank),n}};fe.none=[];class ci extends Error{}class Z{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=dA(this.content,e+this.openStart,n);return r&&new Z(r,this.openStart,this.openEnd)}removeBetween(e,n){return new Z(cA(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return Z.empty;let r=n.openStart||0,a=n.openEnd||0;if(typeof r!="number"||typeof a!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Z(z.fromJSON(e,n.content),r,a)}static maxOpen(e,n=!0){let r=0,a=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)a++;return new Z(e,r,a)}}Z.empty=new Z(z.empty,0,0);function cA(t,e,n){let{index:r,offset:a}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:o}=t.findIndex(n);if(a==e||i.isText){if(o!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(cA(i.content,e-a-1,n-a-1)))}function dA(t,e,n,r){let{index:a,offset:i}=t.findIndex(e),s=t.maybeChild(a);if(i==e||s.isText)return r&&!r.canReplace(a,a,n)?null:t.cut(0,e).append(n).append(t.cut(e));let o=dA(s.content,e-i-1,n,s);return o&&t.replaceChild(a,s.copy(o))}function KI(t,e,n){if(n.openStart>t.depth)throw new ci("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new ci("Inconsistent open depths");return pA(t,e,n,0)}function pA(t,e,n,r){let a=t.index(r),i=t.node(r);if(a==e.index(r)&&r<t.depth-n.openStart){let s=pA(t,e,n,r+1);return i.copy(i.content.replaceChild(a,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,o=s.content;return wn(s,o.cut(0,t.parentOffset).append(n.content).append(o.cut(e.parentOffset)))}else{let{start:s,end:o}=XI(n,t);return wn(i,hA(t,s,o,e,r))}else return wn(i,di(t,e,r))}function fA(t,e){if(!e.type.compatibleContent(t.type))throw new ci("Cannot join "+e.type.name+" onto "+t.type.name)}function df(t,e,n){let r=t.node(n);return fA(r,e.node(n)),r}function kn(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function qr(t,e,n,r){let a=(e||t).node(n),i=0,s=e?e.index(n):a.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(kn(t.nodeAfter,r),i++));for(let o=i;o<s;o++)kn(a.child(o),r);e&&e.depth==n&&e.textOffset&&kn(e.nodeBefore,r)}function wn(t,e){return t.type.checkContent(e),t.copy(e)}function hA(t,e,n,r,a){let i=t.depth>a&&df(t,e,a+1),s=r.depth>a&&df(n,r,a+1),o=[];return qr(null,t,a,o),i&&s&&e.index(a)==n.index(a)?(fA(i,s),kn(wn(i,hA(t,e,n,r,a+1)),o)):(i&&kn(wn(i,di(t,e,a+1)),o),qr(e,n,a,o),s&&kn(wn(s,di(n,r,a+1)),o)),qr(r,null,a,o),new z(o)}function di(t,e,n){let r=[];if(qr(null,t,n,r),t.depth>n){let a=df(t,e,n+1);kn(wn(a,di(t,e,n+1)),r)}return qr(e,null,n,r),new z(r)}function XI(t,e){let n=e.depth-t.openStart,a=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)a=e.node(i).copy(z.from(a));return{start:a.resolveNoCache(t.openStart+n),end:a.resolveNoCache(a.content.size-t.openEnd-n)}}class sa{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],a=e.child(n);return r?e.child(n).cut(r):a}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],a=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)a+=r.child(i).nodeSize;return a}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return fe.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),a=e.maybeChild(n);if(!r){let o=r;r=a,a=o}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!a||!i[s].isInSet(a.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,a=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!a||!r[i].isInSet(a.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new pi(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],a=0,i=n;for(let s=e;;){let{index:o,offset:l}=s.content.findIndex(i),u=i-l;if(r.push(s,o,a+l),!u||(s=s.child(o),s.isText))break;i=u-1,a+=l+1}return new sa(n,r,i)}static resolveCached(e,n){let r=km.get(e);if(r)for(let i=0;i<r.elts.length;i++){let s=r.elts[i];if(s.pos==n)return s}else km.set(e,r=new ZI);let a=r.elts[r.i]=sa.resolve(e,n);return r.i=(r.i+1)%QI,a}}class ZI{constructor(){this.elts=[],this.i=0}}const QI=12,km=new WeakMap;class pi{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const JI=Object.create(null);let on=class pf{constructor(e,n,r,a=fe.none){this.type=e,this.attrs=n,this.marks=a,this.content=r||z.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,a=0){this.content.nodesBetween(e,n,r,a,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,a){return this.content.textBetween(e,n,r,a)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&ui(this.attrs,n||e.defaultAttrs||JI)&&fe.sameSet(this.marks,r||fe.none)}copy(e=null){return e==this.content?this:new pf(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new pf(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return Z.empty;let a=this.resolve(e),i=this.resolve(n),s=r?0:a.sharedDepth(n),o=a.start(s),u=a.node(s).content.cut(a.pos-o,i.pos-o);return new Z(u,a.depth-s,i.depth-s)}replace(e,n,r){return KI(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:a}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(a==e||n.isText)return n;e-=a+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let a=this.content.child(n-1);return{node:a,index:n-1,offset:r-a.nodeSize}}resolve(e){return sa.resolveCached(this,e)}resolveNoCache(e){return sa.resolve(this,e)}rangeHasMark(e,n,r){let a=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(a=!0),!a)),a}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),mA(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=z.empty,a=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,a,i),o=s&&s.matchFragment(this.content,n);if(!o||!o.validEnd)return!1;for(let l=a;l<i;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,a){if(a&&!this.type.allowsMarks(a))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=fe.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!fe.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let a=z.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,a,r);return i.type.checkAttrs(i.attrs),i}};on.prototype.text=void 0;class fi extends on{constructor(e,n,r,a){if(super(e,n,null,a),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):mA(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new fi(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new fi(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function mA(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Fn{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new eR(e,n);if(r.next==null)return Fn.empty;let a=gA(r);r.next&&r.err("Unexpected trailing text");let i=oR(sR(a));return lR(i,r),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let a=this;for(let i=n;a&&i<r;i++)a=a.matchType(e.child(i).type);return a}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let a=[this];function i(s,o){let l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return z.from(o.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:d}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&a.indexOf(d)==-1){a.push(d);let p=i(d,o.concat(c));if(p)return p}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let a=r.shift(),i=a.match;if(i.matchType(e)){let s=[];for(let o=a;o.type;o=o.via)s.push(o.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:o,next:l}=i.next[s];!o.isLeaf&&!o.hasRequiredAttrs()&&!(o.name in n)&&(!a.type||l.validEnd)&&(r.push({match:o.contentMatch,type:o,via:a}),n[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let a=0;a<r.next.length;a++)e.indexOf(r.next[a].next)==-1&&n(r.next[a].next)}return n(this),e.map((r,a)=>{let i=a+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
|
|
1
|
+
import{r as L,c as Y,o as Tr,k as OS,l as LS,j as b,B as ke,s as oi,co as DS,cp as CC,bz as Qe,cq as IC,a2 as MS,v as ee,u as jn,E as PS,t as $t,at as RC,_ as xC,cr as kC,b8 as FS,cs as wC,ct as Rt,cu as js,cv as OC,cw as qs,cx as LC,cy as DC,cz as MC,cA as PC,n as FC,K as nh,cB as BC,cC as UC,cD as HC,cE as $C,m as BS,b as US,O as Xa,cF as li,bE as jC,$ as qC,d as zC}from"./index-C9zVB5WG.js";import{u as Sa,b as rh,m as HS,M as GC,t as $S,C as VC}from"./context-BBcoPt-U.js";import{P as yr,a as Sr,b as Ar}from"./popover-Brg4j9U4.js";import{S as Sm,u as WC}from"./skeleton-DlHAPl4v.js";import{S as rs}from"./spinner-BXKsVp1S.js";import{T as ut,a as ct,b as dt,c as as}from"./tooltip-wsLIWfBV.js";import{d as jS,u as is,i as ur,f as YC}from"./constants-BhT1RxOf.js";import{u as KC,g as qS,l as Am,a as Nm,r as XC,c as ZC}from"./use-mcp-prompts-Cu7mPqG1.js";import{c as QC,b as JC,e as eI,a as tI,D as nI,i as rI}from"./dialog-Dvc12rqj.js";import{a as lf,F as ss,b as ls,c as aI,d as us,f as cs}from"./form--v_6A-Ne.js";import{I as zS}from"./input-Dulb50P0.js";import{c as iI,a as sI,e as oI}from"./usage-B8eRkRZY.js";import{i as lI}from"./ArrowUp-Djo3xiq5.js";import{t as uI}from"./ChevronDown-B_XlOG4n.js";import{i as GS}from"./Edit01-BAKH21Ta.js";import{t as ia}from"./Users03-B39x9j9y.js";import{i as cI}from"./XCircle-JTpXXWsC.js";import{i as ah}from"./AlertCircle-DlPS0B2V.js";import{c as dI,S as pI,d as fI,a as hI,b as mI}from"./select-D1oSPElz.js";import{i as gI}from"./ArrowLeft-m0b492UP.js";import{i as bI,t as VS,u as WS}from"./use-copy-DTGgn0Wp.js";import{c as EI,b as TI}from"./tabs-Brz8FGNW.js";import{B as yI}from"./badge-Cd5VRqG2.js";import{a as SI,i as YS,b as AI,c as NI,C as vI}from"./collapsible-BR69xWDn.js";import{i as qn}from"./Check-BIAvy6yX.js";import{i as _I}from"./Code01-CF9Fqf4v.js";import{I as ih}from"./integration-icon-DxUgniRd.js";import{b as CI}from"./use-virtual-mcp-C4vCklTv.js";import{i as KS}from"./SearchMd-C6p4WuWU.js";import{u as II}from"./use-create-virtual-mcp-V8EAMd66.js";import{i as RI}from"./ChevronRight--WZMG8rl.js";import{a as ds}from"./Copy01-DhxT-EHF.js";import{m as xI}from"./marked.esm-BaswSlok.js";import{f as sh,p as vm,a as _m,n as Cm,h as ps,s as Aa,o as uf,b as kI,c as wI,d as zn,v as OI,e as XS,g as Im,m as LI,i as DI,r as MI}from"./markdown-BZXGJB-W.js";import{W as PI,T as FI,g as ZS,s as QS}from"./types-DCpHM3H3.js";import{s as BI}from"./Eye-CwfPY6I3.js";import{s as UI}from"./Globe02-D5-pXhdl.js";import{s as HI}from"./XClose-_flpZkDx.js";import{E as $I}from"./collection-search-DTH23sfv.js";import{g as jI,h as qI}from"./use-connection-CpIvuZgj.js";import{g as zI}from"./generate-id-Dyweu44Y.js";import{u as GI}from"./index-nJ7zp6px.js";import{s as Rm}from"./Clock-DF385WmK.js";import{s as VI}from"./Trash01-BtuExZ9Q.js";const JS=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"M22 12h-4l-3 9L9 3l-3 9H2"}));JS.displayName="Activity";const eA=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"M17.115 15.358c-.27.306-.554.608-.851.905-4.296 4.296-9.678 5.88-12.021 3.536-1.607-1.606-1.368-4.641.325-7.775M6.89 8.725c.281-.32.578-.636.888-.947C12.074 3.482 17.456 1.9 19.8 4.243c1.608 1.607 1.367 4.645-.33 7.781m-3.206-4.246c4.296 4.296 5.88 9.678 3.536 12.021-2.343 2.343-7.725.76-12.02-3.535C3.483 11.968 1.9 6.586 4.244 4.243c2.343-2.343 7.725-.76 12.02 3.535ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));eA.displayName="Atom02";const tA=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"m21.152 10.9-9.015 9.015a5.25 5.25 0 0 1-7.425-7.425l9.016-9.015a3.5 3.5 0 1 1 4.95 4.95l-8.662 8.662a1.75 1.75 0 1 1-2.475-2.475l7.601-7.602"}));tA.displayName="Attachment01";const oh=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"m18 10-4-4M2.5 21.5l3.384-.376c.414-.046.62-.069.814-.131a2 2 0 0 0 .485-.234c.17-.111.317-.259.61-.553L21 7a2.828 2.828 0 1 0-4-4L3.794 16.206c-.294.294-.442.442-.553.611a2 2 0 0 0-.234.485c-.062.193-.085.4-.131.814L2.5 21.5Z"}));oh.displayName="Edit02";const nA=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"M15 16.5V19c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C13.398 22 12.932 22 12 22c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C9 20.398 9 19.932 9 19v-2.5m6 0c2.649-1.157 4.5-3.925 4.5-7a7.5 7.5 0 0 0-15 0c0 3.075 1.851 5.843 4.5 7m6 0H9"}));nA.displayName="Lightbulb01";const rA=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"m9 11.5 2 2L15.5 9m4.5 3c0 4.908-5.354 8.478-7.302 9.615-.221.129-.332.194-.488.227a1.137 1.137 0 0 1-.42 0c-.156-.034-.267-.098-.488-.227C9.354 20.478 4 16.908 4 12V7.217c0-.799 0-1.199.13-1.542a2 2 0 0 1 .548-.79c.276-.243.65-.383 1.398-.664l5.362-2.01c.208-.078.312-.117.419-.133a1 1 0 0 1 .286 0c.107.016.21.055.419.133l5.362 2.01c.748.28 1.123.421 1.398.664a2 2 0 0 1 .547.79c.131.343.131.743.131 1.542V12Z"}));rA.displayName="ShieldTick";const aA=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"}));aA.displayName="Stop";const iA=({size:t=24,color:e="currentColor",...n})=>L.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},L.createElement("path",{d:"M16 8V5l3-3 1 2 2 1-3 3h-3Zm0 0-4 4m10 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m5 10a5 5 0 1 1-5-5"}));iA.displayName="Target04";const xm={}.hasOwnProperty;function sA(t,e){const n=e||{};function r(a,...i){let s=r.invalid;const o=r.handlers;if(a&&xm.call(a,t)){const l=String(a[t]);s=xm.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function WI(t){const e={};for(const n of t.arguments??[])e[n.name]=n.required?oi().min(1,"Required"):oi();return Tr(e)}function YI(t){const e={};for(const n of t.arguments??[])e[n.name]="";return e}function oA(t){const e=Y.c(64),{prompt:n,setPrompt:r,onSubmit:a}=t,i=L.useId();let s;if(e[0]!==n){const P=n?WI(n):Tr({});s=OS(P),e[0]=n,e[1]=s}else s=e[1];const l=s;let u;e[2]!==n?(u=n?YI(n):{},e[2]=n,e[3]=u):u=e[3];let c;e[4]!==l||e[5]!==u?(c={resolver:l,defaultValues:u,mode:"onChange"},e[4]=l,e[5]=u,e[6]=c):c=e[6];const d=LS(c);let p;e[7]!==n?.arguments?(p=n?.arguments??[],e[7]=n?.arguments,e[8]=p):p=e[8];const f=p;let h;e[9]!==d||e[10]!==a||e[11]!==r?(h=async P=>{await a(P),r(null),d.reset()},e[9]=d,e[10]=a,e[11]=r,e[12]=h):h=e[12];const g=h;let E;e[13]!==d||e[14]!==r?(E=P=>{P||(d.reset(),r(null))},e[13]=d,e[14]=r,e[15]=E):E=e[15];const T=E;if(!n)return null;let y;e[16]!==n.name||e[17]!==n.title?(y=n.title||n.name.replace(/_/g," "),e[16]=n.name,e[17]=n.title,e[18]=y):y=e[18];let S;e[19]!==y?(S=b.jsx(QC,{children:y}),e[19]=y,e[20]=S):S=e[20];let N;e[21]!==n.description?(N=n.description&&b.jsx("p",{className:"text-sm text-muted-foreground",children:n.description}),e[21]=n.description,e[22]=N):N=e[22];let _;e[23]!==N||e[24]!==S?(_=b.jsxs(JC,{children:[S,N]}),e[23]=N,e[24]=S,e[25]=_):_=e[25];let A;e[26]!==d||e[27]!==g?(A=P=>{P.stopPropagation(),d.handleSubmit(g)(P)},e[26]=d,e[27]=g,e[28]=A):A=e[28];let v;if(e[29]!==f||e[30]!==d.control||e[31]!==d.formState.isSubmitting){let P;e[33]!==d.control||e[34]!==d.formState.isSubmitting?(P=W=>b.jsx(ss,{control:d.control,name:W.name,render:X=>{const{field:K}=X;return b.jsxs(ls,{children:[b.jsxs(aI,{className:"text-xs",children:[W.name,W.required?null:b.jsxs("span",{className:"text-muted-foreground font-normal",children:[" ","(optional)"]})]}),b.jsx(us,{children:b.jsx(zS,{...K,value:K.value??"",required:W.required,placeholder:W.description??"",className:"h-9",disabled:d.formState.isSubmitting})}),b.jsx(cs,{})]})}},W.name),e[33]=d.control,e[34]=d.formState.isSubmitting,e[35]=P):P=e[35],v=f.map(P),e[29]=f,e[30]=d.control,e[31]=d.formState.isSubmitting,e[32]=v}else v=e[32];let R;e[36]!==T?(R=()=>T(!1),e[36]=T,e[37]=R):R=e[37];let I;e[38]!==d.formState.isSubmitting||e[39]!==R?(I=b.jsx(ke,{type:"button",variant:"ghost",onClick:R,disabled:d.formState.isSubmitting,children:"Cancel"}),e[38]=d.formState.isSubmitting,e[39]=R,e[40]=I):I=e[40];const O=!d.formState.isValid||d.formState.isSubmitting;let w;e[41]!==d.formState.isSubmitting?(w=d.formState.isSubmitting?b.jsxs("span",{className:"flex items-center gap-2",children:[b.jsx(rs,{size:"xs"}),"Loading..."]}):"Use prompt",e[41]=d.formState.isSubmitting,e[42]=w):w=e[42];let M;e[43]!==i||e[44]!==O||e[45]!==w?(M=b.jsx(ke,{type:"submit",form:i,disabled:O,children:w}),e[43]=i,e[44]=O,e[45]=w,e[46]=M):M=e[46];let H;e[47]!==I||e[48]!==M?(H=b.jsxs(eI,{children:[I,M]}),e[47]=I,e[48]=M,e[49]=H):H=e[49];let F;e[50]!==i||e[51]!==A||e[52]!==v||e[53]!==H?(F=b.jsxs("form",{id:i,className:"space-y-4 py-4",autoComplete:"off",onSubmit:A,children:[v,H]}),e[50]=i,e[51]=A,e[52]=v,e[53]=H,e[54]=F):F=e[54];let $;e[55]!==d||e[56]!==F?($=b.jsx(lf,{...d,children:F}),e[55]=d,e[56]=F,e[57]=$):$=e[57];let U;e[58]!==_||e[59]!==$?(U=b.jsxs(tI,{className:"sm:max-w-lg max-h-[80vh] overflow-y-auto",children:[_,$]}),e[58]=_,e[59]=$,e[60]=U):U=e[60];let j;return e[61]!==T||e[62]!==U?(j=b.jsx(nI,{open:!0,onOpenChange:T,children:U}),e[61]=T,e[62]=U,e[63]=j):j=e[63],j}function je(t){this.content=t}je.prototype={constructor:je,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,a=r.find(t),i=r.content.slice();return a==-1?i.push(n||t,e):(i[a+1]=e,n&&(i[a]=n)),new je(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new je(n)},addToStart:function(t,e){return new je([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new je(n)},addBefore:function(t,e,n){var r=this.remove(e),a=r.content.slice(),i=r.find(t);return a.splice(i==-1?a.length:i,0,e,n),new je(a)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=je.from(t),t.size?new je(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=je.from(t),t.size?new je(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=je.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};je.from=function(t){if(t instanceof je)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new je(e)};function lA(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let a=t.child(r),i=e.child(r);if(a==i){n+=a.nodeSize;continue}if(!a.sameMarkup(i))return n;if(a.isText&&a.text!=i.text){for(let s=0;a.text[s]==i.text[s];s++)n++;return n}if(a.content.size||i.content.size){let s=lA(a.content,i.content,n+1);if(s!=null)return s}n+=a.nodeSize}}function uA(t,e,n,r){for(let a=t.childCount,i=e.childCount;;){if(a==0||i==0)return a==i?null:{a:n,b:r};let s=t.child(--a),o=e.child(--i),l=s.nodeSize;if(s==o){n-=l,r-=l;continue}if(!s.sameMarkup(o))return{a:n,b:r};if(s.isText&&s.text!=o.text){let u=0,c=Math.min(s.text.length,o.text.length);for(;u<c&&s.text[s.text.length-u-1]==o.text[o.text.length-u-1];)u++,n--,r--;return{a:n,b:r}}if(s.content.size||o.content.size){let u=uA(s.content,o.content,n-1,r-1);if(u)return u}n-=l,r-=l}}class z{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,a=0,i){for(let s=0,o=0;o<n;s++){let l=this.content[s],u=o+l.nodeSize;if(u>e&&r(l,a+o,i||null,s)!==!1&&l.content.size){let c=o+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,n-c),r,a+c)}o=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,a){let i="",s=!0;return this.nodesBetween(e,n,(o,l)=>{let u=o.isText?o.text.slice(Math.max(e,l)-l,n-l):o.isLeaf?a?typeof a=="function"?a(o):a:o.type.spec.leafText?o.type.spec.leafText(o):"":"";o.isBlock&&(o.isLeaf&&u||o.isTextblock)&&r&&(s?s=!1:i+=r),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,a=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(a[a.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)a.push(e.content[i]);return new z(a,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],a=0;if(n>e)for(let i=0,s=0;s<n;i++){let o=this.content[i],l=s+o.nodeSize;l>e&&((s<e||l>n)&&(o.isText?o=o.cut(Math.max(0,e-s),Math.min(o.text.length,n-s)):o=o.cut(Math.max(0,e-s-1),Math.min(o.content.size,n-s-1))),r.push(o),a+=o.nodeSize),s=l}return new z(r,a)}cutByIndex(e,n){return e==n?z.empty:e==0&&n==this.content.length?this:new z(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let a=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return a[e]=n,new z(a,i)}addToStart(e){return new z([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new z(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let a=this.content[n];e(a,r,n),r+=a.nodeSize}}findDiffStart(e,n=0){return lA(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return uA(this,e,n,r)}findIndex(e){if(e==0)return Oa(0,e);if(e==this.size)return Oa(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let a=this.child(n),i=r+a.nodeSize;if(i>=e)return i==e?Oa(n+1,i):Oa(n,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return z.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new z(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return z.empty;let n,r=0;for(let a=0;a<e.length;a++){let i=e[a];r+=i.nodeSize,a&&i.isText&&e[a-1].sameMarkup(i)?(n||(n=e.slice(0,a)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new z(n||e,r)}static from(e){if(!e)return z.empty;if(e instanceof z)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new z([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}z.empty=new z([],0);const zs={index:0,offset:0};function Oa(t,e){return zs.index=t,zs.offset=e,zs}function ui(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!ui(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!ui(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let fe=class cf{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let a=0;a<e.length;a++){let i=e[a];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,a));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,a)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ui(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let a=r.create(n.attrs);return r.checkAttrs(a.attrs),a}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return cf.none;if(e instanceof cf)return[e];let n=e.slice();return n.sort((r,a)=>r.type.rank-a.type.rank),n}};fe.none=[];class ci extends Error{}class Z{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=dA(this.content,e+this.openStart,n);return r&&new Z(r,this.openStart,this.openEnd)}removeBetween(e,n){return new Z(cA(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return Z.empty;let r=n.openStart||0,a=n.openEnd||0;if(typeof r!="number"||typeof a!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Z(z.fromJSON(e,n.content),r,a)}static maxOpen(e,n=!0){let r=0,a=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)a++;return new Z(e,r,a)}}Z.empty=new Z(z.empty,0,0);function cA(t,e,n){let{index:r,offset:a}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:o}=t.findIndex(n);if(a==e||i.isText){if(o!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(cA(i.content,e-a-1,n-a-1)))}function dA(t,e,n,r){let{index:a,offset:i}=t.findIndex(e),s=t.maybeChild(a);if(i==e||s.isText)return r&&!r.canReplace(a,a,n)?null:t.cut(0,e).append(n).append(t.cut(e));let o=dA(s.content,e-i-1,n,s);return o&&t.replaceChild(a,s.copy(o))}function KI(t,e,n){if(n.openStart>t.depth)throw new ci("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new ci("Inconsistent open depths");return pA(t,e,n,0)}function pA(t,e,n,r){let a=t.index(r),i=t.node(r);if(a==e.index(r)&&r<t.depth-n.openStart){let s=pA(t,e,n,r+1);return i.copy(i.content.replaceChild(a,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,o=s.content;return wn(s,o.cut(0,t.parentOffset).append(n.content).append(o.cut(e.parentOffset)))}else{let{start:s,end:o}=XI(n,t);return wn(i,hA(t,s,o,e,r))}else return wn(i,di(t,e,r))}function fA(t,e){if(!e.type.compatibleContent(t.type))throw new ci("Cannot join "+e.type.name+" onto "+t.type.name)}function df(t,e,n){let r=t.node(n);return fA(r,e.node(n)),r}function kn(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function qr(t,e,n,r){let a=(e||t).node(n),i=0,s=e?e.index(n):a.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(kn(t.nodeAfter,r),i++));for(let o=i;o<s;o++)kn(a.child(o),r);e&&e.depth==n&&e.textOffset&&kn(e.nodeBefore,r)}function wn(t,e){return t.type.checkContent(e),t.copy(e)}function hA(t,e,n,r,a){let i=t.depth>a&&df(t,e,a+1),s=r.depth>a&&df(n,r,a+1),o=[];return qr(null,t,a,o),i&&s&&e.index(a)==n.index(a)?(fA(i,s),kn(wn(i,hA(t,e,n,r,a+1)),o)):(i&&kn(wn(i,di(t,e,a+1)),o),qr(e,n,a,o),s&&kn(wn(s,di(n,r,a+1)),o)),qr(r,null,a,o),new z(o)}function di(t,e,n){let r=[];if(qr(null,t,n,r),t.depth>n){let a=df(t,e,n+1);kn(wn(a,di(t,e,n+1)),r)}return qr(e,null,n,r),new z(r)}function XI(t,e){let n=e.depth-t.openStart,a=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)a=e.node(i).copy(z.from(a));return{start:a.resolveNoCache(t.openStart+n),end:a.resolveNoCache(a.content.size-t.openEnd-n)}}class sa{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],a=e.child(n);return r?e.child(n).cut(r):a}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],a=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)a+=r.child(i).nodeSize;return a}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return fe.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),a=e.maybeChild(n);if(!r){let o=r;r=a,a=o}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!a||!i[s].isInSet(a.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,a=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!a||!r[i].isInSet(a.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new pi(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],a=0,i=n;for(let s=e;;){let{index:o,offset:l}=s.content.findIndex(i),u=i-l;if(r.push(s,o,a+l),!u||(s=s.child(o),s.isText))break;i=u-1,a+=l+1}return new sa(n,r,i)}static resolveCached(e,n){let r=km.get(e);if(r)for(let i=0;i<r.elts.length;i++){let s=r.elts[i];if(s.pos==n)return s}else km.set(e,r=new ZI);let a=r.elts[r.i]=sa.resolve(e,n);return r.i=(r.i+1)%QI,a}}class ZI{constructor(){this.elts=[],this.i=0}}const QI=12,km=new WeakMap;class pi{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const JI=Object.create(null);let on=class pf{constructor(e,n,r,a=fe.none){this.type=e,this.attrs=n,this.marks=a,this.content=r||z.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,a=0){this.content.nodesBetween(e,n,r,a,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,a){return this.content.textBetween(e,n,r,a)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&ui(this.attrs,n||e.defaultAttrs||JI)&&fe.sameSet(this.marks,r||fe.none)}copy(e=null){return e==this.content?this:new pf(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new pf(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return Z.empty;let a=this.resolve(e),i=this.resolve(n),s=r?0:a.sharedDepth(n),o=a.start(s),u=a.node(s).content.cut(a.pos-o,i.pos-o);return new Z(u,a.depth-s,i.depth-s)}replace(e,n,r){return KI(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:a}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(a==e||n.isText)return n;e-=a+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let a=this.content.child(n-1);return{node:a,index:n-1,offset:r-a.nodeSize}}resolve(e){return sa.resolveCached(this,e)}resolveNoCache(e){return sa.resolve(this,e)}rangeHasMark(e,n,r){let a=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(a=!0),!a)),a}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),mA(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=z.empty,a=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,a,i),o=s&&s.matchFragment(this.content,n);if(!o||!o.validEnd)return!1;for(let l=a;l<i;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,a){if(a&&!this.type.allowsMarks(a))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=fe.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!fe.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let a=z.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,a,r);return i.type.checkAttrs(i.attrs),i}};on.prototype.text=void 0;class fi extends on{constructor(e,n,r,a){if(super(e,n,null,a),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):mA(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new fi(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new fi(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function mA(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Fn{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new eR(e,n);if(r.next==null)return Fn.empty;let a=gA(r);r.next&&r.err("Unexpected trailing text");let i=oR(sR(a));return lR(i,r),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let a=this;for(let i=n;a&&i<r;i++)a=a.matchType(e.child(i).type);return a}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let a=[this];function i(s,o){let l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return z.from(o.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:d}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&a.indexOf(d)==-1){a.push(d);let p=i(d,o.concat(c));if(p)return p}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let a=r.shift(),i=a.match;if(i.matchType(e)){let s=[];for(let o=a;o.type;o=o.via)s.push(o.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:o,next:l}=i.next[s];!o.isLeaf&&!o.hasRequiredAttrs()&&!(o.name in n)&&(!a.type||l.validEnd)&&(r.push({match:o.contentMatch,type:o,via:a}),n[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let a=0;a<r.next.length;a++)e.indexOf(r.next[a].next)==-1&&n(r.next[a].next)}return n(this),e.map((r,a)=>{let i=a+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
|
|
2
2
|
`)}}Fn.empty=new Fn(!0);class eR{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function gA(t){let e=[];do e.push(tR(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function tR(t){let e=[];do e.push(nR(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function nR(t){let e=iR(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=rR(t,e);else break;return e}function wm(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function rR(t,e){let n=wm(t),r=n;return t.eat(",")&&(t.next!="}"?r=wm(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function aR(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let a=[];for(let i in n){let s=n[i];s.isInGroup(e)&&a.push(s)}return a.length==0&&t.err("No node type or group '"+e+"' found"),a}function iR(t){if(t.eat("(")){let e=gA(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=aR(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function sR(t){let e=[[]];return a(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,o,l){let u={term:l,to:o};return e[s].push(u),u}function a(s,o){s.forEach(l=>l.to=o)}function i(s,o){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(i(u,o)),[]);if(s.type=="seq")for(let l=0;;l++){let u=i(s.exprs[l],o);if(l==s.exprs.length-1)return u;a(u,o=n())}else if(s.type=="star"){let l=n();return r(o,l),a(i(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return a(i(s.expr,o),l),a(i(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(o)].concat(i(s.expr,o));if(s.type=="range"){let l=o;for(let u=0;u<s.min;u++){let c=n();a(i(s.expr,l),c),l=c}if(s.max==-1)a(i(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let c=n();r(l,c),a(i(s.expr,l),c),l=c}return[r(l)]}else{if(s.type=="name")return[r(o,void 0,s.value)];throw new Error("Unknown expr type")}}}}function bA(t,e){return e-t}function Om(t,e){let n=[];return r(e),n.sort(bA);function r(a){let i=t[a];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(a);for(let s=0;s<i.length;s++){let{term:o,to:l}=i[s];!o&&n.indexOf(l)==-1&&r(l)}}}function oR(t){let e=Object.create(null);return n(Om(t,0));function n(r){let a=[];r.forEach(s=>{t[s].forEach(({term:o,to:l})=>{if(!o)return;let u;for(let c=0;c<a.length;c++)a[c][0]==o&&(u=a[c][1]);Om(t,l).forEach(c=>{u||a.push([o,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[r.join(",")]=new Fn(r.indexOf(t.length-1)>-1);for(let s=0;s<a.length;s++){let o=a[s][1].sort(bA);i.next.push({type:a[s][0],next:e[o.join(",")]||n(o)})}return i}}function lR(t,e){for(let n=0,r=[t];n<r.length;n++){let a=r[n],i=!a.validEnd,s=[];for(let o=0;o<a.next.length;o++){let{type:l,next:u}=a.next[o];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),r.indexOf(u)==-1&&r.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function EA(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function TA(t,e){let n=Object.create(null);for(let r in t){let a=e&&e[r];if(a===void 0){let i=t[r];if(i.hasDefault)a=i.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=a}return n}function yA(t,e,n,r){for(let a in e)if(!(a in t))throw new RangeError(`Unsupported attribute ${a} for ${n} of type ${a}`);for(let a in t){let i=t[a];i.validate&&i.validate(e[a])}}function SA(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new cR(t,r,e[r]);return n}let Lm=class AA{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=SA(e,r.attrs),this.defaultAttrs=EA(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Fn.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:TA(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new on(this,this.computeAttrs(e),z.from(n),fe.setFrom(r))}createChecked(e=null,n,r){return n=z.from(n),this.checkContent(n),new on(this,this.computeAttrs(e),n,fe.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=z.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let a=this.contentMatch.matchFragment(n),i=a&&a.fillBefore(z.empty,!0);return i?new on(this,e,n.append(i),fe.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){yA(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:fe.none:e}static compile(e,n){let r=Object.create(null);e.forEach((i,s)=>r[i]=new AA(i,n,s));let a=n.spec.topNode||"doc";if(!r[a])throw new RangeError("Schema is missing its top node type ('"+a+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function uR(t,e,n){let r=n.split("|");return a=>{let i=a===null?"null":typeof a;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${i}`)}}class cR{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?uR(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class fs{constructor(e,n,r,a){this.name=e,this.rank=n,this.schema=r,this.spec=a,this.attrs=SA(e,a.attrs),this.excluded=null;let i=EA(this.attrs);this.instance=i?new fe(this,i):null}create(e=null){return!e&&this.instance?this.instance:new fe(this,TA(this.attrs,e))}static compile(e,n){let r=Object.create(null),a=0;return e.forEach((i,s)=>r[i]=new fs(i,a++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){yA(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class NA{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let a in e)n[a]=e[a];n.nodes=je.from(e.nodes),n.marks=je.from(e.marks||{}),this.nodes=Lm.compile(this.spec.nodes,this),this.marks=fs.compile(this.spec.marks,this);let r=Object.create(null);for(let a in this.nodes){if(a in this.marks)throw new RangeError(a+" can not be both a node and a mark");let i=this.nodes[a],s=i.spec.content||"",o=i.spec.marks;if(i.contentMatch=r[s]||(r[s]=Fn.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=o=="_"?null:o?Dm(this,o.split(" ")):o==""||!i.inlineContent?[]:null}for(let a in this.marks){let i=this.marks[a],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Dm(this,s.split(" "))}this.nodeFromJSON=a=>on.fromJSON(this,a),this.markFromJSON=a=>fe.fromJSON(this,a),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,a){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Lm){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,a)}text(e,n){let r=this.nodes.text;return new fi(r,r.defaultAttrs,e,fe.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function Dm(t,e){let n=[];for(let r=0;r<e.length;r++){let a=e[r],i=t.marks[a],s=i;if(i)n.push(i);else for(let o in t.marks){let l=t.marks[o];(a=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(a)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function dR(t){return t.tag!=null}function pR(t){return t.style!=null}class ln{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(a=>{if(dR(a))this.tags.push(a);else if(pR(a)){let i=/[^=]*/.exec(a.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(a)}}),this.normalizeLists=!this.tags.some(a=>{if(!/^(ul|ol)\b/.test(a.tag)||!a.node)return!1;let i=e.nodes[a.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let r=new Pm(this,n,!1);return r.addAll(e,fe.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new Pm(this,n,!0);return r.addAll(e,fe.none,n.from,n.to),Z.maxOpen(r.finish())}matchTag(e,n,r){for(let a=r?this.tags.indexOf(r)+1:0;a<this.tags.length;a++){let i=this.tags[a];if(mR(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,n,r,a){for(let i=a?this.styles.indexOf(a)+1:0;i<this.styles.length;i++){let s=this.styles[i],o=s.style;if(!(o.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||o.length>e.length&&(o.charCodeAt(e.length)!=61||o.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function r(a){let i=a.priority==null?50:a.priority,s=0;for(;s<n.length;s++){let o=n[s];if((o.priority==null?50:o.priority)<i)break}n.splice(s,0,a)}for(let a in e.marks){let i=e.marks[a].spec.parseDOM;i&&i.forEach(s=>{r(s=Fm(s)),s.mark||s.ignore||s.clearMark||(s.mark=a)})}for(let a in e.nodes){let i=e.nodes[a].spec.parseDOM;i&&i.forEach(s=>{r(s=Fm(s)),s.node||s.ignore||s.mark||(s.node=a)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ln(e,ln.schemaRules(e)))}}const vA={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},fR={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},_A={ol:!0,ul:!0},oa=1,ff=2,zr=4;function Mm(t,e,n){return e!=null?(e?oa:0)|(e==="full"?ff:0):t&&t.whitespace=="pre"?oa|ff:n&~zr}class La{constructor(e,n,r,a,i,s){this.type=e,this.attrs=n,this.marks=r,this.solid=a,this.options=s,this.content=[],this.activeMarks=fe.none,this.match=i||(s&zr?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(z.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,a;return(a=r.findWrapping(e.type))?(this.match=r,a):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&oa)){let r=this.content[this.content.length-1],a;if(r&&r.isText&&(a=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==a[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-a[0].length))}}let n=z.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(z.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!vA.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Pm{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let a=n.topNode,i,s=Mm(null,n.preserveWhitespace,0)|(r?zr:0);a?i=new La(a.type,a.attrs,fe.none,!0,n.topMatch||a.type.contentMatch,s):r?i=new La(null,null,fe.none,!0,null,s):i=new La(e.schema.topNodeType,null,fe.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,a=this.top,i=a.options&ff?"full":this.localPreserveWS||(a.options&oa)>0,{schema:s}=this.parser;if(i==="full"||a.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if(i==="full")r=r.replace(/\r\n?/g,`
|
|
3
3
|
`);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let o=r.split(/\r?\n|\r/);for(let l=0;l<o.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),n,!0),o[l]&&this.insertNode(s.text(o[l]),n,!/\S/.test(o[l]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let o=a.content[a.content.length-1],l=e.previousSibling;(!o||l&&l.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let a=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),o;_A.hasOwnProperty(s)&&this.parser.normalizeLists&&hR(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,r));e:if(l?l.ignore:fR.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let u,c=this.needsBlock;if(vA.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=l&&l.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),u&&this.sync(i),this.needsBlock=c}else{let u=this.readStyles(e,n);u&&this.addElementByRule(e,l,u,l.consuming===!1?o:void 0)}this.localPreserveWS=a}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
4
4
|
`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let a=0;a<this.parser.matchedStyles.length;a++){let i=this.parser.matchedStyles[a],s=r.getPropertyValue(i);if(s)for(let o=void 0;;){let l=this.parser.matchStyle(i,s,this,o);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(u=>!l.clearMark(u)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)o=l;else break}}return n}addElementByRule(e,n,r,a){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let l=this.enter(s,n.attrs||null,r,n.preserveWhitespace);l&&(i=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let o=this.top;if(s&&s.isLeaf)this.findInside(e);else if(a)this.addElement(e,r,a);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}i&&this.sync(o)&&this.open--}addAll(e,n,r,a){let i=r||0;for(let s=r?e.childNodes[r]:e.firstChild,o=a==null?null:e.childNodes[a];s!=o;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,n);this.findAtPoint(e,i)}findPlace(e,n,r){let a,i;for(let s=this.open,o=0;s>=0;s--){let l=this.nodes[s],u=l.findWrapping(e);if(u&&(!a||a.length>u.length+o)&&(a=u,i=l,!u.length))break;if(l.solid){if(r)break;o+=2}}if(!a)return null;this.sync(i);for(let s=0;s<a.length;s++)n=this.enterInner(a[s],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(n=this.enterInner(i,null,n))}let a=this.findPlace(e,n,r);if(a){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let s=fe.none;for(let o of a.concat(e.marks))(i.type?i.type.allowsMarkType(o.type):Bm(o.type,e.type))&&(s=o.addToSet(s));return i.content.push(e.mark(s)),!0}return!1}enter(e,n,r,a){let i=this.findPlace(e.create(n),r,!1);return i&&(i=this.enterInner(e,n,r,!0,a)),i}enterInner(e,n,r,a=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let o=Mm(e,i,s.options);s.options&zr&&s.content.length==0&&(o|=zr);let l=fe.none;return r=r.filter(u=>(s.type?s.type.allowsMarkType(u.type):Bm(u.type,e))?(l=u.addToSet(l),!1):!0),this.nodes.push(new La(e,n,l,a,null,o)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=oa)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let a=r.length-1;a>=0;a--)e+=r[a].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let a=0;a<this.find.length;a++)this.find[a].pos==null&&e.nodeType==1&&e.contains(this.find[a].node)&&n.compareDocumentPosition(this.find[a].node)&(r?2:4)&&(this.find[a].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,a=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(a?0:1),s=(o,l)=>{for(;o>=0;o--){let u=n[o];if(u==""){if(o==n.length-1||o==0)continue;for(;l>=i;l--)if(s(o-1,l))return!0;return!1}else{let c=l>0||l==0&&a?this.nodes[l].type:r&&l>=i?r.node(l-i).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function hR(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&_A.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function mR(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Fm(t){let e={};for(let n in t)e[n]=t[n];return e}function Bm(t,e){let n=e.schema.nodes;for(let r in n){let a=n[r];if(!a.allowsMarkType(t))continue;let i=[],s=o=>{i.push(o);for(let l=0;l<o.edgeCount;l++){let{type:u,next:c}=o.edge(l);if(u==e||i.indexOf(c)<0&&s(c))return!0}};if(s(a.contentMatch))return!0}}class Gn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Gs(n).createDocumentFragment());let a=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let o=0,l=0;for(;o<i.length&&l<s.marks.length;){let u=s.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(i[o][0])||u.type.spec.spanning===!1)break;o++,l++}for(;o<i.length;)a=i.pop()[1];for(;l<s.marks.length;){let u=s.marks[l++],c=this.serializeMark(u,s.isInline,n);c&&(i.push([u,a]),a.appendChild(c.dom),a=c.contentDOM||c.dom)}}a.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:a}=Za(Gs(n),this.nodes[e.type.name](e),null,e.attrs);if(a){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,a)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let a=e.marks.length-1;a>=0;a--){let i=this.serializeMark(e.marks[a],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let a=this.marks[e.type.name];return a&&Za(Gs(r),a(e,n),null,e.attrs)}static renderSpec(e,n,r=null,a){return Za(e,n,r,a)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Gn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Um(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return Um(e.marks)}}function Um(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Gs(t){return t.document||window.document}const Hm=new WeakMap;function gR(t){let e=Hm.get(t);return e===void 0&&Hm.set(t,e=bR(t)),e}function bR(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let a=0;a<r.length;a++)n(r[a]);else for(let a in r)n(r[a])}return n(t),e}function Za(t,e,n,r){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let a=e[0],i;if(typeof a!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=gR(r))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=a.indexOf(" ");s>0&&(n=a.slice(0,s),a=a.slice(s+1));let o,l=n?t.createElementNS(n,a):t.createElement(a),u=e[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let p=d.indexOf(" ");p>0?l.setAttributeNS(d.slice(0,p),d.slice(p+1),u[d]):d=="style"&&l.style?l.style.cssText=u[d]:l.setAttribute(d,u[d])}}for(let d=c;d<e.length;d++){let p=e[d];if(p===0){if(d<e.length-1||d>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:f,contentDOM:h}=Za(t,p,n,r);if(l.appendChild(f),h){if(o)throw new RangeError("Multiple content holes");o=h}}}return{dom:l,contentDOM:o}}const CA=65535,IA=Math.pow(2,16);function ER(t,e){return t+e*IA}function $m(t){return t&CA}function TR(t){return(t-(t&CA))/IA}const RA=1,xA=2,Qa=4,kA=8;class hf{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&kA)>0}get deletedBefore(){return(this.delInfo&(RA|Qa))>0}get deletedAfter(){return(this.delInfo&(xA|Qa))>0}get deletedAcross(){return(this.delInfo&Qa)>0}}class ot{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&ot.empty)return ot.empty}recover(e){let n=0,r=$m(e);if(!this.inverted)for(let a=0;a<r;a++)n+=this.ranges[a*3+2]-this.ranges[a*3+1];return this.ranges[r*3]+n+TR(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let a=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?a:0);if(l>e)break;let u=this.ranges[o+i],c=this.ranges[o+s],d=l+u;if(e<=d){let p=u?e==l?-1:e==d?1:n:n,f=l+a+(p<0?0:c);if(r)return f;let h=e==(n<0?l:d)?null:ER(o/3,e-l),g=e==l?xA:e==d?RA:Qa;return(n<0?e!=l:e!=d)&&(g|=kA),new hf(f,g,h)}a+=c-u}return r?e+a:new hf(e+a,0,null)}touches(e,n){let r=0,a=$m(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let l=this.ranges[o]-(this.inverted?r:0);if(l>e)break;let u=this.ranges[o+i],c=l+u;if(e<=c&&o==a*3)return!0;r+=this.ranges[o+s]-u}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let a=0,i=0;a<this.ranges.length;a+=3){let s=this.ranges[a],o=s-(this.inverted?i:0),l=s+(this.inverted?0:i),u=this.ranges[a+n],c=this.ranges[a+r];e(o,o+u,l,l+c),i+=c-u}}invert(){return new ot(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?ot.empty:new ot(e<0?[0,-e,0]:[0,0,e])}}ot.empty=new ot([]);class la{constructor(e,n,r=0,a=e?e.length:0){this.mirror=n,this.from=r,this.to=a,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new la(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let a=e.getMirror(n);this.appendMap(e._maps[n],a!=null&&a<n?r+a:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let a=e.getMirror(n);this.appendMap(e._maps[n].invert(),a!=null&&a>n?r-a-1:void 0)}}invert(){let e=new la;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let a=0;for(let i=this.from;i<this.to;i++){let s=this._maps[i],o=s.mapResult(e,n);if(o.recover!=null){let l=this.getMirror(i);if(l!=null&&l>i&&l<this.to){i=l,e=this._maps[l].recover(o.recover);continue}}a|=o.delInfo,e=o.pos}return r?e:new hf(e,a,null)}}const Vs=Object.create(null);class Ke{getMap(){return ot.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Vs[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Vs)throw new RangeError("Duplicate use of step JSON ID "+e);return Vs[e]=n,n.prototype.jsonID=e,n}}class xe{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new xe(e,null)}static fail(e){return new xe(null,e)}static fromReplace(e,n,r,a){try{return xe.ok(e.replace(n,r,a))}catch(i){if(i instanceof ci)return xe.fail(i.message);throw i}}}function lh(t,e,n){let r=[];for(let a=0;a<t.childCount;a++){let i=t.child(a);i.content.size&&(i=i.copy(lh(i.content,e,i))),i.isInline&&(i=e(i,n,a)),r.push(i)}return z.fromArray(r)}class tn extends Ke{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),a=r.node(r.sharedDepth(this.to)),i=new Z(lh(n.content,(s,o)=>!s.isAtom||!o.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),a),n.openStart,n.openEnd);return xe.fromReplace(e,this.from,this.to,i)}invert(){return new St(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new tn(n.pos,r.pos,this.mark)}merge(e){return e instanceof tn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new tn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new tn(n.from,n.to,e.markFromJSON(n.mark))}}Ke.jsonID("addMark",tn);class St extends Ke{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new Z(lh(n.content,a=>a.mark(this.mark.removeFromSet(a.marks)),e),n.openStart,n.openEnd);return xe.fromReplace(e,this.from,this.to,r)}invert(){return new tn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new St(n.pos,r.pos,this.mark)}merge(e){return e instanceof St&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new St(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new St(n.from,n.to,e.markFromJSON(n.mark))}}Ke.jsonID("removeMark",St);class nn extends Ke{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return xe.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return xe.fromReplace(e,this.pos,this.pos+1,new Z(z.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let a=0;a<n.marks.length;a++)if(!n.marks[a].isInSet(r))return new nn(this.pos,n.marks[a]);return new nn(this.pos,this.mark)}}return new Bn(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new nn(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new nn(n.pos,e.markFromJSON(n.mark))}}Ke.jsonID("addNodeMark",nn);class Bn extends Ke{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return xe.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return xe.fromReplace(e,this.pos,this.pos+1,new Z(z.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new nn(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Bn(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Bn(n.pos,e.markFromJSON(n.mark))}}Ke.jsonID("removeNodeMark",Bn);class Fe extends Ke{constructor(e,n,r,a=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=a}apply(e){return this.structure&&mf(e,this.from,this.to)?xe.fail("Structure replace would overwrite content"):xe.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new ot([this.from,this.to-this.from,this.slice.size])}invert(e){return new Fe(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new Fe(n.pos,Math.max(n.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof Fe)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?Z.empty:new Z(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Fe(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?Z.empty:new Z(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Fe(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Fe(n.from,n.to,Z.fromJSON(e,n.slice),!!n.structure)}}Ke.jsonID("replace",Fe);class Ue extends Ke{constructor(e,n,r,a,i,s,o=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=a,this.slice=i,this.insert=s,this.structure=o}apply(e){if(this.structure&&(mf(e,this.from,this.gapFrom)||mf(e,this.gapTo,this.to)))return xe.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return xe.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?xe.fromReplace(e,this.from,this.to,r):xe.fail("Content does not fit in gap")}getMap(){return new ot([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new Ue(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),a=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||a<n.pos||i>r.pos?null:new Ue(n.pos,r.pos,a,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Ue(n.from,n.to,n.gapFrom,n.gapTo,Z.fromJSON(e,n.slice),n.insert,!!n.structure)}}Ke.jsonID("replaceAround",Ue);function mf(t,e,n){let r=t.resolve(e),a=n-e,i=r.depth;for(;a>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,a--;if(a>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;a>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,a--}}return!1}function yR(t,e,n,r){let a=[],i=[],s,o;t.doc.nodesBetween(e,n,(l,u,c)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let p=Math.max(u,e),f=Math.min(u+l.nodeSize,n),h=r.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(h)||(s&&s.to==p&&s.mark.eq(d[g])?s.to=f:a.push(s=new St(p,f,d[g])));o&&o.to==p?o.to=f:i.push(o=new tn(p,f,r))}}),a.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function SR(t,e,n,r){let a=[],i=0;t.doc.nodesBetween(e,n,(s,o)=>{if(!s.isInline)return;i++;let l=null;if(r instanceof fs){let u=s.marks,c;for(;c=r.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let u=Math.min(o+s.nodeSize,n);for(let c=0;c<l.length;c++){let d=l[c],p;for(let f=0;f<a.length;f++){let h=a[f];h.step==i-1&&d.eq(a[f].style)&&(p=h)}p?(p.to=u,p.step=i):a.push({style:d,from:Math.max(o,e),to:u,step:i})}}}),a.forEach(s=>t.step(new St(s.from,s.to,s.style)))}function uh(t,e,n,r=n.contentMatch,a=!0){let i=t.doc.nodeAt(e),s=[],o=e+1;for(let l=0;l<i.childCount;l++){let u=i.child(l),c=o+u.nodeSize,d=r.matchType(u.type);if(!d)s.push(new Fe(o,c,Z.empty));else{r=d;for(let p=0;p<u.marks.length;p++)n.allowsMarkType(u.marks[p].type)||t.step(new St(o,c,u.marks[p]));if(a&&u.isText&&n.whitespace!="pre"){let p,f=/\r?\n|\r/g,h;for(;p=f.exec(u.text);)h||(h=new Z(z.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),s.push(new Fe(o+p.index,o+p.index+p[0].length,h))}}o=c}if(!r.validEnd){let l=r.fillBefore(z.empty,!0);t.replace(o,o,new Z(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function AR(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Nr(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,a=0,i=0;;--r){let s=t.$from.node(r),o=t.$from.index(r)+a,l=t.$to.indexAfter(r)-i;if(r<t.depth&&s.canReplace(o,l,n))return r;if(r==0||s.type.spec.isolating||!AR(s,o,l))break;o&&(a=1),l<s.childCount&&(i=1)}return null}function NR(t,e,n){let{$from:r,$to:a,depth:i}=e,s=r.before(i+1),o=a.after(i+1),l=s,u=o,c=z.empty,d=0;for(let h=i,g=!1;h>n;h--)g||r.index(h)>0?(g=!0,c=z.from(r.node(h).copy(c)),d++):l--;let p=z.empty,f=0;for(let h=i,g=!1;h>n;h--)g||a.after(h+1)<a.end(h)?(g=!0,p=z.from(a.node(h).copy(p)),f++):u++;t.step(new Ue(l,u,s,o,new Z(c.append(p),d,f),c.size-d,!0))}function ch(t,e,n=null,r=t){let a=vR(t,e),i=a&&_R(r,e);return i?a.map(jm).concat({type:e,attrs:n}).concat(i.map(jm)):null}function jm(t){return{type:t,attrs:null}}function vR(t,e){let{parent:n,startIndex:r,endIndex:a}=t,i=n.contentMatchAt(r).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return n.canReplaceWith(r,a,s)?i:null}function _R(t,e){let{parent:n,startIndex:r,endIndex:a}=t,i=n.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let u=r;l&&u<a;u++)l=l.matchType(n.child(u).type);return!l||!l.validEnd?null:s}function CR(t,e,n){let r=z.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let o=n[s].type.contentMatch.matchFragment(r);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=z.from(n[s].type.create(n[s].attrs,r))}let a=e.start,i=e.end;t.step(new Ue(a,i,a,i,new Z(r,0,0),n.length,!0))}function IR(t,e,n,r,a){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,o)=>{let l=typeof a=="function"?a(s):a;if(s.isTextblock&&!s.hasMarkup(r,l)&&RR(t.doc,t.mapping.slice(i).map(o),r)){let u=null;if(r.schema.linebreakReplacement){let f=r.whitespace=="pre",h=!!r.contentMatch.matchType(r.schema.linebreakReplacement);f&&!h?u=!1:!f&&h&&(u=!0)}u===!1&&OA(t,s,o,i),uh(t,t.mapping.slice(i).map(o,1),r,void 0,u===null);let c=t.mapping.slice(i),d=c.map(o,1),p=c.map(o+s.nodeSize,1);return t.step(new Ue(d,p,d+1,p-1,new Z(z.from(r.create(l,null,s.marks)),0,0),1,!0)),u===!0&&wA(t,s,o,i),!1}})}function wA(t,e,n,r){e.forEach((a,i)=>{if(a.isText){let s,o=/\r?\n|\r/g;for(;s=o.exec(a.text);){let l=t.mapping.slice(r).map(n+1+i+s.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function OA(t,e,n,r){e.forEach((a,i)=>{if(a.type==a.type.schema.linebreakReplacement){let s=t.mapping.slice(r).map(n+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
|
|
@@ -97,7 +97,7 @@ ${E}
|
|
|
97
97
|
`);_.trim()&&(e.customNestedParser?y=e.customNestedParser(_):y=n.blockTokens(_))}const N=e.createToken(h,y);l.push(N)}if(l.length!==0)return{items:l,raw:u}}function Mh(t,e,n,r){if(!t||!Array.isArray(t.content))return"";const a=typeof n=="function"?n(r):n,[i,...s]=t.content,o=e.renderChildren([i]),l=[`${a}${o}`];return s&&s.length>0&&s.forEach(u=>{const c=e.renderChildren([u]);if(c){const d=c.split(`
|
|
98
98
|
`).map(p=>p?e.indent(p):"").join(`
|
|
99
99
|
`);l.push(d)}}),l.join(`
|
|
100
|
-
`)}function e2(t,e,n={}){const{state:r}=e,{doc:a,tr:i}=r,s=t;a.descendants((o,l)=>{const u=i.mapping.map(l),c=i.mapping.map(l)+o.nodeSize;let d=null;if(o.marks.forEach(f=>{if(f!==s)return!1;d=f}),!d)return;let p=!1;if(Object.keys(n).forEach(f=>{n[f]!==d.attrs[f]&&(p=!0)}),p){const f=t.type.create({...t.attrs,...n});i.removeMark(u,c,t.type),i.addMark(u,c,f)}}),i.docChanged&&e.view.dispatch(i)}var tt=class hv extends Oh{constructor(){super(...arguments),this.type="node"}static create(e={}){const n=typeof e=="function"?e():e;return new hv(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},t2=class{constructor(t,e,n){this.isDragging=!1,this.component=t,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.innerDecorations=e.innerDecorations,this.view=e.view,this.HTMLAttributes=e.HTMLAttributes,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var e,n,r,a,i,s,o;const{view:l}=this.editor,u=t.target,c=u.nodeType===3?(e=u.parentElement)==null?void 0:e.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||(n=this.contentDOM)!=null&&n.contains(u)||!c)return;let d=0,p=0;if(this.dom!==c){const y=this.dom.getBoundingClientRect(),S=c.getBoundingClientRect(),N=(a=t.offsetX)!=null?a:(r=t.nativeEvent)==null?void 0:r.offsetX,_=(s=t.offsetY)!=null?s:(i=t.nativeEvent)==null?void 0:i.offsetY;d=S.x-y.x+N,p=S.y-y.y+_}const f=this.dom.cloneNode(!0);try{const y=this.dom.getBoundingClientRect();f.style.width=`${Math.round(y.width)}px`,f.style.height=`${Math.round(y.height)}px`,f.style.boxSizing="border-box",f.style.pointerEvents="none"}catch{}let h=null;try{h=document.createElement("div"),h.style.position="absolute",h.style.top="-9999px",h.style.left="-9999px",h.style.pointerEvents="none",h.appendChild(f),document.body.appendChild(h),(o=t.dataTransfer)==null||o.setDragImage(f,d,p)}finally{h&&setTimeout(()=>{try{h?.remove()}catch{}},0)}const g=this.getPos();if(typeof g!="number")return;const E=re.create(l.state.doc,g),T=l.state.tr.setSelection(E);l.dispatch(T)}stopEvent(t){var e;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:t});const n=t.target;if(!(this.dom.contains(n)&&!((e=this.contentDOM)!=null&&e.contains(n))))return!1;const a=t.type.startsWith("drag"),i=t.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!i&&!a)return!0;const{isEditable:o}=this.editor,{isDragging:l}=this,u=!!this.node.type.spec.draggable,c=re.isSelectable(this.node),d=t.type==="copy",p=t.type==="paste",f=t.type==="cut",h=t.type==="mousedown";if(!u&&c&&a&&t.target===this.dom&&t.preventDefault(),u&&a&&!l&&t.target===this.dom)return t.preventDefault(),!1;if(u&&o&&!l&&h){const g=n.closest("[data-drag-handle]");g&&(this.dom===g||this.dom.contains(g))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(l||i||d||p||f||h&&c)}ignoreMutation(t){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:t}):this.node.isLeaf||this.node.isAtom?!0:t.type==="selection"||this.dom.contains(t.target)&&t.type==="childList"&&(fa()||Cf())&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(n=>n.isContentEditable)?!1:this.contentDOM===t.target&&t.type==="attributes"?!0:!this.contentDOM.contains(t.target)}updateAttributes(t){this.editor.commands.command(({tr:e})=>{const n=this.getPos();return typeof n!="number"?!1:(e.setNodeMarkup(n,void 0,{...this.node.attrs,...t}),!0)})}deleteNode(){const t=this.getPos();if(typeof t!="number")return;const e=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:e})}};function $n(t){return new MO({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:a})=>{const i=pe(t.getAttributes,void 0,r,a);if(i===!1||i===null)return null;const{tr:s}=e,o=r[r.length-1],l=r[0];let u=n.to;if(o){const c=l.search(/\S/),d=n.from+l.indexOf(o),p=d+o.length;if(wh(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(E=>E===t.type&&E!==h.mark.type)).filter(h=>h.to>d).length)return null;p<n.to&&s.delete(p,n.to),d>n.from&&s.delete(n.from+c,d),u=n.from+c+o.length,s.addMark(n.from+c,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}const{getOwnPropertyNames:n2,getOwnPropertySymbols:r2}=Object,{hasOwnProperty:a2}=Object.prototype;function oo(t,e){return function(r,a,i){return t(r,a,i)&&e(r,a,i)}}function Ua(t){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return t(n,r,a);const{cache:i}=a,s=i.get(n),o=i.get(r);if(s&&o)return s===r&&o===n;i.set(n,r),i.set(r,n);const l=t(n,r,a);return i.delete(n),i.delete(r),l}}function i2(t){return t?.[Symbol.toStringTag]}function Fg(t){return n2(t).concat(r2(t))}const s2=Object.hasOwn||((t,e)=>a2.call(t,e));function Wn(t,e){return t===e||!t&&!e&&t!==t&&e!==e}const o2="__v",l2="__o",u2="_owner",{getOwnPropertyDescriptor:Bg,keys:Ug}=Object;function c2(t,e){return t.byteLength===e.byteLength&&Si(new Uint8Array(t),new Uint8Array(e))}function d2(t,e,n){let r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function p2(t,e){return t.byteLength===e.byteLength&&Si(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function f2(t,e){return Wn(t.getTime(),e.getTime())}function h2(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function m2(t,e){return t===e}function Hg(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const a=new Array(r),i=t.entries();let s,o,l=0;for(;(s=i.next())&&!s.done;){const u=e.entries();let c=!1,d=0;for(;(o=u.next())&&!o.done;){if(a[d]){d++;continue}const p=s.value,f=o.value;if(n.equals(p[0],f[0],l,d,t,e,n)&&n.equals(p[1],f[1],p[0],f[0],t,e,n)){c=a[d]=!0;break}d++}if(!c)return!1;l++}return!0}const g2=Wn;function b2(t,e,n){const r=Ug(t);let a=r.length;if(Ug(e).length!==a)return!1;for(;a-- >0;)if(!mv(t,e,n,r[a]))return!1;return!0}function Or(t,e,n){const r=Fg(t);let a=r.length;if(Fg(e).length!==a)return!1;let i,s,o;for(;a-- >0;)if(i=r[a],!mv(t,e,n,i)||(s=Bg(t,i),o=Bg(e,i),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function E2(t,e){return Wn(t.valueOf(),e.valueOf())}function T2(t,e){return t.source===e.source&&t.flags===e.flags}function $g(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const a=new Array(r),i=t.values();let s,o;for(;(s=i.next())&&!s.done;){const l=e.values();let u=!1,c=0;for(;(o=l.next())&&!o.done;){if(!a[c]&&n.equals(s.value,o.value,s.value,o.value,t,e,n)){u=a[c]=!0;break}c++}if(!u)return!1}return!0}function Si(t,e){let n=t.byteLength;if(e.byteLength!==n||t.byteOffset!==e.byteOffset)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function y2(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function mv(t,e,n,r){return(r===u2||r===l2||r===o2)&&(t.$$typeof||e.$$typeof)?!0:s2(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}const S2="[object ArrayBuffer]",A2="[object Arguments]",N2="[object Boolean]",v2="[object DataView]",_2="[object Date]",C2="[object Error]",I2="[object Map]",R2="[object Number]",x2="[object Object]",k2="[object RegExp]",w2="[object Set]",O2="[object String]",L2={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},D2="[object URL]",M2=Object.prototype.toString;function P2({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:d,areTypedArraysEqual:p,areUrlsEqual:f,unknownTagComparators:h}){return function(E,T,y){if(E===T)return!0;if(E==null||T==null)return!1;const S=typeof E;if(S!==typeof T)return!1;if(S!=="object")return S==="number"?o(E,T,y):S==="function"?i(E,T,y):!1;const N=E.constructor;if(N!==T.constructor)return!1;if(N===Object)return l(E,T,y);if(Array.isArray(E))return e(E,T,y);if(N===Date)return r(E,T,y);if(N===RegExp)return c(E,T,y);if(N===Map)return s(E,T,y);if(N===Set)return d(E,T,y);const _=M2.call(E);if(_===_2)return r(E,T,y);if(_===k2)return c(E,T,y);if(_===I2)return s(E,T,y);if(_===w2)return d(E,T,y);if(_===x2)return typeof E.then!="function"&&typeof T.then!="function"&&l(E,T,y);if(_===D2)return f(E,T,y);if(_===C2)return a(E,T,y);if(_===A2)return l(E,T,y);if(L2[_])return p(E,T,y);if(_===S2)return t(E,T,y);if(_===v2)return n(E,T,y);if(_===N2||_===R2||_===O2)return u(E,T,y);if(h){let A=h[_];if(!A){const v=i2(E);v&&(A=h[v])}if(A)return A(E,T,y)}return!1}}function F2({circular:t,createCustomConfig:e,strict:n}){let r={areArrayBuffersEqual:c2,areArraysEqual:n?Or:d2,areDataViewsEqual:p2,areDatesEqual:f2,areErrorsEqual:h2,areFunctionsEqual:m2,areMapsEqual:n?oo(Hg,Or):Hg,areNumbersEqual:g2,areObjectsEqual:n?Or:b2,arePrimitiveWrappersEqual:E2,areRegExpsEqual:T2,areSetsEqual:n?oo($g,Or):$g,areTypedArraysEqual:n?oo(Si,Or):Si,areUrlsEqual:y2,unknownTagComparators:void 0};if(e&&(r=Object.assign({},r,e(r))),t){const a=Ua(r.areArraysEqual),i=Ua(r.areMapsEqual),s=Ua(r.areObjectsEqual),o=Ua(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:o})}return r}function B2(t){return function(e,n,r,a,i,s,o){return t(e,n,o)}}function U2({circular:t,comparator:e,createState:n,equals:r,strict:a}){if(n)return function(o,l){const{cache:u=t?new WeakMap:void 0,meta:c}=n();return e(o,l,{cache:u,equals:r,meta:c,strict:a})};if(t)return function(o,l){return e(o,l,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(o,l){return e(o,l,i)}}const H2=gn();gn({strict:!0});gn({circular:!0});gn({circular:!0,strict:!0});gn({createInternalComparator:()=>Wn});gn({strict:!0,createInternalComparator:()=>Wn});gn({circular:!0,createInternalComparator:()=>Wn});gn({circular:!0,createInternalComparator:()=>Wn,strict:!0});function gn(t={}){const{circular:e=!1,createInternalComparator:n,createState:r,strict:a=!1}=t,i=F2(t),s=P2(i),o=n?n(s):B2(s);return U2({circular:e,comparator:s,createState:r,equals:o,strict:a})}var $2=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},j2=({contentComponent:t})=>{const e=DS.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return b.jsx(b.Fragment,{children:Object.values(e)})};function q2(){const t=new Set;let e={};return{subscribe(n){return t.add(n),()=>{t.delete(n)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(n,r){e={...e,[n]:IC.createPortal(r.reactElement,r.element,n)},t.forEach(a=>a())},removeRenderer(n){const r={...e};delete r[n],e=r,t.forEach(a=>a())}}}var z2=class extends Qe.Component{constructor(t){var e;super(t),this.editorContentRef=Qe.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!((e=t.editor)!=null&&e.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var t;const e=this.props.editor;if(e&&!e.isDestroyed&&((t=e.view.dom)!=null&&t.parentNode)){if(e.contentComponent)return;const n=this.editorContentRef.current;n.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:n}),e.contentComponent=q2(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(r=>r.hasContentComponentInitialized?r:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var t;const e=this.props.editor;if(e){this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null;try{if(!((t=e.view.dom)!=null&&t.parentNode))return;const n=document.createElement("div");n.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:n})}catch{}}}render(){const{editor:t,innerRef:e,...n}=this.props;return b.jsxs(b.Fragment,{children:[b.jsx("div",{ref:$2(e,this.editorContentRef),...n}),t?.contentComponent&&b.jsx(j2,{contentComponent:t.contentComponent})]})}},G2=L.forwardRef((t,e)=>{const n=Qe.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return Qe.createElement(z2,{key:n,innerRef:e,...t})}),Ph=Qe.memo(G2),V2=typeof window<"u"?L.useLayoutEffect:L.useEffect,W2=class{constructor(t){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}watch(t){if(this.editor=t,this.editor){const e=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},n=this.editor;return n.on("transaction",e),()=>{n.off("transaction",e)}}}};function Y2(t){var e;const[n]=L.useState(()=>new W2(t.editor)),r=CC.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!=null?e:H2);return V2(()=>n.watch(t.editor),[t.editor,n]),L.useDebugValue(r),r}var K2=!1,wf=typeof window>"u",X2=wf||!!(typeof window<"u"&&window.next),Z2=class gv{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?wf||X2?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const e={...this.options.current,onBeforeCreate:(...r)=>{var a,i;return(i=(a=this.options.current).onBeforeCreate)==null?void 0:i.call(a,...r)},onBlur:(...r)=>{var a,i;return(i=(a=this.options.current).onBlur)==null?void 0:i.call(a,...r)},onCreate:(...r)=>{var a,i;return(i=(a=this.options.current).onCreate)==null?void 0:i.call(a,...r)},onDestroy:(...r)=>{var a,i;return(i=(a=this.options.current).onDestroy)==null?void 0:i.call(a,...r)},onFocus:(...r)=>{var a,i;return(i=(a=this.options.current).onFocus)==null?void 0:i.call(a,...r)},onSelectionUpdate:(...r)=>{var a,i;return(i=(a=this.options.current).onSelectionUpdate)==null?void 0:i.call(a,...r)},onTransaction:(...r)=>{var a,i;return(i=(a=this.options.current).onTransaction)==null?void 0:i.call(a,...r)},onUpdate:(...r)=>{var a,i;return(i=(a=this.options.current).onUpdate)==null?void 0:i.call(a,...r)},onContentError:(...r)=>{var a,i;return(i=(a=this.options.current).onContentError)==null?void 0:i.call(a,...r)},onDrop:(...r)=>{var a,i;return(i=(a=this.options.current).onDrop)==null?void 0:i.call(a,...r)},onPaste:(...r)=>{var a,i;return(i=(a=this.options.current).onPaste)==null?void 0:i.call(a,...r)},onDelete:(...r)=>{var a,i;return(i=(a=this.options.current).onDelete)==null?void 0:i.call(a,...r)}};return new zO(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(r=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)?!0:r==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((a,i)=>{var s;return a===((s=n.extensions)==null?void 0:s[i])}):e[r]===n[r])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?gv.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((r,a)=>r===e[a]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function bv(t={},e=[]){const n=L.useRef(t);n.current=t;const[r]=L.useState(()=>new Z2(n)),a=DS.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return L.useDebugValue(a),L.useEffect(r.onRender(e)),Y2({editor:a,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1||t.shouldRerenderOnTransaction===void 0?null:t.immediatelyRender&&i===0?0:i+1}),a}var Is=L.createContext({editor:null});Is.Consumer;var Ev=()=>L.useContext(Is),Tv=L.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),Q2=()=>L.useContext(Tv),yv=Qe.forwardRef((t,e)=>{const{onDragStart:n}=Q2(),r=t.as||"div";return b.jsx(r,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});function jg(t){return!!(typeof t=="function"&&t.prototype&&t.prototype.isReactComponent)}function qg(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.forward_ref)"||t.$$typeof.description==="react.forward_ref"))}function J2(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.memo)"||t.$$typeof.description==="react.memo"))}function eL(t){if(jg(t)||qg(t))return!0;if(J2(t)){const e=t.type;if(e)return jg(e)||qg(e)}return!1}function tL(){try{if(L.version)return parseInt(L.version.split(".")[0],10)>=19}catch{}return!1}var nL=class{constructor(t,{editor:e,props:n={},as:r="div",className:a=""}){this.ref=null,this.destroyed=!1,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=t,this.editor=e,this.props=n,this.element=document.createElement(r),this.element.classList.add("react-renderer"),a&&this.element.classList.add(...a.split(" ")),this.editor.isInitialized?MS.flushSync(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var t;if(this.destroyed)return;const e=this.component,n=this.props,r=this.editor,a=tL(),i=eL(e),s={...n};s.ref&&!(a||i)&&delete s.ref,!s.ref&&(a||i)&&(s.ref=o=>{this.ref=o}),this.reactElement=b.jsx(e,{...s}),(t=r?.contentComponent)==null||t.setRenderer(this.id,this)}updateProps(t={}){this.destroyed||(this.props={...this.props,...t},this.render())}destroy(){var t;this.destroyed=!0;const e=this.editor;(t=e?.contentComponent)==null||t.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(t){Object.keys(t).forEach(e=>{this.element.setAttribute(e,t[e])})}};Qe.createContext({markViewContentRef:()=>{}});var rL=class extends t2{constructor(t,e,n){if(super(t,e,n),this.selectionRafId=null,this.cachedExtensionWithSyncedStorage=null,!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";const r=this.dom.querySelector("[data-node-view-content]");if(!r)return;r.appendChild(this.contentDOMElement)}}get extensionWithSyncedStorage(){if(!this.cachedExtensionWithSyncedStorage){const t=this.editor,e=this.extension;this.cachedExtensionWithSyncedStorage=new Proxy(e,{get(n,r,a){var i;return r==="storage"?(i=t.storage[e.name])!=null?i:{}:Reflect.get(n,r,a)}})}return this.cachedExtensionWithSyncedStorage}mount(){const t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extensionWithSyncedStorage,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(l={})=>this.updateAttributes(l),deleteNode:()=>this.deleteNode(),ref:L.createRef()};if(!this.component.displayName){const l=u=>u.charAt(0).toUpperCase()+u.substring(1);this.component.displayName=l(this.extension.name)}const r={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:l=>{l&&this.contentDOMElement&&l.firstChild!==this.contentDOMElement&&(l.hasAttribute("data-node-view-wrapper")&&l.removeAttribute("data-node-view-wrapper"),l.appendChild(this.contentDOMElement))}},a=this.component,i=L.memo(l=>b.jsx(Tv.Provider,{value:r,children:L.createElement(a,l)}));i.displayName="ReactNodeView";let s=this.node.isInline?"span":"div";this.options.as&&(s=this.options.as);const{className:o=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new nL(i,{editor:this.editor,props:t,as:s,className:`node-${this.node.type.name} ${o}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var t;if(this.renderer.element.firstElementChild&&!((t=this.renderer.element.firstElementChild)!=null&&t.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null),this.selectionRafId=requestAnimationFrame(()=>{this.selectionRafId=null;const{from:t,to:e}=this.editor.state.selection,n=this.getPos();if(typeof n=="number")if(t<=n&&e>=n+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}})}update(t,e,n){const r=a=>{this.renderer.updateProps(a),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(t.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const a=this.node,i=this.decorations,s=this.innerDecorations;return this.node=t,this.decorations=e,this.innerDecorations=n,this.options.update({oldNode:a,oldDecorations:i,newNode:t,newDecorations:e,oldInnerDecorations:s,innerDecorations:n,updateProps:()=>r({node:t,decorations:e,innerDecorations:n,extension:this.extensionWithSyncedStorage})})}return t===this.node&&this.decorations===e&&this.innerDecorations===n||(this.node=t,this.decorations=e,this.innerDecorations=n,r({node:t,decorations:e,innerDecorations:n,extension:this.extensionWithSyncedStorage})),!0}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null,this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null)}updateElementAttributes(){if(this.options.attrs){let t={};if(typeof this.options.attrs=="function"){const e=this.editor.extensionManager.attributes,n=mr(this.node,e);t=this.options.attrs({node:this.node,HTMLAttributes:n})}else t=this.options.attrs;this.renderer.updateAttributes(t)}}};function Sv(t,e){return n=>n.editor.contentComponent?new rL(t,n,e):{}}var Fh=L.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});Fh.displayName="TiptapContext";var aL=()=>L.useContext(Fh);function Av({editor:t,instance:e,children:n}){const r=t??e;if(!r)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const a=L.useMemo(()=>({editor:r}),[r]),i=L.useMemo(()=>({editor:r}),[r]);return b.jsx(Is.Provider,{value:i,children:b.jsx(Fh.Provider,{value:a,children:n})})}Av.displayName="Tiptap";function Nv({...t}){const{editor:e}=aL();return b.jsx(Ph,{editor:e,...t})}Nv.displayName="Tiptap.Content";Object.assign(Av,{Content:Nv});function vv(t,e,n){t.chain().focus().insertContentAt(e,[_v(n),{type:"text",text:" "}]).run()}function _v(t){return{type:"mention",attrs:t}}function iL(t){const e=Y.c(7),{node:n,selected:r,view:a}=t,{name:i,char:s}=n.attrs,o=r&&a.editable,u=s==="@"?"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400":"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300",c=o&&"outline-2 outline-blue-300 outline-offset-0";let d;e[0]!==u||e[1]!==c?(d=ee("px-1 py-1 rounded","inline-flex items-center gap-1","cursor-default select-none","text-xs font-light",u,c),e[0]=u,e[1]=c,e[2]=d):d=e[2];let p;return e[3]!==s||e[4]!==i||e[5]!==d?(p=b.jsxs(yv,{className:d,children:[s,i]}),e[3]=s,e[4]=i,e[5]=d,e[6]=p):p=e[6],p}const Cv=tt.create({name:"mention",group:"inline",inline:!0,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id")||null,renderHTML:t=>t.id?{"data-id":t.id}:{}},name:{default:null,parseHTML:t=>t.getAttribute("data-name")||null,renderHTML:t=>t.name?{"data-name":t.name}:{}},char:{default:"/",parseHTML:t=>t.getAttribute("data-char")||"/",renderHTML:t=>t.char?{"data-char":t.char}:{}},metadata:{default:null,parseHTML:t=>{try{return JSON.parse(t.getAttribute("data-metadata")||"null")}catch{return null}},renderHTML:t=>t.metadata?{"data-metadata":JSON.stringify(t.metadata)}:{}}}},parseHTML(){return[{tag:'span[data-type="mention"]'}]},renderHTML({node:t,HTMLAttributes:e}){const n={"data-type":"mention"};return t.attrs.id&&(n["data-id"]=t.attrs.id),t.attrs.name&&(n["data-name"]=t.attrs.name),t.attrs.char&&(n["data-char"]=t.attrs.char),t.attrs.metadata&&(n["data-metadata"]=JSON.stringify(t.attrs.metadata)),["span",{...e,...n}]},renderText({node:t}){const e=t.attrs.char??"@",n=t.attrs.name??"";return`${e}${n}`},addNodeView(){return Sv(iL)}});function sL(t){return!t||!t.content||t.content.length===0?!0:t.content.every(e=>e.type==="paragraph"?!e.content||e.content.length===0?!0:e.content.every(n=>n.type==="hardBreak"||n.type==="text"&&(!n.text||n.text.trim()==="")):!1)}function oL(t,e){return{type:"doc",content:[...t?.content??[],e].filter(Boolean)}}const zg=3;function lL(t){const e=Y.c(23),{prompt:n,onSelect:r,isSelected:a,isDisabled:i,isLoading:s}=t,o=n.description??n.name;let l;e[0]!==r||e[1]!==n?(l=()=>r(n),e[0]=r,e[1]=n,e[2]=l):l=e[2];const u=i||s,c=a&&"bg-accent/50 text-foreground",d=s&&"bg-accent/50 text-foreground",p=(i||s)&&"cursor-not-allowed hover:bg-accent/50";let f;e[3]!==c||e[4]!==d||e[5]!==p?(f=ee("px-3 py-1.5 text-xs text-muted-foreground hover:text-foreground border border-border rounded-full hover:bg-accent/50 transition-colors cursor-pointer flex items-center gap-1.5",c,d,p),e[3]=c,e[4]=d,e[5]=p,e[6]=f):f=e[6];const h=n.title??n.name;let g;if(e[7]!==h){let N;e[9]===Symbol.for("react.memo_cache_sentinel")?(N=/_/g,e[9]=N):N=e[9],g=h.replace(N," "),e[7]=h,e[8]=g}else g=e[8];let E;e[10]!==s?(E=s&&b.jsx(rs,{size:"xs"}),e[10]=s,e[11]=E):E=e[11];let T;e[12]!==l||e[13]!==u||e[14]!==f||e[15]!==g||e[16]!==E?(T=b.jsx(ct,{asChild:!0,children:b.jsxs("button",{type:"button",onClick:l,disabled:u,className:f,children:[g,E]})}),e[12]=l,e[13]=u,e[14]=f,e[15]=g,e[16]=E,e[17]=T):T=e[17];let y;e[18]!==o?(y=b.jsx(dt,{side:"bottom",className:"max-w-xs",children:b.jsx("p",{className:"text-xs",children:o})}),e[18]=o,e[19]=y):y=e[19];let S;return e[20]!==T||e[21]!==y?(S=b.jsxs(ut,{children:[T,y]}),e[20]=T,e[21]=y,e[22]=S):S=e[22],S}function uL(t){const e=Y.c(23),{prompts:n,onSelect:r,loadingPrompt:a,className:i}=t;if(n.length===0)return null;let s,o,l,u,c;if(e[0]!==i||e[1]!==a||e[2]!==r||e[3]!==n){const f=n.slice(0,zg),h=n.slice(zg),g=h.length>0,E=!!a;s=as,c=300,e[9]!==i?(o=ee("flex flex-wrap items-center justify-center gap-2",i),e[9]=i,e[10]=o):o=e[10];let T;e[11]!==E||e[12]!==a?.name||e[13]!==r?(T=y=>b.jsx(lL,{prompt:y,onSelect:r,isLoading:a?.name===y.name,isDisabled:E&&a?.name!==y.name},y.name),e[11]=E,e[12]=a?.name,e[13]=r,e[14]=T):T=e[14],l=f.map(T),u=g&&b.jsxs(yr,{children:[b.jsx(Sr,{asChild:!0,children:b.jsxs("button",{type:"button",disabled:E,className:ee("size-7 flex items-center justify-center text-xs text-muted-foreground hover:text-foreground border border-border rounded-full hover:bg-accent/50 transition-colors cursor-pointer",E&&"opacity-60 cursor-not-allowed"),children:["+",h.length]})}),b.jsx(Ar,{side:"bottom",align:"center",className:"w-auto p-2",children:b.jsx("div",{className:"flex flex-col gap-1",children:h.map(y=>{const S=y.description??y.name,N=a?.name===y.name;return b.jsxs(ut,{children:[b.jsx(ct,{asChild:!0,children:b.jsxs("button",{type:"button",onClick:()=>r(y),disabled:E&&!N,className:ee("px-3 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-accent/50 rounded-md transition-colors cursor-pointer text-left flex items-center gap-1.5",N&&"bg-accent/50 text-foreground",E&&!N&&"opacity-60 cursor-not-allowed"),children:[(y.title??y.name).replace(/_/g," "),N&&b.jsx(rs,{size:"xs"})]})}),b.jsx(dt,{side:"right",className:"max-w-xs",children:b.jsx("p",{className:"text-xs",children:S})})]},y.name)})})})]}),e[0]=i,e[1]=a,e[2]=r,e[3]=n,e[4]=s,e[5]=o,e[6]=l,e[7]=u,e[8]=c}else s=e[4],o=e[5],l=e[6],u=e[7],c=e[8];let d;e[15]!==o||e[16]!==l||e[17]!==u?(d=b.jsxs("div",{className:o,children:[l,u]}),e[15]=o,e[16]=l,e[17]=u,e[18]=d):d=e[18];let p;return e[19]!==s||e[20]!==c||e[21]!==d?(p=b.jsx(s,{delayDuration:c,children:d}),e[19]=s,e[20]=c,e[21]=d,e[22]=p):p=e[22],p}function cL(){const t=Y.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs(b.Fragment,{children:[b.jsx(Sm,{className:"h-6 w-20 rounded-full border border-border"}),b.jsx(Sm,{className:"h-6 w-24 rounded-full border border-border"})]}),t[0]=e):e=t[0],e}function dL(t,e){switch(e.type){case"SELECT_PROMPT":return!e.prompt.arguments||e.prompt.arguments.length===0?{stage:"loading",prompt:e.prompt}:{stage:"idle"};case"START_LOADING":return{stage:"loading",prompt:e.prompt,arguments:e.arguments};case"RESET":return{stage:"idle"};default:return t}}function pL(t){const e=Y.c(28),{connectionId:n}=t,{tiptapDocRef:r,sendMessage:a}=Sa(),{org:i}=jn();let s;e[0]!==n||e[1]!==i.id?(s={connectionId:n,orgId:i.id},e[0]=n,e[1]=i.id,e[2]=s):s=e[2];const o=is(s);let l;e[3]!==o?(l={client:o,staleTime:6e4},e[3]=o,e[4]=l):l=e[4];const{data:u}=KC(l);let c;e[5]!==u?.prompts?(c=u?.prompts??[],e[5]=u?.prompts,e[6]=c):c=e[6];const d=c;let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={stage:"idle"},e[7]=p):p=e[7];const[f,h]=L.useReducer(dL,p),[g,E]=L.useState(null);let T;e[8]!==o||e[9]!==a||e[10]!==r?(T=async(M,H)=>{if(!o){$t.error("MCP client not available"),h({type:"RESET"});return}try{const F=await qS(o,M.name,H);h({type:"RESET"});const $=oL(r.current,{type:"paragraph",content:[_v({id:M.name,name:M.name,metadata:F.messages,char:"/"})]});await a($)}catch(F){console.error("[ice-breakers] Failed to fetch prompt:",F),$t.error("Failed to load prompt. Please try again."),h({type:"RESET"})}},e[8]=o,e[9]=a,e[10]=r,e[11]=T):T=e[11];const y=T;let S;e[12]!==y?(S=async M=>{if(M.arguments&&M.arguments.length>0){h({type:"SELECT_PROMPT",prompt:M}),E(M);return}h({type:"START_LOADING",prompt:M}),await y(M)},e[12]=y,e[13]=S):S=e[13];const N=S;let _;e[14]!==g||e[15]!==y?(_=async M=>{g&&(h({type:"START_LOADING",prompt:g,arguments:M}),E(null),await y(g,M))},e[14]=g,e[15]=y,e[16]=_):_=e[16];const A=_;if(d.length===0)return null;const v=f.stage==="loading"?f.prompt:null;let R;e[17]!==N||e[18]!==d||e[19]!==v?(R=b.jsx(uL,{prompts:d,onSelect:N,loadingPrompt:v}),e[17]=N,e[18]=d,e[19]=v,e[20]=R):R=e[20];let I;e[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{E(null),h({type:"RESET"})},e[21]=I):I=e[21];let O;e[22]!==g||e[23]!==A?(O=b.jsx(oA,{prompt:g,setPrompt:I,onSubmit:A}),e[22]=g,e[23]=A,e[24]=O):O=e[24];let w;return e[25]!==O||e[26]!==R?(w=b.jsxs("div",{className:"relative w-full",children:[R,O]}),e[25]=O,e[26]=R,e[27]=w):w=e[27],w}function fL(t){const e=Y.c(14),{className:n}=t,{selectedVirtualMcp:r}=Sa(),{org:a}=jn();let i;e[0]!==a.id?(i=jS(a.id),e[0]=a.id,e[1]=i):i=e[1];const s=i.id,o=r?.id??s;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l={minHeight:"32px"},e[2]=l):l=e[2];let u;e[3]!==n?(u=ee("flex flex-wrap items-center justify-center gap-2",n),e[3]=n,e[4]=u):u=e[4];const c=o??"default";let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=b.jsx(cL,{}),e[5]=d):d=e[5];let p;e[6]!==o?(p=b.jsx(pL,{connectionId:o}),e[6]=o,e[7]=p):p=e[7];let f;e[8]!==c||e[9]!==p?(f=b.jsx(PS,{fallback:null,children:b.jsx(L.Suspense,{fallback:d,children:p},c)}),e[8]=c,e[9]=p,e[10]=f):f=e[10];let h;return e[11]!==u||e[12]!==f?(h=b.jsx("div",{style:l,className:u,children:f}),e[11]=u,e[12]=f,e[13]=h):h=e[13],h}const Gg=[{border:"border-purple-400",bg:"bg-purple-400",text:"text-white",bgLight:"bg-purple-400/10"},{border:"border-blue-400",bg:"bg-blue-400",text:"text-white",bgLight:"bg-blue-400/10"},{border:"border-indigo-400",bg:"bg-indigo-400",text:"text-white",bgLight:"bg-indigo-400/10"},{border:"border-violet-400",bg:"bg-violet-400",text:"text-white",bgLight:"bg-violet-400/10"},{border:"border-pink-400",bg:"bg-pink-400",text:"text-white",bgLight:"bg-pink-400/10"},{border:"border-fuchsia-400",bg:"bg-fuchsia-400",text:"text-white",bgLight:"bg-fuchsia-400/10"},{border:"border-emerald-400",bg:"bg-emerald-400",text:"text-white",bgLight:"bg-emerald-400/10"},{border:"border-teal-400",bg:"bg-teal-400",text:"text-white",bgLight:"bg-teal-400/10"},{border:"border-cyan-400",bg:"bg-cyan-400",text:"text-white",bgLight:"bg-cyan-400/10"},{border:"border-sky-400",bg:"bg-sky-400",text:"text-white",bgLight:"bg-sky-400/10"},{border:"border-orange-400",bg:"bg-orange-400",text:"text-white",bgLight:"bg-orange-400/10"},{border:"border-amber-400",bg:"bg-amber-400",text:"text-white",bgLight:"bg-amber-400/10"},{border:"border-rose-400",bg:"bg-rose-400",text:"text-white",bgLight:"bg-rose-400/10"},{border:"border-lime-400",bg:"bg-lime-400",text:"text-white",bgLight:"bg-lime-400/10"}];function hL(t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);return Math.abs(e)}function Iv(t){if(t==null)return null;const n=hL(t)%Gg.length;return Gg[n]}function Rv(t){return t?t.split(/[_-]/).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "):""}function xv(t,e){return t==="output-error"?"error":t==="approval-requested"?"approval":t==="input-streaming"||t==="input-available"||t==="output-available"&&e===!0?"loading":"idle"}function kv(t){const e=Y.c(21),{current:n,total:r,onPrev:a,onNext:i}=t;if(r<=1)return null;const s=n===0,o=n===0?"opacity-30 cursor-not-allowed":"hover:text-foreground cursor-pointer";let l;e[0]!==o?(l=ee("p-0.5 rounded transition-colors",o),e[0]=o,e[1]=l):l=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=b.jsx(gI,{size:14}),e[2]=u):u=e[2];let c;e[3]!==a||e[4]!==s||e[5]!==l?(c=b.jsx("button",{type:"button",onClick:a,disabled:s,className:l,"aria-label":"Previous question",children:u}),e[3]=a,e[4]=s,e[5]=l,e[6]=c):c=e[6];const d=n+1;let p;e[7]!==d||e[8]!==r?(p=b.jsxs("span",{className:"tabular-nums text-xs",children:[d," of ",r]}),e[7]=d,e[8]=r,e[9]=p):p=e[9];const f=n===r-1,h=n===r-1?"opacity-30 cursor-not-allowed":"hover:text-foreground cursor-pointer";let g;e[10]!==h?(g=ee("p-0.5 rounded transition-colors",h),e[10]=h,e[11]=g):g=e[11];let E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=b.jsx(bI,{size:14}),e[12]=E):E=e[12];let T;e[13]!==i||e[14]!==g||e[15]!==f?(T=b.jsx("button",{type:"button",onClick:i,disabled:f,className:g,"aria-label":"Next question",children:E}),e[13]=i,e[14]=g,e[15]=f,e[16]=T):T=e[16];let y;return e[17]!==T||e[18]!==c||e[19]!==p?(y=b.jsxs("div",{className:"flex items-center gap-1 text-sm text-muted-foreground",children:[c,p,T]}),e[17]=T,e[18]=c,e[19]=p,e[20]=y):y=e[20],y}function Of(t){const e=Y.c(15),{title:n,children:r,footerLeft:a,footerRight:i}=t;let s;e[0]!==n?(s=b.jsx("div",{className:"flex items-center gap-2 p-4",children:b.jsx("p",{className:"flex-1 text-base font-medium text-foreground min-w-0",children:n})}),e[0]=n,e[1]=s):s=e[1];let o;e[2]!==r?(o=b.jsx("div",{className:"overflow-clip pb-4",children:r}),e[2]=r,e[3]=o):o=e[3];let l;e[4]!==a?(l=b.jsx("div",{children:a}),e[4]=a,e[5]=l):l=e[5];let u;e[6]!==i?(u=b.jsx("div",{className:"flex items-center gap-2",children:i}),e[6]=i,e[7]=u):u=e[7];let c;e[8]!==l||e[9]!==u?(c=b.jsx("div",{className:"border-t border-border px-3 py-3 pb-6",children:b.jsxs("div",{className:"flex items-center justify-between",children:[l,u]})}),e[8]=l,e[9]=u,e[10]=c):c=e[10];let d;return e[11]!==s||e[12]!==o||e[13]!==c?(d=b.jsxs("div",{className:"flex flex-col rounded-xl bg-background border border-border shadow-md w-[calc(100%-16px)] max-w-[584px] mx-auto mb-[-16px]",children:[s,o,c]}),e[11]=s,e[12]=o,e[13]=c,e[14]=d):d=e[14],d}const mL="User denied this tool call, give other alternatives.",gL=[{value:"none",label:"Always ask"},{value:"readonly",label:"Skip read-only"},{value:"yolo",label:"Auto-approve all"}];function bL(t){const e=Y.c(9),{onYolo:n}=t,[r,a]=WC();let i;e[0]!==n||e[1]!==r||e[2]!==a?(i=c=>{const d=c;a({...r,toolApprovalLevel:d}),d==="yolo"&&n()},e[0]=n,e[1]=r,e[2]=a,e[3]=i):i=e[3];const s=i;let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx(hI,{size:"xs",className:"text-xs text-muted-foreground border-border/60 bg-transparent hover:bg-accent/60 h-7 gap-1",onClick:TL,children:b.jsx(mI,{})}),e[4]=o):o=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=b.jsx(dI,{children:gL.map(EL)}),e[5]=l):l=e[5];let u;return e[6]!==s||e[7]!==r.toolApprovalLevel?(u=b.jsxs(pI,{value:r.toolApprovalLevel,onValueChange:s,children:[o,l]}),e[6]=s,e[7]=r.toolApprovalLevel,e[8]=u):u=e[8],u}function EL(t){return b.jsx(fI,{value:t.value,children:t.label},t.value)}function TL(t){return t.stopPropagation()}function yL(t){const e=Y.c(5),{input:n}=t;if(n==null){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx("div",{className:"px-4 text-xs text-muted-foreground",children:"No input"}),e[0]=i):i=e[0],i}let r;try{let i;e[1]!==n?(i=JSON.stringify(n,null,2),e[1]=n,e[2]=i):i=e[2],r=i}catch{r=String(n)}let a;return e[3]!==r?(a=b.jsx("div",{className:"px-4",children:b.jsx("pre",{className:"text-xs font-mono text-muted-foreground/70 whitespace-pre-wrap wrap-break-word max-h-32 overflow-y-auto rounded-md bg-muted/30 px-3 py-2",children:r})}),e[3]=r,e[4]=a):a=e[4],a}function SL(t){const e=Y.c(42),{approvals:n,onRespond:r}=t,[a,i]=L.useState(0),s=Math.min(a,n.length-1),o=n[s];if(!o)return null;let l;e[0]!==o.approvalId||e[1]!==r?(l=()=>{r(o.approvalId,!1,mL)},e[0]=o.approvalId,e[1]=r,e[2]=l):l=e[2];const u=l;let c;e[3]!==o.approvalId||e[4]!==r?(c=()=>{r(o.approvalId,!0)},e[3]=o.approvalId,e[4]=r,e[5]=c):c=e[5];const d=c;let p;e[6]!==n||e[7]!==r?(p=()=>{for(const H of n)r(H.approvalId,!0)},e[6]=n,e[7]=r,e[8]=p):p=e[8];const f=p;let h;e[9]!==s?(h=()=>{s>0&&i(s-1)},e[9]=s,e[10]=h):h=e[10];const g=h;let E;e[11]!==n.length||e[12]!==s?(E=()=>{s<n.length-1&&i(s+1)},e[11]=n.length,e[12]=s,e[13]=E):E=e[13];const T=E;let y;e[14]!==f?(y=b.jsx(bL,{onYolo:f}),e[14]=f,e[15]=y):y=e[15];let S;e[16]!==n.length||e[17]!==T||e[18]!==g||e[19]!==s?(S=b.jsx(kv,{current:s,total:n.length,onPrev:g,onNext:T}),e[16]=n.length,e[17]=T,e[18]=g,e[19]=s,e[20]=S):S=e[20];let N;e[21]!==y||e[22]!==S?(N=b.jsxs("div",{className:"flex items-center gap-2",children:[y,S]}),e[21]=y,e[22]=S,e[23]=N):N=e[23];const _=N;let A;e[24]!==u?(A=b.jsx(ke,{type:"button",variant:"ghost",size:"sm",className:"h-7 px-2.5 text-xs text-muted-foreground [@media(hover:hover)]:hover:text-foreground active:scale-[0.97] transition-transform",onClick:u,children:"Deny"}),e[24]=u,e[25]=A):A=e[25];let v;e[26]!==n.length||e[27]!==f?(v=n.length>1&&b.jsx(ke,{type:"button",variant:"outline",size:"sm",className:"h-7 px-2.5 text-xs active:scale-[0.97] transition-transform",onClick:f,children:"Accept All"}),e[26]=n.length,e[27]=f,e[28]=v):v=e[28];let R;e[29]!==d?(R=b.jsx(ke,{type:"button",size:"sm",className:"h-7 px-2.5 text-xs active:scale-[0.97] transition-transform",onClick:d,children:"Accept"}),e[29]=d,e[30]=R):R=e[30];let I;e[31]!==v||e[32]!==R||e[33]!==A?(I=b.jsxs(b.Fragment,{children:[A,v,R]}),e[31]=v,e[32]=R,e[33]=A,e[34]=I):I=e[34];const O=I;let w;e[35]!==o.input?(w=b.jsx(yL,{input:o.input}),e[35]=o.input,e[36]=w):w=e[36];let M;return e[37]!==o.friendlyName||e[38]!==_||e[39]!==O||e[40]!==w?(M=b.jsx(Of,{title:o.friendlyName,footerLeft:_,footerRight:O,children:w}),e[37]=o.friendlyName,e[38]=_,e[39]=O,e[40]=w,e[41]=M):M=e[41],M}function AL(){const t=Y.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs("div",{className:"flex items-center gap-2 p-4 border border-dashed rounded-lg bg-accent/50 w-[calc(100%-16px)] max-w-[584px] mx-auto mb-2",children:[b.jsx(rA,{className:"size-5 text-muted-foreground shimmer"}),b.jsx("span",{className:"text-sm text-muted-foreground shimmer",children:"Preparing approval request..."})]}),t[0]=e):e=t[0],e}function NL(t){const e=Y.c(4),{approvals:n,isStreaming:r,onRespond:a}=t;if(r&&n.length===0){let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx(AL,{}),e[0]=s):s=e[0],s}if(n.length===0)return null;let i;return e[1]!==n||e[2]!==a?(i=b.jsx(SL,{approvals:n,onRespond:a}),e[1]=n,e[2]=a,e[3]=i):i=e[3],i}function vL(t){const e=[];for(const n of t)if("state"in n&&n.state==="approval-requested"&&"approval"in n&&n.approval?.id&&"toolCallId"in n&&n.toolCallId){const r="toolName"in n&&typeof n.toolName=="string"?n.toolName:n.type.startsWith("tool-")?n.type.replace("tool-",""):"Tool";e.push({approvalId:n.approval.id,toolCallId:n.toolCallId,toolName:r,friendlyName:Rv(r),input:n.input})}return e}const Vg=Tr({response:oi().min(1,"Response is required")}),_L=Tr({response:oi().min(1,"Please select or enter an option")}),CL=Tr({response:RC(["yes","no"])});function IL(t){switch(t.type){case"text":return Vg;case"choice":return _L;case"confirm":return CL;default:return Vg}}function RL(t){const e={};for(const n of t)e[n.toolCallId]=IL(n.input);return Tr(e)}function xL(t){const e=Y.c(6),{control:n,name:r,placeholder:a}=t;let i;e[0]!==a?(i=o=>{const{field:l}=o;return b.jsxs(ls,{children:[b.jsx(us,{children:b.jsx("div",{className:"px-2",children:b.jsxs("div",{className:"flex items-center gap-3 px-2 py-3 rounded-lg bg-accent/50",children:[b.jsx("span",{className:"flex items-center justify-center size-6 rounded-md bg-muted shrink-0",children:b.jsx(oh,{size:16,className:"text-muted-foreground"})}),b.jsx("input",{...l,type:"text",placeholder:a||"Type your response...",autoFocus:!0,"aria-label":"Text response input",className:"flex-1 text-sm bg-transparent outline-none placeholder:text-foreground/25 text-foreground min-w-0"})]})})}),b.jsx(cs,{})]})},e[0]=a,e[1]=i):i=e[1];let s;return e[2]!==n||e[3]!==r||e[4]!==i?(s=b.jsx(ss,{control:n,name:r,render:i}),e[2]=n,e[3]=r,e[4]=i,e[5]=s):s=e[5],s}function wv(t,e){const n=Y.c(4);let r,a;n[0]!==t||n[1]!==e?(r=()=>{const i=s=>{const o=s.target.tagName;if(o==="INPUT"||o==="TEXTAREA"||s.metaKey||s.ctrlKey||s.altKey)return;const l=Number.parseInt(s.key,10);l>=1&&l<=t&&(s.preventDefault(),e(l-1))};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},a=[t,e],n[0]=t,n[1]=e,n[2]=r,n[3]=a):(r=n[2],a=n[3]),L.useEffect(r,a)}function kL(t){const e=Y.c(9),{control:n,name:r,options:a}=t,[i,s]=L.useState(!1),o=L.useRef(null),l=L.useRef(null);let u;if(e[0]!==a?(u=p=>{l.current?.onChange(a[p]??""),s(!1)},e[0]=a,e[1]=u):u=e[1],wv(a.length,u),a.length===0)return null;let c;e[2]!==i||e[3]!==a?(c=p=>{const{field:f}=p;l.current=f;const h=i||!!f.value&&!a.includes(f.value);return b.jsxs(ls,{children:[b.jsx(us,{children:b.jsxs("div",{className:"flex flex-col px-2",role:"group","aria-label":"Choice options",children:[a.map((g,E)=>{const T=f.value===g;return b.jsxs("button",{type:"button",onClick:()=>{f.onChange(g??""),s(!1)},className:ee("flex items-center gap-3 px-2 py-3 rounded-lg text-left transition-colors w-full",T&&"bg-accent/50",!T&&"hover:bg-accent/30"),"aria-label":`Select ${g}`,children:[b.jsx("span",{className:ee("flex items-center justify-center size-6 rounded-md text-sm shrink-0",T?"bg-chart-1 text-white":"bg-muted text-foreground"),children:E+1}),b.jsx("span",{className:"text-sm text-foreground truncate",children:g})]},`${E}-${g}`)}),b.jsxs("div",{className:ee("flex items-center gap-3 px-2 py-3 rounded-lg transition-colors w-full cursor-text",h&&"bg-accent/50",!h&&"hover:bg-accent/30"),onClick:()=>{s(!0),a.includes(f.value)&&f.onChange(""),setTimeout(()=>o.current?.focus(),0)},children:[b.jsx("span",{className:"flex items-center justify-center size-6 rounded-md bg-muted shrink-0",children:b.jsx(oh,{size:16,className:"text-muted-foreground"})}),h?b.jsx("input",{ref:o,type:"text",value:f.value,onChange:g=>f.onChange(g.target.value),placeholder:"Something else...",autoFocus:!0,"aria-label":"Custom choice input",className:"flex-1 text-sm bg-transparent outline-none placeholder:text-foreground/25 text-foreground min-w-0"}):b.jsx("span",{className:"text-sm text-foreground/25",children:"Something else..."})]})]})}),b.jsx(cs,{})]})},e[2]=i,e[3]=a,e[4]=c):c=e[4];let d;return e[5]!==n||e[6]!==r||e[7]!==c?(d=b.jsx(ss,{control:n,name:r,render:c}),e[5]=n,e[6]=r,e[7]=c,e[8]=d):d=e[8],d}function wL(t){const e=Y.c(6),{control:n,name:r}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=["yes","no"],e[0]=a):a=e[0];const i=a,s=L.useRef(null);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=c=>{s.current?.onChange(i[c]??"")},e[1]=o):o=e[1],wv(i.length,o);let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=c=>{const{field:d}=c;return s.current=d,b.jsxs(ls,{children:[b.jsx(us,{children:b.jsx("div",{className:"flex gap-2 px-2",role:"group","aria-label":"Confirmation options",children:i.map(p=>{const f=d.value===p;return b.jsxs("button",{type:"button",onClick:()=>d.onChange(p),className:ee("flex items-center gap-3 px-4 py-3 rounded-lg text-left transition-colors flex-1",f&&"bg-accent/50",!f&&"hover:bg-accent/30"),"aria-label":`Confirm ${p}`,children:[b.jsx("span",{className:ee("flex items-center justify-center size-6 rounded-md text-sm shrink-0",f?"bg-chart-1 text-white":"bg-muted text-foreground"),children:p==="yes"?1:2}),b.jsx("span",{className:"text-sm text-foreground capitalize",children:p})]},p)})})}),b.jsx(cs,{})]})},e[2]=l):l=e[2];let u;return e[3]!==n||e[4]!==r?(u=b.jsx(ss,{control:n,name:r,render:l}),e[3]=n,e[4]=r,e[5]=u):u=e[5],u}function Wg(t){const e=Y.c(13),{input:n,control:r,name:a}=t;switch(n.type){case"text":{let i;return e[0]!==r||e[1]!==n.default||e[2]!==a?(i=b.jsx(xL,{control:r,name:a,placeholder:n.default}),e[0]=r,e[1]=n.default,e[2]=a,e[3]=i):i=e[3],i}case"choice":{let i;e[4]!==n.options?(i=n.options?.filter(Boolean)??[],e[4]=n.options,e[5]=i):i=e[5];const s=i;let o;return e[6]!==r||e[7]!==a||e[8]!==s?(o=b.jsx(kL,{control:r,name:a,options:s}),e[6]=r,e[7]=a,e[8]=s,e[9]=o):o=e[9],o}case"confirm":{let i;return e[10]!==r||e[11]!==a?(i=b.jsx(wL,{control:r,name:a}),e[10]=r,e[11]=a,e[12]=i):i=e[12],i}default:return null}}function OL({parts:t,onSubmit:e}){const[n,r]=L.useState(t[0]?.toolCallId??""),a=RL(t.map(y=>({toolCallId:y.toolCallId,input:y.input}))),i=LS({resolver:OS(a),defaultValues:Object.fromEntries(t.map(y=>[y.toolCallId,{response:""}]))}),s=i.watch(),o=t.findIndex(y=>y.toolCallId===n),l=!!s[n]?.response,u=t.every(y=>!!s[y.toolCallId]?.response),c=y=>{for(const S of t){const N=y[S.toolCallId]?.response;N&&e(S,N)}},d=y=>t.find(S=>!y[S.toolCallId]?.response&&S.toolCallId!==n)??null,p=()=>{const y=i.getValues();if(t.every(N=>!!y[N.toolCallId]?.response))i.handleSubmit(c)();else{const N=d(y);N&&r(N.toolCallId)}},f=()=>{i.setValue(`${n}.response`,"user has skip this question"),p()},h=()=>{if(o>0){const y=t[o-1];y&&r(y.toolCallId)}},g=()=>{if(o<t.length-1){const y=t[o+1];y&&r(y.toolCallId)}},E=b.jsxs(b.Fragment,{children:[b.jsx(ke,{type:"button",variant:"outline",size:"sm",onClick:f,className:"h-7",children:"Skip"}),b.jsx(ke,{type:"button",size:"sm",disabled:!l,onClick:p,className:ee("h-7",l?"":"opacity-50"),children:u?"Submit":"Next"})]}),T=b.jsx(kv,{current:o,total:t.length,onPrev:h,onNext:g});if(t.length===1){const y=t[0];return y?.input?b.jsx(lf,{...i,children:b.jsx("form",{onSubmit:i.handleSubmit(c),autoComplete:"off",children:b.jsx(Of,{title:y.input?.prompt??"Question",footerRight:E,children:b.jsx(Wg,{input:y.input,control:i.control,name:`${y.toolCallId}.response`})})})}):null}return b.jsx(lf,{...i,children:b.jsx("form",{onSubmit:i.handleSubmit(c),autoComplete:"off",children:b.jsx(EI,{value:n,onValueChange:r,children:t.map(y=>b.jsx(TI,{value:y.toolCallId,className:"mt-0",children:b.jsx(Of,{title:y.input?.prompt??"Question",footerLeft:T,footerRight:E,children:b.jsx(Wg,{input:y.input,control:i.control,name:`${y.toolCallId}.response`})})},y.toolCallId))})})})}function LL(){const t=Y.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs("div",{className:"flex items-center gap-2 p-4 border border-dashed rounded-lg bg-accent/50 w-[calc(100%-16px)] max-w-[584px] mx-auto mb-2",children:[b.jsx(VS,{className:"size-5 text-muted-foreground shimmer"}),b.jsx("span",{className:"text-sm text-muted-foreground shimmer",children:"Preparing question..."})]}),t[0]=e):e=t[0],e}function Ov(t){const e=Y.c(6),{userAskParts:n,isStreaming:r,onSubmit:a}=t;let i;e[0]!==n?(i=n.filter(DL),e[0]=n,e[1]=i):i=e[1];const s=i;if(r){let l;return e[2]===Symbol.for("react.memo_cache_sentinel")?(l=b.jsx(LL,{}),e[2]=l):l=e[2],l}if(s.length===0)return null;let o;return e[3]!==a||e[4]!==s?(o=b.jsx(OL,{parts:s,onSubmit:a}),e[3]=a,e[4]=s,e[5]=o):o=e[5],o}function DL(t){return t.state==="input-available"}const ML={length:"Response reached the model's output limit. Different models have different limits. Try switching models or asking it to continue.","content-filter":"Response was filtered due to content policy.","tool-calls":"Response paused after tool execution to prevent infinite loops and save costs. Click continue to keep working."};function Ai(t){const e=Y.c(32),{variant:n,onDismiss:r}=t,a=n==="error",i=a?"Error occurred":"Response incomplete",s=a?t.error.message:ML[t.finishReason]??`Response stopped unexpectedly: ${t.finishReason}`,o=a?"border-destructive/30 bg-destructive/5":"border-amber-500/30 bg-amber-500/5",l=a?"text-destructive":"text-amber-600 dark:text-amber-500",u=a?ah:xC;let c;e[0]!==o?(c=ee("flex items-start gap-2 px-3 py-2.5 rounded-lg border border-dashed text-sm w-full mb-2 shadow",o),e[0]=o,e[1]=c):c=e[1];let d;e[2]!==l?(d=ee("mt-0.5 shrink-0",l),e[2]=l,e[3]=d):d=e[3];let p;e[4]!==u?(p=b.jsx(u,{size:16}),e[4]=u,e[5]=p):p=e[5];let f;e[6]!==d||e[7]!==p?(f=b.jsx("div",{className:d,children:p}),e[6]=d,e[7]=p,e[8]=f):f=e[8];let h;e[9]!==l?(h=ee("text-xs mb-1 font-medium",l),e[9]=l,e[10]=h):h=e[10];let g;e[11]!==h||e[12]!==i?(g=b.jsx("div",{className:h,children:i}),e[11]=h,e[12]=i,e[13]=g):g=e[13];let E;e[14]!==s?(E=b.jsx("div",{className:"text-xs line-clamp-2 text-muted-foreground mb-2",children:s}),e[14]=s,e[15]=E):E=e[15];let T;e[16]!==a||e[17]!==t.onContinue||e[18]!==t.onFixInChat?(T=b.jsx("div",{className:"flex gap-2",children:a?b.jsxs(b.Fragment,{children:[b.jsx(ke,{size:"sm",variant:"outline",onClick:t.onFixInChat,className:"h-7 text-xs",children:"Fix in chat"}),b.jsx(ke,{size:"sm",variant:"outline",disabled:!0,className:"h-7 text-xs",children:"Report"})]}):b.jsx(ke,{size:"sm",variant:"outline",onClick:t.onContinue,className:"h-7 text-xs",children:"Continue"})}),e[16]=a,e[17]=t.onContinue,e[18]=t.onFixInChat,e[19]=T):T=e[19];let y;e[20]!==g||e[21]!==E||e[22]!==T?(y=b.jsxs("div",{className:"flex-1 min-w-0",children:[g,E,T]}),e[20]=g,e[21]=E,e[22]=T,e[23]=y):y=e[23];let S;e[24]===Symbol.for("react.memo_cache_sentinel")?(S=b.jsx(cI,{size:14}),e[24]=S):S=e[24];let N;e[25]!==r?(N=b.jsx("button",{type:"button",onClick:r,className:"text-muted-foreground hover:text-foreground transition-colors shrink-0",title:"Dismiss",children:S}),e[25]=r,e[26]=N):N=e[26];let _;return e[27]!==c||e[28]!==N||e[29]!==f||e[30]!==y?(_=b.jsx("div",{className:"px-0.5",children:b.jsxs("div",{className:c,children:[f,y,N]})}),e[27]=c,e[28]=N,e[29]=f,e[30]=y,e[31]=_):_=e[31],_}function Rs(){const t=Y.c(29),{error:e,clearError:n,finishReason:r,clearFinishReason:a,messages:i,isStreaming:s,isWaitingForApprovals:o,addToolOutput:l,addToolApprovalResponse:u,sendMessage:c}=rh();let d,p,f;if(t[0]!==i){const v=i.at(-1);f=v?.role==="assistant"?v.parts.filter(FL):null,d=f?.filter(PL)?.length,p=v?.role==="assistant"?vL(v.parts):[],t[0]=i,t[1]=d,t[2]=p,t[3]=f}else d=t[1],p=t[2],f=t[3];const h=p;let g;t[4]!==e||t[5]!==c?(g=()=>{if(e){const R={type:"doc",content:[{type:"paragraph",content:[{type:"text",text:`I encountered this error: ${e.message}. Can you help me fix it?`}]}]};c(R)}},t[4]=e,t[5]=c,t[6]=g):g=t[6];const E=g;let T;t[7]!==c?(T=()=>{c({type:"doc",content:[{type:"paragraph",content:[{type:"text",text:"Please continue."}]}]})},t[7]=c,t[8]=T):T=t[8];const y=T;let S;t[9]!==l?(S=(v,R)=>{l({tool:"user_ask",toolCallId:v.toolCallId,output:{response:R}})},t[9]=l,t[10]=S):S=t[10];const N=S;let _;t[11]!==u?(_=(v,R,I)=>{u({id:v,approved:R,...I?{reason:I}:{}})},t[11]=u,t[12]=_):_=t[12];const A=_;if(d){let v;return t[13]!==N||t[14]!==s||t[15]!==f?(v=b.jsx("div",{className:"absolute bottom-full left-0 right-0",children:b.jsx(Ov,{userAskParts:f,isStreaming:s,onSubmit:N})}),t[13]=N,t[14]=s,t[15]=f,t[16]=v):v=t[16],v}if(h.length>0||s&&o){let v;return t[17]!==A||t[18]!==s||t[19]!==h?(v=b.jsx("div",{className:"absolute bottom-full left-0 right-0",children:b.jsx(NL,{approvals:h,isStreaming:s,onRespond:A})}),t[17]=A,t[18]=s,t[19]=h,t[20]=v):v=t[20],v}if(!s&&e){let v;return t[21]!==n||t[22]!==e||t[23]!==E?(v=b.jsx("div",{className:"absolute bottom-full left-0 right-0 bg-background",children:b.jsx(Ai,{variant:"error",error:e,onDismiss:n,onFixInChat:E})}),t[21]=n,t[22]=e,t[23]=E,t[24]=v):v=t[24],v}if(!s&&r&&r!=="stop"&&!o){let v;return t[25]!==a||t[26]!==r||t[27]!==y?(v=b.jsx("div",{className:"absolute bottom-full left-0 right-0 bg-background",children:b.jsx(Ai,{variant:"warning",finishReason:r,onDismiss:a,onContinue:y})}),t[25]=a,t[26]=r,t[27]=y,t[28]=v):v=t[28],v}return null}function PL(t){return t.state!=="output-available"}function FL(t){return t.type==="tool-user_ask"}Rs.Error=function(e){return b.jsx(Ai,{variant:"error",error:e.error,onDismiss:e.onDismiss,onFixInChat:e.onFixInChat})};Rs.Warning=function(e){return b.jsx(Ai,{variant:"warning",finishReason:e.finishReason,onDismiss:e.onDismiss,onContinue:e.onContinue})};Rs.UserAskQuestion=Ov;const ei={passthrough:{label:"Direct access",description:"Best for small teams or when you need predictable behavior",icon:YS},smart_tool_selection:{label:"Smart discovery",description:"Ideal for large teams with many tools - AI finds what it needs",icon:SI},code_execution:{label:"Smart execution",description:"Maximum flexibility - AI can write code to orchestrate tools",icon:CI,recommended:!0}};function BL(t){const e=Y.c(24),{mode:n,isSelected:r,onSelect:a}=t,i=ei[n],s=i.icon,o=r&&"bg-accent/50";let l;e[0]!==o?(l=ee("flex items-start gap-3 py-3 px-3 hover:bg-accent/50 cursor-pointer rounded-lg transition-colors",o),e[0]=o,e[1]=l):l=e[1];let u;e[2]!==s?(u=b.jsx("div",{className:"p-1.5 shrink-0 rounded-md bg-muted",children:b.jsx(s,{className:"size-4 text-muted-foreground"})}),e[2]=s,e[3]=u):u=e[3];let c;e[4]!==i.label?(c=b.jsx("span",{className:"text-sm font-medium text-foreground",children:i.label}),e[4]=i.label,e[5]=c):c=e[5];let d;e[6]!==i.recommended?(d=i.recommended&&b.jsx(yI,{variant:"outline",className:"text-xs",children:"Recommended"}),e[6]=i.recommended,e[7]=d):d=e[7];let p;e[8]!==r?(p=r&&b.jsx(qn,{size:16,className:"text-foreground shrink-0 ml-auto"}),e[8]=r,e[9]=p):p=e[9];let f;e[10]!==c||e[11]!==d||e[12]!==p?(f=b.jsxs("div",{className:"flex items-center gap-2",children:[c,d,p]}),e[10]=c,e[11]=d,e[12]=p,e[13]=f):f=e[13];let h;e[14]!==i.description?(h=b.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2 leading-relaxed",children:i.description}),e[14]=i.description,e[15]=h):h=e[15];let g;e[16]!==f||e[17]!==h?(g=b.jsxs("div",{className:"flex flex-col flex-1 min-w-0 gap-0.5",children:[f,h]}),e[16]=f,e[17]=h,e[18]=g):g=e[18];let E;return e[19]!==a||e[20]!==l||e[21]!==u||e[22]!==g?(E=b.jsxs("div",{onClick:a,className:l,children:[u,g]}),e[19]=a,e[20]=l,e[21]=u,e[22]=g,e[23]=E):E=e[23],E}function UL(t){const e=Y.c(24),{selectedMode:n,onModeChange:r,className:a,disabled:i}=t,s=i===void 0?!1:i,[o,l]=L.useState(!1);let u;e[0]!==r?(u=R=>{r(R),l(!1)},e[0]=r,e[1]=u):u=e[1];const c=u,d=s?!1:o,p=s?"cursor-not-allowed opacity-50":"cursor-pointer hover:text-muted-foreground";let f;e[2]!==a||e[3]!==p?(f=ee("flex items-center justify-center size-8 rounded-md border border-border text-muted-foreground/75 transition-colors shrink-0",p,a),e[2]=a,e[3]=p,e[4]=f):f=e[4];const h=ei[n]?.icon??YS;let g;e[5]!==h?(g=b.jsx(h,{size:16}),e[5]=h,e[6]=g):g=e[6];const E=g;let T;e[7]!==s||e[8]!==f||e[9]!==E?(T=b.jsx(ct,{asChild:!0,children:b.jsx(Sr,{asChild:!0,children:b.jsx("button",{type:"button",disabled:s,className:f,children:E})})}),e[7]=s,e[8]=f,e[9]=E,e[10]=T):T=e[10];const y=ei[n]?.label??"Choose agent mode";let S;e[11]!==y?(S=b.jsx(dt,{side:"top",className:"text-xs",children:y}),e[11]=y,e[12]=S):S=e[12];let N;e[13]!==S||e[14]!==T?(N=b.jsx(as,{children:b.jsxs(ut,{children:[T,S]})}),e[13]=S,e[14]=T,e[15]=N):N=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=Object.keys(ei),e[16]=_):_=e[16];let A;e[17]!==c||e[18]!==n?(A=b.jsx(Ar,{className:"w-[350px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:b.jsx("div",{className:"flex flex-col p-1",children:_.map(R=>b.jsx(BL,{mode:R,isSelected:R===n,onSelect:()=>c(R)},R))})}),e[17]=c,e[18]=n,e[19]=A):A=e[19];let v;return e[20]!==N||e[21]!==A||e[22]!==d?(v=b.jsxs(yr,{open:d,onOpenChange:l,children:[N,A]}),e[20]=N,e[21]=A,e[22]=d,e[23]=v):v=e[23],v}function HL(t){const e=Y.c(24),{virtualMcp:n,isSelected:r}=t,a=r&&"bg-accent";let i;e[0]!==a?(i=ee("flex items-start gap-3 py-3 px-3 hover:bg-accent cursor-pointer rounded-xl transition-colors",a),e[0]=a,e[1]=i):i=e[1];let s;e[2]!==n.fallbackIcon?(s=n.fallbackIcon??b.jsx(ia,{}),e[2]=n.fallbackIcon,e[3]=s):s=e[3];let o;e[4]!==s||e[5]!==n.icon||e[6]!==n.title?(o=b.jsx(ih,{icon:n.icon,name:n.title,size:"sm",fallbackIcon:s,className:"rounded-xl border border-border shadow-sm shrink-0 aspect-square"}),e[4]=s,e[5]=n.icon,e[6]=n.title,e[7]=o):o=e[7];let l;e[8]!==n.title?(l=b.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[8]=n.title,e[9]=l):l=e[9];let u;e[10]!==r?(u=r&&b.jsx(qn,{size:16,className:"text-foreground shrink-0"}),e[10]=r,e[11]=u):u=e[11];let c;e[12]!==l||e[13]!==u?(c=b.jsxs("div",{className:"flex items-center justify-between",children:[l,u]}),e[12]=l,e[13]=u,e[14]=c):c=e[14];let d;e[15]!==n.description?(d=n.description&&b.jsx("p",{className:"text-xs text-muted-foreground line-clamp-1 leading-relaxed",children:n.description}),e[15]=n.description,e[16]=d):d=e[16];let p;e[17]!==c||e[18]!==d?(p=b.jsxs("div",{className:"flex flex-col flex-1 min-w-0 gap-0.5",children:[c,d]}),e[17]=c,e[18]=d,e[19]=p):p=e[19];let f;return e[20]!==i||e[21]!==o||e[22]!==p?(f=b.jsxs("div",{className:i,children:[o,p]}),e[20]=i,e[21]=o,e[22]=p,e[23]=f):f=e[23],f}function Bh(t){const e=Y.c(33),{virtualMcps:n,selectedVirtualMcpId:r,onVirtualMcpChange:a,searchInputRef:i}=t,[s,o]=L.useState(""),l=L.useRef(null),u=i??l;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={navigateOnCreate:!0},e[0]=c):c=e[0];const{createVirtualMCP:d,isCreating:p}=RI(c);let f,h,g,E;if(e[1]!==d||e[2]!==u||e[3]!==p||e[4]!==a||e[5]!==s||e[6]!==r||e[7]!==n){let S;e:{const M=n.filter($L);if(!s.trim()){S=M;break e}const H=s.toLowerCase();S=M.filter(F=>F.title.toLowerCase().includes(H)||F.description?.toLowerCase().includes(H))}const N=S;let _;e[12]!==a?(_=M=>{a(M),o("")},e[12]=a,e[13]=_):_=e[13];const A=_;g="flex flex-col max-h-[400px]";let v;e[14]===Symbol.for("react.memo_cache_sentinel")?(v=b.jsx(KS,{size:16,className:"text-muted-foreground pointer-events-none shrink-0"}),e[14]=v):v=e[14];let R;e[15]===Symbol.for("react.memo_cache_sentinel")?(R=M=>o(M.target.value),e[15]=R):R=e[15];let I;e[16]!==u||e[17]!==s?(I=b.jsx(zS,{ref:u,type:"text",placeholder:"Search for an agent...",value:s,onChange:R,className:"flex-1 h-8 text-sm border-0 focus-visible:ring-0 focus-visible:ring-offset-0 shadow-none p-0"}),e[16]=u,e[17]=s,e[18]=I):I=e[18];const O=p?"Creating...":"Create Agent";let w;e[19]!==d||e[20]!==p||e[21]!==O?(w=b.jsx(ke,{onClick:d,variant:"outline",size:"sm",className:"h-8 px-3 rounded-lg text-sm font-medium shrink-0",disabled:p,children:O}),e[19]=d,e[20]=p,e[21]=O,e[22]=w):w=e[22],e[23]!==I||e[24]!==w?(E=b.jsx("div",{className:"border-b px-4 py-3 bg-background/95 backdrop-blur sticky top-0 z-10",children:b.jsxs("div",{className:"relative flex items-center gap-2",children:[v,I,w]})}),e[23]=I,e[24]=w,e[25]=E):E=e[25],f="overflow-y-auto p-1.5",h=N.length>0?b.jsx("div",{className:"grid grid-cols-2 gap-0.5",children:N.map(M=>b.jsx("div",{role:"button",tabIndex:0,onClick:()=>A(M.id),onKeyDown:H=>{(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),A(M.id))},className:"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-xl",children:b.jsx(HL,{virtualMcp:M,isSelected:M.id===r})},M.id))}):b.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:"No agents found"}),e[1]=d,e[2]=u,e[3]=p,e[4]=a,e[5]=s,e[6]=r,e[7]=n,e[8]=f,e[9]=h,e[10]=g,e[11]=E}else f=e[8],h=e[9],g=e[10],E=e[11];let T;e[26]!==f||e[27]!==h?(T=b.jsx("div",{className:f,children:h}),e[26]=f,e[27]=h,e[28]=T):T=e[28];let y;return e[29]!==g||e[30]!==E||e[31]!==T?(y=b.jsxs("div",{className:g,children:[E,T]}),e[29]=g,e[30]=E,e[31]=T,e[32]=y):y=e[32],y}function $L(t){return!t.id||!ur(t.id)}function jL(t){const e=Y.c(37),{selectedVirtualMcpId:n,onVirtualMcpChange:r,virtualMcps:a,className:i,placeholder:s,showTooltip:o,disabled:l}=t,u=s===void 0?"Select Agent":s,c=o===void 0?!0:o,d=l===void 0?!1:l,[p,f]=L.useState(!1),h=L.useRef(null),g=II(),E=a??g;let T;e[0]!==E?(T=E.filter(qL),e[0]=E,e[1]=T):T=e[1];const y=T;let S;e[2]!==E||e[3]!==n?(S=n?E.find(K=>K.id===n):null,e[2]=E,e[3]=n,e[4]=S):S=e[4];const N=S;let _;e[5]!==r?(_=K=>{r(K),f(!1)},e[5]=r,e[6]=_):_=e[6];const A=_;let v;e[7]===Symbol.for("react.memo_cache_sentinel")?(v=K=>{f(K)},e[7]=v):v=e[7];const R=v;let I,O;e[8]!==p?(I=()=>{p&&setTimeout(()=>{h.current?.focus()},0)},O=[p],e[8]=p,e[9]=I,e[10]=O):(I=e[9],O=e[10]),L.useEffect(I,O);const w=d?!1:p,M=d?void 0:R,H=d?"cursor-not-allowed opacity-50":"cursor-pointer hover:text-muted-foreground";let F;e[11]!==i||e[12]!==H?(F=ee("relative flex items-center justify-center size-8 rounded-md text-muted-foreground/75 transition-colors shrink-0",H,i),e[11]=i,e[12]=H,e[13]=F):F=e[13];let $;e[14]!==N?($=N?b.jsx(ih,{icon:N.icon,name:N.title,size:"sm",fallbackIcon:b.jsx(ia,{size:16}),className:"rounded-md shrink-0 absolute inset-0 size-full"}):b.jsxs(b.Fragment,{children:[b.jsxs("svg",{className:"absolute inset-0 size-full",fill:"none",children:[b.jsx("defs",{children:b.jsxs("linearGradient",{id:"agent-border-gradient",gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:"32",y2:"32",children:[b.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"6s",repeatCount:"indefinite"}),b.jsx("stop",{offset:"0%",stopColor:"var(--chart-1)"}),b.jsx("stop",{offset:"100%",stopColor:"var(--chart-4)"})]})}),b.jsx("rect",{x:"0.5",y:"0.5",width:"31",height:"31",rx:"5.5",stroke:"url(#agent-border-gradient)",strokeWidth:"1",strokeDasharray:"3 3"})]}),b.jsx(ia,{size:16})]}),e[14]=N,e[15]=$):$=e[15];let U;e[16]!==d||e[17]!==u||e[18]!==F||e[19]!==$?(U=b.jsx(ct,{asChild:!0,children:b.jsx(Sr,{asChild:!0,children:b.jsx("button",{type:"button",disabled:d,className:F,"aria-label":u,children:$})})}),e[16]=d,e[17]=u,e[18]=F,e[19]=$,e[20]=U):U=e[20];let j;e[21]!==p||e[22]!==N?.title||e[23]!==c?(j=c&&!p&&b.jsx(dt,{side:"top",className:"text-xs",children:N?.title??"Choose an agent to chat with"}),e[21]=p,e[22]=N?.title,e[23]=c,e[24]=j):j=e[24];let P;e[25]!==U||e[26]!==j?(P=b.jsx(as,{children:b.jsxs(ut,{children:[U,j]})}),e[25]=U,e[26]=j,e[27]=P):P=e[27];let W;e[28]!==A||e[29]!==n||e[30]!==y?(W=b.jsx(Ar,{className:"w-[550px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:b.jsx(Bh,{virtualMcps:y,selectedVirtualMcpId:n,onVirtualMcpChange:A,searchInputRef:h})}),e[28]=A,e[29]=n,e[30]=y,e[31]=W):W=e[31];let X;return e[32]!==w||e[33]!==M||e[34]!==P||e[35]!==W?(X=b.jsxs(yr,{open:w,onOpenChange:M,children:[P,W]}),e[32]=w,e[33]=M,e[34]=P,e[35]=W,e[36]=X):X=e[36],X}function qL(t){return!t.id||!ur(t.id)}function zL(t,e,n){t.chain().focus().insertContentAt(e,[GL(n),{type:"text",text:" "}]).run()}function GL(t){return{type:"file",attrs:t}}function VL(t){const e=Y.c(17),{node:n,selected:r,view:a}=t,{name:i,mimeType:s,data:o}=n.attrs,l=r&&a.editable;let u;e[0]!==s?(u=s.startsWith("image/"),e[0]=s,e[1]=u):u=e[1];const c=u,d=l&&"outline-2 outline-blue-300 outline-offset-0";let p;e[2]!==d?(p=ee("px-1 py-1 rounded","inline-flex items-center gap-1","cursor-default select-none","text-xs font-light","bg-muted text-muted-foreground",d),e[2]=d,e[3]=p):p=e[3];let f;e[4]!==i?(f=b.jsx(ct,{asChild:!0,children:b.jsx("span",{children:i})}),e[4]=i,e[5]=f):f=e[5];let h;e[6]!==o||e[7]!==c||e[8]!==s||e[9]!==i?(h=b.jsx(dt,{side:"top",className:"max-w-sm p-1.5",children:c?b.jsx("img",{src:`data:${s};base64,${o}`,alt:i,className:"max-w-full max-h-64 object-contain rounded"}):b.jsxs("div",{className:"text-xs",children:[b.jsx("div",{className:"font-medium",children:i}),b.jsx("div",{className:"text-muted-foreground mt-1",children:s})]})}),e[6]=o,e[7]=c,e[8]=s,e[9]=i,e[10]=h):h=e[10];let g;e[11]!==f||e[12]!==h?(g=b.jsxs(ut,{children:[f,h]}),e[11]=f,e[12]=h,e[13]=g):g=e[13];let E;return e[14]!==p||e[15]!==g?(E=b.jsx(yv,{className:p,children:g}),e[14]=p,e[15]=g,e[16]=E):E=e[16],E}const Lv=tt.create({name:"file",group:"inline",inline:!0,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id")||null,renderHTML:t=>t.id?{"data-id":t.id}:{}},name:{default:null,parseHTML:t=>t.getAttribute("data-name")||null,renderHTML:t=>t.name?{"data-name":t.name}:{}},mimeType:{default:null,parseHTML:t=>t.getAttribute("data-mime-type")||null,renderHTML:t=>t.mimeType?{"data-mime-type":t.mimeType}:{}},size:{default:0,parseHTML:t=>{const e=t.getAttribute("data-size");return e?Number.parseInt(e,10):0},renderHTML:t=>t.size?{"data-size":String(t.size)}:{}},data:{default:null,parseHTML:t=>t.getAttribute("data-data")||null,renderHTML:t=>t.data?{"data-data":t.data}:{}}}},parseHTML(){return[{tag:'span[data-type="file"]'}]},renderHTML({node:t,HTMLAttributes:e}){const n={"data-type":"file"};return t.attrs.id&&(n["data-id"]=t.attrs.id),t.attrs.name&&(n["data-name"]=t.attrs.name),t.attrs.mimeType&&(n["data-mime-type"]=t.attrs.mimeType),t.attrs.size&&(n["data-size"]=String(t.attrs.size)),t.attrs.data&&(n["data-data"]=t.attrs.data),["span",{...e,...n}]},renderText({node:t}){return`[${t.attrs.name??""}]`},addNodeView(){return Sv(VL)}});async function Dv(t,e,n,r){if(!HS(e)){$t.error("Selected model does not support file uploads");return}const a=10*1024*1024;if(n.size>a){$t.error(`File "${n.name}" exceeds 10MB limit`);return}try{const i=new FileReader,s=new Promise((u,c)=>{i.onload=()=>{const d=i.result;if(typeof d!="string"){c(new Error("Failed to read file as data URL"));return}const p=d.includes(",")?d.split(",")[1]??d:d;u(p)},i.onerror=c});i.readAsDataURL(n);const o=await s,l={id:crypto.randomUUID(),name:n.name,mimeType:n.type||"application/octet-stream",size:n.size,data:o};zL(t,{from:r,to:r},l)}catch(i){console.error("Failed to process file:",i),$t.error(`Failed to load file "${n.name}"`)}}function WL(t){const e=Y.c(7),{editor:n,selectedModel:r}=t,a=L.useRef(YL);let i,s;e[0]!==n||e[1]!==r?(i=()=>{a.current=async(u,c)=>{await Dv(n,r,u,c)}},s=[n,r],e[0]=n,e[1]=r,e[2]=i,e[3]=s):(i=e[2],s=e[3]),L.useEffect(i,s);let o,l;return e[4]!==n?(o=()=>{if(n?.isDestroyed)return;const u=new ye("fileDropHandler");n.state.plugins.find(p=>p.spec.key===u)&&n.unregisterPlugin(u);const d=new ge({key:u,props:{handleDrop:(p,f,h,g)=>{if(g)return!1;const E=f.dataTransfer?.files;if(!E||E.length===0)return!1;f.preventDefault();const T=p.posAtCoords({left:f.clientX,top:f.clientY});if(!T)return!1;const y=Array.from(E),S=T.pos;for(const N of y)a.current?.(N,S);return!0}}});return n.registerPlugin(d),()=>{n?.isDestroyed||n.unregisterPlugin(u)}},l=[n],e[4]=n,e[5]=o,e[6]=l):(o=e[5],l=e[6]),L.useEffect(o,l),null}function YL(){return Promise.resolve()}function KL(t){const e=Y.c(23),{selectedModel:n,isStreaming:r}=t,{editor:a}=Ev(),i=L.useRef(null);let s;e[0]!==n?(s=HS(n),e[0]=n,e[1]=s):s=e[1];const o=s;let l;e[2]!==a||e[3]!==n?(l=async A=>{const v=A.target.files;if(!v||v.length===0||!a)return;const R=Array.from(v),{from:I}=a.state.selection,O=I;for(const w of R)await Dv(a,n,w,O);i.current&&(i.current.value="")},e[2]=a,e[3]=n,e[4]=l):l=e[4];const u=l;if(!a)return null;const c=r||!o;let d;e[5]!==u||e[6]!==c?(d=b.jsx("input",{ref:i,type:"file",multiple:!0,className:"hidden",onChange:u,disabled:c}),e[5]=u,e[6]=c,e[7]=d):d=e[7];const p=r||!o?"cursor-not-allowed opacity-50":"cursor-pointer hover:text-muted-foreground";let f;e[8]!==p?(f=ee("flex items-center justify-center size-8 rounded-md border border-border text-muted-foreground/75 transition-colors shrink-0",p),e[8]=p,e[9]=f):f=e[9];const h=r||!o;let g,E;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=()=>i.current?.click(),E=b.jsx(tA,{size:16}),e[10]=g,e[11]=E):(g=e[10],E=e[11]);let T;e[12]!==f||e[13]!==h?(T=b.jsx(ct,{asChild:!0,children:b.jsx("button",{type:"button",className:f,disabled:h,onClick:g,children:E})}),e[12]=f,e[13]=h,e[14]=T):T=e[14];const y=o?"Add file":"Selected model does not support files";let S;e[15]!==y?(S=b.jsx(dt,{side:"top",children:y}),e[15]=y,e[16]=S):S=e[16];let N;e[17]!==T||e[18]!==S?(N=b.jsxs(ut,{children:[T,S]}),e[17]=T,e[18]=S,e[19]=N):N=e[19];let _;return e[20]!==N||e[21]!==d?(_=b.jsxs(b.Fragment,{children:[d,N]}),e[20]=N,e[21]=d,e[22]=_):_=e[22],_}function XL(t={}){return new ge({view(e){return new ZL(e,t)}})}class ZL{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(a=>{let i=s=>{this[a](s)};return e.dom.addEventListener(a,i),{name:a,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r,a=this.editorView.dom,i=a.getBoundingClientRect(),s=i.width/a.offsetWidth,o=i.height/a.offsetHeight;if(n){let d=e.nodeBefore,p=e.nodeAfter;if(d||p){let f=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(f){let h=f.getBoundingClientRect(),g=d?h.bottom:h.top;d&&p&&(g=(g+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let E=this.width/2*o;r={left:h.left,right:h.right,top:g-E,bottom:g+E}}}}if(!r){let d=this.editorView.coordsAtPos(this.cursorPos),p=this.width/2*s;r={left:d.left-p,right:d.left+p,top:d.top,bottom:d.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let u,c;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,c=-pageYOffset;else{let d=l.getBoundingClientRect(),p=d.width/l.offsetWidth,f=d.height/l.offsetHeight;u=d.left-l.scrollLeft*p,c=d.top-l.scrollTop*f}this.element.style.left=(r.left-u)/s+"px",this.element.style.top=(r.top-c)/o+"px",this.element.style.width=(r.right-r.left)/s+"px",this.element.style.height=(r.bottom-r.top)/o+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),a=r&&r.type.spec.disableDropCursor,i=typeof a=="function"?a(this.editorView,n,e):a;if(n&&!i){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let o=DA(this.editorView.state.doc,s,this.editorView.dragging.slice);o!=null&&(s=o)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class ve extends le{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return ve.valid(r)?new ve(r):le.near(r)}content(){return Z.empty}eq(e){return e instanceof ve&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ve(e.resolve(n.pos))}getBookmark(){return new Uh(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!QL(e)||!JL(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let a=n.contentMatchAt(e.index()).defaultType;return a&&a.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&ve.valid(e))return e;let a=e.pos,i=null;for(let s=e.depth;;s--){let o=e.node(s);if(n>0?e.indexAfter(s)<o.childCount:e.index(s)>0){i=o.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;a+=n;let l=e.doc.resolve(a);if(ve.valid(l))return l}for(;;){let s=n>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!re.isSelectable(i)){e=e.doc.resolve(a+i.nodeSize*n),r=!1;continue e}break}i=s,a+=n;let o=e.doc.resolve(a);if(ve.valid(o))return o}return null}}}ve.prototype.visible=!1;ve.findFrom=ve.findGapCursorFrom;le.jsonID("gapcursor",ve);class Uh{constructor(e){this.pos=e}map(e){return new Uh(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return ve.valid(n)?new ve(n):le.near(n)}}function Mv(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function QL(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n-1);;a=a.lastChild){if(a.childCount==0&&!a.inlineContent||Mv(a.type))return!0;if(a.inlineContent)return!1}}return!0}function JL(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n);;a=a.firstChild){if(a.childCount==0&&!a.inlineContent||Mv(a.type))return!0;if(a.inlineContent)return!1}}return!0}function eD(){return new ge({props:{decorations:aD,createSelectionBetween(t,e,n){return e.pos==n.pos&&ve.valid(n)?new ve(n):null},handleClick:nD,handleKeyDown:tD,handleDOMEvents:{beforeinput:rD}}})}const tD=MN({ArrowLeft:Ha("horiz",-1),ArrowRight:Ha("horiz",1),ArrowUp:Ha("vert",-1),ArrowDown:Ha("vert",1)});function Ha(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,a,i){let s=r.selection,o=e>0?s.$to:s.$from,l=s.empty;if(s instanceof ie){if(!i.endOfTextblock(n)||o.depth==0)return!1;l=!1,o=r.doc.resolve(e>0?o.after():o.before())}let u=ve.findGapCursorFrom(o,e,l);return u?(a&&a(r.tr.setSelection(new ve(u))),!0):!1}}function nD(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!ve.valid(r))return!1;let a=t.posAtCoords({left:n.clientX,top:n.clientY});return a&&a.inside>-1&&re.isSelectable(t.state.doc.nodeAt(a.inside))?!1:(t.dispatch(t.state.tr.setSelection(new ve(r))),!0)}function rD(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof ve))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let a=z.empty;for(let s=r.length-1;s>=0;s--)a=z.from(r[s].createAndFill(null,a));let i=t.state.tr.replace(n.pos,n.pos,new Z(a,0,0));return i.setSelection(ie.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function aD(t){if(!(t.selection instanceof ve))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Te.create(t.doc,[We.widget(t.selection.head,e,{key:"gapcursor"})])}var Ni=200,He=function(){};He.prototype.append=function(e){return e.length?(e=He.from(e),!this.length&&e||e.length<Ni&&this.leafAppend(e)||this.length<Ni&&e.leafPrepend(this)||this.appendInner(e)):this};He.prototype.prepend=function(e){return e.length?He.from(e).append(this):this};He.prototype.appendInner=function(e){return new iD(this,e)};He.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?He.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};He.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};He.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};He.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var a=[];return this.forEach(function(i,s){return a.push(e(i,s))},n,r),a};He.from=function(e){return e instanceof He?e:e&&e.length?new Pv(e):He.empty};var Pv=(function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(a,i){return a==0&&i==this.length?this:new e(this.values.slice(a,i))},e.prototype.getInner=function(a){return this.values[a]},e.prototype.forEachInner=function(a,i,s,o){for(var l=i;l<s;l++)if(a(this.values[l],o+l)===!1)return!1},e.prototype.forEachInvertedInner=function(a,i,s,o){for(var l=i-1;l>=s;l--)if(a(this.values[l],o+l)===!1)return!1},e.prototype.leafAppend=function(a){if(this.length+a.length<=Ni)return new e(this.values.concat(a.flatten()))},e.prototype.leafPrepend=function(a){if(this.length+a.length<=Ni)return new e(a.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(He);He.empty=new Pv([]);var iD=(function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,a,i,s){var o=this.left.length;if(a<o&&this.left.forEachInner(r,a,Math.min(i,o),s)===!1||i>o&&this.right.forEachInner(r,Math.max(a-o,0),Math.min(this.length,i)-o,s+o)===!1)return!1},e.prototype.forEachInvertedInner=function(r,a,i,s){var o=this.left.length;if(a>o&&this.right.forEachInvertedInner(r,a-o,Math.max(i,o)-o,s+o)===!1||i<o&&this.left.forEachInvertedInner(r,Math.min(a,o),i,s)===!1)return!1},e.prototype.sliceInner=function(r,a){if(r==0&&a==this.length)return this;var i=this.left.length;return a<=i?this.left.slice(r,a):r>=i?this.right.slice(r-i,a-i):this.left.slice(r,i).append(this.right.slice(0,a-i))},e.prototype.leafAppend=function(r){var a=this.right.leafAppend(r);if(a)return new e(this.left,a)},e.prototype.leafPrepend=function(r){var a=this.left.leafPrepend(r);if(a)return new e(a,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(He);const sD=500;class yt{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let a,i;n&&(a=this.remapping(r,this.items.length),i=a.maps.length);let s=e.tr,o,l,u=[],c=[];return this.items.forEach((d,p)=>{if(!d.step){a||(a=this.remapping(r,p+1),i=a.maps.length),i--,c.push(d);return}if(a){c.push(new _t(d.map));let f=d.step.map(a.slice(i)),h;f&&s.maybeStep(f).doc&&(h=s.mapping.maps[s.mapping.maps.length-1],u.push(new _t(h,void 0,void 0,u.length+c.length))),i--,h&&a.appendMap(h,i)}else s.maybeStep(d.step);if(d.selection)return o=a?d.selection.map(a.slice(i)):d.selection,l=new yt(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:s,selection:o}}addTransform(e,n,r,a){let i=[],s=this.eventCount,o=this.items,l=!a&&o.length?o.get(o.length-1):null;for(let c=0;c<e.steps.length;c++){let d=e.steps[c].invert(e.docs[c]),p=new _t(e.mapping.maps[c],d,n),f;(f=l&&l.merge(p))&&(p=f,c?i.pop():o=o.slice(0,o.length-1)),i.push(p),n&&(s++,n=void 0),a||(l=p)}let u=s-r.depth;return u>lD&&(o=oD(o,u),s-=u),new yt(o.append(i),s)}remapping(e,n){let r=new la;return this.items.forEach((a,i)=>{let s=a.mirrorOffset!=null&&i-a.mirrorOffset>=e?r.maps.length-a.mirrorOffset:void 0;r.appendMap(a.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new yt(this.items.append(e.map(n=>new _t(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],a=Math.max(0,this.items.length-n),i=e.mapping,s=e.steps.length,o=this.eventCount;this.items.forEach(p=>{p.selection&&o--},a);let l=n;this.items.forEach(p=>{let f=i.getMirror(--l);if(f==null)return;s=Math.min(s,f);let h=i.maps[f];if(p.step){let g=e.steps[f].invert(e.docs[f]),E=p.selection&&p.selection.map(i.slice(l+1,f));E&&o++,r.push(new _t(h,g,E))}else r.push(new _t(h))},a);let u=[];for(let p=n;p<s;p++)u.push(new _t(i.maps[p]));let c=this.items.slice(0,a).append(u).append(r),d=new yt(c,o);return d.emptyItemCount()>sD&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,a=[],i=0;return this.items.forEach((s,o)=>{if(o>=e)a.push(s),s.selection&&i++;else if(s.step){let l=s.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let c=s.selection&&s.selection.map(n.slice(r));c&&i++;let d=new _t(u.invert(),l,c),p,f=a.length-1;(p=a.length&&a[f].merge(d))?a[f]=p:a.push(d)}}else s.map&&r--},this.items.length,0),new yt(He.from(a.reverse()),i)}}yt.empty=new yt(He.empty,0);function oD(t,e){let n;return t.forEach((r,a)=>{if(r.selection&&e--==0)return n=a,!1}),t.slice(n)}class _t{constructor(e,n,r,a){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=a}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new _t(n.getMap().invert(),n,this.selection)}}}class Zt{constructor(e,n,r,a,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=a,this.prevComposition=i}}const lD=20;function uD(t,e,n,r){let a=n.getMeta(Dn),i;if(a)return a.historyState;n.getMeta(pD)&&(t=new Zt(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(Dn))return s.getMeta(Dn).redo?new Zt(t.done.addTransform(n,void 0,r,ti(e)),t.undone,Yg(n.mapping.maps),t.prevTime,t.prevComposition):new Zt(t.done,t.undone.addTransform(n,void 0,r,ti(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let o=n.getMeta("composition"),l=t.prevTime==0||!s&&t.prevComposition!=o&&(t.prevTime<(n.time||0)-r.newGroupDelay||!cD(n,t.prevRanges)),u=s?lo(t.prevRanges,n.mapping):Yg(n.mapping.maps);return new Zt(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,ti(e)),yt.empty,u,n.time,o??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Zt(t.done.rebased(n,i),t.undone.rebased(n,i),lo(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Zt(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),lo(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function cD(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,a)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&a>=e[i]&&(n=!0)}),n}function Yg(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,a,i,s)=>e.push(i,s));return e}function lo(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let a=e.map(t[r],1),i=e.map(t[r+1],-1);a<=i&&n.push(a,i)}return n}function dD(t,e,n){let r=ti(e),a=Dn.get(e).spec.config,i=(n?t.undone:t.done).popEvent(e,r);if(!i)return null;let s=i.selection.resolve(i.transform.doc),o=(n?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),a,r),l=new Zt(n?o:i.remaining,n?i.remaining:o,null,0,-1);return i.transform.setSelection(s).setMeta(Dn,{redo:n,historyState:l})}let uo=!1,Kg=null;function ti(t){let e=t.plugins;if(Kg!=e){uo=!1,Kg=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){uo=!0;break}}return uo}const Dn=new ye("history"),pD=new ye("closeHistory");function fD(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new ge({key:Dn,state:{init(){return new Zt(yt.empty,yt.empty,null,0,-1)},apply(e,n,r){return uD(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,a=r=="historyUndo"?Bv:r=="historyRedo"?Uv:null;return!a||!e.editable?!1:(n.preventDefault(),a(e.state,e.dispatch))}}}})}function Fv(t,e){return(n,r)=>{let a=Dn.getState(n);if(!a||(t?a.undone:a.done).eventCount==0)return!1;if(r){let i=dD(a,n,t);i&&r(e?i.scrollIntoView():i)}return!0}}const Bv=Fv(!1,!0),Uv=Fv(!0,!0);Ie.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new ge({key:new ye("characterCount"),appendTransaction:(e,n,r)=>{if(t)return;const a=this.options.limit;if(a==null||a===0){t=!0;return}const i=this.storage.characters({node:r.doc});if(i>a){const s=i-a,o=0,l=s;console.warn(`[CharacterCount] Initial content exceeded limit of ${a} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(o,l);return t=!0,u}t=!0},filterTransaction:(e,n)=>{const r=this.options.limit;if(!e.docChanged||r===0||r===null||r===void 0)return!0;const a=this.storage.characters({node:n.doc}),i=this.storage.characters({node:e.doc});if(i<=r||a>r&&i>r&&i<=a)return!0;if(a>r&&i>r&&i>a||!e.getMeta("paste"))return!1;const o=e.selection.$head.pos,l=i-r,u=o-l,c=o;return e.deleteRange(u,c),!(this.storage.characters({node:e.doc})>r)}})]}});var hD=Ie.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[XL(this.options)]}});Ie.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new ge({key:new ye("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:a}=e,i=[];if(!n||!r)return Te.create(t,[]);let s=0;this.options.mode==="deepest"&&t.descendants((l,u)=>{if(l.isText)return;if(!(a>=u&&a<=u+l.nodeSize-1))return!1;s+=1});let o=0;return t.descendants((l,u)=>{if(l.isText||!(a>=u&&a<=u+l.nodeSize-1))return!1;if(o+=1,this.options.mode==="deepest"&&s-o>0||this.options.mode==="shallowest"&&o>1)return this.options.mode==="deepest";i.push(We.node(u,u+l.nodeSize,{class:this.options.className}))}),Te.create(t,i)}}})]}});var mD=Ie.create({name:"gapCursor",addProseMirrorPlugins(){return[eD()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=pe(ne(t,"allowGapCursor",n)))!=null?e:null}}}),Xg="placeholder";function gD(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var bD=Ie.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:Xg,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const t=this.options.dataAttribute?`data-${gD(this.options.dataAttribute)}`:`data-${Xg}`;return[new ge({key:new ye("placeholder"),props:{decorations:({doc:e,selection:n})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:a}=n,i=[];if(!r)return null;const s=this.editor.isEmpty;return e.descendants((o,l)=>{const u=a>=l&&a<=l+o.nodeSize,c=!o.isLeaf&&vs(o);if((u||!this.options.showOnlyCurrent)&&c){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const p=We.node(l,l+o.nodeSize,{class:d.join(" "),[t]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:o,pos:l,hasAnchor:u}):this.options.placeholder});i.push(p)}return this.options.includeChildren}),Te.create(e,i)}}})]}});Ie.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new ge({key:new ye("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||ZN(n.selection)||t.view.dragging?null:Te.create(n.doc,[We.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function Zg({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}var ED=Ie.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new ye(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,a])=>a).filter(a=>(this.options.notAfter||[]).concat(n).includes(a.name));return[new ge({key:e,appendTransaction:(a,i,s)=>{const{doc:o,tr:l,schema:u}=s,c=e.getState(s),d=o.content.size,p=u.nodes[n];if(c)return l.insert(d,p.create())},state:{init:(a,i)=>{const s=i.tr.doc.lastChild;return!Zg({node:s,types:r})},apply:(a,i)=>{if(!a.docChanged||a.getMeta("__uniqueIDTransaction"))return i;const s=a.doc.lastChild;return!Zg({node:s,types:r})}}})]}}),TD=Ie.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>Bv(t,e),redo:()=>({state:t,dispatch:e})=>Uv(t,e)}},addProseMirrorPlugins(){return[fD(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),yD=bD,vi=(t,e)=>{if(t==="slot")return 0;if(t instanceof Function)return t(e);const{children:n,...r}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,r,n]},SD=/^\s*>\s$/,AD=tt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return vi("blockquote",{...Oe(this.options.HTMLAttributes,t),children:vi("slot",{})})},parseMarkdown:(t,e)=>e.createNode("blockquote",void 0,e.parseChildren(t.tokens||[])),renderMarkdown:(t,e)=>{if(!t.content)return"";const n=">",r=[];return t.content.forEach(a=>{const o=e.renderChildren([a]).split(`
|
|
100
|
+
`)}function e2(t,e,n={}){const{state:r}=e,{doc:a,tr:i}=r,s=t;a.descendants((o,l)=>{const u=i.mapping.map(l),c=i.mapping.map(l)+o.nodeSize;let d=null;if(o.marks.forEach(f=>{if(f!==s)return!1;d=f}),!d)return;let p=!1;if(Object.keys(n).forEach(f=>{n[f]!==d.attrs[f]&&(p=!0)}),p){const f=t.type.create({...t.attrs,...n});i.removeMark(u,c,t.type),i.addMark(u,c,f)}}),i.docChanged&&e.view.dispatch(i)}var tt=class hv extends Oh{constructor(){super(...arguments),this.type="node"}static create(e={}){const n=typeof e=="function"?e():e;return new hv(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},t2=class{constructor(t,e,n){this.isDragging=!1,this.component=t,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.innerDecorations=e.innerDecorations,this.view=e.view,this.HTMLAttributes=e.HTMLAttributes,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var e,n,r,a,i,s,o;const{view:l}=this.editor,u=t.target,c=u.nodeType===3?(e=u.parentElement)==null?void 0:e.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||(n=this.contentDOM)!=null&&n.contains(u)||!c)return;let d=0,p=0;if(this.dom!==c){const y=this.dom.getBoundingClientRect(),S=c.getBoundingClientRect(),N=(a=t.offsetX)!=null?a:(r=t.nativeEvent)==null?void 0:r.offsetX,_=(s=t.offsetY)!=null?s:(i=t.nativeEvent)==null?void 0:i.offsetY;d=S.x-y.x+N,p=S.y-y.y+_}const f=this.dom.cloneNode(!0);try{const y=this.dom.getBoundingClientRect();f.style.width=`${Math.round(y.width)}px`,f.style.height=`${Math.round(y.height)}px`,f.style.boxSizing="border-box",f.style.pointerEvents="none"}catch{}let h=null;try{h=document.createElement("div"),h.style.position="absolute",h.style.top="-9999px",h.style.left="-9999px",h.style.pointerEvents="none",h.appendChild(f),document.body.appendChild(h),(o=t.dataTransfer)==null||o.setDragImage(f,d,p)}finally{h&&setTimeout(()=>{try{h?.remove()}catch{}},0)}const g=this.getPos();if(typeof g!="number")return;const E=re.create(l.state.doc,g),T=l.state.tr.setSelection(E);l.dispatch(T)}stopEvent(t){var e;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:t});const n=t.target;if(!(this.dom.contains(n)&&!((e=this.contentDOM)!=null&&e.contains(n))))return!1;const a=t.type.startsWith("drag"),i=t.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!i&&!a)return!0;const{isEditable:o}=this.editor,{isDragging:l}=this,u=!!this.node.type.spec.draggable,c=re.isSelectable(this.node),d=t.type==="copy",p=t.type==="paste",f=t.type==="cut",h=t.type==="mousedown";if(!u&&c&&a&&t.target===this.dom&&t.preventDefault(),u&&a&&!l&&t.target===this.dom)return t.preventDefault(),!1;if(u&&o&&!l&&h){const g=n.closest("[data-drag-handle]");g&&(this.dom===g||this.dom.contains(g))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(l||i||d||p||f||h&&c)}ignoreMutation(t){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:t}):this.node.isLeaf||this.node.isAtom?!0:t.type==="selection"||this.dom.contains(t.target)&&t.type==="childList"&&(fa()||Cf())&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(n=>n.isContentEditable)?!1:this.contentDOM===t.target&&t.type==="attributes"?!0:!this.contentDOM.contains(t.target)}updateAttributes(t){this.editor.commands.command(({tr:e})=>{const n=this.getPos();return typeof n!="number"?!1:(e.setNodeMarkup(n,void 0,{...this.node.attrs,...t}),!0)})}deleteNode(){const t=this.getPos();if(typeof t!="number")return;const e=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:e})}};function $n(t){return new MO({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:a})=>{const i=pe(t.getAttributes,void 0,r,a);if(i===!1||i===null)return null;const{tr:s}=e,o=r[r.length-1],l=r[0];let u=n.to;if(o){const c=l.search(/\S/),d=n.from+l.indexOf(o),p=d+o.length;if(wh(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(E=>E===t.type&&E!==h.mark.type)).filter(h=>h.to>d).length)return null;p<n.to&&s.delete(p,n.to),d>n.from&&s.delete(n.from+c,d),u=n.from+c+o.length,s.addMark(n.from+c,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}const{getOwnPropertyNames:n2,getOwnPropertySymbols:r2}=Object,{hasOwnProperty:a2}=Object.prototype;function oo(t,e){return function(r,a,i){return t(r,a,i)&&e(r,a,i)}}function Ua(t){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return t(n,r,a);const{cache:i}=a,s=i.get(n),o=i.get(r);if(s&&o)return s===r&&o===n;i.set(n,r),i.set(r,n);const l=t(n,r,a);return i.delete(n),i.delete(r),l}}function i2(t){return t?.[Symbol.toStringTag]}function Fg(t){return n2(t).concat(r2(t))}const s2=Object.hasOwn||((t,e)=>a2.call(t,e));function Wn(t,e){return t===e||!t&&!e&&t!==t&&e!==e}const o2="__v",l2="__o",u2="_owner",{getOwnPropertyDescriptor:Bg,keys:Ug}=Object;function c2(t,e){return t.byteLength===e.byteLength&&Si(new Uint8Array(t),new Uint8Array(e))}function d2(t,e,n){let r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function p2(t,e){return t.byteLength===e.byteLength&&Si(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function f2(t,e){return Wn(t.getTime(),e.getTime())}function h2(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function m2(t,e){return t===e}function Hg(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const a=new Array(r),i=t.entries();let s,o,l=0;for(;(s=i.next())&&!s.done;){const u=e.entries();let c=!1,d=0;for(;(o=u.next())&&!o.done;){if(a[d]){d++;continue}const p=s.value,f=o.value;if(n.equals(p[0],f[0],l,d,t,e,n)&&n.equals(p[1],f[1],p[0],f[0],t,e,n)){c=a[d]=!0;break}d++}if(!c)return!1;l++}return!0}const g2=Wn;function b2(t,e,n){const r=Ug(t);let a=r.length;if(Ug(e).length!==a)return!1;for(;a-- >0;)if(!mv(t,e,n,r[a]))return!1;return!0}function Or(t,e,n){const r=Fg(t);let a=r.length;if(Fg(e).length!==a)return!1;let i,s,o;for(;a-- >0;)if(i=r[a],!mv(t,e,n,i)||(s=Bg(t,i),o=Bg(e,i),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function E2(t,e){return Wn(t.valueOf(),e.valueOf())}function T2(t,e){return t.source===e.source&&t.flags===e.flags}function $g(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const a=new Array(r),i=t.values();let s,o;for(;(s=i.next())&&!s.done;){const l=e.values();let u=!1,c=0;for(;(o=l.next())&&!o.done;){if(!a[c]&&n.equals(s.value,o.value,s.value,o.value,t,e,n)){u=a[c]=!0;break}c++}if(!u)return!1}return!0}function Si(t,e){let n=t.byteLength;if(e.byteLength!==n||t.byteOffset!==e.byteOffset)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function y2(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function mv(t,e,n,r){return(r===u2||r===l2||r===o2)&&(t.$$typeof||e.$$typeof)?!0:s2(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}const S2="[object ArrayBuffer]",A2="[object Arguments]",N2="[object Boolean]",v2="[object DataView]",_2="[object Date]",C2="[object Error]",I2="[object Map]",R2="[object Number]",x2="[object Object]",k2="[object RegExp]",w2="[object Set]",O2="[object String]",L2={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},D2="[object URL]",M2=Object.prototype.toString;function P2({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:d,areTypedArraysEqual:p,areUrlsEqual:f,unknownTagComparators:h}){return function(E,T,y){if(E===T)return!0;if(E==null||T==null)return!1;const S=typeof E;if(S!==typeof T)return!1;if(S!=="object")return S==="number"?o(E,T,y):S==="function"?i(E,T,y):!1;const N=E.constructor;if(N!==T.constructor)return!1;if(N===Object)return l(E,T,y);if(Array.isArray(E))return e(E,T,y);if(N===Date)return r(E,T,y);if(N===RegExp)return c(E,T,y);if(N===Map)return s(E,T,y);if(N===Set)return d(E,T,y);const _=M2.call(E);if(_===_2)return r(E,T,y);if(_===k2)return c(E,T,y);if(_===I2)return s(E,T,y);if(_===w2)return d(E,T,y);if(_===x2)return typeof E.then!="function"&&typeof T.then!="function"&&l(E,T,y);if(_===D2)return f(E,T,y);if(_===C2)return a(E,T,y);if(_===A2)return l(E,T,y);if(L2[_])return p(E,T,y);if(_===S2)return t(E,T,y);if(_===v2)return n(E,T,y);if(_===N2||_===R2||_===O2)return u(E,T,y);if(h){let A=h[_];if(!A){const v=i2(E);v&&(A=h[v])}if(A)return A(E,T,y)}return!1}}function F2({circular:t,createCustomConfig:e,strict:n}){let r={areArrayBuffersEqual:c2,areArraysEqual:n?Or:d2,areDataViewsEqual:p2,areDatesEqual:f2,areErrorsEqual:h2,areFunctionsEqual:m2,areMapsEqual:n?oo(Hg,Or):Hg,areNumbersEqual:g2,areObjectsEqual:n?Or:b2,arePrimitiveWrappersEqual:E2,areRegExpsEqual:T2,areSetsEqual:n?oo($g,Or):$g,areTypedArraysEqual:n?oo(Si,Or):Si,areUrlsEqual:y2,unknownTagComparators:void 0};if(e&&(r=Object.assign({},r,e(r))),t){const a=Ua(r.areArraysEqual),i=Ua(r.areMapsEqual),s=Ua(r.areObjectsEqual),o=Ua(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:o})}return r}function B2(t){return function(e,n,r,a,i,s,o){return t(e,n,o)}}function U2({circular:t,comparator:e,createState:n,equals:r,strict:a}){if(n)return function(o,l){const{cache:u=t?new WeakMap:void 0,meta:c}=n();return e(o,l,{cache:u,equals:r,meta:c,strict:a})};if(t)return function(o,l){return e(o,l,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(o,l){return e(o,l,i)}}const H2=gn();gn({strict:!0});gn({circular:!0});gn({circular:!0,strict:!0});gn({createInternalComparator:()=>Wn});gn({strict:!0,createInternalComparator:()=>Wn});gn({circular:!0,createInternalComparator:()=>Wn});gn({circular:!0,createInternalComparator:()=>Wn,strict:!0});function gn(t={}){const{circular:e=!1,createInternalComparator:n,createState:r,strict:a=!1}=t,i=F2(t),s=P2(i),o=n?n(s):B2(s);return U2({circular:e,comparator:s,createState:r,equals:o,strict:a})}var $2=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},j2=({contentComponent:t})=>{const e=DS.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return b.jsx(b.Fragment,{children:Object.values(e)})};function q2(){const t=new Set;let e={};return{subscribe(n){return t.add(n),()=>{t.delete(n)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(n,r){e={...e,[n]:IC.createPortal(r.reactElement,r.element,n)},t.forEach(a=>a())},removeRenderer(n){const r={...e};delete r[n],e=r,t.forEach(a=>a())}}}var z2=class extends Qe.Component{constructor(t){var e;super(t),this.editorContentRef=Qe.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!((e=t.editor)!=null&&e.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var t;const e=this.props.editor;if(e&&!e.isDestroyed&&((t=e.view.dom)!=null&&t.parentNode)){if(e.contentComponent)return;const n=this.editorContentRef.current;n.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:n}),e.contentComponent=q2(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(r=>r.hasContentComponentInitialized?r:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var t;const e=this.props.editor;if(e){this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null;try{if(!((t=e.view.dom)!=null&&t.parentNode))return;const n=document.createElement("div");n.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:n})}catch{}}}render(){const{editor:t,innerRef:e,...n}=this.props;return b.jsxs(b.Fragment,{children:[b.jsx("div",{ref:$2(e,this.editorContentRef),...n}),t?.contentComponent&&b.jsx(j2,{contentComponent:t.contentComponent})]})}},G2=L.forwardRef((t,e)=>{const n=Qe.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return Qe.createElement(z2,{key:n,innerRef:e,...t})}),Ph=Qe.memo(G2),V2=typeof window<"u"?L.useLayoutEffect:L.useEffect,W2=class{constructor(t){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}watch(t){if(this.editor=t,this.editor){const e=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},n=this.editor;return n.on("transaction",e),()=>{n.off("transaction",e)}}}};function Y2(t){var e;const[n]=L.useState(()=>new W2(t.editor)),r=CC.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!=null?e:H2);return V2(()=>n.watch(t.editor),[t.editor,n]),L.useDebugValue(r),r}var K2=!1,wf=typeof window>"u",X2=wf||!!(typeof window<"u"&&window.next),Z2=class gv{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?wf||X2?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const e={...this.options.current,onBeforeCreate:(...r)=>{var a,i;return(i=(a=this.options.current).onBeforeCreate)==null?void 0:i.call(a,...r)},onBlur:(...r)=>{var a,i;return(i=(a=this.options.current).onBlur)==null?void 0:i.call(a,...r)},onCreate:(...r)=>{var a,i;return(i=(a=this.options.current).onCreate)==null?void 0:i.call(a,...r)},onDestroy:(...r)=>{var a,i;return(i=(a=this.options.current).onDestroy)==null?void 0:i.call(a,...r)},onFocus:(...r)=>{var a,i;return(i=(a=this.options.current).onFocus)==null?void 0:i.call(a,...r)},onSelectionUpdate:(...r)=>{var a,i;return(i=(a=this.options.current).onSelectionUpdate)==null?void 0:i.call(a,...r)},onTransaction:(...r)=>{var a,i;return(i=(a=this.options.current).onTransaction)==null?void 0:i.call(a,...r)},onUpdate:(...r)=>{var a,i;return(i=(a=this.options.current).onUpdate)==null?void 0:i.call(a,...r)},onContentError:(...r)=>{var a,i;return(i=(a=this.options.current).onContentError)==null?void 0:i.call(a,...r)},onDrop:(...r)=>{var a,i;return(i=(a=this.options.current).onDrop)==null?void 0:i.call(a,...r)},onPaste:(...r)=>{var a,i;return(i=(a=this.options.current).onPaste)==null?void 0:i.call(a,...r)},onDelete:(...r)=>{var a,i;return(i=(a=this.options.current).onDelete)==null?void 0:i.call(a,...r)}};return new zO(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(r=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)?!0:r==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((a,i)=>{var s;return a===((s=n.extensions)==null?void 0:s[i])}):e[r]===n[r])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?gv.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((r,a)=>r===e[a]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function bv(t={},e=[]){const n=L.useRef(t);n.current=t;const[r]=L.useState(()=>new Z2(n)),a=DS.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return L.useDebugValue(a),L.useEffect(r.onRender(e)),Y2({editor:a,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1||t.shouldRerenderOnTransaction===void 0?null:t.immediatelyRender&&i===0?0:i+1}),a}var Is=L.createContext({editor:null});Is.Consumer;var Ev=()=>L.useContext(Is),Tv=L.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),Q2=()=>L.useContext(Tv),yv=Qe.forwardRef((t,e)=>{const{onDragStart:n}=Q2(),r=t.as||"div";return b.jsx(r,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});function jg(t){return!!(typeof t=="function"&&t.prototype&&t.prototype.isReactComponent)}function qg(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.forward_ref)"||t.$$typeof.description==="react.forward_ref"))}function J2(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.memo)"||t.$$typeof.description==="react.memo"))}function eL(t){if(jg(t)||qg(t))return!0;if(J2(t)){const e=t.type;if(e)return jg(e)||qg(e)}return!1}function tL(){try{if(L.version)return parseInt(L.version.split(".")[0],10)>=19}catch{}return!1}var nL=class{constructor(t,{editor:e,props:n={},as:r="div",className:a=""}){this.ref=null,this.destroyed=!1,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=t,this.editor=e,this.props=n,this.element=document.createElement(r),this.element.classList.add("react-renderer"),a&&this.element.classList.add(...a.split(" ")),this.editor.isInitialized?MS.flushSync(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var t;if(this.destroyed)return;const e=this.component,n=this.props,r=this.editor,a=tL(),i=eL(e),s={...n};s.ref&&!(a||i)&&delete s.ref,!s.ref&&(a||i)&&(s.ref=o=>{this.ref=o}),this.reactElement=b.jsx(e,{...s}),(t=r?.contentComponent)==null||t.setRenderer(this.id,this)}updateProps(t={}){this.destroyed||(this.props={...this.props,...t},this.render())}destroy(){var t;this.destroyed=!0;const e=this.editor;(t=e?.contentComponent)==null||t.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(t){Object.keys(t).forEach(e=>{this.element.setAttribute(e,t[e])})}};Qe.createContext({markViewContentRef:()=>{}});var rL=class extends t2{constructor(t,e,n){if(super(t,e,n),this.selectionRafId=null,this.cachedExtensionWithSyncedStorage=null,!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";const r=this.dom.querySelector("[data-node-view-content]");if(!r)return;r.appendChild(this.contentDOMElement)}}get extensionWithSyncedStorage(){if(!this.cachedExtensionWithSyncedStorage){const t=this.editor,e=this.extension;this.cachedExtensionWithSyncedStorage=new Proxy(e,{get(n,r,a){var i;return r==="storage"?(i=t.storage[e.name])!=null?i:{}:Reflect.get(n,r,a)}})}return this.cachedExtensionWithSyncedStorage}mount(){const t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extensionWithSyncedStorage,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(l={})=>this.updateAttributes(l),deleteNode:()=>this.deleteNode(),ref:L.createRef()};if(!this.component.displayName){const l=u=>u.charAt(0).toUpperCase()+u.substring(1);this.component.displayName=l(this.extension.name)}const r={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:l=>{l&&this.contentDOMElement&&l.firstChild!==this.contentDOMElement&&(l.hasAttribute("data-node-view-wrapper")&&l.removeAttribute("data-node-view-wrapper"),l.appendChild(this.contentDOMElement))}},a=this.component,i=L.memo(l=>b.jsx(Tv.Provider,{value:r,children:L.createElement(a,l)}));i.displayName="ReactNodeView";let s=this.node.isInline?"span":"div";this.options.as&&(s=this.options.as);const{className:o=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new nL(i,{editor:this.editor,props:t,as:s,className:`node-${this.node.type.name} ${o}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var t;if(this.renderer.element.firstElementChild&&!((t=this.renderer.element.firstElementChild)!=null&&t.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null),this.selectionRafId=requestAnimationFrame(()=>{this.selectionRafId=null;const{from:t,to:e}=this.editor.state.selection,n=this.getPos();if(typeof n=="number")if(t<=n&&e>=n+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}})}update(t,e,n){const r=a=>{this.renderer.updateProps(a),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(t.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const a=this.node,i=this.decorations,s=this.innerDecorations;return this.node=t,this.decorations=e,this.innerDecorations=n,this.options.update({oldNode:a,oldDecorations:i,newNode:t,newDecorations:e,oldInnerDecorations:s,innerDecorations:n,updateProps:()=>r({node:t,decorations:e,innerDecorations:n,extension:this.extensionWithSyncedStorage})})}return t===this.node&&this.decorations===e&&this.innerDecorations===n||(this.node=t,this.decorations=e,this.innerDecorations=n,r({node:t,decorations:e,innerDecorations:n,extension:this.extensionWithSyncedStorage})),!0}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null,this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null)}updateElementAttributes(){if(this.options.attrs){let t={};if(typeof this.options.attrs=="function"){const e=this.editor.extensionManager.attributes,n=mr(this.node,e);t=this.options.attrs({node:this.node,HTMLAttributes:n})}else t=this.options.attrs;this.renderer.updateAttributes(t)}}};function Sv(t,e){return n=>n.editor.contentComponent?new rL(t,n,e):{}}var Fh=L.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});Fh.displayName="TiptapContext";var aL=()=>L.useContext(Fh);function Av({editor:t,instance:e,children:n}){const r=t??e;if(!r)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const a=L.useMemo(()=>({editor:r}),[r]),i=L.useMemo(()=>({editor:r}),[r]);return b.jsx(Is.Provider,{value:i,children:b.jsx(Fh.Provider,{value:a,children:n})})}Av.displayName="Tiptap";function Nv({...t}){const{editor:e}=aL();return b.jsx(Ph,{editor:e,...t})}Nv.displayName="Tiptap.Content";Object.assign(Av,{Content:Nv});function vv(t,e,n){t.chain().focus().insertContentAt(e,[_v(n),{type:"text",text:" "}]).run()}function _v(t){return{type:"mention",attrs:t}}function iL(t){const e=Y.c(7),{node:n,selected:r,view:a}=t,{name:i,char:s}=n.attrs,o=r&&a.editable,u=s==="@"?"bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-400":"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-300",c=o&&"outline-2 outline-blue-300 outline-offset-0";let d;e[0]!==u||e[1]!==c?(d=ee("px-1 py-1 rounded","inline-flex items-center gap-1","cursor-default select-none","text-xs font-light",u,c),e[0]=u,e[1]=c,e[2]=d):d=e[2];let p;return e[3]!==s||e[4]!==i||e[5]!==d?(p=b.jsxs(yv,{className:d,children:[s,i]}),e[3]=s,e[4]=i,e[5]=d,e[6]=p):p=e[6],p}const Cv=tt.create({name:"mention",group:"inline",inline:!0,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id")||null,renderHTML:t=>t.id?{"data-id":t.id}:{}},name:{default:null,parseHTML:t=>t.getAttribute("data-name")||null,renderHTML:t=>t.name?{"data-name":t.name}:{}},char:{default:"/",parseHTML:t=>t.getAttribute("data-char")||"/",renderHTML:t=>t.char?{"data-char":t.char}:{}},metadata:{default:null,parseHTML:t=>{try{return JSON.parse(t.getAttribute("data-metadata")||"null")}catch{return null}},renderHTML:t=>t.metadata?{"data-metadata":JSON.stringify(t.metadata)}:{}}}},parseHTML(){return[{tag:'span[data-type="mention"]'}]},renderHTML({node:t,HTMLAttributes:e}){const n={"data-type":"mention"};return t.attrs.id&&(n["data-id"]=t.attrs.id),t.attrs.name&&(n["data-name"]=t.attrs.name),t.attrs.char&&(n["data-char"]=t.attrs.char),t.attrs.metadata&&(n["data-metadata"]=JSON.stringify(t.attrs.metadata)),["span",{...e,...n}]},renderText({node:t}){const e=t.attrs.char??"@",n=t.attrs.name??"";return`${e}${n}`},addNodeView(){return Sv(iL)}});function sL(t){return!t||!t.content||t.content.length===0?!0:t.content.every(e=>e.type==="paragraph"?!e.content||e.content.length===0?!0:e.content.every(n=>n.type==="hardBreak"||n.type==="text"&&(!n.text||n.text.trim()==="")):!1)}function oL(t,e){return{type:"doc",content:[...t?.content??[],e].filter(Boolean)}}const zg=3;function lL(t){const e=Y.c(23),{prompt:n,onSelect:r,isSelected:a,isDisabled:i,isLoading:s}=t,o=n.description??n.name;let l;e[0]!==r||e[1]!==n?(l=()=>r(n),e[0]=r,e[1]=n,e[2]=l):l=e[2];const u=i||s,c=a&&"bg-accent/50 text-foreground",d=s&&"bg-accent/50 text-foreground",p=(i||s)&&"cursor-not-allowed hover:bg-accent/50";let f;e[3]!==c||e[4]!==d||e[5]!==p?(f=ee("px-3 py-1.5 text-xs text-muted-foreground hover:text-foreground border border-border rounded-full hover:bg-accent/50 transition-colors cursor-pointer flex items-center gap-1.5",c,d,p),e[3]=c,e[4]=d,e[5]=p,e[6]=f):f=e[6];const h=n.title??n.name;let g;if(e[7]!==h){let N;e[9]===Symbol.for("react.memo_cache_sentinel")?(N=/_/g,e[9]=N):N=e[9],g=h.replace(N," "),e[7]=h,e[8]=g}else g=e[8];let E;e[10]!==s?(E=s&&b.jsx(rs,{size:"xs"}),e[10]=s,e[11]=E):E=e[11];let T;e[12]!==l||e[13]!==u||e[14]!==f||e[15]!==g||e[16]!==E?(T=b.jsx(ct,{asChild:!0,children:b.jsxs("button",{type:"button",onClick:l,disabled:u,className:f,children:[g,E]})}),e[12]=l,e[13]=u,e[14]=f,e[15]=g,e[16]=E,e[17]=T):T=e[17];let y;e[18]!==o?(y=b.jsx(dt,{side:"bottom",className:"max-w-xs",children:b.jsx("p",{className:"text-xs",children:o})}),e[18]=o,e[19]=y):y=e[19];let S;return e[20]!==T||e[21]!==y?(S=b.jsxs(ut,{children:[T,y]}),e[20]=T,e[21]=y,e[22]=S):S=e[22],S}function uL(t){const e=Y.c(23),{prompts:n,onSelect:r,loadingPrompt:a,className:i}=t;if(n.length===0)return null;let s,o,l,u,c;if(e[0]!==i||e[1]!==a||e[2]!==r||e[3]!==n){const f=n.slice(0,zg),h=n.slice(zg),g=h.length>0,E=!!a;s=as,c=300,e[9]!==i?(o=ee("flex flex-wrap items-center justify-center gap-2",i),e[9]=i,e[10]=o):o=e[10];let T;e[11]!==E||e[12]!==a?.name||e[13]!==r?(T=y=>b.jsx(lL,{prompt:y,onSelect:r,isLoading:a?.name===y.name,isDisabled:E&&a?.name!==y.name},y.name),e[11]=E,e[12]=a?.name,e[13]=r,e[14]=T):T=e[14],l=f.map(T),u=g&&b.jsxs(yr,{children:[b.jsx(Sr,{asChild:!0,children:b.jsxs("button",{type:"button",disabled:E,className:ee("size-7 flex items-center justify-center text-xs text-muted-foreground hover:text-foreground border border-border rounded-full hover:bg-accent/50 transition-colors cursor-pointer",E&&"opacity-60 cursor-not-allowed"),children:["+",h.length]})}),b.jsx(Ar,{side:"bottom",align:"center",className:"w-auto p-2",children:b.jsx("div",{className:"flex flex-col gap-1",children:h.map(y=>{const S=y.description??y.name,N=a?.name===y.name;return b.jsxs(ut,{children:[b.jsx(ct,{asChild:!0,children:b.jsxs("button",{type:"button",onClick:()=>r(y),disabled:E&&!N,className:ee("px-3 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-accent/50 rounded-md transition-colors cursor-pointer text-left flex items-center gap-1.5",N&&"bg-accent/50 text-foreground",E&&!N&&"opacity-60 cursor-not-allowed"),children:[(y.title??y.name).replace(/_/g," "),N&&b.jsx(rs,{size:"xs"})]})}),b.jsx(dt,{side:"right",className:"max-w-xs",children:b.jsx("p",{className:"text-xs",children:S})})]},y.name)})})})]}),e[0]=i,e[1]=a,e[2]=r,e[3]=n,e[4]=s,e[5]=o,e[6]=l,e[7]=u,e[8]=c}else s=e[4],o=e[5],l=e[6],u=e[7],c=e[8];let d;e[15]!==o||e[16]!==l||e[17]!==u?(d=b.jsxs("div",{className:o,children:[l,u]}),e[15]=o,e[16]=l,e[17]=u,e[18]=d):d=e[18];let p;return e[19]!==s||e[20]!==c||e[21]!==d?(p=b.jsx(s,{delayDuration:c,children:d}),e[19]=s,e[20]=c,e[21]=d,e[22]=p):p=e[22],p}function cL(){const t=Y.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs(b.Fragment,{children:[b.jsx(Sm,{className:"h-6 w-20 rounded-full border border-border"}),b.jsx(Sm,{className:"h-6 w-24 rounded-full border border-border"})]}),t[0]=e):e=t[0],e}function dL(t,e){switch(e.type){case"SELECT_PROMPT":return!e.prompt.arguments||e.prompt.arguments.length===0?{stage:"loading",prompt:e.prompt}:{stage:"idle"};case"START_LOADING":return{stage:"loading",prompt:e.prompt,arguments:e.arguments};case"RESET":return{stage:"idle"};default:return t}}function pL(t){const e=Y.c(28),{connectionId:n}=t,{tiptapDocRef:r,sendMessage:a}=Sa(),{org:i}=jn();let s;e[0]!==n||e[1]!==i.id?(s={connectionId:n,orgId:i.id},e[0]=n,e[1]=i.id,e[2]=s):s=e[2];const o=is(s);let l;e[3]!==o?(l={client:o,staleTime:6e4},e[3]=o,e[4]=l):l=e[4];const{data:u}=KC(l);let c;e[5]!==u?.prompts?(c=u?.prompts??[],e[5]=u?.prompts,e[6]=c):c=e[6];const d=c;let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={stage:"idle"},e[7]=p):p=e[7];const[f,h]=L.useReducer(dL,p),[g,E]=L.useState(null);let T;e[8]!==o||e[9]!==a||e[10]!==r?(T=async(M,H)=>{if(!o){$t.error("MCP client not available"),h({type:"RESET"});return}try{const F=await qS(o,M.name,H);h({type:"RESET"});const $=oL(r.current,{type:"paragraph",content:[_v({id:M.name,name:M.name,metadata:F.messages,char:"/"})]});await a($)}catch(F){console.error("[ice-breakers] Failed to fetch prompt:",F),$t.error("Failed to load prompt. Please try again."),h({type:"RESET"})}},e[8]=o,e[9]=a,e[10]=r,e[11]=T):T=e[11];const y=T;let S;e[12]!==y?(S=async M=>{if(M.arguments&&M.arguments.length>0){h({type:"SELECT_PROMPT",prompt:M}),E(M);return}h({type:"START_LOADING",prompt:M}),await y(M)},e[12]=y,e[13]=S):S=e[13];const N=S;let _;e[14]!==g||e[15]!==y?(_=async M=>{g&&(h({type:"START_LOADING",prompt:g,arguments:M}),E(null),await y(g,M))},e[14]=g,e[15]=y,e[16]=_):_=e[16];const A=_;if(d.length===0)return null;const v=f.stage==="loading"?f.prompt:null;let R;e[17]!==N||e[18]!==d||e[19]!==v?(R=b.jsx(uL,{prompts:d,onSelect:N,loadingPrompt:v}),e[17]=N,e[18]=d,e[19]=v,e[20]=R):R=e[20];let I;e[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{E(null),h({type:"RESET"})},e[21]=I):I=e[21];let O;e[22]!==g||e[23]!==A?(O=b.jsx(oA,{prompt:g,setPrompt:I,onSubmit:A}),e[22]=g,e[23]=A,e[24]=O):O=e[24];let w;return e[25]!==O||e[26]!==R?(w=b.jsxs("div",{className:"relative w-full",children:[R,O]}),e[25]=O,e[26]=R,e[27]=w):w=e[27],w}function fL(t){const e=Y.c(14),{className:n}=t,{selectedVirtualMcp:r}=Sa(),{org:a}=jn();let i;e[0]!==a.id?(i=jS(a.id),e[0]=a.id,e[1]=i):i=e[1];const s=i.id,o=r?.id??s;let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l={minHeight:"32px"},e[2]=l):l=e[2];let u;e[3]!==n?(u=ee("flex flex-wrap items-center justify-center gap-2",n),e[3]=n,e[4]=u):u=e[4];const c=o??"default";let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=b.jsx(cL,{}),e[5]=d):d=e[5];let p;e[6]!==o?(p=b.jsx(pL,{connectionId:o}),e[6]=o,e[7]=p):p=e[7];let f;e[8]!==c||e[9]!==p?(f=b.jsx(PS,{fallback:null,children:b.jsx(L.Suspense,{fallback:d,children:p},c)}),e[8]=c,e[9]=p,e[10]=f):f=e[10];let h;return e[11]!==u||e[12]!==f?(h=b.jsx("div",{style:l,className:u,children:f}),e[11]=u,e[12]=f,e[13]=h):h=e[13],h}const Gg=[{border:"border-purple-400",bg:"bg-purple-400",text:"text-white",bgLight:"bg-purple-400/10"},{border:"border-blue-400",bg:"bg-blue-400",text:"text-white",bgLight:"bg-blue-400/10"},{border:"border-indigo-400",bg:"bg-indigo-400",text:"text-white",bgLight:"bg-indigo-400/10"},{border:"border-violet-400",bg:"bg-violet-400",text:"text-white",bgLight:"bg-violet-400/10"},{border:"border-pink-400",bg:"bg-pink-400",text:"text-white",bgLight:"bg-pink-400/10"},{border:"border-fuchsia-400",bg:"bg-fuchsia-400",text:"text-white",bgLight:"bg-fuchsia-400/10"},{border:"border-emerald-400",bg:"bg-emerald-400",text:"text-white",bgLight:"bg-emerald-400/10"},{border:"border-teal-400",bg:"bg-teal-400",text:"text-white",bgLight:"bg-teal-400/10"},{border:"border-cyan-400",bg:"bg-cyan-400",text:"text-white",bgLight:"bg-cyan-400/10"},{border:"border-sky-400",bg:"bg-sky-400",text:"text-white",bgLight:"bg-sky-400/10"},{border:"border-orange-400",bg:"bg-orange-400",text:"text-white",bgLight:"bg-orange-400/10"},{border:"border-amber-400",bg:"bg-amber-400",text:"text-white",bgLight:"bg-amber-400/10"},{border:"border-rose-400",bg:"bg-rose-400",text:"text-white",bgLight:"bg-rose-400/10"},{border:"border-lime-400",bg:"bg-lime-400",text:"text-white",bgLight:"bg-lime-400/10"}];function hL(t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);return Math.abs(e)}function Iv(t){if(t==null)return null;const n=hL(t)%Gg.length;return Gg[n]}function Rv(t){return t?t.split(/[_-]/).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "):""}function xv(t,e){return t==="output-error"?"error":t==="approval-requested"?"approval":t==="input-streaming"||t==="input-available"||t==="output-available"&&e===!0?"loading":"idle"}function kv(t){const e=Y.c(21),{current:n,total:r,onPrev:a,onNext:i}=t;if(r<=1)return null;const s=n===0,o=n===0?"opacity-30 cursor-not-allowed":"hover:text-foreground cursor-pointer";let l;e[0]!==o?(l=ee("p-0.5 rounded transition-colors",o),e[0]=o,e[1]=l):l=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=b.jsx(gI,{size:14}),e[2]=u):u=e[2];let c;e[3]!==a||e[4]!==s||e[5]!==l?(c=b.jsx("button",{type:"button",onClick:a,disabled:s,className:l,"aria-label":"Previous question",children:u}),e[3]=a,e[4]=s,e[5]=l,e[6]=c):c=e[6];const d=n+1;let p;e[7]!==d||e[8]!==r?(p=b.jsxs("span",{className:"tabular-nums text-xs",children:[d," of ",r]}),e[7]=d,e[8]=r,e[9]=p):p=e[9];const f=n===r-1,h=n===r-1?"opacity-30 cursor-not-allowed":"hover:text-foreground cursor-pointer";let g;e[10]!==h?(g=ee("p-0.5 rounded transition-colors",h),e[10]=h,e[11]=g):g=e[11];let E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=b.jsx(bI,{size:14}),e[12]=E):E=e[12];let T;e[13]!==i||e[14]!==g||e[15]!==f?(T=b.jsx("button",{type:"button",onClick:i,disabled:f,className:g,"aria-label":"Next question",children:E}),e[13]=i,e[14]=g,e[15]=f,e[16]=T):T=e[16];let y;return e[17]!==T||e[18]!==c||e[19]!==p?(y=b.jsxs("div",{className:"flex items-center gap-1 text-sm text-muted-foreground",children:[c,p,T]}),e[17]=T,e[18]=c,e[19]=p,e[20]=y):y=e[20],y}function Of(t){const e=Y.c(15),{title:n,children:r,footerLeft:a,footerRight:i}=t;let s;e[0]!==n?(s=b.jsx("div",{className:"flex items-center gap-2 p-4",children:b.jsx("p",{className:"flex-1 text-base font-medium text-foreground min-w-0",children:n})}),e[0]=n,e[1]=s):s=e[1];let o;e[2]!==r?(o=b.jsx("div",{className:"overflow-clip pb-4",children:r}),e[2]=r,e[3]=o):o=e[3];let l;e[4]!==a?(l=b.jsx("div",{children:a}),e[4]=a,e[5]=l):l=e[5];let u;e[6]!==i?(u=b.jsx("div",{className:"flex items-center gap-2",children:i}),e[6]=i,e[7]=u):u=e[7];let c;e[8]!==l||e[9]!==u?(c=b.jsx("div",{className:"border-t border-border px-3 py-3 pb-6",children:b.jsxs("div",{className:"flex items-center justify-between",children:[l,u]})}),e[8]=l,e[9]=u,e[10]=c):c=e[10];let d;return e[11]!==s||e[12]!==o||e[13]!==c?(d=b.jsxs("div",{className:"flex flex-col rounded-xl bg-background border border-border shadow-md w-[calc(100%-16px)] max-w-[584px] mx-auto mb-[-16px]",children:[s,o,c]}),e[11]=s,e[12]=o,e[13]=c,e[14]=d):d=e[14],d}const mL="User denied this tool call, give other alternatives.",gL=[{value:"none",label:"Always ask"},{value:"readonly",label:"Skip read-only"},{value:"yolo",label:"Auto-approve all"}];function bL(t){const e=Y.c(9),{onYolo:n}=t,[r,a]=WC();let i;e[0]!==n||e[1]!==r||e[2]!==a?(i=c=>{const d=c;a({...r,toolApprovalLevel:d}),d==="yolo"&&n()},e[0]=n,e[1]=r,e[2]=a,e[3]=i):i=e[3];const s=i;let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx(hI,{size:"xs",className:"text-xs text-muted-foreground border-border/60 bg-transparent hover:bg-accent/60 h-7 gap-1",onClick:TL,children:b.jsx(mI,{})}),e[4]=o):o=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=b.jsx(dI,{children:gL.map(EL)}),e[5]=l):l=e[5];let u;return e[6]!==s||e[7]!==r.toolApprovalLevel?(u=b.jsxs(pI,{value:r.toolApprovalLevel,onValueChange:s,children:[o,l]}),e[6]=s,e[7]=r.toolApprovalLevel,e[8]=u):u=e[8],u}function EL(t){return b.jsx(fI,{value:t.value,children:t.label},t.value)}function TL(t){return t.stopPropagation()}function yL(t){const e=Y.c(5),{input:n}=t;if(n==null){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx("div",{className:"px-4 text-xs text-muted-foreground",children:"No input"}),e[0]=i):i=e[0],i}let r;try{let i;e[1]!==n?(i=JSON.stringify(n,null,2),e[1]=n,e[2]=i):i=e[2],r=i}catch{r=String(n)}let a;return e[3]!==r?(a=b.jsx("div",{className:"px-4",children:b.jsx("pre",{className:"text-xs font-mono text-muted-foreground/70 whitespace-pre-wrap wrap-break-word max-h-32 overflow-y-auto rounded-md bg-muted/30 px-3 py-2",children:r})}),e[3]=r,e[4]=a):a=e[4],a}function SL(t){const e=Y.c(42),{approvals:n,onRespond:r}=t,[a,i]=L.useState(0),s=Math.min(a,n.length-1),o=n[s];if(!o)return null;let l;e[0]!==o.approvalId||e[1]!==r?(l=()=>{r(o.approvalId,!1,mL)},e[0]=o.approvalId,e[1]=r,e[2]=l):l=e[2];const u=l;let c;e[3]!==o.approvalId||e[4]!==r?(c=()=>{r(o.approvalId,!0)},e[3]=o.approvalId,e[4]=r,e[5]=c):c=e[5];const d=c;let p;e[6]!==n||e[7]!==r?(p=()=>{for(const H of n)r(H.approvalId,!0)},e[6]=n,e[7]=r,e[8]=p):p=e[8];const f=p;let h;e[9]!==s?(h=()=>{s>0&&i(s-1)},e[9]=s,e[10]=h):h=e[10];const g=h;let E;e[11]!==n.length||e[12]!==s?(E=()=>{s<n.length-1&&i(s+1)},e[11]=n.length,e[12]=s,e[13]=E):E=e[13];const T=E;let y;e[14]!==f?(y=b.jsx(bL,{onYolo:f}),e[14]=f,e[15]=y):y=e[15];let S;e[16]!==n.length||e[17]!==T||e[18]!==g||e[19]!==s?(S=b.jsx(kv,{current:s,total:n.length,onPrev:g,onNext:T}),e[16]=n.length,e[17]=T,e[18]=g,e[19]=s,e[20]=S):S=e[20];let N;e[21]!==y||e[22]!==S?(N=b.jsxs("div",{className:"flex items-center gap-2",children:[y,S]}),e[21]=y,e[22]=S,e[23]=N):N=e[23];const _=N;let A;e[24]!==u?(A=b.jsx(ke,{type:"button",variant:"ghost",size:"sm",className:"h-7 px-2.5 text-xs text-muted-foreground [@media(hover:hover)]:hover:text-foreground active:scale-[0.97] transition-transform",onClick:u,children:"Deny"}),e[24]=u,e[25]=A):A=e[25];let v;e[26]!==n.length||e[27]!==f?(v=n.length>1&&b.jsx(ke,{type:"button",variant:"outline",size:"sm",className:"h-7 px-2.5 text-xs active:scale-[0.97] transition-transform",onClick:f,children:"Accept All"}),e[26]=n.length,e[27]=f,e[28]=v):v=e[28];let R;e[29]!==d?(R=b.jsx(ke,{type:"button",size:"sm",className:"h-7 px-2.5 text-xs active:scale-[0.97] transition-transform",onClick:d,children:"Accept"}),e[29]=d,e[30]=R):R=e[30];let I;e[31]!==v||e[32]!==R||e[33]!==A?(I=b.jsxs(b.Fragment,{children:[A,v,R]}),e[31]=v,e[32]=R,e[33]=A,e[34]=I):I=e[34];const O=I;let w;e[35]!==o.input?(w=b.jsx(yL,{input:o.input}),e[35]=o.input,e[36]=w):w=e[36];let M;return e[37]!==o.friendlyName||e[38]!==_||e[39]!==O||e[40]!==w?(M=b.jsx(Of,{title:o.friendlyName,footerLeft:_,footerRight:O,children:w}),e[37]=o.friendlyName,e[38]=_,e[39]=O,e[40]=w,e[41]=M):M=e[41],M}function AL(){const t=Y.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs("div",{className:"flex items-center gap-2 p-4 border border-dashed rounded-lg bg-accent/50 w-[calc(100%-16px)] max-w-[584px] mx-auto mb-2",children:[b.jsx(rA,{className:"size-5 text-muted-foreground shimmer"}),b.jsx("span",{className:"text-sm text-muted-foreground shimmer",children:"Preparing approval request..."})]}),t[0]=e):e=t[0],e}function NL(t){const e=Y.c(4),{approvals:n,isStreaming:r,onRespond:a}=t;if(r&&n.length===0){let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx(AL,{}),e[0]=s):s=e[0],s}if(n.length===0)return null;let i;return e[1]!==n||e[2]!==a?(i=b.jsx(SL,{approvals:n,onRespond:a}),e[1]=n,e[2]=a,e[3]=i):i=e[3],i}function vL(t){const e=[];for(const n of t)if("state"in n&&n.state==="approval-requested"&&"approval"in n&&n.approval?.id&&"toolCallId"in n&&n.toolCallId){const r="toolName"in n&&typeof n.toolName=="string"?n.toolName:n.type.startsWith("tool-")?n.type.replace("tool-",""):"Tool";e.push({approvalId:n.approval.id,toolCallId:n.toolCallId,toolName:r,friendlyName:Rv(r),input:n.input})}return e}const Vg=Tr({response:oi().min(1,"Response is required")}),_L=Tr({response:oi().min(1,"Please select or enter an option")}),CL=Tr({response:RC(["yes","no"])});function IL(t){switch(t.type){case"text":return Vg;case"choice":return _L;case"confirm":return CL;default:return Vg}}function RL(t){const e={};for(const n of t)e[n.toolCallId]=IL(n.input);return Tr(e)}function xL(t){const e=Y.c(6),{control:n,name:r,placeholder:a}=t;let i;e[0]!==a?(i=o=>{const{field:l}=o;return b.jsxs(ls,{children:[b.jsx(us,{children:b.jsx("div",{className:"px-2",children:b.jsxs("div",{className:"flex items-center gap-3 px-2 py-3 rounded-lg bg-accent/50",children:[b.jsx("span",{className:"flex items-center justify-center size-6 rounded-md bg-muted shrink-0",children:b.jsx(oh,{size:16,className:"text-muted-foreground"})}),b.jsx("input",{...l,type:"text",placeholder:a||"Type your response...",autoFocus:!0,"aria-label":"Text response input",className:"flex-1 text-sm bg-transparent outline-none placeholder:text-foreground/25 text-foreground min-w-0"})]})})}),b.jsx(cs,{})]})},e[0]=a,e[1]=i):i=e[1];let s;return e[2]!==n||e[3]!==r||e[4]!==i?(s=b.jsx(ss,{control:n,name:r,render:i}),e[2]=n,e[3]=r,e[4]=i,e[5]=s):s=e[5],s}function wv(t,e){const n=Y.c(4);let r,a;n[0]!==t||n[1]!==e?(r=()=>{const i=s=>{const o=s.target.tagName;if(o==="INPUT"||o==="TEXTAREA"||s.metaKey||s.ctrlKey||s.altKey)return;const l=Number.parseInt(s.key,10);l>=1&&l<=t&&(s.preventDefault(),e(l-1))};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},a=[t,e],n[0]=t,n[1]=e,n[2]=r,n[3]=a):(r=n[2],a=n[3]),L.useEffect(r,a)}function kL(t){const e=Y.c(9),{control:n,name:r,options:a}=t,[i,s]=L.useState(!1),o=L.useRef(null),l=L.useRef(null);let u;if(e[0]!==a?(u=p=>{l.current?.onChange(a[p]??""),s(!1)},e[0]=a,e[1]=u):u=e[1],wv(a.length,u),a.length===0)return null;let c;e[2]!==i||e[3]!==a?(c=p=>{const{field:f}=p;l.current=f;const h=i||!!f.value&&!a.includes(f.value);return b.jsxs(ls,{children:[b.jsx(us,{children:b.jsxs("div",{className:"flex flex-col px-2",role:"group","aria-label":"Choice options",children:[a.map((g,E)=>{const T=f.value===g;return b.jsxs("button",{type:"button",onClick:()=>{f.onChange(g??""),s(!1)},className:ee("flex items-center gap-3 px-2 py-3 rounded-lg text-left transition-colors w-full",T&&"bg-accent/50",!T&&"hover:bg-accent/30"),"aria-label":`Select ${g}`,children:[b.jsx("span",{className:ee("flex items-center justify-center size-6 rounded-md text-sm shrink-0",T?"bg-chart-1 text-white":"bg-muted text-foreground"),children:E+1}),b.jsx("span",{className:"text-sm text-foreground truncate",children:g})]},`${E}-${g}`)}),b.jsxs("div",{className:ee("flex items-center gap-3 px-2 py-3 rounded-lg transition-colors w-full cursor-text",h&&"bg-accent/50",!h&&"hover:bg-accent/30"),onClick:()=>{s(!0),a.includes(f.value)&&f.onChange(""),setTimeout(()=>o.current?.focus(),0)},children:[b.jsx("span",{className:"flex items-center justify-center size-6 rounded-md bg-muted shrink-0",children:b.jsx(oh,{size:16,className:"text-muted-foreground"})}),h?b.jsx("input",{ref:o,type:"text",value:f.value,onChange:g=>f.onChange(g.target.value),placeholder:"Something else...",autoFocus:!0,"aria-label":"Custom choice input",className:"flex-1 text-sm bg-transparent outline-none placeholder:text-foreground/25 text-foreground min-w-0"}):b.jsx("span",{className:"text-sm text-foreground/25",children:"Something else..."})]})]})}),b.jsx(cs,{})]})},e[2]=i,e[3]=a,e[4]=c):c=e[4];let d;return e[5]!==n||e[6]!==r||e[7]!==c?(d=b.jsx(ss,{control:n,name:r,render:c}),e[5]=n,e[6]=r,e[7]=c,e[8]=d):d=e[8],d}function wL(t){const e=Y.c(6),{control:n,name:r}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=["yes","no"],e[0]=a):a=e[0];const i=a,s=L.useRef(null);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=c=>{s.current?.onChange(i[c]??"")},e[1]=o):o=e[1],wv(i.length,o);let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=c=>{const{field:d}=c;return s.current=d,b.jsxs(ls,{children:[b.jsx(us,{children:b.jsx("div",{className:"flex gap-2 px-2",role:"group","aria-label":"Confirmation options",children:i.map(p=>{const f=d.value===p;return b.jsxs("button",{type:"button",onClick:()=>d.onChange(p),className:ee("flex items-center gap-3 px-4 py-3 rounded-lg text-left transition-colors flex-1",f&&"bg-accent/50",!f&&"hover:bg-accent/30"),"aria-label":`Confirm ${p}`,children:[b.jsx("span",{className:ee("flex items-center justify-center size-6 rounded-md text-sm shrink-0",f?"bg-chart-1 text-white":"bg-muted text-foreground"),children:p==="yes"?1:2}),b.jsx("span",{className:"text-sm text-foreground capitalize",children:p})]},p)})})}),b.jsx(cs,{})]})},e[2]=l):l=e[2];let u;return e[3]!==n||e[4]!==r?(u=b.jsx(ss,{control:n,name:r,render:l}),e[3]=n,e[4]=r,e[5]=u):u=e[5],u}function Wg(t){const e=Y.c(13),{input:n,control:r,name:a}=t;switch(n.type){case"text":{let i;return e[0]!==r||e[1]!==n.default||e[2]!==a?(i=b.jsx(xL,{control:r,name:a,placeholder:n.default}),e[0]=r,e[1]=n.default,e[2]=a,e[3]=i):i=e[3],i}case"choice":{let i;e[4]!==n.options?(i=n.options?.filter(Boolean)??[],e[4]=n.options,e[5]=i):i=e[5];const s=i;let o;return e[6]!==r||e[7]!==a||e[8]!==s?(o=b.jsx(kL,{control:r,name:a,options:s}),e[6]=r,e[7]=a,e[8]=s,e[9]=o):o=e[9],o}case"confirm":{let i;return e[10]!==r||e[11]!==a?(i=b.jsx(wL,{control:r,name:a}),e[10]=r,e[11]=a,e[12]=i):i=e[12],i}default:return null}}function OL({parts:t,onSubmit:e}){const[n,r]=L.useState(t[0]?.toolCallId??""),a=RL(t.map(y=>({toolCallId:y.toolCallId,input:y.input}))),i=LS({resolver:OS(a),defaultValues:Object.fromEntries(t.map(y=>[y.toolCallId,{response:""}]))}),s=i.watch(),o=t.findIndex(y=>y.toolCallId===n),l=!!s[n]?.response,u=t.every(y=>!!s[y.toolCallId]?.response),c=y=>{for(const S of t){const N=y[S.toolCallId]?.response;N&&e(S,N)}},d=y=>t.find(S=>!y[S.toolCallId]?.response&&S.toolCallId!==n)??null,p=()=>{const y=i.getValues();if(t.every(N=>!!y[N.toolCallId]?.response))i.handleSubmit(c)();else{const N=d(y);N&&r(N.toolCallId)}},f=()=>{i.setValue(`${n}.response`,"user has skip this question"),p()},h=()=>{if(o>0){const y=t[o-1];y&&r(y.toolCallId)}},g=()=>{if(o<t.length-1){const y=t[o+1];y&&r(y.toolCallId)}},E=b.jsxs(b.Fragment,{children:[b.jsx(ke,{type:"button",variant:"outline",size:"sm",onClick:f,className:"h-7",children:"Skip"}),b.jsx(ke,{type:"button",size:"sm",disabled:!l,onClick:p,className:ee("h-7",l?"":"opacity-50"),children:u?"Submit":"Next"})]}),T=b.jsx(kv,{current:o,total:t.length,onPrev:h,onNext:g});if(t.length===1){const y=t[0];return y?.input?b.jsx(lf,{...i,children:b.jsx("form",{onSubmit:i.handleSubmit(c),autoComplete:"off",children:b.jsx(Of,{title:y.input?.prompt??"Question",footerRight:E,children:b.jsx(Wg,{input:y.input,control:i.control,name:`${y.toolCallId}.response`})})})}):null}return b.jsx(lf,{...i,children:b.jsx("form",{onSubmit:i.handleSubmit(c),autoComplete:"off",children:b.jsx(EI,{value:n,onValueChange:r,children:t.map(y=>b.jsx(TI,{value:y.toolCallId,className:"mt-0",children:b.jsx(Of,{title:y.input?.prompt??"Question",footerLeft:T,footerRight:E,children:b.jsx(Wg,{input:y.input,control:i.control,name:`${y.toolCallId}.response`})})},y.toolCallId))})})})}function LL(){const t=Y.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsxs("div",{className:"flex items-center gap-2 p-4 border border-dashed rounded-lg bg-accent/50 w-[calc(100%-16px)] max-w-[584px] mx-auto mb-2",children:[b.jsx(VS,{className:"size-5 text-muted-foreground shimmer"}),b.jsx("span",{className:"text-sm text-muted-foreground shimmer",children:"Preparing question..."})]}),t[0]=e):e=t[0],e}function Ov(t){const e=Y.c(6),{userAskParts:n,isStreaming:r,onSubmit:a}=t;let i;e[0]!==n?(i=n.filter(DL),e[0]=n,e[1]=i):i=e[1];const s=i;if(r){let l;return e[2]===Symbol.for("react.memo_cache_sentinel")?(l=b.jsx(LL,{}),e[2]=l):l=e[2],l}if(s.length===0)return null;let o;return e[3]!==a||e[4]!==s?(o=b.jsx(OL,{parts:s,onSubmit:a}),e[3]=a,e[4]=s,e[5]=o):o=e[5],o}function DL(t){return t.state==="input-available"}const ML={length:"Response reached the model's output limit. Different models have different limits. Try switching models or asking it to continue.","content-filter":"Response was filtered due to content policy.","tool-calls":"Response paused after tool execution to prevent infinite loops and save costs. Click continue to keep working."};function Ai(t){const e=Y.c(32),{variant:n,onDismiss:r}=t,a=n==="error",i=a?"Error occurred":"Response incomplete",s=a?t.error.message:ML[t.finishReason]??`Response stopped unexpectedly: ${t.finishReason}`,o=a?"border-destructive/30 bg-destructive/5":"border-amber-500/30 bg-amber-500/5",l=a?"text-destructive":"text-amber-600 dark:text-amber-500",u=a?ah:xC;let c;e[0]!==o?(c=ee("flex items-start gap-2 px-3 py-2.5 rounded-lg border border-dashed text-sm w-full mb-2 shadow",o),e[0]=o,e[1]=c):c=e[1];let d;e[2]!==l?(d=ee("mt-0.5 shrink-0",l),e[2]=l,e[3]=d):d=e[3];let p;e[4]!==u?(p=b.jsx(u,{size:16}),e[4]=u,e[5]=p):p=e[5];let f;e[6]!==d||e[7]!==p?(f=b.jsx("div",{className:d,children:p}),e[6]=d,e[7]=p,e[8]=f):f=e[8];let h;e[9]!==l?(h=ee("text-xs mb-1 font-medium",l),e[9]=l,e[10]=h):h=e[10];let g;e[11]!==h||e[12]!==i?(g=b.jsx("div",{className:h,children:i}),e[11]=h,e[12]=i,e[13]=g):g=e[13];let E;e[14]!==s?(E=b.jsx("div",{className:"text-xs line-clamp-2 text-muted-foreground mb-2",children:s}),e[14]=s,e[15]=E):E=e[15];let T;e[16]!==a||e[17]!==t.onContinue||e[18]!==t.onFixInChat?(T=b.jsx("div",{className:"flex gap-2",children:a?b.jsxs(b.Fragment,{children:[b.jsx(ke,{size:"sm",variant:"outline",onClick:t.onFixInChat,className:"h-7 text-xs",children:"Fix in chat"}),b.jsx(ke,{size:"sm",variant:"outline",disabled:!0,className:"h-7 text-xs",children:"Report"})]}):b.jsx(ke,{size:"sm",variant:"outline",onClick:t.onContinue,className:"h-7 text-xs",children:"Continue"})}),e[16]=a,e[17]=t.onContinue,e[18]=t.onFixInChat,e[19]=T):T=e[19];let y;e[20]!==g||e[21]!==E||e[22]!==T?(y=b.jsxs("div",{className:"flex-1 min-w-0",children:[g,E,T]}),e[20]=g,e[21]=E,e[22]=T,e[23]=y):y=e[23];let S;e[24]===Symbol.for("react.memo_cache_sentinel")?(S=b.jsx(rI,{size:14}),e[24]=S):S=e[24];let N;e[25]!==r?(N=b.jsx("button",{type:"button",onClick:r,className:"text-muted-foreground hover:text-foreground transition-colors shrink-0",title:"Dismiss",children:S}),e[25]=r,e[26]=N):N=e[26];let _;return e[27]!==c||e[28]!==N||e[29]!==f||e[30]!==y?(_=b.jsx("div",{className:"px-0.5",children:b.jsxs("div",{className:c,children:[f,y,N]})}),e[27]=c,e[28]=N,e[29]=f,e[30]=y,e[31]=_):_=e[31],_}function Rs(){const t=Y.c(29),{error:e,clearError:n,finishReason:r,clearFinishReason:a,messages:i,isStreaming:s,isWaitingForApprovals:o,addToolOutput:l,addToolApprovalResponse:u,sendMessage:c}=rh();let d,p,f;if(t[0]!==i){const v=i.at(-1);f=v?.role==="assistant"?v.parts.filter(FL):null,d=f?.filter(PL)?.length,p=v?.role==="assistant"?vL(v.parts):[],t[0]=i,t[1]=d,t[2]=p,t[3]=f}else d=t[1],p=t[2],f=t[3];const h=p;let g;t[4]!==e||t[5]!==c?(g=()=>{if(e){const R={type:"doc",content:[{type:"paragraph",content:[{type:"text",text:`I encountered this error: ${e.message}. Can you help me fix it?`}]}]};c(R)}},t[4]=e,t[5]=c,t[6]=g):g=t[6];const E=g;let T;t[7]!==c?(T=()=>{c({type:"doc",content:[{type:"paragraph",content:[{type:"text",text:"Please continue."}]}]})},t[7]=c,t[8]=T):T=t[8];const y=T;let S;t[9]!==l?(S=(v,R)=>{l({tool:"user_ask",toolCallId:v.toolCallId,output:{response:R}})},t[9]=l,t[10]=S):S=t[10];const N=S;let _;t[11]!==u?(_=(v,R,I)=>{u({id:v,approved:R,...I?{reason:I}:{}})},t[11]=u,t[12]=_):_=t[12];const A=_;if(d){let v;return t[13]!==N||t[14]!==s||t[15]!==f?(v=b.jsx("div",{className:"absolute bottom-full left-0 right-0",children:b.jsx(Ov,{userAskParts:f,isStreaming:s,onSubmit:N})}),t[13]=N,t[14]=s,t[15]=f,t[16]=v):v=t[16],v}if(h.length>0||s&&o){let v;return t[17]!==A||t[18]!==s||t[19]!==h?(v=b.jsx("div",{className:"absolute bottom-full left-0 right-0",children:b.jsx(NL,{approvals:h,isStreaming:s,onRespond:A})}),t[17]=A,t[18]=s,t[19]=h,t[20]=v):v=t[20],v}if(!s&&e){let v;return t[21]!==n||t[22]!==e||t[23]!==E?(v=b.jsx("div",{className:"absolute bottom-full left-0 right-0 bg-background",children:b.jsx(Ai,{variant:"error",error:e,onDismiss:n,onFixInChat:E})}),t[21]=n,t[22]=e,t[23]=E,t[24]=v):v=t[24],v}if(!s&&r&&r!=="stop"&&!o){let v;return t[25]!==a||t[26]!==r||t[27]!==y?(v=b.jsx("div",{className:"absolute bottom-full left-0 right-0 bg-background",children:b.jsx(Ai,{variant:"warning",finishReason:r,onDismiss:a,onContinue:y})}),t[25]=a,t[26]=r,t[27]=y,t[28]=v):v=t[28],v}return null}function PL(t){return t.state!=="output-available"}function FL(t){return t.type==="tool-user_ask"}Rs.Error=function(e){return b.jsx(Ai,{variant:"error",error:e.error,onDismiss:e.onDismiss,onFixInChat:e.onFixInChat})};Rs.Warning=function(e){return b.jsx(Ai,{variant:"warning",finishReason:e.finishReason,onDismiss:e.onDismiss,onContinue:e.onContinue})};Rs.UserAskQuestion=Ov;const ei={passthrough:{label:"Direct access",description:"Best for small teams or when you need predictable behavior",icon:YS},smart_tool_selection:{label:"Smart discovery",description:"Ideal for large teams with many tools - AI finds what it needs",icon:SI},code_execution:{label:"Smart execution",description:"Maximum flexibility - AI can write code to orchestrate tools",icon:_I,recommended:!0}};function BL(t){const e=Y.c(24),{mode:n,isSelected:r,onSelect:a}=t,i=ei[n],s=i.icon,o=r&&"bg-accent/50";let l;e[0]!==o?(l=ee("flex items-start gap-3 py-3 px-3 hover:bg-accent/50 cursor-pointer rounded-lg transition-colors",o),e[0]=o,e[1]=l):l=e[1];let u;e[2]!==s?(u=b.jsx("div",{className:"p-1.5 shrink-0 rounded-md bg-muted",children:b.jsx(s,{className:"size-4 text-muted-foreground"})}),e[2]=s,e[3]=u):u=e[3];let c;e[4]!==i.label?(c=b.jsx("span",{className:"text-sm font-medium text-foreground",children:i.label}),e[4]=i.label,e[5]=c):c=e[5];let d;e[6]!==i.recommended?(d=i.recommended&&b.jsx(yI,{variant:"outline",className:"text-xs",children:"Recommended"}),e[6]=i.recommended,e[7]=d):d=e[7];let p;e[8]!==r?(p=r&&b.jsx(qn,{size:16,className:"text-foreground shrink-0 ml-auto"}),e[8]=r,e[9]=p):p=e[9];let f;e[10]!==c||e[11]!==d||e[12]!==p?(f=b.jsxs("div",{className:"flex items-center gap-2",children:[c,d,p]}),e[10]=c,e[11]=d,e[12]=p,e[13]=f):f=e[13];let h;e[14]!==i.description?(h=b.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2 leading-relaxed",children:i.description}),e[14]=i.description,e[15]=h):h=e[15];let g;e[16]!==f||e[17]!==h?(g=b.jsxs("div",{className:"flex flex-col flex-1 min-w-0 gap-0.5",children:[f,h]}),e[16]=f,e[17]=h,e[18]=g):g=e[18];let E;return e[19]!==a||e[20]!==l||e[21]!==u||e[22]!==g?(E=b.jsxs("div",{onClick:a,className:l,children:[u,g]}),e[19]=a,e[20]=l,e[21]=u,e[22]=g,e[23]=E):E=e[23],E}function UL(t){const e=Y.c(24),{selectedMode:n,onModeChange:r,className:a,disabled:i}=t,s=i===void 0?!1:i,[o,l]=L.useState(!1);let u;e[0]!==r?(u=R=>{r(R),l(!1)},e[0]=r,e[1]=u):u=e[1];const c=u,d=s?!1:o,p=s?"cursor-not-allowed opacity-50":"cursor-pointer hover:text-muted-foreground";let f;e[2]!==a||e[3]!==p?(f=ee("flex items-center justify-center size-8 rounded-md border border-border text-muted-foreground/75 transition-colors shrink-0",p,a),e[2]=a,e[3]=p,e[4]=f):f=e[4];const h=ei[n]?.icon??YS;let g;e[5]!==h?(g=b.jsx(h,{size:16}),e[5]=h,e[6]=g):g=e[6];const E=g;let T;e[7]!==s||e[8]!==f||e[9]!==E?(T=b.jsx(ct,{asChild:!0,children:b.jsx(Sr,{asChild:!0,children:b.jsx("button",{type:"button",disabled:s,className:f,children:E})})}),e[7]=s,e[8]=f,e[9]=E,e[10]=T):T=e[10];const y=ei[n]?.label??"Choose agent mode";let S;e[11]!==y?(S=b.jsx(dt,{side:"top",className:"text-xs",children:y}),e[11]=y,e[12]=S):S=e[12];let N;e[13]!==S||e[14]!==T?(N=b.jsx(as,{children:b.jsxs(ut,{children:[T,S]})}),e[13]=S,e[14]=T,e[15]=N):N=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=Object.keys(ei),e[16]=_):_=e[16];let A;e[17]!==c||e[18]!==n?(A=b.jsx(Ar,{className:"w-[350px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:b.jsx("div",{className:"flex flex-col p-1",children:_.map(R=>b.jsx(BL,{mode:R,isSelected:R===n,onSelect:()=>c(R)},R))})}),e[17]=c,e[18]=n,e[19]=A):A=e[19];let v;return e[20]!==N||e[21]!==A||e[22]!==d?(v=b.jsxs(yr,{open:d,onOpenChange:l,children:[N,A]}),e[20]=N,e[21]=A,e[22]=d,e[23]=v):v=e[23],v}function HL(t){const e=Y.c(24),{virtualMcp:n,isSelected:r}=t,a=r&&"bg-accent";let i;e[0]!==a?(i=ee("flex items-start gap-3 py-3 px-3 hover:bg-accent cursor-pointer rounded-xl transition-colors",a),e[0]=a,e[1]=i):i=e[1];let s;e[2]!==n.fallbackIcon?(s=n.fallbackIcon??b.jsx(ia,{}),e[2]=n.fallbackIcon,e[3]=s):s=e[3];let o;e[4]!==s||e[5]!==n.icon||e[6]!==n.title?(o=b.jsx(ih,{icon:n.icon,name:n.title,size:"sm",fallbackIcon:s,className:"rounded-xl border border-border shadow-sm shrink-0 aspect-square"}),e[4]=s,e[5]=n.icon,e[6]=n.title,e[7]=o):o=e[7];let l;e[8]!==n.title?(l=b.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[8]=n.title,e[9]=l):l=e[9];let u;e[10]!==r?(u=r&&b.jsx(qn,{size:16,className:"text-foreground shrink-0"}),e[10]=r,e[11]=u):u=e[11];let c;e[12]!==l||e[13]!==u?(c=b.jsxs("div",{className:"flex items-center justify-between",children:[l,u]}),e[12]=l,e[13]=u,e[14]=c):c=e[14];let d;e[15]!==n.description?(d=n.description&&b.jsx("p",{className:"text-xs text-muted-foreground line-clamp-1 leading-relaxed",children:n.description}),e[15]=n.description,e[16]=d):d=e[16];let p;e[17]!==c||e[18]!==d?(p=b.jsxs("div",{className:"flex flex-col flex-1 min-w-0 gap-0.5",children:[c,d]}),e[17]=c,e[18]=d,e[19]=p):p=e[19];let f;return e[20]!==i||e[21]!==o||e[22]!==p?(f=b.jsxs("div",{className:i,children:[o,p]}),e[20]=i,e[21]=o,e[22]=p,e[23]=f):f=e[23],f}function Bh(t){const e=Y.c(33),{virtualMcps:n,selectedVirtualMcpId:r,onVirtualMcpChange:a,searchInputRef:i}=t,[s,o]=L.useState(""),l=L.useRef(null),u=i??l;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={navigateOnCreate:!0},e[0]=c):c=e[0];const{createVirtualMCP:d,isCreating:p}=II(c);let f,h,g,E;if(e[1]!==d||e[2]!==u||e[3]!==p||e[4]!==a||e[5]!==s||e[6]!==r||e[7]!==n){let S;e:{const M=n.filter($L);if(!s.trim()){S=M;break e}const H=s.toLowerCase();S=M.filter(F=>F.title.toLowerCase().includes(H)||F.description?.toLowerCase().includes(H))}const N=S;let _;e[12]!==a?(_=M=>{a(M),o("")},e[12]=a,e[13]=_):_=e[13];const A=_;g="flex flex-col max-h-[400px]";let v;e[14]===Symbol.for("react.memo_cache_sentinel")?(v=b.jsx(KS,{size:16,className:"text-muted-foreground pointer-events-none shrink-0"}),e[14]=v):v=e[14];let R;e[15]===Symbol.for("react.memo_cache_sentinel")?(R=M=>o(M.target.value),e[15]=R):R=e[15];let I;e[16]!==u||e[17]!==s?(I=b.jsx(zS,{ref:u,type:"text",placeholder:"Search for an agent...",value:s,onChange:R,className:"flex-1 h-8 text-sm border-0 focus-visible:ring-0 focus-visible:ring-offset-0 shadow-none p-0"}),e[16]=u,e[17]=s,e[18]=I):I=e[18];const O=p?"Creating...":"Create Agent";let w;e[19]!==d||e[20]!==p||e[21]!==O?(w=b.jsx(ke,{onClick:d,variant:"outline",size:"sm",className:"h-8 px-3 rounded-lg text-sm font-medium shrink-0",disabled:p,children:O}),e[19]=d,e[20]=p,e[21]=O,e[22]=w):w=e[22],e[23]!==I||e[24]!==w?(E=b.jsx("div",{className:"border-b px-4 py-3 bg-background/95 backdrop-blur sticky top-0 z-10",children:b.jsxs("div",{className:"relative flex items-center gap-2",children:[v,I,w]})}),e[23]=I,e[24]=w,e[25]=E):E=e[25],f="overflow-y-auto p-1.5",h=N.length>0?b.jsx("div",{className:"grid grid-cols-2 gap-0.5",children:N.map(M=>b.jsx("div",{role:"button",tabIndex:0,onClick:()=>A(M.id),onKeyDown:H=>{(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),A(M.id))},className:"outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-xl",children:b.jsx(HL,{virtualMcp:M,isSelected:M.id===r})},M.id))}):b.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:"No agents found"}),e[1]=d,e[2]=u,e[3]=p,e[4]=a,e[5]=s,e[6]=r,e[7]=n,e[8]=f,e[9]=h,e[10]=g,e[11]=E}else f=e[8],h=e[9],g=e[10],E=e[11];let T;e[26]!==f||e[27]!==h?(T=b.jsx("div",{className:f,children:h}),e[26]=f,e[27]=h,e[28]=T):T=e[28];let y;return e[29]!==g||e[30]!==E||e[31]!==T?(y=b.jsxs("div",{className:g,children:[E,T]}),e[29]=g,e[30]=E,e[31]=T,e[32]=y):y=e[32],y}function $L(t){return!t.id||!ur(t.id)}function jL(t){const e=Y.c(37),{selectedVirtualMcpId:n,onVirtualMcpChange:r,virtualMcps:a,className:i,placeholder:s,showTooltip:o,disabled:l}=t,u=s===void 0?"Select Agent":s,c=o===void 0?!0:o,d=l===void 0?!1:l,[p,f]=L.useState(!1),h=L.useRef(null),g=CI(),E=a??g;let T;e[0]!==E?(T=E.filter(qL),e[0]=E,e[1]=T):T=e[1];const y=T;let S;e[2]!==E||e[3]!==n?(S=n?E.find(K=>K.id===n):null,e[2]=E,e[3]=n,e[4]=S):S=e[4];const N=S;let _;e[5]!==r?(_=K=>{r(K),f(!1)},e[5]=r,e[6]=_):_=e[6];const A=_;let v;e[7]===Symbol.for("react.memo_cache_sentinel")?(v=K=>{f(K)},e[7]=v):v=e[7];const R=v;let I,O;e[8]!==p?(I=()=>{p&&setTimeout(()=>{h.current?.focus()},0)},O=[p],e[8]=p,e[9]=I,e[10]=O):(I=e[9],O=e[10]),L.useEffect(I,O);const w=d?!1:p,M=d?void 0:R,H=d?"cursor-not-allowed opacity-50":"cursor-pointer hover:text-muted-foreground";let F;e[11]!==i||e[12]!==H?(F=ee("relative flex items-center justify-center size-8 rounded-md text-muted-foreground/75 transition-colors shrink-0",H,i),e[11]=i,e[12]=H,e[13]=F):F=e[13];let $;e[14]!==N?($=N?b.jsx(ih,{icon:N.icon,name:N.title,size:"sm",fallbackIcon:b.jsx(ia,{size:16}),className:"rounded-md shrink-0 absolute inset-0 size-full"}):b.jsxs(b.Fragment,{children:[b.jsxs("svg",{className:"absolute inset-0 size-full",fill:"none",children:[b.jsx("defs",{children:b.jsxs("linearGradient",{id:"agent-border-gradient",gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:"32",y2:"32",children:[b.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"6s",repeatCount:"indefinite"}),b.jsx("stop",{offset:"0%",stopColor:"var(--chart-1)"}),b.jsx("stop",{offset:"100%",stopColor:"var(--chart-4)"})]})}),b.jsx("rect",{x:"0.5",y:"0.5",width:"31",height:"31",rx:"5.5",stroke:"url(#agent-border-gradient)",strokeWidth:"1",strokeDasharray:"3 3"})]}),b.jsx(ia,{size:16})]}),e[14]=N,e[15]=$):$=e[15];let U;e[16]!==d||e[17]!==u||e[18]!==F||e[19]!==$?(U=b.jsx(ct,{asChild:!0,children:b.jsx(Sr,{asChild:!0,children:b.jsx("button",{type:"button",disabled:d,className:F,"aria-label":u,children:$})})}),e[16]=d,e[17]=u,e[18]=F,e[19]=$,e[20]=U):U=e[20];let j;e[21]!==p||e[22]!==N?.title||e[23]!==c?(j=c&&!p&&b.jsx(dt,{side:"top",className:"text-xs",children:N?.title??"Choose an agent to chat with"}),e[21]=p,e[22]=N?.title,e[23]=c,e[24]=j):j=e[24];let P;e[25]!==U||e[26]!==j?(P=b.jsx(as,{children:b.jsxs(ut,{children:[U,j]})}),e[25]=U,e[26]=j,e[27]=P):P=e[27];let W;e[28]!==A||e[29]!==n||e[30]!==y?(W=b.jsx(Ar,{className:"w-[550px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:b.jsx(Bh,{virtualMcps:y,selectedVirtualMcpId:n,onVirtualMcpChange:A,searchInputRef:h})}),e[28]=A,e[29]=n,e[30]=y,e[31]=W):W=e[31];let X;return e[32]!==w||e[33]!==M||e[34]!==P||e[35]!==W?(X=b.jsxs(yr,{open:w,onOpenChange:M,children:[P,W]}),e[32]=w,e[33]=M,e[34]=P,e[35]=W,e[36]=X):X=e[36],X}function qL(t){return!t.id||!ur(t.id)}function zL(t,e,n){t.chain().focus().insertContentAt(e,[GL(n),{type:"text",text:" "}]).run()}function GL(t){return{type:"file",attrs:t}}function VL(t){const e=Y.c(17),{node:n,selected:r,view:a}=t,{name:i,mimeType:s,data:o}=n.attrs,l=r&&a.editable;let u;e[0]!==s?(u=s.startsWith("image/"),e[0]=s,e[1]=u):u=e[1];const c=u,d=l&&"outline-2 outline-blue-300 outline-offset-0";let p;e[2]!==d?(p=ee("px-1 py-1 rounded","inline-flex items-center gap-1","cursor-default select-none","text-xs font-light","bg-muted text-muted-foreground",d),e[2]=d,e[3]=p):p=e[3];let f;e[4]!==i?(f=b.jsx(ct,{asChild:!0,children:b.jsx("span",{children:i})}),e[4]=i,e[5]=f):f=e[5];let h;e[6]!==o||e[7]!==c||e[8]!==s||e[9]!==i?(h=b.jsx(dt,{side:"top",className:"max-w-sm p-1.5",children:c?b.jsx("img",{src:`data:${s};base64,${o}`,alt:i,className:"max-w-full max-h-64 object-contain rounded"}):b.jsxs("div",{className:"text-xs",children:[b.jsx("div",{className:"font-medium",children:i}),b.jsx("div",{className:"text-muted-foreground mt-1",children:s})]})}),e[6]=o,e[7]=c,e[8]=s,e[9]=i,e[10]=h):h=e[10];let g;e[11]!==f||e[12]!==h?(g=b.jsxs(ut,{children:[f,h]}),e[11]=f,e[12]=h,e[13]=g):g=e[13];let E;return e[14]!==p||e[15]!==g?(E=b.jsx(yv,{className:p,children:g}),e[14]=p,e[15]=g,e[16]=E):E=e[16],E}const Lv=tt.create({name:"file",group:"inline",inline:!0,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id")||null,renderHTML:t=>t.id?{"data-id":t.id}:{}},name:{default:null,parseHTML:t=>t.getAttribute("data-name")||null,renderHTML:t=>t.name?{"data-name":t.name}:{}},mimeType:{default:null,parseHTML:t=>t.getAttribute("data-mime-type")||null,renderHTML:t=>t.mimeType?{"data-mime-type":t.mimeType}:{}},size:{default:0,parseHTML:t=>{const e=t.getAttribute("data-size");return e?Number.parseInt(e,10):0},renderHTML:t=>t.size?{"data-size":String(t.size)}:{}},data:{default:null,parseHTML:t=>t.getAttribute("data-data")||null,renderHTML:t=>t.data?{"data-data":t.data}:{}}}},parseHTML(){return[{tag:'span[data-type="file"]'}]},renderHTML({node:t,HTMLAttributes:e}){const n={"data-type":"file"};return t.attrs.id&&(n["data-id"]=t.attrs.id),t.attrs.name&&(n["data-name"]=t.attrs.name),t.attrs.mimeType&&(n["data-mime-type"]=t.attrs.mimeType),t.attrs.size&&(n["data-size"]=String(t.attrs.size)),t.attrs.data&&(n["data-data"]=t.attrs.data),["span",{...e,...n}]},renderText({node:t}){return`[${t.attrs.name??""}]`},addNodeView(){return Sv(VL)}});async function Dv(t,e,n,r){if(!HS(e)){$t.error("Selected model does not support file uploads");return}const a=10*1024*1024;if(n.size>a){$t.error(`File "${n.name}" exceeds 10MB limit`);return}try{const i=new FileReader,s=new Promise((u,c)=>{i.onload=()=>{const d=i.result;if(typeof d!="string"){c(new Error("Failed to read file as data URL"));return}const p=d.includes(",")?d.split(",")[1]??d:d;u(p)},i.onerror=c});i.readAsDataURL(n);const o=await s,l={id:crypto.randomUUID(),name:n.name,mimeType:n.type||"application/octet-stream",size:n.size,data:o};zL(t,{from:r,to:r},l)}catch(i){console.error("Failed to process file:",i),$t.error(`Failed to load file "${n.name}"`)}}function WL(t){const e=Y.c(7),{editor:n,selectedModel:r}=t,a=L.useRef(YL);let i,s;e[0]!==n||e[1]!==r?(i=()=>{a.current=async(u,c)=>{await Dv(n,r,u,c)}},s=[n,r],e[0]=n,e[1]=r,e[2]=i,e[3]=s):(i=e[2],s=e[3]),L.useEffect(i,s);let o,l;return e[4]!==n?(o=()=>{if(n?.isDestroyed)return;const u=new ye("fileDropHandler");n.state.plugins.find(p=>p.spec.key===u)&&n.unregisterPlugin(u);const d=new ge({key:u,props:{handleDrop:(p,f,h,g)=>{if(g)return!1;const E=f.dataTransfer?.files;if(!E||E.length===0)return!1;f.preventDefault();const T=p.posAtCoords({left:f.clientX,top:f.clientY});if(!T)return!1;const y=Array.from(E),S=T.pos;for(const N of y)a.current?.(N,S);return!0}}});return n.registerPlugin(d),()=>{n?.isDestroyed||n.unregisterPlugin(u)}},l=[n],e[4]=n,e[5]=o,e[6]=l):(o=e[5],l=e[6]),L.useEffect(o,l),null}function YL(){return Promise.resolve()}function KL(t){const e=Y.c(23),{selectedModel:n,isStreaming:r}=t,{editor:a}=Ev(),i=L.useRef(null);let s;e[0]!==n?(s=HS(n),e[0]=n,e[1]=s):s=e[1];const o=s;let l;e[2]!==a||e[3]!==n?(l=async A=>{const v=A.target.files;if(!v||v.length===0||!a)return;const R=Array.from(v),{from:I}=a.state.selection,O=I;for(const w of R)await Dv(a,n,w,O);i.current&&(i.current.value="")},e[2]=a,e[3]=n,e[4]=l):l=e[4];const u=l;if(!a)return null;const c=r||!o;let d;e[5]!==u||e[6]!==c?(d=b.jsx("input",{ref:i,type:"file",multiple:!0,className:"hidden",onChange:u,disabled:c}),e[5]=u,e[6]=c,e[7]=d):d=e[7];const p=r||!o?"cursor-not-allowed opacity-50":"cursor-pointer hover:text-muted-foreground";let f;e[8]!==p?(f=ee("flex items-center justify-center size-8 rounded-md border border-border text-muted-foreground/75 transition-colors shrink-0",p),e[8]=p,e[9]=f):f=e[9];const h=r||!o;let g,E;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=()=>i.current?.click(),E=b.jsx(tA,{size:16}),e[10]=g,e[11]=E):(g=e[10],E=e[11]);let T;e[12]!==f||e[13]!==h?(T=b.jsx(ct,{asChild:!0,children:b.jsx("button",{type:"button",className:f,disabled:h,onClick:g,children:E})}),e[12]=f,e[13]=h,e[14]=T):T=e[14];const y=o?"Add file":"Selected model does not support files";let S;e[15]!==y?(S=b.jsx(dt,{side:"top",children:y}),e[15]=y,e[16]=S):S=e[16];let N;e[17]!==T||e[18]!==S?(N=b.jsxs(ut,{children:[T,S]}),e[17]=T,e[18]=S,e[19]=N):N=e[19];let _;return e[20]!==N||e[21]!==d?(_=b.jsxs(b.Fragment,{children:[d,N]}),e[20]=N,e[21]=d,e[22]=_):_=e[22],_}function XL(t={}){return new ge({view(e){return new ZL(e,t)}})}class ZL{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(a=>{let i=s=>{this[a](s)};return e.dom.addEventListener(a,i),{name:a,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r,a=this.editorView.dom,i=a.getBoundingClientRect(),s=i.width/a.offsetWidth,o=i.height/a.offsetHeight;if(n){let d=e.nodeBefore,p=e.nodeAfter;if(d||p){let f=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(f){let h=f.getBoundingClientRect(),g=d?h.bottom:h.top;d&&p&&(g=(g+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let E=this.width/2*o;r={left:h.left,right:h.right,top:g-E,bottom:g+E}}}}if(!r){let d=this.editorView.coordsAtPos(this.cursorPos),p=this.width/2*s;r={left:d.left-p,right:d.left+p,top:d.top,bottom:d.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let u,c;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,c=-pageYOffset;else{let d=l.getBoundingClientRect(),p=d.width/l.offsetWidth,f=d.height/l.offsetHeight;u=d.left-l.scrollLeft*p,c=d.top-l.scrollTop*f}this.element.style.left=(r.left-u)/s+"px",this.element.style.top=(r.top-c)/o+"px",this.element.style.width=(r.right-r.left)/s+"px",this.element.style.height=(r.bottom-r.top)/o+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),a=r&&r.type.spec.disableDropCursor,i=typeof a=="function"?a(this.editorView,n,e):a;if(n&&!i){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let o=DA(this.editorView.state.doc,s,this.editorView.dragging.slice);o!=null&&(s=o)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class ve extends le{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return ve.valid(r)?new ve(r):le.near(r)}content(){return Z.empty}eq(e){return e instanceof ve&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ve(e.resolve(n.pos))}getBookmark(){return new Uh(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!QL(e)||!JL(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let a=n.contentMatchAt(e.index()).defaultType;return a&&a.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&ve.valid(e))return e;let a=e.pos,i=null;for(let s=e.depth;;s--){let o=e.node(s);if(n>0?e.indexAfter(s)<o.childCount:e.index(s)>0){i=o.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;a+=n;let l=e.doc.resolve(a);if(ve.valid(l))return l}for(;;){let s=n>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!re.isSelectable(i)){e=e.doc.resolve(a+i.nodeSize*n),r=!1;continue e}break}i=s,a+=n;let o=e.doc.resolve(a);if(ve.valid(o))return o}return null}}}ve.prototype.visible=!1;ve.findFrom=ve.findGapCursorFrom;le.jsonID("gapcursor",ve);class Uh{constructor(e){this.pos=e}map(e){return new Uh(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return ve.valid(n)?new ve(n):le.near(n)}}function Mv(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function QL(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n-1);;a=a.lastChild){if(a.childCount==0&&!a.inlineContent||Mv(a.type))return!0;if(a.inlineContent)return!1}}return!0}function JL(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n);;a=a.firstChild){if(a.childCount==0&&!a.inlineContent||Mv(a.type))return!0;if(a.inlineContent)return!1}}return!0}function eD(){return new ge({props:{decorations:aD,createSelectionBetween(t,e,n){return e.pos==n.pos&&ve.valid(n)?new ve(n):null},handleClick:nD,handleKeyDown:tD,handleDOMEvents:{beforeinput:rD}}})}const tD=MN({ArrowLeft:Ha("horiz",-1),ArrowRight:Ha("horiz",1),ArrowUp:Ha("vert",-1),ArrowDown:Ha("vert",1)});function Ha(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,a,i){let s=r.selection,o=e>0?s.$to:s.$from,l=s.empty;if(s instanceof ie){if(!i.endOfTextblock(n)||o.depth==0)return!1;l=!1,o=r.doc.resolve(e>0?o.after():o.before())}let u=ve.findGapCursorFrom(o,e,l);return u?(a&&a(r.tr.setSelection(new ve(u))),!0):!1}}function nD(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!ve.valid(r))return!1;let a=t.posAtCoords({left:n.clientX,top:n.clientY});return a&&a.inside>-1&&re.isSelectable(t.state.doc.nodeAt(a.inside))?!1:(t.dispatch(t.state.tr.setSelection(new ve(r))),!0)}function rD(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof ve))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let a=z.empty;for(let s=r.length-1;s>=0;s--)a=z.from(r[s].createAndFill(null,a));let i=t.state.tr.replace(n.pos,n.pos,new Z(a,0,0));return i.setSelection(ie.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function aD(t){if(!(t.selection instanceof ve))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Te.create(t.doc,[We.widget(t.selection.head,e,{key:"gapcursor"})])}var Ni=200,He=function(){};He.prototype.append=function(e){return e.length?(e=He.from(e),!this.length&&e||e.length<Ni&&this.leafAppend(e)||this.length<Ni&&e.leafPrepend(this)||this.appendInner(e)):this};He.prototype.prepend=function(e){return e.length?He.from(e).append(this):this};He.prototype.appendInner=function(e){return new iD(this,e)};He.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?He.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};He.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};He.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};He.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var a=[];return this.forEach(function(i,s){return a.push(e(i,s))},n,r),a};He.from=function(e){return e instanceof He?e:e&&e.length?new Pv(e):He.empty};var Pv=(function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(a,i){return a==0&&i==this.length?this:new e(this.values.slice(a,i))},e.prototype.getInner=function(a){return this.values[a]},e.prototype.forEachInner=function(a,i,s,o){for(var l=i;l<s;l++)if(a(this.values[l],o+l)===!1)return!1},e.prototype.forEachInvertedInner=function(a,i,s,o){for(var l=i-1;l>=s;l--)if(a(this.values[l],o+l)===!1)return!1},e.prototype.leafAppend=function(a){if(this.length+a.length<=Ni)return new e(this.values.concat(a.flatten()))},e.prototype.leafPrepend=function(a){if(this.length+a.length<=Ni)return new e(a.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(He);He.empty=new Pv([]);var iD=(function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,a,i,s){var o=this.left.length;if(a<o&&this.left.forEachInner(r,a,Math.min(i,o),s)===!1||i>o&&this.right.forEachInner(r,Math.max(a-o,0),Math.min(this.length,i)-o,s+o)===!1)return!1},e.prototype.forEachInvertedInner=function(r,a,i,s){var o=this.left.length;if(a>o&&this.right.forEachInvertedInner(r,a-o,Math.max(i,o)-o,s+o)===!1||i<o&&this.left.forEachInvertedInner(r,Math.min(a,o),i,s)===!1)return!1},e.prototype.sliceInner=function(r,a){if(r==0&&a==this.length)return this;var i=this.left.length;return a<=i?this.left.slice(r,a):r>=i?this.right.slice(r-i,a-i):this.left.slice(r,i).append(this.right.slice(0,a-i))},e.prototype.leafAppend=function(r){var a=this.right.leafAppend(r);if(a)return new e(this.left,a)},e.prototype.leafPrepend=function(r){var a=this.left.leafPrepend(r);if(a)return new e(a,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(He);const sD=500;class yt{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let a,i;n&&(a=this.remapping(r,this.items.length),i=a.maps.length);let s=e.tr,o,l,u=[],c=[];return this.items.forEach((d,p)=>{if(!d.step){a||(a=this.remapping(r,p+1),i=a.maps.length),i--,c.push(d);return}if(a){c.push(new _t(d.map));let f=d.step.map(a.slice(i)),h;f&&s.maybeStep(f).doc&&(h=s.mapping.maps[s.mapping.maps.length-1],u.push(new _t(h,void 0,void 0,u.length+c.length))),i--,h&&a.appendMap(h,i)}else s.maybeStep(d.step);if(d.selection)return o=a?d.selection.map(a.slice(i)):d.selection,l=new yt(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:s,selection:o}}addTransform(e,n,r,a){let i=[],s=this.eventCount,o=this.items,l=!a&&o.length?o.get(o.length-1):null;for(let c=0;c<e.steps.length;c++){let d=e.steps[c].invert(e.docs[c]),p=new _t(e.mapping.maps[c],d,n),f;(f=l&&l.merge(p))&&(p=f,c?i.pop():o=o.slice(0,o.length-1)),i.push(p),n&&(s++,n=void 0),a||(l=p)}let u=s-r.depth;return u>lD&&(o=oD(o,u),s-=u),new yt(o.append(i),s)}remapping(e,n){let r=new la;return this.items.forEach((a,i)=>{let s=a.mirrorOffset!=null&&i-a.mirrorOffset>=e?r.maps.length-a.mirrorOffset:void 0;r.appendMap(a.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new yt(this.items.append(e.map(n=>new _t(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],a=Math.max(0,this.items.length-n),i=e.mapping,s=e.steps.length,o=this.eventCount;this.items.forEach(p=>{p.selection&&o--},a);let l=n;this.items.forEach(p=>{let f=i.getMirror(--l);if(f==null)return;s=Math.min(s,f);let h=i.maps[f];if(p.step){let g=e.steps[f].invert(e.docs[f]),E=p.selection&&p.selection.map(i.slice(l+1,f));E&&o++,r.push(new _t(h,g,E))}else r.push(new _t(h))},a);let u=[];for(let p=n;p<s;p++)u.push(new _t(i.maps[p]));let c=this.items.slice(0,a).append(u).append(r),d=new yt(c,o);return d.emptyItemCount()>sD&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,a=[],i=0;return this.items.forEach((s,o)=>{if(o>=e)a.push(s),s.selection&&i++;else if(s.step){let l=s.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let c=s.selection&&s.selection.map(n.slice(r));c&&i++;let d=new _t(u.invert(),l,c),p,f=a.length-1;(p=a.length&&a[f].merge(d))?a[f]=p:a.push(d)}}else s.map&&r--},this.items.length,0),new yt(He.from(a.reverse()),i)}}yt.empty=new yt(He.empty,0);function oD(t,e){let n;return t.forEach((r,a)=>{if(r.selection&&e--==0)return n=a,!1}),t.slice(n)}class _t{constructor(e,n,r,a){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=a}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new _t(n.getMap().invert(),n,this.selection)}}}class Zt{constructor(e,n,r,a,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=a,this.prevComposition=i}}const lD=20;function uD(t,e,n,r){let a=n.getMeta(Dn),i;if(a)return a.historyState;n.getMeta(pD)&&(t=new Zt(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(Dn))return s.getMeta(Dn).redo?new Zt(t.done.addTransform(n,void 0,r,ti(e)),t.undone,Yg(n.mapping.maps),t.prevTime,t.prevComposition):new Zt(t.done,t.undone.addTransform(n,void 0,r,ti(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let o=n.getMeta("composition"),l=t.prevTime==0||!s&&t.prevComposition!=o&&(t.prevTime<(n.time||0)-r.newGroupDelay||!cD(n,t.prevRanges)),u=s?lo(t.prevRanges,n.mapping):Yg(n.mapping.maps);return new Zt(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,ti(e)),yt.empty,u,n.time,o??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Zt(t.done.rebased(n,i),t.undone.rebased(n,i),lo(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Zt(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),lo(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function cD(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,a)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&a>=e[i]&&(n=!0)}),n}function Yg(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,a,i,s)=>e.push(i,s));return e}function lo(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let a=e.map(t[r],1),i=e.map(t[r+1],-1);a<=i&&n.push(a,i)}return n}function dD(t,e,n){let r=ti(e),a=Dn.get(e).spec.config,i=(n?t.undone:t.done).popEvent(e,r);if(!i)return null;let s=i.selection.resolve(i.transform.doc),o=(n?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),a,r),l=new Zt(n?o:i.remaining,n?i.remaining:o,null,0,-1);return i.transform.setSelection(s).setMeta(Dn,{redo:n,historyState:l})}let uo=!1,Kg=null;function ti(t){let e=t.plugins;if(Kg!=e){uo=!1,Kg=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){uo=!0;break}}return uo}const Dn=new ye("history"),pD=new ye("closeHistory");function fD(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new ge({key:Dn,state:{init(){return new Zt(yt.empty,yt.empty,null,0,-1)},apply(e,n,r){return uD(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,a=r=="historyUndo"?Bv:r=="historyRedo"?Uv:null;return!a||!e.editable?!1:(n.preventDefault(),a(e.state,e.dispatch))}}}})}function Fv(t,e){return(n,r)=>{let a=Dn.getState(n);if(!a||(t?a.undone:a.done).eventCount==0)return!1;if(r){let i=dD(a,n,t);i&&r(e?i.scrollIntoView():i)}return!0}}const Bv=Fv(!1,!0),Uv=Fv(!0,!0);Ie.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new ge({key:new ye("characterCount"),appendTransaction:(e,n,r)=>{if(t)return;const a=this.options.limit;if(a==null||a===0){t=!0;return}const i=this.storage.characters({node:r.doc});if(i>a){const s=i-a,o=0,l=s;console.warn(`[CharacterCount] Initial content exceeded limit of ${a} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(o,l);return t=!0,u}t=!0},filterTransaction:(e,n)=>{const r=this.options.limit;if(!e.docChanged||r===0||r===null||r===void 0)return!0;const a=this.storage.characters({node:n.doc}),i=this.storage.characters({node:e.doc});if(i<=r||a>r&&i>r&&i<=a)return!0;if(a>r&&i>r&&i>a||!e.getMeta("paste"))return!1;const o=e.selection.$head.pos,l=i-r,u=o-l,c=o;return e.deleteRange(u,c),!(this.storage.characters({node:e.doc})>r)}})]}});var hD=Ie.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[XL(this.options)]}});Ie.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new ge({key:new ye("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:a}=e,i=[];if(!n||!r)return Te.create(t,[]);let s=0;this.options.mode==="deepest"&&t.descendants((l,u)=>{if(l.isText)return;if(!(a>=u&&a<=u+l.nodeSize-1))return!1;s+=1});let o=0;return t.descendants((l,u)=>{if(l.isText||!(a>=u&&a<=u+l.nodeSize-1))return!1;if(o+=1,this.options.mode==="deepest"&&s-o>0||this.options.mode==="shallowest"&&o>1)return this.options.mode==="deepest";i.push(We.node(u,u+l.nodeSize,{class:this.options.className}))}),Te.create(t,i)}}})]}});var mD=Ie.create({name:"gapCursor",addProseMirrorPlugins(){return[eD()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=pe(ne(t,"allowGapCursor",n)))!=null?e:null}}}),Xg="placeholder";function gD(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var bD=Ie.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:Xg,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const t=this.options.dataAttribute?`data-${gD(this.options.dataAttribute)}`:`data-${Xg}`;return[new ge({key:new ye("placeholder"),props:{decorations:({doc:e,selection:n})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:a}=n,i=[];if(!r)return null;const s=this.editor.isEmpty;return e.descendants((o,l)=>{const u=a>=l&&a<=l+o.nodeSize,c=!o.isLeaf&&vs(o);if((u||!this.options.showOnlyCurrent)&&c){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const p=We.node(l,l+o.nodeSize,{class:d.join(" "),[t]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:o,pos:l,hasAnchor:u}):this.options.placeholder});i.push(p)}return this.options.includeChildren}),Te.create(e,i)}}})]}});Ie.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new ge({key:new ye("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||ZN(n.selection)||t.view.dragging?null:Te.create(n.doc,[We.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function Zg({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}var ED=Ie.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new ye(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,a])=>a).filter(a=>(this.options.notAfter||[]).concat(n).includes(a.name));return[new ge({key:e,appendTransaction:(a,i,s)=>{const{doc:o,tr:l,schema:u}=s,c=e.getState(s),d=o.content.size,p=u.nodes[n];if(c)return l.insert(d,p.create())},state:{init:(a,i)=>{const s=i.tr.doc.lastChild;return!Zg({node:s,types:r})},apply:(a,i)=>{if(!a.docChanged||a.getMeta("__uniqueIDTransaction"))return i;const s=a.doc.lastChild;return!Zg({node:s,types:r})}}})]}}),TD=Ie.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>Bv(t,e),redo:()=>({state:t,dispatch:e})=>Uv(t,e)}},addProseMirrorPlugins(){return[fD(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),yD=bD,vi=(t,e)=>{if(t==="slot")return 0;if(t instanceof Function)return t(e);const{children:n,...r}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,r,n]},SD=/^\s*>\s$/,AD=tt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return vi("blockquote",{...Oe(this.options.HTMLAttributes,t),children:vi("slot",{})})},parseMarkdown:(t,e)=>e.createNode("blockquote",void 0,e.parseChildren(t.tokens||[])),renderMarkdown:(t,e)=>{if(!t.content)return"";const n=">",r=[];return t.content.forEach(a=>{const o=e.renderChildren([a]).split(`
|
|
101
101
|
`).map(l=>l.trim()===""?n:`${n} ${l}`);r.push(o.join(`
|
|
102
102
|
`))}),r.join(`
|
|
103
103
|
${n}
|
|
@@ -137,8 +137,8 @@ ${f.slice(u+2)}`,d+=1;else break}e.push({indent:u,number:parseInt(o,10),content:
|
|
|
137
137
|
`):"",markdownTokenizer:{name:"orderedList",level:"block",start:t=>{const e=t.match(/^(\s*)(\d+)\.\s+/),n=e?.index;return n!==void 0?n:-1},tokenize:(t,e,n)=>{var r;const a=t.split(`
|
|
138
138
|
`),[i,s]=yM(a);if(i.length===0)return;const o=r_(i,0,n);return o.length===0?void 0:{type:"list",ordered:!0,start:((r=i[0])==null?void 0:r.number)||1,items:o,raw:a.slice(0,s).join(`
|
|
139
139
|
`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(AM,this.editor.getAttributes(lb)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=br({find:ub,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=br({find:ub,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(lb)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),NM=/^\s*(\[([( |x])?\])\s$/,vM=tt.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",Oe(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(t,e)=>{const n=[];if(t.tokens&&t.tokens.length>0?n.push(e.createNode("paragraph",{},e.parseInline(t.tokens))):t.text?n.push(e.createNode("paragraph",{},[e.createNode("text",{text:t.text})])):n.push(e.createNode("paragraph",{},[])),t.nestedTokens&&t.nestedTokens.length>0){const r=e.parseChildren(t.nestedTokens);n.push(...r)}return e.createNode("taskItem",{checked:t.checked||!1},n)},renderMarkdown:(t,e)=>{var n;const a=`- [${(n=t.attrs)!=null&&n.checked?"x":" "}] `;return Mh(t,e,a)},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{const a=document.createElement("li"),i=document.createElement("label"),s=document.createElement("span"),o=document.createElement("input"),l=document.createElement("div"),u=d=>{var p,f;o.ariaLabel=((f=(p=this.options.a11y)==null?void 0:p.checkboxLabel)==null?void 0:f.call(p,d,o.checked))||`Task item checkbox for ${d.textContent||"empty task item"}`};u(t),i.contentEditable="false",o.type="checkbox",o.addEventListener("mousedown",d=>d.preventDefault()),o.addEventListener("change",d=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){o.checked=!o.checked;return}const{checked:p}=d.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:f})=>{const h=n();if(typeof h!="number")return!1;const g=f.doc.nodeAt(h);return f.setNodeMarkup(h,void 0,{...g?.attrs,checked:p}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,p)||(o.checked=!o.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([d,p])=>{a.setAttribute(d,p)}),a.dataset.checked=t.attrs.checked,o.checked=t.attrs.checked,i.append(o,s),a.append(i,l),Object.entries(e).forEach(([d,p])=>{a.setAttribute(d,p)});let c=new Set(Object.keys(e));return{dom:a,contentDOM:l,update:d=>{if(d.type!==this.type)return!1;a.dataset.checked=d.attrs.checked,o.checked=d.attrs.checked,u(d);const p=r.extensionManager.attributes,f=mr(d,p),h=new Set(Object.keys(f)),g=this.options.HTMLAttributes;return c.forEach(E=>{h.has(E)||(E in g?a.setAttribute(E,g[E]):a.removeAttribute(E))}),Object.entries(f).forEach(([E,T])=>{T==null?E in g?a.setAttribute(E,g[E]):a.removeAttribute(E):a.setAttribute(E,T)}),c=h,!0}}}},addInputRules(){return[br({find:NM,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),_M=tt.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",Oe(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:(t,e)=>e.createNode("taskList",{},e.parseChildren(t.items||[])),renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
|
|
140
|
-
`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){const r=i=>{const s=kf(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:o=>({indentLevel:o[1].length,mainContent:o[4],checked:o[3].toLowerCase()==="x"}),createToken:(o,l)=>({type:"taskItem",raw:"",mainContent:o.mainContent,indentLevel:o.indentLevel,checked:o.checked,text:o.mainContent,tokens:n.inlineTokens(o.mainContent),nestedTokens:l}),customNestedParser:r},n);return s?[{type:"taskList",raw:s.raw,items:s.items}]:n.blockTokens(i)},a=kf(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,s)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:n.inlineTokens(i.mainContent),nestedTokens:s}),customNestedParser:r},n);if(a)return{type:"taskList",raw:a.raw,items:a.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Ie.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(Kv.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(Xv.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(n_.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(a_.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(vM.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(_M.configure(this.options.taskList)),t}});var cb=" ",CM=" ",IM=tt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Oe(this.options.HTMLAttributes,t),0]},parseMarkdown:(t,e)=>{const n=t.tokens||[];if(n.length===1&&n[0].type==="image")return e.parseChildren([n[0]]);const r=e.parseInline(n);return r.length===1&&r[0].type==="text"&&(r[0].text===cb||r[0].text===CM)?e.createNode("paragraph",void 0,[]):e.createNode("paragraph",void 0,r)},renderMarkdown:(t,e)=>{if(!t)return"";const n=Array.isArray(t.content)?t.content:[];return n.length===0?cb:e.renderChildren(n)},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),RM=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,xM=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,kM=Vn.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Oe(this.options.HTMLAttributes,t),0]},markdownTokenName:"del",parseMarkdown:(t,e)=>e.applyMark("strike",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`~~${e.renderChildren(t)}~~`,addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[gr({find:RM,type:this.type})]},addPasteRules(){return[$n({find:xM,type:this.type})]}}),wM=tt.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),OM=Vn.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Oe(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t,e){return`++${e.renderChildren(t)}++`},markdownTokenizer:{name:"underline",level:"inline",start(t){return t.indexOf("++")},tokenize(t,e,n){const a=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!a)return;const i=a[2].trim();return{type:"underline",raw:a[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),LM=Ie.create({name:"starterKit",addExtensions(){var t,e,n,r;const a=[];return this.options.bold!==!1&&a.push(ID.configure(this.options.bold)),this.options.blockquote!==!1&&a.push(AD.configure(this.options.blockquote)),this.options.bulletList!==!1&&a.push(Kv.configure(this.options.bulletList)),this.options.code!==!1&&a.push(kD.configure(this.options.code)),this.options.codeBlock!==!1&&a.push(LD.configure(this.options.codeBlock)),this.options.document!==!1&&a.push(DD.configure(this.options.document)),this.options.dropcursor!==!1&&a.push(hD.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&a.push(mD.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&a.push(MD.configure(this.options.hardBreak)),this.options.heading!==!1&&a.push(PD.configure(this.options.heading)),this.options.undoRedo!==!1&&a.push(TD.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&a.push(FD.configure(this.options.horizontalRule)),this.options.italic!==!1&&a.push(jD.configure(this.options.italic)),this.options.listItem!==!1&&a.push(Xv.configure(this.options.listItem)),this.options.listKeymap!==!1&&a.push(n_.configure((t=this.options)==null?void 0:t.listKeymap)),this.options.link!==!1&&a.push(fM.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&a.push(a_.configure(this.options.orderedList)),this.options.paragraph!==!1&&a.push(IM.configure(this.options.paragraph)),this.options.strike!==!1&&a.push(kM.configure(this.options.strike)),this.options.text!==!1&&a.push(wM.configure(this.options.text)),this.options.underline!==!1&&a.push(OM.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&a.push(ED.configure((r=this.options)==null?void 0:r.trailingNode)),a}}),i_=LM;var DM=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],qf=DM.join(","),s_=typeof Element>"u",ba=s_?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Qi=!s_&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},Ji=function(e,n){var r;n===void 0&&(n=!0);var a=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),i=a===""||a==="true",s=i||n&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Ji(e.parentNode));return s},MM=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},PM=function(e,n,r){if(Ji(e))return[];var a=Array.prototype.slice.apply(e.querySelectorAll(qf));return n&&ba.call(e,qf)&&a.unshift(e),a=a.filter(r),a},zf=function(e,n,r){for(var a=[],i=Array.from(e);i.length;){var s=i.shift();if(!Ji(s,!1))if(s.tagName==="SLOT"){var o=s.assignedElements(),l=o.length?o:s.children,u=zf(l,!0,r);r.flatten?a.push.apply(a,u):a.push({scopeParent:s,candidates:u})}else{var c=ba.call(s,qf);c&&r.filter(s)&&(n||!e.includes(s))&&a.push(s);var d=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),p=!Ji(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(d&&p){var f=zf(d===!0?s.children:d.children,!0,r);r.flatten?a.push.apply(a,f):a.push({scopeParent:s,candidates:f})}else i.unshift.apply(i,s.children)}}return a},o_=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},l_=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||MM(e))&&!o_(e)?0:e.tabIndex},FM=function(e,n){var r=l_(e);return r<0&&n&&!o_(e)?0:r},BM=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},u_=function(e){return e.tagName==="INPUT"},UM=function(e){return u_(e)&&e.type==="hidden"},HM=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},$M=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},jM=function(e){if(!e.name)return!0;var n=e.form||Qi(e),r=function(o){return n.querySelectorAll('input[type="radio"][name="'+o+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=r(window.CSS.escape(e.name));else try{a=r(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=$M(a,e.form);return!i||i===e},qM=function(e){return u_(e)&&e.type==="radio"},zM=function(e){return qM(e)&&!jM(e)},GM=function(e){var n,r=e&&Qi(e),a=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==e){var s,o,l;for(i=!!((s=a)!==null&&s!==void 0&&(o=s.ownerDocument)!==null&&o!==void 0&&o.contains(a)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!i&&a;){var u,c,d;r=Qi(a),a=(u=r)===null||u===void 0?void 0:u.host,i=!!((c=a)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(a))}}return i},db=function(e){var n=e.getBoundingClientRect(),r=n.width,a=n.height;return r===0&&a===0},VM=function(e,n){var r=n.displayCheck,a=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in e){var i=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(e).visibility==="hidden")return!0;var s=ba.call(e,"details>summary:first-of-type"),o=s?e.parentElement:e;if(ba.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof a=="function"){for(var l=e;e;){var u=e.parentElement,c=Qi(e);if(u&&!u.shadowRoot&&a(u)===!0)return db(e);e.assignedSlot?e=e.assignedSlot:!u&&c!==e.ownerDocument?e=c.host:e=u}e=l}if(GM(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return db(e);return!1},WM=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var a=n.children.item(r);if(a.tagName==="LEGEND")return ba.call(n,"fieldset[disabled] *")?!0:!a.contains(e)}return!0}n=n.parentElement}return!1},YM=function(e,n){return!(n.disabled||UM(n)||VM(n,e)||HM(n)||WM(n))},pb=function(e,n){return!(zM(n)||l_(n)<0||!YM(e,n))},KM=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},c_=function(e){var n=[],r=[];return e.forEach(function(a,i){var s=!!a.scopeParent,o=s?a.scopeParent:a,l=FM(o,s),u=s?c_(a.candidates):o;l===0?s?n.push.apply(n,u):n.push(o):r.push({documentOrder:i,tabIndex:l,item:a,isScope:s,content:u})}),r.sort(BM).reduce(function(a,i){return i.isScope?a.push.apply(a,i.content):a.push(i.content),a},[]).concat(n)},d_=function(e,n){n=n||{};var r;return n.getShadowRoot?r=zf([e],n.includeContainer,{filter:pb.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:KM}):r=PM(e,n.includeContainer,pb.bind(null,n)),c_(r)};function XM(){return/apple/i.test(navigator.vendor)}const fb="data-floating-ui-focusable";function ZM(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function Gf(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&kC(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function Dr(t){return"composedPath"in t?t.composedPath()[0]:t.target}function Eo(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function QM(t){return t.matches("html,body")}function Ea(t){return t?.ownerDocument||document}function JM(t){return t?t.hasAttribute(fb)?t:t.querySelector("["+fb+"]")||t:null}function ri(t,e,n){return n===void 0&&(n=!0),t.filter(a=>{var i;return a.parentId===e&&(!n||((i=a.context)==null?void 0:i.open))}).flatMap(a=>[a,...ri(t,a.id,n)])}function e3(t){return"nativeEvent"in t}var t3=typeof document<"u",n3=function(){},Mn=t3?L.useLayoutEffect:n3;const r3={...FS},a3=r3.useInsertionEffect,i3=a3||(t=>t());function nr(t){const e=L.useRef(()=>{});return i3(()=>{e.current=t}),L.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return e.current==null?void 0:e.current(...r)},[])}const p_=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function f_(t,e){const n=d_(t,p_()),r=n.length;if(r===0)return;const a=ZM(Ea(t)),i=n.indexOf(a),s=i===-1?e===1?0:r-1:i+e;return n[s]}function s3(t){return f_(Ea(t).body,1)||t}function o3(t){return f_(Ea(t).body,-1)||t}function To(t,e){const n=e||t.currentTarget,r=t.relatedTarget;return!r||!Gf(n,r)}function l3(t){d_(t,p_()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function hb(t){t.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const u3="data-floating-ui-focusable",mb="active",gb="selected",c3={...FS};let bb=!1,d3=0;const Eb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+d3++;function p3(){const[t,e]=L.useState(()=>bb?Eb():void 0);return Mn(()=>{t==null&&e(Eb())},[]),L.useEffect(()=>{bb=!0},[]),t}const f3=c3.useId,Xh=f3||p3;function h3(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(a=>a(n))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){var r;(r=t.get(e))==null||r.delete(n)}}}const m3=L.createContext(null),g3=L.createContext(null),h_=()=>{var t;return((t=L.useContext(m3))==null?void 0:t.id)||null},m_=()=>L.useContext(g3);function Zh(t){return"data-floating-ui-"+t}const b3={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Tb=L.forwardRef(function(e,n){const[r,a]=L.useState();Mn(()=>{XM()&&a("button")},[]);const i={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Zh("focus-guard")]:"",style:b3};return b.jsx("span",{...e,...i})}),E3={clipPath:"inset(50%)",position:"fixed",top:0,left:0},g_=L.createContext(null),yb=Zh("portal");function T3(t){t===void 0&&(t={});const{id:e,root:n}=t,r=Xh(),a=S3(),[i,s]=L.useState(null),o=L.useRef(null);return Mn(()=>()=>{i?.remove(),queueMicrotask(()=>{o.current=null})},[i]),Mn(()=>{if(!r||o.current)return;const l=e?document.getElementById(e):null;if(!l)return;const u=document.createElement("div");u.id=r,u.setAttribute(yb,""),l.appendChild(u),o.current=u,s(u)},[e,r]),Mn(()=>{if(n===null||!r||o.current)return;let l=n||a?.portalNode;l&&!PC(l)&&(l=l.current),l=l||document.body;let u=null;e&&(u=document.createElement("div"),u.id=e,l.appendChild(u));const c=document.createElement("div");c.id=r,c.setAttribute(yb,""),l=u||l,l.appendChild(c),o.current=c,s(c)},[e,n,r,a]),i}function y3(t){const{children:e,id:n,root:r,preserveTabOrder:a=!0}=t,i=T3({id:n,root:r}),[s,o]=L.useState(null),l=L.useRef(null),u=L.useRef(null),c=L.useRef(null),d=L.useRef(null),p=s?.modal,f=s?.open,h=!!s&&!s.modal&&s.open&&a&&!!(r||i);return L.useEffect(()=>{if(!i||!a||p)return;function g(E){i&&To(E)&&(E.type==="focusin"?hb:l3)(i)}return i.addEventListener("focusin",g,!0),i.addEventListener("focusout",g,!0),()=>{i.removeEventListener("focusin",g,!0),i.removeEventListener("focusout",g,!0)}},[i,a,p]),L.useEffect(()=>{i&&(f||hb(i))},[f,i]),b.jsxs(g_.Provider,{value:L.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:i,setFocusManagerState:o}),[a,i]),children:[h&&i&&b.jsx(Tb,{"data-type":"outside",ref:l,onFocus:g=>{if(To(g,i)){var E;(E=c.current)==null||E.focus()}else{const T=s?s.domReference:null,y=o3(T);y?.focus()}}}),h&&i&&b.jsx("span",{"aria-owns":i.id,style:E3}),i&&MS.createPortal(e,i),h&&i&&b.jsx(Tb,{"data-type":"outside",ref:u,onFocus:g=>{if(To(g,i)){var E;(E=d.current)==null||E.focus()}else{const T=s?s.domReference:null,y=s3(T);y?.focus(),s?.closeOnFocusOut&&s?.onOpenChange(!1,g.nativeEvent,"focus-out")}}})]})}const S3=()=>L.useContext(g_),A3={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},N3={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Sb=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t?.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t?.outsidePress)!=null?n:!0}};function v3(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,elements:a,dataRef:i}=t,{enabled:s=!0,escapeKey:o=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:f,capture:h}=e,g=m_(),E=nr(typeof l=="function"?l:()=>!1),T=typeof l=="function"?E:l,y=L.useRef(!1),{escapeKey:S,outsidePress:N}=Sb(f),{escapeKey:_,outsidePress:A}=Sb(h),v=L.useRef(!1),R=nr(F=>{var $;if(!n||!s||!o||F.key!=="Escape"||v.current)return;const U=($=i.current.floatingContext)==null?void 0:$.nodeId,j=g?ri(g.nodesRef.current,U):[];if(!S&&(F.stopPropagation(),j.length>0)){let P=!0;if(j.forEach(W=>{var X;if((X=W.context)!=null&&X.open&&!W.context.dataRef.current.__escapeKeyBubbles){P=!1;return}}),!P)return}r(!1,e3(F)?F.nativeEvent:F,"escape-key")}),I=nr(F=>{var $;const U=()=>{var j;R(F),(j=Dr(F))==null||j.removeEventListener("keydown",U)};($=Dr(F))==null||$.addEventListener("keydown",U)}),O=nr(F=>{var $;const U=i.current.insideReactTree;i.current.insideReactTree=!1;const j=y.current;if(y.current=!1,u==="click"&&j||U||typeof T=="function"&&!T(F))return;const P=Dr(F),W="["+Zh("inert")+"]",X=Ea(a.floating).querySelectorAll(W);let K=Rt(P)?P:null;for(;K&&!qs(K);){const te=LC(K);if(qs(te)||!Rt(te))break;K=te}if(X.length&&Rt(P)&&!QM(P)&&!Gf(P,a.floating)&&Array.from(X).every(te=>!Gf(K,te)))return;if(DC(P)&&H){const te=qs(P),se=MC(P),ce=/auto|scroll/,be=te||ce.test(se.overflowX),Le=te||ce.test(se.overflowY),_e=be&&P.clientWidth>0&&P.scrollWidth>P.clientWidth,Se=Le&&P.clientHeight>0&&P.scrollHeight>P.clientHeight,de=se.direction==="rtl",he=Se&&(de?F.offsetX<=P.offsetWidth-P.clientWidth:F.offsetX>P.clientWidth),Ae=_e&&F.offsetY>P.clientHeight;if(he||Ae)return}const Q=($=i.current.floatingContext)==null?void 0:$.nodeId,J=g&&ri(g.nodesRef.current,Q).some(te=>{var se;return Eo(F,(se=te.context)==null?void 0:se.elements.floating)});if(Eo(F,a.floating)||Eo(F,a.domReference)||J)return;const ae=g?ri(g.nodesRef.current,Q):[];if(ae.length>0){let te=!0;if(ae.forEach(se=>{var ce;if((ce=se.context)!=null&&ce.open&&!se.context.dataRef.current.__outsidePressBubbles){te=!1;return}}),!te)return}r(!1,F,"outside-press")}),w=nr(F=>{var $;const U=()=>{var j;O(F),(j=Dr(F))==null||j.removeEventListener(u,U)};($=Dr(F))==null||$.addEventListener(u,U)});L.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=S,i.current.__outsidePressBubbles=N;let F=-1;function $(X){r(!1,X,"ancestor-scroll")}function U(){window.clearTimeout(F),v.current=!0}function j(){F=window.setTimeout(()=>{v.current=!1},OC()?5:0)}const P=Ea(a.floating);o&&(P.addEventListener("keydown",_?I:R,_),P.addEventListener("compositionstart",U),P.addEventListener("compositionend",j)),T&&P.addEventListener(u,A?w:O,A);let W=[];return p&&(Rt(a.domReference)&&(W=js(a.domReference)),Rt(a.floating)&&(W=W.concat(js(a.floating))),!Rt(a.reference)&&a.reference&&a.reference.contextElement&&(W=W.concat(js(a.reference.contextElement)))),W=W.filter(X=>{var K;return X!==((K=P.defaultView)==null?void 0:K.visualViewport)}),W.forEach(X=>{X.addEventListener("scroll",$,{passive:!0})}),()=>{o&&(P.removeEventListener("keydown",_?I:R,_),P.removeEventListener("compositionstart",U),P.removeEventListener("compositionend",j)),T&&P.removeEventListener(u,A?w:O,A),W.forEach(X=>{X.removeEventListener("scroll",$)}),window.clearTimeout(F)}},[i,a,o,T,u,n,r,p,s,S,N,R,_,I,O,A,w]),L.useEffect(()=>{i.current.insideReactTree=!1},[i,T,u]);const M=L.useMemo(()=>({onKeyDown:R,...c&&{[A3[d]]:F=>{r(!1,F.nativeEvent,"reference-press")},...d!=="click"&&{onClick(F){r(!1,F.nativeEvent,"reference-press")}}}}),[R,r,c,d]),H=L.useMemo(()=>{function F($){$.button===0&&(y.current=!0)}return{onKeyDown:R,onMouseDown:F,onMouseUp:F,[N3[u]]:()=>{i.current.insideReactTree=!0}}},[R,u,i]);return L.useMemo(()=>s?{reference:M,floating:H}:{},[s,M,H])}function _3(t){const{open:e=!1,onOpenChange:n,elements:r}=t,a=Xh(),i=L.useRef({}),[s]=L.useState(()=>h3()),o=h_()!=null,[l,u]=L.useState(r.reference),c=nr((f,h,g)=>{i.current.openEvent=f?h:void 0,s.emit("openchange",{open:f,event:h,reason:g,nested:o}),n?.(f,h,g)}),d=L.useMemo(()=>({setPositionReference:u}),[]),p=L.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return L.useMemo(()=>({dataRef:i,open:e,onOpenChange:c,elements:p,events:s,floatingId:a,refs:d}),[e,c,p,s,a,d])}function C3(t){t===void 0&&(t={});const{nodeId:e}=t,n=_3({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,a=r.elements,[i,s]=L.useState(null),[o,l]=L.useState(null),c=a?.domReference||i,d=L.useRef(null),p=m_();Mn(()=>{c&&(d.current=c)},[c]);const f=wC({...t,elements:{...a,...o&&{reference:o}}}),h=L.useCallback(S=>{const N=Rt(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),getClientRects:()=>S.getClientRects(),contextElement:S}:S;l(N),f.refs.setReference(N)},[f.refs]),g=L.useCallback(S=>{(Rt(S)||S===null)&&(d.current=S,s(S)),(Rt(f.refs.reference.current)||f.refs.reference.current===null||S!==null&&!Rt(S))&&f.refs.setReference(S)},[f.refs]),E=L.useMemo(()=>({...f.refs,setReference:g,setPositionReference:h,domReference:d}),[f.refs,g,h]),T=L.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),y=L.useMemo(()=>({...f,...r,refs:E,elements:T,nodeId:e}),[f,E,T,e,r]);return Mn(()=>{r.dataRef.current.floatingContext=y;const S=p?.nodesRef.current.find(N=>N.id===e);S&&(S.context=y)}),L.useMemo(()=>({...f,context:y,refs:E,elements:T}),[f,E,T,y])}function yo(t,e,n){const r=new Map,a=n==="item";let i=t;if(a&&t){const{[mb]:s,[gb]:o,...l}=t;i=l}return{...n==="floating"&&{tabIndex:-1,[u3]:""},...i,...e.map(s=>{const o=s?s[n]:null;return typeof o=="function"?t?o(t):null:o}).concat(t).reduce((s,o)=>(o&&Object.entries(o).forEach(l=>{let[u,c]=l;if(!(a&&[mb,gb].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var d;(d=r.get(u))==null||d.push(c),s[u]=function(){for(var p,f=arguments.length,h=new Array(f),g=0;g<f;g++)h[g]=arguments[g];return(p=r.get(u))==null?void 0:p.map(E=>E(...h)).find(E=>E!==void 0)}}}else s[u]=c}),s),{})}}function I3(t){t===void 0&&(t=[]);const e=t.map(o=>o?.reference),n=t.map(o=>o?.floating),r=t.map(o=>o?.item),a=L.useCallback(o=>yo(o,t,"reference"),e),i=L.useCallback(o=>yo(o,t,"floating"),n),s=L.useCallback(o=>yo(o,t,"item"),r);return L.useMemo(()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:s}),[a,i,s])}const R3=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function x3(t,e){var n,r;e===void 0&&(e={});const{open:a,elements:i,floatingId:s}=t,{enabled:o=!0,role:l="dialog"}=e,u=Xh(),c=((n=i.domReference)==null?void 0:n.id)||u,d=L.useMemo(()=>{var y;return((y=JM(i.floating))==null?void 0:y.id)||s},[i.floating,s]),p=(r=R3.get(l))!=null?r:l,h=h_()!=null,g=L.useMemo(()=>p==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:a?d:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":p==="alertdialog"?"dialog":p,"aria-controls":a?d:void 0,...p==="listbox"&&{role:"combobox"},...p==="menu"&&{id:c},...p==="menu"&&h&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[p,d,h,a,c,l]),E=L.useMemo(()=>{const y={id:d,...p&&{role:p}};return p==="tooltip"||l==="label"?y:{...y,...p==="menu"&&{"aria-labelledby":c}}},[p,d,c,l]),T=L.useCallback(y=>{let{active:S,selected:N}=y;const _={role:"option",...S&&{id:d+"-fui-option"}};switch(l){case"select":case"combobox":return{..._,"aria-selected":N}}return{}},[d,l]);return L.useMemo(()=>o?{reference:g,floating:E,item:T}:{},[o,g,E,T])}function k3(t){var e;const{char:n,allowSpaces:r,allowToIncludeChar:a,allowedPrefixes:i,startOfLine:s,$position:o}=t,l=r&&!a,u=WO(n),c=new RegExp(`\\s${u}$`),d=s?"^":"",p=a?"":u,f=l?new RegExp(`${d}${u}.*?(?=\\s${p}|$)`,"gm"):new RegExp(`${d}(?:^)?${u}[^\\s${p}]*`,"gm"),h=((e=o.nodeBefore)==null?void 0:e.isText)&&o.nodeBefore.text;if(!h)return null;const g=o.pos-h.length,E=Array.from(h.matchAll(f)).pop();if(!E||E.input===void 0||E.index===void 0)return null;const T=E.input.slice(Math.max(0,E.index-1),E.index),y=new RegExp(`^[${i?.join("")}\0]?$`).test(T);if(i!==null&&!y)return null;const S=g+E.index;let N=S+E[0].length;return l&&c.test(h.slice(N-1,N+1))&&(E[0]+=" ",N+=1),S<o.pos&&N>=o.pos?{range:{from:S,to:N},query:E[0].slice(n.length),text:E[0]}:null}var w3=new ye("suggestion");function O3({pluginKey:t=w3,editor:e,char:n="@",allowSpaces:r=!1,allowToIncludeChar:a=!1,allowedPrefixes:i=[" "],startOfLine:s=!1,decorationTag:o="span",decorationClass:l="suggestion",decorationContent:u="",decorationEmptyClass:c="is-empty",command:d=()=>null,items:p=()=>[],render:f=()=>({}),allow:h=()=>!0,findSuggestionMatch:g=k3,shouldShow:E}){let T;const y=f?.(),S=()=>{const v=e.state.selection.$anchor.pos,R=e.view.coordsAtPos(v),{top:I,right:O,bottom:w,left:M}=R;try{return new DOMRect(M,I,O-M,w-I)}catch{return null}},N=(v,R)=>R?()=>{const I=t.getState(e.state),O=I?.decorationId,w=v.dom.querySelector(`[data-decoration-id="${O}"]`);return w?.getBoundingClientRect()||null}:S;function _(v,R){var I;try{const w=t.getState(v.state),M=w?.decorationId?v.dom.querySelector(`[data-decoration-id="${w.decorationId}"]`):null,H={editor:e,range:w?.range||{from:0,to:0},query:w?.query||null,text:w?.text||null,items:[],command:F=>d({editor:e,range:w?.range||{from:0,to:0},props:F}),decorationNode:M,clientRect:N(v,M)};(I=y?.onExit)==null||I.call(y,H)}catch{}const O=v.state.tr.setMeta(R,{exit:!0});v.dispatch(O)}const A=new ge({key:t,view(){return{update:async(v,R)=>{var I,O,w,M,H,F,$;const U=(I=this.key)==null?void 0:I.getState(R),j=(O=this.key)==null?void 0:O.getState(v.state),P=U.active&&j.active&&U.range.from!==j.range.from,W=!U.active&&j.active,X=U.active&&!j.active,K=!W&&!X&&U.query!==j.query,Q=W||P&&K,J=K||P,ae=X||P&&K;if(!Q&&!J&&!ae)return;const te=ae&&!Q?U:j,se=v.dom.querySelector(`[data-decoration-id="${te.decorationId}"]`);T={editor:e,range:te.range,query:te.query,text:te.text,items:[],command:ce=>d({editor:e,range:te.range,props:ce}),decorationNode:se,clientRect:N(v,se)},Q&&((w=y?.onBeforeStart)==null||w.call(y,T)),J&&((M=y?.onBeforeUpdate)==null||M.call(y,T)),(J||Q)&&(T.items=await p({editor:e,query:te.query})),ae&&((H=y?.onExit)==null||H.call(y,T)),J&&((F=y?.onUpdate)==null||F.call(y,T)),Q&&(($=y?.onStart)==null||$.call(y,T))},destroy:()=>{var v;T&&((v=y?.onExit)==null||v.call(y,T))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(v,R,I,O){const{isEditable:w}=e,{composing:M}=e.view,{selection:H}=v,{empty:F,from:$}=H,U={...R},j=v.getMeta(t);if(j&&j.exit)return U.active=!1,U.decorationId=null,U.range={from:0,to:0},U.query=null,U.text=null,U;if(U.composing=M,w&&(F||e.view.composing)){($<R.range.from||$>R.range.to)&&!M&&!R.composing&&(U.active=!1);const P=g({char:n,allowSpaces:r,allowToIncludeChar:a,allowedPrefixes:i,startOfLine:s,$position:H.$from}),W=`id_${Math.floor(Math.random()*4294967295)}`;P&&h({editor:e,state:O,range:P.range,isActive:R.active})&&(!E||E({editor:e,range:P.range,query:P.query,text:P.text,transaction:v}))?(U.active=!0,U.decorationId=R.decorationId?R.decorationId:W,U.range=P.range,U.query=P.query,U.text=P.text):U.active=!1}else U.active=!1;return U.active||(U.decorationId=null,U.range={from:0,to:0},U.query=null,U.text=null),U}},props:{handleKeyDown(v,R){var I,O,w,M;const{active:H,range:F}=A.getState(v.state);if(!H)return!1;if(R.key==="Escape"||R.key==="Esc"){const U=A.getState(v.state),j=(I=T?.decorationNode)!=null?I:null,P=j??(U?.decorationId?v.dom.querySelector(`[data-decoration-id="${U.decorationId}"]`):null);if(((O=y?.onKeyDown)==null?void 0:O.call(y,{view:v,event:R,range:U.range}))||!1)return!0;const X={editor:e,range:U.range,query:U.query,text:U.text,items:[],command:K=>d({editor:e,range:U.range,props:K}),decorationNode:P,clientRect:P?()=>P.getBoundingClientRect()||null:null};return(w=y?.onExit)==null||w.call(y,X),_(v,t),!0}return((M=y?.onKeyDown)==null?void 0:M.call(y,{view:v,event:R,range:F}))||!1},decorations(v){const{active:R,range:I,decorationId:O,query:w}=A.getState(v);if(!R)return null;const M=!w?.length,H=[l];return M&&H.push(c),Te.create(v.doc,[We.inline(I.from,I.to,{nodeName:o,class:H.join(" "),"data-decoration-id":O,"data-decoration-content":u})])}}});return A}function L3(t){const e=Y.c(26),{editor:n,query:r,items:a,onSelect:i,onClose:s}=t,[o,l]=L.useState(0),u=L.useRef(a),c=L.useRef(o),d=L.useRef(i),p=L.useRef(s),f=L.useDeferredValue(r);let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{l(0)},e[0]=h):h=e[0];let g;e[1]!==f?(g=[f],e[1]=f,e[2]=g):g=e[2],L.useEffect(h,g);let E,T;e[3]!==a.length||e[4]!==o?(E=()=>{o>=a.length&&a.length>0&&l(0)},T=[a.length,o],e[3]=a.length,e[4]=o,e[5]=E,e[6]=T):(E=e[5],T=e[6]),L.useEffect(E,T);let y,S;e[7]!==a?(y=()=>{u.current=a},S=[a],e[7]=a,e[8]=y,e[9]=S):(y=e[8],S=e[9]),L.useEffect(y,S);let N,_;e[10]!==o?(N=()=>{c.current=o},_=[o],e[10]=o,e[11]=N,e[12]=_):(N=e[11],_=e[12]),L.useEffect(N,_);let A,v;e[13]!==i?(v=()=>{d.current=i},A=[i],e[13]=i,e[14]=A,e[15]=v):(A=e[14],v=e[15]),L.useEffect(v,A);let R,I;e[16]!==s?(R=()=>{p.current=s},I=[s],e[16]=s,e[17]=R,e[18]=I):(R=e[17],I=e[18]),L.useEffect(R,I);let O;e[19]!==n.isDestroyed||e[20]!==n.view.dom?(O=()=>{const F=n.view.dom;if(n?.isDestroyed||!F)return;const $=j=>{const P=u.current;if(!P.length)return!1;const W=()=>l(K=>(K+1)%P.length),X=()=>l(K=>(K-1+P.length)%P.length);switch(j.key){case"ArrowUp":return j.preventDefault(),X(),!0;case"ArrowDown":return j.preventDefault(),W(),!0;case"Tab":return j.preventDefault(),j.shiftKey?X():W(),!0;case"Home":return j.preventDefault(),l(0),!0;case"End":return j.preventDefault(),l(P.length-1),!0;case"Enter":{if(j.isComposing)return!1;j.preventDefault();const K=c.current;return K!==-1&&P[K]&&d.current?.(P[K],K),!0}case"Escape":return j.preventDefault(),p.current?.(),!0;default:return!1}},U=j=>{$(j)};return F.addEventListener("keydown",U,!0),()=>{F?.removeEventListener("keydown",U,!0)}},e[19]=n.isDestroyed,e[20]=n.view.dom,e[21]=O):O=e[21];let w;e[22]!==n?(w=[n],e[22]=n,e[23]=w):w=e[23],L.useEffect(O,w);const M=a.length?o:void 0;let H;return e[24]!==M?(H={selectedIndex:M,setSelectedIndex:l},e[24]=M,e[25]=H):H=e[25],H}function D3(t,e){switch(e.type){case"SET_SELECTED_ITEM":return{...t,selectedItem:e.payload};case"ON_START":return{...t,open:!0,selectedItem:null,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_UPDATE":return{...t,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_EXIT":return{open:!1,element:null,query:"",range:null,selectedItem:null};default:return t}}const b_=L.createContext(void 0);function E_(){const t=L.useContext(b_);if(!t)throw new Error("useSuggestionContext must be used within a SuggestionContext.Provider");return t}function M3(t){const e=Y.c(8),{editor:n,char:r,pluginKey:a}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={open:!1,element:null,query:"",range:null,selectedItem:null},e[0]=i):i=e[0];const[s,o]=L.useReducer(D3,i);let l,u;e[1]!==r||e[2]!==n||e[3]!==a?(l=()=>{if(n?.isDestroyed)return;const d=a instanceof ye?a:new ye(a);n.state.plugins.find(h=>h.spec.key===d)&&n.unregisterPlugin(d);const f=O3({pluginKey:d,editor:n,char:r,allow(h){const g=n.state.doc.resolve(h.range.from);for(let E=g.depth;E>0;E--)if(g.node(E).type.name==="image")return!1;return!0},command(){},render:()=>({onStart:h=>{o({type:"ON_START",payload:{element:h.decorationNode??null,query:h.query,range:h.range}})},onUpdate:h=>{o({type:"ON_UPDATE",payload:{element:h.decorationNode??null,query:h.query,range:h.range}})},onKeyDown:h=>h.event.key==="Escape"?(o({type:"ON_EXIT"}),!0):!1,onExit:()=>{o({type:"ON_EXIT"})}}),items:P3});return n.registerPlugin(f),()=>{n?.isDestroyed||n.unregisterPlugin(d)}},u=[n,a,r,o],e[1]=r,e[2]=n,e[3]=a,e[4]=l,e[5]=u):(l=e[4],u=e[5]),L.useEffect(l,u);let c;return e[6]!==s?(c={state:s,dispatch:o},e[6]=s,e[7]=c):c=e[7],c}function P3(){return[]}function F3({editor:t,queryKey:e,queryFn:n,onSelect:r}){const{state:a,dispatch:i}=E_(),s=L.useDeferredValue(a.query),{data:o}=FC({queryKey:nh.suggestionItems(e,a.open,s),queryFn:()=>a.open?n({query:s}):[]}),l=()=>{i({type:"ON_EXIT"})},u=async(d,p)=>{if(!(a.selectedItem!==null||!a.range)){i({type:"SET_SELECTED_ITEM",payload:d});try{const{view:f}=t,g=f.state.selection.$to.nodeAfter?.text?.startsWith(" "),E=a.range?{...a.range}:{from:0,to:0};g&&a.range&&(E.to+=1),await r({range:E,item:d})}finally{l()}}},{selectedIndex:c}=L3({editor:t,query:s,items:o,onSelect:u,onClose:l});return{selectedItem:a.selectedItem,items:o,selectedIndex:c,close:l,onSelect:u}}function B3({children:t}){const{state:e,dispatch:n}=E_(),{open:r,element:a}=e,i=()=>{n({type:"ON_EXIT"})},{refs:s,floatingStyles:o,context:l}=C3({placement:"bottom-start",open:r,onOpenChange:p=>{p||i()},elements:{reference:a},middleware:[BC(10),UC(),HC()],whileElementsMounted:$C}),u=v3(l,{outsidePress:p=>!(p.target instanceof Element&&p.target.closest(".ProseMirror"))}),c=x3(l,{role:"listbox"}),{getFloatingProps:d}=I3([u,c]);return r?b.jsx(y3,{children:b.jsx("div",{ref:s.setFloating,style:o,...d(),className:"z-50 w-auto min-w-[280px] max-w-[400px] rounded-lg border bg-popover p-0 text-popover-foreground shadow-md outline-hidden overflow-hidden",children:t})}):null}const U3=t=>{const e=Y.c(23),{item:n,isSelected:r,onSelect:a,isLoading:i,ref:s}=t,o=r&&"bg-accent text-accent-foreground",l=i&&"pointer-events-none opacity-50";let u;e[0]!==o||e[1]!==l?(u=ee("relative flex w-full cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground",o,l),e[0]=o,e[1]=l,e[2]=u):u=e[2];let c;e[3]!==n.name||e[4]!==n.title?(c=n.title||n.name.replace(/_/g," "),e[3]=n.name,e[4]=n.title,e[5]=c):c=e[5];let d;e[6]!==c?(d=b.jsx("span",{className:"font-medium flex items-center truncate",children:c}),e[6]=c,e[7]=d):d=e[7];let p;e[8]!==i?(p=i&&b.jsx(rs,{size:"xs"}),e[8]=i,e[9]=p):p=e[9];let f;e[10]!==d||e[11]!==p?(f=b.jsxs("div",{className:"flex items-center justify-between gap-2",children:[d,p]}),e[10]=d,e[11]=p,e[12]=f):f=e[12];let h;e[13]!==n.description?(h=n.description&&b.jsx("div",{className:"text-xs text-muted-foreground line-clamp-1",children:n.description}),e[13]=n.description,e[14]=h):h=e[14];let g;e[15]!==f||e[16]!==h?(g=b.jsxs("div",{className:"flex flex-col gap-0.5 flex-1 min-w-0",children:[f,h]}),e[15]=f,e[16]=h,e[17]=g):g=e[17];let E;return e[18]!==a||e[19]!==s||e[20]!==u||e[21]!==g?(E=b.jsx("div",{ref:s,onClick:a,className:u,children:g}),e[18]=a,e[19]=s,e[20]=u,e[21]=g,e[22]=E):E=e[22],E},H3=t=>{const e=Y.c(18),{editor:n,queryKey:r,queryFn:a,onSelect:i}=t;let s;e[0]!==n||e[1]!==i||e[2]!==a||e[3]!==r?(s={editor:n,queryKey:r,queryFn:a,onSelect:i},e[0]=n,e[1]=i,e[2]=a,e[3]=r,e[4]=s):s=e[4];const{items:o,selectedIndex:l,onSelect:u,selectedItem:c}=F3(s);if(!o.length){let h;return e[5]===Symbol.for("react.memo_cache_sentinel")?(h=b.jsx("div",{className:"min-w-[280px] max-w-[400px] bg-popover text-popover-foreground rounded-md border shadow-md p-3 text-sm",children:"No items found"}),e[5]=h):h=e[5],h}let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d={maxHeight:"min(217px, var(--radix-popover-content-available-height, 217px))"},e[6]=d):d=e[6];let p;if(e[7]!==u||e[8]!==o||e[9]!==l||e[10]!==c?.name){let h;e[12]!==u||e[13]!==l||e[14]!==c?.name?(h=(g,E)=>b.jsx(U3,{item:g,isSelected:E===l,ref:E===l?q3:void 0,onSelect:()=>u(g,E),isLoading:c?.name===g.name},g.name),e[12]=u,e[13]=l,e[14]=c?.name,e[15]=h):h=e[15],p=o.map(h),e[7]=u,e[8]=o,e[9]=l,e[10]=c?.name,e[11]=p}else p=e[11];let f;return e[16]!==p?(f=b.jsx("div",{className:"min-w-[280px] max-w-[400px] bg-popover text-popover-foreground rounded-md overflow-y-auto",style:d,children:b.jsx("div",{className:"p-1",children:p})}),e[16]=p,e[17]=f):f=e[17],f};function $3(){const t=Y.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx("div",{className:"p-1",children:[...Array(3)].map(j3)}),t[0]=e):e=t[0],e}function j3(t,e){return b.jsxs("div",{className:"px-2 py-1.5 h-[44px] animate-pulse",children:[b.jsx("div",{className:"h-4 w-24 bg-muted rounded mb-1"}),b.jsx("div",{className:"h-3 w-32 bg-muted rounded"})]},e)}function T_(t){const e=Y.c(16),{editor:n,char:r,pluginKey:a,queryKey:i,queryFn:s,onSelect:o}=t;let l;e[0]!==r||e[1]!==n||e[2]!==a?(l={editor:n,char:r,pluginKey:a},e[0]=r,e[1]=n,e[2]=a,e[3]=l):l=e[3];const{state:u,dispatch:c}=M3(l);let d;e[4]!==c||e[5]!==u?(d={state:u,dispatch:c},e[4]=c,e[5]=u,e[6]=d):d=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=b.jsx($3,{}),e[7]=p):p=e[7];let f;e[8]!==n||e[9]!==o||e[10]!==s||e[11]!==i?(f=b.jsx(B3,{children:b.jsx(L.Suspense,{fallback:p,children:b.jsx(H3,{editor:n,queryKey:i,queryFn:s,onSelect:o})})}),e[8]=n,e[9]=o,e[10]=s,e[11]=i,e[12]=f):f=e[12];let h;return e[13]!==d||e[14]!==f?(h=b.jsx(b_.Provider,{value:d,children:f}),e[13]=d,e[14]=f,e[15]=h):h=e[15],h}function q3(t){t&&t.scrollIntoView({block:"center",behavior:"smooth"})}async function Ab(t,e,n,r,a){try{const i=await qS(n,r,a);vv(t,e,{id:r,name:r,metadata:i.messages,char:"/"})}catch(i){console.error("[prompt] Failed to fetch prompt:",i),$t.error("Failed to load prompt. Please try again.")}}const z3=t=>{const e=Y.c(29),{editor:n,virtualMcpId:r}=t,a=BS(),{org:i}=jn();let s;e[0]!==i.id||e[1]!==r?(s={connectionId:r,orgId:i.id},e[0]=i.id,e[1]=r,e[2]=s):s=e[2];const o=is(s);let l;e[3]!==i.id||e[4]!==r?(l=nh.virtualMcpPrompts(r,i.id),e[3]=i.id,e[4]=r,e[5]=l):l=e[5];const u=l,[c,d]=L.useState(null);let p;e[6]!==o||e[7]!==n?(p=async v=>{const{item:R,range:I}=v;if(R.arguments&&R.arguments.length>0){d({range:I,item:R});return}o&&await Ab(n,I,o,R.name)},e[6]=o,e[7]=n,e[8]=p):p=e[8];const f=p;let h;e[9]!==c||e[10]!==o||e[11]!==n?(h=async v=>{if(!c||!o)return;const{range:R,item:I}=c;await Ab(n,R,o,I.name,v),d(null)},e[9]=c,e[10]=o,e[11]=n,e[12]=h):h=e[12];const g=h;let E;e[13]!==o||e[14]!==a||e[15]!==u?(E=async v=>{const{query:R}=v;if(!o)return[];let I=a.getQueryData(u);if(I?a.fetchQuery({queryKey:u,queryFn:()=>Am(o),staleTime:6e4}).catch(G3):I=await a.fetchQuery({queryKey:u,queryFn:()=>Am(o),staleTime:6e4}),!I.prompts)return[];let O=I.prompts;if(R.trim()){const w=R.toLowerCase();O=I.prompts.filter(M=>M.name.toLowerCase().includes(w)||M.title?.toLowerCase().includes(w)||M.description?.toLowerCase().includes(w))}return O},e[13]=o,e[14]=a,e[15]=u,e[16]=E):E=e[16];const T=E;let y;e[17]!==n||e[18]!==T||e[19]!==f||e[20]!==u?(y=b.jsx(T_,{editor:n,char:"/",pluginKey:"promptsDropdownMenu",queryKey:u,queryFn:T,onSelect:f}),e[17]=n,e[18]=T,e[19]=f,e[20]=u,e[21]=y):y=e[21];const S=c?.item??null;let N;e[22]===Symbol.for("react.memo_cache_sentinel")?(N=()=>d(null),e[22]=N):N=e[22];let _;e[23]!==g||e[24]!==S?(_=b.jsx(oA,{prompt:S,setPrompt:N,onSubmit:g}),e[23]=g,e[24]=S,e[25]=_):_=e[25];let A;return e[26]!==y||e[27]!==_?(A=b.jsxs(b.Fragment,{children:[y,_]}),e[26]=y,e[27]=_,e[28]=A):A=e[28],A};function G3(){}async function V3(t,e,n,r){try{const a=await XC(n,r);vv(t,e,{id:r,name:r,metadata:a.contents,char:"@"})}catch(a){console.error("[resource] Failed to fetch resource:",a),$t.error("Failed to load resource. Please try again.")}}const W3=t=>{const e=Y.c(18),{editor:n,virtualMcpId:r}=t,a=BS(),{org:i}=jn();let s;e[0]!==i.id||e[1]!==r?(s={connectionId:r,orgId:i.id},e[0]=i.id,e[1]=r,e[2]=s):s=e[2];const o=is(s);let l;e[3]!==i.id||e[4]!==r?(l=nh.virtualMcpResources(r,i.id),e[3]=i.id,e[4]=r,e[5]=l):l=e[5];const u=l;let c;e[6]!==o||e[7]!==n?(c=async g=>{const{item:E,range:T}=g;o&&await V3(n,T,o,E.uri)},e[6]=o,e[7]=n,e[8]=c):c=e[8];const d=c;let p;e[9]!==o||e[10]!==a||e[11]!==u?(p=async g=>{const{query:E}=g;if(!o)return[];let T=a.getQueryData(u);if(T?a.fetchQuery({queryKey:u,queryFn:()=>Nm(o),staleTime:6e4}).catch(Y3):T=await a.fetchQuery({queryKey:u,queryFn:()=>Nm(o),staleTime:6e4}),!T.resources)return[];let y=T.resources;if(E.trim()){const S=E.toLowerCase();y=T.resources.filter(N=>N.uri.toLowerCase().includes(S)||N.name?.toLowerCase().includes(S)||N.description?.toLowerCase().includes(S))}return y.map(K3)},e[9]=o,e[10]=a,e[11]=u,e[12]=p):p=e[12];const f=p;let h;return e[13]!==n||e[14]!==f||e[15]!==d||e[16]!==u?(h=b.jsx(T_,{editor:n,char:"@",pluginKey:"resourcesDropdownMenu",queryKey:u,queryFn:f,onSelect:d}),e[13]=n,e[14]=f,e[15]=d,e[16]=u,e[17]=h):h=e[17],h};function Y3(){}function K3(t){return{name:t.name??t.uri,title:t.name,description:t.description,uri:t.uri}}const X3=[i_.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1}),yD.configure({placeholder:"Ask anything, / for prompts, @ for resources...",showOnlyWhenEditable:!1}),Cv,Lv];function Z3(t){const e=Y.c(22),{tiptapDoc:n,setTiptapDoc:r,selectedModel:a,isStreaming:i,onSubmit:s,children:o}=t,l=i||!a,u=L.useRef(s),c=L.useRef(r),d=n||"",p=!l;let f,h;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={attributes:{class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-[15px] p-[18px]"},handleKeyDown:(O,w)=>w.key==="Enter"&&!w.shiftKey?(w.preventDefault(),u.current?.(),!0):!1},h=O=>{const{editor:w}=O;c.current(w?.getJSON())},e[0]=f,e[1]=h):(f=e[0],h=e[1]);let g;e[2]!==d||e[3]!==p?(g={extensions:X3,content:d,editable:p,editorProps:f,onUpdate:h},e[2]=d,e[3]=p,e[4]=g):g=e[4];let E;e[5]!==l?(E=[l],e[5]=l,e[6]=E):E=e[6];const T=bv(g,E);let y,S;e[7]!==s?(y=()=>{u.current=s},S=[s],e[7]=s,e[8]=y,e[9]=S):(y=e[8],S=e[9]),L.useEffect(y,S);let N,_;e[10]!==r?(_=()=>{c.current=r},N=[r],e[10]=r,e[11]=N,e[12]=_):(N=e[11],_=e[12]),L.useEffect(_,N);let A,v;e[13]!==T||e[14]!==n?(A=()=>{if(T?.isDestroyed)return;const O=JSON.stringify(T?.getJSON()),w=JSON.stringify(n||{type:"doc",content:[]});O!==w&&T.commands.setContent(n||{type:"doc",content:[]})},v=[T,n],e[13]=T,e[14]=n,e[15]=A,e[16]=v):(A=e[15],v=e[16]),L.useEffect(A,v);let R;e[17]!==T?(R={editor:T},e[17]=T,e[18]=R):R=e[18];let I;return e[19]!==o||e[20]!==R?(I=b.jsx(Is.Provider,{value:R,children:o}),e[19]=o,e[20]=R,e[21]=I):I=e[21],I}function Q3(t){const e=Y.c(24),{selectedModel:n,isStreaming:r,selectedVirtualMcp:a,ref:i}=t,{editor:s}=Ev(),o=a?.id??null,l=r||!n;let u;e[0]!==s?.commands?(u=()=>({focus:()=>{s?.commands.focus()},clear:()=>{s?.commands.clearContent(!0)}}),e[0]=s?.commands,e[1]=u):u=e[1];let c;if(e[2]!==s?(c=[s],e[2]=s,e[3]=c):c=e[3],L.useImperativeHandle(i??null,u,c),!s)return null;const d=l&&"cursor-not-allowed opacity-70",p=l&&"[&_.ProseMirror]:cursor-not-allowed";let f;e[4]!==d||e[5]!==p?(f=ee("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col","[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0",d,p),e[4]=d,e[5]=p,e[6]=f):f=e[6];let h;e[7]!==s||e[8]!==f?(h=b.jsx(Ph,{editor:s,className:f}),e[7]=s,e[8]=f,e[9]=h):h=e[9];let g;e[10]!==s||e[11]!==o?(g=b.jsx(L.Suspense,{fallback:null,children:b.jsx(z3,{editor:s,virtualMcpId:o})}),e[10]=s,e[11]=o,e[12]=g):g=e[12];let E;e[13]!==s||e[14]!==o?(E=b.jsx(L.Suspense,{fallback:null,children:b.jsx(W3,{editor:s,virtualMcpId:o})}),e[13]=s,e[14]=o,e[15]=E):E=e[15];let T;e[16]!==s||e[17]!==n?(T=b.jsx(WL,{editor:s,selectedModel:n}),e[16]=s,e[17]=n,e[18]=T):T=e[18];let y;return e[19]!==h||e[20]!==g||e[21]!==E||e[22]!==T?(y=b.jsxs(b.Fragment,{children:[h,g,E,T]}),e[19]=h,e[20]=g,e[21]=E,e[22]=T,e[23]=y):y=e[23],y}const Nn=16,Vf=2.5,Wf=(Nn-Vf)/2,So=2*Math.PI*Wf;function J3(t){const e=Y.c(25),{usage:n}=t;if(!n)return null;const{totalTokens:r,inputTokens:a,outputTokens:i,cost:s}=n;if(!r&&!a&&!i)return null;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx(JS,{size:12}),e[0]=o):o=e[0];let l;e[1]!==r?(l=r.toLocaleString(),e[1]=r,e[2]=l):l=e[2];let u;e[3]!==l?(u=b.jsx(ct,{asChild:!0,children:b.jsxs(ke,{variant:"ghost",size:"sm",className:"text-muted-foreground hover:text-foreground pl-1! h-6 gap-1 whitespace-nowrap shrink-0",children:[o,b.jsx("span",{className:"text-[10px] font-mono tabular-nums",children:l})]})}),e[3]=l,e[4]=u):u=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("p",{className:"text-muted text-[10px] mb-1",children:"tokens"}),e[5]=c):c=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=b.jsx("span",{className:"text-muted",children:"in"}),e[6]=d):d=e[6];let p;e[7]!==a?(p=a.toLocaleString(),e[7]=a,e[8]=p):p=e[8];let f;e[9]!==p?(f=b.jsx("span",{className:"text-right tabular-nums",children:p}),e[9]=p,e[10]=f):f=e[10];let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=b.jsx("span",{className:"text-muted",children:"out"}),e[11]=h):h=e[11];const g=i-(n.reasoningTokens??0);let E;e[12]!==g?(E=g.toLocaleString(),e[12]=g,e[13]=E):E=e[13];let T;e[14]!==E?(T=b.jsx("span",{className:"text-right tabular-nums",children:E}),e[14]=E,e[15]=T):T=e[15];let y;e[16]!==s?(y=s>0&&b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-muted",children:"cost"}),b.jsxs("span",{className:"text-right tabular-nums",children:["$",s.toFixed(4)]})]}),e[16]=s,e[17]=y):y=e[17];let S;e[18]!==T||e[19]!==y||e[20]!==f?(S=b.jsxs(dt,{side:"top",className:"font-mono text-[11px]",children:[c,b.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[d,f,h,T,y]})]}),e[18]=T,e[19]=y,e[20]=f,e[21]=S):S=e[21];let N;return e[22]!==S||e[23]!==u?(N=b.jsxs(ut,{children:[u,S]}),e[22]=S,e[23]=u,e[24]=N):N=e[24],N}function eP(t){const e=Y.c(17),{usage:n,duration:r}=t,a=r!=null&&r>0,i=n!=null&&(n.cost??0)>0;if(!a&&!i)return null;let s;e[0]!==r||e[1]!==a?(s=a?(r/1e3).toFixed(1):null,e[0]=r,e[1]=a,e[2]=s):s=e[2];const o=s;let l;e[3]!==r||e[4]!==o||e[5]!==n?(l=o&&b.jsxs(ut,{children:[b.jsx(ct,{asChild:!0,children:b.jsxs("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:[o,"s"]})}),b.jsxs(dt,{side:"top",className:"font-mono text-[11px]",children:[b.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"thinking"}),b.jsxs("span",{className:"tabular-nums",children:[(r/1e3).toFixed(2),"s"]}),(n?.reasoningTokens??0)>0&&b.jsxs("span",{className:"ml-2 opacity-50",children:[n.reasoningTokens.toLocaleString()," tok"]})]})]}),e[3]=r,e[4]=o,e[5]=n,e[6]=l):l=e[6];let u;e[7]!==i||e[8]!==a?(u=a&&i&&b.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),e[7]=i,e[8]=a,e[9]=u):u=e[9];let c;e[10]!==i||e[11]!==n?(c=i&&b.jsxs(ut,{children:[b.jsx(ct,{asChild:!0,children:b.jsxs("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:["$",n.cost.toFixed(4)]})}),b.jsxs(dt,{side:"top",className:"font-mono text-[11px]",children:[b.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"tokens"}),b.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[b.jsx("span",{className:"opacity-60",children:"in"}),b.jsx("span",{className:"text-right tabular-nums",children:(n.inputTokens??0).toLocaleString()}),b.jsx("span",{className:"opacity-60",children:"out"}),b.jsx("span",{className:"text-right tabular-nums",children:((n.outputTokens??0)-(n?.reasoningTokens??0)).toLocaleString()}),(n?.reasoningTokens??0)>0&&b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"opacity-60",children:"think"}),b.jsx("span",{className:"text-right tabular-nums",children:n.reasoningTokens.toLocaleString()})]})]})]})]}),e[10]=i,e[11]=n,e[12]=c):c=e[12];let d;return e[13]!==l||e[14]!==u||e[15]!==c?(d=b.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[l,u,c]}),e[13]=l,e[14]=u,e[15]=c,e[16]=d):d=e[16],d}function tP(t){const e=Y.c(37),{usage:n,totalTokens:r,contextWindow:a}=t,i=Math.min(r/a*100,100),s=So-i/100*So,o=n?.cost??0,l=n?.inputTokens??0,u=n?.outputTokens??0;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("circle",{cx:Nn/2,cy:Nn/2,r:Wf,fill:"none",stroke:"currentColor",strokeWidth:Vf,className:"opacity-15"}),e[0]=c):c=e[0];const d=i>90?"text-destructive":i>70?"text-warning":"text-muted-foreground";let p;e[1]!==d?(p=ee(d),e[1]=d,e[2]=p):p=e[2];let f;e[3]!==s||e[4]!==p?(f=b.jsxs("svg",{width:Nn,height:Nn,className:"-rotate-90",children:[c,b.jsx("circle",{cx:Nn/2,cy:Nn/2,r:Wf,fill:"none",stroke:"currentColor",strokeWidth:Vf,strokeDasharray:So,strokeDashoffset:s,strokeLinecap:"round",className:p})]}),e[3]=s,e[4]=p,e[5]=f):f=e[5];let h;e[6]!==i?(h=i.toFixed(0),e[6]=i,e[7]=h):h=e[7];let g;e[8]!==o?(g=o>0?` · $${o.toFixed(2)}`:"",e[8]=o,e[9]=g):g=e[9];let E;e[10]!==h||e[11]!==g?(E=b.jsxs("span",{className:"text-[11px] font-mono tabular-nums",children:[h,"%",g]}),e[10]=h,e[11]=g,e[12]=E):E=e[12];let T;e[13]!==f||e[14]!==E?(T=b.jsx(ct,{asChild:!0,children:b.jsxs("button",{type:"button",className:"flex items-center gap-1.5 text-muted-foreground hover:text-foreground h-6 px-1 shrink-0 cursor-default",children:[f,E]})}),e[13]=f,e[14]=E,e[15]=T):T=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=b.jsx("span",{className:"text-muted",children:"context"}),e[16]=y):y=e[16];let S;e[17]!==i?(S=i.toFixed(1),e[17]=i,e[18]=S):S=e[18];let N;e[19]!==S?(N=b.jsxs("span",{className:"text-right tabular-nums",children:[S,"%"]}),e[19]=S,e[20]=N):N=e[20];let _;e[21]===Symbol.for("react.memo_cache_sentinel")?(_=b.jsx("span",{className:"text-muted",children:"tokens"}),e[21]=_):_=e[21];let A;e[22]!==r?(A=r.toLocaleString(),e[22]=r,e[23]=A):A=e[23];let v;e[24]!==A?(v=b.jsx("span",{className:"text-right tabular-nums",children:A}),e[24]=A,e[25]=v):v=e[25];let R;e[26]!==o||e[27]!==l||e[28]!==u?(R=o>0&&b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-muted",children:"cost"}),b.jsxs("span",{className:"text-right tabular-nums",children:["$",o.toFixed(4)]}),b.jsx("span",{className:"text-muted",children:"in"}),b.jsx("span",{className:"text-right tabular-nums",children:l.toLocaleString()}),b.jsx("span",{className:"text-muted",children:"out"}),b.jsx("span",{className:"text-right tabular-nums",children:u.toLocaleString()})]}),e[26]=o,e[27]=l,e[28]=u,e[29]=R):R=e[29];let I;e[30]!==N||e[31]!==v||e[32]!==R?(I=b.jsx(dt,{side:"top",className:"font-mono text-[11px]",children:b.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[y,N,_,v,R]})}),e[30]=N,e[31]=v,e[32]=R,e[33]=I):I=e[33];let O;return e[34]!==I||e[35]!==T?(O=b.jsxs(ut,{children:[T,I]}),e[34]=I,e[35]=T,e[36]=O):O=e[36],O}function nP(t){const e=Y.c(29),{onVirtualMcpChange:n,virtualMcps:r,disabled:a}=t,i=a===void 0?!1:a,[s,o]=L.useState(!1),l=L.useRef(null),{org:u}=jn();let c;e[0]!==u.id?(c=jS(u.id),e[0]=u.id,e[1]=c):c=e[1];const d=c;let p;e[2]!==r?(p=r.filter(rP),e[2]=r,e[3]=p):p=e[3];const f=p;let h,g;e[4]!==s?(h=()=>{s&&setTimeout(()=>{l.current?.focus()},0)},g=[s],e[4]=s,e[5]=h,e[6]=g):(h=e[5],g=e[6]),L.useEffect(h,g);let E;e[7]!==n?(E=w=>{n(w),o(!1)},e[7]=n,e[8]=E):E=e[8];const T=E,y=i?"cursor-not-allowed opacity-50":"cursor-pointer hover:text-muted-foreground";let S;e[9]!==y?(S=ee("relative flex items-center justify-center size-8 rounded-md text-muted-foreground/75 transition-colors shrink-0",y),e[9]=y,e[10]=S):S=e[10];let N,_;e[11]===Symbol.for("react.memo_cache_sentinel")?(_=b.jsxs("svg",{className:"absolute inset-0 size-full",fill:"none",children:[b.jsx("defs",{children:b.jsxs("linearGradient",{id:"agent-border-gradient-decopilot",gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:"32",y2:"32",children:[b.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"6s",repeatCount:"indefinite"}),b.jsx("stop",{offset:"0%",stopColor:"var(--chart-1)"}),b.jsx("stop",{offset:"100%",stopColor:"var(--chart-4)"})]})}),b.jsx("rect",{x:"0.5",y:"0.5",width:"31",height:"31",rx:"5.5",stroke:"url(#agent-border-gradient-decopilot)",strokeWidth:"1",strokeDasharray:"3 3"})]}),N=b.jsx(ia,{size:16}),e[11]=N,e[12]=_):(N=e[11],_=e[12]);let A;e[13]!==i||e[14]!==S?(A=b.jsx(ct,{asChild:!0,children:b.jsx(Sr,{asChild:!0,children:b.jsxs("button",{type:"button",className:S,disabled:i,children:[_,N]})})}),e[13]=i,e[14]=S,e[15]=A):A=e[15];let v;e[16]!==s?(v=!s&&b.jsx(dt,{side:"top",children:"Decopilot"}),e[16]=s,e[17]=v):v=e[17];let R;e[18]!==A||e[19]!==v?(R=b.jsxs(ut,{children:[A,v]}),e[18]=A,e[19]=v,e[20]=R):R=e[20];let I;e[21]!==d.id||e[22]!==f||e[23]!==T?(I=b.jsx(Ar,{className:"w-[550px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:b.jsx(Bh,{virtualMcps:f,selectedVirtualMcpId:d.id,onVirtualMcpChange:T,searchInputRef:l})}),e[21]=d.id,e[22]=f,e[23]=T,e[24]=I):I=e[24];let O;return e[25]!==s||e[26]!==R||e[27]!==I?(O=b.jsxs(yr,{open:s,onOpenChange:o,children:[R,I]}),e[25]=s,e[26]=R,e[27]=I,e[28]=O):O=e[28],O}function rP(t){return!t.id||!ur(t.id)}function aP(t){const e=Y.c(64),{virtualMcpId:n,virtualMcps:r,onVirtualMcpChange:a,disabled:i}=t,s=i===void 0?!1:i,[o,l]=L.useState(!1),u=L.useRef(null),c=US(),{org:d}=jn();let p;if(e[0]!==n||e[1]!==r){let Q;e[3]!==n?(Q=J=>J.id===n,e[3]=n,e[4]=Q):Q=e[4],p=r.find(Q),e[0]=n,e[1]=r,e[2]=p}else p=e[2];const f=p;let h,g;e[5]!==o?(h=()=>{o&&setTimeout(()=>{u.current?.focus()},0)},g=[o],e[5]=o,e[6]=h,e[7]=g):(h=e[6],g=e[7]),L.useEffect(h,g);let E,T,y,S,N;if(e[8]!==c||e[9]!==a||e[10]!==d||e[11]!==f||e[12]!==n){N=Symbol.for("react.early_return_sentinel");e:{const Q=Iv(n);if(!f||ur(n)){N=null;break e}let J;e[18]!==a?(J=se=>{se.stopPropagation(),a(null)},e[18]=a,e[19]=J):J=e[19],T=J;let ae;e[20]!==c||e[21]!==d.slug||e[22]!==n?(ae=se=>{se.stopPropagation(),c({to:"/$org/$project/agents/$agentId",params:{org:d.slug,project:Xa,agentId:n}})},e[20]=c,e[21]=d.slug,e[22]=n,e[23]=ae):ae=e[23],E=ae;let te;e[24]!==a?(te=se=>{a(se),l(!1)},e[24]=a,e[25]=te):te=e[25],y=te,S=ee("flex items-center justify-between px-3 py-1.5 rounded-t-xl z-10",Q?.bg)}e[8]=c,e[9]=a,e[10]=d,e[11]=f,e[12]=n,e[13]=E,e[14]=T,e[15]=y,e[16]=S,e[17]=N}else E=e[13],T=e[14],y=e[15],S=e[16],N=e[17];if(N!==Symbol.for("react.early_return_sentinel"))return N;const _=s?"cursor-not-allowed opacity-50":"cursor-pointer";let A;e[26]!==_?(A=ee("flex items-center gap-1.5 px-2 py-1 rounded-md hover:opacity-80 transition-opacity",_),e[26]=_,e[27]=A):A=e[27];let v;e[28]!==f.title?(v=b.jsx("span",{className:"text-xs text-white font-normal",children:f.title}),e[28]=f.title,e[29]=v):v=e[29];let R;e[30]===Symbol.for("react.memo_cache_sentinel")?(R=b.jsx(lI,{size:14,className:"text-white/50"}),e[30]=R):R=e[30];let I;e[31]!==s||e[32]!==A||e[33]!==v?(I=b.jsx(Sr,{asChild:!0,children:b.jsxs("button",{type:"button",disabled:s,className:A,children:[v,R]})}),e[31]=s,e[32]=A,e[33]=v,e[34]=I):I=e[34];let O;e[35]!==y||e[36]!==n||e[37]!==r?(O=b.jsx(Ar,{className:"w-[550px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:b.jsx(Bh,{virtualMcps:r,selectedVirtualMcpId:n,onVirtualMcpChange:y,searchInputRef:u})}),e[35]=y,e[36]=n,e[37]=r,e[38]=O):O=e[38];let w;e[39]!==o||e[40]!==I||e[41]!==O?(w=b.jsxs(yr,{open:o,onOpenChange:l,children:[I,O]}),e[39]=o,e[40]=I,e[41]=O,e[42]=w):w=e[42];const M=s?"cursor-not-allowed opacity-50":"cursor-pointer hover:bg-white/10";let H;e[43]!==M?(H=ee("flex items-center justify-center p-1 rounded-full transition-colors",M),e[43]=M,e[44]=H):H=e[44];let F;e[45]===Symbol.for("react.memo_cache_sentinel")?(F=b.jsx(GS,{size:14,className:"text-white"}),e[45]=F):F=e[45];let $;e[46]!==s||e[47]!==E||e[48]!==H?($=b.jsx("button",{type:"button",onClick:E,disabled:s,className:H,"aria-label":"Edit agent",children:F}),e[46]=s,e[47]=E,e[48]=H,e[49]=$):$=e[49];const U=s?"cursor-not-allowed opacity-50":"cursor-pointer hover:bg-white/10";let j;e[50]!==U?(j=ee("flex items-center justify-center p-1 rounded-full transition-colors",U),e[50]=U,e[51]=j):j=e[51];let P;e[52]===Symbol.for("react.memo_cache_sentinel")?(P=b.jsx(uI,{size:14,className:"text-white"}),e[52]=P):P=e[52];let W;e[53]!==s||e[54]!==T||e[55]!==j?(W=b.jsx("button",{type:"button",onClick:T,disabled:s,className:j,"aria-label":"Reset to default",children:P}),e[53]=s,e[54]=T,e[55]=j,e[56]=W):W=e[56];let X;e[57]!==$||e[58]!==W?(X=b.jsxs("div",{className:"flex items-center gap-1",children:[$,W]}),e[57]=$,e[58]=W,e[59]=X):X=e[59];let K;return e[60]!==w||e[61]!==X||e[62]!==S?(K=b.jsxs("div",{className:S,children:[w,X]}),e[60]=w,e[61]=X,e[62]=S,e[63]=K):K=e[63],K}function iP(){const{activeThreadId:t,tiptapDocRef:e,virtualMcps:n,selectedVirtualMcp:r,setVirtualMcpId:a,modelsConnections:i,selectedModel:s,setSelectedModel:o,selectedMode:l,setSelectedMode:u,messages:c,isStreaming:d,isRunInProgress:p,sendMessage:f,stop:h,cancelRun:g}=rh(),[E,T]=L.useState(void 0),y=Q=>{T(Q),e.current=Q},S=L.useRef(t);S.current!==t&&(S.current=t,T(void 0),e.current=void 0);const N=s?.thinking.limits?.contextWindow,_=L.useRef(null),A=aI(c),v=[...c].reverse().find(Q=>Q.role==="assistant"&&Q.metadata?.usage)?.metadata?.usage,R=(v?.totalTokens??0)-(v?.reasoningTokens??0),I=!d&&!!s&&!sL(E),O=d||p,w=Q=>{Q?.preventDefault(),d?h():p?g():I&&E&&(f(E),y(void 0))},M=!!r?.id&&!ur(r.id),[H,F]=L.useState(!1);L.useEffect(()=>{M&&F(!0)},[M]);const $=Q=>{Q.propertyName==="grid-template-rows"&&(M||(F(!1),U.current=null))},U=L.useRef(null),j=r?Iv(r.id):null;M&&r?.id&&(U.current={id:r.id,virtualMcps:n,color:j});const P=M?r:null,W=P?.id??U.current?.id,X=P?n:U.current?.virtualMcps??[],K=j?.bg??U.current?.color?.bg;return b.jsx("div",{className:"flex flex-col w-full justify-end",children:b.jsxs("div",{className:"relative rounded-xl w-full flex flex-col",children:[H&&b.jsx("div",{className:ee("absolute inset-0 rounded-xl pointer-events-none",K)}),b.jsx(Rs,{}),b.jsx("div",{className:ee("relative z-10 grid transition-[grid-template-rows] duration-250 ease-out overflow-hidden rounded-t-xl",M?"grid-rows-[1fr]":"grid-rows-[0fr]"),onTransitionEnd:$,children:b.jsx("div",{className:"overflow-hidden",children:W&&b.jsx(aP,{onVirtualMcpChange:a,virtualMcpId:W,virtualMcps:X,disabled:d})})}),b.jsx("div",{className:ee("transition-[padding] duration-250 ease-out",H?"p-0.5":"p-0"),children:b.jsx(Z3,{tiptapDoc:E,setTiptapDoc:y,selectedModel:s,isStreaming:d,onSubmit:w,children:b.jsxs("form",{onSubmit:w,className:ee("w-full relative rounded-xl min-h-[130px] flex flex-col border border-border bg-background shadow-sm"),children:[b.jsx("div",{className:"relative flex flex-col gap-2 flex-1",children:b.jsx(Q3,{ref:_,selectedModel:s,isStreaming:d,selectedVirtualMcp:r})}),b.jsxs("div",{className:"flex items-center justify-between p-2.5",children:[b.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 overflow-hidden",children:[p&&b.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:"Run in progress"}),r&&ur(r.id)?b.jsx(nP,{onVirtualMcpChange:a,virtualMcps:n,disabled:d}):b.jsx(jL,{selectedVirtualMcpId:r?.id??null,onVirtualMcpChange:a,virtualMcps:n,placeholder:"Agent",disabled:d}),b.jsx(KL,{selectedModel:s,isStreaming:d}),b.jsx(UL,{selectedMode:l,onModeChange:u,disabled:d}),N&&R>0&&b.jsx(tP,{usage:A,totalTokens:R,contextWindow:N})]}),b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx(GC,{selectedModel:s??void 0,onModelChange:o,modelsConnections:i,placeholder:"Model",variant:"borderless"}),b.jsx(ke,{type:O?"button":"submit",onClick:Q=>{O&&(Q.preventDefault(),Q.stopPropagation(),d?h():g())},variant:I||O?"default":"ghost",size:"icon",disabled:!I&&!O,className:ee("size-8 rounded-full transition-all",!I&&!O&&"bg-muted text-muted-foreground hover:bg-muted hover:text-muted-foreground cursor-not-allowed"),title:d?"Stop generating":p?"Cancel run":"Send message (Enter)",children:O?b.jsx(aA,{size:20}):b.jsx(oI,{size:20})})]})]})]})},t)})]})})}function y_({containerRef:t,enabled:e,contentDeps:n=[],threshold:r,intervalMs:a=500}){const[i,s]=L.useState(null),[o,l]=L.useState(!1),u=r??(t?.95:.1),c=()=>{if(t?.current){t.current.scrollTop=t.current.scrollHeight;return}if(!i)return;let d=i.parentElement;for(;d;){const p=window.getComputedStyle(d);if(p.overflowY==="auto"||p.overflowY==="scroll"||p.overflow==="auto"||p.overflow==="scroll"){d.scrollTop=d.scrollHeight;return}d=d.parentElement}};return L.useEffect(()=>{if(!i)return;const d=new IntersectionObserver(p=>{const f=p[0]?.isIntersecting??!1;l(f)},{root:t?.current??null,threshold:u,rootMargin:"0px"});return d.observe(i),()=>d.disconnect()},[i,u]),L.useEffect(()=>{if(!e||!o)return;const d=setInterval(c,a);return()=>clearInterval(d)},[e,o,a]),L.useEffect(()=>{!e||!o||c()},[e,o,...n]),{sentinelRef:s,isTracking:o}}function Qh(t){const e=Y.c(57),{icon:n,title:r,usage:a,summary:i,state:s,detail:o,detailVariant:l,forceOpen:u,variant:c,trailing:d,iconDestructive:p}=t,f=l===void 0?"code":l,h=c===void 0?"default":c,[g,E]=L.useState(!1),{handleCopy:T,copied:y}=WS(),S=s==="loading",N=s==="error";let _;e[0]!==o?(_=o&&o.trim(),e[0]=o,e[1]=_):_=e[1];const A=!!_,v=h==="subtask",R=(u??!1)||g,I=L.useRef(null),O=S&&R;let w;e[2]!==o?(w=[o],e[2]=o,e[3]=w):w=e[3];let M;e[4]!==O||e[5]!==w?(M={containerRef:I,enabled:O,contentDeps:w},e[4]=O,e[5]=w,e[6]=M):M=e[6];const{sentinelRef:H}=y_(M),F=u?void 0:E,$=!A,U=A&&"[@media(hover:hover)]:hover:bg-accent/30",j=!A&&"cursor-default",P=S&&"shimmer";let W;e[7]!==j||e[8]!==P||e[9]!==U?(W=ee("group/tool flex items-center gap-2 w-full py-2.5 text-left transition-colors",U,j,P),e[7]=j,e[8]=P,e[9]=U,e[10]=W):W=e[10];const X=!A,K=p||N?"[&>svg]:text-destructive/70":"[&>svg]:text-muted-foreground/75",Q=A&&(R?"opacity-0":"[@media(hover:hover)]:group-hover/tool:opacity-0");let J;e[11]!==K||e[12]!==Q?(J=ee("absolute inset-0 flex items-center justify-center [&>svg]:size-4 transition-opacity duration-150",K,Q),e[11]=K,e[12]=Q,e[13]=J):J=e[13];let ae;e[14]!==n||e[15]!==J?(ae=b.jsx("div",{className:J,children:n}),e[14]=n,e[15]=J,e[16]=ae):ae=e[16];let te;e[17]!==R||e[18]!==A?(te=A&&b.jsx("div",{className:ee("absolute inset-0 flex items-center justify-center transition-opacity duration-150",R?"opacity-100":"opacity-0 [@media(hover:hover)]:group-hover/tool:opacity-100"),children:b.jsx(xI,{className:ee("size-4 text-foreground/60 transition-transform duration-200 ease-in-out",R&&"rotate-90")})}),e[17]=R,e[18]=A,e[19]=te):te=e[19];let se;e[20]!==ae||e[21]!==te?(se=b.jsxs("div",{className:"relative shrink-0 size-4 flex items-center justify-center",children:[ae,te]}),e[20]=ae,e[21]=te,e[22]=se):se=e[22];const ce=N?"text-destructive/70":"text-foreground";let be;e[23]!==ce?(be=ee("shrink-0 text-[14px] font-normal",ce),e[23]=ce,e[24]=be):be=e[24];let Le;e[25]!==be||e[26]!==r?(Le=b.jsx("span",{className:be,children:r}),e[25]=be,e[26]=r,e[27]=Le):Le=e[27];let _e;e[28]!==i?(_e=i?b.jsx("span",{className:"min-w-0 flex-1 truncate",children:b.jsx("span",{className:"text-[12px] text-muted-foreground/60 bg-muted/50 rounded-[3px] px-1 py-px leading-none",children:i})}):b.jsx("div",{className:"flex-1"}),e[28]=i,e[29]=_e):_e=e[29];let Se;e[30]!==d?(Se=d&&b.jsx("div",{className:"shrink-0 flex items-center gap-1 [&_svg]:size-3.5 [&_svg]:text-muted-foreground/50",children:d}),e[30]=d,e[31]=Se):Se=e[31];let de;e[32]!==a?(de=b.jsx(J3,{usage:a}),e[32]=a,e[33]=de):de=e[33];let he;e[34]!==W||e[35]!==X||e[36]!==se||e[37]!==Le||e[38]!==_e||e[39]!==Se||e[40]!==de||e[41]!==$?(he=b.jsxs(AI,{disabled:$,className:W,"aria-disabled":X,children:[se,Le,_e,Se,de]}),e[34]=W,e[35]=X,e[36]=se,e[37]=Le,e[38]=_e,e[39]=Se,e[40]=de,e[41]=$,e[42]=he):he=e[42];let Ae;e[43]!==y||e[44]!==o||e[45]!==f||e[46]!==T||e[47]!==A||e[48]!==H?(Ae=A&&b.jsx(NI,{className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden",children:f==="prose"?b.jsx("div",{className:"mt-1 mb-1",children:b.jsxs("div",{ref:I,className:"max-h-[150px] overflow-y-auto rounded-md bg-muted/30 px-3 py-2",children:[b.jsx("p",{className:"text-xs text-muted-foreground/70 whitespace-pre-wrap leading-relaxed wrap-break-word",children:o}),b.jsx("div",{ref:H,className:"h-0 shrink-0"})]})}):b.jsx("div",{className:"ml-[20px] pl-3 border-l border-border/30 mt-0.5 pb-1",children:b.jsxs("div",{ref:I,className:"flex flex-col max-h-48 overflow-y-auto",children:[b.jsxs("div",{className:"flex items-start justify-between gap-2",children:[b.jsx("div",{className:"flex-1 min-w-0 overflow-hidden",children:b.jsx("pre",{className:"text-xs font-mono text-muted-foreground/70 whitespace-pre-wrap wrap-break-word",children:o})}),b.jsx("button",{type:"button",onClick:()=>T(o),className:"shrink-0 p-1.5 rounded-md text-muted-foreground/50 [@media(hover:hover)]:hover:text-foreground [@media(hover:hover)]:hover:bg-accent/50 transition-colors active:scale-[0.97]","aria-label":"Copy",children:y?b.jsx(qn,{className:"size-3.5"}):b.jsx(ds,{className:"size-3.5"})})]}),b.jsx("div",{ref:H,className:"h-0 shrink-0"})]})})}),e[43]=y,e[44]=o,e[45]=f,e[46]=T,e[47]=A,e[48]=H,e[49]=Ae):Ae=e[49];let Tt;e[50]!==R||e[51]!==he||e[52]!==Ae||e[53]!==F?(Tt=b.jsxs(vI,{open:R,onOpenChange:F,children:[he,Ae]}),e[50]=R,e[51]=he,e[52]=Ae,e[53]=F,e[54]=Tt):Tt=e[54];const $e=Tt;if(v){let Ze;return e[55]!==$e?(Ze=b.jsx("div",{className:"pl-4 border-l border-border/40 ml-1.5",children:$e}),e[55]=$e,e[56]=Ze):Ze=e[56],Ze}return $e}const Nb=/[#.]/g;function sP(t,e){const n=t||"",r={};let a=0,i,s;for(;a<n.length;){Nb.lastIndex=a;const o=Nb.exec(n),l=n.slice(a,o?o.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,a+=l.length),o&&(i=o[0],a++)}return{type:"element",tagName:s||e||"div",properties:r,children:[]}}function S_(t,e,n){const r=n?cP(n):void 0;function a(i,s,...o){let l;if(i==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=sP(i,e);const u=l.tagName.toLowerCase(),c=r?r.get(u):void 0;if(l.tagName=c||u,oP(s))o.unshift(s);else for(const[d,p]of Object.entries(s))lP(t,l.properties,d,p)}for(const u of o)Yf(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return a}function oP(t){if(t===null||typeof t!="object"||Array.isArray(t))return!0;if(typeof t.type!="string")return!1;const e=t,n=Object.keys(t);for(const r of n){const a=e[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in t&&Array.isArray(t.children))}function lP(t,e,n,r){const a=sh(t,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=vm(r):a.commaSeparated?i=_m(r):a.commaOrSpaceSeparated?i=vm(_m(r).join(" ")):i=vb(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?uP(r):String(r);if(Array.isArray(i)){const s=[];for(const o of i)s.push(vb(a,a.property,o));i=s}a.property==="className"&&Array.isArray(e.className)&&(i=e.className.concat(i)),e[a.property]=i}}function Yf(t,e){if(e!=null)if(typeof e=="number"||typeof e=="string")t.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const n of e)Yf(t,n);else if(typeof e=="object"&&"type"in e)e.type==="root"?Yf(t,e.children):t.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function vb(t,e,n){if(typeof n=="string"){if(t.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((t.boolean||t.overloadedBoolean)&&(n===""||Cm(n)===Cm(e)))return!0}return n}function uP(t){const e=[];for(const[n,r]of Object.entries(t))e.push([n,r].join(": "));return e.join("; ")}function cP(t){const e=new Map;for(const n of t)e.set(n.toLowerCase(),n);return e}const dP=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],pP=S_(ps,"div"),fP=S_(Aa,"g",dP);function hP(t){const e=String(t),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=e.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=_b(e,n[s-1]);o=l===-1?e.length+1:l+1,n[s]=o}if(o>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const o=n[n.length-1],l=_b(e,o),u=l===-1?e.length+1:l+1;if(o===u)break;n.push(u)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function _b(t,e){const n=t.indexOf("\r",e),r=t.indexOf(`
|
|
141
|
-
`,e);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const xn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},A_={}.hasOwnProperty,mP=Object.prototype;function gP(t,e){const n=e||{};return Jh({file:n.file||void 0,location:!1,schema:n.space==="svg"?Aa:ps,verbose:n.verbose||!1},t)}function Jh(t,e){let n;switch(e.nodeName){case"#comment":{const r=e;return n={type:"comment",value:r.data},ai(t,r,n),n}case"#document":case"#document-fragment":{const r=e,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:N_(t,e.childNodes),data:{quirksMode:a}},t.file&&t.location){const i=String(t.file),s=hP(i),o=s.toPoint(0),l=s.toPoint(i.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=e;return n={type:"doctype"},ai(t,r,n),n}case"#text":{const r=e;return n={type:"text",value:r.value},ai(t,r,n),n}default:return n=bP(t,e),n}}function N_(t,e){let n=-1;const r=[];for(;++n<e.length;){const a=Jh(t,e[n]);r.push(a)}return r}function bP(t,e){const n=t.schema;t.schema=e.namespaceURI===xn.svg?Aa:ps;let r=-1;const a={};for(;++r<e.attrs.length;){const o=e.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;A_.call(mP,l)||(a[l]=o.value)}const s=(t.schema.space==="svg"?fP:pP)(e.tagName,a,N_(t,e.childNodes));if(ai(t,e,s),s.tagName==="template"){const o=e,l=o.sourceCodeLocation,u=l&&l.startTag&&ir(l.startTag),c=l&&l.endTag&&ir(l.endTag),d=Jh(t,o.content);u&&c&&t.file&&(d.position={start:u.end,end:c.start}),s.content=d}return t.schema=n,s}function ai(t,e,n){if("sourceCodeLocation"in e&&e.sourceCodeLocation&&t.file){const r=EP(t,n,e.sourceCodeLocation);r&&(t.location=!0,n.position=r)}}function EP(t,e,n){const r=ir(n);if(e.type==="element"){const a=e.children[e.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),t.verbose){const i={};let s;if(n.attrs)for(s in n.attrs)A_.call(n.attrs,s)&&(i[sh(t.schema,s).property]=ir(n.attrs[s]));uf(n.startTag);const o=ir(n.startTag),l=n.endTag?ir(n.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=i,e.data={position:u}}}return r}function ir(t){const e=Cb({line:t.startLine,column:t.startCol,offset:t.startOffset}),n=Cb({line:t.endLine,column:t.endCol,offset:t.endOffset});return e||n?{start:e,end:n}:void 0}function Cb(t){return t.line&&t.column?t:void 0}const TP={},yP={}.hasOwnProperty,v_=sA("type",{handlers:{root:AP,element:IP,text:_P,comment:CP,doctype:vP}});function SP(t,e){const r=(e||TP).space;return v_(t,r==="svg"?Aa:ps)}function AP(t,e){const n={nodeName:"#document",mode:(t.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=em(t.children,n,e),vr(t,n),n}function NP(t,e){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=em(t.children,n,e),vr(t,n),n}function vP(t){const e={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return vr(t,e),e}function _P(t){const e={nodeName:"#text",value:t.value,parentNode:null};return vr(t,e),e}function CP(t){const e={nodeName:"#comment",data:t.value,parentNode:null};return vr(t,e),e}function IP(t,e){const n=e;let r=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Aa);const a=[];let i;if(t.properties){for(i in t.properties)if(i!=="children"&&yP.call(t.properties,i)){const l=RP(r,i,t.properties[i]);l&&a.push(l)}}const s=r.space,o={nodeName:t.tagName,tagName:t.tagName,attrs:a,namespaceURI:xn[s],childNodes:[],parentNode:null};return o.childNodes=em(t.children,o,r),vr(t,o),t.tagName==="template"&&t.content&&(o.content=NP(t.content,r)),o}function RP(t,e,n){const r=sh(t,e);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?wI(n):OI(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=xn[r.space]}return a}function em(t,e,n){let r=-1;const a=[];if(t)for(;++r<t.length;){const i=v_(t[r],n);i.parentNode=e,a.push(i)}return a}function vr(t,e){const n=t.position;n&&n.start&&n.end&&(uf(typeof n.start.offset=="number"),uf(typeof n.end.offset=="number"),e.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const xP=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],kP=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ee="�";var C;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(C||(C={}));const nt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function __(t){return t>=55296&&t<=57343}function wP(t){return t>=56320&&t<=57343}function OP(t,e){return(t-55296)*1024+9216+e}function C_(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function I_(t){return t>=64976&&t<=65007||kP.has(t)}var B;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.noncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(B||(B={}));const LP=65536;class DP{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=LP,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,n){const{line:r,col:a,offset:i}=this,s=a+n,o=i+n;return{code:e,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(wP(n))return this.pos++,this._addGap(),OP(e,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,C.EOF;return this._err(B.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,n){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,n){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(e,this.pos);for(let r=0;r<e.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==e.charCodeAt(r))return!1;return!0}peek(e){const n=this.pos+e;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;const r=this.html.charCodeAt(n);return r===C.CARRIAGE_RETURN?C.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;let e=this.html.charCodeAt(this.pos);return e===C.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,C.LINE_FEED):e===C.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,__(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===C.LINE_FEED||e===C.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){C_(e)?this._err(B.controlCharacterInInputStream):I_(e)&&this._err(B.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ue;(function(t){t[t.CHARACTER=0]="CHARACTER",t[t.NULL_CHARACTER=1]="NULL_CHARACTER",t[t.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",t[t.START_TAG=3]="START_TAG",t[t.END_TAG=4]="END_TAG",t[t.COMMENT=5]="COMMENT",t[t.DOCTYPE=6]="DOCTYPE",t[t.EOF=7]="EOF",t[t.HIBERNATION=8]="HIBERNATION"})(ue||(ue={}));function R_(t,e){for(let n=t.attrs.length-1;n>=0;n--)if(t.attrs[n].name===e)return t.attrs[n].value;return null}const MP=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(t=>t.charCodeAt(0))),PP=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function FP(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=PP.get(t))!==null&&e!==void 0?e:t}var Be;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Be||(Be={}));const BP=32;var an;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(an||(an={}));function Kf(t){return t>=Be.ZERO&&t<=Be.NINE}function UP(t){return t>=Be.UPPER_A&&t<=Be.UPPER_F||t>=Be.LOWER_A&&t<=Be.LOWER_F}function HP(t){return t>=Be.UPPER_A&&t<=Be.UPPER_Z||t>=Be.LOWER_A&&t<=Be.LOWER_Z||Kf(t)}function $P(t){return t===Be.EQUALS||HP(t)}var Pe;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Pe||(Pe={}));var Ut;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Ut||(Ut={}));class jP{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=Pe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ut.Strict}startEntity(e){this.decodeMode=e,this.state=Pe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Pe.EntityStart:return e.charCodeAt(n)===Be.NUM?(this.state=Pe.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Pe.NamedEntity,this.stateNamedEntity(e,n));case Pe.NumericStart:return this.stateNumericStart(e,n);case Pe.NumericDecimal:return this.stateNumericDecimal(e,n);case Pe.NumericHex:return this.stateNumericHex(e,n);case Pe.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|BP)===Be.LOWER_X?(this.state=Pe.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Pe.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+Number.parseInt(e.substr(n,i),a),this.consumed+=i}}stateNumericHex(e,n){const r=n;for(;n<e.length;){const a=e.charCodeAt(n);if(Kf(a)||UP(a))n+=1;else return this.addToNumericResult(e,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(e,r,n,16),-1}stateNumericDecimal(e,n){const r=n;for(;n<e.length;){const a=e.charCodeAt(n);if(Kf(a))n+=1;else return this.addToNumericResult(e,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(e,r,n,10),-1}emitNumericEntity(e,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Be.SEMI)this.consumed+=1;else if(this.decodeMode===Ut.Strict)return 0;return this.emitCodePoint(FP(this.result),this.consumed),this.errors&&(e!==Be.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&an.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){const s=e.charCodeAt(n);if(this.treeIndex=qP(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Ut.Attribute&&(i===0||$P(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&an.VALUE_LENGTH)>>14,i!==0){if(s===Be.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Ut.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:r}=this,a=(r[n]&an.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[e]&~an.VALUE_LENGTH:a[e+1],r),n===3&&this.emitCodePoint(a[e+2],r),r}end(){var e;switch(this.state){case Pe.NamedEntity:return this.result!==0&&(this.decodeMode!==Ut.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Pe.NumericDecimal:return this.emitNumericEntity(0,2);case Pe.NumericHex:return this.emitNumericEntity(0,3);case Pe.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Pe.EntityStart:return 0}}}function qP(t,e,n,r){const a=(e&an.BRANCH_LENGTH)>>7,i=e&an.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=a?-1:t[n+l]-1}let s=n,o=s+a-1;for(;s<=o;){const l=s+o>>>1,u=t[l];if(u<r)s=l+1;else if(u>r)o=l-1;else return t[l+a]}return-1}var q;(function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"})(q||(q={}));var Pn;(function(t){t.TYPE="type",t.ACTION="action",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"})(Pn||(Pn={}));var mt;(function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"})(mt||(mt={}));var D;(function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SEARCH="search",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="strike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"})(D||(D={}));var m;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SEARCH=94]="SEARCH",t[t.SECTION=95]="SECTION",t[t.SELECT=96]="SELECT",t[t.SOURCE=97]="SOURCE",t[t.SMALL=98]="SMALL",t[t.SPAN=99]="SPAN",t[t.STRIKE=100]="STRIKE",t[t.STRONG=101]="STRONG",t[t.STYLE=102]="STYLE",t[t.SUB=103]="SUB",t[t.SUMMARY=104]="SUMMARY",t[t.SUP=105]="SUP",t[t.TABLE=106]="TABLE",t[t.TBODY=107]="TBODY",t[t.TEMPLATE=108]="TEMPLATE",t[t.TEXTAREA=109]="TEXTAREA",t[t.TFOOT=110]="TFOOT",t[t.TD=111]="TD",t[t.TH=112]="TH",t[t.THEAD=113]="THEAD",t[t.TITLE=114]="TITLE",t[t.TR=115]="TR",t[t.TRACK=116]="TRACK",t[t.TT=117]="TT",t[t.U=118]="U",t[t.UL=119]="UL",t[t.SVG=120]="SVG",t[t.VAR=121]="VAR",t[t.WBR=122]="WBR",t[t.XMP=123]="XMP"})(m||(m={}));const zP=new Map([[D.A,m.A],[D.ADDRESS,m.ADDRESS],[D.ANNOTATION_XML,m.ANNOTATION_XML],[D.APPLET,m.APPLET],[D.AREA,m.AREA],[D.ARTICLE,m.ARTICLE],[D.ASIDE,m.ASIDE],[D.B,m.B],[D.BASE,m.BASE],[D.BASEFONT,m.BASEFONT],[D.BGSOUND,m.BGSOUND],[D.BIG,m.BIG],[D.BLOCKQUOTE,m.BLOCKQUOTE],[D.BODY,m.BODY],[D.BR,m.BR],[D.BUTTON,m.BUTTON],[D.CAPTION,m.CAPTION],[D.CENTER,m.CENTER],[D.CODE,m.CODE],[D.COL,m.COL],[D.COLGROUP,m.COLGROUP],[D.DD,m.DD],[D.DESC,m.DESC],[D.DETAILS,m.DETAILS],[D.DIALOG,m.DIALOG],[D.DIR,m.DIR],[D.DIV,m.DIV],[D.DL,m.DL],[D.DT,m.DT],[D.EM,m.EM],[D.EMBED,m.EMBED],[D.FIELDSET,m.FIELDSET],[D.FIGCAPTION,m.FIGCAPTION],[D.FIGURE,m.FIGURE],[D.FONT,m.FONT],[D.FOOTER,m.FOOTER],[D.FOREIGN_OBJECT,m.FOREIGN_OBJECT],[D.FORM,m.FORM],[D.FRAME,m.FRAME],[D.FRAMESET,m.FRAMESET],[D.H1,m.H1],[D.H2,m.H2],[D.H3,m.H3],[D.H4,m.H4],[D.H5,m.H5],[D.H6,m.H6],[D.HEAD,m.HEAD],[D.HEADER,m.HEADER],[D.HGROUP,m.HGROUP],[D.HR,m.HR],[D.HTML,m.HTML],[D.I,m.I],[D.IMG,m.IMG],[D.IMAGE,m.IMAGE],[D.INPUT,m.INPUT],[D.IFRAME,m.IFRAME],[D.KEYGEN,m.KEYGEN],[D.LABEL,m.LABEL],[D.LI,m.LI],[D.LINK,m.LINK],[D.LISTING,m.LISTING],[D.MAIN,m.MAIN],[D.MALIGNMARK,m.MALIGNMARK],[D.MARQUEE,m.MARQUEE],[D.MATH,m.MATH],[D.MENU,m.MENU],[D.META,m.META],[D.MGLYPH,m.MGLYPH],[D.MI,m.MI],[D.MO,m.MO],[D.MN,m.MN],[D.MS,m.MS],[D.MTEXT,m.MTEXT],[D.NAV,m.NAV],[D.NOBR,m.NOBR],[D.NOFRAMES,m.NOFRAMES],[D.NOEMBED,m.NOEMBED],[D.NOSCRIPT,m.NOSCRIPT],[D.OBJECT,m.OBJECT],[D.OL,m.OL],[D.OPTGROUP,m.OPTGROUP],[D.OPTION,m.OPTION],[D.P,m.P],[D.PARAM,m.PARAM],[D.PLAINTEXT,m.PLAINTEXT],[D.PRE,m.PRE],[D.RB,m.RB],[D.RP,m.RP],[D.RT,m.RT],[D.RTC,m.RTC],[D.RUBY,m.RUBY],[D.S,m.S],[D.SCRIPT,m.SCRIPT],[D.SEARCH,m.SEARCH],[D.SECTION,m.SECTION],[D.SELECT,m.SELECT],[D.SOURCE,m.SOURCE],[D.SMALL,m.SMALL],[D.SPAN,m.SPAN],[D.STRIKE,m.STRIKE],[D.STRONG,m.STRONG],[D.STYLE,m.STYLE],[D.SUB,m.SUB],[D.SUMMARY,m.SUMMARY],[D.SUP,m.SUP],[D.TABLE,m.TABLE],[D.TBODY,m.TBODY],[D.TEMPLATE,m.TEMPLATE],[D.TEXTAREA,m.TEXTAREA],[D.TFOOT,m.TFOOT],[D.TD,m.TD],[D.TH,m.TH],[D.THEAD,m.THEAD],[D.TITLE,m.TITLE],[D.TR,m.TR],[D.TRACK,m.TRACK],[D.TT,m.TT],[D.U,m.U],[D.UL,m.UL],[D.SVG,m.SVG],[D.VAR,m.VAR],[D.WBR,m.WBR],[D.XMP,m.XMP]]);function _r(t){var e;return(e=zP.get(t))!==null&&e!==void 0?e:m.UNKNOWN}const G=m,GP={[q.HTML]:new Set([G.ADDRESS,G.APPLET,G.AREA,G.ARTICLE,G.ASIDE,G.BASE,G.BASEFONT,G.BGSOUND,G.BLOCKQUOTE,G.BODY,G.BR,G.BUTTON,G.CAPTION,G.CENTER,G.COL,G.COLGROUP,G.DD,G.DETAILS,G.DIR,G.DIV,G.DL,G.DT,G.EMBED,G.FIELDSET,G.FIGCAPTION,G.FIGURE,G.FOOTER,G.FORM,G.FRAME,G.FRAMESET,G.H1,G.H2,G.H3,G.H4,G.H5,G.H6,G.HEAD,G.HEADER,G.HGROUP,G.HR,G.HTML,G.IFRAME,G.IMG,G.INPUT,G.LI,G.LINK,G.LISTING,G.MAIN,G.MARQUEE,G.MENU,G.META,G.NAV,G.NOEMBED,G.NOFRAMES,G.NOSCRIPT,G.OBJECT,G.OL,G.P,G.PARAM,G.PLAINTEXT,G.PRE,G.SCRIPT,G.SECTION,G.SELECT,G.SOURCE,G.STYLE,G.SUMMARY,G.TABLE,G.TBODY,G.TD,G.TEMPLATE,G.TEXTAREA,G.TFOOT,G.TH,G.THEAD,G.TITLE,G.TR,G.TRACK,G.UL,G.WBR,G.XMP]),[q.MATHML]:new Set([G.MI,G.MO,G.MN,G.MS,G.MTEXT,G.ANNOTATION_XML]),[q.SVG]:new Set([G.TITLE,G.FOREIGN_OBJECT,G.DESC]),[q.XLINK]:new Set,[q.XML]:new Set,[q.XMLNS]:new Set},Xf=new Set([G.H1,G.H2,G.H3,G.H4,G.H5,G.H6]);D.STYLE,D.SCRIPT,D.XMP,D.IFRAME,D.NOEMBED,D.NOFRAMES,D.PLAINTEXT;var x;(function(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(x||(x={}));const Ce={DATA:x.DATA,RCDATA:x.RCDATA,RAWTEXT:x.RAWTEXT,SCRIPT_DATA:x.SCRIPT_DATA,PLAINTEXT:x.PLAINTEXT,CDATA_SECTION:x.CDATA_SECTION};function VP(t){return t>=C.DIGIT_0&&t<=C.DIGIT_9}function jr(t){return t>=C.LATIN_CAPITAL_A&&t<=C.LATIN_CAPITAL_Z}function WP(t){return t>=C.LATIN_SMALL_A&&t<=C.LATIN_SMALL_Z}function Yt(t){return WP(t)||jr(t)}function Ib(t){return Yt(t)||VP(t)}function za(t){return t+32}function x_(t){return t===C.SPACE||t===C.LINE_FEED||t===C.TABULATION||t===C.FORM_FEED}function Rb(t){return x_(t)||t===C.SOLIDUS||t===C.GREATER_THAN_SIGN}function YP(t){return t===C.NULL?B.nullCharacterReference:t>1114111?B.characterReferenceOutsideUnicodeRange:__(t)?B.surrogateCharacterReference:I_(t)?B.noncharacterCharacterReference:C_(t)||t===C.CARRIAGE_RETURN?B.controlCharacterReference:null}class KP{constructor(e,n){this.options=e,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=x.DATA,this.returnState=x.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new DP(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new jP(MP,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(B.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(B.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=YP(r);a&&this._err(a,1)}}:void 0)}_err(e,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(e,n))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,n,r){this.active=!0,this.preprocessor.write(e,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let n=0;n<e;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,n){return this.preprocessor.startsWith(e,n)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ue.START_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ue.END_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:ue.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:ue.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,n){this.currentCharacterToken={type:e,chars:n,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,n;const r=this.currentToken;if(R_(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(e=(n=r.location).attrs)!==null&&e!==void 0?e:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(B.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=_r(e.tagName),e.type===ue.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(B.endTagWithAttributes),e.selfClosing&&this._err(B.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case ue.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ue.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ue.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:ue.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,n)}_emitCodePoint(e){const n=x_(e)?ue.WHITESPACE_CHARACTER:e===C.NULL?ue.NULL_CHARACTER:ue.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(ue.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=x.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ut.Attribute:Ut.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===x.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===x.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===x.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case x.DATA:{this._stateData(e);break}case x.RCDATA:{this._stateRcdata(e);break}case x.RAWTEXT:{this._stateRawtext(e);break}case x.SCRIPT_DATA:{this._stateScriptData(e);break}case x.PLAINTEXT:{this._statePlaintext(e);break}case x.TAG_OPEN:{this._stateTagOpen(e);break}case x.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case x.TAG_NAME:{this._stateTagName(e);break}case x.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case x.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case x.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case x.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case x.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case x.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case x.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case x.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case x.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case x.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case x.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case x.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case x.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case x.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case x.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case x.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case x.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case x.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case x.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case x.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case x.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case x.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case x.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case x.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case x.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case x.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case x.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case x.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case x.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case x.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case x.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case x.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case x.BOGUS_COMMENT:{this._stateBogusComment(e);break}case x.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case x.COMMENT_START:{this._stateCommentStart(e);break}case x.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case x.COMMENT:{this._stateComment(e);break}case x.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case x.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case x.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case x.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case x.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case x.COMMENT_END:{this._stateCommentEnd(e);break}case x.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case x.DOCTYPE:{this._stateDoctype(e);break}case x.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case x.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case x.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case x.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case x.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case x.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case x.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case x.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case x.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case x.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case x.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case x.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case x.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case x.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case x.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case x.CDATA_SECTION:{this._stateCdataSection(e);break}case x.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case x.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case x.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case x.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw new Error("Unknown state")}}_stateData(e){switch(e){case C.LESS_THAN_SIGN:{this.state=x.TAG_OPEN;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitCodePoint(e);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case C.AMPERSAND:{this._startCharacterReference();break}case C.LESS_THAN_SIGN:{this.state=x.RCDATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Ee);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case C.LESS_THAN_SIGN:{this.state=x.RAWTEXT_LESS_THAN_SIGN;break}case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Ee);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Ee);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Ee);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Yt(e))this._createStartTagToken(),this.state=x.TAG_NAME,this._stateTagName(e);else switch(e){case C.EXCLAMATION_MARK:{this.state=x.MARKUP_DECLARATION_OPEN;break}case C.SOLIDUS:{this.state=x.END_TAG_OPEN;break}case C.QUESTION_MARK:{this._err(B.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=x.BOGUS_COMMENT,this._stateBogusComment(e);break}case C.EOF:{this._err(B.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(B.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=x.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Yt(e))this._createEndTagToken(),this.state=x.TAG_NAME,this._stateTagName(e);else switch(e){case C.GREATER_THAN_SIGN:{this._err(B.missingEndTagName),this.state=x.DATA;break}case C.EOF:{this._err(B.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(B.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=x.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=x.BEFORE_ATTRIBUTE_NAME;break}case C.SOLIDUS:{this.state=x.SELF_CLOSING_START_TAG;break}case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentTagToken();break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.tagName+=Ee;break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(jr(e)?za(e):e)}}_stateRcdataLessThanSign(e){e===C.SOLIDUS?this.state=x.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=x.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){Yt(e)?(this.state=x.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=x.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=x.BEFORE_ATTRIBUTE_NAME,!1;case C.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=x.SELF_CLOSING_START_TAG,!1;case C.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=x.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=x.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===C.SOLIDUS?this.state=x.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=x.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){Yt(e)?(this.state=x.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=x.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=x.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case C.SOLIDUS:{this.state=x.SCRIPT_DATA_END_TAG_OPEN;break}case C.EXCLAMATION_MARK:{this.state=x.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=x.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){Yt(e)?(this.state=x.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=x.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=x.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===C.HYPHEN_MINUS?(this.state=x.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=x.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===C.HYPHEN_MINUS?(this.state=x.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=x.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case C.HYPHEN_MINUS:{this.state=x.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Ee);break}case C.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case C.HYPHEN_MINUS:{this.state=x.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.state=x.SCRIPT_DATA_ESCAPED,this._emitChars(Ee);break}case C.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=x.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case C.HYPHEN_MINUS:{this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.GREATER_THAN_SIGN:{this.state=x.SCRIPT_DATA,this._emitChars(">");break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.state=x.SCRIPT_DATA_ESCAPED,this._emitChars(Ee);break}case C.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=x.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===C.SOLIDUS?this.state=x.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Yt(e)?(this._emitChars("<"),this.state=x.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=x.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Yt(e)?(this.state=x.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=x.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=x.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(nt.SCRIPT,!1)&&Rb(this.preprocessor.peek(nt.SCRIPT.length))){this._emitCodePoint(e);for(let n=0;n<nt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=x.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case C.HYPHEN_MINUS:{this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Ee);break}case C.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case C.HYPHEN_MINUS:{this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ee);break}case C.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case C.HYPHEN_MINUS:{this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.GREATER_THAN_SIGN:{this.state=x.SCRIPT_DATA,this._emitChars(">");break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ee);break}case C.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===C.SOLIDUS?(this.state=x.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(nt.SCRIPT,!1)&&Rb(this.preprocessor.peek(nt.SCRIPT.length))){this._emitCodePoint(e);for(let n=0;n<nt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=x.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.SOLIDUS:case C.GREATER_THAN_SIGN:case C.EOF:{this.state=x.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case C.EQUALS_SIGN:{this._err(B.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=x.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=x.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:case C.SOLIDUS:case C.GREATER_THAN_SIGN:case C.EOF:{this._leaveAttrName(),this.state=x.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case C.EQUALS_SIGN:{this._leaveAttrName(),this.state=x.BEFORE_ATTRIBUTE_VALUE;break}case C.QUOTATION_MARK:case C.APOSTROPHE:case C.LESS_THAN_SIGN:{this._err(B.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.currentAttr.name+=Ee;break}default:this.currentAttr.name+=String.fromCodePoint(jr(e)?za(e):e)}}_stateAfterAttributeName(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.SOLIDUS:{this.state=x.SELF_CLOSING_START_TAG;break}case C.EQUALS_SIGN:{this.state=x.BEFORE_ATTRIBUTE_VALUE;break}case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=x.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{this.state=x.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this.state=x.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(B.missingAttributeValue),this.state=x.DATA,this.emitCurrentTagToken();break}default:this.state=x.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case C.QUOTATION_MARK:{this.state=x.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case C.APOSTROPHE:{this.state=x.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this._leaveAttrValue(),this.state=x.BEFORE_ATTRIBUTE_NAME;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=x.DATA,this.emitCurrentTagToken();break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case C.QUOTATION_MARK:case C.APOSTROPHE:case C.LESS_THAN_SIGN:case C.EQUALS_SIGN:case C.GRAVE_ACCENT:{this._err(B.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this._leaveAttrValue(),this.state=x.BEFORE_ATTRIBUTE_NAME;break}case C.SOLIDUS:{this._leaveAttrValue(),this.state=x.SELF_CLOSING_START_TAG;break}case C.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=x.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this._err(B.missingWhitespaceBetweenAttributes),this.state=x.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case C.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=x.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this._err(B.unexpectedSolidusInTag),this.state=x.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const n=this.currentToken;switch(e){case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentComment(n);break}case C.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.data+=Ee;break}default:n.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(nt.DASH_DASH,!0)?(this._createCommentToken(nt.DASH_DASH.length+1),this.state=x.COMMENT_START):this._consumeSequenceIfMatch(nt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(nt.DOCTYPE.length+1),this.state=x.DOCTYPE):this._consumeSequenceIfMatch(nt.CDATA_START,!0)?this.inForeignNode?this.state=x.CDATA_SECTION:(this._err(B.cdataInHtmlContent),this._createCommentToken(nt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=x.BOGUS_COMMENT):this._ensureHibernation()||(this._err(B.incorrectlyOpenedComment),this._createCommentToken(2),this.state=x.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case C.HYPHEN_MINUS:{this.state=x.COMMENT_START_DASH;break}case C.GREATER_THAN_SIGN:{this._err(B.abruptClosingOfEmptyComment),this.state=x.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=x.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const n=this.currentToken;switch(e){case C.HYPHEN_MINUS:{this.state=x.COMMENT_END;break}case C.GREATER_THAN_SIGN:{this._err(B.abruptClosingOfEmptyComment),this.state=x.DATA,this.emitCurrentComment(n);break}case C.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=x.COMMENT,this._stateComment(e)}}_stateComment(e){const n=this.currentToken;switch(e){case C.HYPHEN_MINUS:{this.state=x.COMMENT_END_DASH;break}case C.LESS_THAN_SIGN:{n.data+="<",this.state=x.COMMENT_LESS_THAN_SIGN;break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.data+=Ee;break}case C.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const n=this.currentToken;switch(e){case C.EXCLAMATION_MARK:{n.data+="!",this.state=x.COMMENT_LESS_THAN_SIGN_BANG;break}case C.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=x.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===C.HYPHEN_MINUS?this.state=x.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=x.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===C.HYPHEN_MINUS?this.state=x.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=x.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==C.GREATER_THAN_SIGN&&e!==C.EOF&&this._err(B.nestedComment),this.state=x.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const n=this.currentToken;switch(e){case C.HYPHEN_MINUS:{this.state=x.COMMENT_END;break}case C.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=x.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const n=this.currentToken;switch(e){case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentComment(n);break}case C.EXCLAMATION_MARK:{this.state=x.COMMENT_END_BANG;break}case C.HYPHEN_MINUS:{n.data+="-";break}case C.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=x.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const n=this.currentToken;switch(e){case C.HYPHEN_MINUS:{n.data+="--!",this.state=x.COMMENT_END_DASH;break}case C.GREATER_THAN_SIGN:{this._err(B.incorrectlyClosedComment),this.state=x.DATA,this.emitCurrentComment(n);break}case C.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=x.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=x.BEFORE_DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this.state=x.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case C.EOF:{this._err(B.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingWhitespaceBeforeDoctypeName),this.state=x.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(jr(e))this._createDoctypeToken(String.fromCharCode(za(e))),this.state=x.DOCTYPE_NAME;else switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.NULL:{this._err(B.unexpectedNullCharacter),this._createDoctypeToken(Ee),this.state=x.DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this._err(B.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.EOF:{this._err(B.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=x.DOCTYPE_NAME}}_stateDoctypeName(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=x.AFTER_DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.name+=Ee;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(jr(e)?za(e):e)}}_stateAfterDoctypeName(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(nt.PUBLIC,!1)?this.state=x.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(nt.SYSTEM,!1)?this.state=x.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(B.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=x.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.QUOTATION_MARK:{this._err(B.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=x.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(B.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=x.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(B.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{n.publicId="",this.state=x.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.publicId="",this.state=x.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(B.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const n=this.currentToken;switch(e){case C.QUOTATION_MARK:{this.state=x.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.publicId+=Ee;break}case C.GREATER_THAN_SIGN:{this._err(B.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const n=this.currentToken;switch(e){case C.APOSTROPHE:{this.state=x.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.publicId+=Ee;break}case C.GREATER_THAN_SIGN:{this._err(B.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=x.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.QUOTATION_MARK:{this._err(B.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(B.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.QUOTATION_MARK:{n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=x.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.QUOTATION_MARK:{this._err(B.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(B.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(B.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(B.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const n=this.currentToken;switch(e){case C.QUOTATION_MARK:{this.state=x.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.systemId+=Ee;break}case C.GREATER_THAN_SIGN:{this._err(B.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const n=this.currentToken;switch(e){case C.APOSTROPHE:{this.state=x.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.systemId+=Ee;break}case C.GREATER_THAN_SIGN:{this._err(B.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const n=this.currentToken;switch(e){case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.NULL:{this._err(B.unexpectedNullCharacter);break}case C.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case C.RIGHT_SQUARE_BRACKET:{this.state=x.CDATA_SECTION_BRACKET;break}case C.EOF:{this._err(B.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===C.RIGHT_SQUARE_BRACKET?this.state=x.CDATA_SECTION_END:(this._emitChars("]"),this.state=x.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case C.GREATER_THAN_SIGN:{this.state=x.DATA;break}case C.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=x.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(C.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ib(this.preprocessor.peek(1))?x.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){Ib(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===C.SEMICOLON&&this._err(B.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const k_=new Set([m.DD,m.DT,m.LI,m.OPTGROUP,m.OPTION,m.P,m.RB,m.RP,m.RT,m.RTC]),xb=new Set([...k_,m.CAPTION,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]),es=new Set([m.APPLET,m.CAPTION,m.HTML,m.MARQUEE,m.OBJECT,m.TABLE,m.TD,m.TEMPLATE,m.TH]),XP=new Set([...es,m.OL,m.UL]),ZP=new Set([...es,m.BUTTON]),kb=new Set([m.ANNOTATION_XML,m.MI,m.MN,m.MO,m.MS,m.MTEXT]),wb=new Set([m.DESC,m.FOREIGN_OBJECT,m.TITLE]),QP=new Set([m.TR,m.TEMPLATE,m.HTML]),JP=new Set([m.TBODY,m.TFOOT,m.THEAD,m.TEMPLATE,m.HTML]),eF=new Set([m.TABLE,m.TEMPLATE,m.HTML]),tF=new Set([m.TD,m.TH]);class nF{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=m.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===m.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===q.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,n){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,n,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,n){const r=this._indexOf(e);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(e,n,r){const a=this._indexOf(e)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(e){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(e,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==q.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(e){for(;this.stackTop>=e;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<e)}}popUntilElementPopped(e){const n=this._indexOf(e);this.shortenToLength(Math.max(n,0))}popUntilPopped(e,n){const r=this._indexOfTagNames(e,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Xf,q.HTML)}popUntilTableCellPopped(){this.popUntilPopped(tF,q.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,n){for(let r=this.stackTop;r>=0;r--)if(e.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(e,n){const r=this._indexOfTagNames(e,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(eF,q.HTML)}clearBackToTableBodyContext(){this.clearBackTo(JP,q.HTML)}clearBackToTableRowContext(){this.clearBackTo(QP,q.HTML)}remove(e){const n=this._indexOf(e);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===m.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const n=this._indexOf(e)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===m.HTML}hasInDynamicScope(e,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case q.HTML:{if(a===e)return!0;if(n.has(a))return!1;break}case q.SVG:{if(wb.has(a))return!1;break}case q.MATHML:{if(kb.has(a))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,es)}hasInListItemScope(e){return this.hasInDynamicScope(e,XP)}hasInButtonScope(e){return this.hasInDynamicScope(e,ZP)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case q.HTML:{if(Xf.has(n))return!0;if(es.has(n))return!1;break}case q.SVG:{if(wb.has(n))return!1;break}case q.MATHML:{if(kb.has(n))return!1;break}}}return!0}hasInTableScope(e){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===q.HTML)switch(this.tagIDs[n]){case e:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===q.HTML)switch(this.tagIDs[e]){case m.TBODY:case m.THEAD:case m.TFOOT:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasInSelectScope(e){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===q.HTML)switch(this.tagIDs[n]){case e:return!0;case m.OPTION:case m.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&k_.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&xb.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&xb.has(this.currentTagId);)this.pop()}}const Ao=3;var xt;(function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"})(xt||(xt={}));const Ob={type:xt.Marker};class rF{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===xt.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===s){const c=this.treeAdapter.getAttrList(u);c.length===a&&r.push({idx:o,attrs:c})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<Ao)return;const n=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,n);if(r.length<Ao)return;const a=new Map(n.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=Ao&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Ob)}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.unshift({type:xt.Element,element:e,token:n})}insertElementAfterBookmark(e,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:xt.Element,element:e,token:n})}removeEntry(e){const n=this.entries.indexOf(e);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const e=this.entries.indexOf(Ob);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const n=this.entries.find(r=>r.type===xt.Marker||this.treeAdapter.getTagName(r.element)===e);return n&&n.type===xt.Element?n:null}getElementEntry(e){return this.entries.find(n=>n.type===xt.Element&&n.element===e)}}const Kt={createDocument(){return{nodeName:"#document",mode:mt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(t,e,n){return{nodeName:t,tagName:t,attrs:n,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode(t){return{nodeName:"#comment",data:t,parentNode:null}},createTextNode(t){return{nodeName:"#text",value:t,parentNode:null}},appendChild(t,e){t.childNodes.push(e),e.parentNode=t},insertBefore(t,e,n){const r=t.childNodes.indexOf(n);t.childNodes.splice(r,0,e),e.parentNode=t},setTemplateContent(t,e){t.content=e},getTemplateContent(t){return t.content},setDocumentType(t,e,n,r){const a=t.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=e,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:e,publicId:n,systemId:r,parentNode:null};Kt.appendChild(t,i)}},setDocumentMode(t,e){t.mode=e},getDocumentMode(t){return t.mode},detachNode(t){if(t.parentNode){const e=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(e,1),t.parentNode=null}},insertText(t,e){if(t.childNodes.length>0){const n=t.childNodes[t.childNodes.length-1];if(Kt.isTextNode(n)){n.value+=e;return}}Kt.appendChild(t,Kt.createTextNode(e))},insertTextBefore(t,e,n){const r=t.childNodes[t.childNodes.indexOf(n)-1];r&&Kt.isTextNode(r)?r.value+=e:Kt.insertBefore(t,Kt.createTextNode(e),n)},adoptAttributes(t,e){const n=new Set(t.attrs.map(r=>r.name));for(let r=0;r<e.length;r++)n.has(e[r].name)||t.attrs.push(e[r])},getFirstChild(t){return t.childNodes[0]},getChildNodes(t){return t.childNodes},getParentNode(t){return t.parentNode},getAttrList(t){return t.attrs},getTagName(t){return t.tagName},getNamespaceURI(t){return t.namespaceURI},getTextNodeContent(t){return t.value},getCommentNodeContent(t){return t.data},getDocumentTypeNodeName(t){return t.name},getDocumentTypeNodePublicId(t){return t.publicId},getDocumentTypeNodeSystemId(t){return t.systemId},isTextNode(t){return t.nodeName==="#text"},isCommentNode(t){return t.nodeName==="#comment"},isDocumentTypeNode(t){return t.nodeName==="#documentType"},isElementNode(t){return Object.prototype.hasOwnProperty.call(t,"tagName")},setNodeSourceCodeLocation(t,e){t.sourceCodeLocation=e},getNodeSourceCodeLocation(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation(t,e){t.sourceCodeLocation={...t.sourceCodeLocation,...e}}},w_="html",aF="about:legacy-compat",iF="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",O_=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],sF=[...O_,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],oF=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),L_=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],lF=[...L_,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Lb(t,e){return e.some(n=>t.startsWith(n))}function uF(t){return t.name===w_&&t.publicId===null&&(t.systemId===null||t.systemId===aF)}function cF(t){if(t.name!==w_)return mt.QUIRKS;const{systemId:e}=t;if(e&&e.toLowerCase()===iF)return mt.QUIRKS;let{publicId:n}=t;if(n!==null){if(n=n.toLowerCase(),oF.has(n))return mt.QUIRKS;let r=e===null?sF:O_;if(Lb(n,r))return mt.QUIRKS;if(r=e===null?L_:lF,Lb(n,r))return mt.LIMITED_QUIRKS}return mt.NO_QUIRKS}const Db={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},dF="definitionurl",pF="definitionURL",fF=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(t=>[t.toLowerCase(),t])),hF=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:q.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:q.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:q.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:q.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:q.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:q.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:q.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:q.XML}],["xml:space",{prefix:"xml",name:"space",namespace:q.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:q.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:q.XMLNS}]]),mF=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(t=>[t.toLowerCase(),t])),gF=new Set([m.B,m.BIG,m.BLOCKQUOTE,m.BODY,m.BR,m.CENTER,m.CODE,m.DD,m.DIV,m.DL,m.DT,m.EM,m.EMBED,m.H1,m.H2,m.H3,m.H4,m.H5,m.H6,m.HEAD,m.HR,m.I,m.IMG,m.LI,m.LISTING,m.MENU,m.META,m.NOBR,m.OL,m.P,m.PRE,m.RUBY,m.S,m.SMALL,m.SPAN,m.STRONG,m.STRIKE,m.SUB,m.SUP,m.TABLE,m.TT,m.U,m.UL,m.VAR]);function bF(t){const e=t.tagID;return e===m.FONT&&t.attrs.some(({name:r})=>r===Pn.COLOR||r===Pn.SIZE||r===Pn.FACE)||gF.has(e)}function D_(t){for(let e=0;e<t.attrs.length;e++)if(t.attrs[e].name===dF){t.attrs[e].name=pF;break}}function M_(t){for(let e=0;e<t.attrs.length;e++){const n=fF.get(t.attrs[e].name);n!=null&&(t.attrs[e].name=n)}}function tm(t){for(let e=0;e<t.attrs.length;e++){const n=hF.get(t.attrs[e].name);n&&(t.attrs[e].prefix=n.prefix,t.attrs[e].name=n.name,t.attrs[e].namespace=n.namespace)}}function EF(t){const e=mF.get(t.tagName);e!=null&&(t.tagName=e,t.tagID=_r(t.tagName))}function TF(t,e){return e===q.MATHML&&(t===m.MI||t===m.MO||t===m.MN||t===m.MS||t===m.MTEXT)}function yF(t,e,n){if(e===q.MATHML&&t===m.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Pn.ENCODING){const a=n[r].value.toLowerCase();return a===Db.TEXT_HTML||a===Db.APPLICATION_XML}}return e===q.SVG&&(t===m.FOREIGN_OBJECT||t===m.DESC||t===m.TITLE)}function SF(t,e,n,r){return(!r||r===q.HTML)&&yF(t,e,n)||(!r||r===q.MATHML)&&TF(t,e)}const AF="hidden",NF=8,vF=3;var k;(function(t){t[t.INITIAL=0]="INITIAL",t[t.BEFORE_HTML=1]="BEFORE_HTML",t[t.BEFORE_HEAD=2]="BEFORE_HEAD",t[t.IN_HEAD=3]="IN_HEAD",t[t.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",t[t.AFTER_HEAD=5]="AFTER_HEAD",t[t.IN_BODY=6]="IN_BODY",t[t.TEXT=7]="TEXT",t[t.IN_TABLE=8]="IN_TABLE",t[t.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",t[t.IN_CAPTION=10]="IN_CAPTION",t[t.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",t[t.IN_TABLE_BODY=12]="IN_TABLE_BODY",t[t.IN_ROW=13]="IN_ROW",t[t.IN_CELL=14]="IN_CELL",t[t.IN_SELECT=15]="IN_SELECT",t[t.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",t[t.IN_TEMPLATE=17]="IN_TEMPLATE",t[t.AFTER_BODY=18]="AFTER_BODY",t[t.IN_FRAMESET=19]="IN_FRAMESET",t[t.AFTER_FRAMESET=20]="AFTER_FRAMESET",t[t.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",t[t.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(k||(k={}));const _F={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},P_=new Set([m.TABLE,m.TBODY,m.TFOOT,m.THEAD,m.TR]),Mb={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Kt,onParseError:null};class Pb{constructor(e,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=k.INITIAL,this.originalInsertionMode=k.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Mb,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new KP(this.options,this),this.activeFormattingElements=new rF(this.treeAdapter),this.fragmentContextID=r?_r(this.treeAdapter.getTagName(r)):m.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new nF(this.document,this.treeAdapter,this)}static parse(e,n){const r=new this(n);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,n){const r={...Mb,...n};e??(e=r.treeAdapter.createElement(D.TEMPLATE,q.HTML,[]));const a=r.treeAdapter.createElement("documentmock",q.HTML,[]),i=new this(r,a,e);return i.fragmentContextID===m.TEMPLATE&&i.tmplInsertionModeStack.unshift(k.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,n),n}_err(e,n,r){var a;if(!this.onParseError)return;const i=(a=e.location)!==null&&a!==void 0?a:_F,s={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(e,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,n)}onItemPop(e,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,e,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(e,n){const r=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===q.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&e!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,e)}_switchToTextParsing(e,n){this._insertElement(e,q.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=k.TEXT}switchToPlaintextParsing(){this.insertionMode=k.TEXT,this.originalInsertionMode=k.IN_BODY,this.tokenizer.state=Ce.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===D.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==q.HTML))switch(this.fragmentContextID){case m.TITLE:case m.TEXTAREA:{this.tokenizer.state=Ce.RCDATA;break}case m.STYLE:case m.XMP:case m.IFRAME:case m.NOEMBED:case m.NOFRAMES:case m.NOSCRIPT:{this.tokenizer.state=Ce.RAWTEXT;break}case m.SCRIPT:{this.tokenizer.state=Ce.SCRIPT_DATA;break}case m.PLAINTEXT:{this.tokenizer.state=Ce.PLAINTEXT;break}}}_setDocumentType(e){const n=e.name||"",r=e.publicId||"",a=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),e.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}}_attachElementToTree(e,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,e)}}_appendElement(e,n){const r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,n){const r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,n){const r=this.treeAdapter.createElement(e,q.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(e){const n=this.treeAdapter.createElement(e.tagName,q.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(D.HTML,q.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,m.HTML)}_appendCommentNode(e,n){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,e.chars,r):this.treeAdapter.insertText(n,e.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,e.chars)),!e.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:c}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,n){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(e,n){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(e),i=n.type===ue.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,e.tagID===m.SVG&&this.treeAdapter.getTagName(n)===D.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===q.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===m.MGLYPH||e.tagID===m.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,q.HTML)}_processToken(e){switch(e.type){case ue.CHARACTER:{this.onCharacter(e);break}case ue.NULL_CHARACTER:{this.onNullCharacter(e);break}case ue.COMMENT:{this.onComment(e);break}case ue.DOCTYPE:{this.onDoctype(e);break}case ue.START_TAG:{this._processStartTag(e);break}case ue.END_TAG:{this.onEndTag(e);break}case ue.EOF:{this.onEof(e);break}case ue.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return SF(e,a,i,r)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===xt.Marker||this.openElements.contains(a.element)),r=n===-1?e-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=k.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(m.P),this.openElements.popUntilTagNamePopped(m.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case m.TR:{this.insertionMode=k.IN_ROW;return}case m.TBODY:case m.THEAD:case m.TFOOT:{this.insertionMode=k.IN_TABLE_BODY;return}case m.CAPTION:{this.insertionMode=k.IN_CAPTION;return}case m.COLGROUP:{this.insertionMode=k.IN_COLUMN_GROUP;return}case m.TABLE:{this.insertionMode=k.IN_TABLE;return}case m.BODY:{this.insertionMode=k.IN_BODY;return}case m.FRAMESET:{this.insertionMode=k.IN_FRAMESET;return}case m.SELECT:{this._resetInsertionModeForSelect(e);return}case m.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case m.HTML:{this.insertionMode=this.headElement?k.AFTER_HEAD:k.BEFORE_HEAD;return}case m.TD:case m.TH:{if(e>0){this.insertionMode=k.IN_CELL;return}break}case m.HEAD:{if(e>0){this.insertionMode=k.IN_HEAD;return}break}}this.insertionMode=k.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let n=e-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===m.TEMPLATE)break;if(r===m.TABLE){this.insertionMode=k.IN_SELECT_IN_TABLE;return}}this.insertionMode=k.IN_SELECT}_isElementCausesFosterParenting(e){return P_.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const n=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case m.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===q.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case m.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,e,n.beforeElement):this.treeAdapter.appendChild(n.parent,e)}_isSpecialElement(e,n){const r=this.treeAdapter.getNamespaceURI(e);return GP[r].has(n)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){t4(this,e);return}switch(this.insertionMode){case k.INITIAL:{Mr(this,e);break}case k.BEFORE_HTML:{ea(this,e);break}case k.BEFORE_HEAD:{ta(this,e);break}case k.IN_HEAD:{na(this,e);break}case k.IN_HEAD_NO_SCRIPT:{ra(this,e);break}case k.AFTER_HEAD:{aa(this,e);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:{B_(this,e);break}case k.TEXT:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{No(this,e);break}case k.IN_TABLE_TEXT:{z_(this,e);break}case k.IN_COLUMN_GROUP:{ts(this,e);break}case k.AFTER_BODY:{ns(this,e);break}case k.AFTER_AFTER_BODY:{ii(this,e);break}}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){e4(this,e);return}switch(this.insertionMode){case k.INITIAL:{Mr(this,e);break}case k.BEFORE_HTML:{ea(this,e);break}case k.BEFORE_HEAD:{ta(this,e);break}case k.IN_HEAD:{na(this,e);break}case k.IN_HEAD_NO_SCRIPT:{ra(this,e);break}case k.AFTER_HEAD:{aa(this,e);break}case k.TEXT:{this._insertCharacters(e);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{No(this,e);break}case k.IN_COLUMN_GROUP:{ts(this,e);break}case k.AFTER_BODY:{ns(this,e);break}case k.AFTER_AFTER_BODY:{ii(this,e);break}}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Zf(this,e);return}switch(this.insertionMode){case k.INITIAL:case k.BEFORE_HTML:case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_TEMPLATE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{Zf(this,e);break}case k.IN_TABLE_TEXT:{Pr(this,e);break}case k.AFTER_BODY:{OF(this,e);break}case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{LF(this,e);break}}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case k.INITIAL:{DF(this,e);break}case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:{this._err(e,B.misplacedDoctype);break}case k.IN_TABLE_TEXT:{Pr(this,e);break}}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,B.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?n4(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case k.INITIAL:{Mr(this,e);break}case k.BEFORE_HTML:{MF(this,e);break}case k.BEFORE_HEAD:{FF(this,e);break}case k.IN_HEAD:{At(this,e);break}case k.IN_HEAD_NO_SCRIPT:{HF(this,e);break}case k.AFTER_HEAD:{jF(this,e);break}case k.IN_BODY:{Xe(this,e);break}case k.IN_TABLE:{Er(this,e);break}case k.IN_TABLE_TEXT:{Pr(this,e);break}case k.IN_CAPTION:{BB(this,e);break}case k.IN_COLUMN_GROUP:{am(this,e);break}case k.IN_TABLE_BODY:{Os(this,e);break}case k.IN_ROW:{Ls(this,e);break}case k.IN_CELL:{$B(this,e);break}case k.IN_SELECT:{W_(this,e);break}case k.IN_SELECT_IN_TABLE:{qB(this,e);break}case k.IN_TEMPLATE:{GB(this,e);break}case k.AFTER_BODY:{WB(this,e);break}case k.IN_FRAMESET:{YB(this,e);break}case k.AFTER_FRAMESET:{XB(this,e);break}case k.AFTER_AFTER_BODY:{QB(this,e);break}case k.AFTER_AFTER_FRAMESET:{JB(this,e);break}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?r4(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case k.INITIAL:{Mr(this,e);break}case k.BEFORE_HTML:{PF(this,e);break}case k.BEFORE_HEAD:{BF(this,e);break}case k.IN_HEAD:{UF(this,e);break}case k.IN_HEAD_NO_SCRIPT:{$F(this,e);break}case k.AFTER_HEAD:{qF(this,e);break}case k.IN_BODY:{ws(this,e);break}case k.TEXT:{RB(this,e);break}case k.IN_TABLE:{Ta(this,e);break}case k.IN_TABLE_TEXT:{Pr(this,e);break}case k.IN_CAPTION:{UB(this,e);break}case k.IN_COLUMN_GROUP:{HB(this,e);break}case k.IN_TABLE_BODY:{Qf(this,e);break}case k.IN_ROW:{V_(this,e);break}case k.IN_CELL:{jB(this,e);break}case k.IN_SELECT:{Y_(this,e);break}case k.IN_SELECT_IN_TABLE:{zB(this,e);break}case k.IN_TEMPLATE:{VB(this,e);break}case k.AFTER_BODY:{X_(this,e);break}case k.IN_FRAMESET:{KB(this,e);break}case k.AFTER_FRAMESET:{ZB(this,e);break}case k.AFTER_AFTER_BODY:{ii(this,e);break}}}onEof(e){switch(this.insertionMode){case k.INITIAL:{Mr(this,e);break}case k.BEFORE_HTML:{ea(this,e);break}case k.BEFORE_HEAD:{ta(this,e);break}case k.IN_HEAD:{na(this,e);break}case k.IN_HEAD_NO_SCRIPT:{ra(this,e);break}case k.AFTER_HEAD:{aa(this,e);break}case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{j_(this,e);break}case k.TEXT:{xB(this,e);break}case k.IN_TABLE_TEXT:{Pr(this,e);break}case k.IN_TEMPLATE:{K_(this,e);break}case k.AFTER_BODY:case k.IN_FRAMESET:case k.AFTER_FRAMESET:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{rm(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===C.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.TEXT:case k.IN_COLUMN_GROUP:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{this._insertCharacters(e);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:case k.AFTER_BODY:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{F_(this,e);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{No(this,e);break}case k.IN_TABLE_TEXT:{q_(this,e);break}}}}function CF(t,e){let n=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return n?t.openElements.contains(n.element)?t.openElements.hasInScope(e.tagID)||(n=null):(t.activeFormattingElements.removeEntry(n),n=null):$_(t,e),n}function IF(t,e){let n=null,r=t.openElements.stackTop;for(;r>=0;r--){const a=t.openElements.items[r];if(a===e.element)break;t._isSpecialElement(a,t.openElements.tagIDs[r])&&(n=a)}return n||(t.openElements.shortenToLength(Math.max(r,0)),t.activeFormattingElements.removeEntry(e)),n}function RF(t,e,n){let r=e,a=t.openElements.getCommonAncestor(e);for(let i=0,s=a;s!==n;i++,s=a){a=t.openElements.getCommonAncestor(s);const o=t.activeFormattingElements.getElementEntry(s),l=o&&i>=vF;!o||l?(l&&t.activeFormattingElements.removeEntry(o),t.openElements.remove(s)):(s=xF(t,o),r===e&&(t.activeFormattingElements.bookmark=o),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(s,r),r=s)}return r}function xF(t,e){const n=t.treeAdapter.getNamespaceURI(e.element),r=t.treeAdapter.createElement(e.token.tagName,n,e.token.attrs);return t.openElements.replace(e.element,r),e.element=r,r}function kF(t,e,n){const r=t.treeAdapter.getTagName(e),a=_r(r);if(t._isElementCausesFosterParenting(a))t._fosterParentElement(n);else{const i=t.treeAdapter.getNamespaceURI(e);a===m.TEMPLATE&&i===q.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,n)}}function wF(t,e,n){const r=t.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=t.treeAdapter.createElement(a.tagName,r,a.attrs);t._adoptNodes(e,i),t.treeAdapter.appendChild(e,i),t.activeFormattingElements.insertElementAfterBookmark(i,a),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(e,i,a.tagID)}function nm(t,e){for(let n=0;n<NF;n++){const r=CF(t,e);if(!r)break;const a=IF(t,r);if(!a)break;t.activeFormattingElements.bookmark=r;const i=RF(t,a,r.element),s=t.openElements.getCommonAncestor(r.element);t.treeAdapter.detachNode(i),s&&kF(t,s,i),wF(t,a,r)}}function Zf(t,e){t._appendCommentNode(e,t.openElements.currentTmplContentOrNode)}function OF(t,e){t._appendCommentNode(e,t.openElements.items[0])}function LF(t,e){t._appendCommentNode(e,t.document)}function rm(t,e){if(t.stopped=!0,e.location){const n=t.fragmentContext?0:2;for(let r=t.openElements.stackTop;r>=n;r--)t._setEndLocation(t.openElements.items[r],e);if(!t.fragmentContext&&t.openElements.stackTop>=0){const r=t.openElements.items[0],a=t.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(t._setEndLocation(r,e),t.openElements.stackTop>=1)){const i=t.openElements.items[1],s=t.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&t._setEndLocation(i,e)}}}}function DF(t,e){t._setDocumentType(e);const n=e.forceQuirks?mt.QUIRKS:cF(e);uF(e)||t._err(e,B.nonConformingDoctype),t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode=k.BEFORE_HTML}function Mr(t,e){t._err(e,B.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,mt.QUIRKS),t.insertionMode=k.BEFORE_HTML,t._processToken(e)}function MF(t,e){e.tagID===m.HTML?(t._insertElement(e,q.HTML),t.insertionMode=k.BEFORE_HEAD):ea(t,e)}function PF(t,e){const n=e.tagID;(n===m.HTML||n===m.HEAD||n===m.BODY||n===m.BR)&&ea(t,e)}function ea(t,e){t._insertFakeRootElement(),t.insertionMode=k.BEFORE_HEAD,t._processToken(e)}function FF(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.HEAD:{t._insertElement(e,q.HTML),t.headElement=t.openElements.current,t.insertionMode=k.IN_HEAD;break}default:ta(t,e)}}function BF(t,e){const n=e.tagID;n===m.HEAD||n===m.BODY||n===m.HTML||n===m.BR?ta(t,e):t._err(e,B.endTagWithoutMatchingOpenElement)}function ta(t,e){t._insertFakeElement(D.HEAD,m.HEAD),t.headElement=t.openElements.current,t.insertionMode=k.IN_HEAD,t._processToken(e)}function At(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:{t._appendElement(e,q.HTML),e.ackSelfClosing=!0;break}case m.TITLE:{t._switchToTextParsing(e,Ce.RCDATA);break}case m.NOSCRIPT:{t.options.scriptingEnabled?t._switchToTextParsing(e,Ce.RAWTEXT):(t._insertElement(e,q.HTML),t.insertionMode=k.IN_HEAD_NO_SCRIPT);break}case m.NOFRAMES:case m.STYLE:{t._switchToTextParsing(e,Ce.RAWTEXT);break}case m.SCRIPT:{t._switchToTextParsing(e,Ce.SCRIPT_DATA);break}case m.TEMPLATE:{t._insertTemplate(e),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=k.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(k.IN_TEMPLATE);break}case m.HEAD:{t._err(e,B.misplacedStartTagForHeadElement);break}default:na(t,e)}}function UF(t,e){switch(e.tagID){case m.HEAD:{t.openElements.pop(),t.insertionMode=k.AFTER_HEAD;break}case m.BODY:case m.BR:case m.HTML:{na(t,e);break}case m.TEMPLATE:{Yn(t,e);break}default:t._err(e,B.endTagWithoutMatchingOpenElement)}}function Yn(t,e){t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==m.TEMPLATE&&t._err(e,B.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(m.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(e,B.endTagWithoutMatchingOpenElement)}function na(t,e){t.openElements.pop(),t.insertionMode=k.AFTER_HEAD,t._processToken(e)}function HF(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.BASEFONT:case m.BGSOUND:case m.HEAD:case m.LINK:case m.META:case m.NOFRAMES:case m.STYLE:{At(t,e);break}case m.NOSCRIPT:{t._err(e,B.nestedNoscriptInHead);break}default:ra(t,e)}}function $F(t,e){switch(e.tagID){case m.NOSCRIPT:{t.openElements.pop(),t.insertionMode=k.IN_HEAD;break}case m.BR:{ra(t,e);break}default:t._err(e,B.endTagWithoutMatchingOpenElement)}}function ra(t,e){const n=e.type===ue.EOF?B.openElementsLeftAfterEof:B.disallowedContentInNoscriptInHead;t._err(e,n),t.openElements.pop(),t.insertionMode=k.IN_HEAD,t._processToken(e)}function jF(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.BODY:{t._insertElement(e,q.HTML),t.framesetOk=!1,t.insertionMode=k.IN_BODY;break}case m.FRAMESET:{t._insertElement(e,q.HTML),t.insertionMode=k.IN_FRAMESET;break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{t._err(e,B.abandonedHeadElementChild),t.openElements.push(t.headElement,m.HEAD),At(t,e),t.openElements.remove(t.headElement);break}case m.HEAD:{t._err(e,B.misplacedStartTagForHeadElement);break}default:aa(t,e)}}function qF(t,e){switch(e.tagID){case m.BODY:case m.HTML:case m.BR:{aa(t,e);break}case m.TEMPLATE:{Yn(t,e);break}default:t._err(e,B.endTagWithoutMatchingOpenElement)}}function aa(t,e){t._insertFakeElement(D.BODY,m.BODY),t.insertionMode=k.IN_BODY,ks(t,e)}function ks(t,e){switch(e.type){case ue.CHARACTER:{B_(t,e);break}case ue.WHITESPACE_CHARACTER:{F_(t,e);break}case ue.COMMENT:{Zf(t,e);break}case ue.START_TAG:{Xe(t,e);break}case ue.END_TAG:{ws(t,e);break}case ue.EOF:{j_(t,e);break}}}function F_(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function B_(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function zF(t,e){t.openElements.tmplCount===0&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}function GF(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t.openElements.tmplCount===0&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,e.attrs))}function VF(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,q.HTML),t.insertionMode=k.IN_FRAMESET)}function WF(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,q.HTML)}function YF(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t.openElements.currentTagId!==void 0&&Xf.has(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(e,q.HTML)}function KF(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,q.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}function XF(t,e){const n=t.openElements.tmplCount>0;(!t.formElement||n)&&(t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,q.HTML),n||(t.formElement=t.openElements.current))}function ZF(t,e){t.framesetOk=!1;const n=e.tagID;for(let r=t.openElements.stackTop;r>=0;r--){const a=t.openElements.tagIDs[r];if(n===m.LI&&a===m.LI||(n===m.DD||n===m.DT)&&(a===m.DD||a===m.DT)){t.openElements.generateImpliedEndTagsWithExclusion(a),t.openElements.popUntilTagNamePopped(a);break}if(a!==m.ADDRESS&&a!==m.DIV&&a!==m.P&&t._isSpecialElement(t.openElements.items[r],a))break}t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,q.HTML)}function QF(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,q.HTML),t.tokenizer.state=Ce.PLAINTEXT}function JF(t,e){t.openElements.hasInScope(m.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(m.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML),t.framesetOk=!1}function eB(t,e){const n=t.activeFormattingElements.getElementEntryInScopeWithTagName(D.A);n&&(nm(t,e),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function tB(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function nB(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(m.NOBR)&&(nm(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,q.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function rB(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}function aB(t,e){t.treeAdapter.getDocumentMode(t.document)!==mt.QUIRKS&&t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,q.HTML),t.framesetOk=!1,t.insertionMode=k.IN_TABLE}function U_(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,q.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function H_(t){const e=R_(t,Pn.TYPE);return e!=null&&e.toLowerCase()===AF}function iB(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,q.HTML),H_(e)||(t.framesetOk=!1),e.ackSelfClosing=!0}function sB(t,e){t._appendElement(e,q.HTML),e.ackSelfClosing=!0}function oB(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._appendElement(e,q.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function lB(t,e){e.tagName=D.IMG,e.tagID=m.IMG,U_(t,e)}function uB(t,e){t._insertElement(e,q.HTML),t.skipNextNewLine=!0,t.tokenizer.state=Ce.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=k.TEXT}function cB(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,Ce.RAWTEXT)}function dB(t,e){t.framesetOk=!1,t._switchToTextParsing(e,Ce.RAWTEXT)}function Fb(t,e){t._switchToTextParsing(e,Ce.RAWTEXT)}function pB(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===k.IN_TABLE||t.insertionMode===k.IN_CAPTION||t.insertionMode===k.IN_TABLE_BODY||t.insertionMode===k.IN_ROW||t.insertionMode===k.IN_CELL?k.IN_SELECT_IN_TABLE:k.IN_SELECT}function fB(t,e){t.openElements.currentTagId===m.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML)}function hB(t,e){t.openElements.hasInScope(m.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,q.HTML)}function mB(t,e){t.openElements.hasInScope(m.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(m.RTC),t._insertElement(e,q.HTML)}function gB(t,e){t._reconstructActiveFormattingElements(),D_(e),tm(e),e.selfClosing?t._appendElement(e,q.MATHML):t._insertElement(e,q.MATHML),e.ackSelfClosing=!0}function bB(t,e){t._reconstructActiveFormattingElements(),M_(e),tm(e),e.selfClosing?t._appendElement(e,q.SVG):t._insertElement(e,q.SVG),e.ackSelfClosing=!0}function Bb(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML)}function Xe(t,e){switch(e.tagID){case m.I:case m.S:case m.B:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.SMALL:case m.STRIKE:case m.STRONG:{tB(t,e);break}case m.A:{eB(t,e);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{YF(t,e);break}case m.P:case m.DL:case m.OL:case m.UL:case m.DIV:case m.DIR:case m.NAV:case m.MAIN:case m.MENU:case m.ASIDE:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.DETAILS:case m.ADDRESS:case m.ARTICLE:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{WF(t,e);break}case m.LI:case m.DD:case m.DT:{ZF(t,e);break}case m.BR:case m.IMG:case m.WBR:case m.AREA:case m.EMBED:case m.KEYGEN:{U_(t,e);break}case m.HR:{oB(t,e);break}case m.RB:case m.RTC:{hB(t,e);break}case m.RT:case m.RP:{mB(t,e);break}case m.PRE:case m.LISTING:{KF(t,e);break}case m.XMP:{cB(t,e);break}case m.SVG:{bB(t,e);break}case m.HTML:{zF(t,e);break}case m.BASE:case m.LINK:case m.META:case m.STYLE:case m.TITLE:case m.SCRIPT:case m.BGSOUND:case m.BASEFONT:case m.TEMPLATE:{At(t,e);break}case m.BODY:{GF(t,e);break}case m.FORM:{XF(t,e);break}case m.NOBR:{nB(t,e);break}case m.MATH:{gB(t,e);break}case m.TABLE:{aB(t,e);break}case m.INPUT:{iB(t,e);break}case m.PARAM:case m.TRACK:case m.SOURCE:{sB(t,e);break}case m.IMAGE:{lB(t,e);break}case m.BUTTON:{JF(t,e);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{rB(t,e);break}case m.IFRAME:{dB(t,e);break}case m.SELECT:{pB(t,e);break}case m.OPTION:case m.OPTGROUP:{fB(t,e);break}case m.NOEMBED:case m.NOFRAMES:{Fb(t,e);break}case m.FRAMESET:{VF(t,e);break}case m.TEXTAREA:{uB(t,e);break}case m.NOSCRIPT:{t.options.scriptingEnabled?Fb(t,e):Bb(t,e);break}case m.PLAINTEXT:{QF(t,e);break}case m.COL:case m.TH:case m.TD:case m.TR:case m.HEAD:case m.FRAME:case m.TBODY:case m.TFOOT:case m.THEAD:case m.CAPTION:case m.COLGROUP:break;default:Bb(t,e)}}function EB(t,e){if(t.openElements.hasInScope(m.BODY)&&(t.insertionMode=k.AFTER_BODY,t.options.sourceCodeLocationInfo)){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t._setEndLocation(n,e)}}function TB(t,e){t.openElements.hasInScope(m.BODY)&&(t.insertionMode=k.AFTER_BODY,X_(t,e))}function yB(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n))}function SB(t){const e=t.openElements.tmplCount>0,{formElement:n}=t;e||(t.formElement=null),(n||e)&&t.openElements.hasInScope(m.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(m.FORM):n&&t.openElements.remove(n))}function AB(t){t.openElements.hasInButtonScope(m.P)||t._insertFakeElement(D.P,m.P),t._closePElement()}function NB(t){t.openElements.hasInListItemScope(m.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(m.LI),t.openElements.popUntilTagNamePopped(m.LI))}function vB(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilTagNamePopped(n))}function _B(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}function CB(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker())}function IB(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(D.BR,m.BR),t.openElements.pop(),t.framesetOk=!1}function $_(t,e){const n=e.tagName,r=e.tagID;for(let a=t.openElements.stackTop;a>0;a--){const i=t.openElements.items[a],s=t.openElements.tagIDs[a];if(r===s&&(r!==m.UNKNOWN||t.treeAdapter.getTagName(i)===n)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.stackTop>=a&&t.openElements.shortenToLength(a);break}if(t._isSpecialElement(i,s))break}}function ws(t,e){switch(e.tagID){case m.A:case m.B:case m.I:case m.S:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.NOBR:case m.SMALL:case m.STRIKE:case m.STRONG:{nm(t,e);break}case m.P:{AB(t);break}case m.DL:case m.UL:case m.OL:case m.DIR:case m.DIV:case m.NAV:case m.PRE:case m.MAIN:case m.MENU:case m.ASIDE:case m.BUTTON:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.ADDRESS:case m.ARTICLE:case m.DETAILS:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.LISTING:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{yB(t,e);break}case m.LI:{NB(t);break}case m.DD:case m.DT:{vB(t,e);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{_B(t);break}case m.BR:{IB(t);break}case m.BODY:{EB(t,e);break}case m.HTML:{TB(t,e);break}case m.FORM:{SB(t);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{CB(t,e);break}case m.TEMPLATE:{Yn(t,e);break}default:$_(t,e)}}function j_(t,e){t.tmplInsertionModeStack.length>0?K_(t,e):rm(t,e)}function RB(t,e){var n;e.tagID===m.SCRIPT&&((n=t.scriptHandler)===null||n===void 0||n.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode}function xB(t,e){t._err(e,B.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(e)}function No(t,e){if(t.openElements.currentTagId!==void 0&&P_.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=k.IN_TABLE_TEXT,e.type){case ue.CHARACTER:{z_(t,e);break}case ue.WHITESPACE_CHARACTER:{q_(t,e);break}}else Ia(t,e)}function kB(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,q.HTML),t.insertionMode=k.IN_CAPTION}function wB(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,q.HTML),t.insertionMode=k.IN_COLUMN_GROUP}function OB(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(D.COLGROUP,m.COLGROUP),t.insertionMode=k.IN_COLUMN_GROUP,am(t,e)}function LB(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,q.HTML),t.insertionMode=k.IN_TABLE_BODY}function DB(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(D.TBODY,m.TBODY),t.insertionMode=k.IN_TABLE_BODY,Os(t,e)}function MB(t,e){t.openElements.hasInTableScope(m.TABLE)&&(t.openElements.popUntilTagNamePopped(m.TABLE),t._resetInsertionMode(),t._processStartTag(e))}function PB(t,e){H_(e)?t._appendElement(e,q.HTML):Ia(t,e),e.ackSelfClosing=!0}function FB(t,e){!t.formElement&&t.openElements.tmplCount===0&&(t._insertElement(e,q.HTML),t.formElement=t.openElements.current,t.openElements.pop())}function Er(t,e){switch(e.tagID){case m.TD:case m.TH:case m.TR:{DB(t,e);break}case m.STYLE:case m.SCRIPT:case m.TEMPLATE:{At(t,e);break}case m.COL:{OB(t,e);break}case m.FORM:{FB(t,e);break}case m.TABLE:{MB(t,e);break}case m.TBODY:case m.TFOOT:case m.THEAD:{LB(t,e);break}case m.INPUT:{PB(t,e);break}case m.CAPTION:{kB(t,e);break}case m.COLGROUP:{wB(t,e);break}default:Ia(t,e)}}function Ta(t,e){switch(e.tagID){case m.TABLE:{t.openElements.hasInTableScope(m.TABLE)&&(t.openElements.popUntilTagNamePopped(m.TABLE),t._resetInsertionMode());break}case m.TEMPLATE:{Yn(t,e);break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:Ia(t,e)}}function Ia(t,e){const n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,ks(t,e),t.fosterParentingEnabled=n}function q_(t,e){t.pendingCharacterTokens.push(e)}function z_(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function Pr(t,e){let n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n<t.pendingCharacterTokens.length;n++)Ia(t,t.pendingCharacterTokens[n]);else for(;n<t.pendingCharacterTokens.length;n++)t._insertCharacters(t.pendingCharacterTokens[n]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}const G_=new Set([m.CAPTION,m.COL,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]);function BB(t,e){const n=e.tagID;G_.has(n)?t.openElements.hasInTableScope(m.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(m.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=k.IN_TABLE,Er(t,e)):Xe(t,e)}function UB(t,e){const n=e.tagID;switch(n){case m.CAPTION:case m.TABLE:{t.openElements.hasInTableScope(m.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(m.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=k.IN_TABLE,n===m.TABLE&&Ta(t,e));break}case m.BODY:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:ws(t,e)}}function am(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.COL:{t._appendElement(e,q.HTML),e.ackSelfClosing=!0;break}case m.TEMPLATE:{At(t,e);break}default:ts(t,e)}}function HB(t,e){switch(e.tagID){case m.COLGROUP:{t.openElements.currentTagId===m.COLGROUP&&(t.openElements.pop(),t.insertionMode=k.IN_TABLE);break}case m.TEMPLATE:{Yn(t,e);break}case m.COL:break;default:ts(t,e)}}function ts(t,e){t.openElements.currentTagId===m.COLGROUP&&(t.openElements.pop(),t.insertionMode=k.IN_TABLE,t._processToken(e))}function Os(t,e){switch(e.tagID){case m.TR:{t.openElements.clearBackToTableBodyContext(),t._insertElement(e,q.HTML),t.insertionMode=k.IN_ROW;break}case m.TH:case m.TD:{t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(D.TR,m.TR),t.insertionMode=k.IN_ROW,Ls(t,e);break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE,Er(t,e));break}default:Er(t,e)}}function Qf(t,e){const n=e.tagID;switch(e.tagID){case m.TBODY:case m.TFOOT:case m.THEAD:{t.openElements.hasInTableScope(n)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE);break}case m.TABLE:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE,Ta(t,e));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:case m.TR:break;default:Ta(t,e)}}function Ls(t,e){switch(e.tagID){case m.TH:case m.TD:{t.openElements.clearBackToTableRowContext(),t._insertElement(e,q.HTML),t.insertionMode=k.IN_CELL,t.activeFormattingElements.insertMarker();break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{t.openElements.hasInTableScope(m.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE_BODY,Os(t,e));break}default:Er(t,e)}}function V_(t,e){switch(e.tagID){case m.TR:{t.openElements.hasInTableScope(m.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE_BODY);break}case m.TABLE:{t.openElements.hasInTableScope(m.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE_BODY,Qf(t,e));break}case m.TBODY:case m.TFOOT:case m.THEAD:{(t.openElements.hasInTableScope(e.tagID)||t.openElements.hasInTableScope(m.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE_BODY,Qf(t,e));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:break;default:Ta(t,e)}}function $B(t,e){const n=e.tagID;G_.has(n)?(t.openElements.hasInTableScope(m.TD)||t.openElements.hasInTableScope(m.TH))&&(t._closeTableCell(),Ls(t,e)):Xe(t,e)}function jB(t,e){const n=e.tagID;switch(n){case m.TD:case m.TH:{t.openElements.hasInTableScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=k.IN_ROW);break}case m.TABLE:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{t.openElements.hasInTableScope(n)&&(t._closeTableCell(),V_(t,e));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:break;default:ws(t,e)}}function W_(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.OPTION:{t.openElements.currentTagId===m.OPTION&&t.openElements.pop(),t._insertElement(e,q.HTML);break}case m.OPTGROUP:{t.openElements.currentTagId===m.OPTION&&t.openElements.pop(),t.openElements.currentTagId===m.OPTGROUP&&t.openElements.pop(),t._insertElement(e,q.HTML);break}case m.HR:{t.openElements.currentTagId===m.OPTION&&t.openElements.pop(),t.openElements.currentTagId===m.OPTGROUP&&t.openElements.pop(),t._appendElement(e,q.HTML),e.ackSelfClosing=!0;break}case m.INPUT:case m.KEYGEN:case m.TEXTAREA:case m.SELECT:{t.openElements.hasInSelectScope(m.SELECT)&&(t.openElements.popUntilTagNamePopped(m.SELECT),t._resetInsertionMode(),e.tagID!==m.SELECT&&t._processStartTag(e));break}case m.SCRIPT:case m.TEMPLATE:{At(t,e);break}}}function Y_(t,e){switch(e.tagID){case m.OPTGROUP:{t.openElements.stackTop>0&&t.openElements.currentTagId===m.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===m.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===m.OPTGROUP&&t.openElements.pop();break}case m.OPTION:{t.openElements.currentTagId===m.OPTION&&t.openElements.pop();break}case m.SELECT:{t.openElements.hasInSelectScope(m.SELECT)&&(t.openElements.popUntilTagNamePopped(m.SELECT),t._resetInsertionMode());break}case m.TEMPLATE:{Yn(t,e);break}}}function qB(t,e){const n=e.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?(t.openElements.popUntilTagNamePopped(m.SELECT),t._resetInsertionMode(),t._processStartTag(e)):W_(t,e)}function zB(t,e){const n=e.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?t.openElements.hasInTableScope(n)&&(t.openElements.popUntilTagNamePopped(m.SELECT),t._resetInsertionMode(),t.onEndTag(e)):Y_(t,e)}function GB(t,e){switch(e.tagID){case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{At(t,e);break}case m.CAPTION:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{t.tmplInsertionModeStack[0]=k.IN_TABLE,t.insertionMode=k.IN_TABLE,Er(t,e);break}case m.COL:{t.tmplInsertionModeStack[0]=k.IN_COLUMN_GROUP,t.insertionMode=k.IN_COLUMN_GROUP,am(t,e);break}case m.TR:{t.tmplInsertionModeStack[0]=k.IN_TABLE_BODY,t.insertionMode=k.IN_TABLE_BODY,Os(t,e);break}case m.TD:case m.TH:{t.tmplInsertionModeStack[0]=k.IN_ROW,t.insertionMode=k.IN_ROW,Ls(t,e);break}default:t.tmplInsertionModeStack[0]=k.IN_BODY,t.insertionMode=k.IN_BODY,Xe(t,e)}}function VB(t,e){e.tagID===m.TEMPLATE&&Yn(t,e)}function K_(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(m.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(e)):rm(t,e)}function WB(t,e){e.tagID===m.HTML?Xe(t,e):ns(t,e)}function X_(t,e){var n;if(e.tagID===m.HTML){if(t.fragmentContext||(t.insertionMode=k.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===m.HTML){t._setEndLocation(t.openElements.items[0],e);const r=t.openElements.items[1];r&&!(!((n=t.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&t._setEndLocation(r,e)}}else ns(t,e)}function ns(t,e){t.insertionMode=k.IN_BODY,ks(t,e)}function YB(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.FRAMESET:{t._insertElement(e,q.HTML);break}case m.FRAME:{t._appendElement(e,q.HTML),e.ackSelfClosing=!0;break}case m.NOFRAMES:{At(t,e);break}}}function KB(t,e){e.tagID===m.FRAMESET&&!t.openElements.isRootHtmlElementCurrent()&&(t.openElements.pop(),!t.fragmentContext&&t.openElements.currentTagId!==m.FRAMESET&&(t.insertionMode=k.AFTER_FRAMESET))}function XB(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.NOFRAMES:{At(t,e);break}}}function ZB(t,e){e.tagID===m.HTML&&(t.insertionMode=k.AFTER_AFTER_FRAMESET)}function QB(t,e){e.tagID===m.HTML?Xe(t,e):ii(t,e)}function ii(t,e){t.insertionMode=k.IN_BODY,ks(t,e)}function JB(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.NOFRAMES:{At(t,e);break}}}function e4(t,e){e.chars=Ee,t._insertCharacters(e)}function t4(t,e){t._insertCharacters(e),t.framesetOk=!1}function Z_(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==q.HTML&&t.openElements.currentTagId!==void 0&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}function n4(t,e){if(bF(e))Z_(t),t._startTagOutsideForeignContent(e);else{const n=t._getAdjustedCurrentElement(),r=t.treeAdapter.getNamespaceURI(n);r===q.MATHML?D_(e):r===q.SVG&&(EF(e),M_(e)),tm(e),e.selfClosing?t._appendElement(e,r):t._insertElement(e,r),e.ackSelfClosing=!0}}function r4(t,e){if(e.tagID===m.P||e.tagID===m.BR){Z_(t),t._endTagOutsideForeignContent(e);return}for(let n=t.openElements.stackTop;n>0;n--){const r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===q.HTML){t._endTagOutsideForeignContent(e);break}const a=t.treeAdapter.getTagName(r);if(a.toLowerCase()===e.tagName){e.tagName=a,t.openElements.shortenToLength(n);break}}}D.AREA,D.BASE,D.BASEFONT,D.BGSOUND,D.BR,D.COL,D.EMBED,D.FRAME,D.HR,D.IMG,D.INPUT,D.KEYGEN,D.LINK,D.META,D.PARAM,D.SOURCE,D.TRACK,D.WBR;const a4=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,i4=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ub={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Q_(t,e){const n=m4(t),r=sA("type",{handlers:{root:s4,element:o4,text:l4,comment:eC,doctype:u4,raw:d4},unknown:p4}),a={parser:n?new Pb(Ub):Pb.getFragmentParser(void 0,Ub),handle(o){r(o,a)},stitches:!1,options:e||{}};r(t,a),Cr(a,zn());const i=n?a.parser.document:a.parser.getFragment(),s=gP(i,{file:a.options.file});return a.stitches&&LI(s,"comment",function(o,l,u){const c=o;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===t.type?s.children[0]:s}function J_(t,e){let n=-1;if(t)for(;++n<t.length;)e.handle(t[n])}function s4(t,e){J_(t.children,e)}function o4(t,e){f4(t,e),J_(t.children,e),h4(t,e)}function l4(t,e){e.parser.tokenizer.state>4&&(e.parser.tokenizer.state=0);const n={type:ue.CHARACTER,chars:t.value,location:Ra(t)};Cr(e,zn(t)),e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)}function u4(t,e){const n={type:ue.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ra(t)};Cr(e,zn(t)),e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)}function c4(t,e){e.stitches=!0;const n=g4(t);if("children"in t&&"children"in n){const r=Q_({type:"root",children:t.children},e.options);n.children=r.children}eC({type:"comment",value:{stitch:n}},e)}function eC(t,e){const n=t.value,r={type:ue.COMMENT,data:n,location:Ra(t)};Cr(e,zn(t)),e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)}function d4(t,e){if(e.parser.tokenizer.preprocessor.html="",e.parser.tokenizer.preprocessor.pos=-1,e.parser.tokenizer.preprocessor.lastGapPos=-2,e.parser.tokenizer.preprocessor.gapStack=[],e.parser.tokenizer.preprocessor.skipNextNewLine=!1,e.parser.tokenizer.preprocessor.lastChunkWritten=!1,e.parser.tokenizer.preprocessor.endOfChunkHit=!1,e.parser.tokenizer.preprocessor.isEol=!1,tC(e,zn(t)),e.parser.tokenizer.write(e.options.tagfilter?t.value.replace(a4,"<$1$2"):t.value,!1),e.parser.tokenizer._runParsingLoop(),e.parser.tokenizer.state===72||e.parser.tokenizer.state===78){e.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=e.parser.tokenizer._consume();e.parser.tokenizer._callState(n)}}function p4(t,e){const n=t;if(e.options.passThrough&&e.options.passThrough.includes(n.type))c4(n,e);else{let r="";throw i4.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Cr(t,e){tC(t,e);const n=t.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=t.parser.tokenizer.preprocessor.line,n.location.endCol=t.parser.tokenizer.preprocessor.col+1,n.location.endOffset=t.parser.tokenizer.preprocessor.offset+1,t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)),t.parser.tokenizer.paused=!1,t.parser.tokenizer.inLoop=!1,t.parser.tokenizer.active=!1,t.parser.tokenizer.returnState=Ce.DATA,t.parser.tokenizer.charRefCode=-1,t.parser.tokenizer.consumedAfterSnapshot=-1,t.parser.tokenizer.currentLocation=null,t.parser.tokenizer.currentCharacterToken=null,t.parser.tokenizer.currentToken=null,t.parser.tokenizer.currentAttr={name:"",value:""}}function tC(t,e){if(e&&e.offset!==void 0){const n={startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:-1,endCol:-1,endOffset:-1};t.parser.tokenizer.preprocessor.lineStartPos=-e.column+1,t.parser.tokenizer.preprocessor.droppedBufferSize=e.offset,t.parser.tokenizer.preprocessor.line=e.line,t.parser.tokenizer.currentLocation=n}}function f4(t,e){const n=t.tagName.toLowerCase();if(e.parser.tokenizer.state===Ce.PLAINTEXT)return;Cr(e,zn(t));const r=e.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:xn.html;a===xn.html&&n==="svg"&&(a=xn.svg);const i=SP({...t,children:[]},{space:a===xn.svg?"svg":"html"}),s={type:ue.START_TAG,tagName:n,tagID:_r(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Ra(t)};e.parser.currentToken=s,e.parser._processToken(e.parser.currentToken),e.parser.tokenizer.lastStartTagName=n}function h4(t,e){const n=t.tagName.toLowerCase();if(!e.parser.tokenizer.inForeignNode&&xP.includes(n)||e.parser.tokenizer.state===Ce.PLAINTEXT)return;Cr(e,XS(t));const r={type:ue.END_TAG,tagName:n,tagID:_r(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ra(t)};e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken),n===e.parser.tokenizer.lastStartTagName&&(e.parser.tokenizer.state===Ce.RCDATA||e.parser.tokenizer.state===Ce.RAWTEXT||e.parser.tokenizer.state===Ce.SCRIPT_DATA)&&(e.parser.tokenizer.state=Ce.DATA)}function m4(t){const e=t.type==="root"?t.children[0]:t;return!!(e&&(e.type==="doctype"||e.type==="element"&&e.tagName.toLowerCase()==="html"))}function Ra(t){const e=zn(t)||{line:void 0,column:void 0,offset:void 0},n=XS(t)||{line:void 0,column:void 0,offset:void 0};return{startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function g4(t){return"children"in t?Im({...t,children:[]}):Im(t)}function b4(t){return function(e,n){return Q_(e,{...t,file:n})}}function E4(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function T4(t,e){if(t==null)return{};var n,r,a=E4(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function Jf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function y4(t){if(Array.isArray(t))return Jf(t)}function S4(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function A4(t,e){if(t){if(typeof t=="string")return Jf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jf(t,e):void 0}}function N4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
140
|
+
`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){const r=i=>{const s=kf(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:o=>({indentLevel:o[1].length,mainContent:o[4],checked:o[3].toLowerCase()==="x"}),createToken:(o,l)=>({type:"taskItem",raw:"",mainContent:o.mainContent,indentLevel:o.indentLevel,checked:o.checked,text:o.mainContent,tokens:n.inlineTokens(o.mainContent),nestedTokens:l}),customNestedParser:r},n);return s?[{type:"taskList",raw:s.raw,items:s.items}]:n.blockTokens(i)},a=kf(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,s)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:n.inlineTokens(i.mainContent),nestedTokens:s}),customNestedParser:r},n);if(a)return{type:"taskList",raw:a.raw,items:a.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Ie.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(Kv.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(Xv.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(n_.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(a_.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(vM.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(_M.configure(this.options.taskList)),t}});var cb=" ",CM=" ",IM=tt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Oe(this.options.HTMLAttributes,t),0]},parseMarkdown:(t,e)=>{const n=t.tokens||[];if(n.length===1&&n[0].type==="image")return e.parseChildren([n[0]]);const r=e.parseInline(n);return r.length===1&&r[0].type==="text"&&(r[0].text===cb||r[0].text===CM)?e.createNode("paragraph",void 0,[]):e.createNode("paragraph",void 0,r)},renderMarkdown:(t,e)=>{if(!t)return"";const n=Array.isArray(t.content)?t.content:[];return n.length===0?cb:e.renderChildren(n)},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),RM=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,xM=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,kM=Vn.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Oe(this.options.HTMLAttributes,t),0]},markdownTokenName:"del",parseMarkdown:(t,e)=>e.applyMark("strike",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`~~${e.renderChildren(t)}~~`,addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[gr({find:RM,type:this.type})]},addPasteRules(){return[$n({find:xM,type:this.type})]}}),wM=tt.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),OM=Vn.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Oe(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t,e){return`++${e.renderChildren(t)}++`},markdownTokenizer:{name:"underline",level:"inline",start(t){return t.indexOf("++")},tokenize(t,e,n){const a=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!a)return;const i=a[2].trim();return{type:"underline",raw:a[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),LM=Ie.create({name:"starterKit",addExtensions(){var t,e,n,r;const a=[];return this.options.bold!==!1&&a.push(ID.configure(this.options.bold)),this.options.blockquote!==!1&&a.push(AD.configure(this.options.blockquote)),this.options.bulletList!==!1&&a.push(Kv.configure(this.options.bulletList)),this.options.code!==!1&&a.push(kD.configure(this.options.code)),this.options.codeBlock!==!1&&a.push(LD.configure(this.options.codeBlock)),this.options.document!==!1&&a.push(DD.configure(this.options.document)),this.options.dropcursor!==!1&&a.push(hD.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&a.push(mD.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&a.push(MD.configure(this.options.hardBreak)),this.options.heading!==!1&&a.push(PD.configure(this.options.heading)),this.options.undoRedo!==!1&&a.push(TD.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&a.push(FD.configure(this.options.horizontalRule)),this.options.italic!==!1&&a.push(jD.configure(this.options.italic)),this.options.listItem!==!1&&a.push(Xv.configure(this.options.listItem)),this.options.listKeymap!==!1&&a.push(n_.configure((t=this.options)==null?void 0:t.listKeymap)),this.options.link!==!1&&a.push(fM.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&a.push(a_.configure(this.options.orderedList)),this.options.paragraph!==!1&&a.push(IM.configure(this.options.paragraph)),this.options.strike!==!1&&a.push(kM.configure(this.options.strike)),this.options.text!==!1&&a.push(wM.configure(this.options.text)),this.options.underline!==!1&&a.push(OM.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&a.push(ED.configure((r=this.options)==null?void 0:r.trailingNode)),a}}),i_=LM;var DM=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],qf=DM.join(","),s_=typeof Element>"u",ba=s_?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Qi=!s_&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},Ji=function(e,n){var r;n===void 0&&(n=!0);var a=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),i=a===""||a==="true",s=i||n&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Ji(e.parentNode));return s},MM=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},PM=function(e,n,r){if(Ji(e))return[];var a=Array.prototype.slice.apply(e.querySelectorAll(qf));return n&&ba.call(e,qf)&&a.unshift(e),a=a.filter(r),a},zf=function(e,n,r){for(var a=[],i=Array.from(e);i.length;){var s=i.shift();if(!Ji(s,!1))if(s.tagName==="SLOT"){var o=s.assignedElements(),l=o.length?o:s.children,u=zf(l,!0,r);r.flatten?a.push.apply(a,u):a.push({scopeParent:s,candidates:u})}else{var c=ba.call(s,qf);c&&r.filter(s)&&(n||!e.includes(s))&&a.push(s);var d=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),p=!Ji(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(d&&p){var f=zf(d===!0?s.children:d.children,!0,r);r.flatten?a.push.apply(a,f):a.push({scopeParent:s,candidates:f})}else i.unshift.apply(i,s.children)}}return a},o_=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},l_=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||MM(e))&&!o_(e)?0:e.tabIndex},FM=function(e,n){var r=l_(e);return r<0&&n&&!o_(e)?0:r},BM=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},u_=function(e){return e.tagName==="INPUT"},UM=function(e){return u_(e)&&e.type==="hidden"},HM=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},$M=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},jM=function(e){if(!e.name)return!0;var n=e.form||Qi(e),r=function(o){return n.querySelectorAll('input[type="radio"][name="'+o+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=r(window.CSS.escape(e.name));else try{a=r(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=$M(a,e.form);return!i||i===e},qM=function(e){return u_(e)&&e.type==="radio"},zM=function(e){return qM(e)&&!jM(e)},GM=function(e){var n,r=e&&Qi(e),a=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==e){var s,o,l;for(i=!!((s=a)!==null&&s!==void 0&&(o=s.ownerDocument)!==null&&o!==void 0&&o.contains(a)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!i&&a;){var u,c,d;r=Qi(a),a=(u=r)===null||u===void 0?void 0:u.host,i=!!((c=a)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(a))}}return i},db=function(e){var n=e.getBoundingClientRect(),r=n.width,a=n.height;return r===0&&a===0},VM=function(e,n){var r=n.displayCheck,a=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in e){var i=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(e).visibility==="hidden")return!0;var s=ba.call(e,"details>summary:first-of-type"),o=s?e.parentElement:e;if(ba.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof a=="function"){for(var l=e;e;){var u=e.parentElement,c=Qi(e);if(u&&!u.shadowRoot&&a(u)===!0)return db(e);e.assignedSlot?e=e.assignedSlot:!u&&c!==e.ownerDocument?e=c.host:e=u}e=l}if(GM(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return db(e);return!1},WM=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var a=n.children.item(r);if(a.tagName==="LEGEND")return ba.call(n,"fieldset[disabled] *")?!0:!a.contains(e)}return!0}n=n.parentElement}return!1},YM=function(e,n){return!(n.disabled||UM(n)||VM(n,e)||HM(n)||WM(n))},pb=function(e,n){return!(zM(n)||l_(n)<0||!YM(e,n))},KM=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},c_=function(e){var n=[],r=[];return e.forEach(function(a,i){var s=!!a.scopeParent,o=s?a.scopeParent:a,l=FM(o,s),u=s?c_(a.candidates):o;l===0?s?n.push.apply(n,u):n.push(o):r.push({documentOrder:i,tabIndex:l,item:a,isScope:s,content:u})}),r.sort(BM).reduce(function(a,i){return i.isScope?a.push.apply(a,i.content):a.push(i.content),a},[]).concat(n)},d_=function(e,n){n=n||{};var r;return n.getShadowRoot?r=zf([e],n.includeContainer,{filter:pb.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:KM}):r=PM(e,n.includeContainer,pb.bind(null,n)),c_(r)};function XM(){return/apple/i.test(navigator.vendor)}const fb="data-floating-ui-focusable";function ZM(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function Gf(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&kC(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function Dr(t){return"composedPath"in t?t.composedPath()[0]:t.target}function Eo(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function QM(t){return t.matches("html,body")}function Ea(t){return t?.ownerDocument||document}function JM(t){return t?t.hasAttribute(fb)?t:t.querySelector("["+fb+"]")||t:null}function ri(t,e,n){return n===void 0&&(n=!0),t.filter(a=>{var i;return a.parentId===e&&(!n||((i=a.context)==null?void 0:i.open))}).flatMap(a=>[a,...ri(t,a.id,n)])}function e3(t){return"nativeEvent"in t}var t3=typeof document<"u",n3=function(){},Mn=t3?L.useLayoutEffect:n3;const r3={...FS},a3=r3.useInsertionEffect,i3=a3||(t=>t());function nr(t){const e=L.useRef(()=>{});return i3(()=>{e.current=t}),L.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return e.current==null?void 0:e.current(...r)},[])}const p_=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function f_(t,e){const n=d_(t,p_()),r=n.length;if(r===0)return;const a=ZM(Ea(t)),i=n.indexOf(a),s=i===-1?e===1?0:r-1:i+e;return n[s]}function s3(t){return f_(Ea(t).body,1)||t}function o3(t){return f_(Ea(t).body,-1)||t}function To(t,e){const n=e||t.currentTarget,r=t.relatedTarget;return!r||!Gf(n,r)}function l3(t){d_(t,p_()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function hb(t){t.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const u3="data-floating-ui-focusable",mb="active",gb="selected",c3={...FS};let bb=!1,d3=0;const Eb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+d3++;function p3(){const[t,e]=L.useState(()=>bb?Eb():void 0);return Mn(()=>{t==null&&e(Eb())},[]),L.useEffect(()=>{bb=!0},[]),t}const f3=c3.useId,Xh=f3||p3;function h3(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(a=>a(n))},on(e,n){t.has(e)||t.set(e,new Set),t.get(e).add(n)},off(e,n){var r;(r=t.get(e))==null||r.delete(n)}}}const m3=L.createContext(null),g3=L.createContext(null),h_=()=>{var t;return((t=L.useContext(m3))==null?void 0:t.id)||null},m_=()=>L.useContext(g3);function Zh(t){return"data-floating-ui-"+t}const b3={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Tb=L.forwardRef(function(e,n){const[r,a]=L.useState();Mn(()=>{XM()&&a("button")},[]);const i={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Zh("focus-guard")]:"",style:b3};return b.jsx("span",{...e,...i})}),E3={clipPath:"inset(50%)",position:"fixed",top:0,left:0},g_=L.createContext(null),yb=Zh("portal");function T3(t){t===void 0&&(t={});const{id:e,root:n}=t,r=Xh(),a=S3(),[i,s]=L.useState(null),o=L.useRef(null);return Mn(()=>()=>{i?.remove(),queueMicrotask(()=>{o.current=null})},[i]),Mn(()=>{if(!r||o.current)return;const l=e?document.getElementById(e):null;if(!l)return;const u=document.createElement("div");u.id=r,u.setAttribute(yb,""),l.appendChild(u),o.current=u,s(u)},[e,r]),Mn(()=>{if(n===null||!r||o.current)return;let l=n||a?.portalNode;l&&!PC(l)&&(l=l.current),l=l||document.body;let u=null;e&&(u=document.createElement("div"),u.id=e,l.appendChild(u));const c=document.createElement("div");c.id=r,c.setAttribute(yb,""),l=u||l,l.appendChild(c),o.current=c,s(c)},[e,n,r,a]),i}function y3(t){const{children:e,id:n,root:r,preserveTabOrder:a=!0}=t,i=T3({id:n,root:r}),[s,o]=L.useState(null),l=L.useRef(null),u=L.useRef(null),c=L.useRef(null),d=L.useRef(null),p=s?.modal,f=s?.open,h=!!s&&!s.modal&&s.open&&a&&!!(r||i);return L.useEffect(()=>{if(!i||!a||p)return;function g(E){i&&To(E)&&(E.type==="focusin"?hb:l3)(i)}return i.addEventListener("focusin",g,!0),i.addEventListener("focusout",g,!0),()=>{i.removeEventListener("focusin",g,!0),i.removeEventListener("focusout",g,!0)}},[i,a,p]),L.useEffect(()=>{i&&(f||hb(i))},[f,i]),b.jsxs(g_.Provider,{value:L.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:i,setFocusManagerState:o}),[a,i]),children:[h&&i&&b.jsx(Tb,{"data-type":"outside",ref:l,onFocus:g=>{if(To(g,i)){var E;(E=c.current)==null||E.focus()}else{const T=s?s.domReference:null,y=o3(T);y?.focus()}}}),h&&i&&b.jsx("span",{"aria-owns":i.id,style:E3}),i&&MS.createPortal(e,i),h&&i&&b.jsx(Tb,{"data-type":"outside",ref:u,onFocus:g=>{if(To(g,i)){var E;(E=d.current)==null||E.focus()}else{const T=s?s.domReference:null,y=s3(T);y?.focus(),s?.closeOnFocusOut&&s?.onOpenChange(!1,g.nativeEvent,"focus-out")}}})]})}const S3=()=>L.useContext(g_),A3={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},N3={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Sb=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t?.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t?.outsidePress)!=null?n:!0}};function v3(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,elements:a,dataRef:i}=t,{enabled:s=!0,escapeKey:o=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:f,capture:h}=e,g=m_(),E=nr(typeof l=="function"?l:()=>!1),T=typeof l=="function"?E:l,y=L.useRef(!1),{escapeKey:S,outsidePress:N}=Sb(f),{escapeKey:_,outsidePress:A}=Sb(h),v=L.useRef(!1),R=nr(F=>{var $;if(!n||!s||!o||F.key!=="Escape"||v.current)return;const U=($=i.current.floatingContext)==null?void 0:$.nodeId,j=g?ri(g.nodesRef.current,U):[];if(!S&&(F.stopPropagation(),j.length>0)){let P=!0;if(j.forEach(W=>{var X;if((X=W.context)!=null&&X.open&&!W.context.dataRef.current.__escapeKeyBubbles){P=!1;return}}),!P)return}r(!1,e3(F)?F.nativeEvent:F,"escape-key")}),I=nr(F=>{var $;const U=()=>{var j;R(F),(j=Dr(F))==null||j.removeEventListener("keydown",U)};($=Dr(F))==null||$.addEventListener("keydown",U)}),O=nr(F=>{var $;const U=i.current.insideReactTree;i.current.insideReactTree=!1;const j=y.current;if(y.current=!1,u==="click"&&j||U||typeof T=="function"&&!T(F))return;const P=Dr(F),W="["+Zh("inert")+"]",X=Ea(a.floating).querySelectorAll(W);let K=Rt(P)?P:null;for(;K&&!qs(K);){const te=LC(K);if(qs(te)||!Rt(te))break;K=te}if(X.length&&Rt(P)&&!QM(P)&&!Gf(P,a.floating)&&Array.from(X).every(te=>!Gf(K,te)))return;if(DC(P)&&H){const te=qs(P),se=MC(P),ce=/auto|scroll/,be=te||ce.test(se.overflowX),Le=te||ce.test(se.overflowY),_e=be&&P.clientWidth>0&&P.scrollWidth>P.clientWidth,Se=Le&&P.clientHeight>0&&P.scrollHeight>P.clientHeight,de=se.direction==="rtl",he=Se&&(de?F.offsetX<=P.offsetWidth-P.clientWidth:F.offsetX>P.clientWidth),Ae=_e&&F.offsetY>P.clientHeight;if(he||Ae)return}const Q=($=i.current.floatingContext)==null?void 0:$.nodeId,J=g&&ri(g.nodesRef.current,Q).some(te=>{var se;return Eo(F,(se=te.context)==null?void 0:se.elements.floating)});if(Eo(F,a.floating)||Eo(F,a.domReference)||J)return;const ae=g?ri(g.nodesRef.current,Q):[];if(ae.length>0){let te=!0;if(ae.forEach(se=>{var ce;if((ce=se.context)!=null&&ce.open&&!se.context.dataRef.current.__outsidePressBubbles){te=!1;return}}),!te)return}r(!1,F,"outside-press")}),w=nr(F=>{var $;const U=()=>{var j;O(F),(j=Dr(F))==null||j.removeEventListener(u,U)};($=Dr(F))==null||$.addEventListener(u,U)});L.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=S,i.current.__outsidePressBubbles=N;let F=-1;function $(X){r(!1,X,"ancestor-scroll")}function U(){window.clearTimeout(F),v.current=!0}function j(){F=window.setTimeout(()=>{v.current=!1},OC()?5:0)}const P=Ea(a.floating);o&&(P.addEventListener("keydown",_?I:R,_),P.addEventListener("compositionstart",U),P.addEventListener("compositionend",j)),T&&P.addEventListener(u,A?w:O,A);let W=[];return p&&(Rt(a.domReference)&&(W=js(a.domReference)),Rt(a.floating)&&(W=W.concat(js(a.floating))),!Rt(a.reference)&&a.reference&&a.reference.contextElement&&(W=W.concat(js(a.reference.contextElement)))),W=W.filter(X=>{var K;return X!==((K=P.defaultView)==null?void 0:K.visualViewport)}),W.forEach(X=>{X.addEventListener("scroll",$,{passive:!0})}),()=>{o&&(P.removeEventListener("keydown",_?I:R,_),P.removeEventListener("compositionstart",U),P.removeEventListener("compositionend",j)),T&&P.removeEventListener(u,A?w:O,A),W.forEach(X=>{X.removeEventListener("scroll",$)}),window.clearTimeout(F)}},[i,a,o,T,u,n,r,p,s,S,N,R,_,I,O,A,w]),L.useEffect(()=>{i.current.insideReactTree=!1},[i,T,u]);const M=L.useMemo(()=>({onKeyDown:R,...c&&{[A3[d]]:F=>{r(!1,F.nativeEvent,"reference-press")},...d!=="click"&&{onClick(F){r(!1,F.nativeEvent,"reference-press")}}}}),[R,r,c,d]),H=L.useMemo(()=>{function F($){$.button===0&&(y.current=!0)}return{onKeyDown:R,onMouseDown:F,onMouseUp:F,[N3[u]]:()=>{i.current.insideReactTree=!0}}},[R,u,i]);return L.useMemo(()=>s?{reference:M,floating:H}:{},[s,M,H])}function _3(t){const{open:e=!1,onOpenChange:n,elements:r}=t,a=Xh(),i=L.useRef({}),[s]=L.useState(()=>h3()),o=h_()!=null,[l,u]=L.useState(r.reference),c=nr((f,h,g)=>{i.current.openEvent=f?h:void 0,s.emit("openchange",{open:f,event:h,reason:g,nested:o}),n?.(f,h,g)}),d=L.useMemo(()=>({setPositionReference:u}),[]),p=L.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return L.useMemo(()=>({dataRef:i,open:e,onOpenChange:c,elements:p,events:s,floatingId:a,refs:d}),[e,c,p,s,a,d])}function C3(t){t===void 0&&(t={});const{nodeId:e}=t,n=_3({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||n,a=r.elements,[i,s]=L.useState(null),[o,l]=L.useState(null),c=a?.domReference||i,d=L.useRef(null),p=m_();Mn(()=>{c&&(d.current=c)},[c]);const f=wC({...t,elements:{...a,...o&&{reference:o}}}),h=L.useCallback(S=>{const N=Rt(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),getClientRects:()=>S.getClientRects(),contextElement:S}:S;l(N),f.refs.setReference(N)},[f.refs]),g=L.useCallback(S=>{(Rt(S)||S===null)&&(d.current=S,s(S)),(Rt(f.refs.reference.current)||f.refs.reference.current===null||S!==null&&!Rt(S))&&f.refs.setReference(S)},[f.refs]),E=L.useMemo(()=>({...f.refs,setReference:g,setPositionReference:h,domReference:d}),[f.refs,g,h]),T=L.useMemo(()=>({...f.elements,domReference:c}),[f.elements,c]),y=L.useMemo(()=>({...f,...r,refs:E,elements:T,nodeId:e}),[f,E,T,e,r]);return Mn(()=>{r.dataRef.current.floatingContext=y;const S=p?.nodesRef.current.find(N=>N.id===e);S&&(S.context=y)}),L.useMemo(()=>({...f,context:y,refs:E,elements:T}),[f,E,T,y])}function yo(t,e,n){const r=new Map,a=n==="item";let i=t;if(a&&t){const{[mb]:s,[gb]:o,...l}=t;i=l}return{...n==="floating"&&{tabIndex:-1,[u3]:""},...i,...e.map(s=>{const o=s?s[n]:null;return typeof o=="function"?t?o(t):null:o}).concat(t).reduce((s,o)=>(o&&Object.entries(o).forEach(l=>{let[u,c]=l;if(!(a&&[mb,gb].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var d;(d=r.get(u))==null||d.push(c),s[u]=function(){for(var p,f=arguments.length,h=new Array(f),g=0;g<f;g++)h[g]=arguments[g];return(p=r.get(u))==null?void 0:p.map(E=>E(...h)).find(E=>E!==void 0)}}}else s[u]=c}),s),{})}}function I3(t){t===void 0&&(t=[]);const e=t.map(o=>o?.reference),n=t.map(o=>o?.floating),r=t.map(o=>o?.item),a=L.useCallback(o=>yo(o,t,"reference"),e),i=L.useCallback(o=>yo(o,t,"floating"),n),s=L.useCallback(o=>yo(o,t,"item"),r);return L.useMemo(()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:s}),[a,i,s])}const R3=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function x3(t,e){var n,r;e===void 0&&(e={});const{open:a,elements:i,floatingId:s}=t,{enabled:o=!0,role:l="dialog"}=e,u=Xh(),c=((n=i.domReference)==null?void 0:n.id)||u,d=L.useMemo(()=>{var y;return((y=JM(i.floating))==null?void 0:y.id)||s},[i.floating,s]),p=(r=R3.get(l))!=null?r:l,h=h_()!=null,g=L.useMemo(()=>p==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:a?d:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":p==="alertdialog"?"dialog":p,"aria-controls":a?d:void 0,...p==="listbox"&&{role:"combobox"},...p==="menu"&&{id:c},...p==="menu"&&h&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[p,d,h,a,c,l]),E=L.useMemo(()=>{const y={id:d,...p&&{role:p}};return p==="tooltip"||l==="label"?y:{...y,...p==="menu"&&{"aria-labelledby":c}}},[p,d,c,l]),T=L.useCallback(y=>{let{active:S,selected:N}=y;const _={role:"option",...S&&{id:d+"-fui-option"}};switch(l){case"select":case"combobox":return{..._,"aria-selected":N}}return{}},[d,l]);return L.useMemo(()=>o?{reference:g,floating:E,item:T}:{},[o,g,E,T])}function k3(t){var e;const{char:n,allowSpaces:r,allowToIncludeChar:a,allowedPrefixes:i,startOfLine:s,$position:o}=t,l=r&&!a,u=WO(n),c=new RegExp(`\\s${u}$`),d=s?"^":"",p=a?"":u,f=l?new RegExp(`${d}${u}.*?(?=\\s${p}|$)`,"gm"):new RegExp(`${d}(?:^)?${u}[^\\s${p}]*`,"gm"),h=((e=o.nodeBefore)==null?void 0:e.isText)&&o.nodeBefore.text;if(!h)return null;const g=o.pos-h.length,E=Array.from(h.matchAll(f)).pop();if(!E||E.input===void 0||E.index===void 0)return null;const T=E.input.slice(Math.max(0,E.index-1),E.index),y=new RegExp(`^[${i?.join("")}\0]?$`).test(T);if(i!==null&&!y)return null;const S=g+E.index;let N=S+E[0].length;return l&&c.test(h.slice(N-1,N+1))&&(E[0]+=" ",N+=1),S<o.pos&&N>=o.pos?{range:{from:S,to:N},query:E[0].slice(n.length),text:E[0]}:null}var w3=new ye("suggestion");function O3({pluginKey:t=w3,editor:e,char:n="@",allowSpaces:r=!1,allowToIncludeChar:a=!1,allowedPrefixes:i=[" "],startOfLine:s=!1,decorationTag:o="span",decorationClass:l="suggestion",decorationContent:u="",decorationEmptyClass:c="is-empty",command:d=()=>null,items:p=()=>[],render:f=()=>({}),allow:h=()=>!0,findSuggestionMatch:g=k3,shouldShow:E}){let T;const y=f?.(),S=()=>{const v=e.state.selection.$anchor.pos,R=e.view.coordsAtPos(v),{top:I,right:O,bottom:w,left:M}=R;try{return new DOMRect(M,I,O-M,w-I)}catch{return null}},N=(v,R)=>R?()=>{const I=t.getState(e.state),O=I?.decorationId,w=v.dom.querySelector(`[data-decoration-id="${O}"]`);return w?.getBoundingClientRect()||null}:S;function _(v,R){var I;try{const w=t.getState(v.state),M=w?.decorationId?v.dom.querySelector(`[data-decoration-id="${w.decorationId}"]`):null,H={editor:e,range:w?.range||{from:0,to:0},query:w?.query||null,text:w?.text||null,items:[],command:F=>d({editor:e,range:w?.range||{from:0,to:0},props:F}),decorationNode:M,clientRect:N(v,M)};(I=y?.onExit)==null||I.call(y,H)}catch{}const O=v.state.tr.setMeta(R,{exit:!0});v.dispatch(O)}const A=new ge({key:t,view(){return{update:async(v,R)=>{var I,O,w,M,H,F,$;const U=(I=this.key)==null?void 0:I.getState(R),j=(O=this.key)==null?void 0:O.getState(v.state),P=U.active&&j.active&&U.range.from!==j.range.from,W=!U.active&&j.active,X=U.active&&!j.active,K=!W&&!X&&U.query!==j.query,Q=W||P&&K,J=K||P,ae=X||P&&K;if(!Q&&!J&&!ae)return;const te=ae&&!Q?U:j,se=v.dom.querySelector(`[data-decoration-id="${te.decorationId}"]`);T={editor:e,range:te.range,query:te.query,text:te.text,items:[],command:ce=>d({editor:e,range:te.range,props:ce}),decorationNode:se,clientRect:N(v,se)},Q&&((w=y?.onBeforeStart)==null||w.call(y,T)),J&&((M=y?.onBeforeUpdate)==null||M.call(y,T)),(J||Q)&&(T.items=await p({editor:e,query:te.query})),ae&&((H=y?.onExit)==null||H.call(y,T)),J&&((F=y?.onUpdate)==null||F.call(y,T)),Q&&(($=y?.onStart)==null||$.call(y,T))},destroy:()=>{var v;T&&((v=y?.onExit)==null||v.call(y,T))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(v,R,I,O){const{isEditable:w}=e,{composing:M}=e.view,{selection:H}=v,{empty:F,from:$}=H,U={...R},j=v.getMeta(t);if(j&&j.exit)return U.active=!1,U.decorationId=null,U.range={from:0,to:0},U.query=null,U.text=null,U;if(U.composing=M,w&&(F||e.view.composing)){($<R.range.from||$>R.range.to)&&!M&&!R.composing&&(U.active=!1);const P=g({char:n,allowSpaces:r,allowToIncludeChar:a,allowedPrefixes:i,startOfLine:s,$position:H.$from}),W=`id_${Math.floor(Math.random()*4294967295)}`;P&&h({editor:e,state:O,range:P.range,isActive:R.active})&&(!E||E({editor:e,range:P.range,query:P.query,text:P.text,transaction:v}))?(U.active=!0,U.decorationId=R.decorationId?R.decorationId:W,U.range=P.range,U.query=P.query,U.text=P.text):U.active=!1}else U.active=!1;return U.active||(U.decorationId=null,U.range={from:0,to:0},U.query=null,U.text=null),U}},props:{handleKeyDown(v,R){var I,O,w,M;const{active:H,range:F}=A.getState(v.state);if(!H)return!1;if(R.key==="Escape"||R.key==="Esc"){const U=A.getState(v.state),j=(I=T?.decorationNode)!=null?I:null,P=j??(U?.decorationId?v.dom.querySelector(`[data-decoration-id="${U.decorationId}"]`):null);if(((O=y?.onKeyDown)==null?void 0:O.call(y,{view:v,event:R,range:U.range}))||!1)return!0;const X={editor:e,range:U.range,query:U.query,text:U.text,items:[],command:K=>d({editor:e,range:U.range,props:K}),decorationNode:P,clientRect:P?()=>P.getBoundingClientRect()||null:null};return(w=y?.onExit)==null||w.call(y,X),_(v,t),!0}return((M=y?.onKeyDown)==null?void 0:M.call(y,{view:v,event:R,range:F}))||!1},decorations(v){const{active:R,range:I,decorationId:O,query:w}=A.getState(v);if(!R)return null;const M=!w?.length,H=[l];return M&&H.push(c),Te.create(v.doc,[We.inline(I.from,I.to,{nodeName:o,class:H.join(" "),"data-decoration-id":O,"data-decoration-content":u})])}}});return A}function L3(t){const e=Y.c(26),{editor:n,query:r,items:a,onSelect:i,onClose:s}=t,[o,l]=L.useState(0),u=L.useRef(a),c=L.useRef(o),d=L.useRef(i),p=L.useRef(s),f=L.useDeferredValue(r);let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{l(0)},e[0]=h):h=e[0];let g;e[1]!==f?(g=[f],e[1]=f,e[2]=g):g=e[2],L.useEffect(h,g);let E,T;e[3]!==a.length||e[4]!==o?(E=()=>{o>=a.length&&a.length>0&&l(0)},T=[a.length,o],e[3]=a.length,e[4]=o,e[5]=E,e[6]=T):(E=e[5],T=e[6]),L.useEffect(E,T);let y,S;e[7]!==a?(y=()=>{u.current=a},S=[a],e[7]=a,e[8]=y,e[9]=S):(y=e[8],S=e[9]),L.useEffect(y,S);let N,_;e[10]!==o?(N=()=>{c.current=o},_=[o],e[10]=o,e[11]=N,e[12]=_):(N=e[11],_=e[12]),L.useEffect(N,_);let A,v;e[13]!==i?(v=()=>{d.current=i},A=[i],e[13]=i,e[14]=A,e[15]=v):(A=e[14],v=e[15]),L.useEffect(v,A);let R,I;e[16]!==s?(R=()=>{p.current=s},I=[s],e[16]=s,e[17]=R,e[18]=I):(R=e[17],I=e[18]),L.useEffect(R,I);let O;e[19]!==n.isDestroyed||e[20]!==n.view.dom?(O=()=>{const F=n.view.dom;if(n?.isDestroyed||!F)return;const $=j=>{const P=u.current;if(!P.length)return!1;const W=()=>l(K=>(K+1)%P.length),X=()=>l(K=>(K-1+P.length)%P.length);switch(j.key){case"ArrowUp":return j.preventDefault(),X(),!0;case"ArrowDown":return j.preventDefault(),W(),!0;case"Tab":return j.preventDefault(),j.shiftKey?X():W(),!0;case"Home":return j.preventDefault(),l(0),!0;case"End":return j.preventDefault(),l(P.length-1),!0;case"Enter":{if(j.isComposing)return!1;j.preventDefault();const K=c.current;return K!==-1&&P[K]&&d.current?.(P[K],K),!0}case"Escape":return j.preventDefault(),p.current?.(),!0;default:return!1}},U=j=>{$(j)};return F.addEventListener("keydown",U,!0),()=>{F?.removeEventListener("keydown",U,!0)}},e[19]=n.isDestroyed,e[20]=n.view.dom,e[21]=O):O=e[21];let w;e[22]!==n?(w=[n],e[22]=n,e[23]=w):w=e[23],L.useEffect(O,w);const M=a.length?o:void 0;let H;return e[24]!==M?(H={selectedIndex:M,setSelectedIndex:l},e[24]=M,e[25]=H):H=e[25],H}function D3(t,e){switch(e.type){case"SET_SELECTED_ITEM":return{...t,selectedItem:e.payload};case"ON_START":return{...t,open:!0,selectedItem:null,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_UPDATE":return{...t,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_EXIT":return{open:!1,element:null,query:"",range:null,selectedItem:null};default:return t}}const b_=L.createContext(void 0);function E_(){const t=L.useContext(b_);if(!t)throw new Error("useSuggestionContext must be used within a SuggestionContext.Provider");return t}function M3(t){const e=Y.c(8),{editor:n,char:r,pluginKey:a}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={open:!1,element:null,query:"",range:null,selectedItem:null},e[0]=i):i=e[0];const[s,o]=L.useReducer(D3,i);let l,u;e[1]!==r||e[2]!==n||e[3]!==a?(l=()=>{if(n?.isDestroyed)return;const d=a instanceof ye?a:new ye(a);n.state.plugins.find(h=>h.spec.key===d)&&n.unregisterPlugin(d);const f=O3({pluginKey:d,editor:n,char:r,allow(h){const g=n.state.doc.resolve(h.range.from);for(let E=g.depth;E>0;E--)if(g.node(E).type.name==="image")return!1;return!0},command(){},render:()=>({onStart:h=>{o({type:"ON_START",payload:{element:h.decorationNode??null,query:h.query,range:h.range}})},onUpdate:h=>{o({type:"ON_UPDATE",payload:{element:h.decorationNode??null,query:h.query,range:h.range}})},onKeyDown:h=>h.event.key==="Escape"?(o({type:"ON_EXIT"}),!0):!1,onExit:()=>{o({type:"ON_EXIT"})}}),items:P3});return n.registerPlugin(f),()=>{n?.isDestroyed||n.unregisterPlugin(d)}},u=[n,a,r,o],e[1]=r,e[2]=n,e[3]=a,e[4]=l,e[5]=u):(l=e[4],u=e[5]),L.useEffect(l,u);let c;return e[6]!==s?(c={state:s,dispatch:o},e[6]=s,e[7]=c):c=e[7],c}function P3(){return[]}function F3({editor:t,queryKey:e,queryFn:n,onSelect:r}){const{state:a,dispatch:i}=E_(),s=L.useDeferredValue(a.query),{data:o}=FC({queryKey:nh.suggestionItems(e,a.open,s),queryFn:()=>a.open?n({query:s}):[]}),l=()=>{i({type:"ON_EXIT"})},u=async(d,p)=>{if(!(a.selectedItem!==null||!a.range)){i({type:"SET_SELECTED_ITEM",payload:d});try{const{view:f}=t,g=f.state.selection.$to.nodeAfter?.text?.startsWith(" "),E=a.range?{...a.range}:{from:0,to:0};g&&a.range&&(E.to+=1),await r({range:E,item:d})}finally{l()}}},{selectedIndex:c}=L3({editor:t,query:s,items:o,onSelect:u,onClose:l});return{selectedItem:a.selectedItem,items:o,selectedIndex:c,close:l,onSelect:u}}function B3({children:t}){const{state:e,dispatch:n}=E_(),{open:r,element:a}=e,i=()=>{n({type:"ON_EXIT"})},{refs:s,floatingStyles:o,context:l}=C3({placement:"bottom-start",open:r,onOpenChange:p=>{p||i()},elements:{reference:a},middleware:[BC(10),UC(),HC()],whileElementsMounted:$C}),u=v3(l,{outsidePress:p=>!(p.target instanceof Element&&p.target.closest(".ProseMirror"))}),c=x3(l,{role:"listbox"}),{getFloatingProps:d}=I3([u,c]);return r?b.jsx(y3,{children:b.jsx("div",{ref:s.setFloating,style:o,...d(),className:"z-50 w-auto min-w-[280px] max-w-[400px] rounded-lg border bg-popover p-0 text-popover-foreground shadow-md outline-hidden overflow-hidden",children:t})}):null}const U3=t=>{const e=Y.c(23),{item:n,isSelected:r,onSelect:a,isLoading:i,ref:s}=t,o=r&&"bg-accent text-accent-foreground",l=i&&"pointer-events-none opacity-50";let u;e[0]!==o||e[1]!==l?(u=ee("relative flex w-full cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground",o,l),e[0]=o,e[1]=l,e[2]=u):u=e[2];let c;e[3]!==n.name||e[4]!==n.title?(c=n.title||n.name.replace(/_/g," "),e[3]=n.name,e[4]=n.title,e[5]=c):c=e[5];let d;e[6]!==c?(d=b.jsx("span",{className:"font-medium flex items-center truncate",children:c}),e[6]=c,e[7]=d):d=e[7];let p;e[8]!==i?(p=i&&b.jsx(rs,{size:"xs"}),e[8]=i,e[9]=p):p=e[9];let f;e[10]!==d||e[11]!==p?(f=b.jsxs("div",{className:"flex items-center justify-between gap-2",children:[d,p]}),e[10]=d,e[11]=p,e[12]=f):f=e[12];let h;e[13]!==n.description?(h=n.description&&b.jsx("div",{className:"text-xs text-muted-foreground line-clamp-1",children:n.description}),e[13]=n.description,e[14]=h):h=e[14];let g;e[15]!==f||e[16]!==h?(g=b.jsxs("div",{className:"flex flex-col gap-0.5 flex-1 min-w-0",children:[f,h]}),e[15]=f,e[16]=h,e[17]=g):g=e[17];let E;return e[18]!==a||e[19]!==s||e[20]!==u||e[21]!==g?(E=b.jsx("div",{ref:s,onClick:a,className:u,children:g}),e[18]=a,e[19]=s,e[20]=u,e[21]=g,e[22]=E):E=e[22],E},H3=t=>{const e=Y.c(18),{editor:n,queryKey:r,queryFn:a,onSelect:i}=t;let s;e[0]!==n||e[1]!==i||e[2]!==a||e[3]!==r?(s={editor:n,queryKey:r,queryFn:a,onSelect:i},e[0]=n,e[1]=i,e[2]=a,e[3]=r,e[4]=s):s=e[4];const{items:o,selectedIndex:l,onSelect:u,selectedItem:c}=F3(s);if(!o.length){let h;return e[5]===Symbol.for("react.memo_cache_sentinel")?(h=b.jsx("div",{className:"min-w-[280px] max-w-[400px] bg-popover text-popover-foreground rounded-md border shadow-md p-3 text-sm",children:"No items found"}),e[5]=h):h=e[5],h}let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d={maxHeight:"min(217px, var(--radix-popover-content-available-height, 217px))"},e[6]=d):d=e[6];let p;if(e[7]!==u||e[8]!==o||e[9]!==l||e[10]!==c?.name){let h;e[12]!==u||e[13]!==l||e[14]!==c?.name?(h=(g,E)=>b.jsx(U3,{item:g,isSelected:E===l,ref:E===l?q3:void 0,onSelect:()=>u(g,E),isLoading:c?.name===g.name},g.name),e[12]=u,e[13]=l,e[14]=c?.name,e[15]=h):h=e[15],p=o.map(h),e[7]=u,e[8]=o,e[9]=l,e[10]=c?.name,e[11]=p}else p=e[11];let f;return e[16]!==p?(f=b.jsx("div",{className:"min-w-[280px] max-w-[400px] bg-popover text-popover-foreground rounded-md overflow-y-auto",style:d,children:b.jsx("div",{className:"p-1",children:p})}),e[16]=p,e[17]=f):f=e[17],f};function $3(){const t=Y.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx("div",{className:"p-1",children:[...Array(3)].map(j3)}),t[0]=e):e=t[0],e}function j3(t,e){return b.jsxs("div",{className:"px-2 py-1.5 h-[44px] animate-pulse",children:[b.jsx("div",{className:"h-4 w-24 bg-muted rounded mb-1"}),b.jsx("div",{className:"h-3 w-32 bg-muted rounded"})]},e)}function T_(t){const e=Y.c(16),{editor:n,char:r,pluginKey:a,queryKey:i,queryFn:s,onSelect:o}=t;let l;e[0]!==r||e[1]!==n||e[2]!==a?(l={editor:n,char:r,pluginKey:a},e[0]=r,e[1]=n,e[2]=a,e[3]=l):l=e[3];const{state:u,dispatch:c}=M3(l);let d;e[4]!==c||e[5]!==u?(d={state:u,dispatch:c},e[4]=c,e[5]=u,e[6]=d):d=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=b.jsx($3,{}),e[7]=p):p=e[7];let f;e[8]!==n||e[9]!==o||e[10]!==s||e[11]!==i?(f=b.jsx(B3,{children:b.jsx(L.Suspense,{fallback:p,children:b.jsx(H3,{editor:n,queryKey:i,queryFn:s,onSelect:o})})}),e[8]=n,e[9]=o,e[10]=s,e[11]=i,e[12]=f):f=e[12];let h;return e[13]!==d||e[14]!==f?(h=b.jsx(b_.Provider,{value:d,children:f}),e[13]=d,e[14]=f,e[15]=h):h=e[15],h}function q3(t){t&&t.scrollIntoView({block:"center",behavior:"smooth"})}async function Ab(t,e,n,r,a){try{const i=await qS(n,r,a);vv(t,e,{id:r,name:r,metadata:i.messages,char:"/"})}catch(i){console.error("[prompt] Failed to fetch prompt:",i),$t.error("Failed to load prompt. Please try again.")}}const z3=t=>{const e=Y.c(29),{editor:n,virtualMcpId:r}=t,a=BS(),{org:i}=jn();let s;e[0]!==i.id||e[1]!==r?(s={connectionId:r,orgId:i.id},e[0]=i.id,e[1]=r,e[2]=s):s=e[2];const o=is(s);let l;e[3]!==i.id||e[4]!==r?(l=nh.virtualMcpPrompts(r,i.id),e[3]=i.id,e[4]=r,e[5]=l):l=e[5];const u=l,[c,d]=L.useState(null);let p;e[6]!==o||e[7]!==n?(p=async v=>{const{item:R,range:I}=v;if(R.arguments&&R.arguments.length>0){d({range:I,item:R});return}o&&await Ab(n,I,o,R.name)},e[6]=o,e[7]=n,e[8]=p):p=e[8];const f=p;let h;e[9]!==c||e[10]!==o||e[11]!==n?(h=async v=>{if(!c||!o)return;const{range:R,item:I}=c;await Ab(n,R,o,I.name,v),d(null)},e[9]=c,e[10]=o,e[11]=n,e[12]=h):h=e[12];const g=h;let E;e[13]!==o||e[14]!==a||e[15]!==u?(E=async v=>{const{query:R}=v;if(!o)return[];let I=a.getQueryData(u);if(I?a.fetchQuery({queryKey:u,queryFn:()=>Am(o),staleTime:6e4}).catch(G3):I=await a.fetchQuery({queryKey:u,queryFn:()=>Am(o),staleTime:6e4}),!I.prompts)return[];let O=I.prompts;if(R.trim()){const w=R.toLowerCase();O=I.prompts.filter(M=>M.name.toLowerCase().includes(w)||M.title?.toLowerCase().includes(w)||M.description?.toLowerCase().includes(w))}return O},e[13]=o,e[14]=a,e[15]=u,e[16]=E):E=e[16];const T=E;let y;e[17]!==n||e[18]!==T||e[19]!==f||e[20]!==u?(y=b.jsx(T_,{editor:n,char:"/",pluginKey:"promptsDropdownMenu",queryKey:u,queryFn:T,onSelect:f}),e[17]=n,e[18]=T,e[19]=f,e[20]=u,e[21]=y):y=e[21];const S=c?.item??null;let N;e[22]===Symbol.for("react.memo_cache_sentinel")?(N=()=>d(null),e[22]=N):N=e[22];let _;e[23]!==g||e[24]!==S?(_=b.jsx(oA,{prompt:S,setPrompt:N,onSubmit:g}),e[23]=g,e[24]=S,e[25]=_):_=e[25];let A;return e[26]!==y||e[27]!==_?(A=b.jsxs(b.Fragment,{children:[y,_]}),e[26]=y,e[27]=_,e[28]=A):A=e[28],A};function G3(){}async function V3(t,e,n,r){try{const a=await XC(n,r);vv(t,e,{id:r,name:r,metadata:a.contents,char:"@"})}catch(a){console.error("[resource] Failed to fetch resource:",a),$t.error("Failed to load resource. Please try again.")}}const W3=t=>{const e=Y.c(18),{editor:n,virtualMcpId:r}=t,a=BS(),{org:i}=jn();let s;e[0]!==i.id||e[1]!==r?(s={connectionId:r,orgId:i.id},e[0]=i.id,e[1]=r,e[2]=s):s=e[2];const o=is(s);let l;e[3]!==i.id||e[4]!==r?(l=nh.virtualMcpResources(r,i.id),e[3]=i.id,e[4]=r,e[5]=l):l=e[5];const u=l;let c;e[6]!==o||e[7]!==n?(c=async g=>{const{item:E,range:T}=g;o&&await V3(n,T,o,E.uri)},e[6]=o,e[7]=n,e[8]=c):c=e[8];const d=c;let p;e[9]!==o||e[10]!==a||e[11]!==u?(p=async g=>{const{query:E}=g;if(!o)return[];let T=a.getQueryData(u);if(T?a.fetchQuery({queryKey:u,queryFn:()=>Nm(o),staleTime:6e4}).catch(Y3):T=await a.fetchQuery({queryKey:u,queryFn:()=>Nm(o),staleTime:6e4}),!T.resources)return[];let y=T.resources;if(E.trim()){const S=E.toLowerCase();y=T.resources.filter(N=>N.uri.toLowerCase().includes(S)||N.name?.toLowerCase().includes(S)||N.description?.toLowerCase().includes(S))}return y.map(K3)},e[9]=o,e[10]=a,e[11]=u,e[12]=p):p=e[12];const f=p;let h;return e[13]!==n||e[14]!==f||e[15]!==d||e[16]!==u?(h=b.jsx(T_,{editor:n,char:"@",pluginKey:"resourcesDropdownMenu",queryKey:u,queryFn:f,onSelect:d}),e[13]=n,e[14]=f,e[15]=d,e[16]=u,e[17]=h):h=e[17],h};function Y3(){}function K3(t){return{name:t.name??t.uri,title:t.name,description:t.description,uri:t.uri}}const X3=[i_.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1}),yD.configure({placeholder:"Ask anything, / for prompts, @ for resources...",showOnlyWhenEditable:!1}),Cv,Lv];function Z3(t){const e=Y.c(22),{tiptapDoc:n,setTiptapDoc:r,selectedModel:a,isStreaming:i,onSubmit:s,children:o}=t,l=i||!a,u=L.useRef(s),c=L.useRef(r),d=n||"",p=!l;let f,h;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={attributes:{class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-[15px] p-[18px]"},handleKeyDown:(O,w)=>w.key==="Enter"&&!w.shiftKey?(w.preventDefault(),u.current?.(),!0):!1},h=O=>{const{editor:w}=O;c.current(w?.getJSON())},e[0]=f,e[1]=h):(f=e[0],h=e[1]);let g;e[2]!==d||e[3]!==p?(g={extensions:X3,content:d,editable:p,editorProps:f,onUpdate:h},e[2]=d,e[3]=p,e[4]=g):g=e[4];let E;e[5]!==l?(E=[l],e[5]=l,e[6]=E):E=e[6];const T=bv(g,E);let y,S;e[7]!==s?(y=()=>{u.current=s},S=[s],e[7]=s,e[8]=y,e[9]=S):(y=e[8],S=e[9]),L.useEffect(y,S);let N,_;e[10]!==r?(_=()=>{c.current=r},N=[r],e[10]=r,e[11]=N,e[12]=_):(N=e[11],_=e[12]),L.useEffect(_,N);let A,v;e[13]!==T||e[14]!==n?(A=()=>{if(T?.isDestroyed)return;const O=JSON.stringify(T?.getJSON()),w=JSON.stringify(n||{type:"doc",content:[]});O!==w&&T.commands.setContent(n||{type:"doc",content:[]})},v=[T,n],e[13]=T,e[14]=n,e[15]=A,e[16]=v):(A=e[15],v=e[16]),L.useEffect(A,v);let R;e[17]!==T?(R={editor:T},e[17]=T,e[18]=R):R=e[18];let I;return e[19]!==o||e[20]!==R?(I=b.jsx(Is.Provider,{value:R,children:o}),e[19]=o,e[20]=R,e[21]=I):I=e[21],I}function Q3(t){const e=Y.c(24),{selectedModel:n,isStreaming:r,selectedVirtualMcp:a,ref:i}=t,{editor:s}=Ev(),o=a?.id??null,l=r||!n;let u;e[0]!==s?.commands?(u=()=>({focus:()=>{s?.commands.focus()},clear:()=>{s?.commands.clearContent(!0)}}),e[0]=s?.commands,e[1]=u):u=e[1];let c;if(e[2]!==s?(c=[s],e[2]=s,e[3]=c):c=e[3],L.useImperativeHandle(i??null,u,c),!s)return null;const d=l&&"cursor-not-allowed opacity-70",p=l&&"[&_.ProseMirror]:cursor-not-allowed";let f;e[4]!==d||e[5]!==p?(f=ee("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col","[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0",d,p),e[4]=d,e[5]=p,e[6]=f):f=e[6];let h;e[7]!==s||e[8]!==f?(h=b.jsx(Ph,{editor:s,className:f}),e[7]=s,e[8]=f,e[9]=h):h=e[9];let g;e[10]!==s||e[11]!==o?(g=b.jsx(L.Suspense,{fallback:null,children:b.jsx(z3,{editor:s,virtualMcpId:o})}),e[10]=s,e[11]=o,e[12]=g):g=e[12];let E;e[13]!==s||e[14]!==o?(E=b.jsx(L.Suspense,{fallback:null,children:b.jsx(W3,{editor:s,virtualMcpId:o})}),e[13]=s,e[14]=o,e[15]=E):E=e[15];let T;e[16]!==s||e[17]!==n?(T=b.jsx(WL,{editor:s,selectedModel:n}),e[16]=s,e[17]=n,e[18]=T):T=e[18];let y;return e[19]!==h||e[20]!==g||e[21]!==E||e[22]!==T?(y=b.jsxs(b.Fragment,{children:[h,g,E,T]}),e[19]=h,e[20]=g,e[21]=E,e[22]=T,e[23]=y):y=e[23],y}const Nn=16,Vf=2.5,Wf=(Nn-Vf)/2,So=2*Math.PI*Wf;function J3(t){const e=Y.c(25),{usage:n}=t;if(!n)return null;const{totalTokens:r,inputTokens:a,outputTokens:i,cost:s}=n;if(!r&&!a&&!i)return null;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx(JS,{size:12}),e[0]=o):o=e[0];let l;e[1]!==r?(l=r.toLocaleString(),e[1]=r,e[2]=l):l=e[2];let u;e[3]!==l?(u=b.jsx(ct,{asChild:!0,children:b.jsxs(ke,{variant:"ghost",size:"sm",className:"text-muted-foreground hover:text-foreground pl-1! h-6 gap-1 whitespace-nowrap shrink-0",children:[o,b.jsx("span",{className:"text-[10px] font-mono tabular-nums",children:l})]})}),e[3]=l,e[4]=u):u=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("p",{className:"text-muted text-[10px] mb-1",children:"tokens"}),e[5]=c):c=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=b.jsx("span",{className:"text-muted",children:"in"}),e[6]=d):d=e[6];let p;e[7]!==a?(p=a.toLocaleString(),e[7]=a,e[8]=p):p=e[8];let f;e[9]!==p?(f=b.jsx("span",{className:"text-right tabular-nums",children:p}),e[9]=p,e[10]=f):f=e[10];let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=b.jsx("span",{className:"text-muted",children:"out"}),e[11]=h):h=e[11];const g=i-(n.reasoningTokens??0);let E;e[12]!==g?(E=g.toLocaleString(),e[12]=g,e[13]=E):E=e[13];let T;e[14]!==E?(T=b.jsx("span",{className:"text-right tabular-nums",children:E}),e[14]=E,e[15]=T):T=e[15];let y;e[16]!==s?(y=s>0&&b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-muted",children:"cost"}),b.jsxs("span",{className:"text-right tabular-nums",children:["$",s.toFixed(4)]})]}),e[16]=s,e[17]=y):y=e[17];let S;e[18]!==T||e[19]!==y||e[20]!==f?(S=b.jsxs(dt,{side:"top",className:"font-mono text-[11px]",children:[c,b.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[d,f,h,T,y]})]}),e[18]=T,e[19]=y,e[20]=f,e[21]=S):S=e[21];let N;return e[22]!==S||e[23]!==u?(N=b.jsxs(ut,{children:[u,S]}),e[22]=S,e[23]=u,e[24]=N):N=e[24],N}function eP(t){const e=Y.c(17),{usage:n,duration:r}=t,a=r!=null&&r>0,i=n!=null&&(n.cost??0)>0;if(!a&&!i)return null;let s;e[0]!==r||e[1]!==a?(s=a?(r/1e3).toFixed(1):null,e[0]=r,e[1]=a,e[2]=s):s=e[2];const o=s;let l;e[3]!==r||e[4]!==o||e[5]!==n?(l=o&&b.jsxs(ut,{children:[b.jsx(ct,{asChild:!0,children:b.jsxs("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:[o,"s"]})}),b.jsxs(dt,{side:"top",className:"font-mono text-[11px]",children:[b.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"thinking"}),b.jsxs("span",{className:"tabular-nums",children:[(r/1e3).toFixed(2),"s"]}),(n?.reasoningTokens??0)>0&&b.jsxs("span",{className:"ml-2 opacity-50",children:[n.reasoningTokens.toLocaleString()," tok"]})]})]}),e[3]=r,e[4]=o,e[5]=n,e[6]=l):l=e[6];let u;e[7]!==i||e[8]!==a?(u=a&&i&&b.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),e[7]=i,e[8]=a,e[9]=u):u=e[9];let c;e[10]!==i||e[11]!==n?(c=i&&b.jsxs(ut,{children:[b.jsx(ct,{asChild:!0,children:b.jsxs("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:["$",n.cost.toFixed(4)]})}),b.jsxs(dt,{side:"top",className:"font-mono text-[11px]",children:[b.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"tokens"}),b.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[b.jsx("span",{className:"opacity-60",children:"in"}),b.jsx("span",{className:"text-right tabular-nums",children:(n.inputTokens??0).toLocaleString()}),b.jsx("span",{className:"opacity-60",children:"out"}),b.jsx("span",{className:"text-right tabular-nums",children:((n.outputTokens??0)-(n?.reasoningTokens??0)).toLocaleString()}),(n?.reasoningTokens??0)>0&&b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"opacity-60",children:"think"}),b.jsx("span",{className:"text-right tabular-nums",children:n.reasoningTokens.toLocaleString()})]})]})]})]}),e[10]=i,e[11]=n,e[12]=c):c=e[12];let d;return e[13]!==l||e[14]!==u||e[15]!==c?(d=b.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[l,u,c]}),e[13]=l,e[14]=u,e[15]=c,e[16]=d):d=e[16],d}function tP(t){const e=Y.c(37),{usage:n,totalTokens:r,contextWindow:a}=t,i=Math.min(r/a*100,100),s=So-i/100*So,o=n?.cost??0,l=n?.inputTokens??0,u=n?.outputTokens??0;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("circle",{cx:Nn/2,cy:Nn/2,r:Wf,fill:"none",stroke:"currentColor",strokeWidth:Vf,className:"opacity-15"}),e[0]=c):c=e[0];const d=i>90?"text-destructive":i>70?"text-warning":"text-muted-foreground";let p;e[1]!==d?(p=ee(d),e[1]=d,e[2]=p):p=e[2];let f;e[3]!==s||e[4]!==p?(f=b.jsxs("svg",{width:Nn,height:Nn,className:"-rotate-90",children:[c,b.jsx("circle",{cx:Nn/2,cy:Nn/2,r:Wf,fill:"none",stroke:"currentColor",strokeWidth:Vf,strokeDasharray:So,strokeDashoffset:s,strokeLinecap:"round",className:p})]}),e[3]=s,e[4]=p,e[5]=f):f=e[5];let h;e[6]!==i?(h=i.toFixed(0),e[6]=i,e[7]=h):h=e[7];let g;e[8]!==o?(g=o>0?` · $${o.toFixed(2)}`:"",e[8]=o,e[9]=g):g=e[9];let E;e[10]!==h||e[11]!==g?(E=b.jsxs("span",{className:"text-[11px] font-mono tabular-nums",children:[h,"%",g]}),e[10]=h,e[11]=g,e[12]=E):E=e[12];let T;e[13]!==f||e[14]!==E?(T=b.jsx(ct,{asChild:!0,children:b.jsxs("button",{type:"button",className:"flex items-center gap-1.5 text-muted-foreground hover:text-foreground h-6 px-1 shrink-0 cursor-default",children:[f,E]})}),e[13]=f,e[14]=E,e[15]=T):T=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=b.jsx("span",{className:"text-muted",children:"context"}),e[16]=y):y=e[16];let S;e[17]!==i?(S=i.toFixed(1),e[17]=i,e[18]=S):S=e[18];let N;e[19]!==S?(N=b.jsxs("span",{className:"text-right tabular-nums",children:[S,"%"]}),e[19]=S,e[20]=N):N=e[20];let _;e[21]===Symbol.for("react.memo_cache_sentinel")?(_=b.jsx("span",{className:"text-muted",children:"tokens"}),e[21]=_):_=e[21];let A;e[22]!==r?(A=r.toLocaleString(),e[22]=r,e[23]=A):A=e[23];let v;e[24]!==A?(v=b.jsx("span",{className:"text-right tabular-nums",children:A}),e[24]=A,e[25]=v):v=e[25];let R;e[26]!==o||e[27]!==l||e[28]!==u?(R=o>0&&b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-muted",children:"cost"}),b.jsxs("span",{className:"text-right tabular-nums",children:["$",o.toFixed(4)]}),b.jsx("span",{className:"text-muted",children:"in"}),b.jsx("span",{className:"text-right tabular-nums",children:l.toLocaleString()}),b.jsx("span",{className:"text-muted",children:"out"}),b.jsx("span",{className:"text-right tabular-nums",children:u.toLocaleString()})]}),e[26]=o,e[27]=l,e[28]=u,e[29]=R):R=e[29];let I;e[30]!==N||e[31]!==v||e[32]!==R?(I=b.jsx(dt,{side:"top",className:"font-mono text-[11px]",children:b.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[y,N,_,v,R]})}),e[30]=N,e[31]=v,e[32]=R,e[33]=I):I=e[33];let O;return e[34]!==I||e[35]!==T?(O=b.jsxs(ut,{children:[T,I]}),e[34]=I,e[35]=T,e[36]=O):O=e[36],O}function nP(t){const e=Y.c(29),{onVirtualMcpChange:n,virtualMcps:r,disabled:a}=t,i=a===void 0?!1:a,[s,o]=L.useState(!1),l=L.useRef(null),{org:u}=jn();let c;e[0]!==u.id?(c=jS(u.id),e[0]=u.id,e[1]=c):c=e[1];const d=c;let p;e[2]!==r?(p=r.filter(rP),e[2]=r,e[3]=p):p=e[3];const f=p;let h,g;e[4]!==s?(h=()=>{s&&setTimeout(()=>{l.current?.focus()},0)},g=[s],e[4]=s,e[5]=h,e[6]=g):(h=e[5],g=e[6]),L.useEffect(h,g);let E;e[7]!==n?(E=w=>{n(w),o(!1)},e[7]=n,e[8]=E):E=e[8];const T=E,y=i?"cursor-not-allowed opacity-50":"cursor-pointer hover:text-muted-foreground";let S;e[9]!==y?(S=ee("relative flex items-center justify-center size-8 rounded-md text-muted-foreground/75 transition-colors shrink-0",y),e[9]=y,e[10]=S):S=e[10];let N,_;e[11]===Symbol.for("react.memo_cache_sentinel")?(_=b.jsxs("svg",{className:"absolute inset-0 size-full",fill:"none",children:[b.jsx("defs",{children:b.jsxs("linearGradient",{id:"agent-border-gradient-decopilot",gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:"32",y2:"32",children:[b.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"6s",repeatCount:"indefinite"}),b.jsx("stop",{offset:"0%",stopColor:"var(--chart-1)"}),b.jsx("stop",{offset:"100%",stopColor:"var(--chart-4)"})]})}),b.jsx("rect",{x:"0.5",y:"0.5",width:"31",height:"31",rx:"5.5",stroke:"url(#agent-border-gradient-decopilot)",strokeWidth:"1",strokeDasharray:"3 3"})]}),N=b.jsx(ia,{size:16}),e[11]=N,e[12]=_):(N=e[11],_=e[12]);let A;e[13]!==i||e[14]!==S?(A=b.jsx(ct,{asChild:!0,children:b.jsx(Sr,{asChild:!0,children:b.jsxs("button",{type:"button",className:S,disabled:i,children:[_,N]})})}),e[13]=i,e[14]=S,e[15]=A):A=e[15];let v;e[16]!==s?(v=!s&&b.jsx(dt,{side:"top",children:"Decopilot"}),e[16]=s,e[17]=v):v=e[17];let R;e[18]!==A||e[19]!==v?(R=b.jsxs(ut,{children:[A,v]}),e[18]=A,e[19]=v,e[20]=R):R=e[20];let I;e[21]!==d.id||e[22]!==f||e[23]!==T?(I=b.jsx(Ar,{className:"w-[550px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:b.jsx(Bh,{virtualMcps:f,selectedVirtualMcpId:d.id,onVirtualMcpChange:T,searchInputRef:l})}),e[21]=d.id,e[22]=f,e[23]=T,e[24]=I):I=e[24];let O;return e[25]!==s||e[26]!==R||e[27]!==I?(O=b.jsxs(yr,{open:s,onOpenChange:o,children:[R,I]}),e[25]=s,e[26]=R,e[27]=I,e[28]=O):O=e[28],O}function rP(t){return!t.id||!ur(t.id)}function aP(t){const e=Y.c(64),{virtualMcpId:n,virtualMcps:r,onVirtualMcpChange:a,disabled:i}=t,s=i===void 0?!1:i,[o,l]=L.useState(!1),u=L.useRef(null),c=US(),{org:d}=jn();let p;if(e[0]!==n||e[1]!==r){let Q;e[3]!==n?(Q=J=>J.id===n,e[3]=n,e[4]=Q):Q=e[4],p=r.find(Q),e[0]=n,e[1]=r,e[2]=p}else p=e[2];const f=p;let h,g;e[5]!==o?(h=()=>{o&&setTimeout(()=>{u.current?.focus()},0)},g=[o],e[5]=o,e[6]=h,e[7]=g):(h=e[6],g=e[7]),L.useEffect(h,g);let E,T,y,S,N;if(e[8]!==c||e[9]!==a||e[10]!==d||e[11]!==f||e[12]!==n){N=Symbol.for("react.early_return_sentinel");e:{const Q=Iv(n);if(!f||ur(n)){N=null;break e}let J;e[18]!==a?(J=se=>{se.stopPropagation(),a(null)},e[18]=a,e[19]=J):J=e[19],T=J;let ae;e[20]!==c||e[21]!==d.slug||e[22]!==n?(ae=se=>{se.stopPropagation(),c({to:"/$org/$project/agents/$agentId",params:{org:d.slug,project:Xa,agentId:n}})},e[20]=c,e[21]=d.slug,e[22]=n,e[23]=ae):ae=e[23],E=ae;let te;e[24]!==a?(te=se=>{a(se),l(!1)},e[24]=a,e[25]=te):te=e[25],y=te,S=ee("flex items-center justify-between px-3 py-1.5 rounded-t-xl z-10",Q?.bg)}e[8]=c,e[9]=a,e[10]=d,e[11]=f,e[12]=n,e[13]=E,e[14]=T,e[15]=y,e[16]=S,e[17]=N}else E=e[13],T=e[14],y=e[15],S=e[16],N=e[17];if(N!==Symbol.for("react.early_return_sentinel"))return N;const _=s?"cursor-not-allowed opacity-50":"cursor-pointer";let A;e[26]!==_?(A=ee("flex items-center gap-1.5 px-2 py-1 rounded-md hover:opacity-80 transition-opacity",_),e[26]=_,e[27]=A):A=e[27];let v;e[28]!==f.title?(v=b.jsx("span",{className:"text-xs text-white font-normal",children:f.title}),e[28]=f.title,e[29]=v):v=e[29];let R;e[30]===Symbol.for("react.memo_cache_sentinel")?(R=b.jsx(uI,{size:14,className:"text-white/50"}),e[30]=R):R=e[30];let I;e[31]!==s||e[32]!==A||e[33]!==v?(I=b.jsx(Sr,{asChild:!0,children:b.jsxs("button",{type:"button",disabled:s,className:A,children:[v,R]})}),e[31]=s,e[32]=A,e[33]=v,e[34]=I):I=e[34];let O;e[35]!==y||e[36]!==n||e[37]!==r?(O=b.jsx(Ar,{className:"w-[550px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:b.jsx(Bh,{virtualMcps:r,selectedVirtualMcpId:n,onVirtualMcpChange:y,searchInputRef:u})}),e[35]=y,e[36]=n,e[37]=r,e[38]=O):O=e[38];let w;e[39]!==o||e[40]!==I||e[41]!==O?(w=b.jsxs(yr,{open:o,onOpenChange:l,children:[I,O]}),e[39]=o,e[40]=I,e[41]=O,e[42]=w):w=e[42];const M=s?"cursor-not-allowed opacity-50":"cursor-pointer hover:bg-white/10";let H;e[43]!==M?(H=ee("flex items-center justify-center p-1 rounded-full transition-colors",M),e[43]=M,e[44]=H):H=e[44];let F;e[45]===Symbol.for("react.memo_cache_sentinel")?(F=b.jsx(GS,{size:14,className:"text-white"}),e[45]=F):F=e[45];let $;e[46]!==s||e[47]!==E||e[48]!==H?($=b.jsx("button",{type:"button",onClick:E,disabled:s,className:H,"aria-label":"Edit agent",children:F}),e[46]=s,e[47]=E,e[48]=H,e[49]=$):$=e[49];const U=s?"cursor-not-allowed opacity-50":"cursor-pointer hover:bg-white/10";let j;e[50]!==U?(j=ee("flex items-center justify-center p-1 rounded-full transition-colors",U),e[50]=U,e[51]=j):j=e[51];let P;e[52]===Symbol.for("react.memo_cache_sentinel")?(P=b.jsx(cI,{size:14,className:"text-white"}),e[52]=P):P=e[52];let W;e[53]!==s||e[54]!==T||e[55]!==j?(W=b.jsx("button",{type:"button",onClick:T,disabled:s,className:j,"aria-label":"Reset to default",children:P}),e[53]=s,e[54]=T,e[55]=j,e[56]=W):W=e[56];let X;e[57]!==$||e[58]!==W?(X=b.jsxs("div",{className:"flex items-center gap-1",children:[$,W]}),e[57]=$,e[58]=W,e[59]=X):X=e[59];let K;return e[60]!==w||e[61]!==X||e[62]!==S?(K=b.jsxs("div",{className:S,children:[w,X]}),e[60]=w,e[61]=X,e[62]=S,e[63]=K):K=e[63],K}function iP(){const{activeThreadId:t,tiptapDocRef:e,virtualMcps:n,selectedVirtualMcp:r,setVirtualMcpId:a,modelsConnections:i,selectedModel:s,setSelectedModel:o,selectedMode:l,setSelectedMode:u,messages:c,isStreaming:d,isRunInProgress:p,sendMessage:f,stop:h,cancelRun:g}=rh(),[E,T]=L.useState(void 0),y=Q=>{T(Q),e.current=Q},S=L.useRef(t);S.current!==t&&(S.current=t,T(void 0),e.current=void 0);const N=s?.thinking.limits?.contextWindow,_=L.useRef(null),A=iI(c),v=[...c].reverse().find(Q=>Q.role==="assistant"&&Q.metadata?.usage)?.metadata?.usage,R=(v?.totalTokens??0)-(v?.reasoningTokens??0),I=!d&&!!s&&!sL(E),O=d||p,w=Q=>{Q?.preventDefault(),d?h():p?g():I&&E&&(f(E),y(void 0))},M=!!r?.id&&!ur(r.id),[H,F]=L.useState(!1);L.useEffect(()=>{M&&F(!0)},[M]);const $=Q=>{Q.propertyName==="grid-template-rows"&&(M||(F(!1),U.current=null))},U=L.useRef(null),j=r?Iv(r.id):null;M&&r?.id&&(U.current={id:r.id,virtualMcps:n,color:j});const P=M?r:null,W=P?.id??U.current?.id,X=P?n:U.current?.virtualMcps??[],K=j?.bg??U.current?.color?.bg;return b.jsx("div",{className:"flex flex-col w-full justify-end",children:b.jsxs("div",{className:"relative rounded-xl w-full flex flex-col",children:[H&&b.jsx("div",{className:ee("absolute inset-0 rounded-xl pointer-events-none",K)}),b.jsx(Rs,{}),b.jsx("div",{className:ee("relative z-10 grid transition-[grid-template-rows] duration-250 ease-out overflow-hidden rounded-t-xl",M?"grid-rows-[1fr]":"grid-rows-[0fr]"),onTransitionEnd:$,children:b.jsx("div",{className:"overflow-hidden",children:W&&b.jsx(aP,{onVirtualMcpChange:a,virtualMcpId:W,virtualMcps:X,disabled:d})})}),b.jsx("div",{className:ee("transition-[padding] duration-250 ease-out",H?"p-0.5":"p-0"),children:b.jsx(Z3,{tiptapDoc:E,setTiptapDoc:y,selectedModel:s,isStreaming:d,onSubmit:w,children:b.jsxs("form",{onSubmit:w,className:ee("w-full relative rounded-xl min-h-[130px] flex flex-col border border-border bg-background shadow-sm"),children:[b.jsx("div",{className:"relative flex flex-col gap-2 flex-1",children:b.jsx(Q3,{ref:_,selectedModel:s,isStreaming:d,selectedVirtualMcp:r})}),b.jsxs("div",{className:"flex items-center justify-between p-2.5",children:[b.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 overflow-hidden",children:[p&&b.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:"Run in progress"}),r&&ur(r.id)?b.jsx(nP,{onVirtualMcpChange:a,virtualMcps:n,disabled:d}):b.jsx(jL,{selectedVirtualMcpId:r?.id??null,onVirtualMcpChange:a,virtualMcps:n,placeholder:"Agent",disabled:d}),b.jsx(KL,{selectedModel:s,isStreaming:d}),b.jsx(UL,{selectedMode:l,onModeChange:u,disabled:d}),N&&R>0&&b.jsx(tP,{usage:A,totalTokens:R,contextWindow:N})]}),b.jsxs("div",{className:"flex items-center gap-1.5",children:[b.jsx(GC,{selectedModel:s??void 0,onModelChange:o,modelsConnections:i,placeholder:"Model",variant:"borderless"}),b.jsx(ke,{type:O?"button":"submit",onClick:Q=>{O&&(Q.preventDefault(),Q.stopPropagation(),d?h():g())},variant:I||O?"default":"ghost",size:"icon",disabled:!I&&!O,className:ee("size-8 rounded-full transition-all",!I&&!O&&"bg-muted text-muted-foreground hover:bg-muted hover:text-muted-foreground cursor-not-allowed"),title:d?"Stop generating":p?"Cancel run":"Send message (Enter)",children:O?b.jsx(aA,{size:20}):b.jsx(lI,{size:20})})]})]})]})},t)})]})})}function y_({containerRef:t,enabled:e,contentDeps:n=[],threshold:r,intervalMs:a=500}){const[i,s]=L.useState(null),[o,l]=L.useState(!1),u=r??(t?.95:.1),c=()=>{if(t?.current){t.current.scrollTop=t.current.scrollHeight;return}if(!i)return;let d=i.parentElement;for(;d;){const p=window.getComputedStyle(d);if(p.overflowY==="auto"||p.overflowY==="scroll"||p.overflow==="auto"||p.overflow==="scroll"){d.scrollTop=d.scrollHeight;return}d=d.parentElement}};return L.useEffect(()=>{if(!i)return;const d=new IntersectionObserver(p=>{const f=p[0]?.isIntersecting??!1;l(f)},{root:t?.current??null,threshold:u,rootMargin:"0px"});return d.observe(i),()=>d.disconnect()},[i,u]),L.useEffect(()=>{if(!e||!o)return;const d=setInterval(c,a);return()=>clearInterval(d)},[e,o,a]),L.useEffect(()=>{!e||!o||c()},[e,o,...n]),{sentinelRef:s,isTracking:o}}function Qh(t){const e=Y.c(57),{icon:n,title:r,usage:a,summary:i,state:s,detail:o,detailVariant:l,forceOpen:u,variant:c,trailing:d,iconDestructive:p}=t,f=l===void 0?"code":l,h=c===void 0?"default":c,[g,E]=L.useState(!1),{handleCopy:T,copied:y}=WS(),S=s==="loading",N=s==="error";let _;e[0]!==o?(_=o&&o.trim(),e[0]=o,e[1]=_):_=e[1];const A=!!_,v=h==="subtask",R=(u??!1)||g,I=L.useRef(null),O=S&&R;let w;e[2]!==o?(w=[o],e[2]=o,e[3]=w):w=e[3];let M;e[4]!==O||e[5]!==w?(M={containerRef:I,enabled:O,contentDeps:w},e[4]=O,e[5]=w,e[6]=M):M=e[6];const{sentinelRef:H}=y_(M),F=u?void 0:E,$=!A,U=A&&"[@media(hover:hover)]:hover:bg-accent/30",j=!A&&"cursor-default",P=S&&"shimmer";let W;e[7]!==j||e[8]!==P||e[9]!==U?(W=ee("group/tool flex items-center gap-2 w-full py-2.5 text-left transition-colors",U,j,P),e[7]=j,e[8]=P,e[9]=U,e[10]=W):W=e[10];const X=!A,K=p||N?"[&>svg]:text-destructive/70":"[&>svg]:text-muted-foreground/75",Q=A&&(R?"opacity-0":"[@media(hover:hover)]:group-hover/tool:opacity-0");let J;e[11]!==K||e[12]!==Q?(J=ee("absolute inset-0 flex items-center justify-center [&>svg]:size-4 transition-opacity duration-150",K,Q),e[11]=K,e[12]=Q,e[13]=J):J=e[13];let ae;e[14]!==n||e[15]!==J?(ae=b.jsx("div",{className:J,children:n}),e[14]=n,e[15]=J,e[16]=ae):ae=e[16];let te;e[17]!==R||e[18]!==A?(te=A&&b.jsx("div",{className:ee("absolute inset-0 flex items-center justify-center transition-opacity duration-150",R?"opacity-100":"opacity-0 [@media(hover:hover)]:group-hover/tool:opacity-100"),children:b.jsx(RI,{className:ee("size-4 text-foreground/60 transition-transform duration-200 ease-in-out",R&&"rotate-90")})}),e[17]=R,e[18]=A,e[19]=te):te=e[19];let se;e[20]!==ae||e[21]!==te?(se=b.jsxs("div",{className:"relative shrink-0 size-4 flex items-center justify-center",children:[ae,te]}),e[20]=ae,e[21]=te,e[22]=se):se=e[22];const ce=N?"text-destructive/70":"text-foreground";let be;e[23]!==ce?(be=ee("shrink-0 text-[14px] font-normal",ce),e[23]=ce,e[24]=be):be=e[24];let Le;e[25]!==be||e[26]!==r?(Le=b.jsx("span",{className:be,children:r}),e[25]=be,e[26]=r,e[27]=Le):Le=e[27];let _e;e[28]!==i?(_e=i?b.jsx("span",{className:"min-w-0 flex-1 truncate",children:b.jsx("span",{className:"text-[12px] text-muted-foreground/60 bg-muted/50 rounded-[3px] px-1 py-px leading-none",children:i})}):b.jsx("div",{className:"flex-1"}),e[28]=i,e[29]=_e):_e=e[29];let Se;e[30]!==d?(Se=d&&b.jsx("div",{className:"shrink-0 flex items-center gap-1 [&_svg]:size-3.5 [&_svg]:text-muted-foreground/50",children:d}),e[30]=d,e[31]=Se):Se=e[31];let de;e[32]!==a?(de=b.jsx(J3,{usage:a}),e[32]=a,e[33]=de):de=e[33];let he;e[34]!==W||e[35]!==X||e[36]!==se||e[37]!==Le||e[38]!==_e||e[39]!==Se||e[40]!==de||e[41]!==$?(he=b.jsxs(AI,{disabled:$,className:W,"aria-disabled":X,children:[se,Le,_e,Se,de]}),e[34]=W,e[35]=X,e[36]=se,e[37]=Le,e[38]=_e,e[39]=Se,e[40]=de,e[41]=$,e[42]=he):he=e[42];let Ae;e[43]!==y||e[44]!==o||e[45]!==f||e[46]!==T||e[47]!==A||e[48]!==H?(Ae=A&&b.jsx(NI,{className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden",children:f==="prose"?b.jsx("div",{className:"mt-1 mb-1",children:b.jsxs("div",{ref:I,className:"max-h-[150px] overflow-y-auto rounded-md bg-muted/30 px-3 py-2",children:[b.jsx("p",{className:"text-xs text-muted-foreground/70 whitespace-pre-wrap leading-relaxed wrap-break-word",children:o}),b.jsx("div",{ref:H,className:"h-0 shrink-0"})]})}):b.jsx("div",{className:"ml-[20px] pl-3 border-l border-border/30 mt-0.5 pb-1",children:b.jsxs("div",{ref:I,className:"flex flex-col max-h-48 overflow-y-auto",children:[b.jsxs("div",{className:"flex items-start justify-between gap-2",children:[b.jsx("div",{className:"flex-1 min-w-0 overflow-hidden",children:b.jsx("pre",{className:"text-xs font-mono text-muted-foreground/70 whitespace-pre-wrap wrap-break-word",children:o})}),b.jsx("button",{type:"button",onClick:()=>T(o),className:"shrink-0 p-1.5 rounded-md text-muted-foreground/50 [@media(hover:hover)]:hover:text-foreground [@media(hover:hover)]:hover:bg-accent/50 transition-colors active:scale-[0.97]","aria-label":"Copy",children:y?b.jsx(qn,{className:"size-3.5"}):b.jsx(ds,{className:"size-3.5"})})]}),b.jsx("div",{ref:H,className:"h-0 shrink-0"})]})})}),e[43]=y,e[44]=o,e[45]=f,e[46]=T,e[47]=A,e[48]=H,e[49]=Ae):Ae=e[49];let Tt;e[50]!==R||e[51]!==he||e[52]!==Ae||e[53]!==F?(Tt=b.jsxs(vI,{open:R,onOpenChange:F,children:[he,Ae]}),e[50]=R,e[51]=he,e[52]=Ae,e[53]=F,e[54]=Tt):Tt=e[54];const $e=Tt;if(v){let Ze;return e[55]!==$e?(Ze=b.jsx("div",{className:"pl-4 border-l border-border/40 ml-1.5",children:$e}),e[55]=$e,e[56]=Ze):Ze=e[56],Ze}return $e}const Nb=/[#.]/g;function sP(t,e){const n=t||"",r={};let a=0,i,s;for(;a<n.length;){Nb.lastIndex=a;const o=Nb.exec(n),l=n.slice(a,o?o.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,a+=l.length),o&&(i=o[0],a++)}return{type:"element",tagName:s||e||"div",properties:r,children:[]}}function S_(t,e,n){const r=n?cP(n):void 0;function a(i,s,...o){let l;if(i==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=sP(i,e);const u=l.tagName.toLowerCase(),c=r?r.get(u):void 0;if(l.tagName=c||u,oP(s))o.unshift(s);else for(const[d,p]of Object.entries(s))lP(t,l.properties,d,p)}for(const u of o)Yf(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return a}function oP(t){if(t===null||typeof t!="object"||Array.isArray(t))return!0;if(typeof t.type!="string")return!1;const e=t,n=Object.keys(t);for(const r of n){const a=e[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in t&&Array.isArray(t.children))}function lP(t,e,n,r){const a=sh(t,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=vm(r):a.commaSeparated?i=_m(r):a.commaOrSpaceSeparated?i=vm(_m(r).join(" ")):i=vb(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?uP(r):String(r);if(Array.isArray(i)){const s=[];for(const o of i)s.push(vb(a,a.property,o));i=s}a.property==="className"&&Array.isArray(e.className)&&(i=e.className.concat(i)),e[a.property]=i}}function Yf(t,e){if(e!=null)if(typeof e=="number"||typeof e=="string")t.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const n of e)Yf(t,n);else if(typeof e=="object"&&"type"in e)e.type==="root"?Yf(t,e.children):t.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function vb(t,e,n){if(typeof n=="string"){if(t.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((t.boolean||t.overloadedBoolean)&&(n===""||Cm(n)===Cm(e)))return!0}return n}function uP(t){const e=[];for(const[n,r]of Object.entries(t))e.push([n,r].join(": "));return e.join("; ")}function cP(t){const e=new Map;for(const n of t)e.set(n.toLowerCase(),n);return e}const dP=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],pP=S_(ps,"div"),fP=S_(Aa,"g",dP);function hP(t){const e=String(t),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=e.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=_b(e,n[s-1]);o=l===-1?e.length+1:l+1,n[s]=o}if(o>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const o=n[n.length-1],l=_b(e,o),u=l===-1?e.length+1:l+1;if(o===u)break;n.push(u)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function _b(t,e){const n=t.indexOf("\r",e),r=t.indexOf(`
|
|
141
|
+
`,e);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const xn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},A_={}.hasOwnProperty,mP=Object.prototype;function gP(t,e){const n=e||{};return Jh({file:n.file||void 0,location:!1,schema:n.space==="svg"?Aa:ps,verbose:n.verbose||!1},t)}function Jh(t,e){let n;switch(e.nodeName){case"#comment":{const r=e;return n={type:"comment",value:r.data},ai(t,r,n),n}case"#document":case"#document-fragment":{const r=e,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:N_(t,e.childNodes),data:{quirksMode:a}},t.file&&t.location){const i=String(t.file),s=hP(i),o=s.toPoint(0),l=s.toPoint(i.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=e;return n={type:"doctype"},ai(t,r,n),n}case"#text":{const r=e;return n={type:"text",value:r.value},ai(t,r,n),n}default:return n=bP(t,e),n}}function N_(t,e){let n=-1;const r=[];for(;++n<e.length;){const a=Jh(t,e[n]);r.push(a)}return r}function bP(t,e){const n=t.schema;t.schema=e.namespaceURI===xn.svg?Aa:ps;let r=-1;const a={};for(;++r<e.attrs.length;){const o=e.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;A_.call(mP,l)||(a[l]=o.value)}const s=(t.schema.space==="svg"?fP:pP)(e.tagName,a,N_(t,e.childNodes));if(ai(t,e,s),s.tagName==="template"){const o=e,l=o.sourceCodeLocation,u=l&&l.startTag&&ir(l.startTag),c=l&&l.endTag&&ir(l.endTag),d=Jh(t,o.content);u&&c&&t.file&&(d.position={start:u.end,end:c.start}),s.content=d}return t.schema=n,s}function ai(t,e,n){if("sourceCodeLocation"in e&&e.sourceCodeLocation&&t.file){const r=EP(t,n,e.sourceCodeLocation);r&&(t.location=!0,n.position=r)}}function EP(t,e,n){const r=ir(n);if(e.type==="element"){const a=e.children[e.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),t.verbose){const i={};let s;if(n.attrs)for(s in n.attrs)A_.call(n.attrs,s)&&(i[sh(t.schema,s).property]=ir(n.attrs[s]));uf(n.startTag);const o=ir(n.startTag),l=n.endTag?ir(n.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=i,e.data={position:u}}}return r}function ir(t){const e=Cb({line:t.startLine,column:t.startCol,offset:t.startOffset}),n=Cb({line:t.endLine,column:t.endCol,offset:t.endOffset});return e||n?{start:e,end:n}:void 0}function Cb(t){return t.line&&t.column?t:void 0}const TP={},yP={}.hasOwnProperty,v_=sA("type",{handlers:{root:AP,element:IP,text:_P,comment:CP,doctype:vP}});function SP(t,e){const r=(e||TP).space;return v_(t,r==="svg"?Aa:ps)}function AP(t,e){const n={nodeName:"#document",mode:(t.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=em(t.children,n,e),vr(t,n),n}function NP(t,e){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=em(t.children,n,e),vr(t,n),n}function vP(t){const e={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return vr(t,e),e}function _P(t){const e={nodeName:"#text",value:t.value,parentNode:null};return vr(t,e),e}function CP(t){const e={nodeName:"#comment",data:t.value,parentNode:null};return vr(t,e),e}function IP(t,e){const n=e;let r=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Aa);const a=[];let i;if(t.properties){for(i in t.properties)if(i!=="children"&&yP.call(t.properties,i)){const l=RP(r,i,t.properties[i]);l&&a.push(l)}}const s=r.space,o={nodeName:t.tagName,tagName:t.tagName,attrs:a,namespaceURI:xn[s],childNodes:[],parentNode:null};return o.childNodes=em(t.children,o,r),vr(t,o),t.tagName==="template"&&t.content&&(o.content=NP(t.content,r)),o}function RP(t,e,n){const r=sh(t,e);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?kI(n):wI(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=xn[r.space]}return a}function em(t,e,n){let r=-1;const a=[];if(t)for(;++r<t.length;){const i=v_(t[r],n);i.parentNode=e,a.push(i)}return a}function vr(t,e){const n=t.position;n&&n.start&&n.end&&(uf(typeof n.start.offset=="number"),uf(typeof n.end.offset=="number"),e.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const xP=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],kP=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ee="�";var C;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(C||(C={}));const nt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function __(t){return t>=55296&&t<=57343}function wP(t){return t>=56320&&t<=57343}function OP(t,e){return(t-55296)*1024+9216+e}function C_(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function I_(t){return t>=64976&&t<=65007||kP.has(t)}var B;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.noncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(B||(B={}));const LP=65536;class DP{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=LP,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,n){const{line:r,col:a,offset:i}=this,s=a+n,o=i+n;return{code:e,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(wP(n))return this.pos++,this._addGap(),OP(e,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,C.EOF;return this._err(B.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,n){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,n){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(e,this.pos);for(let r=0;r<e.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==e.charCodeAt(r))return!1;return!0}peek(e){const n=this.pos+e;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;const r=this.html.charCodeAt(n);return r===C.CARRIAGE_RETURN?C.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;let e=this.html.charCodeAt(this.pos);return e===C.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,C.LINE_FEED):e===C.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,__(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===C.LINE_FEED||e===C.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){C_(e)?this._err(B.controlCharacterInInputStream):I_(e)&&this._err(B.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ue;(function(t){t[t.CHARACTER=0]="CHARACTER",t[t.NULL_CHARACTER=1]="NULL_CHARACTER",t[t.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",t[t.START_TAG=3]="START_TAG",t[t.END_TAG=4]="END_TAG",t[t.COMMENT=5]="COMMENT",t[t.DOCTYPE=6]="DOCTYPE",t[t.EOF=7]="EOF",t[t.HIBERNATION=8]="HIBERNATION"})(ue||(ue={}));function R_(t,e){for(let n=t.attrs.length-1;n>=0;n--)if(t.attrs[n].name===e)return t.attrs[n].value;return null}const MP=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(t=>t.charCodeAt(0))),PP=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function FP(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=PP.get(t))!==null&&e!==void 0?e:t}var Be;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Be||(Be={}));const BP=32;var an;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(an||(an={}));function Kf(t){return t>=Be.ZERO&&t<=Be.NINE}function UP(t){return t>=Be.UPPER_A&&t<=Be.UPPER_F||t>=Be.LOWER_A&&t<=Be.LOWER_F}function HP(t){return t>=Be.UPPER_A&&t<=Be.UPPER_Z||t>=Be.LOWER_A&&t<=Be.LOWER_Z||Kf(t)}function $P(t){return t===Be.EQUALS||HP(t)}var Pe;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Pe||(Pe={}));var Ut;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Ut||(Ut={}));class jP{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=Pe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ut.Strict}startEntity(e){this.decodeMode=e,this.state=Pe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Pe.EntityStart:return e.charCodeAt(n)===Be.NUM?(this.state=Pe.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Pe.NamedEntity,this.stateNamedEntity(e,n));case Pe.NumericStart:return this.stateNumericStart(e,n);case Pe.NumericDecimal:return this.stateNumericDecimal(e,n);case Pe.NumericHex:return this.stateNumericHex(e,n);case Pe.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|BP)===Be.LOWER_X?(this.state=Pe.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Pe.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+Number.parseInt(e.substr(n,i),a),this.consumed+=i}}stateNumericHex(e,n){const r=n;for(;n<e.length;){const a=e.charCodeAt(n);if(Kf(a)||UP(a))n+=1;else return this.addToNumericResult(e,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(e,r,n,16),-1}stateNumericDecimal(e,n){const r=n;for(;n<e.length;){const a=e.charCodeAt(n);if(Kf(a))n+=1;else return this.addToNumericResult(e,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(e,r,n,10),-1}emitNumericEntity(e,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Be.SEMI)this.consumed+=1;else if(this.decodeMode===Ut.Strict)return 0;return this.emitCodePoint(FP(this.result),this.consumed),this.errors&&(e!==Be.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&an.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){const s=e.charCodeAt(n);if(this.treeIndex=qP(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Ut.Attribute&&(i===0||$P(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&an.VALUE_LENGTH)>>14,i!==0){if(s===Be.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Ut.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:r}=this,a=(r[n]&an.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[e]&~an.VALUE_LENGTH:a[e+1],r),n===3&&this.emitCodePoint(a[e+2],r),r}end(){var e;switch(this.state){case Pe.NamedEntity:return this.result!==0&&(this.decodeMode!==Ut.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Pe.NumericDecimal:return this.emitNumericEntity(0,2);case Pe.NumericHex:return this.emitNumericEntity(0,3);case Pe.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Pe.EntityStart:return 0}}}function qP(t,e,n,r){const a=(e&an.BRANCH_LENGTH)>>7,i=e&an.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=a?-1:t[n+l]-1}let s=n,o=s+a-1;for(;s<=o;){const l=s+o>>>1,u=t[l];if(u<r)s=l+1;else if(u>r)o=l-1;else return t[l+a]}return-1}var q;(function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"})(q||(q={}));var Pn;(function(t){t.TYPE="type",t.ACTION="action",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"})(Pn||(Pn={}));var mt;(function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"})(mt||(mt={}));var D;(function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SEARCH="search",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="strike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"})(D||(D={}));var m;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SEARCH=94]="SEARCH",t[t.SECTION=95]="SECTION",t[t.SELECT=96]="SELECT",t[t.SOURCE=97]="SOURCE",t[t.SMALL=98]="SMALL",t[t.SPAN=99]="SPAN",t[t.STRIKE=100]="STRIKE",t[t.STRONG=101]="STRONG",t[t.STYLE=102]="STYLE",t[t.SUB=103]="SUB",t[t.SUMMARY=104]="SUMMARY",t[t.SUP=105]="SUP",t[t.TABLE=106]="TABLE",t[t.TBODY=107]="TBODY",t[t.TEMPLATE=108]="TEMPLATE",t[t.TEXTAREA=109]="TEXTAREA",t[t.TFOOT=110]="TFOOT",t[t.TD=111]="TD",t[t.TH=112]="TH",t[t.THEAD=113]="THEAD",t[t.TITLE=114]="TITLE",t[t.TR=115]="TR",t[t.TRACK=116]="TRACK",t[t.TT=117]="TT",t[t.U=118]="U",t[t.UL=119]="UL",t[t.SVG=120]="SVG",t[t.VAR=121]="VAR",t[t.WBR=122]="WBR",t[t.XMP=123]="XMP"})(m||(m={}));const zP=new Map([[D.A,m.A],[D.ADDRESS,m.ADDRESS],[D.ANNOTATION_XML,m.ANNOTATION_XML],[D.APPLET,m.APPLET],[D.AREA,m.AREA],[D.ARTICLE,m.ARTICLE],[D.ASIDE,m.ASIDE],[D.B,m.B],[D.BASE,m.BASE],[D.BASEFONT,m.BASEFONT],[D.BGSOUND,m.BGSOUND],[D.BIG,m.BIG],[D.BLOCKQUOTE,m.BLOCKQUOTE],[D.BODY,m.BODY],[D.BR,m.BR],[D.BUTTON,m.BUTTON],[D.CAPTION,m.CAPTION],[D.CENTER,m.CENTER],[D.CODE,m.CODE],[D.COL,m.COL],[D.COLGROUP,m.COLGROUP],[D.DD,m.DD],[D.DESC,m.DESC],[D.DETAILS,m.DETAILS],[D.DIALOG,m.DIALOG],[D.DIR,m.DIR],[D.DIV,m.DIV],[D.DL,m.DL],[D.DT,m.DT],[D.EM,m.EM],[D.EMBED,m.EMBED],[D.FIELDSET,m.FIELDSET],[D.FIGCAPTION,m.FIGCAPTION],[D.FIGURE,m.FIGURE],[D.FONT,m.FONT],[D.FOOTER,m.FOOTER],[D.FOREIGN_OBJECT,m.FOREIGN_OBJECT],[D.FORM,m.FORM],[D.FRAME,m.FRAME],[D.FRAMESET,m.FRAMESET],[D.H1,m.H1],[D.H2,m.H2],[D.H3,m.H3],[D.H4,m.H4],[D.H5,m.H5],[D.H6,m.H6],[D.HEAD,m.HEAD],[D.HEADER,m.HEADER],[D.HGROUP,m.HGROUP],[D.HR,m.HR],[D.HTML,m.HTML],[D.I,m.I],[D.IMG,m.IMG],[D.IMAGE,m.IMAGE],[D.INPUT,m.INPUT],[D.IFRAME,m.IFRAME],[D.KEYGEN,m.KEYGEN],[D.LABEL,m.LABEL],[D.LI,m.LI],[D.LINK,m.LINK],[D.LISTING,m.LISTING],[D.MAIN,m.MAIN],[D.MALIGNMARK,m.MALIGNMARK],[D.MARQUEE,m.MARQUEE],[D.MATH,m.MATH],[D.MENU,m.MENU],[D.META,m.META],[D.MGLYPH,m.MGLYPH],[D.MI,m.MI],[D.MO,m.MO],[D.MN,m.MN],[D.MS,m.MS],[D.MTEXT,m.MTEXT],[D.NAV,m.NAV],[D.NOBR,m.NOBR],[D.NOFRAMES,m.NOFRAMES],[D.NOEMBED,m.NOEMBED],[D.NOSCRIPT,m.NOSCRIPT],[D.OBJECT,m.OBJECT],[D.OL,m.OL],[D.OPTGROUP,m.OPTGROUP],[D.OPTION,m.OPTION],[D.P,m.P],[D.PARAM,m.PARAM],[D.PLAINTEXT,m.PLAINTEXT],[D.PRE,m.PRE],[D.RB,m.RB],[D.RP,m.RP],[D.RT,m.RT],[D.RTC,m.RTC],[D.RUBY,m.RUBY],[D.S,m.S],[D.SCRIPT,m.SCRIPT],[D.SEARCH,m.SEARCH],[D.SECTION,m.SECTION],[D.SELECT,m.SELECT],[D.SOURCE,m.SOURCE],[D.SMALL,m.SMALL],[D.SPAN,m.SPAN],[D.STRIKE,m.STRIKE],[D.STRONG,m.STRONG],[D.STYLE,m.STYLE],[D.SUB,m.SUB],[D.SUMMARY,m.SUMMARY],[D.SUP,m.SUP],[D.TABLE,m.TABLE],[D.TBODY,m.TBODY],[D.TEMPLATE,m.TEMPLATE],[D.TEXTAREA,m.TEXTAREA],[D.TFOOT,m.TFOOT],[D.TD,m.TD],[D.TH,m.TH],[D.THEAD,m.THEAD],[D.TITLE,m.TITLE],[D.TR,m.TR],[D.TRACK,m.TRACK],[D.TT,m.TT],[D.U,m.U],[D.UL,m.UL],[D.SVG,m.SVG],[D.VAR,m.VAR],[D.WBR,m.WBR],[D.XMP,m.XMP]]);function _r(t){var e;return(e=zP.get(t))!==null&&e!==void 0?e:m.UNKNOWN}const G=m,GP={[q.HTML]:new Set([G.ADDRESS,G.APPLET,G.AREA,G.ARTICLE,G.ASIDE,G.BASE,G.BASEFONT,G.BGSOUND,G.BLOCKQUOTE,G.BODY,G.BR,G.BUTTON,G.CAPTION,G.CENTER,G.COL,G.COLGROUP,G.DD,G.DETAILS,G.DIR,G.DIV,G.DL,G.DT,G.EMBED,G.FIELDSET,G.FIGCAPTION,G.FIGURE,G.FOOTER,G.FORM,G.FRAME,G.FRAMESET,G.H1,G.H2,G.H3,G.H4,G.H5,G.H6,G.HEAD,G.HEADER,G.HGROUP,G.HR,G.HTML,G.IFRAME,G.IMG,G.INPUT,G.LI,G.LINK,G.LISTING,G.MAIN,G.MARQUEE,G.MENU,G.META,G.NAV,G.NOEMBED,G.NOFRAMES,G.NOSCRIPT,G.OBJECT,G.OL,G.P,G.PARAM,G.PLAINTEXT,G.PRE,G.SCRIPT,G.SECTION,G.SELECT,G.SOURCE,G.STYLE,G.SUMMARY,G.TABLE,G.TBODY,G.TD,G.TEMPLATE,G.TEXTAREA,G.TFOOT,G.TH,G.THEAD,G.TITLE,G.TR,G.TRACK,G.UL,G.WBR,G.XMP]),[q.MATHML]:new Set([G.MI,G.MO,G.MN,G.MS,G.MTEXT,G.ANNOTATION_XML]),[q.SVG]:new Set([G.TITLE,G.FOREIGN_OBJECT,G.DESC]),[q.XLINK]:new Set,[q.XML]:new Set,[q.XMLNS]:new Set},Xf=new Set([G.H1,G.H2,G.H3,G.H4,G.H5,G.H6]);D.STYLE,D.SCRIPT,D.XMP,D.IFRAME,D.NOEMBED,D.NOFRAMES,D.PLAINTEXT;var x;(function(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(x||(x={}));const Ce={DATA:x.DATA,RCDATA:x.RCDATA,RAWTEXT:x.RAWTEXT,SCRIPT_DATA:x.SCRIPT_DATA,PLAINTEXT:x.PLAINTEXT,CDATA_SECTION:x.CDATA_SECTION};function VP(t){return t>=C.DIGIT_0&&t<=C.DIGIT_9}function jr(t){return t>=C.LATIN_CAPITAL_A&&t<=C.LATIN_CAPITAL_Z}function WP(t){return t>=C.LATIN_SMALL_A&&t<=C.LATIN_SMALL_Z}function Yt(t){return WP(t)||jr(t)}function Ib(t){return Yt(t)||VP(t)}function za(t){return t+32}function x_(t){return t===C.SPACE||t===C.LINE_FEED||t===C.TABULATION||t===C.FORM_FEED}function Rb(t){return x_(t)||t===C.SOLIDUS||t===C.GREATER_THAN_SIGN}function YP(t){return t===C.NULL?B.nullCharacterReference:t>1114111?B.characterReferenceOutsideUnicodeRange:__(t)?B.surrogateCharacterReference:I_(t)?B.noncharacterCharacterReference:C_(t)||t===C.CARRIAGE_RETURN?B.controlCharacterReference:null}class KP{constructor(e,n){this.options=e,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=x.DATA,this.returnState=x.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new DP(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new jP(MP,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(B.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(B.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=YP(r);a&&this._err(a,1)}}:void 0)}_err(e,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(e,n))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,n,r){this.active=!0,this.preprocessor.write(e,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let n=0;n<e;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,n){return this.preprocessor.startsWith(e,n)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ue.START_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ue.END_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:ue.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:ue.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,n){this.currentCharacterToken={type:e,chars:n,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,n;const r=this.currentToken;if(R_(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(e=(n=r.location).attrs)!==null&&e!==void 0?e:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(B.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=_r(e.tagName),e.type===ue.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(B.endTagWithAttributes),e.selfClosing&&this._err(B.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case ue.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ue.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ue.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:ue.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,n)}_emitCodePoint(e){const n=x_(e)?ue.WHITESPACE_CHARACTER:e===C.NULL?ue.NULL_CHARACTER:ue.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(ue.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=x.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ut.Attribute:Ut.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===x.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===x.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===x.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case x.DATA:{this._stateData(e);break}case x.RCDATA:{this._stateRcdata(e);break}case x.RAWTEXT:{this._stateRawtext(e);break}case x.SCRIPT_DATA:{this._stateScriptData(e);break}case x.PLAINTEXT:{this._statePlaintext(e);break}case x.TAG_OPEN:{this._stateTagOpen(e);break}case x.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case x.TAG_NAME:{this._stateTagName(e);break}case x.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case x.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case x.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case x.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case x.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case x.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case x.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case x.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case x.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case x.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case x.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case x.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case x.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case x.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case x.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case x.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case x.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case x.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case x.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case x.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case x.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case x.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case x.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case x.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case x.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case x.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case x.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case x.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case x.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case x.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case x.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case x.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case x.BOGUS_COMMENT:{this._stateBogusComment(e);break}case x.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case x.COMMENT_START:{this._stateCommentStart(e);break}case x.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case x.COMMENT:{this._stateComment(e);break}case x.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case x.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case x.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case x.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case x.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case x.COMMENT_END:{this._stateCommentEnd(e);break}case x.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case x.DOCTYPE:{this._stateDoctype(e);break}case x.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case x.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case x.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case x.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case x.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case x.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case x.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case x.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case x.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case x.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case x.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case x.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case x.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case x.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case x.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case x.CDATA_SECTION:{this._stateCdataSection(e);break}case x.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case x.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case x.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case x.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw new Error("Unknown state")}}_stateData(e){switch(e){case C.LESS_THAN_SIGN:{this.state=x.TAG_OPEN;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitCodePoint(e);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case C.AMPERSAND:{this._startCharacterReference();break}case C.LESS_THAN_SIGN:{this.state=x.RCDATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Ee);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case C.LESS_THAN_SIGN:{this.state=x.RAWTEXT_LESS_THAN_SIGN;break}case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Ee);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Ee);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Ee);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Yt(e))this._createStartTagToken(),this.state=x.TAG_NAME,this._stateTagName(e);else switch(e){case C.EXCLAMATION_MARK:{this.state=x.MARKUP_DECLARATION_OPEN;break}case C.SOLIDUS:{this.state=x.END_TAG_OPEN;break}case C.QUESTION_MARK:{this._err(B.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=x.BOGUS_COMMENT,this._stateBogusComment(e);break}case C.EOF:{this._err(B.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(B.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=x.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Yt(e))this._createEndTagToken(),this.state=x.TAG_NAME,this._stateTagName(e);else switch(e){case C.GREATER_THAN_SIGN:{this._err(B.missingEndTagName),this.state=x.DATA;break}case C.EOF:{this._err(B.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(B.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=x.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=x.BEFORE_ATTRIBUTE_NAME;break}case C.SOLIDUS:{this.state=x.SELF_CLOSING_START_TAG;break}case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentTagToken();break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.tagName+=Ee;break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(jr(e)?za(e):e)}}_stateRcdataLessThanSign(e){e===C.SOLIDUS?this.state=x.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=x.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){Yt(e)?(this.state=x.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=x.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=x.BEFORE_ATTRIBUTE_NAME,!1;case C.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=x.SELF_CLOSING_START_TAG,!1;case C.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=x.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=x.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===C.SOLIDUS?this.state=x.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=x.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){Yt(e)?(this.state=x.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=x.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=x.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case C.SOLIDUS:{this.state=x.SCRIPT_DATA_END_TAG_OPEN;break}case C.EXCLAMATION_MARK:{this.state=x.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=x.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){Yt(e)?(this.state=x.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=x.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=x.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===C.HYPHEN_MINUS?(this.state=x.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=x.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===C.HYPHEN_MINUS?(this.state=x.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=x.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case C.HYPHEN_MINUS:{this.state=x.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Ee);break}case C.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case C.HYPHEN_MINUS:{this.state=x.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.state=x.SCRIPT_DATA_ESCAPED,this._emitChars(Ee);break}case C.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=x.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case C.HYPHEN_MINUS:{this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.GREATER_THAN_SIGN:{this.state=x.SCRIPT_DATA,this._emitChars(">");break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.state=x.SCRIPT_DATA_ESCAPED,this._emitChars(Ee);break}case C.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=x.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===C.SOLIDUS?this.state=x.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Yt(e)?(this._emitChars("<"),this.state=x.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=x.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Yt(e)?(this.state=x.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=x.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=x.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(nt.SCRIPT,!1)&&Rb(this.preprocessor.peek(nt.SCRIPT.length))){this._emitCodePoint(e);for(let n=0;n<nt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=x.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case C.HYPHEN_MINUS:{this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.NULL:{this._err(B.unexpectedNullCharacter),this._emitChars(Ee);break}case C.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case C.HYPHEN_MINUS:{this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ee);break}case C.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case C.HYPHEN_MINUS:{this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.GREATER_THAN_SIGN:{this.state=x.SCRIPT_DATA,this._emitChars(">");break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ee);break}case C.EOF:{this._err(B.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===C.SOLIDUS?(this.state=x.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(nt.SCRIPT,!1)&&Rb(this.preprocessor.peek(nt.SCRIPT.length))){this._emitCodePoint(e);for(let n=0;n<nt.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=x.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=x.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.SOLIDUS:case C.GREATER_THAN_SIGN:case C.EOF:{this.state=x.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case C.EQUALS_SIGN:{this._err(B.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=x.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=x.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:case C.SOLIDUS:case C.GREATER_THAN_SIGN:case C.EOF:{this._leaveAttrName(),this.state=x.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case C.EQUALS_SIGN:{this._leaveAttrName(),this.state=x.BEFORE_ATTRIBUTE_VALUE;break}case C.QUOTATION_MARK:case C.APOSTROPHE:case C.LESS_THAN_SIGN:{this._err(B.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.currentAttr.name+=Ee;break}default:this.currentAttr.name+=String.fromCodePoint(jr(e)?za(e):e)}}_stateAfterAttributeName(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.SOLIDUS:{this.state=x.SELF_CLOSING_START_TAG;break}case C.EQUALS_SIGN:{this.state=x.BEFORE_ATTRIBUTE_VALUE;break}case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=x.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{this.state=x.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this.state=x.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(B.missingAttributeValue),this.state=x.DATA,this.emitCurrentTagToken();break}default:this.state=x.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case C.QUOTATION_MARK:{this.state=x.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case C.APOSTROPHE:{this.state=x.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this._leaveAttrValue(),this.state=x.BEFORE_ATTRIBUTE_NAME;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=x.DATA,this.emitCurrentTagToken();break}case C.NULL:{this._err(B.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case C.QUOTATION_MARK:case C.APOSTROPHE:case C.LESS_THAN_SIGN:case C.EQUALS_SIGN:case C.GRAVE_ACCENT:{this._err(B.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this._leaveAttrValue(),this.state=x.BEFORE_ATTRIBUTE_NAME;break}case C.SOLIDUS:{this._leaveAttrValue(),this.state=x.SELF_CLOSING_START_TAG;break}case C.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=x.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this._err(B.missingWhitespaceBetweenAttributes),this.state=x.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case C.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=x.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(B.eofInTag),this._emitEOFToken();break}default:this._err(B.unexpectedSolidusInTag),this.state=x.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const n=this.currentToken;switch(e){case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentComment(n);break}case C.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.data+=Ee;break}default:n.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(nt.DASH_DASH,!0)?(this._createCommentToken(nt.DASH_DASH.length+1),this.state=x.COMMENT_START):this._consumeSequenceIfMatch(nt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(nt.DOCTYPE.length+1),this.state=x.DOCTYPE):this._consumeSequenceIfMatch(nt.CDATA_START,!0)?this.inForeignNode?this.state=x.CDATA_SECTION:(this._err(B.cdataInHtmlContent),this._createCommentToken(nt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=x.BOGUS_COMMENT):this._ensureHibernation()||(this._err(B.incorrectlyOpenedComment),this._createCommentToken(2),this.state=x.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case C.HYPHEN_MINUS:{this.state=x.COMMENT_START_DASH;break}case C.GREATER_THAN_SIGN:{this._err(B.abruptClosingOfEmptyComment),this.state=x.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=x.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const n=this.currentToken;switch(e){case C.HYPHEN_MINUS:{this.state=x.COMMENT_END;break}case C.GREATER_THAN_SIGN:{this._err(B.abruptClosingOfEmptyComment),this.state=x.DATA,this.emitCurrentComment(n);break}case C.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=x.COMMENT,this._stateComment(e)}}_stateComment(e){const n=this.currentToken;switch(e){case C.HYPHEN_MINUS:{this.state=x.COMMENT_END_DASH;break}case C.LESS_THAN_SIGN:{n.data+="<",this.state=x.COMMENT_LESS_THAN_SIGN;break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.data+=Ee;break}case C.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const n=this.currentToken;switch(e){case C.EXCLAMATION_MARK:{n.data+="!",this.state=x.COMMENT_LESS_THAN_SIGN_BANG;break}case C.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=x.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===C.HYPHEN_MINUS?this.state=x.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=x.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===C.HYPHEN_MINUS?this.state=x.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=x.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==C.GREATER_THAN_SIGN&&e!==C.EOF&&this._err(B.nestedComment),this.state=x.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const n=this.currentToken;switch(e){case C.HYPHEN_MINUS:{this.state=x.COMMENT_END;break}case C.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=x.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const n=this.currentToken;switch(e){case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentComment(n);break}case C.EXCLAMATION_MARK:{this.state=x.COMMENT_END_BANG;break}case C.HYPHEN_MINUS:{n.data+="-";break}case C.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=x.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const n=this.currentToken;switch(e){case C.HYPHEN_MINUS:{n.data+="--!",this.state=x.COMMENT_END_DASH;break}case C.GREATER_THAN_SIGN:{this._err(B.incorrectlyClosedComment),this.state=x.DATA,this.emitCurrentComment(n);break}case C.EOF:{this._err(B.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=x.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=x.BEFORE_DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this.state=x.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case C.EOF:{this._err(B.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingWhitespaceBeforeDoctypeName),this.state=x.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(jr(e))this._createDoctypeToken(String.fromCharCode(za(e))),this.state=x.DOCTYPE_NAME;else switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.NULL:{this._err(B.unexpectedNullCharacter),this._createDoctypeToken(Ee),this.state=x.DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this._err(B.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.EOF:{this._err(B.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=x.DOCTYPE_NAME}}_stateDoctypeName(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=x.AFTER_DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.name+=Ee;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(jr(e)?za(e):e)}}_stateAfterDoctypeName(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(nt.PUBLIC,!1)?this.state=x.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(nt.SYSTEM,!1)?this.state=x.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(B.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=x.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.QUOTATION_MARK:{this._err(B.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=x.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(B.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=x.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(B.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{n.publicId="",this.state=x.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.publicId="",this.state=x.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(B.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const n=this.currentToken;switch(e){case C.QUOTATION_MARK:{this.state=x.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.publicId+=Ee;break}case C.GREATER_THAN_SIGN:{this._err(B.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const n=this.currentToken;switch(e){case C.APOSTROPHE:{this.state=x.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.publicId+=Ee;break}case C.GREATER_THAN_SIGN:{this._err(B.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=x.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case C.GREATER_THAN_SIGN:{this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.QUOTATION_MARK:{this._err(B.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(B.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.QUOTATION_MARK:{n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=x.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.QUOTATION_MARK:{this._err(B.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(B.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(B.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.systemId="",this.state=x.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(B.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=x.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const n=this.currentToken;switch(e){case C.QUOTATION_MARK:{this.state=x.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.systemId+=Ee;break}case C.GREATER_THAN_SIGN:{this._err(B.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const n=this.currentToken;switch(e){case C.APOSTROPHE:{this.state=x.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.NULL:{this._err(B.unexpectedNullCharacter),n.systemId+=Ee;break}case C.GREATER_THAN_SIGN:{this._err(B.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const n=this.currentToken;switch(e){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.EOF:{this._err(B.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(B.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=x.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const n=this.currentToken;switch(e){case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=x.DATA;break}case C.NULL:{this._err(B.unexpectedNullCharacter);break}case C.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case C.RIGHT_SQUARE_BRACKET:{this.state=x.CDATA_SECTION_BRACKET;break}case C.EOF:{this._err(B.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===C.RIGHT_SQUARE_BRACKET?this.state=x.CDATA_SECTION_END:(this._emitChars("]"),this.state=x.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case C.GREATER_THAN_SIGN:{this.state=x.DATA;break}case C.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=x.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(C.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ib(this.preprocessor.peek(1))?x.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){Ib(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===C.SEMICOLON&&this._err(B.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const k_=new Set([m.DD,m.DT,m.LI,m.OPTGROUP,m.OPTION,m.P,m.RB,m.RP,m.RT,m.RTC]),xb=new Set([...k_,m.CAPTION,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]),es=new Set([m.APPLET,m.CAPTION,m.HTML,m.MARQUEE,m.OBJECT,m.TABLE,m.TD,m.TEMPLATE,m.TH]),XP=new Set([...es,m.OL,m.UL]),ZP=new Set([...es,m.BUTTON]),kb=new Set([m.ANNOTATION_XML,m.MI,m.MN,m.MO,m.MS,m.MTEXT]),wb=new Set([m.DESC,m.FOREIGN_OBJECT,m.TITLE]),QP=new Set([m.TR,m.TEMPLATE,m.HTML]),JP=new Set([m.TBODY,m.TFOOT,m.THEAD,m.TEMPLATE,m.HTML]),eF=new Set([m.TABLE,m.TEMPLATE,m.HTML]),tF=new Set([m.TD,m.TH]);class nF{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=m.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===m.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===q.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,n){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,n,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,n){const r=this._indexOf(e);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(e,n,r){const a=this._indexOf(e)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(e){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(e,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==q.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(e){for(;this.stackTop>=e;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<e)}}popUntilElementPopped(e){const n=this._indexOf(e);this.shortenToLength(Math.max(n,0))}popUntilPopped(e,n){const r=this._indexOfTagNames(e,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Xf,q.HTML)}popUntilTableCellPopped(){this.popUntilPopped(tF,q.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,n){for(let r=this.stackTop;r>=0;r--)if(e.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(e,n){const r=this._indexOfTagNames(e,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(eF,q.HTML)}clearBackToTableBodyContext(){this.clearBackTo(JP,q.HTML)}clearBackToTableRowContext(){this.clearBackTo(QP,q.HTML)}remove(e){const n=this._indexOf(e);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===m.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const n=this._indexOf(e)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===m.HTML}hasInDynamicScope(e,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case q.HTML:{if(a===e)return!0;if(n.has(a))return!1;break}case q.SVG:{if(wb.has(a))return!1;break}case q.MATHML:{if(kb.has(a))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,es)}hasInListItemScope(e){return this.hasInDynamicScope(e,XP)}hasInButtonScope(e){return this.hasInDynamicScope(e,ZP)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case q.HTML:{if(Xf.has(n))return!0;if(es.has(n))return!1;break}case q.SVG:{if(wb.has(n))return!1;break}case q.MATHML:{if(kb.has(n))return!1;break}}}return!0}hasInTableScope(e){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===q.HTML)switch(this.tagIDs[n]){case e:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===q.HTML)switch(this.tagIDs[e]){case m.TBODY:case m.THEAD:case m.TFOOT:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasInSelectScope(e){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===q.HTML)switch(this.tagIDs[n]){case e:return!0;case m.OPTION:case m.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&k_.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&xb.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&xb.has(this.currentTagId);)this.pop()}}const Ao=3;var xt;(function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"})(xt||(xt={}));const Ob={type:xt.Marker};class rF{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===xt.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===s){const c=this.treeAdapter.getAttrList(u);c.length===a&&r.push({idx:o,attrs:c})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<Ao)return;const n=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,n);if(r.length<Ao)return;const a=new Map(n.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=Ao&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Ob)}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.unshift({type:xt.Element,element:e,token:n})}insertElementAfterBookmark(e,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:xt.Element,element:e,token:n})}removeEntry(e){const n=this.entries.indexOf(e);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const e=this.entries.indexOf(Ob);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const n=this.entries.find(r=>r.type===xt.Marker||this.treeAdapter.getTagName(r.element)===e);return n&&n.type===xt.Element?n:null}getElementEntry(e){return this.entries.find(n=>n.type===xt.Element&&n.element===e)}}const Kt={createDocument(){return{nodeName:"#document",mode:mt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(t,e,n){return{nodeName:t,tagName:t,attrs:n,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode(t){return{nodeName:"#comment",data:t,parentNode:null}},createTextNode(t){return{nodeName:"#text",value:t,parentNode:null}},appendChild(t,e){t.childNodes.push(e),e.parentNode=t},insertBefore(t,e,n){const r=t.childNodes.indexOf(n);t.childNodes.splice(r,0,e),e.parentNode=t},setTemplateContent(t,e){t.content=e},getTemplateContent(t){return t.content},setDocumentType(t,e,n,r){const a=t.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=e,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:e,publicId:n,systemId:r,parentNode:null};Kt.appendChild(t,i)}},setDocumentMode(t,e){t.mode=e},getDocumentMode(t){return t.mode},detachNode(t){if(t.parentNode){const e=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(e,1),t.parentNode=null}},insertText(t,e){if(t.childNodes.length>0){const n=t.childNodes[t.childNodes.length-1];if(Kt.isTextNode(n)){n.value+=e;return}}Kt.appendChild(t,Kt.createTextNode(e))},insertTextBefore(t,e,n){const r=t.childNodes[t.childNodes.indexOf(n)-1];r&&Kt.isTextNode(r)?r.value+=e:Kt.insertBefore(t,Kt.createTextNode(e),n)},adoptAttributes(t,e){const n=new Set(t.attrs.map(r=>r.name));for(let r=0;r<e.length;r++)n.has(e[r].name)||t.attrs.push(e[r])},getFirstChild(t){return t.childNodes[0]},getChildNodes(t){return t.childNodes},getParentNode(t){return t.parentNode},getAttrList(t){return t.attrs},getTagName(t){return t.tagName},getNamespaceURI(t){return t.namespaceURI},getTextNodeContent(t){return t.value},getCommentNodeContent(t){return t.data},getDocumentTypeNodeName(t){return t.name},getDocumentTypeNodePublicId(t){return t.publicId},getDocumentTypeNodeSystemId(t){return t.systemId},isTextNode(t){return t.nodeName==="#text"},isCommentNode(t){return t.nodeName==="#comment"},isDocumentTypeNode(t){return t.nodeName==="#documentType"},isElementNode(t){return Object.prototype.hasOwnProperty.call(t,"tagName")},setNodeSourceCodeLocation(t,e){t.sourceCodeLocation=e},getNodeSourceCodeLocation(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation(t,e){t.sourceCodeLocation={...t.sourceCodeLocation,...e}}},w_="html",aF="about:legacy-compat",iF="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",O_=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],sF=[...O_,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],oF=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),L_=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],lF=[...L_,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Lb(t,e){return e.some(n=>t.startsWith(n))}function uF(t){return t.name===w_&&t.publicId===null&&(t.systemId===null||t.systemId===aF)}function cF(t){if(t.name!==w_)return mt.QUIRKS;const{systemId:e}=t;if(e&&e.toLowerCase()===iF)return mt.QUIRKS;let{publicId:n}=t;if(n!==null){if(n=n.toLowerCase(),oF.has(n))return mt.QUIRKS;let r=e===null?sF:O_;if(Lb(n,r))return mt.QUIRKS;if(r=e===null?L_:lF,Lb(n,r))return mt.LIMITED_QUIRKS}return mt.NO_QUIRKS}const Db={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},dF="definitionurl",pF="definitionURL",fF=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(t=>[t.toLowerCase(),t])),hF=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:q.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:q.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:q.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:q.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:q.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:q.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:q.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:q.XML}],["xml:space",{prefix:"xml",name:"space",namespace:q.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:q.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:q.XMLNS}]]),mF=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(t=>[t.toLowerCase(),t])),gF=new Set([m.B,m.BIG,m.BLOCKQUOTE,m.BODY,m.BR,m.CENTER,m.CODE,m.DD,m.DIV,m.DL,m.DT,m.EM,m.EMBED,m.H1,m.H2,m.H3,m.H4,m.H5,m.H6,m.HEAD,m.HR,m.I,m.IMG,m.LI,m.LISTING,m.MENU,m.META,m.NOBR,m.OL,m.P,m.PRE,m.RUBY,m.S,m.SMALL,m.SPAN,m.STRONG,m.STRIKE,m.SUB,m.SUP,m.TABLE,m.TT,m.U,m.UL,m.VAR]);function bF(t){const e=t.tagID;return e===m.FONT&&t.attrs.some(({name:r})=>r===Pn.COLOR||r===Pn.SIZE||r===Pn.FACE)||gF.has(e)}function D_(t){for(let e=0;e<t.attrs.length;e++)if(t.attrs[e].name===dF){t.attrs[e].name=pF;break}}function M_(t){for(let e=0;e<t.attrs.length;e++){const n=fF.get(t.attrs[e].name);n!=null&&(t.attrs[e].name=n)}}function tm(t){for(let e=0;e<t.attrs.length;e++){const n=hF.get(t.attrs[e].name);n&&(t.attrs[e].prefix=n.prefix,t.attrs[e].name=n.name,t.attrs[e].namespace=n.namespace)}}function EF(t){const e=mF.get(t.tagName);e!=null&&(t.tagName=e,t.tagID=_r(t.tagName))}function TF(t,e){return e===q.MATHML&&(t===m.MI||t===m.MO||t===m.MN||t===m.MS||t===m.MTEXT)}function yF(t,e,n){if(e===q.MATHML&&t===m.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Pn.ENCODING){const a=n[r].value.toLowerCase();return a===Db.TEXT_HTML||a===Db.APPLICATION_XML}}return e===q.SVG&&(t===m.FOREIGN_OBJECT||t===m.DESC||t===m.TITLE)}function SF(t,e,n,r){return(!r||r===q.HTML)&&yF(t,e,n)||(!r||r===q.MATHML)&&TF(t,e)}const AF="hidden",NF=8,vF=3;var k;(function(t){t[t.INITIAL=0]="INITIAL",t[t.BEFORE_HTML=1]="BEFORE_HTML",t[t.BEFORE_HEAD=2]="BEFORE_HEAD",t[t.IN_HEAD=3]="IN_HEAD",t[t.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",t[t.AFTER_HEAD=5]="AFTER_HEAD",t[t.IN_BODY=6]="IN_BODY",t[t.TEXT=7]="TEXT",t[t.IN_TABLE=8]="IN_TABLE",t[t.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",t[t.IN_CAPTION=10]="IN_CAPTION",t[t.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",t[t.IN_TABLE_BODY=12]="IN_TABLE_BODY",t[t.IN_ROW=13]="IN_ROW",t[t.IN_CELL=14]="IN_CELL",t[t.IN_SELECT=15]="IN_SELECT",t[t.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",t[t.IN_TEMPLATE=17]="IN_TEMPLATE",t[t.AFTER_BODY=18]="AFTER_BODY",t[t.IN_FRAMESET=19]="IN_FRAMESET",t[t.AFTER_FRAMESET=20]="AFTER_FRAMESET",t[t.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",t[t.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(k||(k={}));const _F={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},P_=new Set([m.TABLE,m.TBODY,m.TFOOT,m.THEAD,m.TR]),Mb={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Kt,onParseError:null};class Pb{constructor(e,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=k.INITIAL,this.originalInsertionMode=k.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Mb,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new KP(this.options,this),this.activeFormattingElements=new rF(this.treeAdapter),this.fragmentContextID=r?_r(this.treeAdapter.getTagName(r)):m.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new nF(this.document,this.treeAdapter,this)}static parse(e,n){const r=new this(n);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,n){const r={...Mb,...n};e??(e=r.treeAdapter.createElement(D.TEMPLATE,q.HTML,[]));const a=r.treeAdapter.createElement("documentmock",q.HTML,[]),i=new this(r,a,e);return i.fragmentContextID===m.TEMPLATE&&i.tmplInsertionModeStack.unshift(k.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,n),n}_err(e,n,r){var a;if(!this.onParseError)return;const i=(a=e.location)!==null&&a!==void 0?a:_F,s={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(e,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,n)}onItemPop(e,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,e,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(e,n){const r=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===q.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&e!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,e)}_switchToTextParsing(e,n){this._insertElement(e,q.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=k.TEXT}switchToPlaintextParsing(){this.insertionMode=k.TEXT,this.originalInsertionMode=k.IN_BODY,this.tokenizer.state=Ce.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===D.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==q.HTML))switch(this.fragmentContextID){case m.TITLE:case m.TEXTAREA:{this.tokenizer.state=Ce.RCDATA;break}case m.STYLE:case m.XMP:case m.IFRAME:case m.NOEMBED:case m.NOFRAMES:case m.NOSCRIPT:{this.tokenizer.state=Ce.RAWTEXT;break}case m.SCRIPT:{this.tokenizer.state=Ce.SCRIPT_DATA;break}case m.PLAINTEXT:{this.tokenizer.state=Ce.PLAINTEXT;break}}}_setDocumentType(e){const n=e.name||"",r=e.publicId||"",a=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),e.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}}_attachElementToTree(e,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,e)}}_appendElement(e,n){const r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,n){const r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,n){const r=this.treeAdapter.createElement(e,q.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(e){const n=this.treeAdapter.createElement(e.tagName,q.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(D.HTML,q.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,m.HTML)}_appendCommentNode(e,n){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,e.chars,r):this.treeAdapter.insertText(n,e.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,e.chars)),!e.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:c}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,n){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(e,n){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(e),i=n.type===ue.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,e.tagID===m.SVG&&this.treeAdapter.getTagName(n)===D.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===q.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===m.MGLYPH||e.tagID===m.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,q.HTML)}_processToken(e){switch(e.type){case ue.CHARACTER:{this.onCharacter(e);break}case ue.NULL_CHARACTER:{this.onNullCharacter(e);break}case ue.COMMENT:{this.onComment(e);break}case ue.DOCTYPE:{this.onDoctype(e);break}case ue.START_TAG:{this._processStartTag(e);break}case ue.END_TAG:{this.onEndTag(e);break}case ue.EOF:{this.onEof(e);break}case ue.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return SF(e,a,i,r)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===xt.Marker||this.openElements.contains(a.element)),r=n===-1?e-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=k.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(m.P),this.openElements.popUntilTagNamePopped(m.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case m.TR:{this.insertionMode=k.IN_ROW;return}case m.TBODY:case m.THEAD:case m.TFOOT:{this.insertionMode=k.IN_TABLE_BODY;return}case m.CAPTION:{this.insertionMode=k.IN_CAPTION;return}case m.COLGROUP:{this.insertionMode=k.IN_COLUMN_GROUP;return}case m.TABLE:{this.insertionMode=k.IN_TABLE;return}case m.BODY:{this.insertionMode=k.IN_BODY;return}case m.FRAMESET:{this.insertionMode=k.IN_FRAMESET;return}case m.SELECT:{this._resetInsertionModeForSelect(e);return}case m.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case m.HTML:{this.insertionMode=this.headElement?k.AFTER_HEAD:k.BEFORE_HEAD;return}case m.TD:case m.TH:{if(e>0){this.insertionMode=k.IN_CELL;return}break}case m.HEAD:{if(e>0){this.insertionMode=k.IN_HEAD;return}break}}this.insertionMode=k.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let n=e-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===m.TEMPLATE)break;if(r===m.TABLE){this.insertionMode=k.IN_SELECT_IN_TABLE;return}}this.insertionMode=k.IN_SELECT}_isElementCausesFosterParenting(e){return P_.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const n=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case m.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===q.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case m.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,e,n.beforeElement):this.treeAdapter.appendChild(n.parent,e)}_isSpecialElement(e,n){const r=this.treeAdapter.getNamespaceURI(e);return GP[r].has(n)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){t4(this,e);return}switch(this.insertionMode){case k.INITIAL:{Mr(this,e);break}case k.BEFORE_HTML:{ea(this,e);break}case k.BEFORE_HEAD:{ta(this,e);break}case k.IN_HEAD:{na(this,e);break}case k.IN_HEAD_NO_SCRIPT:{ra(this,e);break}case k.AFTER_HEAD:{aa(this,e);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:{B_(this,e);break}case k.TEXT:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{No(this,e);break}case k.IN_TABLE_TEXT:{z_(this,e);break}case k.IN_COLUMN_GROUP:{ts(this,e);break}case k.AFTER_BODY:{ns(this,e);break}case k.AFTER_AFTER_BODY:{ii(this,e);break}}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){e4(this,e);return}switch(this.insertionMode){case k.INITIAL:{Mr(this,e);break}case k.BEFORE_HTML:{ea(this,e);break}case k.BEFORE_HEAD:{ta(this,e);break}case k.IN_HEAD:{na(this,e);break}case k.IN_HEAD_NO_SCRIPT:{ra(this,e);break}case k.AFTER_HEAD:{aa(this,e);break}case k.TEXT:{this._insertCharacters(e);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{No(this,e);break}case k.IN_COLUMN_GROUP:{ts(this,e);break}case k.AFTER_BODY:{ns(this,e);break}case k.AFTER_AFTER_BODY:{ii(this,e);break}}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Zf(this,e);return}switch(this.insertionMode){case k.INITIAL:case k.BEFORE_HTML:case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_TEMPLATE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{Zf(this,e);break}case k.IN_TABLE_TEXT:{Pr(this,e);break}case k.AFTER_BODY:{OF(this,e);break}case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{LF(this,e);break}}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case k.INITIAL:{DF(this,e);break}case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:{this._err(e,B.misplacedDoctype);break}case k.IN_TABLE_TEXT:{Pr(this,e);break}}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,B.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?n4(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case k.INITIAL:{Mr(this,e);break}case k.BEFORE_HTML:{MF(this,e);break}case k.BEFORE_HEAD:{FF(this,e);break}case k.IN_HEAD:{At(this,e);break}case k.IN_HEAD_NO_SCRIPT:{HF(this,e);break}case k.AFTER_HEAD:{jF(this,e);break}case k.IN_BODY:{Xe(this,e);break}case k.IN_TABLE:{Er(this,e);break}case k.IN_TABLE_TEXT:{Pr(this,e);break}case k.IN_CAPTION:{BB(this,e);break}case k.IN_COLUMN_GROUP:{am(this,e);break}case k.IN_TABLE_BODY:{Os(this,e);break}case k.IN_ROW:{Ls(this,e);break}case k.IN_CELL:{$B(this,e);break}case k.IN_SELECT:{W_(this,e);break}case k.IN_SELECT_IN_TABLE:{qB(this,e);break}case k.IN_TEMPLATE:{GB(this,e);break}case k.AFTER_BODY:{WB(this,e);break}case k.IN_FRAMESET:{YB(this,e);break}case k.AFTER_FRAMESET:{XB(this,e);break}case k.AFTER_AFTER_BODY:{QB(this,e);break}case k.AFTER_AFTER_FRAMESET:{JB(this,e);break}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?r4(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case k.INITIAL:{Mr(this,e);break}case k.BEFORE_HTML:{PF(this,e);break}case k.BEFORE_HEAD:{BF(this,e);break}case k.IN_HEAD:{UF(this,e);break}case k.IN_HEAD_NO_SCRIPT:{$F(this,e);break}case k.AFTER_HEAD:{qF(this,e);break}case k.IN_BODY:{ws(this,e);break}case k.TEXT:{RB(this,e);break}case k.IN_TABLE:{Ta(this,e);break}case k.IN_TABLE_TEXT:{Pr(this,e);break}case k.IN_CAPTION:{UB(this,e);break}case k.IN_COLUMN_GROUP:{HB(this,e);break}case k.IN_TABLE_BODY:{Qf(this,e);break}case k.IN_ROW:{V_(this,e);break}case k.IN_CELL:{jB(this,e);break}case k.IN_SELECT:{Y_(this,e);break}case k.IN_SELECT_IN_TABLE:{zB(this,e);break}case k.IN_TEMPLATE:{VB(this,e);break}case k.AFTER_BODY:{X_(this,e);break}case k.IN_FRAMESET:{KB(this,e);break}case k.AFTER_FRAMESET:{ZB(this,e);break}case k.AFTER_AFTER_BODY:{ii(this,e);break}}}onEof(e){switch(this.insertionMode){case k.INITIAL:{Mr(this,e);break}case k.BEFORE_HTML:{ea(this,e);break}case k.BEFORE_HEAD:{ta(this,e);break}case k.IN_HEAD:{na(this,e);break}case k.IN_HEAD_NO_SCRIPT:{ra(this,e);break}case k.AFTER_HEAD:{aa(this,e);break}case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{j_(this,e);break}case k.TEXT:{xB(this,e);break}case k.IN_TABLE_TEXT:{Pr(this,e);break}case k.IN_TEMPLATE:{K_(this,e);break}case k.AFTER_BODY:case k.IN_FRAMESET:case k.AFTER_FRAMESET:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{rm(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===C.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.TEXT:case k.IN_COLUMN_GROUP:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{this._insertCharacters(e);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:case k.AFTER_BODY:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{F_(this,e);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{No(this,e);break}case k.IN_TABLE_TEXT:{q_(this,e);break}}}}function CF(t,e){let n=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return n?t.openElements.contains(n.element)?t.openElements.hasInScope(e.tagID)||(n=null):(t.activeFormattingElements.removeEntry(n),n=null):$_(t,e),n}function IF(t,e){let n=null,r=t.openElements.stackTop;for(;r>=0;r--){const a=t.openElements.items[r];if(a===e.element)break;t._isSpecialElement(a,t.openElements.tagIDs[r])&&(n=a)}return n||(t.openElements.shortenToLength(Math.max(r,0)),t.activeFormattingElements.removeEntry(e)),n}function RF(t,e,n){let r=e,a=t.openElements.getCommonAncestor(e);for(let i=0,s=a;s!==n;i++,s=a){a=t.openElements.getCommonAncestor(s);const o=t.activeFormattingElements.getElementEntry(s),l=o&&i>=vF;!o||l?(l&&t.activeFormattingElements.removeEntry(o),t.openElements.remove(s)):(s=xF(t,o),r===e&&(t.activeFormattingElements.bookmark=o),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(s,r),r=s)}return r}function xF(t,e){const n=t.treeAdapter.getNamespaceURI(e.element),r=t.treeAdapter.createElement(e.token.tagName,n,e.token.attrs);return t.openElements.replace(e.element,r),e.element=r,r}function kF(t,e,n){const r=t.treeAdapter.getTagName(e),a=_r(r);if(t._isElementCausesFosterParenting(a))t._fosterParentElement(n);else{const i=t.treeAdapter.getNamespaceURI(e);a===m.TEMPLATE&&i===q.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,n)}}function wF(t,e,n){const r=t.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=t.treeAdapter.createElement(a.tagName,r,a.attrs);t._adoptNodes(e,i),t.treeAdapter.appendChild(e,i),t.activeFormattingElements.insertElementAfterBookmark(i,a),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(e,i,a.tagID)}function nm(t,e){for(let n=0;n<NF;n++){const r=CF(t,e);if(!r)break;const a=IF(t,r);if(!a)break;t.activeFormattingElements.bookmark=r;const i=RF(t,a,r.element),s=t.openElements.getCommonAncestor(r.element);t.treeAdapter.detachNode(i),s&&kF(t,s,i),wF(t,a,r)}}function Zf(t,e){t._appendCommentNode(e,t.openElements.currentTmplContentOrNode)}function OF(t,e){t._appendCommentNode(e,t.openElements.items[0])}function LF(t,e){t._appendCommentNode(e,t.document)}function rm(t,e){if(t.stopped=!0,e.location){const n=t.fragmentContext?0:2;for(let r=t.openElements.stackTop;r>=n;r--)t._setEndLocation(t.openElements.items[r],e);if(!t.fragmentContext&&t.openElements.stackTop>=0){const r=t.openElements.items[0],a=t.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(t._setEndLocation(r,e),t.openElements.stackTop>=1)){const i=t.openElements.items[1],s=t.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&t._setEndLocation(i,e)}}}}function DF(t,e){t._setDocumentType(e);const n=e.forceQuirks?mt.QUIRKS:cF(e);uF(e)||t._err(e,B.nonConformingDoctype),t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode=k.BEFORE_HTML}function Mr(t,e){t._err(e,B.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,mt.QUIRKS),t.insertionMode=k.BEFORE_HTML,t._processToken(e)}function MF(t,e){e.tagID===m.HTML?(t._insertElement(e,q.HTML),t.insertionMode=k.BEFORE_HEAD):ea(t,e)}function PF(t,e){const n=e.tagID;(n===m.HTML||n===m.HEAD||n===m.BODY||n===m.BR)&&ea(t,e)}function ea(t,e){t._insertFakeRootElement(),t.insertionMode=k.BEFORE_HEAD,t._processToken(e)}function FF(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.HEAD:{t._insertElement(e,q.HTML),t.headElement=t.openElements.current,t.insertionMode=k.IN_HEAD;break}default:ta(t,e)}}function BF(t,e){const n=e.tagID;n===m.HEAD||n===m.BODY||n===m.HTML||n===m.BR?ta(t,e):t._err(e,B.endTagWithoutMatchingOpenElement)}function ta(t,e){t._insertFakeElement(D.HEAD,m.HEAD),t.headElement=t.openElements.current,t.insertionMode=k.IN_HEAD,t._processToken(e)}function At(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:{t._appendElement(e,q.HTML),e.ackSelfClosing=!0;break}case m.TITLE:{t._switchToTextParsing(e,Ce.RCDATA);break}case m.NOSCRIPT:{t.options.scriptingEnabled?t._switchToTextParsing(e,Ce.RAWTEXT):(t._insertElement(e,q.HTML),t.insertionMode=k.IN_HEAD_NO_SCRIPT);break}case m.NOFRAMES:case m.STYLE:{t._switchToTextParsing(e,Ce.RAWTEXT);break}case m.SCRIPT:{t._switchToTextParsing(e,Ce.SCRIPT_DATA);break}case m.TEMPLATE:{t._insertTemplate(e),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=k.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(k.IN_TEMPLATE);break}case m.HEAD:{t._err(e,B.misplacedStartTagForHeadElement);break}default:na(t,e)}}function UF(t,e){switch(e.tagID){case m.HEAD:{t.openElements.pop(),t.insertionMode=k.AFTER_HEAD;break}case m.BODY:case m.BR:case m.HTML:{na(t,e);break}case m.TEMPLATE:{Yn(t,e);break}default:t._err(e,B.endTagWithoutMatchingOpenElement)}}function Yn(t,e){t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==m.TEMPLATE&&t._err(e,B.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(m.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(e,B.endTagWithoutMatchingOpenElement)}function na(t,e){t.openElements.pop(),t.insertionMode=k.AFTER_HEAD,t._processToken(e)}function HF(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.BASEFONT:case m.BGSOUND:case m.HEAD:case m.LINK:case m.META:case m.NOFRAMES:case m.STYLE:{At(t,e);break}case m.NOSCRIPT:{t._err(e,B.nestedNoscriptInHead);break}default:ra(t,e)}}function $F(t,e){switch(e.tagID){case m.NOSCRIPT:{t.openElements.pop(),t.insertionMode=k.IN_HEAD;break}case m.BR:{ra(t,e);break}default:t._err(e,B.endTagWithoutMatchingOpenElement)}}function ra(t,e){const n=e.type===ue.EOF?B.openElementsLeftAfterEof:B.disallowedContentInNoscriptInHead;t._err(e,n),t.openElements.pop(),t.insertionMode=k.IN_HEAD,t._processToken(e)}function jF(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.BODY:{t._insertElement(e,q.HTML),t.framesetOk=!1,t.insertionMode=k.IN_BODY;break}case m.FRAMESET:{t._insertElement(e,q.HTML),t.insertionMode=k.IN_FRAMESET;break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{t._err(e,B.abandonedHeadElementChild),t.openElements.push(t.headElement,m.HEAD),At(t,e),t.openElements.remove(t.headElement);break}case m.HEAD:{t._err(e,B.misplacedStartTagForHeadElement);break}default:aa(t,e)}}function qF(t,e){switch(e.tagID){case m.BODY:case m.HTML:case m.BR:{aa(t,e);break}case m.TEMPLATE:{Yn(t,e);break}default:t._err(e,B.endTagWithoutMatchingOpenElement)}}function aa(t,e){t._insertFakeElement(D.BODY,m.BODY),t.insertionMode=k.IN_BODY,ks(t,e)}function ks(t,e){switch(e.type){case ue.CHARACTER:{B_(t,e);break}case ue.WHITESPACE_CHARACTER:{F_(t,e);break}case ue.COMMENT:{Zf(t,e);break}case ue.START_TAG:{Xe(t,e);break}case ue.END_TAG:{ws(t,e);break}case ue.EOF:{j_(t,e);break}}}function F_(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function B_(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function zF(t,e){t.openElements.tmplCount===0&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}function GF(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t.openElements.tmplCount===0&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,e.attrs))}function VF(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,q.HTML),t.insertionMode=k.IN_FRAMESET)}function WF(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,q.HTML)}function YF(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t.openElements.currentTagId!==void 0&&Xf.has(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(e,q.HTML)}function KF(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,q.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}function XF(t,e){const n=t.openElements.tmplCount>0;(!t.formElement||n)&&(t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,q.HTML),n||(t.formElement=t.openElements.current))}function ZF(t,e){t.framesetOk=!1;const n=e.tagID;for(let r=t.openElements.stackTop;r>=0;r--){const a=t.openElements.tagIDs[r];if(n===m.LI&&a===m.LI||(n===m.DD||n===m.DT)&&(a===m.DD||a===m.DT)){t.openElements.generateImpliedEndTagsWithExclusion(a),t.openElements.popUntilTagNamePopped(a);break}if(a!==m.ADDRESS&&a!==m.DIV&&a!==m.P&&t._isSpecialElement(t.openElements.items[r],a))break}t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,q.HTML)}function QF(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,q.HTML),t.tokenizer.state=Ce.PLAINTEXT}function JF(t,e){t.openElements.hasInScope(m.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(m.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML),t.framesetOk=!1}function eB(t,e){const n=t.activeFormattingElements.getElementEntryInScopeWithTagName(D.A);n&&(nm(t,e),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function tB(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function nB(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(m.NOBR)&&(nm(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,q.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function rB(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}function aB(t,e){t.treeAdapter.getDocumentMode(t.document)!==mt.QUIRKS&&t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._insertElement(e,q.HTML),t.framesetOk=!1,t.insertionMode=k.IN_TABLE}function U_(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,q.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function H_(t){const e=R_(t,Pn.TYPE);return e!=null&&e.toLowerCase()===AF}function iB(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,q.HTML),H_(e)||(t.framesetOk=!1),e.ackSelfClosing=!0}function sB(t,e){t._appendElement(e,q.HTML),e.ackSelfClosing=!0}function oB(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._appendElement(e,q.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function lB(t,e){e.tagName=D.IMG,e.tagID=m.IMG,U_(t,e)}function uB(t,e){t._insertElement(e,q.HTML),t.skipNextNewLine=!0,t.tokenizer.state=Ce.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=k.TEXT}function cB(t,e){t.openElements.hasInButtonScope(m.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,Ce.RAWTEXT)}function dB(t,e){t.framesetOk=!1,t._switchToTextParsing(e,Ce.RAWTEXT)}function Fb(t,e){t._switchToTextParsing(e,Ce.RAWTEXT)}function pB(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===k.IN_TABLE||t.insertionMode===k.IN_CAPTION||t.insertionMode===k.IN_TABLE_BODY||t.insertionMode===k.IN_ROW||t.insertionMode===k.IN_CELL?k.IN_SELECT_IN_TABLE:k.IN_SELECT}function fB(t,e){t.openElements.currentTagId===m.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML)}function hB(t,e){t.openElements.hasInScope(m.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,q.HTML)}function mB(t,e){t.openElements.hasInScope(m.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(m.RTC),t._insertElement(e,q.HTML)}function gB(t,e){t._reconstructActiveFormattingElements(),D_(e),tm(e),e.selfClosing?t._appendElement(e,q.MATHML):t._insertElement(e,q.MATHML),e.ackSelfClosing=!0}function bB(t,e){t._reconstructActiveFormattingElements(),M_(e),tm(e),e.selfClosing?t._appendElement(e,q.SVG):t._insertElement(e,q.SVG),e.ackSelfClosing=!0}function Bb(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,q.HTML)}function Xe(t,e){switch(e.tagID){case m.I:case m.S:case m.B:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.SMALL:case m.STRIKE:case m.STRONG:{tB(t,e);break}case m.A:{eB(t,e);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{YF(t,e);break}case m.P:case m.DL:case m.OL:case m.UL:case m.DIV:case m.DIR:case m.NAV:case m.MAIN:case m.MENU:case m.ASIDE:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.DETAILS:case m.ADDRESS:case m.ARTICLE:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{WF(t,e);break}case m.LI:case m.DD:case m.DT:{ZF(t,e);break}case m.BR:case m.IMG:case m.WBR:case m.AREA:case m.EMBED:case m.KEYGEN:{U_(t,e);break}case m.HR:{oB(t,e);break}case m.RB:case m.RTC:{hB(t,e);break}case m.RT:case m.RP:{mB(t,e);break}case m.PRE:case m.LISTING:{KF(t,e);break}case m.XMP:{cB(t,e);break}case m.SVG:{bB(t,e);break}case m.HTML:{zF(t,e);break}case m.BASE:case m.LINK:case m.META:case m.STYLE:case m.TITLE:case m.SCRIPT:case m.BGSOUND:case m.BASEFONT:case m.TEMPLATE:{At(t,e);break}case m.BODY:{GF(t,e);break}case m.FORM:{XF(t,e);break}case m.NOBR:{nB(t,e);break}case m.MATH:{gB(t,e);break}case m.TABLE:{aB(t,e);break}case m.INPUT:{iB(t,e);break}case m.PARAM:case m.TRACK:case m.SOURCE:{sB(t,e);break}case m.IMAGE:{lB(t,e);break}case m.BUTTON:{JF(t,e);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{rB(t,e);break}case m.IFRAME:{dB(t,e);break}case m.SELECT:{pB(t,e);break}case m.OPTION:case m.OPTGROUP:{fB(t,e);break}case m.NOEMBED:case m.NOFRAMES:{Fb(t,e);break}case m.FRAMESET:{VF(t,e);break}case m.TEXTAREA:{uB(t,e);break}case m.NOSCRIPT:{t.options.scriptingEnabled?Fb(t,e):Bb(t,e);break}case m.PLAINTEXT:{QF(t,e);break}case m.COL:case m.TH:case m.TD:case m.TR:case m.HEAD:case m.FRAME:case m.TBODY:case m.TFOOT:case m.THEAD:case m.CAPTION:case m.COLGROUP:break;default:Bb(t,e)}}function EB(t,e){if(t.openElements.hasInScope(m.BODY)&&(t.insertionMode=k.AFTER_BODY,t.options.sourceCodeLocationInfo)){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t._setEndLocation(n,e)}}function TB(t,e){t.openElements.hasInScope(m.BODY)&&(t.insertionMode=k.AFTER_BODY,X_(t,e))}function yB(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n))}function SB(t){const e=t.openElements.tmplCount>0,{formElement:n}=t;e||(t.formElement=null),(n||e)&&t.openElements.hasInScope(m.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(m.FORM):n&&t.openElements.remove(n))}function AB(t){t.openElements.hasInButtonScope(m.P)||t._insertFakeElement(D.P,m.P),t._closePElement()}function NB(t){t.openElements.hasInListItemScope(m.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(m.LI),t.openElements.popUntilTagNamePopped(m.LI))}function vB(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilTagNamePopped(n))}function _B(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}function CB(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker())}function IB(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(D.BR,m.BR),t.openElements.pop(),t.framesetOk=!1}function $_(t,e){const n=e.tagName,r=e.tagID;for(let a=t.openElements.stackTop;a>0;a--){const i=t.openElements.items[a],s=t.openElements.tagIDs[a];if(r===s&&(r!==m.UNKNOWN||t.treeAdapter.getTagName(i)===n)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.stackTop>=a&&t.openElements.shortenToLength(a);break}if(t._isSpecialElement(i,s))break}}function ws(t,e){switch(e.tagID){case m.A:case m.B:case m.I:case m.S:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.NOBR:case m.SMALL:case m.STRIKE:case m.STRONG:{nm(t,e);break}case m.P:{AB(t);break}case m.DL:case m.UL:case m.OL:case m.DIR:case m.DIV:case m.NAV:case m.PRE:case m.MAIN:case m.MENU:case m.ASIDE:case m.BUTTON:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.ADDRESS:case m.ARTICLE:case m.DETAILS:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.LISTING:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{yB(t,e);break}case m.LI:{NB(t);break}case m.DD:case m.DT:{vB(t,e);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{_B(t);break}case m.BR:{IB(t);break}case m.BODY:{EB(t,e);break}case m.HTML:{TB(t,e);break}case m.FORM:{SB(t);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{CB(t,e);break}case m.TEMPLATE:{Yn(t,e);break}default:$_(t,e)}}function j_(t,e){t.tmplInsertionModeStack.length>0?K_(t,e):rm(t,e)}function RB(t,e){var n;e.tagID===m.SCRIPT&&((n=t.scriptHandler)===null||n===void 0||n.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode}function xB(t,e){t._err(e,B.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(e)}function No(t,e){if(t.openElements.currentTagId!==void 0&&P_.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=k.IN_TABLE_TEXT,e.type){case ue.CHARACTER:{z_(t,e);break}case ue.WHITESPACE_CHARACTER:{q_(t,e);break}}else Ia(t,e)}function kB(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,q.HTML),t.insertionMode=k.IN_CAPTION}function wB(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,q.HTML),t.insertionMode=k.IN_COLUMN_GROUP}function OB(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(D.COLGROUP,m.COLGROUP),t.insertionMode=k.IN_COLUMN_GROUP,am(t,e)}function LB(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,q.HTML),t.insertionMode=k.IN_TABLE_BODY}function DB(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(D.TBODY,m.TBODY),t.insertionMode=k.IN_TABLE_BODY,Os(t,e)}function MB(t,e){t.openElements.hasInTableScope(m.TABLE)&&(t.openElements.popUntilTagNamePopped(m.TABLE),t._resetInsertionMode(),t._processStartTag(e))}function PB(t,e){H_(e)?t._appendElement(e,q.HTML):Ia(t,e),e.ackSelfClosing=!0}function FB(t,e){!t.formElement&&t.openElements.tmplCount===0&&(t._insertElement(e,q.HTML),t.formElement=t.openElements.current,t.openElements.pop())}function Er(t,e){switch(e.tagID){case m.TD:case m.TH:case m.TR:{DB(t,e);break}case m.STYLE:case m.SCRIPT:case m.TEMPLATE:{At(t,e);break}case m.COL:{OB(t,e);break}case m.FORM:{FB(t,e);break}case m.TABLE:{MB(t,e);break}case m.TBODY:case m.TFOOT:case m.THEAD:{LB(t,e);break}case m.INPUT:{PB(t,e);break}case m.CAPTION:{kB(t,e);break}case m.COLGROUP:{wB(t,e);break}default:Ia(t,e)}}function Ta(t,e){switch(e.tagID){case m.TABLE:{t.openElements.hasInTableScope(m.TABLE)&&(t.openElements.popUntilTagNamePopped(m.TABLE),t._resetInsertionMode());break}case m.TEMPLATE:{Yn(t,e);break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:Ia(t,e)}}function Ia(t,e){const n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,ks(t,e),t.fosterParentingEnabled=n}function q_(t,e){t.pendingCharacterTokens.push(e)}function z_(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function Pr(t,e){let n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n<t.pendingCharacterTokens.length;n++)Ia(t,t.pendingCharacterTokens[n]);else for(;n<t.pendingCharacterTokens.length;n++)t._insertCharacters(t.pendingCharacterTokens[n]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}const G_=new Set([m.CAPTION,m.COL,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]);function BB(t,e){const n=e.tagID;G_.has(n)?t.openElements.hasInTableScope(m.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(m.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=k.IN_TABLE,Er(t,e)):Xe(t,e)}function UB(t,e){const n=e.tagID;switch(n){case m.CAPTION:case m.TABLE:{t.openElements.hasInTableScope(m.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(m.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=k.IN_TABLE,n===m.TABLE&&Ta(t,e));break}case m.BODY:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:ws(t,e)}}function am(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.COL:{t._appendElement(e,q.HTML),e.ackSelfClosing=!0;break}case m.TEMPLATE:{At(t,e);break}default:ts(t,e)}}function HB(t,e){switch(e.tagID){case m.COLGROUP:{t.openElements.currentTagId===m.COLGROUP&&(t.openElements.pop(),t.insertionMode=k.IN_TABLE);break}case m.TEMPLATE:{Yn(t,e);break}case m.COL:break;default:ts(t,e)}}function ts(t,e){t.openElements.currentTagId===m.COLGROUP&&(t.openElements.pop(),t.insertionMode=k.IN_TABLE,t._processToken(e))}function Os(t,e){switch(e.tagID){case m.TR:{t.openElements.clearBackToTableBodyContext(),t._insertElement(e,q.HTML),t.insertionMode=k.IN_ROW;break}case m.TH:case m.TD:{t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(D.TR,m.TR),t.insertionMode=k.IN_ROW,Ls(t,e);break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE,Er(t,e));break}default:Er(t,e)}}function Qf(t,e){const n=e.tagID;switch(e.tagID){case m.TBODY:case m.TFOOT:case m.THEAD:{t.openElements.hasInTableScope(n)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE);break}case m.TABLE:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE,Ta(t,e));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:case m.TR:break;default:Ta(t,e)}}function Ls(t,e){switch(e.tagID){case m.TH:case m.TD:{t.openElements.clearBackToTableRowContext(),t._insertElement(e,q.HTML),t.insertionMode=k.IN_CELL,t.activeFormattingElements.insertMarker();break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{t.openElements.hasInTableScope(m.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE_BODY,Os(t,e));break}default:Er(t,e)}}function V_(t,e){switch(e.tagID){case m.TR:{t.openElements.hasInTableScope(m.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE_BODY);break}case m.TABLE:{t.openElements.hasInTableScope(m.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE_BODY,Qf(t,e));break}case m.TBODY:case m.TFOOT:case m.THEAD:{(t.openElements.hasInTableScope(e.tagID)||t.openElements.hasInTableScope(m.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=k.IN_TABLE_BODY,Qf(t,e));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:break;default:Ta(t,e)}}function $B(t,e){const n=e.tagID;G_.has(n)?(t.openElements.hasInTableScope(m.TD)||t.openElements.hasInTableScope(m.TH))&&(t._closeTableCell(),Ls(t,e)):Xe(t,e)}function jB(t,e){const n=e.tagID;switch(n){case m.TD:case m.TH:{t.openElements.hasInTableScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=k.IN_ROW);break}case m.TABLE:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{t.openElements.hasInTableScope(n)&&(t._closeTableCell(),V_(t,e));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:break;default:ws(t,e)}}function W_(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.OPTION:{t.openElements.currentTagId===m.OPTION&&t.openElements.pop(),t._insertElement(e,q.HTML);break}case m.OPTGROUP:{t.openElements.currentTagId===m.OPTION&&t.openElements.pop(),t.openElements.currentTagId===m.OPTGROUP&&t.openElements.pop(),t._insertElement(e,q.HTML);break}case m.HR:{t.openElements.currentTagId===m.OPTION&&t.openElements.pop(),t.openElements.currentTagId===m.OPTGROUP&&t.openElements.pop(),t._appendElement(e,q.HTML),e.ackSelfClosing=!0;break}case m.INPUT:case m.KEYGEN:case m.TEXTAREA:case m.SELECT:{t.openElements.hasInSelectScope(m.SELECT)&&(t.openElements.popUntilTagNamePopped(m.SELECT),t._resetInsertionMode(),e.tagID!==m.SELECT&&t._processStartTag(e));break}case m.SCRIPT:case m.TEMPLATE:{At(t,e);break}}}function Y_(t,e){switch(e.tagID){case m.OPTGROUP:{t.openElements.stackTop>0&&t.openElements.currentTagId===m.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===m.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===m.OPTGROUP&&t.openElements.pop();break}case m.OPTION:{t.openElements.currentTagId===m.OPTION&&t.openElements.pop();break}case m.SELECT:{t.openElements.hasInSelectScope(m.SELECT)&&(t.openElements.popUntilTagNamePopped(m.SELECT),t._resetInsertionMode());break}case m.TEMPLATE:{Yn(t,e);break}}}function qB(t,e){const n=e.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?(t.openElements.popUntilTagNamePopped(m.SELECT),t._resetInsertionMode(),t._processStartTag(e)):W_(t,e)}function zB(t,e){const n=e.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?t.openElements.hasInTableScope(n)&&(t.openElements.popUntilTagNamePopped(m.SELECT),t._resetInsertionMode(),t.onEndTag(e)):Y_(t,e)}function GB(t,e){switch(e.tagID){case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{At(t,e);break}case m.CAPTION:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{t.tmplInsertionModeStack[0]=k.IN_TABLE,t.insertionMode=k.IN_TABLE,Er(t,e);break}case m.COL:{t.tmplInsertionModeStack[0]=k.IN_COLUMN_GROUP,t.insertionMode=k.IN_COLUMN_GROUP,am(t,e);break}case m.TR:{t.tmplInsertionModeStack[0]=k.IN_TABLE_BODY,t.insertionMode=k.IN_TABLE_BODY,Os(t,e);break}case m.TD:case m.TH:{t.tmplInsertionModeStack[0]=k.IN_ROW,t.insertionMode=k.IN_ROW,Ls(t,e);break}default:t.tmplInsertionModeStack[0]=k.IN_BODY,t.insertionMode=k.IN_BODY,Xe(t,e)}}function VB(t,e){e.tagID===m.TEMPLATE&&Yn(t,e)}function K_(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(m.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(e)):rm(t,e)}function WB(t,e){e.tagID===m.HTML?Xe(t,e):ns(t,e)}function X_(t,e){var n;if(e.tagID===m.HTML){if(t.fragmentContext||(t.insertionMode=k.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===m.HTML){t._setEndLocation(t.openElements.items[0],e);const r=t.openElements.items[1];r&&!(!((n=t.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&t._setEndLocation(r,e)}}else ns(t,e)}function ns(t,e){t.insertionMode=k.IN_BODY,ks(t,e)}function YB(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.FRAMESET:{t._insertElement(e,q.HTML);break}case m.FRAME:{t._appendElement(e,q.HTML),e.ackSelfClosing=!0;break}case m.NOFRAMES:{At(t,e);break}}}function KB(t,e){e.tagID===m.FRAMESET&&!t.openElements.isRootHtmlElementCurrent()&&(t.openElements.pop(),!t.fragmentContext&&t.openElements.currentTagId!==m.FRAMESET&&(t.insertionMode=k.AFTER_FRAMESET))}function XB(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.NOFRAMES:{At(t,e);break}}}function ZB(t,e){e.tagID===m.HTML&&(t.insertionMode=k.AFTER_AFTER_FRAMESET)}function QB(t,e){e.tagID===m.HTML?Xe(t,e):ii(t,e)}function ii(t,e){t.insertionMode=k.IN_BODY,ks(t,e)}function JB(t,e){switch(e.tagID){case m.HTML:{Xe(t,e);break}case m.NOFRAMES:{At(t,e);break}}}function e4(t,e){e.chars=Ee,t._insertCharacters(e)}function t4(t,e){t._insertCharacters(e),t.framesetOk=!1}function Z_(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==q.HTML&&t.openElements.currentTagId!==void 0&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}function n4(t,e){if(bF(e))Z_(t),t._startTagOutsideForeignContent(e);else{const n=t._getAdjustedCurrentElement(),r=t.treeAdapter.getNamespaceURI(n);r===q.MATHML?D_(e):r===q.SVG&&(EF(e),M_(e)),tm(e),e.selfClosing?t._appendElement(e,r):t._insertElement(e,r),e.ackSelfClosing=!0}}function r4(t,e){if(e.tagID===m.P||e.tagID===m.BR){Z_(t),t._endTagOutsideForeignContent(e);return}for(let n=t.openElements.stackTop;n>0;n--){const r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===q.HTML){t._endTagOutsideForeignContent(e);break}const a=t.treeAdapter.getTagName(r);if(a.toLowerCase()===e.tagName){e.tagName=a,t.openElements.shortenToLength(n);break}}}D.AREA,D.BASE,D.BASEFONT,D.BGSOUND,D.BR,D.COL,D.EMBED,D.FRAME,D.HR,D.IMG,D.INPUT,D.KEYGEN,D.LINK,D.META,D.PARAM,D.SOURCE,D.TRACK,D.WBR;const a4=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,i4=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ub={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Q_(t,e){const n=m4(t),r=sA("type",{handlers:{root:s4,element:o4,text:l4,comment:eC,doctype:u4,raw:d4},unknown:p4}),a={parser:n?new Pb(Ub):Pb.getFragmentParser(void 0,Ub),handle(o){r(o,a)},stitches:!1,options:e||{}};r(t,a),Cr(a,zn());const i=n?a.parser.document:a.parser.getFragment(),s=gP(i,{file:a.options.file});return a.stitches&&OI(s,"comment",function(o,l,u){const c=o;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===t.type?s.children[0]:s}function J_(t,e){let n=-1;if(t)for(;++n<t.length;)e.handle(t[n])}function s4(t,e){J_(t.children,e)}function o4(t,e){f4(t,e),J_(t.children,e),h4(t,e)}function l4(t,e){e.parser.tokenizer.state>4&&(e.parser.tokenizer.state=0);const n={type:ue.CHARACTER,chars:t.value,location:Ra(t)};Cr(e,zn(t)),e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)}function u4(t,e){const n={type:ue.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ra(t)};Cr(e,zn(t)),e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)}function c4(t,e){e.stitches=!0;const n=g4(t);if("children"in t&&"children"in n){const r=Q_({type:"root",children:t.children},e.options);n.children=r.children}eC({type:"comment",value:{stitch:n}},e)}function eC(t,e){const n=t.value,r={type:ue.COMMENT,data:n,location:Ra(t)};Cr(e,zn(t)),e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)}function d4(t,e){if(e.parser.tokenizer.preprocessor.html="",e.parser.tokenizer.preprocessor.pos=-1,e.parser.tokenizer.preprocessor.lastGapPos=-2,e.parser.tokenizer.preprocessor.gapStack=[],e.parser.tokenizer.preprocessor.skipNextNewLine=!1,e.parser.tokenizer.preprocessor.lastChunkWritten=!1,e.parser.tokenizer.preprocessor.endOfChunkHit=!1,e.parser.tokenizer.preprocessor.isEol=!1,tC(e,zn(t)),e.parser.tokenizer.write(e.options.tagfilter?t.value.replace(a4,"<$1$2"):t.value,!1),e.parser.tokenizer._runParsingLoop(),e.parser.tokenizer.state===72||e.parser.tokenizer.state===78){e.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=e.parser.tokenizer._consume();e.parser.tokenizer._callState(n)}}function p4(t,e){const n=t;if(e.options.passThrough&&e.options.passThrough.includes(n.type))c4(n,e);else{let r="";throw i4.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Cr(t,e){tC(t,e);const n=t.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=t.parser.tokenizer.preprocessor.line,n.location.endCol=t.parser.tokenizer.preprocessor.col+1,n.location.endOffset=t.parser.tokenizer.preprocessor.offset+1,t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)),t.parser.tokenizer.paused=!1,t.parser.tokenizer.inLoop=!1,t.parser.tokenizer.active=!1,t.parser.tokenizer.returnState=Ce.DATA,t.parser.tokenizer.charRefCode=-1,t.parser.tokenizer.consumedAfterSnapshot=-1,t.parser.tokenizer.currentLocation=null,t.parser.tokenizer.currentCharacterToken=null,t.parser.tokenizer.currentToken=null,t.parser.tokenizer.currentAttr={name:"",value:""}}function tC(t,e){if(e&&e.offset!==void 0){const n={startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:-1,endCol:-1,endOffset:-1};t.parser.tokenizer.preprocessor.lineStartPos=-e.column+1,t.parser.tokenizer.preprocessor.droppedBufferSize=e.offset,t.parser.tokenizer.preprocessor.line=e.line,t.parser.tokenizer.currentLocation=n}}function f4(t,e){const n=t.tagName.toLowerCase();if(e.parser.tokenizer.state===Ce.PLAINTEXT)return;Cr(e,zn(t));const r=e.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:xn.html;a===xn.html&&n==="svg"&&(a=xn.svg);const i=SP({...t,children:[]},{space:a===xn.svg?"svg":"html"}),s={type:ue.START_TAG,tagName:n,tagID:_r(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Ra(t)};e.parser.currentToken=s,e.parser._processToken(e.parser.currentToken),e.parser.tokenizer.lastStartTagName=n}function h4(t,e){const n=t.tagName.toLowerCase();if(!e.parser.tokenizer.inForeignNode&&xP.includes(n)||e.parser.tokenizer.state===Ce.PLAINTEXT)return;Cr(e,XS(t));const r={type:ue.END_TAG,tagName:n,tagID:_r(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ra(t)};e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken),n===e.parser.tokenizer.lastStartTagName&&(e.parser.tokenizer.state===Ce.RCDATA||e.parser.tokenizer.state===Ce.RAWTEXT||e.parser.tokenizer.state===Ce.SCRIPT_DATA)&&(e.parser.tokenizer.state=Ce.DATA)}function m4(t){const e=t.type==="root"?t.children[0]:t;return!!(e&&(e.type==="doctype"||e.type==="element"&&e.tagName.toLowerCase()==="html"))}function Ra(t){const e=zn(t)||{line:void 0,column:void 0,offset:void 0},n=XS(t)||{line:void 0,column:void 0,offset:void 0};return{startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function g4(t){return"children"in t?Im({...t,children:[]}):Im(t)}function b4(t){return function(e,n){return Q_(e,{...t,file:n})}}function E4(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function T4(t,e){if(t==null)return{};var n,r,a=E4(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function Jf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function y4(t){if(Array.isArray(t))return Jf(t)}function S4(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function A4(t,e){if(t){if(typeof t=="string")return Jf(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jf(t,e):void 0}}function N4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
142
142
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eh(t){return y4(t)||S4(t)||A4(t)||N4()}function ya(t){"@babel/helpers - typeof";return ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ya(t)}function v4(t,e){if(ya(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ya(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _4(t){var e=v4(t,"string");return ya(e)=="symbol"?e:e+""}function nC(t,e,n){return(e=_4(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function th(){return th=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},th.apply(null,arguments)}function Hb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function sr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hb(Object(n),!0).forEach(function(r){nC(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function C4(t){var e=t.length;if(e===0||e===1)return t;if(e===2)return[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])];if(e===3)return[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])];if(e>=4)return[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]}var vo={};function I4(t){if(t.length===0||t.length===1)return t;var e=t.join(".");return vo[e]||(vo[e]=C4(t)),vo[e]}function R4(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.filter(function(i){return i!=="token"}),a=I4(r);return a.reduce(function(i,s){return sr(sr({},i),n[s])},e)}function $b(t){return t.join(" ")}function x4(t,e){var n=0;return function(r){return n+=1,r.map(function(a,i){return rC({node:a,stylesheet:t,useInlineStyles:e,key:"code-segment-".concat(n,"-").concat(i)})})}}function rC(t){var e=t.node,n=t.stylesheet,r=t.style,a=r===void 0?{}:r,i=t.useInlineStyles,s=t.key,o=e.properties,l=e.type,u=e.tagName,c=e.value;if(l==="text")return c;if(u){var d=x4(n,i),p;if(!i)p=sr(sr({},o),{},{className:$b(o.className)});else{var f=Object.keys(n).reduce(function(T,y){return y.split(".").forEach(function(S){T.includes(S)||T.push(S)}),T},[]),h=o.className&&o.className.includes("token")?["token"]:[],g=o.className&&h.concat(o.className.filter(function(T){return!f.includes(T)}));p=sr(sr({},o),{},{className:$b(g)||void 0,style:R4(o.className,Object.assign({},o.style,a),n)})}var E=d(e.children);return Qe.createElement(u,th({key:s},p),E)}}const k4=(function(t,e){var n=t.listLanguages();return n.indexOf(e)!==-1});var w4=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function jb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function sn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jb(Object(n),!0).forEach(function(r){nC(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jb(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var O4=/\n/g;function L4(t){return t.match(O4)}function D4(t){var e=t.lines,n=t.startingLineNumber,r=t.style;return e.map(function(a,i){var s=i+n;return Qe.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(s):r},"".concat(s,`
|
|
143
143
|
`))})}function M4(t){var e=t.codeString,n=t.codeStyle,r=t.containerStyle,a=r===void 0?{float:"left",paddingRight:"10px"}:r,i=t.numberStyle,s=i===void 0?{}:i,o=t.startingLineNumber;return Qe.createElement("code",{style:Object.assign({},n,a)},D4({lines:e.replace(/\n$/,"").split(`
|
|
144
144
|
`),style:s,startingLineNumber:o}))}function P4(t){return"".concat(t.toString().length,".25em")}function aC(t,e){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(t),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:e},children:[{type:"text",value:t}]}}function iC(t,e,n){var r={display:"inline-block",minWidth:P4(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof t=="function"?t(e):t,i=sn(sn({},r),a);return i}function si(t){var e=t.children,n=t.lineNumber,r=t.lineNumberStyle,a=t.largestLineNumber,i=t.showInlineLineNumbers,s=t.lineProps,o=s===void 0?{}:s,l=t.className,u=l===void 0?[]:l,c=t.showLineNumbers,d=t.wrapLongLines,p=t.wrapLines,f=p===void 0?!1:p,h=f?sn({},typeof o=="function"?o(n):o):{};if(h.className=h.className?[].concat(eh(h.className.trim().split(/\s+/)),eh(u)):u,n&&i){var g=iC(r,n,a);e.unshift(aC(n,g))}return d&c&&(h.style=sn({display:"flex"},h.style)),{type:"element",tagName:"span",properties:h,children:e}}function sC(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r<t.length;r++){var a=t[r];if(a.type==="text")n.push(si({children:[a],className:eh(new Set(e))}));else if(a.children){var i=e.concat(a.properties.className);sC(a.children,i).forEach(function(s){return n.push(s)})}}return n}function F4(t,e,n,r,a,i,s,o,l){var u,c=sC(t.value),d=[],p=-1,f=0;function h(_,A){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return si({children:_,lineNumber:A,lineNumberStyle:o,largestLineNumber:s,showInlineLineNumbers:a,lineProps:n,className:v,showLineNumbers:r,wrapLongLines:l,wrapLines:e})}function g(_,A){if(r&&A&&a){var v=iC(o,A,s);_.unshift(aC(A,v))}return _}function E(_,A){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return e||v.length>0?h(_,A,v):g(_,A)}for(var T=function(){var A=c[f],v=A.children[0].value,R=L4(v);if(R){var I=v.split(`
|
|
@@ -147,7 +147,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
147
147
|
?|
|
|
148
148
|
|(?![\\s\\S])))+`,"m"),alias:s,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(e)}return lu}var uu,k0;function it(){if(k0)return uu;k0=1,uu=t,t.displayName="markupTemplating",t.aliases=[];function t(e){(function(n){function r(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,i,s,o){if(a.language===i){var l=a.tokenStack=[];a.code=a.code.replace(s,function(u){if(typeof o=="function"&&!o(u))return u;for(var c=l.length,d;a.code.indexOf(d=r(i,c))!==-1;)++c;return l[c]=u,d}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=n.languages[i];var s=0,o=Object.keys(a.tokenStack);function l(u){for(var c=0;c<u.length&&!(s>=o.length);c++){var d=u[c];if(typeof d=="string"||d.content&&typeof d.content=="string"){var p=o[s],f=a.tokenStack[p],h=typeof d=="string"?d:d.content,g=r(i,p),E=h.indexOf(g);if(E>-1){++s;var T=h.substring(0,E),y=new n.Token(i,n.tokenize(f,a.grammar),"language-"+i,f),S=h.substring(E+g.length),N=[];T&&N.push.apply(N,l([T])),N.push(y),S&&N.push.apply(N,l([S])),typeof d=="string"?u.splice.apply(u,[c,1].concat(N)):d.content=N}}else d.content&&l(d.content)}return u}l(a.tokens)}}})})(e)}return uu}var cu,w0;function m8(){if(w0)return cu;w0=1;var t=it();cu=e,e.displayName="django",e.aliases=["jinja2"];function e(n){n.register(t),(function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(s){i.buildPlaceholders(s,"django",a)}),r.hooks.add("after-tokenize",function(s){i.tokenizePlaceholders(s,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(s){i.buildPlaceholders(s,"jinja2",a)}),r.hooks.add("after-tokenize",function(s){i.tokenizePlaceholders(s,"jinja2")})})(n)}return cu}var du,O0;function g8(){if(O0)return du;O0=1,du=t,t.displayName="dnsZoneFile",t.aliases=[];function t(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}return du}var pu,L0;function b8(){if(L0)return pu;L0=1,pu=t,t.displayName="docker",t.aliases=["dockerfile"];function t(e){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return r}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,s=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return i}),o={pattern:RegExp(i),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(c,d){return c=c.replace(/<OPT>/g,function(){return s}).replace(/<SP>/g,function(){return a}),RegExp(c,d)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},n.languages.dockerfile=n.languages.docker})(e)}return pu}var fu,D0;function E8(){if(D0)return fu;D0=1,fu=t,t.displayName="dot",t.aliases=["gv"];function t(e){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function i(s,o){return RegExp(s.replace(/<ID>/g,function(){return r}),o)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:i(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:i(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(e)}return fu}var hu,M0;function T8(){if(M0)return hu;M0=1,hu=t,t.displayName="ebnf",t.aliases=[];function t(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return hu}var mu,P0;function y8(){if(P0)return mu;P0=1,mu=t,t.displayName="editorconfig",t.aliases=[];function t(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return mu}var gu,F0;function S8(){if(F0)return gu;F0=1,gu=t,t.displayName="eiffel",t.aliases=[];function t(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return gu}var bu,B0;function A8(){if(B0)return bu;B0=1;var t=it();bu=e,e.displayName="ejs",e.aliases=["eta"];function e(n){n.register(t),(function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs})(n)}return bu}var Eu,U0;function N8(){if(U0)return Eu;U0=1,Eu=t,t.displayName="elixir",t.aliases=[];function t(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}return Eu}var Tu,H0;function v8(){if(H0)return Tu;H0=1,Tu=t,t.displayName="elm",t.aliases=[];function t(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return Tu}var yu,$0;function _8(){if($0)return yu;$0=1;var t=Ms(),e=it();yu=n,n.displayName="erb",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(i){var s=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"erb",s)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"erb")})})(r)}return yu}var Su,j0;function C8(){if(j0)return Su;j0=1,Su=t,t.displayName="erlang",t.aliases=[];function t(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return Su}var Au,q0;function mC(){if(q0)return Au;q0=1,Au=t,t.displayName="lua",t.aliases=[];function t(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return Au}var Nu,z0;function I8(){if(z0)return Nu;z0=1;var t=mC(),e=it();Nu=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(i){var s=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"etlua",s)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})})(r)}return Nu}var vu,G0;function R8(){if(G0)return vu;G0=1,vu=t,t.displayName="excelFormula",t.aliases=[];function t(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}return vu}var _u,V0;function x8(){if(V0)return _u;V0=1,_u=t,t.displayName="factor",t.aliases=[];function t(e){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},s=function(c){return(c+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(c){return new RegExp("(^|\\s)(?:"+c.map(s).join("|")+")(?=\\s|$)")},l={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(l).forEach(function(c){i[c].pattern=o(l[c])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];i.combinators.pattern=o(u),n.languages.factor=i})(e)}return _u}var Cu,W0;function k8(){if(W0)return Cu;W0=1,Cu=t,t.displayName="$false",t.aliases=[];function t(e){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(e)}return Cu}var Iu,Y0;function w8(){if(Y0)return Iu;Y0=1,Iu=t,t.displayName="firestoreSecurityRules",t.aliases=[];function t(e){e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return Iu}var Ru,K0;function O8(){if(K0)return Ru;K0=1,Ru=t,t.displayName="flow",t.aliases=[];function t(e){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(e)}return Ru}var xu,X0;function L8(){if(X0)return xu;X0=1,xu=t,t.displayName="fortran",t.aliases=[];function t(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return xu}var ku,Z0;function D8(){if(Z0)return ku;Z0=1,ku=t,t.displayName="fsharp",t.aliases=[];function t(e){e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return ku}var wu,Q0;function M8(){if(Q0)return wu;Q0=1;var t=it();wu=e,e.displayName="ftl",e.aliases=[];function e(n){n.register(t),(function(r){for(var a=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)a=a.replace(/<expr>/g,function(){return a});a=a.replace(/<expr>/g,/[^\s\S]/.source);var s={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};s.string[1].inside.interpolation.inside.rest=s,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:s}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:s}}}},r.hooks.add("before-tokenize",function(o){var l=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(o,"ftl",l)}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"ftl")})})(n)}return wu}var Ou,J0;function P8(){if(J0)return Ou;J0=1,Ou=t,t.displayName="gap",t.aliases=[];function t(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}return Ou}var Lu,eT;function F8(){if(eT)return Lu;eT=1,Lu=t,t.displayName="gcode",t.aliases=[];function t(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return Lu}var Du,tT;function B8(){if(tT)return Du;tT=1,Du=t,t.displayName="gdscript",t.aliases=[];function t(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return Du}var Mu,nT;function U8(){if(nT)return Mu;nT=1,Mu=t,t.displayName="gedcom",t.aliases=[];function t(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return Mu}var Pu,rT;function H8(){if(rT)return Pu;rT=1,Pu=t,t.displayName="gherkin",t.aliases=[];function t(e){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}return Pu}var Fu,aT;function $8(){if(aT)return Fu;aT=1,Fu=t,t.displayName="git",t.aliases=[];function t(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return Fu}var Bu,iT;function j8(){if(iT)return Bu;iT=1;var t=Kn();Bu=e,e.displayName="glsl",e.aliases=[];function e(n){n.register(t),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return Bu}var Uu,sT;function q8(){if(sT)return Uu;sT=1,Uu=t,t.displayName="gml",t.aliases=[];function t(e){e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return Uu}var Hu,oT;function z8(){if(oT)return Hu;oT=1,Hu=t,t.displayName="gn",t.aliases=["gni"];function t(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}return Hu}var $u,lT;function G8(){if(lT)return $u;lT=1,$u=t,t.displayName="goModule",t.aliases=[];function t(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return $u}var ju,uT;function V8(){if(uT)return ju;uT=1,ju=t,t.displayName="go",t.aliases=[];function t(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}return ju}var qu,cT;function W8(){if(cT)return qu;cT=1,qu=t,t.displayName="graphql",t.aliases=[];function t(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function s(T){return a[i+T]}function o(T,y){y=y||0;for(var S=0;S<T.length;S++){var N=s(S+y);if(!N||N.type!==T[S])return!1}return!0}function l(T,y){for(var S=1,N=i;N<a.length;N++){var _=a[N],A=_.content;if(_.type==="punctuation"&&typeof A=="string"){if(T.test(A))S++;else if(y.test(A)&&(S--,S===0))return N}}return-1}function u(T,y){var S=T.alias;S?Array.isArray(S)||(T.alias=S=[S]):T.alias=S=[],S.push(y)}for(;i<a.length;){var c=a[i++];if(c.type==="keyword"&&c.content==="mutation"){var d=[];if(o(["definition-mutation","punctuation"])&&s(1).content==="("){i+=2;var p=l(/^\($/,/^\)$/);if(p===-1)continue;for(;i<p;i++){var f=s(0);f.type==="variable"&&(u(f,"variable-input"),d.push(f.content))}i=p+1}if(o(["punctuation","property-query"])&&s(0).content==="{"&&(i++,u(s(0),"property-mutation"),d.length>0)){var h=l(/^\{$/,/^\}$/);if(h===-1)continue;for(var g=i;g<h;g++){var E=a[g];E.type==="variable"&&d.indexOf(E.content)>=0&&u(E,"variable-input")}}}}})}return qu}var zu,dT;function Y8(){if(dT)return zu;dT=1,zu=t,t.displayName="groovy",t.aliases=[];function t(e){e.languages.groovy=e.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),e.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=e.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:e.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return zu}var Gu,pT;function K8(){if(pT)return Gu;pT=1;var t=Ms();Gu=e,e.displayName="haml",e.aliases=[];function e(n){n.register(t),(function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],s={},o=0,l=i.length;o<l;o++){var u=i[o];u=typeof u=="string"?{filter:u,language:u}:u,r.languages[u.language]&&(s["filter-"+u.filter]={pattern:RegExp(a.replace("{{filter_name}}",function(){return u.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[u.language,"language-"+u.language],inside:r.languages[u.language]}}})}r.languages.insertBefore("haml","filter",s)})(n)}return Gu}var Vu,fT;function X8(){if(fT)return Vu;fT=1;var t=it();Vu=e,e.displayName="handlebars",e.aliases=["hbs"];function e(n){n.register(t),(function(r){r.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars})(n)}return Vu}var Wu,hT;function um(){if(hT)return Wu;hT=1,Wu=t,t.displayName="haskell",t.aliases=["hs"];function t(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}return Wu}var Yu,mT;function Z8(){if(mT)return Yu;mT=1,Yu=t,t.displayName="haxe",t.aliases=[];function t(e){e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return Yu}var Ku,gT;function Q8(){if(gT)return Ku;gT=1,Ku=t,t.displayName="hcl",t.aliases=[];function t(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return Ku}var Xu,bT;function J8(){if(bT)return Xu;bT=1;var t=Kn();Xu=e,e.displayName="hlsl",e.aliases=[];function e(n){n.register(t),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return Xu}var Zu,ET;function eH(){if(ET)return Zu;ET=1,Zu=t,t.displayName="hoon",t.aliases=[];function t(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return Zu}var Qu,TT;function tH(){if(TT)return Qu;TT=1,Qu=t,t.displayName="hpkp",t.aliases=[];function t(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Qu}var Ju,yT;function nH(){if(yT)return Ju;yT=1,Ju=t,t.displayName="hsts",t.aliases=[];function t(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Ju}var ec,ST;function rH(){if(ST)return ec;ST=1,ec=t,t.displayName="http",t.aliases=[];function t(e){(function(n){function r(d){return RegExp("(^(?:"+d+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.languages,i={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},s={"application/json":!0,"application/xml":!0};function o(d){var p=d.replace(/^[a-z]+\//,""),f="\\w+/(?:[\\w.-]+\\+)+"+p+"(?![+\\w.-])";return"(?:"+d+"|"+f+")"}var l;for(var u in i)if(i[u]){l=l||{};var c=s[u]?o(u):u;l[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[u]}}l&&n.languages.insertBefore("http","header",l)})(e)}return ec}var tc,AT;function aH(){if(AT)return tc;AT=1,tc=t,t.displayName="ichigojam",t.aliases=[];function t(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return tc}var nc,NT;function iH(){if(NT)return nc;NT=1,nc=t,t.displayName="icon",t.aliases=[];function t(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return nc}var rc,vT;function sH(){if(vT)return rc;vT=1,rc=t,t.displayName="icuMessageFormat",t.aliases=[];function t(e){(function(n){function r(u,c){return c<=0?/[]/.source:u.replace(/<SELF>/g,function(){return r(u,c-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},s={pattern:a,greedy:!0,inside:{escape:i}},o=r(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return a.source}),8),l={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(o),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":l,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":l,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:s},l.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(e)}return rc}var ac,_T;function oH(){if(_T)return ac;_T=1;var t=um();ac=e,e.displayName="idris",e.aliases=["idr"];function e(n){n.register(t),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return ac}var ic,CT;function lH(){if(CT)return ic;CT=1,ic=t,t.displayName="iecst",t.aliases=[];function t(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return ic}var sc,IT;function uH(){if(IT)return sc;IT=1,sc=t,t.displayName="ignore",t.aliases=["gitignore","hgignore","npmignore"];function t(e){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(e)}return sc}var oc,RT;function cH(){if(RT)return oc;RT=1,oc=t,t.displayName="inform7",t.aliases=[];function t(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return oc}var lc,xT;function dH(){if(xT)return lc;xT=1,lc=t,t.displayName="ini",t.aliases=[];function t(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return lc}var uc,kT;function pH(){if(kT)return uc;kT=1,uc=t,t.displayName="io",t.aliases=[];function t(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}return uc}var cc,wT;function fH(){if(wT)return cc;wT=1,cc=t,t.displayName="j",t.aliases=[];function t(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return cc}var dc,OT;function cm(){if(OT)return dc;OT=1,dc=t,t.displayName="java",t.aliases=[];function t(e){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(e)}return dc}var pc,LT;function Ps(){if(LT)return pc;LT=1,pc=t,t.displayName="javadoclike",t.aliases=[];function t(e){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(s,o){var l="doc-comment",u=n.languages[s];if(u){var c=u[l];if(!c){var d={};d[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=n.languages.insertBefore(s,"comment",d),c=u[l]}if(c instanceof RegExp&&(c=u[l]={pattern:c}),Array.isArray(c))for(var p=0,f=c.length;p<f;p++)c[p]instanceof RegExp&&(c[p]={pattern:c[p]}),o(c[p]);else o(c)}}function i(s,o){typeof s=="string"&&(s=[s]),s.forEach(function(l){a(l,function(u){u.inside||(u.inside={}),u.inside.rest=o})})}Object.defineProperty(r,"addSupport",{value:i}),r.addSupport(["java","javascript","php"],r)})(e)}return pc}var fc,DT;function hH(){if(DT)return fc;DT=1;var t=cm(),e=Ps();fc=n,n.displayName="javadoc",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){var i=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,s=/#\s*\w+(?:\s*\([^()]*\))?/.source,o=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return s});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+o+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)})(r)}return fc}var hc,MT;function mH(){if(MT)return hc;MT=1,hc=t,t.displayName="javastacktrace",t.aliases=[];function t(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return hc}var mc,PT;function gH(){if(PT)return mc;PT=1,mc=t,t.displayName="jexl",t.aliases=[];function t(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return mc}var gc,FT;function bH(){if(FT)return gc;FT=1,gc=t,t.displayName="jolie",t.aliases=[];function t(e){e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return gc}var bc,BT;function EH(){if(BT)return bc;BT=1,bc=t,t.displayName="jq",t.aliases=[];function t(e){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},s=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:a,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=s})(e)}return bc}var Ec,UT;function TH(){if(UT)return Ec;UT=1,Ec=t,t.displayName="jsExtras",t.aliases=[];function t(e){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(u,c){return RegExp(u.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],i=0;i<a.length;i++){var s=a[i],o=n.languages.javascript[s];n.util.type(o)==="RegExp"&&(o=n.languages.javascript[s]={pattern:o});var l=o.inside||{};o.inside=l,l["maybe-class-name"]=/^[A-Z][\s\S]*/}})(e)}return Ec}var Tc,HT;function yH(){if(HT)return Tc;HT=1,Tc=t,t.displayName="jsTemplates",t.aliases=[];function t(e){(function(n){var r=n.languages.javascript["template-string"],a=r.pattern.source,i=r.inside.interpolation,s=i.inside["interpolation-punctuation"],o=i.pattern.source;function l(g,E){if(n.languages[g])return{pattern:RegExp("((?:"+E+")\\s*)"+a),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:g}}}}n.languages.javascript["template-string"]=[l("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),l("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),l("svg",/\bsvg/.source),l("markdown",/\b(?:markdown|md)/.source),l("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),l("sql",/\bsql/.source),r].filter(Boolean);function u(g,E){return"___"+E.toUpperCase()+"_"+g+"___"}function c(g,E,T){var y={code:g,grammar:E,language:T};return n.hooks.run("before-tokenize",y),y.tokens=n.tokenize(y.code,y.grammar),n.hooks.run("after-tokenize",y),y.tokens}function d(g){var E={};E["interpolation-punctuation"]=s;var T=n.tokenize(g,E);if(T.length===3){var y=[1,1];y.push.apply(y,c(T[1],n.languages.javascript,"javascript")),T.splice.apply(T,y)}return new n.Token("interpolation",T,i.alias,g)}function p(g,E,T){var y=n.tokenize(g,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),S=0,N={},_=y.map(function(I){if(typeof I=="string")return I;for(var O=I.content,w;g.indexOf(w=u(S++,T))!==-1;);return N[w]=O,w}).join(""),A=c(_,E,T),v=Object.keys(N);S=0;function R(I){for(var O=0;O<I.length;O++){if(S>=v.length)return;var w=I[O];if(typeof w=="string"||typeof w.content=="string"){var M=v[S],H=typeof w=="string"?w:w.content,F=H.indexOf(M);if(F!==-1){++S;var $=H.substring(0,F),U=d(N[M]),j=H.substring(F+M.length),P=[];if($&&P.push($),P.push(U),j){var W=[j];R(W),P.push.apply(P,W)}typeof w=="string"?(I.splice.apply(I,[O,1].concat(P)),O+=P.length-1):w.content=P}}else{var X=w.content;Array.isArray(X)?R(X):R([X])}}}return R(A),new n.Token(T,A,"language-"+T,g)}var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(g){if(!(g.language in f))return;function E(T){for(var y=0,S=T.length;y<S;y++){var N=T[y];if(typeof N!="string"){var _=N.content;if(!Array.isArray(_)){typeof _!="string"&&E([_]);continue}if(N.type==="template-string"){var A=_[1];if(_.length===3&&typeof A!="string"&&A.type==="embedded-code"){var v=h(A),R=A.alias,I=Array.isArray(R)?R[0]:R,O=n.languages[I];if(!O)continue;_[1]=p(v,O,I)}}else E(_)}}}E(g.tokens)});function h(g){return typeof g=="string"?g:Array.isArray(g)?g.map(h).join(""):h(g.content)}})(e)}return Tc}var yc,$T;function dm(){if($T)return yc;$T=1,yc=t,t.displayName="typescript",t.aliases=["ts"];function t(e){(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(e)}return yc}var Sc,jT;function SH(){if(jT)return Sc;jT=1;var t=Ps(),e=dm();Sc=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){var i=a.languages.javascript,s=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,o="(@(?:arg|argument|param|property)\\s+(?:"+s+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(o+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(o+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return s})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+s),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)})(r)}return Sc}var Ac,qT;function pm(){if(qT)return Ac;qT=1,Ac=t,t.displayName="json",t.aliases=["webmanifest"];function t(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}return Ac}var Nc,zT;function AH(){if(zT)return Nc;zT=1;var t=pm();Nc=e,e.displayName="json5",e.aliases=[];function e(n){n.register(t),(function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(n)}return Nc}var vc,GT;function NH(){if(GT)return vc;GT=1;var t=pm();vc=e,e.displayName="jsonp",e.aliases=[];function e(n){n.register(t),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return vc}var _c,VT;function vH(){if(VT)return _c;VT=1,_c=t,t.displayName="jsstacktrace",t.aliases=[];function t(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return _c}var Cc,WT;function gC(){if(WT)return Cc;WT=1,Cc=t,t.displayName="jsx",t.aliases=[];function t(e){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(c,d){return c=c.replace(/<S>/g,function(){return a}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return s}),RegExp(c,d)}s=o(s).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var l=function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(l).join(""):""},u=function(c){for(var d=[],p=0;p<c.length;p++){var f=c[p],h=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?d.length>0&&d[d.length-1].tagName===l(f.content[0].content[1])&&d.pop():f.content[f.content.length-1].content==="/>"||d.push({tagName:l(f.content[0].content[1]),openedBraces:0}):d.length>0&&f.type==="punctuation"&&f.content==="{"?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?d[d.length-1].openedBraces--:h=!0),(h||typeof f=="string")&&d.length>0&&d[d.length-1].openedBraces===0){var g=l(f);p<c.length-1&&(typeof c[p+1]=="string"||c[p+1].type==="plain-text")&&(g+=l(c[p+1]),c.splice(p+1,1)),p>0&&(typeof c[p-1]=="string"||c[p-1].type==="plain-text")&&(g=l(c[p-1])+g,c.splice(p-1,1),p--),c[p]=new n.Token("plain-text",g,null,g)}f.content&&typeof f.content!="string"&&u(f.content)}};n.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||u(c.tokens)})})(e)}return Cc}var Ic,YT;function _H(){if(YT)return Ic;YT=1,Ic=t,t.displayName="julia",t.aliases=[];function t(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return Ic}var Rc,KT;function CH(){if(KT)return Rc;KT=1,Rc=t,t.displayName="keepalived",t.aliases=[];function t(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return Rc}var xc,XT;function IH(){if(XT)return xc;XT=1,xc=t,t.displayName="keyman",t.aliases=[];function t(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return xc}var kc,ZT;function RH(){if(ZT)return kc;ZT=1,kc=t,t.displayName="kotlin",t.aliases=["kt","kts"];function t(e){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(e)}return kc}var wc,QT;function xH(){if(QT)return wc;QT=1,wc=t,t.displayName="kumir",t.aliases=["kum"];function t(e){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,s){return RegExp(i.replace(/<nonId>/g,r),s)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(e)}return wc}var Oc,JT;function kH(){if(JT)return Oc;JT=1,Oc=t,t.displayName="kusto",t.aliases=[];function t(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return Oc}var Lc,ey;function wH(){if(ey)return Lc;ey=1,Lc=t,t.displayName="latex",t.aliases=["tex","context"];function t(e){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(e)}return Lc}var Dc,ty;function Fs(){if(ty)return Dc;ty=1;var t=it();Dc=e,e.displayName="php",e.aliases=[];function e(n){n.register(t),(function(r){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],s=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,l=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:s,operator:o,punctuation:l};var u={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},c=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:u}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:u}}];r.languages.insertBefore("php","variable",{string:c,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:c,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:s,operator:o,punctuation:l}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(d){if(/<\?/.test(d.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(d,"php",p)}}),r.hooks.add("after-tokenize",function(d){r.languages["markup-templating"].tokenizePlaceholders(d,"php")})})(n)}return Dc}var Mc,ny;function OH(){if(ny)return Mc;ny=1;var t=it(),e=Fs();Mc=n,n.displayName="latte",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var i=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},i.tag),a.hooks.add("before-tokenize",function(s){if(s.language==="latte"){var o=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(s,"latte",o),s.grammar=i}}),a.hooks.add("after-tokenize",function(s){a.languages["markup-templating"].tokenizePlaceholders(s,"latte")})})(r)}return Mc}var Pc,ry;function LH(){if(ry)return Pc;ry=1,Pc=t,t.displayName="less",t.aliases=[];function t(e){e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return Pc}var Fc,ay;function fm(){if(ay)return Fc;ay=1,Fc=t,t.displayName="scheme",t.aliases=[];function t(e){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(a){for(var i in a)a[i]=a[i].replace(/<[\w\s]+>/g,function(s){return"(?:"+a[s].trim()+")"});return a[i]}})(e)}return Fc}var Bc,iy;function DH(){if(iy)return Bc;iy=1;var t=fm();Bc=e,e.displayName="lilypond",e.aliases=[];function e(n){n.register(t),(function(r){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,i=5,s=0;s<i;s++)a=a.replace(/<expr>/g,function(){return a});a=a.replace(/<expr>/g,/[^\s\S]/.source);var o=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};o["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=o,r.languages.ly=o})(n)}return Bc}var Uc,sy;function MH(){if(sy)return Uc;sy=1;var t=it();Uc=e,e.displayName="liquid",e.aliases=[];function e(n){n.register(t),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",a,function(s){var o=/^\{%-?\s*(\w+)/.exec(s);if(o){var l=o[1];if(l==="raw"&&!i)return i=!0,!0;if(l==="endraw")return i=!1,!0}return!i})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return Uc}var Hc,oy;function PH(){if(oy)return Hc;oy=1,Hc=t,t.displayName="lisp",t.aliases=[];function t(e){(function(n){function r(g){return RegExp(/(\()/.source+"(?:"+g+")"+/(?=[\s\)])/.source)}function a(g){return RegExp(/([\s([])/.source+"(?:"+g+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,s="&"+i,o="(\\()",l="(?=\\))",u="(?=\\s)",c=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,d={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+c+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},p={"lisp-marker":RegExp(s),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+c+/\)/.source),inside:d},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:d},f="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(o+c+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+f),inside:p},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+f),inside:p},keys:{pattern:RegExp("&key\\s+"+f+"(?:\\s+&allow-other-keys)?"),inside:p},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};d.lambda.inside.arguments=h,d.defun.inside.arguments=n.util.clone(h),d.defun.inside.arguments.inside.sublist=h,n.languages.lisp=d,n.languages.elisp=d,n.languages.emacs=d,n.languages["emacs-lisp"]=d})(e)}return Hc}var $c,ly;function FH(){if(ly)return $c;ly=1,$c=t,t.displayName="livescript",t.aliases=[];function t(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}return $c}var jc,uy;function BH(){if(uy)return jc;uy=1,jc=t,t.displayName="llvm",t.aliases=[];function t(e){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}return jc}var qc,cy;function UH(){if(cy)return qc;cy=1,qc=t,t.displayName="log",t.aliases=[];function t(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return qc}var zc,dy;function HH(){if(dy)return zc;dy=1,zc=t,t.displayName="lolcode",t.aliases=[];function t(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return zc}var Gc,py;function $H(){if(py)return Gc;py=1,Gc=t,t.displayName="magma",t.aliases=[];function t(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return Gc}var Vc,fy;function jH(){if(fy)return Vc;fy=1,Vc=t,t.displayName="makefile",t.aliases=[];function t(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return Vc}var Wc,hy;function qH(){if(hy)return Wc;hy=1,Wc=t,t.displayName="markdown",t.aliases=["md"];function t(e){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(p){return p=p.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+o+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+o+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(f){p!==f&&(n.languages.markdown[p].inside.content.inside[f]=n.languages.markdown[f])})}),n.hooks.add("after-tokenize",function(p){if(p.language!=="markdown"&&p.language!=="md")return;function f(h){if(!(!h||typeof h=="string"))for(var g=0,E=h.length;g<E;g++){var T=h[g];if(T.type!=="code"){f(T.content);continue}var y=T.content[1],S=T.content[3];if(y&&S&&y.type==="code-language"&&S.type==="code-block"&&typeof y.content=="string"){var N=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");N=(/[a-z][\w-]*/i.exec(N)||[""])[0].toLowerCase();var _="language-"+N;S.alias?typeof S.alias=="string"?S.alias=[S.alias,_]:S.alias.push(_):S.alias=[_]}}}f(p.tokens)}),n.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var f="",h=0,g=p.classes.length;h<g;h++){var E=p.classes[h],T=/language-(.+)/.exec(E);if(T){f=T[1];break}}var y=n.languages[f];if(y)p.content=n.highlight(d(p.content.value),y,f);else if(f&&f!=="none"&&n.plugins.autoloader){var S="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);p.attributes.id=S,n.plugins.autoloader.loadLanguages(f,function(){var N=document.getElementById(S);N&&(N.innerHTML=n.highlight(N.textContent,n.languages[f],f))})}}});var l=RegExp(n.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function d(p){var f=p.replace(l,"");return f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(h,g){if(g=g.toLowerCase(),g[0]==="#"){var E;return g[1]==="x"?E=parseInt(g.slice(2),16):E=Number(g.slice(1)),c(E)}else{var T=u[g];return T||h}}),f}n.languages.md=n.languages.markdown})(e)}return Wc}var Yc,my;function zH(){if(my)return Yc;my=1,Yc=t,t.displayName="matlab",t.aliases=[];function t(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return Yc}var Kc,gy;function GH(){if(gy)return Kc;gy=1,Kc=t,t.displayName="maxscript",t.aliases=[];function t(e){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}return Kc}var Xc,by;function VH(){if(by)return Xc;by=1,Xc=t,t.displayName="mel",t.aliases=[];function t(e){e.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},e.languages.mel.code.inside.rest=e.languages.mel}return Xc}var Zc,Ey;function WH(){if(Ey)return Zc;Ey=1,Zc=t,t.displayName="mermaid",t.aliases=[];function t(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return Zc}var Qc,Ty;function YH(){if(Ty)return Qc;Ty=1,Qc=t,t.displayName="mizar",t.aliases=[];function t(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return Qc}var Jc,yy;function KH(){if(yy)return Jc;yy=1,Jc=t,t.displayName="mongodb",t.aliases=[];function t(e){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(s){return s.replace("$","\\$")});var i="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(e)}return Jc}var ed,Sy;function XH(){if(Sy)return ed;Sy=1,ed=t,t.displayName="monkey",t.aliases=[];function t(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return ed}var td,Ay;function ZH(){if(Ay)return td;Ay=1,td=t,t.displayName="moonscript",t.aliases=["moon"];function t(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}return td}var nd,Ny;function QH(){if(Ny)return nd;Ny=1,nd=t,t.displayName="n1ql",t.aliases=[];function t(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return nd}var rd,vy;function JH(){if(vy)return rd;vy=1,rd=t,t.displayName="n4js",t.aliases=["n4jsd"];function t(e){e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}return rd}var ad,_y;function e$(){if(_y)return ad;_y=1,ad=t,t.displayName="nand2tetrisHdl",t.aliases=[];function t(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return ad}var id,Cy;function t$(){if(Cy)return id;Cy=1,id=t,t.displayName="naniscript",t.aliases=[];function t(e){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(o){var l=o.tokens;l.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var c=s(u);i(c)||(u.type="bad-line",u.content=c)}})});function i(o){for(var l="[]{}",u=[],c=0;c<o.length;c++){var d=o[c],p=l.indexOf(d);if(p!==-1){if(p%2===0)u.push(p+1);else if(u.pop()!==p)return!1}}return u.length===0}function s(o){return typeof o=="string"?o:Array.isArray(o)?o.map(s).join(""):s(o.content)}})(e)}return id}var sd,Iy;function n$(){if(Iy)return sd;Iy=1,sd=t,t.displayName="nasm",t.aliases=[];function t(e){e.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}return sd}var od,Ry;function r$(){if(Ry)return od;Ry=1,od=t,t.displayName="neon",t.aliases=[];function t(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return od}var ld,xy;function a$(){if(xy)return ld;xy=1,ld=t,t.displayName="nevod",t.aliases=[];function t(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return ld}var ud,ky;function i$(){if(ky)return ud;ky=1,ud=t,t.displayName="nginx",t.aliases=[];function t(e){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(e)}return ud}var cd,wy;function s$(){if(wy)return cd;wy=1,cd=t,t.displayName="nim",t.aliases=[];function t(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return cd}var dd,Oy;function o$(){if(Oy)return dd;Oy=1,dd=t,t.displayName="nix",t.aliases=[];function t(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}return dd}var pd,Ly;function l$(){if(Ly)return pd;Ly=1,pd=t,t.displayName="nsis",t.aliases=[];function t(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return pd}var fd,Dy;function u$(){if(Dy)return fd;Dy=1;var t=Kn();fd=e,e.displayName="objectivec",e.aliases=["objc"];function e(n){n.register(t),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return fd}var hd,My;function c$(){if(My)return hd;My=1,hd=t,t.displayName="ocaml",t.aliases=[];function t(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return hd}var md,Py;function d$(){if(Py)return md;Py=1;var t=Kn();md=e,e.displayName="opencl",e.aliases=[];function e(n){n.register(t),(function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",a),r.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",a))})(n)}return md}var gd,Fy;function p$(){if(Fy)return gd;Fy=1,gd=t,t.displayName="openqasm",t.aliases=["qasm"];function t(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}return gd}var bd,By;function f$(){if(By)return bd;By=1,bd=t,t.displayName="oz",t.aliases=[];function t(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return bd}var Ed,Uy;function h$(){if(Uy)return Ed;Uy=1,Ed=t,t.displayName="parigp",t.aliases=[];function t(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return Ed}var Td,Hy;function m$(){if(Hy)return Td;Hy=1,Td=t,t.displayName="parser",t.aliases=[];function t(e){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(e)}return Td}var yd,$y;function g$(){if($y)return yd;$y=1,yd=t,t.displayName="pascal",t.aliases=["objectpascal"];function t(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}return yd}var Sd,jy;function b$(){if(jy)return Sd;jy=1,Sd=t,t.displayName="pascaligo",t.aliases=[];function t(e){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return r}),i=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},s=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,l){return o[l]=i[l],o},{});i["class-name"].forEach(function(o){o.inside=s})})(e)}return Sd}var Ad,qy;function E$(){if(qy)return Ad;qy=1,Ad=t,t.displayName="pcaxis",t.aliases=["px"];function t(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}return Ad}var Nd,zy;function T$(){if(zy)return Nd;zy=1,Nd=t,t.displayName="peoplecode",t.aliases=["pcode"];function t(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}return Nd}var vd,Gy;function y$(){if(Gy)return vd;Gy=1,vd=t,t.displayName="perl",t.aliases=[];function t(e){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}return vd}var _d,Vy;function S$(){if(Vy)return _d;Vy=1;var t=Fs();_d=e,e.displayName="phpExtras",e.aliases=[];function e(n){n.register(t),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return _d}var Cd,Wy;function A$(){if(Wy)return Cd;Wy=1;var t=Fs(),e=Ps();Cd=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)})(r)}return Cd}var Id,Yy;function N$(){if(Yy)return Id;Yy=1;var t=om();Id=e,e.displayName="plsql",e.aliases=[];function e(n){n.register(t),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return Id}var Rd,Ky;function v$(){if(Ky)return Rd;Ky=1,Rd=t,t.displayName="powerquery",t.aliases=[];function t(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}return Rd}var xd,Xy;function _$(){if(Xy)return xd;Xy=1,xd=t,t.displayName="powershell",t.aliases=[];function t(e){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(e)}return xd}var kd,Zy;function C$(){if(Zy)return kd;Zy=1,kd=t,t.displayName="processing",t.aliases=[];function t(e){e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return kd}var wd,Qy;function I$(){if(Qy)return wd;Qy=1,wd=t,t.displayName="prolog",t.aliases=[];function t(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return wd}var Od,Jy;function R$(){if(Jy)return Od;Jy=1,Od=t,t.displayName="promql",t.aliases=[];function t(e){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],i=["offset"],s=r.concat(a,i);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+s.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}return Od}var Ld,e1;function x$(){if(e1)return Ld;e1=1,Ld=t,t.displayName="properties",t.aliases=[];function t(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return Ld}var Dd,t1;function k$(){if(t1)return Dd;t1=1,Dd=t,t.displayName="protobuf",t.aliases=[];function t(e){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(e)}return Dd}var Md,n1;function w$(){if(n1)return Md;n1=1,Md=t,t.displayName="psl",t.aliases=[];function t(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return Md}var Pd,r1;function O$(){if(r1)return Pd;r1=1,Pd=t,t.displayName="pug",t.aliases=[];function t(e){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},s=0,o=a.length;s<o;s++){var l=a[s];l=typeof l=="string"?{filter:l,language:l}:l,n.languages[l.language]&&(i["filter-"+l.filter]={pattern:RegExp(r.replace("<filter_name>",function(){return l.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[l.language,"language-"+l.language],inside:n.languages[l.language]}}})}n.languages.insertBefore("pug","filter",i)})(e)}return Pd}var Fd,a1;function L$(){if(a1)return Fd;a1=1,Fd=t,t.displayName="puppet",t.aliases=[];function t(e){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(e)}return Fd}var Bd,i1;function D$(){if(i1)return Bd;i1=1,Bd=t,t.displayName="pure",t.aliases=[];function t(e){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(i){var s=i;if(typeof i!="string"&&(s=i.alias,i=i.lang),n.languages[s]){var o={};o["inline-lang-"+s]={pattern:RegExp(a.replace("<lang>",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},o["inline-lang-"+s].inside.rest=n.util.clone(n.languages[s]),n.languages.insertBefore("pure","inline-lang",o)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(e)}return Bd}var Ud,s1;function M$(){if(s1)return Ud;s1=1,Ud=t,t.displayName="purebasic",t.aliases=[];function t(e){e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}return Ud}var Hd,o1;function P$(){if(o1)return Hd;o1=1;var t=um();Hd=e,e.displayName="purescript",e.aliases=["purs"];function e(n){n.register(t),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return Hd}var $d,l1;function F$(){if(l1)return $d;l1=1,$d=t,t.displayName="python",t.aliases=["py"];function t(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}return $d}var jd,u1;function B$(){if(u1)return jd;u1=1,jd=t,t.displayName="q",t.aliases=[];function t(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return jd}var qd,c1;function U$(){if(c1)return qd;c1=1,qd=t,t.displayName="qml",t.aliases=[];function t(e){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return r}).replace(/<comment>/g,function(){return a}),s=0;s<2;s++)i=i.replace(/<expr>/g,function(){return i});i=i.replace(/<expr>/g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(e)}return qd}var zd,d1;function H$(){if(d1)return zd;d1=1,zd=t,t.displayName="qore",t.aliases=[];function t(e){e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return zd}var Gd,p1;function $$(){if(p1)return Gd;p1=1,Gd=t,t.displayName="qsharp",t.aliases=["qs"];function t(e){(function(n){function r(h,g){return h.replace(/<<(\d+)>>/g,function(E,T){return"(?:"+g[+T]+")"})}function a(h,g,E){return RegExp(r(h,g),"")}function i(h,g){for(var E=0;E<g;E++)h=h.replace(/<<self>>/g,function(){return"(?:"+h+")"});return h.replace(/<<self>>/g,"[^\\s\\S]")}var s={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function o(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(o(s.type+" "+s.other)),u=/\b[A-Za-z_]\w*\b/.source,c=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),d={keyword:l,punctuation:/[<>()?,.:[\]]/},p=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[p]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[c]),lookbehind:!0,inside:d},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[c]),lookbehind:!0,inside:d}],keyword:l,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var f=i(r(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[p]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[f]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[f]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(e),e.languages.qs=e.languages.qsharp}return Gd}var Vd,f1;function j$(){if(f1)return Vd;f1=1,Vd=t,t.displayName="r",t.aliases=[];function t(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return Vd}var Wd,h1;function q$(){if(h1)return Wd;h1=1;var t=fm();Wd=e,e.displayName="racket",e.aliases=["rkt"];function e(n){n.register(t),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return Wd}var Yd,m1;function z$(){if(m1)return Yd;m1=1,Yd=t,t.displayName="reason",t.aliases=[];function t(e){e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}return Yd}var Kd,g1;function G$(){if(g1)return Kd;g1=1,Kd=t,t.displayName="regex",t.aliases=[];function t(e){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+a.source+")",l=RegExp(o+"-"+o),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":s,escape:a}},"special-escape":r,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":u}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}return Kd}var Xd,b1;function V$(){if(b1)return Xd;b1=1,Xd=t,t.displayName="rego",t.aliases=[];function t(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return Xd}var Zd,E1;function W$(){if(E1)return Zd;E1=1,Zd=t,t.displayName="renpy",t.aliases=["rpy"];function t(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}return Zd}var Qd,T1;function Y$(){if(T1)return Qd;T1=1,Qd=t,t.displayName="rest",t.aliases=[];function t(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return Qd}var Jd,y1;function K$(){if(y1)return Jd;y1=1,Jd=t,t.displayName="rip",t.aliases=[];function t(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return Jd}var ep,S1;function X$(){if(S1)return ep;S1=1,ep=t,t.displayName="roboconf",t.aliases=[];function t(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return ep}var tp,A1;function Z$(){if(A1)return tp;A1=1,tp=t,t.displayName="robotframework",t.aliases=[];function t(e){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(u,c){var d={};d["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var p in c)d[p]=c[p];return d.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},d.variable=a,d.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return u}),"im"),alias:"section",inside:d}}var s={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},l={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};n.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":o,documentation:s,property:l}),keywords:i("Keywords",{"keyword-name":o,documentation:s,property:l}),tasks:i("Tasks",{"task-name":o,documentation:s,property:l}),comment:r},n.languages.robot=n.languages.robotframework})(e)}return tp}var np,N1;function Q$(){if(N1)return np;N1=1,np=t,t.displayName="rust",t.aliases=[];function t(e){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,a=0;a<2;a++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(e)}return np}var rp,v1;function J$(){if(v1)return rp;v1=1,rp=t,t.displayName="sas",t.aliases=[];function t(e){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(r+"[bx]"),alias:"number"},s={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},l={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(r),greedy:!0},d=/[$%@.(){}\[\];,\\]/,p={pattern:/%?\b\w+(?=\()/,alias:"keyword"},f={function:p,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":s,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":i,punctuation:d,string:c},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},g={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},E={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},y=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,S={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return y}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return y}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:p,"arg-value":f["arg-value"],operator:f.operator,argument:f.arg,number:a,"numeric-constant":i,punctuation:d,string:c}},N={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":E,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":i,punctuation:d,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:N,"submit-statement":T,"global-statements":E,number:a,"numeric-constant":i,punctuation:d,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:N,"submit-statement":T,"global-statements":E,number:a,"numeric-constant":i,punctuation:d,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:f}},"cas-actions":S,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:f},step:l,keyword:N,function:p,format:h,altformat:g,"global-statements":E,number:a,"numeric-constant":i,punctuation:d,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return r}),"im"),lookbehind:!0,inside:f},"macro-keyword":o,"macro-variable":s,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":s,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:d}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:f},"cas-actions":S,comment:u,function:p,format:h,altformat:g,"numeric-constant":i,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:c,step:l,keyword:N,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:d}})(e)}return rp}var ap,_1;function ej(){if(_1)return ap;_1=1,ap=t,t.displayName="sass",t.aliases=[];function t(e){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(e)}return ap}var ip,C1;function tj(){if(C1)return ip;C1=1;var t=cm();ip=e,e.displayName="scala",e.aliases=[];function e(n){n.register(t),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return ip}var sp,I1;function nj(){if(I1)return sp;I1=1,sp=t,t.displayName="scss",t.aliases=[];function t(e){e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}return sp}var op,R1;function rj(){if(R1)return op;R1=1;var t=fC();op=e,e.displayName="shellSession",e.aliases=[];function e(n){n.register(t),(function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]})(n)}return op}var lp,x1;function aj(){if(x1)return lp;x1=1,lp=t,t.displayName="smali",t.aliases=[];function t(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return lp}var up,k1;function ij(){if(k1)return up;k1=1,up=t,t.displayName="smalltalk",t.aliases=[];function t(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return up}var cp,w1;function sj(){if(w1)return cp;w1=1;var t=it();cp=e,e.displayName="smarty",e.aliases=[];function e(n){n.register(t),(function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return a.source}),"g");r.hooks.add("before-tokenize",function(s){var o="{literal}",l="{/literal}",u=!1;r.languages["markup-templating"].buildPlaceholders(s,"smarty",i,function(c){return c===l&&(u=!1),u?!1:(c===o&&(u=!0),!0)})}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"smarty")})})(n)}return cp}var dp,O1;function oj(){if(O1)return dp;O1=1,dp=t,t.displayName="sml",t.aliases=["smlnj"];function t(e){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(e)}return dp}var pp,L1;function lj(){if(L1)return pp;L1=1,pp=t,t.displayName="solidity",t.aliases=["sol"];function t(e){e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}return pp}var fp,D1;function uj(){if(D1)return fp;D1=1,fp=t,t.displayName="solutionFile",t.aliases=[];function t(e){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(e)}return fp}var hp,M1;function cj(){if(M1)return hp;M1=1;var t=it();hp=e,e.displayName="soy",e.aliases=[];function e(n){n.register(t),(function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(s){var o=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,l="{literal}",u="{/literal}",c=!1;r.languages["markup-templating"].buildPlaceholders(s,"soy",o,function(d){return d===u&&(c=!1),c?!1:(d===l&&(c=!0),!0)})}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"soy")})})(n)}return hp}var mp,P1;function bC(){if(P1)return mp;P1=1,mp=t,t.displayName="turtle",t.aliases=[];function t(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}return mp}var gp,F1;function dj(){if(F1)return gp;F1=1;var t=bC();gp=e,e.displayName="sparql",e.aliases=["rq"];function e(n){n.register(t),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return gp}var bp,B1;function pj(){if(B1)return bp;B1=1,bp=t,t.displayName="splunkSpl",t.aliases=[];function t(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return bp}var Ep,U1;function fj(){if(U1)return Ep;U1=1,Ep=t,t.displayName="sqf",t.aliases=[];function t(e){e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}return Ep}var Tp,H1;function hj(){if(H1)return Tp;H1=1,Tp=t,t.displayName="squirrel",t.aliases=[];function t(e){e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return Tp}var yp,$1;function mj(){if($1)return yp;$1=1,yp=t,t.displayName="stan",t.aliases=[];function t(e){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(e)}return yp}var Sp,j1;function gj(){if(j1)return Sp;j1=1,Sp=t,t.displayName="stylus",t.aliases=[];function t(e){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}return Sp}var Ap,q1;function bj(){if(q1)return Ap;q1=1,Ap=t,t.displayName="swift",t.aliases=[];function t(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=e.languages.swift})}return Ap}var Np,z1;function Ej(){if(z1)return Np;z1=1,Np=t,t.displayName="systemd",t.aliases=[];function t(e){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r
|
|
149
149
|
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}return Np}var vp,G1;function hm(){if(G1)return vp;G1=1,vp=t,t.displayName="t4Templating",t.aliases=[];function t(e){(function(n){function r(i,s,o){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:s,alias:o}}}}function a(i){var s=n.languages[i],o="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",s,o),"class-feature":r("\\+",s,o),standard:r("",s,o)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(e)}return vp}var _p,V1;function Tj(){if(V1)return _p;V1=1;var t=hm(),e=Ds();_p=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(t),r.register(e),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return _p}var Cp,W1;function EC(){if(W1)return Cp;W1=1;var t=hC();Cp=e,e.displayName="vbnet",e.aliases=[];function e(n){n.register(t),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return Cp}var Ip,Y1;function yj(){if(Y1)return Ip;Y1=1;var t=hm(),e=EC();Ip=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(t),r.register(e),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return Ip}var Rp,K1;function TC(){if(K1)return Rp;K1=1,Rp=t,t.displayName="yaml",t.aliases=["yml"];function t(e){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(u,c){c=(c||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return u});return RegExp(d,c)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(o),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(e)}return Rp}var xp,X1;function Sj(){if(X1)return xp;X1=1;var t=TC();xp=e,e.displayName="tap",e.aliases=[];function e(n){n.register(t),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return xp}var kp,Z1;function Aj(){if(Z1)return kp;Z1=1,kp=t,t.displayName="tcl",t.aliases=[];function t(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return kp}var wp,Q1;function Nj(){if(Q1)return wp;Q1=1,wp=t,t.displayName="textile",t.aliases=[];function t(e){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(p,f){return RegExp(p.replace(/<MOD>/g,function(){return"(?:"+r+")"}).replace(/<PAR>/g,function(){return"(?:"+a+")"}),f||"")}var s={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:s},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:s},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:s},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:s},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")<MOD>+/.source),lookbehind:!0,inside:s},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:s},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=o.phrase.inside,u={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=l.inline.inside;c.bold.inside=u,c.italic.inside=u,c.inserted.inside=u,c.deleted.inside=u,c.span.inside=u;var d=l.table.inside;d.inline=u.inline,d.link=u.link,d.image=u.image,d.footnote=u.footnote,d.acronym=u.acronym,d.mark=u.mark})(e)}return wp}var Op,J1;function vj(){if(J1)return Op;J1=1,Op=t,t.displayName="toml",t.aliases=[];function t(e){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}return Op}var Lp,eS;function _j(){if(eS)return Lp;eS=1,Lp=t,t.displayName="tremor",t.aliases=[];function t(e){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(e)}return Lp}var Dp,tS;function Cj(){if(tS)return Dp;tS=1;var t=gC(),e=dm();Dp=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(t),r.register(e),(function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var s=a.languages.tsx.tag;s.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+s.pattern.source+")",s.pattern.flags),s.lookbehind=!0})(r)}return Dp}var Mp,nS;function Ij(){if(nS)return Mp;nS=1;var t=it();Mp=e,e.displayName="tt2",e.aliases=[];function e(n){n.register(t),(function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})})(n)}return Mp}var Pp,rS;function Rj(){if(rS)return Pp;rS=1;var t=it();Pp=e,e.displayName="twig",e.aliases=[];function e(n){n.register(t),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return Pp}var Fp,aS;function xj(){if(aS)return Fp;aS=1,Fp=t,t.displayName="typoscript",t.aliases=["tsconfig"];function t(e){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(e)}return Fp}var Bp,iS;function kj(){if(iS)return Bp;iS=1,Bp=t,t.displayName="unrealscript",t.aliases=["uc","uscript"];function t(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}return Bp}var Up,sS;function wj(){if(sS)return Up;sS=1,Up=t,t.displayName="uorazor",t.aliases=[];function t(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return Up}var Hp,oS;function Oj(){if(oS)return Hp;oS=1,Hp=t,t.displayName="uri",t.aliases=["url"];function t(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}return Hp}var $p,lS;function Lj(){if(lS)return $p;lS=1,$p=t,t.displayName="v",t.aliases=[];function t(e){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(e)}return $p}var jp,uS;function Dj(){if(uS)return jp;uS=1,jp=t,t.displayName="vala",t.aliases=[];function t(e){e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return jp}var qp,cS;function Mj(){if(cS)return qp;cS=1,qp=t,t.displayName="velocity",t.aliases=[];function t(e){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(e)}return qp}var zp,dS;function Pj(){if(dS)return zp;dS=1,zp=t,t.displayName="verilog",t.aliases=[];function t(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return zp}var Gp,pS;function Fj(){if(pS)return Gp;pS=1,Gp=t,t.displayName="vhdl",t.aliases=[];function t(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return Gp}var Vp,fS;function Bj(){if(fS)return Vp;fS=1,Vp=t,t.displayName="vim",t.aliases=[];function t(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return Vp}var Wp,hS;function Uj(){if(hS)return Wp;hS=1,Wp=t,t.displayName="visualBasic",t.aliases=[];function t(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}return Wp}var Yp,mS;function Hj(){if(mS)return Yp;mS=1,Yp=t,t.displayName="warpscript",t.aliases=[];function t(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return Yp}var Kp,gS;function $j(){if(gS)return Kp;gS=1,Kp=t,t.displayName="wasm",t.aliases=[];function t(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return Kp}var Xp,bS;function jj(){if(bS)return Xp;bS=1,Xp=t,t.displayName="webIdl",t.aliases=[];function t(e){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var s in n.languages["web-idl"])s!=="class-name"&&(i[s]=n.languages["web-idl"][s]);n.languages.webidl=n.languages["web-idl"]})(e)}return Xp}var Zp,ES;function qj(){if(ES)return Zp;ES=1,Zp=t,t.displayName="wiki",t.aliases=[];function t(e){e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}return Zp}var Qp,TS;function zj(){if(TS)return Qp;TS=1,Qp=t,t.displayName="wolfram",t.aliases=["mathematica","wl","nb"];function t(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}return Qp}var Jp,yS;function Gj(){if(yS)return Jp;yS=1,Jp=t,t.displayName="wren",t.aliases=[];function t(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return Jp}var ef,SS;function Vj(){if(SS)return ef;SS=1,ef=t,t.displayName="xeora",t.aliases=["xeoracube"];function t(e){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(e)}return ef}var tf,AS;function Wj(){if(AS)return tf;AS=1,tf=t,t.displayName="xmlDoc",t.aliases=[];function t(e){(function(n){function r(o,l){n.languages[o]&&n.languages.insertBefore(o,"comment",{"doc-comment":l})}var a=n.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},s={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",i),r("fsharp",i),r("vbnet",s)})(e)}return tf}var nf,NS;function Yj(){if(NS)return nf;NS=1,nf=t,t.displayName="xojo",t.aliases=[];function t(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return nf}var rf,vS;function Kj(){if(vS)return rf;vS=1,rf=t,t.displayName="xquery",t.aliases=[];function t(e){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(r).join("")},a=function(i){for(var s=[],o=0;o<i.length;o++){var l=i[o],u=!1;if(typeof l!="string"&&(l.type==="tag"&&l.content[0]&&l.content[0].type==="tag"?l.content[0].content[0].content==="</"?s.length>0&&s[s.length-1].tagName===r(l.content[0].content[1])&&s.pop():l.content[l.content.length-1].content==="/>"||s.push({tagName:r(l.content[0].content[1]),openedBraces:0}):s.length>0&&l.type==="punctuation"&&l.content==="{"&&(!i[o+1]||i[o+1].type!=="punctuation"||i[o+1].content!=="{")&&(!i[o-1]||i[o-1].type!=="plain-text"||i[o-1].content!=="{")?s[s.length-1].openedBraces++:s.length>0&&s[s.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?s[s.length-1].openedBraces--:l.type!=="comment"&&(u=!0)),(u||typeof l=="string")&&s.length>0&&s[s.length-1].openedBraces===0){var c=r(l);o<i.length-1&&(typeof i[o+1]=="string"||i[o+1].type==="plain-text")&&(c+=r(i[o+1]),i.splice(o+1,1)),o>0&&(typeof i[o-1]=="string"||i[o-1].type==="plain-text")&&(c=r(i[o-1])+c,i.splice(o-1,1),o--),/^\s+$/.test(c)?i[o]=c:i[o]=new n.Token("plain-text",c,null,c)}l.content&&typeof l.content!="string"&&a(l.content)}};n.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(e)}return rf}var af,_S;function Xj(){if(_S)return af;_S=1,af=t,t.displayName="yang",t.aliases=[];function t(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return af}var sf,CS;function Zj(){if(CS)return sf;CS=1,sf=t,t.displayName="zig",t.aliases=[];function t(e){(function(n){function r(c){return function(){return c}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",s=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,r(s)),l=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,r(i)),u="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+l+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,r(u)).replace(/<ALIGN>/g,r(s))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,r(u)).replace(/<ALIGN>/g,r(s))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(c){c.inside===null&&(c.inside=n.languages.zig)})})(e)}return sf}var of,IS;function Qj(){if(IS)return of;IS=1;var t=h5();return of=t,t.register(g5()),t.register(b5()),t.register(E5()),t.register(T5()),t.register(y5()),t.register(S5()),t.register(A5()),t.register(N5()),t.register(v5()),t.register(_5()),t.register(C5()),t.register(I5()),t.register(R5()),t.register(x5()),t.register(k5()),t.register(w5()),t.register(O5()),t.register(L5()),t.register(D5()),t.register(M5()),t.register(P5()),t.register(F5()),t.register(fC()),t.register(hC()),t.register(B5()),t.register(U5()),t.register(H5()),t.register($5()),t.register(j5()),t.register(q5()),t.register(z5()),t.register(G5()),t.register(V5()),t.register(W5()),t.register(Kn()),t.register(Y5()),t.register(K5()),t.register(X5()),t.register(Z5()),t.register(Q5()),t.register(J5()),t.register(e8()),t.register(t8()),t.register(n8()),t.register(lm()),t.register(r8()),t.register(Ds()),t.register(a8()),t.register(i8()),t.register(s8()),t.register(o8()),t.register(l8()),t.register(u8()),t.register(c8()),t.register(d8()),t.register(p8()),t.register(f8()),t.register(h8()),t.register(m8()),t.register(g8()),t.register(b8()),t.register(E8()),t.register(T8()),t.register(y8()),t.register(S8()),t.register(A8()),t.register(N8()),t.register(v8()),t.register(_8()),t.register(C8()),t.register(I8()),t.register(R8()),t.register(x8()),t.register(k8()),t.register(w8()),t.register(O8()),t.register(L8()),t.register(D8()),t.register(M8()),t.register(P8()),t.register(F8()),t.register(B8()),t.register(U8()),t.register(H8()),t.register($8()),t.register(j8()),t.register(q8()),t.register(z8()),t.register(G8()),t.register(V8()),t.register(W8()),t.register(Y8()),t.register(K8()),t.register(X8()),t.register(um()),t.register(Z8()),t.register(Q8()),t.register(J8()),t.register(eH()),t.register(tH()),t.register(nH()),t.register(rH()),t.register(aH()),t.register(iH()),t.register(sH()),t.register(oH()),t.register(lH()),t.register(uH()),t.register(cH()),t.register(dH()),t.register(pH()),t.register(fH()),t.register(cm()),t.register(hH()),t.register(Ps()),t.register(mH()),t.register(gH()),t.register(bH()),t.register(EH()),t.register(TH()),t.register(yH()),t.register(SH()),t.register(pm()),t.register(AH()),t.register(NH()),t.register(vH()),t.register(gC()),t.register(_H()),t.register(CH()),t.register(IH()),t.register(RH()),t.register(xH()),t.register(kH()),t.register(wH()),t.register(OH()),t.register(LH()),t.register(DH()),t.register(MH()),t.register(PH()),t.register(FH()),t.register(BH()),t.register(UH()),t.register(HH()),t.register(mC()),t.register($H()),t.register(jH()),t.register(qH()),t.register(it()),t.register(zH()),t.register(GH()),t.register(VH()),t.register(WH()),t.register(YH()),t.register(KH()),t.register(XH()),t.register(ZH()),t.register(QH()),t.register(JH()),t.register(e$()),t.register(t$()),t.register(n$()),t.register(r$()),t.register(a$()),t.register(i$()),t.register(s$()),t.register(o$()),t.register(l$()),t.register(u$()),t.register(c$()),t.register(d$()),t.register(p$()),t.register(f$()),t.register(h$()),t.register(m$()),t.register(g$()),t.register(b$()),t.register(E$()),t.register(T$()),t.register(y$()),t.register(S$()),t.register(Fs()),t.register(A$()),t.register(N$()),t.register(v$()),t.register(_$()),t.register(C$()),t.register(I$()),t.register(R$()),t.register(x$()),t.register(k$()),t.register(w$()),t.register(O$()),t.register(L$()),t.register(D$()),t.register(M$()),t.register(P$()),t.register(F$()),t.register(B$()),t.register(U$()),t.register(H$()),t.register($$()),t.register(j$()),t.register(q$()),t.register(z$()),t.register(G$()),t.register(V$()),t.register(W$()),t.register(Y$()),t.register(K$()),t.register(X$()),t.register(Z$()),t.register(Ms()),t.register(Q$()),t.register(J$()),t.register(ej()),t.register(tj()),t.register(fm()),t.register(nj()),t.register(rj()),t.register(aj()),t.register(ij()),t.register(sj()),t.register(oj()),t.register(lj()),t.register(uj()),t.register(cj()),t.register(dj()),t.register(pj()),t.register(fj()),t.register(om()),t.register(hj()),t.register(mj()),t.register(gj()),t.register(bj()),t.register(Ej()),t.register(Tj()),t.register(hm()),t.register(yj()),t.register(Sj()),t.register(Aj()),t.register(Nj()),t.register(vj()),t.register(_j()),t.register(Cj()),t.register(Ij()),t.register(bC()),t.register(Rj()),t.register(dm()),t.register(xj()),t.register(kj()),t.register(wj()),t.register(Oj()),t.register(Lj()),t.register(Dj()),t.register(EC()),t.register(Mj()),t.register(Pj()),t.register(Fj()),t.register(Bj()),t.register(Uj()),t.register(Hj()),t.register($j()),t.register(jj()),t.register(qj()),t.register(zj()),t.register(Gj()),t.register(Vj()),t.register(Wj()),t.register(Yj()),t.register(Kj()),t.register(TC()),t.register(Xj()),t.register(Zj()),of}var Jj=Qj();const e9=jC(Jj);var yC=H4(e9,m5);yC.supportedLanguages=$4;const t9={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}};function n9(t){const e=Y.c(8),{language:n,content:r,fillHeight:a}=t,i=a===void 0?!1:a,s=n||"text",o=i?"100%":void 0,l=i?"100%":void 0;let u;e[0]!==o||e[1]!==l?(u={margin:0,padding:"1rem",fontSize:"0.8rem",borderRadius:"0.5rem",background:"#282c34",position:"relative",overflowX:"hidden",overflowY:"visible",width:"100%",maxWidth:"100%",display:"block",wordBreak:"break-word",overflowWrap:"break-word",height:o,minHeight:l},e[0]=o,e[1]=l,e[2]=u):u=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c={className:"font-mono",style:{wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"pre-wrap"}},e[3]=c):c=e[3];let d;return e[4]!==r||e[5]!==s||e[6]!==u?(d=b.jsx(yC,{language:s,style:t9,customStyle:u,codeTagProps:c,wrapLongLines:!0,children:r}),e[4]=r,e[5]=s,e[6]=u,e[7]=d):d=e[7],d}function SC(){const t=Y.c(3),[e,n]=L.useState(!1);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=async s=>{await navigator.clipboard.writeText(s),n(!0),setTimeout(()=>n(!1),2e3)},t[0]=r):r=t[0];const a=r;let i;return t[1]!==e?(i={handleCopy:a,copied:e},t[1]=e,t[2]=i):i=t[2],i}function r9(t){const e=Y.c(12),n=L.useRef(null),{handleCopy:r,copied:a}=SC(),i=a9;let s;e[0]!==r?(s=async()=>{const p=i(n.current);await r(p)},e[0]=r,e[1]=s):s=e[1];const o=s;let l;e[2]!==a?(l=a?b.jsx(qn,{size:12}):b.jsx(ds,{size:12}),e[2]=a,e[3]=l):l=e[3];let u;e[4]!==o||e[5]!==l?(u=b.jsx("div",{className:"flex justify-end items-center",children:b.jsxs(ke,{variant:"ghost",onClick:o,"aria-label":"Copy as CSV",className:"text-muted-foreground hover:text-foreground h-6 text-[10px]",type:"button",children:["Copy as CSV",l]})}),e[4]=o,e[5]=l,e[6]=u):u=e[6];let c;e[7]!==t?(c=b.jsx("div",{className:"overflow-x-auto mb-4 rounded-lg border border-border",children:b.jsx("table",{ref:n,...t,className:"min-w-full border-collapse text-sm",children:t.children})}),e[7]=t,e[8]=c):c=e[8];let d;return e[9]!==u||e[10]!==c?(d=b.jsxs(b.Fragment,{children:[u,c]}),e[9]=u,e[10]=c,e[11]=d):d=e[11],d}function a9(t){return t?Array.from(t.querySelectorAll("tr")).map(i9).join(`
|
|
150
|
-
`):""}function i9(t){return Array.from(t.querySelectorAll("th,td")).map(s9).join(",")}function s9(t){let e=t.textContent||"";return e=e.replace(/"/g,'""'),e.search(/([",\n])/g)>=0&&(e=`"${e}"`),e}const o9=[
|
|
150
|
+
`):""}function i9(t){return Array.from(t.querySelectorAll("th,td")).map(s9).join(",")}function s9(t){let e=t.textContent||"";return e=e.replace(/"/g,'""'),e.search(/([",\n])/g)>=0&&(e=`"${e}"`),e}const o9=[MI],l9=[b4],u9={...LI,table:t=>b.jsx(r9,{...t})},AC=L.memo(t=>{const e=Y.c(2),{content:n}=t;let r;return e[0]!==n?(r=b.jsx(DI,{remarkPlugins:o9,rehypePlugins:l9,components:u9,children:n}),e[0]=n,e[1]=r):r=e[1],r},(t,e)=>t.content===e.content);function c9(t){const e=Y.c(19),{language:n,content:r}=t,{handleCopy:a,copied:i}=SC(),s=n||"text";let o;e[0]!==s?(o=b.jsx("span",{className:"text-xs font-mono uppercase text-muted-foreground tracking-widest select-none",children:s}),e[0]=s,e[1]=o):o=e[1];let l;e[2]!==r||e[3]!==a?(l=()=>a(r),e[2]=r,e[3]=a,e[4]=l):l=e[4];let u;e[5]!==i?(u=i?b.jsx(qn,{size:14}):b.jsx(ds,{size:14}),e[5]=i,e[6]=u):u=e[6];let c;e[7]!==l||e[8]!==u?(c=b.jsx(ke,{size:"icon",variant:"ghost",onClick:l,"aria-label":"Copy code",className:"text-muted-foreground hover:text-foreground rounded-lg h-8 w-8",children:u}),e[7]=l,e[8]=u,e[9]=c):c=e[9];let d;e[10]!==o||e[11]!==c?(d=b.jsxs("div",{className:"flex items-center justify-between p-1 pl-4 bg-muted border-b border-border",children:[o,c]}),e[10]=o,e[11]=c,e[12]=d):d=e[12];let p;e[13]!==r||e[14]!==n?(p=b.jsx(n9,{language:n,content:r}),e[13]=r,e[14]=n,e[15]=p):p=e[15];let f;return e[16]!==d||e[17]!==p?(f=b.jsxs("div",{className:"my-4 rounded-lg bg-muted overflow-hidden border border-border grid min-w-0",children:[d,p]}),e[16]=d,e[17]=p,e[18]=f):f=e[18],f}AC.displayName="MemoizedMarkdownBlock";const NC=t=>{const e=Y.c(7),{id:n,text:r}=t;let a;e[0]!==r?(a=xI.lexer(r),e[0]=r,e[1]=a):a=e[1];const i=a;let s;if(e[2]!==i||e[3]!==n){let o;e[5]!==n?(o=(l,u)=>l.type==="code"?b.jsx(c9,{language:l.lang,content:l.text},`${n}-block_${u}`):b.jsx(AC,{content:l.raw},`${n}-block_${u}`),e[5]=n,e[6]=o):o=e[6],s=i.map(o),e[2]=i,e[3]=n,e[4]=s}else s=e[4];return s};NC.displayName="MemoizedMarkdown";function vC(t){const e=Y.c(16),{id:n,part:r,copyable:a,extraActions:i,alwaysShowActions:s}=t,o=a===void 0?!1:a,l=s===void 0?!1:s,{handleCopy:u}=WS(),[c,d]=L.useState(!1);let p;e[0]!==u||e[1]!==r.text?(p=async()=>{await u(r.text),d(!0),setTimeout(()=>d(!1),2e3)},e[0]=u,e[1]=r.text,e[2]=p):p=e[2];const f=p,h=o&&i,g=h||i;let E;e[3]!==n||e[4]!==r.text?(E=b.jsx(NC,{id:n,text:r.text}),e[3]=n,e[4]=r.text,e[5]=E):E=e[5];let T;e[6]!==l||e[7]!==i||e[8]!==f||e[9]!==c||e[10]!==g||e[11]!==h?(T=g&&b.jsxs("div",{className:ee("flex w-full items-center gap-2 text-sm text-muted-foreground transition-all duration-200 mt-1 py-1",l?"opacity-100":"opacity-0 pointer-events-none group-hover/part:opacity-100 group-hover/part:pointer-events-auto"),children:[i,h&&i&&b.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),h&&b.jsx("button",{type:"button",onClick:f,className:"text-muted-foreground [@media(hover:hover)]:hover:text-foreground transition-colors active:scale-[0.97]","aria-label":"Copy message",children:c?b.jsx(qn,{className:"size-4"}):b.jsx(ds,{className:"size-4"})})]}),e[6]=l,e[7]=i,e[8]=f,e[9]=c,e[10]=g,e[11]=h,e[12]=T):T=e[12];let y;return e[13]!==E||e[14]!==T?(y=b.jsxs("div",{className:"group/part relative",children:[E,T]}),e[13]=E,e[14]=T,e[15]=y):y=e[15],y}const RS=["default-src 'none'","script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'","style-src 'unsafe-inline'","img-src * data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src blob:","form-action 'none'","base-uri 'none'"].join("; ");function d9(t,e={}){const r=`<meta http-equiv="Content-Security-Policy" content="${f9(e)}">`,a=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,i=t.match(a);if(i){const c=(i.index??0)+i[0].length;return t.slice(0,c)+`
|
|
151
151
|
`+r+t.slice(c)}const s=/<html(\s[^>]*)?>|<HTML(\s[^>]*)?>/i,o=t.match(s);if(o){const c=(o.index??0)+o[0].length;return t.slice(0,c)+`
|
|
152
152
|
<head>
|
|
153
153
|
`+r+`
|
|
@@ -157,7 +157,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
157
157
|
</head>`+t.slice(c)}return`<head>
|
|
158
158
|
`+r+`
|
|
159
159
|
</head>
|
|
160
|
-
`+t}const p9=/^https?:\/\/[a-zA-Z0-9._-]+(:\d+)?$/;function Wa(t){return!t||t.length===0?[]:t.filter(e=>p9.test(e))}function f9(t){if(t.csp)return t.csp;const e=t.resourceCsp;if(!e)return RS;const n=Wa(e.resourceDomains),r=Wa(e.connectDomains),a=Wa(e.frameDomains),i=Wa(e.baseUriDomains),s=n.length>0,o=r.length>0,l=a.length>0,u=i.length>0;if(!s&&!o&&!l&&!u)return RS;const c=n.join(" ");return["default-src 'none'",s?`script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval' ${c}`:"script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'",s?`style-src 'unsafe-inline' ${c}`:"style-src 'unsafe-inline'",s?`img-src * data: blob: ${c}`:"img-src * data: blob:",s?`font-src data: ${c}`:"font-src data:",o?`connect-src ${r.join(" ")}`:"connect-src 'none'",l?`frame-src ${a.join(" ")}`:"frame-src 'none'","worker-src blob:","form-action 'none'",u?`base-uri ${i.join(" ")}`:"base-uri 'none'"].join("; ")}const h9={name:"MCP Mesh",version:"1.0.0"},m9={openLinks:{},serverTools:{},serverResources:{},logging:{},message:{}},g9=15e3;function b9(){return typeof window>"u"?"light":window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function E9(t,e){return{theme:b9(),displayMode:t,availableDisplayModes:["inline","fullscreen"],...e!=null&&{containerDimensions:{maxHeight:e}}}}class T9{bridge=null;timeout=null;disposed=!1;snapshot;listeners=new Set;config;constructor(e){this.config=e,this.snapshot=Object.freeze({height:e.minHeight,isLoading:!0,error:null})}subscribe=e=>(this.listeners.add(e),()=>this.listeners.delete(e));getSnapshot=()=>this.snapshot;updateConfig(e){const n=this.config;this.config=e,!(!this.bridge||this.disposed)&&(e.toolInput!==n.toolInput&&e.toolInput!=null&&this.bridge.sendToolInput({arguments:e.toolInput}),e.toolResult!==n.toolResult&&e.toolResult!=null&&this.bridge.sendToolResult(e.toolResult))}set(e){const n=this.snapshot,r={...n,...e};if(!(r.height===n.height&&r.isLoading===n.isLoading&&r.error===n.error)){this.snapshot=Object.freeze(r);for(const a of this.listeners)a()}}teardown(){this.disposed=!0,this.bridge&&(this.bridge.teardownResource({}).catch(()=>{}),this.bridge.close(),this.bridge=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}attach=e=>{if(this.teardown(),this.disposed=!1,this.set({height:this.config.minHeight,isLoading:!0,error:null}),!!e){e.onerror=()=>{this.disposed||this.set({error:"Failed to load app",isLoading:!1})};try{const{client:n,displayMode:r,maxHeight:a}=this.config,i=E9(r,a),s=new
|
|
160
|
+
`+t}const p9=/^https?:\/\/[a-zA-Z0-9._-]+(:\d+)?$/;function Wa(t){return!t||t.length===0?[]:t.filter(e=>p9.test(e))}function f9(t){if(t.csp)return t.csp;const e=t.resourceCsp;if(!e)return RS;const n=Wa(e.resourceDomains),r=Wa(e.connectDomains),a=Wa(e.frameDomains),i=Wa(e.baseUriDomains),s=n.length>0,o=r.length>0,l=a.length>0,u=i.length>0;if(!s&&!o&&!l&&!u)return RS;const c=n.join(" ");return["default-src 'none'",s?`script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval' ${c}`:"script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'",s?`style-src 'unsafe-inline' ${c}`:"style-src 'unsafe-inline'",s?`img-src * data: blob: ${c}`:"img-src * data: blob:",s?`font-src data: ${c}`:"font-src data:",o?`connect-src ${r.join(" ")}`:"connect-src 'none'",l?`frame-src ${a.join(" ")}`:"frame-src 'none'","worker-src blob:","form-action 'none'",u?`base-uri ${i.join(" ")}`:"base-uri 'none'"].join("; ")}const h9={name:"MCP Mesh",version:"1.0.0"},m9={openLinks:{},serverTools:{},serverResources:{},logging:{},message:{}},g9=15e3;function b9(){return typeof window>"u"?"light":window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function E9(t,e){return{theme:b9(),displayMode:t,availableDisplayModes:["inline","fullscreen"],...e!=null&&{containerDimensions:{maxHeight:e}}}}class T9{bridge=null;timeout=null;disposed=!1;snapshot;listeners=new Set;config;constructor(e){this.config=e,this.snapshot=Object.freeze({height:e.minHeight,isLoading:!0,error:null})}subscribe=e=>(this.listeners.add(e),()=>this.listeners.delete(e));getSnapshot=()=>this.snapshot;updateConfig(e){const n=this.config;this.config=e,!(!this.bridge||this.disposed)&&(e.toolInput!==n.toolInput&&e.toolInput!=null&&this.bridge.sendToolInput({arguments:e.toolInput}),e.toolResult!==n.toolResult&&e.toolResult!=null&&this.bridge.sendToolResult(e.toolResult))}set(e){const n=this.snapshot,r={...n,...e};if(!(r.height===n.height&&r.isLoading===n.isLoading&&r.error===n.error)){this.snapshot=Object.freeze(r);for(const a of this.listeners)a()}}teardown(){this.disposed=!0,this.bridge&&(this.bridge.teardownResource({}).catch(()=>{}),this.bridge.close(),this.bridge=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}attach=e=>{if(this.teardown(),this.disposed=!1,this.set({height:this.config.minHeight,isLoading:!0,error:null}),!!e){e.onerror=()=>{this.disposed||this.set({error:"Failed to load app",isLoading:!1})};try{const{client:n,displayMode:r,maxHeight:a}=this.config,i=E9(r,a),s=new PI(n,h9,m9,{hostContext:i});this.bridge=s,this.registerHandlers(s),this.startInitTimeout(),this.registerInitHandler(s),this.connectTransport(s,e)}catch(n){this.clearTimeout(),console.error("Failed to create AppBridge:",n),this.set({error:n instanceof Error?n.message:"Unknown error",isLoading:!1})}}};registerHandlers(e){e.onopenlink=async({url:n})=>{let r=null;try{r=new URL(n)}catch{}if(!r||!["http:","https:"].includes(r.protocol))throw new Error("Only http and https URLs are allowed");return window.open(n,"_blank","noopener,noreferrer"),{}},e.onmessage=async n=>(this.config.onMessage?.(n),{}),e.onsizechange=({height:n})=>{if(!this.disposed&&n!=null){const{minHeight:r,maxHeight:a}=this.config;this.set({height:Math.max(r,Math.min(a,n))})}},e.onloggingmessage=({level:n,data:r})=>{console[n==="error"?"error":"debug"](`[MCP App ${this.config.toolName??"unknown"}]`,r)}}registerInitHandler(e){e.oninitialized=()=>{if(this.disposed)return;this.clearTimeout(),this.set({isLoading:!1});const{toolInput:n,toolResult:r}=this.config;n!=null&&e.sendToolInput({arguments:n}),r!=null&&e.sendToolResult(r)}}startInitTimeout(){this.timeout=setTimeout(()=>{this.disposed||this.set({error:"App took too long to load",isLoading:!1})},g9)}clearTimeout(){this.timeout&&(globalThis.clearTimeout(this.timeout),this.timeout=null)}connectTransport(e,n){if(!n.contentWindow){console.warn("iframe contentWindow not yet available");return}const r=new FI(n.contentWindow,n.contentWindow);e.connect(r).catch(a=>{this.disposed||(this.clearTimeout(),console.error("AppBridge connect failed:",a),this.set({error:a instanceof Error?a.message:"Connection failed",isLoading:!1}))})}}function y9(t){const e=L.useRef(new T9(t));L.useEffect(()=>{e.current.updateConfig(t)},[t]);const{height:n,isLoading:r,error:a}=L.useSyncExternalStore(e.current.subscribe,e.current.getSnapshot);return{height:n,isLoading:r,error:a,iframeRef:e.current.attach}}function S9(t){const e=t?.contents?.[0];return!e||!("text"in e)||!e.text?null:d9(e.text,{resourceCsp:e._meta?.ui?.csp})}function A9(t){const e=Y.c(37),{resourceURI:n,toolName:r,toolInput:a,toolResult:i,displayMode:s,minHeight:o,maxHeight:l,client:u,onMessage:c,className:d}=t,p=s===void 0?"inline":s,f=o===void 0?150:o,h=l===void 0?600:l;let g;e[0]!==u||e[1]!==n?(g={client:u,uri:n,staleTime:3e4},e[0]=u,e[1]=n,e[2]=g):g=e[2];const{data:E}=ZC(g),T=S9(E);let y;e[3]!==u||e[4]!==p||e[5]!==h||e[6]!==f||e[7]!==c||e[8]!==a||e[9]!==r||e[10]!==i?(y={client:u,displayMode:p,minHeight:f,maxHeight:h,toolName:r,toolInput:a,toolResult:i,onMessage:c},e[3]=u,e[4]=p,e[5]=h,e[6]=f,e[7]=c,e[8]=a,e[9]=r,e[10]=i,e[11]=y):y=e[11];const{height:S,isLoading:N,error:_,iframeRef:A}=y9(y);if(!T)return null;if(_){let U;e[12]!==d?(U=ee("flex items-center justify-center p-4 text-destructive bg-destructive/10 rounded-lg",d),e[12]=d,e[13]=U):U=e[13];let j;e[14]!==_?(j=b.jsx("span",{className:"text-sm",children:_}),e[14]=_,e[15]=j):j=e[15];let P;return e[16]!==U||e[17]!==j?(P=b.jsx("div",{className:U,children:j}),e[16]=U,e[17]=j,e[18]=P):P=e[18],P}let v;e[19]!==d?(v=ee("relative w-full overflow-hidden rounded-lg",d),e[19]=d,e[20]=v):v=e[20];const R=`${S}px`;let I;e[21]!==R?(I={height:R},e[21]=R,e[22]=I):I=e[22];let O;e[23]!==N?(O=N&&b.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-background z-10",children:b.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[b.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),b.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),e[23]=N,e[24]=O):O=e[24];const w=N&&"invisible";let M;e[25]!==w?(M=ee("w-full h-full border-0",w),e[25]=w,e[26]=M):M=e[26];const H=`MCP App: ${r??n}`;let F;e[27]!==T||e[28]!==A||e[29]!==M||e[30]!==H?(F=b.jsx("iframe",{ref:A,srcDoc:T,sandbox:"allow-scripts allow-same-origin allow-forms allow-popups",className:M,title:H}),e[27]=T,e[28]=A,e[29]=M,e[30]=H,e[31]=F):F=e[31];let $;return e[32]!==F||e[33]!==v||e[34]!==I||e[35]!==O?($=b.jsxs("div",{className:v,style:I,children:[O,F]}),e[32]=F,e[33]=v,e[34]=I,e[35]=O,e[36]=$):$=e[36],$}function mm(t,e="An unknown error occurred"){return"errorText"in t&&typeof t.errorText=="string"?t.errorText:e}function rr(t){if(t==null)return"";try{return JSON.stringify(t)}catch{return"[Non-serializable value]"}}const N9=t=>t.type==="dynamic-tool"||t.type.startsWith("tool-");function v9(t){if(!t||typeof t!="object")return null;const e=t;if(!Array.isArray(e.parts))return null;const n=[];for(const r of e.parts)if(r.type==="text"&&typeof r.text=="string")n.push(r.text);else if(r.type==="reasoning")n.push(`## Reasoning
|
|
161
161
|
${r.text}`);else if(r.type==="source-url")n.push(`## Source URL
|
|
162
162
|
${r.url}`);else if(r.type==="source-document")n.push(`## Source Document
|
|
163
163
|
${r.title}`);else if(r.type==="file")n.push(`## File
|
|
@@ -178,17 +178,17 @@ Error: Tool responded with an error`)}else if(r.state==="output-denied"){const i
|
|
|
178
178
|
Input: ${i||"[No input]"}...
|
|
179
179
|
Output: Tool execution was denied`)}}}return n.length>0?n.join(`
|
|
180
180
|
|
|
181
|
-
`):null}function xS(t){const e=rr(t);if(e===""||e==="[Non-serializable value]")return e;try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function Ya(t){const e=Y.c(7),{icon:n,label:r}=t;let a;e[0]!==n?(a=b.jsx(ct,{asChild:!0,children:b.jsx("span",{className:"flex items-center",children:n})}),e[0]=n,e[1]=a):a=e[1];let i;e[2]!==r?(i=b.jsx(dt,{side:"top",children:r}),e[2]=r,e[3]=i):i=e[3];let s;return e[4]!==a||e[5]!==i?(s=b.jsxs(ut,{children:[a,i]}),e[4]=a,e[5]=i,e[6]=s):s=e[6],s}function _9(t){const e=Y.c(15),{annotations:n,toolMeta:r}=t;let a;e[0]!==r?(a=ZS(r),e[0]=r,e[1]=a):a=e[1];const i=!!a;if(!n&&!i)return null;let s;e[2]!==i?(s=i&&b.jsx(Ya,{icon:b.jsx(QS,{}),label:"Interactive"}),e[2]=i,e[3]=s):s=e[3];let o;e[4]!==n?.readOnlyHint?(o=n?.readOnlyHint&&b.jsx(Ya,{icon:b.jsx(
|
|
181
|
+
`):null}function xS(t){const e=rr(t);if(e===""||e==="[Non-serializable value]")return e;try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function Ya(t){const e=Y.c(7),{icon:n,label:r}=t;let a;e[0]!==n?(a=b.jsx(ct,{asChild:!0,children:b.jsx("span",{className:"flex items-center",children:n})}),e[0]=n,e[1]=a):a=e[1];let i;e[2]!==r?(i=b.jsx(dt,{side:"top",children:r}),e[2]=r,e[3]=i):i=e[3];let s;return e[4]!==a||e[5]!==i?(s=b.jsxs(ut,{children:[a,i]}),e[4]=a,e[5]=i,e[6]=s):s=e[6],s}function _9(t){const e=Y.c(15),{annotations:n,toolMeta:r}=t;let a;e[0]!==r?(a=ZS(r),e[0]=r,e[1]=a):a=e[1];const i=!!a;if(!n&&!i)return null;let s;e[2]!==i?(s=i&&b.jsx(Ya,{icon:b.jsx(QS,{}),label:"Interactive"}),e[2]=i,e[3]=s):s=e[3];let o;e[4]!==n?.readOnlyHint?(o=n?.readOnlyHint&&b.jsx(Ya,{icon:b.jsx(BI,{}),label:"Read-only — no side effects"}),e[4]=n?.readOnlyHint,e[5]=o):o=e[5];let l;e[6]!==n?.destructiveHint?(l=n?.destructiveHint&&b.jsx(Ya,{icon:b.jsx(ah,{}),label:"May modify or delete data"}),e[6]=n?.destructiveHint,e[7]=l):l=e[7];let u;e[8]!==n?.openWorldHint?(u=n?.openWorldHint&&b.jsx(Ya,{icon:b.jsx(UI,{}),label:"Reaches outside this system"}),e[8]=n?.openWorldHint,e[9]=u):u=e[9];let c;return e[10]!==s||e[11]!==o||e[12]!==l||e[13]!==u?(c=b.jsxs(b.Fragment,{children:[s,o,l,u]}),e[10]=s,e[11]=o,e[12]=l,e[13]=u,e[14]=c):c=e[14],c}function C9(t,e,n){switch(t){case"input-streaming":case"input-available":return"Preparing...";case"approval-requested":return"Waiting for your approval";case"output-denied":return"Cancelled";case"output-error":return n??"Failed";case"output-available":{if(e==null)return"Done";if(typeof e=="string"){const r=e.trim();return r.length>100?r.slice(0,100)+"…":r}if(typeof e=="object"){for(const r of Object.keys(e)){const a=e[r];if(typeof a=="string"&&a.trim()){const i=a.trim();return i.length>100?i.slice(0,100)+"…":i}}return""}return String(e).slice(0,100)}default:return""}}function kS(t){const e=Y.c(39),{part:n,annotations:r,latency:a,isLastMessage:i,toolMeta:s}=t;let o;e[0]!==n?(o="toolName"in n&&typeof n.toolName=="string"?n.toolName:n.type==="dynamic-tool"?"Dynamic Tool":n.type.replace("tool-","")||"Tool",e[0]=n,e[1]=o):o=e[1];const l=o;let u;e[2]!==l?(u=Rv(l),e[2]=l,e[3]=u):u=e[3];const c=u,{selectedVirtualMcp:d}=Sa(),{org:p}=jn();let f;e[4]!==s?(f=ZS(s),e[4]=s,e[5]=f):f=e[5];const h=f,g=s&&typeof s=="object"&&s!==null&&"connectionId"in s&&s.connectionId!=null&&s.connectionId!==""?String(s.connectionId):d?.id??null,E=!!h&&n.state==="output-available",T=n.state==="approval-requested"&&i===!1,y=n.state==="output-denied"||T;let S;e[6]!==n.state?(S=xv(n.state),e[6]=n.state,e[7]=S):S=e[7];const N=S,_=T||N==="approval"?"idle":N;let A,v;e[8]!==T||e[9]!==n?(A=n.state==="output-error"?mm(n):void 0,v=T?"Cancelled":C9(n.state,n.output,A),e[8]=T,e[9]=n,e[10]=A,e[11]=v):(A=e[10],v=e[11]);const R=v;let I="";n.input!==void 0&&(I=`# Input
|
|
182
182
|
`+xS(n.input)),n.state==="output-error"?(I&&(I=I+`
|
|
183
183
|
|
|
184
184
|
`),I=I+(`# Error
|
|
185
185
|
`+(A??""))):n.output!==void 0&&!E&&(I&&(I=I+`
|
|
186
186
|
|
|
187
187
|
`),I=I+(`# Output
|
|
188
|
-
`+xS(n.output)));let O;e[12]!==E||e[13]!==y?(O=y?b.jsx(
|
|
188
|
+
`+xS(n.output)));let O;e[12]!==E||e[13]!==y?(O=y?b.jsx(HI,{}):E?b.jsx(QS,{className:"size-4 text-muted-foreground"}):b.jsx(eA,{className:"size-4 text-muted-foreground"}),e[12]=E,e[13]=y,e[14]=O):O=e[14];let w;e[15]!==r||e[16]!==s?(w=b.jsx(_9,{annotations:r,toolMeta:s}),e[15]=r,e[16]=s,e[17]=w):w=e[17];const M=I||null;let H;e[18]!==_||e[19]!==c||e[20]!==y||e[21]!==a||e[22]!==R||e[23]!==O||e[24]!==w||e[25]!==M?(H=b.jsx(Qh,{icon:O,iconDestructive:y,trailing:w,title:c,latency:a,summary:R,state:_,detail:M}),e[18]=_,e[19]=c,e[20]=y,e[21]=a,e[22]=R,e[23]=O,e[24]=w,e[25]=M,e[26]=H):H=e[26];let F;e[27]!==g||e[28]!==c||e[29]!==E||e[30]!==p||e[31]!==n.input||e[32]!==n.output||e[33]!==l||e[34]!==h?(F=E&&h&&g&&p?.id&&b.jsx(PS,{fallback:U=>{const{resetError:j}=U;return b.jsxs("div",{className:"mt-2 flex items-center gap-2 px-3 py-2.5 border border-dashed border-destructive/30 bg-destructive/5 rounded-lg",children:[b.jsx(ah,{size:16,className:"shrink-0 text-destructive"}),b.jsxs("span",{className:"flex-1 text-xs text-destructive font-medium",children:["Failed to load ",b.jsx("span",{className:"font-mono",children:c})," ","app"]}),b.jsxs(ke,{size:"sm",variant:"outline",className:"h-7 text-xs gap-1.5 shrink-0",onClick:j,children:[b.jsx(qC,{className:"size-3.5"}),"Retry"]})]})},children:b.jsx(L.Suspense,{fallback:b.jsx("div",{className:"mt-2 flex items-center justify-center h-12 border border-border/75 rounded-lg overflow-hidden p-3",children:b.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[b.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),b.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:b.jsx(I9,{uiResourceUri:h,connectionId:g,orgId:p.id,toolName:l,toolInput:n.input,toolResult:n.output})})}),e[27]=g,e[28]=c,e[29]=E,e[30]=p,e[31]=n.input,e[32]=n.output,e[33]=l,e[34]=h,e[35]=F):F=e[35];let $;return e[36]!==F||e[37]!==H?($=b.jsxs("div",{children:[H,F]}),e[36]=F,e[37]=H,e[38]=$):$=e[38],$}function I9(t){const e=Y.c(9),{uiResourceUri:n,connectionId:r,orgId:a,toolName:i,toolInput:s,toolResult:o}=t;let l;e[0]!==r||e[1]!==a?(l={connectionId:r,orgId:a},e[0]=r,e[1]=a,e[2]=l):l=e[2];const u=is(l),c=s,d=o;let p;return e[3]!==u||e[4]!==c||e[5]!==d||e[6]!==i||e[7]!==n?(p=b.jsx("div",{className:"mt-2 border border-border/75 rounded-lg overflow-hidden p-3",children:b.jsx(A9,{resourceURI:n,toolName:i,toolInput:c,toolResult:d,client:u})}),e[3]=u,e[4]=c,e[5]=d,e[6]=i,e[7]=n,e[8]=p):p=e[8],p}function R9(t){const e=Y.c(14),{part:n}=t;if(!n.state.startsWith("output-"))return null;let r;e[0]!==n.input?.prompt?(r=n.input?.prompt?.trim()||"Question",e[0]=n.input?.prompt,e[1]=r):r=e[1];const a=r,i=n.state==="output-error"||n.state==="output-denied",s=n.state==="output-denied";let o;e[2]!==s||e[3]!==n?(o=s?"Skipped":n.state==="output-error"?mm(n)??"Error":n.output?.response??"",e[2]=s,e[3]=n,e[4]=o):o=e[4];const l=o;let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=b.jsx(VS,{className:"size-4 text-muted-foreground/50 shrink-0 mt-0.5"}),e[5]=u):u=e[5];let c;e[6]!==a?(c=b.jsxs("div",{className:"flex items-start gap-2",children:[u,b.jsx("span",{className:"text-[14px] text-muted-foreground leading-snug",children:a})]}),e[6]=a,e[7]=c):c=e[7];let d;e[8]!==l||e[9]!==i?(d=l&&b.jsx("div",{className:"ml-6 pl-2 border-l border-border/50",children:b.jsx("span",{className:ee("text-[14px] leading-snug",i?"text-muted-foreground/50 italic":"text-foreground/70"),children:l})}),e[8]=l,e[9]=i,e[10]=d):d=e[10];let p;return e[11]!==c||e[12]!==d?(p=b.jsxs("div",{className:"my-1.5 flex flex-col gap-1",children:[c,d]}),e[11]=c,e[12]=d,e[13]=p):p=e[13],p}function x9(t){const e=Y.c(21),{part:n,subtaskMeta:r,latency:a}=t,{virtualMcps:i}=Sa(),s=n.state==="input-streaming"||n.state==="input-available",o=n.state==="output-available"&&n.preliminary===!0,l=n.state==="output-available"&&!n.preliminary,u=n.state==="output-error",c="preliminary"in n?n.preliminary:!1;let d;e[0]!==n.state||e[1]!==c?(d=xv(n.state,c),e[0]=n.state,e[1]=c,e[2]=d):d=e[2];const p=d,f=p==="approval"?"idle":p,h=n.input?.agent_id;let g;e[3]!==h||e[4]!==i?(g=h?i.find(F=>F.id===h):null,e[3]=h,e[4]=i,e[5]=g):g=e[5];const E=g,T=r?.usage,y=E?.title?E.title:s?"Starting subtask...":o?"Subtask running...":l?"Subtask completed":u?"Subtask failed":"Subtask",S=n.input?.prompt??"",N=n.state==="approval-requested"?"Awaiting approval...":S.length>120?S.slice(0,120)+"…":S;let _;e[6]!==u||e[7]!==n?(_=u?mm(n):v9(n.output)??"No output available",e[6]=u,e[7]=n,e[8]=_):_=e[8];const A=_,v=`# Task
|
|
189
189
|
${n.input?.prompt??"No prompt provided"}
|
|
190
190
|
|
|
191
191
|
# ${u?"Error":"Result"}
|
|
192
192
|
${A}`,R=E?.icon,I=E?.title??"Subtask";let O;e[9]===Symbol.for("react.memo_cache_sentinel")?(O=b.jsx(ia,{}),e[9]=O):O=e[9];let w;e[10]!==R||e[11]!==I?(w=b.jsx(ih,{icon:R,name:I,size:"2xs",className:"rounded-xs",fallbackIcon:O}),e[10]=R,e[11]=I,e[12]=w):w=e[12];const M=w;let H;return e[13]!==v||e[14]!==f||e[15]!==M||e[16]!==a||e[17]!==N||e[18]!==y||e[19]!==T?(H=b.jsx(Qh,{icon:M,title:y,summary:N,usage:T,latency:a,detail:v,state:f}),e[13]=v,e[14]=f,e[15]=M,e[16]=a,e[17]=N,e[18]=y,e[19]=T,e[20]=H):H=e[20],H}function k9(t){const e=Y.c(5),{parts:n}=t,r=n?.length,a=n?.[n.length-1];let i;e[0]!==a||e[1]!==r?(i={enabled:!0,contentDeps:[r,a]},e[0]=a,e[1]=r,e[2]=i):i=e[2];const{sentinelRef:s}=y_(i);let o;return e[3]!==s?(o=b.jsx("div",{ref:s,className:"h-0"}),e[3]=s,e[4]=o):o=e[4],o}function w9(t){return t.type==="reasoning"}function O9(t){const e=[],n=new Map,r=new Map;if(t)for(const a of t.parts){if(w9(a)){e.push(a);continue}if(a.type==="data-tool-metadata"&&"id"in a&&"data"in a){const i=a.data,s={};i.annotations&&(s.annotations=i.annotations),typeof i.latencyMs=="number"&&Number.isFinite(i.latencyMs)&&(s.latencySeconds=i.latencyMs/1e3),i._meta&&typeof i._meta=="object"&&(s._meta=i._meta),n.set(a.id,s);continue}a.type==="data-tool-subtask-metadata"&&"id"in a&&r.set(a.id,a.data)}return{reasoningParts:e,dataParts:{toolMetadata:n,toolSubtaskMetadata:r}}}const L9={planning:{icon:b.jsx(iA,{className:"text-muted-foreground shrink-0 animate-pulse",size:14}),label:"Planning next moves"},thinking:{icon:b.jsx($S,{className:"text-muted-foreground shrink-0 animate-pulse",size:14}),label:"Thinking"}},D9=1200;function M9(){const t=Y.c(7),[e,n]=L.useState("planning");let r,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{const l=setTimeout(()=>{n("thinking")},D9);return()=>{clearTimeout(l)}},a=[],t[0]=r,t[1]=a):(r=t[0],a=t[1]),L.useEffect(r,a);const i=L9[e];let s;t[2]!==i.label?(s=b.jsxs("span",{className:"text-[14px] text-muted-foreground shimmer",children:[i.label,"..."]}),t[2]=i.label,t[3]=s):s=t[3];let o;return t[4]!==i.icon||t[5]!==s?(o=b.jsx("div",{className:"flex items-center gap-1.5 py-2 opacity-60",children:b.jsxs("span",{className:"flex items-center gap-1.5",children:[i.icon,s]})}),t[4]=i.icon,t[5]=s,t[6]=o):o=t[6],o}function P9(t){const e=Y.c(9),{since:n}=t;let r;e[0]!==n?(r=()=>Date.now()-n,e[0]=n,e[1]=r):r=e[1];const[a,i]=L.useState(r);let s,o;e[2]!==n?(s=()=>{const d=setInterval(()=>i(Date.now()-n),100);return()=>clearInterval(d)},o=[n],e[2]=n,e[3]=s,e[4]=o):(s=e[3],o=e[4]),L.useEffect(s,o);const l=a/1e3;let u;e[5]!==l?(u=l.toFixed(1),e[5]=l,e[6]=u):u=e[6];let c;return e[7]!==u?(c=b.jsxs("span",{className:"tabular-nums text-sm font-mono text-muted-foreground/50",children:[u,"s"]}),e[7]=u,e[8]=c):c=e[8],c}function F9(t){const e=Y.c(3),{startedAt:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=b.jsx("span",{className:"text-sm",children:"·"}),e[0]=r):r=e[0];let a;return e[1]!==n?(a=b.jsxs("div",{className:"flex items-center gap-1 mt-1 pb-1 text-muted-foreground/40 select-none",children:[r,b.jsx(P9,{since:n})]}),e[1]=n,e[2]=a):a=e[2],a}function B9(t){const e=Y.c(20),{duration:n,parts:r,isStreaming:a}=t;let i;e[0]!==r?(i=r.every($9),e[0]=r,e[1]=i):i=e[1];const s=i;let o;e[2]!==n?(o=n&&n/1e3>1?`Thought for ${(n/1e3).toFixed(1)}s`:"Thought",e[2]=n,e[3]=o):o=e[3];const l=o;let u;if(e[4]!==s||e[5]!==r){const y=r.map(H9).join(" ").trim();u=!s&&y?y.length>100?y.slice(0,100)+"…":y:void 0,e[4]=s,e[5]=r,e[6]=u}else u=e[6];const c=u;let d;if(e[7]!==s||e[8]!==r){const y=r.map(U9).join(`
|
|
193
193
|
|
|
194
|
-
`);d=!s&&y.trim()?y:null,e[7]=s,e[8]=r,e[9]=d}else d=e[9];const p=d,f=!a&&n!=null?n/1e3:void 0;let h;e[10]!==a?(h=a?b.jsx($S,{className:"size-4"}):b.jsx(nA,{className:"size-4"}),e[10]=a,e[11]=h):h=e[11];const g=a?"Thinking...":l,E=a?"loading":"idle";let T;return e[12]!==p||e[13]!==a||e[14]!==f||e[15]!==c||e[16]!==h||e[17]!==g||e[18]!==E?(T=b.jsx(Qh,{icon:h,title:g,summary:c,detail:p,state:E,detailVariant:"prose",latency:f,forceOpen:a}),e[12]=p,e[13]=a,e[14]=f,e[15]=c,e[16]=h,e[17]=g,e[18]=E,e[19]=T):T=e[19],T}function U9(t){return t.text??""}function H9(t){return t.text??""}function $9(t){return t.text?.includes("REDACTED")}function j9(t){const e=Y.c(53),{part:n,id:r,usageStats:a,dataParts:i,isLoading:s,isLastMessage:o}=t;let l;e[0]!==i.toolMetadata?(l=p=>i.toolMetadata.get(p),e[0]=i.toolMetadata,e[1]=l):l=e[1];const u=l;let c;e[2]!==i.toolSubtaskMetadata?(c=p=>i.toolSubtaskMetadata.get(p),e[2]=i.toolSubtaskMetadata,e[3]=c):c=e[3];const d=c;switch(n.type){case"dynamic-tool":{let p;e[4]!==u||e[5]!==n.toolCallId?(p=u(n.toolCallId)?.annotations,e[4]=u,e[5]=n.toolCallId,e[6]=p):p=e[6];let f;e[7]!==u||e[8]!==n.toolCallId?(f=u(n.toolCallId)?.latencySeconds,e[7]=u,e[8]=n.toolCallId,e[9]=f):f=e[9];let h;e[10]!==u||e[11]!==n.toolCallId?(h=u(n.toolCallId)?._meta,e[10]=u,e[11]=n.toolCallId,e[12]=h):h=e[12];let g;return e[13]!==o||e[14]!==n||e[15]!==p||e[16]!==f||e[17]!==h?(g=b.jsx(kS,{part:n,annotations:p,latency:f,isLastMessage:o,toolMeta:h}),e[13]=o,e[14]=n,e[15]=p,e[16]=f,e[17]=h,e[18]=g):g=e[18],g}case"tool-user_ask":{let p;e[19]!==u||e[20]!==n.toolCallId?(p=u(n.toolCallId)?.latencySeconds,e[19]=u,e[20]=n.toolCallId,e[21]=p):p=e[21];let f;return e[22]!==n||e[23]!==p?(f=b.jsx(R9,{part:n,latency:p}),e[22]=n,e[23]=p,e[24]=f):f=e[24],f}case"tool-subtask":{let p;e[25]!==d||e[26]!==n.toolCallId?(p=d(n.toolCallId),e[25]=d,e[26]=n.toolCallId,e[27]=p):p=e[27];let f;e[28]!==u||e[29]!==n.toolCallId?(f=u(n.toolCallId)?.annotations,e[28]=u,e[29]=n.toolCallId,e[30]=f):f=e[30];let h;e[31]!==u||e[32]!==n.toolCallId?(h=u(n.toolCallId)?.latencySeconds,e[31]=u,e[32]=n.toolCallId,e[33]=h):h=e[33];let g;return e[34]!==n||e[35]!==p||e[36]!==f||e[37]!==h?(g=b.jsx(x9,{part:n,subtaskMeta:p,annotations:f,latency:h}),e[34]=n,e[35]=p,e[36]=f,e[37]=h,e[38]=g):g=e[38],g}case"text":{const p=!!a&&!s;let f;return e[39]!==r||e[40]!==n||e[41]!==p||e[42]!==a?(f=b.jsx(vC,{id:r,part:n,extraActions:a,copyable:!0,alwaysShowActions:p}),e[39]=r,e[40]=n,e[41]=p,e[42]=a,e[43]=f):f=e[43],f}case"reasoning":return null;case"step-start":case"file":case"source-url":case"source-document":return null;case"data-tool-metadata":case"data-tool-subtask-metadata":return null;default:{const p=n;if(p.type.startsWith("tool-")){const f=p.toolCallId;let h;e[44]!==i.toolMetadata||e[45]!==f?(h=i.toolMetadata.get(f),e[44]=i.toolMetadata,e[45]=f,e[46]=h):h=e[46];const g=h,E=g?.annotations,T=g?.latencySeconds,y=g?._meta;let S;return e[47]!==p||e[48]!==o||e[49]!==E||e[50]!==T||e[51]!==y?(S=b.jsx(kS,{part:p,annotations:E,latency:T,isLastMessage:o,toolMeta:y}),e[47]=p,e[48]=o,e[49]=E,e[50]=T,e[51]=y,e[52]=S):S=e[52],S}if(p.type.startsWith("data-"))return null;throw new Error(`Unknown part type: ${p.type}`)}}}function q9(){const t=Y.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx("div",{className:"text-[14px] text-muted-foreground/60 py-2",children:"No response was generated"}),t[0]=e):e=t[0],e}function z9(t){const e=Y.c(7),{className:n,children:r}=t;let a;e[0]!==n?(a=ee("w-full min-w-0 group relative flex items-start gap-4 px-4 z-20 text-foreground flex-row",n),e[0]=n,e[1]=a):a=e[1];let i;e[2]!==r?(i=b.jsx("div",{className:"flex flex-col min-w-0 w-full items-start",children:b.jsx("div",{className:"w-full min-w-0 not-only:rounded-2xl text-[14px] wrap-break-word overflow-wrap-anywhere bg-transparent",children:r})}),e[2]=r,e[3]=i):i=e[3];let s;return e[4]!==a||e[5]!==i?(s=b.jsx("div",{className:a,children:i}),e[4]=a,e[5]=i,e[6]=s):s=e[6],s}function G9(t){const e=Y.c(23),{message:n,status:r,className:a,isLast:i}=t,s=i===void 0?!1:i,o=r==="streaming",u=o||r==="submitted";let c;e[0]!==u?(c=()=>u?Date.now():null,e[0]=u,e[1]=c):c=e[1];const[d,p]=L.useState(c),[f,h]=L.useState(u);f!==u&&(h(u),p(u?Date.now():null));const g=n!==null&&n.parts.length>0,{reasoningParts:E,dataParts:T}=O9(n),y=E.length>0;let S;if(e[2]!==n){const R=n?.metadata?.reasoning_start_at?new Date(n.metadata.reasoning_start_at):null,I=n?.metadata?.reasoning_end_at?new Date(n.metadata.reasoning_end_at):new Date;S=R!==null?I.getTime()-R.getTime():null,e[2]=n,e[3]=S}else S=e[3];const N=S;let _;e[4]!==T||e[5]!==N||e[6]!==g||e[7]!==y||e[8]!==s||e[9]!==u||e[10]!==o||e[11]!==n||e[12]!==E||e[13]!==d?(_=g?b.jsxs("div",{className:"flex flex-col gap-2",children:[y&&b.jsx(B9,{duration:N,parts:E,isStreaming:o}),n.parts.map((R,I)=>{const O=I===n.parts.length-1,w=O?iI(sI(),n.metadata?.usage):null;return b.jsx(j9,{part:R,id:n.id,usageStats:O&&b.jsx(eP,{usage:w,duration:N}),dataParts:T,isLoading:u,isLastMessage:s},`${n.id}-${I}`)}),s&&u&&d!==null&&b.jsx(F9,{startedAt:d})]}):u?b.jsx(M9,{}):b.jsx(q9,{}),e[4]=T,e[5]=N,e[6]=g,e[7]=y,e[8]=s,e[9]=u,e[10]=o,e[11]=n,e[12]=E,e[13]=d,e[14]=_):_=e[14];let A;e[15]!==s||e[16]!==o||e[17]!==n?.parts?(A=s&&o&&b.jsx(k9,{parts:n?.parts}),e[15]=s,e[16]=o,e[17]=n?.parts,e[18]=A):A=e[18];let v;return e[19]!==a||e[20]!==_||e[21]!==A?(v=b.jsxs(z9,{className:a,children:[_,A]}),e[19]=a,e[20]=_,e[21]=A,e[22]=v):v=e[22],v}const V9=[i_.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1}),Cv,Lv];function W9(t){const e=Y.c(5),{tiptapDoc:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={attributes:{class:"prose prose-sm max-w-none focus:outline-none"}},e[0]=r):r=e[0];let a;e[1]!==n?(a={extensions:V9,content:n,editable:!1,editorProps:r},e[1]=n,e[2]=a):a=e[2];const i=bv(a);if(!i)return null;let s;return e[3]!==i?(s=b.jsx(Ph,{editor:i,className:"[&_.ProseMirror]:outline-none [&_.ProseMirror]:cursor-text"}),e[3]=i,e[4]=s):s=e[4],s}function Y9(t){const e=Y.c(27),{message:n,className:r,onScrollToPair:a}=t,{id:i,parts:s,metadata:o}=n,[l,u]=L.useState(!1),[c,d]=L.useState(!1),p=L.useRef(!1);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=M=>{M&&!p.current&&(p.current=!0,d(M.scrollHeight>M.clientHeight))},e[0]=f):f=e[0];const h=f;if(!s||s.length===0)return null;let g;e[1]!==a?(g=()=>{u(!0),a?.()},e[1]=a,e[2]=g):g=e[2];const E=g,T=o?.tiptapDoc;let y;e[3]!==r?(y=ee("message-block w-full min-w-0 relative flex items-start gap-4 px-2.5 text-foreground flex-row-reverse",r),e[3]=r,e[4]=y):y=e[4];let S,N;e[5]===Symbol.for("react.memo_cache_sentinel")?(S=()=>u(!0),N=()=>u(!1),e[5]=S,e[6]=N):(S=e[5],N=e[6]);let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_=b.jsx("div",{className:"absolute inset-0 bg-muted/75 rounded-lg pointer-events-none"}),e[7]=_):_=e[7];let A;e[8]!==l||e[9]!==c?(A=ee("z-10 px-4 py-2 transition-opacity max-h-[84px] flex-1",l?"overflow-auto opacity-100":ee("overflow-hidden opacity-99",c&&"mask-b-from-1%")),e[8]=l,e[9]=c,e[10]=A):A=e[10];let v;e[11]!==T||e[12]!==i||e[13]!==o||e[14]!==s?(v=T?b.jsx(W9,{tiptapDoc:o.tiptapDoc}):s.map((M,H)=>M.type==="text"?b.jsx(vC,{id:i,part:M},`${i}-${H}`):null),e[11]=T,e[12]=i,e[13]=o,e[14]=s,e[15]=v):v=e[15];let R;e[16]!==v?(R=b.jsx("div",{children:v}),e[16]=v,e[17]=R):R=e[17];let I;e[18]!==A||e[19]!==R?(I=b.jsx("div",{ref:h,className:A,children:R}),e[18]=A,e[19]=R,e[20]=I):I=e[20];let O;e[21]!==E||e[22]!==I?(O=b.jsxs("div",{tabIndex:0,onClick:E,onFocus:S,onBlur:N,className:"w-full border border-border/60 min-w-0 shadow-xs rounded-lg text-[14px] wrap-break-word overflow-wrap-anywhere bg-background cursor-pointer transition-colors relative flex outline-none",children:[_,I]}),e[21]=E,e[22]=I,e[23]=O):O=e[23];let w;return e[24]!==O||e[25]!==y?(w=b.jsx(b.Fragment,{children:b.jsx("div",{className:y,children:O})}),e[24]=O,e[25]=y,e[26]=w):w=e[26],w}function K9(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];if(r&&r.role==="user"){const a=t[n+1];a&&a.role==="assistant"?(e.push({user:r,assistant:a}),n++):e.push({user:r,assistant:null})}}return e}function wS(t){const e=Y.c(14),{pair:n,isLastPair:r,status:a}=t,i=L.useRef(null);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{i.current&&i.current.scrollIntoView({behavior:"smooth",block:"start"})},e[0]=s):s=e[0];const o=s;let l;e[1]!==r?(l=h=>{i.current=h,r&&h?.scrollIntoView({behavior:"smooth",block:"start"})},e[1]=r,e[2]=l):l=e[2];const u=l;let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("div",{className:"sticky top-0 z-50 w-full h-4 bg-background"}),e[3]=c):c=e[3];let d;e[4]!==n.user?(d=b.jsx("div",{className:"sticky mb-6 top-4 z-50",children:b.jsx(Y9,{message:n.user,onScrollToPair:o})}),e[4]=n.user,e[5]=d):d=e[5];let p;e[6]!==r||e[7]!==n.assistant||e[8]!==a?(p=b.jsx(G9,{message:n.assistant,status:a,isLast:r}),e[6]=r,e[7]=n.assistant,e[8]=a,e[9]=p):p=e[9];let f;return e[10]!==u||e[11]!==d||e[12]!==p?(f=b.jsxs("div",{ref:u,className:"flex flex-col pb-2",children:[c,d,p]}),e[10]=u,e[11]=d,e[12]=p,e[13]=f):f=e[13],f}const X9="https://sites-openrouter.decocache.com/mcp",Z9="https://assets.decocache.com/decocms/b2e2f64f-6025-45f7-9e8c-3b3ebdd073d8/openrouter_logojpg.jpg";function Q9({title:t="No model provider connected",description:e="Connect to a model provider to unlock AI-powered features.",org:n}){const r=qI(),[,a]=_I(),i=US(),{data:s}=zC.useSession(),o=zI(),l=s?.user?.id??"",u=()=>{i({to:"/$org/$project/mcps",params:{org:n.slug,project:Xa},search:{action:"create"}})},c=async()=>{if(!n.id||!l){$t.error("Not authenticated");return}try{const d=o?.find(h=>h.connection_url===X9);if(d){a(!1),i({to:"/$org/$project/mcps/$connectionId",params:{org:n.slug,project:Xa,connectionId:d.id}});return}const p=YC({id:GI("conn")}),f=await r.create.mutateAsync(p);a(!1),i({to:"/$org/$project/mcps/$connectionId",params:{org:n.slug,project:Xa,connectionId:f.id}})}catch(d){$t.error(`Failed to connect OpenRouter: ${d instanceof Error?d.message:String(d)}`)}};return b.jsx(jI,{image:b.jsx("img",{src:"/empty-state-openrouter.svg",alt:"",width:336,height:320,"aria-hidden":"true",className:"w-xs h-auto mask-radial-[100%_100%] mask-radial-from-20% mask-radial-to-50% mask-radial-at-center"}),title:t,description:e,actions:b.jsxs(b.Fragment,{children:[b.jsxs(ke,{variant:"outline",onClick:c,disabled:r.create.isPending,children:[b.jsx("img",{src:Z9,alt:"OpenRouter",className:"size-4"}),r.create.isPending?"Installing...":"Install OpenRouter"]}),b.jsx(ke,{variant:"outline",onClick:u,children:"Install Connection"})]})})}function J9(t){const e=new Date(t),r=new Date().getTime()-e.getTime(),a=Math.floor(r/6e4),i=Math.floor(r/36e5);return a<1?"now":a<60?`${a}m`:`${i}h`}function eq(t){const e=new Date,n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(n.getTime()-864e5),a=new Date(n.getTime()-7*864e5),i=new Date(n.getTime()-30*864e5),s=[],o=[],l=[],u=[],c=[];for(const p of t){const f=new Date(p.updated_at);f>=n?s.push(p):f>=r?o.push(p):f>=a?l.push(p):f>=i?u.push(p):c.push(p)}const d=[];return s.length>0&&d.push({label:"Today",threads:s,showRelativeTime:!0}),o.length>0&&d.push({label:"Yesterday",threads:o,showRelativeTime:!1}),l.length>0&&d.push({label:"7 days ago",threads:l,showRelativeTime:!1}),u.length>0&&d.push({label:"30 days ago",threads:u,showRelativeTime:!1}),c.length>0&&d.push({label:"Older",threads:c,showRelativeTime:!1}),d}function tq(t){const e=Y.c(60),{variant:n}=t,r=n===void 0?"icon":n,[a,i]=L.useState(""),[s,o]=L.useState(null),[l,u]=L.useState(""),{activeThreadId:c,switchToThread:d,threads:p,hasNextPage:f,isFetchingNextPage:h,fetchNextPage:g,hideThread:E,renameThread:T}=Sa(),y=L.useRef(null),S=L.useRef(null);let N;e[0]!==g||e[1]!==f||e[2]!==h?(N=Q=>{S.current&&S.current.disconnect(),Q&&f&&!h&&g&&(S.current=new IntersectionObserver(J=>{J[0]?.isIntersecting&&f&&!h&&g&&g()},{rootMargin:"100px"}),S.current.observe(Q)),y.current=Q},e[0]=g,e[1]=f,e[2]=h,e[3]=N):N=e[3];const _=N;let A,v,R,I,O,w,M,H,F,$,U;if(e[4]!==c||e[5]!==s||e[6]!==l||e[7]!==f||e[8]!==E||e[9]!==h||e[10]!==T||e[11]!==a||e[12]!==_||e[13]!==d||e[14]!==p||e[15]!==r){const Q=a.trim()?p.filter(de=>de.title.toLowerCase().includes(a.toLowerCase())):p,J=eq(Q);let ae;e[27]===Symbol.for("react.memo_cache_sentinel")?(ae=(de,he)=>{he.stopPropagation(),o(de.id),u(de.title||"")},e[27]=ae):ae=e[27];const te=ae;let se;e[28]!==l||e[29]!==T?(se=async de=>{const he=l.trim();he&&await T(de,he),o(null)},e[28]=l,e[29]=T,e[30]=se):se=e[30];const ce=se;let be;e[31]!==ce?(be=(de,he)=>{de.key==="Enter"?(de.preventDefault(),ce(he)):de.key==="Escape"&&o(null)},e[31]=ce,e[32]=be):be=e[32];const Le=be;I=as,R=ut,v=yr,e[33]!==r?($=b.jsx(ct,{asChild:!0,children:b.jsx(Sr,{asChild:!0,children:r==="outline"?b.jsx(ke,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input","aria-label":"Chat history",children:b.jsx(Rm,{size:16})}):b.jsx(ke,{type:"button",variant:"ghost",size:"icon",className:"size-6 p-1 hover:bg-transparent","aria-label":"Chat history",children:b.jsx(Rm,{size:16,className:"text-muted-foreground hover:text-foreground transition-colors"})})})}),e[33]=r,e[34]=$):$=e[34],e[35]===Symbol.for("react.memo_cache_sentinel")?(U=b.jsx(dt,{children:"Chat history"}),e[35]=U):U=e[35],A=Ar,M="end",H="w-80 p-0";let _e;e[36]===Symbol.for("react.memo_cache_sentinel")?(_e=b.jsx(KS,{size:16,className:"text-muted-foreground shrink-0"}),e[36]=_e):_e=e[36];let Se;e[37]===Symbol.for("react.memo_cache_sentinel")?(Se=de=>i(de.target.value),e[37]=Se):Se=e[37],e[38]!==a?(F=b.jsx("div",{className:"border-b",children:b.jsxs("label",{className:"flex items-center gap-2.5 h-12 px-4 cursor-text",children:[_e,b.jsx("input",{type:"text",placeholder:"Search chats...",value:a,onChange:Se,className:"flex-1 border-0 shadow-none focus:outline-none px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"})]})}),e[38]=a,e[39]=F):F=e[39],O="max-h-[300px] overflow-y-auto",w=Q.length===0?b.jsx("div",{className:"p-4 text-center text-sm text-muted-foreground",children:a.trim()?"No chats found":"No chats yet"}):b.jsxs(b.Fragment,{children:[J.map((de,he)=>b.jsxs("div",{children:[he>0&&b.jsx("div",{className:"border-t mx-3"}),b.jsx("div",{className:"px-3 py-1",children:b.jsx("span",{className:"text-xs font-medium text-muted-foreground tracking-wide",children:de.label})}),de.threads.map(Ae=>{const Tt=Ae.id===c,$e=s===Ae.id;return b.jsxs("div",{className:ee("flex items-center gap-2 px-3 py-2 hover:bg-accent cursor-pointer group",Tt&&"bg-accent/50"),onClick:()=>!$e&&d(Ae.id),children:[b.jsx("div",{className:"flex-1 min-w-0",children:$e?b.jsxs("div",{className:"flex items-center gap-1",onClick:rq,children:[b.jsx("input",{autoFocus:!0,value:l,onChange:Ze=>u(Ze.target.value),onBlur:()=>ce(Ae.id),onKeyDown:Ze=>Le(Ze,Ae.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),b.jsx("button",{type:"button",onMouseDown:nq,onClick:()=>ce(Ae.id),className:"p-0.5 hover:bg-accent rounded shrink-0",children:b.jsx(qn,{size:12,className:"text-muted-foreground hover:text-foreground"})})]}):b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-sm truncate",children:Ae.title||"New chat"}),b.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:Tt?"current":de.showRelativeTime?J9(Ae.updated_at):null})]})}),!$e&&b.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[b.jsx("button",{type:"button",onClick:Ze=>te(Ae,Ze),className:"opacity-0 cursor-pointer group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename chat",children:b.jsx(GS,{size:13,className:"text-muted-foreground hover:text-foreground"})}),b.jsx("button",{type:"button",onClick:Ze=>{Ze.stopPropagation(),E(Ae.id)},className:"opacity-0 cursor-pointer group/trash group-hover:opacity-100 p-1 hover:bg-destructive/10 rounded transition-opacity",title:"Remove chat",children:b.jsx(VI,{size:14,className:"text-muted-foreground group-hover/trash:text-destructive"})})]})]},Ae.id)})]},de.label)),!a.trim()&&f&&b.jsx("div",{ref:_,className:"h-4"}),h&&b.jsx("div",{className:"p-3 text-center text-xs text-muted-foreground",children:"Loading more chats..."})]}),e[4]=c,e[5]=s,e[6]=l,e[7]=f,e[8]=E,e[9]=h,e[10]=T,e[11]=a,e[12]=_,e[13]=d,e[14]=p,e[15]=r,e[16]=A,e[17]=v,e[18]=R,e[19]=I,e[20]=O,e[21]=w,e[22]=M,e[23]=H,e[24]=F,e[25]=$,e[26]=U}else A=e[16],v=e[17],R=e[18],I=e[19],O=e[20],w=e[21],M=e[22],H=e[23],F=e[24],$=e[25],U=e[26];let j;e[40]!==O||e[41]!==w?(j=b.jsx("div",{className:O,children:w}),e[40]=O,e[41]=w,e[42]=j):j=e[42];let P;e[43]!==A||e[44]!==j||e[45]!==M||e[46]!==H||e[47]!==F?(P=b.jsxs(A,{align:M,className:H,children:[F,j]}),e[43]=A,e[44]=j,e[45]=M,e[46]=H,e[47]=F,e[48]=P):P=e[48];let W;e[49]!==v||e[50]!==P||e[51]!==$||e[52]!==U?(W=b.jsxs(v,{children:[$,U,P]}),e[49]=v,e[50]=P,e[51]=$,e[52]=U,e[53]=W):W=e[53];let X;e[54]!==R||e[55]!==W?(X=b.jsx(R,{children:W}),e[54]=R,e[55]=W,e[56]=X):X=e[56];let K;return e[57]!==I||e[58]!==X?(K=b.jsx(I,{children:X}),e[57]=I,e[58]=X,e[59]=K):K=e[59],K}function nq(t){return t.preventDefault()}function rq(t){return t.stopPropagation()}function aq(t){const e=Y.c(11),{className:n}=t;let r;e[0]!==n?(r=ee("flex h-full w-full flex-col bg-background",n),e[0]=n,e[1]=r):r=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=b.jsx("div",{className:"size-6 rounded-lg bg-muted animate-pulse"}),e[2]=a):a=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsxs("div",{className:"flex items-center gap-3",children:[a,b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx("div",{className:"h-3.5 w-28 rounded bg-muted animate-pulse"}),b.jsx("div",{className:"h-3 w-40 rounded bg-muted/60 animate-pulse"})]})]}),e[3]=i):i=e[3];let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx("div",{className:"flex items-center h-12 flex-none border-b border-border/80 px-4",children:b.jsxs("div",{className:"flex items-center justify-between gap-3 w-full",children:[i,b.jsxs("div",{className:"flex items-end gap-2",children:[b.jsx("div",{className:"h-6 w-6 rounded-full bg-muted animate-pulse"}),b.jsx("div",{className:"h-6 w-6 rounded-lg bg-muted animate-pulse"})]})]})}),e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx("div",{className:"flex-1 overflow-hidden px-4 py-4",children:b.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col gap-4",children:[b.jsx(Ka,{align:"right",width:"w-3/4"}),b.jsx(Ka,{align:"left",width:"w-full",lines:3}),b.jsx(Ka,{align:"right",width:"w-2/3"}),b.jsx(Ka,{align:"left",width:"w-5/6",lines:2})]})}),e[5]=o):o=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=b.jsx("div",{className:"relative flex flex-1 flex-col gap-2 p-2.5",children:b.jsx("div",{className:"relative flex-1",children:b.jsxs("div",{className:"space-y-2 p-2",children:[b.jsx("div",{className:"h-3 w-full rounded bg-muted/40 animate-pulse"}),b.jsx("div",{className:"h-3 w-4/5 rounded bg-muted/40 animate-pulse"})]})})}),e[6]=l):l=e[6];let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=b.jsx("div",{className:"flex items-center gap-1",children:b.jsx("div",{className:"size-8 rounded-full bg-muted/60 animate-pulse"})}),e[7]=u):u=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("div",{className:"px-4 py-4",children:b.jsx("div",{className:"mx-auto w-full max-w-2xl",children:b.jsxs("div",{className:"relative flex min-h-[130px] flex-col rounded-xl border border-border bg-background shadow-sm",children:[l,b.jsxs("div",{className:"flex items-center justify-between px-2.5 pb-2.5",children:[u,b.jsxs("div",{className:"flex items-center gap-1",children:[b.jsx("div",{className:"h-8 w-32 rounded-lg bg-muted/60 animate-pulse"}),b.jsx("div",{className:"size-8 rounded-full bg-muted animate-pulse"})]})]})]})})}),e[8]=c):c=e[8];let d;return e[9]!==r?(d=b.jsxs("div",{className:r,children:[s,o,c]}),e[9]=r,e[10]=d):d=e[10],d}function Ka(t){const e=Y.c(22),{align:n,width:r,lines:a}=t,i=r===void 0?"w-full":r,s=a===void 0?1:a,o=n==="right"?"flex-row-reverse":"flex-row";let l;e[0]!==o?(l=ee("flex w-full gap-4 px-4 py-2",o),e[0]=o,e[1]=l):l=e[1];const u=n==="right"?"ml-auto max-w-3/4 items-end":"w-full items-start";let c;e[2]!==u?(c=ee("flex min-w-0 flex-col gap-2",u),e[2]=u,e[3]=c):c=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=b.jsx("div",{className:"h-3 w-16 rounded bg-muted/40 animate-pulse"}),e[4]=d):d=e[4];const p=n==="right"?"bg-muted":"bg-transparent border border-border/40";let f;e[5]!==p||e[6]!==i?(f=ee("min-w-0 rounded-2xl p-4",p,i),e[5]=p,e[6]=i,e[7]=f):f=e[7];let h;e[8]!==s?(h=Array.from({length:s}),e[8]=s,e[9]=h):h=e[9];let g;e[10]!==s||e[11]!==h?(g=b.jsx("div",{className:"space-y-2",children:h.map((S,N)=>b.jsx("div",{className:ee("h-3 rounded bg-muted-foreground/20 animate-pulse",N===s-1?"w-3/4":"w-full"),style:{animationDelay:`${N*.1}s`}},N))}),e[10]=s,e[11]=h,e[12]=g):g=e[12];let E;e[13]!==g||e[14]!==f?(E=b.jsx("div",{className:f,children:g}),e[13]=g,e[14]=f,e[15]=E):E=e[15];let T;e[16]!==E||e[17]!==c?(T=b.jsxs("div",{className:c,children:[d,E]}),e[16]=E,e[17]=c,e[18]=T):T=e[18];let y;return e[19]!==T||e[20]!==l?(y=b.jsx("div",{className:l,children:T}),e[19]=T,e[20]=l,e[21]=y):y=e[21],y}function iq(t){const e=Y.c(5),{className:n,children:r}=t;let a;e[0]!==n?(a=ee("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),e[0]=n,e[1]=a):a=e[1];let i;return e[2]!==r||e[3]!==a?(i=b.jsx("div",{className:a,children:r}),e[2]=r,e[3]=a,e[4]=i):i=e[4],i}function sq(t){const e=Y.c(5),{children:n,className:r}=t;let a;e[0]!==r?(a=ee("flex-1 min-h-0 overflow-y-auto isolate",r),e[0]=r,e[1]=a):a=e[1];let i;return e[2]!==n||e[3]!==a?(i=b.jsx("div",{className:a,children:n}),e[2]=n,e[3]=a,e[4]=i):i=e[4],i}function oq(t){const e=Y.c(2),{children:n}=t;let r;return e[0]!==n?(r=b.jsx("div",{className:"h-full w-full flex items-center justify-center max-w-2xl mx-auto",children:n}),e[0]=n,e[1]=r):r=e[1],r}function lq(){const t=Y.c(16),{messages:e,status:n}=rh(),r=K9(e);let a;t[0]!==r?(a=r.at(-1),t[0]=r,t[1]=a):a=t[1];const i=a,s=n==="submitted"||n==="streaming";let o;if(t[2]!==s||t[3]!==i||t[4]!==r||t[5]!==e||t[6]!==n){const l=e.at(-1),u=!s&&l?.role==="assistant"&&l.parts.filter(dq).some(cq),c=!s&&l?.role==="assistant"&&l.parts.some(uq);let d;if(t[8]!==r||t[9]!==n){let f;t[11]!==r.length||t[12]!==n?(f=(h,g)=>b.jsx(wS,{pair:h,isLastPair:!1,status:g===r.length-1?n:void 0},`pair-${h.user.id}`),t[11]=r.length,t[12]=n,t[13]=f):f=t[13],d=r.slice(0,-1).map(f),t[8]=r,t[9]=n,t[10]=d}else d=t[10];let p;t[14]!==d?(p=b.jsx("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:d}),t[14]=d,t[15]=p):p=t[15],o=b.jsxs("div",{className:"w-full min-w-0 max-w-full overflow-y-auto h-full overflow-x-hidden",children:[p,i&&b.jsx("div",{className:ee("min-h-full min-w-0 max-w-2xl mx-auto w-full",(u||c)&&"pb-60"),children:b.jsx(wS,{pair:i,isLastPair:!0,status:n},`pair-${i?.user.id}`)})]}),t[2]=s,t[3]=i,t[4]=r,t[5]=e,t[6]=n,t[7]=o}else o=t[7];return o}function uq(t){return"state"in t&&t.state==="approval-requested"}function cq(t){return t.state==="input-available"}function dq(t){return t.type==="tool-user_ask"}function pq(t){const e=Y.c(5),{children:n,className:r}=t;let a;e[0]!==r?(a=ee("flex-none w-full mx-auto p-2","max-w-2xl min-w-0",r),e[0]=r,e[1]=a):a=e[1];let i;return e[2]!==n||e[3]!==a?(i=b.jsx("div",{className:a,children:n}),e[2]=n,e[3]=a,e[4]=i):i=e[4],i}const r7=Object.assign(iq,{Main:sq,Messages:lq,EmptyState:oq,Footer:pq,Input:iP,Provider:VC,Skeleton:aq,IceBreakers:fL,NoLlmBindingEmptyState:Q9,ThreadHistoryPopover:tq});export{r7 as C,Ph as E,A9 as M,tt as N,ye as P,Sv as R,O3 as S,Bh as V,on as a,nL as b,JO as c,yv as d,aA as e,jL as f,i_ as i,Oe as m,bv as u};
|
|
194
|
+
`);d=!s&&y.trim()?y:null,e[7]=s,e[8]=r,e[9]=d}else d=e[9];const p=d,f=!a&&n!=null?n/1e3:void 0;let h;e[10]!==a?(h=a?b.jsx($S,{className:"size-4"}):b.jsx(nA,{className:"size-4"}),e[10]=a,e[11]=h):h=e[11];const g=a?"Thinking...":l,E=a?"loading":"idle";let T;return e[12]!==p||e[13]!==a||e[14]!==f||e[15]!==c||e[16]!==h||e[17]!==g||e[18]!==E?(T=b.jsx(Qh,{icon:h,title:g,summary:c,detail:p,state:E,detailVariant:"prose",latency:f,forceOpen:a}),e[12]=p,e[13]=a,e[14]=f,e[15]=c,e[16]=h,e[17]=g,e[18]=E,e[19]=T):T=e[19],T}function U9(t){return t.text??""}function H9(t){return t.text??""}function $9(t){return t.text?.includes("REDACTED")}function j9(t){const e=Y.c(53),{part:n,id:r,usageStats:a,dataParts:i,isLoading:s,isLastMessage:o}=t;let l;e[0]!==i.toolMetadata?(l=p=>i.toolMetadata.get(p),e[0]=i.toolMetadata,e[1]=l):l=e[1];const u=l;let c;e[2]!==i.toolSubtaskMetadata?(c=p=>i.toolSubtaskMetadata.get(p),e[2]=i.toolSubtaskMetadata,e[3]=c):c=e[3];const d=c;switch(n.type){case"dynamic-tool":{let p;e[4]!==u||e[5]!==n.toolCallId?(p=u(n.toolCallId)?.annotations,e[4]=u,e[5]=n.toolCallId,e[6]=p):p=e[6];let f;e[7]!==u||e[8]!==n.toolCallId?(f=u(n.toolCallId)?.latencySeconds,e[7]=u,e[8]=n.toolCallId,e[9]=f):f=e[9];let h;e[10]!==u||e[11]!==n.toolCallId?(h=u(n.toolCallId)?._meta,e[10]=u,e[11]=n.toolCallId,e[12]=h):h=e[12];let g;return e[13]!==o||e[14]!==n||e[15]!==p||e[16]!==f||e[17]!==h?(g=b.jsx(kS,{part:n,annotations:p,latency:f,isLastMessage:o,toolMeta:h}),e[13]=o,e[14]=n,e[15]=p,e[16]=f,e[17]=h,e[18]=g):g=e[18],g}case"tool-user_ask":{let p;e[19]!==u||e[20]!==n.toolCallId?(p=u(n.toolCallId)?.latencySeconds,e[19]=u,e[20]=n.toolCallId,e[21]=p):p=e[21];let f;return e[22]!==n||e[23]!==p?(f=b.jsx(R9,{part:n,latency:p}),e[22]=n,e[23]=p,e[24]=f):f=e[24],f}case"tool-subtask":{let p;e[25]!==d||e[26]!==n.toolCallId?(p=d(n.toolCallId),e[25]=d,e[26]=n.toolCallId,e[27]=p):p=e[27];let f;e[28]!==u||e[29]!==n.toolCallId?(f=u(n.toolCallId)?.annotations,e[28]=u,e[29]=n.toolCallId,e[30]=f):f=e[30];let h;e[31]!==u||e[32]!==n.toolCallId?(h=u(n.toolCallId)?.latencySeconds,e[31]=u,e[32]=n.toolCallId,e[33]=h):h=e[33];let g;return e[34]!==n||e[35]!==p||e[36]!==f||e[37]!==h?(g=b.jsx(x9,{part:n,subtaskMeta:p,annotations:f,latency:h}),e[34]=n,e[35]=p,e[36]=f,e[37]=h,e[38]=g):g=e[38],g}case"text":{const p=!!a&&!s;let f;return e[39]!==r||e[40]!==n||e[41]!==p||e[42]!==a?(f=b.jsx(vC,{id:r,part:n,extraActions:a,copyable:!0,alwaysShowActions:p}),e[39]=r,e[40]=n,e[41]=p,e[42]=a,e[43]=f):f=e[43],f}case"reasoning":return null;case"step-start":case"file":case"source-url":case"source-document":return null;case"data-tool-metadata":case"data-tool-subtask-metadata":return null;default:{const p=n;if(p.type.startsWith("tool-")){const f=p.toolCallId;let h;e[44]!==i.toolMetadata||e[45]!==f?(h=i.toolMetadata.get(f),e[44]=i.toolMetadata,e[45]=f,e[46]=h):h=e[46];const g=h,E=g?.annotations,T=g?.latencySeconds,y=g?._meta;let S;return e[47]!==p||e[48]!==o||e[49]!==E||e[50]!==T||e[51]!==y?(S=b.jsx(kS,{part:p,annotations:E,latency:T,isLastMessage:o,toolMeta:y}),e[47]=p,e[48]=o,e[49]=E,e[50]=T,e[51]=y,e[52]=S):S=e[52],S}if(p.type.startsWith("data-"))return null;throw new Error(`Unknown part type: ${p.type}`)}}}function q9(){const t=Y.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx("div",{className:"text-[14px] text-muted-foreground/60 py-2",children:"No response was generated"}),t[0]=e):e=t[0],e}function z9(t){const e=Y.c(7),{className:n,children:r}=t;let a;e[0]!==n?(a=ee("w-full min-w-0 group relative flex items-start gap-4 px-4 z-20 text-foreground flex-row",n),e[0]=n,e[1]=a):a=e[1];let i;e[2]!==r?(i=b.jsx("div",{className:"flex flex-col min-w-0 w-full items-start",children:b.jsx("div",{className:"w-full min-w-0 not-only:rounded-2xl text-[14px] wrap-break-word overflow-wrap-anywhere bg-transparent",children:r})}),e[2]=r,e[3]=i):i=e[3];let s;return e[4]!==a||e[5]!==i?(s=b.jsx("div",{className:a,children:i}),e[4]=a,e[5]=i,e[6]=s):s=e[6],s}function G9(t){const e=Y.c(23),{message:n,status:r,className:a,isLast:i}=t,s=i===void 0?!1:i,o=r==="streaming",u=o||r==="submitted";let c;e[0]!==u?(c=()=>u?Date.now():null,e[0]=u,e[1]=c):c=e[1];const[d,p]=L.useState(c),[f,h]=L.useState(u);f!==u&&(h(u),p(u?Date.now():null));const g=n!==null&&n.parts.length>0,{reasoningParts:E,dataParts:T}=O9(n),y=E.length>0;let S;if(e[2]!==n){const R=n?.metadata?.reasoning_start_at?new Date(n.metadata.reasoning_start_at):null,I=n?.metadata?.reasoning_end_at?new Date(n.metadata.reasoning_end_at):new Date;S=R!==null?I.getTime()-R.getTime():null,e[2]=n,e[3]=S}else S=e[3];const N=S;let _;e[4]!==T||e[5]!==N||e[6]!==g||e[7]!==y||e[8]!==s||e[9]!==u||e[10]!==o||e[11]!==n||e[12]!==E||e[13]!==d?(_=g?b.jsxs("div",{className:"flex flex-col gap-2",children:[y&&b.jsx(B9,{duration:N,parts:E,isStreaming:o}),n.parts.map((R,I)=>{const O=I===n.parts.length-1,w=O?sI(oI(),n.metadata?.usage):null;return b.jsx(j9,{part:R,id:n.id,usageStats:O&&b.jsx(eP,{usage:w,duration:N}),dataParts:T,isLoading:u,isLastMessage:s},`${n.id}-${I}`)}),s&&u&&d!==null&&b.jsx(F9,{startedAt:d})]}):u?b.jsx(M9,{}):b.jsx(q9,{}),e[4]=T,e[5]=N,e[6]=g,e[7]=y,e[8]=s,e[9]=u,e[10]=o,e[11]=n,e[12]=E,e[13]=d,e[14]=_):_=e[14];let A;e[15]!==s||e[16]!==o||e[17]!==n?.parts?(A=s&&o&&b.jsx(k9,{parts:n?.parts}),e[15]=s,e[16]=o,e[17]=n?.parts,e[18]=A):A=e[18];let v;return e[19]!==a||e[20]!==_||e[21]!==A?(v=b.jsxs(z9,{className:a,children:[_,A]}),e[19]=a,e[20]=_,e[21]=A,e[22]=v):v=e[22],v}const V9=[i_.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1}),Cv,Lv];function W9(t){const e=Y.c(5),{tiptapDoc:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={attributes:{class:"prose prose-sm max-w-none focus:outline-none"}},e[0]=r):r=e[0];let a;e[1]!==n?(a={extensions:V9,content:n,editable:!1,editorProps:r},e[1]=n,e[2]=a):a=e[2];const i=bv(a);if(!i)return null;let s;return e[3]!==i?(s=b.jsx(Ph,{editor:i,className:"[&_.ProseMirror]:outline-none [&_.ProseMirror]:cursor-text"}),e[3]=i,e[4]=s):s=e[4],s}function Y9(t){const e=Y.c(27),{message:n,className:r,onScrollToPair:a}=t,{id:i,parts:s,metadata:o}=n,[l,u]=L.useState(!1),[c,d]=L.useState(!1),p=L.useRef(!1);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=M=>{M&&!p.current&&(p.current=!0,d(M.scrollHeight>M.clientHeight))},e[0]=f):f=e[0];const h=f;if(!s||s.length===0)return null;let g;e[1]!==a?(g=()=>{u(!0),a?.()},e[1]=a,e[2]=g):g=e[2];const E=g,T=o?.tiptapDoc;let y;e[3]!==r?(y=ee("message-block w-full min-w-0 relative flex items-start gap-4 px-2.5 text-foreground flex-row-reverse",r),e[3]=r,e[4]=y):y=e[4];let S,N;e[5]===Symbol.for("react.memo_cache_sentinel")?(S=()=>u(!0),N=()=>u(!1),e[5]=S,e[6]=N):(S=e[5],N=e[6]);let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_=b.jsx("div",{className:"absolute inset-0 bg-muted/75 rounded-lg pointer-events-none"}),e[7]=_):_=e[7];let A;e[8]!==l||e[9]!==c?(A=ee("z-10 px-4 py-2 transition-opacity max-h-[84px] flex-1",l?"overflow-auto opacity-100":ee("overflow-hidden opacity-99",c&&"mask-b-from-1%")),e[8]=l,e[9]=c,e[10]=A):A=e[10];let v;e[11]!==T||e[12]!==i||e[13]!==o||e[14]!==s?(v=T?b.jsx(W9,{tiptapDoc:o.tiptapDoc}):s.map((M,H)=>M.type==="text"?b.jsx(vC,{id:i,part:M},`${i}-${H}`):null),e[11]=T,e[12]=i,e[13]=o,e[14]=s,e[15]=v):v=e[15];let R;e[16]!==v?(R=b.jsx("div",{children:v}),e[16]=v,e[17]=R):R=e[17];let I;e[18]!==A||e[19]!==R?(I=b.jsx("div",{ref:h,className:A,children:R}),e[18]=A,e[19]=R,e[20]=I):I=e[20];let O;e[21]!==E||e[22]!==I?(O=b.jsxs("div",{tabIndex:0,onClick:E,onFocus:S,onBlur:N,className:"w-full border border-border/60 min-w-0 shadow-xs rounded-lg text-[14px] wrap-break-word overflow-wrap-anywhere bg-background cursor-pointer transition-colors relative flex outline-none",children:[_,I]}),e[21]=E,e[22]=I,e[23]=O):O=e[23];let w;return e[24]!==O||e[25]!==y?(w=b.jsx(b.Fragment,{children:b.jsx("div",{className:y,children:O})}),e[24]=O,e[25]=y,e[26]=w):w=e[26],w}function K9(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];if(r&&r.role==="user"){const a=t[n+1];a&&a.role==="assistant"?(e.push({user:r,assistant:a}),n++):e.push({user:r,assistant:null})}}return e}function wS(t){const e=Y.c(14),{pair:n,isLastPair:r,status:a}=t,i=L.useRef(null);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{i.current&&i.current.scrollIntoView({behavior:"smooth",block:"start"})},e[0]=s):s=e[0];const o=s;let l;e[1]!==r?(l=h=>{i.current=h,r&&h?.scrollIntoView({behavior:"smooth",block:"start"})},e[1]=r,e[2]=l):l=e[2];const u=l;let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("div",{className:"sticky top-0 z-50 w-full h-4 bg-background"}),e[3]=c):c=e[3];let d;e[4]!==n.user?(d=b.jsx("div",{className:"sticky mb-6 top-4 z-50",children:b.jsx(Y9,{message:n.user,onScrollToPair:o})}),e[4]=n.user,e[5]=d):d=e[5];let p;e[6]!==r||e[7]!==n.assistant||e[8]!==a?(p=b.jsx(G9,{message:n.assistant,status:a,isLast:r}),e[6]=r,e[7]=n.assistant,e[8]=a,e[9]=p):p=e[9];let f;return e[10]!==u||e[11]!==d||e[12]!==p?(f=b.jsxs("div",{ref:u,className:"flex flex-col pb-2",children:[c,d,p]}),e[10]=u,e[11]=d,e[12]=p,e[13]=f):f=e[13],f}const X9="https://sites-openrouter.decocache.com/mcp",Z9="https://assets.decocache.com/decocms/b2e2f64f-6025-45f7-9e8c-3b3ebdd073d8/openrouter_logojpg.jpg";function Q9({title:t="No model provider connected",description:e="Connect to a model provider to unlock AI-powered features.",org:n}){const r=jI(),[,a]=GI(),i=US(),{data:s}=zC.useSession(),o=qI(),l=s?.user?.id??"",u=()=>{i({to:"/$org/$project/mcps",params:{org:n.slug,project:Xa},search:{action:"create"}})},c=async()=>{if(!n.id||!l){$t.error("Not authenticated");return}try{const d=o?.find(h=>h.connection_url===X9);if(d){a(!1),i({to:"/$org/$project/mcps/$connectionId",params:{org:n.slug,project:Xa,connectionId:d.id}});return}const p=YC({id:zI("conn")}),f=await r.create.mutateAsync(p);a(!1),i({to:"/$org/$project/mcps/$connectionId",params:{org:n.slug,project:Xa,connectionId:f.id}})}catch(d){$t.error(`Failed to connect OpenRouter: ${d instanceof Error?d.message:String(d)}`)}};return b.jsx($I,{image:b.jsx("img",{src:"/empty-state-openrouter.svg",alt:"",width:336,height:320,"aria-hidden":"true",className:"w-xs h-auto mask-radial-[100%_100%] mask-radial-from-20% mask-radial-to-50% mask-radial-at-center"}),title:t,description:e,actions:b.jsxs(b.Fragment,{children:[b.jsxs(ke,{variant:"outline",onClick:c,disabled:r.create.isPending,children:[b.jsx("img",{src:Z9,alt:"OpenRouter",className:"size-4"}),r.create.isPending?"Installing...":"Install OpenRouter"]}),b.jsx(ke,{variant:"outline",onClick:u,children:"Install Connection"})]})})}function J9(t){const e=new Date(t),r=new Date().getTime()-e.getTime(),a=Math.floor(r/6e4),i=Math.floor(r/36e5);return a<1?"now":a<60?`${a}m`:`${i}h`}function eq(t){const e=new Date,n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(n.getTime()-864e5),a=new Date(n.getTime()-7*864e5),i=new Date(n.getTime()-30*864e5),s=[],o=[],l=[],u=[],c=[];for(const p of t){const f=new Date(p.updated_at);f>=n?s.push(p):f>=r?o.push(p):f>=a?l.push(p):f>=i?u.push(p):c.push(p)}const d=[];return s.length>0&&d.push({label:"Today",threads:s,showRelativeTime:!0}),o.length>0&&d.push({label:"Yesterday",threads:o,showRelativeTime:!1}),l.length>0&&d.push({label:"7 days ago",threads:l,showRelativeTime:!1}),u.length>0&&d.push({label:"30 days ago",threads:u,showRelativeTime:!1}),c.length>0&&d.push({label:"Older",threads:c,showRelativeTime:!1}),d}function tq(t){const e=Y.c(60),{variant:n}=t,r=n===void 0?"icon":n,[a,i]=L.useState(""),[s,o]=L.useState(null),[l,u]=L.useState(""),{activeThreadId:c,switchToThread:d,threads:p,hasNextPage:f,isFetchingNextPage:h,fetchNextPage:g,hideThread:E,renameThread:T}=Sa(),y=L.useRef(null),S=L.useRef(null);let N;e[0]!==g||e[1]!==f||e[2]!==h?(N=Q=>{S.current&&S.current.disconnect(),Q&&f&&!h&&g&&(S.current=new IntersectionObserver(J=>{J[0]?.isIntersecting&&f&&!h&&g&&g()},{rootMargin:"100px"}),S.current.observe(Q)),y.current=Q},e[0]=g,e[1]=f,e[2]=h,e[3]=N):N=e[3];const _=N;let A,v,R,I,O,w,M,H,F,$,U;if(e[4]!==c||e[5]!==s||e[6]!==l||e[7]!==f||e[8]!==E||e[9]!==h||e[10]!==T||e[11]!==a||e[12]!==_||e[13]!==d||e[14]!==p||e[15]!==r){const Q=a.trim()?p.filter(de=>de.title.toLowerCase().includes(a.toLowerCase())):p,J=eq(Q);let ae;e[27]===Symbol.for("react.memo_cache_sentinel")?(ae=(de,he)=>{he.stopPropagation(),o(de.id),u(de.title||"")},e[27]=ae):ae=e[27];const te=ae;let se;e[28]!==l||e[29]!==T?(se=async de=>{const he=l.trim();he&&await T(de,he),o(null)},e[28]=l,e[29]=T,e[30]=se):se=e[30];const ce=se;let be;e[31]!==ce?(be=(de,he)=>{de.key==="Enter"?(de.preventDefault(),ce(he)):de.key==="Escape"&&o(null)},e[31]=ce,e[32]=be):be=e[32];const Le=be;I=as,R=ut,v=yr,e[33]!==r?($=b.jsx(ct,{asChild:!0,children:b.jsx(Sr,{asChild:!0,children:r==="outline"?b.jsx(ke,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input","aria-label":"Chat history",children:b.jsx(Rm,{size:16})}):b.jsx(ke,{type:"button",variant:"ghost",size:"icon",className:"size-6 p-1 hover:bg-transparent","aria-label":"Chat history",children:b.jsx(Rm,{size:16,className:"text-muted-foreground hover:text-foreground transition-colors"})})})}),e[33]=r,e[34]=$):$=e[34],e[35]===Symbol.for("react.memo_cache_sentinel")?(U=b.jsx(dt,{children:"Chat history"}),e[35]=U):U=e[35],A=Ar,M="end",H="w-80 p-0";let _e;e[36]===Symbol.for("react.memo_cache_sentinel")?(_e=b.jsx(KS,{size:16,className:"text-muted-foreground shrink-0"}),e[36]=_e):_e=e[36];let Se;e[37]===Symbol.for("react.memo_cache_sentinel")?(Se=de=>i(de.target.value),e[37]=Se):Se=e[37],e[38]!==a?(F=b.jsx("div",{className:"border-b",children:b.jsxs("label",{className:"flex items-center gap-2.5 h-12 px-4 cursor-text",children:[_e,b.jsx("input",{type:"text",placeholder:"Search chats...",value:a,onChange:Se,className:"flex-1 border-0 shadow-none focus:outline-none px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"})]})}),e[38]=a,e[39]=F):F=e[39],O="max-h-[300px] overflow-y-auto",w=Q.length===0?b.jsx("div",{className:"p-4 text-center text-sm text-muted-foreground",children:a.trim()?"No chats found":"No chats yet"}):b.jsxs(b.Fragment,{children:[J.map((de,he)=>b.jsxs("div",{children:[he>0&&b.jsx("div",{className:"border-t mx-3"}),b.jsx("div",{className:"px-3 py-1",children:b.jsx("span",{className:"text-xs font-medium text-muted-foreground tracking-wide",children:de.label})}),de.threads.map(Ae=>{const Tt=Ae.id===c,$e=s===Ae.id;return b.jsxs("div",{className:ee("flex items-center gap-2 px-3 py-2 hover:bg-accent cursor-pointer group",Tt&&"bg-accent/50"),onClick:()=>!$e&&d(Ae.id),children:[b.jsx("div",{className:"flex-1 min-w-0",children:$e?b.jsxs("div",{className:"flex items-center gap-1",onClick:rq,children:[b.jsx("input",{autoFocus:!0,value:l,onChange:Ze=>u(Ze.target.value),onBlur:()=>ce(Ae.id),onKeyDown:Ze=>Le(Ze,Ae.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),b.jsx("button",{type:"button",onMouseDown:nq,onClick:()=>ce(Ae.id),className:"p-0.5 hover:bg-accent rounded shrink-0",children:b.jsx(qn,{size:12,className:"text-muted-foreground hover:text-foreground"})})]}):b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-sm truncate",children:Ae.title||"New chat"}),b.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:Tt?"current":de.showRelativeTime?J9(Ae.updated_at):null})]})}),!$e&&b.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[b.jsx("button",{type:"button",onClick:Ze=>te(Ae,Ze),className:"opacity-0 cursor-pointer group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename chat",children:b.jsx(GS,{size:13,className:"text-muted-foreground hover:text-foreground"})}),b.jsx("button",{type:"button",onClick:Ze=>{Ze.stopPropagation(),E(Ae.id)},className:"opacity-0 cursor-pointer group/trash group-hover:opacity-100 p-1 hover:bg-destructive/10 rounded transition-opacity",title:"Remove chat",children:b.jsx(VI,{size:14,className:"text-muted-foreground group-hover/trash:text-destructive"})})]})]},Ae.id)})]},de.label)),!a.trim()&&f&&b.jsx("div",{ref:_,className:"h-4"}),h&&b.jsx("div",{className:"p-3 text-center text-xs text-muted-foreground",children:"Loading more chats..."})]}),e[4]=c,e[5]=s,e[6]=l,e[7]=f,e[8]=E,e[9]=h,e[10]=T,e[11]=a,e[12]=_,e[13]=d,e[14]=p,e[15]=r,e[16]=A,e[17]=v,e[18]=R,e[19]=I,e[20]=O,e[21]=w,e[22]=M,e[23]=H,e[24]=F,e[25]=$,e[26]=U}else A=e[16],v=e[17],R=e[18],I=e[19],O=e[20],w=e[21],M=e[22],H=e[23],F=e[24],$=e[25],U=e[26];let j;e[40]!==O||e[41]!==w?(j=b.jsx("div",{className:O,children:w}),e[40]=O,e[41]=w,e[42]=j):j=e[42];let P;e[43]!==A||e[44]!==j||e[45]!==M||e[46]!==H||e[47]!==F?(P=b.jsxs(A,{align:M,className:H,children:[F,j]}),e[43]=A,e[44]=j,e[45]=M,e[46]=H,e[47]=F,e[48]=P):P=e[48];let W;e[49]!==v||e[50]!==P||e[51]!==$||e[52]!==U?(W=b.jsxs(v,{children:[$,U,P]}),e[49]=v,e[50]=P,e[51]=$,e[52]=U,e[53]=W):W=e[53];let X;e[54]!==R||e[55]!==W?(X=b.jsx(R,{children:W}),e[54]=R,e[55]=W,e[56]=X):X=e[56];let K;return e[57]!==I||e[58]!==X?(K=b.jsx(I,{children:X}),e[57]=I,e[58]=X,e[59]=K):K=e[59],K}function nq(t){return t.preventDefault()}function rq(t){return t.stopPropagation()}function aq(t){const e=Y.c(11),{className:n}=t;let r;e[0]!==n?(r=ee("flex h-full w-full flex-col bg-background",n),e[0]=n,e[1]=r):r=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=b.jsx("div",{className:"size-6 rounded-lg bg-muted animate-pulse"}),e[2]=a):a=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsxs("div",{className:"flex items-center gap-3",children:[a,b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx("div",{className:"h-3.5 w-28 rounded bg-muted animate-pulse"}),b.jsx("div",{className:"h-3 w-40 rounded bg-muted/60 animate-pulse"})]})]}),e[3]=i):i=e[3];let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s=b.jsx("div",{className:"flex items-center h-12 flex-none border-b border-border/80 px-4",children:b.jsxs("div",{className:"flex items-center justify-between gap-3 w-full",children:[i,b.jsxs("div",{className:"flex items-end gap-2",children:[b.jsx("div",{className:"h-6 w-6 rounded-full bg-muted animate-pulse"}),b.jsx("div",{className:"h-6 w-6 rounded-lg bg-muted animate-pulse"})]})]})}),e[4]=s):s=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=b.jsx("div",{className:"flex-1 overflow-hidden px-4 py-4",children:b.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col gap-4",children:[b.jsx(Ka,{align:"right",width:"w-3/4"}),b.jsx(Ka,{align:"left",width:"w-full",lines:3}),b.jsx(Ka,{align:"right",width:"w-2/3"}),b.jsx(Ka,{align:"left",width:"w-5/6",lines:2})]})}),e[5]=o):o=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=b.jsx("div",{className:"relative flex flex-1 flex-col gap-2 p-2.5",children:b.jsx("div",{className:"relative flex-1",children:b.jsxs("div",{className:"space-y-2 p-2",children:[b.jsx("div",{className:"h-3 w-full rounded bg-muted/40 animate-pulse"}),b.jsx("div",{className:"h-3 w-4/5 rounded bg-muted/40 animate-pulse"})]})})}),e[6]=l):l=e[6];let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=b.jsx("div",{className:"flex items-center gap-1",children:b.jsx("div",{className:"size-8 rounded-full bg-muted/60 animate-pulse"})}),e[7]=u):u=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx("div",{className:"px-4 py-4",children:b.jsx("div",{className:"mx-auto w-full max-w-2xl",children:b.jsxs("div",{className:"relative flex min-h-[130px] flex-col rounded-xl border border-border bg-background shadow-sm",children:[l,b.jsxs("div",{className:"flex items-center justify-between px-2.5 pb-2.5",children:[u,b.jsxs("div",{className:"flex items-center gap-1",children:[b.jsx("div",{className:"h-8 w-32 rounded-lg bg-muted/60 animate-pulse"}),b.jsx("div",{className:"size-8 rounded-full bg-muted animate-pulse"})]})]})]})})}),e[8]=c):c=e[8];let d;return e[9]!==r?(d=b.jsxs("div",{className:r,children:[s,o,c]}),e[9]=r,e[10]=d):d=e[10],d}function Ka(t){const e=Y.c(22),{align:n,width:r,lines:a}=t,i=r===void 0?"w-full":r,s=a===void 0?1:a,o=n==="right"?"flex-row-reverse":"flex-row";let l;e[0]!==o?(l=ee("flex w-full gap-4 px-4 py-2",o),e[0]=o,e[1]=l):l=e[1];const u=n==="right"?"ml-auto max-w-3/4 items-end":"w-full items-start";let c;e[2]!==u?(c=ee("flex min-w-0 flex-col gap-2",u),e[2]=u,e[3]=c):c=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=b.jsx("div",{className:"h-3 w-16 rounded bg-muted/40 animate-pulse"}),e[4]=d):d=e[4];const p=n==="right"?"bg-muted":"bg-transparent border border-border/40";let f;e[5]!==p||e[6]!==i?(f=ee("min-w-0 rounded-2xl p-4",p,i),e[5]=p,e[6]=i,e[7]=f):f=e[7];let h;e[8]!==s?(h=Array.from({length:s}),e[8]=s,e[9]=h):h=e[9];let g;e[10]!==s||e[11]!==h?(g=b.jsx("div",{className:"space-y-2",children:h.map((S,N)=>b.jsx("div",{className:ee("h-3 rounded bg-muted-foreground/20 animate-pulse",N===s-1?"w-3/4":"w-full"),style:{animationDelay:`${N*.1}s`}},N))}),e[10]=s,e[11]=h,e[12]=g):g=e[12];let E;e[13]!==g||e[14]!==f?(E=b.jsx("div",{className:f,children:g}),e[13]=g,e[14]=f,e[15]=E):E=e[15];let T;e[16]!==E||e[17]!==c?(T=b.jsxs("div",{className:c,children:[d,E]}),e[16]=E,e[17]=c,e[18]=T):T=e[18];let y;return e[19]!==T||e[20]!==l?(y=b.jsx("div",{className:l,children:T}),e[19]=T,e[20]=l,e[21]=y):y=e[21],y}function iq(t){const e=Y.c(5),{className:n,children:r}=t;let a;e[0]!==n?(a=ee("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),e[0]=n,e[1]=a):a=e[1];let i;return e[2]!==r||e[3]!==a?(i=b.jsx("div",{className:a,children:r}),e[2]=r,e[3]=a,e[4]=i):i=e[4],i}function sq(t){const e=Y.c(5),{children:n,className:r}=t;let a;e[0]!==r?(a=ee("flex-1 min-h-0 overflow-y-auto isolate",r),e[0]=r,e[1]=a):a=e[1];let i;return e[2]!==n||e[3]!==a?(i=b.jsx("div",{className:a,children:n}),e[2]=n,e[3]=a,e[4]=i):i=e[4],i}function oq(t){const e=Y.c(2),{children:n}=t;let r;return e[0]!==n?(r=b.jsx("div",{className:"h-full w-full flex items-center justify-center max-w-2xl mx-auto",children:n}),e[0]=n,e[1]=r):r=e[1],r}function lq(){const t=Y.c(16),{messages:e,status:n}=rh(),r=K9(e);let a;t[0]!==r?(a=r.at(-1),t[0]=r,t[1]=a):a=t[1];const i=a,s=n==="submitted"||n==="streaming";let o;if(t[2]!==s||t[3]!==i||t[4]!==r||t[5]!==e||t[6]!==n){const l=e.at(-1),u=!s&&l?.role==="assistant"&&l.parts.filter(dq).some(cq),c=!s&&l?.role==="assistant"&&l.parts.some(uq);let d;if(t[8]!==r||t[9]!==n){let f;t[11]!==r.length||t[12]!==n?(f=(h,g)=>b.jsx(wS,{pair:h,isLastPair:!1,status:g===r.length-1?n:void 0},`pair-${h.user.id}`),t[11]=r.length,t[12]=n,t[13]=f):f=t[13],d=r.slice(0,-1).map(f),t[8]=r,t[9]=n,t[10]=d}else d=t[10];let p;t[14]!==d?(p=b.jsx("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:d}),t[14]=d,t[15]=p):p=t[15],o=b.jsxs("div",{className:"w-full min-w-0 max-w-full overflow-y-auto h-full overflow-x-hidden",children:[p,i&&b.jsx("div",{className:ee("min-h-full min-w-0 max-w-2xl mx-auto w-full",(u||c)&&"pb-60"),children:b.jsx(wS,{pair:i,isLastPair:!0,status:n},`pair-${i?.user.id}`)})]}),t[2]=s,t[3]=i,t[4]=r,t[5]=e,t[6]=n,t[7]=o}else o=t[7];return o}function uq(t){return"state"in t&&t.state==="approval-requested"}function cq(t){return t.state==="input-available"}function dq(t){return t.type==="tool-user_ask"}function pq(t){const e=Y.c(5),{children:n,className:r}=t;let a;e[0]!==r?(a=ee("flex-none w-full mx-auto p-2","max-w-2xl min-w-0",r),e[0]=r,e[1]=a):a=e[1];let i;return e[2]!==n||e[3]!==a?(i=b.jsx("div",{className:a,children:n}),e[2]=n,e[3]=a,e[4]=i):i=e[4],i}const r7=Object.assign(iq,{Main:sq,Messages:lq,EmptyState:oq,Footer:pq,Input:iP,Provider:VC,Skeleton:aq,IceBreakers:fL,NoLlmBindingEmptyState:Q9,ThreadHistoryPopover:tq});export{r7 as C,Ph as E,A9 as M,tt as N,ye as P,Sv as R,O3 as S,Bh as V,on as a,nL as b,JO as c,yv as d,aA as e,jL as f,i_ as i,Oe as m,bv as u};
|