bb-app 0.0.5 → 0.0.6
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/app/dist/assets/AppSettingsView-DH1waGrt.js +1 -0
- package/app/dist/assets/{InternalReplayListView-BMzOdu0K.js → InternalReplayListView-DjsfJLJv.js} +1 -1
- package/app/dist/assets/{ProjectArchivedThreadsView-DzbW3kSk.js → ProjectArchivedThreadsView-Bj8oRQmq.js} +1 -1
- package/app/dist/assets/ProjectSettingsView-B5yhhmEc.js +1 -0
- package/app/dist/assets/ThreadDetailRoute-DKYxhL5B.js +2680 -0
- package/app/dist/assets/ThreadUnarchiveButton-CdRo7M97.js +1 -0
- package/app/dist/assets/{angular-html-CM7ZtmlE.js → angular-html-CoYv0XJY.js} +1 -1
- package/app/dist/assets/{angular-ts-B4aAwutb.js → angular-ts--oE0vL6J.js} +1 -1
- package/app/dist/assets/{apl-Db6aaGYX.js → apl-mu0Mp6u1.js} +1 -1
- package/app/dist/assets/{astro-CXkhV095.js → astro-DGoqbRGX.js} +1 -1
- package/app/dist/assets/{blade-CfLZY3kt.js → blade-DQujc1A5.js} +1 -1
- package/app/dist/assets/{c-CwV4mx9Z.js → c-2jbVFmuV.js} +1 -1
- package/app/dist/assets/{chunk-JZWAC4HX-CrzST-zS.js → chunk-JZWAC4HX-C_-VEW9Q.js} +1 -1
- package/app/dist/assets/{cobol-Bx9V6w-A.js → cobol-Dk2pgWM3.js} +1 -1
- package/app/dist/assets/{coffee-4vexivp2.js → coffee-6v78fbbf.js} +1 -1
- package/app/dist/assets/{cpp-B9JgHtmn.js → cpp-QzZpOrzC.js} +1 -1
- package/app/dist/assets/{crystal-CV6ainQY.js → crystal-CvexRWdz.js} +1 -1
- package/app/dist/assets/{css-BahFL25I.js → css-OM3bJ3_6.js} +1 -1
- package/app/dist/assets/dialog-BjpdbSmZ.js +1 -0
- package/app/dist/assets/{edge-Dbi7IqBU.js → edge-C3m71CuX.js} +1 -1
- package/app/dist/assets/effective-hosts-D-vDT9_r.js +68 -0
- package/app/dist/assets/{elixir-Bcybagr3.js → elixir-BhRXZTvD.js} +1 -1
- package/app/dist/assets/{elm-Cg7kNsW7.js → elm-DYE0yZFL.js} +1 -1
- package/app/dist/assets/{erb-CUdWoCwh.js → erb-SSD9uhMe.js} +1 -1
- package/app/dist/assets/{git-rebase-CebuXWOz.js → git-rebase-D0Fw5_xo.js} +1 -1
- package/app/dist/assets/{glimmer-js-DHD_iF4f.js → glimmer-js-Jn4VQcUP.js} +1 -1
- package/app/dist/assets/{glimmer-ts-x8YwQhtI.js → glimmer-ts-BNZNfWU-.js} +1 -1
- package/app/dist/assets/{glsl-DTvpjV5x.js → glsl-DGR2Z9QX.js} +1 -1
- package/app/dist/assets/{graphql-BABFRhpo.js → graphql-DQM3uC9O.js} +1 -1
- package/app/dist/assets/{hack-BTa_6UF4.js → hack-D9UfM1Cn.js} +1 -1
- package/app/dist/assets/{haml-DwZg9pb5.js → haml-BB_Vekn8.js} +1 -1
- package/app/dist/assets/{handlebars-Bkp0I46S.js → handlebars-Dttle2Wb.js} +1 -1
- package/app/dist/assets/{html-BrFG164I.js → html-Df_qp_V9.js} +1 -1
- package/app/dist/assets/{html-derivative-Dm50cCgO.js → html-derivative-rl3w8zDj.js} +1 -1
- package/app/dist/assets/{http-DHs85vmZ.js → http-CgnYHPQJ.js} +1 -1
- package/app/dist/assets/{hurl-Dh07B-Ro.js → hurl-CUdIfmn9.js} +1 -1
- package/app/dist/assets/index-CCJm8W3d.css +2 -0
- package/app/dist/assets/index-D2Ze5muL.js +1360 -0
- package/app/dist/assets/{java-CyElhBLV.js → java-CNjohX-o.js} +1 -1
- package/app/dist/assets/{javascript-Iw1B_HiK.js → javascript-Bmzu-1YP.js} +1 -1
- package/app/dist/assets/{jinja-CwNzTCBn.js → jinja-DXX545BW.js} +1 -1
- package/app/dist/assets/{jison-DmnCmBdi.js → jison-BFsONSRA.js} +1 -1
- package/app/dist/assets/{json-2cvnIy7t.js → json-D3Qqjr3g.js} +1 -1
- package/app/dist/assets/{jsx-CUP6THJt.js → jsx-tZzot0X9.js} +1 -1
- package/app/dist/assets/{julia-C5QkPIf6.js → julia-BwzvM27y.js} +1 -1
- package/app/dist/assets/{just-DKTy3QCk.js → just-6CfdIddw.js} +1 -1
- package/app/dist/assets/{latex-D6EezuXB.js → latex-DNTJjbTj.js} +1 -1
- package/app/dist/assets/{liquid-CIoyldIJ.js → liquid-DjUlzYiW.js} +1 -1
- package/app/dist/assets/localhost-badge-C8-uvmR_.js +22 -0
- package/app/dist/assets/{lua-DdZ7KAyq.js → lua-LZQVLoh_.js} +1 -1
- package/app/dist/assets/{marko-DzUNPeS3.js → marko-Dclxmh1h.js} +1 -1
- package/app/dist/assets/{mdc-D5459Kci.js → mdc-BpaMcHe8.js} +1 -1
- package/app/dist/assets/{mutation-cache-effects-DiCFYnTh.js → mutation-cache-effects-BAn11UmS.js} +1 -1
- package/app/dist/assets/{nginx-0z5C7Rx2.js → nginx-CYoL5nkY.js} +1 -1
- package/app/dist/assets/{nim-DqH405Ip.js → nim-CxULhr2M.js} +1 -1
- package/app/dist/assets/page-shell-BYLrlYTH.js +39 -0
- package/app/dist/assets/{perl-DFMDl6Q7.js → perl-5LAV6neX.js} +1 -1
- package/app/dist/assets/{php-CnLHesuB.js → php-D8BcRHFY.js} +1 -1
- package/app/dist/assets/{pill-BNIxU09I.js → pill-C-0inATv.js} +1 -1
- package/app/dist/assets/{pug-Bd_9REL_.js → pug-C9t1Hjhu.js} +1 -1
- package/app/dist/assets/{qml-Lr6hdC-5.js → qml-DGkLNN9v.js} +1 -1
- package/app/dist/assets/{r-Ce3-ySeQ.js → r-CeMfeXpy.js} +1 -1
- package/app/dist/assets/{razor-FG0QpIgS.js → razor-DRG-JA5B.js} +1 -1
- package/app/dist/assets/{regexp-CIUvMYKc.js → regexp-C6eJQVWV.js} +1 -1
- package/app/dist/assets/{rst-Dz7v6x4B.js → rst-_TSRDHac.js} +1 -1
- package/app/dist/assets/{ruby-C-FBX9Yb.js → ruby-dQqgg9kc.js} +1 -1
- package/app/dist/assets/{sas-C9h-w7MI.js → sas-C4F5TLRE.js} +1 -1
- package/app/dist/assets/{scss-D6OzIOrm.js → scss-CmYsLoFC.js} +1 -1
- package/app/dist/assets/{settings-section-BKzVpY8V.js → settings-section-DrGaArro.js} +1 -1
- package/app/dist/assets/{shellscript-D87RcbyJ.js → shellscript-WXnX1Mec.js} +1 -1
- package/app/dist/assets/{shellsession-TIQjKTe8.js → shellsession-Bn3Xgpma.js} +1 -1
- package/app/dist/assets/{soy-B-dmhoWy.js → soy-c3pX5x_S.js} +1 -1
- package/app/dist/assets/split-button-BVu8nD9J.js +1 -0
- package/app/dist/assets/{sql-CbBIAEKN.js → sql-D6zVwCTB.js} +1 -1
- package/app/dist/assets/{stata-BQ_FGGIg.js → stata-CVENOXDm.js} +1 -1
- package/app/dist/assets/{surrealql-B5__VBgQ.js → surrealql-BT_Ybe_U.js} +1 -1
- package/app/dist/assets/{svelte-CgBSZjLG.js → svelte-C_ktJHww.js} +1 -1
- package/app/dist/assets/{templ-_lWYjbQF.js → templ-BWI48nlj.js} +1 -1
- package/app/dist/assets/{tex-BYUs5HV3.js → tex-BCbKiW8N.js} +1 -1
- package/app/dist/assets/thread-queries-VdTjp5RH.js +1 -0
- package/app/dist/assets/{ts-tags-hjuJ4isf.js → ts-tags--q5Co27x.js} +1 -1
- package/app/dist/assets/{tsx-DlvScFgB.js → tsx-D9Tu2qDP.js} +1 -1
- package/app/dist/assets/{twig-DgkARV1o.js → twig-0tBvYCLy.js} +1 -1
- package/app/dist/assets/{typescript-BE5MgbU9.js → typescript-usoJ9tbx.js} +1 -1
- package/app/dist/assets/{vue-C6mGC-Xh.js → vue-BQb85j8g.js} +1 -1
- package/app/dist/assets/{vue-html-BcBAJPrV.js → vue-html-gWLUM0tZ.js} +1 -1
- package/app/dist/assets/{vue-vine-DsdYqYVB.js → vue-vine-B47td4pS.js} +1 -1
- package/app/dist/assets/{xml-CMIrlqCw.js → xml-BHrSCP44.js} +1 -1
- package/app/dist/assets/{xsl-BL_g6M4v.js → xsl-D48ooQoQ.js} +1 -1
- package/app/dist/assets/{yaml-D4rIwiAS.js → yaml-DyYbpBBV.js} +1 -1
- package/app/dist/index.html +9 -9
- package/dist/bb-app.js +19 -1
- package/dist/bb-host-daemon.js +16 -1
- package/dist/bb-server.js +16 -1
- package/dist/bb.js +16 -1
- package/host-daemon/dist/bb +226 -81
- package/host-daemon/dist/bb-claude-code-bridge.mjs +35 -35
- package/host-daemon/dist/daemon-bundle.mjs +389 -386
- package/package.json +1 -1
- package/server/dist/drizzle/0003_thread_dynamic_context_file_states.sql +12 -0
- package/server/dist/drizzle/meta/0003_snapshot.json +3178 -0
- package/server/dist/drizzle/meta/_journal.json +7 -0
- package/server/dist/index.js +13190 -8111
- package/app/dist/assets/AppSettingsView-Dmjbm_4y.js +0 -1
- package/app/dist/assets/ProjectSettingsView-BCVVMJFB.js +0 -1
- package/app/dist/assets/ThreadDetailRoute-BI3VVE99.js +0 -2535
- package/app/dist/assets/ThreadUnarchiveButton-BJStGY8f.js +0 -1
- package/app/dist/assets/dialog-sqh89xvD.js +0 -1
- package/app/dist/assets/effective-hosts-Dc1pzW51.js +0 -68
- package/app/dist/assets/index-8oyVoqEg.js +0 -1360
- package/app/dist/assets/index-Cdqw3W2G.css +0 -2
- package/app/dist/assets/localhost-badge-DMyU8aEl.js +0 -22
- package/app/dist/assets/page-shell-DBPkwDcw.js +0 -39
- package/app/dist/assets/split-button-DqIwadhH.js +0 -1
- package/app/dist/assets/thread-queries-BX-3vM7I.js +0 -1
|
@@ -1,1360 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CM7ZtmlE.js","assets/page-shell-DBPkwDcw.js","assets/html-BrFG164I.js","assets/css-BahFL25I.js","assets/javascript-Iw1B_HiK.js","assets/angular-ts-B4aAwutb.js","assets/scss-D6OzIOrm.js","assets/apl-Db6aaGYX.js","assets/json-2cvnIy7t.js","assets/xml-CMIrlqCw.js","assets/java-CyElhBLV.js","assets/astro-CXkhV095.js","assets/postcss-osFUbTLw.js","assets/tsx-DlvScFgB.js","assets/typescript-BE5MgbU9.js","assets/blade-CfLZY3kt.js","assets/html-derivative-Dm50cCgO.js","assets/sql-CbBIAEKN.js","assets/bsl-CG-fq4sc.js","assets/sdbl-Cf-Ydnvx.js","assets/c-CwV4mx9Z.js","assets/cairo-Ds0kTeYT.js","assets/python-Dlk0Acio.js","assets/cobol-Bx9V6w-A.js","assets/coffee-4vexivp2.js","assets/cpp-B9JgHtmn.js","assets/glsl-DTvpjV5x.js","assets/regexp-CIUvMYKc.js","assets/crystal-CV6ainQY.js","assets/shellscript-D87RcbyJ.js","assets/edge-Dbi7IqBU.js","assets/elixir-Bcybagr3.js","assets/elm-Cg7kNsW7.js","assets/erb-CUdWoCwh.js","assets/ruby-C-FBX9Yb.js","assets/graphql-BABFRhpo.js","assets/jsx-CUP6THJt.js","assets/haml-DwZg9pb5.js","assets/lua-DdZ7KAyq.js","assets/yaml-D4rIwiAS.js","assets/erlang-C-m_88FN.js","assets/markdown-AseU6zcW.js","assets/fortran-fixed-form-Cx1lv7HN.js","assets/fortran-free-form-hCQHRqew.js","assets/fsharp-DC5k9sy2.js","assets/gdresource-D0EsKdgH.js","assets/gdscript-_C9_Hi_w.js","assets/gdshader-BW7b1X1Y.js","assets/git-commit-BcFsuO5E.js","assets/diff-sHAzLvlp.js","assets/git-rebase-CebuXWOz.js","assets/glimmer-js-DHD_iF4f.js","assets/glimmer-ts-x8YwQhtI.js","assets/hack-BTa_6UF4.js","assets/handlebars-Bkp0I46S.js","assets/http-DHs85vmZ.js","assets/hurl-Dh07B-Ro.js","assets/csv-DsAkDVtA.js","assets/hxml-iQTOTWpM.js","assets/haxe-94kiChn7.js","assets/jinja-CwNzTCBn.js","assets/jison-DmnCmBdi.js","assets/julia-C5QkPIf6.js","assets/r-Ce3-ySeQ.js","assets/just-DKTy3QCk.js","assets/perl-DFMDl6Q7.js","assets/latex-D6EezuXB.js","assets/tex-BYUs5HV3.js","assets/liquid-CIoyldIJ.js","assets/marko-DzUNPeS3.js","assets/less-D4uen21c.js","assets/mdc-D5459Kci.js","assets/nextflow-D-Ec_bsY.js","assets/nextflow-groovy-EYl0c2BQ.js","assets/nginx-0z5C7Rx2.js","assets/nim-DqH405Ip.js","assets/php-CnLHesuB.js","assets/pug-Bd_9REL_.js","assets/qml-Lr6hdC-5.js","assets/razor-FG0QpIgS.js","assets/csharp-C7bIWP5y.js","assets/rst-Dz7v6x4B.js","assets/cmake-DwMc40Or.js","assets/sas-C9h-w7MI.js","assets/shaderlab-DGohHMiF.js","assets/hlsl-b-Pskdze.js","assets/shellsession-TIQjKTe8.js","assets/soy-B-dmhoWy.js","assets/sparql-BgU2QITA.js","assets/turtle-TVCBh_kY.js","assets/stata-BQ_FGGIg.js","assets/surrealql-B5__VBgQ.js","assets/svelte-CgBSZjLG.js","assets/templ-_lWYjbQF.js","assets/go-JycvP538.js","assets/ts-tags-hjuJ4isf.js","assets/twig-DgkARV1o.js","assets/vue-C6mGC-Xh.js","assets/vue-html-BcBAJPrV.js","assets/vue-vine-DsdYqYVB.js","assets/stylus-Byjxdx_q.js","assets/xsl-BL_g6M4v.js","assets/ThreadDetailRoute-BI3VVE99.js","assets/chunk-JZWAC4HX-CrzST-zS.js","assets/ThreadUnarchiveButton-BJStGY8f.js","assets/thread-queries-BX-3vM7I.js","assets/mutation-cache-effects-DiCFYnTh.js","assets/localhost-badge-DMyU8aEl.js","assets/effective-hosts-Dc1pzW51.js","assets/dialog-sqh89xvD.js","assets/pill-BNIxU09I.js","assets/split-button-DqIwadhH.js","assets/ThreadDetailRoute-BrP-ENHg.css","assets/AppSettingsView-Dmjbm_4y.js","assets/settings-section-BKzVpY8V.js","assets/ProjectSettingsView-BCVVMJFB.js","assets/ProjectArchivedThreadsView-DzbW3kSk.js","assets/InternalReplayListView-BMzOdu0K.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$i as e,$r as t,A as n,Ai as r,An as i,At as a,Bi as o,C as s,Ci as c,D as l,Di as u,Dt as d,E as f,Ei as p,Fi as m,Fr as h,Gi as g,Gn as _,Hi as v,Hr as y,Ii as b,Ji as x,Jn as S,K as C,Ki as w,Li as T,Lt as E,Mn as D,Nn as O,O as ee,Oi as k,Ot as A,Q as j,Qi as M,Qn as N,Ri as te,Rt as ne,S as re,Si as ie,T as ae,Ti as P,Ui as oe,Ur as se,Vi as ce,Vn as le,W as ue,Wi as de,Wn as fe,Wt as pe,Xi as me,Yi as he,Yr as ge,Zr as _e,_ as ve,_i as ye,_t as be,ai as xe,b as Se,bi as Ce,ci as F,d as we,di as Te,ei as Ee,f as De,fr as Oe,g as ke,gi as Ae,gr as je,h as Me,hi as Ne,hr as Pe,ht as Fe,i as Ie,ii as Le,ki as Re,kn as ze,li as I,m as Be,mi as Ve,mr as He,n as Ue,nr as We,nt as Ge,p as Ke,pi as qe,pr as Je,pt as Ye,q as Xe,qi as Ze,r as Qe,ri as $e,rt as et,si as tt,st as nt,t as rt,ti as it,tn as at,ui as ot,v as st,vi as ct,w as lt,wi as ut,x as dt,xi as ft,xn as pt,yi as mt,zi as ht}from"./page-shell-DBPkwDcw.js";import{$ as gt,A as _t,At as vt,B as yt,D as bt,Dt as xt,Et as St,F as Ct,Ft as wt,G as Tt,H as Et,I as Dt,It as Ot,J as kt,K as At,L as jt,M as Mt,Mt as Nt,N as Pt,O as Ft,Ot as It,P as Lt,Pt as Rt,Q as zt,R as Bt,St as Vt,Tt as Ht,U as Ut,V as Wt,W as Gt,X as Kt,Y as qt,Z as Jt,_t as Yt,a as Xt,at as Zt,bt as Qt,c as $t,ct as en,d as tn,dt as nn,et as rn,f as an,ft as on,gt as sn,h as cn,ht as ln,i as un,it as dn,j as fn,jt as pn,k as mn,kt as hn,l as gn,lt as _n,m as vn,mt as yn,n as bn,nt as xn,o as Sn,ot as Cn,p as wn,pt as Tn,q as En,r as Dn,rt as On,s as kn,st as An,tt as jn,u as Mn,ut as Nn,v as Pn,vt as Fn,wt as In,xt as Ln,yt as Rn,z as zn}from"./effective-hosts-Dc1pzW51.js";import{C as Bn,D as Vn,E as Hn,S as Un,T as Wn,b as Gn,g as Kn,o as qn,p as Jn,r as Yn,w as Xn,x as Zn,y as Qn}from"./thread-queries-BX-3vM7I.js";import{a as $n,c as er,d as tr,f as nr,i as rr,l as ir,n as ar,o as or,p as L,r as sr,t as cr,u as lr}from"./chunk-JZWAC4HX-CrzST-zS.js";import{_ as ur,a as dr,b as fr,c as pr,f as mr,g as hr,i as gr,l as _r,m as vr,n as yr,o as br,p as xr,r as Sr,s as Cr,t as wr,u as Tr,v as Er,y as Dr}from"./dialog-sqh89xvD.js";import{A as Or,C as kr,D as Ar,E as jr,O as Mr,T as Nr,a as Pr,c as Fr,f as Ir,g as Lr,h as Rr,i as zr,j as Br,k as Vr,l as Hr,m as Ur,n as Wr,o as Gr,p as Kr,s as qr,t as Jr,u as Yr,w as Xr,x as Zr}from"./localhost-badge-DMyU8aEl.js";import{A as Qr,C as $r,D as ei,E as ti,F as ni,M as ri,N as ii,P as ai,S as oi,T as si,c as ci,g as li,h as ui,i as di,j as fi,k as pi,m as mi,p as hi,s as gi,w as _i,x as vi}from"./mutation-cache-effects-DiCFYnTh.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var yi=x((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&A(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&A(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,k=ee.port2;ee.port1.onmessage=D,O=function(){k.postMessage(null)}}else O=function(){_(D,0)};function A(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,A(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),bi=x(((e,t)=>{t.exports=yi()})),xi=x((e=>{var t=bi(),n=Ze(),r=Ot();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),D=Symbol.for(`react.memo_cache_sentinel`),O=Symbol.iterator;function ee(e){return typeof e!=`object`||!e?null:(e=O&&e[O]||e[`@@iterator`],typeof e==`function`?e:null)}var k=Symbol.for(`react.client.reference`);function A(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?A(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return A(e(t))}catch{}}return null}var j=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ne=[],re=-1;function ie(e){return{current:e}}function ae(e){0>re||(e.current=ne[re],ne[re]=null,re--)}function P(e,t){re++,ne[re]=e.current,e.current=t}var oe=ie(null),se=ie(null),ce=ie(null),le=ie(null);function ue(e,t){switch(P(ce,t),P(se,e),P(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zd(t),e=Qd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ae(oe),P(oe,e)}function de(){ae(oe),ae(se),ae(ce)}function fe(e){e.memoizedState!==null&&P(le,e);var t=oe.current,n=Qd(t,e.type);t!==n&&(P(se,e),P(oe,n))}function pe(e){se.current===e&&(ae(oe),ae(se)),le.current===e&&(ae(le),cp._currentValue=te)}var me,he;function ge(e){if(me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);me=t&&t[1]||``,he=-1<e.stack.indexOf(`
|
|
3
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
-
`+me+e+he}var _e=!1;function ve(e,t){if(!e||_e)return``;_e=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
-
`),l=s.split(`
|
|
6
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{_e=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ge(n):``}function ye(e,t){switch(e.tag){case 26:case 27:case 5:return ge(e.type);case 16:return ge(`Lazy`);case 13:return e.child!==t&&t!==null?ge(`Suspense Fallback`):ge(`Suspense`);case 19:return ge(`SuspenseList`);case 0:case 15:return ve(e.type,!1);case 11:return ve(e.type.render,!1);case 1:return ve(e.type,!0);case 31:return ge(`Activity`);default:return``}}function be(e){try{var t=``,n=null;do t+=ye(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
-
Error generating stack: `+e.message+`
|
|
9
|
-
`+e.stack}}var xe=Object.prototype.hasOwnProperty,Se=t.unstable_scheduleCallback,Ce=t.unstable_cancelCallback,F=t.unstable_shouldYield,we=t.unstable_requestPaint,Te=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,ke=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,je=t.unstable_IdlePriority,Me=t.log,Ne=t.unstable_setDisableYieldValue,Pe=null,Fe=null;function Ie(e){if(typeof Me==`function`&&Ne(e),Fe&&typeof Fe.setStrictMode==`function`)try{Fe.setStrictMode(Pe,e)}catch{}}var Le=Math.clz32?Math.clz32:I,Re=Math.log,ze=Math.LN2;function I(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Be=256,Ve=262144,He=4194304;function Ue(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function We(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ue(n))):i=Ue(o):i=Ue(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ue(n))):i=Ue(o)):i=Ue(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ge(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ke(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qe(){var e=He;return He<<=1,!(He&62914560)&&(He=4194304),e}function Je(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ye(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Le(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Qe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Qe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Le(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function $e(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Le(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function et(e,t){var n=t&-t;return n=n&42?1:tt(n),(n&(e.suspendedLanes|t))===0?n:0}function tt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function nt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function rt(){var e=N.p;return e===0?(e=window.event,e===void 0?32:wp(e.type)):e}function it(e,t){var n=N.p;try{return N.p=e,t()}finally{N.p=n}}var at=Math.random().toString(36).slice(2),ot=`__reactFiber$`+at,st=`__reactProps$`+at,ct=`__reactContainer$`+at,lt=`__reactEvents$`+at,ut=`__reactListeners$`+at,dt=`__reactHandles$`+at,ft=`__reactResources$`+at,pt=`__reactMarker$`+at;function mt(e){delete e[ot],delete e[st],delete e[lt],delete e[ut],delete e[dt]}function ht(e){var t=e[ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ct]||n[ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xf(e);e!==null;){if(n=e[ot])return n;e=xf(e)}return t}e=n,n=e.parentNode}return null}function gt(e){if(e=e[ot]||e[ct]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function _t(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function vt(e){var t=e[ft];return t||=e[ft]={hoistableStyles:new Map,hoistableScripts:new Map},t}function yt(e){e[pt]=!0}var bt=new Set,xt={};function St(e,t){Ct(e,t),Ct(e+`Capture`,t)}function Ct(e,t){for(xt[e]=t,e=0;e<t.length;e++)bt.add(t[e])}var wt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Tt={},Et={};function Dt(e){return xe.call(Et,e)?!0:xe.call(Tt,e)?!1:wt.test(e)?Et[e]=!0:(Tt[e]=!0,!1)}function kt(e,t,n){if(Dt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function At(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function jt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Mt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Nt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Pt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ft(e){if(!e._valueTracker){var t=Nt(e)?`checked`:`value`;e._valueTracker=Pt(e,t,``+e[t])}}function It(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Nt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Lt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Rt=/[\n"\\]/g;function zt(e){return e.replace(Rt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Bt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Mt(t)):e.value!==``+Mt(t)&&(e.value=``+Mt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ht(e,o,Mt(n)):Ht(e,o,Mt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Mt(s):e.removeAttribute(`name`)}function Vt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ft(e);return}n=n==null?``:``+Mt(n),t=t==null?n:``+Mt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ft(e)}function Ht(e,t,n){t===`number`&&Lt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ut(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Mt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wt(e,t,n){if(t!=null&&(t=``+Mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Mt(n)}function Gt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(j(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Mt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ft(e)}function Kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Jt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Yt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Jt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Jt(e,o,t[o])}function Xt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Zt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Qt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function $t(e){return Qt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function en(){}var tn=null;function nn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rn=null,an=null;function on(e){var t=gt(e);if(t&&(e=t.stateNode)){var n=e[st]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Bt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[st]||null;if(!a)throw Error(i(90));Bt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&It(r)}break a;case`textarea`:Wt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ut(e,!!n.multiple,t,!1)}}}var sn=!1;function cn(e,t,n){if(sn)return e(t,n);sn=!0;try{return e(t)}finally{if(sn=!1,(rn!==null||an!==null)&&(Au(),rn&&(t=rn,e=an,an=rn=null,on(t),e)))for(t=0;t<e.length;t++)on(e[t])}}function ln(e,t){var n=e.stateNode;if(n===null)return null;var r=n[st]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var un=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,`passive`,{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return hn=i.slice(e,1<r?1-r:void 0)}function _n(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vn(){return!0}function yn(){return!1}function bn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?vn:yn,this.isPropagationStopped=yn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=vn)},persist:function(){},isPersistent:vn}),t}var xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=bn(xn),Cn=f({},xn,{view:0,detail:0}),wn=bn(Cn),Tn,En,Dn,On=f({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Dn&&(Dn&&e.type===`mousemove`?(Tn=e.screenX-Dn.screenX,En=e.screenY-Dn.screenY):En=Tn=0,Dn=e),Tn)},movementY:function(e){return`movementY`in e?e.movementY:En}}),kn=bn(On),An=bn(f({},On,{dataTransfer:0})),jn=bn(f({},Cn,{relatedTarget:0})),Mn=bn(f({},xn,{animationName:0,elapsedTime:0,pseudoElement:0})),Nn=bn(f({},xn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Pn=bn(f({},xn,{data:0})),Fn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},In={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Ln={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Rn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ln[e])?!!t[e]:!1}function zn(){return Rn}var Bn=bn(f({},Cn,{key:function(e){if(e.key){var t=Fn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=_n(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?In[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zn,charCode:function(e){return e.type===`keypress`?_n(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?_n(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Vn=bn(f({},On,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Hn=bn(f({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zn})),Un=bn(f({},xn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Wn=bn(f({},On,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Gn=bn(f({},xn,{newState:0,oldState:0})),Kn=[9,13,27,32],qn=un&&`CompositionEvent`in window,Jn=null;un&&`documentMode`in document&&(Jn=document.documentMode);var Yn=un&&`TextEvent`in window&&!Jn,Xn=un&&(!qn||Jn&&8<Jn&&11>=Jn),Zn=` `,Qn=!1;function $n(e,t){switch(e){case`keyup`:return Kn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function er(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var tr=!1;function nr(e,t){switch(e){case`compositionend`:return er(t);case`keypress`:return t.which===32?(Qn=!0,Zn):null;case`textInput`:return e=t.data,e===Zn&&Qn?null:e;default:return null}}function rr(e,t){if(tr)return e===`compositionend`||!qn&&$n(e,t)?(e=gn(),hn=mn=pn=null,tr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Xn&&t.locale!==`ko`?null:t.data;default:return null}}var ir={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ir[e.type]:t===`textarea`}function or(e,t,n,r){rn?an?an.push(r):an=[r]:rn=r,t=H(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var L=null,sr=null;function cr(e){kd(e,0)}function lr(e){if(It(_t(e)))return e}function ur(e,t){if(e===`change`)return t}var dr=!1;if(un){var fr;if(un){var pr=`oninput`in document;if(!pr){var mr=document.createElement(`div`);mr.setAttribute(`oninput`,`return;`),pr=typeof mr.oninput==`function`}fr=pr}else fr=!1;dr=fr&&(!document.documentMode||9<document.documentMode)}function hr(){L&&(L.detachEvent(`onpropertychange`,gr),sr=L=null)}function gr(e){if(e.propertyName===`value`&&lr(sr)){var t=[];or(t,sr,e,nn(e)),cn(cr,t)}}function _r(e,t,n){e===`focusin`?(hr(),L=t,sr=n,L.attachEvent(`onpropertychange`,gr)):e===`focusout`&&hr()}function vr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return lr(sr)}function yr(e,t){if(e===`click`)return lr(t)}function br(e,t){if(e===`input`||e===`change`)return lr(t)}function xr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Sr=typeof Object.is==`function`?Object.is:xr;function Cr(e,t){if(Sr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!xe.call(t,i)||!Sr(e[i],t[i]))return!1}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tr(e,t){var n=wr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=wr(n)}}function Er(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Er(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function Or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var kr=un&&`documentMode`in document&&11>=document.documentMode,Ar=null,jr=null,Mr=null,Nr=!1;function Pr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||Ar==null||Ar!==Lt(r)||(r=Ar,`selectionStart`in r&&Or(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mr&&Cr(Mr,r)||(Mr=r,r=H(jr,`onSelect`),0<r.length&&(t=new Sn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ar)))}function Fr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ir={animationend:Fr(`Animation`,`AnimationEnd`),animationiteration:Fr(`Animation`,`AnimationIteration`),animationstart:Fr(`Animation`,`AnimationStart`),transitionrun:Fr(`Transition`,`TransitionRun`),transitionstart:Fr(`Transition`,`TransitionStart`),transitioncancel:Fr(`Transition`,`TransitionCancel`),transitionend:Fr(`Transition`,`TransitionEnd`)},Lr={},Rr={};un&&(Rr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),`TransitionEvent`in window||delete Ir.transitionend.transition);function zr(e){if(Lr[e])return Lr[e];if(!Ir[e])return e;var t=Ir[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rr)return Lr[e]=t[n];return e}var Br=zr(`animationend`),Vr=zr(`animationiteration`),Hr=zr(`animationstart`),Ur=zr(`transitionrun`),Wr=zr(`transitionstart`),Gr=zr(`transitioncancel`),Kr=zr(`transitionend`),qr=new Map,Jr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Jr.push(`scrollEnd`);function Yr(e,t){qr.set(e,t),St(t,[e])}var Xr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Zr=[],Qr=0,$r=0;function ei(){for(var e=Qr,t=$r=Qr=0;t<e;){var n=Zr[t];Zr[t++]=null;var r=Zr[t];Zr[t++]=null;var i=Zr[t];Zr[t++]=null;var a=Zr[t];if(Zr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ii(n,i,a)}}function ti(e,t,n,r){Zr[Qr++]=e,Zr[Qr++]=t,Zr[Qr++]=n,Zr[Qr++]=r,$r|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ni(e,t,n,r){return ti(e,t,n,r),ai(e)}function ri(e,t){return ti(e,null,null,t),ai(e)}function ii(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Le(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ai(e){if(50<Su)throw Su=0,Cu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oi={};function si(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ci(e,t,n,r){return new si(e,t,n,r)}function li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ui(e,t){var n=e.alternate;return n===null?(n=ci(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function di(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)li(e)&&(s=1);else if(typeof e==`string`)s=$f(e,n,oe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case E:return e=ci(31,n,t,a),e.elementType=E,e.lanes=o,e;case g:return pi(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=ci(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=ci(13,n,t,a),e.elementType=S,e.lanes=o,e;case C:return e=ci(19,n,t,a),e.elementType=C,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case b:s=10;break a;case y:s=9;break a;case x:s=11;break a;case w:s=14;break a;case T:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ci(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function pi(e,t,n,r){return e=ci(7,e,r,t),e.lanes=n,e}function mi(e,t,n){return e=ci(6,e,null,t),e.lanes=n,e}function hi(e){var t=ci(18,null,null,0);return t.stateNode=e,t}function gi(e,t,n){return t=ci(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _i=new WeakMap;function vi(e,t){if(typeof e==`object`&&e){var n=_i.get(e);return n===void 0?(t={value:e,source:t,stack:be(t)},_i.set(e,t),t):n}return{value:e,source:t,stack:be(t)}}var yi=[],xi=0,Si=null,Ci=0,wi=[],Ti=0,Ei=null,Di=1,Oi=``;function ki(e,t){yi[xi++]=Ci,yi[xi++]=Si,Si=e,Ci=t}function R(e,t,n){wi[Ti++]=Di,wi[Ti++]=Oi,wi[Ti++]=Ei,Ei=e;var r=Di;e=Oi;var i=32-Le(r)-1;r&=~(1<<i),n+=1;var a=32-Le(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Di=1<<32-Le(t)+i|n<<i|r,Oi=a+e}else Di=1<<a|n<<i|r,Oi=e}function Ai(e){e.return!==null&&(ki(e,1),R(e,1,0))}function ji(e){for(;e===Si;)Si=yi[--xi],yi[xi]=null,Ci=yi[--xi],yi[xi]=null;for(;e===Ei;)Ei=wi[--Ti],wi[Ti]=null,Oi=wi[--Ti],wi[Ti]=null,Di=wi[--Ti],wi[Ti]=null}function Mi(e,t){wi[Ti++]=Di,wi[Ti++]=Oi,wi[Ti++]=Ei,Di=t.id,Oi=t.overflow,Ei=e}var Ni=null,Pi=null,Fi=!1,z=null,Ii=!1,Li=Error(i(519));function Ri(e){throw Wi(vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Li}function zi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ot]=e,t[st]=r,n){case`dialog`:Ad(`cancel`,t),Ad(`close`,t);break;case`iframe`:case`object`:case`embed`:Ad(`load`,t);break;case`video`:case`audio`:for(n=0;n<Dd.length;n++)Ad(Dd[n],t);break;case`source`:Ad(`error`,t);break;case`img`:case`image`:case`link`:Ad(`error`,t),Ad(`load`,t);break;case`details`:Ad(`toggle`,t);break;case`input`:Ad(`invalid`,t),Vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Ad(`invalid`,t);break;case`textarea`:Ad(`invalid`,t),Gt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Vd(t.textContent,n)?(r.popover!=null&&(Ad(`beforetoggle`,t),Ad(`toggle`,t)),r.onScroll!=null&&Ad(`scroll`,t),r.onScrollEnd!=null&&Ad(`scrollend`,t),r.onClick!=null&&(t.onclick=en),t=!0):t=!1,t||Ri(e,!0)}function Bi(e){for(Ni=e.return;Ni;)switch(Ni.tag){case 5:case 31:case 13:Ii=!1;return;case 27:case 3:Ii=!0;return;default:Ni=Ni.return}}function Vi(e){if(e!==Ni)return!1;if(!Fi)return Bi(e),Fi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||$d(e.type,e.memoizedProps)),n=!n),n&&Pi&&Ri(e),Bi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=bf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=bf(e)}else t===27?(t=Pi,cf(e.type)?(e=yf,yf=null,Pi=e):Pi=t):Pi=Ni?vf(e.stateNode.nextSibling):null;return!0}function Hi(){Pi=Ni=null,Fi=!1}function Ui(){var e=z;return e!==null&&(cu===null?cu=e:cu.push.apply(cu,e),z=null),e}function Wi(e){z===null?z=[e]:z.push(e)}var Gi=ie(null),Ki=null,qi=null;function Ji(e,t,n){P(Gi,t._currentValue),t._currentValue=n}function Yi(e){e._currentValue=Gi.current,ae(Gi)}function Xi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Zi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Xi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Xi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Qi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Sr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===le.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[cp]:e.push(cp))}a=a.return}e!==null&&Zi(t,e,n,r),t.flags|=262144}function $i(e){for(e=e.firstContext;e!==null;){if(!Sr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ea(e){Ki=e,qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ta(e){return ra(Ki,e)}function na(e,t){return Ki===null&&ea(e),ra(e,t)}function ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qi===null){if(e===null)throw Error(i(308));qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qi=qi.next=t;return n}var ia=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},aa=t.unstable_scheduleCallback,oa=t.unstable_NormalPriority,sa={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ca(){return{controller:new ia,data:new Map,refCount:0}}function la(e){e.refCount--,e.refCount===0&&aa(oa,function(){e.controller.abort()})}var ua=null,da=0,fa=0,pa=null;function ma(e,t){if(ua===null){var n=ua=[];da=0,fa=xd(),pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return da++,t.then(ha,ha),t}function ha(){if(--da===0&&ua!==null){pa!==null&&(pa.status=`fulfilled`);var e=ua;ua=null,fa=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ga(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var _a=M.S;M.S=function(e,t){du=Te(),typeof t==`object`&&t&&typeof t.then==`function`&&ma(e,t),_a!==null&&_a(e,t)};var va=ie(null);function ya(){var e=va.current;return e===null?Kl.pooledCache:e}function ba(e,t){t===null?P(va,va.current):P(va,t.pool)}function xa(){var e=ya();return e===null?null:{parent:sa._currentValue,pool:e}}var Sa=Error(i(460)),Ca=Error(i(474)),wa=Error(i(542)),Ta={then:function(){}};function Ea(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Da(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(en,en),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e;default:if(typeof t.status==`string`)t.then(en,en);else{if(e=Kl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e}throw ka=t,Sa}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ka=e,Sa):e}}var ka=null;function Aa(){if(ka===null)throw Error(i(459));var e=ka;return ka=null,e}function ja(e){if(e===Sa||e===wa)throw Error(i(483))}var Ma=null,Na=0;function Pa(e){var t=Na;return Na+=1,Ma===null&&(Ma=[]),Da(Ma,e,t)}function Fa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ia(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function La(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ui(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===T&&Oa(i)===t.type)?(t=a(t,n.props),Fa(t,n),t.return=e,t):(t=fi(n.type,n.key,n.props,null,e.mode,r),Fa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=gi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=fi(t.type,t.key,t.props,null,e.mode,n),Fa(n,t),n.return=e,n;case h:return t=gi(t,e.mode,n),t.return=e,t;case T:return t=Oa(t),f(e,t,n)}if(j(t)||ee(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Pa(t),n);if(t.$$typeof===b)return f(e,na(e,t),n);Ia(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case T:return n=Oa(n),p(e,t,n,r)}if(j(n)||ee(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Pa(n),r);if(n.$$typeof===b)return p(e,t,na(e,n),r);Ia(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case T:return r=Oa(r),_(e,t,n,r,i)}if(j(r)||ee(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,Pa(r),i);if(r.$$typeof===b)return _(e,t,n,na(t,r),i);Ia(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),Fi&&ki(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return Fi&&ki(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),Fi&&ki(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),Fi&&ki(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return Fi&&ki(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),Fi&&ki(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Oa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Fa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===g?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=fi(o.type,o.key,o.props,null,e.mode,c),Fa(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=gi(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Oa(o),x(e,r,o,c)}if(j(o))return v(e,r,o,c);if(ee(o)){if(l=ee(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Pa(o),c);if(o.$$typeof===b)return x(e,r,na(e,o),c);Ia(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Na=0;var i=x(e,t,n,r);return Ma=null,i}catch(t){if(t===Sa||t===wa)throw t;var a=ci(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ra=La(!0),za=La(!1),Ba=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Gl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ai(e),ii(e,null,n),t}return ti(e,r,t,n),ai(e)}function Ga(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}function Ka(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var qa=!1;function Ja(){if(qa){var e=pa;if(e!==null)throw e}}function Ya(e,t,n,r){qa=!1;var i=e.updateQueue;Ba=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Jl&p)===p:(r&p)===p){p!==0&&p===fa&&(qa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Ba=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),nu|=o,e.lanes=o,e.memoizedState=d}}function Xa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Za(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Xa(n[e],t)}var Qa=ie(null),$a=ie(0);function eo(e,t){e=eu,P($a,e),P(Qa,t),eu=e|t.baseLanes}function to(){P($a,eu),P(Qa,Qa.current)}function no(){eu=$a.current,ae(Qa),ae($a)}var ro=ie(null),io=null;function ao(e){var t=e.alternate;P(uo,uo.current&1),P(ro,e),io===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(io=e)}function oo(e){P(uo,uo.current),P(ro,e),io===null&&(io=e)}function so(e){e.tag===22?(P(uo,uo.current),P(ro,e),io===null&&(io=e)):co(e)}function co(){P(uo,uo.current),P(ro,ro.current)}function lo(e){ae(ro),io===e&&(io=null),ae(uo)}var uo=ie(0);function fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||hf(n)||gf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var po=0,mo=null,ho=null,go=null,_o=!1,vo=!1,yo=!1,bo=0,xo=0,So=null,Co=0;function wo(){throw Error(i(321))}function To(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Sr(e[n],t[n]))return!1;return!0}function Eo(e,t,n,r,i,a){return po=a,mo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Us:Ws,yo=!1,a=n(r,i),yo=!1,vo&&(a=Oo(t,n,r,i)),Do(e),a}function Do(e){M.H=Hs;var t=ho!==null&&ho.next!==null;if(po=0,go=ho=mo=null,_o=!1,xo=0,So=null,t)throw Error(i(300));e===null||sc||(e=e.dependencies,e!==null&&$i(e)&&(sc=!0))}function Oo(e,t,n,r){mo=e;var a=0;do{if(vo&&(So=null),xo=0,vo=!1,25<=a)throw Error(i(301));if(a+=1,go=ho=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}M.H=Gs,o=t(n,r)}while(vo);return o}function ko(){var e=M.H,t=e.useState()[0];return t=typeof t.then==`function`?Io(t):t,e=e.useState()[0],(ho===null?null:ho.memoizedState)!==e&&(mo.flags|=1024),t}function Ao(){var e=bo!==0;return bo=0,e}function jo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Mo(e){if(_o){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}_o=!1}po=0,go=ho=mo=null,vo=!1,xo=bo=0,So=null}function No(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return go===null?mo.memoizedState=go=e:go=go.next=e,go}function Po(){if(ho===null){var e=mo.alternate;e=e===null?null:e.memoizedState}else e=ho.next;var t=go===null?mo.memoizedState:go.next;if(t!==null)go=t,ho=e;else{if(e===null)throw mo.alternate===null?Error(i(467)):Error(i(310));ho=e,e={memoizedState:ho.memoizedState,baseState:ho.baseState,baseQueue:ho.baseQueue,queue:ho.queue,next:null},go===null?mo.memoizedState=go=e:go=go.next=e}return go}function Fo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Io(e){var t=xo;return xo+=1,So===null&&(So=[]),e=Da(So,e,t),t=mo,(go===null?t.memoizedState:go.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Us:Ws),e}function Lo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Io(e);if(e.$$typeof===b)return ta(e)}throw Error(i(438,String(e)))}function Ro(e){var t=null,n=mo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=mo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Fo(),mo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=D;return t.index++,n}function zo(e,t){return typeof t==`function`?t(e):t}function Bo(e){return Vo(Po(),ho,e)}function Vo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(po&f)===f:(Jl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===fa&&(d=!0);else if((po&p)===p){u=u.next,p===fa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,mo.lanes|=p,nu|=p;f=u.action,yo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,mo.lanes|=f,nu|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Sr(o,e.memoizedState)&&(sc=!0,d&&(n=pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ho(e){var t=Po(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Sr(o,t.memoizedState)||(sc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Uo(e,t,n){var r=mo,a=Po(),o=Fi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Sr((ho||a).memoizedState,n);if(s&&(a.memoizedState=n,sc=!0),a=a.queue,ms(Ko.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||go!==null&&go.memoizedState.tag&1){if(r.flags|=2048,ls(9,{destroy:void 0},Go.bind(null,r,a,n,t),null),Kl===null)throw Error(i(349));o||po&127||Wo(r,t,n)}return n}function Wo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=mo.updateQueue,t===null?(t=Fo(),mo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Go(e,t,n,r){t.value=n,t.getSnapshot=r,qo(t)&&Jo(e)}function Ko(e,t,n){return n(function(){qo(t)&&Jo(e)})}function qo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sr(e,n)}catch{return!0}}function Jo(e){var t=ri(e,2);t!==null&&Eu(t,e,2)}function Yo(e){var t=No();if(typeof e==`function`){var n=e;if(e=n(),yo){Ie(!0);try{n()}finally{Ie(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:e},t}function Xo(e,t,n,r){return e.baseState=n,Vo(e,ho,typeof r==`function`?r:zo)}function Zo(e,t,n,r,a){if(zs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};M.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Qo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Qo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=M.T,o={};M.T=o;try{var s=n(i,r),c=M.S;c!==null&&c(o,s),$o(e,t,s)}catch(n){ts(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),M.T=a}}else try{a=n(i,r),$o(e,t,a)}catch(n){ts(e,t,n)}}function $o(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){es(e,t,n)},function(n){return ts(e,t,n)}):es(e,t,n)}function es(e,t,n){t.status=`fulfilled`,t.value=n,ns(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Qo(e,n)))}function ts(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ns(t),t=t.next;while(t!==r)}e.action=null}function ns(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function rs(e,t){return t}function is(e,t){if(Fi){var n=Kl.formState;if(n!==null){a:{var r=mo;if(Fi){if(Pi){b:{for(var i=Pi,a=Ii;i.nodeType!==8;){if(!a){i=null;break b}if(i=vf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Pi=vf(i.nextSibling),r=i.data===`F!`;break a}}Ri(r)}r=!1}r&&(t=n[0])}}return n=No(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:t},n.queue=r,n=Is.bind(null,mo,r),r.dispatch=n,r=Yo(!1),a=Rs.bind(null,mo,!1,r.queue),r=No(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Zo.bind(null,mo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function as(e){return os(Po(),ho,e)}function os(e,t,n){if(t=Vo(e,t,rs)[0],e=Bo(zo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Io(t)}catch(e){throw e===Sa?wa:e}else r=t;t=Po();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(mo.flags|=2048,ls(9,{destroy:void 0},ss.bind(null,i,n),null)),[r,a,e]}function ss(e,t){e.action=t}function cs(e){var t=Po(),n=ho;if(n!==null)return os(t,n,e);Po(),t=t.memoizedState,n=Po();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ls(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=mo.updateQueue,t===null&&(t=Fo(),mo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function us(){return Po().memoizedState}function ds(e,t,n,r){var i=No();mo.flags|=e,i.memoizedState=ls(1|t,{destroy:void 0},n,r===void 0?null:r)}function fs(e,t,n,r){var i=Po();r=r===void 0?null:r;var a=i.memoizedState.inst;ho!==null&&r!==null&&To(r,ho.memoizedState.deps)?i.memoizedState=ls(t,a,n,r):(mo.flags|=e,i.memoizedState=ls(1|t,a,n,r))}function ps(e,t){ds(8390656,8,e,t)}function ms(e,t){fs(2048,8,e,t)}function hs(e){mo.flags|=4;var t=mo.updateQueue;if(t===null)t=Fo(),mo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function gs(e){var t=Po().memoizedState;return hs({ref:t,nextImpl:e}),function(){if(Gl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function _s(e,t){return fs(4,2,e,t)}function vs(e,t){return fs(4,4,e,t)}function ys(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bs(e,t,n){n=n==null?null:n.concat([e]),fs(4,4,ys.bind(null,t,e),n)}function xs(){}function Ss(e,t){var n=Po();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&To(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Cs(e,t){var n=Po();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&To(t,r[1]))return r[0];if(r=e(),yo){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r}function ws(e,t,n){return n===void 0||po&1073741824&&!(Jl&261930)?e.memoizedState=t:(e.memoizedState=n,e=Tu(),mo.lanes|=e,nu|=e,n)}function Ts(e,t,n,r){return Sr(n,t)?n:Qa.current===null?!(po&42)||po&1073741824&&!(Jl&261930)?(sc=!0,e.memoizedState=n):(e=Tu(),mo.lanes|=e,nu|=e,t):(e=ws(e,n,r),Sr(e,t)||(sc=!0),e)}function Es(e,t,n,r,i){var a=N.p;N.p=a!==0&&8>a?a:8;var o=M.T,s={};M.T=s,Rs(e,!1,t,n);try{var c=i(),l=M.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ls(e,t,ga(c,r),wu(e)):Ls(e,t,r,wu(e))}catch(n){Ls(e,t,{then:function(){},status:`rejected`,reason:n},wu())}finally{N.p=a,o!==null&&s.types!==null&&(o.types=s.types),M.T=o}}function Ds(){}function Os(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ks(e).queue;Es(e,a,t,te,n===null?Ds:function(){return As(e),n(r)})}function ks(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function As(e){var t=ks(e);t.next===null&&(t=e.alternate.memoizedState),Ls(e,t.next.queue,{},wu())}function js(){return ta(cp)}function Ms(){return Po().memoizedState}function Ns(){return Po().memoizedState}function Ps(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=wu();e=Ua(n);var r=Wa(t,e,n);r!==null&&(Eu(r,t,n),Ga(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function Fs(e,t,n){var r=wu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},zs(e)?Bs(t,n):(n=ni(e,t,n,r),n!==null&&(Eu(n,e,r),Vs(n,t,r)))}function Is(e,t,n){Ls(e,t,n,wu())}function Ls(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(zs(e))Bs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Sr(s,o))return ti(e,t,i,0),Kl===null&&ei(),!1}catch{}if(n=ni(e,t,i,r),n!==null)return Eu(n,e,r),Vs(n,t,r),!0}return!1}function Rs(e,t,n,r){if(r={lane:2,revertLane:xd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},zs(e)){if(t)throw Error(i(479))}else t=ni(e,n,r,2),t!==null&&Eu(t,e,2)}function zs(e){var t=e.alternate;return e===mo||t!==null&&t===mo}function Bs(e,t){vo=_o=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Hs={readContext:ta,use:Lo,useCallback:wo,useContext:wo,useEffect:wo,useImperativeHandle:wo,useLayoutEffect:wo,useInsertionEffect:wo,useMemo:wo,useReducer:wo,useRef:wo,useState:wo,useDebugValue:wo,useDeferredValue:wo,useTransition:wo,useSyncExternalStore:wo,useId:wo,useHostTransitionStatus:wo,useFormState:wo,useActionState:wo,useOptimistic:wo,useMemoCache:wo,useCacheRefresh:wo};Hs.useEffectEvent=wo;var Us={readContext:ta,use:Lo,useCallback:function(e,t){return No().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:ps,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ds(4194308,4,ys.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ds(4194308,4,e,t)},useInsertionEffect:function(e,t){ds(4,2,e,t)},useMemo:function(e,t){var n=No();t=t===void 0?null:t;var r=e();if(yo){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=No();if(n!==void 0){var i=n(t);if(yo){Ie(!0);try{n(t)}finally{Ie(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Fs.bind(null,mo,e),[r.memoizedState,e]},useRef:function(e){var t=No();return e={current:e},t.memoizedState=e},useState:function(e){e=Yo(e);var t=e.queue,n=Is.bind(null,mo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:xs,useDeferredValue:function(e,t){return ws(No(),e,t)},useTransition:function(){var e=Yo(!1);return e=Es.bind(null,mo,e.queue,!0,!1),No().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=mo,a=No();if(Fi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Kl===null)throw Error(i(349));Jl&127||Wo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ps(Ko.bind(null,r,o,e),[e]),r.flags|=2048,ls(9,{destroy:void 0},Go.bind(null,r,o,n,t),null),n},useId:function(){var e=No(),t=Kl.identifierPrefix;if(Fi){var n=Oi,r=Di;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=bo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Co++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:js,useFormState:is,useActionState:is,useOptimistic:function(e){var t=No();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Rs.bind(null,mo,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ro,useCacheRefresh:function(){return No().memoizedState=Ps.bind(null,mo)},useEffectEvent:function(e){var t=No(),n={impl:e};return t.memoizedState=n,function(){if(Gl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ws={readContext:ta,use:Lo,useCallback:Ss,useContext:ta,useEffect:ms,useImperativeHandle:bs,useInsertionEffect:_s,useLayoutEffect:vs,useMemo:Cs,useReducer:Bo,useRef:us,useState:function(){return Bo(zo)},useDebugValue:xs,useDeferredValue:function(e,t){return Ts(Po(),ho.memoizedState,e,t)},useTransition:function(){var e=Bo(zo)[0],t=Po().memoizedState;return[typeof e==`boolean`?e:Io(e),t]},useSyncExternalStore:Uo,useId:Ms,useHostTransitionStatus:js,useFormState:as,useActionState:as,useOptimistic:function(e,t){return Xo(Po(),ho,e,t)},useMemoCache:Ro,useCacheRefresh:Ns};Ws.useEffectEvent=gs;var Gs={readContext:ta,use:Lo,useCallback:Ss,useContext:ta,useEffect:ms,useImperativeHandle:bs,useInsertionEffect:_s,useLayoutEffect:vs,useMemo:Cs,useReducer:Ho,useRef:us,useState:function(){return Ho(zo)},useDebugValue:xs,useDeferredValue:function(e,t){var n=Po();return ho===null?ws(n,e,t):Ts(n,ho.memoizedState,e,t)},useTransition:function(){var e=Ho(zo)[0],t=Po().memoizedState;return[typeof e==`boolean`?e:Io(e),t]},useSyncExternalStore:Uo,useId:Ms,useHostTransitionStatus:js,useFormState:cs,useActionState:cs,useOptimistic:function(e,t){var n=Po();return ho===null?(n.baseState=e,[e,n.queue.dispatch]):Xo(n,ho,e,t)},useMemoCache:Ro,useCacheRefresh:Ns};Gs.useEffectEvent=gs;function Ks(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var qs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=wu(),i=Ua(r);i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(Eu(t,e,r),Ga(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=wu(),i=Ua(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(Eu(t,e,r),Ga(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=wu(),r=Ua(n);r.tag=2,t!=null&&(r.callback=t),t=Wa(e,r,n),t!==null&&(Eu(t,e,n),Ga(t,e,n))}};function Js(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Cr(n,r)||!Cr(i,a):!0}function Ys(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&qs.enqueueReplaceState(t,t.state,null)}function Xs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Zs(e){Xr(e)}function Qs(e){console.error(e)}function $s(e){Xr(e)}function ec(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function tc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function nc(e,t,n){return n=Ua(n),n.tag=3,n.payload={element:null},n.callback=function(){ec(e,t)},n}function rc(e){return e=Ua(e),e.tag=3,e}function ic(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){tc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){tc(t,n,r),typeof i!=`function`&&(mu===null?mu=new Set([this]):mu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ac(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Qi(t,n,a,!0),n=ro.current,n!==null){switch(n.tag){case 31:case 13:return io===null?Iu():n.alternate===null&&tu===0&&(tu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),td(e,r,a)),!1;case 22:return n.flags|=65536,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),td(e,r,a)),!1}throw Error(i(435,n.tag))}return td(e,r,a),Iu(),!1}if(Fi)return t=ro.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Wi(vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=vi(r,n),a=nc(e.stateNode,r,a),Ka(e,a),tu!==4&&(tu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Wi(vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=vi(o,n),su===null?su=[o]:su.push(o),tu!==4&&(tu=2),t===null)return!0;r=vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=nc(n.stateNode,r,e),Ka(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(mu===null||!mu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=rc(a),ic(a,e,n,r),Ka(n,a),!1}n=n.return}while(n!==null);return!1}var oc=Error(i(461)),sc=!1;function cc(e,t,n,r){t.child=e===null?za(t,null,n,r):Ra(t,e.child,n,r)}function lc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ea(t),r=Eo(e,t,n,o,a,i),s=Ao(),e!==null&&!sc?(jo(e,t,i),Nc(e,t,i)):(Fi&&s&&Ai(t),t.flags|=1,cc(e,t,r,i),t.child)}function uc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!li(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,dc(e,t,a,r,i)):(e=fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Pc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Cr:n,n(o,r)&&e.ref===t.ref)return Nc(e,t,i)}return t.flags|=1,e=ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function dc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Cr(a,r)&&e.ref===t.ref)if(sc=!1,t.pendingProps=r=a,Pc(e,i))e.flags&131072&&(sc=!0);else return t.lanes=e.lanes,Nc(e,t,i)}return yc(e,t,n,r,i)}function fc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return mc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ba(t,a===null?null:a.cachePool),a===null?to():eo(t,a),so(t);else return r=t.lanes=536870912,mc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ba(t,null),to(),co(t)):(ba(t,a.cachePool),eo(t,a),co(t),t.memoizedState=null);return cc(e,t,i,n),t.child}function pc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function mc(e,t,n,r,i){var a=ya();return a=a===null?null:{parent:sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ba(t,null),to(),so(t),e!==null&&Qi(e,t,r,!0),t.childLanes=i,null}function hc(e,t){return t=Oc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function gc(e,t,n){return Ra(t,e.child,null,n),e=hc(t,t.pendingProps),e.flags|=2,lo(t),t.memoizedState=null,e}function _c(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Fi){if(r.mode===`hidden`)return e=hc(t,r),t.lanes=536870912,pc(null,e);if(oo(t),(e=Pi)?(e=mf(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ei===null?null:{id:Di,overflow:Oi},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw Ri(t);return t.lanes=536870912,null}return hc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(oo(t),a)if(t.flags&256)t.flags&=-257,t=gc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(sc||Qi(e,t,n,!1),a=(n&e.childLanes)!==0,sc||a){if(r=Kl,r!==null&&(s=et(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ri(e,s),Eu(r,e,s),oc;Iu(),t=gc(e,t,n)}else e=o.treeContext,Pi=vf(s.nextSibling),Ni=t,Fi=!0,z=null,Ii=!1,e!==null&&Mi(t,e),t=hc(t,r),t.flags|=4096;return t}return e=ui(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function vc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function yc(e,t,n,r,i){return ea(t),n=Eo(e,t,n,r,void 0,i),r=Ao(),e!==null&&!sc?(jo(e,t,i),Nc(e,t,i)):(Fi&&r&&Ai(t),t.flags|=1,cc(e,t,n,i),t.child)}function bc(e,t,n,r,i,a){return ea(t),t.updateQueue=null,n=Oo(t,r,n,i),Do(e),r=Ao(),e!==null&&!sc?(jo(e,t,a),Nc(e,t,a)):(Fi&&r&&Ai(t),t.flags|=1,cc(e,t,n,a),t.child)}function xc(e,t,n,r,i){if(ea(t),t.stateNode===null){var a=oi,o=n.contextType;typeof o==`object`&&o&&(a=ta(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=qs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Va(t),o=n.contextType,a.context=typeof o==`object`&&o?ta(o):oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ks(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&qs.enqueueReplaceState(a,a.state,null),Ya(t,r,a,i),Ja(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Xs(n,s);a.props=c;var l=a.context,u=n.contextType;o=oi,typeof u==`object`&&u&&(o=ta(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ys(t,a,r,o),Ba=!1;var f=t.memoizedState;a.state=f,Ya(t,r,a,i),Ja(),l=t.memoizedState,s||f!==l||Ba?(typeof d==`function`&&(Ks(t,n,d,r),l=t.memoizedState),(c=Ba||Js(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ha(e,t),o=t.memoizedProps,u=Xs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=oi,typeof l==`object`&&l&&(c=ta(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ys(t,a,r,c),Ba=!1,f=t.memoizedState,a.state=f,Ya(t,r,a,i),Ja();var p=t.memoizedState;o!==d||f!==p||Ba||e!==null&&e.dependencies!==null&&$i(e.dependencies)?(typeof s==`function`&&(Ks(t,n,s,r),p=t.memoizedState),(u=Ba||Js(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&$i(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,vc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ra(t,e.child,null,i),t.child=Ra(t,null,n,i)):cc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Nc(e,t,i),e}function Sc(e,t,n,r){return Hi(),t.flags|=256,cc(e,t,n,r),t.child}var Cc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wc(e){return{baseLanes:e,cachePool:xa()}}function Tc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=au),e}function Ec(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(uo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Fi){if(a?ao(t):co(t),(e=Pi)?(e=mf(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ei===null?null:{id:Di,overflow:Oi},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw Ri(t);return gf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(co(t),a=t.mode,c=Oc({mode:`hidden`,children:c},a),r=pi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=wc(n),r.childLanes=Tc(e,s,n),t.memoizedState=Cc,pc(null,r)):(ao(t),Dc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ao(t),t.flags&=-257,t=kc(e,t,n)):t.memoizedState===null?(co(t),c=r.fallback,a=t.mode,r=Oc({mode:`visible`,children:r.children},a),c=pi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ra(t,e.child,null,n),r=t.child,r.memoizedState=wc(n),r.childLanes=Tc(e,s,n),t.memoizedState=Cc,t=pc(null,r)):(co(t),t.child=e.child,t.flags|=128,t=null);else if(ao(t),gf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Wi({value:r,source:null,stack:null}),t=kc(e,t,n)}else if(sc||Qi(e,t,n,!1),s=(n&e.childLanes)!==0,sc||s){if(s=Kl,s!==null&&(r=et(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ri(e,r),Eu(s,e,r),oc;hf(c)||Iu(),t=kc(e,t,n)}else hf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Pi=vf(c.nextSibling),Ni=t,Fi=!0,z=null,Ii=!1,e!==null&&Mi(t,e),t=Dc(t,r.children),t.flags|=4096);return t}return a?(co(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ui(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=pi(c,a,n,null),c.flags|=2):c=ui(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,pc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=wc(n):(a=c.cachePool,a===null?a=xa():(l=sa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Tc(e,s,n),t.memoizedState=Cc,pc(e.child,r)):(ao(t),n=e.child,e=n.sibling,n=ui(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Dc(e,t){return t=Oc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Oc(e,t){return e=ci(22,e,null,t),e.lanes=0,e}function kc(e,t,n){return Ra(t,e.child,null,n),e=Dc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ac(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xi(e.return,t,n)}function jc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Mc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=uo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,P(uo,o),cc(e,t,r,n),r=Fi?Ci:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ac(e,n,t);else if(e.tag===19)Ac(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&fo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),jc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}jc(t,!0,n,null,a,r);break;case`together`:jc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Nc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nu|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Pc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&$i(e))):!0}function Fc(e,t,n){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),Ji(t,sa,e.memoizedState.cache),Hi();break;case 27:case 5:fe(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ao(t),e=Nc(e,t,n),e===null?null:e.sibling):Ec(e,t,n):(ao(t),t.flags|=128,null);ao(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Mc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),P(uo,uo.current),r)break;return null;case 22:return t.lanes=0,fc(e,t,n,t.pendingProps);case 24:Ji(t,sa,e.memoizedState.cache)}return Nc(e,t,n)}function Ic(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)sc=!0;else{if(!Pc(e,n)&&!(t.flags&128))return sc=!1,Fc(e,t,n);sc=!!(e.flags&131072)}else sc=!1,Fi&&t.flags&1048576&&R(t,Ci,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e==`function`)li(e)?(r=Xs(e,r),t.tag=1,t=xc(null,t,e,r,n)):(t.tag=0,t=yc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=lc(null,t,e,r,n);break a}else if(a===w){t.tag=14,t=uc(null,t,e,r,n);break a}}throw t=A(e)||e,Error(i(306,t,``))}}return t;case 0:return yc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Xs(r,t.pendingProps),xc(e,t,r,a,n);case 3:a:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ha(e,t),Ya(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ji(t,sa,r),r!==o.cache&&Zi(t,[sa],n,!0),Ja(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Sc(e,t,r,n);break a}else if(r!==a){a=vi(Error(i(424)),t),Wi(a),t=Sc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Pi=vf(e.firstChild),Ni=t,Fi=!0,z=null,Ii=!0,n=za(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),r===a){t=Nc(e,t,n);break a}cc(e,t,r,n)}t=t.child}return t;case 26:return vc(e,t),e===null?(n=zf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Fi||(n=t.type,e=t.pendingProps,r=Xd(ce.current).createElement(n),r[ot]=t,r[st]=e,Wd(r,n,e),yt(r),t.stateNode=r):t.memoizedState=zf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fe(t),e===null&&Fi&&(r=t.stateNode=Sf(t.type,t.pendingProps,ce.current),Ni=t,Ii=!0,a=Pi,cf(t.type)?(yf=a,Pi=vf(r.firstChild)):Pi=a),cc(e,t,t.pendingProps.children,n),vc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Fi&&((a=r=Pi)&&(r=ff(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,Ni=t,Pi=vf(r.firstChild),Ii=!1,a=!0)),a||Ri(t)),fe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,$d(a,o)?r=null:s!==null&&$d(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Eo(e,t,ko,null,null,n),cp._currentValue=a),vc(e,t),cc(e,t,r,n),t.child;case 6:return e===null&&Fi&&((e=n=Pi)&&(n=pf(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,Ni=t,Pi=null,e=!0)),e||Ri(t)),null;case 13:return Ec(e,t,n);case 4:return ue(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ra(t,null,r,n):cc(e,t,r,n),t.child;case 11:return lc(e,t,t.type,t.pendingProps,n);case 7:return cc(e,t,t.pendingProps,n),t.child;case 8:return cc(e,t,t.pendingProps.children,n),t.child;case 12:return cc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ji(t,t.type,r.value),cc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ea(t),a=ta(a),r=r(a),t.flags|=1,cc(e,t,r,n),t.child;case 14:return uc(e,t,t.type,t.pendingProps,n);case 15:return dc(e,t,t.type,t.pendingProps,n);case 19:return Mc(e,t,n);case 31:return _c(e,t,n);case 22:return fc(e,t,n,t.pendingProps);case 24:return ea(t),r=ta(sa),e===null?(a=ya(),a===null&&(a=Kl,o=ca(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Va(t),Ji(t,sa,a)):((e.lanes&n)!==0&&(Ha(e,t),Ya(t,null,null,n),Ja()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ji(t,sa,r),r!==a.cache&&Zi(t,[sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ji(t,sa,r))),cc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Lc(e){e.flags|=4}function Rc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Pu())e.flags|=8192;else throw ka=Ta,Ca}else e.flags&=-16777217}function zc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ep(t))if(Pu())e.flags|=8192;else throw ka=Ta,Ca}function Bc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:qe(),e.lanes|=t,ou|=t)}function Vc(e,t){if(!Fi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Hc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Uc(e,t,n){var r=t.pendingProps;switch(ji(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hc(t),null;case 1:return Hc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Yi(sa),de(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?Lc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ui())),Hc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Lc(t),o===null?(Hc(t),Rc(t,a,null,r,n)):(Hc(t),zc(t,o))):o?o===e.memoizedState?(Hc(t),t.flags&=-16777217):(Lc(t),Hc(t),zc(t,o)):(e=e.memoizedProps,e!==r&&Lc(t),Hc(t),Rc(t,a,e,r,n)),null;case 27:if(pe(t),n=ce.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Hc(t),null}e=oe.current,Vi(t)?zi(t,e):(e=Sf(a,r,n),t.stateNode=e,Lc(t))}return Hc(t),null;case 5:if(pe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Hc(t),null}if(o=oe.current,Vi(t))zi(t,o);else{var s=Xd(ce.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ot]=t,o[st]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Wd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Lc(t)}}return Hc(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ce.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ni,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Vd(e.nodeValue,n)),e||Ri(t,!0)}else e=Xd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Hc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ot]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hc(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(lo(t),t):(lo(t),null);if(t.flags&128)throw Error(i(558))}return Hc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ot]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hc(t),a=!1}else a=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(lo(t),t):(lo(t),null)}return lo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),Hc(t),null);case 4:return de(),e===null&&Nd(t.stateNode.containerInfo),Hc(t),null;case 10:return Yi(t.type),Hc(t),null;case 19:if(ae(uo),r=t.memoizedState,r===null)return Hc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Vc(r,!1);else{if(tu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=fo(e),o!==null){for(t.flags|=128,Vc(r,!1),e=o.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)di(n,e),n=n.sibling;return P(uo,uo.current&1|2),Fi&&ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Te()>fu&&(t.flags|=128,a=!0,Vc(r,!1),t.lanes=4194304)}else{if(!a)if(e=fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),Vc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Fi)return Hc(t),null}else 2*Te()-r.renderingStartTime>fu&&n!==536870912&&(t.flags|=128,a=!0,Vc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Hc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Te(),e.sibling=null,n=uo.current,P(uo,a?n&1|2:n&1),Fi&&ki(t,r.treeForkCount),e);case 22:case 23:return lo(t),no(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Hc(t),t.subtreeFlags&6&&(t.flags|=8192)):Hc(t),n=t.updateQueue,n!==null&&Bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ae(va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(sa),Hc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Wc(e,t){switch(ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(sa),de(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(lo(t),t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(uo),null;case 4:return de(),null;case 10:return Yi(t.type),null;case 22:case 23:return lo(t),no(),e!==null&&ae(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(sa),null;case 25:return null;default:return null}}function Gc(e,t){switch(ji(t),t.tag){case 3:Yi(sa),de();break;case 26:case 27:case 5:pe(t);break;case 4:de();break;case 31:t.memoizedState!==null&&lo(t);break;case 13:lo(t);break;case 19:ae(uo);break;case 10:Yi(t.type);break;case 22:case 23:lo(t),no(),e!==null&&ae(va);break;case 24:Yi(sa)}}function Kc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){ed(t,t.return,e)}}function qc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){ed(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){ed(t,t.return,e)}}function Jc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Za(t,n)}catch(t){ed(e,e.return,t)}}}function Yc(e,t,n){n.props=Xs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){ed(e,t,n)}}function Xc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){ed(e,t,n)}}function Zc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){ed(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){ed(e,t,n)}else n.current=null}function Qc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){ed(e,e.return,t)}}function $c(e,t,n){try{var r=e.stateNode;Gd(r,e.type,n,t),r[st]=t}catch(t){ed(e,e.return,t)}}function el(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&cf(e.type)||e.tag===4}function tl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||el(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&cf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&cf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&cf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(rl(e,t,n),e=e.sibling;e!==null;)rl(e,t,n),e=e.sibling}function il(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Wd(t,r,n),t[ot]=e,t[st]=n}catch(t){ed(e,e.return,t)}}var al=!1,ol=!1,sl=!1,cl=typeof WeakSet==`function`?WeakSet:Set,ll=null;function ul(e,t){if(e=e.containerInfo,Jd=_p,e=Dr(e),Or(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Yd={focusedElem:e,selectionRange:n},_p=!1,ll=t;ll!==null;)if(t=ll,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ll=e;else for(;ll!==null;){switch(t=ll,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Xs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){ed(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)df(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:df(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ll=e;break}ll=t.return}}function dl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:El(e,n),r&4&&Kc(5,n);break;case 1:if(El(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){ed(n,n.return,e)}else{var i=Xs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){ed(n,n.return,e)}}r&64&&Jc(n),r&512&&Xc(n,n.return);break;case 3:if(El(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Za(e,t)}catch(e){ed(n,n.return,e)}}break;case 27:t===null&&r&4&&il(n);case 26:case 5:El(e,n),t===null&&r&4&&Qc(n),r&512&&Xc(n,n.return);break;case 12:El(e,n);break;case 31:El(e,n),r&4&&_l(e,n);break;case 13:El(e,n),r&4&&vl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=id.bind(null,n),_f(e,n))));break;case 22:if(r=n.memoizedState!==null||al,!r){t=t!==null&&t.memoizedState!==null||ol,i=al;var a=ol;al=r,(ol=t)&&!a?Ol(e,n,(n.subtreeFlags&8772)!=0):El(e,n),al=i,ol=a}break;case 30:break;default:El(e,n)}}function fl(e){var t=e.alternate;t!==null&&(e.alternate=null,fl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var pl=null,ml=!1;function hl(e,t,n){for(n=n.child;n!==null;)gl(e,t,n),n=n.sibling}function gl(e,t,n){if(Fe&&typeof Fe.onCommitFiberUnmount==`function`)try{Fe.onCommitFiberUnmount(Pe,n)}catch{}switch(n.tag){case 26:ol||Zc(n,t),hl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ol||Zc(n,t);var r=pl,i=ml;cf(n.type)&&(pl=n.stateNode,ml=!1),hl(e,t,n),Cf(n.stateNode),pl=r,ml=i;break;case 5:ol||Zc(n,t);case 6:if(r=pl,i=ml,pl=null,hl(e,t,n),pl=r,ml=i,pl!==null)if(ml)try{(pl.nodeType===9?pl.body:pl.nodeName===`HTML`?pl.ownerDocument.body:pl).removeChild(n.stateNode)}catch(e){ed(n,t,e)}else try{pl.removeChild(n.stateNode)}catch(e){ed(n,t,e)}break;case 18:pl!==null&&(ml?(e=pl,lf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Vp(e)):lf(pl,n.stateNode));break;case 4:r=pl,i=ml,pl=n.stateNode.containerInfo,ml=!0,hl(e,t,n),pl=r,ml=i;break;case 0:case 11:case 14:case 15:qc(2,n,t),ol||qc(4,n,t),hl(e,t,n);break;case 1:ol||(Zc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Yc(n,t,r)),hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:ol=(r=ol)||n.memoizedState!==null,hl(e,t,n),ol=r;break;default:hl(e,t,n)}}function _l(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Vp(e)}catch(e){ed(t,t.return,e)}}}function vl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vp(e)}catch(e){ed(t,t.return,e)}}function yl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cl),t;default:throw Error(i(435,e.tag))}}function bl(e,t){var n=yl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=ad.bind(null,e,t);t.then(r,r)}})}function xl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(cf(c.type)){pl=c.stateNode,ml=!1;break a}break;case 5:pl=c.stateNode,ml=!1;break a;case 3:case 4:pl=c.stateNode.containerInfo,ml=!0;break a}c=c.return}if(pl===null)throw Error(i(160));gl(o,s,a),pl=null,ml=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Cl(t,e),t=t.sibling}var Sl=null;function Cl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xl(t,e),wl(e),r&4&&(qc(3,e,e.return),Kc(3,e),qc(5,e,e.return));break;case 1:xl(t,e),wl(e),r&512&&(ol||n===null||Zc(n,n.return)),r&64&&al&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Sl;if(xl(t,e),wl(e),r&512&&(ol||n===null||Zc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[pt]||o[ot]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Wd(o,r,n),o[ot]=e,yt(o),r=o;break a;case`link`:var s=Zf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Wd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Zf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Wd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ot]=e,yt(o),r=o}e.stateNode=r}else Qf(a,e.type,e.stateNode);else e.stateNode=Kf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&$c(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Qf(a,e.type,e.stateNode):Kf(a,r,e.memoizedProps))}break;case 27:xl(t,e),wl(e),r&512&&(ol||n===null||Zc(n,n.return)),n!==null&&r&4&&$c(e,e.memoizedProps,n.memoizedProps);break;case 5:if(xl(t,e),wl(e),r&512&&(ol||n===null||Zc(n,n.return)),e.flags&32){a=e.stateNode;try{Kt(a,``)}catch(t){ed(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,$c(e,a,n===null?a:n.memoizedProps)),r&1024&&(sl=!0);break;case 6:if(xl(t,e),wl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){ed(e,e.return,t)}}break;case 3:if(Xf=null,a=Sl,Sl=Ef(t.containerInfo),xl(t,e),Sl=a,wl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vp(t.containerInfo)}catch(t){ed(e,e.return,t)}sl&&(sl=!1,Tl(e));break;case 4:r=Sl,Sl=Ef(e.stateNode.containerInfo),xl(t,e),wl(e),Sl=r;break;case 12:xl(t,e),wl(e);break;case 31:xl(t,e),wl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bl(e,r)));break;case 13:xl(t,e),wl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(uu=Te()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=al,d=ol;if(al=u||a,ol=d||l,xl(t,e),ol=d,al=u,wl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||al||ol||Dl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){ed(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){ed(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?uf(m,!0):uf(l.stateNode,!1)}catch(e){ed(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,bl(e,n))));break;case 19:xl(t,e),wl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bl(e,r)));break;case 30:break;case 21:break;default:xl(t,e),wl(e)}}function wl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(el(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;rl(e,tl(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Kt(o,``),n.flags&=-33),rl(e,tl(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;nl(e,tl(e),s);break;default:throw Error(i(161))}}catch(t){ed(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Tl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Tl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function El(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dl(e,t.alternate,t),t=t.sibling}function Dl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qc(4,t,t.return),Dl(t);break;case 1:Zc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Yc(t,t.return,n),Dl(t);break;case 27:Cf(t.stateNode);case 26:case 5:Zc(t,t.return),Dl(t);break;case 22:t.memoizedState===null&&Dl(t);break;case 30:Dl(t);break;default:Dl(t)}e=e.sibling}}function Ol(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Ol(i,a,n),Kc(4,a);break;case 1:if(Ol(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){ed(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Xa(c[i],s)}catch(e){ed(r,r.return,e)}}n&&o&64&&Jc(a),Xc(a,a.return);break;case 27:il(a);case 26:case 5:Ol(i,a,n),n&&r===null&&o&4&&Qc(a),Xc(a,a.return);break;case 12:Ol(i,a,n);break;case 31:Ol(i,a,n),n&&o&4&&_l(i,a);break;case 13:Ol(i,a,n),n&&o&4&&vl(i,a);break;case 22:a.memoizedState===null&&Ol(i,a,n),Xc(a,a.return);break;case 30:break;default:Ol(i,a,n)}t=t.sibling}}function kl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&la(n))}function Al(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e))}function jl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ml(e,t,n,r),t=t.sibling}function Ml(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:jl(e,t,n,r),i&2048&&Kc(9,t);break;case 1:jl(e,t,n,r);break;case 3:jl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e)));break;case 12:if(i&2048){jl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){ed(t,t.return,e)}}else jl(e,t,n,r);break;case 31:jl(e,t,n,r);break;case 13:jl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?jl(e,t,n,r):(a._visibility|=2,Nl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?jl(e,t,n,r):Pl(e,t),i&2048&&kl(o,t);break;case 24:jl(e,t,n,r),i&2048&&Al(t.alternate,t);break;default:jl(e,t,n,r)}}function Nl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Nl(a,o,s,c,i),Kc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Nl(a,o,s,c,i)):u._visibility&2?Nl(a,o,s,c,i):Pl(a,o),i&&l&2048&&kl(o.alternate,o);break;case 24:Nl(a,o,s,c,i),i&&l&2048&&Al(o.alternate,o);break;default:Nl(a,o,s,c,i)}t=t.sibling}}function Pl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Pl(n,r),i&2048&&kl(r.alternate,r);break;case 24:Pl(n,r),i&2048&&Al(r.alternate,r);break;default:Pl(n,r)}t=t.sibling}}var Fl=8192;function Il(e,t,n){if(e.subtreeFlags&Fl)for(e=e.child;e!==null;)Ll(e,t,n),e=e.sibling}function Ll(e,t,n){switch(e.tag){case 26:Il(e,t,n),e.flags&Fl&&e.memoizedState!==null&&tp(n,Sl,e.memoizedState,e.memoizedProps);break;case 5:Il(e,t,n);break;case 3:case 4:var r=Sl;Sl=Ef(e.stateNode.containerInfo),Il(e,t,n),Sl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Fl,Fl=16777216,Il(e,t,n),Fl=r):Il(e,t,n));break;default:Il(e,t,n)}}function Rl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function zl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ll=r,Hl(r,e)}Rl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bl(e),e=e.sibling}function Bl(e){switch(e.tag){case 0:case 11:case 15:zl(e),e.flags&2048&&qc(9,e,e.return);break;case 3:zl(e);break;case 12:zl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vl(e)):zl(e);break;default:zl(e)}}function Vl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ll=r,Hl(r,e)}Rl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qc(8,t,t.return),Vl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Vl(t));break;default:Vl(t)}e=e.sibling}}function Hl(e,t){for(;ll!==null;){var n=ll;switch(n.tag){case 0:case 11:case 15:qc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:la(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ll=r;else a:for(n=e;ll!==null;){r=ll;var i=r.sibling,a=r.return;if(fl(r),r===n){ll=null;break a}if(i!==null){i.return=a,ll=i;break a}ll=a}}}var Ul={getCacheForType:function(e){var t=ta(sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ta(sa).controller.signal}},Wl=typeof WeakMap==`function`?WeakMap:Map,Gl=0,Kl=null,ql=null,Jl=0,Yl=0,Xl=null,Zl=!1,Ql=!1,$l=!1,eu=0,tu=0,nu=0,ru=0,iu=0,au=0,ou=0,su=null,cu=null,lu=!1,uu=0,du=0,fu=1/0,pu=null,mu=null,hu=0,gu=null,_u=null,vu=0,yu=0,bu=null,xu=null,Su=0,Cu=null;function wu(){return Gl&2&&Jl!==0?Jl&-Jl:M.T===null?rt():xd()}function Tu(){if(au===0)if(!(Jl&536870912)||Fi){var e=Ve;Ve<<=1,!(Ve&3932160)&&(Ve=262144),au=e}else au=536870912;return e=ro.current,e!==null&&(e.flags|=32),au}function Eu(e,t,n){(e===Kl&&(Yl===2||Yl===9)||e.cancelPendingCommit!==null)&&(Mu(e,0),ku(e,Jl,au,!1)),Ye(e,n),(!(Gl&2)||e!==Kl)&&(e===Kl&&(!(Gl&2)&&(ru|=n),tu===4&&ku(e,Jl,au,!1)),pd(e))}function B(e,t,n){if(Gl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ge(e,t),a=r?zu(e,t):Lu(e,t,!0),o=r;do{if(a===0){Ql&&!r&&ku(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Ou(n)){a=Lu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=su;var l=c.current.memoizedState.isDehydrated;if(l&&(Mu(c,s).flags|=256),s=Lu(c,s,!1),s!==2){if($l&&!l){c.errorRecoveryDisabledLanes|=o,ru|=o,a=4;break a}o=cu,cu=a,o!==null&&(cu===null?cu=o:cu.push.apply(cu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Mu(e,0),ku(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ku(r,t,au,!Zl);break a;case 2:cu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=uu+300-Te(),10<a)){if(ku(r,t,au,!Zl),We(r,0,!0)!==0)break a;vu=t,r.timeoutHandle=nf(Du.bind(null,r,n,cu,pu,lu,t,au,ru,ou,Zl,o,`Throttled`,-0,0),a);break a}Du(r,n,cu,pu,lu,t,au,ru,ou,Zl,o,null,-0,0)}}break}while(1);pd(e)}function Du(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},Ll(t,a,d);var m=(a&62914560)===a?uu-Te():(a&4194048)===a?du-Te():0;if(m=rp(d,m),m!==null){vu=a,e.cancelPendingCommit=m(Ku.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),ku(e,a,o,!l);return}}Ku(e,t,a,n,r,i,o,s,c)}function Ou(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Sr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ku(e,t,n,r){t&=~iu,t&=~ru,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Le(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Qe(e,n,t)}function Au(){return Gl&6?!0:(md(0,!1),!1)}function ju(){if(ql!==null){if(Yl===0)var e=ql.return;else e=ql,qi=Ki=null,Mo(e),Ma=null,Na=0,e=ql;for(;e!==null;)Gc(e.alternate,e),e=e.return;ql=null}}function Mu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,rf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),vu=0,ju(),Kl=e,ql=n=ui(e.current,null),Jl=t,Yl=0,Xl=null,Zl=!1,Ql=Ge(e,t),$l=!1,ou=au=iu=ru=nu=tu=0,cu=su=null,lu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Le(r),a=1<<i;t|=e[i],r&=~a}return eu=t,ei(),n}function Nu(e,t){mo=null,M.H=Hs,t===Sa||t===wa?(t=Aa(),Yl=3):t===Ca?(t=Aa(),Yl=4):Yl=t===oc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Xl=t,ql===null&&(tu=1,ec(e,vi(t,e.current)))}function Pu(){var e=ro.current;return e===null?!0:(Jl&4194048)===Jl?io===null:(Jl&62914560)===Jl||Jl&536870912?e===io:!1}function Fu(){var e=M.H;return M.H=Hs,e===null?Hs:e}function V(){var e=M.A;return M.A=Ul,e}function Iu(){tu=4,Zl||(Jl&4194048)!==Jl&&ro.current!==null||(Ql=!0),!(nu&134217727)&&!(ru&134217727)||Kl===null||ku(Kl,Jl,au,!1)}function Lu(e,t,n){var r=Gl;Gl|=2;var i=Fu(),a=V();(Kl!==e||Jl!==t)&&(pu=null,Mu(e,t)),t=!1;var o=tu;a:do try{if(Yl!==0&&ql!==null){var s=ql,c=Xl;switch(Yl){case 8:ju(),o=6;break a;case 3:case 2:case 9:case 6:ro.current===null&&(t=!0);var l=Yl;if(Yl=0,Xl=null,Uu(e,s,c,l),n&&Ql){o=0;break a}break;default:l=Yl,Yl=0,Xl=null,Uu(e,s,c,l)}}Ru(),o=tu;break}catch(t){Nu(e,t)}while(1);return t&&e.shellSuspendCounter++,qi=Ki=null,Gl=r,M.H=i,M.A=a,ql===null&&(Kl=null,Jl=0,ei()),o}function Ru(){for(;ql!==null;)Vu(ql)}function zu(e,t){var n=Gl;Gl|=2;var r=Fu(),a=V();Kl!==e||Jl!==t?(pu=null,fu=Te()+500,Mu(e,t)):Ql=Ge(e,t);a:do try{if(Yl!==0&&ql!==null){t=ql;var o=Xl;b:switch(Yl){case 1:Yl=0,Xl=null,Uu(e,t,o,1);break;case 2:case 9:if(Ea(o)){Yl=0,Xl=null,Hu(t);break}t=function(){Yl!==2&&Yl!==9||Kl!==e||(Yl=7),pd(e)},o.then(t,t);break a;case 3:Yl=7;break a;case 4:Yl=5;break a;case 7:Ea(o)?(Yl=0,Xl=null,Hu(t)):(Yl=0,Xl=null,Uu(e,t,o,7));break;case 5:var s=null;switch(ql.tag){case 26:s=ql.memoizedState;case 5:case 27:var c=ql;if(s?ep(s):c.stateNode.complete){Yl=0,Xl=null;var l=c.sibling;if(l!==null)ql=l;else{var u=c.return;u===null?ql=null:(ql=u,Wu(u))}break b}}Yl=0,Xl=null,Uu(e,t,o,5);break;case 6:Yl=0,Xl=null,Uu(e,t,o,6);break;case 8:ju(),tu=6;break a;default:throw Error(i(462))}}Bu();break}catch(t){Nu(e,t)}while(1);return qi=Ki=null,M.H=r,M.A=a,Gl=n,ql===null?(Kl=null,Jl=0,ei(),tu):0}function Bu(){for(;ql!==null&&!F();)Vu(ql)}function Vu(e){var t=Ic(e.alternate,e,eu);e.memoizedProps=e.pendingProps,t===null?Wu(e):ql=t}function Hu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=bc(n,t,t.pendingProps,t.type,void 0,Jl);break;case 11:t=bc(n,t,t.pendingProps,t.type.render,t.ref,Jl);break;case 5:Mo(t);default:Gc(n,t),t=ql=di(t,eu),t=Ic(n,t,eu)}e.memoizedProps=e.pendingProps,t===null?Wu(e):ql=t}function Uu(e,t,n,r){qi=Ki=null,Mo(t),Ma=null,Na=0;var i=t.return;try{if(ac(e,i,t,n,Jl)){tu=1,ec(e,vi(n,e.current)),ql=null;return}}catch(t){if(i!==null)throw ql=i,t;tu=1,ec(e,vi(n,e.current)),ql=null;return}t.flags&32768?(Fi||r===1?e=!0:Ql||Jl&536870912?e=!1:(Zl=e=!0,(r===2||r===9||r===3||r===6)&&(r=ro.current,r!==null&&r.tag===13&&(r.flags|=16384))),Gu(t,e)):Wu(t)}function Wu(e){var t=e;do{if(t.flags&32768){Gu(t,Zl);return}e=t.return;var n=Uc(t.alternate,t,eu);if(n!==null){ql=n;return}if(t=t.sibling,t!==null){ql=t;return}ql=t=e}while(t!==null);tu===0&&(tu=5)}function Gu(e,t){do{var n=Wc(e.alternate,e);if(n!==null){n.flags&=32767,ql=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ql=e;return}ql=e=n}while(e!==null);tu=6,ql=null}function Ku(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Zu();while(hu!==0);if(Gl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=$r,Xe(e,n,o,s,c,l),e===Kl&&(ql=Kl=null,Jl=0),_u=t,gu=e,vu=n,yu=o,bu=a,xu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,od(ke,function(){return Qu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=M.T,M.T=null,a=N.p,N.p=2,s=Gl,Gl|=4;try{ul(e,t,n)}finally{Gl=s,N.p=a,M.T=r}}hu=1,qu(),Ju(),Yu()}}function qu(){if(hu===1){hu=0;var e=gu,t=_u,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=M.T,M.T=null;var r=N.p;N.p=2;var i=Gl;Gl|=4;try{Cl(t,e);var a=Yd,o=Dr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Er(s.ownerDocument.documentElement,s)){if(c!==null&&Or(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Tr(s,h),v=Tr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}_p=!!Jd,Yd=Jd=null}finally{Gl=i,N.p=r,M.T=n}}e.current=t,hu=2}}function Ju(){if(hu===2){hu=0;var e=gu,t=_u,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=M.T,M.T=null;var r=N.p;N.p=2;var i=Gl;Gl|=4;try{dl(e,t.alternate,t)}finally{Gl=i,N.p=r,M.T=n}}hu=3}}function Yu(){if(hu===4||hu===3){hu=0,we();var e=gu,t=_u,n=vu,r=xu;t.subtreeFlags&10256||t.flags&10256?hu=5:(hu=0,_u=gu=null,Xu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(mu=null),nt(n),t=t.stateNode,Fe&&typeof Fe.onCommitFiberRoot==`function`)try{Fe.onCommitFiberRoot(Pe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=M.T,i=N.p,N.p=2,M.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{M.T=t,N.p=i}}vu&3&&Zu(),pd(e),i=e.pendingLanes,n&261930&&i&42?e===Cu?Su++:(Su=0,Cu=e):Su=0,md(0,!1)}}function Xu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,la(t)))}function Zu(){return qu(),Ju(),Yu(),Qu()}function Qu(){if(hu!==5)return!1;var e=gu,t=yu;yu=0;var n=nt(vu),r=M.T,a=N.p;try{N.p=32>n?32:n,M.T=null,n=bu,bu=null;var o=gu,s=vu;if(hu=0,_u=gu=null,vu=0,Gl&6)throw Error(i(331));var c=Gl;if(Gl|=4,Bl(o.current),Ml(o,o.current,s,n),Gl=c,md(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot==`function`)try{Fe.onPostCommitFiberRoot(Pe,o)}catch{}return!0}finally{N.p=a,M.T=r,Xu(e,t)}}function $u(e,t,n){t=vi(n,t),t=nc(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(Ye(e,2),pd(e))}function ed(e,t,n){if(e.tag===3)$u(e,e,n);else for(;t!==null;){if(t.tag===3){$u(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(mu===null||!mu.has(r))){e=vi(n,e),n=rc(2),r=Wa(t,n,2),r!==null&&(ic(n,r,t,e),Ye(r,2),pd(r));break}}t=t.return}}function td(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||($l=!0,i.add(n),e=nd.bind(null,e,t,n),t.then(e,e))}function nd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Kl===e&&(Jl&n)===n&&(tu===4||tu===3&&(Jl&62914560)===Jl&&300>Te()-uu?!(Gl&2)&&Mu(e,0):iu|=n,ou===Jl&&(ou=0)),pd(e)}function rd(e,t){t===0&&(t=qe()),e=ri(e,t),e!==null&&(Ye(e,t),pd(e))}function id(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rd(e,n)}function ad(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),rd(e,n)}function od(e,t){return Se(e,t)}var sd=null,cd=null,ld=!1,ud=!1,dd=!1,fd=0;function pd(e){e!==cd&&e.next===null&&(cd===null?sd=cd=e:cd=cd.next=e),ud=!0,ld||(ld=!0,bd())}function md(e,t){if(!dd&&ud){dd=!0;do for(var n=!1,r=sd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Le(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,yd(r,a))}else a=Jl,a=We(r,r===Kl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ge(r,a)||(n=!0,yd(r,a));r=r.next}while(n);dd=!1}}function hd(){gd()}function gd(){ud=ld=!1;var e=0;fd!==0&&tf()&&(e=fd);for(var t=Te(),n=null,r=sd;r!==null;){var i=r.next,a=_d(r,t);a===0?(r.next=null,n===null?sd=i:n.next=i,i===null&&(cd=n)):(n=r,(e!==0||a&3)&&(ud=!0)),r=i}hu!==0&&hu!==5||md(e,!1),fd!==0&&(fd=0)}function _d(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Le(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ke(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Kl,n=Jl,n=We(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Yl===2||Yl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ce(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ge(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ce(r),nt(n)){case 2:case 8:n=Oe;break;case 32:n=ke;break;case 268435456:n=je;break;default:n=ke}return r=vd.bind(null,e),n=Se(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ce(r),e.callbackPriority=2,e.callbackNode=null,2}function vd(e,t){if(hu!==0&&hu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Zu()&&e.callbackNode!==n)return null;var r=Jl;return r=We(e,e===Kl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(B(e,r,t),_d(e,Te()),e.callbackNode!=null&&e.callbackNode===n?vd.bind(null,e):null)}function yd(e,t){if(Zu())return null;B(e,t,!0)}function bd(){of(function(){Gl&6?Se(De,hd):gd()})}function xd(){if(fd===0){var e=fa;e===0&&(e=Be,Be<<=1,!(Be&261888)&&(Be=256)),fd=e}return fd}function Sd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:$t(``+e)}function Cd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function wd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Sd((i[st]||null).action),o=r.submitter;o&&(t=(t=o[st]||null)?Sd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Sn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(fd!==0){var e=o?Cd(i,o):new FormData(i);Os(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Cd(i,o):new FormData(i),Os(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Td=0;Td<Jr.length;Td++){var Ed=Jr[Td];Yr(Ed.toLowerCase(),`on`+(Ed[0].toUpperCase()+Ed.slice(1)))}Yr(Br,`onAnimationEnd`),Yr(Vr,`onAnimationIteration`),Yr(Hr,`onAnimationStart`),Yr(`dblclick`,`onDoubleClick`),Yr(`focusin`,`onFocus`),Yr(`focusout`,`onBlur`),Yr(Ur,`onTransitionRun`),Yr(Wr,`onTransitionStart`),Yr(Gr,`onTransitionCancel`),Yr(Kr,`onTransitionEnd`),Ct(`onMouseEnter`,[`mouseout`,`mouseover`]),Ct(`onMouseLeave`,[`mouseout`,`mouseover`]),Ct(`onPointerEnter`,[`pointerout`,`pointerover`]),Ct(`onPointerLeave`,[`pointerout`,`pointerover`]),St(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),St(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),St(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),St(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Dd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Od=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Dd));function kd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}}}}function Ad(e,t){var n=t[lt];n===void 0&&(n=t[lt]=new Set);var r=e+`__bubble`;n.has(r)||(Pd(t,e,2,!1),n.add(r))}function jd(e,t,n){var r=0;t&&(r|=4),Pd(n,e,r,t)}var Md=`_reactListening`+Math.random().toString(36).slice(2);function Nd(e){if(!e[Md]){e[Md]=!0,bt.forEach(function(t){t!==`selectionchange`&&(Od.has(t)||jd(t,!1,e),jd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Md]||(t[Md]=!0,jd(`selectionchange`,!1,t))}}function Pd(e,t,n,r){switch(wp(t)){case 2:var i=vp;break;case 8:i=yp;break;default:i=bp}n=i.bind(null,t,n,e),i=void 0,!dn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Fd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=ht(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}cn(function(){var r=a,i=nn(n),s=[];a:{var c=qr.get(e);if(c!==void 0){var l=Sn,u=e;switch(e){case`keypress`:if(_n(n)===0)break a;case`keydown`:case`keyup`:l=Bn;break;case`focusin`:u=`focus`,l=jn;break;case`focusout`:u=`blur`,l=jn;break;case`beforeblur`:case`afterblur`:l=jn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=kn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=An;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Hn;break;case Br:case Vr:case Hr:l=Mn;break;case Kr:l=Un;break;case`scroll`:case`scrollend`:l=wn;break;case`wheel`:l=Wn;break;case`copy`:case`cut`:case`paste`:l=Nn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Vn;break;case`toggle`:case`beforetoggle`:l=Gn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=ln(m,p),g!=null&&d.push(Id(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==tn&&(u=n.relatedTarget||n.fromElement)&&(ht(u)||u[ct]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ht(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=kn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Vn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:_t(l),h=u==null?c:_t(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ht(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ld,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Rd(s,c,l,d,!1),u!==null&&f!==null&&Rd(s,f,u,d,!0)}}a:{if(c=r?_t(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=ur;else if(ar(c))if(dr)v=br;else{v=vr;var y=_r}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Xt(r.elementType)&&(v=ur):v=yr;if(v&&=v(e,r)){or(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ht(c,`number`,c.value)}switch(y=r?_t(r):window,e){case`focusin`:(ar(y)||y.contentEditable===`true`)&&(Ar=y,jr=r,Mr=null);break;case`focusout`:Mr=jr=Ar=null;break;case`mousedown`:Nr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Nr=!1,Pr(s,n,i);break;case`selectionchange`:if(kr)break;case`keydown`:case`keyup`:Pr(s,n,i)}var b;if(qn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else tr?$n(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Xn&&n.locale!==`ko`&&(tr||x!==`onCompositionStart`?x===`onCompositionEnd`&&tr&&(b=gn()):(pn=i,mn=`value`in pn?pn.value:pn.textContent,tr=!0)),y=H(r,x),0<y.length&&(x=new Pn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=er(n),b!==null&&(x.data=b)))),(b=Yn?nr(e,n):rr(e,n))&&(x=H(r,`onBeforeInput`),0<x.length&&(y=new Pn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),wd(s,e,r,n,i)}kd(s,t)})}function Id(e,t,n){return{instance:e,listener:t,currentTarget:n}}function H(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=ln(e,n),i!=null&&r.unshift(Id(e,i,a)),i=ln(e,t),i!=null&&r.push(Id(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ld(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Rd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=ln(n,a),l!=null&&o.unshift(Id(n,l,c))):i||(l=ln(n,a),l!=null&&o.push(Id(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var U=/\r\n?/g,zd=/\u0000|\uFFFD/g;function Bd(e){return(typeof e==`string`?e:``+e).replace(U,`
|
|
10
|
-
`).replace(zd,``)}function Vd(e,t){return t=Bd(t),Bd(e)===t}function Hd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Kt(e,``+r);break;case`className`:At(e,`class`,r);break;case`tabIndex`:At(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:At(e,n,r);break;case`style`:Yt(e,r,o);break;case`data`:if(t!==`object`){At(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Hd(e,t,`name`,a.name,a,null),Hd(e,t,`formEncType`,a.formEncType,a,null),Hd(e,t,`formMethod`,a.formMethod,a,null),Hd(e,t,`formTarget`,a.formTarget,a,null)):(Hd(e,t,`encType`,a.encType,a,null),Hd(e,t,`method`,a.method,a,null),Hd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=en);break;case`onScroll`:r!=null&&Ad(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ad(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=$t(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Ad(`beforetoggle`,e),Ad(`toggle`,e),kt(e,`popover`,r);break;case`xlinkActuate`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:kt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Zt.get(n)||n,kt(e,n,r))}}function Ud(e,t,n,r,a,o){switch(n){case`style`:Yt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Kt(e,``+r);break;case`onScroll`:r!=null&&Ad(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ad(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=en);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!xt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[st]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):kt(e,n,r)}}}function Wd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Ad(`error`,e),Ad(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Hd(e,t,o,s,n,null)}}a&&Hd(e,t,`srcSet`,n.srcSet,n,null),r&&Hd(e,t,`src`,n.src,n,null);return;case`input`:Ad(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Hd(e,t,r,d,n,null)}}Vt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Ad(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Hd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ut(e,!!r,n,!0):Ut(e,!!r,t,!1);return;case`textarea`:for(s in Ad(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Hd(e,t,s,c,n,null)}Gt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Hd(e,t,l,r,n,null)}return;case`dialog`:Ad(`beforetoggle`,e),Ad(`toggle`,e),Ad(`cancel`,e),Ad(`close`,e);break;case`iframe`:case`object`:Ad(`load`,e);break;case`video`:case`audio`:for(r=0;r<Dd.length;r++)Ad(Dd[r],e);break;case`image`:Ad(`error`,e),Ad(`load`,e);break;case`details`:Ad(`toggle`,e);break;case`embed`:case`source`:case`link`:Ad(`error`,e),Ad(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Hd(e,t,u,r,n,null)}return;default:if(Xt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ud(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Hd(e,t,c,r,n,null))}function Gd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Hd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Hd(e,t,p,m,r,f)}}Bt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Hd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Hd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ut(e,!!n,n?[]:``,!1):Ut(e,!!n,t,!0)):Ut(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Hd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Hd(e,t,s,a,r,o)}Wt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Hd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Hd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Hd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Hd(e,t,u,p,r,m)}return;default:if(Xt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ud(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Ud(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Hd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Hd(e,t,f,p,r,m)}function Kd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function qd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Kd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Kd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Jd=null,Yd=null;function Xd(e){return e.nodeType===9?e:e.ownerDocument}function Zd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Qd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function $d(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ef=null;function tf(){var e=window.event;return e&&e.type===`popstate`?e===ef?!1:(ef=e,!0):(ef=null,!1)}var nf=typeof setTimeout==`function`?setTimeout:void 0,rf=typeof clearTimeout==`function`?clearTimeout:void 0,af=typeof Promise==`function`?Promise:void 0,of=typeof queueMicrotask==`function`?queueMicrotask:af===void 0?nf:function(e){return af.resolve(null).then(e).catch(sf)};function sf(e){setTimeout(function(){throw e})}function cf(e){return e===`head`}function lf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Vp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Cf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Cf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[pt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Cf(e.ownerDocument.body);n=i}while(n);Vp(t)}function uf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function df(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:df(n),mt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function ff(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[pt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=vf(e.nextSibling),e===null)break}return null}function pf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=vf(e.nextSibling),e===null))return null;return e}function mf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=vf(e.nextSibling),e===null))return null;return e}function hf(e){return e.data===`$?`||e.data===`$~`}function gf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function _f(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function vf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var yf=null;function bf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return vf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function xf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Sf(e,t,n){switch(t=Xd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Cf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mt(e)}var wf=new Map,Tf=new Set;function Ef(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Df=N.d;N.d={f:Of,r:kf,D:Mf,C:Nf,L:Pf,m:Ff,X:Lf,S:If,M:Rf};function Of(){var e=Df.f(),t=Au();return e||t}function kf(e){var t=gt(e);t!==null&&t.tag===5&&t.type===`form`?As(t):Df.r(e)}var Af=typeof document>`u`?null:document;function jf(e,t,n){var r=Af;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Tf.has(i)||(Tf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Wd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Mf(e){Df.D(e),jf(`dns-prefetch`,e,null)}function Nf(e,t){Df.C(e,t),jf(`preconnect`,e,t)}function Pf(e,t,n){Df.L(e,t,n);var r=Af;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Bf(e);break;case`script`:a=Wf(e)}wf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),wf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Vf(a))||t===`script`&&r.querySelector(Gf(a))||(t=r.createElement(`link`),Wd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Ff(e,t){Df.m(e,t);var n=Af;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Wf(e)}if(!wf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),wf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Gf(a)))return}r=n.createElement(`link`),Wd(r,`link`,e),yt(r),n.head.appendChild(r)}}}function If(e,t,n){Df.S(e,t,n);var r=Af;if(r&&e){var i=vt(r).hoistableStyles,a=Bf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Vf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=wf.get(a))&&Jf(e,n);var c=o=r.createElement(`link`);yt(c),Wd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,qf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Lf(e,t){Df.X(e,t);var n=Af;if(n&&e){var r=vt(n).hoistableScripts,i=Wf(e),a=r.get(i);a||(a=n.querySelector(Gf(i)),a||(e=f({src:e,async:!0},t),(t=wf.get(i))&&Yf(e,t),a=n.createElement(`script`),yt(a),Wd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rf(e,t){Df.M(e,t);var n=Af;if(n&&e){var r=vt(n).hoistableScripts,i=Wf(e),a=r.get(i);a||(a=n.querySelector(Gf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=wf.get(i))&&Yf(e,t),a=n.createElement(`script`),yt(a),Wd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function zf(e,t,n,r){var a=(a=ce.current)?Ef(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Bf(n.href),n=vt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Bf(n.href);var o=vt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Vf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),wf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},wf.set(e,n),o||Uf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Wf(n),n=vt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Bf(e){return`href="`+zt(e)+`"`}function Vf(e){return`link[rel="stylesheet"][`+e+`]`}function Hf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Uf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Wd(t,`link`,n),yt(t),e.head.appendChild(t))}function Wf(e){return`[src="`+zt(e)+`"]`}function Gf(e){return`script[async]`+e}function Kf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,yt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),yt(r),Wd(r,`style`,a),qf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Bf(n.href);var o=e.querySelector(Vf(a));if(o)return t.state.loading|=4,t.instance=o,yt(o),o;r=Hf(n),(a=wf.get(a))&&Jf(r,a),o=(e.ownerDocument||e).createElement(`link`),yt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Wd(o,`link`,r),t.state.loading|=4,qf(o,n.precedence,e),t.instance=o;case`script`:return o=Wf(n.src),(a=e.querySelector(Gf(o)))?(t.instance=a,yt(a),a):(r=n,(a=wf.get(o))&&(r=f({},n),Yf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),yt(a),Wd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,qf(r,n.precedence,e));return t.instance}function qf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Jf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Yf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Xf=null;function Zf(e,t,n){if(Xf===null){var r=new Map,i=Xf=new Map;i.set(n,r)}else i=Xf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[pt]||a[ot]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Qf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function $f(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function ep(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function tp(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Bf(r.href),a=t.querySelector(Vf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ip.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Hf(r),(i=wf.get(i))&&Jf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Wd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ip.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var np=0;function rp(e,t){return e.stylesheets&&e.count===0&&op(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&op(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&np===0&&(np=62500*qd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&op(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>np?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ip(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)op(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ap=null;function op(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ap=new Map,t.forEach(sp,e),ap=null,ip.call(e))}function sp(e,t){if(!(t.state.loading&4)){var n=ap.get(e);if(n)var r=n.get(null);else{n=new Map,ap.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ip.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var cp={$$typeof:b,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function lp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Je(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Je(0),this.hiddenUpdates=Je(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function up(e,t,n,r,i,a,o,s,c,l,u,d){return e=new lp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ci(3,null,null,t),e.current=a,a.stateNode=e,t=ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Va(a),e}function dp(e){return e?(e=oi,e):oi}function fp(e,t,n,r,i,a){i=dp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ua(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Wa(e,r,t),n!==null&&(Eu(n,e,t),Ga(n,e,t))}function pp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mp(e,t){pp(e,t),(e=e.alternate)&&pp(e,t)}function hp(e){if(e.tag===13||e.tag===31){var t=ri(e,67108864);t!==null&&Eu(t,e,67108864),mp(e,67108864)}}function gp(e){if(e.tag===13||e.tag===31){var t=wu();t=tt(t);var n=ri(e,t);n!==null&&Eu(n,e,t),mp(e,t)}}var _p=!0;function vp(e,t,n,r){var i=M.T;M.T=null;var a=N.p;try{N.p=2,bp(e,t,n,r)}finally{N.p=a,M.T=i}}function yp(e,t,n,r){var i=M.T;M.T=null;var a=N.p;try{N.p=8,bp(e,t,n,r)}finally{N.p=a,M.T=i}}function bp(e,t,n,r){if(_p){var i=xp(r);if(i===null)Fd(e,t,r,Sp,n),jp(e,r);else if(Np(i,e,t,n,r))r.stopPropagation();else if(jp(e,r),t&4&&-1<Ap.indexOf(e)){for(;i!==null;){var a=gt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ue(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Le(o);s.entanglements[1]|=c,o&=~c}pd(a),!(Gl&6)&&(fu=Te()+500,md(0,!1))}}break;case 31:case 13:s=ri(a,2),s!==null&&Eu(s,a,2),Au(),mp(a,2)}if(a=xp(r),a===null&&Fd(e,t,r,Sp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Fd(e,t,r,null,n)}}function xp(e){return e=nn(e),Cp(e)}var Sp=null;function Cp(e){if(Sp=null,e=ht(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Sp=e,null}function wp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ee()){case De:return 2;case Oe:return 8;case ke:case Ae:return 32;case je:return 268435456;default:return 32}default:return 32}}var W=!1,Tp=null,G=null,Ep=null,Dp=new Map,Op=new Map,kp=[],Ap=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function jp(e,t){switch(e){case`focusin`:case`focusout`:Tp=null;break;case`dragenter`:case`dragleave`:G=null;break;case`mouseover`:case`mouseout`:Ep=null;break;case`pointerover`:case`pointerout`:Dp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Op.delete(t.pointerId)}}function Mp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=gt(t),t!==null&&hp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Np(e,t,n,r,i){switch(t){case`focusin`:return Tp=Mp(Tp,e,t,n,r,i),!0;case`dragenter`:return G=Mp(G,e,t,n,r,i),!0;case`mouseover`:return Ep=Mp(Ep,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Dp.set(a,Mp(Dp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Op.set(a,Mp(Op.get(a)||null,e,t,n,r,i)),!0}return!1}function Pp(e){var t=ht(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,it(e.priority,function(){gp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,it(e.priority,function(){gp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tn=r,n.target.dispatchEvent(r),tn=null}else return t=gt(n),t!==null&&hp(t),e.blockedOn=n,!1;t.shift()}return!0}function Ip(e,t,n){Fp(e)&&n.delete(t)}function Lp(){W=!1,Tp!==null&&Fp(Tp)&&(Tp=null),G!==null&&Fp(G)&&(G=null),Ep!==null&&Fp(Ep)&&(Ep=null),Dp.forEach(Ip),Op.forEach(Ip)}function Rp(e,n){e.blockedOn===n&&(e.blockedOn=null,W||(W=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Lp)))}var zp=null;function Bp(e){zp!==e&&(zp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){zp===e&&(zp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Cp(r||n)===null)continue;break}var a=gt(n);a!==null&&(e.splice(t,3),t-=3,Os(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Vp(e){function t(t){return Rp(t,e)}Tp!==null&&Rp(Tp,e),G!==null&&Rp(G,e),Ep!==null&&Rp(Ep,e),Dp.forEach(t),Op.forEach(t);for(var n=0;n<kp.length;n++){var r=kp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<kp.length&&(n=kp[0],n.blockedOn===null);)Pp(n),n.blockedOn===null&&kp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[st]||null;if(typeof a==`function`)o||Bp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[st]||null)s=o.formAction;else if(Cp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Bp(n)}}}function Hp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Up(e){this._internalRoot=e}Wp.prototype.render=Up.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;fp(n,wu(),e,t,null,null)},Wp.prototype.unmount=Up.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fp(e.current,2,null,e,null,null),Au(),t[ct]=null}};function Wp(e){this._internalRoot=e}Wp.prototype.unstable_scheduleHydration=function(e){if(e){var t=rt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kp.length&&t!==0&&t<kp[n].priority;n++);kp.splice(n,0,e),n===0&&Pp(e)}};var Gp=n.version;if(Gp!==`19.2.4`)throw Error(i(527,Gp,`19.2.4`));N.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Kp={bundleType:0,version:`19.2.4`,rendererPackageName:`react-dom`,currentDispatcherRef:M,reconcilerVersion:`19.2.4`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var qp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qp.isDisabled&&qp.supportsFiber)try{Pe=qp.inject(Kp),Fe=qp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Zs,s=Qs,c=$s;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=up(e,1,!1,null,null,n,r,null,o,s,c,Hp),e[ct]=t.current,Nd(e),new Up(t)}})),Si=x(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=xi()})),Ci=class extends w{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new P({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=wi(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=wi(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=wi(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=wi(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Re.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>te(t,e))}findAll(e={}){return this.getAll().filter(t=>te(e,t))}notify(e){Re.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Re.batch(()=>Promise.all(e.map(e=>e.continue().catch(o))))}};function wi(e){return e.options.scope?.id}function Ti(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}function Ei(e,t,n){let r=e.slice(0);return r[t]=n,r}var Di=class extends w{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#p(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,Re.batch(()=>{let e=this.#i,t=this.#f(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!de(e,n)});!o&&!s||(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(Ti(e,n).forEach(e=>{e.destroy()}),Ti(n,e).forEach(e=>{e.subscribe(t=>{this.#p(e,t)})})),this.#m()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#f(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){return t.map((n,r)=>{let i=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(!this.#a||this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=v(this.#a,t(e))),this.#a}return e}#f(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new p(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#p(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=Ei(this.#t,n,t),this.#m())}#m(){if(this.hasListeners()){let e=this.#a,t=this.#u(this.#t,this.#l);e!==this.#d(t,this.#r?.combine)&&Re.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},Oi=class extends w{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??T(r,t),a=this.get(i);return a||(a=new u({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Re.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>ht(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>ht(e,t)):t}notify(e){Re.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Re.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Re.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ki=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Oi,this.#t=e.mutationCache||new Ci,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=r.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=k.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(oe(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=m(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Re.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Re.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Re.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Re.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(o).catch(o)}invalidateQueries(e,t={}){return Re.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Re.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(o)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(o)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(oe(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(o).catch(o)}fetchInfiniteQuery(e){return e.behavior=Vn(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(o).catch(o)}ensureInfiniteQueryData(e){return e.behavior=Vn(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return k.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(b(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ce(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(b(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ce(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=T(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===g&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},R=e(Ze(),1);function Ai({queries:e,...t},n){let r=c(n),i=ft(),a=Ce(),s=R.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:`optimistic`,t}),[e,r,i]);s.forEach(e=>{qe(e),ye(e,a,r.getQueryCache().get(e.queryHash))}),mt(a);let[l]=R.useState(()=>new Di(r,s,t)),[u,d,f]=l.getOptimisticResult(s,t.combine),m=!i&&t.subscribed!==!1;R.useSyncExternalStore(R.useCallback(e=>m?l.subscribe(Re.batchCalls(e)):o,[l,m]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),R.useEffect(()=>{l.setQueries(s,t)},[s,t,l]);let h=u.some((e,t)=>Ne(s[t],e))?u.flatMap((e,t)=>{let n=s[t];if(n){let t=new p(r,n);if(Ne(n,e))return Ve(n,t,a);Ae(e,i)&&Ve(n,t,a)}return[]}):[];if(h.length>0)throw Promise.all(h);let g=u.find((e,t)=>{let n=s[t];return n&&ct({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(g?.error)throw g.error;return d(f())}function ji(e,t){let n=c(t);return Ni({filters:{...e,status:`pending`}},n).length}function Mi(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}function Ni(e={},t){let n=c(t).getMutationCache(),r=R.useRef(e),i=R.useRef(null);return i.current===null&&(i.current=Mi(n,e)),R.useEffect(()=>{r.current=e}),R.useSyncExternalStore(R.useCallback(e=>n.subscribe(()=>{let t=v(i.current,Mi(n,r.current));i.current!==t&&(i.current=t,Re.schedule(e))}),[n]),()=>i.current,()=>i.current)}var Pi=Si(),Fi=e(Ot(),1),z=ut(),Ii=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=xe(`Primitive.${t}`),r=R.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,z.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Li=`Separator`,Ri=`horizontal`,zi=[`horizontal`,`vertical`],Bi=R.forwardRef((e,t)=>{let{decorative:n,orientation:r=Ri,...i}=e,a=Vi(r)?r:Ri,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,z.jsx)(Ii.div,{"data-orientation":a,...o,...i,ref:t})});Bi.displayName=Li;function Vi(e){return zi.includes(e)}var Hi=Bi,Ui=R.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,z.jsx)(Hi,{ref:i,decorative:n,orientation:t,className:I(`shrink-0 bg-border`,t===`horizontal`?`h-[1px] w-full`:`h-full w-[1px]`,e),...r}));Ui.displayName=Hi.displayName;function Wi({className:e,...t}){return(0,z.jsx)(`div`,{className:I(`animate-pulse rounded-md bg-surface-selected`,e),...t})}var Gi=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Ki=`VisuallyHidden`,qi=R.forwardRef((e,t)=>(0,z.jsx)(An.span,{...e,ref:t,style:{...Gi,...e.style}}));qi.displayName=Ki;var Ji=qi,[Yi,Xi]=Nn(`Tooltip`,[On]),Zi=On(),Qi=`TooltipProvider`,$i=700,ea=`tooltip.open`,[ta,na]=Yi(Qi),ra=e=>{let{__scopeTooltip:t,delayDuration:n=$i,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=R.useRef(!0),s=R.useRef(!1),c=R.useRef(0);return R.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,z.jsx)(ta,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:R.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:R.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:R.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};ra.displayName=Qi;var ia=`Tooltip`,[aa,oa]=Yi(ia),sa=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=na(ia,e.__scopeTooltip),l=Zi(t),[u,d]=R.useState(null),f=dn(),p=R.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=R.useRef(!1),[_,v]=Kt({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(ea))):c.onClose(),a?.(e)},caller:ia}),y=R.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=R.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=R.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=R.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return R.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,z.jsx)(xn,{...l,children:(0,z.jsx)(aa,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:R.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:R.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};sa.displayName=ia;var ca=`TooltipTrigger`,la=R.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=oa(ca,n),a=na(ca,n),o=Zi(n),s=tt(t,R.useRef(null),i.onTriggerChange),c=R.useRef(!1),l=R.useRef(!1),u=R.useCallback(()=>c.current=!1,[]);return R.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,z.jsx)(gt,{asChild:!0,...o,children:(0,z.jsx)(An.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:nn(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:nn(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:nn(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:nn(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:nn(e.onBlur,i.onClose),onClick:nn(e.onClick,i.onClose)})})});la.displayName=ca;var ua=`TooltipPortal`,[da,fa]=Yi(ua,{forceMount:void 0}),pa=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=oa(ua,t);return(0,z.jsx)(da,{scope:t,forceMount:n,children:(0,z.jsx)(Jt,{present:n||a.open,children:(0,z.jsx)(zt,{asChild:!0,container:i,children:r})})})};pa.displayName=ua;var ma=`TooltipContent`,ha=R.forwardRef((e,t)=>{let n=fa(ma,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=oa(ma,e.__scopeTooltip);return(0,z.jsx)(Jt,{present:r||o.open,children:o.disableHoverableContent?(0,z.jsx)(ba,{side:i,...a,ref:t}):(0,z.jsx)(ga,{side:i,...a,ref:t})})}),ga=R.forwardRef((e,t)=>{let n=oa(ma,e.__scopeTooltip),r=na(ma,e.__scopeTooltip),i=R.useRef(null),a=tt(t,i),[o,s]=R.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=R.useCallback(()=>{s(null),d(!1)},[d]),p=R.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=wa(r,Ca(r,n.getBoundingClientRect())),a=Ta(t.getBoundingClientRect());s(Da([...i,...a])),d(!0)},[d]);return R.useEffect(()=>()=>f(),[f]),R.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),R.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Ea(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,z.jsx)(ba,{...e,ref:a})}),[_a,va]=Yi(ia,{isInside:!1}),ya=_n(`TooltipContent`),ba=R.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=oa(ma,n),l=Zi(n),{onClose:u}=c;return R.useEffect(()=>(document.addEventListener(ea,u),()=>document.removeEventListener(ea,u)),[u]),R.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,z.jsx)(Zt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,z.jsxs)(jn,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,z.jsx)(ya,{children:r}),(0,z.jsx)(_a,{scope:n,isInside:!0,children:(0,z.jsx)(Ji,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});ha.displayName=ma;var xa=`TooltipArrow`,Sa=R.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Zi(n);return va(xa,n).isInside?null:(0,z.jsx)(rn,{...i,...r,ref:t})});Sa.displayName=xa;function Ca(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function wa(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Ta(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Ea(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function Da(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Oa(t)}function Oa(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ka=ra,Aa=sa,ja=la,Ma=pa,Na=ha,Pa=ka,Fa=Aa,Ia=ja,La=R.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,z.jsx)(Ma,{children:(0,z.jsx)(Na,{ref:r,sideOffset:t,className:I(`z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,e),...n})}));La.displayName=Na.displayName;var Ra=`16rem`,za=`min(90vw, 320px)`,Ba=`3rem`,Va=`b`,Ha=`duration-200 flex shrink-0 items-center rounded-md px-2 text-xs font-medium text-muted-foreground outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,Ua=`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,Wa=`h-8`,Ga={"--sidebar-width-mobile":za},Ka=R.createContext(null);function qa(){let e=R.useContext(Ka);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Ja(){let{state:e,isCompactViewport:t,openMobile:n}=qa();return t?n:e===`expanded`}var Ya=R.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o},s)=>{let c=Rt(),[l,u]=R.useState(!1),[d,f]=R.useState(e),p=t??d,m=R.useCallback(e=>{let t=typeof e==`function`?e(p):e;n?n(t):f(t)},[n,p]),h=R.useCallback(()=>c?u(e=>!e):m(e=>!e),[c,m,u]);R.useEffect(()=>{let e=e=>{e.key===Va&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),h())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[h]);let g=p?`expanded`:`collapsed`,_=R.useMemo(()=>({state:g,open:p,setOpen:m,isCompactViewport:c,openMobile:l,setOpenMobile:u,toggleSidebar:h}),[g,p,m,c,l,u,h]);return(0,z.jsx)(Ka.Provider,{value:_,children:(0,z.jsx)(Pa,{delayDuration:0,children:(0,z.jsx)(`div`,{style:{"--sidebar-width":Ra,"--sidebar-width-icon":Ba,...i},className:I(`group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar`,r),ref:s,...o,children:a})})})});Ya.displayName=`SidebarProvider`;var Xa=R.forwardRef(({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a},o)=>{let{isCompactViewport:s,state:c,openMobile:l,setOpenMobile:u}=qa();return n===`none`?(0,z.jsx)(`div`,{className:I(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),ref:o,...a,children:i}):(0,z.jsxs)(z.Fragment,{children:[l&&(0,z.jsx)(`div`,{className:`fixed inset-0 z-50 bg-black/80 md:hidden`,onClick:()=>u(!1)}),(0,z.jsxs)(`div`,{ref:o,className:`group peer text-sidebar-foreground`,"data-state":c,"data-collapsible":!s&&c===`collapsed`?n:``,"data-variant":t,"data-side":e,children:[(0,z.jsx)(`div`,{"data-sidebar":`gap`,className:I(`relative hidden h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear md:block`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,z.jsx)(`div`,{"data-sidebar":`panel`,className:I(`fixed inset-y-0 z-50 flex h-svh w-(--sidebar-width-mobile) flex-col bg-sidebar text-sidebar-foreground transition-[left,right,transform,width] duration-200 ease-in-out md:z-10 md:w-(--sidebar-width) md:transition-[left,right,width] md:ease-linear`,e===`left`?`left-0 -translate-x-full data-[open=true]:translate-x-0 md:translate-x-0 md:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 translate-x-full data-[open=true]:translate-x-0 md:translate-x-0 md:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`md:p-2 md:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]`:`md:group-data-[collapsible=icon]:w-(--sidebar-width-icon) md:group-data-[side=left]:border-r md:group-data-[side=right]:border-l`,r),"data-open":l,style:Ga,...a,children:(0,z.jsx)(`div`,{"data-sidebar":`sidebar`,className:`flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow`,children:i})})]})]})});Xa.displayName=`Sidebar`;var Za=R.forwardRef(({className:e,onClick:t,...n},r)=>{let{toggleSidebar:i}=qa();return(0,z.jsxs)(it,{ref:r,"data-sidebar":`trigger`,variant:`ghost`,size:`icon`,className:I(Qt,e),onClick:e=>{t?.(e),i()},...n,children:[(0,z.jsx)(F,{name:`PanelLeft`,className:`max-md:pointer-coarse:hidden`}),(0,z.jsx)(F,{name:`AlignLeft`,className:`hidden max-md:pointer-coarse:block`}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})});Za.displayName=`SidebarTrigger`;var Qa=R.forwardRef(({className:e,...t},n)=>{let{toggleSidebar:r}=qa();return(0,z.jsx)(`button`,{ref:n,"data-sidebar":`rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:r,title:`Toggle Sidebar`,className:I(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex`,`[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})});Qa.displayName=`SidebarRail`;var $a=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`main`,{ref:n,className:I(`relative flex min-h-svh min-w-0 flex-1 flex-col bg-background`,`peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow`,e),...t}));$a.displayName=`SidebarInset`;var eo=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(hr,{ref:n,"data-sidebar":`input`,className:I(`h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring`,e),...t}));eo.displayName=`SidebarInput`;var to=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`div`,{ref:n,"data-sidebar":`header`,className:I(`flex flex-col gap-2 p-2`,e),...t}));to.displayName=`SidebarHeader`;var no=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`div`,{ref:n,"data-sidebar":`footer`,className:I(`flex flex-col gap-2 p-2`,e),...t}));no.displayName=`SidebarFooter`;var ro=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(Ui,{ref:n,"data-sidebar":`separator`,className:I(`mx-2 w-auto bg-sidebar-border`,e),...t}));ro.displayName=`SidebarSeparator`;var io=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`div`,{ref:n,"data-sidebar":`content`,className:I(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t}));io.displayName=`SidebarContent`;var ao=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`div`,{ref:n,"data-sidebar":`group`,className:I(`relative flex w-full min-w-0 flex-col p-2`,e),...t}));ao.displayName=`SidebarGroup`;var oo=R.forwardRef(({className:e,asChild:t=!1,...n},r)=>(0,z.jsx)(t?Le:`div`,{ref:r,"data-sidebar":`group-label`,className:I(Ha,Wa,Ua,e),...n}));oo.displayName=`SidebarGroupLabel`;var so=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`div`,{ref:n,"data-sidebar":`group`,"data-sidebar-sticky-stack":``,className:I(`relative flex w-full min-w-0 flex-col`,e),...t}));so.displayName=`SidebarStickyStack`;var co=R.forwardRef(({children:e,className:t,tier:n,...r},i)=>(0,z.jsx)(`div`,{ref:i,...r,"data-sidebar":n===`label`?`group-label`:void 0,"data-sidebar-sticky-tier":n,className:I(n===`label`&&Ha,n===`label`&&Ua,`bg-sidebar`,t),children:e}));co.displayName=`SidebarStickyTier`;var lo=R.forwardRef(({className:e,asChild:t=!1,...n},r)=>(0,z.jsx)(t?Le:`button`,{ref:r,"data-sidebar":`group-action`,className:I(`absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`after:absolute after:-inset-2 after:md:hidden`,`group-data-[collapsible=icon]:hidden`,e),...n}));lo.displayName=`SidebarGroupAction`;var uo=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`div`,{ref:n,"data-sidebar":`group-content`,className:I(`w-full text-sm`,e),...t}));uo.displayName=`SidebarGroupContent`;var fo=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`ul`,{ref:n,"data-sidebar":`menu`,className:I(`flex w-full min-w-0 flex-col gap-1`,e),...t}));fo.displayName=`SidebarMenu`;var po=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`li`,{ref:n,"data-sidebar":`menu-item`,className:I(`group/menu-item relative`,e),...t}));po.displayName=`SidebarMenuItem`;var mo=$e(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-border/70 data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[active=true]:hover:bg-sidebar-border/70 data-[active=true]:hover:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:!p-0`}},defaultVariants:{variant:`default`,size:`default`}}),ho=R.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o},s)=>{let c=e?Le:`button`,{isCompactViewport:l,state:u}=qa(),d=(0,z.jsx)(c,{ref:s,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:I(mo({variant:n,size:r}),a),...o});return i?(typeof i==`string`&&(i={children:i}),(0,z.jsxs)(Fa,{children:[(0,z.jsx)(Ia,{asChild:!0,children:d}),(0,z.jsx)(La,{side:`right`,align:`center`,hidden:u!==`collapsed`||l,...i})]})):d});ho.displayName=`SidebarMenuButton`;var go=R.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},i)=>(0,z.jsx)(t?Le:`button`,{ref:i,"data-sidebar":`menu-action`,className:I(`absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0`,`after:absolute after:-inset-2 after:md:hidden`,`group-data-[collapsible=icon]:hidden`,n&&`group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0`,e),...r}));go.displayName=`SidebarMenuAction`;var _o=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`span`,{ref:n,"data-sidebar":`menu-badge`,className:I(`inline-flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium leading-none tabular-nums text-sidebar-foreground select-none pointer-events-none`,e),...t}));_o.displayName=`SidebarMenuBadge`;var vo=R.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{let i=R.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,z.jsxs)(`div`,{ref:r,"data-sidebar":`menu-skeleton`,className:I(`rounded-md h-8 flex gap-2 px-2 items-center`,e),...n,children:[t&&(0,z.jsx)(Wi,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,z.jsx)(Wi,{className:`h-4 flex-1 max-w-[--skeleton-width]`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})});vo.displayName=`SidebarMenuSkeleton`;var yo=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`ul`,{ref:n,"data-sidebar":`menu-sub`,className:I(`mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5`,`group-data-[collapsible=icon]:hidden`,e),...t}));yo.displayName=`SidebarMenuSub`;var bo=R.forwardRef(({...e},t)=>(0,z.jsx)(`li`,{ref:t,...e}));bo.displayName=`SidebarMenuSubItem`;var xo=R.forwardRef(({asChild:e=!1,size:t=`md`,isActive:n,className:r,...i},a)=>(0,z.jsx)(e?Le:`a`,{ref:a,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:I(`flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,`data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground`,t===`sm`&&`text-xs`,t===`md`&&`text-sm`,`group-data-[collapsible=icon]:hidden`,r),...i}));xo.displayName=`SidebarMenuSubButton`;function So(){let e=er(),t=ir(`/projects/:projectId/*`),n=ir(`/projects/:projectId`),r=ir(`/projects/:projectId/threads/:threadId/*`),i=ir(`/projects/:projectId/archived`),a=ir(`/projects/:projectId/settings`);return{projectId:t?.params.projectId,threadId:r?.params.threadId,isProjectMainView:!!n,isThreadView:!!r,isArchivedView:!!i,isSettingsView:!!a,isRootView:e.pathname===`/`}}var Co=1e4;function wo({hasResolvedData:e,isFetching:t,isLoadingError:n,serverConnectionState:r,connectionGracePeriodElapsed:i}){return!e&&t||!e&&n&&r!==`connected`&&!i?{status:`loading`}:!e&&n?{status:`unavailable`}:{status:`ready`}}function To(e=Co){let t=kt(),[n,r]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{if(t===`connected`){r(!1);return}let n=setTimeout(()=>r(!0),e);return()=>clearTimeout(n)},[t,e]),n}function Eo({hasResolvedData:e,isFetching:t,isLoadingError:n}){let r=kt(),i=To();return(0,R.useMemo)(()=>wo({hasResolvedData:e,isFetching:t,isLoadingError:n,serverConnectionState:r,connectionGracePeriodElapsed:i}),[e,t,n,r,i])}function Do(e){let t=Vr(Lr),n=Vr(Rr),r=(0,R.useMemo)(()=>e.length===0?[]:[...new Set(e)].sort(),[e]),i=t!=null&&n!=null&&r.length>0;return Te({queryKey:C(t??``,r),queryFn:i?()=>Zr(n,r):g,staleTime:1e4}).data??{}}function Oo(e,t){return t==null?!1:e[t]===!1}function ko({message:e,icon:t,className:n,iconClassName:r,messageClassName:i}){return(0,z.jsxs)(`div`,{className:I(`flex items-center gap-2`,n),children:[t?(0,z.jsx)(F,{name:t,"aria-hidden":`true`,className:I(`size-4 shrink-0 text-subtle-foreground`,r)}):null,(0,z.jsx)(`p`,{className:I(`text-xs leading-5 text-muted-foreground`,i),children:e})]})}function Ao({projectId:e,environmentId:t}){let n=lr();return(0,R.useCallback)(()=>{n(`/projects/${e}`,{state:{reuseEnvironmentId:t}})},[t,n,e])}var jo=`ContextMenu`,[Mo,No]=Nn(jo,[Ut]),Po=Ut(),[Fo,Io]=Mo(jo),Lo=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,dir:i,modal:a=!0}=e,[o,s]=R.useState(!1),c=Po(t),l=Cn(r),u=R.useCallback(e=>{s(e),l(e)},[l]);return(0,z.jsx)(Fo,{scope:t,open:o,onOpenChange:u,modal:a,children:(0,z.jsx)(Bt,{...c,dir:i,open:o,onOpenChange:u,modal:a,children:n})})};Lo.displayName=jo;var Ro=`ContextMenuTrigger`,zo=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=Io(Ro,n),o=Po(n),s=R.useRef({x:0,y:0}),c=R.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),l=R.useRef(0),u=R.useCallback(()=>window.clearTimeout(l.current),[]),d=e=>{s.current={x:e.clientX,y:e.clientY},a.onOpenChange(!0)};return R.useEffect(()=>u,[u]),R.useEffect(()=>void(r&&u()),[r,u]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(bt,{...o,virtualRef:c}),(0,z.jsx)(An.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:nn(e.onContextMenu,e=>{u(),d(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:nn(e.onPointerDown,ms(e=>{u(),l.current=window.setTimeout(()=>d(e),700)})),onPointerMove:r?e.onPointerMove:nn(e.onPointerMove,ms(u)),onPointerCancel:r?e.onPointerCancel:nn(e.onPointerCancel,ms(u)),onPointerUp:r?e.onPointerUp:nn(e.onPointerUp,ms(u))})]})});zo.displayName=Ro;var Bo=`ContextMenuPortal`,Vo=e=>{let{__scopeContextMenu:t,...n}=e,r=Po(t);return(0,z.jsx)(Ct,{...r,...n})};Vo.displayName=Bo;var Ho=`ContextMenuContent`,Uo=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Io(Ho,n),a=Po(n),o=R.useRef(!1);return(0,z.jsx)(_t,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Uo.displayName=Ho;var Wo=`ContextMenuGroup`,Go=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Po(n);return(0,z.jsx)(fn,{...i,...r,ref:t})});Go.displayName=Wo;var Ko=`ContextMenuLabel`,qo=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Po(n);return(0,z.jsx)(Lt,{...i,...r,ref:t})});qo.displayName=Ko;var Jo=`ContextMenuItem`,Yo=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Po(n);return(0,z.jsx)(Mt,{...i,...r,ref:t})});Yo.displayName=Jo;var Xo=`ContextMenuCheckboxItem`,Zo=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Po(n);return(0,z.jsx)(mn,{...i,...r,ref:t})});Zo.displayName=Xo;var Qo=`ContextMenuRadioGroup`,$o=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Po(n);return(0,z.jsx)(Dt,{...i,...r,ref:t})});$o.displayName=Qo;var es=`ContextMenuRadioItem`,ts=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Po(n);return(0,z.jsx)(jt,{...i,...r,ref:t})});ts.displayName=es;var ns=`ContextMenuItemIndicator`,rs=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Po(n);return(0,z.jsx)(Pt,{...i,...r,ref:t})});rs.displayName=ns;var is=`ContextMenuSeparator`,as=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Po(n);return(0,z.jsx)(zn,{...i,...r,ref:t})});as.displayName=is;var os=`ContextMenuArrow`,ss=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Po(n);return(0,z.jsx)(Ft,{...i,...r,ref:t})});ss.displayName=os;var cs=`ContextMenuSub`,ls=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=Po(t),[s,c]=Kt({prop:i,defaultProp:a??!1,onChange:r,caller:cs});return(0,z.jsx)(yt,{...o,open:s,onOpenChange:c,children:n})};ls.displayName=cs;var us=`ContextMenuSubTrigger`,ds=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Po(n);return(0,z.jsx)(Et,{...i,...r,ref:t})});ds.displayName=us;var fs=`ContextMenuSubContent`,ps=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Po(n);return(0,z.jsx)(Wt,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});ps.displayName=fs;function ms(e){return t=>t.pointerType===`mouse`?void 0:e(t)}var hs=Lo,gs=zo,_s=Vo,vs=Uo,ys=qo,bs=Yo,xs=Zo,Ss=ts,Cs=rs,ws=as,Ts=ds,Es=ps,Ds=hs,Os=gs,ks=R.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,z.jsxs)(Ts,{ref:i,className:I(`flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[state=open]:bg-state-active data-[state=open]:text-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,t&&`pl-8`,e),...r,children:[n,(0,z.jsx)(F,{name:`ChevronRight`,className:`ml-auto`})]}));ks.displayName=Ts.displayName;var As=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(Es,{ref:n,className:I(`z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,e),...t}));As.displayName=Es.displayName;var js=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(_s,{children:(0,z.jsx)(vs,{ref:n,className:I(`z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,e),...t})}));js.displayName=vs.displayName;var Ms=R.forwardRef(({className:e,inset:t,...n},r)=>(0,z.jsx)(bs,{ref:r,className:I(`relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0`,t&&`pl-8`,e),...n}));Ms.displayName=bs.displayName;var Ns=R.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,z.jsxs)(xs,{ref:i,className:I(`relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-2 pr-8 text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),checked:n,...r,children:[(0,z.jsx)(`span`,{className:I(`absolute right-2 flex items-center justify-center`,Tn),children:(0,z.jsx)(Cs,{children:(0,z.jsx)(F,{name:`Check`,className:Tn})})}),t]}));Ns.displayName=xs.displayName;var Ps=R.forwardRef(({className:e,children:t,...n},r)=>(0,z.jsxs)(Ss,{ref:r,className:I(`relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-8 pr-2 text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...n,children:[(0,z.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,z.jsx)(Cs,{children:(0,z.jsx)(F,{name:`Circle`,className:`h-2 w-2 fill-current`})})}),t]}));Ps.displayName=Ss.displayName;var Fs=R.forwardRef(({className:e,inset:t,...n},r)=>(0,z.jsx)(ys,{ref:r,className:I(`px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground`,t&&`pl-8`,e),...n}));Fs.displayName=ys.displayName;var Is=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(ws,{ref:n,className:I(`-mx-1 my-1 h-px bg-muted`,e),...t}));Is.displayName=ws.displayName;function Ls({className:e,...t}){return(0,z.jsx)(`span`,{className:I(`ml-auto text-xs tracking-widest opacity-60`,e),...t})}Ls.displayName=`ContextMenuShortcut`;function Rs({queryClient:e}){Qe({queryClient:e,queryKeys:Us()})}function zs({queryClient:e}){Ie({queryClient:e,queryKeys:Us()})}function Bs({queryClient:e}){e.invalidateQueries({queryKey:ue()}),e.invalidateQueries({queryKey:ke()})}function Vs({queryClient:e}){Bs({queryClient:e}),e.invalidateQueries({queryKey:Ge()})}function Hs({queryClient:e}){e.invalidateQueries({queryKey:et()})}function Us(){return[ue(),ke(),Ge(),ve(),st(),A(),lt(),dt(),n(),ae(),s(),re(),l(),ee(),f(),Be(),Me(),Ke(),De(),we(),Xe(),nt(),Se()]}function Ws({isPending:e,submit:t}){let{localHostId:n,pickFolder:r,platform:i}=Ur(),a=Pr(),o=a.onClose,s=(0,R.useCallback)((r,i)=>{e||!n||t({path:r,hostId:n,target:i,closeDialog:o})},[o,e,n,t]),c=(0,R.useCallback)(t=>{if(!(e||!n)){if(r){(async()=>{let e=await r();e&&s(Pe(e),t)})();return}a.onOpen(t)}},[e,n,r,a,s]),l=(0,R.useCallback)((e,t)=>{s(t,e)},[s]);return{isAvailable:n!=null,localHostId:n,openPicker:c,platform:i,projectPathDialog:a,submitProjectPath:l}}function Gs({target:e,pending:t=!1,platform:n,onOpenChange:r,onSubmit:i}){return(0,z.jsx)(wr,{open:e!==null,onOpenChange:r,children:(0,z.jsx)(Sr,{children:e?(0,z.jsx)(Ys,{target:e,pending:t,platform:n,onSubmit:i},e.kind===`create`?`create`:e.projectId):null})})}function Ks(e){switch(e){case`create`:return`Add project`;case`update`:return`Update project path`;case`add-source`:return`Add project source`}}function qs(e){switch(e){case`create`:return`Add project`;case`update`:return`Save path`;case`add-source`:return`Add source`}}function Js(e){let t=`/path/to/project`;return e===`wsl`?{description:`Enter an absolute WSL path to the project folder, such as /home/me/repo or /mnt/c/...`,placeholder:t}:{description:`Enter an absolute path to the project folder.`,placeholder:t}}function Ys({target:e,pending:t,platform:n,onSubmit:r}){let i=(0,R.useId)(),[a,o]=(0,R.useState)(e.kind===`update`?e.currentPath:``),[s,c]=(0,R.useState)(null),l=Je(a),u=Js(n),d=e.kind===`update`&&e.currentPath||u.placeholder;return(0,R.useEffect)(()=>{c(null)},[a]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(br,{children:[(0,z.jsx)(Cr,{children:Ks(e.kind)}),(0,z.jsx)(gr,{children:u.description})]}),(0,z.jsxs)(`form`,{className:`space-y-4`,onSubmit:n=>{if(n.preventDefault(),t)return;let i=Pe(a),o=He(i);if(o){c(o);return}if(e.kind===`create`&&!Je(i)){c(`Could not derive a project name from that path.`);return}r(e,i)},children:[(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(hr,{id:i,"aria-label":`Project path`,value:a,autoFocus:!0,disabled:t,placeholder:d,onChange:e=>{o(e.target.value)}}),e.kind===`create`&&l?(0,z.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`Project name:`,` `,(0,z.jsx)(`span`,{className:`font-medium text-foreground`,children:l})]}):null,s?(0,z.jsx)(`p`,{className:`text-sm text-destructive`,children:s}):null]}),(0,z.jsx)(dr,{children:(0,z.jsx)(it,{type:`submit`,disabled:t,children:qs(e.kind)})})]})]})}function Xs({target:e,pending:t,onOpenChange:n,onDelete:r}){return(0,z.jsx)(wr,{open:e!==null,onOpenChange:n,children:(0,z.jsx)(Sr,{children:e?(0,z.jsx)(Zs,{target:e,pending:t,onDelete:r}):null})})}function Zs({target:e,pending:t,onDelete:n}){return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(br,{children:[(0,z.jsx)(Cr,{children:`Remove project?`}),(0,z.jsx)(gr,{children:`Remove "${e.name}" and all of its threads? This cannot be undone.`})]}),(0,z.jsx)(dr,{children:(0,z.jsx)(it,{type:`button`,variant:`destructive`,disabled:t,onClick:()=>n(e.id),children:`Remove project`})})]})}function Qs({target:e,pending:t=!1,onOpenChange:n,onRename:r}){return(0,z.jsx)(wr,{open:e!==null,onOpenChange:n,children:(0,z.jsx)(Sr,{children:e?(0,z.jsx)($s,{target:e,pending:t,onRename:r},e.id):null})})}function $s({target:e,pending:t,onRename:n}){let r=(0,R.useId)(),[i,a]=(0,R.useState)(e.currentName),[o,s]=(0,R.useState)(null);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(br,{children:[(0,z.jsx)(Cr,{children:`Rename project`}),(0,z.jsx)(gr,{children:`Choose a new name for this project.`})]}),(0,z.jsxs)(`form`,{className:`space-y-4`,onSubmit:r=>{if(r.preventDefault(),t)return;let a=i.trim();if(!a){s(`Project name cannot be empty.`);return}n(e.id,a)},children:[(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(hr,{id:r,"aria-label":`Project name`,value:i,autoFocus:!0,autoCapitalize:`words`,autoCorrect:`off`,spellCheck:!1,disabled:t,onChange:e=>{a(e.target.value),o&&s(null)}}),o?(0,z.jsx)(`p`,{className:`text-sm text-destructive`,children:o}):null]}),(0,z.jsx)(dr,{children:(0,z.jsx)(it,{type:`submit`,disabled:t,children:`Rename project`})})]})]})}var ec=`bb.sidebar.collapsedProjects`,tc=`bb.sidebar.collapsedManagers`,nc=`bb.sidebar.collapsedEnvironments`,rc=Er(ec,[],pr(),{getOnInit:!0}),ic=Er(tc,[],pr(),{getOnInit:!0}),ac=Er(nc,[],pr(),{getOnInit:!0}),oc=(0,R.createContext)(null);function sc(){let e=(0,R.useContext)(oc);if(!e)throw Error(`useProjectActions must be used within a <ProjectActionsProvider>`);return e}function cc({children:e}){let t=lr(),n=Or(rc),r=Ir(),i=Hr(),a=qr(),{mutate:o}=r,{mutate:s}=i,{mutate:c}=a,l=Pr(),u=Pr(),{onClose:d,onOpen:f}=l,{onClose:p,onOpen:m}=u,h=(0,R.useCallback)(({path:e,hostId:t,target:n,closeDialog:r})=>{n.kind===`add-source`&&c({projectId:n.projectId,path:e,hostId:t},{onSuccess:r})},[c]),g=Ws({isPending:a.isPending,submit:h}),_=(0,R.useCallback)(e=>{f({id:e.id,currentName:e.name})},[f]),v=(0,R.useCallback)((e,t)=>{o({id:e,name:t},{onSuccess:()=>d()})},[d,o]),y=(0,R.useCallback)(e=>{m({id:e.id,name:e.name})},[m]),b=(0,R.useCallback)(e=>{s(e,{onSuccess:()=>{p(),n(t=>t.filter(t=>t!==e)),t(`/`,{replace:!0})}})},[p,s,t,n]),x=(0,R.useCallback)(e=>{g.openPicker({kind:`add-source`,projectId:e.id,projectName:e.name})},[g]),S=(0,R.useMemo)(()=>({requestRename:_,requestDelete:y,requestAddLocalPath:x}),[_,y,x]);return(0,z.jsxs)(oc.Provider,{value:S,children:[e,(0,z.jsx)(Qs,{target:l.target,pending:r.isPending,onOpenChange:l.onOpenChange,onRename:v}),(0,z.jsx)(Xs,{target:u.target,pending:i.isPending,onOpenChange:u.onOpenChange,onDelete:b}),(0,z.jsx)(Gs,{target:g.projectPathDialog.target,pending:a.isPending,platform:g.platform,onOpenChange:g.projectPathDialog.onOpenChange,onSubmit:g.submitProjectPath})]})}function lc({children:e,className:t,onSelect:n,surface:r}){return r===`context`?(0,z.jsx)(Ms,{className:t,onSelect:n,children:e}):(0,z.jsx)($t,{className:t,onSelect:n,children:e})}function uc({project:e,surface:t}){let{localHostId:n}=Ur(),{requestRename:r,requestDelete:i,requestAddLocalPath:a}=sc(),o=n!=null&&!je(e.sources,n);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(lc,{surface:t,onSelect:n=>{t===`dropdown`&&n.preventDefault(),r(e)},children:`Rename`}),o?(0,z.jsx)(lc,{surface:t,onSelect:n=>{t===`dropdown`&&n.preventDefault(),a(e)},children:`Add local path`}):null,(0,z.jsx)(lc,{surface:t,className:`text-destructive focus:text-destructive`,onSelect:n=>{t===`dropdown`&&n.preventDefault(),i(e)},children:`Remove`})]})}function dc({project:e,triggerClassName:t,align:n=`end`,onOpenChange:r}){return(0,z.jsxs)(un,{onOpenChange:r,children:[(0,z.jsx)(tn,{asChild:!0,children:(0,z.jsx)(it,{type:`button`,variant:`ghost`,size:`icon`,className:I(`rounded-md p-0 text-muted-foreground`,t),"aria-label":`${e.name} actions`,title:`${e.name} actions`,onClick:e=>{e.stopPropagation()},children:(0,z.jsx)(F,{name:`MoreHorizontal`,className:Ln})})}),(0,z.jsx)(Sn,{align:n,className:`w-44`,children:(0,z.jsx)(uc,{project:e,surface:`dropdown`})})]})}function fc({children:e,project:t,onOpenChange:n}){return(0,z.jsxs)(Ds,{onOpenChange:n,children:[(0,z.jsx)(Os,{asChild:!0,children:e}),(0,z.jsx)(js,{"aria-label":`${t.name} actions`,className:`w-44`,children:(0,z.jsx)(uc,{project:t,surface:`context`})})]})}function pc(e){switch(e){case`managed-worktree`:return`GitBranch`;case`unmanaged-worktree`:return`GitBranch`;case`other`:return null}}function mc(e){return pc(e)??`Laptop`}function hc(e){switch(e){case`managed-worktree`:return`Managed worktree environment`;case`unmanaged-worktree`:return`Git worktree environment`;case`other`:return null}}function gc(e){return(e.lastReadAt??0)>=e.latestAttentionAt}var _c=e=>{switch(e){case`success`:return bc;case`info`:return Sc;case`warning`:return xc;case`error`:return Cc;default:return null}},vc=Array(12).fill(0),yc=({visible:e,className:t})=>R.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},R.createElement(`div`,{className:`sonner-spinner`},vc.map((e,t)=>R.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),bc=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},R.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),xc=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},R.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),Sc=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},R.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),Cc=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},R.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),wc=R.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},R.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),R.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),Tc=()=>{let[e,t]=R.useState(document.hidden);return R.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},Ec=1,Dc=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:Ec++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=e instanceof Promise?e:e(),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],R.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(kc(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description;this.create({id:n,type:`error`,message:r,description:a})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description;this.create({id:n,type:`success`,message:r,description:a})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description;this.create({id:n,type:`error`,message:r,description:a})}}).finally(()=>{var e;i&&(this.dismiss(n),n=void 0),(e=t.finally)==null||e.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||Ec++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Oc=(e,t)=>{let n=t?.id||Ec++;return Dc.addToast({title:e,...t,id:n}),n},kc=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,Ac=Object.assign(Oc,{success:Dc.success,info:Dc.info,warning:Dc.warning,error:Dc.error,custom:Dc.custom,message:Dc.message,promise:Dc.promise,dismiss:Dc.dismiss,loading:Dc.loading},{getHistory:()=>Dc.toasts,getToasts:()=>Dc.getActiveToasts()});function jc(e,{insertAt:t}={}){if(!e||typeof document>`u`)return;let n=document.head||document.getElementsByTagName(`head`)[0],r=document.createElement(`style`);r.type=`text/css`,t===`top`&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}jc(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
11
|
-
`);function Mc(e){return e.label!==void 0}var Nc=3,Pc=`32px`,Fc=`16px`,Ic=4e3,Lc=356,Rc=14,zc=20,Bc=200;function Vc(...e){return e.filter(Boolean).join(` `)}function Hc(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Uc=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,loadingIcon:S,expandByDefault:C,classNames:w,icons:T,closeButtonAriaLabel:E=`Close toast`,pauseWhenPageIsHidden:D}=e,[O,ee]=R.useState(null),[k,A]=R.useState(null),[j,M]=R.useState(!1),[N,te]=R.useState(!1),[ne,re]=R.useState(!1),[ie,ae]=R.useState(!1),[P,oe]=R.useState(!1),[se,ce]=R.useState(0),[le,ue]=R.useState(0),de=R.useRef(n.duration||y||Ic),fe=R.useRef(null),pe=R.useRef(null),me=c===0,he=c+1<=o,ge=n.type,_e=n.dismissible!==!1,ve=n.className||``,ye=n.descriptionClassName||``,be=R.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),xe=R.useMemo(()=>n.closeButton??p,[n.closeButton,p]),Se=R.useMemo(()=>n.duration||y||Ic,[n.duration,y]),Ce=R.useRef(0),F=R.useRef(0),we=R.useRef(0),Te=R.useRef(null),[Ee,De]=b.split(`-`),Oe=R.useMemo(()=>s.reduce((e,t,n)=>n>=be?e:e+t.height,0),[s,be]),ke=Tc(),Ae=n.invert||t,je=ge===`loading`;F.current=R.useMemo(()=>be*x+Oe,[be,Oe]),R.useEffect(()=>{de.current=Se},[Se]),R.useEffect(()=>{M(!0)},[]),R.useEffect(()=>{let e=pe.current;if(e){let t=e.getBoundingClientRect().height;return ue(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),R.useLayoutEffect(()=>{if(!j)return;let e=pe.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,ue(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[j,n.title,n.description,a,n.id]);let Me=R.useCallback(()=>{te(!0),ce(F.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},Bc)},[n,d,a,F]);R.useEffect(()=>{if(n.promise&&ge===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||D&&ke?(()=>{if(we.current<Ce.current){let e=new Date().getTime()-Ce.current;de.current-=e}we.current=new Date().getTime()})():de.current!==1/0&&(Ce.current=new Date().getTime(),e=setTimeout(()=>{var e;(e=n.onAutoClose)==null||e.call(n,n),Me()},de.current)),()=>clearTimeout(e)},[u,i,n,ge,D,ke,Me]),R.useEffect(()=>{n.delete&&Me()},[Me,n.delete]);function Ne(){return T!=null&&T.loading?R.createElement(`div`,{className:Vc(w?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":ge===`loading`},T.loading):S?R.createElement(`div`,{className:Vc(w?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":ge===`loading`},S):R.createElement(yc,{className:Vc(w?.loader,n?.classNames?.loader),visible:ge===`loading`})}return R.createElement(`li`,{tabIndex:0,ref:pe,className:Vc(_,ve,w?.toast,n?.classNames?.toast,w?.default,w?.[ge],n?.classNames?.[ge]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":j,"data-promise":!!n.promise,"data-swiped":P,"data-removed":N,"data-visible":he,"data-y-position":Ee,"data-x-position":De,"data-index":c,"data-front":me,"data-swiping":ne,"data-dismissible":_e,"data-type":ge,"data-invert":Ae,"data-swipe-out":ie,"data-swipe-direction":k,"data-expanded":!!(u||C&&j),style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${N?se:F.current}px`,"--initial-height":C?`auto`:`${le}px`,...m,...n.style},onDragEnd:()=>{re(!1),ee(null),Te.current=null},onPointerDown:e=>{je||!_e||(fe.current=new Date,ce(F.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(re(!0),Te.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e;if(ie||!_e)return;Te.current=null;let t=Number(pe.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),r=Number(pe.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),i=new Date().getTime()-fe.current?.getTime(),a=O===`x`?t:r,o=Math.abs(a)/i;if(Math.abs(a)>=zc||o>.11){ce(F.current),(e=n.onDismiss)==null||e.call(n,n),A(O===`x`?t>0?`right`:`left`:r>0?`down`:`up`),Me(),ae(!0),oe(!1);return}re(!1),ee(null)},onPointerMove:t=>{var n,r;if(!Te.current||!_e||window.getSelection()?.toString().length>0)return;let i=t.clientY-Te.current.y,a=t.clientX-Te.current.x,o=e.swipeDirections??Hc(b);!O&&(Math.abs(a)>1||Math.abs(i)>1)&&ee(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0};O===`y`?(o.includes(`top`)||o.includes(`bottom`))&&(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)&&(s.y=i):O===`x`&&(o.includes(`left`)||o.includes(`right`))&&(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)&&(s.x=a),(Math.abs(s.x)>0||Math.abs(s.y)>0)&&oe(!0),(n=pe.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=pe.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},xe&&!n.jsx?R.createElement(`button`,{"aria-label":E,"data-disabled":je,"data-close-button":!0,onClick:je||!_e?()=>{}:()=>{var e;Me(),(e=n.onDismiss)==null||e.call(n,n)},className:Vc(w?.closeButton,n?.classNames?.closeButton)},T?.close??wc):null,n.jsx||(0,R.isValidElement)(n.title)?n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title:R.createElement(R.Fragment,null,ge||n.icon||n.promise?R.createElement(`div`,{"data-icon":``,className:Vc(w?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Ne():null,n.type===`loading`?null:n.icon||T?.[ge]||_c(ge)):null,R.createElement(`div`,{"data-content":``,className:Vc(w?.content,n?.classNames?.content)},R.createElement(`div`,{"data-title":``,className:Vc(w?.title,n?.classNames?.title)},typeof n.title==`function`?n.title():n.title),n.description?R.createElement(`div`,{"data-description":``,className:Vc(v,ye,w?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),(0,R.isValidElement)(n.cancel)?n.cancel:n.cancel&&Mc(n.cancel)?R.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{var t,r;Mc(n.cancel)&&_e&&((r=(t=n.cancel).onClick)==null||r.call(t,e),Me())},className:Vc(w?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,(0,R.isValidElement)(n.action)?n.action:n.action&&Mc(n.action)?R.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{var t,r;Mc(n.action)&&((r=(t=n.action).onClick)==null||r.call(t,e),!e.defaultPrevented&&Me())},className:Vc(w?.actionButton,n?.classNames?.actionButton)},n.action.label):null))};function Wc(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function Gc(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Fc:Pc;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var Kc=(0,R.forwardRef)(function(e,t){let{invert:n,position:r=`bottom-right`,hotkey:i=[`altKey`,`KeyT`],expand:a,closeButton:o,className:s,offset:c,mobileOffset:l,theme:u=`light`,richColors:d,duration:f,style:p,visibleToasts:m=Nc,toastOptions:h,dir:g=Wc(),gap:_=Rc,loadingIcon:v,icons:y,containerAriaLabel:b=`Notifications`,pauseWhenPageIsHidden:x}=e,[S,C]=R.useState([]),w=R.useMemo(()=>Array.from(new Set([r].concat(S.filter(e=>e.position).map(e=>e.position)))),[S,r]),[T,E]=R.useState([]),[D,O]=R.useState(!1),[ee,k]=R.useState(!1),[A,j]=R.useState(u===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:u),M=R.useRef(null),N=i.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),te=R.useRef(null),ne=R.useRef(!1),re=R.useCallback(e=>{C(t=>{var n;return(n=t.find(t=>t.id===e.id))!=null&&n.delete||Dc.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return R.useEffect(()=>Dc.subscribe(e=>{if(e.dismiss){C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}setTimeout(()=>{Fi.flushSync(()=>{C(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[]),R.useEffect(()=>{if(u!==`system`){j(u);return}if(u===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?j(`dark`):j(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{j(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{j(e?`dark`:`light`)}catch(e){console.error(e)}})}},[u]),R.useEffect(()=>{S.length<=1&&O(!1)},[S]),R.useEffect(()=>{let e=e=>{var t,n;i.every(t=>e[t]||e.code===t)&&(O(!0),(t=M.current)==null||t.focus()),e.code===`Escape`&&(document.activeElement===M.current||(n=M.current)!=null&&n.contains(document.activeElement))&&O(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[i]),R.useEffect(()=>{if(M.current)return()=>{te.current&&(te.current.focus({preventScroll:!0}),te.current=null,ne.current=!1)}},[M.current]),R.createElement(`section`,{ref:t,"aria-label":`${b} ${N}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,r)=>{let[i,u]=t.split(`-`);return S.length?R.createElement(`ol`,{key:t,dir:g===`auto`?Wc():g,tabIndex:-1,ref:M,className:s,"data-sonner-toaster":!0,"data-theme":A,"data-y-position":i,"data-lifted":D&&S.length>1&&!a,"data-x-position":u,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${Lc}px`,"--gap":`${_}px`,...p,...Gc(c,l)},onBlur:e=>{ne.current&&!e.currentTarget.contains(e.relatedTarget)&&(ne.current=!1,te.current&&=(te.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||ne.current||(ne.current=!0,te.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{ee||O(!1)},onDragEnd:()=>O(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||k(!0)},onPointerUp:()=>k(!1)},S.filter(e=>!e.position&&r===0||e.position===t).map((r,i)=>R.createElement(Uc,{key:r.id,icons:y,index:i,toast:r,defaultRichColors:d,duration:h?.duration??f,className:h?.className,descriptionClassName:h?.descriptionClassName,invert:n,visibleToasts:m,closeButton:h?.closeButton??o,interacting:ee,position:t,style:h?.style,unstyled:h?.unstyled,classNames:h?.classNames,cancelButtonStyle:h?.cancelButtonStyle,actionButtonStyle:h?.actionButtonStyle,removeToast:re,toasts:S.filter(e=>e.position==r.position),heights:T.filter(e=>e.position==r.position),setHeights:E,expandByDefault:a,gap:_,loadingIcon:v,expanded:D,pauseWhenPageIsHidden:x,swipeDirections:e.swipeDirections}))):null}))}),qc=/^HTTP \d{3}:\s*/u,Jc=`Could not reach the server. Check that it is running and try again.`;function Yc(e){return e.replace(/\s+/g,` `).trim()}function Xc(e){return e.replace(qc,``)}function Zc(e){return e instanceof DOMException&&e.name===`AbortError`?!0:_(e)?.name===`AbortError`}function Qc(e){if(e instanceof a||Zc(e))return!1;let t=_(e);if(!t||typeof t.message!=`string`)return!1;let n=Yc(t.message).toLowerCase();return n.includes(`failed to fetch`)||n.includes(`load failed`)||n.includes(`networkerror`)}function $c(e){let t=fe(e.body);if(t)return Yc(t);let n=Xc(Yc(e.message));return n.length>0?n:null}function el(e){if(!e)return{};let t=typeof e.errorMessage==`string`?Yc(e.errorMessage):void 0,n=typeof e.showErrorToast==`boolean`?e.showErrorToast:void 0;return{...t?{errorMessage:t}:{},...n===void 0?{}:{showErrorToast:n}}}function tl({error:e,fallbackMessage:t}){if(e instanceof a)return $c(e)??t;if(Qc(e))return Jc;let n=fe(e);if(!n)return t;let r=Xc(Yc(n));return r.length>0?r:t}function nl(e){return!Zc(e)}function rl({error:e,fallbackMessage:t}){nl(e)&&Ac.error(tl({error:e,fallbackMessage:t}))}function il({target:e,pending:t=!1,onOpenChange:n,onRename:r}){return(0,z.jsx)(wr,{open:e!==null,onOpenChange:n,children:(0,z.jsx)(Sr,{children:e?(0,z.jsx)(al,{target:e,pending:t,onRename:r},e.id):null})})}function al({target:e,pending:t,onRename:n}){let r=(0,R.useId)(),[i,a]=(0,R.useState)(e.currentTitle),[o,s]=(0,R.useState)(null),c=r=>{if(r.preventDefault(),t)return;let a=i.trim();if(!a){s(`${l.charAt(0).toUpperCase()+l.slice(1)} name cannot be empty.`);return}n(e.id,a)},l=Hn(e.threadType??`standard`);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(br,{children:[(0,z.jsxs)(Cr,{children:[`Rename `,l]}),(0,z.jsxs)(gr,{children:[`Choose a new name for this `,l,`.`]})]}),(0,z.jsxs)(`form`,{className:`space-y-4`,onSubmit:c,children:[(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(hr,{id:r,"aria-label":`${l.charAt(0).toUpperCase()+l.slice(1)} name`,value:i,autoFocus:!0,autoCapitalize:`sentences`,autoCorrect:`off`,spellCheck:!1,disabled:t,onChange:e=>{a(e.target.value),o&&s(null)}}),o?(0,z.jsx)(`p`,{className:`text-sm text-destructive`,children:o}):null]}),(0,z.jsx)(dr,{children:(0,z.jsxs)(it,{type:`submit`,disabled:t,children:[`Rename `,l]})})]})]})}function ol({target:e,pending:t,onOpenChange:n,onDelete:r}){return(0,z.jsx)(wr,{open:e!==null,onOpenChange:n,children:(0,z.jsx)(Sr,{children:e?(0,z.jsx)(sl,{target:e,pending:t,onOpenChange:n,onDelete:r}):null})})}function sl({target:e,pending:t,onOpenChange:n,onDelete:r}){let i=Hn(e.thread.type),a=[e.assignedChildCount?`Assigned threads will be unassigned.`:null,`This action cannot be undone.`].filter(e=>e!==null);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(br,{children:[(0,z.jsxs)(Cr,{children:[`Delete `,i,`?`]}),(0,z.jsx)(gr,{children:a.join(` `)})]}),(0,z.jsxs)(dr,{children:[(0,z.jsx)(it,{type:`button`,variant:`outline`,disabled:t,onClick:()=>n(!1),children:`Cancel`}),(0,z.jsxs)(it,{type:`button`,variant:`destructive`,disabled:t,onClick:()=>r(e),children:[`Delete `,i]})]})]})}function cl(e){return gc(e)?`mark_unread`:`mark_read`}var ll=(0,R.createContext)(null);function ul(){let e=(0,R.useContext)(ll);if(!e)throw Error(`useThreadActions must be used within a <ThreadActionsProvider>`);return e}function dl({children:e}){let t=lr(),{threadId:n}=So(),r=Qn(),i=Bn(),a=Zn(),o=Un(),s=Gn(),c=Xn(),l=(0,R.useRef)(null),{mutate:u}=r,{mutate:d}=i,{mutate:f}=a,{mutate:p}=o,{mutate:m}=s,{mutate:h}=c,g=Pr(),_=Pr(),{onClose:v,onOpen:y}=g,{onClose:b,onOpen:x}=_;(0,R.useEffect)(()=>()=>{l.current?.abort(),l.current=null},[]);let S=(0,R.useCallback)(e=>{n===e.id&&t(`/projects/${e.projectId}`)},[t,n]),C=(0,R.useCallback)(e=>{y({id:e.id,currentTitle:Wn(e),threadType:e.type})},[y]),w=(0,R.useCallback)((e,t)=>{h({id:e,title:t},{onSuccess:()=>{v()}})},[v,h]),T=(0,R.useCallback)(async(e,t)=>{try{let n=e.type===`manager`?await at(e.id,t):null;return t.aborted?null:{assignedChildCount:n?.nonDeletedAssignedChildCount??0}}catch(e){return t.aborted||nl(e)&&Ac.error(tl({error:e,fallbackMessage:`Failed to check thread state.`})),null}},[]),E=(0,R.useCallback)(()=>{l.current?.abort();let e=new AbortController;return l.current=e,e},[]);function D(e,t){return{...e,...t.assignedChildCount>0?{assignedChildCount:t.assignedChildCount}:{}}}let O=(0,R.useCallback)(({closeDialog:e,managerChildThreadsConfirmed:t,thread:n})=>{m({id:n.id,managerChildThreadsConfirmed:t},{onSuccess:()=>{e(),S(n)}})},[m,S]),ee=(0,R.useCallback)(async e=>{let t=E(),n=await T(e,t.signal);n===null||t.signal.aborted||(l.current===t&&(l.current=null),x(D({thread:e},n)))},[E,T,x]),k=(0,R.useCallback)(e=>{O({closeDialog:b,managerChildThreadsConfirmed:e.assignedChildCount!==void 0,thread:e.thread})},[b,O]),A=(0,R.useCallback)((e,t)=>{Ac.error(tl({error:t,fallbackMessage:`Failed to archive ${Hn(e.type)}.`}))},[]),j=(0,R.useCallback)(e=>{u({id:e.id},{onSuccess:()=>{S(e),Ac.success(`Archived ${Hn(e.type)}`,{action:{label:`Undo`,onClick:()=>{d({id:e.id})}}})},onError:t=>{A(e,t)}})},[u,S,A,d]),M=(0,R.useCallback)(e=>{if(e.archivedAt!=null){d({id:e.id});return}j(e)},[j,d]),N=(0,R.useCallback)(e=>{if(cl(e)===`mark_unread`){p(e.id,{onError:e=>{Ac.error(tl({error:e,fallbackMessage:`Failed to mark thread unread.`}))}});return}f(e.id,{onError:e=>{Ac.error(tl({error:e,fallbackMessage:`Failed to mark thread read.`}))}})},[f,p]),te=(0,R.useMemo)(()=>({requestRename:C,requestDelete:ee,toggleArchive:M,toggleRead:N}),[C,ee,M,N]);return(0,z.jsxs)(ll.Provider,{value:te,children:[e,(0,z.jsx)(il,{target:g.target,pending:c.isPending,onOpenChange:g.onOpenChange,onRename:w}),(0,z.jsx)(ol,{target:_.target,pending:s.isPending,onOpenChange:_.onOpenChange,onDelete:k})]})}function fl({children:e,className:t,onSelect:n,surface:r}){return r===`context`?(0,z.jsx)(Ms,{className:t,onSelect:n,children:e}):(0,z.jsx)($t,{className:t,onSelect:n,children:e})}function pl({checked:e,children:t,onCheckedChange:n,onSelect:r,surface:i}){return i===`context`?(0,z.jsx)(Ns,{checked:e,onCheckedChange:n,onSelect:r,children:t}):(0,z.jsx)(Xt,{checked:e,onCheckedChange:n,onSelect:r,children:t})}function ml({surface:e}){return e===`context`?(0,z.jsx)(Is,{}):(0,z.jsx)(Mn,{})}function hl({thread:e,canDelete:t=!0,viewerToggleLabel:n,viewerToggleChecked:r,onViewerToggleCheckedChange:i,surface:a}){let{requestRename:o,requestDelete:s,toggleArchive:c,toggleRead:l}=ul(),u=gc(e),d=e.archivedAt!=null;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(fl,{surface:a,onSelect:t=>{a===`dropdown`&&t.preventDefault(),l(e)},children:u?`Mark as unread`:`Mark as read`}),(0,z.jsx)(fl,{surface:a,onSelect:()=>{window.setTimeout(()=>{o(e)},0)},children:`Rename`}),(0,z.jsx)(fl,{surface:a,onSelect:t=>{a===`dropdown`&&t.preventDefault(),c(e)},children:d?`Unarchive`:`Archive`}),t?(0,z.jsx)(fl,{surface:a,className:`text-destructive focus:text-destructive`,onSelect:()=>{window.setTimeout(()=>{s(e)},0)},children:`Delete`}):null,n&&i?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(ml,{surface:a}),(0,z.jsx)(pl,{surface:a,checked:r,onCheckedChange:e=>{i(e===!0)},onSelect:e=>{a===`dropdown`&&e.preventDefault()},children:n})]}):null]})}function gl({thread:e,canDelete:t=!0,viewerToggleLabel:n,viewerToggleChecked:r,onViewerToggleCheckedChange:i,onOpenChange:a,triggerClassName:o,align:s=`end`}){let c=Hn(e.type),l=c.charAt(0).toUpperCase()+c.slice(1);return(0,z.jsxs)(un,{onOpenChange:a,children:[(0,z.jsx)(tn,{asChild:!0,children:(0,z.jsx)(it,{type:`button`,variant:`ghost`,size:`icon`,className:I(`rounded-md p-0`,o),"aria-label":`${l} actions`,title:`${l} actions`,onClick:e=>{e.stopPropagation()},children:(0,z.jsx)(F,{name:`MoreHorizontal`,className:Ln})})}),(0,z.jsx)(Sn,{align:s,className:`w-44`,children:(0,z.jsx)(hl,{thread:e,canDelete:t,viewerToggleLabel:n,viewerToggleChecked:r,onViewerToggleCheckedChange:i,surface:`dropdown`})})]})}function _l({children:e,thread:t,canDelete:n=!0,viewerToggleLabel:r,viewerToggleChecked:i,onViewerToggleCheckedChange:a,onOpenChange:o}){let s=Hn(t.type),c=s.charAt(0).toUpperCase()+s.slice(1);return(0,z.jsxs)(Ds,{onOpenChange:o,children:[(0,z.jsx)(Os,{asChild:!0,children:e}),(0,z.jsx)(js,{"aria-label":`${c} actions`,className:`w-44`,children:(0,z.jsx)(hl,{thread:t,canDelete:n,viewerToggleLabel:r,viewerToggleChecked:i,onViewerToggleCheckedChange:a,surface:`context`})})]})}function vl(e){switch(e){case`active`:case`created`:case`host-reconnecting`:case`provisioning`:return!0;case`error`:case`idle`:case`waiting-for-host`:return!1;default:return N(e)}}function yl(e,t){throw Error(t??`Unexpected value: ${String(e)}`)}function bl(e){let t=e.replaceAll(`\\`,`/`).split(`/`),n=t[t.length-1];return n&&n.length>0?n:e}function xl({mode:e,path:t}){switch(e){case`compact`:return bl(t);case`full`:return t}}function Sl(e){return(e??``).toLowerCase().replaceAll(/[^a-z0-9]/gu,``)}function Cl(e){let t=e.trimEnd();return t.startsWith(`diff --git `)||t.startsWith(`index `)||t.startsWith(`new file mode `)||t.startsWith(`deleted file mode `)||t.startsWith(`similarity index `)||t.startsWith(`rename from `)||t.startsWith(`rename to `)||t.startsWith(`--- `)||t.startsWith(`+++ `)||t.startsWith(`@@`)||t===`\`}function wl(e){let t=e.diff;if(!t)return!1;for(let e of t.split(`
|
|
12
|
-
`))if(!(e.startsWith(`+++ `)||e.startsWith(`--- `))&&(e.startsWith(`+`)||e.startsWith(`-`)))return!0;return!1}function Tl(e){if(e.movePath)return wl(e)?`edited`:`renamed`;let t=Sl(e.kind);return t.includes(`add`)||t.includes(`create`)?`created`:t.includes(`delete`)||t.includes(`remove`)?`deleted`:`edited`}function El(e){switch(e){case`created`:return`Created`;case`deleted`:return`Deleted`;case`renamed`:return`Renamed`;case`edited`:return`Edited`}}function Dl(e){switch(e){case`created`:return`Creating`;case`deleted`:return`Deleting`;case`renamed`:return`Renaming`;case`edited`:return`Editing`}}function Ol(e){switch(e){case`created`:return`create`;case`deleted`:return`delete`;case`renamed`:return`rename`;case`edited`:return`edit`}}function kl({change:e,mode:t}){let n=xl({path:e.path,mode:t});return e.movePath?Tl(e)===`edited`?xl({path:e.movePath,mode:t}):`${n} -> ${xl({path:e.movePath,mode:t})}`:n}function Al(e,t,n){return`${e} ${e===1?t:n??`${t}s`}`}function jl(e){if(e===void 0)return;if(!Number.isFinite(e)||e<0)return`0s`;if(e<1e3)return`${Math.round(e)}ms`;let t=Math.round(e/1e3);return t<60?`${t}s`:Ml(t)}function Ml(e){let t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=e%60,i=[];return t>0&&i.push(`${t}h`),n>0&&i.push(`${n}m`),r>0&&i.push(`${r}s`),i.join(` `)}var Nl=new Intl.NumberFormat(`en-US`);function Pl(e){return Nl.format(e)}function Fl(e){let{added:t,removed:n,hideZero:r=!1}=e,i=`+${Pl(t)}`,a=`-${Pl(n)}`;if(!r)return`${i} ${a}`;let o=[];return t>0&&o.push(i),n>0&&o.push(a),o.join(` `)}function Il(e){return e.activityIntents.find(e=>e.type!==`unknown`)??null}function Ll(e){return Il(e)!==null}function Rl(e){return e.path??e.name}function zl(e,t){return xl({path:Rl(e),mode:t})}function Bl({intent:e,pathMode:t,pending:n}){return Vl({intent:e,pathMode:t,pending:n})}function Vl({intent:e,pathMode:t,pending:n}){switch(e.type){case`read`:return{prefix:n?`Reading`:`Read`,content:zl(e,t)};case`list_files`:return{prefix:n?`Listing`:`Listed`,content:e.path?`files in ${e.path}`:`files`};case`search`:{let t=n?`Searching`:`Searched`;return e.query&&e.path?{prefix:t,content:`for ${e.query} in ${e.path}`}:e.query?{prefix:t,content:`for ${e.query}`}:e.path?{prefix:t,content:`in ${e.path}`}:{prefix:t,content:`files`}}case`unknown`:return{prefix:null,content:e.command};default:return yl(e)}}function Hl(e){switch(e.type){case`read`:return`read:${e.path??e.name}`;case`list_files`:return`list:${e.path??``}`;case`search`:return`search:${e.query??``}|${e.path??``}`;case`unknown`:return null;default:return yl(e)}}function Ul(e){return e.length===0?e:`${e.charAt(0).toLowerCase()}${e.slice(1)}`}function Wl(e){switch(e.type){case`read`:return e.path??e.name;case`list_files`:case`search`:case`unknown`:return null;default:return yl(e)}}function Gl(e,t,n,r){for(let i of e.activityIntents)switch(i.type){case`read`:{let e=Wl(i);e&&(n.add(e),r(`files`));break}case`list_files`:t.lists+=1,r(`lists`);break;case`search`:t.searches+=1,r(`searches`);break;case`unknown`:break;default:yl(i)}}function Kl(e){return e.change.movePath??e.change.path}function ql(e){let t=[],n=new Set,r=e=>{n.has(e)||(n.add(e),t.push(e))},i={commands:0,createdFiles:0,deletedFiles:0,delegations:0,editedFiles:0,fileChanges:0,files:0,lists:0,renamedFiles:0,searches:0,tools:0,webFetches:0,webSearches:0,explorationKindOrder:t},a=new Set,o=new Set,s=new Set,c=new Set,l=new Set;for(let t of e)switch(t.workKind){case`command`:Ll(t)?Gl(t,i,a,r):i.commands+=1;break;case`tool`:Ll(t)?Gl(t,i,a,r):i.tools+=1;break;case`file-change`:switch(Tl(t.change)){case`created`:o.add(Kl(t));break;case`deleted`:s.add(Kl(t));break;case`edited`:c.add(Kl(t));break;case`renamed`:l.add(Kl(t));break}break;case`web-fetch`:i.webFetches+=1;break;case`web-search`:i.webSearches+=Math.max(1,t.queries.length);break;case`delegation`:i.delegations+=1;break;case`question`:case`approval`:break;default:yl(t)}return i.files=a.size,i.createdFiles=o.size,i.deletedFiles=s.size,i.editedFiles=c.size,i.renamedFiles=l.size,i.fileChanges=i.createdFiles+i.deletedFiles+i.editedFiles+i.renamedFiles,i}function Jl(e){let t=e.explorationKindOrder.map(t=>{switch(t){case`files`:return e.files>0?Al(e.files,`file`):null;case`searches`:return e.searches>0?Al(e.searches,`search`,`searches`):null;case`lists`:return e.lists>0?Al(e.lists,`list`):null;default:return yl(t)}}).filter(e=>e!==null);return t.length===0?null:t.join(`, `)}function Yl(e){let t=null,n=0,r=0,i=0;for(let a of e){let e;switch(a.workKind){case`command`:if(a.approvalStatus===null)return null;e=a.approvalStatus,n+=1;break;case`file-change`:if(a.approvalStatus===null)return null;e=a.approvalStatus,r+=1;break;case`tool`:if(a.approvalStatus===null)return null;e=a.approvalStatus,i+=1;break;case`approval`:case`question`:case`delegation`:case`web-fetch`:case`web-search`:return null;default:yl(a)}if(t===null)t=e;else if(t!==e)return null}if(t===null)return null;let a=[n>0?Al(n,`command`):null,r>0?Al(r,`file change`):null,i>0?Al(i,`tool`):null].filter(e=>e!==null).join(`, `);return t===`denied`?`Denied ${a}`:`Waiting for approval on ${a}`}function Xl(e){switch(e.workKind){case`command`:return Ll(e)?`exploration`:`commands`;case`tool`:return Ll(e)?`exploration`:`tools`;case`file-change`:return`fileChanges`;case`web-fetch`:case`web-search`:return`webResearch`;case`delegation`:return`delegations`;case`approval`:case`question`:return null;default:return yl(e)}}function Zl(e){let t=[];for(let n of e){let e=Xl(n);e&&!t.includes(e)&&t.push(e)}return t}var Ql={created:`Creating`,deleted:`Deleting`,edited:`Editing`,renamed:`Renaming`},$l={created:`Created`,deleted:`Deleted`,edited:`Edited`,renamed:`Renamed`};function eu(e,t){let n=[[`created`,e.createdFiles],[`deleted`,e.deletedFiles],[`edited`,e.editedFiles],[`renamed`,e.renamedFiles]].filter(([,e])=>e>0).map(([e,t])=>({action:e,count:t}));if(n.length===0)return null;if(n.length===1){let{action:e,count:r}=n[0];return`${t?Ql[e]:$l[e]} ${Al(r,`file`)}`}let r=n.reduce((e,t)=>e+t.count,0);return`${t?`Editing`:`Edited`} ${Al(r,`file`)}`}function tu(e,t,n){switch(e){case`exploration`:return n?`Explored ${n}`:null;case`commands`:return t.commands>0?`Ran ${Al(t.commands,`command`)}`:null;case`fileChanges`:return eu(t,!1);case`webResearch`:return iu(t,!1);case`delegations`:return t.delegations>0?`Ran ${Al(t.delegations,`subagent`)}`:null;case`tools`:return t.tools>0?`Ran ${Al(t.tools,`tool`)}`:null;default:return yl(e)}}function nu(e,t,n){switch(e){case`exploration`:return n?`Exploring ${n}`:null;case`commands`:return t.commands>0?`Running ${Al(t.commands,`command`)}`:null;case`fileChanges`:return eu(t,!0);case`webResearch`:return iu(t,!0);case`delegations`:return t.delegations>0?`Running ${Al(t.delegations,`subagent`)}`:null;case`tools`:return t.tools>0?`Running ${Al(t.tools,`tool`)}`:null;default:return yl(e)}}function ru(e){return e.map((e,t)=>t===0?e:Ul(e)).join(`, `)}function iu(e,t){let n=[];return e.webSearches>0&&n.push(Al(e.webSearches,`search query`,`search queries`)),e.webFetches>0&&n.push(Al(e.webFetches,`web page`)),n.length===0?null:`${t?`Researching`:`Researched`} ${n.join(`, `)}`}function au(e,t={active:!1}){let n=Yl(e.children);if(n!==null)return ou(n);let r=ql(e.children),i=t.active,a=Jl(r),o=Zl(e.children).map(e=>i?nu(e,r,a):tu(e,r,a)).filter(e=>e!==null);return o.length===0?{verb:i?`Working`:`Worked`,rest:``}:ou(ru(o))}function ou(e){let t=e.indexOf(` `);return t===-1?{verb:e,rest:``}:{verb:e.slice(0,t),rest:e.slice(t+1)}}function su(e,t){return e===`error`||t===`error`?`error`:e===`pending`||t===`pending`?`pending`:e===`interrupted`||t===`interrupted`?`interrupted`:`completed`}function cu(e){let t=e[0];if(!t)throw Error(`Cannot summarize an empty timeline activity run`);let n=t.sourceSeqStart,r=t.sourceSeqEnd,i=t.startedAt,a=t.createdAt,o=t.turnId,s=t.status;for(let t of e)n=Math.min(n,t.sourceSeqStart),r=Math.max(r,t.sourceSeqEnd),i=Math.min(i,t.startedAt),a=Math.max(a,t.createdAt),s=su(s,t.status),o!==t.turnId&&(o=null);return{id:[t.threadId,o??`thread`,`work-summary`,t.id].join(`:`),threadId:t.threadId,turnId:o,sourceSeqStart:n,sourceSeqEnd:r,startedAt:i,createdAt:a,status:s}}function lu(e){return e.kind===`work`&&e.workKind!==`approval`&&e.workKind!==`question`}function uu(e){return!(e.kind!==`conversation`||e.role===`user`&&e.turnRequest.status===`pending`)}function du(e){switch(e.workKind){case`command`:case`tool`:return Ll(e)?`exploration`:e.workKind===`command`?`commands`:`tools`;case`file-change`:return`fileChanges`;case`delegation`:return`delegations`;case`web-search`:case`web-fetch`:return`webResearch`;case`approval`:case`question`:return`tools`;default:return yl(e)}}function fu(e){let t=null,n=[];for(let r of e){if(r.workKind!==`command`&&r.workKind!==`tool`||r.activityIntents.length===0){t=null,n.push(r);continue}let e=Ll(r),i=[];for(let e of r.activityIntents){if(e.type===`unknown`){i.push(e);continue}let n=Hl(e);n!==null&&n===t||(i.push(e),t=n)}if(i.length===r.activityIntents.length){n.push(r);continue}e&&!i.some(e=>e.type!==`unknown`)||n.push({...r,activityIntents:i})}return n}function pu(e){let t=fu(e);return{...cu(t),kind:`step-summary`,children:t}}function mu(e){let t=fu(e);return{...cu(t),kind:`bundle-summary`,children:t}}function hu(e){return e.length===0?[]:e.length===1?[{...e[0],inClosedStep:!0}]:[pu(e)]}function gu(e){if(e.length===0)return[];let t=[];for(let n of e){let e=du(n),r=t[t.length-1];r&&r.concept===e?r.rows.push(n):t.push({concept:e,rows:[n]})}let n=[];for(let e of t)e.rows.length===1?n.push(e.rows[0]):n.push(mu(e.rows));return n}function _u(){return new WeakMap}function vu(e,t){if(e.workKind!==`delegation`)return e;let n=e.status!==`pending`;return{...e,childRows:bu(e.childRows,{cache:t,closedScope:n})}}function yu(e,t){switch(e.kind){case`conversation`:case`system`:return e;case`work`:return vu(e,t);case`turn`:return{...e,children:e.children?bu(e.children,{cache:t,closedScope:!0}):null};default:return yl(e)}}function bu(e,t={}){let n=t.cache;if(n){let t=n.get(e);if(t)return t}let r=n??_u(),i=e.map(e=>yu(e,r)),a=[],o=[];for(let e of i){if(lu(e)){o.push(e);continue}if(uu(e)){a.push(...hu(o)),o=[],a.push(e);continue}a.push(...gu(o)),o=[],a.push(e)}return t.closedScope?a.push(...hu(o)):a.push(...gu(o)),n&&n.set(e,a),a}var xu=new Set([`sh`,`bash`,`zsh`]);function Su(e){if(e.length<2)return e;let t=e[0];if(t!==`'`&&t!==`"`||e[e.length-1]!==t)return e;let n=e.slice(1,-1);if(t===`'`)return n;let r=``;for(let e=0;e<n.length;e+=1){let t=n[e];if(t===`\\`&&e+1<n.length){let t=n[e+1];if(t===`$`||t==="`"||t===`"`||t===`\\`||t===`
|
|
13
|
-
`){r+=t,e+=1;continue}}r+=t}return r}function Cu(e){let t=e.split(`/`).pop()??e;return xu.has(t)}function wu(e){let t=e.trim();if(t.length===0)return;let n=/^(\S+)\s+(-lc|-c)\s+([\s\S]+)$/.exec(t);if(!n)return t;let r=n[1],i=n[3];return!r||!i||!Cu(r)?t:Su(i.trim())}function Tu(e,t){if(!t)return e;let n=Object.entries(t).filter(([,e])=>e!==void 0);return n.length===0?e:`${e} { ${n.map(([e,t])=>{let n=typeof t==`string`?t.trim():JSON.stringify(t);return`${e}: ${n.length>40?`${n.slice(0,37)}...`:n}`}).join(`, `)} }`}function Eu(e){return e.replace(/[\r\n]+/gu,` `)}function B(e,t={}){return{text:Eu(e),em:t.em??!1,shimmer:t.shimmer??!1,truncate:t.truncate??!1,...t.plainText===void 0?{}:{plainText:Eu(t.plainText)},...t.link===void 0?{}:{link:t.link}}}function Du(e){return e.filter(e=>e!==null)}function Ou(e){return e!==null&&e>1e3?e:null}function ku(e,t,n={}){return t!==null&&Ou(t-e)===null?null:{kind:`duration`,startedAt:e,completedAt:t,em:n.em??!1}}function Au(e,t){return t===null?null:{kind:`duration`,startedAt:e,completedAt:t,em:!0}}function ju(e,t){return{kind:`status`,status:e,durationMs:Ou(t)}}function Mu(e){let t=0,n=0;for(let r of e.children)r.status===`error`&&(t+=1),r.status===`interrupted`&&(n+=1);return t===0&&n===0?null:{kind:`summary-status`,errorCount:t,interruptedCount:n}}function Nu(e){let{added:t,removed:n}=e.diffStats;return t===0&&n===0?null:{kind:`diff-stats`,added:t,removed:n}}function Pu(e){switch(e.kind){case`duration`:return e.completedAt===null?``:`(${jl(e.completedAt-e.startedAt)})`;case`status`:return e.durationMs===null?`(${e.status})`:`(${jl(e.durationMs)}, ${e.status})`;case`summary-status`:{let t=[];return e.errorCount>0&&t.push(`${e.errorCount} error${e.errorCount>1?`s`:``}`),e.interruptedCount>0&&t.push(`${e.interruptedCount} interrupted`),t.length===0?``:`(${t.join(`, `)})`}case`diff-stats`:return Fl({added:e.added,removed:e.removed,hideZero:!0});default:return yl(e)}}function Fu(e,t){let n=e.map(e=>e.plainText??e.text).filter(e=>e.length>0).join(` `),r=t.map(Pu).filter(e=>e.length>0).join(` `);return r.length===0?n:n.length===0?r:`${n} ${r}`}function V({segments:e,decorations:t=[],tone:n=`default`,action:r=null}){return{segments:e,decorations:t,tone:n,action:r,plain:Fu(e,t)}}function Iu({approvalStatus:e,status:t}){return e===`waiting_for_approval`?`waiting`:e===`denied`?`denied`:t}function Lu(e){let t=Ru(e);if(t!==null)return t;let n=Iu({approvalStatus:e.approvalStatus,status:e.status}),r=e.workKind===`command`,i=r?e.command:Tu(e.toolName,e.toolArgs);switch(n){case`waiting`:return V({segments:[B(`Waiting for approval`,{shimmer:!0}),B(r?`to run`:`to use`),B(i,{em:!0,truncate:!0})]});case`denied`:return V({segments:[B(`Permission denied:`),B(i,{em:!0,truncate:!0})],decorations:Du([ku(e.startedAt,e.completedAt)])});case`pending`:return V({segments:[B(r?`Running`:`Running tool:`,{shimmer:!0}),B(i,{em:!0,truncate:!0})],decorations:Du([ku(e.startedAt,e.completedAt)])});case`completed`:return V({segments:[B(r?`Ran`:`Ran tool:`),B(i,{em:!0,truncate:!0})],decorations:Du([ku(e.startedAt,e.completedAt)])});case`error`:return V({segments:[B(r?`Ran`:`Ran tool:`),B(i,{em:!0,truncate:!0})],decorations:[ju(`error`,e.completedAt===null?null:e.completedAt-e.startedAt)]});case`interrupted`:return V({segments:[B(r?`Ran`:`Ran tool:`),B(i,{em:!0,truncate:!0})],decorations:[ju(`interrupted`,e.completedAt===null?null:e.completedAt-e.startedAt)]});default:return yl(n)}}function Ru(e){if(!Ll(e))return null;let t=e.activityIntents.filter(e=>e.type!==`unknown`);if(t.length!==1)return null;let n=t[0];if(!n)return null;let r=Iu({approvalStatus:e.approvalStatus,status:e.status}),i=r===`pending`,a=Bl({intent:n,pathMode:`compact`,pending:i}),o=Bl({intent:n,pathMode:`full`,pending:i});if(r===`denied`){let e=a.prefix?`${a.prefix} ${a.content}`:a.content,t=o.prefix?`${o.prefix} ${o.content}`:o.content;return V({segments:[B(`Permission denied:`),B(e,{em:!0,truncate:!0,plainText:t})]})}if(r===`waiting`){let e=a.prefix?`${a.prefix} ${a.content}`:a.content,t=o.prefix?`${o.prefix} ${o.content}`:o.content;return V({segments:[B(`Waiting for approval`,{shimmer:!0}),B(`to use`),B(e,{em:!0,truncate:!0,plainText:t})]})}let s=[];return a.prefix&&s.push(B(a.prefix,{shimmer:i})),s.push(B(a.content,{em:!1,truncate:!0,plainText:o.content})),V({segments:s,decorations:r===`error`?[ju(`error`,null)]:r===`interrupted`?[ju(`interrupted`,null)]:[]})}function zu(e){let t=Iu({approvalStatus:e.approvalStatus,status:e.status}),n=Tl(e.change),r=kl({change:e.change,mode:`compact`}),i=kl({change:e.change,mode:`full`}),a={kind:`open-file-diff`,path:e.change.movePath??e.change.path},o=B(r,{em:!0,truncate:!0,plainText:i});switch(t){case`waiting`:return V({segments:[B(`Waiting for approval`,{shimmer:!0}),B(`to edit`),o],decorations:Du([Nu(e.change)]),action:a});case`denied`:return V({segments:[B(`Permission denied:`),o],decorations:Du([Nu(e.change)]),action:a});case`pending`:return V({segments:[B(Dl(n),{shimmer:!0}),o],decorations:Du([Nu(e.change)]),action:a});case`completed`:return V({segments:[B(El(n)),o],decorations:Du([Nu(e.change)]),action:a});case`error`:return V({segments:[B(`Failed to ${Ol(n)}`),o],decorations:[ju(`error`,null)],action:a});case`interrupted`:return V({segments:[B(`Interrupted while ${Dl(n).toLowerCase()}`),o],action:a});default:return yl(t)}}function Bu(e){let t=B(e.queries.join(`, `)||`web search`,{em:!1,truncate:!0});switch(e.status){case`pending`:return V({segments:[B(`Running web search:`,{shimmer:!0}),t]});case`completed`:return V({segments:[B(`Ran web search:`),t],decorations:Du([ku(e.startedAt,e.completedAt)])});case`error`:return V({segments:[B(`Ran web search:`),t],decorations:[ju(`error`,e.completedAt===null?null:e.completedAt-e.startedAt)]});case`interrupted`:return V({segments:[B(`Interrupted web search:`),t],decorations:[ju(`interrupted`,e.completedAt===null?null:e.completedAt-e.startedAt)]});default:return yl(e.status)}}function Vu(e){let t=B(e.url,{em:!1,truncate:!0});switch(e.status){case`pending`:return V({segments:[B(`Fetching:`,{shimmer:!0}),t]});case`completed`:return V({segments:[B(`Fetched:`),t],decorations:Du([ku(e.startedAt,e.completedAt)])});case`error`:return V({segments:[B(`Fetched:`),t],decorations:[ju(`error`,e.completedAt===null?null:e.completedAt-e.startedAt)]});case`interrupted`:return V({segments:[B(`Interrupted fetch:`),t],decorations:[ju(`interrupted`,e.completedAt===null?null:e.completedAt-e.startedAt)]});default:return yl(e.status)}}function Hu(e){switch(e){case`pending`:return{text:`Running subagent:`,shimmer:!0};case`completed`:return{text:`Ran subagent:`,shimmer:!1};case`error`:return{text:`Failed subagent:`,shimmer:!1};case`interrupted`:return{text:`Interrupted subagent:`,shimmer:!1};default:return yl(e)}}function Uu(e){let t=e.description??(e.output.trim()||e.toolName),n=Hu(e.status),r=[B(n.text,{shimmer:n.shimmer}),B(t,{em:!0,truncate:!0})];return e.subagentType&&r.push(B(`(${e.subagentType})`,{em:!1,truncate:!0})),V({segments:r,decorations:Du([ku(e.startedAt,e.completedAt)])})}function Wu(e){switch(e.lifecycle){case`waiting`:return V({segments:[B(`Waiting for approval to edit`,{shimmer:!0}),B(`files`,{em:!0,truncate:!0})]});case`denied`:return V({segments:[B(`Permission denied:`),B(`file changes`,{em:!0,truncate:!0})]});default:return yl(e.lifecycle)}}function Gu(e){let t=e.target.toolName,n=e.statusReason!==null&&e.statusReason.trim().length>0?e.statusReason.trim():null,r=n===null?null:B(`(${n})`,{truncate:!0});switch(e.lifecycle){case`pending`:return V({segments:t===null?[B(`Waiting for permissions`,{shimmer:!0})]:[B(`Waiting for permission`,{shimmer:!0}),B(`to use`),B(t,{em:!0,truncate:!0})]});case`resolving`:return V({segments:t===null?[B(`Delivering permissions`,{shimmer:!0})]:[B(`Delivering permission`,{shimmer:!0}),B(`to use`),B(t,{em:!0,truncate:!0})]});case`granted`:{let n=e.grantScope===`turn`?`for this turn`:e.grantScope===`session`?`for this session`:null,r=n===null?`Permission granted:`:`Permission granted ${n}:`;return V({segments:t===null?[B(n===null?`Permission granted`:`Permission granted ${n}`)]:[B(r),B(t,{em:!0,truncate:!0})]})}case`denied`:return V({segments:t===null?[B(`Permission denied`)]:[B(`Permission denied:`),B(t,{em:!0,truncate:!0})]});case`interrupted`:return V({segments:Du([B(t===null?`Permission grant interrupted`:`Permission grant interrupted:`),t===null?null:B(t,{em:!0,truncate:!0}),r])});case`expired`:return V({segments:Du([B(t===null?`Permission grant expired`:`Permission grant expired:`),t===null?null:B(t,{em:!0,truncate:!0}),r])});default:return yl(e.lifecycle)}}function Ku(e){switch(e.approvalKind){case`file-edit`:return Wu(e);case`permission-grant`:return Gu(e);default:return yl(e)}}function qu(e){return e.questions[0]?.prompt??null}function Ju(e){let t=qu(e),n=t?B(t,{em:!0,truncate:!0}):null;switch(e.lifecycle){case`pending`:return V({segments:Du([B(`Waiting for answer`,{shimmer:!0}),n])});case`resolving`:return V({segments:Du([B(`Delivering answer`,{shimmer:!0}),n])});case`answered`:return V({segments:Du([B(`Answered`),n])});case`interrupted`:return V({segments:Du([B(`Asked`),n]),decorations:[ju(`interrupted`,null)]});case`expired`:return V({segments:Du([B(`Asked`),n]),decorations:[ju(`expired`,null)]});default:return yl(e.lifecycle)}}function Yu(e,t){let n=(()=>{switch(e.workKind){case`command`:case`tool`:return Lu(e);case`file-change`:return zu(e);case`web-search`:return Bu(e);case`web-fetch`:return Vu(e);case`delegation`:return Uu(e);case`approval`:return Ku(e);case`question`:return Ju(e);default:return yl(e)}})();return t.workStyle===`default`||n.tone===`destructive`?n:{...n,tone:`summary`}}function Xu(e,t){let n=e.kind===`bundle-summary`&&t.isActiveLatestBundle===!0,{verb:r,rest:i}=au(e,{active:n}),a=Du([Mu(e)]);if(t.summaryStyle===`background`)return V({segments:[B(i.length===0?r:`${r} ${i}`,{em:!1,truncate:!0})],decorations:a,tone:`summary`});let o=B(r,{shimmer:n});return i.length===0?V({segments:[{...o,truncate:!0}],decorations:a}):V({segments:[o,B(i,{em:!0,truncate:!0})],decorations:a})}function Zu(e){let t=e.status===`pending`,n=t?ku(e.startedAt,e.completedAt,{em:!0}):Au(e.startedAt,e.completedAt);return!t&&e.completedAt!==null&&n!==null?V({segments:[B(`Worked for`,{shimmer:!1})],decorations:[n]}):V({segments:[B(t?`Working`:`Worked`,{shimmer:t})],decorations:t&&n!==null?[n]:[]})}function Qu(e,t){return e===null?null:B(t??e,{em:!0,truncate:!0,link:{kind:`thread`,threadId:e}})}function $u(e){switch(e){case`completed`:case`error`:case`interrupted`:return{assign:`Thread assigned to`,release:`Thread unassigned from`,transferFrom:`Thread reassigned from`,transferTo:`to`};case`pending`:return{assign:`Assigning thread to`,release:`Releasing thread from`,transferFrom:`Reassigning thread from`,transferTo:`to`};default:return yl(e)}}function ed(e){let t=e.managerAssignment,n=Qu(t.previousManagerThreadId,t.previousManagerThreadTitle),r=Qu(t.nextManagerThreadId,t.nextManagerThreadTitle),i=e.status===`pending`,a=$u(e.status);return V({segments:(()=>{switch(t.action){case`assign`:return Du([B(a.assign,{shimmer:i}),r]);case`release`:return Du([B(a.release,{shimmer:i}),n]);case`transfer`:return Du([B(a.transferFrom,{shimmer:i}),n,r===null?null:B(a.transferTo,{shimmer:i}),r]);default:return yl(t.action)}})(),decorations:(()=>{switch(e.status){case`error`:return[ju(`error`,null)];case`interrupted`:return[ju(`interrupted`,null)];case`pending`:case`completed`:return[];default:return yl(e.status)}})(),tone:e.status===`error`?`destructive`:`default`})}function td(e){let t=e.systemKind===`error`||e.status===`error`;if(e.systemKind===`operation`&&e.operationKind===`manager-assignment`)return ed(e);let n=e.systemKind===`operation`&&e.operationKind===`compaction`,r=n&&(e.status===`pending`||e.status===`completed`)?Du([ku(e.startedAt,e.completedAt)]):[];return V({segments:[B(n&&e.status===`pending`?`${e.title}…`:e.title,{em:t,shimmer:e.status===`pending`,truncate:!0})],decorations:r,tone:t?`destructive`:`default`})}function nd(e){return V({segments:[B(e.role===`user`?`User`:`Assistant`,{em:!1})]})}function rd({intent:e,pending:t,failureStatus:n}){let r=Bl({intent:e,pathMode:`compact`,pending:t}),i=Bl({intent:e,pathMode:`full`,pending:t}),a=[];return r.prefix&&a.push(B(r.prefix,{shimmer:t})),a.push(B(r.content,{em:!1,truncate:!0,plainText:i.content})),V({segments:a,decorations:n?[ju(n,null)]:[]})}function id(e){if(!Ll(e))return[];let t=null,n=[],r=e.status===`error`?`error`:e.status===`interrupted`?`interrupted`:void 0;return e.activityIntents.forEach((i,a)=>{if(i.type===`unknown`)return;let o=Hl(i);o!==null&&o===t||(n.push({id:`${e.id}:activity-intent:${a}`,title:rd({intent:i,pending:e.status===`pending`,...r?{failureStatus:r}:{}})}),t=o)}),n}function ad(e){return e.kind===`conversation`&&e.role===`user`}function od(e){for(let t=e.length-1;t>=0;--t){let n=e[t];if(n&&!ad(n))return n}return null}function sd(e){let t=od(e);return t?.kind===`bundle-summary`?t.id:null}function cd(e,t){switch(e.kind){case`conversation`:return nd(e);case`system`:return td(e);case`work`:return Yu(e,t);case`bundle-summary`:case`step-summary`:return Xu(e,t);case`turn`:return Zu(e);default:return yl(e)}}ge({content:_e(),status:_e()}).passthrough(),ge({todos:se(t())});function ld(e){switch(e.workKind){case`web-search`:case`web-fetch`:case`approval`:return!1;case`question`:return e.lifecycle===`answered`||e.lifecycle===`resolving`;case`command`:case`tool`:return!Ll(e);case`file-change`:return!0;case`delegation`:return e.childRows.length>0||e.output.trim().length>0;default:return yl(e)}}function ud(e){switch(e.kind){case`conversation`:return!1;case`system`:return e.detail!==null&&e.detail.trim().length>0;case`bundle-summary`:case`step-summary`:return e.children.length>0;case`turn`:return!0;case`work`:return ld(e);default:return yl(e)}}function dd(e){return e.length>0&&e.every(e=>!ld(e))}function fd(e){if(!ud(e))return!1;switch(e.kind){case`system`:case`bundle-summary`:return!0;case`work`:return e.workKind===`delegation`;case`conversation`:case`step-summary`:case`turn`:return!1;default:return yl(e)}}function pd(e,t,n){if(!t)return;let r=od(e);r&&fd(r)&&n.add(r.id);for(let t of e)t.kind===`work`&&t.workKind===`delegation`&&t.status===`pending`&&pd(t.childRows,!0,n)}function md({rows:e,scopeActive:t}){let n=new Set;return pd(e,t,n),n}function hd({event:e,hasNavigation:t}){return e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey?null:e.key===`Escape`?`close`:t?e.key===`ArrowLeft`?`previous`:e.key===`ArrowRight`?`next`:null:null}function gd({currentIndex:e,direction:t,itemCount:n}){return n<=0?e:t===`previous`?e===0?n-1:e-1:e===n-1?0:e+1}function _d({hasMultipleImages:e=!1,imageAlt:t,imageSrc:n,onClose:r,onNext:i,onPrevious:a,title:o}){let s=e&&a!==void 0&&i!==void 0;return(0,R.useEffect)(()=>{if(!n)return;let e=e=>{let t=hd({event:e,hasNavigation:s});if(t)switch(t){case`close`:e.preventDefault(),r();return;case`previous`:if(!a)return;e.preventDefault(),a();return;case`next`:if(!i)return;e.preventDefault(),i();return}};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[s,n,r,i,a]),n?(0,z.jsx)(wr,{open:!0,onOpenChange:e=>!e&&r(),children:(0,z.jsxs)(Sr,{className:`left-0 top-0 flex h-screen w-screen max-w-none translate-x-0 translate-y-0 items-center justify-center border-none bg-transparent p-0 shadow-none data-[state=closed]:slide-out-to-left-0 data-[state=closed]:slide-out-to-top-0 data-[state=open]:slide-in-from-left-0 data-[state=open]:slide-in-from-top-0 sm:rounded-none [&>button]:hidden`,onClick:e=>{e.target===e.currentTarget&&r()},children:[(0,z.jsx)(Cr,{className:`sr-only`,children:o}),(0,z.jsx)(`img`,{src:n,alt:t,className:`max-h-[82vh] max-w-[90vw] rounded bg-background object-contain`}),s?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(it,{type:`button`,variant:`ghost`,size:`icon`,className:`absolute left-2 top-1/2 size-9 -translate-y-1/2 rounded-full bg-black/45 text-white hover:bg-black/60 hover:text-white`,onClick:a,"aria-label":`Previous image`,children:(0,z.jsx)(F,{name:`ChevronLeft`,className:`size-5`})}),(0,z.jsx)(it,{type:`button`,variant:`ghost`,size:`icon`,className:`absolute right-2 top-1/2 size-9 -translate-y-1/2 rounded-full bg-black/45 text-white hover:bg-black/60 hover:text-white`,onClick:i,"aria-label":`Next image`,children:(0,z.jsx)(F,{name:`ChevronRight`,className:`size-5`})})]}):null,(0,z.jsx)(yr,{asChild:!0,children:(0,z.jsx)(it,{type:`button`,variant:`ghost`,size:`icon`,className:`absolute right-2 top-2 size-9 rounded-full bg-black/45 text-white hover:bg-black/60 hover:text-white`,"aria-label":`Close image preview`,children:(0,z.jsx)(F,{name:`X`,className:`size-5`})})})]})}):null}async function vd(e,{successMessage:t=`Copied`,errorMessage:n=`Failed to copy`}={}){if(typeof navigator>`u`||!navigator.clipboard?.writeText)return n&&Ac.error(n),!1;try{return await navigator.clipboard.writeText(e),t&&Ac.success(t),!0}catch{return n&&Ac.error(n),!1}}function yd({text:e,successMessage:t=null,errorMessage:n=`Failed to copy`}){let[r,i]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{if(!r)return;let e=window.setTimeout(()=>{i(!1)},2e3);return()=>window.clearTimeout(e)},[r]),{copied:r,copy:(0,R.useCallback)(async()=>{!e||r||await vd(e,{successMessage:t,errorMessage:n})&&i(!0)},[e,r,t,n])}}function bd({text:e,className:t,iconClassName:n,label:r=`Copy to clipboard`,successMessage:i,errorMessage:a}){let{copied:o,copy:s}=yd({text:e,successMessage:i,errorMessage:a});return(0,z.jsx)(`button`,{type:`button`,className:I(`inline-flex size-5 items-center justify-center text-muted-foreground hover:text-foreground focus-visible:opacity-100`,t),onClick:()=>{s()},"aria-label":r,title:r,children:o?(0,z.jsx)(F,{name:`Check`,className:I(`size-3`,n)}):(0,z.jsx)(F,{name:`Copy`,className:I(`size-3`,n)})})}function xd({text:e,label:t,title:n,className:r,iconClassName:i,successMessage:a,errorMessage:o,children:s}){let{copied:c,copy:l}=yd({text:e,successMessage:a,errorMessage:o});return(0,z.jsxs)(`button`,{type:`button`,className:I(`inline-flex min-w-0 max-w-full items-center gap-1.5 rounded-md text-left text-foreground transition-colors hover:text-foreground/80`,r),onClick:()=>{l()},"aria-label":t,title:n??t,children:[(0,z.jsx)(`span`,{className:`min-w-0 truncate`,children:s??e}),(0,z.jsx)(F,{name:c?`Check`:`Copy`,className:I(`size-3.5 shrink-0 text-muted-foreground`,i)})]})}function Sd(e){let t=[],n=String(e||``),r=n.indexOf(`,`),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(`,`,i)}return t}function Cd(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var wd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Td=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ed={};function Dd(e,t){return((t||Ed).jsx?Td:wd).test(e)}var Od=/[ \t\n\f\r]/g;function kd(e){return typeof e==`object`?e.type===`text`?Ad(e.value):!1:Ad(e)}function Ad(e){return e.replace(Od,``)===``}var jd=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};jd.prototype.normal={},jd.prototype.property={},jd.prototype.space=void 0;function Md(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new jd(n,r,t)}function Nd(e){return e.toLowerCase()}var Pd=class{constructor(e,t){this.attribute=t,this.property=e}};Pd.prototype.attribute=``,Pd.prototype.booleanish=!1,Pd.prototype.boolean=!1,Pd.prototype.commaOrSpaceSeparated=!1,Pd.prototype.commaSeparated=!1,Pd.prototype.defined=!1,Pd.prototype.mustUseProperty=!1,Pd.prototype.number=!1,Pd.prototype.overloadedBoolean=!1,Pd.prototype.property=``,Pd.prototype.spaceSeparated=!1,Pd.prototype.space=void 0;var Fd=me({boolean:()=>H,booleanish:()=>Ld,commaOrSpaceSeparated:()=>Vd,commaSeparated:()=>Bd,number:()=>U,overloadedBoolean:()=>Rd,spaceSeparated:()=>zd}),Id=0,H=Hd(),Ld=Hd(),Rd=Hd(),U=Hd(),zd=Hd(),Bd=Hd(),Vd=Hd();function Hd(){return 2**++Id}var Ud=Object.keys(Fd),Wd=class extends Pd{constructor(e,t,n,r){let i=-1;if(super(e,t),Gd(this,`space`,r),typeof n==`number`)for(;++i<Ud.length;){let e=Ud[i];Gd(this,Ud[i],(n&Fd[e])===Fd[e])}}};Wd.prototype.defined=!0;function Gd(e,t,n){n&&(e[t]=n)}function Kd(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Wd(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Nd(r)]=r,n[Nd(a.attribute)]=r}return new jd(t,n,e.space)}var qd=Kd({properties:{ariaActiveDescendant:null,ariaAtomic:Ld,ariaAutoComplete:null,ariaBusy:Ld,ariaChecked:Ld,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:zd,ariaCurrent:null,ariaDescribedBy:zd,ariaDetails:null,ariaDisabled:Ld,ariaDropEffect:zd,ariaErrorMessage:null,ariaExpanded:Ld,ariaFlowTo:zd,ariaGrabbed:Ld,ariaHasPopup:null,ariaHidden:Ld,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:zd,ariaLevel:U,ariaLive:null,ariaModal:Ld,ariaMultiLine:Ld,ariaMultiSelectable:Ld,ariaOrientation:null,ariaOwns:zd,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:Ld,ariaReadOnly:Ld,ariaRelevant:null,ariaRequired:Ld,ariaRoleDescription:zd,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:Ld,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Jd(e,t){return t in e?e[t]:t}function Yd(e,t){return Jd(e,t.toLowerCase())}var Xd=Kd({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Bd,acceptCharset:zd,accessKey:zd,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:zd,autoFocus:H,autoPlay:H,blocking:zd,capture:null,charSet:null,checked:H,cite:null,className:zd,cols:U,colSpan:null,content:null,contentEditable:Ld,controls:H,controlsList:zd,coords:U|Bd,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:Rd,draggable:Ld,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:zd,height:U,hidden:Rd,high:U,href:null,hrefLang:null,htmlFor:zd,httpEquiv:zd,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:zd,itemRef:zd,itemScope:H,itemType:zd,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:H,optimum:U,pattern:null,ping:zd,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:zd,required:H,reversed:H,rows:U,rowSpan:U,sandbox:zd,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:Ld,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:Ld,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:zd,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:Ld,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:U,security:null,unselectable:null},space:`html`,transform:Yd}),Zd=Kd({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:Vd,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:zd,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Bd,g2:Bd,glyphName:Bd,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:Vd,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:U,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:zd,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Vd,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Vd,rev:Vd,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Vd,requiredFeatures:Vd,requiredFonts:Vd,requiredFormats:Vd,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:Vd,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Vd,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Vd,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Jd}),Qd=Kd({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),$d=Kd({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Yd}),ef=Kd({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),tf={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},nf=/[A-Z]/g,rf=/-[a-z]/g,af=/^data[-\w.:]+$/i;function of(e,t){let n=Nd(t),r=t,i=Pd;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&af.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(rf,cf);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!rf.test(e)){let n=e.replace(nf,sf);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Wd}return new i(r,t)}function sf(e){return`-`+e.toLowerCase()}function cf(e){return e.charAt(1).toUpperCase()}var lf=Md([qd,Xd,Qd,$d,ef],`html`),uf=Md([qd,Zd,Qd,$d,ef],`svg`);function df(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function ff(e){return e.join(` `).trim()}var pf=x(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
14
|
-
`,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),mf=x((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(pf());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),hf=x((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),gf=x(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(mf()),r=hf();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),_f=yf(`end`),vf=yf(`start`);function yf(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function bf(e){let t=vf(e),n=_f(e);if(t&&n)return{start:t,end:n}}function xf(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Cf(e.position):`start`in e||`end`in e?Cf(e):`line`in e||`column`in e?Sf(e):``}function Sf(e){return wf(e&&e.line)+`:`+wf(e&&e.column)}function Cf(e){return Sf(e&&e.start)+`-`+Sf(e&&e.end)}function wf(e){return e&&typeof e==`number`?e:1}var Tf=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=xf(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Tf.prototype.file=``,Tf.prototype.name=``,Tf.prototype.reason=``,Tf.prototype.message=``,Tf.prototype.stack=``,Tf.prototype.column=void 0,Tf.prototype.line=void 0,Tf.prototype.ancestors=void 0,Tf.prototype.cause=void 0,Tf.prototype.fatal=void 0,Tf.prototype.place=void 0,Tf.prototype.ruleId=void 0,Tf.prototype.source=void 0;var Ef=e(gf(),1),Df={}.hasOwnProperty,Of=new Map,kf=/[A-Z]/g,Af=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),jf=new Set([`td`,`th`]),Mf=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Nf(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Wf(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Uf(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?uf:lf,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Pf(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Pf(e,t,n){if(t.type===`element`)return Ff(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return If(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Rf(e,t,n);if(t.type===`mdxjsEsm`)return Lf(e,t);if(t.type===`root`)return zf(e,t,n);if(t.type===`text`)return Bf(e,t)}function Ff(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=uf,e.schema=i),e.ancestors.push(t);let a=Xf(e,t.tagName,!1),o=Gf(e,t),s=qf(e,t);return Af.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!kd(e):!0})),Vf(e,o,a,t),Hf(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function If(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Zf(e,t.position)}function Lf(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Zf(e,t.position)}function Rf(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=uf,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Xf(e,t.name,!0),o=Kf(e,t),s=qf(e,t);return Vf(e,o,a,t),Hf(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function zf(e,t,n){let r={};return Hf(r,qf(e,t)),e.create(t,e.Fragment,r,n)}function Bf(e,t){return t.value}function Vf(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Hf(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Uf(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Wf(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=vf(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Gf(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Df.call(t.properties,i)){let a=Jf(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&jf.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Kf(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Zf(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else Zf(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function qf(e,t){let n=[],r=-1,i=e.passKeys?new Map:Of;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Pf(e,a,o);s!==void 0&&n.push(s)}return n}function Jf(e,t,n){let r=of(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Cd(n):ff(n)),r.property===`style`){let t=typeof n==`object`?n:Yf(e,String(n));return e.stylePropertyNameCase===`css`&&(t=Qf(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?tf[r.property]||r.property:r.attribute,n]}}function Yf(e,t){try{return(0,Ef.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Tf("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Mf+`#cannot-parse-style-attribute`,r}}function Xf(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Dd(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Dd(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Df.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Zf(e)}function Zf(e,t){let n=new Tf("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Mf+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function Qf(e){let t={},n;for(n in e)Df.call(e,n)&&(t[$f(n)]=e[n]);return t}function $f(e){let t=e.replace(kf,ep);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function ep(e){return`-`+e.toLowerCase()}var tp={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},np={};function rp(e,t){let n=t||np;return ip(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function ip(e,t,n){if(op(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return ap(e.children,t,n)}return Array.isArray(e)?ap(e,t,n):``}function ap(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ip(e[i],t,n);return r.join(``)}function op(e){return!!(e&&typeof e==`object`)}var sp={AElig:`Æ`,AMP:`&`,Aacute:`Á`,Abreve:`Ă`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:``,Aring:`Å`,Ascr:`𝒜`,Assign:`≔`,Atilde:`Ã`,Auml:`Ä`,Backslash:`∖`,Barv:`⫧`,Barwed:`⌆`,Bcy:`Б`,Because:`∵`,Bernoullis:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,Bscr:`ℬ`,Bumpeq:`≎`,CHcy:`Ч`,COPY:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,Cayleys:`ℭ`,Ccaron:`Č`,Ccedil:`Ç`,Ccirc:`Ĉ`,Cconint:`∰`,Cdot:`Ċ`,Cedilla:`¸`,CenterDot:`·`,Cfr:`ℭ`,Chi:`Χ`,CircleDot:`⊙`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,Colon:`∷`,Colone:`⩴`,Congruent:`≡`,Conint:`∯`,ContourIntegral:`∮`,Copf:`ℂ`,Coproduct:`∐`,CounterClockwiseContourIntegral:`∳`,Cross:`⨯`,Cscr:`𝒞`,Cup:`⋓`,CupCap:`≍`,DD:`ⅅ`,DDotrahd:`⤑`,DJcy:`Ђ`,DScy:`Ѕ`,DZcy:`Џ`,Dagger:`‡`,Darr:`↡`,Dashv:`⫤`,Dcaron:`Ď`,Dcy:`Д`,Del:`∇`,Delta:`Δ`,Dfr:`𝔇`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,Diamond:`⋄`,DifferentialD:`ⅆ`,Dopf:`𝔻`,Dot:`¨`,DotDot:`⃜`,DotEqual:`≐`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,DownTeeArrow:`↧`,Downarrow:`⇓`,Dscr:`𝒟`,Dstrok:`Đ`,ENG:`Ŋ`,ETH:`Ð`,Eacute:`É`,Ecaron:`Ě`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrave:`È`,Element:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,Equilibrium:`⇌`,Escr:`ℰ`,Esim:`⩳`,Eta:`Η`,Euml:`Ë`,Exists:`∃`,ExponentialE:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,Fopf:`𝔽`,ForAll:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,GT:`>`,Gamma:`Γ`,Gammad:`Ϝ`,Gbreve:`Ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,Gcy:`Г`,Gdot:`Ġ`,Gfr:`𝔊`,Gg:`⋙`,Gopf:`𝔾`,GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,Gt:`≫`,HARDcy:`Ъ`,Hacek:`ˇ`,Hat:`^`,Hcirc:`Ĥ`,Hfr:`ℌ`,HilbertSpace:`ℋ`,Hopf:`ℍ`,HorizontalLine:`─`,Hscr:`ℋ`,Hstrok:`Ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,IEcy:`Е`,IJlig:`IJ`,IOcy:`Ё`,Iacute:`Í`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Igrave:`Ì`,Im:`ℑ`,Imacr:`Ī`,ImaginaryI:`ⅈ`,Implies:`⇒`,Int:`∬`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:``,InvisibleTimes:``,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,LT:`<`,Lacute:`Ĺ`,Lambda:`Λ`,Lang:`⟪`,Laplacetrf:`ℒ`,Larr:`↞`,Lcaron:`Ľ`,Lcedil:`Ļ`,Lcy:`Л`,LeftAngleBracket:`⟨`,LeftArrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,LeftRightArrow:`↔`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,Leftarrow:`⇐`,Leftrightarrow:`⇔`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,LessLess:`⪡`,LessSlantEqual:`⩽`,LessTilde:`≲`,Lfr:`𝔏`,Ll:`⋘`,Lleftarrow:`⇚`,Lmidot:`Ŀ`,LongLeftArrow:`⟵`,LongLeftRightArrow:`⟷`,LongRightArrow:`⟶`,Longleftarrow:`⟸`,Longleftrightarrow:`⟺`,Longrightarrow:`⟹`,Lopf:`𝕃`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,Lscr:`ℒ`,Lsh:`↰`,Lstrok:`Ł`,Lt:`≪`,Map:`⤅`,Mcy:`М`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,MinusPlus:`∓`,Mopf:`𝕄`,Mscr:`ℳ`,Mu:`Μ`,NJcy:`Њ`,Nacute:`Ń`,Ncaron:`Ň`,Ncedil:`Ņ`,Ncy:`Н`,NegativeMediumSpace:``,NegativeThickSpace:``,NegativeThinSpace:``,NegativeVeryThinSpace:``,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
|
|
15
|
-
`,Nfr:`𝔑`,NoBreak:``,NonBreakingSpace:`\xA0`,Nopf:`ℕ`,Not:`⫬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,Nscr:`𝒩`,Ntilde:`Ñ`,Nu:`Ν`,OElig:`Œ`,Oacute:`Ó`,Ocirc:`Ô`,Ocy:`О`,Odblac:`Ő`,Ofr:`𝔒`,Ograve:`Ò`,Omacr:`Ō`,Omega:`Ω`,Omicron:`Ο`,Oopf:`𝕆`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,Or:`⩔`,Oscr:`𝒪`,Oslash:`Ø`,Otilde:`Õ`,Otimes:`⨷`,Ouml:`Ö`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,PartialD:`∂`,Pcy:`П`,Pfr:`𝔓`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Poincareplane:`ℌ`,Popf:`ℙ`,Pr:`⪻`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Prime:`″`,Product:`∏`,Proportion:`∷`,Proportional:`∝`,Pscr:`𝒫`,Psi:`Ψ`,QUOT:`"`,Qfr:`𝔔`,Qopf:`ℚ`,Qscr:`𝒬`,RBarr:`⤐`,REG:`®`,Racute:`Ŕ`,Rang:`⟫`,Rarr:`↠`,Rarrtl:`⤖`,Rcaron:`Ř`,Rcedil:`Ŗ`,Rcy:`Р`,Re:`ℜ`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,Rfr:`ℜ`,Rho:`Ρ`,RightAngleBracket:`⟩`,RightArrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,Rightarrow:`⇒`,Ropf:`ℝ`,RoundImplies:`⥰`,Rrightarrow:`⇛`,Rscr:`ℛ`,Rsh:`↱`,RuleDelayed:`⧴`,SHCHcy:`Щ`,SHcy:`Ш`,SOFTcy:`Ь`,Sacute:`Ś`,Sc:`⪼`,Scaron:`Š`,Scedil:`Ş`,Scirc:`Ŝ`,Scy:`С`,Sfr:`𝔖`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,ShortRightArrow:`→`,ShortUpArrow:`↑`,Sigma:`Σ`,SmallCircle:`∘`,Sopf:`𝕊`,Sqrt:`√`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,Sscr:`𝒮`,Star:`⋆`,Sub:`⋐`,Subset:`⋐`,SubsetEqual:`⊆`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,SuchThat:`∋`,Sum:`∑`,Sup:`⋑`,Superset:`⊃`,SupersetEqual:`⊇`,Supset:`⋑`,THORN:`Þ`,TRADE:`™`,TSHcy:`Ћ`,TScy:`Ц`,Tab:` `,Tau:`Τ`,Tcaron:`Ť`,Tcedil:`Ţ`,Tcy:`Т`,Tfr:`𝔗`,Therefore:`∴`,Theta:`Θ`,ThickSpace:` `,ThinSpace:` `,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,Topf:`𝕋`,TripleDot:`⃛`,Tscr:`𝒯`,Tstrok:`Ŧ`,Uacute:`Ú`,Uarr:`↟`,Uarrocir:`⥉`,Ubrcy:`Ў`,Ubreve:`Ŭ`,Ucirc:`Û`,Ucy:`У`,Udblac:`Ű`,Ufr:`𝔘`,Ugrave:`Ù`,Umacr:`Ū`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,Uopf:`𝕌`,UpArrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,UpEquilibrium:`⥮`,UpTee:`⊥`,UpTeeArrow:`↥`,Uparrow:`⇑`,Updownarrow:`⇕`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,Upsilon:`Υ`,Uring:`Ů`,Uscr:`𝒰`,Utilde:`Ũ`,Uuml:`Ü`,VDash:`⊫`,Vbar:`⫫`,Vcy:`В`,Vdash:`⊩`,Vdashl:`⫦`,Vee:`⋁`,Verbar:`‖`,Vert:`‖`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,Vopf:`𝕍`,Vscr:`𝒱`,Vvdash:`⊪`,Wcirc:`Ŵ`,Wedge:`⋀`,Wfr:`𝔚`,Wopf:`𝕎`,Wscr:`𝒲`,Xfr:`𝔛`,Xi:`Ξ`,Xopf:`𝕏`,Xscr:`𝒳`,YAcy:`Я`,YIcy:`Ї`,YUcy:`Ю`,Yacute:`Ý`,Ycirc:`Ŷ`,Ycy:`Ы`,Yfr:`𝔜`,Yopf:`𝕐`,Yscr:`𝒴`,Yuml:`Ÿ`,ZHcy:`Ж`,Zacute:`Ź`,Zcaron:`Ž`,Zcy:`З`,Zdot:`Ż`,ZeroWidthSpace:``,Zeta:`Ζ`,Zfr:`ℨ`,Zopf:`ℤ`,Zscr:`𝒵`,aacute:`á`,abreve:`ă`,ac:`∾`,acE:`∾̳`,acd:`∿`,acirc:`â`,acute:`´`,acy:`а`,aelig:`æ`,af:``,afr:`𝔞`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,alpha:`α`,amacr:`ā`,amalg:`⨿`,amp:`&`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,aogon:`ą`,aopf:`𝕒`,ap:`≈`,apE:`⩰`,apacir:`⩯`,ape:`≊`,apid:`≋`,apos:`'`,approx:`≈`,approxeq:`≊`,aring:`å`,ascr:`𝒶`,ast:`*`,asymp:`≈`,asympeq:`≍`,atilde:`ã`,auml:`ä`,awconint:`∳`,awint:`⨑`,bNot:`⫭`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,barvee:`⊽`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,beta:`β`,beth:`ℶ`,between:`≬`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bnot:`⌐`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxDL:`╗`,boxDR:`╔`,boxDl:`╖`,boxDr:`╓`,boxH:`═`,boxHD:`╦`,boxHU:`╩`,boxHd:`╤`,boxHu:`╧`,boxUL:`╝`,boxUR:`╚`,boxUl:`╜`,boxUr:`╙`,boxV:`║`,boxVH:`╬`,boxVL:`╣`,boxVR:`╠`,boxVh:`╫`,boxVl:`╢`,boxVr:`╟`,boxbox:`⧉`,boxdL:`╕`,boxdR:`╒`,boxdl:`┐`,boxdr:`┌`,boxh:`─`,boxhD:`╥`,boxhU:`╨`,boxhd:`┬`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxuL:`╛`,boxuR:`╘`,boxul:`┘`,boxur:`└`,boxv:`│`,boxvH:`╪`,boxvL:`╡`,boxvR:`╞`,boxvh:`┼`,boxvl:`┤`,boxvr:`├`,bprime:`‵`,breve:`˘`,brvbar:`¦`,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,bumpeq:`≏`,cacute:`ć`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,ccaps:`⩍`,ccaron:`č`,ccedil:`ç`,ccirc:`ĉ`,ccups:`⩌`,ccupssm:`⩐`,cdot:`ċ`,cedil:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,cfr:`𝔠`,chcy:`ч`,check:`✓`,checkmark:`✓`,chi:`χ`,cir:`○`,cirE:`⧃`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledR:`®`,circledS:`Ⓢ`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,clubs:`♣`,clubsuit:`♣`,colon:`:`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,conint:`∮`,copf:`𝕔`,coprod:`∐`,copy:`©`,copysr:`℗`,crarr:`↵`,cross:`✗`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cup:`∪`,cupbrcap:`⩈`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dArr:`⇓`,dHar:`⥥`,dagger:`†`,daleth:`ℸ`,darr:`↓`,dash:`‐`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,dcaron:`ď`,dcy:`д`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,ddotseq:`⩷`,deg:`°`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,dfr:`𝔡`,dharl:`⇃`,dharr:`⇂`,diam:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,dopf:`𝕕`,dot:`˙`,doteq:`≐`,doteqdot:`≑`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,downarrow:`↓`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,dscr:`𝒹`,dscy:`ѕ`,dsol:`⧶`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,dzcy:`џ`,dzigrarr:`⟿`,eDDot:`⩷`,eDot:`≑`,eacute:`é`,easter:`⩮`,ecaron:`ě`,ecir:`≖`,ecirc:`ê`,ecolon:`≕`,ecy:`э`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,efr:`𝔢`,eg:`⪚`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,emacr:`ē`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,emsp13:` `,emsp14:` `,emsp:` `,eng:`ŋ`,ensp:` `,eogon:`ę`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,equals:`=`,equest:`≟`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erDot:`≓`,erarr:`⥱`,escr:`ℯ`,esdot:`≐`,esim:`≂`,eta:`η`,eth:`ð`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,fallingdotseq:`≒`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,ffr:`𝔣`,filig:`fi`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,fopf:`𝕗`,forall:`∀`,fork:`⋔`,forkv:`⫙`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:`𝒻`,gE:`≧`,gEl:`⪌`,gacute:`ǵ`,gamma:`γ`,gammad:`ϝ`,gap:`⪆`,gbreve:`ğ`,gcirc:`ĝ`,gcy:`г`,gdot:`ġ`,ge:`≥`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,gfr:`𝔤`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,gjcy:`ѓ`,gl:`≷`,glE:`⪒`,gla:`⪥`,glj:`⪤`,gnE:`≩`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,gopf:`𝕘`,grave:"`",gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,hArr:`⇔`,hairsp:` `,half:`½`,hamilt:`ℋ`,hardcy:`ъ`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,hbar:`ℏ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:`𝔥`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:`𝕙`,horbar:`―`,hscr:`𝒽`,hslash:`ℏ`,hstrok:`ħ`,hybull:`⁃`,hyphen:`‐`,iacute:`í`,ic:``,icirc:`î`,icy:`и`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:`𝔦`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,ijlig:`ij`,imacr:`ī`,image:`ℑ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,imof:`⊷`,imped:`Ƶ`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,int:`∫`,intcal:`⊺`,integers:`ℤ`,intercal:`⊺`,intlarhk:`⨗`,intprod:`⨼`,iocy:`ё`,iogon:`į`,iopf:`𝕚`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:`𝒾`,isin:`∈`,isinE:`⋹`,isindot:`⋵`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:``,itilde:`ĩ`,iukcy:`і`,iuml:`ï`,jcirc:`ĵ`,jcy:`й`,jfr:`𝔧`,jmath:`ȷ`,jopf:`𝕛`,jscr:`𝒿`,jsercy:`ј`,jukcy:`є`,kappa:`κ`,kappav:`ϰ`,kcedil:`ķ`,kcy:`к`,kfr:`𝔨`,kgreen:`ĸ`,khcy:`х`,kjcy:`ќ`,kopf:`𝕜`,kscr:`𝓀`,lAarr:`⇚`,lArr:`⇐`,lAtail:`⤛`,lBarr:`⤎`,lE:`≦`,lEg:`⪋`,lHar:`⥢`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,lambda:`λ`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,laquo:`«`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,lcaron:`ľ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,leftarrow:`←`,leftarrowtail:`↢`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,leftthreetimes:`⋋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,lessgtr:`≶`,lesssim:`≲`,lfisht:`⥼`,lfloor:`⌊`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,ljcy:`љ`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,llhard:`⥫`,lltri:`◺`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnE:`≨`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,longleftrightarrow:`⟷`,longmapsto:`⟼`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:``,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,lstrok:`ł`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltrPar:`⦖`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,mDDot:`∺`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,mcy:`м`,mdash:`—`,measuredangle:`∡`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,middot:`·`,minus:`−`,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,mopf:`𝕞`,mp:`∓`,mscr:`𝓂`,mstpos:`∾`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nGg:`⋙̸`,nGt:`≫⃒`,nGtv:`≫̸`,nLeftarrow:`⇍`,nLeftrightarrow:`⇎`,nLl:`⋘̸`,nLt:`≪⃒`,nLtv:`≪̸`,nRightarrow:`⇏`,nVDash:`⊯`,nVdash:`⊮`,nabla:`∇`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:`ℕ`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,ncaron:`ň`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,ncy:`н`,ndash:`–`,ne:`≠`,neArr:`⇗`,nearhk:`⤤`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,nexist:`∄`,nexists:`∄`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,ngsim:`≵`,ngt:`≯`,ngtr:`≯`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,njcy:`њ`,nlArr:`⇍`,nlE:`≦̸`,nlarr:`↚`,nldr:`‥`,nle:`≰`,nleftarrow:`↚`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nlsim:`≴`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nmid:`∤`,nopf:`𝕟`,not:`¬`,notin:`∉`,notinE:`⋹̸`,notindot:`⋵̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvDash:`⊭`,nvHarr:`⤄`,nvap:`≍⃒`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwArr:`⇖`,nwarhk:`⤣`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,oS:`Ⓢ`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,ocirc:`ô`,ocy:`о`,odash:`⊝`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,oelig:`œ`,ofcir:`⦿`,ofr:`𝔬`,ogon:`˛`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,omacr:`ō`,omega:`ω`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,oopf:`𝕠`,opar:`⦷`,operp:`⦹`,oplus:`⊕`,or:`∨`,orarr:`↻`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oscr:`ℴ`,oslash:`ø`,osol:`⊘`,otilde:`õ`,otimes:`⊗`,otimesas:`⨶`,ouml:`ö`,ovbar:`⌽`,par:`∥`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,pfr:`𝔭`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,pointint:`⨕`,popf:`𝕡`,pound:`£`,pr:`≺`,prE:`⪳`,prap:`⪷`,prcue:`≼`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,prime:`′`,primes:`ℙ`,prnE:`⪵`,prnap:`⪹`,prnsim:`⋨`,prod:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,pscr:`𝓅`,psi:`ψ`,puncsp:` `,qfr:`𝔮`,qint:`⨌`,qopf:`𝕢`,qprime:`⁗`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quot:`"`,rAarr:`⇛`,rArr:`⇒`,rAtail:`⤜`,rBarr:`⤏`,rHar:`⥤`,race:`∽̱`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,rarrtl:`↣`,rarrw:`↝`,ratail:`⤚`,ratio:`∶`,rationals:`ℚ`,rbarr:`⤍`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,rcaron:`ř`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,rect:`▭`,reg:`®`,rfisht:`⥽`,rfloor:`⌋`,rfr:`𝔯`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,rho:`ρ`,rhov:`ϱ`,rightarrow:`→`,rightarrowtail:`↣`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,rightthreetimes:`⋌`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:``,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,rsaquo:`›`,rscr:`𝓇`,rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,ruluhar:`⥨`,rx:`℞`,sacute:`ś`,sbquo:`‚`,sc:`≻`,scE:`⪴`,scap:`⪸`,scaron:`š`,sccue:`≽`,sce:`⪰`,scedil:`ş`,scirc:`ŝ`,scnE:`⪶`,scnap:`⪺`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,seArr:`⇘`,searhk:`⤥`,searr:`↘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,shchcy:`щ`,shcy:`ш`,shortmid:`∣`,shortparallel:`∥`,shy:``,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,square:`□`,squarf:`▪`,squf:`▪`,srarr:`→`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,sub:`⊂`,subE:`⫅`,subdot:`⪽`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,sum:`∑`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,sup:`⊃`,supE:`⫆`,supdot:`⪾`,supdsub:`⫘`,supe:`⊇`,supedot:`⫄`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swArr:`⇙`,swarhk:`⤦`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,target:`⌖`,tau:`τ`,tbrk:`⎴`,tcaron:`ť`,tcedil:`ţ`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,tfr:`𝔱`,there4:`∴`,therefore:`∴`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,thinsp:` `,thkap:`≈`,thksim:`∼`,thorn:`þ`,tilde:`˜`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:`⊤`,topbot:`⌶`,topcir:`⫱`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,tscr:`𝓉`,tscy:`ц`,tshcy:`ћ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,uArr:`⇑`,uHar:`⥣`,uacute:`ú`,uarr:`↑`,ubrcy:`ў`,ubreve:`ŭ`,ucirc:`û`,ucy:`у`,udarr:`⇅`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,ufr:`𝔲`,ugrave:`ù`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,umacr:`ū`,uml:`¨`,uogon:`ų`,uopf:`𝕦`,uparrow:`↑`,updownarrow:`↕`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,upsi:`υ`,upsih:`ϒ`,upsilon:`υ`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,uring:`ů`,urtri:`◹`,uscr:`𝓊`,utdot:`⋰`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,uuml:`ü`,uwangle:`⦧`,vArr:`⇕`,vBar:`⫨`,vBarv:`⫩`,vDash:`⊨`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,vcy:`в`,vdash:`⊢`,vee:`∨`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,verbar:`|`,vert:`|`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,vzigzag:`⦚`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,wfr:`𝔴`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,yacute:`ý`,yacy:`я`,ycirc:`ŷ`,ycy:`ы`,yen:`¥`,yfr:`𝔶`,yicy:`ї`,yopf:`𝕪`,yscr:`𝓎`,yucy:`ю`,yuml:`ÿ`,zacute:`ź`,zcaron:`ž`,zcy:`з`,zdot:`ż`,zeetrf:`ℨ`,zeta:`ζ`,zfr:`𝔷`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,zscr:`𝓏`,zwj:``,zwnj:``},cp={}.hasOwnProperty;function lp(e){return cp.call(sp,e)?sp[e]:!1}function up(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function dp(e,t){return e.length>0?(up(e,e.length,0,t),e):t}var fp={}.hasOwnProperty;function pp(e){let t={},n=-1;for(;++n<e.length;)mp(t,e[n]);return t}function mp(e,t){let n;for(n in t){let r=(fp.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){fp.call(r,a)||(r[a]=[]);let e=i[a];hp(r[a],Array.isArray(e)?e:e?[e]:[])}}}function hp(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);up(e,0,0,r)}function gp(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function _p(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var vp=Op(/[A-Za-z]/),yp=Op(/[\dA-Za-z]/),bp=Op(/[#-'*+\--9=?A-Z^-~]/);function xp(e){return e!==null&&(e<32||e===127)}var Sp=Op(/\d/),Cp=Op(/[\dA-Fa-f]/),wp=Op(/[!-/:-@[-`{-~]/);function W(e){return e!==null&&e<-2}function Tp(e){return e!==null&&(e<0||e===32)}function G(e){return e===-2||e===-1||e===32}var Ep=Op(/\p{P}|\p{S}/u),Dp=Op(/\s/);function Op(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function kp(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&yp(e.charCodeAt(n+1))&&yp(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Ap(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return G(r)?(e.enter(n),s(r)):t(r)}function s(r){return G(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var jp={tokenize:Mp};function Mp(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Ap(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return W(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Np={tokenize:Fp},Pp={tokenize:Ip};function Fp(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return up(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Pp,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Pp,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return W(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;up(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Ip(e,t,n){return Ap(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Lp(e){if(e===null||Tp(e)||Dp(e))return 1;if(Ep(e))return 2}function Rp(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var zp={name:`attention`,resolveAll:Bp,tokenize:Vp};function Bp(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};Hp(d,-c),Hp(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=dp(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=dp(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=dp(l,Rp(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=dp(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=dp(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,up(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function Vp(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Lp(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Lp(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function Hp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Up={name:`autolink`,tokenize:Wp};function Wp(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return vp(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||yp(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||yp(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||xp(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):bp(t)?(e.consume(t),l):n(t)}function u(e){return yp(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||yp(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Gp={partial:!0,tokenize:Kp};function Kp(e,t,n){return r;function r(t){return G(t)?Ap(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||W(e)?t(e):n(e)}}var qp={continuation:{tokenize:Yp},exit:Xp,name:`blockQuote`,tokenize:Jp};function Jp(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return G(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Yp(e,t,n){let r=this;return i;function i(t){return G(t)?Ap(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(qp,t,n)(r)}}function Xp(e){e.exit(`blockQuote`)}var Zp={name:`characterEscape`,tokenize:Qp};function Qp(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return wp(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var $p={name:`characterReference`,tokenize:em};function em(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=yp,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Cp,u):(e.enter(`characterReferenceValue`),a=7,o=Sp,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===yp&&!lp(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var tm={partial:!0,tokenize:im},nm={concrete:!0,name:`codeFenced`,tokenize:rm};function rm(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),G(t)?Ap(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||W(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(tm,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||W(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):G(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Ap(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||W(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||W(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&G(t)?Ap(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||W(t)?e.check(tm,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||W(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),G(t)?Ap(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),G(t)?Ap(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||W(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function im(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var am={name:`codeIndented`,tokenize:sm},om={partial:!0,tokenize:cm};function sm(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Ap(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):W(t)?e.attempt(om,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||W(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function cm(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):W(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Ap(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):W(e)?i(e):n(e)}}var lm={name:`codeText`,previous:dm,resolve:um,tokenize:fm};function um(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function dm(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function fm(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):W(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||W(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var pm=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&mm(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),mm(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),mm(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);mm(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);mm(this.left,t.reverse())}}};function mm(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function hm(e){let t={},n=-1,r,i,a,o,s,c,l,u=new pm(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,gm(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return up(e,0,1/0,u.slice(0)),!l}function gm(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var _m={resolve:ym,tokenize:bm},vm={partial:!0,tokenize:xm};function ym(e){return hm(e),e}function bm(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):W(t)?e.check(vm,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function xm(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Ap(e,a,`linePrefix`)}function a(i){if(i===null||W(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Sm(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||xp(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||W(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Tp(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||xp(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Cm(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):W(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||W(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!G(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function wm(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):W(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Ap(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||W(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Tm(e,t){let n;return r;function r(i){return W(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):G(i)?Ap(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Em={name:`definition`,tokenize:Om},Dm={partial:!0,tokenize:km};function Om(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Cm.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=_p(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Tp(t)?Tm(e,l)(t):l(t)}function l(t){return Sm(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Dm,d,d)(t)}function d(t){return G(t)?Ap(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||W(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function km(e,t,n){return r;function r(t){return Tp(t)?Tm(e,i)(t):n(t)}function i(t){return wm(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return G(t)?Ap(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||W(e)?t(e):n(e)}}var Am={name:`hardBreakEscape`,tokenize:jm};function jm(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return W(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Mm={name:`headingAtx`,resolve:Nm,tokenize:Pm};function Nm(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},up(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Pm(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Tp(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||W(n)?(e.exit(`atxHeading`),t(n)):G(n)?Ap(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Tp(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Fm=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Im=[`pre`,`script`,`style`,`textarea`],Lm={concrete:!0,name:`htmlFlow`,resolveTo:Bm,tokenize:Vm},Rm={partial:!0,tokenize:Um},zm={partial:!0,tokenize:Hm};function Bm(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Vm(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ne):vp(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):vp(a)?(e.consume(a),i=4,r.interrupt?t:ne):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ne):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return vp(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Tp(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Im.includes(l)?(i=1,r.interrupt?t(s):O(s)):Fm.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||yp(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return G(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||vp(t)?(e.consume(t),b):G(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||yp(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):G(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):G(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||W(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Tp(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||G(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||W(t)?O(t):G(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),j):t===60&&i===1?(e.consume(t),M):t===62&&i===4?(e.consume(t),re):t===63&&i===3?(e.consume(t),ne):t===93&&i===5?(e.consume(t),te):W(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Rm,ie,ee)(t)):t===null||W(t)?(e.exit(`htmlFlowData`),ee(t)):(e.consume(t),O)}function ee(t){return e.check(zm,k,ie)(t)}function k(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),A}function A(t){return t===null||W(t)?ee(t):(e.enter(`htmlFlowData`),O(t))}function j(t){return t===45?(e.consume(t),ne):O(t)}function M(t){return t===47?(e.consume(t),o=``,N):O(t)}function N(t){if(t===62){let n=o.toLowerCase();return Im.includes(n)?(e.consume(t),re):O(t)}return vp(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),N):O(t)}function te(t){return t===93?(e.consume(t),ne):O(t)}function ne(t){return t===62?(e.consume(t),re):t===45&&i===2?(e.consume(t),ne):O(t)}function re(t){return t===null||W(t)?(e.exit(`htmlFlowData`),ie(t)):(e.consume(t),re)}function ie(n){return e.exit(`htmlFlow`),t(n)}}function Hm(e,t,n){let r=this;return i;function i(t){return W(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Um(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Gp,t,n)}}var Wm={name:`htmlText`,tokenize:Gm};function Gm(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):vp(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):vp(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):W(t)?(o=d,M(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?j(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):W(t)?(o=h,M(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?j(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?j(t):W(t)?(o=v,M(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):W(t)?(o=y,M(t)):(e.consume(t),y)}function b(e){return e===62?j(e):y(e)}function x(t){return vp(t)?(e.consume(t),S):n(t)}function S(t){return t===45||yp(t)?(e.consume(t),S):C(t)}function C(t){return W(t)?(o=C,M(t)):G(t)?(e.consume(t),C):j(t)}function w(t){return t===45||yp(t)?(e.consume(t),w):t===47||t===62||Tp(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),j):t===58||t===95||vp(t)?(e.consume(t),E):W(t)?(o=T,M(t)):G(t)?(e.consume(t),T):j(t)}function E(t){return t===45||t===46||t===58||t===95||yp(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):W(t)?(o=D,M(t)):G(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ee):W(t)?(o=O,M(t)):G(t)?(e.consume(t),O):(e.consume(t),k)}function ee(t){return t===i?(e.consume(t),i=void 0,A):t===null?n(t):W(t)?(o=ee,M(t)):(e.consume(t),ee)}function k(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Tp(t)?T(t):(e.consume(t),k)}function A(e){return e===47||e===62||Tp(e)?T(e):n(e)}function j(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function M(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),N}function N(t){return G(t)?Ap(e,te,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):te(t)}function te(t){return e.enter(`htmlTextData`),o(t)}}var Km={name:`labelEnd`,resolveAll:Xm,resolveTo:Zm,tokenize:Qm},qm={tokenize:$m},Jm={tokenize:eh},Ym={tokenize:th};function Xm(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&up(e,0,e.length,n),e}function Zm(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=dp(s,e.slice(a+1,a+r+3)),s=dp(s,[[`enter`,u,t]]),s=dp(s,Rp(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=dp(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=dp(s,e.slice(o+1)),s=dp(s,[[`exit`,c,t]]),up(e,a,e.length,s),e}function Qm(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(_p(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(qm,u,o?u:d)(t):t===91?e.attempt(Jm,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Ym,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function $m(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Tp(t)?Tm(e,a)(t):a(t)}function a(t){return t===41?u(t):Sm(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Tp(t)?Tm(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?wm(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Tp(t)?Tm(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function eh(e,t,n){let r=this;return i;function i(t){return Cm.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(_p(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function th(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var nh={name:`labelStartImage`,resolveAll:Km.resolveAll,tokenize:rh};function rh(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var ih={name:`labelStartLink`,resolveAll:Km.resolveAll,tokenize:ah};function ah(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var oh={name:`lineEnding`,tokenize:sh};function sh(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Ap(e,t,`linePrefix`)}}var ch={name:`thematicBreak`,tokenize:lh};function lh(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||W(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),G(t)?Ap(e,s,`whitespace`)(t):s(t))}}var uh={continuation:{tokenize:mh},exit:gh,name:`list`,tokenize:ph},dh={partial:!0,tokenize:_h},fh={partial:!0,tokenize:hh};function ph(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Sp(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(ch,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Sp(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Gp,r.interrupt?n:u,e.attempt(dh,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return G(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function mh(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Gp,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ap(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!G(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(fh,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ap(e,e.attempt(uh,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function hh(e,t,n){let r=this;return Ap(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function gh(e){e.exit(this.containerState.type)}function _h(e,t,n){let r=this;return Ap(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!G(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var vh={name:`setextUnderline`,resolveTo:yh,tokenize:bh};function yh(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function bh(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),G(t)?Ap(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||W(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var xh={tokenize:Sh};function Sh(e){let t=this,n=e.attempt(Gp,r,e.attempt(this.parser.constructs.flowInitial,i,Ap(e,e.attempt(this.parser.constructs.flow,i,e.attempt(_m,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Ch={resolveAll:Dh()},wh=Eh(`string`),Th=Eh(`text`);function Eh(e){return{resolveAll:Dh(e===`text`?Oh:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Dh(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Oh(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var kh=me({attentionMarkers:()=>Lh,contentInitial:()=>jh,disable:()=>Rh,document:()=>Ah,flow:()=>Nh,flowInitial:()=>Mh,insideSpan:()=>Ih,string:()=>Ph,text:()=>Fh}),Ah={42:uh,43:uh,45:uh,48:uh,49:uh,50:uh,51:uh,52:uh,53:uh,54:uh,55:uh,56:uh,57:uh,62:qp},jh={91:Em},Mh={[-2]:am,[-1]:am,32:am},Nh={35:Mm,42:ch,45:[vh,ch],60:Lm,61:vh,95:ch,96:nm,126:nm},Ph={38:$p,92:Zp},Fh={[-5]:oh,[-4]:oh,[-3]:oh,33:nh,38:$p,42:zp,60:[Up,Wm],91:ih,92:[Am,Zp],93:Km,95:zp,96:lm},Ih={null:[zp,Ch]},Lh={null:[42,95]},Rh={null:[]};function zh(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=dp(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Rp(a,l.events,l),l.events):[]}function f(e,t){return Vh(p(e),t)}function p(e){return Bh(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){W(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&up(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Bh(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Vh(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
16
|
-
`;break;case-3:o=`\r
|
|
17
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Hh(e){let t={constructs:pp([kh,...(e||{}).extensions||[]]),content:n(jp),defined:[],document:n(Np),flow:n(xh),lazy:{},string:n(wh),text:n(Th)};return t;function n(e){return n;function n(n){return zh(t,e,n)}}}function Uh(e){for(;!hm(e););return e}var Wh=/[\0\t\n\r]/g;function Gh(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(Wh.lastIndex=u,c=Wh.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Kh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qh(e){return e.replace(Kh,Jh)}function Jh(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return gp(n.slice(t?2:1),t?16:10)}return lp(n)||e}var Yh={}.hasOwnProperty;function Xh(e,t,n){return typeof t!=`string`&&(n=t,t=void 0),Zh(n)(Uh(Hh(n).document().write(Gh()(e,t,!0))))}function Zh(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(be),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ge),blockQuote:a(de),characterEscape:T,characterReference:T,codeFenced:a(fe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(fe,o),codeText:a(pe,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(me),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(he),hardBreakEscape:a(_e),hardBreakTrailing:a(_e),htmlFlow:a(ve,o),htmlFlowData:T,htmlText:a(ve,o),htmlTextData:T,image:a(ye),label:o,link:a(be),listItem:a(Se),listItemValue:f,listOrdered:a(xe,d),listUnordered:a(xe),paragraph:a(Ce),reference:ae,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ge),strong:a(F),thematicBreak:a(Te)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ue,autolinkProtocol:le,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:oe,characterReferenceMarkerNumeric:oe,characterReferenceValue:se,characterReference:ce,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(A),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(ee),htmlFlowData:E,htmlText:c(k),htmlTextData:E,image:c(M),label:te,labelText:N,lineEnding:D,link:c(j),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:P,resourceDestinationString:ne,resourceTitleString:re,resource:ie,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};$h(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];Yh.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||tg).call(a,void 0,e[0])}for(r.position={start:Qh(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Qh(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Qh(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tg).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+xf({start:e.start,end:e.end})+`): it’s not open`);n.position.end=Qh(e.end)}function u(){return rp(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=_p(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=we(),n.position={start:Qh(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Qh(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Qh(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=qh(t),n.identifier=_p(t).toLowerCase()}function te(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function re(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ie(){this.data.inReference=void 0}function ae(){this.data.referenceType=`collapsed`}function P(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=_p(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function oe(e){this.data.characterReferenceType=e.type}function se(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=gp(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=lp(t);let i=this.stack[this.stack.length-1];i.value+=r}function ce(e){let t=this.stack.pop();t.position.end=Qh(e.end)}function le(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ue(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function de(){return{type:`blockquote`,children:[]}}function fe(){return{type:`code`,lang:null,meta:null,value:``}}function pe(){return{type:`inlineCode`,value:``}}function me(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function he(){return{type:`emphasis`,children:[]}}function ge(){return{type:`heading`,depth:0,children:[]}}function _e(){return{type:`break`}}function ve(){return{type:`html`,value:``}}function ye(){return{type:`image`,title:null,url:``,alt:null}}function be(){return{type:`link`,title:null,url:``,children:[]}}function xe(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Se(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Ce(){return{type:`paragraph`,children:[]}}function F(){return{type:`strong`,children:[]}}function we(){return{type:`text`,value:``}}function Te(){return{type:`thematicBreak`}}}function Qh(e){return{line:e.line,column:e.column,offset:e.offset}}function $h(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?$h(e,r):eg(e,r)}}function eg(e,t){let n;for(n in t)if(Yh.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function tg(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+xf({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+xf({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+xf({start:t.start,end:t.end})+`) is still open`)}function ng(e){let t=this;t.parser=n;function n(n){return Xh(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function rg(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ig(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
18
|
-
`}]}function ag(e,t){let n=t.value?t.value+`
|
|
19
|
-
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function og(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sg(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cg(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=kp(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function lg(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ug(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function dg(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function fg(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dg(e,t);let i={src:kp(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function pg(e,t){let n={src:kp(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function mg(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function hg(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dg(e,t);let i={href:kp(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function gg(e,t){let n={href:kp(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _g(e,t,n){let r=e.all(t),i=n?vg(n):yg(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
20
|
-
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
21
|
-
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function vg(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=yg(n[r])}return t}function yg(e){return e.spread??e.children.length>1}function bg(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function xg(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sg(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Cg(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wg(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=vf(t.children[1]),o=_f(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Tg(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function Eg(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Dg=9,Og=32;function kg(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Ag(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Ag(t.slice(i),i>0,!1)),a.join(``)}function Ag(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Dg||t===Og;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Dg||t===Og;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function jg(e,t){let n={type:`text`,value:kg(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Mg(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Ng={blockquote:rg,break:ig,code:ag,delete:og,emphasis:sg,footnoteReference:cg,heading:lg,html:ug,imageReference:fg,image:pg,inlineCode:mg,linkReference:hg,link:gg,listItem:_g,list:bg,paragraph:xg,root:Sg,strong:Cg,table:wg,tableCell:Eg,tableRow:Tg,text:jg,thematicBreak:Mg,toml:Pg,yaml:Pg,definition:Pg,footnoteDefinition:Pg};function Pg(){}var Fg=typeof self==`object`?self:globalThis,Ig=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new Fg[e](t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new Fg[a](o),i)};return r},Lg=e=>Ig(new Map,e)(0),Rg=``,{toString:zg}={},{keys:Bg}=Object,Vg=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=zg.call(e).slice(8,-1);switch(n){case`Array`:return[1,Rg];case`Object`:return[2,Rg];case`Date`:return[3,Rg];case`RegExp`:return[4,Rg];case`Map`:return[5,Rg];case`Set`:return[6,Rg];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},Hg=([e,t])=>e===0&&(t===`function`||t===`symbol`),Ug=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=Vg(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of Bg(r))(e||!Hg(Vg(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(Hg(Vg(n))||Hg(Vg(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!Hg(Vg(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},Wg=(e,{json:t,lossy:n}={})=>{let r=[];return Ug(!(t||n),!!t,new Map,r)(e),r},Gg=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?Lg(Wg(e,t)):structuredClone(e):(e,t)=>Lg(Wg(e,t));function Kg(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function qg(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Jg(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||Kg,r=e.options.footnoteBackLabel||qg,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=kp(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...Gg(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
22
|
-
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
23
|
-
`}]}}var Yg=(function(e){if(e==null)return e_;if(typeof e==`function`)return $g(e);if(typeof e==`object`)return Array.isArray(e)?Xg(e):Zg(e);if(typeof e==`string`)return Qg(e);throw Error(`Expected function, string, or object as test`)});function Xg(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Yg(e[n]);return $g(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Zg(e){let t=e;return $g(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function Qg(e){return $g(t);function t(t){return t&&t.type===e}}function $g(e){return t;function t(t,n,r){return!!(t_(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function e_(){return!0}function t_(e){return typeof e==`object`&&!!e&&`type`in e}function n_(e){return e}var r_=[];function i_(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=Yg(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+n_(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=r_,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=a_(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function a_(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?r_:[e]}function o_(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),i_(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var s_={}.hasOwnProperty,c_={};function l_(e,t){let n=t||c_,r=new Map,i=new Map,a={all:s,applyData:d_,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Ng,...n.handlers},one:o,options:n,patch:u_,wrap:p_};return o_(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(s_.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=Gg(n);return r.children=a.all(e),r}return Gg(e)}return(a.options.unknownHandler||f_)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=m_(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=m_(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function u_(e,t){e.position&&(t.position=bf(e))}function d_(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,Gg(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function f_(e,t){let n=t.data||{},r=`value`in t&&!(s_.call(n,`hProperties`)||s_.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function p_(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
24
|
-
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
25
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
26
|
-
`}),n}function m_(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function h_(e,t){let n=l_(e,t),r=n.one(e,void 0),i=Jg(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
27
|
-
`},i)),a}function g_(e,t){return e&&`run`in e?async function(n,r){let i=h_(n,{file:r,...t});await e.run(i,r)}:function(n,r){return h_(n,{file:r,...e||t})}}function __(e){if(e)throw e}var v_=x(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function y_(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function b_(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?x_(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function x_(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var S_={basename:C_,dirname:w_,extname:T_,join:E_,sep:`/`};function C_(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);k_(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function w_(e){if(k_(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function T_(e){k_(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function E_(...e){let t=-1,n;for(;++t<e.length;)k_(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:D_(n)}function D_(e){k_(e);let t=e.codePointAt(0)===47,n=O_(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function O_(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function k_(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var A_={cwd:j_};function j_(){return`/`}function M_(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function N_(e){if(typeof e==`string`)e=new URL(e);else if(!M_(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return P_(e)}function P_(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var F_=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],I_=class{constructor(e){let t;t=e?M_(e)?{path:e}:typeof e==`string`||B_(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:A_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<F_.length;){let e=F_[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)F_.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?S_.basename(this.path):void 0}set basename(e){R_(e,`basename`),L_(e,`basename`),this.path=S_.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?S_.dirname(this.path):void 0}set dirname(e){z_(this.basename,`dirname`),this.path=S_.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?S_.extname(this.path):void 0}set extname(e){if(L_(e,`extname`),z_(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=S_.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){M_(e)&&(e=N_(e)),R_(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?S_.basename(this.path,this.extname):void 0}set stem(e){R_(e,`stem`),L_(e,`stem`),this.path=S_.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Tf(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function L_(e,t){if(e&&e.includes(S_.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+S_.sep+"`")}function R_(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function z_(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function B_(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var V_=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),H_=e(v_(),1),U_={}.hasOwnProperty,W_=new class e extends V_{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=b_()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,H_.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(q_(`data`,this.frozen),this.namespace[e]=t,this):U_.call(this.namespace,e)&&this.namespace[e]||void 0:e?(q_(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=X_(e),n=this.parser||this.Parser;return G_(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),G_(`process`,this.parser||this.Parser),K_(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=X_(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);Q_(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),G_(`processSync`,this.parser||this.Parser),K_(`processSync`,this.compiler||this.Compiler),this.process(e,r),Y_(`processSync`,`process`,t),n;function r(e,r){t=!0,__(e),n=r}}run(e,t,n){J_(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=X_(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),Y_(`runSync`,`run`,n),r;function i(e,t){__(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=X_(t),r=this.compiler||this.Compiler;return K_(`stringify`,r),J_(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(q_(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,H_.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];y_(o)&&y_(r)&&(r=(0,H_.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function G_(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function K_(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function q_(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function J_(e){if(!y_(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function Y_(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function X_(e){return Z_(e)?e:new I_(e)}function Z_(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function Q_(e){return typeof e==`string`||$_(e)}function $_(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var ev=[],tv={allowDangerousHtml:!0},nv=/^(https?|ircs?|mailto|xmpp)$/i,rv=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function iv(e){let t=av(e),n=ov(e);return sv(t.runSync(t.parse(n),n),e)}function av(e){let t=e.rehypePlugins||ev,n=e.remarkPlugins||ev,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...tv}:tv;return W_().use(ng).use(n).use(g_,r).use(t)}function ov(e){let t=e.children||``,n=new I_;return typeof t==`string`?n.value=t:``+t,n}function sv(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||cv;for(let e of rv)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return o_(e,l),Nf(e,{Fragment:z.Fragment,components:i,ignoreInvalidStyle:!0,jsx:z.jsx,jsxs:z.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in tp)if(Object.hasOwn(tp,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=tp[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function cv(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||nv.test(e.slice(0,t))?e:``}var lv=/[#.]/g;function uv(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){lv.lastIndex=i;let e=lv.exec(n),t=n.slice(i,e?e.index:n.length);t&&(a?a===`#`?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,i+=t.length),e&&(a=e[0],i++)}return{type:`element`,tagName:o||t||`div`,properties:r,children:[]}}function dv(e,t,n){let r=n?_v(n):void 0;function i(n,i,...a){let o;if(n==null){o={type:`root`,children:[]};let e=i;a.unshift(e)}else{o=uv(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,fv(i))a.unshift(i);else for(let[t,n]of Object.entries(i))pv(e,o.properties,t,n)}for(let e of a)mv(o.children,e);return o.type===`element`&&o.tagName===`template`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function fv(e){if(typeof e!=`object`||!e||Array.isArray(e))return!0;if(typeof e.type!=`string`)return!1;let t=e,n=Object.keys(e);for(let e of n){let n=t[e];if(n&&typeof n==`object`){if(!Array.isArray(n))return!0;let e=n;for(let t of e)if(typeof t!=`number`&&typeof t!=`string`)return!0}}return!!(`children`in e&&Array.isArray(e.children))}function pv(e,t,n,r){let i=of(e,n),a;if(r!=null){if(typeof r==`number`){if(Number.isNaN(r))return;a=r}else a=typeof r==`boolean`?r:typeof r==`string`?i.spaceSeparated?df(r):i.commaSeparated?Sd(r):i.commaOrSpaceSeparated?df(Sd(r).join(` `)):hv(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?gv(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(hv(i,i.property,t));a=e}i.property===`className`&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function mv(e,t){if(t!=null)if(typeof t==`number`||typeof t==`string`)e.push({type:`text`,value:String(t)});else if(Array.isArray(t))for(let n of t)mv(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?mv(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}function hv(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||Nd(n)===Nd(t)))return!0}return n}function gv(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function _v(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var vv=`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`.split(`.`),yv=dv(lf,`div`),bv=dv(uf,`g`,vv);function xv(e){let t=String(e),n=[];return{toOffset:i,toPoint:r};function r(e){if(typeof e==`number`&&e>-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(i===void 0){let e=Sv(t,n[r-1]);i=e===-1?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}function i(e){if(e&&typeof e.line==`number`&&typeof e.column==`number`&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){let e=n[n.length-1],r=Sv(t,e),i=r===-1?t.length+1:r+1;if(e===i)break;n.push(i)}let r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}}}function Sv(e,t){let n=e.indexOf(`\r`,t),r=e.indexOf(`
|
|
28
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}var Cv={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/`},wv={}.hasOwnProperty,Tv=Object.prototype;function Ev(e,t){let n=t||{};return Dv({file:n.file||void 0,location:!1,schema:n.space===`svg`?uf:lf,verbose:n.verbose||!1},e)}function Dv(e,t){let n;switch(t.nodeName){case`#comment`:{let r=t;return n={type:`comment`,value:r.data},Av(e,r,n),n}case`#document`:case`#document-fragment`:{let r=t,i=`mode`in r?r.mode===`quirks`||r.mode===`limited-quirks`:!1;if(n={type:`root`,children:Ov(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){let t=String(e.file),r=xv(t),i=r.toPoint(0),a=r.toPoint(t.length);n.position={start:i,end:a}}return n}case`#documentType`:{let r=t;return n={type:`doctype`},Av(e,r,n),n}case`#text`:{let r=t;return n={type:`text`,value:r.value},Av(e,r,n),n}default:return n=kv(e,t),n}}function Ov(e,t){let n=-1,r=[];for(;++n<t.length;){let i=Dv(e,t[n]);r.push(i)}return r}function kv(e,t){let n=e.schema;e.schema=t.namespaceURI===Cv.svg?uf:lf;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+`:`:``)+e.name;wv.call(Tv,n)||(i[n]=e.value)}let a=(e.schema.space===`svg`?bv:yv)(t.tagName,i,Ov(e,t.childNodes));if(Av(e,t,a),a.tagName===`template`){let n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&Mv(r.startTag),o=r&&r.endTag&&Mv(r.endTag),s=Dv(e,n.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=n,a}function Av(e,t,n){if(`sourceCodeLocation`in t&&t.sourceCodeLocation&&e.file){let r=jv(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function jv(e,t,n){let r=Mv(n);if(t.type===`element`){let i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){let r={},i;if(n.attrs)for(i in n.attrs)wv.call(n.attrs,i)&&(r[of(e.schema,i).property]=Mv(n.attrs[i]));n.startTag;let a=Mv(n.startTag),o=n.endTag?Mv(n.endTag):void 0,s={opening:a};o&&(s.closing=o),s.properties=r,t.data={position:s}}}return r}function Mv(e){let t=Nv({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Nv({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Nv(e){return e.line&&e.column?e:void 0}var Pv={}.hasOwnProperty;function Fv(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&Pv.call(t,e)){let n=String(t[e]);i=Pv.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Iv={},Lv={}.hasOwnProperty,Rv=Fv(`type`,{handlers:{root:Bv,element:Gv,text:Uv,comment:Wv,doctype:Hv}});function zv(e,t){let n=(t||Iv).space;return Rv(e,n===`svg`?uf:lf)}function Bv(e,t){let n={nodeName:`#document`,mode:(e.data||{}).quirksMode?`quirks`:`no-quirks`,childNodes:[]};return n.childNodes=qv(e.children,n,t),Jv(e,n),n}function Vv(e,t){let n={nodeName:`#document-fragment`,childNodes:[]};return n.childNodes=qv(e.children,n,t),Jv(e,n),n}function Hv(e){let t={nodeName:`#documentType`,name:`html`,publicId:``,systemId:``,parentNode:null};return Jv(e,t),t}function Uv(e){let t={nodeName:`#text`,value:e.value,parentNode:null};return Jv(e,t),t}function Wv(e){let t={nodeName:`#comment`,data:e.value,parentNode:null};return Jv(e,t),t}function Gv(e,t){let n=t,r=n;e.type===`element`&&e.tagName.toLowerCase()===`svg`&&n.space===`html`&&(r=uf);let i=[],a;if(e.properties){for(a in e.properties)if(a!==`children`&&Lv.call(e.properties,a)){let t=Kv(r,a,e.properties[a]);t&&i.push(t)}}let o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Cv[o],childNodes:[],parentNode:null};return s.childNodes=qv(e.children,s,r),Jv(e,s),e.tagName===`template`&&e.content&&(s.content=Vv(e.content,r)),s}function Kv(e,t,n){let r=of(e,t);if(n===!1||n==null||typeof n==`number`&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Cd(n):ff(n));let i={name:r.attribute,value:n===!0?``:String(n)};if(r.space&&r.space!==`html`&&r.space!==`svg`){let e=i.name.indexOf(`:`);e<0?i.prefix=``:(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=Cv[r.space]}return i}function qv(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=Rv(e[r],n);a.parentNode=t,i.push(a)}return i}function Jv(e,t){let n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.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})}var Yv=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],Xv=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]),K;(function(e){e[e.EOF=-1]=`EOF`,e[e.NULL=0]=`NULL`,e[e.TABULATION=9]=`TABULATION`,e[e.CARRIAGE_RETURN=13]=`CARRIAGE_RETURN`,e[e.LINE_FEED=10]=`LINE_FEED`,e[e.FORM_FEED=12]=`FORM_FEED`,e[e.SPACE=32]=`SPACE`,e[e.EXCLAMATION_MARK=33]=`EXCLAMATION_MARK`,e[e.QUOTATION_MARK=34]=`QUOTATION_MARK`,e[e.AMPERSAND=38]=`AMPERSAND`,e[e.APOSTROPHE=39]=`APOSTROPHE`,e[e.HYPHEN_MINUS=45]=`HYPHEN_MINUS`,e[e.SOLIDUS=47]=`SOLIDUS`,e[e.DIGIT_0=48]=`DIGIT_0`,e[e.DIGIT_9=57]=`DIGIT_9`,e[e.SEMICOLON=59]=`SEMICOLON`,e[e.LESS_THAN_SIGN=60]=`LESS_THAN_SIGN`,e[e.EQUALS_SIGN=61]=`EQUALS_SIGN`,e[e.GREATER_THAN_SIGN=62]=`GREATER_THAN_SIGN`,e[e.QUESTION_MARK=63]=`QUESTION_MARK`,e[e.LATIN_CAPITAL_A=65]=`LATIN_CAPITAL_A`,e[e.LATIN_CAPITAL_Z=90]=`LATIN_CAPITAL_Z`,e[e.RIGHT_SQUARE_BRACKET=93]=`RIGHT_SQUARE_BRACKET`,e[e.GRAVE_ACCENT=96]=`GRAVE_ACCENT`,e[e.LATIN_SMALL_A=97]=`LATIN_SMALL_A`,e[e.LATIN_SMALL_Z=122]=`LATIN_SMALL_Z`})(K||={});var Zv={DASH_DASH:`--`,CDATA_START:`[CDATA[`,DOCTYPE:`doctype`,SCRIPT:`script`,PUBLIC:`public`,SYSTEM:`system`};function Qv(e){return e>=55296&&e<=57343}function $v(e){return e>=56320&&e<=57343}function ey(e,t){return(e-55296)*1024+9216+t}function ty(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ny(e){return e>=64976&&e<=65007||Xv.has(e)}var q;(function(e){e.controlCharacterInInputStream=`control-character-in-input-stream`,e.noncharacterInInputStream=`noncharacter-in-input-stream`,e.surrogateInInputStream=`surrogate-in-input-stream`,e.nonVoidHtmlElementStartTagWithTrailingSolidus=`non-void-html-element-start-tag-with-trailing-solidus`,e.endTagWithAttributes=`end-tag-with-attributes`,e.endTagWithTrailingSolidus=`end-tag-with-trailing-solidus`,e.unexpectedSolidusInTag=`unexpected-solidus-in-tag`,e.unexpectedNullCharacter=`unexpected-null-character`,e.unexpectedQuestionMarkInsteadOfTagName=`unexpected-question-mark-instead-of-tag-name`,e.invalidFirstCharacterOfTagName=`invalid-first-character-of-tag-name`,e.unexpectedEqualsSignBeforeAttributeName=`unexpected-equals-sign-before-attribute-name`,e.missingEndTagName=`missing-end-tag-name`,e.unexpectedCharacterInAttributeName=`unexpected-character-in-attribute-name`,e.unknownNamedCharacterReference=`unknown-named-character-reference`,e.missingSemicolonAfterCharacterReference=`missing-semicolon-after-character-reference`,e.unexpectedCharacterAfterDoctypeSystemIdentifier=`unexpected-character-after-doctype-system-identifier`,e.unexpectedCharacterInUnquotedAttributeValue=`unexpected-character-in-unquoted-attribute-value`,e.eofBeforeTagName=`eof-before-tag-name`,e.eofInTag=`eof-in-tag`,e.missingAttributeValue=`missing-attribute-value`,e.missingWhitespaceBetweenAttributes=`missing-whitespace-between-attributes`,e.missingWhitespaceAfterDoctypePublicKeyword=`missing-whitespace-after-doctype-public-keyword`,e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers=`missing-whitespace-between-doctype-public-and-system-identifiers`,e.missingWhitespaceAfterDoctypeSystemKeyword=`missing-whitespace-after-doctype-system-keyword`,e.missingQuoteBeforeDoctypePublicIdentifier=`missing-quote-before-doctype-public-identifier`,e.missingQuoteBeforeDoctypeSystemIdentifier=`missing-quote-before-doctype-system-identifier`,e.missingDoctypePublicIdentifier=`missing-doctype-public-identifier`,e.missingDoctypeSystemIdentifier=`missing-doctype-system-identifier`,e.abruptDoctypePublicIdentifier=`abrupt-doctype-public-identifier`,e.abruptDoctypeSystemIdentifier=`abrupt-doctype-system-identifier`,e.cdataInHtmlContent=`cdata-in-html-content`,e.incorrectlyOpenedComment=`incorrectly-opened-comment`,e.eofInScriptHtmlCommentLikeText=`eof-in-script-html-comment-like-text`,e.eofInDoctype=`eof-in-doctype`,e.nestedComment=`nested-comment`,e.abruptClosingOfEmptyComment=`abrupt-closing-of-empty-comment`,e.eofInComment=`eof-in-comment`,e.incorrectlyClosedComment=`incorrectly-closed-comment`,e.eofInCdata=`eof-in-cdata`,e.absenceOfDigitsInNumericCharacterReference=`absence-of-digits-in-numeric-character-reference`,e.nullCharacterReference=`null-character-reference`,e.surrogateCharacterReference=`surrogate-character-reference`,e.characterReferenceOutsideUnicodeRange=`character-reference-outside-unicode-range`,e.controlCharacterReference=`control-character-reference`,e.noncharacterCharacterReference=`noncharacter-character-reference`,e.missingWhitespaceBeforeDoctypeName=`missing-whitespace-before-doctype-name`,e.missingDoctypeName=`missing-doctype-name`,e.invalidCharacterSequenceAfterDoctypeName=`invalid-character-sequence-after-doctype-name`,e.duplicateAttribute=`duplicate-attribute`,e.nonConformingDoctype=`non-conforming-doctype`,e.missingDoctype=`missing-doctype`,e.misplacedDoctype=`misplaced-doctype`,e.endTagWithoutMatchingOpenElement=`end-tag-without-matching-open-element`,e.closingOfElementWithOpenChildElements=`closing-of-element-with-open-child-elements`,e.disallowedContentInNoscriptInHead=`disallowed-content-in-noscript-in-head`,e.openElementsLeftAfterEof=`open-elements-left-after-eof`,e.abandonedHeadElementChild=`abandoned-head-element-child`,e.misplacedStartTagForHeadElement=`misplaced-start-tag-for-head-element`,e.nestedNoscriptInHead=`nested-noscript-in-head`,e.eofInElementThatCanContainOnlyText=`eof-in-element-that-can-contain-only-text`})(q||={});var ry=65536,iy=class{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=ry,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:r,offset:i}=this,a=r+t,o=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,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){let t=this.html.charCodeAt(this.pos+1);if($v(t))return this.pos++,this._addGap(),ey(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,K.EOF;return this._err(q.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,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((this.html.charCodeAt(this.pos+t)|32)!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,K.EOF;let n=this.html.charCodeAt(t);return n===K.CARRIAGE_RETURN?K.LINE_FEED:n}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,K.EOF;let e=this.html.charCodeAt(this.pos);return e===K.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,K.LINE_FEED):e===K.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Qv(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===K.LINE_FEED||e===K.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){ty(e)?this._err(q.controlCharacterInInputStream):ny(e)&&this._err(q.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}},ay;(function(e){e[e.CHARACTER=0]=`CHARACTER`,e[e.NULL_CHARACTER=1]=`NULL_CHARACTER`,e[e.WHITESPACE_CHARACTER=2]=`WHITESPACE_CHARACTER`,e[e.START_TAG=3]=`START_TAG`,e[e.END_TAG=4]=`END_TAG`,e[e.COMMENT=5]=`COMMENT`,e[e.DOCTYPE=6]=`DOCTYPE`,e[e.EOF=7]=`EOF`,e[e.HIBERNATION=8]=`HIBERNATION`})(ay||={});function oy(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var sy=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肻\xA0ଷ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(e=>e.charCodeAt(0))),cy=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]]);String.fromCodePoint;function ly(e){return e>=55296&&e<=57343||e>1114111?65533:cy.get(e)??e}var uy;(function(e){e[e.NUM=35]=`NUM`,e[e.SEMI=59]=`SEMI`,e[e.EQUALS=61]=`EQUALS`,e[e.ZERO=48]=`ZERO`,e[e.NINE=57]=`NINE`,e[e.LOWER_A=97]=`LOWER_A`,e[e.LOWER_F=102]=`LOWER_F`,e[e.LOWER_X=120]=`LOWER_X`,e[e.LOWER_Z=122]=`LOWER_Z`,e[e.UPPER_A=65]=`UPPER_A`,e[e.UPPER_F=70]=`UPPER_F`,e[e.UPPER_Z=90]=`UPPER_Z`})(uy||={});var dy=32,fy;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(fy||={});function py(e){return e>=uy.ZERO&&e<=uy.NINE}function my(e){return e>=uy.UPPER_A&&e<=uy.UPPER_F||e>=uy.LOWER_A&&e<=uy.LOWER_F}function hy(e){return e>=uy.UPPER_A&&e<=uy.UPPER_Z||e>=uy.LOWER_A&&e<=uy.LOWER_Z||py(e)}function gy(e){return e===uy.EQUALS||hy(e)}var _y;(function(e){e[e.EntityStart=0]=`EntityStart`,e[e.NumericStart=1]=`NumericStart`,e[e.NumericDecimal=2]=`NumericDecimal`,e[e.NumericHex=3]=`NumericHex`,e[e.NamedEntity=4]=`NamedEntity`})(_y||={});var vy;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(vy||={});var yy=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=_y.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=vy.Strict}startEntity(e){this.decodeMode=e,this.state=_y.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case _y.EntityStart:return e.charCodeAt(t)===uy.NUM?(this.state=_y.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=_y.NamedEntity,this.stateNamedEntity(e,t));case _y.NumericStart:return this.stateNumericStart(e,t);case _y.NumericDecimal:return this.stateNumericDecimal(e,t);case _y.NumericHex:return this.stateNumericHex(e,t);case _y.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|dy)===uy.LOWER_X?(this.state=_y.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=_y.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*r**+i+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(py(r)||my(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let r=e.charCodeAt(t);if(py(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===uy.SEMI)this.consumed+=1;else if(this.decodeMode===vy.Strict)return 0;return this.emitCodePoint(ly(this.result),this.consumed),this.errors&&(e!==uy.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&fy.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=by(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===vy.Attribute&&(i===0||gy(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&fy.VALUE_LENGTH)>>14,i!==0){if(a===uy.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==vy.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&fy.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~fy.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case _y.NamedEntity:return this.result!==0&&(this.decodeMode!==vy.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case _y.NumericDecimal:return this.emitNumericEntity(0,2);case _y.NumericHex:return this.emitNumericEntity(0,3);case _y.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case _y.EntityStart:return 0}}};function by(e,t,n,r){let i=(t&fy.BRANCH_LENGTH)>>7,a=t&fy.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=n,s=o+i-1;for(;o<=s;){let t=o+s>>>1,n=e[t];if(n<r)o=t+1;else if(n>r)s=t-1;else return e[t+i]}return-1}var J;(function(e){e.HTML=`http://www.w3.org/1999/xhtml`,e.MATHML=`http://www.w3.org/1998/Math/MathML`,e.SVG=`http://www.w3.org/2000/svg`,e.XLINK=`http://www.w3.org/1999/xlink`,e.XML=`http://www.w3.org/XML/1998/namespace`,e.XMLNS=`http://www.w3.org/2000/xmlns/`})(J||={});var xy;(function(e){e.TYPE=`type`,e.ACTION=`action`,e.ENCODING=`encoding`,e.PROMPT=`prompt`,e.NAME=`name`,e.COLOR=`color`,e.FACE=`face`,e.SIZE=`size`})(xy||={});var Sy;(function(e){e.NO_QUIRKS=`no-quirks`,e.QUIRKS=`quirks`,e.LIMITED_QUIRKS=`limited-quirks`})(Sy||={});var Y;(function(e){e.A=`a`,e.ADDRESS=`address`,e.ANNOTATION_XML=`annotation-xml`,e.APPLET=`applet`,e.AREA=`area`,e.ARTICLE=`article`,e.ASIDE=`aside`,e.B=`b`,e.BASE=`base`,e.BASEFONT=`basefont`,e.BGSOUND=`bgsound`,e.BIG=`big`,e.BLOCKQUOTE=`blockquote`,e.BODY=`body`,e.BR=`br`,e.BUTTON=`button`,e.CAPTION=`caption`,e.CENTER=`center`,e.CODE=`code`,e.COL=`col`,e.COLGROUP=`colgroup`,e.DD=`dd`,e.DESC=`desc`,e.DETAILS=`details`,e.DIALOG=`dialog`,e.DIR=`dir`,e.DIV=`div`,e.DL=`dl`,e.DT=`dt`,e.EM=`em`,e.EMBED=`embed`,e.FIELDSET=`fieldset`,e.FIGCAPTION=`figcaption`,e.FIGURE=`figure`,e.FONT=`font`,e.FOOTER=`footer`,e.FOREIGN_OBJECT=`foreignObject`,e.FORM=`form`,e.FRAME=`frame`,e.FRAMESET=`frameset`,e.H1=`h1`,e.H2=`h2`,e.H3=`h3`,e.H4=`h4`,e.H5=`h5`,e.H6=`h6`,e.HEAD=`head`,e.HEADER=`header`,e.HGROUP=`hgroup`,e.HR=`hr`,e.HTML=`html`,e.I=`i`,e.IMG=`img`,e.IMAGE=`image`,e.INPUT=`input`,e.IFRAME=`iframe`,e.KEYGEN=`keygen`,e.LABEL=`label`,e.LI=`li`,e.LINK=`link`,e.LISTING=`listing`,e.MAIN=`main`,e.MALIGNMARK=`malignmark`,e.MARQUEE=`marquee`,e.MATH=`math`,e.MENU=`menu`,e.META=`meta`,e.MGLYPH=`mglyph`,e.MI=`mi`,e.MO=`mo`,e.MN=`mn`,e.MS=`ms`,e.MTEXT=`mtext`,e.NAV=`nav`,e.NOBR=`nobr`,e.NOFRAMES=`noframes`,e.NOEMBED=`noembed`,e.NOSCRIPT=`noscript`,e.OBJECT=`object`,e.OL=`ol`,e.OPTGROUP=`optgroup`,e.OPTION=`option`,e.P=`p`,e.PARAM=`param`,e.PLAINTEXT=`plaintext`,e.PRE=`pre`,e.RB=`rb`,e.RP=`rp`,e.RT=`rt`,e.RTC=`rtc`,e.RUBY=`ruby`,e.S=`s`,e.SCRIPT=`script`,e.SEARCH=`search`,e.SECTION=`section`,e.SELECT=`select`,e.SOURCE=`source`,e.SMALL=`small`,e.SPAN=`span`,e.STRIKE=`strike`,e.STRONG=`strong`,e.STYLE=`style`,e.SUB=`sub`,e.SUMMARY=`summary`,e.SUP=`sup`,e.TABLE=`table`,e.TBODY=`tbody`,e.TEMPLATE=`template`,e.TEXTAREA=`textarea`,e.TFOOT=`tfoot`,e.TD=`td`,e.TH=`th`,e.THEAD=`thead`,e.TITLE=`title`,e.TR=`tr`,e.TRACK=`track`,e.TT=`tt`,e.U=`u`,e.UL=`ul`,e.SVG=`svg`,e.VAR=`var`,e.WBR=`wbr`,e.XMP=`xmp`})(Y||={});var X;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.A=1]=`A`,e[e.ADDRESS=2]=`ADDRESS`,e[e.ANNOTATION_XML=3]=`ANNOTATION_XML`,e[e.APPLET=4]=`APPLET`,e[e.AREA=5]=`AREA`,e[e.ARTICLE=6]=`ARTICLE`,e[e.ASIDE=7]=`ASIDE`,e[e.B=8]=`B`,e[e.BASE=9]=`BASE`,e[e.BASEFONT=10]=`BASEFONT`,e[e.BGSOUND=11]=`BGSOUND`,e[e.BIG=12]=`BIG`,e[e.BLOCKQUOTE=13]=`BLOCKQUOTE`,e[e.BODY=14]=`BODY`,e[e.BR=15]=`BR`,e[e.BUTTON=16]=`BUTTON`,e[e.CAPTION=17]=`CAPTION`,e[e.CENTER=18]=`CENTER`,e[e.CODE=19]=`CODE`,e[e.COL=20]=`COL`,e[e.COLGROUP=21]=`COLGROUP`,e[e.DD=22]=`DD`,e[e.DESC=23]=`DESC`,e[e.DETAILS=24]=`DETAILS`,e[e.DIALOG=25]=`DIALOG`,e[e.DIR=26]=`DIR`,e[e.DIV=27]=`DIV`,e[e.DL=28]=`DL`,e[e.DT=29]=`DT`,e[e.EM=30]=`EM`,e[e.EMBED=31]=`EMBED`,e[e.FIELDSET=32]=`FIELDSET`,e[e.FIGCAPTION=33]=`FIGCAPTION`,e[e.FIGURE=34]=`FIGURE`,e[e.FONT=35]=`FONT`,e[e.FOOTER=36]=`FOOTER`,e[e.FOREIGN_OBJECT=37]=`FOREIGN_OBJECT`,e[e.FORM=38]=`FORM`,e[e.FRAME=39]=`FRAME`,e[e.FRAMESET=40]=`FRAMESET`,e[e.H1=41]=`H1`,e[e.H2=42]=`H2`,e[e.H3=43]=`H3`,e[e.H4=44]=`H4`,e[e.H5=45]=`H5`,e[e.H6=46]=`H6`,e[e.HEAD=47]=`HEAD`,e[e.HEADER=48]=`HEADER`,e[e.HGROUP=49]=`HGROUP`,e[e.HR=50]=`HR`,e[e.HTML=51]=`HTML`,e[e.I=52]=`I`,e[e.IMG=53]=`IMG`,e[e.IMAGE=54]=`IMAGE`,e[e.INPUT=55]=`INPUT`,e[e.IFRAME=56]=`IFRAME`,e[e.KEYGEN=57]=`KEYGEN`,e[e.LABEL=58]=`LABEL`,e[e.LI=59]=`LI`,e[e.LINK=60]=`LINK`,e[e.LISTING=61]=`LISTING`,e[e.MAIN=62]=`MAIN`,e[e.MALIGNMARK=63]=`MALIGNMARK`,e[e.MARQUEE=64]=`MARQUEE`,e[e.MATH=65]=`MATH`,e[e.MENU=66]=`MENU`,e[e.META=67]=`META`,e[e.MGLYPH=68]=`MGLYPH`,e[e.MI=69]=`MI`,e[e.MO=70]=`MO`,e[e.MN=71]=`MN`,e[e.MS=72]=`MS`,e[e.MTEXT=73]=`MTEXT`,e[e.NAV=74]=`NAV`,e[e.NOBR=75]=`NOBR`,e[e.NOFRAMES=76]=`NOFRAMES`,e[e.NOEMBED=77]=`NOEMBED`,e[e.NOSCRIPT=78]=`NOSCRIPT`,e[e.OBJECT=79]=`OBJECT`,e[e.OL=80]=`OL`,e[e.OPTGROUP=81]=`OPTGROUP`,e[e.OPTION=82]=`OPTION`,e[e.P=83]=`P`,e[e.PARAM=84]=`PARAM`,e[e.PLAINTEXT=85]=`PLAINTEXT`,e[e.PRE=86]=`PRE`,e[e.RB=87]=`RB`,e[e.RP=88]=`RP`,e[e.RT=89]=`RT`,e[e.RTC=90]=`RTC`,e[e.RUBY=91]=`RUBY`,e[e.S=92]=`S`,e[e.SCRIPT=93]=`SCRIPT`,e[e.SEARCH=94]=`SEARCH`,e[e.SECTION=95]=`SECTION`,e[e.SELECT=96]=`SELECT`,e[e.SOURCE=97]=`SOURCE`,e[e.SMALL=98]=`SMALL`,e[e.SPAN=99]=`SPAN`,e[e.STRIKE=100]=`STRIKE`,e[e.STRONG=101]=`STRONG`,e[e.STYLE=102]=`STYLE`,e[e.SUB=103]=`SUB`,e[e.SUMMARY=104]=`SUMMARY`,e[e.SUP=105]=`SUP`,e[e.TABLE=106]=`TABLE`,e[e.TBODY=107]=`TBODY`,e[e.TEMPLATE=108]=`TEMPLATE`,e[e.TEXTAREA=109]=`TEXTAREA`,e[e.TFOOT=110]=`TFOOT`,e[e.TD=111]=`TD`,e[e.TH=112]=`TH`,e[e.THEAD=113]=`THEAD`,e[e.TITLE=114]=`TITLE`,e[e.TR=115]=`TR`,e[e.TRACK=116]=`TRACK`,e[e.TT=117]=`TT`,e[e.U=118]=`U`,e[e.UL=119]=`UL`,e[e.SVG=120]=`SVG`,e[e.VAR=121]=`VAR`,e[e.WBR=122]=`WBR`,e[e.XMP=123]=`XMP`})(X||={});var Cy=new Map([[Y.A,X.A],[Y.ADDRESS,X.ADDRESS],[Y.ANNOTATION_XML,X.ANNOTATION_XML],[Y.APPLET,X.APPLET],[Y.AREA,X.AREA],[Y.ARTICLE,X.ARTICLE],[Y.ASIDE,X.ASIDE],[Y.B,X.B],[Y.BASE,X.BASE],[Y.BASEFONT,X.BASEFONT],[Y.BGSOUND,X.BGSOUND],[Y.BIG,X.BIG],[Y.BLOCKQUOTE,X.BLOCKQUOTE],[Y.BODY,X.BODY],[Y.BR,X.BR],[Y.BUTTON,X.BUTTON],[Y.CAPTION,X.CAPTION],[Y.CENTER,X.CENTER],[Y.CODE,X.CODE],[Y.COL,X.COL],[Y.COLGROUP,X.COLGROUP],[Y.DD,X.DD],[Y.DESC,X.DESC],[Y.DETAILS,X.DETAILS],[Y.DIALOG,X.DIALOG],[Y.DIR,X.DIR],[Y.DIV,X.DIV],[Y.DL,X.DL],[Y.DT,X.DT],[Y.EM,X.EM],[Y.EMBED,X.EMBED],[Y.FIELDSET,X.FIELDSET],[Y.FIGCAPTION,X.FIGCAPTION],[Y.FIGURE,X.FIGURE],[Y.FONT,X.FONT],[Y.FOOTER,X.FOOTER],[Y.FOREIGN_OBJECT,X.FOREIGN_OBJECT],[Y.FORM,X.FORM],[Y.FRAME,X.FRAME],[Y.FRAMESET,X.FRAMESET],[Y.H1,X.H1],[Y.H2,X.H2],[Y.H3,X.H3],[Y.H4,X.H4],[Y.H5,X.H5],[Y.H6,X.H6],[Y.HEAD,X.HEAD],[Y.HEADER,X.HEADER],[Y.HGROUP,X.HGROUP],[Y.HR,X.HR],[Y.HTML,X.HTML],[Y.I,X.I],[Y.IMG,X.IMG],[Y.IMAGE,X.IMAGE],[Y.INPUT,X.INPUT],[Y.IFRAME,X.IFRAME],[Y.KEYGEN,X.KEYGEN],[Y.LABEL,X.LABEL],[Y.LI,X.LI],[Y.LINK,X.LINK],[Y.LISTING,X.LISTING],[Y.MAIN,X.MAIN],[Y.MALIGNMARK,X.MALIGNMARK],[Y.MARQUEE,X.MARQUEE],[Y.MATH,X.MATH],[Y.MENU,X.MENU],[Y.META,X.META],[Y.MGLYPH,X.MGLYPH],[Y.MI,X.MI],[Y.MO,X.MO],[Y.MN,X.MN],[Y.MS,X.MS],[Y.MTEXT,X.MTEXT],[Y.NAV,X.NAV],[Y.NOBR,X.NOBR],[Y.NOFRAMES,X.NOFRAMES],[Y.NOEMBED,X.NOEMBED],[Y.NOSCRIPT,X.NOSCRIPT],[Y.OBJECT,X.OBJECT],[Y.OL,X.OL],[Y.OPTGROUP,X.OPTGROUP],[Y.OPTION,X.OPTION],[Y.P,X.P],[Y.PARAM,X.PARAM],[Y.PLAINTEXT,X.PLAINTEXT],[Y.PRE,X.PRE],[Y.RB,X.RB],[Y.RP,X.RP],[Y.RT,X.RT],[Y.RTC,X.RTC],[Y.RUBY,X.RUBY],[Y.S,X.S],[Y.SCRIPT,X.SCRIPT],[Y.SEARCH,X.SEARCH],[Y.SECTION,X.SECTION],[Y.SELECT,X.SELECT],[Y.SOURCE,X.SOURCE],[Y.SMALL,X.SMALL],[Y.SPAN,X.SPAN],[Y.STRIKE,X.STRIKE],[Y.STRONG,X.STRONG],[Y.STYLE,X.STYLE],[Y.SUB,X.SUB],[Y.SUMMARY,X.SUMMARY],[Y.SUP,X.SUP],[Y.TABLE,X.TABLE],[Y.TBODY,X.TBODY],[Y.TEMPLATE,X.TEMPLATE],[Y.TEXTAREA,X.TEXTAREA],[Y.TFOOT,X.TFOOT],[Y.TD,X.TD],[Y.TH,X.TH],[Y.THEAD,X.THEAD],[Y.TITLE,X.TITLE],[Y.TR,X.TR],[Y.TRACK,X.TRACK],[Y.TT,X.TT],[Y.U,X.U],[Y.UL,X.UL],[Y.SVG,X.SVG],[Y.VAR,X.VAR],[Y.WBR,X.WBR],[Y.XMP,X.XMP]]);function wy(e){return Cy.get(e)??X.UNKNOWN}var Z=X,Ty={[J.HTML]:new Set([Z.ADDRESS,Z.APPLET,Z.AREA,Z.ARTICLE,Z.ASIDE,Z.BASE,Z.BASEFONT,Z.BGSOUND,Z.BLOCKQUOTE,Z.BODY,Z.BR,Z.BUTTON,Z.CAPTION,Z.CENTER,Z.COL,Z.COLGROUP,Z.DD,Z.DETAILS,Z.DIR,Z.DIV,Z.DL,Z.DT,Z.EMBED,Z.FIELDSET,Z.FIGCAPTION,Z.FIGURE,Z.FOOTER,Z.FORM,Z.FRAME,Z.FRAMESET,Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6,Z.HEAD,Z.HEADER,Z.HGROUP,Z.HR,Z.HTML,Z.IFRAME,Z.IMG,Z.INPUT,Z.LI,Z.LINK,Z.LISTING,Z.MAIN,Z.MARQUEE,Z.MENU,Z.META,Z.NAV,Z.NOEMBED,Z.NOFRAMES,Z.NOSCRIPT,Z.OBJECT,Z.OL,Z.P,Z.PARAM,Z.PLAINTEXT,Z.PRE,Z.SCRIPT,Z.SECTION,Z.SELECT,Z.SOURCE,Z.STYLE,Z.SUMMARY,Z.TABLE,Z.TBODY,Z.TD,Z.TEMPLATE,Z.TEXTAREA,Z.TFOOT,Z.TH,Z.THEAD,Z.TITLE,Z.TR,Z.TRACK,Z.UL,Z.WBR,Z.XMP]),[J.MATHML]:new Set([Z.MI,Z.MO,Z.MN,Z.MS,Z.MTEXT,Z.ANNOTATION_XML]),[J.SVG]:new Set([Z.TITLE,Z.FOREIGN_OBJECT,Z.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},Ey=new Set([Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6]);new Set([Y.STYLE,Y.SCRIPT,Y.XMP,Y.IFRAME,Y.NOEMBED,Y.NOFRAMES,Y.PLAINTEXT]);var Q;(function(e){e[e.DATA=0]=`DATA`,e[e.RCDATA=1]=`RCDATA`,e[e.RAWTEXT=2]=`RAWTEXT`,e[e.SCRIPT_DATA=3]=`SCRIPT_DATA`,e[e.PLAINTEXT=4]=`PLAINTEXT`,e[e.TAG_OPEN=5]=`TAG_OPEN`,e[e.END_TAG_OPEN=6]=`END_TAG_OPEN`,e[e.TAG_NAME=7]=`TAG_NAME`,e[e.RCDATA_LESS_THAN_SIGN=8]=`RCDATA_LESS_THAN_SIGN`,e[e.RCDATA_END_TAG_OPEN=9]=`RCDATA_END_TAG_OPEN`,e[e.RCDATA_END_TAG_NAME=10]=`RCDATA_END_TAG_NAME`,e[e.RAWTEXT_LESS_THAN_SIGN=11]=`RAWTEXT_LESS_THAN_SIGN`,e[e.RAWTEXT_END_TAG_OPEN=12]=`RAWTEXT_END_TAG_OPEN`,e[e.RAWTEXT_END_TAG_NAME=13]=`RAWTEXT_END_TAG_NAME`,e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]=`SCRIPT_DATA_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_END_TAG_OPEN=15]=`SCRIPT_DATA_END_TAG_OPEN`,e[e.SCRIPT_DATA_END_TAG_NAME=16]=`SCRIPT_DATA_END_TAG_NAME`,e[e.SCRIPT_DATA_ESCAPE_START=17]=`SCRIPT_DATA_ESCAPE_START`,e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]=`SCRIPT_DATA_ESCAPE_START_DASH`,e[e.SCRIPT_DATA_ESCAPED=19]=`SCRIPT_DATA_ESCAPED`,e[e.SCRIPT_DATA_ESCAPED_DASH=20]=`SCRIPT_DATA_ESCAPED_DASH`,e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]=`SCRIPT_DATA_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]=`SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]=`SCRIPT_DATA_ESCAPED_END_TAG_OPEN`,e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]=`SCRIPT_DATA_ESCAPED_END_TAG_NAME`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]=`SCRIPT_DATA_DOUBLE_ESCAPE_START`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]=`SCRIPT_DATA_DOUBLE_ESCAPED`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]=`SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH`,e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]=`SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN`,e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]=`SCRIPT_DATA_DOUBLE_ESCAPE_END`,e[e.BEFORE_ATTRIBUTE_NAME=31]=`BEFORE_ATTRIBUTE_NAME`,e[e.ATTRIBUTE_NAME=32]=`ATTRIBUTE_NAME`,e[e.AFTER_ATTRIBUTE_NAME=33]=`AFTER_ATTRIBUTE_NAME`,e[e.BEFORE_ATTRIBUTE_VALUE=34]=`BEFORE_ATTRIBUTE_VALUE`,e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]=`ATTRIBUTE_VALUE_DOUBLE_QUOTED`,e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]=`ATTRIBUTE_VALUE_SINGLE_QUOTED`,e[e.ATTRIBUTE_VALUE_UNQUOTED=37]=`ATTRIBUTE_VALUE_UNQUOTED`,e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]=`AFTER_ATTRIBUTE_VALUE_QUOTED`,e[e.SELF_CLOSING_START_TAG=39]=`SELF_CLOSING_START_TAG`,e[e.BOGUS_COMMENT=40]=`BOGUS_COMMENT`,e[e.MARKUP_DECLARATION_OPEN=41]=`MARKUP_DECLARATION_OPEN`,e[e.COMMENT_START=42]=`COMMENT_START`,e[e.COMMENT_START_DASH=43]=`COMMENT_START_DASH`,e[e.COMMENT=44]=`COMMENT`,e[e.COMMENT_LESS_THAN_SIGN=45]=`COMMENT_LESS_THAN_SIGN`,e[e.COMMENT_LESS_THAN_SIGN_BANG=46]=`COMMENT_LESS_THAN_SIGN_BANG`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]=`COMMENT_LESS_THAN_SIGN_BANG_DASH`,e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]=`COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH`,e[e.COMMENT_END_DASH=49]=`COMMENT_END_DASH`,e[e.COMMENT_END=50]=`COMMENT_END`,e[e.COMMENT_END_BANG=51]=`COMMENT_END_BANG`,e[e.DOCTYPE=52]=`DOCTYPE`,e[e.BEFORE_DOCTYPE_NAME=53]=`BEFORE_DOCTYPE_NAME`,e[e.DOCTYPE_NAME=54]=`DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_NAME=55]=`AFTER_DOCTYPE_NAME`,e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]=`AFTER_DOCTYPE_PUBLIC_KEYWORD`,e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]=`BEFORE_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]=`DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]=`DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]=`AFTER_DOCTYPE_PUBLIC_IDENTIFIER`,e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]=`BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS`,e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]=`AFTER_DOCTYPE_SYSTEM_KEYWORD`,e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]=`BEFORE_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]=`DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED`,e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]=`DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED`,e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]=`AFTER_DOCTYPE_SYSTEM_IDENTIFIER`,e[e.BOGUS_DOCTYPE=67]=`BOGUS_DOCTYPE`,e[e.CDATA_SECTION=68]=`CDATA_SECTION`,e[e.CDATA_SECTION_BRACKET=69]=`CDATA_SECTION_BRACKET`,e[e.CDATA_SECTION_END=70]=`CDATA_SECTION_END`,e[e.CHARACTER_REFERENCE=71]=`CHARACTER_REFERENCE`,e[e.AMBIGUOUS_AMPERSAND=72]=`AMBIGUOUS_AMPERSAND`})(Q||={});var Dy={DATA:Q.DATA,RCDATA:Q.RCDATA,RAWTEXT:Q.RAWTEXT,SCRIPT_DATA:Q.SCRIPT_DATA,PLAINTEXT:Q.PLAINTEXT,CDATA_SECTION:Q.CDATA_SECTION};function Oy(e){return e>=K.DIGIT_0&&e<=K.DIGIT_9}function ky(e){return e>=K.LATIN_CAPITAL_A&&e<=K.LATIN_CAPITAL_Z}function Ay(e){return e>=K.LATIN_SMALL_A&&e<=K.LATIN_SMALL_Z}function jy(e){return Ay(e)||ky(e)}function My(e){return jy(e)||Oy(e)}function Ny(e){return e+32}function Py(e){return e===K.SPACE||e===K.LINE_FEED||e===K.TABULATION||e===K.FORM_FEED}function Fy(e){return Py(e)||e===K.SOLIDUS||e===K.GREATER_THAN_SIGN}function Iy(e){return e===K.NULL?q.nullCharacterReference:e>1114111?q.characterReferenceOutsideUnicodeRange:Qv(e)?q.surrogateCharacterReference:ny(e)?q.noncharacterCharacterReference:ty(e)||e===K.CARRIAGE_RETURN?q.controlCharacterReference:null}var Ly=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName=``,this.active=!1,this.state=Q.DATA,this.returnState=Q.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:``,value:``},this.preprocessor=new iy(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new yy(sy,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=Iy(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;(r=(n=this.handler).onParseError)==null||r.call(n,this.preprocessor.getError(e,t))}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;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error(`Parser was already resumed`);this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||n?.()}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 t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return this.preprocessor.startsWith(e,t)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ay.START_TAG,tagName:``,tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ay.END_TAG,tagName:``,tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:ay.COMMENT,data:``,location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:ay.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:``},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e;let t=this.currentToken;if(oy(t,this.currentAttr.name)===null){if(t.attrs.push(this.currentAttr),t.location&&this.currentLocation){let n=(e=t.location).attrs??(e.attrs=Object.create(null));n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(q.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(){let e=this.currentToken;this.prepareToken(e),e.tagID=wy(e.tagName),e.type===ay.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(q.endTagWithAttributes),e.selfClosing&&this._err(q.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 ay.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case ay.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case ay.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:ay.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Py(e)?ay.WHITESPACE_CHARACTER:e===K.NULL?ay.NULL_CHARACTER:ay.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(ay.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=Q.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?vy.Attribute:vy.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Q.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Q.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Q.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Q.DATA:this._stateData(e);break;case Q.RCDATA:this._stateRcdata(e);break;case Q.RAWTEXT:this._stateRawtext(e);break;case Q.SCRIPT_DATA:this._stateScriptData(e);break;case Q.PLAINTEXT:this._statePlaintext(e);break;case Q.TAG_OPEN:this._stateTagOpen(e);break;case Q.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Q.TAG_NAME:this._stateTagName(e);break;case Q.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Q.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Q.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Q.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Q.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Q.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Q.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Q.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Q.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Q.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Q.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Q.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Q.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Q.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Q.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Q.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Q.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Q.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Q.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Q.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Q.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Q.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Q.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Q.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Q.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Q.BOGUS_COMMENT:this._stateBogusComment(e);break;case Q.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Q.COMMENT_START:this._stateCommentStart(e);break;case Q.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Q.COMMENT:this._stateComment(e);break;case Q.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Q.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Q.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Q.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Q.COMMENT_END:this._stateCommentEnd(e);break;case Q.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Q.DOCTYPE:this._stateDoctype(e);break;case Q.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Q.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Q.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Q.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Q.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Q.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Q.CDATA_SECTION:this._stateCdataSection(e);break;case Q.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Q.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Q.CHARACTER_REFERENCE:this._stateCharacterReference();break;case Q.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error(`Unknown state`)}}_stateData(e){switch(e){case K.LESS_THAN_SIGN:this.state=Q.TAG_OPEN;break;case K.AMPERSAND:this._startCharacterReference();break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitCodePoint(e);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case K.AMPERSAND:this._startCharacterReference();break;case K.LESS_THAN_SIGN:this.state=Q.RCDATA_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case K.LESS_THAN_SIGN:this.state=Q.RAWTEXT_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(jy(e))this._createStartTagToken(),this.state=Q.TAG_NAME,this._stateTagName(e);else switch(e){case K.EXCLAMATION_MARK:this.state=Q.MARKUP_DECLARATION_OPEN;break;case K.SOLIDUS:this.state=Q.END_TAG_OPEN;break;case K.QUESTION_MARK:this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Q.BOGUS_COMMENT,this._stateBogusComment(e);break;case K.EOF:this._err(q.eofBeforeTagName),this._emitChars(`<`),this._emitEOFToken();break;default:this._err(q.invalidFirstCharacterOfTagName),this._emitChars(`<`),this.state=Q.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(jy(e))this._createEndTagToken(),this.state=Q.TAG_NAME,this._stateTagName(e);else switch(e){case K.GREATER_THAN_SIGN:this._err(q.missingEndTagName),this.state=Q.DATA;break;case K.EOF:this._err(q.eofBeforeTagName),this._emitChars(`</`),this._emitEOFToken();break;default:this._err(q.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Q.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BEFORE_ATTRIBUTE_NAME;break;case K.SOLIDUS:this.state=Q.SELF_CLOSING_START_TAG;break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentTagToken();break;case K.NULL:this._err(q.unexpectedNullCharacter),t.tagName+=`�`;break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(ky(e)?Ny(e):e)}}_stateRcdataLessThanSign(e){e===K.SOLIDUS?this.state=Q.RCDATA_END_TAG_OPEN:(this._emitChars(`<`),this.state=Q.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){jy(e)?(this.state=Q.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars(`</`),this.state=Q.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Q.BEFORE_ATTRIBUTE_NAME,!1;case K.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Q.SELF_CLOSING_START_TAG,!1;case K.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Q.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Q.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===K.SOLIDUS?this.state=Q.RAWTEXT_END_TAG_OPEN:(this._emitChars(`<`),this.state=Q.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){jy(e)?(this.state=Q.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars(`</`),this.state=Q.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Q.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case K.SOLIDUS:this.state=Q.SCRIPT_DATA_END_TAG_OPEN;break;case K.EXCLAMATION_MARK:this.state=Q.SCRIPT_DATA_ESCAPE_START,this._emitChars(`<!`);break;default:this._emitChars(`<`),this.state=Q.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){jy(e)?(this.state=Q.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars(`</`),this.state=Q.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Q.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===K.HYPHEN_MINUS?(this.state=Q.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars(`-`)):(this.state=Q.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===K.HYPHEN_MINUS?(this.state=Q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`)):(this.state=Q.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.SCRIPT_DATA_ESCAPED_DASH,this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Q.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case K.HYPHEN_MINUS:this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case K.GREATER_THAN_SIGN:this.state=Q.SCRIPT_DATA,this._emitChars(`>`);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Q.SCRIPT_DATA_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Q.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===K.SOLIDUS?this.state=Q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:jy(e)?(this._emitChars(`<`),this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars(`<`),this.state=Q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){jy(e)?(this.state=Q.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars(`</`),this.state=Q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars(`</`),this.state=Q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Zv.SCRIPT,!1)&&Fy(this.preprocessor.peek(Zv.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<Zv.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Q.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case K.NULL:this._err(q.unexpectedNullCharacter),this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case K.HYPHEN_MINUS:this._emitChars(`-`);break;case K.LESS_THAN_SIGN:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars(`<`);break;case K.GREATER_THAN_SIGN:this.state=Q.SCRIPT_DATA,this._emitChars(`>`);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(`�`);break;case K.EOF:this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===K.SOLIDUS?(this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars(`/`)):(this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Zv.SCRIPT,!1)&&Fy(this.preprocessor.peek(Zv.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<Zv.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=Q.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Q.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.SOLIDUS:case K.GREATER_THAN_SIGN:case K.EOF:this.state=Q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case K.EQUALS_SIGN:this._err(q.unexpectedEqualsSignBeforeAttributeName),this._createAttr(`=`),this.state=Q.ATTRIBUTE_NAME;break;default:this._createAttr(``),this.state=Q.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:case K.SOLIDUS:case K.GREATER_THAN_SIGN:case K.EOF:this._leaveAttrName(),this.state=Q.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case K.EQUALS_SIGN:this._leaveAttrName(),this.state=Q.BEFORE_ATTRIBUTE_VALUE;break;case K.QUOTATION_MARK:case K.APOSTROPHE:case K.LESS_THAN_SIGN:this._err(q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case K.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.name+=`�`;break;default:this.currentAttr.name+=String.fromCodePoint(ky(e)?Ny(e):e)}}_stateAfterAttributeName(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.SOLIDUS:this.state=Q.SELF_CLOSING_START_TAG;break;case K.EQUALS_SIGN:this.state=Q.BEFORE_ATTRIBUTE_VALUE;break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentTagToken();break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this._createAttr(``),this.state=Q.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.QUOTATION_MARK:this.state=Q.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case K.APOSTROPHE:this.state=Q.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingAttributeValue),this.state=Q.DATA,this.emitCurrentTagToken();break;default:this.state=Q.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case K.QUOTATION_MARK:this.state=Q.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case K.AMPERSAND:this._startCharacterReference();break;case K.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case K.APOSTROPHE:this.state=Q.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case K.AMPERSAND:this._startCharacterReference();break;case K.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this._leaveAttrValue(),this.state=Q.BEFORE_ATTRIBUTE_NAME;break;case K.AMPERSAND:this._startCharacterReference();break;case K.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Q.DATA,this.emitCurrentTagToken();break;case K.NULL:this._err(q.unexpectedNullCharacter),this.currentAttr.value+=`�`;break;case K.QUOTATION_MARK:case K.APOSTROPHE:case K.LESS_THAN_SIGN:case K.EQUALS_SIGN:case K.GRAVE_ACCENT:this._err(q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this._leaveAttrValue(),this.state=Q.BEFORE_ATTRIBUTE_NAME;break;case K.SOLIDUS:this._leaveAttrValue(),this.state=Q.SELF_CLOSING_START_TAG;break;case K.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Q.DATA,this.emitCurrentTagToken();break;case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this._err(q.missingWhitespaceBetweenAttributes),this.state=Q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case K.GREATER_THAN_SIGN:{let e=this.currentToken;e.selfClosing=!0,this.state=Q.DATA,this.emitCurrentTagToken();break}case K.EOF:this._err(q.eofInTag),this._emitEOFToken();break;default:this._err(q.unexpectedSolidusInTag),this.state=Q.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentComment(t);break;case K.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case K.NULL:this._err(q.unexpectedNullCharacter),t.data+=`�`;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(Zv.DASH_DASH,!0)?(this._createCommentToken(Zv.DASH_DASH.length+1),this.state=Q.COMMENT_START):this._consumeSequenceIfMatch(Zv.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Zv.DOCTYPE.length+1),this.state=Q.DOCTYPE):this._consumeSequenceIfMatch(Zv.CDATA_START,!0)?this.inForeignNode?this.state=Q.CDATA_SECTION:(this._err(q.cdataInHtmlContent),this._createCommentToken(Zv.CDATA_START.length+1),this.currentToken.data=`[CDATA[`,this.state=Q.BOGUS_COMMENT):this._ensureHibernation()||(this._err(q.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Q.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case K.HYPHEN_MINUS:this.state=Q.COMMENT_START_DASH;break;case K.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=Q.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=Q.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case K.HYPHEN_MINUS:this.state=Q.COMMENT_END;break;case K.GREATER_THAN_SIGN:this._err(q.abruptClosingOfEmptyComment),this.state=Q.DATA,this.emitCurrentComment(t);break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=Q.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case K.HYPHEN_MINUS:this.state=Q.COMMENT_END_DASH;break;case K.LESS_THAN_SIGN:t.data+=`<`,this.state=Q.COMMENT_LESS_THAN_SIGN;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.data+=`�`;break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case K.EXCLAMATION_MARK:t.data+=`!`,this.state=Q.COMMENT_LESS_THAN_SIGN_BANG;break;case K.LESS_THAN_SIGN:t.data+=`<`;break;default:this.state=Q.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===K.HYPHEN_MINUS?this.state=Q.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Q.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===K.HYPHEN_MINUS?this.state=Q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Q.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==K.GREATER_THAN_SIGN&&e!==K.EOF&&this._err(q.nestedComment),this.state=Q.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case K.HYPHEN_MINUS:this.state=Q.COMMENT_END;break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`-`,this.state=Q.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentComment(t);break;case K.EXCLAMATION_MARK:this.state=Q.COMMENT_END_BANG;break;case K.HYPHEN_MINUS:t.data+=`-`;break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--`,this.state=Q.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case K.HYPHEN_MINUS:t.data+=`--!`,this.state=Q.COMMENT_END_DASH;break;case K.GREATER_THAN_SIGN:this._err(q.incorrectlyClosedComment),this.state=Q.DATA,this.emitCurrentComment(t);break;case K.EOF:this._err(q.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=`--!`,this.state=Q.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BEFORE_DOCTYPE_NAME;break;case K.GREATER_THAN_SIGN:this.state=Q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case K.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBeforeDoctypeName),this.state=Q.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ky(e))this._createDoctypeToken(String.fromCharCode(Ny(e))),this.state=Q.DOCTYPE_NAME;else switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.NULL:this._err(q.unexpectedNullCharacter),this._createDoctypeToken(`�`),this.state=Q.DOCTYPE_NAME;break;case K.GREATER_THAN_SIGN:{this._err(q.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Q.DATA;break}case K.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=Q.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.AFTER_DOCTYPE_NAME;break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.NULL:this._err(q.unexpectedNullCharacter),t.name+=`�`;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(ky(e)?Ny(e):e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(Zv.PUBLIC,!1)?this.state=Q.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Zv.SYSTEM,!1)?this.state=Q.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(q.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case K.QUOTATION_MARK:this._err(q.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=Q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:this._err(q.missingWhitespaceAfterDoctypePublicKeyword),t.publicId=``,this.state=Q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.QUOTATION_MARK:t.publicId=``,this.state=Q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:t.publicId=``,this.state=Q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case K.QUOTATION_MARK:this.state=Q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.publicId+=`�`;break;case K.GREATER_THAN_SIGN:this._err(q.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case K.APOSTROPHE:this.state=Q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.publicId+=`�`;break;case K.GREATER_THAN_SIGN:this._err(q.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case K.GREATER_THAN_SIGN:this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.QUOTATION_MARK:this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.QUOTATION_MARK:t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:this.state=Q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case K.QUOTATION_MARK:this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.QUOTATION_MARK:t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case K.APOSTROPHE:t.systemId=``,this.state=Q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case K.GREATER_THAN_SIGN:this._err(q.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.DATA,this.emitCurrentDoctype(t);break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case K.QUOTATION_MARK:this.state=Q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.systemId+=`�`;break;case K.GREATER_THAN_SIGN:this._err(q.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case K.APOSTROPHE:this.state=Q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case K.NULL:this._err(q.unexpectedNullCharacter),t.systemId+=`�`;break;case K.GREATER_THAN_SIGN:this._err(q.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case K.SPACE:case K.LINE_FEED:case K.TABULATION:case K.FORM_FEED:break;case K.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.EOF:this._err(q.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(q.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Q.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case K.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Q.DATA;break;case K.NULL:this._err(q.unexpectedNullCharacter);break;case K.EOF:this.emitCurrentDoctype(t),this._emitEOFToken();break;default:}}_stateCdataSection(e){switch(e){case K.RIGHT_SQUARE_BRACKET:this.state=Q.CDATA_SECTION_BRACKET;break;case K.EOF:this._err(q.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===K.RIGHT_SQUARE_BRACKET?this.state=Q.CDATA_SECTION_END:(this._emitChars(`]`),this.state=Q.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case K.GREATER_THAN_SIGN:this.state=Q.DATA;break;case K.RIGHT_SQUARE_BRACKET:this._emitChars(`]`);break;default:this._emitChars(`]]`),this.state=Q.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(K.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&My(this.preprocessor.peek(1))?Q.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){My(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===K.SEMICOLON&&this._err(q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}},Ry=new Set([X.DD,X.DT,X.LI,X.OPTGROUP,X.OPTION,X.P,X.RB,X.RP,X.RT,X.RTC]),zy=new Set([...Ry,X.CAPTION,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR]),By=new Set([X.APPLET,X.CAPTION,X.HTML,X.MARQUEE,X.OBJECT,X.TABLE,X.TD,X.TEMPLATE,X.TH]),Vy=new Set([...By,X.OL,X.UL]),Hy=new Set([...By,X.BUTTON]),Uy=new Set([X.ANNOTATION_XML,X.MI,X.MN,X.MO,X.MS,X.MTEXT]),Wy=new Set([X.DESC,X.FOREIGN_OBJECT,X.TITLE]),Gy=new Set([X.TR,X.TEMPLATE,X.HTML]),Ky=new Set([X.TBODY,X.TFOOT,X.THEAD,X.TEMPLATE,X.HTML]),qy=new Set([X.TABLE,X.TEMPLATE,X.HTML]),Jy=new Set([X.TD,X.TH]),Yy=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=X.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===X.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===J.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==J.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&--this.tmplCount,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Ey,J.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Jy,J.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(qy,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Ky,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(Gy,J.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===X.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===X.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case J.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case J.SVG:if(Wy.has(r))return!1;break;case J.MATHML:if(Uy.has(r))return!1;break}}return!0}hasInScope(e){return this.hasInDynamicScope(e,By)}hasInListItemScope(e){return this.hasInDynamicScope(e,Vy)}hasInButtonScope(e){return this.hasInDynamicScope(e,Hy)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case J.HTML:if(Ey.has(t))return!0;if(By.has(t))return!1;break;case J.SVG:if(Wy.has(t))return!1;break;case J.MATHML:if(Uy.has(t))return!1;break}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case e:return!0;case X.TABLE:case X.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===J.HTML)switch(this.tagIDs[e]){case X.TBODY:case X.THEAD:case X.TFOOT:return!0;case X.TABLE:case X.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===J.HTML)switch(this.tagIDs[t]){case e:return!0;case X.OPTION:case X.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Ry.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&zy.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&zy.has(this.currentTagId);)this.pop()}},Xy=3,Zy;(function(e){e[e.Marker=0]=`Marker`,e[e.Element=1]=`Element`})(Zy||={});var Qy={type:Zy.Marker},$y=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===Zy.Marker)break;let{element:o}=t;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===a){let t=this.treeAdapter.getAttrList(o);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<Xy)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<Xy)return;let r=new Map(t.map(e=>[e.name,e.value])),i=0;for(let e=0;e<n.length;e++){let t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(i+=1,i>=Xy&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(Qy)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Zy.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Zy.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t!==-1&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(Qy);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===Zy.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===Zy.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===Zy.Element&&t.element===e)}},eb={createDocument(){return{nodeName:`#document`,mode:Sy.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:`#document-fragment`,childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:`#comment`,data:e,parentNode:null}},createTextNode(e){return{nodeName:`#text`,value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){let i=e.childNodes.find(e=>e.nodeName===`#documentType`);if(i)i.name=t,i.publicId=n,i.systemId=r;else{let i={nodeName:`#documentType`,name:t,publicId:n,systemId:r,parentNode:null};eb.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(eb.isTextNode(n)){n.value+=t;return}}eb.appendChild(e,eb.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&eb.isTextNode(r)?r.value+=t:eb.insertBefore(e,eb.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName===`#text`},isCommentNode(e){return e.nodeName===`#comment`},isDocumentTypeNode(e){return e.nodeName===`#documentType`},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,`tagName`)},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},tb=`html`,nb=`about:legacy-compat`,rb=`http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd`,ib=`+//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//`.split(`,`),ab=[...ib,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`],ob=new Set([`-//w3o//dtd w3 html strict 3.0//en//`,`-/w3c/dtd html 4.0 transitional/en`,`html`]),sb=[`-//w3c//dtd xhtml 1.0 frameset//`,`-//w3c//dtd xhtml 1.0 transitional//`],cb=[...sb,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`];function lb(e,t){return t.some(t=>e.startsWith(t))}function ub(e){return e.name===tb&&e.publicId===null&&(e.systemId===null||e.systemId===nb)}function db(e){if(e.name!==tb)return Sy.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===rb)return Sy.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),ob.has(n))return Sy.QUIRKS;let e=t===null?ab:ib;if(lb(n,e))return Sy.QUIRKS;if(e=t===null?sb:cb,lb(n,e))return Sy.LIMITED_QUIRKS}return Sy.NO_QUIRKS}var fb={TEXT_HTML:`text/html`,APPLICATION_XML:`application/xhtml+xml`},pb=`definitionurl`,mb=`definitionURL`,hb=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`.split(`.`).map(e=>[e.toLowerCase(),e])),gb=new Map([[`xlink:actuate`,{prefix:`xlink`,name:`actuate`,namespace:J.XLINK}],[`xlink:arcrole`,{prefix:`xlink`,name:`arcrole`,namespace:J.XLINK}],[`xlink:href`,{prefix:`xlink`,name:`href`,namespace:J.XLINK}],[`xlink:role`,{prefix:`xlink`,name:`role`,namespace:J.XLINK}],[`xlink:show`,{prefix:`xlink`,name:`show`,namespace:J.XLINK}],[`xlink:title`,{prefix:`xlink`,name:`title`,namespace:J.XLINK}],[`xlink:type`,{prefix:`xlink`,name:`type`,namespace:J.XLINK}],[`xml:lang`,{prefix:`xml`,name:`lang`,namespace:J.XML}],[`xml:space`,{prefix:`xml`,name:`space`,namespace:J.XML}],[`xmlns`,{prefix:``,name:`xmlns`,namespace:J.XMLNS}],[`xmlns:xlink`,{prefix:`xmlns`,name:`xlink`,namespace:J.XMLNS}]]),_b=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`.split(`.`).map(e=>[e.toLowerCase(),e])),vb=new Set([X.B,X.BIG,X.BLOCKQUOTE,X.BODY,X.BR,X.CENTER,X.CODE,X.DD,X.DIV,X.DL,X.DT,X.EM,X.EMBED,X.H1,X.H2,X.H3,X.H4,X.H5,X.H6,X.HEAD,X.HR,X.I,X.IMG,X.LI,X.LISTING,X.MENU,X.META,X.NOBR,X.OL,X.P,X.PRE,X.RUBY,X.S,X.SMALL,X.SPAN,X.STRONG,X.STRIKE,X.SUB,X.SUP,X.TABLE,X.TT,X.U,X.UL,X.VAR]);function yb(e){let t=e.tagID;return t===X.FONT&&e.attrs.some(({name:e})=>e===xy.COLOR||e===xy.SIZE||e===xy.FACE)||vb.has(t)}function bb(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===pb){e.attrs[t].name=mb;break}}function xb(e){for(let t=0;t<e.attrs.length;t++){let n=hb.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Sb(e){for(let t=0;t<e.attrs.length;t++){let n=gb.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Cb(e){let t=_b.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=wy(e.tagName))}function wb(e,t){return t===J.MATHML&&(e===X.MI||e===X.MO||e===X.MN||e===X.MS||e===X.MTEXT)}function Tb(e,t,n){if(t===J.MATHML&&e===X.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===xy.ENCODING){let t=n[e].value.toLowerCase();return t===fb.TEXT_HTML||t===fb.APPLICATION_XML}}return t===J.SVG&&(e===X.FOREIGN_OBJECT||e===X.DESC||e===X.TITLE)}function Eb(e,t,n,r){return(!r||r===J.HTML)&&Tb(e,t,n)||(!r||r===J.MATHML)&&wb(e,t)}var Db=`hidden`,Ob=8,kb=3,$;(function(e){e[e.INITIAL=0]=`INITIAL`,e[e.BEFORE_HTML=1]=`BEFORE_HTML`,e[e.BEFORE_HEAD=2]=`BEFORE_HEAD`,e[e.IN_HEAD=3]=`IN_HEAD`,e[e.IN_HEAD_NO_SCRIPT=4]=`IN_HEAD_NO_SCRIPT`,e[e.AFTER_HEAD=5]=`AFTER_HEAD`,e[e.IN_BODY=6]=`IN_BODY`,e[e.TEXT=7]=`TEXT`,e[e.IN_TABLE=8]=`IN_TABLE`,e[e.IN_TABLE_TEXT=9]=`IN_TABLE_TEXT`,e[e.IN_CAPTION=10]=`IN_CAPTION`,e[e.IN_COLUMN_GROUP=11]=`IN_COLUMN_GROUP`,e[e.IN_TABLE_BODY=12]=`IN_TABLE_BODY`,e[e.IN_ROW=13]=`IN_ROW`,e[e.IN_CELL=14]=`IN_CELL`,e[e.IN_SELECT=15]=`IN_SELECT`,e[e.IN_SELECT_IN_TABLE=16]=`IN_SELECT_IN_TABLE`,e[e.IN_TEMPLATE=17]=`IN_TEMPLATE`,e[e.AFTER_BODY=18]=`AFTER_BODY`,e[e.IN_FRAMESET=19]=`IN_FRAMESET`,e[e.AFTER_FRAMESET=20]=`AFTER_FRAMESET`,e[e.AFTER_AFTER_BODY=21]=`AFTER_AFTER_BODY`,e[e.AFTER_AFTER_FRAMESET=22]=`AFTER_AFTER_FRAMESET`})($||={});var Ab={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},jb=new Set([X.TABLE,X.TBODY,X.TFOOT,X.THEAD,X.TR]),Mb={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:eb,onParseError:null},Nb=class{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=$.INITIAL,this.originalInsertionMode=$.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=t??this.treeAdapter.createDocument(),this.tokenizer=new Ly(this.options,this),this.activeFormattingElements=new $y(this.treeAdapter),this.fragmentContextID=n?wy(this.treeAdapter.getTagName(n)):X.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new Yy(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...Mb,...t};e??=n.treeAdapter.createElement(Y.TEMPLATE,J.HTML,[]);let r=n.treeAdapter.createElement(`documentmock`,J.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===X.TEMPLATE&&i.tmplInsertionModeStack.unshift($.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){if(!this.onParseError)return;let r=e.location??Ab,i={code:t,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:n?r.startLine:r.endLine,endCol:n?r.startCol:r.endCol,endOffset:n?r.startOffset:r.endOffset};this.onParseError(i)}onItemPush(e,t,n){var r,i;(i=(r=this.treeAdapter).onItemPush)==null||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(r=(n=this.treeAdapter).onItemPop)==null||r.call(n,e,this.openElements.current),t){let e,t;this.openElements.stackTop===0&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===J.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,J.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=$.TEXT}switchToPlaintextParsing(){this.insertionMode=$.TEXT,this.originalInsertionMode=$.IN_BODY,this.tokenizer.state=Dy.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)===Y.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case X.TITLE:case X.TEXTAREA:this.tokenizer.state=Dy.RCDATA;break;case X.STYLE:case X.XMP:case X.IFRAME:case X.NOEMBED:case X.NOFRAMES:case X.NOSCRIPT:this.tokenizer.state=Dy.RAWTEXT;break;case X.SCRIPT:this.tokenizer.state=Dy.SCRIPT_DATA;break;case X.PLAINTEXT:this.tokenizer.state=Dy.PLAINTEXT;break;default:}}_setDocumentType(e){let t=e.name||``,n=e.publicId||``,r=e.systemId||``;if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t??this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,J.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,J.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(Y.HTML,J.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,X.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),i=r[(n?r.lastIndexOf(n):r.length)-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===ay.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,e.tagID===X.SVG&&this.treeAdapter.getTagName(t)===Y.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===J.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===X.MGLYPH||e.tagID===X.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,t,J.HTML)}_processToken(e){switch(e.type){case ay.CHARACTER:this.onCharacter(e);break;case ay.NULL_CHARACTER:this.onNullCharacter(e);break;case ay.COMMENT:this.onComment(e);break;case ay.DOCTYPE:this.onDoctype(e);break;case ay.START_TAG:this._processStartTag(e);break;case ay.END_TAG:this.onEndTag(e);break;case ay.EOF:this.onEof(e);break;case ay.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e);break}}_isIntegrationPoint(e,t,n){return Eb(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===Zy.Marker||this.openElements.contains(e.element)),n=t===-1?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=$.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(X.P),this.openElements.popUntilTagNamePopped(X.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case X.TR:this.insertionMode=$.IN_ROW;return;case X.TBODY:case X.THEAD:case X.TFOOT:this.insertionMode=$.IN_TABLE_BODY;return;case X.CAPTION:this.insertionMode=$.IN_CAPTION;return;case X.COLGROUP:this.insertionMode=$.IN_COLUMN_GROUP;return;case X.TABLE:this.insertionMode=$.IN_TABLE;return;case X.BODY:this.insertionMode=$.IN_BODY;return;case X.FRAMESET:this.insertionMode=$.IN_FRAMESET;return;case X.SELECT:this._resetInsertionModeForSelect(e);return;case X.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case X.HTML:this.insertionMode=this.headElement?$.AFTER_HEAD:$.BEFORE_HEAD;return;case X.TD:case X.TH:if(e>0){this.insertionMode=$.IN_CELL;return}break;case X.HEAD:if(e>0){this.insertionMode=$.IN_HEAD;return}break}this.insertionMode=$.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===X.TEMPLATE)break;if(e===X.TABLE){this.insertionMode=$.IN_SELECT_IN_TABLE;return}}this.insertionMode=$.IN_SELECT}_isElementCausesFosterParenting(e){return jb.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--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case X.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===J.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case X.TABLE:{let n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return Ty[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ZS(this,e);return}switch(this.insertionMode){case $.INITIAL:Kb(this,e);break;case $.BEFORE_HTML:Yb(this,e);break;case $.BEFORE_HEAD:Qb(this,e);break;case $.IN_HEAD:nx(this,e);break;case $.IN_HEAD_NO_SCRIPT:ax(this,e);break;case $.AFTER_HEAD:cx(this,e);break;case $.IN_BODY:case $.IN_CAPTION:case $.IN_CELL:case $.IN_TEMPLATE:dx(this,e);break;case $.TEXT:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:oS(this,e);break;case $.IN_TABLE_TEXT:yS(this,e);break;case $.IN_COLUMN_GROUP:ES(this,e);break;case $.AFTER_BODY:HS(this,e);break;case $.AFTER_AFTER_BODY:JS(this,e);break;default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){XS(this,e);return}switch(this.insertionMode){case $.INITIAL:Kb(this,e);break;case $.BEFORE_HTML:Yb(this,e);break;case $.BEFORE_HEAD:Qb(this,e);break;case $.IN_HEAD:nx(this,e);break;case $.IN_HEAD_NO_SCRIPT:ax(this,e);break;case $.AFTER_HEAD:cx(this,e);break;case $.TEXT:this._insertCharacters(e);break;case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:oS(this,e);break;case $.IN_COLUMN_GROUP:ES(this,e);break;case $.AFTER_BODY:HS(this,e);break;case $.AFTER_AFTER_BODY:JS(this,e);break;default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Vb(this,e);return}switch(this.insertionMode){case $.INITIAL:case $.BEFORE_HTML:case $.BEFORE_HEAD:case $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:case $.IN_BODY:case $.IN_TABLE:case $.IN_CAPTION:case $.IN_COLUMN_GROUP:case $.IN_TABLE_BODY:case $.IN_ROW:case $.IN_CELL:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:case $.IN_TEMPLATE:case $.IN_FRAMESET:case $.AFTER_FRAMESET:Vb(this,e);break;case $.IN_TABLE_TEXT:bS(this,e);break;case $.AFTER_BODY:Hb(this,e);break;case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:Ub(this,e);break;default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case $.INITIAL:Gb(this,e);break;case $.BEFORE_HEAD:case $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:this._err(e,q.misplacedDoctype);break;case $.IN_TABLE_TEXT:bS(this,e);break;default:}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?$S(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case $.INITIAL:Kb(this,e);break;case $.BEFORE_HTML:qb(this,e);break;case $.BEFORE_HEAD:Xb(this,e);break;case $.IN_HEAD:$b(this,e);break;case $.IN_HEAD_NO_SCRIPT:rx(this,e);break;case $.AFTER_HEAD:ox(this,e);break;case $.IN_BODY:Wx(this,e);break;case $.IN_TABLE:hS(this,e);break;case $.IN_TABLE_TEXT:bS(this,e);break;case $.IN_CAPTION:SS(this,e);break;case $.IN_COLUMN_GROUP:wS(this,e);break;case $.IN_TABLE_BODY:DS(this,e);break;case $.IN_ROW:kS(this,e);break;case $.IN_CELL:jS(this,e);break;case $.IN_SELECT:NS(this,e);break;case $.IN_SELECT_IN_TABLE:FS(this,e);break;case $.IN_TEMPLATE:LS(this,e);break;case $.AFTER_BODY:BS(this,e);break;case $.IN_FRAMESET:US(this,e);break;case $.AFTER_FRAMESET:GS(this,e);break;case $.AFTER_AFTER_BODY:qS(this,e);break;case $.AFTER_AFTER_FRAMESET:YS(this,e);break;default:}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?eC(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case $.INITIAL:Kb(this,e);break;case $.BEFORE_HTML:Jb(this,e);break;case $.BEFORE_HEAD:Zb(this,e);break;case $.IN_HEAD:ex(this,e);break;case $.IN_HEAD_NO_SCRIPT:ix(this,e);break;case $.AFTER_HEAD:sx(this,e);break;case $.IN_BODY:nS(this,e);break;case $.TEXT:iS(this,e);break;case $.IN_TABLE:gS(this,e);break;case $.IN_TABLE_TEXT:bS(this,e);break;case $.IN_CAPTION:CS(this,e);break;case $.IN_COLUMN_GROUP:TS(this,e);break;case $.IN_TABLE_BODY:OS(this,e);break;case $.IN_ROW:AS(this,e);break;case $.IN_CELL:MS(this,e);break;case $.IN_SELECT:PS(this,e);break;case $.IN_SELECT_IN_TABLE:IS(this,e);break;case $.IN_TEMPLATE:RS(this,e);break;case $.AFTER_BODY:VS(this,e);break;case $.IN_FRAMESET:WS(this,e);break;case $.AFTER_FRAMESET:KS(this,e);break;case $.AFTER_AFTER_BODY:JS(this,e);break;default:}}onEof(e){switch(this.insertionMode){case $.INITIAL:Kb(this,e);break;case $.BEFORE_HTML:Yb(this,e);break;case $.BEFORE_HEAD:Qb(this,e);break;case $.IN_HEAD:nx(this,e);break;case $.IN_HEAD_NO_SCRIPT:ax(this,e);break;case $.AFTER_HEAD:cx(this,e);break;case $.IN_BODY:case $.IN_TABLE:case $.IN_CAPTION:case $.IN_COLUMN_GROUP:case $.IN_TABLE_BODY:case $.IN_ROW:case $.IN_CELL:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:rS(this,e);break;case $.TEXT:aS(this,e);break;case $.IN_TABLE_TEXT:bS(this,e);break;case $.IN_TEMPLATE:zS(this,e);break;case $.AFTER_BODY:case $.IN_FRAMESET:case $.AFTER_FRAMESET:case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:Wb(this,e);break;default:}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===K.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 $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:case $.TEXT:case $.IN_COLUMN_GROUP:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:case $.IN_FRAMESET:case $.AFTER_FRAMESET:this._insertCharacters(e);break;case $.IN_BODY:case $.IN_CAPTION:case $.IN_CELL:case $.IN_TEMPLATE:case $.AFTER_BODY:case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:ux(this,e);break;case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:oS(this,e);break;case $.IN_TABLE_TEXT:vS(this,e);break;default:}}};function Pb(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):tS(e,t),n}function Fb(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Ib(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);let n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=kb;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=Lb(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Lb(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Rb(e,t,n){let r=wy(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===X.TEMPLATE&&i===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function zb(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Bb(e,t){for(let n=0;n<Ob;n++){let n=Pb(e,t);if(!n)break;let r=Fb(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=Ib(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&Rb(e,a,i),zb(e,r,n)}}function Vb(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Hb(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Ub(e,t){e._appendCommentNode(t,e.document)}function Wb(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function Gb(e,t){e._setDocumentType(t);let n=t.forceQuirks?Sy.QUIRKS:db(t);ub(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=$.BEFORE_HTML}function Kb(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Sy.QUIRKS),e.insertionMode=$.BEFORE_HTML,e._processToken(t)}function qb(e,t){t.tagID===X.HTML?(e._insertElement(t,J.HTML),e.insertionMode=$.BEFORE_HEAD):Yb(e,t)}function Jb(e,t){let n=t.tagID;(n===X.HTML||n===X.HEAD||n===X.BODY||n===X.BR)&&Yb(e,t)}function Yb(e,t){e._insertFakeRootElement(),e.insertionMode=$.BEFORE_HEAD,e._processToken(t)}function Xb(e,t){switch(t.tagID){case X.HTML:Wx(e,t);break;case X.HEAD:e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=$.IN_HEAD;break;default:Qb(e,t)}}function Zb(e,t){let n=t.tagID;n===X.HEAD||n===X.BODY||n===X.HTML||n===X.BR?Qb(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function Qb(e,t){e._insertFakeElement(Y.HEAD,X.HEAD),e.headElement=e.openElements.current,e.insertionMode=$.IN_HEAD,e._processToken(t)}function $b(e,t){switch(t.tagID){case X.HTML:Wx(e,t);break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.TITLE:e._switchToTextParsing(t,Dy.RCDATA);break;case X.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Dy.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=$.IN_HEAD_NO_SCRIPT);break;case X.NOFRAMES:case X.STYLE:e._switchToTextParsing(t,Dy.RAWTEXT);break;case X.SCRIPT:e._switchToTextParsing(t,Dy.SCRIPT_DATA);break;case X.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=$.IN_TEMPLATE,e.tmplInsertionModeStack.unshift($.IN_TEMPLATE);break;case X.HEAD:e._err(t,q.misplacedStartTagForHeadElement);break;default:nx(e,t)}}function ex(e,t){switch(t.tagID){case X.HEAD:e.openElements.pop(),e.insertionMode=$.AFTER_HEAD;break;case X.BODY:case X.BR:case X.HTML:nx(e,t);break;case X.TEMPLATE:tx(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function tx(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==X.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function nx(e,t){e.openElements.pop(),e.insertionMode=$.AFTER_HEAD,e._processToken(t)}function rx(e,t){switch(t.tagID){case X.HTML:Wx(e,t);break;case X.BASEFONT:case X.BGSOUND:case X.HEAD:case X.LINK:case X.META:case X.NOFRAMES:case X.STYLE:$b(e,t);break;case X.NOSCRIPT:e._err(t,q.nestedNoscriptInHead);break;default:ax(e,t)}}function ix(e,t){switch(t.tagID){case X.NOSCRIPT:e.openElements.pop(),e.insertionMode=$.IN_HEAD;break;case X.BR:ax(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function ax(e,t){let n=t.type===ay.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=$.IN_HEAD,e._processToken(t)}function ox(e,t){switch(t.tagID){case X.HTML:Wx(e,t);break;case X.BODY:e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=$.IN_BODY;break;case X.FRAMESET:e._insertElement(t,J.HTML),e.insertionMode=$.IN_FRAMESET;break;case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:e._err(t,q.abandonedHeadElementChild),e.openElements.push(e.headElement,X.HEAD),$b(e,t),e.openElements.remove(e.headElement);break;case X.HEAD:e._err(t,q.misplacedStartTagForHeadElement);break;default:cx(e,t)}}function sx(e,t){switch(t.tagID){case X.BODY:case X.HTML:case X.BR:cx(e,t);break;case X.TEMPLATE:tx(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function cx(e,t){e._insertFakeElement(Y.BODY,X.BODY),e.insertionMode=$.IN_BODY,lx(e,t)}function lx(e,t){switch(t.type){case ay.CHARACTER:dx(e,t);break;case ay.WHITESPACE_CHARACTER:ux(e,t);break;case ay.COMMENT:Vb(e,t);break;case ay.START_TAG:Wx(e,t);break;case ay.END_TAG:nS(e,t);break;case ay.EOF:rS(e,t);break;default:}}function ux(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function dx(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function fx(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function px(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function mx(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_FRAMESET)}function hx(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function gx(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Ey.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function _x(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function vx(e,t){let n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),n||(e.formElement=e.openElements.current))}function yx(e,t){e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let r=e.openElements.tagIDs[t];if(n===X.LI&&r===X.LI||(n===X.DD||n===X.DT)&&(r===X.DD||r===X.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==X.ADDRESS&&r!==X.DIV&&r!==X.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function bx(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=Dy.PLAINTEXT}function xx(e,t){e.openElements.hasInScope(X.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function Sx(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Y.A);n&&(Bb(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Cx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function wx(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(X.NOBR)&&(Bb(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Tx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Ex(e,t){e.treeAdapter.getDocumentMode(e.document)!==Sy.QUIRKS&&e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=$.IN_TABLE}function Dx(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ox(e){let t=oy(e,xy.TYPE);return t!=null&&t.toLowerCase()===Db}function kx(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),Ox(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Ax(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function jx(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Mx(e,t){t.tagName=Y.IMG,t.tagID=X.IMG,Dx(e,t)}function Nx(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Dy.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=$.TEXT}function Px(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Dy.RAWTEXT)}function Fx(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Dy.RAWTEXT)}function Ix(e,t){e._switchToTextParsing(t,Dy.RAWTEXT)}function Lx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===$.IN_TABLE||e.insertionMode===$.IN_CAPTION||e.insertionMode===$.IN_TABLE_BODY||e.insertionMode===$.IN_ROW||e.insertionMode===$.IN_CELL?$.IN_SELECT_IN_TABLE:$.IN_SELECT}function Rx(e,t){e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function zx(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function Bx(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(X.RTC),e._insertElement(t,J.HTML)}function Vx(e,t){e._reconstructActiveFormattingElements(),bb(t),Sb(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function Hx(e,t){e._reconstructActiveFormattingElements(),xb(t),Sb(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function Ux(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function Wx(e,t){switch(t.tagID){case X.I:case X.S:case X.B:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.SMALL:case X.STRIKE:case X.STRONG:Cx(e,t);break;case X.A:Sx(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:gx(e,t);break;case X.P:case X.DL:case X.OL:case X.UL:case X.DIV:case X.DIR:case X.NAV:case X.MAIN:case X.MENU:case X.ASIDE:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.DETAILS:case X.ADDRESS:case X.ARTICLE:case X.SEARCH:case X.SECTION:case X.SUMMARY:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:hx(e,t);break;case X.LI:case X.DD:case X.DT:yx(e,t);break;case X.BR:case X.IMG:case X.WBR:case X.AREA:case X.EMBED:case X.KEYGEN:Dx(e,t);break;case X.HR:jx(e,t);break;case X.RB:case X.RTC:zx(e,t);break;case X.RT:case X.RP:Bx(e,t);break;case X.PRE:case X.LISTING:_x(e,t);break;case X.XMP:Px(e,t);break;case X.SVG:Hx(e,t);break;case X.HTML:fx(e,t);break;case X.BASE:case X.LINK:case X.META:case X.STYLE:case X.TITLE:case X.SCRIPT:case X.BGSOUND:case X.BASEFONT:case X.TEMPLATE:$b(e,t);break;case X.BODY:px(e,t);break;case X.FORM:vx(e,t);break;case X.NOBR:wx(e,t);break;case X.MATH:Vx(e,t);break;case X.TABLE:Ex(e,t);break;case X.INPUT:kx(e,t);break;case X.PARAM:case X.TRACK:case X.SOURCE:Ax(e,t);break;case X.IMAGE:Mx(e,t);break;case X.BUTTON:xx(e,t);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:Tx(e,t);break;case X.IFRAME:Fx(e,t);break;case X.SELECT:Lx(e,t);break;case X.OPTION:case X.OPTGROUP:Rx(e,t);break;case X.NOEMBED:case X.NOFRAMES:Ix(e,t);break;case X.FRAMESET:mx(e,t);break;case X.TEXTAREA:Nx(e,t);break;case X.NOSCRIPT:e.options.scriptingEnabled?Ix(e,t):Ux(e,t);break;case X.PLAINTEXT:bx(e,t);break;case X.COL:case X.TH:case X.TD:case X.TR:case X.HEAD:case X.FRAME:case X.TBODY:case X.TFOOT:case X.THEAD:case X.CAPTION:case X.COLGROUP:break;default:Ux(e,t)}}function Gx(e,t){if(e.openElements.hasInScope(X.BODY)&&(e.insertionMode=$.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Kx(e,t){e.openElements.hasInScope(X.BODY)&&(e.insertionMode=$.AFTER_BODY,VS(e,t))}function qx(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Jx(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(X.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(X.FORM):n&&e.openElements.remove(n))}function Yx(e){e.openElements.hasInButtonScope(X.P)||e._insertFakeElement(Y.P,X.P),e._closePElement()}function Xx(e){e.openElements.hasInListItemScope(X.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(X.LI),e.openElements.popUntilTagNamePopped(X.LI))}function Zx(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Qx(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function $x(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function eS(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Y.BR,X.BR),e.openElements.pop(),e.framesetOk=!1}function tS(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==X.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function nS(e,t){switch(t.tagID){case X.A:case X.B:case X.I:case X.S:case X.U:case X.EM:case X.TT:case X.BIG:case X.CODE:case X.FONT:case X.NOBR:case X.SMALL:case X.STRIKE:case X.STRONG:Bb(e,t);break;case X.P:Yx(e);break;case X.DL:case X.UL:case X.OL:case X.DIR:case X.DIV:case X.NAV:case X.PRE:case X.MAIN:case X.MENU:case X.ASIDE:case X.BUTTON:case X.CENTER:case X.FIGURE:case X.FOOTER:case X.HEADER:case X.HGROUP:case X.DIALOG:case X.ADDRESS:case X.ARTICLE:case X.DETAILS:case X.SEARCH:case X.SECTION:case X.SUMMARY:case X.LISTING:case X.FIELDSET:case X.BLOCKQUOTE:case X.FIGCAPTION:qx(e,t);break;case X.LI:Xx(e);break;case X.DD:case X.DT:Zx(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:Qx(e);break;case X.BR:eS(e);break;case X.BODY:Gx(e,t);break;case X.HTML:Kx(e,t);break;case X.FORM:Jx(e);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:$x(e,t);break;case X.TEMPLATE:tx(e,t);break;default:tS(e,t)}}function rS(e,t){e.tmplInsertionModeStack.length>0?zS(e,t):Wb(e,t)}function iS(e,t){var n;t.tagID===X.SCRIPT&&((n=e.scriptHandler)==null||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function aS(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function oS(e,t){if(e.openElements.currentTagId!==void 0&&jb.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=$.IN_TABLE_TEXT,t.type){case ay.CHARACTER:yS(e,t);break;case ay.WHITESPACE_CHARACTER:vS(e,t);break}else _S(e,t)}function sS(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_CAPTION}function cS(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_COLUMN_GROUP}function lS(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.COLGROUP,X.COLGROUP),e.insertionMode=$.IN_COLUMN_GROUP,wS(e,t)}function uS(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_TABLE_BODY}function dS(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.TBODY,X.TBODY),e.insertionMode=$.IN_TABLE_BODY,DS(e,t)}function fS(e,t){e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function pS(e,t){Ox(t)?e._appendElement(t,J.HTML):_S(e,t),t.ackSelfClosing=!0}function mS(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function hS(e,t){switch(t.tagID){case X.TD:case X.TH:case X.TR:dS(e,t);break;case X.STYLE:case X.SCRIPT:case X.TEMPLATE:$b(e,t);break;case X.COL:lS(e,t);break;case X.FORM:mS(e,t);break;case X.TABLE:fS(e,t);break;case X.TBODY:case X.TFOOT:case X.THEAD:uS(e,t);break;case X.INPUT:pS(e,t);break;case X.CAPTION:sS(e,t);break;case X.COLGROUP:cS(e,t);break;default:_S(e,t)}}function gS(e,t){switch(t.tagID){case X.TABLE:e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode());break;case X.TEMPLATE:tx(e,t);break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:_S(e,t)}}function _S(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,lx(e,t),e.fosterParentingEnabled=n}function vS(e,t){e.pendingCharacterTokens.push(t)}function yS(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function bS(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)_S(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var xS=new Set([X.CAPTION,X.COL,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR]);function SS(e,t){let n=t.tagID;xS.has(n)?e.openElements.hasInTableScope(X.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$.IN_TABLE,hS(e,t)):Wx(e,t)}function CS(e,t){let n=t.tagID;switch(n){case X.CAPTION:case X.TABLE:e.openElements.hasInTableScope(X.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$.IN_TABLE,n===X.TABLE&&gS(e,t));break;case X.BODY:case X.COL:case X.COLGROUP:case X.HTML:case X.TBODY:case X.TD:case X.TFOOT:case X.TH:case X.THEAD:case X.TR:break;default:nS(e,t)}}function wS(e,t){switch(t.tagID){case X.HTML:Wx(e,t);break;case X.COL:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.TEMPLATE:$b(e,t);break;default:ES(e,t)}}function TS(e,t){switch(t.tagID){case X.COLGROUP:e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=$.IN_TABLE);break;case X.TEMPLATE:tx(e,t);break;case X.COL:break;default:ES(e,t)}}function ES(e,t){e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=$.IN_TABLE,e._processToken(t))}function DS(e,t){switch(t.tagID){case X.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_ROW;break;case X.TH:case X.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Y.TR,X.TR),e.insertionMode=$.IN_ROW,kS(e,t);break;case X.CAPTION:case X.COL:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE,hS(e,t));break;default:hS(e,t)}}function OS(e,t){let n=t.tagID;switch(t.tagID){case X.TBODY:case X.TFOOT:case X.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE);break;case X.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE,gS(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TD:case X.TH:case X.TR:break;default:gS(e,t)}}function kS(e,t){switch(t.tagID){case X.TH:case X.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_CELL,e.activeFormattingElements.insertMarker();break;case X.CAPTION:case X.COL:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:case X.TR:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY,DS(e,t));break;default:hS(e,t)}}function AS(e,t){switch(t.tagID){case X.TR:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY);break;case X.TABLE:e.openElements.hasInTableScope(X.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY,OS(e,t));break;case X.TBODY:case X.TFOOT:case X.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(X.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=$.IN_TABLE_BODY,OS(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:case X.TD:case X.TH:break;default:gS(e,t)}}function jS(e,t){let n=t.tagID;xS.has(n)?(e.openElements.hasInTableScope(X.TD)||e.openElements.hasInTableScope(X.TH))&&(e._closeTableCell(),kS(e,t)):Wx(e,t)}function MS(e,t){let n=t.tagID;switch(n){case X.TD:case X.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$.IN_ROW);break;case X.TABLE:case X.TBODY:case X.TFOOT:case X.THEAD:case X.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),AS(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:break;default:nS(e,t)}}function NS(e,t){switch(t.tagID){case X.HTML:Wx(e,t);break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._insertElement(t,J.HTML);break;case X.OPTGROUP:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop(),e._insertElement(t,J.HTML);break;case X.HR:e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop(),e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.INPUT:case X.KEYGEN:case X.TEXTAREA:case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),t.tagID!==X.SELECT&&e._processStartTag(t));break;case X.SCRIPT:case X.TEMPLATE:$b(e,t);break;default:}}function PS(e,t){switch(t.tagID){case X.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===X.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===X.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===X.OPTGROUP&&e.openElements.pop();break;case X.OPTION:e.openElements.currentTagId===X.OPTION&&e.openElements.pop();break;case X.SELECT:e.openElements.hasInSelectScope(X.SELECT)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode());break;case X.TEMPLATE:tx(e,t);break;default:}}function FS(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e._processStartTag(t)):NS(e,t)}function IS(e,t){let n=t.tagID;n===X.CAPTION||n===X.TABLE||n===X.TBODY||n===X.TFOOT||n===X.THEAD||n===X.TR||n===X.TD||n===X.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(X.SELECT),e._resetInsertionMode(),e.onEndTag(t)):PS(e,t)}function LS(e,t){switch(t.tagID){case X.BASE:case X.BASEFONT:case X.BGSOUND:case X.LINK:case X.META:case X.NOFRAMES:case X.SCRIPT:case X.STYLE:case X.TEMPLATE:case X.TITLE:$b(e,t);break;case X.CAPTION:case X.COLGROUP:case X.TBODY:case X.TFOOT:case X.THEAD:e.tmplInsertionModeStack[0]=$.IN_TABLE,e.insertionMode=$.IN_TABLE,hS(e,t);break;case X.COL:e.tmplInsertionModeStack[0]=$.IN_COLUMN_GROUP,e.insertionMode=$.IN_COLUMN_GROUP,wS(e,t);break;case X.TR:e.tmplInsertionModeStack[0]=$.IN_TABLE_BODY,e.insertionMode=$.IN_TABLE_BODY,DS(e,t);break;case X.TD:case X.TH:e.tmplInsertionModeStack[0]=$.IN_ROW,e.insertionMode=$.IN_ROW,kS(e,t);break;default:e.tmplInsertionModeStack[0]=$.IN_BODY,e.insertionMode=$.IN_BODY,Wx(e,t)}}function RS(e,t){t.tagID===X.TEMPLATE&&tx(e,t)}function zS(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Wb(e,t)}function BS(e,t){t.tagID===X.HTML?Wx(e,t):HS(e,t)}function VS(e,t){if(t.tagID===X.HTML){if(e.fragmentContext||(e.insertionMode=$.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===X.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!e.treeAdapter.getNodeSourceCodeLocation(n)?.endTag&&e._setEndLocation(n,t)}}else HS(e,t)}function HS(e,t){e.insertionMode=$.IN_BODY,lx(e,t)}function US(e,t){switch(t.tagID){case X.HTML:Wx(e,t);break;case X.FRAMESET:e._insertElement(t,J.HTML);break;case X.FRAME:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.NOFRAMES:$b(e,t);break;default:}}function WS(e,t){t.tagID===X.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==X.FRAMESET&&(e.insertionMode=$.AFTER_FRAMESET))}function GS(e,t){switch(t.tagID){case X.HTML:Wx(e,t);break;case X.NOFRAMES:$b(e,t);break;default:}}function KS(e,t){t.tagID===X.HTML&&(e.insertionMode=$.AFTER_AFTER_FRAMESET)}function qS(e,t){t.tagID===X.HTML?Wx(e,t):JS(e,t)}function JS(e,t){e.insertionMode=$.IN_BODY,lx(e,t)}function YS(e,t){switch(t.tagID){case X.HTML:Wx(e,t);break;case X.NOFRAMES:$b(e,t);break;default:}}function XS(e,t){t.chars=`�`,e._insertCharacters(t)}function ZS(e,t){e._insertCharacters(t),e.framesetOk=!1}function QS(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function $S(e,t){if(yb(t))QS(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===J.MATHML?bb(t):r===J.SVG&&(Cb(t),xb(t)),Sb(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function eC(e,t){if(t.tagID===X.P||t.tagID===X.BR){QS(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===J.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}new Set([Y.AREA,Y.BASE,Y.BASEFONT,Y.BGSOUND,Y.BR,Y.COL,Y.EMBED,Y.FRAME,Y.HR,Y.IMG,Y.INPUT,Y.KEYGEN,Y.LINK,Y.META,Y.PARAM,Y.SOURCE,Y.TRACK,Y.WBR]);var tC=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,nC=new Set([`mdxFlowExpression`,`mdxJsxFlowElement`,`mdxJsxTextElement`,`mdxTextExpression`,`mdxjsEsm`]),rC={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function iC(e,t){let n=vC(e),r=Fv(`type`,{handlers:{root:oC,element:sC,text:cC,comment:dC,doctype:lC,raw:fC},unknown:pC}),i={parser:n?new Nb(rC):Nb.getFragmentParser(void 0,rC),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),mC(i,vf());let a=Ev(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&o_(a,`comment`,function(e,t,n){let r=e;if(r.value.stitch&&n&&t!==void 0){let e=n.children;return e[t]=r.value.stitch,t}}),a.type===`root`&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}function aC(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function oC(e,t){aC(e.children,t)}function sC(e,t){gC(e,t),aC(e.children,t),_C(e,t)}function cC(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:ay.CHARACTER,chars:e.value,location:yC(e)};mC(t,vf(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function lC(e,t){let n={type:ay.DOCTYPE,name:`html`,forceQuirks:!1,publicId:``,systemId:``,location:yC(e)};mC(t,vf(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function uC(e,t){t.stitches=!0;let n=bC(e);`children`in e&&`children`in n&&(n.children=iC({type:`root`,children:e.children},t.options).children),dC({type:`comment`,value:{stitch:n}},t)}function dC(e,t){let n=e.value,r={type:ay.COMMENT,data:n,location:yC(e)};mC(t,vf(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function fC(e,t){if(t.parser.tokenizer.preprocessor.html=``,t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,hC(t,vf(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(tC,`<$1$2`):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function pC(e,t){let n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))uC(n,t);else{let e=``;throw nC.has(n.type)&&(e=". 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"),Error("Cannot compile `"+n.type+"` node"+e)}}function mC(e,t){hC(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Dy.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:``,value:``}}function hC(e,t){if(t&&t.offset!==void 0){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function gC(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Dy.PLAINTEXT)return;mC(t,vf(e));let r=t.parser.openElements.current,i=`namespaceURI`in r?r.namespaceURI:Cv.html;i===Cv.html&&n===`svg`&&(i=Cv.svg);let a=zv({...e,children:[]},{space:i===Cv.svg?`svg`:`html`}),o={type:ay.START_TAG,tagName:n,tagID:wy(n),selfClosing:!1,ackSelfClosing:!1,attrs:`attrs`in a?a.attrs:[],location:yC(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function _C(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Yv.includes(n)||t.parser.tokenizer.state===Dy.PLAINTEXT)return;mC(t,_f(e));let r={type:ay.END_TAG,tagName:n,tagID:wy(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:yC(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Dy.RCDATA||t.parser.tokenizer.state===Dy.RAWTEXT||t.parser.tokenizer.state===Dy.SCRIPT_DATA)&&(t.parser.tokenizer.state=Dy.DATA)}function vC(e){let t=e.type===`root`?e.children[0]:e;return!!(t&&(t.type===`doctype`||t.type===`element`&&t.tagName.toLowerCase()===`html`))}function yC(e){let t=vf(e)||{line:void 0,column:void 0,offset:void 0},n=_f(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function bC(e){return`children`in e?Gg({...e,children:[]}):Gg(e)}function xC(e){return function(t,n){return iC(t,{...e,file:n})}}var SC=[`ariaDescribedBy`,`ariaLabel`,`ariaLabelledBy`],CC={ancestors:{tbody:[`table`],td:[`table`],th:[`table`],thead:[`table`],tfoot:[`table`],tr:[`table`]},attributes:{a:[...SC,`dataFootnoteBackref`,`dataFootnoteRef`,[`className`,`data-footnote-backref`],`href`],blockquote:[`cite`],code:[[`className`,/^language-./]],del:[`cite`],div:[`itemScope`,`itemType`],dl:[...SC],h2:[[`className`,`sr-only`]],img:[...SC,`longDesc`,`src`],input:[[`disabled`,!0],[`type`,`checkbox`]],ins:[`cite`],li:[[`className`,`task-list-item`]],ol:[...SC,[`className`,`contains-task-list`]],q:[`cite`],section:[`dataFootnotes`,[`className`,`footnotes`]],source:[`srcSet`],summary:[...SC],table:[...SC],ul:[...SC,[`className`,`contains-task-list`]],"*":`abbr.accept.acceptCharset.accessKey.action.align.alt.axis.border.cellPadding.cellSpacing.char.charOff.charSet.checked.clear.colSpan.color.cols.compact.coords.dateTime.dir.encType.frame.hSpace.headers.height.hrefLang.htmlFor.id.isMap.itemProp.label.lang.maxLength.media.method.multiple.name.noHref.noShade.noWrap.open.prompt.readOnly.rev.rowSpan.rows.rules.scope.selected.shape.size.span.start.summary.tabIndex.title.useMap.vAlign.value.width`.split(`.`)},clobber:[`ariaDescribedBy`,`ariaLabelledBy`,`id`,`name`],clobberPrefix:`user-content-`,protocols:{cite:[`http`,`https`],href:[`http`,`https`,`irc`,`ircs`,`mailto`,`xmpp`],longDesc:[`http`,`https`],src:[`http`,`https`]},required:{input:{disabled:!0,type:`checkbox`}},strip:[`script`],tagNames:`a.b.blockquote.br.code.dd.del.details.div.dl.dt.em.h1.h2.h3.h4.h5.h6.hr.i.img.input.ins.kbd.li.ol.p.picture.pre.q.rp.rt.ruby.s.samp.section.source.span.strike.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.tr.tt.ul.var`.split(`.`)},wC={}.hasOwnProperty;function TC(e,t){let n={type:`root`,children:[]},r=EC({schema:t?{...CC,...t}:CC,stack:[]},e);return r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r),n}function EC(e,t){if(t&&typeof t==`object`){let n=t;switch(typeof n.type==`string`?n.type:``){case`comment`:return DC(e,n);case`doctype`:return OC(e,n);case`element`:return kC(e,n);case`root`:return AC(e,n);case`text`:return jC(e,n);default:}}}function DC(e,t){if(e.schema.allowComments){let e=typeof t.value==`string`?t.value:``,n=e.indexOf(`-->`),r={type:`comment`,value:n<0?e:e.slice(0,n)};return RC(r,t),r}}function OC(e,t){if(e.schema.allowDoctypes){let e={type:`doctype`};return RC(e,t),e}}function kC(e,t){let n=typeof t.tagName==`string`?t.tagName:``;e.stack.push(n);let r=MC(e,t.children),i=NC(e,t.properties);e.stack.pop();let a=!1;if(n&&n!==`*`&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&wC.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r<t.length;)e.stack.includes(t[r])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let o={type:`element`,tagName:n,properties:i,children:r};return RC(o,t),o}function AC(e,t){let n={type:`root`,children:MC(e,t.children)};return RC(n,t),n}function jC(e,t){let n={type:`text`,value:typeof t.value==`string`?t.value:``};return RC(n,t),n}function MC(e,t){let n=[];if(Array.isArray(t)){let r=t,i=-1;for(;++i<r.length;){let t=EC(e,r[i]);t&&(Array.isArray(t)?n.push(...t):n.push(t))}}return n}function NC(e,t){let n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&wC.call(r,n)?r[n]:void 0,o=r&&wC.call(r,`*`)?r[`*`]:void 0,s=t&&typeof t==`object`?t:{},c={},l;for(l in s)if(wC.call(s,l)){let t=s[l],n=PC(e,zC(a,l),l,t);n??=PC(e,zC(o,l),l,t),n!=null&&(c[l]=n)}if(i&&wC.call(i,n)){let e=i[n];for(l in e)wC.call(e,l)&&!wC.call(c,l)&&(c[l]=e[l])}return c}function PC(e,t,n,r){return t?Array.isArray(r)?FC(e,t,n,r):IC(e,t,n,r):void 0}function FC(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let o=IC(e,t,n,r[i]);(typeof o==`number`||typeof o==`string`)&&a.push(o)}return a}function IC(e,t,n,r){if(!(typeof r!=`boolean`&&typeof r!=`number`&&typeof r!=`string`)&&LC(e,n,r)){if(typeof t==`object`&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&typeof i==`object`&&`flags`in i){if(i.test(String(r))){e=!0;break}}else if(i===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function LC(e,t,n){let r=e.schema.protocols&&wC.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;let i=String(n),a=i.indexOf(`:`),o=i.indexOf(`?`),s=i.indexOf(`#`),c=i.indexOf(`/`);if(a<0||c>-1&&a>c||o>-1&&a>o||s>-1&&a>s)return!0;let l=-1;for(;++l<r.length;){let e=r[l];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}function RC(e,t){let n=bf(t);t.data&&(e.data=Gg(t.data)),n&&(e.position=n)}function zC(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],a=typeof i==`string`?i:i[0];if(a===t)return i;a===`data*`&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()===`data`)return n}function BC(e){return function(t){return TC(t,e)}}function VC(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function HC(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function UC(e,t,n){let r=Yg((n||{}).ignore||[]),i=WC(t),a=-1;for(;++a<i.length;)i_(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function WC(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([GC(e[0]),KC(e[1])])}return t}function GC(e){return typeof e==`string`?new RegExp(HC(e),`g`):e}function KC(e){return typeof e==`function`?e:function(){return e}}var qC=`phrasing`,JC=[`autolink`,`link`,`image`,`label`];function YC(){return{transforms:[rw],enter:{literalAutolink:ZC,literalAutolinkEmail:QC,literalAutolinkHttp:QC,literalAutolinkWww:QC},exit:{literalAutolink:nw,literalAutolinkEmail:tw,literalAutolinkHttp:$C,literalAutolinkWww:ew}}}function XC(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:qC,notInConstruct:JC},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:qC,notInConstruct:JC},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:qC,notInConstruct:JC}]}}function ZC(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function QC(e){this.config.enter.autolinkProtocol.call(this,e)}function $C(e){this.config.exit.autolinkProtocol.call(this,e)}function ew(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function tw(e){this.config.exit.autolinkEmail.call(this,e)}function nw(e){this.exit(e)}function rw(e){UC(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,iw],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,aw]],{ignore:[`link`,`linkReference`]})}function iw(e,t,n,r,i){let a=``;if(!cw(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!ow(n)))return!1;let o=sw(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function aw(e,t,n,r){return!cw(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function ow(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function sw(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=VC(e,`(`),a=VC(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function cw(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||Dp(n)||Ep(n))&&(!t||n!==47)}vw.peek=_w;function lw(){this.buffer()}function uw(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function dw(){this.buffer()}function fw(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function pw(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=_p(this.sliceSerialize(e)).toLowerCase(),n.label=t}function mw(e){this.exit(e)}function hw(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=_p(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gw(e){this.exit(e)}function _w(){return`[`}function vw(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function yw(){return{enter:{gfmFootnoteCallString:lw,gfmFootnoteCall:uw,gfmFootnoteDefinitionLabelString:dw,gfmFootnoteDefinition:fw},exit:{gfmFootnoteCallString:pw,gfmFootnoteCall:mw,gfmFootnoteDefinitionLabelString:hw,gfmFootnoteDefinition:gw}}}function bw(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:vw},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
29
|
-
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Sw:xw))),s(),o}}function xw(e,t,n){return t===0?e:Sw(e,t,n)}function Sw(e,t,n){return(n?``:` `)+e}var Cw=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Ow.peek=kw;function ww(){return{canContainEols:[`delete`],enter:{strikethrough:Ew},exit:{strikethrough:Dw}}}function Tw(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Cw}],handlers:{delete:Ow}}}function Ew(e){this.enter({type:`delete`,children:[]},e)}function Dw(e){this.exit(e)}function Ow(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function kw(){return`~`}function Aw(e){return e.length}function jw(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Aw,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=Mw(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=Nw(r[d]);else{let e=Nw(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
30
|
-
`)}function Mw(e){return e==null?``:String(e)}function Nw(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Pw(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),Fw);return i(),o}function Fw(e,t,n){return`>`+(n?``:` `)+e}function Iw(e,t){return Lw(e,t.inConstruct,!0)&&!Lw(e,t.notInConstruct,!1)}function Lw(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Rw(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
31
|
-
`&&Iw(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
|
|
32
|
-
`}function zw(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function Bw(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Vw(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Hw(e,t,n,r){let i=Vw(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(Bw(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,Uw);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(zw(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
|
|
33
|
-
`,encode:["`"],...s.current()})),t()}return u+=s.move(`
|
|
34
|
-
`),a&&(u+=s.move(a+`
|
|
35
|
-
`)),u+=s.move(c),l(),u}function Uw(e,t,n){return(n?``:` `)+e}function Ww(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Gw(e,t,n,r){let i=Ww(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
36
|
-
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function Kw(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function qw(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function Jw(e,t,n){let r=Lp(e),i=Lp(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Yw.peek=Xw;function Yw(e,t,n,r){let i=Kw(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Jw(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=qw(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Jw(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+qw(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Xw(e,t,n){return n.options.emphasis||`*`}function Zw(e,t){let n=!1;return o_(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&rp(e)&&(t.options.setext||n))}function Qw(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Zw(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
37
|
-
`,after:`
|
|
38
|
-
`});return r(),t(),o+`
|
|
39
|
-
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
40
|
-
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
41
|
-
`,...a.current()});return/^[\t ]/.test(l)&&(l=qw(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}$w.peek=eT;function $w(e){return e.value||``}function eT(){return`<`}tT.peek=nT;function tT(e,t,n,r){let i=Ww(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function nT(){return`!`}rT.peek=iT;function rT(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function iT(){return`!`}aT.peek=oT;function aT(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function oT(){return"`"}function sT(e,t){let n=rp(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}cT.peek=lT;function cT(e,t,n,r){let i=Ww(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(sT(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function lT(e,t,n){return sT(e,n)?`<`:`[`}uT.peek=dT;function uT(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function dT(){return`[`}function fT(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function pT(e){let t=fT(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function mT(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function hT(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function gT(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?mT(n):fT(n),s=e.ordered?o===`.`?`)`:`.`:pT(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),hT(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function _T(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function vT(e,t,n,r){let i=_T(n),a=n.bulletCurrent||fT(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function yT(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var bT=Yg([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function xT(e,t,n,r){return(e.children.some(function(e){return bT(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function ST(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}CT.peek=wT;function CT(e,t,n,r){let i=ST(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Jw(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=qw(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Jw(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+qw(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function wT(e,t,n){return n.options.strong||`*`}function TT(e,t,n,r){return n.safe(e.value,r)}function ET(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function DT(e,t,n){let r=(hT(n)+(n.options.ruleSpaces?` `:``)).repeat(ET(n));return n.options.ruleSpaces?r.slice(0,-1):r}var OT={blockquote:Pw,break:Rw,code:Hw,definition:Gw,emphasis:Yw,hardBreak:Rw,heading:Qw,html:$w,image:tT,imageReference:rT,inlineCode:aT,link:cT,linkReference:uT,list:gT,listItem:vT,paragraph:yT,root:xT,strong:CT,text:TT,thematicBreak:DT};function kT(){return{enter:{table:AT,tableData:PT,tableHeader:PT,tableRow:MT},exit:{codeText:FT,table:jT,tableData:NT,tableHeader:NT,tableRow:NT}}}function AT(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function jT(e){this.exit(e),this.data.inTable=void 0}function MT(e){this.enter({type:`tableRow`,children:[]},e)}function NT(e){this.exit(e)}function PT(e){this.enter({type:`tableCell`,children:[]},e)}function FT(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,IT));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function IT(e,t){return t===`|`?t:e}function LT(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
42
|
-
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
43
|
-
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return jw(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=OT.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function RT(){return{exit:{taskListCheckValueChecked:BT,taskListCheckValueUnchecked:BT,paragraph:VT}}}function zT(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:HT}}}function BT(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function VT(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function HT(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=OT.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function UT(){return[YC(),yw(),ww(),kT(),RT()]}function WT(e){return{extensions:[XC(),bw(e),Tw(),LT(e),zT()]}}var GT={tokenize:aE,partial:!0},KT={tokenize:oE,partial:!0},qT={tokenize:sE,partial:!0},JT={tokenize:cE,partial:!0},YT={tokenize:lE,partial:!0},XT={name:`wwwAutolink`,tokenize:rE,previous:uE},ZT={name:`protocolAutolink`,tokenize:iE,previous:dE},QT={name:`emailAutolink`,tokenize:nE,previous:fE},$T={};function eE(){return{text:$T}}for(var tE=48;tE<123;)$T[tE]=QT,tE++,tE===58?tE=65:tE===91&&(tE=97);$T[43]=QT,$T[45]=QT,$T[46]=QT,$T[95]=QT,$T[72]=[QT,ZT],$T[104]=[QT,ZT],$T[87]=[QT,XT],$T[119]=[QT,XT];function nE(e,t,n){let r=this,i,a;return o;function o(t){return!pE(t)||!fE.call(r,r.previous)||mE(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return pE(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(YT,u,l)(t):t===45||t===95||yp(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&vp(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function rE(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!uE.call(r,r.previous)||mE(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(GT,e.attempt(KT,e.attempt(qT,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function iE(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&dE.call(r,r.previous)&&!mE(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(vp(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||xp(t)||Tp(t)||Dp(t)||Ep(t)?n(t):e.attempt(KT,e.attempt(qT,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function aE(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function oE(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(JT,c,s)(t):t===null||Tp(t)||Dp(t)||t!==45&&Ep(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function sE(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(JT,t,a)(o):o===null||Tp(o)||Dp(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function cE(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Tp(o)||Dp(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Tp(e)||Dp(e)?t(e):r(e)}function a(e){return vp(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):vp(t)?(e.consume(t),o):n(t)}}function lE(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return yp(e)?n(e):t(e)}}function uE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Tp(e)}function dE(e){return!vp(e)}function fE(e){return!(e===47||pE(e))}function pE(e){return e===43||e===45||e===46||e===95||yp(e)}function mE(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var hE={tokenize:CE,partial:!0};function gE(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:bE,continuation:{tokenize:xE},exit:SE}},text:{91:{name:`gfmFootnoteCall`,tokenize:yE},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:_E,resolveTo:vE}}}}function _E(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=_p(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function vE(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function yE(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Tp(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(_p(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Tp(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function bE(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Tp(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=_p(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Tp(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Ap(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function xE(e,t,n){return e.check(Gp,t,e.attempt(hE,t,n))}function SE(e){e.exit(`gfmFootnoteDefinition`)}function CE(e,t,n){let r=this;return Ap(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function wE(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&up(o,o.length,0,Rp(s,e.slice(r+1,n),t)),up(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),up(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Lp(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Lp(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var TE=class{constructor(){this.map=[]}add(e,t,n){EE(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function EE(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function DE(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function OE(){return{flow:{null:{name:`table`,tokenize:kE,resolveAll:AE}}}}function kE(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):W(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):G(t)?Ap(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Tp(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,G(t)?Ap(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return G(t)?Ap(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||W(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return G(t)?Ap(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||W(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||W(n)?(e.exit(`tableRow`),t(n)):G(n)?Ap(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Tp(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function AE(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new TE;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(ME(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=jE(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=jE(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=jE(f,t,o,i,n,d)):(o[0]=o[1],d=jE(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&ME(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=DE(t.events,n))}return e}function jE(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},NE(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=NE(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=NE(t.events,n[2]),a=NE(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},NE(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function ME(e,t,n,r,i){let a=[],o=NE(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function NE(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var PE={name:`tasklistCheck`,tokenize:IE};function FE(){return{text:{91:PE}}}function IE(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Tp(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return W(r)?t(r):G(r)?e.check({tokenize:LE},t,n)(r):n(r)}}function LE(e,t,n){return Ap(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function RE(e){return pp([eE(),gE(),wE(e),OE(),FE()])}var zE={};function BE(e){let t=this,n=e||zE,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(RE(n)),a.push(UT()),o.push(WT(n))}function VE(e){try{return decodeURIComponent(e)}catch{return e}}function HE(e){if(!/^[0-9]+$/u.test(e))return null;let t=Number(e);return Number.isSafeInteger(t)&&t>0?t:null}function UE(e){let t=e.match(/#L([0-9]+)$/u);if(t){let n=HE(t[1]??``);return n===null?null:{lineNumber:n,path:e.slice(0,t.index)}}if(e.includes(`#`))return null;let n=e.match(/:([0-9]+)$/u);if(n){let t=HE(n[1]??``);return t===null?null:{lineNumber:t,path:e.slice(0,n.index)}}return{lineNumber:null,path:e}}function WE(e){let t=e.split(`/`),n=t[t.length-1]??``;return n.startsWith(`.`)||n.includes(`.`)}function GE(e){return e.startsWith(`/`)&&!e.startsWith(`//`)&&e!==`/`&&!e.endsWith(`/`)&&!e.includes(`
|
|
44
|
-
`)&&!e.includes(`\r`)&&!e.includes(`?`)&&!e.includes(`#`)}function KE(e){if(e.length===0||e.trim()!==e||!e.startsWith(`/`)||e.startsWith(`//`))return null;let t=UE(VE(e));return!t||!GE(t.path)?null:t}function qE(e){if(!e)return null;if(e.startsWith(`file://`))try{let t=new URL(e);return t.search.length>0?null:KE(t.pathname+t.hash)}catch{return null}return KE(e)}function JE(e){return e.split(`/`).map(encodeURIComponent).join(`/`)}function YE(e){return e.path.startsWith(`/`)&&(e.lineNumber!==null||WE(e.path))}function XE(e,t){return!e||!YE(e)?t:`file://${JE(e.path)}${e.lineNumber===null?``:`#L${e.lineNumber}`}`}var ZE=Er(`bb.theme`,`system`,_r(e=>e===`light`||e===`dark`||e===`system`),{getOnInit:!0});function QE(){return fr().get(ZE)}function $E(e){typeof document>`u`||document.documentElement.classList.toggle(`dark`,e===`dark`)}function eD(){return typeof window>`u`||typeof window.matchMedia!=`function`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function tD(){let e=QE();return e===`system`?eD():e}function nD(e){fr().set(ZE,e),$E(tD()),cD()}var rD=`light`,iD=`system`,aD=new Set,oD=new Set,sD=!1;function cD(){let e=QE(),t=tD();$E(t);let n=e!==iD,r=t!==rD;iD=e,rD=t,n&&oD.forEach(e=>e()),r&&aD.forEach(e=>e())}function lD(){sD||typeof window>`u`||(sD=!0,iD=QE(),rD=tD(),$E(rD),fr().sub(ZE,cD),typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,cD))}function uD(){lD()}function dD(e){return lD(),aD.add(e),()=>{aD.delete(e)}}function fD(){return R.useSyncExternalStore(dD,()=>typeof window>`u`?`light`:(rD=tD(),rD),()=>`light`)}function pD(e){return lD(),oD.add(e),()=>{oD.delete(e)}}function mD(){return R.useSyncExternalStore(pD,QE,()=>`system`)}var hD=`max(100%, min(1100px, 100cqw - 2rem))`,gD=`--md-content-w`,_D=/^\(\s*prefers-color-scheme\s*:\s*(dark|light)\s*\)$/iu,vD=[xC,BC],yD=(e,t)=>t===`href`&&qE(e)?e:cv(e);function bD({children:e,href:t,onOpenLocalFileLink:n,...r}){let i=n?qE(t):null,a=XE(i,t),o=e=>{!i||!n||n(i)&&e.preventDefault()};return(0,z.jsxs)(`a`,{...r,href:a,className:I(`break-words underline underline-offset-2`,i&&`inline-flex items-baseline gap-1`),target:`_blank`,rel:`noopener noreferrer`,onClick:o,children:[e,i?(0,z.jsx)(F,{name:`ExternalLink`,"aria-hidden":!0,className:`size-3 shrink-0 self-center text-subtle-foreground`}):null]})}function xD({className:e,children:t,...n}){let r=String(t??``).replace(/\n$/,``),i=/language-(\w+)/u.exec(e||``)?.[1];return i!==void 0||r.includes(`
|
|
45
|
-
`)?(0,z.jsxs)(`div`,{className:`my-2 overflow-hidden rounded-md border border-border bg-surface-recessed`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between pl-3 pr-1.5 pt-1.5`,children:[(0,z.jsx)(`span`,{className:`font-mono text-xs uppercase text-muted-foreground`,children:i??``}),(0,z.jsx)(bd,{text:r,label:`Copy code`})]}),(0,z.jsx)(`pre`,{className:`overflow-x-auto px-3 pb-3 pt-1`,children:(0,z.jsx)(`code`,{className:I(`font-mono text-xs`,i?`language-${i}`:``),...n,children:r})})]}):(0,z.jsx)(`code`,{className:`rounded bg-muted px-1.5 py-0.5 font-mono text-xs`,...n,children:t})}function SD({children:e}){return(0,z.jsx)(z.Fragment,{children:e})}function CD({children:e}){return(0,z.jsx)(`h1`,{className:`mb-2 mt-4 text-lg font-semibold text-foreground first:mt-0`,children:e})}function wD({children:e}){return(0,z.jsx)(`h2`,{className:`mb-2 mt-4 text-base font-semibold text-foreground first:mt-0`,children:e})}function TD({children:e}){return(0,z.jsx)(`h3`,{className:`mb-2 mt-3 text-sm font-semibold text-foreground first:mt-0`,children:e})}function ED({children:e}){return(0,z.jsx)(`h4`,{className:`mb-1 mt-3 text-sm font-medium text-foreground first:mt-0`,children:e})}function DD({children:e}){return(0,z.jsx)(`h5`,{className:`mb-1 mt-2 text-sm font-semibold uppercase text-muted-foreground first:mt-0`,children:e})}function OD({children:e}){return(0,z.jsx)(`h6`,{className:`mb-1 mt-2 text-xs font-semibold uppercase text-muted-foreground first:mt-0`,children:e})}function kD({children:e,className:t,node:n,...r}){return(0,z.jsx)(`p`,{...r,className:`mb-2 text-foreground last:mb-0`,children:e})}function AD({children:e}){return(0,z.jsx)(`ul`,{className:`mb-2 list-disc pl-5 text-foreground`,children:e})}function jD({children:e}){return(0,z.jsx)(`ol`,{className:`mb-2 list-decimal pl-5 text-foreground`,children:e})}function MD({children:e}){return(0,z.jsx)(`li`,{className:`mb-1 text-foreground`,children:e})}function ND({children:e}){return(0,z.jsx)(`blockquote`,{className:`my-2 border-l-2 border-border pl-3 italic text-muted-foreground`,children:e})}function PD({children:e}){return(0,z.jsx)(`div`,{className:`my-2 flex justify-center`,style:{width:hD,marginInline:`calc((100% - ${hD}) / 2)`},children:(0,z.jsx)(`div`,{className:`w-max max-w-full overflow-x-auto`,style:{minWidth:`min(var(${gD}), 100%)`},children:(0,z.jsx)(`table`,{className:`border border-border`,children:e})})})}function FD({children:e}){return(0,z.jsx)(`thead`,{className:`bg-surface-recessed`,children:e})}function ID({children:e}){return(0,z.jsx)(`th`,{className:`border border-border px-2 py-1 text-left font-medium`,children:e})}function LD({children:e}){return(0,z.jsx)(`td`,{className:`border border-border px-2 py-1`,children:e})}function RD({alt:e,imageAttributes:t,setExpandedImageUrl:n,src:r}){let i=typeof r==`string`?r:``;return i?(0,z.jsx)(`img`,{...t,src:i,alt:typeof e==`string`?e:`Image`,className:`my-2 max-h-96 max-w-full cursor-zoom-in object-contain`,loading:`lazy`,onClick:()=>n(i)}):null}function zD(e){return(0,z.jsx)(`hr`,{className:`my-4 border-t border-border`})}function BD(e){let t=_D.exec(e)?.[1];return t===`dark`||t===`light`?t:null}function VD({media:e,preferredTheme:t}){if(!e)return e;let n=BD(e);return n?n===t?`all`:`not all`:e}function HD({onOpenLocalFileLink:e,preferredTheme:t,setExpandedImageUrl:n}){function r(t){return(0,z.jsx)(bD,{...t,onOpenLocalFileLink:e})}function i({src:e,alt:t,className:r,node:i,...a}){return RD({alt:t,imageAttributes:a,setExpandedImageUrl:n,src:e})}function a({media:e,node:n,...r}){return(0,z.jsx)(`source`,{...r,media:VD({media:e,preferredTheme:t})})}return{a:r,blockquote:ND,code:xD,h1:CD,h2:wD,h3:TD,h4:ED,h5:DD,h6:OD,hr:zD,img:i,li:MD,ol:jD,p:kD,pre:SD,source:a,table:PD,td:LD,th:ID,thead:FD,ul:AD}}function UD({element:e,width:t}){t<=0||e.style.setProperty(gD,`${t}px`)}function WD(){let e=(0,R.useRef)(null);return(0,R.useLayoutEffect)(()=>{let t=e.current;if(!t||(UD({element:t,width:t.getBoundingClientRect().width}),typeof ResizeObserver>`u`))return;let n=new ResizeObserver(e=>{let n=e[0];n&&UD({element:t,width:n.contentRect.width})});return n.observe(t),()=>n.disconnect()},[]),e}function GD({allowHtml:e=!1,className:t,content:n,expandedImageAlt:r=`Expanded image`,imageLightboxTitle:i=`Expanded image preview`,onOpenLocalFileLink:a}){let o=fD(),s=WD(),[c,l]=(0,R.useState)(null),u=(0,R.useMemo)(()=>HD({onOpenLocalFileLink:a,preferredTheme:o,setExpandedImageUrl:l}),[a,o]);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{ref:s,className:I(`max-w-none break-words text-sm leading-relaxed text-foreground`,t),children:(0,z.jsx)(iv,{rehypePlugins:e?vD:void 0,remarkPlugins:[BE],components:u,urlTransform:a?yD:void 0,children:n})}),(0,z.jsx)(_d,{imageSrc:c,imageAlt:r,title:i,onClose:()=>l(null)})]})}var KD=(0,R.memo)(GD);KD.displayName=`MarkdownPreview`;function qD(e,t){if(e===`user`||!t.startsWith(`[bb`))return 0;let n=t.indexOf(`]`);if(n===-1)return 0;let r=n+1;for(;r<t.length&&/\s/.test(t.charAt(r));)r+=1;return r}var JD=/^[a-zA-Z]:[\\/]/u,YD=/^[a-zA-Z][a-zA-Z0-9+.-]*:/u;function XD({path:e}){return e.startsWith(`/`)||JD.test(e)}function ZD({path:e}){return e.length>0&&!e.startsWith(`\\`)&&!XD({path:e})&&!YD.test(e)}function QD({path:e,projectId:t}){return!t||!ZD({path:e})?null:le(t,e)}function $D(e){return e.kind===`steer`?e.status===`pending`?`steer pending`:`steer`:null}function eO({attachments:e,projectId:t,resolveUserAttachmentImageSrc:n}){if(!e)return{filePaths:[],imageItems:[]};let r=[...e.imageUrls.map(e=>({alt:bl(e),src:e})),...e.localImagePaths.map(e=>({alt:bl(e),src:n?n(e,t):e}))];return{filePaths:e.localFilePaths,imageItems:r}}function tO({align:e=`start`,filePaths:t,imageItems:n,onOpenLocalFileLink:r,projectId:i}){let[a,o]=(0,R.useState)(null),s=a===null?null:n[a]??null,c=n.length>1,l=e===`end`?`justify-end`:`justify-start`;return(0,R.useEffect)(()=>{a===null||a<n.length||o(null)},[a,n.length]),t.length===0&&n.length===0?null:(0,z.jsxs)(`div`,{className:`mt-2 space-y-2`,children:[n.length>0?(0,z.jsx)(`div`,{className:I(`flex flex-wrap gap-2`,l),children:n.map((t,n)=>(0,z.jsx)(`button`,{type:`button`,className:I(`cursor-zoom-in overflow-hidden rounded-md border`,e===`end`?`border-surface-selected-border bg-surface-raised`:`border-border bg-surface-recessed`),onClick:()=>o(n),title:t.alt,children:(0,z.jsx)(`img`,{src:t.src,alt:t.alt,className:I(`object-cover`,e===`end`?`h-20 max-w-36`:`h-16 w-24`),loading:`lazy`})},`${t.src}-${n}`))}):null,t.length>0?(0,z.jsx)(`div`,{className:I(`flex flex-wrap gap-1.5`,l),children:t.map(t=>{let n=I(`inline-flex max-w-full items-center rounded-full border px-2 py-0.5 text-xs text-muted-foreground`,e===`end`?`border-surface-selected-border bg-surface-raised`:`border-border bg-surface-recessed`),a=(0,z.jsx)(`span`,{className:`truncate`,children:bl(t)}),o=QD({path:t,projectId:i});return o?(0,z.jsx)(`a`,{href:o,target:`_blank`,rel:`noreferrer`,className:I(n,`hover:bg-state-hover`),children:a},t):!r||!XD({path:t})?(0,z.jsx)(`span`,{className:I(n,`cursor-default`),children:a},t):(0,z.jsx)(`button`,{type:`button`,className:I(n,`hover:bg-state-hover`),onClick:()=>{r({lineNumber:null,path:t})},children:a},t)})}):null,(0,z.jsx)(_d,{title:`Attached image preview`,imageSrc:s?.src??null,imageAlt:s?.alt??`Attached image`,hasMultipleImages:c,onPrevious:()=>{o(a===null||n.length<=1?a:gd({currentIndex:a,direction:`previous`,itemCount:n.length}))},onNext:()=>{o(a===null||n.length<=1?a:gd({currentIndex:a,direction:`next`,itemCount:n.length}))},onClose:()=>o(null)})]})}var nO=15,rO=4096;function iO(e){return e.split(/\r\n|\r|\n/u)}function aO(e,t,n){let[r,i]=(0,R.useState)(!1);return(0,R.useLayoutEffect)(()=>{if(!t){i(!1);return}let n=e.current;if(!n)return;let r=()=>{i(n.scrollHeight>n.clientHeight+1)};if(r(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(r);return a.observe(n),()=>a.disconnect()},[e,t,n]),r}function oO({text:e,mutePrefixLength:t}){let n=typeof t==`number`&&t>0&&t<e.length,r=n?e.slice(0,t):null,i=n?e.slice(t):e,[a,o]=(0,R.useState)(!1),s=(0,R.useRef)(null),c=i.length>rO,l=c?i.slice(0,rO):i,u=iO(l),d=u.length>nO,f=a||!d?l:u.slice(0,nO).join(`
|
|
46
|
-
`),p=aO(s,!a,f),m=a||d||p;return(0,z.jsxs)(z.Fragment,{children:[r===null?null:(0,z.jsx)(`span`,{className:`line-clamp-1 text-muted-foreground`,title:r.trimEnd(),children:r}),(0,z.jsxs)(`p`,{ref:s,className:I(`whitespace-pre-wrap break-words`,!a&&`line-clamp-[15]`),children:[f,a&&c?(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:` [truncated]`}):null]}),m?(0,z.jsx)(`div`,{className:`mt-1 flex justify-end`,children:(0,z.jsx)(`button`,{type:`button`,onClick:()=>o(e=>!e),className:`text-xs font-medium text-muted-foreground hover:text-foreground`,"aria-expanded":a,children:a?`Show less`:`Show more`})}):null]})}function sO({attachmentItems:e,initiator:t,onOpenLocalFileLink:n,projectId:r,text:i,turnRequest:a}){let o=(0,R.useMemo)(()=>qD(t,i),[t,i]),s=i.trim(),c=$D(a),l=a.kind===`steer`&&a.status===`pending`,u=c!==null||s.length>0;return(0,z.jsx)(`div`,{className:`w-full`,children:(0,z.jsxs)(`div`,{className:`ml-auto w-fit max-w-[80%]`,children:[(0,z.jsxs)(`div`,{className:`rounded-md bg-surface-selected p-2 text-sm leading-relaxed text-foreground`,children:[s?(0,z.jsx)(oO,{text:i,mutePrefixLength:o||void 0}):(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Sent attachments`}),(0,z.jsx)(tO,{align:`end`,filePaths:e.filePaths,imageItems:e.imageItems,onOpenLocalFileLink:n,projectId:r})]}),u?(0,z.jsxs)(`div`,{className:`mt-1 flex items-center justify-end gap-2`,children:[c?(0,z.jsxs)(`span`,{className:I(`shrink-0 whitespace-nowrap text-xs leading-none text-muted-foreground`,l&&`animate-shine`),children:[(0,z.jsx)(F,{name:`CornerDownRight`,className:`mr-1 inline-block size-3 align-middle`}),c]}):null,s?(0,z.jsx)(bd,{text:i,label:`Copy message`}):null]}):null]})})}function cO({attachmentItems:e,onOpenLocalFileLink:t,projectId:n,text:r}){return(0,z.jsxs)(`div`,{className:`group w-full px-2 text-sm leading-relaxed`,children:[(0,z.jsx)(KD,{content:r,onOpenLocalFileLink:t}),(0,z.jsx)(tO,{filePaths:e.filePaths,imageItems:e.imageItems,onOpenLocalFileLink:t,projectId:n})]})}function lO(e){let{attachments:t,onOpenLocalFileLink:n,projectId:r,resolveUserAttachmentImageSrc:i,text:a}=e,o=(0,R.useMemo)(()=>eO({attachments:t,projectId:r,resolveUserAttachmentImageSrc:i}),[t,r,i]);return e.role===`user`?(0,z.jsx)(sO,{attachmentItems:o,attachments:t,initiator:e.initiator,onOpenLocalFileLink:n,projectId:r,resolveUserAttachmentImageSrc:i,text:a,turnRequest:e.turnRequest}):(0,z.jsx)(cO,{attachmentItems:o,attachments:t,onOpenLocalFileLink:n,projectId:r,resolveUserAttachmentImageSrc:i,text:a,turnRequest:e.turnRequest})}var uO=Dr(0),dO=200,fO=typeof window>`u`?R.useEffect:R.useLayoutEffect,pO=`text-muted-foreground transition-colors hover:text-foreground focus-visible:text-foreground`,mO=`text-foreground`,hO=`text-muted-foreground`,gO=`inline-flex max-w-full items-center gap-1 overflow-hidden py-0.5 text-left text-sm`;function _O({className:e}){return(0,z.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`,className:I(`lucide lucide-chevron-right`,e),"aria-hidden":`true`,children:(0,z.jsx)(`path`,{d:`M6 4l4 4-4 4`})})}function vO(e){return e?mO:pO}function yO({summaryContent:e,toneClassName:t,summaryClassName:n,className:r,isExpanded:i=!1,onToggle:a}){let o=I(gO,t,a?`group/toggle`:null,r),s=n??`min-w-0 truncate`;return a?(0,z.jsxs)(`button`,{type:`button`,"aria-expanded":i,onClick:a,className:o,children:[(0,z.jsx)(`span`,{className:s,children:e}),(0,z.jsx)(_O,{className:I(`pointer-events-none size-4 shrink-0 origin-center transition-[opacity,rotate] duration-200 ease-out`,i?`rotate-90`:`opacity-0 group-hover/toggle:opacity-100 group-focus-visible/toggle:opacity-100 max-md:pointer-coarse:opacity-100`)})]}):(0,z.jsx)(`div`,{className:o,children:(0,z.jsx)(`span`,{className:s,children:e})})}function bO({isExpanded:e,summaryContent:t,headerToneClass:n,onToggle:r,headerButtonClassName:i,summaryContentClassName:a,children:o,renderBody:s,className:c,headerClassName:l,bodyClassName:u,contentClassName:d}){let f=I(`px-2 py-1`,l,i),[p,m]=(0,R.useState)(!1),h=(0,R.useRef)(null),g=(0,R.useMemo)(()=>e?s?s():o:null,[o,e,s]),_=Or(uO),v=(0,R.useRef)(!0);fO(()=>{if(v.current){v.current=!1;return}_(e=>e+1);let e=!1,t=()=>{e||(e=!0,_(e=>Math.max(0,e-1)))},n=window.setTimeout(t,dO);return()=>{window.clearTimeout(n),t()}},[e,_]),fO(()=>{e&&(h.current=g)},[g,e]),fO(()=>{if(e||h.current===null)return;m(!0);let t=setTimeout(()=>{h.current=null,m(!1)},dO);return()=>clearTimeout(t)},[e]);let y=e?g:p?h.current:null;return(0,z.jsxs)(`div`,{className:I(`rounded-md text-muted-foreground`,c),children:[(0,z.jsx)(yO,{isExpanded:e,onToggle:r,toneClassName:n,className:f,summaryClassName:a??`min-w-0 truncate`,summaryContent:t}),(0,z.jsx)(`div`,{"aria-hidden":!e,className:I(`grid transition-[grid-template-rows,opacity] duration-200 ease-out`,e?`pointer-events-auto grid-rows-[1fr] opacity-100`:`pointer-events-none grid-rows-[0fr] opacity-0`,u),children:(0,z.jsx)(`div`,{className:`overflow-hidden`,children:(0,z.jsx)(`div`,{className:I(`px-2 pb-1 pt-0 transition-[transform,opacity] duration-200 ease-out will-change-transform`,e?`translate-y-0 opacity-100`:`-translate-y-1 opacity-0`,d),children:y})})})]})}var xO=`min-w-0 max-w-full`,SO=`timeline-row-header flex w-full max-w-full justify-start py-0 leading-5`;function CO(e){switch(e){case`default`:return`px-2`;case`flush`:return`px-0`}}function wO(e){return I(CO(e),SO)}function TO({children:e,className:t,horizontalPadding:n=`default`}){return(0,z.jsx)(`div`,{className:I(`w-full rounded-md text-muted-foreground`,t),children:(0,z.jsx)(yO,{toneClassName:hO,className:wO(n),summaryClassName:xO,summaryContent:e})})}function EO({insertions:e,deletions:t,hideZero:n=!1,className:r}){let i=!n||e>0,a=!n||t>0;return(0,z.jsxs)(`span`,{className:I(`whitespace-nowrap`,r),children:[i?(0,z.jsxs)(`span`,{className:`text-diff-added`,children:[`+`,Pl(e)]}):null,i&&a?` `:null,a?(0,z.jsxs)(`span`,{className:`text-diff-removed`,children:[`-`,Pl(t)]}):null]})}function DO(e){switch(e){case`default`:return`font-semibold text-foreground`;case`destructive`:return`text-destructive`;case`summary`:return`text-subtle-foreground`;default:return yl(e)}}function OO(e){switch(e){case`default`:return`text-muted-foreground`;case`destructive`:return`text-destructive`;case`summary`:return`text-subtle-foreground`;default:return yl(e)}}function kO(e){switch(e){case`default`:return`text-muted-foreground`;case`destructive`:return`text-destructive`;case`summary`:return`text-subtle-foreground`;default:return yl(e)}}function AO(e,t,n,r){let i=I(e.truncate?`min-w-0 truncate whitespace-pre`:`shrink-0 whitespace-pre`,e.em?DO(n):OO(n),e.shimmer?`animate-shine`:null);if(r.linkHref!==null){let n=r.linkHref;return(0,z.jsx)(`a`,{href:n,className:I(i,`cursor-pointer text-left underline underline-offset-2 focus-visible:outline-none`),onClick:e=>{e.stopPropagation()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&e.stopPropagation()},children:e.text},t)}if(e.em&&r.onClick){let n=r.onClick;return(0,z.jsx)(`span`,{role:`link`,tabIndex:0,className:I(i,`cursor-pointer text-left underline-offset-2 hover:underline focus-visible:underline focus-visible:outline-none`),onClick:e=>{e.stopPropagation(),n()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),n())},children:e.text},t)}return(0,z.jsx)(`span`,{className:i,children:e.text},t)}function jO({startedAt:e}){let[t,n]=(0,R.useState)(()=>Date.now()-e);return(0,R.useEffect)(()=>{n(Date.now()-e);let t=window.setInterval(()=>{n(Date.now()-e)},1e3);return()=>window.clearInterval(t)},[e]),t<=1e3?null:(0,z.jsx)(z.Fragment,{children:jl(t)})}function MO(e,t,n){let r=I(`shrink-0 whitespace-pre`,kO(n));switch(e.kind){case`duration`:return(0,z.jsx)(`span`,{className:e.em?I(`shrink-0 whitespace-pre`,DO(n)):r,children:e.completedAt===null?(0,z.jsx)(jO,{startedAt:e.startedAt}):jl(e.completedAt-e.startedAt)},t);case`status`:case`summary-status`:{let n=Pu(e);return n.length===0?null:(0,z.jsx)(`span`,{className:r,children:n},t)}case`diff-stats`:if(n===`summary`){let n=Fl({added:e.added,removed:e.removed,hideZero:!0});return n.length===0?null:(0,z.jsx)(`span`,{className:r,children:n},t)}return(0,z.jsx)(EO,{insertions:e.added,deletions:e.removed,hideZero:!0,className:`shrink-0`},t);default:return yl(e)}}function NO({title:e,className:t,onTitleAction:n,resolveSegmentLinkHref:r}){let i=e.action&&n?n(e.action):null;return(0,z.jsxs)(`span`,{className:I(`inline-flex min-w-0 max-w-full items-baseline gap-1 overflow-hidden whitespace-nowrap text-sm leading-5`,t),title:e.plain,children:[e.segments.map((t,n)=>{let a=t.link&&r?r(t.link):null;return(0,z.jsxs)(R.Fragment,{children:[n>0?` `:null,AO(t,n,e.tone,{onClick:i,linkHref:a})]},`segment-${n}`)}),e.decorations.map((t,n)=>(0,z.jsxs)(R.Fragment,{children:[` `,MO(t,n,e.tone)]},`decoration-${n}`))]})}function PO(e,t){return e.tone===`destructive`?`text-destructive`:e.tone===`summary`?`text-subtle-foreground transition-colors hover:text-muted-foreground focus-visible:text-muted-foreground`:vO(t)}function FO({autoExpanded:e=!1,className:t,horizontalPadding:n=`default`,onBeforeExpand:r,onTitleAction:i,renderBody:a,resolveSegmentLinkHref:o,title:s}){let[c,l]=(0,R.useState)(null),u=c??e,d=CO(n);return(0,z.jsx)(bO,{isExpanded:u,onToggle:(0,R.useCallback)(()=>{u||r?.(),l(!u)},[u,r]),headerToneClass:PO(s,u),summaryContent:(0,z.jsx)(NO,{title:s,onTitleAction:i,resolveSegmentLinkHref:o}),summaryContentClassName:xO,className:I(`w-full`,t),headerClassName:wO(n),contentClassName:I(d,`pb-1 pt-0.5`),renderBody:a})}var IO=(0,R.memo)(FO);function LO({children:e,className:t,tone:n=`default`}){return(0,z.jsx)(`pre`,{className:I(`whitespace-pre-wrap break-words rounded-md px-2 py-1.5 font-mono text-xs leading-tight`,n===`danger`?`text-destructive`:`border border-border bg-surface-raised text-muted-foreground`,t),children:e})}var RO=me({AElig:()=>`Æ`,AMP:()=>`&`,Aacute:()=>`Á`,Abreve:()=>`Ă`,Acirc:()=>`Â`,Acy:()=>`А`,Afr:()=>BO,Agrave:()=>`À`,Alpha:()=>`Α`,Amacr:()=>`Ā`,And:()=>`⩓`,Aogon:()=>`Ą`,Aopf:()=>HO,ApplyFunction:()=>``,Aring:()=>`Å`,Ascr:()=>WO,Assign:()=>`≔`,Atilde:()=>`Ã`,Auml:()=>`Ä`,Backslash:()=>`∖`,Barv:()=>`⫧`,Barwed:()=>`⌆`,Bcy:()=>`Б`,Because:()=>`∵`,Bernoullis:()=>`ℬ`,Beta:()=>`Β`,Bfr:()=>KO,Bopf:()=>XO,Breve:()=>`˘`,Bscr:()=>`ℬ`,Bumpeq:()=>`≎`,CHcy:()=>`Ч`,COPY:()=>`©`,Cacute:()=>`Ć`,Cap:()=>`⋒`,CapitalDifferentialD:()=>`ⅅ`,Cayleys:()=>`ℭ`,Ccaron:()=>`Č`,Ccedil:()=>`Ç`,Ccirc:()=>`Ĉ`,Cconint:()=>`∰`,Cdot:()=>`Ċ`,Cedilla:()=>`¸`,CenterDot:()=>`·`,Cfr:()=>`ℭ`,Chi:()=>`Χ`,CircleDot:()=>`⊙`,CircleMinus:()=>`⊖`,CirclePlus:()=>`⊕`,CircleTimes:()=>`⊗`,ClockwiseContourIntegral:()=>`∲`,CloseCurlyDoubleQuote:()=>`”`,CloseCurlyQuote:()=>`’`,Colon:()=>`∷`,Colone:()=>`⩴`,Congruent:()=>`≡`,Conint:()=>`∯`,ContourIntegral:()=>`∮`,Copf:()=>`ℂ`,Coproduct:()=>`∐`,CounterClockwiseContourIntegral:()=>`∳`,Cross:()=>`⨯`,Cscr:()=>nk,Cup:()=>`⋓`,CupCap:()=>`≍`,DD:()=>`ⅅ`,DDotrahd:()=>`⤑`,DJcy:()=>`Ђ`,DScy:()=>`Ѕ`,DZcy:()=>`Џ`,Dagger:()=>`‡`,Darr:()=>`↡`,Dashv:()=>`⫤`,Dcaron:()=>`Ď`,Dcy:()=>`Д`,Del:()=>`∇`,Delta:()=>`Δ`,Dfr:()=>ak,DiacriticalAcute:()=>`´`,DiacriticalDot:()=>`˙`,DiacriticalDoubleAcute:()=>`˝`,DiacriticalGrave:()=>"`",DiacriticalTilde:()=>`˜`,Diamond:()=>`⋄`,DifferentialD:()=>`ⅆ`,Dopf:()=>sk,Dot:()=>`¨`,DotDot:()=>`⃜`,DotEqual:()=>`≐`,DoubleContourIntegral:()=>`∯`,DoubleDot:()=>`¨`,DoubleDownArrow:()=>`⇓`,DoubleLeftArrow:()=>`⇐`,DoubleLeftRightArrow:()=>`⇔`,DoubleLeftTee:()=>`⫤`,DoubleLongLeftArrow:()=>`⟸`,DoubleLongLeftRightArrow:()=>`⟺`,DoubleLongRightArrow:()=>`⟹`,DoubleRightArrow:()=>`⇒`,DoubleRightTee:()=>`⊨`,DoubleUpArrow:()=>`⇑`,DoubleUpDownArrow:()=>`⇕`,DoubleVerticalBar:()=>`∥`,DownArrow:()=>`↓`,DownArrowBar:()=>`⤓`,DownArrowUpArrow:()=>`⇵`,DownBreve:()=>`̑`,DownLeftRightVector:()=>`⥐`,DownLeftTeeVector:()=>`⥞`,DownLeftVector:()=>`↽`,DownLeftVectorBar:()=>`⥖`,DownRightTeeVector:()=>`⥟`,DownRightVector:()=>`⇁`,DownRightVectorBar:()=>`⥗`,DownTee:()=>`⊤`,DownTeeArrow:()=>`↧`,Downarrow:()=>`⇓`,Dscr:()=>lk,Dstrok:()=>`Đ`,ENG:()=>`Ŋ`,ETH:()=>`Ð`,Eacute:()=>`É`,Ecaron:()=>`Ě`,Ecirc:()=>`Ê`,Ecy:()=>`Э`,Edot:()=>`Ė`,Efr:()=>dk,Egrave:()=>`È`,Element:()=>`∈`,Emacr:()=>`Ē`,EmptySmallSquare:()=>`◻`,EmptyVerySmallSquare:()=>`▫`,Eogon:()=>`Ę`,Eopf:()=>pk,Epsilon:()=>`Ε`,Equal:()=>`⩵`,EqualTilde:()=>`≂`,Equilibrium:()=>`⇌`,Escr:()=>`ℰ`,Esim:()=>`⩳`,Eta:()=>`Η`,Euml:()=>`Ë`,Exists:()=>`∃`,ExponentialE:()=>`ⅇ`,Fcy:()=>`Ф`,Ffr:()=>hk,FilledSmallSquare:()=>`◼`,FilledVerySmallSquare:()=>`▪`,Fopf:()=>_k,ForAll:()=>`∀`,Fouriertrf:()=>`ℱ`,Fscr:()=>`ℱ`,GJcy:()=>`Ѓ`,GT:()=>`>`,Gamma:()=>`Γ`,Gammad:()=>`Ϝ`,Gbreve:()=>`Ğ`,Gcedil:()=>`Ģ`,Gcirc:()=>`Ĝ`,Gcy:()=>`Г`,Gdot:()=>`Ġ`,Gfr:()=>xk,Gg:()=>`⋙`,Gopf:()=>Ck,GreaterEqual:()=>`≥`,GreaterEqualLess:()=>`⋛`,GreaterFullEqual:()=>`≧`,GreaterGreater:()=>`⪢`,GreaterLess:()=>`≷`,GreaterSlantEqual:()=>`⩾`,GreaterTilde:()=>`≳`,Gscr:()=>Tk,Gt:()=>`≫`,HARDcy:()=>`Ъ`,Hacek:()=>`ˇ`,Hat:()=>`^`,Hcirc:()=>`Ĥ`,Hfr:()=>`ℌ`,HilbertSpace:()=>`ℋ`,Hopf:()=>`ℍ`,HorizontalLine:()=>`─`,Hscr:()=>`ℋ`,Hstrok:()=>`Ħ`,HumpDownHump:()=>`≎`,HumpEqual:()=>`≏`,IEcy:()=>`Е`,IJlig:()=>`IJ`,IOcy:()=>`Ё`,Iacute:()=>`Í`,Icirc:()=>`Î`,Icy:()=>`И`,Idot:()=>`İ`,Ifr:()=>`ℑ`,Igrave:()=>`Ì`,Im:()=>`ℑ`,Imacr:()=>`Ī`,ImaginaryI:()=>`ⅈ`,Implies:()=>`⇒`,Int:()=>`∬`,Integral:()=>`∫`,Intersection:()=>`⋂`,InvisibleComma:()=>``,InvisibleTimes:()=>``,Iogon:()=>`Į`,Iopf:()=>Mk,Iota:()=>`Ι`,Iscr:()=>`ℐ`,Itilde:()=>`Ĩ`,Iukcy:()=>`І`,Iuml:()=>`Ï`,Jcirc:()=>`Ĵ`,Jcy:()=>`Й`,Jfr:()=>Fk,Jopf:()=>Lk,Jscr:()=>zk,Jsercy:()=>`Ј`,Jukcy:()=>`Є`,KHcy:()=>`Х`,KJcy:()=>`Ќ`,Kappa:()=>`Κ`,Kcedil:()=>`Ķ`,Kcy:()=>`К`,Kfr:()=>Vk,Kopf:()=>Uk,Kscr:()=>Gk,LJcy:()=>`Љ`,LT:()=>`<`,Lacute:()=>`Ĺ`,Lambda:()=>`Λ`,Lang:()=>`⟪`,Laplacetrf:()=>`ℒ`,Larr:()=>`↞`,Lcaron:()=>`Ľ`,Lcedil:()=>`Ļ`,Lcy:()=>`Л`,LeftAngleBracket:()=>`⟨`,LeftArrow:()=>`←`,LeftArrowBar:()=>`⇤`,LeftArrowRightArrow:()=>`⇆`,LeftCeiling:()=>`⌈`,LeftDoubleBracket:()=>`⟦`,LeftDownTeeVector:()=>`⥡`,LeftDownVector:()=>`⇃`,LeftDownVectorBar:()=>`⥙`,LeftFloor:()=>`⌊`,LeftRightArrow:()=>`↔`,LeftRightVector:()=>`⥎`,LeftTee:()=>`⊣`,LeftTeeArrow:()=>`↤`,LeftTeeVector:()=>`⥚`,LeftTriangle:()=>`⊲`,LeftTriangleBar:()=>`⧏`,LeftTriangleEqual:()=>`⊴`,LeftUpDownVector:()=>`⥑`,LeftUpTeeVector:()=>`⥠`,LeftUpVector:()=>`↿`,LeftUpVectorBar:()=>`⥘`,LeftVector:()=>`↼`,LeftVectorBar:()=>`⥒`,Leftarrow:()=>`⇐`,Leftrightarrow:()=>`⇔`,LessEqualGreater:()=>`⋚`,LessFullEqual:()=>`≦`,LessGreater:()=>`≶`,LessLess:()=>`⪡`,LessSlantEqual:()=>`⩽`,LessTilde:()=>`≲`,Lfr:()=>Yk,Ll:()=>`⋘`,Lleftarrow:()=>`⇚`,Lmidot:()=>`Ŀ`,LongLeftArrow:()=>`⟵`,LongLeftRightArrow:()=>`⟷`,LongRightArrow:()=>`⟶`,Longleftarrow:()=>`⟸`,Longleftrightarrow:()=>`⟺`,Longrightarrow:()=>`⟹`,Lopf:()=>Zk,LowerLeftArrow:()=>`↙`,LowerRightArrow:()=>`↘`,Lscr:()=>`ℒ`,Lsh:()=>`↰`,Lstrok:()=>`Ł`,Lt:()=>`≪`,Map:()=>`⤅`,Mcy:()=>`М`,MediumSpace:()=>` `,Mellintrf:()=>`ℳ`,Mfr:()=>nA,MinusPlus:()=>`∓`,Mopf:()=>iA,Mscr:()=>`ℳ`,Mu:()=>`Μ`,NJcy:()=>`Њ`,Nacute:()=>`Ń`,Ncaron:()=>`Ň`,Ncedil:()=>`Ņ`,Ncy:()=>`Н`,NegativeMediumSpace:()=>``,NegativeThickSpace:()=>``,NegativeThinSpace:()=>``,NegativeVeryThinSpace:()=>``,NestedGreaterGreater:()=>`≫`,NestedLessLess:()=>`≪`,NewLine:()=>`
|
|
47
|
-
`,Nfr:()=>hA,NoBreak:()=>``,NonBreakingSpace:()=>`\xA0`,Nopf:()=>`ℕ`,Not:()=>`⫬`,NotCongruent:()=>`≢`,NotCupCap:()=>`≭`,NotDoubleVerticalBar:()=>`∦`,NotElement:()=>`∉`,NotEqual:()=>`≠`,NotEqualTilde:()=>MA,NotExists:()=>`∄`,NotGreater:()=>`≯`,NotGreaterEqual:()=>`≱`,NotGreaterFullEqual:()=>NA,NotGreaterGreater:()=>PA,NotGreaterLess:()=>`≹`,NotGreaterSlantEqual:()=>FA,NotGreaterTilde:()=>`≵`,NotHumpDownHump:()=>IA,NotHumpEqual:()=>LA,NotLeftTriangle:()=>`⋪`,NotLeftTriangleBar:()=>BA,NotLeftTriangleEqual:()=>`⋬`,NotLess:()=>`≮`,NotLessEqual:()=>`≰`,NotLessGreater:()=>`≸`,NotLessLess:()=>VA,NotLessSlantEqual:()=>HA,NotLessTilde:()=>`≴`,NotNestedGreaterGreater:()=>UA,NotNestedLessLess:()=>WA,NotPrecedes:()=>`⊀`,NotPrecedesEqual:()=>GA,NotPrecedesSlantEqual:()=>`⋠`,NotReverseElement:()=>`∌`,NotRightTriangle:()=>`⋫`,NotRightTriangleBar:()=>KA,NotRightTriangleEqual:()=>`⋭`,NotSquareSubset:()=>qA,NotSquareSubsetEqual:()=>`⋢`,NotSquareSuperset:()=>JA,NotSquareSupersetEqual:()=>`⋣`,NotSubset:()=>YA,NotSubsetEqual:()=>`⊈`,NotSucceeds:()=>`⊁`,NotSucceedsEqual:()=>XA,NotSucceedsSlantEqual:()=>`⋡`,NotSucceedsTilde:()=>ZA,NotSuperset:()=>QA,NotSupersetEqual:()=>`⊉`,NotTilde:()=>`≁`,NotTildeEqual:()=>`≄`,NotTildeFullEqual:()=>`≇`,NotTildeTilde:()=>`≉`,NotVerticalBar:()=>`∤`,Nscr:()=>oj,Ntilde:()=>`Ñ`,Nu:()=>`Ν`,OElig:()=>`Œ`,Oacute:()=>`Ó`,Ocirc:()=>`Ô`,Ocy:()=>`О`,Odblac:()=>`Ő`,Ofr:()=>Cj,Ograve:()=>`Ò`,Omacr:()=>`Ō`,Omega:()=>`Ω`,Omicron:()=>`Ο`,Oopf:()=>Tj,OpenCurlyDoubleQuote:()=>`“`,OpenCurlyQuote:()=>`‘`,Or:()=>`⩔`,Oscr:()=>Dj,Oslash:()=>`Ø`,Otilde:()=>`Õ`,Otimes:()=>`⨷`,Ouml:()=>`Ö`,OverBar:()=>`‾`,OverBrace:()=>`⏞`,OverBracket:()=>`⎴`,OverParenthesis:()=>`⏜`,PartialD:()=>`∂`,Pcy:()=>`П`,Pfr:()=>Oj,Phi:()=>`Φ`,Pi:()=>`Π`,PlusMinus:()=>`±`,Poincareplane:()=>`ℌ`,Popf:()=>`ℙ`,Pr:()=>`⪻`,Precedes:()=>`≺`,PrecedesEqual:()=>`⪯`,PrecedesSlantEqual:()=>`≼`,PrecedesTilde:()=>`≾`,Prime:()=>`″`,Product:()=>`∏`,Proportion:()=>`∷`,Proportional:()=>`∝`,Pscr:()=>jj,Psi:()=>`Ψ`,QUOT:()=>`"`,Qfr:()=>Nj,Qopf:()=>`ℚ`,Qscr:()=>Ij,RBarr:()=>`⤐`,REG:()=>`®`,Racute:()=>`Ŕ`,Rang:()=>`⟫`,Rarr:()=>`↠`,Rarrtl:()=>`⤖`,Rcaron:()=>`Ř`,Rcedil:()=>`Ŗ`,Rcy:()=>`Р`,Re:()=>`ℜ`,ReverseElement:()=>`∋`,ReverseEquilibrium:()=>`⇋`,ReverseUpEquilibrium:()=>`⥯`,Rfr:()=>`ℜ`,Rho:()=>`Ρ`,RightAngleBracket:()=>`⟩`,RightArrow:()=>`→`,RightArrowBar:()=>`⇥`,RightArrowLeftArrow:()=>`⇄`,RightCeiling:()=>`⌉`,RightDoubleBracket:()=>`⟧`,RightDownTeeVector:()=>`⥝`,RightDownVector:()=>`⇂`,RightDownVectorBar:()=>`⥕`,RightFloor:()=>`⌋`,RightTee:()=>`⊢`,RightTeeArrow:()=>`↦`,RightTeeVector:()=>`⥛`,RightTriangle:()=>`⊳`,RightTriangleBar:()=>`⧐`,RightTriangleEqual:()=>`⊵`,RightUpDownVector:()=>`⥏`,RightUpTeeVector:()=>`⥜`,RightUpVector:()=>`↾`,RightUpVectorBar:()=>`⥔`,RightVector:()=>`⇀`,RightVectorBar:()=>`⥓`,Rightarrow:()=>`⇒`,Ropf:()=>`ℝ`,RoundImplies:()=>`⥰`,Rrightarrow:()=>`⇛`,Rscr:()=>`ℛ`,Rsh:()=>`↱`,RuleDelayed:()=>`⧴`,SHCHcy:()=>`Щ`,SHcy:()=>`Ш`,SOFTcy:()=>`Ь`,Sacute:()=>`Ś`,Sc:()=>`⪼`,Scaron:()=>`Š`,Scedil:()=>`Ş`,Scirc:()=>`Ŝ`,Scy:()=>`С`,Sfr:()=>Hj,ShortDownArrow:()=>`↓`,ShortLeftArrow:()=>`←`,ShortRightArrow:()=>`→`,ShortUpArrow:()=>`↑`,Sigma:()=>`Σ`,SmallCircle:()=>`∘`,Sopf:()=>Gj,Sqrt:()=>`√`,Square:()=>`□`,SquareIntersection:()=>`⊓`,SquareSubset:()=>`⊏`,SquareSubsetEqual:()=>`⊑`,SquareSuperset:()=>`⊐`,SquareSupersetEqual:()=>`⊒`,SquareUnion:()=>`⊔`,Sscr:()=>Yj,Star:()=>`⋆`,Sub:()=>`⋐`,Subset:()=>`⋐`,SubsetEqual:()=>`⊆`,Succeeds:()=>`≻`,SucceedsEqual:()=>`⪰`,SucceedsSlantEqual:()=>`≽`,SucceedsTilde:()=>`≿`,SuchThat:()=>`∋`,Sum:()=>`∑`,Sup:()=>`⋑`,Superset:()=>`⊃`,SupersetEqual:()=>`⊇`,Supset:()=>`⋑`,THORN:()=>`Þ`,TRADE:()=>`™`,TSHcy:()=>`Ћ`,TScy:()=>`Ц`,Tab:()=>` `,Tau:()=>`Τ`,Tcaron:()=>`Ť`,Tcedil:()=>`Ţ`,Tcy:()=>`Т`,Tfr:()=>Zj,Therefore:()=>`∴`,Theta:()=>`Θ`,ThickSpace:()=>$j,ThinSpace:()=>` `,Tilde:()=>`∼`,TildeEqual:()=>`≃`,TildeFullEqual:()=>`≅`,TildeTilde:()=>`≈`,Topf:()=>eM,TripleDot:()=>`⃛`,Tscr:()=>nM,Tstrok:()=>`Ŧ`,Uacute:()=>`Ú`,Uarr:()=>`↟`,Uarrocir:()=>`⥉`,Ubrcy:()=>`Ў`,Ubreve:()=>`Ŭ`,Ucirc:()=>`Û`,Ucy:()=>`У`,Udblac:()=>`Ű`,Ufr:()=>iM,Ugrave:()=>`Ù`,Umacr:()=>`Ū`,UnderBar:()=>`_`,UnderBrace:()=>`⏟`,UnderBracket:()=>`⎵`,UnderParenthesis:()=>`⏝`,Union:()=>`⋃`,UnionPlus:()=>`⊎`,Uogon:()=>`Ų`,Uopf:()=>oM,UpArrow:()=>`↑`,UpArrowBar:()=>`⤒`,UpArrowDownArrow:()=>`⇅`,UpDownArrow:()=>`↕`,UpEquilibrium:()=>`⥮`,UpTee:()=>`⊥`,UpTeeArrow:()=>`↥`,Uparrow:()=>`⇑`,Updownarrow:()=>`⇕`,UpperLeftArrow:()=>`↖`,UpperRightArrow:()=>`↗`,Upsi:()=>`ϒ`,Upsilon:()=>`Υ`,Uring:()=>`Ů`,Uscr:()=>cM,Utilde:()=>`Ũ`,Uuml:()=>`Ü`,VDash:()=>`⊫`,Vbar:()=>`⫫`,Vcy:()=>`В`,Vdash:()=>`⊩`,Vdashl:()=>`⫦`,Vee:()=>`⋁`,Verbar:()=>`‖`,Vert:()=>`‖`,VerticalBar:()=>`∣`,VerticalLine:()=>`|`,VerticalSeparator:()=>`❘`,VerticalTilde:()=>`≀`,VeryThinSpace:()=>` `,Vfr:()=>mM,Vopf:()=>vM,Vscr:()=>bM,Vvdash:()=>`⊪`,Wcirc:()=>`Ŵ`,Wedge:()=>`⋀`,Wfr:()=>EM,Wopf:()=>OM,Wscr:()=>AM,Xfr:()=>MM,Xi:()=>`Ξ`,Xopf:()=>PM,Xscr:()=>IM,YAcy:()=>`Я`,YIcy:()=>`Ї`,YUcy:()=>`Ю`,Yacute:()=>`Ý`,Ycirc:()=>`Ŷ`,Ycy:()=>`Ы`,Yfr:()=>RM,Yopf:()=>BM,Yscr:()=>HM,Yuml:()=>`Ÿ`,ZHcy:()=>`Ж`,Zacute:()=>`Ź`,Zcaron:()=>`Ž`,Zcy:()=>`З`,Zdot:()=>`Ż`,ZeroWidthSpace:()=>``,Zeta:()=>`Ζ`,Zfr:()=>`ℨ`,Zopf:()=>`ℤ`,Zscr:()=>KM,aacute:()=>`á`,abreve:()=>`ă`,ac:()=>`∾`,acE:()=>zO,acd:()=>`∿`,acirc:()=>`â`,acute:()=>`´`,acy:()=>`а`,aelig:()=>`æ`,af:()=>``,afr:()=>VO,agrave:()=>`à`,alefsym:()=>`ℵ`,aleph:()=>`ℵ`,alpha:()=>`α`,amacr:()=>`ā`,amalg:()=>`⨿`,amp:()=>`&`,and:()=>`∧`,andand:()=>`⩕`,andd:()=>`⩜`,andslope:()=>`⩘`,andv:()=>`⩚`,ang:()=>`∠`,ange:()=>`⦤`,angle:()=>`∠`,angmsd:()=>`∡`,angmsdaa:()=>`⦨`,angmsdab:()=>`⦩`,angmsdac:()=>`⦪`,angmsdad:()=>`⦫`,angmsdae:()=>`⦬`,angmsdaf:()=>`⦭`,angmsdag:()=>`⦮`,angmsdah:()=>`⦯`,angrt:()=>`∟`,angrtvb:()=>`⊾`,angrtvbd:()=>`⦝`,angsph:()=>`∢`,angst:()=>`Å`,angzarr:()=>`⍼`,aogon:()=>`ą`,aopf:()=>UO,ap:()=>`≈`,apE:()=>`⩰`,apacir:()=>`⩯`,ape:()=>`≊`,apid:()=>`≋`,apos:()=>`'`,approx:()=>`≈`,approxeq:()=>`≊`,aring:()=>`å`,ascr:()=>GO,ast:()=>`*`,asymp:()=>`≈`,asympeq:()=>`≍`,atilde:()=>`ã`,auml:()=>`ä`,awconint:()=>`∳`,awint:()=>`⨑`,bNot:()=>`⫭`,backcong:()=>`≌`,backepsilon:()=>`϶`,backprime:()=>`‵`,backsim:()=>`∽`,backsimeq:()=>`⋍`,barvee:()=>`⊽`,barwed:()=>`⌅`,barwedge:()=>`⌅`,bbrk:()=>`⎵`,bbrktbrk:()=>`⎶`,bcong:()=>`≌`,bcy:()=>`б`,bdquo:()=>`„`,becaus:()=>`∵`,because:()=>`∵`,bemptyv:()=>`⦰`,bepsi:()=>`϶`,bernou:()=>`ℬ`,beta:()=>`β`,beth:()=>`ℶ`,between:()=>`≬`,bfr:()=>qO,bigcap:()=>`⋂`,bigcirc:()=>`◯`,bigcup:()=>`⋃`,bigodot:()=>`⨀`,bigoplus:()=>`⨁`,bigotimes:()=>`⨂`,bigsqcup:()=>`⨆`,bigstar:()=>`★`,bigtriangledown:()=>`▽`,bigtriangleup:()=>`△`,biguplus:()=>`⨄`,bigvee:()=>`⋁`,bigwedge:()=>`⋀`,bkarow:()=>`⤍`,blacklozenge:()=>`⧫`,blacksquare:()=>`▪`,blacktriangle:()=>`▴`,blacktriangledown:()=>`▾`,blacktriangleleft:()=>`◂`,blacktriangleright:()=>`▸`,blank:()=>`␣`,blk12:()=>`▒`,blk14:()=>`░`,blk34:()=>`▓`,block:()=>`█`,bne:()=>JO,bnequiv:()=>YO,bnot:()=>`⌐`,bopf:()=>ZO,bot:()=>`⊥`,bottom:()=>`⊥`,bowtie:()=>`⋈`,boxDL:()=>`╗`,boxDR:()=>`╔`,boxDl:()=>`╖`,boxDr:()=>`╓`,boxH:()=>`═`,boxHD:()=>`╦`,boxHU:()=>`╩`,boxHd:()=>`╤`,boxHu:()=>`╧`,boxUL:()=>`╝`,boxUR:()=>`╚`,boxUl:()=>`╜`,boxUr:()=>`╙`,boxV:()=>`║`,boxVH:()=>`╬`,boxVL:()=>`╣`,boxVR:()=>`╠`,boxVh:()=>`╫`,boxVl:()=>`╢`,boxVr:()=>`╟`,boxbox:()=>`⧉`,boxdL:()=>`╕`,boxdR:()=>`╒`,boxdl:()=>`┐`,boxdr:()=>`┌`,boxh:()=>`─`,boxhD:()=>`╥`,boxhU:()=>`╨`,boxhd:()=>`┬`,boxhu:()=>`┴`,boxminus:()=>`⊟`,boxplus:()=>`⊞`,boxtimes:()=>`⊠`,boxuL:()=>`╛`,boxuR:()=>`╘`,boxul:()=>`┘`,boxur:()=>`└`,boxv:()=>`│`,boxvH:()=>`╪`,boxvL:()=>`╡`,boxvR:()=>`╞`,boxvh:()=>`┼`,boxvl:()=>`┤`,boxvr:()=>`├`,bprime:()=>`‵`,breve:()=>`˘`,brvbar:()=>`¦`,bscr:()=>QO,bsemi:()=>`⁏`,bsim:()=>`∽`,bsime:()=>`⋍`,bsol:()=>`\\`,bsolb:()=>`⧅`,bsolhsub:()=>`⟈`,bull:()=>`•`,bullet:()=>`•`,bump:()=>`≎`,bumpE:()=>`⪮`,bumpe:()=>`≏`,bumpeq:()=>`≏`,cacute:()=>`ć`,cap:()=>`∩`,capand:()=>`⩄`,capbrcup:()=>`⩉`,capcap:()=>`⩋`,capcup:()=>`⩇`,capdot:()=>`⩀`,caps:()=>$O,caret:()=>`⁁`,caron:()=>`ˇ`,ccaps:()=>`⩍`,ccaron:()=>`č`,ccedil:()=>`ç`,ccirc:()=>`ĉ`,ccups:()=>`⩌`,ccupssm:()=>`⩐`,cdot:()=>`ċ`,cedil:()=>`¸`,cemptyv:()=>`⦲`,cent:()=>`¢`,centerdot:()=>`·`,cfr:()=>ek,chcy:()=>`ч`,check:()=>`✓`,checkmark:()=>`✓`,chi:()=>`χ`,cir:()=>`○`,cirE:()=>`⧃`,circ:()=>`ˆ`,circeq:()=>`≗`,circlearrowleft:()=>`↺`,circlearrowright:()=>`↻`,circledR:()=>`®`,circledS:()=>`Ⓢ`,circledast:()=>`⊛`,circledcirc:()=>`⊚`,circleddash:()=>`⊝`,cire:()=>`≗`,cirfnint:()=>`⨐`,cirmid:()=>`⫯`,cirscir:()=>`⧂`,clubs:()=>`♣`,clubsuit:()=>`♣`,colon:()=>`:`,colone:()=>`≔`,coloneq:()=>`≔`,comma:()=>`,`,commat:()=>`@`,comp:()=>`∁`,compfn:()=>`∘`,complement:()=>`∁`,complexes:()=>`ℂ`,cong:()=>`≅`,congdot:()=>`⩭`,conint:()=>`∮`,copf:()=>tk,coprod:()=>`∐`,copy:()=>`©`,copysr:()=>`℗`,crarr:()=>`↵`,cross:()=>`✗`,cscr:()=>rk,csub:()=>`⫏`,csube:()=>`⫑`,csup:()=>`⫐`,csupe:()=>`⫒`,ctdot:()=>`⋯`,cudarrl:()=>`⤸`,cudarrr:()=>`⤵`,cuepr:()=>`⋞`,cuesc:()=>`⋟`,cularr:()=>`↶`,cularrp:()=>`⤽`,cup:()=>`∪`,cupbrcap:()=>`⩈`,cupcap:()=>`⩆`,cupcup:()=>`⩊`,cupdot:()=>`⊍`,cupor:()=>`⩅`,cups:()=>ik,curarr:()=>`↷`,curarrm:()=>`⤼`,curlyeqprec:()=>`⋞`,curlyeqsucc:()=>`⋟`,curlyvee:()=>`⋎`,curlywedge:()=>`⋏`,curren:()=>`¤`,curvearrowleft:()=>`↶`,curvearrowright:()=>`↷`,cuvee:()=>`⋎`,cuwed:()=>`⋏`,cwconint:()=>`∲`,cwint:()=>`∱`,cylcty:()=>`⌭`,dArr:()=>`⇓`,dHar:()=>`⥥`,dagger:()=>`†`,daleth:()=>`ℸ`,darr:()=>`↓`,dash:()=>`‐`,dashv:()=>`⊣`,dbkarow:()=>`⤏`,dblac:()=>`˝`,dcaron:()=>`ď`,dcy:()=>`д`,dd:()=>`ⅆ`,ddagger:()=>`‡`,ddarr:()=>`⇊`,ddotseq:()=>`⩷`,default:()=>JM,deg:()=>`°`,delta:()=>`δ`,demptyv:()=>`⦱`,dfisht:()=>`⥿`,dfr:()=>ok,dharl:()=>`⇃`,dharr:()=>`⇂`,diam:()=>`⋄`,diamond:()=>`⋄`,diamondsuit:()=>`♦`,diams:()=>`♦`,die:()=>`¨`,digamma:()=>`ϝ`,disin:()=>`⋲`,div:()=>`÷`,divide:()=>`÷`,divideontimes:()=>`⋇`,divonx:()=>`⋇`,djcy:()=>`ђ`,dlcorn:()=>`⌞`,dlcrop:()=>`⌍`,dollar:()=>`$`,dopf:()=>ck,dot:()=>`˙`,doteq:()=>`≐`,doteqdot:()=>`≑`,dotminus:()=>`∸`,dotplus:()=>`∔`,dotsquare:()=>`⊡`,doublebarwedge:()=>`⌆`,downarrow:()=>`↓`,downdownarrows:()=>`⇊`,downharpoonleft:()=>`⇃`,downharpoonright:()=>`⇂`,drbkarow:()=>`⤐`,drcorn:()=>`⌟`,drcrop:()=>`⌌`,dscr:()=>uk,dscy:()=>`ѕ`,dsol:()=>`⧶`,dstrok:()=>`đ`,dtdot:()=>`⋱`,dtri:()=>`▿`,dtrif:()=>`▾`,duarr:()=>`⇵`,duhar:()=>`⥯`,dwangle:()=>`⦦`,dzcy:()=>`џ`,dzigrarr:()=>`⟿`,eDDot:()=>`⩷`,eDot:()=>`≑`,eacute:()=>`é`,easter:()=>`⩮`,ecaron:()=>`ě`,ecir:()=>`≖`,ecirc:()=>`ê`,ecolon:()=>`≕`,ecy:()=>`э`,edot:()=>`ė`,ee:()=>`ⅇ`,efDot:()=>`≒`,efr:()=>fk,eg:()=>`⪚`,egrave:()=>`è`,egs:()=>`⪖`,egsdot:()=>`⪘`,el:()=>`⪙`,elinters:()=>`⏧`,ell:()=>`ℓ`,els:()=>`⪕`,elsdot:()=>`⪗`,emacr:()=>`ē`,empty:()=>`∅`,emptyset:()=>`∅`,emptyv:()=>`∅`,emsp:()=>` `,emsp13:()=>` `,emsp14:()=>` `,eng:()=>`ŋ`,ensp:()=>` `,eogon:()=>`ę`,eopf:()=>mk,epar:()=>`⋕`,eparsl:()=>`⧣`,eplus:()=>`⩱`,epsi:()=>`ε`,epsilon:()=>`ε`,epsiv:()=>`ϵ`,eqcirc:()=>`≖`,eqcolon:()=>`≕`,eqsim:()=>`≂`,eqslantgtr:()=>`⪖`,eqslantless:()=>`⪕`,equals:()=>`=`,equest:()=>`≟`,equiv:()=>`≡`,equivDD:()=>`⩸`,eqvparsl:()=>`⧥`,erDot:()=>`≓`,erarr:()=>`⥱`,escr:()=>`ℯ`,esdot:()=>`≐`,esim:()=>`≂`,eta:()=>`η`,eth:()=>`ð`,euml:()=>`ë`,euro:()=>`€`,excl:()=>`!`,exist:()=>`∃`,expectation:()=>`ℰ`,exponentiale:()=>`ⅇ`,fallingdotseq:()=>`≒`,fcy:()=>`ф`,female:()=>`♀`,ffilig:()=>`ffi`,fflig:()=>`ff`,ffllig:()=>`ffl`,ffr:()=>gk,filig:()=>`fi`,fjlig:()=>`fj`,flat:()=>`♭`,fllig:()=>`fl`,fltns:()=>`▱`,fnof:()=>`ƒ`,fopf:()=>vk,forall:()=>`∀`,fork:()=>`⋔`,forkv:()=>`⫙`,fpartint:()=>`⨍`,frac12:()=>`½`,frac13:()=>`⅓`,frac14:()=>`¼`,frac15:()=>`⅕`,frac16:()=>`⅙`,frac18:()=>`⅛`,frac23:()=>`⅔`,frac25:()=>`⅖`,frac34:()=>`¾`,frac35:()=>`⅗`,frac38:()=>`⅜`,frac45:()=>`⅘`,frac56:()=>`⅚`,frac58:()=>`⅝`,frac78:()=>`⅞`,frasl:()=>`⁄`,frown:()=>`⌢`,fscr:()=>yk,gE:()=>`≧`,gEl:()=>`⪌`,gacute:()=>`ǵ`,gamma:()=>`γ`,gammad:()=>`ϝ`,gap:()=>`⪆`,gbreve:()=>`ğ`,gcirc:()=>`ĝ`,gcy:()=>`г`,gdot:()=>`ġ`,ge:()=>`≥`,gel:()=>`⋛`,geq:()=>`≥`,geqq:()=>`≧`,geqslant:()=>`⩾`,ges:()=>`⩾`,gescc:()=>`⪩`,gesdot:()=>`⪀`,gesdoto:()=>`⪂`,gesdotol:()=>`⪄`,gesl:()=>bk,gesles:()=>`⪔`,gfr:()=>Sk,gg:()=>`≫`,ggg:()=>`⋙`,gimel:()=>`ℷ`,gjcy:()=>`ѓ`,gl:()=>`≷`,glE:()=>`⪒`,gla:()=>`⪥`,glj:()=>`⪤`,gnE:()=>`≩`,gnap:()=>`⪊`,gnapprox:()=>`⪊`,gne:()=>`⪈`,gneq:()=>`⪈`,gneqq:()=>`≩`,gnsim:()=>`⋧`,gopf:()=>wk,grave:()=>"`",gscr:()=>`ℊ`,gsim:()=>`≳`,gsime:()=>`⪎`,gsiml:()=>`⪐`,gt:()=>`>`,gtcc:()=>`⪧`,gtcir:()=>`⩺`,gtdot:()=>`⋗`,gtlPar:()=>`⦕`,gtquest:()=>`⩼`,gtrapprox:()=>`⪆`,gtrarr:()=>`⥸`,gtrdot:()=>`⋗`,gtreqless:()=>`⋛`,gtreqqless:()=>`⪌`,gtrless:()=>`≷`,gtrsim:()=>`≳`,gvertneqq:()=>Ek,gvnE:()=>Dk,hArr:()=>`⇔`,hairsp:()=>` `,half:()=>`½`,hamilt:()=>`ℋ`,hardcy:()=>`ъ`,harr:()=>`↔`,harrcir:()=>`⥈`,harrw:()=>`↭`,hbar:()=>`ℏ`,hcirc:()=>`ĥ`,hearts:()=>`♥`,heartsuit:()=>`♥`,hellip:()=>`…`,hercon:()=>`⊹`,hfr:()=>Ok,hksearow:()=>`⤥`,hkswarow:()=>`⤦`,hoarr:()=>`⇿`,homtht:()=>`∻`,hookleftarrow:()=>`↩`,hookrightarrow:()=>`↪`,hopf:()=>kk,horbar:()=>`―`,hscr:()=>Ak,hslash:()=>`ℏ`,hstrok:()=>`ħ`,hybull:()=>`⁃`,hyphen:()=>`‐`,iacute:()=>`í`,ic:()=>``,icirc:()=>`î`,icy:()=>`и`,iecy:()=>`е`,iexcl:()=>`¡`,iff:()=>`⇔`,ifr:()=>jk,igrave:()=>`ì`,ii:()=>`ⅈ`,iiiint:()=>`⨌`,iiint:()=>`∭`,iinfin:()=>`⧜`,iiota:()=>`℩`,ijlig:()=>`ij`,imacr:()=>`ī`,image:()=>`ℑ`,imagline:()=>`ℐ`,imagpart:()=>`ℑ`,imath:()=>`ı`,imof:()=>`⊷`,imped:()=>`Ƶ`,incare:()=>`℅`,infin:()=>`∞`,infintie:()=>`⧝`,inodot:()=>`ı`,int:()=>`∫`,intcal:()=>`⊺`,integers:()=>`ℤ`,intercal:()=>`⊺`,intlarhk:()=>`⨗`,intprod:()=>`⨼`,iocy:()=>`ё`,iogon:()=>`į`,iopf:()=>Nk,iota:()=>`ι`,iprod:()=>`⨼`,iquest:()=>`¿`,iscr:()=>Pk,isin:()=>`∈`,isinE:()=>`⋹`,isindot:()=>`⋵`,isins:()=>`⋴`,isinsv:()=>`⋳`,isinv:()=>`∈`,it:()=>``,itilde:()=>`ĩ`,iukcy:()=>`і`,iuml:()=>`ï`,jcirc:()=>`ĵ`,jcy:()=>`й`,jfr:()=>Ik,jmath:()=>`ȷ`,jopf:()=>Rk,jscr:()=>Bk,jsercy:()=>`ј`,jukcy:()=>`є`,kappa:()=>`κ`,kappav:()=>`ϰ`,kcedil:()=>`ķ`,kcy:()=>`к`,kfr:()=>Hk,kgreen:()=>`ĸ`,khcy:()=>`х`,kjcy:()=>`ќ`,kopf:()=>Wk,kscr:()=>Kk,lAarr:()=>`⇚`,lArr:()=>`⇐`,lAtail:()=>`⤛`,lBarr:()=>`⤎`,lE:()=>`≦`,lEg:()=>`⪋`,lHar:()=>`⥢`,lacute:()=>`ĺ`,laemptyv:()=>`⦴`,lagran:()=>`ℒ`,lambda:()=>`λ`,lang:()=>`⟨`,langd:()=>`⦑`,langle:()=>`⟨`,lap:()=>`⪅`,laquo:()=>`«`,larr:()=>`←`,larrb:()=>`⇤`,larrbfs:()=>`⤟`,larrfs:()=>`⤝`,larrhk:()=>`↩`,larrlp:()=>`↫`,larrpl:()=>`⤹`,larrsim:()=>`⥳`,larrtl:()=>`↢`,lat:()=>`⪫`,latail:()=>`⤙`,late:()=>`⪭`,lates:()=>qk,lbarr:()=>`⤌`,lbbrk:()=>`❲`,lbrace:()=>`{`,lbrack:()=>`[`,lbrke:()=>`⦋`,lbrksld:()=>`⦏`,lbrkslu:()=>`⦍`,lcaron:()=>`ľ`,lcedil:()=>`ļ`,lceil:()=>`⌈`,lcub:()=>`{`,lcy:()=>`л`,ldca:()=>`⤶`,ldquo:()=>`“`,ldquor:()=>`„`,ldrdhar:()=>`⥧`,ldrushar:()=>`⥋`,ldsh:()=>`↲`,le:()=>`≤`,leftarrow:()=>`←`,leftarrowtail:()=>`↢`,leftharpoondown:()=>`↽`,leftharpoonup:()=>`↼`,leftleftarrows:()=>`⇇`,leftrightarrow:()=>`↔`,leftrightarrows:()=>`⇆`,leftrightharpoons:()=>`⇋`,leftrightsquigarrow:()=>`↭`,leftthreetimes:()=>`⋋`,leg:()=>`⋚`,leq:()=>`≤`,leqq:()=>`≦`,leqslant:()=>`⩽`,les:()=>`⩽`,lescc:()=>`⪨`,lesdot:()=>`⩿`,lesdoto:()=>`⪁`,lesdotor:()=>`⪃`,lesg:()=>Jk,lesges:()=>`⪓`,lessapprox:()=>`⪅`,lessdot:()=>`⋖`,lesseqgtr:()=>`⋚`,lesseqqgtr:()=>`⪋`,lessgtr:()=>`≶`,lesssim:()=>`≲`,lfisht:()=>`⥼`,lfloor:()=>`⌊`,lfr:()=>Xk,lg:()=>`≶`,lgE:()=>`⪑`,lhard:()=>`↽`,lharu:()=>`↼`,lharul:()=>`⥪`,lhblk:()=>`▄`,ljcy:()=>`љ`,ll:()=>`≪`,llarr:()=>`⇇`,llcorner:()=>`⌞`,llhard:()=>`⥫`,lltri:()=>`◺`,lmidot:()=>`ŀ`,lmoust:()=>`⎰`,lmoustache:()=>`⎰`,lnE:()=>`≨`,lnap:()=>`⪉`,lnapprox:()=>`⪉`,lne:()=>`⪇`,lneq:()=>`⪇`,lneqq:()=>`≨`,lnsim:()=>`⋦`,loang:()=>`⟬`,loarr:()=>`⇽`,lobrk:()=>`⟦`,longleftarrow:()=>`⟵`,longleftrightarrow:()=>`⟷`,longmapsto:()=>`⟼`,longrightarrow:()=>`⟶`,looparrowleft:()=>`↫`,looparrowright:()=>`↬`,lopar:()=>`⦅`,lopf:()=>Qk,loplus:()=>`⨭`,lotimes:()=>`⨴`,lowast:()=>`∗`,lowbar:()=>`_`,loz:()=>`◊`,lozenge:()=>`◊`,lozf:()=>`⧫`,lpar:()=>`(`,lparlt:()=>`⦓`,lrarr:()=>`⇆`,lrcorner:()=>`⌟`,lrhar:()=>`⇋`,lrhard:()=>`⥭`,lrm:()=>``,lrtri:()=>`⊿`,lsaquo:()=>`‹`,lscr:()=>$k,lsh:()=>`↰`,lsim:()=>`≲`,lsime:()=>`⪍`,lsimg:()=>`⪏`,lsqb:()=>`[`,lsquo:()=>`‘`,lsquor:()=>`‚`,lstrok:()=>`ł`,lt:()=>`<`,ltcc:()=>`⪦`,ltcir:()=>`⩹`,ltdot:()=>`⋖`,lthree:()=>`⋋`,ltimes:()=>`⋉`,ltlarr:()=>`⥶`,ltquest:()=>`⩻`,ltrPar:()=>`⦖`,ltri:()=>`◃`,ltrie:()=>`⊴`,ltrif:()=>`◂`,lurdshar:()=>`⥊`,luruhar:()=>`⥦`,lvertneqq:()=>eA,lvnE:()=>tA,mDDot:()=>`∺`,macr:()=>`¯`,male:()=>`♂`,malt:()=>`✠`,maltese:()=>`✠`,map:()=>`↦`,mapsto:()=>`↦`,mapstodown:()=>`↧`,mapstoleft:()=>`↤`,mapstoup:()=>`↥`,marker:()=>`▮`,mcomma:()=>`⨩`,mcy:()=>`м`,mdash:()=>`—`,measuredangle:()=>`∡`,mfr:()=>rA,mho:()=>`℧`,micro:()=>`µ`,mid:()=>`∣`,midast:()=>`*`,midcir:()=>`⫰`,middot:()=>`·`,minus:()=>`−`,minusb:()=>`⊟`,minusd:()=>`∸`,minusdu:()=>`⨪`,mlcp:()=>`⫛`,mldr:()=>`…`,mnplus:()=>`∓`,models:()=>`⊧`,mopf:()=>aA,mp:()=>`∓`,mscr:()=>oA,mstpos:()=>`∾`,mu:()=>`μ`,multimap:()=>`⊸`,mumap:()=>`⊸`,nGg:()=>xA,nGt:()=>SA,nGtv:()=>CA,nLeftarrow:()=>`⇍`,nLeftrightarrow:()=>`⇎`,nLl:()=>OA,nLt:()=>kA,nLtv:()=>AA,nRightarrow:()=>`⇏`,nVDash:()=>`⊯`,nVdash:()=>`⊮`,nabla:()=>`∇`,nacute:()=>`ń`,nang:()=>sA,nap:()=>`≉`,napE:()=>cA,napid:()=>lA,napos:()=>`ʼn`,napprox:()=>`≉`,natur:()=>`♮`,natural:()=>`♮`,naturals:()=>`ℕ`,nbsp:()=>`\xA0`,nbump:()=>uA,nbumpe:()=>dA,ncap:()=>`⩃`,ncaron:()=>`ň`,ncedil:()=>`ņ`,ncong:()=>`≇`,ncongdot:()=>fA,ncup:()=>`⩂`,ncy:()=>`н`,ndash:()=>`–`,ne:()=>`≠`,neArr:()=>`⇗`,nearhk:()=>`⤤`,nearr:()=>`↗`,nearrow:()=>`↗`,nedot:()=>pA,nequiv:()=>`≢`,nesear:()=>`⤨`,nesim:()=>mA,nexist:()=>`∄`,nexists:()=>`∄`,nfr:()=>gA,ngE:()=>_A,nge:()=>`≱`,ngeq:()=>`≱`,ngeqq:()=>vA,ngeqslant:()=>yA,nges:()=>bA,ngsim:()=>`≵`,ngt:()=>`≯`,ngtr:()=>`≯`,nhArr:()=>`⇎`,nharr:()=>`↮`,nhpar:()=>`⫲`,ni:()=>`∋`,nis:()=>`⋼`,nisd:()=>`⋺`,niv:()=>`∋`,njcy:()=>`њ`,nlArr:()=>`⇍`,nlE:()=>wA,nlarr:()=>`↚`,nldr:()=>`‥`,nle:()=>`≰`,nleftarrow:()=>`↚`,nleftrightarrow:()=>`↮`,nleq:()=>`≰`,nleqq:()=>TA,nleqslant:()=>EA,nles:()=>DA,nless:()=>`≮`,nlsim:()=>`≴`,nlt:()=>`≮`,nltri:()=>`⋪`,nltrie:()=>`⋬`,nmid:()=>`∤`,nopf:()=>jA,not:()=>`¬`,notin:()=>`∉`,notinE:()=>zA,notindot:()=>RA,notinva:()=>`∉`,notinvb:()=>`⋷`,notinvc:()=>`⋶`,notni:()=>`∌`,notniva:()=>`∌`,notnivb:()=>`⋾`,notnivc:()=>`⋽`,npar:()=>`∦`,nparallel:()=>`∦`,nparsl:()=>$A,npart:()=>ej,npolint:()=>`⨔`,npr:()=>`⊀`,nprcue:()=>`⋠`,npre:()=>nj,nprec:()=>`⊀`,npreceq:()=>tj,nrArr:()=>`⇏`,nrarr:()=>`↛`,nrarrc:()=>rj,nrarrw:()=>ij,nrightarrow:()=>`↛`,nrtri:()=>`⋫`,nrtrie:()=>`⋭`,nsc:()=>`⊁`,nsccue:()=>`⋡`,nsce:()=>aj,nscr:()=>sj,nshortmid:()=>`∤`,nshortparallel:()=>`∦`,nsim:()=>`≁`,nsime:()=>`≄`,nsimeq:()=>`≄`,nsmid:()=>`∤`,nspar:()=>`∦`,nsqsube:()=>`⋢`,nsqsupe:()=>`⋣`,nsub:()=>`⊄`,nsubE:()=>cj,nsube:()=>`⊈`,nsubset:()=>lj,nsubseteq:()=>`⊈`,nsubseteqq:()=>uj,nsucc:()=>`⊁`,nsucceq:()=>dj,nsup:()=>`⊅`,nsupE:()=>fj,nsupe:()=>`⊉`,nsupset:()=>pj,nsupseteq:()=>`⊉`,nsupseteqq:()=>mj,ntgl:()=>`≹`,ntilde:()=>`ñ`,ntlg:()=>`≸`,ntriangleleft:()=>`⋪`,ntrianglelefteq:()=>`⋬`,ntriangleright:()=>`⋫`,ntrianglerighteq:()=>`⋭`,nu:()=>`ν`,num:()=>`#`,numero:()=>`№`,numsp:()=>` `,nvDash:()=>`⊭`,nvHarr:()=>`⤄`,nvap:()=>hj,nvdash:()=>`⊬`,nvge:()=>gj,nvgt:()=>_j,nvinfin:()=>`⧞`,nvlArr:()=>`⤂`,nvle:()=>vj,nvlt:()=>yj,nvltrie:()=>bj,nvrArr:()=>`⤃`,nvrtrie:()=>xj,nvsim:()=>Sj,nwArr:()=>`⇖`,nwarhk:()=>`⤣`,nwarr:()=>`↖`,nwarrow:()=>`↖`,nwnear:()=>`⤧`,oS:()=>`Ⓢ`,oacute:()=>`ó`,oast:()=>`⊛`,ocir:()=>`⊚`,ocirc:()=>`ô`,ocy:()=>`о`,odash:()=>`⊝`,odblac:()=>`ő`,odiv:()=>`⨸`,odot:()=>`⊙`,odsold:()=>`⦼`,oelig:()=>`œ`,ofcir:()=>`⦿`,ofr:()=>wj,ogon:()=>`˛`,ograve:()=>`ò`,ogt:()=>`⧁`,ohbar:()=>`⦵`,ohm:()=>`Ω`,oint:()=>`∮`,olarr:()=>`↺`,olcir:()=>`⦾`,olcross:()=>`⦻`,oline:()=>`‾`,olt:()=>`⧀`,omacr:()=>`ō`,omega:()=>`ω`,omicron:()=>`ο`,omid:()=>`⦶`,ominus:()=>`⊖`,oopf:()=>Ej,opar:()=>`⦷`,operp:()=>`⦹`,oplus:()=>`⊕`,or:()=>`∨`,orarr:()=>`↻`,ord:()=>`⩝`,order:()=>`ℴ`,orderof:()=>`ℴ`,ordf:()=>`ª`,ordm:()=>`º`,origof:()=>`⊶`,oror:()=>`⩖`,orslope:()=>`⩗`,orv:()=>`⩛`,oscr:()=>`ℴ`,oslash:()=>`ø`,osol:()=>`⊘`,otilde:()=>`õ`,otimes:()=>`⊗`,otimesas:()=>`⨶`,ouml:()=>`ö`,ovbar:()=>`⌽`,par:()=>`∥`,para:()=>`¶`,parallel:()=>`∥`,parsim:()=>`⫳`,parsl:()=>`⫽`,part:()=>`∂`,pcy:()=>`п`,percnt:()=>`%`,period:()=>`.`,permil:()=>`‰`,perp:()=>`⊥`,pertenk:()=>`‱`,pfr:()=>kj,phi:()=>`φ`,phiv:()=>`ϕ`,phmmat:()=>`ℳ`,phone:()=>`☎`,pi:()=>`π`,pitchfork:()=>`⋔`,piv:()=>`ϖ`,planck:()=>`ℏ`,planckh:()=>`ℎ`,plankv:()=>`ℏ`,plus:()=>`+`,plusacir:()=>`⨣`,plusb:()=>`⊞`,pluscir:()=>`⨢`,plusdo:()=>`∔`,plusdu:()=>`⨥`,pluse:()=>`⩲`,plusmn:()=>`±`,plussim:()=>`⨦`,plustwo:()=>`⨧`,pm:()=>`±`,pointint:()=>`⨕`,popf:()=>Aj,pound:()=>`£`,pr:()=>`≺`,prE:()=>`⪳`,prap:()=>`⪷`,prcue:()=>`≼`,pre:()=>`⪯`,prec:()=>`≺`,precapprox:()=>`⪷`,preccurlyeq:()=>`≼`,preceq:()=>`⪯`,precnapprox:()=>`⪹`,precneqq:()=>`⪵`,precnsim:()=>`⋨`,precsim:()=>`≾`,prime:()=>`′`,primes:()=>`ℙ`,prnE:()=>`⪵`,prnap:()=>`⪹`,prnsim:()=>`⋨`,prod:()=>`∏`,profalar:()=>`⌮`,profline:()=>`⌒`,profsurf:()=>`⌓`,prop:()=>`∝`,propto:()=>`∝`,prsim:()=>`≾`,prurel:()=>`⊰`,pscr:()=>Mj,psi:()=>`ψ`,puncsp:()=>` `,qfr:()=>Pj,qint:()=>`⨌`,qopf:()=>Fj,qprime:()=>`⁗`,qscr:()=>Lj,quaternions:()=>`ℍ`,quatint:()=>`⨖`,quest:()=>`?`,questeq:()=>`≟`,quot:()=>`"`,rAarr:()=>`⇛`,rArr:()=>`⇒`,rAtail:()=>`⤜`,rBarr:()=>`⤏`,rHar:()=>`⥤`,race:()=>Rj,racute:()=>`ŕ`,radic:()=>`√`,raemptyv:()=>`⦳`,rang:()=>`⟩`,rangd:()=>`⦒`,range:()=>`⦥`,rangle:()=>`⟩`,raquo:()=>`»`,rarr:()=>`→`,rarrap:()=>`⥵`,rarrb:()=>`⇥`,rarrbfs:()=>`⤠`,rarrc:()=>`⤳`,rarrfs:()=>`⤞`,rarrhk:()=>`↪`,rarrlp:()=>`↬`,rarrpl:()=>`⥅`,rarrsim:()=>`⥴`,rarrtl:()=>`↣`,rarrw:()=>`↝`,ratail:()=>`⤚`,ratio:()=>`∶`,rationals:()=>`ℚ`,rbarr:()=>`⤍`,rbbrk:()=>`❳`,rbrace:()=>`}`,rbrack:()=>`]`,rbrke:()=>`⦌`,rbrksld:()=>`⦎`,rbrkslu:()=>`⦐`,rcaron:()=>`ř`,rcedil:()=>`ŗ`,rceil:()=>`⌉`,rcub:()=>`}`,rcy:()=>`р`,rdca:()=>`⤷`,rdldhar:()=>`⥩`,rdquo:()=>`”`,rdquor:()=>`”`,rdsh:()=>`↳`,real:()=>`ℜ`,realine:()=>`ℛ`,realpart:()=>`ℜ`,reals:()=>`ℝ`,rect:()=>`▭`,reg:()=>`®`,rfisht:()=>`⥽`,rfloor:()=>`⌋`,rfr:()=>zj,rhard:()=>`⇁`,rharu:()=>`⇀`,rharul:()=>`⥬`,rho:()=>`ρ`,rhov:()=>`ϱ`,rightarrow:()=>`→`,rightarrowtail:()=>`↣`,rightharpoondown:()=>`⇁`,rightharpoonup:()=>`⇀`,rightleftarrows:()=>`⇄`,rightleftharpoons:()=>`⇌`,rightrightarrows:()=>`⇉`,rightsquigarrow:()=>`↝`,rightthreetimes:()=>`⋌`,ring:()=>`˚`,risingdotseq:()=>`≓`,rlarr:()=>`⇄`,rlhar:()=>`⇌`,rlm:()=>``,rmoust:()=>`⎱`,rmoustache:()=>`⎱`,rnmid:()=>`⫮`,roang:()=>`⟭`,roarr:()=>`⇾`,robrk:()=>`⟧`,ropar:()=>`⦆`,ropf:()=>Bj,roplus:()=>`⨮`,rotimes:()=>`⨵`,rpar:()=>`)`,rpargt:()=>`⦔`,rppolint:()=>`⨒`,rrarr:()=>`⇉`,rsaquo:()=>`›`,rscr:()=>Vj,rsh:()=>`↱`,rsqb:()=>`]`,rsquo:()=>`’`,rsquor:()=>`’`,rthree:()=>`⋌`,rtimes:()=>`⋊`,rtri:()=>`▹`,rtrie:()=>`⊵`,rtrif:()=>`▸`,rtriltri:()=>`⧎`,ruluhar:()=>`⥨`,rx:()=>`℞`,sacute:()=>`ś`,sbquo:()=>`‚`,sc:()=>`≻`,scE:()=>`⪴`,scap:()=>`⪸`,scaron:()=>`š`,sccue:()=>`≽`,sce:()=>`⪰`,scedil:()=>`ş`,scirc:()=>`ŝ`,scnE:()=>`⪶`,scnap:()=>`⪺`,scnsim:()=>`⋩`,scpolint:()=>`⨓`,scsim:()=>`≿`,scy:()=>`с`,sdot:()=>`⋅`,sdotb:()=>`⊡`,sdote:()=>`⩦`,seArr:()=>`⇘`,searhk:()=>`⤥`,searr:()=>`↘`,searrow:()=>`↘`,sect:()=>`§`,semi:()=>`;`,seswar:()=>`⤩`,setminus:()=>`∖`,setmn:()=>`∖`,sext:()=>`✶`,sfr:()=>Uj,sfrown:()=>`⌢`,sharp:()=>`♯`,shchcy:()=>`щ`,shcy:()=>`ш`,shortmid:()=>`∣`,shortparallel:()=>`∥`,shy:()=>``,sigma:()=>`σ`,sigmaf:()=>`ς`,sigmav:()=>`ς`,sim:()=>`∼`,simdot:()=>`⩪`,sime:()=>`≃`,simeq:()=>`≃`,simg:()=>`⪞`,simgE:()=>`⪠`,siml:()=>`⪝`,simlE:()=>`⪟`,simne:()=>`≆`,simplus:()=>`⨤`,simrarr:()=>`⥲`,slarr:()=>`←`,smallsetminus:()=>`∖`,smashp:()=>`⨳`,smeparsl:()=>`⧤`,smid:()=>`∣`,smile:()=>`⌣`,smt:()=>`⪪`,smte:()=>`⪬`,smtes:()=>Wj,softcy:()=>`ь`,sol:()=>`/`,solb:()=>`⧄`,solbar:()=>`⌿`,sopf:()=>Kj,spades:()=>`♠`,spadesuit:()=>`♠`,spar:()=>`∥`,sqcap:()=>`⊓`,sqcaps:()=>qj,sqcup:()=>`⊔`,sqcups:()=>Jj,sqsub:()=>`⊏`,sqsube:()=>`⊑`,sqsubset:()=>`⊏`,sqsubseteq:()=>`⊑`,sqsup:()=>`⊐`,sqsupe:()=>`⊒`,sqsupset:()=>`⊐`,sqsupseteq:()=>`⊒`,squ:()=>`□`,square:()=>`□`,squarf:()=>`▪`,squf:()=>`▪`,srarr:()=>`→`,sscr:()=>Xj,ssetmn:()=>`∖`,ssmile:()=>`⌣`,sstarf:()=>`⋆`,star:()=>`☆`,starf:()=>`★`,straightepsilon:()=>`ϵ`,straightphi:()=>`ϕ`,strns:()=>`¯`,sub:()=>`⊂`,subE:()=>`⫅`,subdot:()=>`⪽`,sube:()=>`⊆`,subedot:()=>`⫃`,submult:()=>`⫁`,subnE:()=>`⫋`,subne:()=>`⊊`,subplus:()=>`⪿`,subrarr:()=>`⥹`,subset:()=>`⊂`,subseteq:()=>`⊆`,subseteqq:()=>`⫅`,subsetneq:()=>`⊊`,subsetneqq:()=>`⫋`,subsim:()=>`⫇`,subsub:()=>`⫕`,subsup:()=>`⫓`,succ:()=>`≻`,succapprox:()=>`⪸`,succcurlyeq:()=>`≽`,succeq:()=>`⪰`,succnapprox:()=>`⪺`,succneqq:()=>`⪶`,succnsim:()=>`⋩`,succsim:()=>`≿`,sum:()=>`∑`,sung:()=>`♪`,sup:()=>`⊃`,sup1:()=>`¹`,sup2:()=>`²`,sup3:()=>`³`,supE:()=>`⫆`,supdot:()=>`⪾`,supdsub:()=>`⫘`,supe:()=>`⊇`,supedot:()=>`⫄`,suphsol:()=>`⟉`,suphsub:()=>`⫗`,suplarr:()=>`⥻`,supmult:()=>`⫂`,supnE:()=>`⫌`,supne:()=>`⊋`,supplus:()=>`⫀`,supset:()=>`⊃`,supseteq:()=>`⊇`,supseteqq:()=>`⫆`,supsetneq:()=>`⊋`,supsetneqq:()=>`⫌`,supsim:()=>`⫈`,supsub:()=>`⫔`,supsup:()=>`⫖`,swArr:()=>`⇙`,swarhk:()=>`⤦`,swarr:()=>`↙`,swarrow:()=>`↙`,swnwar:()=>`⤪`,szlig:()=>`ß`,target:()=>`⌖`,tau:()=>`τ`,tbrk:()=>`⎴`,tcaron:()=>`ť`,tcedil:()=>`ţ`,tcy:()=>`т`,tdot:()=>`⃛`,telrec:()=>`⌕`,tfr:()=>Qj,there4:()=>`∴`,therefore:()=>`∴`,theta:()=>`θ`,thetasym:()=>`ϑ`,thetav:()=>`ϑ`,thickapprox:()=>`≈`,thicksim:()=>`∼`,thinsp:()=>` `,thkap:()=>`≈`,thksim:()=>`∼`,thorn:()=>`þ`,tilde:()=>`˜`,times:()=>`×`,timesb:()=>`⊠`,timesbar:()=>`⨱`,timesd:()=>`⨰`,tint:()=>`∭`,toea:()=>`⤨`,top:()=>`⊤`,topbot:()=>`⌶`,topcir:()=>`⫱`,topf:()=>tM,topfork:()=>`⫚`,tosa:()=>`⤩`,tprime:()=>`‴`,trade:()=>`™`,triangle:()=>`▵`,triangledown:()=>`▿`,triangleleft:()=>`◃`,trianglelefteq:()=>`⊴`,triangleq:()=>`≜`,triangleright:()=>`▹`,trianglerighteq:()=>`⊵`,tridot:()=>`◬`,trie:()=>`≜`,triminus:()=>`⨺`,triplus:()=>`⨹`,trisb:()=>`⧍`,tritime:()=>`⨻`,trpezium:()=>`⏢`,tscr:()=>rM,tscy:()=>`ц`,tshcy:()=>`ћ`,tstrok:()=>`ŧ`,twixt:()=>`≬`,twoheadleftarrow:()=>`↞`,twoheadrightarrow:()=>`↠`,uArr:()=>`⇑`,uHar:()=>`⥣`,uacute:()=>`ú`,uarr:()=>`↑`,ubrcy:()=>`ў`,ubreve:()=>`ŭ`,ucirc:()=>`û`,ucy:()=>`у`,udarr:()=>`⇅`,udblac:()=>`ű`,udhar:()=>`⥮`,ufisht:()=>`⥾`,ufr:()=>aM,ugrave:()=>`ù`,uharl:()=>`↿`,uharr:()=>`↾`,uhblk:()=>`▀`,ulcorn:()=>`⌜`,ulcorner:()=>`⌜`,ulcrop:()=>`⌏`,ultri:()=>`◸`,umacr:()=>`ū`,uml:()=>`¨`,uogon:()=>`ų`,uopf:()=>sM,uparrow:()=>`↑`,updownarrow:()=>`↕`,upharpoonleft:()=>`↿`,upharpoonright:()=>`↾`,uplus:()=>`⊎`,upsi:()=>`υ`,upsih:()=>`ϒ`,upsilon:()=>`υ`,upuparrows:()=>`⇈`,urcorn:()=>`⌝`,urcorner:()=>`⌝`,urcrop:()=>`⌎`,uring:()=>`ů`,urtri:()=>`◹`,uscr:()=>lM,utdot:()=>`⋰`,utilde:()=>`ũ`,utri:()=>`▵`,utrif:()=>`▴`,uuarr:()=>`⇈`,uuml:()=>`ü`,uwangle:()=>`⦧`,vArr:()=>`⇕`,vBar:()=>`⫨`,vBarv:()=>`⫩`,vDash:()=>`⊨`,vangrt:()=>`⦜`,varepsilon:()=>`ϵ`,varkappa:()=>`ϰ`,varnothing:()=>`∅`,varphi:()=>`ϕ`,varpi:()=>`ϖ`,varpropto:()=>`∝`,varr:()=>`↕`,varrho:()=>`ϱ`,varsigma:()=>`ς`,varsubsetneq:()=>uM,varsubsetneqq:()=>dM,varsupsetneq:()=>fM,varsupsetneqq:()=>pM,vartheta:()=>`ϑ`,vartriangleleft:()=>`⊲`,vartriangleright:()=>`⊳`,vcy:()=>`в`,vdash:()=>`⊢`,vee:()=>`∨`,veebar:()=>`⊻`,veeeq:()=>`≚`,vellip:()=>`⋮`,verbar:()=>`|`,vert:()=>`|`,vfr:()=>hM,vltri:()=>`⊲`,vnsub:()=>gM,vnsup:()=>_M,vopf:()=>yM,vprop:()=>`∝`,vrtri:()=>`⊳`,vscr:()=>xM,vsubnE:()=>SM,vsubne:()=>CM,vsupnE:()=>wM,vsupne:()=>TM,vzigzag:()=>`⦚`,wcirc:()=>`ŵ`,wedbar:()=>`⩟`,wedge:()=>`∧`,wedgeq:()=>`≙`,weierp:()=>`℘`,wfr:()=>DM,wopf:()=>kM,wp:()=>`℘`,wr:()=>`≀`,wreath:()=>`≀`,wscr:()=>jM,xcap:()=>`⋂`,xcirc:()=>`◯`,xcup:()=>`⋃`,xdtri:()=>`▽`,xfr:()=>NM,xhArr:()=>`⟺`,xharr:()=>`⟷`,xi:()=>`ξ`,xlArr:()=>`⟸`,xlarr:()=>`⟵`,xmap:()=>`⟼`,xnis:()=>`⋻`,xodot:()=>`⨀`,xopf:()=>FM,xoplus:()=>`⨁`,xotime:()=>`⨂`,xrArr:()=>`⟹`,xrarr:()=>`⟶`,xscr:()=>LM,xsqcup:()=>`⨆`,xuplus:()=>`⨄`,xutri:()=>`△`,xvee:()=>`⋁`,xwedge:()=>`⋀`,yacute:()=>`ý`,yacy:()=>`я`,ycirc:()=>`ŷ`,ycy:()=>`ы`,yen:()=>`¥`,yfr:()=>zM,yicy:()=>`ї`,yopf:()=>VM,yscr:()=>UM,yucy:()=>`ю`,yuml:()=>`ÿ`,zacute:()=>`ź`,zcaron:()=>`ž`,zcy:()=>`з`,zdot:()=>`ż`,zeetrf:()=>`ℨ`,zeta:()=>`ζ`,zfr:()=>WM,zhcy:()=>`ж`,zigrarr:()=>`⇝`,zopf:()=>GM,zscr:()=>qM,zwj:()=>``,zwnj:()=>``}),zO,BO,VO,HO,UO,WO,GO,KO,qO,JO,YO,XO,ZO,QO,$O,ek,tk,nk,rk,ik,ak,ok,sk,ck,lk,uk,dk,fk,pk,mk,hk,gk,_k,vk,yk,bk,xk,Sk,Ck,wk,Tk,Ek,Dk,Ok,kk,Ak,jk,Mk,Nk,Pk,Fk,Ik,Lk,Rk,zk,Bk,Vk,Hk,Uk,Wk,Gk,Kk,qk,Jk,Yk,Xk,Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA,gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,EA,DA,OA,kA,AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,WA,GA,KA,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,zj,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM,nM,rM,iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM,CM,wM,TM,EM,DM,OM,kM,AM,jM,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,UM,WM,GM,KM,qM,JM,YM=he((()=>{zO=`∾̳`,BO=`𝔄`,VO=`𝔞`,HO=`𝔸`,UO=`𝕒`,WO=`𝒜`,GO=`𝒶`,KO=`𝔅`,qO=`𝔟`,JO=`=⃥`,YO=`≡⃥`,XO=`𝔹`,ZO=`𝕓`,QO=`𝒷`,$O=`∩︀`,ek=`𝔠`,tk=`𝕔`,nk=`𝒞`,rk=`𝒸`,ik=`∪︀`,ak=`𝔇`,ok=`𝔡`,sk=`𝔻`,ck=`𝕕`,lk=`𝒟`,uk=`𝒹`,dk=`𝔈`,fk=`𝔢`,pk=`𝔼`,mk=`𝕖`,hk=`𝔉`,gk=`𝔣`,_k=`𝔽`,vk=`𝕗`,yk=`𝒻`,bk=`⋛︀`,xk=`𝔊`,Sk=`𝔤`,Ck=`𝔾`,wk=`𝕘`,Tk=`𝒢`,Ek=`≩︀`,Dk=`≩︀`,Ok=`𝔥`,kk=`𝕙`,Ak=`𝒽`,jk=`𝔦`,Mk=`𝕀`,Nk=`𝕚`,Pk=`𝒾`,Fk=`𝔍`,Ik=`𝔧`,Lk=`𝕁`,Rk=`𝕛`,zk=`𝒥`,Bk=`𝒿`,Vk=`𝔎`,Hk=`𝔨`,Uk=`𝕂`,Wk=`𝕜`,Gk=`𝒦`,Kk=`𝓀`,qk=`⪭︀`,Jk=`⋚︀`,Yk=`𝔏`,Xk=`𝔩`,Zk=`𝕃`,Qk=`𝕝`,$k=`𝓁`,eA=`≨︀`,tA=`≨︀`,nA=`𝔐`,rA=`𝔪`,iA=`𝕄`,aA=`𝕞`,oA=`𝓂`,sA=`∠⃒`,cA=`⩰̸`,lA=`≋̸`,uA=`≎̸`,dA=`≏̸`,fA=`⩭̸`,pA=`≐̸`,mA=`≂̸`,hA=`𝔑`,gA=`𝔫`,_A=`≧̸`,vA=`≧̸`,yA=`⩾̸`,bA=`⩾̸`,xA=`⋙̸`,SA=`≫⃒`,CA=`≫̸`,wA=`≦̸`,TA=`≦̸`,EA=`⩽̸`,DA=`⩽̸`,OA=`⋘̸`,kA=`≪⃒`,AA=`≪̸`,jA=`𝕟`,MA=`≂̸`,NA=`≧̸`,PA=`≫̸`,FA=`⩾̸`,IA=`≎̸`,LA=`≏̸`,RA=`⋵̸`,zA=`⋹̸`,BA=`⧏̸`,VA=`≪̸`,HA=`⩽̸`,UA=`⪢̸`,WA=`⪡̸`,GA=`⪯̸`,KA=`⧐̸`,qA=`⊏̸`,JA=`⊐̸`,YA=`⊂⃒`,XA=`⪰̸`,ZA=`≿̸`,QA=`⊃⃒`,$A=`⫽⃥`,ej=`∂̸`,tj=`⪯̸`,nj=`⪯̸`,rj=`⤳̸`,ij=`↝̸`,aj=`⪰̸`,oj=`𝒩`,sj=`𝓃`,cj=`⫅̸`,lj=`⊂⃒`,uj=`⫅̸`,dj=`⪰̸`,fj=`⫆̸`,pj=`⊃⃒`,mj=`⫆̸`,hj=`≍⃒`,gj=`≥⃒`,_j=`>⃒`,vj=`≤⃒`,yj=`<⃒`,bj=`⊴⃒`,xj=`⊵⃒`,Sj=`∼⃒`,Cj=`𝔒`,wj=`𝔬`,Tj=`𝕆`,Ej=`𝕠`,Dj=`𝒪`,Oj=`𝔓`,kj=`𝔭`,Aj=`𝕡`,jj=`𝒫`,Mj=`𝓅`,Nj=`𝔔`,Pj=`𝔮`,Fj=`𝕢`,Ij=`𝒬`,Lj=`𝓆`,Rj=`∽̱`,zj=`𝔯`,Bj=`𝕣`,Vj=`𝓇`,Hj=`𝔖`,Uj=`𝔰`,Wj=`⪬︀`,Gj=`𝕊`,Kj=`𝕤`,qj=`⊓︀`,Jj=`⊔︀`,Yj=`𝒮`,Xj=`𝓈`,Zj=`𝔗`,Qj=`𝔱`,$j=` `,eM=`𝕋`,tM=`𝕥`,nM=`𝒯`,rM=`𝓉`,iM=`𝔘`,aM=`𝔲`,oM=`𝕌`,sM=`𝕦`,cM=`𝒰`,lM=`𝓊`,uM=`⊊︀`,dM=`⫋︀`,fM=`⊋︀`,pM=`⫌︀`,mM=`𝔙`,hM=`𝔳`,gM=`⊂⃒`,_M=`⊃⃒`,vM=`𝕍`,yM=`𝕧`,bM=`𝒱`,xM=`𝓋`,SM=`⫋︀`,CM=`⊊︀`,wM=`⫌︀`,TM=`⊋︀`,EM=`𝔚`,DM=`𝔴`,OM=`𝕎`,kM=`𝕨`,AM=`𝒲`,jM=`𝓌`,MM=`𝔛`,NM=`𝔵`,PM=`𝕏`,FM=`𝕩`,IM=`𝒳`,LM=`𝓍`,RM=`𝔜`,zM=`𝔶`,BM=`𝕐`,VM=`𝕪`,HM=`𝒴`,UM=`𝓎`,WM=`𝔷`,GM=`𝕫`,KM=`𝒵`,qM=`𝓏`,JM={Aacute:`Á`,aacute:`á`,Abreve:`Ă`,abreve:`ă`,ac:`∾`,acd:`∿`,acE:zO,Acirc:`Â`,acirc:`â`,acute:`´`,Acy:`А`,acy:`а`,AElig:`Æ`,aelig:`æ`,af:``,Afr:BO,afr:VO,Agrave:`À`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,Alpha:`Α`,alpha:`α`,Amacr:`Ā`,amacr:`ā`,amalg:`⨿`,amp:`&`,AMP:`&`,andand:`⩕`,And:`⩓`,and:`∧`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angmsd:`∡`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,Aogon:`Ą`,aogon:`ą`,Aopf:HO,aopf:UO,apacir:`⩯`,ap:`≈`,apE:`⩰`,ape:`≊`,apid:`≋`,apos:`'`,ApplyFunction:``,approx:`≈`,approxeq:`≊`,Aring:`Å`,aring:`å`,Ascr:WO,ascr:GO,Assign:`≔`,ast:`*`,asymp:`≈`,asympeq:`≍`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,awconint:`∳`,awint:`⨑`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,Backslash:`∖`,Barv:`⫧`,barvee:`⊽`,barwed:`⌅`,Barwed:`⌆`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,Bcy:`Б`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,Because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,Bernoullis:`ℬ`,Beta:`Β`,beta:`β`,beth:`ℶ`,between:`≬`,Bfr:KO,bfr:qO,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:JO,bnequiv:YO,bNot:`⫭`,bnot:`⌐`,Bopf:XO,bopf:ZO,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxbox:`⧉`,boxdl:`┐`,boxdL:`╕`,boxDl:`╖`,boxDL:`╗`,boxdr:`┌`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxh:`─`,boxH:`═`,boxhd:`┬`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxhu:`┴`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxul:`┘`,boxuL:`╛`,boxUl:`╜`,boxUL:`╝`,boxur:`└`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxv:`│`,boxV:`║`,boxvh:`┼`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`,boxvl:`┤`,boxvL:`╡`,boxVl:`╢`,boxVL:`╣`,boxvr:`├`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,bprime:`‵`,breve:`˘`,Breve:`˘`,brvbar:`¦`,bscr:QO,Bscr:`ℬ`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsolb:`⧅`,bsol:`\\`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,Bumpeq:`≎`,bumpeq:`≏`,Cacute:`Ć`,cacute:`ć`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,cap:`∩`,Cap:`⋒`,capcup:`⩇`,capdot:`⩀`,CapitalDifferentialD:`ⅅ`,caps:$O,caret:`⁁`,caron:`ˇ`,Cayleys:`ℭ`,ccaps:`⩍`,Ccaron:`Č`,ccaron:`č`,Ccedil:`Ç`,ccedil:`ç`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cconint:`∰`,ccups:`⩌`,ccupssm:`⩐`,Cdot:`Ċ`,cdot:`ċ`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,CenterDot:`·`,cfr:ek,Cfr:`ℭ`,CHcy:`Ч`,chcy:`ч`,check:`✓`,checkmark:`✓`,Chi:`Χ`,chi:`χ`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,CircleDot:`⊙`,circledR:`®`,circledS:`Ⓢ`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,cir:`○`,cirE:`⧃`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,clubs:`♣`,clubsuit:`♣`,colon:`:`,Colon:`∷`,Colone:`⩴`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,Congruent:`≡`,conint:`∮`,Conint:`∯`,ContourIntegral:`∮`,copf:tk,Copf:`ℂ`,coprod:`∐`,Coproduct:`∐`,copy:`©`,COPY:`©`,copysr:`℗`,CounterClockwiseContourIntegral:`∳`,crarr:`↵`,cross:`✗`,Cross:`⨯`,Cscr:nk,cscr:rk,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cupbrcap:`⩈`,cupcap:`⩆`,CupCap:`≍`,cup:`∪`,Cup:`⋓`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:ik,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dagger:`†`,Dagger:`‡`,daleth:`ℸ`,darr:`↓`,Darr:`↡`,dArr:`⇓`,dash:`‐`,Dashv:`⫤`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,Dcaron:`Ď`,dcaron:`ď`,Dcy:`Д`,dcy:`д`,ddagger:`‡`,ddarr:`⇊`,DD:`ⅅ`,dd:`ⅆ`,DDotrahd:`⤑`,ddotseq:`⩷`,deg:`°`,Del:`∇`,Delta:`Δ`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,Dfr:ak,dfr:ok,dHar:`⥥`,dharl:`⇃`,dharr:`⇂`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,diam:`⋄`,diamond:`⋄`,Diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,DifferentialD:`ⅆ`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,DJcy:`Ђ`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,Dopf:sk,dopf:ck,Dot:`¨`,dot:`˙`,DotDot:`⃜`,doteq:`≐`,doteqdot:`≑`,DotEqual:`≐`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrowBar:`⤓`,downarrow:`↓`,DownArrow:`↓`,Downarrow:`⇓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVectorBar:`⥖`,DownLeftVector:`↽`,DownRightTeeVector:`⥟`,DownRightVectorBar:`⥗`,DownRightVector:`⇁`,DownTeeArrow:`↧`,DownTee:`⊤`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,Dscr:lk,dscr:uk,DScy:`Ѕ`,dscy:`ѕ`,dsol:`⧶`,Dstrok:`Đ`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,DZcy:`Џ`,dzcy:`џ`,dzigrarr:`⟿`,Eacute:`É`,eacute:`é`,easter:`⩮`,Ecaron:`Ě`,ecaron:`ě`,Ecirc:`Ê`,ecirc:`ê`,ecir:`≖`,ecolon:`≕`,Ecy:`Э`,ecy:`э`,eDDot:`⩷`,Edot:`Ė`,edot:`ė`,eDot:`≑`,ee:`ⅇ`,efDot:`≒`,Efr:dk,efr:fk,eg:`⪚`,Egrave:`È`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,Element:`∈`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,Emacr:`Ē`,emacr:`ē`,empty:`∅`,emptyset:`∅`,EmptySmallSquare:`◻`,emptyv:`∅`,EmptyVerySmallSquare:`▫`,emsp13:` `,emsp14:` `,emsp:` `,ENG:`Ŋ`,eng:`ŋ`,ensp:` `,Eogon:`Ę`,eogon:`ę`,Eopf:pk,eopf:mk,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,Equal:`⩵`,equals:`=`,EqualTilde:`≂`,equest:`≟`,Equilibrium:`⇌`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erarr:`⥱`,erDot:`≓`,escr:`ℯ`,Escr:`ℰ`,esdot:`≐`,Esim:`⩳`,esim:`≂`,Eta:`Η`,eta:`η`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,Exists:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,ExponentialE:`ⅇ`,fallingdotseq:`≒`,Fcy:`Ф`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,Ffr:hk,ffr:gk,filig:`fi`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,Fopf:_k,fopf:vk,forall:`∀`,ForAll:`∀`,fork:`⋔`,forkv:`⫙`,Fouriertrf:`ℱ`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:yk,Fscr:`ℱ`,gacute:`ǵ`,Gamma:`Γ`,gamma:`γ`,Gammad:`Ϝ`,gammad:`ϝ`,gap:`⪆`,Gbreve:`Ğ`,gbreve:`ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gcy:`Г`,gcy:`г`,Gdot:`Ġ`,gdot:`ġ`,ge:`≥`,gE:`≧`,gEl:`⪌`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,gescc:`⪩`,ges:`⩾`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:bk,gesles:`⪔`,Gfr:xk,gfr:Sk,gg:`≫`,Gg:`⋙`,ggg:`⋙`,gimel:`ℷ`,GJcy:`Ѓ`,gjcy:`ѓ`,gla:`⪥`,gl:`≷`,glE:`⪒`,glj:`⪤`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gnE:`≩`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,Gopf:Ck,gopf:wk,grave:"`",GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:Tk,gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gtcc:`⪧`,gtcir:`⩺`,gt:`>`,GT:`>`,Gt:`≫`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:Ek,gvnE:Dk,Hacek:`ˇ`,hairsp:` `,half:`½`,hamilt:`ℋ`,HARDcy:`Ъ`,hardcy:`ъ`,harrcir:`⥈`,harr:`↔`,hArr:`⇔`,harrw:`↭`,Hat:`^`,hbar:`ℏ`,Hcirc:`Ĥ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:Ok,Hfr:`ℌ`,HilbertSpace:`ℋ`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:kk,Hopf:`ℍ`,horbar:`―`,HorizontalLine:`─`,hscr:Ak,Hscr:`ℋ`,hslash:`ℏ`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,hybull:`⁃`,hyphen:`‐`,Iacute:`Í`,iacute:`í`,ic:``,Icirc:`Î`,icirc:`î`,Icy:`И`,icy:`и`,Idot:`İ`,IEcy:`Е`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:jk,Ifr:`ℑ`,Igrave:`Ì`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,IJlig:`IJ`,ijlig:`ij`,Imacr:`Ī`,imacr:`ī`,image:`ℑ`,ImaginaryI:`ⅈ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,Im:`ℑ`,imof:`⊷`,imped:`Ƶ`,Implies:`⇒`,incare:`℅`,in:`∈`,infin:`∞`,infintie:`⧝`,inodot:`ı`,intcal:`⊺`,int:`∫`,Int:`∬`,integers:`ℤ`,Integral:`∫`,intercal:`⊺`,Intersection:`⋂`,intlarhk:`⨗`,intprod:`⨼`,InvisibleComma:``,InvisibleTimes:``,IOcy:`Ё`,iocy:`ё`,Iogon:`Į`,iogon:`į`,Iopf:Mk,iopf:Nk,Iota:`Ι`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:Pk,Iscr:`ℐ`,isin:`∈`,isindot:`⋵`,isinE:`⋹`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:``,Itilde:`Ĩ`,itilde:`ĩ`,Iukcy:`І`,iukcy:`і`,Iuml:`Ï`,iuml:`ï`,Jcirc:`Ĵ`,jcirc:`ĵ`,Jcy:`Й`,jcy:`й`,Jfr:Fk,jfr:Ik,jmath:`ȷ`,Jopf:Lk,jopf:Rk,Jscr:zk,jscr:Bk,Jsercy:`Ј`,jsercy:`ј`,Jukcy:`Є`,jukcy:`є`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`ķ`,Kcy:`К`,kcy:`к`,Kfr:Vk,kfr:Hk,kgreen:`ĸ`,KHcy:`Х`,khcy:`х`,KJcy:`Ќ`,kjcy:`ќ`,Kopf:Uk,kopf:Wk,Kscr:Gk,kscr:Kk,lAarr:`⇚`,Lacute:`Ĺ`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,Lambda:`Λ`,lambda:`λ`,lang:`⟨`,Lang:`⟪`,langd:`⦑`,langle:`⟨`,lap:`⪅`,Laplacetrf:`ℒ`,laquo:`«`,larrb:`⇤`,larrbfs:`⤟`,larr:`←`,Larr:`↞`,lArr:`⇐`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,latail:`⤙`,lAtail:`⤛`,lat:`⪫`,late:`⪭`,lates:qk,lbarr:`⤌`,lBarr:`⤎`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,Lcaron:`Ľ`,lcaron:`ľ`,Lcedil:`Ļ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,Lcy:`Л`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,lE:`≦`,LeftAngleBracket:`⟨`,LeftArrowBar:`⇤`,leftarrow:`←`,LeftArrow:`←`,Leftarrow:`⇐`,LeftArrowRightArrow:`⇆`,leftarrowtail:`↢`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVectorBar:`⥙`,LeftDownVector:`⇃`,LeftFloor:`⌊`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,LeftRightArrow:`↔`,Leftrightarrow:`⇔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,LeftRightVector:`⥎`,LeftTeeArrow:`↤`,LeftTee:`⊣`,LeftTeeVector:`⥚`,leftthreetimes:`⋋`,LeftTriangleBar:`⧏`,LeftTriangle:`⊲`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVectorBar:`⥘`,LeftUpVector:`↿`,LeftVectorBar:`⥒`,LeftVector:`↼`,lEg:`⪋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,lescc:`⪨`,les:`⩽`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:Jk,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,lessgtr:`≶`,LessLess:`⪡`,lesssim:`≲`,LessSlantEqual:`⩽`,LessTilde:`≲`,lfisht:`⥼`,lfloor:`⌊`,Lfr:Yk,lfr:Xk,lg:`≶`,lgE:`⪑`,lHar:`⥢`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,LJcy:`Љ`,ljcy:`љ`,llarr:`⇇`,ll:`≪`,Ll:`⋘`,llcorner:`⌞`,Lleftarrow:`⇚`,llhard:`⥫`,lltri:`◺`,Lmidot:`Ŀ`,lmidot:`ŀ`,lmoustache:`⎰`,lmoust:`⎰`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lnE:`≨`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,LongLeftArrow:`⟵`,Longleftarrow:`⟸`,longleftrightarrow:`⟷`,LongLeftRightArrow:`⟷`,Longleftrightarrow:`⟺`,longmapsto:`⟼`,longrightarrow:`⟶`,LongRightArrow:`⟶`,Longrightarrow:`⟹`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,Lopf:Zk,lopf:Qk,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:``,lrtri:`⊿`,lsaquo:`‹`,lscr:$k,Lscr:`ℒ`,lsh:`↰`,Lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,Lstrok:`Ł`,lstrok:`ł`,ltcc:`⪦`,ltcir:`⩹`,lt:`<`,LT:`<`,Lt:`≪`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,ltrPar:`⦖`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:eA,lvnE:tA,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,Map:`⤅`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,Mcy:`М`,mcy:`м`,mdash:`—`,mDDot:`∺`,measuredangle:`∡`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:nA,mfr:rA,mho:`℧`,micro:`µ`,midast:`*`,midcir:`⫰`,mid:`∣`,middot:`·`,minusb:`⊟`,minus:`−`,minusd:`∸`,minusdu:`⨪`,MinusPlus:`∓`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,Mopf:iA,mopf:aA,mp:`∓`,mscr:oA,Mscr:`ℳ`,mstpos:`∾`,Mu:`Μ`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nabla:`∇`,Nacute:`Ń`,nacute:`ń`,nang:sA,nap:`≉`,napE:cA,napid:lA,napos:`ʼn`,napprox:`≉`,natural:`♮`,naturals:`ℕ`,natur:`♮`,nbsp:`\xA0`,nbump:uA,nbumpe:dA,ncap:`⩃`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ncong:`≇`,ncongdot:fA,ncup:`⩂`,Ncy:`Н`,ncy:`н`,ndash:`–`,nearhk:`⤤`,nearr:`↗`,neArr:`⇗`,nearrow:`↗`,ne:`≠`,nedot:pA,NegativeMediumSpace:``,NegativeThickSpace:``,NegativeThinSpace:``,NegativeVeryThinSpace:``,nequiv:`≢`,nesear:`⤨`,nesim:mA,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
|
|
48
|
-
`,nexist:`∄`,nexists:`∄`,Nfr:hA,nfr:gA,ngE:_A,nge:`≱`,ngeq:`≱`,ngeqq:vA,ngeqslant:yA,nges:bA,nGg:xA,ngsim:`≵`,nGt:SA,ngt:`≯`,ngtr:`≯`,nGtv:CA,nharr:`↮`,nhArr:`⇎`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,NJcy:`Њ`,njcy:`њ`,nlarr:`↚`,nlArr:`⇍`,nldr:`‥`,nlE:wA,nle:`≰`,nleftarrow:`↚`,nLeftarrow:`⇍`,nleftrightarrow:`↮`,nLeftrightarrow:`⇎`,nleq:`≰`,nleqq:TA,nleqslant:EA,nles:DA,nless:`≮`,nLl:OA,nlsim:`≴`,nLt:kA,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nLtv:AA,nmid:`∤`,NoBreak:``,NonBreakingSpace:`\xA0`,nopf:jA,Nopf:`ℕ`,Not:`⫬`,not:`¬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:MA,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:NA,NotGreaterGreater:PA,NotGreaterLess:`≹`,NotGreaterSlantEqual:FA,NotGreaterTilde:`≵`,NotHumpDownHump:IA,NotHumpEqual:LA,notin:`∉`,notindot:RA,notinE:zA,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,NotLeftTriangleBar:BA,NotLeftTriangle:`⋪`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:VA,NotLessSlantEqual:HA,NotLessTilde:`≴`,NotNestedGreaterGreater:UA,NotNestedLessLess:WA,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,NotPrecedes:`⊀`,NotPrecedesEqual:GA,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangleBar:KA,NotRightTriangle:`⋫`,NotRightTriangleEqual:`⋭`,NotSquareSubset:qA,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:JA,NotSquareSupersetEqual:`⋣`,NotSubset:YA,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:XA,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:ZA,NotSuperset:QA,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,nparallel:`∦`,npar:`∦`,nparsl:$A,npart:ej,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,nprec:`⊀`,npreceq:tj,npre:nj,nrarrc:rj,nrarr:`↛`,nrArr:`⇏`,nrarrw:ij,nrightarrow:`↛`,nRightarrow:`⇏`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:aj,Nscr:oj,nscr:sj,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:cj,nsube:`⊈`,nsubset:lj,nsubseteq:`⊈`,nsubseteqq:uj,nsucc:`⊁`,nsucceq:dj,nsup:`⊅`,nsupE:fj,nsupe:`⊉`,nsupset:pj,nsupseteq:`⊉`,nsupseteqq:mj,ntgl:`≹`,Ntilde:`Ñ`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,Nu:`Ν`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvap:hj,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`,nvge:gj,nvgt:_j,nvHarr:`⤄`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:vj,nvlt:yj,nvltrie:bj,nvrArr:`⤃`,nvrtrie:xj,nvsim:Sj,nwarhk:`⤣`,nwarr:`↖`,nwArr:`⇖`,nwarrow:`↖`,nwnear:`⤧`,Oacute:`Ó`,oacute:`ó`,oast:`⊛`,Ocirc:`Ô`,ocirc:`ô`,ocir:`⊚`,Ocy:`О`,ocy:`о`,odash:`⊝`,Odblac:`Ő`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,OElig:`Œ`,oelig:`œ`,ofcir:`⦿`,Ofr:Cj,ofr:wj,ogon:`˛`,Ograve:`Ò`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,Omacr:`Ō`,omacr:`ō`,Omega:`Ω`,omega:`ω`,Omicron:`Ο`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,Oopf:Tj,oopf:Ej,opar:`⦷`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,operp:`⦹`,oplus:`⊕`,orarr:`↻`,Or:`⩔`,or:`∨`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oS:`Ⓢ`,Oscr:Dj,oscr:`ℴ`,Oslash:`Ø`,oslash:`ø`,osol:`⊘`,Otilde:`Õ`,otilde:`õ`,otimesas:`⨶`,Otimes:`⨷`,otimes:`⊗`,Ouml:`Ö`,ouml:`ö`,ovbar:`⌽`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,para:`¶`,parallel:`∥`,par:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,PartialD:`∂`,Pcy:`П`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,Pfr:Oj,pfr:kj,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,Pi:`Π`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plus:`+`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,PlusMinus:`±`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,Poincareplane:`ℌ`,pointint:`⨕`,popf:Aj,Popf:`ℙ`,pound:`£`,prap:`⪷`,Pr:`⪻`,pr:`≺`,prcue:`≼`,precapprox:`⪷`,prec:`≺`,preccurlyeq:`≼`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,pre:`⪯`,prE:`⪳`,precsim:`≾`,prime:`′`,Prime:`″`,primes:`ℙ`,prnap:`⪹`,prnE:`⪵`,prnsim:`⋨`,prod:`∏`,Product:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,Proportional:`∝`,Proportion:`∷`,propto:`∝`,prsim:`≾`,prurel:`⊰`,Pscr:jj,pscr:Mj,Psi:`Ψ`,psi:`ψ`,puncsp:` `,Qfr:Nj,qfr:Pj,qint:`⨌`,qopf:Fj,Qopf:`ℚ`,qprime:`⁗`,Qscr:Ij,qscr:Lj,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quot:`"`,QUOT:`"`,rAarr:`⇛`,race:Rj,Racute:`Ŕ`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,Rang:`⟫`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarr:`→`,Rarr:`↠`,rArr:`⇒`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,Rarrtl:`⤖`,rarrtl:`↣`,rarrw:`↝`,ratail:`⤚`,rAtail:`⤜`,ratio:`∶`,rationals:`ℚ`,rbarr:`⤍`,rBarr:`⤏`,RBarr:`⤐`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,Rcy:`Р`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,Re:`ℜ`,rect:`▭`,reg:`®`,REG:`®`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,rfisht:`⥽`,rfloor:`⌋`,rfr:zj,Rfr:`ℜ`,rHar:`⥤`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,RightAngleBracket:`⟩`,RightArrowBar:`⇥`,rightarrow:`→`,RightArrow:`→`,Rightarrow:`⇒`,RightArrowLeftArrow:`⇄`,rightarrowtail:`↣`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVectorBar:`⥕`,RightDownVector:`⇂`,RightFloor:`⌋`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,RightTeeArrow:`↦`,RightTee:`⊢`,RightTeeVector:`⥛`,rightthreetimes:`⋌`,RightTriangleBar:`⧐`,RightTriangle:`⊳`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVectorBar:`⥔`,RightUpVector:`↾`,RightVectorBar:`⥓`,RightVector:`⇀`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:``,rmoustache:`⎱`,rmoust:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,ropf:Bj,Ropf:`ℝ`,roplus:`⨮`,rotimes:`⨵`,RoundImplies:`⥰`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,Rrightarrow:`⇛`,rsaquo:`›`,rscr:Vj,Rscr:`ℛ`,rsh:`↱`,Rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,RuleDelayed:`⧴`,ruluhar:`⥨`,rx:`℞`,Sacute:`Ś`,sacute:`ś`,sbquo:`‚`,scap:`⪸`,Scaron:`Š`,scaron:`š`,Sc:`⪼`,sc:`≻`,sccue:`≽`,sce:`⪰`,scE:`⪴`,Scedil:`Ş`,scedil:`ş`,Scirc:`Ŝ`,scirc:`ŝ`,scnap:`⪺`,scnE:`⪶`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,Scy:`С`,scy:`с`,sdotb:`⊡`,sdot:`⋅`,sdote:`⩦`,searhk:`⤥`,searr:`↘`,seArr:`⇘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,Sfr:Hj,sfr:Uj,sfrown:`⌢`,sharp:`♯`,SHCHcy:`Щ`,shchcy:`щ`,SHcy:`Ш`,shcy:`ш`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,shortmid:`∣`,shortparallel:`∥`,ShortRightArrow:`→`,ShortUpArrow:`↑`,shy:``,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,SmallCircle:`∘`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:Wj,SOFTcy:`Ь`,softcy:`ь`,solbar:`⌿`,solb:`⧄`,sol:`/`,Sopf:Gj,sopf:Kj,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:qj,sqcup:`⊔`,sqcups:Jj,Sqrt:`√`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,square:`□`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,squarf:`▪`,squ:`□`,squf:`▪`,srarr:`→`,Sscr:Yj,sscr:Xj,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,Star:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,sub:`⊂`,Sub:`⋐`,subdot:`⪽`,subE:`⫅`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,subset:`⊂`,Subset:`⋐`,subseteq:`⊆`,subseteqq:`⫅`,SubsetEqual:`⊆`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succapprox:`⪸`,succ:`≻`,succcurlyeq:`≽`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,SuchThat:`∋`,sum:`∑`,Sum:`∑`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,sup:`⊃`,Sup:`⋑`,supdot:`⪾`,supdsub:`⫘`,supE:`⫆`,supe:`⊇`,supedot:`⫄`,Superset:`⊃`,SupersetEqual:`⊇`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,supset:`⊃`,Supset:`⋑`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swarhk:`⤦`,swarr:`↙`,swArr:`⇙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,Tab:` `,target:`⌖`,Tau:`Τ`,tau:`τ`,tbrk:`⎴`,Tcaron:`Ť`,tcaron:`ť`,Tcedil:`Ţ`,tcedil:`ţ`,Tcy:`Т`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,Tfr:Zj,tfr:Qj,there4:`∴`,therefore:`∴`,Therefore:`∴`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,ThickSpace:$j,ThinSpace:` `,thinsp:` `,thkap:`≈`,thksim:`∼`,THORN:`Þ`,thorn:`þ`,tilde:`˜`,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,timesbar:`⨱`,timesb:`⊠`,times:`×`,timesd:`⨰`,tint:`∭`,toea:`⤨`,topbot:`⌶`,topcir:`⫱`,top:`⊤`,Topf:eM,topf:tM,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,TRADE:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,TripleDot:`⃛`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,Tscr:nM,tscr:rM,TScy:`Ц`,tscy:`ц`,TSHcy:`Ћ`,tshcy:`ћ`,Tstrok:`Ŧ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Uacute:`Ú`,uacute:`ú`,uarr:`↑`,Uarr:`↟`,uArr:`⇑`,Uarrocir:`⥉`,Ubrcy:`Ў`,ubrcy:`ў`,Ubreve:`Ŭ`,ubreve:`ŭ`,Ucirc:`Û`,ucirc:`û`,Ucy:`У`,ucy:`у`,udarr:`⇅`,Udblac:`Ű`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,Ufr:iM,ufr:aM,Ugrave:`Ù`,ugrave:`ù`,uHar:`⥣`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,Umacr:`Ū`,umacr:`ū`,uml:`¨`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,uogon:`ų`,Uopf:oM,uopf:sM,UpArrowBar:`⤒`,uparrow:`↑`,UpArrow:`↑`,Uparrow:`⇑`,UpArrowDownArrow:`⇅`,updownarrow:`↕`,UpDownArrow:`↕`,Updownarrow:`⇕`,UpEquilibrium:`⥮`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Upsilon:`Υ`,upsilon:`υ`,UpTeeArrow:`↥`,UpTee:`⊥`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,Uring:`Ů`,uring:`ů`,urtri:`◹`,Uscr:cM,uscr:lM,utdot:`⋰`,Utilde:`Ũ`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,Uuml:`Ü`,uuml:`ü`,uwangle:`⦧`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,vArr:`⇕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:uM,varsubsetneqq:dM,varsupsetneq:fM,varsupsetneqq:pM,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,vBar:`⫨`,Vbar:`⫫`,vBarv:`⫩`,Vcy:`В`,vcy:`в`,vdash:`⊢`,vDash:`⊨`,Vdash:`⊩`,VDash:`⊫`,Vdashl:`⫦`,veebar:`⊻`,vee:`∨`,Vee:`⋁`,veeeq:`≚`,vellip:`⋮`,verbar:`|`,Verbar:`‖`,vert:`|`,Vert:`‖`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:mM,vfr:hM,vltri:`⊲`,vnsub:gM,vnsup:_M,Vopf:vM,vopf:yM,vprop:`∝`,vrtri:`⊳`,Vscr:bM,vscr:xM,vsubnE:SM,vsubne:CM,vsupnE:wM,vsupne:TM,Vvdash:`⊪`,vzigzag:`⦚`,Wcirc:`Ŵ`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,Wedge:`⋀`,wedgeq:`≙`,weierp:`℘`,Wfr:EM,wfr:DM,Wopf:OM,wopf:kM,wp:`℘`,wr:`≀`,wreath:`≀`,Wscr:AM,wscr:jM,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,Xfr:MM,xfr:NM,xharr:`⟷`,xhArr:`⟺`,Xi:`Ξ`,xi:`ξ`,xlarr:`⟵`,xlArr:`⟸`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,Xopf:PM,xopf:FM,xoplus:`⨁`,xotime:`⨂`,xrarr:`⟶`,xrArr:`⟹`,Xscr:IM,xscr:LM,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,Yacute:`Ý`,yacute:`ý`,YAcy:`Я`,yacy:`я`,Ycirc:`Ŷ`,ycirc:`ŷ`,Ycy:`Ы`,ycy:`ы`,yen:`¥`,Yfr:RM,yfr:zM,YIcy:`Ї`,yicy:`ї`,Yopf:BM,yopf:VM,Yscr:HM,yscr:UM,YUcy:`Ю`,yucy:`ю`,yuml:`ÿ`,Yuml:`Ÿ`,Zacute:`Ź`,zacute:`ź`,Zcaron:`Ž`,zcaron:`ž`,Zcy:`З`,zcy:`з`,Zdot:`Ż`,zdot:`ż`,zeetrf:`ℨ`,ZeroWidthSpace:``,Zeta:`Ζ`,zeta:`ζ`,zfr:WM,Zfr:`ℨ`,ZHcy:`Ж`,zhcy:`ж`,zigrarr:`⇝`,zopf:GM,Zopf:`ℤ`,Zscr:KM,zscr:qM,zwj:``,zwnj:``}})),XM=me({AElig:()=>`Æ`,AMP:()=>`&`,Aacute:()=>`Á`,Acirc:()=>`Â`,Agrave:()=>`À`,Aring:()=>`Å`,Atilde:()=>`Ã`,Auml:()=>`Ä`,COPY:()=>`©`,Ccedil:()=>`Ç`,ETH:()=>`Ð`,Eacute:()=>`É`,Ecirc:()=>`Ê`,Egrave:()=>`È`,Euml:()=>`Ë`,GT:()=>`>`,Iacute:()=>`Í`,Icirc:()=>`Î`,Igrave:()=>`Ì`,Iuml:()=>`Ï`,LT:()=>`<`,Ntilde:()=>`Ñ`,Oacute:()=>`Ó`,Ocirc:()=>`Ô`,Ograve:()=>`Ò`,Oslash:()=>`Ø`,Otilde:()=>`Õ`,Ouml:()=>`Ö`,QUOT:()=>`"`,REG:()=>`®`,THORN:()=>`Þ`,Uacute:()=>`Ú`,Ucirc:()=>`Û`,Ugrave:()=>`Ù`,Uuml:()=>`Ü`,Yacute:()=>`Ý`,aacute:()=>`á`,acirc:()=>`â`,acute:()=>`´`,aelig:()=>`æ`,agrave:()=>`à`,amp:()=>`&`,aring:()=>`å`,atilde:()=>`ã`,auml:()=>`ä`,brvbar:()=>`¦`,ccedil:()=>`ç`,cedil:()=>`¸`,cent:()=>`¢`,copy:()=>`©`,curren:()=>`¤`,default:()=>ZM,deg:()=>`°`,divide:()=>`÷`,eacute:()=>`é`,ecirc:()=>`ê`,egrave:()=>`è`,eth:()=>`ð`,euml:()=>`ë`,frac12:()=>`½`,frac14:()=>`¼`,frac34:()=>`¾`,gt:()=>`>`,iacute:()=>`í`,icirc:()=>`î`,iexcl:()=>`¡`,igrave:()=>`ì`,iquest:()=>`¿`,iuml:()=>`ï`,laquo:()=>`«`,lt:()=>`<`,macr:()=>`¯`,micro:()=>`µ`,middot:()=>`·`,nbsp:()=>`\xA0`,not:()=>`¬`,ntilde:()=>`ñ`,oacute:()=>`ó`,ocirc:()=>`ô`,ograve:()=>`ò`,ordf:()=>`ª`,ordm:()=>`º`,oslash:()=>`ø`,otilde:()=>`õ`,ouml:()=>`ö`,para:()=>`¶`,plusmn:()=>`±`,pound:()=>`£`,quot:()=>`"`,raquo:()=>`»`,reg:()=>`®`,sect:()=>`§`,shy:()=>``,sup1:()=>`¹`,sup2:()=>`²`,sup3:()=>`³`,szlig:()=>`ß`,thorn:()=>`þ`,times:()=>`×`,uacute:()=>`ú`,ucirc:()=>`û`,ugrave:()=>`ù`,uml:()=>`¨`,uuml:()=>`ü`,yacute:()=>`ý`,yen:()=>`¥`,yuml:()=>`ÿ`}),ZM,QM=he((()=>{ZM={Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,acute:`´`,AElig:`Æ`,aelig:`æ`,Agrave:`À`,agrave:`à`,amp:`&`,AMP:`&`,Aring:`Å`,aring:`å`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,brvbar:`¦`,Ccedil:`Ç`,ccedil:`ç`,cedil:`¸`,cent:`¢`,copy:`©`,COPY:`©`,curren:`¤`,deg:`°`,divide:`÷`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Egrave:`È`,egrave:`è`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,frac12:`½`,frac14:`¼`,frac34:`¾`,gt:`>`,GT:`>`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,iexcl:`¡`,Igrave:`Ì`,igrave:`ì`,iquest:`¿`,Iuml:`Ï`,iuml:`ï`,laquo:`«`,lt:`<`,LT:`<`,macr:`¯`,micro:`µ`,middot:`·`,nbsp:`\xA0`,not:`¬`,Ntilde:`Ñ`,ntilde:`ñ`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Ograve:`Ò`,ograve:`ò`,ordf:`ª`,ordm:`º`,Oslash:`Ø`,oslash:`ø`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,para:`¶`,plusmn:`±`,pound:`£`,quot:`"`,QUOT:`"`,raquo:`»`,reg:`®`,REG:`®`,sect:`§`,shy:``,sup1:`¹`,sup2:`²`,sup3:`³`,szlig:`ß`,THORN:`Þ`,thorn:`þ`,times:`×`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Ugrave:`Ù`,ugrave:`ù`,uml:`¨`,Uuml:`Ü`,uuml:`ü`,Yacute:`Ý`,yacute:`ý`,yen:`¥`,yuml:`ÿ`}})),$M=me({amp:()=>`&`,apos:()=>`'`,default:()=>eN,gt:()=>`>`,lt:()=>`<`,quot:()=>`"`}),eN,tN=he((()=>{eN={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`}})),nN=me({default:()=>rN}),rN,iN=he((()=>{rN={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}})),aN=x((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t((iN(),M(nN).default)),r=String.fromCodePoint||function(e){var t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function i(e){return e>=55296&&e<=57343||e>1114111?`�`:(e in n.default&&(e=n.default[e]),r(e))}e.default=i})),oN=x((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var n=t((YM(),M(RO).default)),r=t((QM(),M(XM).default)),i=t((tN(),M($M).default)),a=t(aN()),o=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(i.default),e.decodeHTMLStrict=s(n.default);function s(e){var t=l(e);return function(e){return String(e).replace(o,t)}}var c=function(e,t){return e<t?1:-1};e.decodeHTML=(function(){for(var e=Object.keys(r.default).sort(c),t=Object.keys(n.default).sort(c),i=0,a=0;i<t.length;i++)e[a]===t[i]?(t[i]+=`;?`,a++):t[i]+=`;`;var o=RegExp(`&(?:`+t.join(`|`)+`|#[xX][\\da-fA-F]+;?|#\\d+;?)`,`g`),s=l(n.default);function u(e){return e.substr(-1)!==`;`&&(e+=`;`),s(e)}return function(e){return String(e).replace(o,u)}})();function l(e){return function(t){if(t.charAt(1)===`#`){var n=t.charAt(2);return n===`X`||n===`x`?a.default(parseInt(t.substr(3),16)):a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}})),sN=x((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var n=a(t((tN(),M($M).default)).default),r=o(n);e.encodeXML=m(n);var i=a(t((YM(),M(RO).default)).default);e.encodeHTML=u(i,o(i)),e.encodeNonAsciiHTML=m(i);function a(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]=`&`+n+`;`,t},{})}function o(e){for(var t=[],n=[],r=0,i=Object.keys(e);r<i.length;r++){var a=i[r];a.length===1?t.push(`\\`+a):n.push(a)}t.sort();for(var o=0;o<t.length-1;o++){for(var s=o;s<t.length-1&&t[s].charCodeAt(1)+1===t[s+1].charCodeAt(1);)s+=1;var c=1+s-o;c<3||t.splice(o,c,t[o]+`-`+t[s])}return n.unshift(`[`+t.join(``)+`]`),new RegExp(n.join(`|`),`g`)}var s=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,c=String.prototype.codePointAt==null?function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536}:function(e){return e.codePointAt(0)};function l(e){return`&#x`+(e.length>1?c(e):e.charCodeAt(0)).toString(16).toUpperCase()+`;`}function u(e,t){return function(n){return n.replace(t,function(t){return e[t]}).replace(s,l)}}var d=RegExp(r.source+`|`+s.source,`g`);function f(e){return e.replace(d,l)}e.escape=f;function p(e){return e.replace(r,l)}e.escapeUTF8=p;function m(e){return function(t){return t.replace(d,function(t){return e[t]||l(t)})}}})),cN=x((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=oN(),n=sN();function r(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTML)(e)}e.decode=r;function i(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTMLStrict)(e)}e.decodeStrict=i;function a(e,t){return(!t||t<=0?n.encodeXML:n.encodeHTML)(e)}e.encode=a;var o=sN();Object.defineProperty(e,`encodeXML`,{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(e,`encodeHTML`,{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,`encodeNonAsciiHTML`,{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(e,`escape`,{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(e,`escapeUTF8`,{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(e,`encodeHTML4`,{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,`encodeHTML5`,{enumerable:!0,get:function(){return o.encodeHTML}});var s=oN();Object.defineProperty(e,`decodeXML`,{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(e,`decodeHTML`,{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,`decodeHTMLStrict`,{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,`decodeHTML4`,{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,`decodeHTML5`,{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,`decodeHTML4Strict`,{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,`decodeHTML5Strict`,{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,`decodeXMLStrict`,{enumerable:!0,get:function(){return s.decodeXML}})})),lN=e(x(((e,t)=>{function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function a(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
49
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,c;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,c=e},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(s)throw c}}}}function o(e,t){if(e){if(typeof e==`string`)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c=cN(),l={fg:`#FFF`,bg:`#000`,newline:!1,escapeXML:!1,stream:!1,colors:u()};function u(){var e={0:`#000`,1:`#A00`,2:`#0A0`,3:`#A50`,4:`#00A`,5:`#A0A`,6:`#0AA`,7:`#AAA`,8:`#555`,9:`#F55`,10:`#5F5`,11:`#FF5`,12:`#55F`,13:`#F5F`,14:`#5FF`,15:`#FFF`};return v(0,5).forEach(function(t){v(0,5).forEach(function(n){v(0,5).forEach(function(r){return d(t,n,r,e)})})}),v(0,23).forEach(function(t){var n=t+232,r=f(t*10+8);e[n]=`#`+r+r+r}),e}function d(e,t,n,r){var i=16+e*36+t*6+n;r[i]=p([e>0?e*40+55:0,t>0?t*40+55:0,n>0?n*40+55:0])}function f(e){for(var t=e.toString(16);t.length<2;)t=`0`+t;return t}function p(e){var t=[],n=a(e),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;t.push(f(i))}}catch(e){n.e(e)}finally{n.f()}return`#`+t.join(``)}function m(e,t,n,r){var i;return t===`text`?i=x(n,r):t===`display`?i=g(e,n,r):t===`xterm256Foreground`?i=w(e,r.colors[n]):t===`xterm256Background`?i=T(e,r.colors[n]):t===`rgb`&&(i=h(e,n)),i}function h(e,t){t=t.substring(2).slice(0,-1);var n=+t.substr(0,2),r=t.substring(5).split(`;`).map(function(e){return(`0`+Number(e).toString(16)).substr(-2)}).join(``);return C(e,(n===38?`color:#`:`background-color:#`)+r)}function g(e,t,n){t=parseInt(t,10);var r={"-1":function(){return`<br/>`},0:function(){return e.length&&_(e)},1:function(){return S(e,`b`)},3:function(){return S(e,`i`)},4:function(){return S(e,`u`)},8:function(){return C(e,`display:none`)},9:function(){return S(e,`strike`)},22:function(){return C(e,`font-weight:normal;text-decoration:none;font-style:normal`)},23:function(){return E(e,`i`)},24:function(){return E(e,`u`)},39:function(){return w(e,n.fg)},49:function(){return T(e,n.bg)},53:function(){return C(e,`text-decoration:overline`)}},i;return r[t]?i=r[t]():4<t&&t<7?i=S(e,`blink`):29<t&&t<38?i=w(e,n.colors[t-30]):39<t&&t<48?i=T(e,n.colors[t-40]):89<t&&t<98?i=w(e,n.colors[8+(t-90)]):99<t&&t<108&&(i=T(e,n.colors[8+(t-100)])),i}function _(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(e){return`</`+e+`>`}).join(``)}function v(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}function y(e){return function(t){return(e===null||t.category!==e)&&e!==`all`}}function b(e){e=parseInt(e,10);var t=null;return e===0?t=`all`:e===1?t=`bold`:2<e&&e<5?t=`underline`:4<e&&e<7?t=`blink`:e===8?t=`hide`:e===9?t=`strike`:29<e&&e<38||e===39||89<e&&e<98?t=`foreground-color`:(39<e&&e<48||e===49||99<e&&e<108)&&(t=`background-color`),t}function x(e,t){return t.escapeXML?c.encodeXML(e):e}function S(e,t,n){return n||=``,e.push(t),`<${t}${n?` style="${n}"`:``}>`}function C(e,t){return S(e,`span`,t)}function w(e,t){return S(e,`span`,`color:`+t)}function T(e,t){return S(e,`span`,`background-color:`+t)}function E(e,t){var n;if(e.slice(-1)[0]===t&&(n=e.pop()),n)return`</`+t+`>`}function D(e,t,n){var r=!1,i=3;function o(){return``}function s(e,t){return n(`xterm256Foreground`,t),``}function c(e,t){return n(`xterm256Background`,t),``}function l(e){return t.newline?n(`display`,-1):n(`text`,e),``}function u(e,t){r=!0,t.trim().length===0&&(t=`0`),t=t.trimRight(`;`).split(`;`);var i=a(t),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;n(`display`,s)}}catch(e){i.e(e)}finally{i.f()}return``}function d(e){return n(`text`,e),``}function f(e){return n(`rgb`,e),``}var p=[{pattern:/^\x08+/,sub:o},{pattern:/^\x1b\[[012]?K/,sub:o},{pattern:/^\x1b\[\(B/,sub:o},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:f},{pattern:/^\x1b\[38;5;(\d+)m/,sub:s},{pattern:/^\x1b\[48;5;(\d+)m/,sub:c},{pattern:/^\n/,sub:l},{pattern:/^\r+\n/,sub:l},{pattern:/^\r/,sub:l},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:u},{pattern:/^\x1b\[\d?J/,sub:o},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:o},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:o},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:d}];function m(t,n){n>i&&r||(r=!1,e=e.replace(t.pattern,t.sub))}var h=[],g=e.length;outer:for(;g>0;){for(var _=0,v=0,y=p.length;v<y;_=++v){var b=p[_];if(m(b,_),e.length!==g){g=e.length;continue outer}}if(e.length===g)break;h.push(0),g=e.length}return h}function O(e,t,n){return t!==`text`&&(e=e.filter(y(b(n))),e.push({token:t,data:n,category:b(n)})),e}t.exports=function(){function e(t){n(this,e),t||={},t.colors&&=Object.assign({},l.colors,t.colors),this.options=Object.assign({},l,t),this.stack=[],this.stickyStack=[]}return i(e,[{key:`toHtml`,value:function(e){var t=this;e=typeof e==`string`?[e]:e;var n=this.stack,r=this.options,i=[];return this.stickyStack.forEach(function(e){var t=m(n,e.token,e.data,r);t&&i.push(t)}),D(e.join(``),r,function(e,a){var o=m(n,e,a,r);o&&i.push(o),r.stream&&(t.stickyStack=O(t.stickyStack,e,a))}),n.length&&i.push(_(n)),i.join(``)}}]),e}()}))(),1),uN={summary:`max-h-[240px]`,base:`max-h-[288px]`,delegation:`max-h-[768px]`};function dN(e){return uN[e]}var fN=`whitespace-pre-wrap break-words`;function pN({fullText:e,children:t,className:n,collapsedClassName:r,collapsedStyle:i,expandedClassName:a=fN}){let[o,s]=(0,R.useState)(!1),c=(0,R.useRef)(null);return(0,z.jsx)(`button`,{ref:c,type:`button`,onClick:()=>{let e=typeof window>`u`?null:window.getSelection();e&&e.toString().length>0||(o&&c.current&&c.current.scrollTo({top:0,behavior:`auto`}),s(e=>!e))},className:[`block w-full cursor-pointer select-text text-left leading-tight transition-[max-height] duration-200 ease-out`,o?a:r,n].filter(Boolean).join(` `),style:o?void 0:i,title:o?`Click to collapse`:e,"aria-expanded":o,children:t})}var mN=4,hN=350,gN=250;function _N(e){return Math.max(0,e.scrollHeight-e.clientHeight)}function vN(e){return _N(e)-e.scrollTop<=mN}function yN(e,t){let n=_N(e);t?e.scrollTo({top:n,behavior:`smooth`}):e.scrollTop=n}function bN({contentKey:e,streaming:t}){let n=(0,R.useRef)(null),r=(0,R.useRef)(!0),i=(0,R.useRef)(!1),a=(0,R.useRef)(0),o=(0,R.useRef)(0),s=(0,R.useRef)(!0),c=(0,R.useRef)(t);(0,R.useEffect)(()=>{let e=c.current;if(c.current=t,!t&&!e)return;let i=n.current;if(!i||!r.current)return;let a=window.performance.now();yN(i,!s.current&&a-o.current>=gN),o.current=a,s.current=!1},[e,t]);let l=(0,R.useCallback)(()=>{a.current=window.performance.now()+hN},[]),u=(0,R.useCallback)(()=>{i.current=!0},[]),d=(0,R.useCallback)(()=>{i.current=!1},[]),f=(0,R.useCallback)(e=>{if(vN(e.currentTarget)){r.current=!0;return}(i.current||window.performance.now()<=a.current)&&(r.current=!1)},[]);return(0,R.useEffect)(()=>{if(t)return window.addEventListener(`pointerup`,d),window.addEventListener(`pointercancel`,d),()=>{window.removeEventListener(`pointerup`,d),window.removeEventListener(`pointercancel`,d)}},[d,t]),{onPointerDown:u,onScroll:f,onTouchMove:l,onTouchStart:l,onWheel:l,ref:n}}function xN(){let e=(0,R.useRef)(null),t=(0,R.useRef)(null),n=(0,R.useRef)(null),[r,i]=(0,R.useState)({above:!1,below:!1}),a=(0,R.useCallback)(e=>{i(t=>t.above===e.above&&t.below===e.below?t:e)},[]);return(0,R.useEffect)(()=>{let r=e.current,i=t.current,o=n.current;if(!r||!i||!o||typeof IntersectionObserver>`u`)return;let s=!0,c=!0,l=new IntersectionObserver(e=>{for(let t of e)t.target===i?s=t.isIntersecting:t.target===o&&(c=t.isIntersecting);a({above:!s,below:!c})},{root:r,threshold:0});return l.observe(i),l.observe(o),()=>{l.disconnect()}},[a]),{scrollRef:e,topSentinelRef:t,bottomSentinelRef:n,aboveOverflow:r.above,belowOverflow:r.below}}function SN({size:e,streaming:t=!1,contentKey:n,className:r,scrollClassName:i,children:a}){let o=bN({contentKey:n,streaming:t}),s=xN(),c=dN(e),{aboveOverflow:l,belowOverflow:u}=s,d=(0,R.useCallback)(e=>{o.onScroll(e)},[o]),f=tt(o.ref,s.scrollRef);return(0,z.jsxs)(`div`,{className:I(`relative isolate min-w-0`,r),"data-detail-scroll":e,children:[(0,z.jsxs)(`div`,{ref:f,onScroll:d,onPointerDown:o.onPointerDown,onTouchMove:o.onTouchMove,onTouchStart:o.onTouchStart,onWheel:o.onWheel,"data-detail-scroll-area":e,className:I(`min-w-0 overflow-auto`,c,i),children:[(0,z.jsx)(`div`,{ref:s.topSentinelRef,"aria-hidden":!0,className:`h-px w-full`}),a,(0,z.jsx)(`div`,{ref:s.bottomSentinelRef,"aria-hidden":!0,className:`h-px w-full`})]}),l?(0,z.jsx)(`div`,{"aria-hidden":!0,"data-detail-scroll-fade":`above`,className:`pointer-events-none absolute inset-x-0 top-0 z-10 h-6 bg-gradient-to-b from-background to-transparent`}):null,u?(0,z.jsx)(`div`,{"aria-hidden":!0,"data-detail-scroll-fade":`below`,className:`pointer-events-none absolute inset-x-0 bottom-0 z-10 h-6 bg-gradient-to-t from-background to-transparent`}):null]})}var CN={display:`-webkit-box`,WebkitBoxOrient:`vertical`,WebkitLineClamp:2},wN={0:`var(--ansi-0)`,1:`var(--ansi-1)`,2:`var(--ansi-2)`,3:`var(--ansi-3)`,4:`var(--ansi-4)`,5:`var(--ansi-5)`,6:`var(--ansi-6)`,7:`var(--ansi-7)`,8:`var(--ansi-8)`,9:`var(--ansi-9)`,10:`var(--ansi-10)`,11:`var(--ansi-11)`,12:`var(--ansi-12)`,13:`var(--ansi-13)`,14:`var(--ansi-14)`,15:`var(--ansi-15)`},TN=Object.keys(wN).map(Number),EN=`background-color:var(--background)`,DN=`${EN};color:var(--foreground)`;function ON(e){let t=e;for(let e of TN){let n=`background-color:var(--ansi-${e})`;t=t.replaceAll(n,`${n};color:var(--ansi-bg-fg-${e})`)}return t.replaceAll(EN,DN)}var kN=new lN.default({escapeXML:!0,newline:!1,stream:!1,fg:`var(--foreground)`,bg:`var(--background)`,colors:wN});function AN(e){let t=0;for(let n of e)t+=n.length;return t}function jN({commandLine:e,exitCode:t,metadataLines:n,output:r}){return[e?.length??0,AN(n),r.length,t??``].join(`:`)}function MN({commandLine:e,exitCode:t=null,metadataLines:n=[],output:r,streaming:i=!1}){let a=(0,R.useMemo)(()=>r.length>0?ON(kN.toHtml(r)):null,[r]),o=t!==null,s=jN({commandLine:e,exitCode:t,metadataLines:n,output:r});return(0,z.jsx)(`div`,{className:`overflow-hidden rounded-lg border border-border bg-card`,children:(0,z.jsxs)(`div`,{className:`px-4 py-3 font-mono text-xs leading-tight text-foreground`,children:[e?(0,z.jsx)(pN,{fullText:e,collapsedClassName:`max-h-[2lh] overflow-hidden whitespace-pre-wrap break-words`,collapsedStyle:CN,expandedClassName:I(`overflow-auto whitespace-pre-wrap break-words`,dN(`base`)),children:e}):null,n.map((e,t)=>(0,z.jsx)(`div`,{className:`mt-1 text-muted-foreground`,children:e},`${t}:${e}`)),a?(0,z.jsx)(SN,{size:`base`,streaming:i,contentKey:s,className:I(e||n.length>0?`mt-1.5`:null),scrollClassName:`whitespace-pre leading-tight text-foreground`,children:(0,z.jsx)(`div`,{dangerouslySetInnerHTML:{__html:a}})}):null,o?(0,z.jsxs)(`div`,{className:I(a||e?`mt-1.5`:null,`font-mono text-xs leading-tight text-muted-foreground`),children:[`exit code `,t]}):null]})})}var NN=`diffs-container`,PN=/(?=^From [a-f0-9]+ .+$)/m,FN=/(?=^diff --git)/gm,IN=/(?=^---\s+\S)/gm,LN=/(?=^@@ )/gm,RN=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,zN=/(?<=\n)/,BN=/^(---|\+\+\+)\s+([^\t\r\n]+)/,VN=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,HN=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,UN=/^index (?:[0-9a-f]+)\.\.(?:[0-9a-f]+)(?: (\d+))?/,WN=`header-metadata`,GN={dark:`pierre-dark`,light:`pierre-light`},KN=`data-unsafe-css`;function qN(e,t){return e?.start===t?.start&&e?.end===t?.end&&e?.side===t?.side&&e?.endSide===t?.endSide}var JN=class{pre;selectedRange=null;renderedSelectionRange;anchor;_queuedRender;constructor(e={}){this.options=e}setOptions(e){this.options={...this.options,...e},this.removeEventListeners(),this.options.enableLineSelection===!0&&this.attachEventListeners()}cleanUp(){this.removeEventListeners(),this._queuedRender!=null&&(cancelAnimationFrame(this._queuedRender),this._queuedRender=void 0),this.pre!=null&&delete this.pre.dataset.interactiveLineNumbers,this.pre=void 0}setup(e){this.setDirty(),this.pre!==e&&this.cleanUp(),this.pre=e;let{enableLineSelection:t=!1}=this.options;t?(this.pre.dataset.interactiveLineNumbers=``,this.attachEventListeners()):(this.removeEventListeners(),delete this.pre.dataset.interactiveLineNumbers),this.setSelection(this.selectedRange)}setDirty(){this.renderedSelectionRange=void 0}isDirty(){return this.renderedSelectionRange===void 0}setSelection(e){let t=!(e===this.selectedRange||qN(e??void 0,this.selectedRange??void 0));!this.isDirty()&&!t||(this.selectedRange=e,this.renderSelection(),t&&this.notifySelectionChange())}getSelection(){return this.selectedRange}attachEventListeners(){this.pre!=null&&(this.removeEventListeners(),this.pre.addEventListener(`pointerdown`,this.handleMouseDown))}removeEventListeners(){this.pre!=null&&(this.pre.removeEventListener(`pointerdown`,this.handleMouseDown),document.removeEventListener(`pointermove`,this.handleMouseMove),document.removeEventListener(`pointerup`,this.handleMouseUp))}handleMouseDown=e=>{let t=e.button===0?this.getMouseEventDataForPath(e.composedPath(),`click`):void 0;if(t==null)return;e.preventDefault();let{lineNumber:n,eventSide:r,lineIndex:i}=t;if(e.shiftKey&&this.selectedRange!=null){let e=this.deriveRowRangeFromDOM(this.selectedRange,this.pre?.dataset.type===`split`);if(e==null)return;let t=e.start<=e.end?i>=e.start:i<=e.end;this.anchor={line:t?this.selectedRange.start:this.selectedRange.end,side:(t?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side)??`additions`},this.updateSelection(n,r),this.notifySelectionStart(this.selectedRange)}else{if(this.selectedRange?.start===n&&this.selectedRange?.end===n){this.updateSelection(null),this.notifySelectionEnd(null),this.notifySelectionChange();return}this.selectedRange=null,this.anchor={line:n,side:r},this.updateSelection(n,r),this.notifySelectionStart(this.selectedRange)}document.addEventListener(`pointermove`,this.handleMouseMove),document.addEventListener(`pointerup`,this.handleMouseUp)};handleMouseMove=e=>{let t=this.getMouseEventDataForPath(e.composedPath(),`move`);if(t==null||this.anchor==null)return;let{lineNumber:n,eventSide:r}=t;this.updateSelection(n,r)};handleMouseUp=()=>{this.anchor=void 0,document.removeEventListener(`pointermove`,this.handleMouseMove),document.removeEventListener(`pointerup`,this.handleMouseUp),this.notifySelectionEnd(this.selectedRange),this.notifySelectionChange()};updateSelection(e,t){if(e==null)this.selectedRange=null;else{let n=this.anchor?.side??t;this.selectedRange={start:this.anchor?.line??e,end:e,side:n,endSide:n===t?void 0:t}}this._queuedRender??=requestAnimationFrame(this.renderSelection)}renderSelection=()=>{if(this._queuedRender!=null&&(cancelAnimationFrame(this._queuedRender),this._queuedRender=void 0),this.pre==null||this.renderedSelectionRange===this.selectedRange)return;let e=this.pre.querySelectorAll(`[data-selected-line]`);for(let t of e)t.removeAttribute(`data-selected-line`);if(this.renderedSelectionRange=this.selectedRange,this.selectedRange==null)return;let t=this.pre.querySelectorAll(`[data-code]`);if(t.length===0)return;if(t.length>2)throw console.error(t),Error(`LineSelectionManager.applySelectionToDOM: Somehow there are more than 2 code elements...`);let n=this.pre.dataset.type===`split`,r=this.deriveRowRangeFromDOM(this.selectedRange,n);if(r==null)throw console.error({rowRange:r,selectedRange:this.selectedRange}),Error(`LineSelectionManager.renderSelection: No valid rowRange`);let i=r.start===r.end,a=Math.min(r.start,r.end),o=Math.max(r.start,r.end);for(let e of t)for(let t of e.children){if(!(t instanceof HTMLElement))continue;let e=this.getLineIndex(t,n);if((e??0)>o)break;if(e==null||e<a)continue;let r=i?`single`:e===a?`first`:e===o?`last`:``;t.setAttribute(`data-selected-line`,r),t.nextSibling instanceof HTMLElement&&t.nextSibling.hasAttribute(`data-line-annotation`)&&(i?(r=`last`,t.setAttribute(`data-selected-line`,`first`)):e===a?r=``:e===o&&t.setAttribute(`data-selected-line`,``),t.nextSibling.setAttribute(`data-selected-line`,r))}};deriveRowRangeFromDOM(e,t){if(e==null)return;let n=this.findRowIndexForLineNumber(e.start,e.side,t),r=e.end===e.start&&(e.endSide==null||e.endSide===e.side)?n:this.findRowIndexForLineNumber(e.end,e.endSide??e.side,t);return n!=null&&r!=null?{start:n,end:r}:void 0}findRowIndexForLineNumber(e,t=`additions`,n){if(this.pre==null)return;let r=Array.from(this.pre.querySelectorAll(`[data-line="${e}"]`));if(r.push(...Array.from(this.pre.querySelectorAll(`[data-alt-line="${e}"]`))),r.length!==0){for(let i of r)if(i instanceof HTMLElement&&(this.getLineSideFromElement(i)===t||parseInt(i.dataset.altLine??``)===e))return this.getLineIndex(i,n);console.error(`LineSelectionManager.findRowIndexForLineNumber: Invalid selection`,e,t)}}notifySelectionChange(){let{onLineSelected:e}=this.options;e?.(this.selectedRange??null)}notifySelectionStart(e){let{onLineSelectionStart:t}=this.options;t?.(e)}notifySelectionEnd(e){let{onLineSelectionEnd:t}=this.options;t?.(e)}getMouseEventDataForPath(e,t){let n,r,i=!1,a;for(let t of e)if(t instanceof HTMLElement){if(t.hasAttribute(`data-column-number`)){i=!0;continue}if(t.hasAttribute(`data-line`)){if(n=this.getLineNumber(t),r=this.getLineIndex(t,this.pre?.dataset.type===`split`),t.dataset.lineType===`change-deletion`?a=`deletions`:t.dataset.lineType===`change-additions`&&(a=`additions`),r==null||n==null){r=void 0,n=void 0;break}if(a!=null)break;continue}if(t.hasAttribute(`data-code`)){a??=t.hasAttribute(`data-deletions`)?`deletions`:`additions`;break}}if(!(t===`click`&&!i||r==null||n==null))return{lineIndex:r,lineNumber:n,eventSide:a??`additions`}}getLineNumber(e){let t=parseInt(e.dataset.line??``,10);return Number.isNaN(t)?void 0:t}getLineIndex(e,t){let n=(e.dataset.lineIndex??``).split(`,`).map(e=>parseInt(e)).filter(e=>!Number.isNaN(e));if(t&&n.length===2)return n[1];if(!t)return n[0]}getLineSideFromElement(e){if(e.dataset.lineType===`change-deletion`)return`deletions`;if(e.dataset.lineType===`change-addition`)return`additions`;let t=e.closest(`[data-code]`);return t instanceof HTMLElement&&t.hasAttribute(`data-deletions`)?`deletions`:`additions`}};function YN({enableLineSelection:e,onLineSelected:t,onLineSelectionStart:n,onLineSelectionEnd:r}){return{enableLineSelection:e,onLineSelected:t,onLineSelectionStart:n,onLineSelectionEnd:r}}function XN(e,t){return e==null?!1:t===`file`?e.type===`line`:e.type===`diff-line`}function ZN(e){return e?.type===`line-info`}var QN=class{hoveredLine;pre;hoverSlot;constructor(e,t){this.mode=e,this.options=t}setOptions(e){this.options=e}cleanUp(){this.pre?.removeEventListener(`click`,this.handleMouseClick),this.pre?.removeEventListener(`pointermove`,this.handleMouseMove),this.pre?.removeEventListener(`pointerout`,this.handleMouseLeave),delete this.pre?.dataset.interactiveLines,delete this.pre?.dataset.interactiveLineNumbers,this.pre=void 0}setup(e){let{__debugMouseEvents:t,onLineClick:n,onLineNumberClick:r,onLineEnter:i,onLineLeave:a,onHunkExpand:o,enableHoverUtility:s=!1}=this.options;if(this.cleanUp(),this.pre=e,s&&this.hoverSlot==null){this.hoverSlot=document.createElement(`div`),this.hoverSlot.dataset.hoverSlot=``;let e=document.createElement(`slot`);e.name=`hover-slot`,this.hoverSlot.appendChild(e)}else !s&&this.hoverSlot!=null&&(this.hoverSlot.parentNode?.removeChild(this.hoverSlot),this.hoverSlot=void 0);(n!=null||r!=null||o!=null)&&(e.addEventListener(`click`,this.handleMouseClick),n==null?r!=null&&(e.dataset.interactiveLineNumbers=``):e.dataset.interactiveLines=``,$N(t,`click`,`FileDiff.DEBUG.attachEventListeners: Attaching click events for:`,(()=>{let e=[];return(t===`both`||t===`click`)&&(n!=null&&e.push(`onLineClick`),r!=null&&e.push(`onLineNumberClick`),o!=null&&e.push(`expandable hunk separators`)),e})())),(i!=null||a!=null||s)&&(e.addEventListener(`pointermove`,this.handleMouseMove),$N(t,`move`,`FileDiff.DEBUG.attachEventListeners: Attaching pointer move event`),e.addEventListener(`pointerleave`,this.handleMouseLeave),$N(t,`move`,`FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event`))}getHoveredLine=()=>{if(this.hoveredLine!=null){if(this.mode===`diff`&&this.hoveredLine.type===`diff-line`)return{lineNumber:this.hoveredLine.lineNumber,side:this.hoveredLine.annotationSide};if(this.mode===`file`&&this.hoveredLine.type===`line`)return{lineNumber:this.hoveredLine.lineNumber}}};handleMouseClick=e=>{$N(this.options.__debugMouseEvents,`click`,`FileDiff.DEBUG.handleMouseClick:`,e),this.handleMouseEvent({eventType:`click`,event:e})};handleMouseMove=e=>{$N(this.options.__debugMouseEvents,`move`,`FileDiff.DEBUG.handleMouseMove:`,e),this.handleMouseEvent({eventType:`move`,event:e})};handleMouseLeave=e=>{let{__debugMouseEvents:t}=this.options;if($N(t,`move`,`FileDiff.DEBUG.handleMouseLeave: no event`),this.hoveredLine==null){$N(t,`move`,`FileDiff.DEBUG.handleMouseLeave: returned early, no .hoveredLine`);return}this.hoverSlot?.parentElement?.removeChild(this.hoverSlot),this.options.onLineLeave?.({...this.hoveredLine,event:e}),this.hoveredLine=void 0};handleMouseEvent({eventType:e,event:t}){let{__debugMouseEvents:n}=this.options,r=t.composedPath();$N(n,e,`FileDiff.DEBUG.handleMouseEvent:`,{eventType:e,composedPath:r});let i=this.getLineData(r);$N(n,e,`FileDiff.DEBUG.handleMouseEvent: getLineData result:`,i);let{onLineClick:a,onLineNumberClick:o,onLineEnter:s,onLineLeave:c,onHunkExpand:l}=this.options;switch(e){case`move`:if(XN(i,this.mode)&&this.hoveredLine?.lineElement===i.lineElement){$N(n,`move`,`FileDiff.DEBUG.handleMouseEvent: switch, 'move', returned early because same line`);break}this.hoveredLine!=null&&($N(n,`move`,`FileDiff.DEBUG.handleMouseEvent: switch, 'move', clearing an existing hovered line and firing onLineLeave`),this.hoverSlot?.parentElement?.removeChild(this.hoverSlot),c?.({...this.hoveredLine,event:t}),this.hoveredLine=void 0),XN(i,this.mode)&&($N(n,`move`,`FileDiff.DEBUG.handleMouseEvent: switch, 'move', setting up a new hoveredLine and firing onLineEnter`),this.hoveredLine=i,this.hoverSlot!=null&&i.numberElement?.appendChild(this.hoverSlot),s?.({...this.hoveredLine,event:t}));break;case`click`:if($N(n,`click`,`FileDiff.DEBUG.handleMouseEvent: switch, 'click', with data:`,i),i==null)break;if(ZN(i)&&l!=null){$N(n,`click`,`FileDiff.DEBUG.handleMouseEvent: switch, 'click', expanding a hunk`),l(i.hunkIndex,i.direction);break}XN(i,this.mode)&&(o!=null&&i.numberColumn?($N(n,`click`,`FileDiff.DEBUG.handleMouseEvent: switch, 'click', firing 'onLineNumberClick'`),o({...i,event:t})):a==null?$N(n,`click`,`FileDiff.DEBUG.handleMouseEvent: switch, 'click', fell through, no event to fire`):($N(n,`click`,`FileDiff.DEBUG.handleMouseEvent: switch, 'click', firing 'onLineClick'`),a({...i,event:t})));break}}getLineData(e){let t=!1,n=e.find(e=>e instanceof HTMLElement?(t||=`columnNumber`in e.dataset,`line`in e.dataset||`expandIndex`in e.dataset):!1);if(!(n instanceof HTMLElement))return;if(n.dataset.expandIndex!=null){let t=parseInt(n.dataset.expandIndex);if(isNaN(t))return;let r;for(let t of e)if(t===n||t instanceof HTMLElement&&(r=r??(`expandUp`in t.dataset?`up`:void 0)??(`expandDown`in t.dataset?`down`:void 0)??(`expandBoth`in t.dataset?`both`:void 0),r!=null))break;return r==null?void 0:{type:`line-info`,hunkIndex:t,direction:r}}let r=parseInt(n.dataset.line??``);if(isNaN(r))return;let i=n.dataset.lineType;if(i!==`context`&&i!==`context-expanded`&&i!==`change-deletion`&&i!==`change-addition`)return;let a=(()=>{let e=n.children[0];return e instanceof HTMLElement&&e.dataset.columnNumber!=null?e:void 0})();return this.mode===`file`?{type:`line`,lineElement:n,lineNumber:r,numberElement:a,numberColumn:t}:{type:`diff-line`,annotationSide:(()=>{if(i===`change-deletion`)return`deletions`;if(i===`change-addition`)return`additions`;let e=n.closest(`[data-code]`);return e instanceof HTMLElement&&`deletions`in e.dataset?`deletions`:`additions`})(),lineType:i,lineElement:n,numberElement:a,lineNumber:r,numberColumn:t}}};function $N(e=`none`,t,...n){switch(e){case`none`:return;case`both`:break;case`click`:if(t!==`click`)return;break;case`move`:if(t!==`move`)return;break}console.log(...n)}function eP({onLineClick:e,onLineNumberClick:t,onLineEnter:n,onLineLeave:r,enableHoverUtility:i,__debugMouseEvents:a},o){return{onLineClick:e,onLineNumberClick:t,onLineEnter:n,onLineLeave:r,enableHoverUtility:i,__debugMouseEvents:a,onHunkExpand:o}}var tP=class{observedNodes=new Map;cleanUp(){this.resizeObserver?.disconnect(),this.observedNodes.clear()}resizeObserver;setup(e){this.cleanUp();let t=e.querySelectorAll(`[data-line-annotation*=","]`);this.resizeObserver??=new ResizeObserver(this.handleResizeObserver);let n=e.querySelectorAll(`code`);for(let e of n){let t=e.querySelector(`[data-column-number]`);t instanceof HTMLElement||(t=null);let n={type:`code`,codeElement:e,numberElement:t,codeWidth:`auto`,numberWidth:0};this.observedNodes.set(e,n),this.resizeObserver.observe(e),t!=null&&(this.observedNodes.set(t,n),this.resizeObserver.observe(t))}if(n.length<=1)return;let r=new Map;for(let e of t){if(!(e instanceof HTMLElement))continue;let{lineAnnotation:t=``}=e.dataset;if(!/^\d+,\d+$/.test(t)){console.error(`DiffFileRenderer.setupResizeObserver: Invalid element or annotation`,{lineAnnotation:t,element:e});continue}let n=r.get(t);n??(n=[],r.set(t,n)),n.push(e)}for(let[e,t]of r){if(t.length!==2){console.error(`DiffFileRenderer.setupResizeObserver: Bad Pair`,e,t);continue}let[n,r]=t,i=n.firstElementChild,a=r.firstElementChild;if(!(n instanceof HTMLElement)||!(r instanceof HTMLElement)||!(i instanceof HTMLElement)||!(a instanceof HTMLElement))continue;let o={type:`annotations`,column1:{container:n,child:i,childHeight:0},column2:{container:r,child:a,childHeight:0},currentHeight:`auto`};this.observedNodes.set(i,o),this.observedNodes.set(a,o),this.resizeObserver.observe(i),this.resizeObserver.observe(a)}}handleResizeObserver=e=>{for(let t of e){let{target:e,borderBoxSize:n}=t;if(!(e instanceof HTMLElement)){console.error(`FileDiff.handleResizeObserver: Invalid element for ResizeObserver`,t);continue}let r=this.observedNodes.get(e);if(r==null){console.error(`FileDiff.handleResizeObserver: Not a valid observed node`,t);continue}let i=n[0];if(r.type===`annotations`){let t=(()=>{if(e===r.column1.child)return r.column1;if(e===r.column2.child)return r.column2})();if(t==null){console.error(`FileDiff.handleResizeObserver: Couldn't find a column for`,{item:r,target:e});continue}t.childHeight=i.blockSize;let n=Math.max(r.column1.childHeight,r.column2.childHeight);n!==r.currentHeight&&(r.currentHeight=Math.max(n,0),r.column1.container.style.setProperty(`--diffs-annotation-min-height`,`${r.currentHeight}px`),r.column2.container.style.setProperty(`--diffs-annotation-min-height`,`${r.currentHeight}px`))}else r.type===`code`&&(e===r.codeElement?i.inlineSize!==r.codeWidth&&(r.codeWidth=i.inlineSize,r.codeElement.style.setProperty(`--diffs-column-content-width`,`${Math.max(r.codeWidth-r.numberWidth,0)}px`),r.codeElement.style.setProperty(`--diffs-column-width`,`${r.codeWidth}px`)):e===r.numberElement&&i.inlineSize!==r.numberWidth&&(r.numberWidth=i.inlineSize,r.codeElement.style.setProperty(`--diffs-column-number-width`,`${r.numberWidth}px`),r.codeWidth!==`auto`&&r.codeElement.style.setProperty(`--diffs-column-content-width`,`${Math.max(r.codeWidth-r.numberWidth,0)}px`)))}}},nP=new Map,rP=new Map,iP=new Set;function aP(e){for(let t of Array.isArray(e)?e:[e])if(!iP.has(t))return!1;return!0}function oP(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(iP.has(n.name))continue;let e=nP.get(n.name);e??(e=n,nP.set(n.name,e)),iP.add(e.name),t.loadLanguageSync(e.data)}}function sP(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var cP=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function lP(e){return uP(e)}function uP(e){return Array.isArray(e)?dP(e):e instanceof RegExp?e:typeof e==`object`?fP(e):e}function dP(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=uP(e[n]);return t}function fP(e){let t={};for(let n in e)t[n]=uP(e[n]);return t}function pP(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function mP(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?mP(e.substring(0,e.length-1)):e.substr(~t+1)}var hP=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,gP=class{static hasCaptures(e){return e===null?!1:(hP.lastIndex=0,hP.test(e))}static replaceCaptures(e,t,n){return e.replace(hP,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function _P(e,t){return e<t?-1:+(e>t)}function vP(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=_P(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function yP(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function bP(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var xP=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},SP=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(DP(e),t)}static createFromParsedTheme(e,t){return AP(e,t)}_cachedMatchRoot=new xP(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>wP(e.parent,t.parentScopes));return n?new EP(n.fontStyle,n.foreground,n.background):null}},CP=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function wP(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!TP(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function TP(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var EP=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function DP(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&yP(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&yP(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new OP(l,u,e,o,s,c)}}return n}var OP=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},kP=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(kP||{});function AP(e,t){e.sort((e,t)=>{let n=_P(e.scope,t.scope);return n!==0||(n=vP(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new jP(t),o=new EP(n,a.getId(r),a.getId(i)),s=new PP(new NP(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new SP(a,o,s)}var jP=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},MP=Object.freeze([]),NP=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||MP,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},PP=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),NP.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(vP(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new NP(e,t,n,r,i))}},FP=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=LP(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function IP(e){return e}function LP(e){return e}function RP(e,t){let n=[],r=BP(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(zP(i)){let e=[];do e.push(i),i=r.next();while(zP(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function zP(e){return!!e&&!!e.match(/[\w\.:]+/)}function BP(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function VP(e){typeof e.dispose==`function`&&e.dispose()}var HP=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},UP=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},WP=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},GP=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new HP(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new WP;for(let n of e)KP(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof HP){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function KP(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof HP?JP({baseGrammar:a,selfGrammar:i},r):qP(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new HP(e))}function qP(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];YP([r],t,n)}}function JP(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&YP(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&YP(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function YP(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?pP({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&YP(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=tF(i);switch(a.kind){case 0:JP({...t,selfGrammar:t.baseGrammar},n);break;case 1:JP(t,n);break;case 2:qP(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?qP(a.ruleName,i,n):JP(i,n)}else a.kind===4?n.add(new UP(a.scopeName,a.ruleName)):n.add(new HP(a.scopeName));break}}}var XP=class{kind=0},ZP=class{kind=1},QP=class{constructor(e){this.ruleName=e}kind=2},$P=class{constructor(e){this.scopeName=e}kind=3},eF=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function tF(e){if(e===`$base`)return new XP;if(e===`$self`)return new ZP;let t=e.indexOf(`#`);return t===-1?new $P(e):t===0?new QP(e.substring(1)):new eF(e.substring(0,t),e.substring(t+1))}var nF=/\\(\d+)/,rF=/\\(\d+)/g,iF=-1,aF=-2;function oF(e){return e}function sF(e){return e}var cF=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=gP.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=gP.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${mP(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:gP.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:gP.replaceCaptures(this._contentName,e,t)}},lF=class extends cF{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},uF=class extends cF{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new hF(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new gF,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},dF=class extends cF{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new gF,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},fF=class extends cF{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new hF(i,this.id),this.beginCaptures=a,this._end=new hF(o||``,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new gF;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},pF=class extends cF{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new hF(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new hF(o,aF),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new gF;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new gF,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},mF=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new lF(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new uF(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=pP({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new dF(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new pF(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new fF(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=tF(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof dF||e instanceof fF||e instanceof pF)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},hF=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=nF.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return rF.lastIndex=0,this.source.replace(rF,(e,t)=>bP(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=``,t[i+1]=``,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=``,t[i+1]=`G`,n[i+1]=``,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},gF=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new _F(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new _F(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},_F=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
|
|
50
|
-
`)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},vF=class{constructor(e,t){this.languageId=e,this.tokenType=t}},yF=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new vF(e,8),this._embeddedLanguagesMatcher=new bF(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new vF(0,0);_getBasicScopeAttributes=new xP(e=>new vF(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},bF=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>bP(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var xF=!1,SF=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function CF(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=wF(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new SF(i,!0);f()}return new SF(i,!1);function f(){let o=TF(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===iF){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),jF(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof fF){let r=o;jF(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof pF){let r=o;jF(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(jF(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function wF(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof pF&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=kF(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==aF){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),jF(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function TF(e,t,n,r,i,a){let o=EF(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=DF(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function EF(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=OF(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function DF(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=OF(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function OF(e,t,n,r,i){return xF?{ruleScanner:e.compile(t,n),findOptions:AF(r,i)}:{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function kF(e,t,n,r,i){return xF?{ruleScanner:e.compileWhile(t,n),findOptions:AF(r,i)}:{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function AF(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function jF(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));CF(e,p,n&&d.start===0,d.start,f,i,!1,0),VP(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new MF(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var MF=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function NF(e,t,n,r,i,a,o,s){return new LF(e,t,n,r,i,a,o,s)}function PF(e,t,n,r,i){let a=RP(t,FF),o=mF.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function FF(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(IF(t[r],e))return n=r+1,!0;return!1})}function IF(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var LF=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new yF(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=RF(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=RP(e,FF);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)PF(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&PF(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(oF(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[sF(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=RF(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=mF.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===BF.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=FP.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?zF.createRootAndLookUpScopeName(a,r,this):zF.createRoot(`unknown`,r),t=new BF(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
|
|
51
|
-
`;let a=this.createOnigString(e),o=a.content.length,s=new HF(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=CF(this,a,i,0,t,s,!0,r);return VP(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function RF(e,t){return e=lP(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var zF=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=CP.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new CP(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new CP(null,t),o=r.themeProvider.themeMatch(a);return new e(null,a,e.mergeAttributes(n,i,o))}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),FP.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a);return new e(t,a,e.mergeAttributes(t.tokenAttributes,i,o))}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},BF=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?zF.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:sF(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=zF.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,oF(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,zF.fromExtension(r,n.contentNameScopesList))}},VF=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):RP(e,FF).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>RP(e,FF).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},HF=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=FP.set(n,0,IP(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=FP.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},UF=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,NF(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},WF=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new UF(SP.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(SP.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new VF(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new GP(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},GF=BF.NULL,KF=/["&'<>`]/g,qF=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,JF=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,YF=/[|\\{}()[\]^$+*?.]/g,XF=new WeakMap;function ZF(e,t){if(e=e.replace(t.subset?QF(t.subset):KF,r),t.subset||t.escapeOnly)return e;return e.replace(qF,n).replace(JF,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function QF(e){let t=XF.get(e);return t||(t=$F(e),XF.set(e,t)),t}function $F(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(YF,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var eI=/[\dA-Fa-f]/;function tI(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!eI.test(String.fromCharCode(t))?r:r+`;`}var nI=/\d/;function rI(e,t,n){let r=`&#`+String(e);return n&&t&&!nI.test(String.fromCharCode(t))?r:r+`;`}var iI=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),aI={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:``,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:``,zwj:``,lrm:``,rlm:``,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},oI=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],sI={}.hasOwnProperty,cI={},lI;for(lI in aI)sI.call(aI,lI)&&(cI[aI[lI]]=lI);var uI=/[^\dA-Za-z]/;function dI(e,t,n,r){let i=String.fromCharCode(e);if(sI.call(cI,i)){let e=cI[i],a=`&`+e;return n&&iI.includes(e)&&!oI.includes(e)&&(!r||t&&t!==61&&uI.test(String.fromCharCode(t)))?a:a+`;`}return``}function fI(e,t,n){let r=tI(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=dI(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=rI(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function pI(e,t){return ZF(e,Object.assign({format:fI},t))}var mI=/^>|^->|<!--|-->|--!>|<!-$/g,hI=[`>`],gI=[`<`,`>`];function _I(e,t,n,r){return r.settings.bogusComments?`<?`+pI(e.value,Object.assign({},r.settings.characterReferences,{subset:hI}))+`>`:`<!--`+e.value.replace(mI,i)+`-->`;function i(e){return pI(e,Object.assign({},r.settings.characterReferences,{subset:gI}))}}function vI(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}var yI=SI(1),bI=SI(-1),xI=[];function SI(e){return t;function t(t,n,r){let i=t?t.children:xI,a=(n||0)+e,o=i[a];if(!r)for(;o&&kd(o);)a+=e,o=i[a];return o}}var CI={}.hasOwnProperty;function wI(e){return t;function t(t,n,r){return CI.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var TI=wI({body:OI,caption:EI,colgroup:EI,dd:MI,dt:jI,head:EI,html:DI,li:AI,optgroup:PI,option:FI,p:kI,rp:NI,rt:NI,tbody:LI,td:BI,tfoot:RI,th:BI,thead:II,tr:zI});function EI(e,t,n){let r=yI(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&kd(r.value.charAt(0)))}function DI(e,t,n){let r=yI(n,t);return!r||r.type!==`comment`}function OI(e,t,n){let r=yI(n,t);return!r||r.type!==`comment`}function kI(e,t,n){let r=yI(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function AI(e,t,n){let r=yI(n,t);return!r||r.type===`element`&&r.tagName===`li`}function jI(e,t,n){let r=yI(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function MI(e,t,n){let r=yI(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function NI(e,t,n){let r=yI(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function PI(e,t,n){let r=yI(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function FI(e,t,n){let r=yI(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function II(e,t,n){let r=yI(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function LI(e,t,n){let r=yI(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function RI(e,t,n){return!yI(n,t)}function zI(e,t,n){let r=yI(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function BI(e,t,n){let r=yI(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var VI=wI({body:WI,colgroup:GI,head:UI,html:HI,tbody:KI});function HI(e){let t=yI(e,-1);return!t||t.type!==`comment`}function UI(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function WI(e){let t=yI(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&kd(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function GI(e,t,n){let r=bI(n,t),i=yI(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&TI(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function KI(e,t,n){let r=bI(n,t),i=yI(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&TI(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var qI={name:[[`
|
|
52
|
-
\f\r &/=>`.split(``),`
|
|
53
|
-
\f\r "&'/=>\``.split(``)],[`\0
|
|
54
|
-
\f\r "&'/<=>`.split(``),`\0
|
|
55
|
-
\f\r "&'/<=>\``.split(``)]],unquoted:[[`
|
|
56
|
-
\f\r &>`.split(``),`\0
|
|
57
|
-
\f\r "&'<=>\``.split(``)],[`\0
|
|
58
|
-
\f\r "&'<=>\``.split(``),`\0
|
|
59
|
-
\f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function JI(e,t,n,r){let i=r.schema,a=i.space===`svg`?!1:r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=uf);let l=YI(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!VI(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!TI(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function YI(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=XI(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function XI(e,t,n){let r=of(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=pI(r.attribute,Object.assign({},e.settings.characterReferences,{subset:qI.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Cd:ff)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=pI(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:qI.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&VC(n,o)>VC(n,e.alternative)&&(o=e.alternative),s=o+pI(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?qI.single:qI.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var ZI=[`<`,`&`];function QI(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:pI(e.value,Object.assign({},r.settings.characterReferences,{subset:ZI}))}function $I(e,t,n,r){return r.settings.allowDangerousHtml?e.value:QI(e,t,n,r)}function eL(e,t,n,r){return r.all(e)}var tL=Fv(`type`,{invalid:nL,unknown:rL,handlers:{comment:_I,doctype:vI,element:JI,raw:$I,root:eL,text:QI}});function nL(e){throw Error("Expected node, not `"+e+"`")}function rL(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var iL={},aL={},oL=[];function sL(e,t){let n=t||iL,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:cL,all:lL,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Yv,characterReferences:n.characterReferences||aL,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?uf:lf,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function cL(e,t,n){return tL(e,t,n,this)}function lL(e){let t=[],n=e&&e.children||oL,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}function uL(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function dL(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function fL(e){return Array.isArray(e)?e:[e]}async function pL(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function mL(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function hL(e){return e===`ansi`||mL(e)}function gL(e){return e===`none`}function _L(e){return gL(e)}function vL(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(/\s+/g);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function yL(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}function bL(e){let t=yL(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}function xL(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}var SL=`light-dark()`,CL=[`color`,`background-color`];function wL(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function TL(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?wL(e,t):e})):e}function EL(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>DL(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&CL.includes(a))if(r===SL&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new cP('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');c[a]=`light-dark(${o[e][a]||`inherit`}, ${o[r][a]||`inherit`})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s;else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function DL(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&kP.Italic&&(t[`font-style`]=`italic`),e.fontStyle&kP.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&kP.Underline&&n.push(`underline`),e.fontStyle&kP.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function OL(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}var kL=new WeakMap;function AL(e,t){kL.set(e,t)}function jL(e){return kL.get(e)}var ML=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(fL(n).map(e=>[e,GF])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return NL(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function NL(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function PL(e,t){if(!(e instanceof ML))throw new cP(`Invalid grammar state`);return e.getInternalStack(t)}function FL(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new cP(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}else{let t=r.lines[e.line];if(t===void 0)throw new cP(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new cP(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=bL(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));IL(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return TL(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new cP(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=LL(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new cP(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new cP(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&vL(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function IL(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new cP(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new cP(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function LL(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(LL).join(``):``}var RL=[FL()];function zL(e){let t=BL(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...RL]}function BL(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var VL=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],HL={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function UL(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function WL(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}else if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function GL(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:`resetAll`});else if(r<=9)HL[r]&&t.push({type:`setDecoration`,value:HL[r]});else if(r<=29){let e=HL[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:VL[r-30]}});else if(r===38){let n=WL(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:VL[r-40]}});else if(r===48){let n=WL(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:VL[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:VL[r-100+8]}})}return t}function KL(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=UL(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=GL(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var qL={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function JL(e=qL){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<VL.length;e++)r.push(t(VL[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var YL={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function XL(e,t,n){let r=uL(e,n),i=yL(t),a=JL(Object.fromEntries(VL.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||YL[t]]}))),o=KL();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=dL(i,r),o=dL(o,r),n.decorations.has(`dim`)&&(i=ZL(i));let s=kP.None;return n.decorations.has(`bold`)&&(s|=kP.Bold),n.decorations.has(`italic`)&&(s|=kP.Italic),n.decorations.has(`underline`)&&(s|=kP.Underline),n.decorations.has(`strikethrough`)&&(s|=kP.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function ZL(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}else if(e.length===6)return`#${e}80`;else if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}else if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function QL(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||`text`);if(mL(i)||gL(r))return yL(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:o}=e.setTheme(r);if(i===`ansi`)return XL(a,t,n);let s=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==s.name)throw new cP(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new cP(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return eR(t,s,a,o,n)}function $L(...e){if(e.length===2)return jL(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(mL(i)||gL(a))throw new cP(`Plain language does not have grammar state`);if(i===`ansi`)throw new cP(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new ML(tR(n,c,o,s,r).stateStack,c.name,o.name)}function eR(e,t,n,r,i){let a=tR(e,t,n,r,i),o=new ML(a.stateStack,t.name,n.name);return AL(a.tokens,o),a.tokens}function tR(e,t,n,r,i){let a=uL(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=yL(e),l=i.grammarState?PL(i.grammarState,n.name)??GF:i.grammarContextCode==null?GF:tR(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,u=[],d=[];for(let e=0,f=c.length;e<f;e++){let[f,p]=c[e];if(f===``){u=[],d.push([]);continue}if(o>0&&f.length>=o){u=[],d.push([{content:f,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;i.includeExplanation&&(m=t.tokenizeLine(f,l,s),h=m.tokens,g=0);let _=t.tokenizeLine2(f,l,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:f.length;if(t===o)continue;let s=_.tokens[2*e+1],c=dL(r[FP.getForeground(s)],a),l=FP.getFontStyle(s),d={content:f.substring(t,o),offset:p+t,color:c,fontStyle:l};if(i.includeExplanation){let e=[];if(i.includeExplanation!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(/,/).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:i.includeExplanation===`scopeName`?nR(t.scopes):rR(e,t.scopes)}),g+=1}}u.push(d)}d.push(u),u=[],l=_.ruleStack}return{tokens:d,stateStack:l}}function nR(e){return e.map(e=>({scopeName:e}))}function rR(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:oR(e,i,t.slice(0,r))}}return n}function iR(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function aR(e,t,n){if(!iR(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)iR(e[r],n[i])&&--r,--i;return r===-1}function oR(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(aR(e,t,n)){r.push(a);break}return r}function sR(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),i=r.map(r=>{let i=QL(e,t,{...n,theme:r.theme});return{tokens:i,state:jL(i),theme:typeof r.theme==`string`?r.theme:r.theme.name}}),a=cR(...i.map(e=>e.tokens)),o=a[0].map((e,t)=>e.map((e,i)=>{let o={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(o.explanation=e.explanation),a.forEach((e,n)=>{let{content:a,explanation:s,offset:c,...l}=e[t][i];o.variants[r[n].color]=l}),o})),s=i[0].state?new ML(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return s&&AL(o,s),o}function cR(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}function lR(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new cP("`themes` option must not be empty");let p=sR(e,t,n);if(c=jL(p),l&&SL!==l&&!f.find(e=>e.color===l))throw new cP(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>EL(e,h,u,l,d))),c&&AL(a,c);let g=f.map(e=>uL(e.theme,n));i=uR(f,m,g,u,l,`fg`,d),r=uR(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=uL(n.theme,n);a=QL(e,t,n);let l=e.getTheme(n.theme);r=dL(l.bg,s),i=dL(l.fg,s),o=l.name,c=jL(a)}else throw new cP("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function uR(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=dL(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===SL&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new cP('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${dL(t[r][a],n[r])||`inherit`}, ${dL(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}function dR(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>dR(e,t,n),codeToTokens:(t,n)=>lR(e,t,n)}){let i=t;for(let e of zL(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=lR(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=pR(a):d===`never`&&(a=mR(a)),f&&(a=hR(a));let p={...r,get source(){return i}};for(let e of zL(n))a=e.tokens?.call(p,a)||a;return fR(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function fR(e,t,n,r=jL(e)){let i=zL(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(t.rootStyle==null?l.style=`background-color:${t.bg};color:${t.fg}`:l.style=t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:vL,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
|
|
60
|
-
`}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=OL(a.htmlStyle||DL(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&AL(m,r),m}function pR(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&kP.Underline||i.fontStyle&kP.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function mR(e){return e.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function hR(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t[t.length-1],r=OL(e.htmlStyle||DL(e)),i=OL(n.htmlStyle||DL(n)),a=e.fontStyle&&(e.fontStyle&kP.Underline||e.fontStyle&kP.Strikethrough),o=n.fontStyle&&(n.fontStyle&kP.Underline||n.fontStyle&kP.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var gR=sL;function _R(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>dR(e,t,n),codeToTokens:(t,n)=>lR(e,t,n)},i=gR(dR(e,t,n,r));for(let e of zL(n))i=e.postprocess?.call(r,i,n)||i;return i}var vR={light:`#333333`,dark:`#bbbbbb`},yR={light:`#fffffe`,dark:`#1e1e1e`},bR=`__shiki_resolved`;function xR(e){if(e?.[bR])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?vR.light:vR.dark,n||=t.type===`light`?yR.light:yR.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,bR,{enumerable:!1,writable:!1,value:!0}),t}async function SR(e){return Array.from(new Set((await Promise.all(e.filter(e=>!hL(e)).map(async e=>await pL(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function CR(e){return(await Promise.all(e.map(async e=>_L(e)?null:xR(await pL(e))))).filter(e=>!!e)}var wR=3,TR=!1;function ER(e,t=3){if(wR&&!(typeof wR==`number`&&t>wR)){if(TR)throw Error(`[SHIKI DEPRECATE]: ${e}`);console.trace(`[SHIKI DEPRECATE]: ${e}`)}}var DR=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function OR(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new DR(`Circular alias \`${Array.from(n).join(` -> `)} -> ${e}\``);n.add(e)}}return e}var kR=class extends WF{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=xR(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=SP.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=OR(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new DR(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},AR=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},jR=0;function MR(e){jR+=1,e.warnings!==!1&&jR>=10&&jR%10==0&&console.warn(`[Shiki] ${jR} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new DR("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(xR),i=new kR(new AR(e.engine,n),r,n,e.langAlias),a;function o(t){return OR(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new DR(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new DR(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await SR(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await CR(e))}function g(){if(t)throw new DR(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--jR)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function NR(e){e.engine||ER("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([CR(e.themes||[]),SR(e.langs||[]),e.engine]);return MR({...e,themes:t,langs:n,engine:r})}async function PR(e){let t=await NR(e);return{getLastGrammarState:(...e)=>$L(t,...e),codeToTokensBase:(e,n)=>QL(t,e,n),codeToTokensWithThemes:(e,n)=>sR(t,e,n),codeToTokens:(e,n)=>lR(t,e,n),codeToHast:(e,n)=>dR(t,e,n),codeToHtml:(e,n)=>_R(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function FR(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,hL(n))return[];let r=t[n];if(!r)throw new cP(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(_L(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new cP(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await PR({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function IR(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}else{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function LR(e,t){let n=IR(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}var RR=[{id:`abap`,name:`ABAP`,import:(()=>L(()=>import(`./abap-B1dkBSPn.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>L(()=>import(`./actionscript-3-BT4ibYlP.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>L(()=>import(`./ada-CD92zeps.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>L(()=>import(`./angular-html-CM7ZtmlE.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3,4])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>L(()=>import(`./angular-ts-B4aAwutb.js`),__vite__mapDeps([5,0,1,2,3,4,6])))},{id:`apache`,name:`Apache Conf`,import:(()=>L(()=>import(`./apache-D5suuoa_.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>L(()=>import(`./apex-BL-m4VHy.js`),[]))},{id:`apl`,name:`APL`,import:(()=>L(()=>import(`./apl-Db6aaGYX.js`),__vite__mapDeps([7,3,1,2,4,8,9,10])))},{id:`applescript`,name:`AppleScript`,import:(()=>L(()=>import(`./applescript-CLiBqvKT.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>L(()=>import(`./ara-LdDF8cmv.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>L(()=>import(`./asciidoc-2DZ9hC2N.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>L(()=>import(`./asm-0ZPGRSUy.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>L(()=>import(`./astro-CXkhV095.js`),__vite__mapDeps([11,3,1,4,8,12,13,14])))},{id:`awk`,name:`AWK`,import:(()=>L(()=>import(`./awk-Bn0gn_B_.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>L(()=>import(`./ballerina-D2nw_w8Q.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>L(()=>import(`./bat-ByUBN5gS.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>L(()=>import(`./beancount-BTb2W6Mp.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>L(()=>import(`./berry-5SO2uITG.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>L(()=>import(`./bibtex-CDBTNfUI.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>L(()=>import(`./bicep-fgxG_4rP.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>L(()=>import(`./bird2-BCwzDhwX.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>L(()=>import(`./blade-CfLZY3kt.js`),__vite__mapDeps([15,3,1,16,2,4,8,17,9,10])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>L(()=>import(`./bsl-CG-fq4sc.js`),__vite__mapDeps([18,19])))},{id:`c`,name:`C`,import:(()=>L(()=>import(`./c-CwV4mx9Z.js`).then(e=>e.n),__vite__mapDeps([20,1])))},{id:`c3`,name:`C3`,import:(()=>L(()=>import(`./c3-Dlaci63_.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>L(()=>import(`./cadence-DHbRuEmm.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>L(()=>import(`./cairo-Ds0kTeYT.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>L(()=>import(`./clarity-DMoTOm4G.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>L(()=>import(`./clojure-DBhE3PpS.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>L(()=>import(`./cmake-DwMc40Or.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>L(()=>import(`./cobol-Bx9V6w-A.js`),__vite__mapDeps([23,2,1,3,4,10])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>L(()=>import(`./codeowners-1lVr8wqV.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>L(()=>import(`./codeql-DWflolvo.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>L(()=>import(`./coffee-4vexivp2.js`),__vite__mapDeps([24,4,1])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>L(()=>import(`./common-lisp-CrVQ5xT-.js`),[]))},{id:`coq`,name:`Coq`,import:(()=>L(()=>import(`./coq-CjfoyYSh.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>L(()=>import(`./cpp-B9JgHtmn.js`).then(e=>e.n),__vite__mapDeps([25,1,26,20,27,17])))},{id:`crystal`,name:`Crystal`,import:(()=>L(()=>import(`./crystal-CV6ainQY.js`),__vite__mapDeps([28,20,1,3,2,4,29,17])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>L(()=>import(`./csharp-C7bIWP5y.js`),[]))},{id:`css`,name:`CSS`,import:(()=>L(()=>import(`./css-BahFL25I.js`).then(e=>e.n),__vite__mapDeps([3,1])))},{id:`csv`,name:`CSV`,import:(()=>L(()=>import(`./csv-DsAkDVtA.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>L(()=>import(`./cue-BWmQgbOB.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>L(()=>import(`./cypher-D-jVC50Q.js`),[]))},{id:`d`,name:`D`,import:(()=>L(()=>import(`./d-CaviyOrm.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>L(()=>import(`./dart-CZEi7JgC.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>L(()=>import(`./dax-BK-8zffy.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>L(()=>import(`./desktop-D3cjbL4D.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>L(()=>import(`./diff-sHAzLvlp.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>L(()=>import(`./docker--xs2Ng3w.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>L(()=>import(`./dotenv-Cm4nwcJ7.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>L(()=>import(`./dream-maker-fjmWTFCO.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>L(()=>import(`./edge-Dbi7IqBU.js`),__vite__mapDeps([30,16,2,1,3,4,14])))},{id:`elixir`,name:`Elixir`,import:(()=>L(()=>import(`./elixir-Bcybagr3.js`),__vite__mapDeps([31,2,1,3,4])))},{id:`elm`,name:`Elm`,import:(()=>L(()=>import(`./elm-Cg7kNsW7.js`),__vite__mapDeps([32,26,1,20])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>L(()=>import(`./emacs-lisp-CJzqStIa.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>L(()=>import(`./erb-CUdWoCwh.js`),__vite__mapDeps([33,2,1,3,4,34,20,25,26,27,17,35,36,13,14,37,38,29,9,10,39])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>L(()=>import(`./erlang-C-m_88FN.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>L(()=>import(`./fennel-DRaXF7k8.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>L(()=>import(`./fish-Bn-Yh3Jj.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>L(()=>import(`./fluent-DF5F8Ks_.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>L(()=>import(`./fortran-fixed-form-Cx1lv7HN.js`),__vite__mapDeps([42,43])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>L(()=>import(`./fortran-free-form-hCQHRqew.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>L(()=>import(`./fsharp-DC5k9sy2.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>L(()=>import(`./gdresource-D0EsKdgH.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>L(()=>import(`./gdscript-_C9_Hi_w.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>L(()=>import(`./gdshader-BW7b1X1Y.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>L(()=>import(`./genie-Ch_6TCHd.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>L(()=>import(`./gherkin-CaNUsmTq.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>L(()=>import(`./git-commit-BcFsuO5E.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>L(()=>import(`./git-rebase-CebuXWOz.js`),__vite__mapDeps([50,29,1])))},{id:`gleam`,name:`Gleam`,import:(()=>L(()=>import(`./gleam-DALMDpNs.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>L(()=>import(`./glimmer-js-DHD_iF4f.js`),__vite__mapDeps([51,3,1,2,4,14])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>L(()=>import(`./glimmer-ts-x8YwQhtI.js`),__vite__mapDeps([52,3,1,2,4,14])))},{id:`glsl`,name:`GLSL`,import:(()=>L(()=>import(`./glsl-DTvpjV5x.js`).then(e=>e.n),__vite__mapDeps([26,1,20])))},{id:`gn`,name:`GN`,import:(()=>L(()=>import(`./gn-DGjqrYN9.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>L(()=>import(`./gnuplot-BYckvgQI.js`),[]))},{id:`go`,name:`Go`,import:(()=>L(()=>import(`./go-JycvP538.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>L(()=>import(`./graphql-BABFRhpo.js`).then(e=>e.n),__vite__mapDeps([35,1,4,36,13,14])))},{id:`groovy`,name:`Groovy`,import:(()=>L(()=>import(`./groovy-D5qMRONT.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>L(()=>import(`./hack-BTa_6UF4.js`),__vite__mapDeps([53,2,1,3,4,17])))},{id:`haml`,name:`Ruby Haml`,import:(()=>L(()=>import(`./haml-DwZg9pb5.js`).then(e=>e.n),__vite__mapDeps([37,1,3,4])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>L(()=>import(`./handlebars-Bkp0I46S.js`),__vite__mapDeps([54,3,1,2,4,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>L(()=>import(`./haskell-ys7wPPEd.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>L(()=>import(`./haxe-94kiChn7.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>L(()=>import(`./hcl-DmHt_-wq.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>L(()=>import(`./hjson-xMmoJ0Gx.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>L(()=>import(`./hlsl-b-Pskdze.js`),[]))},{id:`html`,name:`HTML`,import:(()=>L(()=>import(`./html-BrFG164I.js`).then(e=>e.n),__vite__mapDeps([2,1,3,4])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>L(()=>import(`./html-derivative-Dm50cCgO.js`),__vite__mapDeps([16,2,1,3,4])))},{id:`http`,name:`HTTP`,import:(()=>L(()=>import(`./http-DHs85vmZ.js`),__vite__mapDeps([55,35,1,4,36,13,14,8,29,9,10])))},{id:`hurl`,name:`Hurl`,import:(()=>L(()=>import(`./hurl-Dh07B-Ro.js`),__vite__mapDeps([56,57,35,1,4,36,13,14,9,10])))},{id:`hxml`,name:`HXML`,import:(()=>L(()=>import(`./hxml-iQTOTWpM.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>L(()=>import(`./hy-DKl1XhBq.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>L(()=>import(`./imba-DPxkOTAg.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>L(()=>import(`./ini-lkLGq_1x.js`),[]))},{id:`java`,name:`Java`,import:(()=>L(()=>import(`./java-CyElhBLV.js`).then(e=>e.n),__vite__mapDeps([10,1])))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>L(()=>import(`./javascript-Iw1B_HiK.js`).then(e=>e.n),__vite__mapDeps([4,1])))},{id:`jinja`,name:`Jinja`,import:(()=>L(()=>import(`./jinja-CwNzTCBn.js`),__vite__mapDeps([60,2,1,3,4])))},{id:`jison`,name:`Jison`,import:(()=>L(()=>import(`./jison-DmnCmBdi.js`),__vite__mapDeps([61,4,1])))},{id:`json`,name:`JSON`,import:(()=>L(()=>import(`./json-2cvnIy7t.js`).then(e=>e.n),__vite__mapDeps([8,1])))},{id:`json5`,name:`JSON5`,import:(()=>L(()=>import(`./json5-Cy6ypJuJ.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>L(()=>import(`./jsonc-Cw2ugYAK.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>L(()=>import(`./jsonl-Dp5_qBVH.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>L(()=>import(`./jsonnet-BTbmg_-u.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>L(()=>import(`./jssm-CnT7nPea.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>L(()=>import(`./jsx-CUP6THJt.js`).then(e=>e.n),__vite__mapDeps([36,1])))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>L(()=>import(`./julia-C5QkPIf6.js`),__vite__mapDeps([62,25,1,26,20,27,17,4,22,63])))},{id:`just`,name:`Just`,import:(()=>L(()=>import(`./just-DKTy3QCk.js`),__vite__mapDeps([64,4,1,65,3,2,17,9,10,22,34,20,25,26,27,35,36,13,14,37,38,29,39])))},{id:`kdl`,name:`KDL`,import:(()=>L(()=>import(`./kdl-BwK60g80.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>L(()=>import(`./kotlin-Dbd9Vi-v.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>L(()=>import(`./kusto-BuTk9usc.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>L(()=>import(`./latex-D6EezuXB.js`),__vite__mapDeps([66,67,63,1])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>L(()=>import(`./lean-CYAW8bRN.js`),[]))},{id:`less`,name:`Less`,import:(()=>L(()=>import(`./less-D4uen21c.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>L(()=>import(`./liquid-CIoyldIJ.js`),__vite__mapDeps([68,3,1,2,4,8])))},{id:`llvm`,name:`LLVM IR`,import:(()=>L(()=>import(`./llvm-Z1xJzteV.js`),[]))},{id:`log`,name:`Log file`,import:(()=>L(()=>import(`./log-BGUxlsk3.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>L(()=>import(`./logo-wVUhvQ1b.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>L(()=>import(`./lua-DdZ7KAyq.js`).then(e=>e.n),__vite__mapDeps([38,1,20])))},{id:`luau`,name:`Luau`,import:(()=>L(()=>import(`./luau-rPFZzCmq.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>L(()=>import(`./make-BmPf6m0P.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>L(()=>import(`./markdown-AseU6zcW.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>L(()=>import(`./marko-DzUNPeS3.js`),__vite__mapDeps([69,3,1,70,6,14])))},{id:`matlab`,name:`MATLAB`,import:(()=>L(()=>import(`./matlab-BOj_BDQv.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>L(()=>import(`./mdc-D5459Kci.js`),__vite__mapDeps([71,16,2,1,3,4,41,39])))},{id:`mdx`,name:`MDX`,import:(()=>L(()=>import(`./mdx-Cm6cDkDI.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>L(()=>import(`./mermaid-DLO-R4hv.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>L(()=>import(`./mipsasm-DYpHF-GA.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>L(()=>import(`./mojo-DqYVFv_G.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>L(()=>import(`./moonbit-DRKee9wk.js`),[]))},{id:`move`,name:`Move`,import:(()=>L(()=>import(`./move-DbRk6Vn9.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>L(()=>import(`./narrat-IOfmaXfb.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>L(()=>import(`./nextflow-D-Ec_bsY.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`nextflow-groovy`,import:(()=>L(()=>import(`./nextflow-groovy-EYl0c2BQ.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>L(()=>import(`./nginx-0z5C7Rx2.js`),__vite__mapDeps([74,38,1,20])))},{id:`nim`,name:`Nim`,import:(()=>L(()=>import(`./nim-DqH405Ip.js`),__vite__mapDeps([75,20,1,3,26,2,4,41,9,10])))},{id:`nix`,name:`Nix`,import:(()=>L(()=>import(`./nix-C2IovEl2.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>L(()=>import(`./nushell-BflTrRB5.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>L(()=>import(`./objective-c-GRClK1S7.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>L(()=>import(`./objective-cpp-l3qYw-v5.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>L(()=>import(`./ocaml-BBDyhyMH.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>L(()=>import(`./odin-jCJ7Js99.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>L(()=>import(`./openscad-Drf0LgCX.js`),[]))},{id:`pascal`,name:`Pascal`,import:(()=>L(()=>import(`./pascal-BT2XAUTl.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>L(()=>import(`./perl-DFMDl6Q7.js`),__vite__mapDeps([65,3,1,2,4,17,9,10])))},{id:`php`,name:`PHP`,import:(()=>L(()=>import(`./php-CnLHesuB.js`),__vite__mapDeps([76,3,1,2,4,8,17,9,10])))},{id:`pkl`,name:`Pkl`,import:(()=>L(()=>import(`./pkl-ML-dWShO.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>L(()=>import(`./plsql-0vd5cLro.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>L(()=>import(`./po-CbZ_uqQA.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>L(()=>import(`./polar-C4hfV8Nc.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>L(()=>import(`./postcss-osFUbTLw.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>L(()=>import(`./powerquery-CTlGUQPj.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>L(()=>import(`./powershell-DyZsOmuq.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>L(()=>import(`./prisma-SS92PO_I.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>L(()=>import(`./prolog-B1O1NNVC.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>L(()=>import(`./proto-BWu3eZTs.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>L(()=>import(`./pug-Bd_9REL_.js`),__vite__mapDeps([77,3,1,2,4])))},{id:`puppet`,name:`Puppet`,import:(()=>L(()=>import(`./puppet-tvtRVdr6.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>L(()=>import(`./purescript-Dtbpb7D-.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>L(()=>import(`./python-Dlk0Acio.js`),[]))},{id:`qml`,name:`QML`,import:(()=>L(()=>import(`./qml-Lr6hdC-5.js`),__vite__mapDeps([78,4,1])))},{id:`qmldir`,name:`QML Directory`,import:(()=>L(()=>import(`./qmldir-B-iEOngH.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>L(()=>import(`./qss-Ba0p-aHw.js`),[]))},{id:`r`,name:`R`,import:(()=>L(()=>import(`./r-Ce3-ySeQ.js`).then(e=>e.n),__vite__mapDeps([63,1])))},{id:`racket`,name:`Racket`,import:(()=>L(()=>import(`./racket-BXDsxf2U.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>L(()=>import(`./raku-Dw1WWFXK.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>L(()=>import(`./razor-FG0QpIgS.js`),__vite__mapDeps([79,80,2,1,3,4])))},{id:`reg`,name:`Windows Registry Script`,import:(()=>L(()=>import(`./reg-DXFHGaM4.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>L(()=>import(`./regexp-CIUvMYKc.js`).then(e=>e.n),__vite__mapDeps([27,1])))},{id:`rel`,name:`Rel`,import:(()=>L(()=>import(`./rel-Dc5_Ytx2.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>L(()=>import(`./riscv-ZgswiWij.js`),[]))},{id:`ron`,name:`RON`,import:(()=>L(()=>import(`./ron-YghabWAH.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>L(()=>import(`./rosmsg-DTKmAsVH.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>L(()=>import(`./rst-Dz7v6x4B.js`),__vite__mapDeps([81,82,25,1,26,20,27,17,16,2,3,4,22,34,35,36,13,14,37,38,29,9,10,39])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>L(()=>import(`./ruby-C-FBX9Yb.js`),__vite__mapDeps([34,20,1,25,26,27,17,3,35,4,36,13,14,37,2,38,29,9,10,39])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>L(()=>import(`./rust-nfXwuE6F.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>L(()=>import(`./sas-C9h-w7MI.js`),__vite__mapDeps([83,17,1])))},{id:`sass`,name:`Sass`,import:(()=>L(()=>import(`./sass-CbRjkld3.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>L(()=>import(`./scala-BzD3eypx.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>L(()=>import(`./scheme-D4d1PV1y.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>L(()=>import(`./scss-D6OzIOrm.js`).then(e=>e.n),__vite__mapDeps([6,1,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>L(()=>import(`./sdbl-Cf-Ydnvx.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>L(()=>import(`./shaderlab-DGohHMiF.js`),__vite__mapDeps([84,85])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>L(()=>import(`./shellscript-D87RcbyJ.js`).then(e=>e.n),__vite__mapDeps([29,1])))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>L(()=>import(`./shellsession-TIQjKTe8.js`),__vite__mapDeps([86,29,1])))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>L(()=>import(`./smalltalk-_uWoArwn.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>L(()=>import(`./solidity-D6uC-xwP.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>L(()=>import(`./soy-B-dmhoWy.js`),__vite__mapDeps([87,2,1,3,4])))},{id:`sparql`,name:`SPARQL`,import:(()=>L(()=>import(`./sparql-BgU2QITA.js`),__vite__mapDeps([88,89])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>L(()=>import(`./splunk-LQYHRu14.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>L(()=>import(`./sql-CbBIAEKN.js`).then(e=>e.n),__vite__mapDeps([17,1])))},{id:`ssh-config`,name:`SSH Config`,import:(()=>L(()=>import(`./ssh-config-B7BUl8Rd.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>L(()=>import(`./stata-BQ_FGGIg.js`),__vite__mapDeps([90,17,1])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>L(()=>import(`./stylus-Byjxdx_q.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>L(()=>import(`./surrealql-B5__VBgQ.js`),__vite__mapDeps([91,4,1])))},{id:`svelte`,name:`Svelte`,import:(()=>L(()=>import(`./svelte-CgBSZjLG.js`),__vite__mapDeps([92,3,1,4,12,14])))},{id:`swift`,name:`Swift`,import:(()=>L(()=>import(`./swift-BexLlMrU.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>L(()=>import(`./system-verilog-DVGwm0mw.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>L(()=>import(`./systemd-H2IT3-p5.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>L(()=>import(`./talonscript-mKZIGM8n.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>L(()=>import(`./tasl-B7he_Ugr.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>L(()=>import(`./tcl-5mT3RxHH.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>L(()=>import(`./templ-_lWYjbQF.js`),__vite__mapDeps([93,3,1,94,4])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>L(()=>import(`./terraform-BZP0GLsT.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>L(()=>import(`./tex-BYUs5HV3.js`),__vite__mapDeps([67,63,1])))},{id:`toml`,name:`TOML`,import:(()=>L(()=>import(`./toml-CTFA98he.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>L(()=>import(`./ts-tags-hjuJ4isf.js`),__vite__mapDeps([95,3,1,26,20,2,4,17,14,9,10])))},{id:`tsv`,name:`TSV`,import:(()=>L(()=>import(`./tsv-BayJtYdY.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>L(()=>import(`./tsx-DlvScFgB.js`).then(e=>e.n),__vite__mapDeps([13,1])))},{id:`turtle`,name:`Turtle`,import:(()=>L(()=>import(`./turtle-TVCBh_kY.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>L(()=>import(`./twig-DgkARV1o.js`),__vite__mapDeps([96,3,1,4,76,2,8,17,9,10,22,34,20,25,26,27,35,36,13,14,37,38,29,39,6])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>L(()=>import(`./typescript-BE5MgbU9.js`).then(e=>e.n),__vite__mapDeps([14,1])))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>L(()=>import(`./typespec-BUvaJDLF.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>L(()=>import(`./typst-8NBaY7Ec.js`),[]))},{id:`v`,name:`V`,import:(()=>L(()=>import(`./v-VihyTigi.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>L(()=>import(`./vala-DyFAPyX6.js`),[]))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>L(()=>import(`./vb-Dg1Iqi4J.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>L(()=>import(`./verilog-D2Xc-vhD.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>L(()=>import(`./vhdl-CU3BVeE7.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>L(()=>import(`./viml-hG2shuOW.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>L(()=>import(`./vue-C6mGC-Xh.js`),__vite__mapDeps([97,3,1,16,2,4,8,14])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>L(()=>import(`./vue-html-BcBAJPrV.js`),__vite__mapDeps([98,4,1])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>L(()=>import(`./vue-vine-DsdYqYVB.js`),__vite__mapDeps([99,3,1,4,70,12,6,100])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>L(()=>import(`./vyper-C1wojIuk.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>L(()=>import(`./wasm-C6Y0s02M.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>L(()=>import(`./wenyan-BG5vPQF0.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>L(()=>import(`./wgsl-DrVb-Cub.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>L(()=>import(`./wikitext-PRC4s8sH.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>L(()=>import(`./wit-ChW5qvg_.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>L(()=>import(`./wolfram-B8mKuZSQ.js`),[]))},{id:`xml`,name:`XML`,import:(()=>L(()=>import(`./xml-CMIrlqCw.js`).then(e=>e.n),__vite__mapDeps([9,1,10])))},{id:`xsl`,name:`XSL`,import:(()=>L(()=>import(`./xsl-BL_g6M4v.js`),__vite__mapDeps([101,9,1,10])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>L(()=>import(`./yaml-D4rIwiAS.js`).then(e=>e.n),__vite__mapDeps([39,1])))},{id:`zenscript`,name:`ZenScript`,import:(()=>L(()=>import(`./zenscript-C-jEPC9j.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>L(()=>import(`./zig-EbnRGjcz.js`),[]))}],zR=Object.fromEntries(RR.map(e=>[e.id,e.import])),BR=Object.fromEntries(RR.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),VR={...zR,...BR},HR=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>L(()=>import(`./andromeeda-DqSmgxi0.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>L(()=>import(`./aurora-x-Da7Zfvbg.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>L(()=>import(`./ayu-dark-bqYKoqpM.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>L(()=>import(`./ayu-light-C45jTIzZ.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>L(()=>import(`./ayu-mirage-BV_FCTQi.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>L(()=>import(`./catppuccin-frappe-DrL1fUuH.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>L(()=>import(`./catppuccin-latte-C0REgVjl.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>L(()=>import(`./catppuccin-macchiato-ChQpylWO.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>L(()=>import(`./catppuccin-mocha-Dd0JU1T0.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>L(()=>import(`./dark-plus-DIrnwZt9.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>L(()=>import(`./dracula-CAUSusef.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>L(()=>import(`./dracula-soft-cjNkMFza.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>L(()=>import(`./everforest-dark-DBpaSMx1.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>L(()=>import(`./everforest-light-CiGrXwia.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>L(()=>import(`./github-dark-B9ygjgg6.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>L(()=>import(`./github-dark-default-Br2bgYSx.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>L(()=>import(`./github-dark-dimmed-CmtqpPJ-.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>L(()=>import(`./github-dark-high-contrast-fSfmrZcC.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>L(()=>import(`./github-light-BZjUqfZl.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>L(()=>import(`./github-light-default-lIytXXhR.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>L(()=>import(`./github-light-high-contrast-BRrjFb7n.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>L(()=>import(`./gruvbox-dark-hard-M1dj1e6V.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>L(()=>import(`./gruvbox-dark-medium-cqq_ncQu.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>L(()=>import(`./gruvbox-dark-soft-B4QwL2a9.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>L(()=>import(`./gruvbox-light-hard-DLayMKOQ.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>L(()=>import(`./gruvbox-light-medium-D52XgPKf.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>L(()=>import(`./gruvbox-light-soft-Dola3KdD.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>L(()=>import(`./horizon-BKMqttiR.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`dark`,import:(()=>L(()=>import(`./horizon-bright-HNkBlnm5.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>L(()=>import(`./houston-BkBSBSOQ.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>L(()=>import(`./kanagawa-dragon-CxsBnuhV.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>L(()=>import(`./kanagawa-lotus-vHdxDDOS.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>L(()=>import(`./kanagawa-wave-CIkfTKWk.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>L(()=>import(`./laserwave-C0wf_d3o.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>L(()=>import(`./light-plus-oqYyWKEE.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>L(()=>import(`./material-theme-6_W6rQhR.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>L(()=>import(`./material-theme-darker-VPEo3Sem.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>L(()=>import(`./material-theme-lighter-CUhzCcZ9.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>L(()=>import(`./material-theme-ocean-B2JdsaGb.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>L(()=>import(`./material-theme-palenight-DhY-sklA.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>L(()=>import(`./min-dark-D34a_pX7.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>L(()=>import(`./min-light-Cdd4KORE.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>L(()=>import(`./monokai-CDR4sQ2n.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>L(()=>import(`./night-owl-yQJ3-I0I.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>L(()=>import(`./night-owl-light-Bedht9b4.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>L(()=>import(`./nord-BjZ63GNL.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>L(()=>import(`./one-dark-pro-PIx2Diul.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>L(()=>import(`./one-light-BFMEz49S.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>L(()=>import(`./plastic-BFI-Z5Z2.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>L(()=>import(`./poimandres-Cayhd01L.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>L(()=>import(`./red-BC3Ds49b.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>L(()=>import(`./rose-pine-ByWLnVr3.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>L(()=>import(`./rose-pine-dawn-DBmeySrz.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>L(()=>import(`./rose-pine-moon-B9J-N3nK.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>L(()=>import(`./slack-dark-MszIyPZ2.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>L(()=>import(`./slack-ochin-tQ3Q0gE9.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>L(()=>import(`./snazzy-light-9sniMEk5.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>L(()=>import(`./solarized-dark-CdD0Hxzv.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>L(()=>import(`./solarized-light-C-nsEdqF.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>L(()=>import(`./synthwave-84-BxMBwQMS.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>L(()=>import(`./tokyo-night-CTPVdZt9.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>L(()=>import(`./vesper-DJbtqYNr.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>L(()=>import(`./vitesse-black-DbG2gsc0.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>L(()=>import(`./vitesse-dark-B6WV4xXH.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>L(()=>import(`./vitesse-light-DC1pdD02.js`),[]))}].map(e=>[e.id,e.import])),UR=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function WR(){return 2147483648}function GR(){return typeof performance<`u`?performance.now():Date.now()}var KR=(e,t)=>e+(t-e%t)%t;async function qR(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=WR();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,KR(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:GR,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var JR=Object.defineProperty,YR=(e,t,n)=>t in e?JR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,XR=(e,t,n)=>YR(e,typeof t==`symbol`?t:t+``,n),ZR=null;function QR(e){throw new UR(e.UTF8ToString(e.getLastOnigError()))}var $R=class e{constructor(t){XR(this,`utf16Length`),XR(this,`utf8Length`),XR(this,`utf16Value`),XR(this,`utf8Value`),XR(this,`utf16OffsetToUtf8`),XR(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},ez=class e{constructor(t){if(XR(this,`id`,++e.LAST_ID),XR(this,`_onigBinding`),XR(this,`content`),XR(this,`utf16Length`),XR(this,`utf8Length`),XR(this,`utf16OffsetToUtf8`),XR(this,`utf8OffsetToUtf16`),XR(this,`ptr`),!ZR)throw new UR(`Must invoke loadWasm first.`);this._onigBinding=ZR,this.content=t;let n=new $R(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=ZR.omalloc(1e4),e._sharedPtrInUse=!0,ZR.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(ZR)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};XR(ez,`LAST_ID`,0),XR(ez,`_sharedPtr`,0),XR(ez,`_sharedPtrInUse`,!1);var tz=ez,nz=class{constructor(e){if(XR(this,`_onigBinding`),XR(this,`_ptr`),!ZR)throw new UR(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new $R(e[r]);t[r]=i.createString(ZR),n[r]=i.utf8Length}let r=ZR.omalloc(4*e.length);ZR.HEAPU32.set(t,r/4);let i=ZR.omalloc(4*e.length);ZR.HEAPU32.set(n,i/4);let a=ZR.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)ZR.ofree(t[n]);ZR.ofree(i),ZR.ofree(r),a===0&&QR(ZR),this._onigBinding=ZR,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new tz(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function rz(e){return typeof e.instantiator==`function`}function iz(e){return typeof e.default==`function`}function az(e){return e.data!==void 0}function oz(e){return typeof Response<`u`&&e instanceof Response}function sz(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var cz;function lz(e){if(cz)return cz;async function t(){ZR=await qR(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),rz(n)?n=await n.instantiator(t):iz(n)?n=await n.default(t):(az(n)&&(n=n.data),oz(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await dz(n)(t):await fz(n)(t):sz(n)||n instanceof WebAssembly.Module?n=await uz(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await uz(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return cz=t(),cz}function uz(e){return t=>WebAssembly.instantiate(e,t)}function dz(e){return t=>WebAssembly.instantiateStreaming(e,t)}function fz(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function pz(e){return e&&await lz(e),{createScanner(e){return new nz(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new tz(e)}}}var mz=FR({langs:VR,themes:HR,engine:()=>pz(L(()=>import(`./wasm-y20ImDym.js`),[]))}),{codeToHtml:hz,codeToHast:gz,codeToTokens:_z,codeToTokensBase:vz,codeToTokensWithThemes:yz,getSingletonHighlighter:bz,getLastGrammarState:xz}=LR(mz,{guessEmbeddedLanguages:xL});function Sz(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Cz(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var wz=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),Tz=String.raw;function Ez(e,t){if(e==null)throw Error(t??`Value expected`);return e}var Dz=Tz`\[\^?`,Oz=`c.? | C(?:-.?)?|${Tz`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Tz`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Tz`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Tz`o\{[^\}]*\}?`}|${Tz`\d{1,3}`}`,kz=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Az=new RegExp(Tz`
|
|
61
|
-
\\ (?:
|
|
62
|
-
${Oz}
|
|
63
|
-
| [gk]<[^>]*>?
|
|
64
|
-
| [gk]'[^']*'?
|
|
65
|
-
| .
|
|
66
|
-
)
|
|
67
|
-
| \( (?:
|
|
68
|
-
\? (?:
|
|
69
|
-
[:=!>({]
|
|
70
|
-
| <[=!]
|
|
71
|
-
| <[^>]*>
|
|
72
|
-
| '[^']*'
|
|
73
|
-
| ~\|?
|
|
74
|
-
| #(?:[^)\\]|\\.?)*
|
|
75
|
-
| [^:)]*[:)]
|
|
76
|
-
)?
|
|
77
|
-
| \*[^\)]*\)?
|
|
78
|
-
)?
|
|
79
|
-
| (?:${kz.source})+
|
|
80
|
-
| ${Dz}
|
|
81
|
-
| .
|
|
82
|
-
`.replace(/\s+/g,``),`gsu`),jz=new RegExp(Tz`
|
|
83
|
-
\\ (?:
|
|
84
|
-
${Oz}
|
|
85
|
-
| .
|
|
86
|
-
)
|
|
87
|
-
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
88
|
-
| ${Dz}
|
|
89
|
-
| &&
|
|
90
|
-
| .
|
|
91
|
-
`.replace(/\s+/g,``),`gsu`);function Mz(e,t={}){let n={flags:``,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!=`string`)throw Error(`String expected as pattern`);let r=cB(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:n.rules.singleline},o=[],s;for(Az.lastIndex=0;s=Az.exec(e);){let t=Nz(a,e,s[0],Az.lastIndex);t.tokens?o.push(...t.tokens):t.token&&o.push(t.token),t.lastIndex!==void 0&&(Az.lastIndex=t.lastIndex)}let c=[],l=0;o.filter(e=>e.type===`GroupOpen`).forEach(e=>{e.kind===`capturing`?e.number=++l:e.raw===`(`&&c.push(e)}),l||c.forEach((e,t)=>{e.kind=`capturing`,e.number=t+1});let u=l||c.length;return{tokens:o.map(e=>e.type===`EscapedNumber`?uB(e,u):e).flat(),flags:r}}function Nz(e,t,n,r){let[i,a]=n;if(n===`[`||n===`[^`){let e=Pz(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if(i===`\\`){if(`AbBGyYzZ`.includes(a))return{token:Rz(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:Qz(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:zz(n)}}if(a===`K`)return{token:Kz(`keep`,n)};if(a===`N`||a===`R`)return{token:Gz(`newline`,n,{negate:a===`N`})};if(a===`O`)return{token:Gz(`any`,n)};if(a===`X`)return{token:Gz(`text_segment`,n)};let e=Iz(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if(i===`(`){if(a===`*`)return{token:rB(n)};if(n===`(?{`)throw Error(`Unsupported callout "${n}"`);if(n.startsWith(`(?#`)){if(t[r]!==`)`)throw Error(`Unclosed comment group "(?#"`);return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:nB(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n===`(`&&!e.captureGroup||n===`(?:`)return{token:Yz(`group`,n)};if(n===`(?>`)return{token:Yz(`atomic`,n)};if(n===`(?=`||n===`(?!`||n===`(?<=`||n===`(?<!`)return{token:Yz(n[2]===`<`?`lookbehind`:`lookahead`,n,{negate:n.endsWith(`!`)})};if(n===`(`&&e.captureGroup||n.startsWith(`(?<`)&&n.endsWith(`>`)||n.startsWith(`(?'`)&&n.endsWith(`'`))return{token:Yz(`capturing`,n,{...n!==`(`&&{name:n.slice(3,-1)}})};if(n.startsWith(`(?~`)){if(n===`(?~|`)throw Error(`Unsupported absence function kind "${n}"`);return{token:Yz(`absence_repeater`,n)}}throw Error(n===`(?(`?`Unsupported conditional "${n}"`:`Invalid or unsupported group option "${n}"`)}if(n===`)`){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error(`Unmatched ")"`);return{token:Jz(n)}}if(e.getCurrentModX()){if(n===`#`){let e=t.indexOf(`
|
|
92
|
-
`,r);return{lastIndex:e===-1?t.length:e}}if(/^\s$/.test(n)){let e=/\s+/y;return e.lastIndex=r,{lastIndex:e.exec(t)?e.lastIndex:r}}}return n===`.`?{token:Gz(`dot`,n)}:n===`^`||n===`$`?{token:Rz(e.singleline?{"^":Tz`\A`,$:Tz`\Z`}[n]:n,n)}:n===`|`?{token:Lz(n)}:kz.test(n)?{tokens:dB(n)}:{token:Bz(Sz(n),n)}}function Pz(e,t,n){let r=[Wz(t[1]===`^`,t)],i=1,a;for(jz.lastIndex=n;a=jz.exec(e);){let e=a[0];if(e[0]===`[`&&e[1]!==`:`)i++,r.push(Wz(e[1]===`^`,e));else if(e===`]`){if(r.at(-1).type===`CharacterClassOpen`)r.push(Bz(93,e));else if(i--,r.push(Vz(e)),!i)break}else{let t=Fz(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:jz.lastIndex||e.length}}function Fz(e){if(e[0]===`\\`)return Iz(e,{inCharClass:!0});if(e[0]===`[`){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!wz.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return Gz(`posix`,e,{value:t.groups.name,negate:!!t.groups.negate})}return e===`-`?Hz(e):e===`&&`?Uz(e):Bz(Sz(e),e)}function Iz(e,{inCharClass:t}){let n=e[1];if(n===`c`||n===`C`)return tB(e);if(`dDhHsSwW`.includes(n))return aB(e);if(e.startsWith(Tz`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw Error(`Incomplete or invalid Unicode property "${e}"`);return oB(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),n=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),r=new TextEncoder;return[...n].map(e=>{let t=[...r.encode(e)].map(e=>`\\x${e.toString(16)}`).join(``);return Bz(Sz(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n===`u`||n===`x`)return Bz(lB(e),e);if(eB.has(n))return Bz(eB.get(n),e);if(/\d/.test(n))return qz(t,e);if(e===`\\`)throw Error(Tz`Incomplete escape "\"`);if(n===`M`)throw Error(`Unsupported meta "${e}"`);if([...e].length===2)return Bz(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function Lz(e){return{type:`Alternator`,raw:e}}function Rz(e,t){return{type:`Assertion`,kind:e,raw:t}}function zz(e){return{type:`Backreference`,raw:e}}function Bz(e,t){return{type:`Character`,value:e,raw:t}}function Vz(e){return{type:`CharacterClassClose`,raw:e}}function Hz(e){return{type:`CharacterClassHyphen`,raw:e}}function Uz(e){return{type:`CharacterClassIntersector`,raw:e}}function Wz(e,t){return{type:`CharacterClassOpen`,negate:e,raw:t}}function Gz(e,t,n={}){return{type:`CharacterSet`,kind:e,...n,raw:t}}function Kz(e,t,n={}){return e===`keep`?{type:`Directive`,kind:e,raw:t}:{type:`Directive`,kind:e,flags:Ez(n.flags),raw:t}}function qz(e,t){return{type:`EscapedNumber`,inCharClass:e,raw:t}}function Jz(e){return{type:`GroupClose`,raw:e}}function Yz(e,t,n={}){return{type:`GroupOpen`,kind:e,...n,raw:t}}function Xz(e,t,n,r){return{type:`NamedCallout`,kind:e,tag:t,arguments:n,raw:r}}function Zz(e,t,n,r){return{type:`Quantifier`,kind:e,min:t,max:n,raw:r}}function Qz(e){return{type:`Subroutine`,raw:e}}var $z=new Set([`COUNT`,`CMP`,`ERROR`,`FAIL`,`MAX`,`MISMATCH`,`SKIP`,`TOTAL_COUNT`]),eB=new Map([[`a`,7],[`b`,8],[`e`,27],[`f`,12],[`n`,10],[`r`,13],[`t`,9],[`v`,11]]);function tB(e){let t=e[1]===`c`?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return Bz(Sz(t.toUpperCase())-64,e)}function nB(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??=``;let i=(t.getCurrentModX()||n.includes(`x`))&&!r.includes(`x`),a=sB(n),o=sB(r),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(`)`))return t.replaceCurrentModX(i),Kz(`flags`,e,{flags:s});if(e.endsWith(`:`))return t.pushModX(i),t.numOpenGroups++,Yz(`group`,e,{...(a||o)&&{flags:s}});throw Error(`Unexpected flag modifier "${e}"`)}function rB(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:n,tag:r,args:i}=t.groups;if(!n)throw Error(`Invalid named callout "${e}"`);if(r===``)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(`,`).filter(e=>e!==``).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[o,s,c]=a,l=$z.has(n)?n.toLowerCase():`custom`;switch(l){case`fail`:case`mismatch`:case`skip`:if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case`error`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(typeof o==`string`)throw Error(`Named callout argument must be a number "${o}"`);break;case`max`:if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(a.length===2&&(typeof s==`number`||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case`count`:case`total_count`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(a.length===1&&(typeof o==`number`||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case`cmp`:if(a.length!==3)throw Error(`Named callout must have three arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(typeof s==`number`||!/^(?:[<>!=]=|[<>])$/.test(s))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof c==`string`&&!/^[A-Za-z_]\w*$/.test(c))throw Error(`Named callout argument three must be a tag or number "${c}"`);break;case`custom`:throw Error(`Undefined callout name "${n}"`);default:throw Error(`Unexpected named callout kind "${l}"`)}return Xz(l,r??null,i?.split(`,`)??null,e)}function iB(e){let t=null,n,r;if(e[0]===`{`){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,o=1e5;if(+i>o||a&&+a>o)throw Error(`Quantifier value unsupported in Oniguruma`);if(n=+i,r=a===void 0?+i:a===``?1/0:+a,n>r&&(t=`possessive`,[n,r]=[r,n]),e.endsWith(`?`)){if(t===`possessive`)throw Error(`Unsupported possessive interval quantifier chain with "?"`);t=`lazy`}else t||=`greedy`}else n=+(e[0]===`+`),r=e[0]===`?`?1:1/0,t=e[1]===`+`?`possessive`:e[1]===`?`?`lazy`:`greedy`;return Zz(t,n,r,e)}function aB(e){let t=e[1].toLowerCase();return Gz({d:`digit`,h:`hex`,s:`space`,w:`word`}[t],e,{negate:e[1]!==t})}function oB(e){let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Gz(`property`,e,{value:r,negate:t===`P`&&!n||t===`p`&&!!n})}function sB(e){let t={};return e.includes(`i`)&&(t.ignoreCase=!0),e.includes(`m`)&&(t.dotAll=!0),e.includes(`x`)&&(t.extended=!0),Object.keys(t).length?t:null}function cB(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){let r=e[n];if(!`imxDPSWy`.includes(r))throw Error(`Invalid flag "${r}"`);if(r===`y`){if(!/^y{[gw]}/.test(e.slice(n)))throw Error(`Invalid or unspecified flag "y" mode`);t.textSegmentMode=e[n+2]===`g`?`grapheme`:`word`,n+=3;continue}t[{i:`ignoreCase`,m:`dotAll`,x:`extended`,D:`digitIsAscii`,P:`posixIsAscii`,S:`spaceIsAscii`,W:`wordIsAscii`}[r]]=!0}return t}function lB(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);let t=e[2]===`{`?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function uB(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&(i!==`0`&&i.length===1||i[0]!==`0`&&+i<=t))return[zz(n)];let a=[],o=i.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t=o[e],r;if(e===0&&t!==`8`&&t!==`9`){if(r=parseInt(t,8),r>127)throw Error(Tz`Octal encoded byte above 177 unsupported "${n}"`)}else r=Sz(t);a.push(Bz(r,(e===0?`\\`:``)+t))}return a}function dB(e){let t=[],n=new RegExp(kz,`gy`),r;for(;r=n.exec(e);){let e=r[0];if(e[0]===`{`){let r=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(r){let{min:i,max:a}=r.groups;if(+i>+a&&e.endsWith(`?`)){n.lastIndex--,t.push(iB(e.slice(0,-1)));continue}}}t.push(iB(e))}return t}function fB(e,t){if(!Array.isArray(e.body))throw Error(`Expected node with body array`);if(e.body.length!==1)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}function pB(e){return mB.has(e.type)}var mB=new Set([`AbsenceFunction`,`Backreference`,`CapturingGroup`,`Character`,`CharacterClass`,`CharacterSet`,`Group`,`Quantifier`,`Subroutine`]);function hB(e,t={}){let n={flags:``,normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=Mz(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(e,t)=>{let n=r.tokens[a.nextIndex];switch(a.parent=e,a.nextIndex++,n.type){case`Alternator`:return TB();case`Assertion`:return gB(n);case`Backreference`:return _B(n,a);case`Character`:return kB(n.value,{useLastValid:!!t.isCheckingRangeEnd});case`CharacterClassHyphen`:return vB(n,a,t);case`CharacterClassOpen`:return yB(n,a,t);case`CharacterSet`:return bB(n,a);case`Directive`:return NB(n.kind,{flags:n.flags});case`GroupOpen`:return xB(n,a,t);case`NamedCallout`:return LB(n.kind,n.tag,n.arguments);case`Quantifier`:return SB(n,a);case`Subroutine`:return CB(n,a);default:throw Error(`Unexpected token type "${n.type}"`)}},a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},o=BB(PB(r.flags)),s=o.body[0];for(;a.nextIndex<r.tokens.length;){let e=i(s,{});e.type===`Alternative`?(o.body.push(e),s=e):s.body.push(e)}let{capturingGroups:c,hasNumberedRef:l,namedGroupsByName:u,subroutines:d}=a;if(l&&u.size&&!n.rules.captureGroup)throw Error(`Numbered backref/subroutine not allowed when using named capture`);for(let{ref:e}of d)if(typeof e==`number`){if(e>c.length)throw Error(`Subroutine uses a group number that's not defined`);e&&(c[e-1].isSubroutined=!0)}else if(u.has(e)){if(u.get(e).length>1)throw Error(Tz`Subroutine uses a duplicate group name "\g<${e}>"`);u.get(e)[0].isSubroutined=!0}else throw Error(Tz`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function gB({kind:e}){return EB(Ez({"^":`line_start`,$:`line_end`,"\\A":`string_start`,"\\b":`word_boundary`,"\\B":`word_boundary`,"\\G":`search_start`,"\\y":`text_segment_boundary`,"\\Y":`text_segment_boundary`,"\\z":`string_end`,"\\Z":`string_end_newline`}[e],`Unexpected assertion kind "${e}"`),{negate:e===Tz`\B`||e===Tz`\Y`})}function _B({raw:e},t){let n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(n,r=!1)=>{let i=t.capturingGroups.length,a=!1;if(n>i)if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,DB(r?i+1-n:n,{orphan:a})};if(n){let n=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw Error(`Group name not defined to the left "${e}"`);return DB(r)}return i(+r)}function vB(e,t,n){let{tokens:r,walk:i}=t,a=t.parent,o=a.body.at(-1),s=r[t.nextIndex];if(!n.isCheckingRangeEnd&&o&&o.type!==`CharacterClass`&&o.type!==`CharacterClassRange`&&s&&s.type!==`CharacterClassOpen`&&s.type!==`CharacterClassClose`&&s.type!==`CharacterClassIntersector`){let e=i(a,{...n,isCheckingRangeEnd:!0});if(o.type===`Character`&&e.type===`Character`)return a.body.pop(),jB(o,e);throw Error(`Invalid character class range`)}return kB(Sz(`-`))}function yB({negate:e},t,n){let{tokens:r,walk:i}=t,a=r[t.nextIndex],o=[AB()],s=ZB(a);for(;s.type!==`CharacterClassClose`;){if(s.type===`CharacterClassIntersector`)o.push(AB()),t.nextIndex++;else{let e=o.at(-1);e.body.push(i(e,n))}s=ZB(r[t.nextIndex],a)}let c=AB({negate:e});return o.length===1?c.body=o[0].body:(c.kind=`intersection`,c.body=o.map(e=>e.body.length===1?e.body[0]:e)),t.nextIndex++,c}function bB({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=r;if(e===`property`){let r=XB(n);if(wz.has(r)&&!o?.has(r))e=`posix`,n=r;else return HB(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o})}return e===`posix`?RB(n,{negate:t}):MB(e,{negate:t})}function xB(e,t,n){let{tokens:r,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:o,walk:s}=t,c=UB(e),l=c.type===`AbsenceFunction`,u=qB(c),d=u&&c.negate;if(c.type===`CapturingGroup`&&(i.push(c),c.name&&Cz(a,c.name,[]).push(c)),l&&n.isInAbsenceFunction)throw Error(`Nested absence function not supported by Oniguruma`);let f=QB(r[t.nextIndex]);for(;f.type!==`GroupClose`;){if(f.type===`Alternator`)c.body.push(TB()),t.nextIndex++;else{let e=c.body.at(-1),t=s(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||l,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||d});if(e.body.push(t),(u||n.isInLookbehind)&&!o){let e=`Lookbehind includes a pattern not allowed by Oniguruma`;if(d||n.isInNegLookbehind){if(KB(t)||t.type===`CapturingGroup`)throw Error(e)}else if(KB(t)||qB(t)&&t.negate)throw Error(e)}}f=QB(r[t.nextIndex])}return t.nextIndex++,c}function SB({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!pB(a))throw Error(`Quantifier requires a repeatable token`);let o=zB(e,t,n,a);return i.body.pop(),o}function CB({raw:e},t){let{capturingGroups:n,subroutines:r}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,i={"":e,"+":r+e,"-":r+1-e}[a.groups.sign],i<1)throw Error(`Invalid subroutine number`)}else i===`0`&&(i=0);let o=VB(i);return r.push(o),o}function wB(e,t){if(e!==`repeater`)throw Error(`Unexpected absence function kind "${e}"`);return{type:`AbsenceFunction`,kind:e,body:WB(t?.body)}}function TB(e){return{type:`Alternative`,body:GB(e?.body)}}function EB(e,t){let n={type:`Assertion`,kind:e};return(e===`word_boundary`||e===`text_segment_boundary`)&&(n.negate=!!t?.negate),n}function DB(e,t){let n=!!t?.orphan;return{type:`Backreference`,ref:e,...n&&{orphan:n}}}function OB(e,t){let n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!JB(n.name))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:`CapturingGroup`,number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:WB(t?.body)}}function kB(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else throw Error(e>1310719?`Invalid code point out of range "\\x{${t}}"`:`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:`Character`,value:e}}function AB(e){let t={kind:`union`,negate:!1,...e};return{type:`CharacterClass`,kind:t.kind,negate:t.negate,body:GB(e?.body)}}function jB(e,t){if(t.value<e.value)throw Error(`Character class range out of order`);return{type:`CharacterClassRange`,min:e,max:t}}function MB(e,t){let n=!!t?.negate,r={type:`CharacterSet`,kind:e};return(e===`digit`||e===`hex`||e===`newline`||e===`space`||e===`word`)&&(r.negate=n),(e===`text_segment`||e===`newline`&&!n)&&(r.variableLength=!0),r}function NB(e,t={}){if(e===`keep`)return{type:`Directive`,kind:e};if(e===`flags`)return{type:`Directive`,kind:e,flags:Ez(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}function PB(e){return{type:`Flags`,...e}}function FB(e){let t=e?.atomic,n=e?.flags;if(t&&n)throw Error(`Atomic group cannot have flags`);return{type:`Group`,...t&&{atomic:t},...n&&{flags:n},body:WB(e?.body)}}function IB(e){let t={behind:!1,negate:!1,...e};return{type:`LookaroundAssertion`,kind:t.behind?`lookbehind`:`lookahead`,negate:t.negate,body:WB(e?.body)}}function LB(e,t,n){return{type:`NamedCallout`,kind:e,tag:t,arguments:n}}function RB(e,t){let n=!!t?.negate;if(!wz.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:`CharacterSet`,kind:`posix`,value:e,negate:n}}function zB(e,t,n,r){if(t>n)throw Error(`Invalid reversed quantifier range`);return{type:`Quantifier`,kind:e,min:t,max:n,body:r}}function BB(e,t){return{type:`Regex`,body:WB(t?.body),flags:e}}function VB(e){return{type:`Subroutine`,ref:e}}function HB(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},r=n.unicodePropertyMap?.get(XB(e));if(!r){if(n.normalizeUnknownPropertyNames)r=YB(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(Tz`Invalid Unicode property "\p{${e}}"`)}return{type:`CharacterSet`,kind:`property`,value:r??e,negate:n.negate}}function UB({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case`absence_repeater`:return wB(`repeater`);case`atomic`:return FB({atomic:!0});case`capturing`:return OB(i,{name:n});case`group`:return FB({flags:e});case`lookahead`:case`lookbehind`:return IB({behind:t===`lookbehind`,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}function WB(e){if(e===void 0)e=[TB()];else if(!Array.isArray(e)||!e.length||!e.every(e=>e.type===`Alternative`))throw Error(`Invalid body; expected array of one or more Alternative nodes`);return e}function GB(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error(`Invalid body; expected array of nodes`);return e}function KB(e){return e.type===`LookaroundAssertion`&&e.kind===`lookahead`}function qB(e){return e.type===`LookaroundAssertion`&&e.kind===`lookbehind`}function JB(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function YB(e){return e.trim().replace(/[- _]+/g,`_`).replace(/[A-Z][a-z]+(?=[A-Z])/g,`$&_`).replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function XB(e){return e.replace(/[- _]+/g,``).toLowerCase()}function ZB(e,t){return Ez(e,`${t?.type===`Character`&&t.value===93?`Empty`:`Unclosed`} character class`)}function QB(e){return Ez(e,`Unclosed group`)}function $B(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){let r=i(e[n],t,n,e);n=Math.max(-1,n+r)}}function i(a,o=null,s=null,c=null){let l=0,u=!1,d={node:a,parent:o,key:s,container:c,root:e,remove(){eV(c).splice(Math.max(0,tV(s)+l),1),l--,u=!0},removeAllNextSiblings(){return eV(c).splice(tV(s)+1)},removeAllPrevSiblings(){let e=tV(s)+l;return l-=e,eV(c).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;c?c[Math.max(0,tV(s)+l)]=e:Ez(o,`Can't replace root node`)[s]=e,n&&i(e,o,s,c),u=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(eV(c).splice(Math.max(0,tV(s)+l),1,...e),l+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],o,tV(s)+n+t,c)}u=!0},skip(){u=!0}},{type:f}=a,p=t[`*`],m=t[f],h=typeof p==`function`?p:p?.enter,g=typeof m==`function`?m:m?.enter;if(h?.(d,n),g?.(d,n),!u)switch(f){case`AbsenceFunction`:case`CapturingGroup`:case`Group`:r(a.body,a);break;case`Alternative`:case`CharacterClass`:r(a.body,a);break;case`Assertion`:case`Backreference`:case`Character`:case`CharacterSet`:case`Directive`:case`Flags`:case`NamedCallout`:case`Subroutine`:break;case`CharacterClassRange`:i(a.min,a,`min`),i(a.max,a,`max`);break;case`LookaroundAssertion`:r(a.body,a);break;case`Quantifier`:i(a.body,a,`body`);break;case`Regex`:r(a.body,a),i(a.flags,a,`flags`);break;default:throw Error(`Unexpected node type "${f}"`)}return m?.exit?.(d,n),p?.exit?.(d,n),l}return i(e),e}function eV(e){if(!Array.isArray(e))throw Error(`Container expected`);return e}function tV(e){if(typeof e!=`number`)throw Error(`Numeric key expected`);return e}var nV=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function rV(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function iV(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}var aV=Object.freeze({DEFAULT:`DEFAULT`,CHAR_CLASS:`CHAR_CLASS`});function oV(e,t,n,r){let i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,`gsu`),a=[!1],o=0,s=``;for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===aV.DEFAULT==!o)){n instanceof Function?s+=n(t,{context:o?aV.CHAR_CLASS:aV.DEFAULT,negated:a[a.length-1]}):s+=n;continue}e[0]===`[`?(o++,a.push(e[1]===`^`)):e===`]`&&o&&(o--,a.pop()),s+=e}return s}function sV(e,t,n,r){oV(e,t,n,r)}function cV(e,t,n=0,r){if(!new RegExp(t,`su`).test(e))return null;let i=RegExp(`${t}|(?<$skip>\\\\?.)`,`gsu`);i.lastIndex=n;let a=0,o;for(;o=i.exec(e);){let{0:e,groups:{$skip:t}}=o;if(!t&&(!r||r===aV.DEFAULT==!a))return o;e===`[`?a++:e===`]`&&a&&a--,i.lastIndex==o.index&&i.lastIndex++}return null}function lV(e,t,n){return!!cV(e,t,0,n)}function uV(e,t){let n=/\\?./gsu;n.lastIndex=t;let r=e.length,i=0,a=1,o;for(;o=n.exec(e);){let[e]=o;if(e===`[`)i++;else if(i)e===`]`&&i--;else if(e===`(`)a++;else if(e===`)`&&(a--,!a)){r=o.index;break}}return e.slice(t,r)}var dV=new RegExp(String.raw`(?<noncapturingStart>${nV})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,`gsu`);function fV(e,t){let n=t?.hiddenCaptures??[],r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};let i=[0],a=[],o=0,s=0,c=NaN,l;do{l=!1;let t=0,u=0,d=!1,f;for(dV.lastIndex=Number.isNaN(c)?0:c+7;f=dV.exec(e);){let{0:p,index:m,groups:{capturingStart:h,noncapturingStart:g}}=f;if(p===`[`)t++;else if(t)p===`]`&&t--;else if(p===`(?>`&&!d)c=m,d=!0;else if(d&&g)u++;else if(h)d?u++:(o++,i.push(o+s));else if(p===`)`&&d){if(!u){s++;let t=o+s;if(e=`${e.slice(0,c)}(?:(?=(${e.slice(c+3,m)}))<$$${t}>)${e.slice(m+1)}`,l=!0,a.push(t),rV(n,t),r.size){let e=new Map;r.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),r=e}break}u--}}}while(l);return n.push(...a),e=oV(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>i.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${i[n]}`}return`\\${n}`},aV.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}var pV=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,mV=new RegExp(String.raw`
|
|
93
|
-
\\(?: \d+
|
|
94
|
-
| c[A-Za-z]
|
|
95
|
-
| [gk]<[^>]+>
|
|
96
|
-
| [pPu]\{[^\}]+\}
|
|
97
|
-
| u[A-Fa-f\d]{4}
|
|
98
|
-
| x[A-Fa-f\d]{2}
|
|
99
|
-
)
|
|
100
|
-
| \((?: \? (?: [:=!>]
|
|
101
|
-
| <(?:[=!]|[^>]+>)
|
|
102
|
-
| [A-Za-z\-]+:
|
|
103
|
-
| \(DEFINE\)
|
|
104
|
-
))?
|
|
105
|
-
| (?<qBase>${pV})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
106
|
-
| \\?.
|
|
107
|
-
`.replace(/\s+/g,``),`gsu`);function hV(e){if(!RegExp(`${pV}\\+`).test(e))return{pattern:e};let t=[],n=null,r=null,i=``,a=0,o;for(mV.lastIndex=0;o=mV.exec(e);){let{0:s,index:c,groups:{qBase:l,qMod:u,invalidQ:d}}=o;if(s===`[`)a||(r=c),a++;else if(s===`]`)a?a--:r=null;else if(!a)if(u===`+`&&i&&!i.startsWith(`(`)){if(d)throw Error(`Invalid quantifier "${s}"`);let t=-1;if(/^\{\d+\}$/.test(l))e=iV(e,c+l.length,u,``);else{if(i===`)`||i===`]`){let t=i===`)`?n:r;if(t===null)throw Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,t)}(?>${e.slice(t,c)}${l})${e.slice(c+s.length)}`}else e=`${e.slice(0,c-i.length)}(?>${i}${l})${e.slice(c+s.length)}`;t+=4}mV.lastIndex+=t}else s[0]===`(`?t.push(c):s===`)`&&(n=t.length?t.pop():null);i=s}return{pattern:e}}var gV=String.raw,_V=gV`\(\?R=(?<rDepth>[^\)]+)\)|${gV`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`,vV=gV`\(\?<(?![=!])(?<captureName>[^>]+)>`,yV=gV`${vV}|(?<unnamed>\()(?!\?)`,bV=new RegExp(gV`${vV}|${_V}|\(\?|\\?.`,`gsu`),xV=`Cannot use multiple overlapping recursions`;function SV(e,t){let{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:`plugin`,...t},i=t?.captureTransfers??new Map;if(!new RegExp(_V,`su`).test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if(r===`plugin`&&lV(e,gV`\(\?\(DEFINE\)`,aV.DEFAULT))throw Error(`DEFINE groups cannot be used with recursion`);let a=[],o=lV(e,gV`\\[1-9]`,aV.DEFAULT),s=new Map,c=[],l=!1,u=0,d=0,f;for(bV.lastIndex=0;f=bV.exec(e);){let{0:t,groups:{captureName:p,rDepth:m,gRNameOrNum:h,gRDepth:g}}=f;if(t===`[`)u++;else if(u)t===`]`&&u--;else if(m){if(CV(m),l)throw Error(xV);if(o)throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with global recursion`);let t=e.slice(0,f.index),s=e.slice(bV.lastIndex);if(lV(s,_V,aV.DEFAULT))throw Error(xV);let c=m-1;e=wV(t,s,c,!1,n,a,d),i=DV(i,t,c,a.length,0,d);break}else if(h){CV(g);let u=!1;for(let e of c)if(e.name===h||e.num===+h){if(u=!0,e.hasRecursedWithin)throw Error(xV);break}if(!u)throw Error(gV`Recursive \g cannot be used outside the referenced group "${r===`external`?h:gV`\g<${h}&R=${g}>`}"`);let p=s.get(h),m=uV(e,p);if(o&&lV(m,gV`${vV}|\((?!\?)`,aV.DEFAULT))throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with recursion of capturing groups`);let _=e.slice(p,f.index),v=m.slice(_.length+t.length),y=a.length,b=g-1,x=wV(_,v,b,!0,n,a,d);i=DV(i,_,b,a.length-y,y,d),e=`${e.slice(0,p)}${x}${e.slice(p+m.length)}`,bV.lastIndex+=x.length-t.length-_.length-v.length,c.forEach(e=>e.hasRecursedWithin=!0),l=!0}else if(p)d++,s.set(String(d),bV.lastIndex),s.set(p,bV.lastIndex),c.push({num:d,name:p});else if(t[0]===`(`){let e=t===`(`;e&&(d++,s.set(String(d),bV.lastIndex)),c.push(e?{num:d}:{})}else t===`)`&&c.pop()}return n.push(...a),{pattern:e,captureTransfers:i,hiddenCaptures:n}}function CV(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e=+e,e<2||e>100))throw Error(t)}function wV(e,t,n,r,i,a,o){let s=new Set;r&&sV(e+t,vV,({groups:{captureName:e}})=>{s.add(e)},aV.DEFAULT);let c=[n,r?s:null,i,a,o];return`${e}${TV(`(?:${e}`,`forward`,...c)}(?:)${TV(`${t})`,`backward`,...c)}${t}`}function TV(e,t,n,r,i,a,o){let s=e=>t===`forward`?e+2:n-e+2-1,c=``;for(let t=0;t<n;t++){let n=s(t);c+=oV(e,gV`${yV}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:s,backref:c}})=>{if(c&&r&&!r.has(c))return e;let l=`_$${n}`;if(s||t){let n=o+a.length+1;return a.push(n),EV(i,n),s?e:`(?<${t}${l}>`}return gV`\k<${c}${l}>`},aV.DEFAULT)}return c}function EV(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function DV(e,t,n,r,i,a){if(e.size&&r){let o=0;sV(t,yV,()=>o++,aV.DEFAULT);let s=a-o+i,c=new Map;return e.forEach((e,t)=>{let i=(r-o*n)/n,a=o*n,l=t>s+o?t+r:t,u=[];for(let t of e)if(t<=s)u.push(t);else if(t>s+o+i)u.push(t+r);else if(t<=s+o)for(let e=0;e<=n;e++)u.push(t+o*e);else for(let e=0;e<=n;e++)u.push(t+a+i*e);c.set(l,u)}),c}return e}var OV=String.fromCodePoint,kV=String.raw,AV={flagGroups:!0,unicodeSets:!0};AV.bugFlagVLiteralHyphenIsRange=AV.unicodeSets?(()=>{try{new RegExp(kV`[\d\-a]`,`v`)}catch{return!0}return!1})():!1,AV.bugNestedClassIgnoresNegation=AV.unicodeSets&&RegExp(`[[^a]]`,`v`).test(`a`);function jV(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function MV(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function NV(e,t){return FV[e]>=FV[t]}function PV(e,t){if(e==null)throw Error(t??`Value expected`);return e}var FV={ES2025:2025,ES2024:2024,ES2018:2018},IV={auto:`auto`,ES2025:`ES2025`,ES2024:`ES2024`,ES2018:`ES2018`};function LV(e={}){if({}.toString.call(e)!==`[object Object]`)throw Error(`Unexpected options`);if(e.target!==void 0&&!IV[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:`default`,avoidSubclass:!1,flags:``,global:!1,hasIndices:!1,lazyCompileLength:1/0,target:`auto`,verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target===`auto`&&(t.target=AV.flagGroups?`ES2025`:AV.unicodeSets?`ES2024`:`ES2018`),t}var RV=`[ -\r ]`,zV=new Set([OV(304),OV(305)]),BV=kV`[\p{L}\p{M}\p{N}\p{Pc}]`;function VV(e){if(zV.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=GV.get(n),a=UV.get(n),o=WV.get(n);return[...r].length===1&&t.add(r),o&&t.add(o),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var HV=new Map(`C Other
|
|
108
|
-
Cc Control cntrl
|
|
109
|
-
Cf Format
|
|
110
|
-
Cn Unassigned
|
|
111
|
-
Co Private_Use
|
|
112
|
-
Cs Surrogate
|
|
113
|
-
L Letter
|
|
114
|
-
LC Cased_Letter
|
|
115
|
-
Ll Lowercase_Letter
|
|
116
|
-
Lm Modifier_Letter
|
|
117
|
-
Lo Other_Letter
|
|
118
|
-
Lt Titlecase_Letter
|
|
119
|
-
Lu Uppercase_Letter
|
|
120
|
-
M Mark Combining_Mark
|
|
121
|
-
Mc Spacing_Mark
|
|
122
|
-
Me Enclosing_Mark
|
|
123
|
-
Mn Nonspacing_Mark
|
|
124
|
-
N Number
|
|
125
|
-
Nd Decimal_Number digit
|
|
126
|
-
Nl Letter_Number
|
|
127
|
-
No Other_Number
|
|
128
|
-
P Punctuation punct
|
|
129
|
-
Pc Connector_Punctuation
|
|
130
|
-
Pd Dash_Punctuation
|
|
131
|
-
Pe Close_Punctuation
|
|
132
|
-
Pf Final_Punctuation
|
|
133
|
-
Pi Initial_Punctuation
|
|
134
|
-
Po Other_Punctuation
|
|
135
|
-
Ps Open_Punctuation
|
|
136
|
-
S Symbol
|
|
137
|
-
Sc Currency_Symbol
|
|
138
|
-
Sk Modifier_Symbol
|
|
139
|
-
Sm Math_Symbol
|
|
140
|
-
So Other_Symbol
|
|
141
|
-
Z Separator
|
|
142
|
-
Zl Line_Separator
|
|
143
|
-
Zp Paragraph_Separator
|
|
144
|
-
Zs Space_Separator
|
|
145
|
-
ASCII
|
|
146
|
-
ASCII_Hex_Digit AHex
|
|
147
|
-
Alphabetic Alpha
|
|
148
|
-
Any
|
|
149
|
-
Assigned
|
|
150
|
-
Bidi_Control Bidi_C
|
|
151
|
-
Bidi_Mirrored Bidi_M
|
|
152
|
-
Case_Ignorable CI
|
|
153
|
-
Cased
|
|
154
|
-
Changes_When_Casefolded CWCF
|
|
155
|
-
Changes_When_Casemapped CWCM
|
|
156
|
-
Changes_When_Lowercased CWL
|
|
157
|
-
Changes_When_NFKC_Casefolded CWKCF
|
|
158
|
-
Changes_When_Titlecased CWT
|
|
159
|
-
Changes_When_Uppercased CWU
|
|
160
|
-
Dash
|
|
161
|
-
Default_Ignorable_Code_Point DI
|
|
162
|
-
Deprecated Dep
|
|
163
|
-
Diacritic Dia
|
|
164
|
-
Emoji
|
|
165
|
-
Emoji_Component EComp
|
|
166
|
-
Emoji_Modifier EMod
|
|
167
|
-
Emoji_Modifier_Base EBase
|
|
168
|
-
Emoji_Presentation EPres
|
|
169
|
-
Extended_Pictographic ExtPict
|
|
170
|
-
Extender Ext
|
|
171
|
-
Grapheme_Base Gr_Base
|
|
172
|
-
Grapheme_Extend Gr_Ext
|
|
173
|
-
Hex_Digit Hex
|
|
174
|
-
IDS_Binary_Operator IDSB
|
|
175
|
-
IDS_Trinary_Operator IDST
|
|
176
|
-
ID_Continue IDC
|
|
177
|
-
ID_Start IDS
|
|
178
|
-
Ideographic Ideo
|
|
179
|
-
Join_Control Join_C
|
|
180
|
-
Logical_Order_Exception LOE
|
|
181
|
-
Lowercase Lower
|
|
182
|
-
Math
|
|
183
|
-
Noncharacter_Code_Point NChar
|
|
184
|
-
Pattern_Syntax Pat_Syn
|
|
185
|
-
Pattern_White_Space Pat_WS
|
|
186
|
-
Quotation_Mark QMark
|
|
187
|
-
Radical
|
|
188
|
-
Regional_Indicator RI
|
|
189
|
-
Sentence_Terminal STerm
|
|
190
|
-
Soft_Dotted SD
|
|
191
|
-
Terminal_Punctuation Term
|
|
192
|
-
Unified_Ideograph UIdeo
|
|
193
|
-
Uppercase Upper
|
|
194
|
-
Variation_Selector VS
|
|
195
|
-
White_Space space
|
|
196
|
-
XID_Continue XIDC
|
|
197
|
-
XID_Start XIDS`.split(/\s/).map(e=>[XB(e),e])),UV=new Map([[`s`,OV(383)],[OV(383),`s`]]),WV=new Map([[OV(223),OV(7838)],[OV(107),OV(8490)],[OV(229),OV(8491)],[OV(969),OV(8486)]]),GV=new Map([JV(453),JV(456),JV(459),JV(498),...YV(8072,8079),...YV(8088,8095),...YV(8104,8111),JV(8124),JV(8140),JV(8188)]),KV=new Map([[`alnum`,kV`[\p{Alpha}\p{Nd}]`],[`alpha`,kV`\p{Alpha}`],[`ascii`,kV`\p{ASCII}`],[`blank`,kV`[\p{Zs}\t]`],[`cntrl`,kV`\p{Cc}`],[`digit`,kV`\p{Nd}`],[`graph`,kV`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],[`lower`,kV`\p{Lower}`],[`print`,kV`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],[`punct`,kV`[\p{P}\p{S}]`],[`space`,kV`\p{space}`],[`upper`,kV`\p{Upper}`],[`word`,kV`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],[`xdigit`,kV`\p{AHex}`]]);function qV(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n}function JV(e){let t=OV(e);return[t.toLowerCase(),t]}function YV(e,t){return qV(e,t).map(e=>JV(e))}var XV=new Set([`Lower`,`Lowercase`,`Upper`,`Uppercase`,`Ll`,`Lowercase_Letter`,`Lt`,`Titlecase_Letter`,`Lu`,`Uppercase_Letter`]);function ZV(e,t){let n={accuracy:`default`,asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:`ES2025`,...t};tH(e);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:NV(n.bestEffortTarget,`ES2024`),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};$B(e,QV,r);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return $B(e,$V,a),$B(e,eH,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}var QV={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if(i===`repeater`){let e=FB();e.body[0].body.push(IB({negate:!0,body:r}),HB(`Any`));let i=FB();i.body[0].body.push(zB(`greedy`,0,1/0,e)),n(bH(i,t),{traverse:!0})}else throw Error(`Unsupported absence function "(?~|"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>e.kind===`flags`);for(let e=n+1;e<t.body.length;e++){let n=t.body[e];MV(r,n,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=cH(t.get(e));if(n){let t=FB({flags:n});t.body[0].body=e.body,e.body=[bH(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},s){let{kind:c,negate:l}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:f,wordIsAscii:p}=s;if(c===`text_segment_boundary`)throw Error(`Unsupported text segment boundary "\\${l?`Y`:`y`}"`);if(c===`line_end`)o(bH(IB({body:[TB({body:[EB(`string_end`)]}),TB({body:[kB(10)]})]}),t));else if(c===`line_start`)o(bH(_H(kV`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c===`search_start`)if(f.has(e))i.flags.sticky=!0,a();else{let e=r[n-1];if(e&&mH(e))o(bH(IB({negate:!0}),t));else if(d)throw Error(kV`Uses "\G" in a way that requires a subclass`);else o(yH(EB(`string_start`),t)),s.strategy=`clip_search`}else if(!(c===`string_end`||c===`string_start`))if(c===`string_end_newline`)o(bH(_H(kV`(?=\n?\z)`),t));else if(c===`word_boundary`){if(!p&&!u){let e=`(?:(?<=${BV})(?!${BV})|(?<!${BV})(?=${BV}))`,n=`(?:(?<=${BV})(?=${BV})|(?<!${BV})(?!${BV}))`;o(bH(_H(l?n:e),t))}}else throw Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!gH(n)&&(n=sH(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!gH(r)&&(r=sH(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===`intersection`&&n(bH(AB({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:c,negate:l,value:u}=e;if(a&&(c===`digit`||u===`digit`)){n(yH(MB(`digit`,{negate:l}),t));return}if(o&&(c===`space`||u===`space`)){n(bH(vH(_H(RV),l),t));return}if(s&&(c===`word`||u===`word`)){n(yH(MB(`word`,{negate:l}),t));return}if(c===`any`)n(yH(HB(`Any`),t));else if(c===`digit`)n(yH(HB(`Nd`,{negate:l}),t));else if(c!==`dot`)if(c===`text_segment`){if(r===`strict`)throw Error(kV`Use of "\X" requires non-strict accuracy`);let e=`\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?`,a=kV`\p{RI}{2}|${e}(?:\u200D${e})*`;n(bH(_H(kV`(?>\r\n|${i?kV`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c===`hex`)n(yH(HB(`AHex`,{negate:l}),t));else if(c===`newline`)n(bH(_H(l?`[^
|
|
198
|
-
]`:`(?>\r
|
|
199
|
-
?|[
|
|
200
|
-
\v\f
\u2028\u2029])`),t));else if(c===`posix`)if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${OV(e.codePointAt(0)-1)}${OV(e.codePointAt(2)+1)}-\u{10FFFF}`),n(bH(_H(`[${e}]`),t))}else n(bH(vH(_H(KV.get(u)),l),t));else if(c===`property`)HV.has(XB(u))||(e.key=`sc`);else if(c===`space`)n(yH(HB(`space`,{negate:l}),t));else if(c===`word`)n(bH(vH(_H(BV),l),t));else throw Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`)if(!c.enable&&!c.disable)r();else{let e=FB({flags:c});e.body[0].body=o(),i(bH(e,t),{traverse:!0})}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&fB(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(kV`Uses "\K" in a way that's unsupported`);let o=IB({behind:!0});o.body[0].body=a(),i(bH(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n(bH(IB({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=FB();t.body[0].body.push(e.body),e.body=bH(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=dH(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(kV`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!gH(n)&&(n=sH(n,t),e.ref=n)}},$V={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=yH(aH(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&MV(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=MV(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=jV(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&!(n.type===`CapturingGroup`&&(n.name===a||n.number===a)););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?aH(0):iH(o,r.groupOriginByCopy,null),l=c;if(!s){let e=cH(oH(o,e=>e.type===`Group`&&!!e.flags)),t=e?jV(r.globalFlags,e):r.globalFlags;nH(t,r.currentFlags)||(l=FB({flags:lH(t)}),l.body[0].body.push(c))}n(bH(l,t),{traverse:!s})}},eH={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>rH(t,e));i.length?i.length>1?n(bH(FB({atomic:!0,body:i.reverse().map(e=>TB({body:[DB(e.number)]}))}),t)):e.ref=i[0].number:n(bH(IB({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=OB();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function tH(e){$B(e,{"*"({node:e,parent:t}){e.parent=t}})}function nH(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function rH(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=uH(n.parent);for(let r of t){if(r===n)break;if(r===e||fH(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function iH(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=iH(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function aH(e){let t=VB(e);return t.isRecursive=!0,t}function oH(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function sH(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function cH(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function lH({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function uH(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function dH(e){let t=e.find(e=>e.kind===`search_start`||hH(e,{negate:!1})||!pH(e));if(!t)return null;if(t.kind===`search_start`)return t;if(t.type===`LookaroundAssertion`)return t.body[0].body[0];if(t.type===`CapturingGroup`||t.type===`Group`){let e=[];for(let n of t.body){let t=dH(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function fH(e,t){let n=uH(e)??[];for(let e of n)if(e===t||fH(e,t))return!0;return!1}function pH({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function mH(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function hH(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&fB(e.body[0],{type:`Assertion`,kind:`search_start`})}function gH(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function _H(e,t){let n=hB(e,{...t,unicodePropertyMap:HV}).body;return n.length>1||n[0].body.length>1?FB({body:n}):n[0].body[0]}function vH(e,t){return e.negate=t,e}function yH(e,t){return e.parent=t,e}function bH(e,t){return tH(e),e.parent=t,e}function xH(e,t){let n=LV(t),r=NV(n.target,`ES2024`),i=NV(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];$B(e,SH,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||o)&&!s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,PV(CH[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&MV(f._captureTransfers,e.transferTo,[]).push(t)}),f}var SH={"*":{enter({node:e},t){if(FH(e)){let n=t.getCurrentModI();t.pushModI(e.flags?jV({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){FH(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){kH(OV(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),AH(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&XV.has(e.value)&&t.setHasCasedChar()}},CH={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?kV`\B`:kV`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=OV(e),r=jH(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&kH(n)){let e=VV(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);AV.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(LH)&&(o=[kB(45),...o.filter(e=>!LH(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||AV.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=FB(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=TB({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(AV.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=jH(n,i),o=jH(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&MH(AH(e)).forEach(e=>{s.add(Array.isArray(e)?`${jH(e[0],i)}-${jH(e[1],i)}`:jH(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:kV`[^\n]`;if(e===`digit`)return t?kV`\D`:kV`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&XV.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?kV`\P`:kV`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?kV`\W`:kV`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?`i`:``)+(e.dotAll?`s`:``)+(e.sticky?`y`:``)},Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=jV(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${NH(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+PH(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:kV`\g<${t}&R=${r}>`}},wH=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),TH=new Set([`-`,`\\`,`]`,`^`,`[`]),EH=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),DH=new Map([[9,kV`\t`],[10,kV`\n`],[11,kV`\v`],[12,kV`\f`],[13,kV`\r`],[8232,kV`\u2028`],[8233,kV`\u2029`],[65279,kV`\uFEFF`]]),OH=/^\p{Cased}$/u;function kH(e){return OH.test(e)}function AH(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=OV(e);if(!kH(t))continue;let o=VV(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function jH(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(DH.has(e))return DH.get(e);if(e<32||e>126&&e<160||e>262143||t&&IH(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?EH:TH:wH,a=OV(e);return(i.has(a)?`\\`:``)+a}function MH(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function NH(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function PH({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function FH({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function IH(e){return e>47&&e<58}function LH({type:e,value:t}){return e===`Character`&&t===45}var RH=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=BH(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(zH(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=VH(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function zH(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function BH(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)MV(n,t,{}).transferTo=e;return n}function VH(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function HH(e,t){let n=UH(e,t);return n.options?new RH(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function UH(e,t){let n=LV(t),r=ZV(hB(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:HV}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=xH(r,n),a=SV(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=fV(hV(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}var WH=4294967295,GH=class{constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}})}regexps;findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=[];function a(e,t,n=0){return{index:e,captureIndices:t.indices.map(e=>e==null?{start:WH,end:WH,length:0}:{start:e[0]+n,end:e[1]+n,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{n.lastIndex=t;let o=n.exec(r);if(!o)continue;if(o.index===t)return a(e,o,0);i.push([e,o,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(i.length){let e=Math.min(...i.map(e=>e[1].index));for(let[t,n,r]of i)if(n.index===e)return a(t,n,r)}return null}};function KH(e,t){return HH(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function qH(e={}){let t=Object.assign({target:`auto`,cache:new Map},e);return t.regexConstructor||=e=>KH(e,{target:t.target}),{createScanner(e){return new GH(e,t)},createString(e){return{content:e}}}}async function JH(e){if(sP())throw Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=rP.get(e);if(t!=null)return t;try{let t=VR[e];if(t==null)throw Error(`resolveLanguage: "${e}" not found in bundled languages`);let n=t().then(({default:t})=>{let n={name:e,data:t};return nP.has(e)||nP.set(e,n),n});return rP.set(e,n),await n}finally{rP.delete(e)}}function YH(e){return nP.get(e)??JH(e)}var XH=new Map,ZH=new Map,QH=new Map,$H=new Set;function eU(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let e;if(typeof n==`string`){if(e=XH.get(n),e==null)throw Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,XH.has(n)||XH.set(n,e);$H.has(n)||($H.add(n),t.loadThemeSync(e))}}async function tU(e){if(sP())throw Error(`resolveTheme("${e}") cannot be called from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=ZH.get(e);if(t!=null)return t;try{let t=QH.get(e)??HR[e];if(t==null)throw Error(`resolveTheme: No valid loader for ${e}`);let n=t().then(t=>nU(e,`default`in t?t.default:t));ZH.set(e,n);let r=await n;if(r.name!==e)throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${r.name}`);return XH.set(r.name,r),r}finally{ZH.delete(e)}}function nU(e,t){return XH.get(e)??(t=xR(t),XH.set(e,t),t)}function rU(e){return XH.get(e)??tU(e)}function iU(e,t){if(QH.has(e)){console.error(`SharedHighlight.registerCustomTheme: theme name already registered`,e);return}QH.set(e,t)}var aU;async function oU({themes:e,langs:t}){aU??=mz({themes:[],langs:[`text`],engine:qH()});let n=cU(aU)?await aU:aU;aU=n;let r=[];for(let e of t){if(e===`text`||e===`ansi`)continue;let t=YH(e);`then`in t?r.push(t):oP(t,n)}let i=[];for(let t of e){let e=rU(t);`then`in e?i.push(e):eU(e,aU)}return(r.length>0||i.length>0)&&await Promise.all([Promise.all(r).then(e=>{oP(e,n)}),Promise.all(i).then(e=>{eU(e,n)})]),n}function sU(){if(aU!=null&&!(`then`in aU))return aU}function cU(e=aU){return e!=null&&`then`in e}iU(`pierre-dark`,()=>L(()=>import(`./pierre-dark-BMm5HxPQ.js`),[])),iU(`pierre-light`,()=>L(()=>import(`./pierre-light-DyzEot4Q.js`),[]));function lU(e=GN){let t=[];return typeof e==`string`?t.push(e):(t.push(e.dark),t.push(e.light)),t}function uU(e){for(let t of lU(e))if(!$H.has(t))return!1;return!0}function dU(e){for(let t of e)if(!XH.has(t))return!1;return!0}function fU(e,t){return e==null||t==null||typeof e==`string`||typeof t==`string`?e===t:e.dark===t.dark&&e.light===t.light}function pU(e){return{type:`text`,value:e}}function mU({tagName:e,children:t=[],properties:n={}}){return{type:`element`,tagName:e,properties:n,children:t}}function hU({name:e,width:t=16,height:n=16,properties:r}){return mU({tagName:`svg`,properties:{width:t,height:n,viewBox:`0 0 16 16`,...r},children:[mU({tagName:`use`,properties:{href:`#${e.replace(/^#/,``)}`}})]})}function gU(e){let t=e.children[0];for(;t!=null;){if(t.type===`element`&&t.tagName===`code`)return t;t=`children`in t?t.children[0]:null}}function _U(e){return mU({tagName:`div`,children:[mU({tagName:`div`,children:e.annotations?.map(e=>mU({tagName:`slot`,properties:{name:e}})),properties:{"data-annotation-content":``}})],properties:{"data-line-annotation":`${e.hunkIndex},${e.lineIndex}`}})}function vU(e){switch(e){case`file`:return`diffs-icon-file-code`;case`change`:return`diffs-icon-symbol-modified`;case`new`:return`diffs-icon-symbol-added`;case`deleted`:return`diffs-icon-symbol-deleted`;case`rename-pure`:case`rename-changed`:return`diffs-icon-symbol-moved`}}function yU({fileOrDiff:e,themeStyles:t,themeType:n}){let r=`type`in e?e:void 0,i={"data-diffs-header":``,"data-change-type":r?.type,"data-theme-type":n===`system`?void 0:n,style:t};return mU({tagName:`div`,children:[bU({name:e.name,prevName:`prevName`in e?e.prevName:void 0,iconType:r?.type??`file`}),xU(r)],properties:i})}function bU({name:e,prevName:t,iconType:n}){let r=[hU({name:vU(n),properties:{"data-change-icon":n}})];return t!=null&&(r.push(mU({tagName:`div`,children:[pU(t)],properties:{"data-prev-name":``}})),r.push(hU({name:`diffs-icon-arrow-right-short`,properties:{"data-rename-icon":``}}))),r.push(mU({tagName:`div`,children:[pU(e)],properties:{"data-title":``}})),mU({tagName:`div`,children:r,properties:{"data-header-content":``}})}function xU(e){let t=[];if(e!=null){let n=0,r=0;for(let t of e.hunks)n+=t.additionLines,r+=t.deletionLines;(r>0||n===0)&&t.push(mU({tagName:`span`,children:[pU(`-${r}`)],properties:{"data-deletions-count":``}})),(n>0||r===0)&&t.push(mU({tagName:`span`,children:[pU(`+${n}`)],properties:{"data-additions-count":``}}))}return t.push(mU({tagName:`slot`,properties:{name:WN}})),mU({tagName:`div`,children:t,properties:{"data-metadata":``}})}function SU(e){return mU({tagName:`pre`,properties:CU(e)})}function CU({diffIndicators:e,disableBackground:t,disableLineNumbers:n,overflow:r,split:i,themeType:a,themeStyles:o,totalLines:s}){let c={"data-diffs":``,"data-type":i?`split`:`file`,"data-overflow":r,"data-disable-line-numbers":n?``:void 0,"data-background":t?void 0:``,"data-indicators":e===`bars`||e===`classic`?e:void 0,"data-theme-type":a===`system`?void 0:a,style:o,tabIndex:0};return c.style+=`--diffs-min-number-column-width-default:${`${s}`.length}ch;`,c}var wU={"1c":`1c`,abap:`abap`,as:`actionscript-3`,ada:`ada`,adb:`ada`,ads:`ada`,adoc:`asciidoc`,asciidoc:`asciidoc`,"component.html":`angular-html`,"component.ts":`angular-ts`,conf:`nginx`,htaccess:`apache`,cls:`tex`,trigger:`apex`,apl:`apl`,applescript:`applescript`,scpt:`applescript`,ara:`ara`,asm:`asm`,s:`riscv`,astro:`astro`,awk:`awk`,bal:`ballerina`,sh:`zsh`,bash:`zsh`,bat:`cmd`,cmd:`cmd`,be:`berry`,beancount:`beancount`,bib:`bibtex`,bicep:`bicep`,"blade.php":`blade`,bsl:`bsl`,c:`c`,h:`objective-cpp`,cs:`csharp`,cpp:`cpp`,hpp:`cpp`,cc:`cpp`,cxx:`cpp`,hh:`cpp`,cdc:`cdc`,cairo:`cairo`,clar:`clarity`,clj:`clojure`,cljs:`clojure`,cljc:`clojure`,soy:`soy`,cmake:`cmake`,"CMakeLists.txt":`cmake`,cob:`cobol`,cbl:`cobol`,cobol:`cobol`,CODEOWNERS:`codeowners`,ql:`ql`,coffee:`coffeescript`,lisp:`lisp`,cl:`lisp`,lsp:`lisp`,log:`log`,v:`verilog`,cql:`cql`,cr:`crystal`,css:`css`,csv:`csv`,cue:`cue`,cypher:`cypher`,cyp:`cypher`,d:`d`,dart:`dart`,dax:`dax`,desktop:`desktop`,diff:`diff`,patch:`diff`,Dockerfile:`dockerfile`,dockerfile:`dockerfile`,env:`dotenv`,dm:`dream-maker`,edge:`edge`,el:`emacs-lisp`,ex:`elixir`,exs:`elixir`,elm:`elm`,erb:`erb`,erl:`erlang`,hrl:`erlang`,f:`fortran-fixed-form`,for:`fortran-fixed-form`,fs:`fsharp`,fsi:`fsharp`,fsx:`fsharp`,f03:`f03`,f08:`f08`,f18:`f18`,f77:`f77`,f90:`fortran-free-form`,f95:`fortran-free-form`,fnl:`fennel`,fish:`fish`,ftl:`ftl`,tres:`gdresource`,res:`gdresource`,gd:`gdscript`,gdshader:`gdshader`,gs:`genie`,feature:`gherkin`,COMMIT_EDITMSG:`git-commit`,"git-rebase-todo":`git-rebase`,gjs:`glimmer-js`,gleam:`gleam`,gts:`glimmer-ts`,glsl:`glsl`,vert:`glsl`,frag:`glsl`,shader:`shaderlab`,gp:`gnuplot`,plt:`gnuplot`,gnuplot:`gnuplot`,go:`go`,graphql:`graphql`,gql:`graphql`,groovy:`groovy`,gvy:`groovy`,hack:`hack`,haml:`haml`,hbs:`handlebars`,handlebars:`handlebars`,hs:`haskell`,lhs:`haskell`,hx:`haxe`,hcl:`hcl`,hjson:`hjson`,hlsl:`hlsl`,fx:`hlsl`,html:`html`,htm:`html`,http:`http`,rest:`http`,hxml:`hxml`,hy:`hy`,imba:`imba`,ini:`ini`,cfg:`ini`,jade:`pug`,pug:`pug`,java:`java`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,jinja:`jinja`,jinja2:`jinja`,j2:`jinja`,jison:`jison`,jl:`julia`,json:`json`,json5:`json5`,jsonc:`jsonc`,jsonl:`jsonl`,jsonnet:`jsonnet`,libsonnet:`jsonnet`,jssm:`jssm`,jsx:`jsx`,kt:`kotlin`,kts:`kts`,kql:`kusto`,tex:`tex`,ltx:`tex`,lean:`lean4`,less:`less`,liquid:`liquid`,lit:`lit`,ll:`llvm`,logo:`logo`,lua:`lua`,luau:`luau`,Makefile:`makefile`,mk:`makefile`,makefile:`makefile`,md:`markdown`,markdown:`markdown`,marko:`marko`,m:`wolfram`,mat:`matlab`,mdc:`mdc`,mdx:`mdx`,wiki:`wikitext`,mediawiki:`wikitext`,mmd:`mermaid`,mermaid:`mermaid`,mips:`mipsasm`,mojo:`mojo`,"🔥":`mojo`,move:`move`,nar:`narrat`,nf:`nextflow`,nim:`nim`,nims:`nim`,nimble:`nim`,nix:`nix`,nu:`nushell`,mm:`objective-cpp`,ml:`ocaml`,mli:`ocaml`,mll:`ocaml`,mly:`ocaml`,pas:`pascal`,p:`pascal`,pl:`prolog`,pm:`perl`,t:`perl`,raku:`raku`,p6:`raku`,pl6:`raku`,php:`php`,phtml:`php`,pls:`plsql`,sql:`sql`,po:`po`,polar:`polar`,pcss:`postcss`,pot:`pot`,potx:`potx`,pq:`powerquery`,pqm:`powerquery`,ps1:`powershell`,psm1:`powershell`,psd1:`powershell`,prisma:`prisma`,pro:`prolog`,P:`prolog`,properties:`properties`,proto:`protobuf`,pp:`puppet`,purs:`purescript`,py:`python`,pyw:`python`,pyi:`python`,qml:`qml`,qmldir:`qmldir`,qss:`qss`,r:`r`,R:`r`,rkt:`racket`,rktl:`racket`,razor:`razor`,cshtml:`razor`,rb:`ruby`,rbw:`ruby`,reg:`reg`,regex:`regexp`,rel:`rel`,rs:`rust`,rst:`rst`,rake:`ruby`,gemspec:`ruby`,sas:`sas`,sass:`sass`,scala:`scala`,sc:`scala`,scm:`scheme`,ss:`scheme`,sld:`scheme`,scss:`scss`,sdbl:`sdbl`,shadergraph:`shader`,st:`smalltalk`,sol:`solidity`,sparql:`sparql`,rq:`sparql`,spl:`splunk`,config:`ssh-config`,do:`stata`,ado:`stata`,dta:`stata`,styl:`stylus`,stylus:`stylus`,svelte:`svelte`,swift:`swift`,sv:`system-verilog`,svh:`system-verilog`,service:`systemd`,socket:`systemd`,device:`systemd`,timer:`systemd`,talon:`talonscript`,tasl:`tasl`,tcl:`tcl`,templ:`templ`,tf:`tf`,tfvars:`tfvars`,toml:`toml`,ts:`typescript`,tsp:`typespec`,tsv:`tsv`,tsx:`tsx`,ttl:`turtle`,twig:`twig`,typ:`typst`,vv:`v`,vala:`vala`,vapi:`vala`,vb:`vb`,vbs:`vb`,bas:`vb`,vh:`verilog`,vhd:`vhdl`,vhdl:`vhdl`,vim:`vimscript`,vue:`vue`,"vine.ts":`vue-vine`,vy:`vyper`,wasm:`wasm`,wat:`wasm`,wy:`文言`,wgsl:`wgsl`,wit:`wit`,wl:`wolfram`,nb:`wolfram`,xml:`xml`,xsl:`xsl`,xslt:`xsl`,yaml:`yaml`,yml:`yml`,zs:`zenscript`,zig:`zig`,zsh:`zsh`,sty:`tex`};function TU(e){if(wU[e]!=null)return wU[e];let t=e.match(/\.([^/\\]+\.[^/\\]+)$/);return t!=null&&wU[t[1]]!=null?wU[t[1]]??`text`:wU[e.match(/\.([^.]+)$/)?.[1]??``]??`text`}function EU(e,t){return{langs:[e??`text`],themes:lU(t.theme)}}function DU(e){return`annotation-${`side`in e?`${e.side}-`:``}${e.lineNumber}`}function OU(e){return e.replace(/\n$|\r\n$/,``)}function kU(e,t,n){let r=typeof n.lineInfo==`function`?n.lineInfo(t):n.lineInfo[t];if(r==null)throw console.error({node:e,line:t,state:n}),Error(`processLine: line ${t}, contains no state.lineInfo`);return e.tagName=`span`,e.properties[`data-column-content`]=``,e.children.length===0&&e.children.push(pU(`
|
|
201
|
-
`)),mU({tagName:`div`,children:[mU({tagName:`span`,children:[mU({tagName:`span`,children:[{type:`text`,value:`${r.lineNumber}`}],properties:{"data-line-number-content":``}})],properties:{"data-column-number":``}}),e],properties:{"data-line":r.lineNumber,"data-alt-line":r.altLineNumber,"data-line-type":r.type,"data-line-index":r.lineIndex}})}function AU(e={}){let{classPrefix:t=`__shiki_`,classSuffix:n=``,classReplacer:r=e=>e}=e,i=new Map;function a(e){return Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function o(e){let o=t+jU(typeof e==`string`?e:a(e))+n;return o=r(o),i.has(o)||i.set(o,typeof e==`string`?e:{...e}),o}return{name:`@shikijs/transformers:style-to-class`,pre(e){if(!e.properties.style)return;let t=o(e.properties.style);delete e.properties.style,this.addClassToHast(e,t)},tokens(e){for(let t of e)for(let e of t){if(!e.htmlStyle)continue;let t=o(e.htmlStyle);e.htmlStyle={},e.htmlAttrs||={},e.htmlAttrs.class?e.htmlAttrs.class+=` ${t}`:e.htmlAttrs.class=t}},getClassRegistry(){return i},getCSS(){let e=``;for(let[t,n]of i.entries())e+=`.${t}{${typeof n==`string`?n:a(n)}}`;return e},clearRegistry(){i.clear()}}}function jU(e,t=0){let n=3735928559^t,r=1103547991^t;for(let t=0,i;t<e.length;t++)i=e.charCodeAt(t),n=Math.imul(n^i,2654435761),r=Math.imul(r^i,1597334677);return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(36).slice(0,6)}function MU(e=!1){let t={lineInfo:{}},n=[{line(e){return delete e.properties.class,e},pre(e){let n=gU(e),r=[];if(n!=null){let e=1;for(let i of n.children)i.type===`element`&&(r.push(kU(i,e,t)),e++);n.children=r}return e}}];return e&&n.push(PU,NU),{state:t,transformers:n,toClass:NU}}var NU=AU({classPrefix:`hl-`}),PU={name:`token-style-normalizer`,tokens(e){for(let t of e)for(let e of t){if(e.htmlStyle!=null)continue;let t={};e.color!=null&&(t.color=e.color),e.bgColor!=null&&(t[`background-color`]=e.bgColor),e.fontStyle!=null&&e.fontStyle!==0&&(e.fontStyle&1&&(t[`font-style`]=`italic`),e.fontStyle&2&&(t[`font-weight`]=`bold`),e.fontStyle&4&&(t[`text-decoration`]=`underline`)),Object.keys(t).length>0&&(e.htmlStyle=t)}}};function FU(e){return`--${e===`token`?`diffs-token`:`diffs`}-`}function IU({theme:e=GN,highlighter:t,prefix:n}){let r=``;if(typeof e==`string`){let i=t.getTheme(e);r+=`color:${i.fg};`,r+=`background-color:${i.bg};`,r+=`${FU(`global`)}fg:${i.fg};`,r+=`${FU(`global`)}bg:${i.bg};`,r+=LU(i,n)}else{let n=t.getTheme(e.dark);r+=`${FU(`global`)}dark:${n.fg};`,r+=`${FU(`global`)}dark-bg:${n.bg};`,r+=LU(n,`dark`),n=t.getTheme(e.light),r+=`${FU(`global`)}light:${n.fg};`,r+=`${FU(`global`)}light-bg:${n.bg};`,r+=LU(n,`light`)}return r}function LU(e,t){t=t==null?``:`${t}-`;let n=``,r=e.colors?.[`gitDecoration.addedResourceForeground`]??e.colors?.[`terminal.ansiGreen`];r!=null&&(n+=`${FU(`global`)}${t}addition-color:${r};`);let i=e.colors?.[`gitDecoration.deletedResourceForeground`]??e.colors?.[`terminal.ansiRed`];i!=null&&(n+=`${FU(`global`)}${t}deletion-color:${i};`);let a=e.colors?.[`gitDecoration.modifiedResourceForeground`]??e.colors?.[`terminal.ansiBlue`];return a!=null&&(n+=`${FU(`global`)}${t}modified-color:${a};`),n}function RU(e){let t=e.children[0];for(;t!=null;){if(t.type===`element`&&t.tagName===`code`)return t.children;t=`children`in t?t.children[0]:null}throw console.error(e),Error(`getLineNodes: Unable to find children`)}function zU(e,t,{theme:n=GN,tokenizeMaxLineLength:r},i=!1){let{state:a,transformers:o}=MU(),s=i?`text`:e.lang??TU(e.name),c=(()=>{if(typeof n==`string`)return t.getTheme(n).type})(),l=IU({theme:n,highlighter:t});a.lineInfo=e=>({type:`context`,lineIndex:e-1,lineNumber:e});let u=typeof n==`string`?{lang:s,theme:n,transformers:o,defaultColor:!1,cssVariablePrefix:FU(`token`),tokenizeMaxLineLength:r}:{lang:s,themes:n,transformers:o,defaultColor:!1,cssVariablePrefix:FU(`token`),tokenizeMaxLineLength:r};return{code:RU(t.codeToHast(OU(e.contents),u)),themeStyles:l,baseThemeType:c}}var BU=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
202
|
-
<symbol id="diffs-icon-arrow-right-short" viewBox="0 0 16 16">
|
|
203
|
-
<path d="M8.47 4.22a.75.75 0 0 0 0 1.06l1.97 1.97H3.75a.75.75 0 0 0 0 1.5h6.69l-1.97 1.97a.75.75 0 1 0 1.06 1.06l3.25-3.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0"/>
|
|
204
|
-
</symbol>
|
|
205
|
-
<symbol id="diffs-icon-brand-github" viewBox="0 0 16 16">
|
|
206
|
-
<path d="M8 0c4.42 0 8 3.58 8 8a8.01 8.01 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27s-1.36.09-2 .27c-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8"/>
|
|
207
|
-
</symbol>
|
|
208
|
-
<symbol id="diffs-icon-chevron" viewBox="0 0 16 16">
|
|
209
|
-
<path d="M1.47 4.47a.75.75 0 0 1 1.06 0L8 9.94l5.47-5.47a.75.75 0 1 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06"/>
|
|
210
|
-
</symbol>
|
|
211
|
-
<symbol id="diffs-icon-chevrons-narrow" viewBox="0 0 10 16">
|
|
212
|
-
<path d="M4.47 2.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1-1.06 1.06L5 3.81 2.28 6.53a.75.75 0 0 1-1.06-1.06zM1.22 9.47a.75.75 0 0 1 1.06 0L5 12.19l2.72-2.72a.75.75 0 0 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0l-3.25-3.25a.75.75 0 0 1 0-1.06"/>
|
|
213
|
-
</symbol>
|
|
214
|
-
<symbol id="diffs-icon-diff-split" viewBox="0 0 16 16">
|
|
215
|
-
<path d="M14 0H8.5v16H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2m-1.5 6.5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0"/><path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5.5V0zm.5 7.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1" opacity=".3"/>
|
|
216
|
-
</symbol>
|
|
217
|
-
<symbol id="diffs-icon-diff-unified" viewBox="0 0 16 16">
|
|
218
|
-
<path fill-rule="evenodd" d="M16 14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8.5h16zm-8-4a.5.5 0 0 0-.5.5v1h-1a.5.5 0 0 0 0 1h1v1a.5.5 0 0 0 1 0v-1h1a.5.5 0 0 0 0-1h-1v-1A.5.5 0 0 0 8 10" clip-rule="evenodd"/><path fill-rule="evenodd" d="M14 0a2 2 0 0 1 2 2v5.5H0V2a2 2 0 0 1 2-2zM6.5 3.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z" clip-rule="evenodd" opacity=".4"/>
|
|
219
|
-
</symbol>
|
|
220
|
-
<symbol id="diffs-icon-expand" viewBox="0 0 16 16">
|
|
221
|
-
<path d="M3.47 5.47a.75.75 0 0 1 1.06 0L8 8.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06"/>
|
|
222
|
-
</symbol>
|
|
223
|
-
<symbol id="diffs-icon-expand-all" viewBox="0 0 16 16">
|
|
224
|
-
<path d="M11.47 9.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06L8 12.94zM7.526 1.418a.75.75 0 0 1 1.004.052l4 4a.75.75 0 1 1-1.06 1.06L8 3.06 4.53 6.53a.75.75 0 1 1-1.06-1.06l4-4z"/>
|
|
225
|
-
</symbol>
|
|
226
|
-
<symbol id="diffs-icon-file-code" viewBox="0 0 16 16">
|
|
227
|
-
<path d="M10.75 0c.199 0 .39.08.53.22l3.5 3.5c.14.14.22.331.22.53v9A2.75 2.75 0 0 1 12.25 16h-8.5A2.75 2.75 0 0 1 1 13.25V2.75A2.75 2.75 0 0 1 3.75 0zm-7 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V5h-1.25A2.25 2.25 0 0 1 10 2.75V1.5z"/><path d="M7.248 6.19a.75.75 0 0 1 .063 1.058L5.753 9l1.558 1.752a.75.75 0 0 1-1.122.996l-2-2.25a.75.75 0 0 1 0-.996l2-2.25a.75.75 0 0 1 1.06-.063M8.69 7.248a.75.75 0 1 1 1.12-.996l2 2.25a.75.75 0 0 1 0 .996l-2 2.25a.75.75 0 1 1-1.12-.996L10.245 9z"/>
|
|
228
|
-
</symbol>
|
|
229
|
-
<symbol id="diffs-icon-symbol-added" viewBox="0 0 16 16">
|
|
230
|
-
<path d="M8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4"/><path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/>
|
|
231
|
-
</symbol>
|
|
232
|
-
<symbol id="diffs-icon-symbol-deleted" viewBox="0 0 16 16">
|
|
233
|
-
<path d="M4 8a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 8"/><path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/>
|
|
234
|
-
</symbol>
|
|
235
|
-
<symbol id="diffs-icon-symbol-diffstat" viewBox="0 0 16 16">
|
|
236
|
-
<path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/><path d="M8.75 4.296a.75.75 0 0 0-1.5 0V6.25h-2a.75.75 0 0 0 0 1.5h2v1.5h1.5v-1.5h2a.75.75 0 0 0 0-1.5h-2zM5.25 10a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5z"/>
|
|
237
|
-
</symbol>
|
|
238
|
-
<symbol id="diffs-icon-symbol-ignored" viewBox="0 0 16 16">
|
|
239
|
-
<path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m11.53-2.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z"/>
|
|
240
|
-
</symbol>
|
|
241
|
-
<symbol id="diffs-icon-symbol-modified" viewBox="0 0 16 16">
|
|
242
|
-
<path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6"/>
|
|
243
|
-
</symbol>
|
|
244
|
-
<symbol id="diffs-icon-symbol-moved" viewBox="0 0 16 16">
|
|
245
|
-
<path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/><path d="M8.495 4.695a.75.75 0 0 0-.05 1.06L10.486 8l-2.041 2.246a.75.75 0 0 0 1.11 1.008l2.5-2.75a.75.75 0 0 0 0-1.008l-2.5-2.75a.75.75 0 0 0-1.06-.051m-4 0a.75.75 0 0 0-.05 1.06l2.044 2.248-1.796 1.995a.75.75 0 0 0 1.114 1.004l2.25-2.5a.75.75 0 0 0-.002-1.007l-2.5-2.75a.75.75 0 0 0-1.06-.05"/>
|
|
246
|
-
</symbol>
|
|
247
|
-
<symbol id="diffs-icon-symbol-ref" viewBox="0 0 16 16">
|
|
248
|
-
<path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706.286.286.71.54 1.41.73V1.86c-.7.19-1.124.444-1.41.73-.324.325-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8m4 6.397c.697.07 1.522.103 2.5.103 1.613 0 2.806-.088 3.704-.288.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5c-.978 0-1.803.033-2.5.103zM0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m7-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z"/>
|
|
249
|
-
</symbol>
|
|
250
|
-
</svg>`;function VU(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}function HU(e){let t=document.createElement(`div`);return t.dataset.annotationSlot=``,t.slot=e,t.style.whiteSpace=`normal`,t}function UU({pre:e,columnType:t}={}){let n=document.createElement(`code`);return n.dataset.code=``,t!=null&&(n.dataset[t]=``),e?.appendChild(n),n}function WU(){let e=document.createElement(`div`);return e.slot=`hover-slot`,e.style.position=`absolute`,e.style.top=`0`,e.style.bottom=`0`,e.style.textAlign=`center`,e.style.whiteSpace=`normal`,e}function GU(){let e=document.createElement(`style`);return e.setAttribute(KN,``),e}var KU=`@layer base, theme, unsafe;
|
|
251
|
-
|
|
252
|
-
@layer base {
|
|
253
|
-
:host {
|
|
254
|
-
--diffs-bg: #fff;
|
|
255
|
-
--diffs-fg: #000;
|
|
256
|
-
--diffs-font-fallback:
|
|
257
|
-
'SF Mono', Monaco, Consolas, 'Ubuntu Mono', 'Liberation Mono',
|
|
258
|
-
'Courier New', monospace;
|
|
259
|
-
--diffs-header-font-fallback:
|
|
260
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
261
|
-
'Noto Sans', 'Liberation Sans', Arial, sans-serif;
|
|
262
|
-
|
|
263
|
-
--diffs-mixer: light-dark(black, white);
|
|
264
|
-
--diffs-gap-fallback: 8px;
|
|
265
|
-
|
|
266
|
-
/*
|
|
267
|
-
// Available CSS Color Overrides
|
|
268
|
-
--diffs-bg-buffer-override
|
|
269
|
-
--diffs-bg-hover-override
|
|
270
|
-
--diffs-bg-context-override
|
|
271
|
-
--diffs-bg-separator-override
|
|
272
|
-
|
|
273
|
-
--diffs-fg-number-override
|
|
274
|
-
--diffs-fg-number-addition-override
|
|
275
|
-
--diffs-fg-number-deletion-override
|
|
276
|
-
|
|
277
|
-
--diffs-deletion-color-override
|
|
278
|
-
--diffs-addition-color-override
|
|
279
|
-
--diffs-modified-color-override
|
|
280
|
-
|
|
281
|
-
--diffs-bg-deletion-override
|
|
282
|
-
--diffs-bg-deletion-number-override
|
|
283
|
-
--diffs-bg-deletion-hover-override
|
|
284
|
-
--diffs-bg-deletion-emphasis-override
|
|
285
|
-
|
|
286
|
-
--diffs-bg-addition-override
|
|
287
|
-
--diffs-bg-addition-number-override
|
|
288
|
-
--diffs-bg-addition-hover-override
|
|
289
|
-
--diffs-bg-addition-emphasis-override
|
|
290
|
-
|
|
291
|
-
// Line Selection Color Overrides (for enableLineSelection)
|
|
292
|
-
--diffs-selection-color-override
|
|
293
|
-
--diffs-bg-selection-override
|
|
294
|
-
--diffs-bg-selection-number-override
|
|
295
|
-
--diffs-bg-selection-background-override
|
|
296
|
-
--diffs-bg-selection-number-background-override
|
|
297
|
-
|
|
298
|
-
// Available CSS Layout Overrides
|
|
299
|
-
--diffs-gap-inline
|
|
300
|
-
--diffs-gap-block
|
|
301
|
-
--diffs-gap-style
|
|
302
|
-
--diffs-tab-size
|
|
303
|
-
*/
|
|
304
|
-
|
|
305
|
-
color-scheme: light dark;
|
|
306
|
-
display: block;
|
|
307
|
-
font-family: var(
|
|
308
|
-
--diffs-header-font-family,
|
|
309
|
-
var(--diffs-header-font-fallback)
|
|
310
|
-
);
|
|
311
|
-
font-size: var(--diffs-font-size, 13px);
|
|
312
|
-
line-height: var(--diffs-line-height, 20px);
|
|
313
|
-
font-feature-settings: var(--diffs-font-features);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/* NOTE(mdo): Some semantic HTML elements (e.g. \`pre\`, \`code\`) have default
|
|
317
|
-
* user-agent styles. These must be overridden to use our custom styles. */
|
|
318
|
-
pre,
|
|
319
|
-
code,
|
|
320
|
-
[data-error-wrapper] {
|
|
321
|
-
margin: 0;
|
|
322
|
-
padding: 0;
|
|
323
|
-
display: block;
|
|
324
|
-
outline: none;
|
|
325
|
-
font-family: var(--diffs-font-family, var(--diffs-font-fallback));
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
*,
|
|
329
|
-
*::before,
|
|
330
|
-
*::after {
|
|
331
|
-
box-sizing: border-box;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
[data-icon-sprite] {
|
|
335
|
-
display: none;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
/* NOTE(mdo): Headers and separators are within pre/code, so we need to reset
|
|
339
|
-
* their font-family explicitly. */
|
|
340
|
-
[data-diffs-header],
|
|
341
|
-
[data-separator] {
|
|
342
|
-
font-family: var(
|
|
343
|
-
--diffs-header-font-family,
|
|
344
|
-
var(--diffs-header-font-fallback)
|
|
345
|
-
);
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
[data-file-info] {
|
|
349
|
-
padding: 10px;
|
|
350
|
-
font-weight: 700;
|
|
351
|
-
color: var(--fg);
|
|
352
|
-
/* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor
|
|
353
|
-
* and vscode use an older build of chrome that appears to have a bug with
|
|
354
|
-
* color-mix and 'in oklch', so use 'in lab' instead */
|
|
355
|
-
background-color: color-mix(in lab, var(--bg) 98%, var(--fg));
|
|
356
|
-
border-block: 1px solid color-mix(in lab, var(--bg) 95%, var(--fg));
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
[data-diffs-header],
|
|
360
|
-
[data-diffs],
|
|
361
|
-
[data-error-wrapper] {
|
|
362
|
-
--diffs-bg: light-dark(var(--diffs-light-bg), var(--diffs-dark-bg));
|
|
363
|
-
/* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor
|
|
364
|
-
* and vscode use an older build of chrome that appears to have a bug with
|
|
365
|
-
* color-mix and 'in oklch', so use 'in lab' instead */
|
|
366
|
-
--diffs-bg-buffer: var(
|
|
367
|
-
--diffs-bg-buffer-override,
|
|
368
|
-
light-dark(
|
|
369
|
-
color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer)),
|
|
370
|
-
color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer))
|
|
371
|
-
)
|
|
372
|
-
);
|
|
373
|
-
--diffs-bg-hover: var(
|
|
374
|
-
--diffs-bg-hover-override,
|
|
375
|
-
light-dark(
|
|
376
|
-
color-mix(in lab, var(--diffs-bg) 97%, var(--diffs-mixer)),
|
|
377
|
-
color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-mixer))
|
|
378
|
-
)
|
|
379
|
-
);
|
|
380
|
-
--diffs-bg-context: var(
|
|
381
|
-
--diffs-bg-context-override,
|
|
382
|
-
light-dark(
|
|
383
|
-
color-mix(in lab, var(--diffs-bg) 98.5%, var(--diffs-mixer)),
|
|
384
|
-
color-mix(in lab, var(--diffs-bg) 92.5%, var(--diffs-mixer))
|
|
385
|
-
)
|
|
386
|
-
);
|
|
387
|
-
--diffs-bg-separator: var(
|
|
388
|
-
--diffs-bg-separator-override,
|
|
389
|
-
light-dark(
|
|
390
|
-
color-mix(in lab, var(--diffs-bg) 96%, var(--diffs-mixer)),
|
|
391
|
-
color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-mixer))
|
|
392
|
-
)
|
|
393
|
-
);
|
|
394
|
-
|
|
395
|
-
--diffs-fg: light-dark(var(--diffs-light), var(--diffs-dark));
|
|
396
|
-
--diffs-fg-number: var(
|
|
397
|
-
--diffs-fg-number-override,
|
|
398
|
-
light-dark(
|
|
399
|
-
color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg)),
|
|
400
|
-
color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg))
|
|
401
|
-
)
|
|
402
|
-
);
|
|
403
|
-
|
|
404
|
-
--diffs-deletion-base: var(
|
|
405
|
-
--diffs-deletion-color-override,
|
|
406
|
-
light-dark(
|
|
407
|
-
var(
|
|
408
|
-
--diffs-light-deletion-color,
|
|
409
|
-
var(--diffs-deletion-color, rgb(255, 0, 0))
|
|
410
|
-
),
|
|
411
|
-
var(
|
|
412
|
-
--diffs-dark-deletion-color,
|
|
413
|
-
var(--diffs-deletion-color, rgb(255, 0, 0))
|
|
414
|
-
)
|
|
415
|
-
)
|
|
416
|
-
);
|
|
417
|
-
--diffs-addition-base: var(
|
|
418
|
-
--diffs-addition-color-override,
|
|
419
|
-
light-dark(
|
|
420
|
-
var(
|
|
421
|
-
--diffs-light-addition-color,
|
|
422
|
-
var(--diffs-addition-color, rgb(0, 255, 0))
|
|
423
|
-
),
|
|
424
|
-
var(
|
|
425
|
-
--diffs-dark-addition-color,
|
|
426
|
-
var(--diffs-addition-color, rgb(0, 255, 0))
|
|
427
|
-
)
|
|
428
|
-
)
|
|
429
|
-
);
|
|
430
|
-
--diffs-modified-base: var(
|
|
431
|
-
--diffs-modified-color-override,
|
|
432
|
-
light-dark(
|
|
433
|
-
var(
|
|
434
|
-
--diffs-light-modified-color,
|
|
435
|
-
var(--diffs-modified-color, rgb(0, 0, 255))
|
|
436
|
-
),
|
|
437
|
-
var(
|
|
438
|
-
--diffs-dark-modified-color,
|
|
439
|
-
var(--diffs-modified-color, rgb(0, 0, 255))
|
|
440
|
-
)
|
|
441
|
-
)
|
|
442
|
-
);
|
|
443
|
-
|
|
444
|
-
/* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor
|
|
445
|
-
* and vscode use an older build of chrome that appears to have a bug with
|
|
446
|
-
* color-mix and 'in oklch', so use 'in lab' instead */
|
|
447
|
-
--diffs-bg-deletion: var(
|
|
448
|
-
--diffs-bg-deletion-override,
|
|
449
|
-
light-dark(
|
|
450
|
-
color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-deletion-base)),
|
|
451
|
-
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base))
|
|
452
|
-
)
|
|
453
|
-
);
|
|
454
|
-
--diffs-bg-deletion-number: var(
|
|
455
|
-
--diffs-bg-deletion-number-override,
|
|
456
|
-
light-dark(
|
|
457
|
-
color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-deletion-base)),
|
|
458
|
-
color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-deletion-base))
|
|
459
|
-
)
|
|
460
|
-
);
|
|
461
|
-
--diffs-bg-deletion-hover: var(
|
|
462
|
-
--diffs-bg-deletion-hover-override,
|
|
463
|
-
light-dark(
|
|
464
|
-
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base)),
|
|
465
|
-
color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-deletion-base))
|
|
466
|
-
)
|
|
467
|
-
);
|
|
468
|
-
--diffs-bg-deletion-emphasis: var(
|
|
469
|
-
--diffs-bg-deletion-emphasis-override,
|
|
470
|
-
light-dark(
|
|
471
|
-
rgb(from var(--diffs-deletion-base) r g b / 0.15),
|
|
472
|
-
rgb(from var(--diffs-deletion-base) r g b / 0.2)
|
|
473
|
-
)
|
|
474
|
-
);
|
|
475
|
-
|
|
476
|
-
--diffs-bg-addition: var(
|
|
477
|
-
--diffs-bg-addition-override,
|
|
478
|
-
light-dark(
|
|
479
|
-
color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-addition-base)),
|
|
480
|
-
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base))
|
|
481
|
-
)
|
|
482
|
-
);
|
|
483
|
-
--diffs-bg-addition-number: var(
|
|
484
|
-
--diffs-bg-addition-number-override,
|
|
485
|
-
light-dark(
|
|
486
|
-
color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-addition-base)),
|
|
487
|
-
color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-addition-base))
|
|
488
|
-
)
|
|
489
|
-
);
|
|
490
|
-
--diffs-bg-addition-hover: var(
|
|
491
|
-
--diffs-bg-addition-hover-override,
|
|
492
|
-
light-dark(
|
|
493
|
-
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base)),
|
|
494
|
-
color-mix(in lab, var(--diffs-bg) 70%, var(--diffs-addition-base))
|
|
495
|
-
)
|
|
496
|
-
);
|
|
497
|
-
--diffs-bg-addition-emphasis: var(
|
|
498
|
-
--diffs-bg-addition-emphasis-override,
|
|
499
|
-
light-dark(
|
|
500
|
-
rgb(from var(--diffs-addition-base) r g b / 0.15),
|
|
501
|
-
rgb(from var(--diffs-addition-base) r g b / 0.2)
|
|
502
|
-
)
|
|
503
|
-
);
|
|
504
|
-
|
|
505
|
-
--diffs-selection-base: var(--diffs-modified-base);
|
|
506
|
-
--diffs-selection-number-fg: light-dark(
|
|
507
|
-
color-mix(in lab, var(--diffs-selection-base) 65%, var(--diffs-mixer)),
|
|
508
|
-
color-mix(in lab, var(--diffs-selection-base) 75%, var(--diffs-mixer))
|
|
509
|
-
);
|
|
510
|
-
--diffs-bg-selection: var(
|
|
511
|
-
--diffs-bg-selection-override,
|
|
512
|
-
light-dark(
|
|
513
|
-
color-mix(in lab, var(--diffs-bg) 82%, var(--diffs-selection-base)),
|
|
514
|
-
color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-selection-base))
|
|
515
|
-
)
|
|
516
|
-
);
|
|
517
|
-
--diffs-bg-selection-number: var(
|
|
518
|
-
--diffs-bg-selection-number-override,
|
|
519
|
-
light-dark(
|
|
520
|
-
color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-selection-base)),
|
|
521
|
-
color-mix(in lab, var(--diffs-bg) 60%, var(--diffs-selection-base))
|
|
522
|
-
)
|
|
523
|
-
);
|
|
524
|
-
|
|
525
|
-
background-color: var(--diffs-bg);
|
|
526
|
-
color: var(--diffs-fg);
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
[data-diffs] {
|
|
530
|
-
--diffs-code-grid: minmax(min-content, max-content) 1fr;
|
|
531
|
-
|
|
532
|
-
[data-column-content] span {
|
|
533
|
-
color: light-dark(
|
|
534
|
-
var(--diffs-token-light, var(--diffs-light)),
|
|
535
|
-
var(--diffs-token-dark, var(--diffs-dark))
|
|
536
|
-
);
|
|
537
|
-
font-weight: var(--diffs-token-light-font-weight, inherit);
|
|
538
|
-
font-style: var(--diffs-token-light-font-style, inherit);
|
|
539
|
-
-webkit-text-decoration: var(--diffs-token-light-text-decoration, inherit);
|
|
540
|
-
text-decoration: var(--diffs-token-light-text-decoration, inherit);
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
/* Since span is a pretty innocuous selector, we need to make sure we don't
|
|
545
|
-
* apply tokenized BG colors to diff-spans */
|
|
546
|
-
[data-column-content] span:not([data-diff-span]) {
|
|
547
|
-
background-color: light-dark(
|
|
548
|
-
var(--diffs-token-light-bg, inherit),
|
|
549
|
-
var(--diffs-token-dark-bg, inherit)
|
|
550
|
-
);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
[data-column-content] {
|
|
554
|
-
background-color: var(--diffs-line-bg, 'transparent');
|
|
555
|
-
grid-column: 2 / 3;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
[data-diffs][data-dehydrated] {
|
|
559
|
-
--diffs-code-grid: minmax(min-content, max-content) minmax(0, 1fr);
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
@media (prefers-color-scheme: dark) {
|
|
563
|
-
[data-diffs-header],
|
|
564
|
-
[data-diffs] {
|
|
565
|
-
color-scheme: dark;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
[data-diffs] [data-column-content] span {
|
|
569
|
-
font-weight: var(--diffs-token-dark-font-weight, inherit);
|
|
570
|
-
font-style: var(--diffs-token-dark-font-style, inherit);
|
|
571
|
-
-webkit-text-decoration: var(--diffs-token-dark-text-decoration, inherit);
|
|
572
|
-
text-decoration: var(--diffs-token-dark-text-decoration, inherit);
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
[data-diffs-header][data-theme-type='light'],
|
|
577
|
-
[data-diffs][data-theme-type='light'] {
|
|
578
|
-
color-scheme: light;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
[data-diffs][data-theme-type='light'] [data-column-content] span {
|
|
582
|
-
font-weight: var(--diffs-token-light-font-weight, inherit);
|
|
583
|
-
font-style: var(--diffs-token-light-font-style, inherit);
|
|
584
|
-
-webkit-text-decoration: var(--diffs-token-light-text-decoration, inherit);
|
|
585
|
-
text-decoration: var(--diffs-token-light-text-decoration, inherit);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
[data-diffs-header][data-theme-type='dark'],
|
|
589
|
-
[data-diffs][data-theme-type='dark'] {
|
|
590
|
-
color-scheme: dark;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
[data-diffs][data-theme-type='dark'] [data-column-content] span {
|
|
594
|
-
font-weight: var(--diffs-token-dark-font-weight, inherit);
|
|
595
|
-
font-style: var(--diffs-token-dark-font-style, inherit);
|
|
596
|
-
-webkit-text-decoration: var(--diffs-token-dark-text-decoration, inherit);
|
|
597
|
-
text-decoration: var(--diffs-token-dark-text-decoration, inherit);
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
[data-type='split'][data-overflow='wrap'] {
|
|
601
|
-
display: grid;
|
|
602
|
-
grid-auto-flow: dense;
|
|
603
|
-
grid-template-columns: repeat(2, var(--diffs-code-grid));
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
[data-type='split'][data-overflow='scroll'] {
|
|
607
|
-
display: grid;
|
|
608
|
-
grid-template-columns: 1fr 1fr;
|
|
609
|
-
gap: 2px;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
[data-code] {
|
|
613
|
-
display: block;
|
|
614
|
-
display: grid;
|
|
615
|
-
grid-auto-flow: dense;
|
|
616
|
-
grid-template-columns: var(--diffs-code-grid);
|
|
617
|
-
overflow: scroll clip;
|
|
618
|
-
overscroll-behavior-x: none;
|
|
619
|
-
tab-size: var(--diffs-tab-size, 2);
|
|
620
|
-
align-self: flex-start;
|
|
621
|
-
padding-top: var(--diffs-gap-block, var(--diffs-gap-fallback));
|
|
622
|
-
padding-bottom: max(
|
|
623
|
-
0px,
|
|
624
|
-
calc(var(--diffs-gap-block, var(--diffs-gap-fallback)) - 6px)
|
|
625
|
-
);
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
[data-code]::-webkit-scrollbar {
|
|
629
|
-
width: 0;
|
|
630
|
-
height: 6px;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
[data-code]::-webkit-scrollbar-track {
|
|
634
|
-
background: transparent;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
[data-code]::-webkit-scrollbar-thumb {
|
|
638
|
-
background-color: transparent;
|
|
639
|
-
border: 1px solid transparent;
|
|
640
|
-
background-clip: content-box;
|
|
641
|
-
border-radius: 3px;
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
[data-diffs]:hover [data-code]::-webkit-scrollbar-thumb {
|
|
645
|
-
background-color: var(--diffs-bg-context);
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
[data-code]::-webkit-scrollbar-corner {
|
|
649
|
-
background-color: transparent;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
/*
|
|
653
|
-
* If we apply these rules globally it will mean that webkit will opt into the
|
|
654
|
-
* standards compliant version of custom css scrollbars, which we do not want
|
|
655
|
-
* because the custom stuff will look better
|
|
656
|
-
*/
|
|
657
|
-
@supports (-moz-appearance: none) {
|
|
658
|
-
[data-code] {
|
|
659
|
-
scrollbar-width: thin;
|
|
660
|
-
scrollbar-color: var(--diffs-bg-context) transparent;
|
|
661
|
-
padding-bottom: var(--diffs-gap-block, var(--diffs-gap-fallback));
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
[data-diffs][data-type='split'][data-overflow='wrap'] {
|
|
666
|
-
padding-block: var(--diffs-gap-block, var(--diffs-gap-fallback));
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
[data-diffs-header] ~ [data-diffs] [data-code],
|
|
670
|
-
[data-diffs-header] ~ [data-diffs][data-overflow='wrap'] {
|
|
671
|
-
padding-top: 0;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
[data-type='split'][data-overflow='wrap'] [data-code] {
|
|
675
|
-
display: contents;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
[data-line-annotation],
|
|
679
|
-
[data-no-newline],
|
|
680
|
-
[data-line] {
|
|
681
|
-
position: relative;
|
|
682
|
-
display: grid;
|
|
683
|
-
grid-template-columns: subgrid;
|
|
684
|
-
grid-column: 1 / 3;
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
[data-line-annotation][data-selected-line] {
|
|
688
|
-
background-color: unset;
|
|
689
|
-
|
|
690
|
-
&::before {
|
|
691
|
-
content: '';
|
|
692
|
-
position: sticky;
|
|
693
|
-
top: 0;
|
|
694
|
-
left: 0;
|
|
695
|
-
display: block;
|
|
696
|
-
border-right: var(--diffs-gap-style, 1px solid var(--diffs-bg));
|
|
697
|
-
background-color: var(--diffs-bg-selection-number);
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
[data-annotation-content] {
|
|
701
|
-
background-color: var(--diffs-bg-selection);
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
[data-interactive-lines] [data-line] {
|
|
706
|
-
cursor: pointer;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
[data-buffer] {
|
|
710
|
-
position: sticky;
|
|
711
|
-
left: 0;
|
|
712
|
-
grid-column: 1 / 3;
|
|
713
|
-
-webkit-user-select: none;
|
|
714
|
-
user-select: none;
|
|
715
|
-
/* We multiply by 1.414 (√2) to better approximate the diagonal repeat distance */
|
|
716
|
-
background-image: repeating-linear-gradient(
|
|
717
|
-
-45deg,
|
|
718
|
-
transparent,
|
|
719
|
-
transparent calc(3px * 1.414),
|
|
720
|
-
var(--diffs-bg-buffer) calc(3px * 1.414),
|
|
721
|
-
var(--diffs-bg-buffer) calc(4px * 1.414)
|
|
722
|
-
);
|
|
723
|
-
min-height: 1lh;
|
|
724
|
-
width: var(--diffs-column-width, auto);
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
[data-separator] {
|
|
728
|
-
grid-column: span 2;
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
[data-separator='metadata'],
|
|
732
|
-
[data-separator]:empty {
|
|
733
|
-
min-height: 4px;
|
|
734
|
-
background-color: var(--diffs-bg-separator);
|
|
735
|
-
display: grid;
|
|
736
|
-
grid-template-columns: subgrid;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
[data-separator-wrapper] {
|
|
740
|
-
-webkit-user-select: none;
|
|
741
|
-
user-select: none;
|
|
742
|
-
fill: currentColor;
|
|
743
|
-
overflow: hidden;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
[data-separator='metadata'] [data-separator-wrapper] {
|
|
747
|
-
grid-column: 2 / 3;
|
|
748
|
-
width: var(--diffs-column-content-width);
|
|
749
|
-
position: sticky;
|
|
750
|
-
left: var(--diffs-column-number-width);
|
|
751
|
-
padding: 4px 1ch;
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
[data-separator='line-info'] {
|
|
755
|
-
margin-block: var(--diffs-gap-block, var(--diffs-gap-fallback));
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
[data-separator='line-info'][data-separator-first] {
|
|
759
|
-
margin-top: 0;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
[data-separator='line-info'][data-separator-last] {
|
|
763
|
-
margin-bottom: 0;
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
[data-separator='line-info'] [data-separator-wrapper] {
|
|
767
|
-
position: sticky;
|
|
768
|
-
display: flex;
|
|
769
|
-
align-items: center;
|
|
770
|
-
gap: 2px;
|
|
771
|
-
width: auto;
|
|
772
|
-
width: calc(var(--diffs-column-width) - var(--diffs-gap-fallback));
|
|
773
|
-
border-radius: 6px;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
@media (pointer: fine) {
|
|
777
|
-
[data-separator-wrapper][data-separator-multi-button] {
|
|
778
|
-
display: grid;
|
|
779
|
-
grid-template-columns: auto minmax(0, 1fr);
|
|
780
|
-
grid-template-rows: 15px 15px;
|
|
781
|
-
|
|
782
|
-
[data-expand-button] {
|
|
783
|
-
height: 15px;
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
[data-type='split']
|
|
788
|
-
[data-additions]
|
|
789
|
-
[data-separator-wrapper][data-separator-multi-button] {
|
|
790
|
-
grid-template-columns: minmax(0, 1fr) auto;
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
[data-type='split'] [data-additions] [data-expand-button] {
|
|
794
|
-
grid-column: 2;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
[data-type='split'] [data-additions] [data-separator-content] {
|
|
798
|
-
grid-column: 1;
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
[data-expand-button],
|
|
803
|
-
[data-separator-content] {
|
|
804
|
-
display: flex;
|
|
805
|
-
align-items: center;
|
|
806
|
-
background-color: var(--diffs-bg-separator);
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
[data-expand-button] {
|
|
810
|
-
justify-content: center;
|
|
811
|
-
flex-shrink: 0;
|
|
812
|
-
cursor: pointer;
|
|
813
|
-
width: 32px;
|
|
814
|
-
height: 32px;
|
|
815
|
-
opacity: 0.65;
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
[data-hover-slot] {
|
|
819
|
-
position: absolute;
|
|
820
|
-
top: 0;
|
|
821
|
-
bottom: 0;
|
|
822
|
-
right: 0;
|
|
823
|
-
display: flex;
|
|
824
|
-
justify-content: flex-end;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
@media (pointer: fine) {
|
|
828
|
-
[data-expand-button]:hover {
|
|
829
|
-
opacity: 1;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
[data-line]:hover {
|
|
833
|
-
z-index: 2;
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
[data-expand-down] [data-icon] {
|
|
838
|
-
transform: scaleY(-1);
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
[data-separator-content] {
|
|
842
|
-
flex: 1 1 auto;
|
|
843
|
-
padding: 0 1ch;
|
|
844
|
-
height: 32px;
|
|
845
|
-
opacity: 0.65;
|
|
846
|
-
overflow: hidden;
|
|
847
|
-
justify-content: flex-start;
|
|
848
|
-
|
|
849
|
-
grid-column: 2;
|
|
850
|
-
grid-row: 1 / -1;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
[data-unmodified-lines] {
|
|
854
|
-
display: block;
|
|
855
|
-
overflow: hidden;
|
|
856
|
-
min-width: 0;
|
|
857
|
-
text-overflow: ellipsis;
|
|
858
|
-
white-space: nowrap;
|
|
859
|
-
flex: 0 1 auto;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
[data-type='split'] [data-additions] [data-separator-content] {
|
|
863
|
-
justify-content: flex-end;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
[data-type='file']
|
|
867
|
-
[data-code]
|
|
868
|
-
[data-separator='line-info']
|
|
869
|
-
[data-separator-wrapper] {
|
|
870
|
-
left: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
871
|
-
margin-left: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
872
|
-
margin-right: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
873
|
-
width: calc(
|
|
874
|
-
var(--diffs-column-width) -
|
|
875
|
-
(var(--diffs-gap-inline, var(--diffs-gap-fallback)) * 2)
|
|
876
|
-
);
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
[data-type='split']
|
|
880
|
-
[data-deletions]
|
|
881
|
-
[data-separator='line-info']
|
|
882
|
-
[data-separator-wrapper] {
|
|
883
|
-
left: var(--diffs-gap-fallback);
|
|
884
|
-
margin-left: var(--diffs-gap-fallback);
|
|
885
|
-
border-top-right-radius: 0;
|
|
886
|
-
border-bottom-right-radius: 0;
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
[data-type='split']
|
|
890
|
-
[data-additions]
|
|
891
|
-
[data-separator='line-info']
|
|
892
|
-
[data-separator-wrapper] {
|
|
893
|
-
left: 0;
|
|
894
|
-
margin-right: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
895
|
-
border-top-left-radius: 0;
|
|
896
|
-
border-bottom-left-radius: 0;
|
|
897
|
-
flex-direction: row-reverse;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
[data-line] {
|
|
901
|
-
background-color: var(--diffs-bg);
|
|
902
|
-
color: var(--diffs-fg);
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
[data-type='split'][data-overflow='wrap'] [data-deletions] {
|
|
906
|
-
[data-line-annotation],
|
|
907
|
-
[data-buffer],
|
|
908
|
-
[data-line],
|
|
909
|
-
[data-separator] {
|
|
910
|
-
grid-column: 1 / 3;
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
[data-line-annotation] {
|
|
915
|
-
min-height: var(--diffs-annotation-min-height, 0);
|
|
916
|
-
background-color: var(--diffs-bg-context);
|
|
917
|
-
z-index: 3;
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
[data-type='split'][data-overflow='wrap'] [data-additions] {
|
|
921
|
-
[data-line-annotation],
|
|
922
|
-
[data-buffer],
|
|
923
|
-
[data-line],
|
|
924
|
-
[data-separator] {
|
|
925
|
-
margin-left: 2px;
|
|
926
|
-
grid-column: 3 / 5;
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
[data-separator='custom'] {
|
|
931
|
-
display: grid;
|
|
932
|
-
grid-template-columns: subgrid;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
[data-column-content],
|
|
936
|
-
[data-column-number] {
|
|
937
|
-
position: relative;
|
|
938
|
-
padding-inline: 1ch;
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
[data-indicators='classic'] [data-column-content] {
|
|
942
|
-
padding-inline-start: 2ch;
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
[data-indicators='classic'] {
|
|
946
|
-
[data-line-type='change-addition'] [data-column-content]::before,
|
|
947
|
-
[data-line-type='change-deletion'] [data-column-content]::before {
|
|
948
|
-
display: inline-block;
|
|
949
|
-
width: 1ch;
|
|
950
|
-
height: 1lh;
|
|
951
|
-
position: absolute;
|
|
952
|
-
top: 0;
|
|
953
|
-
left: 0;
|
|
954
|
-
-webkit-user-select: none;
|
|
955
|
-
user-select: none;
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
[data-line-type='change-addition'] [data-column-content]::before {
|
|
959
|
-
content: '+';
|
|
960
|
-
color: var(--diffs-addition-base);
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
[data-line-type='change-deletion'] [data-column-content]::before {
|
|
964
|
-
content: '-';
|
|
965
|
-
color: var(--diffs-deletion-base);
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
[data-indicators='bars'] {
|
|
970
|
-
[data-line-type='change-deletion'] [data-column-number]::before,
|
|
971
|
-
[data-line-type='change-addition'] [data-column-number]::before {
|
|
972
|
-
content: '';
|
|
973
|
-
display: block;
|
|
974
|
-
width: 4px;
|
|
975
|
-
height: 100%;
|
|
976
|
-
position: absolute;
|
|
977
|
-
top: 0;
|
|
978
|
-
left: 0;
|
|
979
|
-
-webkit-user-select: none;
|
|
980
|
-
user-select: none;
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
[data-line-type='change-deletion'] [data-column-number]::before {
|
|
984
|
-
background-image: linear-gradient(
|
|
985
|
-
0deg,
|
|
986
|
-
var(--diffs-bg-deletion) 50%,
|
|
987
|
-
var(--diffs-deletion-base) 50%
|
|
988
|
-
);
|
|
989
|
-
background-repeat: repeat;
|
|
990
|
-
background-size: 2px 2px;
|
|
991
|
-
background-size: calc(1lh / round(1lh / 2px)) calc(1lh / round(1lh / 2px));
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
[data-line-type='change-addition'] [data-column-number]::before {
|
|
995
|
-
background-color: var(--diffs-addition-base);
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
[data-overflow='wrap'] [data-column-content],
|
|
1000
|
-
[data-overflow='wrap'] [data-annotation-content] {
|
|
1001
|
-
white-space: pre-wrap;
|
|
1002
|
-
word-break: break-word;
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
[data-overflow='scroll'] [data-column-content] {
|
|
1006
|
-
white-space: pre;
|
|
1007
|
-
min-height: 1lh;
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
[data-column-number] {
|
|
1011
|
-
grid-column: 1 / 2;
|
|
1012
|
-
box-sizing: content-box;
|
|
1013
|
-
text-align: right;
|
|
1014
|
-
position: sticky;
|
|
1015
|
-
left: 0;
|
|
1016
|
-
-webkit-user-select: none;
|
|
1017
|
-
user-select: none;
|
|
1018
|
-
background-color: var(--diffs-bg);
|
|
1019
|
-
color: var(--diffs-fg-number);
|
|
1020
|
-
z-index: 1;
|
|
1021
|
-
min-width: var(
|
|
1022
|
-
--diffs-min-number-column-width,
|
|
1023
|
-
var(--diffs-min-number-column-width-default, 3ch)
|
|
1024
|
-
);
|
|
1025
|
-
padding-left: 2ch;
|
|
1026
|
-
border-right: var(--diffs-gap-style, 1px solid var(--diffs-bg));
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
[data-disable-line-numbers] {
|
|
1030
|
-
&[data-indicators='bars'] [data-column-number] {
|
|
1031
|
-
min-width: 4px;
|
|
1032
|
-
border-right: var(--diffs-gap-style, 1px solid var(--diffs-bg));
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
[data-column-number] {
|
|
1036
|
-
border-right: none;
|
|
1037
|
-
min-width: 0;
|
|
1038
|
-
padding: 0;
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
[data-line-number-content] {
|
|
1042
|
-
display: none;
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
[data-hover-slot] {
|
|
1046
|
-
right: unset;
|
|
1047
|
-
left: 0;
|
|
1048
|
-
justify-content: flex-start;
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
&[data-indicators='bars'] [data-hover-slot] {
|
|
1052
|
-
/* Using 5px here because theres a 1px separator after the bar */
|
|
1053
|
-
left: 5px;
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
[data-interactive-line-numbers] [data-column-number] {
|
|
1058
|
-
cursor: pointer;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
[data-diff-span] {
|
|
1062
|
-
border-radius: 3px;
|
|
1063
|
-
-webkit-box-decoration-break: clone;
|
|
1064
|
-
box-decoration-break: clone;
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
[data-line-type='change-addition'] {
|
|
1068
|
-
[data-column-number] {
|
|
1069
|
-
color: var(
|
|
1070
|
-
--diffs-fg-number-addition-override,
|
|
1071
|
-
var(--diffs-addition-base)
|
|
1072
|
-
);
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
[data-diff-span] {
|
|
1076
|
-
background-color: var(--diffs-bg-addition-emphasis);
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
[data-line-type='change-deletion'] {
|
|
1081
|
-
[data-column-number] {
|
|
1082
|
-
color: var(
|
|
1083
|
-
--diffs-fg-number-deletion-override,
|
|
1084
|
-
var(--diffs-deletion-base)
|
|
1085
|
-
);
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
[data-diff-span] {
|
|
1089
|
-
background-color: var(--diffs-bg-deletion-emphasis);
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
[data-background] [data-line-type='change-addition'] {
|
|
1094
|
-
--diffs-line-bg: var(--diffs-bg-addition);
|
|
1095
|
-
|
|
1096
|
-
[data-column-number] {
|
|
1097
|
-
background-color: var(--diffs-bg-addition-number);
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
[data-background] [data-line-type='change-deletion'] {
|
|
1102
|
-
--diffs-line-bg: var(--diffs-bg-deletion);
|
|
1103
|
-
|
|
1104
|
-
[data-column-number] {
|
|
1105
|
-
background-color: var(--diffs-bg-deletion-number);
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
[data-line-type='context-expanded'] {
|
|
1110
|
-
--diffs-line-bg: var(--diffs-bg-context);
|
|
1111
|
-
|
|
1112
|
-
[data-column-number] {
|
|
1113
|
-
background-color: var(--diffs-bg-context);
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
/* By wrapping hovers in a pointer: fine, we ensure that mobile devices don't
|
|
1118
|
-
* require a double click */
|
|
1119
|
-
@media (pointer: fine) {
|
|
1120
|
-
[data-line]:hover:not([data-selected-line]) {
|
|
1121
|
-
[data-column-number],
|
|
1122
|
-
[data-column-content] {
|
|
1123
|
-
background-color: var(--diffs-bg-hover);
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
[data-background] [data-line]:hover:not([data-selected-line]) {
|
|
1128
|
-
&[data-line-type='change-deletion'] [data-column-number],
|
|
1129
|
-
&[data-line-type='change-deletion'] [data-column-content] {
|
|
1130
|
-
background-color: var(--diffs-bg-deletion-hover);
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
&[data-line-type='change-addition'] [data-column-number],
|
|
1134
|
-
&[data-line-type='change-addition'] [data-column-content] {
|
|
1135
|
-
background-color: var(--diffs-bg-addition-hover);
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
[data-diffs-header] {
|
|
1141
|
-
display: flex;
|
|
1142
|
-
flex-direction: row;
|
|
1143
|
-
justify-content: space-between;
|
|
1144
|
-
align-items: center;
|
|
1145
|
-
gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1146
|
-
min-height: calc(
|
|
1147
|
-
1lh + (var(--diffs-gap-block, var(--diffs-gap-fallback)) * 3)
|
|
1148
|
-
);
|
|
1149
|
-
padding-inline: 16px;
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
[data-header-content] {
|
|
1153
|
-
display: flex;
|
|
1154
|
-
flex-direction: row;
|
|
1155
|
-
align-items: center;
|
|
1156
|
-
gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1157
|
-
min-width: 0;
|
|
1158
|
-
white-space: nowrap;
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
[data-header-content] [data-prev-name],
|
|
1162
|
-
[data-header-content] [data-title] {
|
|
1163
|
-
direction: rtl;
|
|
1164
|
-
overflow: hidden;
|
|
1165
|
-
text-overflow: ellipsis;
|
|
1166
|
-
min-width: 0;
|
|
1167
|
-
white-space: nowrap;
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
[data-prev-name] {
|
|
1171
|
-
opacity: 0.7;
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
[data-rename-icon] {
|
|
1175
|
-
fill: currentColor;
|
|
1176
|
-
flex-shrink: 0;
|
|
1177
|
-
flex-grow: 0;
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
[data-diffs-header] [data-metadata] {
|
|
1181
|
-
display: flex;
|
|
1182
|
-
align-items: center;
|
|
1183
|
-
gap: 1ch;
|
|
1184
|
-
white-space: nowrap;
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
[data-diffs-header] [data-additions-count] {
|
|
1188
|
-
font-family: var(--diffs-font-family, var(--diffs-font-fallback));
|
|
1189
|
-
color: var(--diffs-addition-base);
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
[data-diffs-header] [data-deletions-count] {
|
|
1193
|
-
font-family: var(--diffs-font-family, var(--diffs-font-fallback));
|
|
1194
|
-
color: var(--diffs-deletion-base);
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
[data-no-newline] {
|
|
1198
|
-
-webkit-user-select: none;
|
|
1199
|
-
user-select: none;
|
|
1200
|
-
|
|
1201
|
-
[data-column-content] {
|
|
1202
|
-
opacity: 0.6;
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
[data-annotation-content] {
|
|
1207
|
-
position: sticky;
|
|
1208
|
-
left: var(--diffs-column-number-width, 0);
|
|
1209
|
-
grid-column: 2 / -1;
|
|
1210
|
-
width: var(--diffs-column-content-width, auto);
|
|
1211
|
-
align-self: flex-start;
|
|
1212
|
-
z-index: 2;
|
|
1213
|
-
height: 100%;
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
/* Undo some of the stuff that the 'pre' tag does */
|
|
1217
|
-
[data-annotation-slot] {
|
|
1218
|
-
text-wrap-mode: wrap;
|
|
1219
|
-
word-break: normal;
|
|
1220
|
-
white-space-collapse: collapse;
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
[data-change-icon] {
|
|
1224
|
-
fill: currentColor;
|
|
1225
|
-
flex-shrink: 0;
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
[data-change-icon='change'],
|
|
1229
|
-
[data-change-icon='rename-pure'],
|
|
1230
|
-
[data-change-icon='rename-changed'] {
|
|
1231
|
-
color: var(--diffs-modified-base);
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
[data-change-icon='new'] {
|
|
1235
|
-
color: var(--diffs-addition-base);
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
[data-change-icon='deleted'] {
|
|
1239
|
-
color: var(--diffs-deletion-base);
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
[data-change-icon='file'] {
|
|
1243
|
-
opacity: 0.6;
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
/* Line selection highlighting */
|
|
1247
|
-
[data-line-type='context'][data-selected-line] {
|
|
1248
|
-
[data-column-number] {
|
|
1249
|
-
color: var(--diffs-selection-number-fg);
|
|
1250
|
-
background-color: var(--diffs-bg-selection-number);
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
[data-column-content] {
|
|
1254
|
-
background-color: var(--diffs-bg-selection);
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
[data-line-type='context-expanded'],
|
|
1259
|
-
[data-line-type='change-addition'],
|
|
1260
|
-
[data-line-type='change-deletion'] {
|
|
1261
|
-
&[data-selected-line] {
|
|
1262
|
-
[data-column-content] {
|
|
1263
|
-
background-color: light-dark(
|
|
1264
|
-
color-mix(
|
|
1265
|
-
in lab,
|
|
1266
|
-
var(--diffs-line-bg, var(--diffs-bg)) 82%,
|
|
1267
|
-
var(--diffs-selection-base)
|
|
1268
|
-
),
|
|
1269
|
-
color-mix(
|
|
1270
|
-
in lab,
|
|
1271
|
-
var(--diffs-line-bg, var(--diffs-bg)) 75%,
|
|
1272
|
-
var(--diffs-selection-base)
|
|
1273
|
-
)
|
|
1274
|
-
);
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
[data-column-number] {
|
|
1278
|
-
color: var(--diffs-selection-number-fg);
|
|
1279
|
-
background-color: light-dark(
|
|
1280
|
-
color-mix(
|
|
1281
|
-
in lab,
|
|
1282
|
-
var(--diffs-line-bg, var(--diffs-bg)) 75%,
|
|
1283
|
-
var(--diffs-selection-base)
|
|
1284
|
-
),
|
|
1285
|
-
color-mix(
|
|
1286
|
-
in lab,
|
|
1287
|
-
var(--diffs-line-bg, var(--diffs-bg)) 60%,
|
|
1288
|
-
var(--diffs-selection-base)
|
|
1289
|
-
)
|
|
1290
|
-
);
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
[data-error-wrapper] {
|
|
1296
|
-
overflow: auto;
|
|
1297
|
-
padding: var(--diffs-gap-block, var(--diffs-gap-fallback))
|
|
1298
|
-
var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1299
|
-
max-height: 400px;
|
|
1300
|
-
scrollbar-width: none;
|
|
1301
|
-
|
|
1302
|
-
[data-error-message] {
|
|
1303
|
-
font-weight: bold;
|
|
1304
|
-
font-size: 18px;
|
|
1305
|
-
color: var(--diffs-deletion-base);
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
[data-error-stack] {
|
|
1309
|
-
color: var(--diffs-fg-number);
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
`,qU=`@layer base, theme, unsafe;`;function JU(e){return`${qU}
|
|
1314
|
-
@layer unsafe {
|
|
1315
|
-
${e}
|
|
1316
|
-
}`}function YU(e,t){if(t==null)return;let n=e.shadowRoot??e.attachShadow({mode:`open`});n.innerHTML===``&&(n.innerHTML=t)}function XU({diffIndicators:e,disableBackground:t,disableLineNumbers:n,overflow:r,pre:i,split:a,themeStyles:o,themeType:s,totalLines:c}){switch(s===`system`?delete i.dataset.themeType:i.dataset.themeType=s,e){case`bars`:case`classic`:i.dataset.indicators=e;break;case`none`:delete i.dataset.indicators;break}return n?i.dataset.disableLineNumbers=``:delete i.dataset.disableLineNumbers,t?delete i.dataset.background:i.dataset.background=``,i.dataset.type=a?`split`:`file`,i.dataset.overflow=r,i.dataset.diffs=``,i.tabIndex=0,i.style=o,i.style.setProperty(`--diffs-min-number-column-width-default`,`${`${c}`.length}ch`),i}if(typeof HTMLElement<`u`&&customElements.get(`diffs-container`)==null){let e;class t extends HTMLElement{constructor(){if(super(),this.shadowRoot!=null)return;let t=this.attachShadow({mode:`open`});e??(e=new CSSStyleSheet,e.replaceSync(KU)),t.adoptedStyleSheets=[e]}}customElements.define(NN,t)}var ZU=class{isDeletionsScrolling=!1;isAdditionsScrolling=!1;timeoutId=-1;codeDeletions;codeAdditions;enabled=!1;cleanUp(){this.enabled&&=(this.codeDeletions?.removeEventListener(`scroll`,this.handleDeletionsScroll),this.codeAdditions?.removeEventListener(`scroll`,this.handleAdditionsScroll),clearTimeout(this.timeoutId),this.codeDeletions=void 0,this.codeAdditions=void 0,!1)}setup(e,t,n){if(t==null||n==null)for(let r of e.children??[])r instanceof HTMLElement&&(`deletions`in r.dataset?t=r:`additions`in r.dataset&&(n=r));if(n==null||t==null){this.cleanUp();return}this.codeDeletions!==t&&(this.codeDeletions?.removeEventListener(`scroll`,this.handleDeletionsScroll),this.codeDeletions=t,t.addEventListener(`scroll`,this.handleDeletionsScroll,{passive:!0})),this.codeAdditions!==n&&(this.codeAdditions?.removeEventListener(`scroll`,this.handleAdditionsScroll),this.codeAdditions=n,n.addEventListener(`scroll`,this.handleAdditionsScroll,{passive:!0})),this.enabled=!0}handleDeletionsScroll=()=>{this.isAdditionsScrolling||(this.isDeletionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isDeletionsScrolling=!1},300),this.codeAdditions?.scrollTo({left:this.codeDeletions?.scrollLeft}))};handleAdditionsScroll=()=>{this.isDeletionsScrolling||(this.isAdditionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isAdditionsScrolling=!1},300),this.codeDeletions?.scrollTo({left:this.codeAdditions?.scrollLeft}))}};function QU(e){return mU({tagName:`div`,properties:{"data-buffer":``,style:`grid-row: span ${e};min-height:calc(${e} * 1lh)`}})}function $U(e){return mU({tagName:`div`,children:[mU({tagName:`span`,properties:{"data-column-number":``}}),mU({tagName:`span`,children:[pU(`No newline at end of file`)],properties:{"data-column-content":``}})],properties:{"data-no-newline":``,"data-line-type":e}})}function eW(e){return mU({tagName:`div`,children:[hU({name:e===`both`?`diffs-icon-expand-all`:`diffs-icon-expand`,properties:{"data-icon":``}})],properties:{"data-expand-button":``,"data-expand-both":e===`both`?``:void 0,"data-expand-up":e===`up`?``:void 0,"data-expand-down":e===`down`?``:void 0}})}function tW({type:e,content:t,expandIndex:n,chunked:r=!1,slotName:i,isFirstHunk:a,isLastHunk:o}){let s=[];if(e===`metadata`&&t!=null&&s.push(mU({tagName:`div`,children:[pU(t)],properties:{"data-separator-wrapper":``}})),e===`line-info`&&t!=null){let e=[];n!=null&&(r?(a||e.push(eW(`up`)),o||e.push(eW(`down`))):e.push(eW(!a&&!o?`both`:a?`down`:`up`))),e.push(mU({tagName:`div`,children:[mU({tagName:`span`,children:[pU(t)],properties:{"data-unmodified-lines":``}})],properties:{"data-separator-content":``}})),s.push(mU({tagName:`div`,children:e,properties:{"data-separator-wrapper":``,"data-separator-multi-button":e.length>2?``:void 0}}))}return e===`custom`&&i!=null&&s.push(mU({tagName:`slot`,properties:{name:i}})),mU({tagName:`div`,children:s,properties:{"data-separator":s.length===0?``:e,"data-expand-index":n,"data-separator-first":a?``:void 0,"data-separator-last":o?``:void 0}})}function nW(e,t){return`hunk-separator-${e}-${t}`}function rW(e){let t=e[e.length-1];return t==null?0:Math.max(t.additionStart+t.additionCount,t.deletionStart+t.deletionCount)}var iW=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}},aW=new class extends iW{};function oW(e,t,n){return aW.diff(e,t,n)}function sW(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function cW(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function lW(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function uW(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function dW(e,t){return lW(e,t,``)}function fW(e,t){return uW(e,t,``)}function pW(e,t){return t.slice(0,mW(e,t))}function mW(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function hW(e){let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function gW(e){let t=e.match(/^\s*/);return t?t[0]:``}var _W=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,vW=RegExp(`[${_W}]+|\\s+|[^${_W}]`,`ug`);new class extends iW{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=[];for(let t of Array.from(r.segment(e))){let e=t.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}}else n=e.match(vW)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&yW(n,i,r,e),n=e,r=null,i=null)}),(r||i)&&yW(n,i,r,null),e}};function yW(e,t,n,r){if(t&&n){let i=gW(t.value),a=hW(t.value),o=gW(n.value),s=hW(n.value);if(e){let r=sW(i,o);e.value=uW(e.value,o,r),t.value=dW(t.value,r),n.value=dW(n.value,r)}if(r){let e=cW(a,s);r.value=lW(r.value,s,e),t.value=fW(t.value,e),n.value=fW(n.value,e)}}else if(n){if(e){let e=gW(n.value);n.value=n.value.substring(e.length)}if(r){let e=gW(r.value);r.value=r.value.substring(e.length)}}else if(e&&r){let n=gW(r.value),i=gW(t.value),a=hW(t.value),o=sW(n,i);t.value=dW(t.value,o);let s=cW(dW(n,o),a);t.value=fW(t.value,s),r.value=lW(r.value,n,s),e.value=uW(e.value,n,n.slice(0,n.length-s.length))}else if(r){let e=gW(r.value),n=pW(hW(t.value),e);t.value=fW(t.value,n)}else if(e){let n=pW(hW(e.value),gW(t.value));t.value=dW(t.value,n)}}var bW=new class extends iW{tokenize(e){let t=RegExp(`(\\r?\\n)|[${_W}]+|[^\\S\\n\\r]+|[^${_W}]`,`ug`);return e.match(t)||[]}};function xW(e,t,n){return bW.diff(e,t,n)}var SW=new class extends iW{constructor(){super(...arguments),this.tokenize=wW}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
1317
|
-
`))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
|
|
1318
|
-
`))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
1319
|
-
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
1320
|
-
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function CW(e,t,n){return SW.diff(e,t,n)}function wW(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
1321
|
-
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function TW(e){return e==`.`||e==`!`||e==`?`}new class extends iW{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(TW(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends iW{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends iW{constructor(){super(...arguments),this.tokenize=wW}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(EW(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function EW(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=EW(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=EW(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}new class extends iW{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};var DW={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function OW(e,t,n,r,i,a,o){let s;s=o?typeof o==`function`?{callback:o}:o:{},s.context===void 0&&(s.context=4);let c=s.context;if(s.newlineIsToken)throw Error(`newlineIsToken may not be used with patch-generation functions, only with diffing functions`);if(s.callback){let{callback:e}=s;CW(n,r,Object.assign(Object.assign({},s),{callback:t=>{e(l(t))}}))}else return l(CW(n,r,s));function l(n){if(!n)return;n.push({value:``,lines:[]});function r(e){return e.map(function(e){return` `+e})}let o=[],s=0,l=0,u=[],d=1,f=1;for(let e=0;e<n.length;e++){let t=n[e],i=t.lines||jW(t.value);if(t.lines=i,t.added||t.removed){if(!s){let t=n[e-1];s=d,l=f,t&&(u=c>0?r(t.lines.slice(-c)):[],s-=u.length,l-=u.length)}for(let e of i)u.push((t.added?`+`:`-`)+e);t.added?f+=i.length:d+=i.length}else{if(s)if(i.length<=c*2&&e<n.length-2)for(let e of r(i))u.push(e);else{let e=Math.min(i.length,c);for(let t of r(i.slice(0,e)))u.push(t);let t={oldStart:s,oldLines:d-s+e,newStart:l,newLines:f-l+e,lines:u};o.push(t),s=0,l=0,u=[]}d+=i.length,f+=i.length}}for(let e of o)for(let t=0;t<e.lines.length;t++)e.lines[t].endsWith(`
|
|
1322
|
-
`)?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,`\`),t++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:a,hunks:o}}}function kW(e,t){if(t||=DW,Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders)throw Error(`Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)`);return e.map(e=>kW(e,t)).join(`
|
|
1323
|
-
`)}let n=[];t.includeIndex&&e.oldFileName==e.newFileName&&n.push(`Index: `+e.oldFileName),t.includeUnderline&&n.push(`===================================================================`),t.includeFileHeaders&&(n.push(`--- `+e.oldFileName+(e.oldHeader===void 0?``:` `+e.oldHeader)),n.push(`+++ `+e.newFileName+(e.newHeader===void 0?``:` `+e.newHeader)));for(let t=0;t<e.hunks.length;t++){let r=e.hunks[t];r.oldLines===0&&--r.oldStart,r.newLines===0&&--r.newStart,n.push(`@@ -`+r.oldStart+`,`+r.oldLines+` +`+r.newStart+`,`+r.newLines+` @@`);for(let e of r.lines)n.push(e)}return n.join(`
|
|
1324
|
-
`)+`
|
|
1325
|
-
`}function AW(e,t,n,r,i,a,o){if(typeof o==`function`&&(o={callback:o}),o?.callback){let{callback:s}=o;OW(e,t,n,r,i,a,Object.assign(Object.assign({},o),{callback:e=>{s(e?kW(e,o.headerOptions):void 0)}}))}else{let s=OW(e,t,n,r,i,a,o);return s?kW(s,o?.headerOptions):void 0}}function jW(e){let t=e.endsWith(`
|
|
1326
|
-
`),n=e.split(`
|
|
1327
|
-
`).map(e=>e+`
|
|
1328
|
-
`);return t?n.pop():n.push(n.pop().slice(0,-1)),n}function MW({line:e,spanStart:t,spanLength:n}){return{start:{line:e,character:t},end:{line:e,character:t+n},properties:{"data-diff-span":``},alwaysWrap:!0}}function NW({item:e,arr:t,enableJoin:n,isNeutral:r=!1,isLastItem:i=!1}){let a=t[t.length-1];if(a==null||i||!n){t.push([+!r,e.value]);return}let o=a[0]===0;if(r===o||r&&e.value.length===1&&!o){a[1]+=e.value;return}t.push([+!r,e.value])}function PW(e,t,n,r=!1){let i=(()=>{let e=n.theme??GN;if(typeof e==`string`)return t.getTheme(e).type})(),a=IU({theme:n.theme,highlighter:t});if(e.newLines!=null&&e.oldLines!=null){let{oldContent:o,newContent:s,oldInfo:c,newInfo:l,oldDecorations:u,newDecorations:d}=IW({hunks:e.hunks,oldLines:e.oldLines,newLines:e.newLines,lineDiffType:n.lineDiffType});return{code:LW({oldFile:{name:e.prevName??e.name,contents:o},oldInfo:c,oldDecorations:u,newFile:{name:e.name,contents:s},newInfo:l,newDecorations:d,highlighter:t,options:n,languageOverride:r?`text`:e.lang}),themeStyles:a,baseThemeType:i}}let o=[],s=0,c=0;for(let i of e.hunks){let{oldContent:a,newContent:l,oldInfo:u,newInfo:d,oldDecorations:f,newDecorations:p,splitLineIndex:m,unifiedLineIndex:h}=IW({hunks:[i],splitLineIndex:s,unifiedLineIndex:c,lineDiffType:n.lineDiffType}),g={name:e.prevName??e.name,contents:a},_={name:e.name,contents:l};o.push(LW({oldFile:g,oldInfo:u,oldDecorations:f,newFile:_,newInfo:d,newDecorations:p,highlighter:t,options:n,languageOverride:r?`text`:e.lang})),s=m,c=h}return{code:(()=>{if(o.length<=1){let e=o[0]??{oldLines:[],newLines:[]};if(e.newLines.length===0||e.oldLines.length===0)return e}return{hunks:o}})(),themeStyles:a,baseThemeType:i}}function FW({oldLine:e,newLine:t,oldLineIndex:n,newLineIndex:r,oldDecorations:i,newDecorations:a,lineDiffType:o}){if(e==null||t==null||o===`none`)return;e=OU(e),t=OU(t);let s=o===`char`?oW(e,t):xW(e,t),c=[],l=[],u=o===`word-alt`;for(let e of s){let t=e===s[s.length-1];!e.added&&!e.removed?(NW({item:e,arr:c,enableJoin:u,isNeutral:!0,isLastItem:t}),NW({item:e,arr:l,enableJoin:u,isNeutral:!0,isLastItem:t})):e.removed?NW({item:e,arr:c,enableJoin:u,isLastItem:t}):NW({item:e,arr:l,enableJoin:u,isLastItem:t})}let d=0;for(let e of c)e[0]===1&&i.push(MW({line:n-1,spanStart:d,spanLength:e[1].length})),d+=e[1].length;d=0;for(let e of l)e[0]===1&&a.push(MW({line:r-1,spanStart:d,spanLength:e[1].length})),d+=e[1].length}function IW({hunks:e,oldLines:t,newLines:n,splitLineIndex:r=0,unifiedLineIndex:i=0,lineDiffType:a}){let o={},s={},c=[],l=[],u=1,d=1,f=1,p=1,m=``,h=``;for(let g of e){for(;t!=null&&n!=null&&u<g.additionStart&&d<g.deletionStart;)o[d]={type:`context-expanded`,lineNumber:p,altLineNumber:f,lineIndex:`${i},${r}`},s[u]={type:`context-expanded`,lineNumber:f,altLineNumber:p,lineIndex:`${i},${r}`},m+=t[d-1],h+=n[u-1],d++,u++,p++,f++,r++,i++;p=g.deletionStart,f=g.additionStart;for(let e of g.hunkContent)if(e.type===`context`)for(let t of e.lines)o[d]={type:`context`,lineNumber:p,altLineNumber:f,lineIndex:`${i},${r}`},s[u]={type:`context`,lineNumber:f,altLineNumber:p,lineIndex:`${i},${r}`},m+=t,h+=t,d++,u++,f++,p++,r++,i++;else{let t=Math.max(e.additions.length,e.deletions.length),n=0,g=i;for(;n<t;){let t=e.deletions[n],i=e.additions[n];FW({newLine:i,oldLine:t,oldLineIndex:d,newLineIndex:u,oldDecorations:c,newDecorations:l,lineDiffType:a}),t!=null&&(o[d]={type:`change-deletion`,lineNumber:p,lineIndex:`${g},${r}`},m+=t,d++,p++),i!=null&&(s[u]={type:`change-addition`,lineNumber:f,lineIndex:`${g+e.deletions.length},${r}`},h+=i,u++,f++),r++,g++,n++}i+=e.additions.length+e.deletions.length}if(!(t==null||n==null||g!==e[e.length-1]))for(;d<=t.length||u<=t.length;){let e=t[d-1],a=n[u-1];if(e==null&&a==null)break;e!=null&&(o[d]={type:`context-expanded`,lineNumber:p,altLineNumber:f,lineIndex:`${i},${r}`},m+=e,d++,p++),a!=null&&(s[u]={type:`context-expanded`,lineNumber:f,altLineNumber:p,lineIndex:`${i},${r}`},h+=a,u++,f++),r++,i++}}return{oldContent:m,newContent:h,oldInfo:o,newInfo:s,oldDecorations:c,newDecorations:l,splitLineIndex:r,unifiedLineIndex:i}}function LW({oldFile:e,newFile:t,oldInfo:n,newInfo:r,highlighter:i,oldDecorations:a,newDecorations:o,languageOverride:s,options:{theme:c=GN,...l}}){let u=s??TU(e.name),d=s??TU(t.name),{state:f,transformers:p}=MU(),m=typeof c==`string`?{...l,lang:`text`,theme:c,transformers:p,decorations:void 0,defaultColor:!1,cssVariablePrefix:FU(`token`)}:{...l,lang:`text`,themes:c,transformers:p,decorations:void 0,defaultColor:!1,cssVariablePrefix:FU(`token`)};return{oldLines:e.contents===``?[]:(m.lang=u,f.lineInfo=n,m.decorations=a,RU(i.codeToHast(OU(e.contents),m))),newLines:t.contents===``?[]:(m.lang=d,m.decorations=o,f.lineInfo=r,RU(i.codeToHast(OU(t.contents),m)))}}var RW={fromStart:0,fromEnd:0},zW=class{highlighter;diff;expandedHunks=new Map;deletionAnnotations={};additionAnnotations={};computedLang=`text`;renderCache;constructor(e={theme:GN},t,n){this.options=e,this.onRenderUpdate=t,this.workerManager=n,n?.isWorkingPool()!==!0&&(this.highlighter=uU(e.theme??GN)?sU():void 0)}cleanUp(){this.highlighter=void 0,this.diff=void 0,this.renderCache=void 0,this.workerManager=void 0,this.onRenderUpdate=void 0}setOptions(e){this.options=e}mergeOptions(e){this.options={...this.options,...e}}setThemeType(e){this.getOptionsWithDefaults().themeType!==e&&this.mergeOptions({themeType:e})}expandHunk(e,t){let{expansionLineCount:n}=this.getOptionsWithDefaults(),r=this.expandedHunks.get(e)??{fromStart:0,fromEnd:0};(t===`up`||t===`both`)&&(r.fromStart+=n),(t===`down`||t===`both`)&&(r.fromEnd+=n),this.expandedHunks.set(e,r)}setLineAnnotations(e){this.additionAnnotations={},this.deletionAnnotations={};for(let t of e){let e=(()=>{switch(t.side){case`deletions`:return this.deletionAnnotations;case`additions`:return this.additionAnnotations}})(),n=e[t.lineNumber]??[];e[t.lineNumber]=n,n.push(t)}}getOptionsWithDefaults(){let{diffIndicators:e=`bars`,diffStyle:t=`split`,disableBackground:n=!1,disableFileHeader:r=!1,disableLineNumbers:i=!1,expandUnchanged:a=!1,expansionLineCount:o=100,hunkSeparators:s=`line-info`,lineDiffType:c=`word-alt`,maxLineDiffLength:l=1e3,overflow:u=`scroll`,theme:d=GN,themeType:f=`system`,tokenizeMaxLineLength:p=1e3,useCSSClasses:m=!1}=this.options;return{diffIndicators:e,diffStyle:t,disableBackground:n,disableFileHeader:r,disableLineNumbers:i,expandUnchanged:a,expansionLineCount:o,hunkSeparators:s,lineDiffType:c,maxLineDiffLength:l,overflow:u,theme:this.workerManager?.getDiffRenderOptions().theme??d,themeType:f,tokenizeMaxLineLength:p,useCSSClasses:m}}async initializeHighlighter(){return this.highlighter=await oU(EU(this.computedLang,this.options)),this.highlighter}hydrate(e){if(e==null)return;this.diff=e;let{options:t}=this.getRenderOptions(e),n=this.workerManager?.getDiffResultCache(e);n!=null&&!BW(t,n.options)&&(n=void 0),this.renderCache??={diff:e,highlighted:!0,options:t,result:n?.result},this.workerManager?.isWorkingPool()===!0&&this.renderCache.result==null?this.workerManager.highlightDiffAST(this,this.diff):this.asyncHighlight(e).then(({result:t,options:n})=>{this.onHighlightSuccess(e,t,n)})}getRenderOptions(e){let t=(()=>{if(this.workerManager?.isWorkingPool()===!0)return this.workerManager.getDiffRenderOptions();let{theme:e,tokenizeMaxLineLength:t,lineDiffType:n}=this.getOptionsWithDefaults();return{theme:e,tokenizeMaxLineLength:t,lineDiffType:n}})();this.getOptionsWithDefaults();let{renderCache:n}=this;return n?.result==null||e!==n.diff||!BW(t,n.options)?{options:t,forceRender:!0}:{options:t,forceRender:!1}}renderDiff(e=this.renderCache?.diff){if(e==null)return;let t=this.workerManager?.getDiffResultCache(e);t!=null&&this.renderCache==null&&(this.renderCache={diff:e,highlighted:!0,...t});let{options:n,forceRender:r}=this.getRenderOptions(e);if(this.renderCache??={diff:e,highlighted:!1,options:n,result:void 0},this.workerManager?.isWorkingPool()===!0)this.renderCache.result??=this.workerManager.getPlainDiffAST(e),(!this.renderCache.highlighted||r)&&this.workerManager.highlightDiffAST(this,e);else{this.computedLang=e.lang??TU(e.name);let t=this.highlighter!=null&&uU(n.theme),i=this.highlighter!=null&&aP(this.computedLang);if(this.highlighter!=null&&t&&(r||!this.renderCache.highlighted&&i||this.renderCache.result==null)){let{result:t,options:n}=this.renderDiffWithHighlighter(e,this.highlighter,!i);this.renderCache={diff:e,options:n,highlighted:i,result:t}}(!t||!i)&&this.asyncHighlight(e).then(({result:t,options:n})=>{this.onHighlightSuccess(e,t,n)})}return this.renderCache.result==null?void 0:this.processDiffResult(this.renderCache.diff,this.renderCache.result)}async asyncRender(e){let{result:t}=await this.asyncHighlight(e);return this.processDiffResult(e,t)}createPreElement(e,t,n,r){let{diffIndicators:i,disableBackground:a,disableLineNumbers:o,overflow:s,themeType:c}=this.getOptionsWithDefaults();return SU({diffIndicators:i,disableBackground:a,disableLineNumbers:o,overflow:s,themeStyles:n,split:e,themeType:r??c,totalLines:t})}async asyncHighlight(e){this.computedLang=e.lang??TU(e.name);let t=this.highlighter!=null&&uU(this.options.theme??GN),n=this.highlighter!=null&&aP(this.computedLang);return(this.highlighter==null||!t||!n)&&(this.highlighter=await this.initializeHighlighter()),this.renderDiffWithHighlighter(e,this.highlighter)}renderDiffWithHighlighter(e,t,n=!1){let{options:r}=this.getRenderOptions(e);return{result:PW(e,t,r,n),options:r}}onHighlightSuccess(e,t,n){if(this.renderCache==null)return;let r=this.renderCache.diff!==e||!this.renderCache.highlighted||!BW(this.renderCache.options,n);this.renderCache={diff:e,options:n,highlighted:!0,result:t},r&&this.onRenderUpdate?.()}onHighlightError(e){console.error(e)}processDiffResult(e,{code:t,themeStyles:n,baseThemeType:r}){let{diffStyle:i,disableFileHeader:a}=this.getOptionsWithDefaults();this.diff=e;let o=i===`unified`,s=[],c=[],l=[],u=0,d=[],f,p=0;for(let n of e.hunks)p+=n.collapsedBefore,p=this.renderHunks({ast:t,hunk:n,prevHunk:f,hunkIndex:u,isLastHunk:u===e.hunks.length-1,additionsAST:s,deletionsAST:c,unifiedAST:l,hunkData:d,lineIndex:p}),u++,f=n;let m=Math.max(rW(e.hunks),e.newLines?.length??0,e.oldLines?.length??0);s=!o&&(t.hunks!=null||t.newLines.length>0)?s:void 0,c=!o&&(t.hunks!=null||t.oldLines.length>0)?c:void 0,l=l.length>0?l:void 0;let h=this.createPreElement(c!=null&&s!=null,m,n,r);return{additionsAST:s,deletionsAST:c,unifiedAST:l,hunkData:d,preNode:h,themeStyles:n,baseThemeType:r,headerElement:a?void 0:this.renderHeader(this.diff,n,r),totalLines:m,css:``}}renderFullAST(e,t=[]){return e.unifiedAST!=null&&t.push(mU({tagName:`code`,children:e.unifiedAST,properties:{"data-code":``,"data-unified":``}})),e.deletionsAST!=null&&t.push(mU({tagName:`code`,children:e.deletionsAST,properties:{"data-code":``,"data-deletions":``}})),e.additionsAST!=null&&t.push(mU({tagName:`code`,children:e.additionsAST,properties:{"data-code":``,"data-additions":``}})),{...e.preNode,children:t}}renderFullHTML(e,t=[]){return sL(this.renderFullAST(e,t))}renderPartialHTML(e,t){return sL(t==null?e:mU({tagName:`code`,children:e,properties:{"data-code":``,[`data-${t}`]:``}}))}renderCollapsedHunks({ast:e,hunkData:t,hunkIndex:n,hunkSpecs:r,isFirstHunk:i,isLastHunk:a,rangeSize:o,lineIndex:s,additionLineNumber:c,deletionLineNumber:l,unifiedAST:u,deletionsAST:d,additionsAST:f}){if(o<=0)return;let{hunkSeparators:p,expandUnchanged:m,diffStyle:h,expansionLineCount:g}=this.getOptionsWithDefaults(),_=e.hunks==null&&e.newLines.length>0&&e.oldLines.length>0,v=this.expandedHunks.get(n)??RW,y=o>g,b=Math.max(m?0:o-(v.fromEnd+v.fromStart),0),x=({type:e,linesAST:o})=>{if(p===`line-info`||p===`custom`){let r=nW(e,n);o.push(tW({type:p,content:VW(b),expandIndex:_?n:void 0,chunked:y,slotName:r,isFirstHunk:i,isLastHunk:a})),t.push({slotName:r,hunkIndex:n,lines:b,type:e,expandable:_?{up:_&&!i,down:_,chunked:y}:void 0})}else p===`metadata`&&r!=null?o.push(tW({type:`metadata`,content:r,isFirstHunk:i,isLastHunk:a})):p===`simple`&&n>0&&o.push(tW({type:`simple`,isFirstHunk:i,isLastHunk:!1}))},S=({rangeLen:t,fromStart:r})=>{if(e.newLines==null||e.oldLines==null)return;let i=a?0:r?o:t,p=l-i,m=c-i,g=s-i;for(let r=0;r<t;r++){let t=e.oldLines[p],r=e.newLines[m];if(t==null||r==null)throw console.error({aLineNumber:m,dLineNumber:p,ast:e}),Error(`DiffHunksRenderer.renderHunks prefill context invalid. Must include data for old and new lines`);p++,m++,h===`unified`?this.pushLineWithAnnotation({newLine:r,unifiedAST:u,unifiedSpan:this.getAnnotations(`unified`,p,m,n,g)}):this.pushLineWithAnnotation({newLine:r,oldLine:t,additionsAST:f,deletionsAST:d,...this.getAnnotations(`split`,p,m,n,g)}),g++}};_&&S({rangeLen:Math.min(b===0||m?o:v.fromStart,o),fromStart:!0}),b>0&&(h===`unified`?x({type:`unified`,linesAST:u}):(x({type:`deletions`,linesAST:d}),x({type:`additions`,linesAST:f}))),b>0&&v.fromEnd>0&&!a&&S({rangeLen:Math.min(v.fromEnd,o),fromStart:!1})}renderHunks({hunk:e,hunkData:t,hunkIndex:n,lineIndex:r,isLastHunk:i,prevHunk:a,ast:o,deletionsAST:s,additionsAST:c,unifiedAST:l}){let{diffStyle:u}=this.getOptionsWithDefaults(),d=u===`unified`,f=e.additionStart-1,p=e.deletionStart-1;this.renderCollapsedHunks({additionLineNumber:f,additionsAST:c,ast:o,deletionLineNumber:p,deletionsAST:s,hunkData:t,hunkIndex:n,hunkSpecs:e.hunkSpecs,isFirstHunk:a==null,isLastHunk:!1,lineIndex:r,rangeSize:Math.max(e.collapsedBefore,0),unifiedAST:l});let{oldLines:m,newLines:h,oldIndex:g,newIndex:_}=(()=>{if(o.hunks!=null){let e=o.hunks[n];if(e==null)throw console.error({ast:o,hunkIndex:n}),Error(`DiffHunksRenderer.renderHunks: lineHunk doesn't exist`);return{oldLines:e.oldLines,newLines:e.newLines,oldIndex:0,newIndex:0}}return{oldLines:o.oldLines,newLines:o.newLines,oldIndex:p,newIndex:f}})();for(let t of e.hunkContent)if(t.type===`context`){let{length:e}=t.lines;for(let t=0;t<e;t++){let e=m[g],t=h[_];if(g++,_++,f++,p++,d){if(t==null)throw Error(`DiffHunksRenderer.renderHunks: newLine doesnt exist for context...`);this.pushLineWithAnnotation({newLine:t,unifiedAST:l,unifiedSpan:this.getAnnotations(`unified`,p,f,n,r)})}else{if(t==null||e==null)throw Error(`DiffHunksRenderer.renderHunks: newLine or oldLine doesnt exist for context...`);this.pushLineWithAnnotation({oldLine:e,newLine:t,deletionsAST:s,additionsAST:c,...this.getAnnotations(`split`,p,f,n,r)})}r++}if(t.noEOFCR){let e=$U(`context`);d?l.push(e):(s.push(e),c.push(e))}}else{let{length:e}=t.deletions,{length:i}=t.additions,a=d?e+i:Math.max(e,i),u=0;for(let v=0;v<a;v++){let{oldLine:y,newLine:b}=(()=>{let n=m[g],r=h[_];if(d?v<e?r=void 0:n=void 0:(v>=e&&(n=void 0),v>=i&&(r=void 0)),n==null&&r==null)throw console.error({i:v,len:a,ast:o,hunkContent:t}),Error(`renderHunks: oldLine and newLine are null, something is wrong`);return{oldLine:n,newLine:r}})();if(y!=null&&(g++,p++),b!=null&&(_++,f++),d)this.pushLineWithAnnotation({oldLine:y,newLine:b,unifiedAST:l,unifiedSpan:this.getAnnotations(`unified`,y==null?void 0:p,b==null?void 0:f,n,r)}),r++;else{(y==null||b==null)&&u++;let t=this.getAnnotations(`split`,y==null?void 0:p,b==null?void 0:f,n,r);t!=null&&u>0&&(i>e?s.push(QU(u)):c.push(QU(u)),u=0),this.pushLineWithAnnotation({newLine:b,oldLine:y,deletionsAST:s,additionsAST:c,...t}),r++}}d||(u>0&&(i>e?s.push(QU(u)):c.push(QU(u)),u=0),t.noEOFCRDeletions&&(s.push($U(`change-deletion`)),t.noEOFCRAdditions||c.push(QU(1))),t.noEOFCRAdditions&&(c.push($U(`change-addition`)),t.noEOFCRDeletions||s.push(QU(1))))}return i&&o.newLines!=null&&o.newLines.length>0&&this.renderCollapsedHunks({additionLineNumber:f,additionsAST:c,ast:o,deletionLineNumber:p,deletionsAST:s,hunkData:t,hunkIndex:n+1,hunkSpecs:void 0,isFirstHunk:!1,isLastHunk:!0,lineIndex:r,rangeSize:Math.max(o.newLines.length-Math.max(e.additionStart+e.additionCount-1,0),0),unifiedAST:l}),r}pushLineWithAnnotation({newLine:e,oldLine:t,unifiedAST:n,additionsAST:r,deletionsAST:i,unifiedSpan:a,deletionSpan:o,additionSpan:s}){n==null?i!=null&&r!=null&&(t!=null&&i.push(t),e!=null&&r.push(e),o!=null&&i.push(_U(o)),s!=null&&r.push(_U(s))):(t==null?e!=null&&n.push(e):n.push(t),a!=null&&n.push(_U(a)))}getAnnotations(e,t,n,r,i){let a={type:`annotation`,hunkIndex:r,lineIndex:i,annotations:[]};if(t!=null)for(let e of this.deletionAnnotations[t]??[])a.annotations.push(DU(e));let o={type:`annotation`,hunkIndex:r,lineIndex:i,annotations:[]};if(n!=null)for(let t of this.additionAnnotations[n]??[])(e===`unified`?a:o).annotations.push(DU(t));if(e===`unified`)return a.annotations.length>0?a:void 0;if(!(o.annotations.length===0&&a.annotations.length===0))return{deletionSpan:a,additionSpan:o}}renderHeader(e,t,n){let{themeType:r}=this.getOptionsWithDefaults();return yU({fileOrDiff:e,themeStyles:t,themeType:n??r})}};function BW(e,t){return fU(e.theme,t.theme)&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength&&e.lineDiffType===t.lineDiffType}function VW(e){return`${e} unmodified line${e>1?`s`:``}`}function HW(e){let t=e[0];if(t!==`+`&&t!==`-`&&t!==` `&&t!==`\\`){console.error(`parseLineType: Invalid firstChar: "${t}", full line: "${e}"`);return}let n=e.substring(1);return{line:n===``?`
|
|
1329
|
-
`:n,type:t===` `?`context`:t===`\\`?`metadata`:t===`+`?`addition`:`deletion`}}function UW(e,t){let n=FN.test(e),r=e.split(n?FN:IN),i,a=[],o;for(let e of r){if(n&&!FN.test(e)){i==null?i=e:console.error(`parsePatchContent: unknown file blob:`,e);continue}else if(!n&&!IN.test(e)){i==null?i=e:console.error(`parsePatchContent: unknown file blob:`,e);continue}let r=0,s=e.split(LN);o=void 0;for(let e of s){let i=e.split(zN),s=i.shift();if(s==null){console.error(`parsePatchContent: invalid hunk`,e);continue}let c=s.match(RN),l=[],u=0,d=0;if(c==null||o==null){if(o!=null){console.error(`parsePatchContent: Invalid hunk`,e);continue}o={name:``,prevName:void 0,type:`change`,hunks:[],splitLineCount:0,unifiedLineCount:0,cacheKey:t==null?void 0:`${t}-${a.length}`},i.unshift(s);for(let e of i){let t=e.match(n?VN:BN);if(e.startsWith(`diff --git`)){let[,,t,,n]=e.trim().match(HN)??[];o.name=n.trim(),t!==n&&(o.prevName=t.trim())}else if(t!=null){let[,e,n]=t;e===`---`&&n!==`/dev/null`?(o.prevName=n.trim(),o.name=n.trim()):e===`+++`&&n!==`/dev/null`&&(o.name=n.trim())}else if(n){if(e.startsWith(`new mode `)&&(o.mode=e.replace(`new mode`,``).trim()),e.startsWith(`old mode `)&&(o.oldMode=e.replace(`old mode`,``).trim()),e.startsWith(`new file mode`)&&(o.type=`new`,o.mode=e.replace(`new file mode`,``).trim()),e.startsWith(`deleted file mode`)&&(o.type=`deleted`,o.mode=e.replace(`deleted file mode`,``).trim()),e.startsWith(`similarity index`)&&(e.startsWith(`similarity index 100%`)?o.type=`rename-pure`:o.type=`rename-changed`),e.startsWith(`index `)){let[,t]=e.trim().match(UN)??[];t!=null&&(o.mode=t)}e.startsWith(`rename from `)&&(o.prevName=e.replace(`rename from `,``)),e.startsWith(`rename to `)&&(o.name=e.replace(`rename to `,``).trim())}}continue}else{let e,t;for(;i.length>0&&(i[i.length-1]===`
|
|
1330
|
-
`||i[i.length-1]===``);)i.pop();for(let n of i){let r=HW(n);if(r==null)continue;let{type:i,line:a}=r;if(i===`addition`)(e==null||e.type!==`change`)&&(e=GW(`change`),l.push(e)),e.additions.push(a),u++,t=`addition`;else if(i===`deletion`)(e==null||e.type!==`change`)&&(e=GW(`change`),l.push(e)),e.deletions.push(a),d++,t=`deletion`;else if(i===`context`)(e==null||e.type!==`context`)&&(e=GW(`context`),l.push(e)),e.lines.push(a),t=`context`;else if(i===`metadata`&&e!=null){if(e.type===`context`)e.noEOFCR=!0;else if(t===`deletion`){e.noEOFCRDeletions=!0;let t=e.deletions.length-1;t>=0&&(e.deletions[t]=OU(e.deletions[t]))}else if(t===`addition`){e.noEOFCRAdditions=!0;let t=e.additions.length-1;t>=0&&(e.additions[t]=OU(e.additions[t]))}}}}let f={collapsedBefore:0,splitLineCount:0,splitLineStart:0,unifiedLineCount:0,unifiedLineStart:0,additionCount:parseInt(c[4]??`1`),additionStart:parseInt(c[3]),additionLines:u,deletionCount:parseInt(c[2]??`1`),deletionStart:parseInt(c[1]),deletionLines:d,hunkContent:l,hunkContext:c[5],hunkSpecs:s};if(isNaN(f.additionCount)||isNaN(f.deletionCount)||isNaN(f.additionStart)||isNaN(f.deletionStart)){console.error(`parsePatchContent: invalid hunk metadata`,f);continue}f.collapsedBefore=Math.max(f.additionStart-1-r,0),o.hunks.push(f),r=f.additionStart+f.additionCount-1;for(let e of l)e.type===`context`?(f.splitLineCount+=e.lines.length,f.unifiedLineCount+=e.lines.length):(f.splitLineCount+=Math.max(e.additions.length,e.deletions.length),f.unifiedLineCount+=e.deletions.length+e.additions.length);f.splitLineStart=o.splitLineCount,f.unifiedLineStart=o.unifiedLineCount,o.splitLineCount+=f.splitLineCount,o.unifiedLineCount+=f.unifiedLineCount}o!=null&&(!n&&o.prevName!=null&&o.name!==o.prevName&&(o.hunks.length>0?o.type=`rename-changed`:o.type=`rename-pure`),o.type!==`rename-pure`&&o.type!==`rename-changed`&&(o.prevName=void 0),a.push(o))}return{patchMetadata:i,files:a}}function WW(e,t){let n=[];for(let r of e.split(PN))try{n.push(UW(r,t==null?void 0:`${t}-${n.length}`))}catch(e){console.error(e)}return n}function GW(e){return e===`change`?{type:`change`,additions:[],deletions:[],noEOFCRAdditions:!1,noEOFCRDeletions:!1}:{type:`context`,lines:[],noEOFCR:!1}}function KW(e,t,n){let r=WW(AW(e.name,t.name,e.contents,t.contents,e.header,t.header,n))[0]?.files[0];if(r==null)throw Error(`parseDiffFrom: FileInvalid diff -- probably need to fix something -- if the files are the same maybe?`);return r.oldLines=e.contents.split(zN),r.newLines=t.contents.split(zN),e.cacheKey!=null&&t.cacheKey!=null&&(r.cacheKey=`${e.cacheKey}:${t.cacheKey}`),r}var qW=-1,JW=class{static LoadedCustomComponent=!0;__id=++qW;fileContainer;spriteSVG;pre;unsafeCSSStyle;hoverContent;headerElement;headerMetadata;customHunkElements=[];errorWrapper;hunksRenderer;resizeManager;scrollSyncManager;mouseEventManager;lineSelectionManager;annotationElements=[];lineAnnotations=[];oldFile;newFile;fileDiff;constructor(e={theme:GN},t,n=!1){this.options=e,this.workerManager=t,this.isContainerManaged=n,this.hunksRenderer=new zW({...e,hunkSeparators:typeof e.hunkSeparators==`function`?`custom`:e.hunkSeparators},this.handleHighlightRender,this.workerManager),this.resizeManager=new tP,this.scrollSyncManager=new ZU,this.mouseEventManager=new QN(`diff`,eP(e,typeof e.hunkSeparators==`function`||(e.hunkSeparators??`line-info`)===`line-info`?this.handleExpandHunk:void 0)),this.lineSelectionManager=new JN(YN(e)),this.workerManager?.subscribeToThemeChanges(this)}handleHighlightRender=()=>{this.rerender()};setOptions(e){e!=null&&(this.options=e,this.hunksRenderer.setOptions({...this.options,hunkSeparators:typeof e.hunkSeparators==`function`?`custom`:e.hunkSeparators}),this.mouseEventManager.setOptions(eP(e,typeof e.hunkSeparators==`function`||(e.hunkSeparators??`line-info`)===`line-info`?this.handleExpandHunk:void 0)),this.lineSelectionManager.setOptions(YN(e)))}mergeOptions(e){this.options={...this.options,...e}}setThemeType(e){if((this.options.themeType??`system`)!==e&&(this.mergeOptions({themeType:e}),this.hunksRenderer.setThemeType(e),this.headerElement!=null&&(e===`system`?delete this.headerElement.dataset.themeType:this.headerElement.dataset.themeType=e),this.pre!=null))switch(e){case`system`:delete this.pre.dataset.themeType;break;case`light`:case`dark`:this.pre.dataset.themeType=e;break}}getHoveredLine=()=>this.mouseEventManager.getHoveredLine();setLineAnnotations(e){this.lineAnnotations=e}setSelectedLines(e){this.lineSelectionManager.setSelection(e)}cleanUp(){this.hunksRenderer.cleanUp(),this.resizeManager.cleanUp(),this.mouseEventManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.lineSelectionManager.cleanUp(),this.workerManager?.unsubscribeToThemeChanges(this),this.workerManager=void 0,this.fileDiff=void 0,this.oldFile=void 0,this.newFile=void 0,this.isContainerManaged||this.fileContainer?.parentNode?.removeChild(this.fileContainer),this.fileContainer?.shadowRoot!=null&&(this.fileContainer.shadowRoot.innerHTML=``),this.fileContainer=void 0,this.pre=void 0,this.headerElement=void 0,this.errorWrapper=void 0}hydrate(e){let{fileContainer:t,prerenderedHTML:n}=e;YU(t,n);for(let e of Array.from(t.shadowRoot?.children??[])){if(e instanceof SVGElement){this.spriteSVG=e;continue}if(e instanceof HTMLElement){if(e instanceof HTMLPreElement){this.pre=e;continue}if(`diffsHeader`in e.dataset){this.headerElement=e;continue}if(e instanceof HTMLStyleElement&&e.hasAttribute(`data-unsafe-css`)){this.unsafeCSSStyle=e;continue}}}if(this.pre==null)this.render(e);else{let{lineAnnotations:n,oldFile:r,newFile:i,fileDiff:a}=e;this.fileContainer=t,delete this.pre.dataset.dehydrated,this.lineAnnotations=n??this.lineAnnotations,this.newFile=i,this.oldFile=r,this.fileDiff=a??(r!=null&&i!=null?KW(r,i):void 0),this.hunksRenderer.hydrate(this.fileDiff),this.renderAnnotations(),this.renderHoverUtility(),this.injectUnsafeCSS(),this.mouseEventManager.setup(this.pre),this.lineSelectionManager.setup(this.pre),(this.options.overflow??`scroll`)===`scroll`&&(this.resizeManager.setup(this.pre),(this.options.diffStyle??`split`)===`split`&&this.scrollSyncManager.setup(this.pre))}}rerender(){this.fileDiff==null&&this.newFile==null&&this.oldFile==null||this.render({oldFile:this.oldFile,newFile:this.newFile,fileDiff:this.fileDiff,forceRender:!0})}handleExpandHunk=(e,t)=>{this.expandHunk(e,t)};expandHunk(e,t){this.hunksRenderer.expandHunk(e,t),this.rerender()}render({oldFile:e,newFile:t,fileDiff:n,forceRender:r=!1,lineAnnotations:i,fileContainer:a,containerWrapper:o}){let s=e!=null&&t!=null&&(!VU(e,this.oldFile)||!VU(t,this.newFile)),c=i!=null&&(i.length>0||this.lineAnnotations.length>0)?i!==this.lineAnnotations:!1;if(!r&&!c&&(n!=null&&n===this.fileDiff||n==null&&!s)||(this.oldFile=e,this.newFile=t,n==null?e!=null&&t!=null&&s&&(this.fileDiff=KW(e,t)):this.fileDiff=n,i!=null&&this.setLineAnnotations(i),this.fileDiff==null))return;this.hunksRenderer.setOptions({...this.options,hunkSeparators:typeof this.options.hunkSeparators==`function`?`custom`:this.options.hunkSeparators}),this.hunksRenderer.setLineAnnotations(this.lineAnnotations);let{disableFileHeader:l=!1,disableErrorHandling:u=!1}=this.options;l&&this.headerElement!=null&&(this.headerElement.parentNode?.removeChild(this.headerElement),this.headerElement=void 0),a=this.getOrCreateFileContainer(a,o);try{let e=this.hunksRenderer.renderDiff(this.fileDiff);if(e==null){this.workerManager!=null&&!this.workerManager.isInitialized()&&this.workerManager.initialize().then(()=>this.rerender());return}e.headerElement!=null&&this.applyHeaderToDOM(e.headerElement,a);let t=this.getOrCreatePreNode(a);this.applyHunksToDOM(t,e),this.renderSeparators(e.hunkData),this.renderAnnotations(),this.renderHoverUtility()}catch(e){if(u)throw e;console.error(e),e instanceof Error&&this.applyErrorToDOM(e,a)}}renderSeparators(e){let{hunkSeparators:t}=this.options;if(!(this.isContainerManaged||this.fileContainer==null||typeof t!=`function`)){for(let e of this.customHunkElements)e.parentNode?.removeChild(e);this.customHunkElements.length=0;for(let n of e){let e=document.createElement(`div`);e.style.display=`contents`,e.slot=n.slotName,e.appendChild(t(n,this)),this.fileContainer.appendChild(e),this.customHunkElements.push(e)}}}renderAnnotations(){if(this.isContainerManaged||this.fileContainer==null)return;for(let e of this.annotationElements)e.parentNode?.removeChild(e);this.annotationElements.length=0;let{renderAnnotation:e}=this.options;if(e!=null&&this.lineAnnotations.length>0)for(let t of this.lineAnnotations){let n=e(t);if(n==null)continue;let r=HU(DU(t));r.appendChild(n),this.annotationElements.push(r),this.fileContainer.appendChild(r)}}renderHoverUtility(){let{renderHoverUtility:e}=this.options;if(this.fileContainer==null||e==null)return;this.hoverContent??(this.hoverContent=WU(),this.fileContainer.appendChild(this.hoverContent));let t=e(this.mouseEventManager.getHoveredLine);this.hoverContent.innerHTML=``,t!=null&&this.hoverContent.appendChild(t)}getOrCreateFileContainer(e,t){if(this.fileContainer=e??this.fileContainer??document.createElement(`diffs-container`),t!=null&&this.fileContainer.parentNode!==t&&t.appendChild(this.fileContainer),this.spriteSVG==null){let e=document.createElement(`div`);e.innerHTML=BU;let t=e.firstChild;t instanceof SVGElement&&(this.spriteSVG=t,this.fileContainer.shadowRoot?.appendChild(this.spriteSVG))}return this.fileContainer}getFileContainer(){return this.fileContainer}getOrCreatePreNode(e){return this.pre==null?(this.pre=document.createElement(`pre`),e.shadowRoot?.appendChild(this.pre)):this.pre.parentNode!==e&&e.shadowRoot?.appendChild(this.pre),this.pre}applyHeaderToDOM(e,t){this.cleanupErrorWrapper();let n=document.createElement(`div`);n.innerHTML=sL(e);let r=n.firstElementChild;if(!(r instanceof HTMLElement)||(this.headerElement==null?t.shadowRoot?.prepend(r):t.shadowRoot?.replaceChild(r,this.headerElement),this.headerElement=r,this.isContainerManaged))return;let{renderHeaderMetadata:i}=this.options;this.headerMetadata!=null&&this.headerMetadata.parentNode?.removeChild(this.headerMetadata);let a=i?.({oldFile:this.oldFile,newFile:this.newFile,fileDiff:this.fileDiff})??void 0;a!=null&&(this.headerMetadata=document.createElement(`div`),this.headerMetadata.slot=WN,a instanceof Element?this.headerMetadata.appendChild(a):this.headerMetadata.innerText=`${a}`,t.appendChild(this.headerMetadata))}injectUnsafeCSS(){if(this.fileContainer?.shadowRoot==null)return;let{unsafeCSS:e}=this.options;e==null||e===``||(this.unsafeCSSStyle??(this.unsafeCSSStyle=GU(),this.fileContainer.shadowRoot.appendChild(this.unsafeCSSStyle)),this.unsafeCSSStyle.innerText=JU(e))}applyHunksToDOM(e,t){this.cleanupErrorWrapper(),this.applyPreNodeAttributes(e,t),e.innerHTML=``;let n,r;if(t.unifiedAST!=null){let n=UU({columnType:`unified`});n.innerHTML=this.hunksRenderer.renderPartialHTML(t.unifiedAST),e.appendChild(n)}else t.deletionsAST!=null&&(n=UU({columnType:`deletions`}),n.innerHTML=this.hunksRenderer.renderPartialHTML(t.deletionsAST),e.appendChild(n)),t.additionsAST!=null&&(r=UU({columnType:`additions`}),r.innerHTML=this.hunksRenderer.renderPartialHTML(t.additionsAST),e.appendChild(r));this.injectUnsafeCSS(),this.mouseEventManager.setup(e),this.lineSelectionManager.setup(e),(this.options.overflow??`scroll`)===`scroll`?(this.resizeManager.setup(e),(this.options.diffStyle??`split`)===`split`?this.scrollSyncManager.setup(e,n,r):this.scrollSyncManager.cleanUp()):(this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp())}applyPreNodeAttributes(e,{themeStyles:t,baseThemeType:n,additionsAST:r,deletionsAST:i,totalLines:a}){let{diffIndicators:o=`bars`,disableBackground:s=!1,disableLineNumbers:c=!1,overflow:l=`scroll`,themeType:u=`system`,diffStyle:d=`split`}=this.options;XU({pre:e,diffIndicators:o,disableBackground:s,disableLineNumbers:c,overflow:l,split:d===`unified`?!1:r!=null&&i!=null,themeStyles:t,themeType:n??u,totalLines:a})}applyErrorToDOM(e,t){this.cleanupErrorWrapper();let n=this.getOrCreatePreNode(t);n.innerHTML=``,n.parentNode?.removeChild(n),this.pre=void 0;let r=t.shadowRoot??t.attachShadow({mode:`open`});this.errorWrapper??=document.createElement(`div`),this.errorWrapper.dataset.errorWrapper=``,this.errorWrapper.innerHTML=``,r.appendChild(this.errorWrapper);let i=document.createElement(`div`);i.dataset.errorMessage=``,i.innerText=e.message,this.errorWrapper.appendChild(i);let a=document.createElement(`pre`);a.dataset.errorStack=``,a.innerText=e.stack??`No Error Stack`,this.errorWrapper.appendChild(a)}cleanupErrorWrapper(){this.errorWrapper?.parentNode?.removeChild(this.errorWrapper),this.errorWrapper=void 0}};function YW(e){let t=[];for(let n of e){let e=nP.get(n);if(e==null)throw Error(`getResolvedLanguages: ${n} is not resolved. Please resolve languages before calling getResolvedLanguages`);t.push(e)}return t}function XW(e){for(let t of Array.isArray(e)?e:[e])if(!nP.has(t))return!1;return!0}async function ZW(e){let t=[],n=[];for(let r of e){if(r===`text`||r===`ansi`)continue;let e=YH(r)??JH(r);`then`in e?n.push(e):t.push(e)}return n.length>0&&await Promise.all(n).then(e=>{for(let n of e){if(n==null)throw Error(`resolvedLanguages: unable to resolve language`);t.push(n)}}),t}function QW(e){let t=[];for(let n of e){let e=XH.get(n);if(e==null)throw Error(`getAllResolvedThemes: ${n} is unresolved, you must resolve all necessary themes before calling this function`);t.push(e)}return t}async function $W(e){let t=[],n=[];for(let r of e){let e=rU(r)??tU(r);`then`in e?n.push(e):t.push(e)}return n.length>0&&await Promise.all(n).then(e=>{for(let n of e)n!=null&&t.push(n)}),t}function eG(e,t,n){if(e===t||e==null||t==null)return e===t;let r=new Set(n),i=Object.keys(e),a=new Set(Object.keys(t));for(let n of i)if(a.delete(n),!r.has(n)&&(!(n in t)||e[n]!==t[n]))return!1;for(let e of Array.from(a))if(!r.has(e))return!1;return!0}function tG(e,t){return fU(e?.theme??GN,t?.theme??GN)&&eG(e,t,[`theme`])}var nG={position:`absolute`,top:0,bottom:0,textAlign:`center`};function rG(e,t){return typeof window>`u`&&t!=null?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`template`,{shadowrootmode:`open`,dangerouslySetInnerHTML:{__html:t}}),e]}):(0,z.jsx)(z.Fragment,{children:e})}var iG=e(x(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):r((n||=self).lru_map=n.lru_map||{})})(e,function(e){let t=Symbol(`newer`),n=Symbol(`older`);class r{constructor(e,t){typeof e!=`number`&&(t=e,e=0),this.size=0,this.limit=e,this.oldest=this.newest=void 0,this._keymap=new Map,t&&(this.assign(t),e<1&&(this.limit=this.size))}_markEntryAsUsed(e){e!==this.newest&&(e[t]&&(e===this.oldest&&(this.oldest=e[t]),e[t][n]=e[n]),e[n]&&(e[n][t]=e[t]),e[t]=void 0,e[n]=this.newest,this.newest&&(this.newest[t]=e),this.newest=e)}assign(e){let r,a=this.limit||Number.MAX_VALUE;this._keymap.clear();let o=e[Symbol.iterator]();for(let e=o.next();!e.done;e=o.next()){let o=new i(e.value[0],e.value[1]);if(this._keymap.set(o.key,o),r?(r[t]=o,o[n]=r):this.oldest=o,r=o,a--==0)throw Error(`overflow`)}this.newest=r,this.size=this._keymap.size}get(e){var t=this._keymap.get(e);return t?(this._markEntryAsUsed(t),t.value):void 0}set(e,r){var a=this._keymap.get(e);return a?(a.value=r,this._markEntryAsUsed(a),this):(this._keymap.set(e,a=new i(e,r)),this.newest?(this.newest[t]=a,a[n]=this.newest):this.oldest=a,this.newest=a,++this.size,this.size>this.limit&&this.shift(),this)}shift(){var e=this.oldest;if(e)return this.oldest[t]?(this.oldest=this.oldest[t],this.oldest[n]=void 0):(this.oldest=void 0,this.newest=void 0),e[t]=e[n]=void 0,this._keymap.delete(e.key),--this.size,[e.key,e.value]}find(e){let t=this._keymap.get(e);return t?t.value:void 0}has(e){return this._keymap.has(e)}delete(e){var r=this._keymap.get(e);return r?(this._keymap.delete(r.key),r[t]&&r[n]?(r[n][t]=r[t],r[t][n]=r[n]):r[t]?(r[t][n]=void 0,this.oldest=r[t]):r[n]?(r[n][t]=void 0,this.newest=r[n]):this.oldest=this.newest=void 0,this.size--,r.value):void 0}clear(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()}keys(){return new o(this.oldest)}values(){return new s(this.oldest)}entries(){return this}[Symbol.iterator](){return new a(this.oldest)}forEach(e,n){typeof n!=`object`&&(n=this);let r=this.oldest;for(;r;)e.call(n,r.value,r.key,this),r=r[t]}toJSON(){for(var e=Array(this.size),n=0,r=this.oldest;r;)e[n++]={key:r.key,value:r.value},r=r[t];return e}toString(){for(var e=``,n=this.oldest;n;)e+=String(n.key)+`:`+n.value,n=n[t],n&&(e+=` < `);return e}}e.LRUMap=r;function i(e,r){this.key=e,this.value=r,this[t]=void 0,this[n]=void 0}function a(e){this.entry=e}a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:[e.key,e.value]}):{done:!0,value:void 0}};function o(e){this.entry=e}o.prototype[Symbol.iterator]=function(){return this},o.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.key}):{done:!0,value:void 0}};function s(e){this.entry=e}s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let e=this.entry;return e?(this.entry=e[t],{done:!1,value:e.value}):{done:!0,value:void 0}}})}))(),1),aG=Symbol(`IGNORE_RESPONSE`),oG=class{highlighter;renderOptions;initialized=!1;workers=[];taskQueue=[];pendingTasks=new Map;nextRequestId=0;themeSubscribers=new Set;workersFailed=!1;instanceRequestMap=new Map;fileCache;diffCache;constructor(e,{langs:t,theme:n=GN,lineDiffType:r=`word-alt`,tokenizeMaxLineLength:i=1e3}){this.options=e,this.renderOptions={theme:n,lineDiffType:r,tokenizeMaxLineLength:i},this.fileCache=new iG.default.LRUMap(e.totalASTLRUCacheSize??100),this.diffCache=new iG.default.LRUMap(e.totalASTLRUCacheSize??100),this.initialize(t)}isWorkingPool(){return!this.workersFailed}getFileResultCache(e){return e.cacheKey==null?void 0:this.fileCache.get(e.cacheKey)}getDiffResultCache(e){return e.cacheKey==null?void 0:this.diffCache.get(e.cacheKey)}inspectCaches(){let{fileCache:e,diffCache:t}=this;return{fileCache:e,diffCache:t}}evictFileFromCache(e){return this.fileCache.delete(e)!==void 0}evictDiffFromCache(e){return this.diffCache.delete(e)!==void 0}async setRenderOptions({theme:e=GN,lineDiffType:t=`word-alt`,tokenizeMaxLineLength:n=1e3}){let r={theme:e,lineDiffType:t,tokenizeMaxLineLength:n};this.isInitialized()||await this.initialize();let i=fU(r.theme,this.renderOptions.theme);if(i&&r.lineDiffType===this.renderOptions.lineDiffType&&r.tokenizeMaxLineLength===this.renderOptions.tokenizeMaxLineLength)return;let a=lU(e),o=[];if(i||(o=dU(a)?QW(a):await $W(a)),this.highlighter!=null)eU(o,this.highlighter),await this.setRenderOptionsOnWorkers(r,o);else{let[e]=await Promise.all([oU({themes:a,langs:[`text`]}),this.setRenderOptionsOnWorkers(r,o)]);this.highlighter=e}this.renderOptions=r,this.diffCache.clear(),this.fileCache.clear();for(let e of this.themeSubscribers)e.rerender()}getFileRenderOptions(){let{tokenizeMaxLineLength:e,theme:t}=this.renderOptions;return{theme:t,tokenizeMaxLineLength:e}}getDiffRenderOptions(){return{...this.renderOptions}}async setRenderOptionsOnWorkers(e,t){if(this.workersFailed)return;this.isInitialized()||await this.initialize();let n=[];for(let r of this.workers){if(!r.initialized)throw console.log({managedWorker:r}),Error(`setRenderOptionsOnWorkers: Somehow we have an uninitialized worker`);n.push(new Promise((n,i)=>{let a=this.generateRequestId(),o={type:`set-render-options`,id:a,request:{type:`set-render-options`,id:a,renderOptions:e,resolvedThemes:t},resolve:n,reject:i,requestStart:Date.now()};this.pendingTasks.set(a,o),r.worker.postMessage(o.request)}))}await Promise.all(n)}subscribeToThemeChanges(e){return this.themeSubscribers.add(e),()=>{this.unsubscribeToThemeChanges(e)}}unsubscribeToThemeChanges(e){this.themeSubscribers.delete(e)}isInitialized(){return this.initialized===!0}async initialize(e=[]){if(this.initialized!==!0)if(this.initialized===!1)this.initialized=new Promise((t,n)=>{(async()=>{try{let r=lU(this.renderOptions.theme),i=[];i=dU(r)?QW(r):await $W(r);let a=[];a=XW(e)?YW(e):await ZW(e);let[o]=await Promise.all([oU({themes:r,langs:[`text`,...e]}),this.initializeWorkers(i,a)]);if(this.initialized===!1){this.terminateWorkers(),n();return}this.highlighter=o,this.initialized=!0,this.diffCache.clear(),this.fileCache.clear(),this.drainQueue(),t()}catch(e){this.initialized=!1,this.workersFailed=!0,n(e)}})()});else return this.initialized}async initializeWorkers(e,t){this.workersFailed=!1;let n=[];this.workers.length>0&&this.terminateWorkers();for(let r=0;r<(this.options.poolSize??8);r++){let r=this.options.workerFactory(),i={worker:r,busy:!1,initialized:!1,langs:new Set([`text`,...t.map(({name:e})=>e)])};r.addEventListener(`message`,e=>{this.handleWorkerMessage(i,e.data)}),r.addEventListener(`error`,e=>console.error(`Worker error:`,e,i)),this.workers.push(i),n.push(new Promise((n,r)=>{let a=this.generateRequestId(),o={type:`initialize`,id:a,request:{type:`initialize`,id:a,renderOptions:this.renderOptions,resolvedThemes:e,resolvedLanguages:t},resolve(){i.initialized=!0,n()},reject:r,requestStart:Date.now()};this.pendingTasks.set(a,o),this.executeTask(i,o)}))}await Promise.all(n)}drainQueue=()=>{if(this._queuedDrain=void 0,!(this.initialized!==!0||this.taskQueue.length===0))for(;this.taskQueue.length>0;){let e=this.taskQueue[0],t=sG(e),n=this.getAvailableWorker(t);if(n==null)break;this.taskQueue.shift(),this.resolveLanguagesAndExecuteTask(n,e,t)}};highlightFileAST(e,t){this.submitTask(e,{type:`file`,file:t})}getPlainFileAST(e){if(this.highlighter==null){this.initialize();return}return zU(e,this.highlighter,this.renderOptions,!0)}highlightDiffAST(e,t){this.submitTask(e,{type:`diff`,diff:t})}getPlainDiffAST(e){return this.highlighter==null?void 0:PW(e,this.highlighter,this.renderOptions,!0)}terminate(){this.terminateWorkers(),this.fileCache.clear(),this.diffCache.clear(),this.instanceRequestMap.clear(),this.taskQueue.length=0,this.pendingTasks.clear(),this.highlighter=void 0,this.initialized=!1,this.workersFailed=!1}terminateWorkers(){for(let e of this.workers)e.worker.terminate();this.workers.length=0}getStats(){return{totalWorkers:this.workers.length,busyWorkers:this.workers.filter(e=>e.busy).length,queuedTasks:this.taskQueue.length,pendingTasks:this.pendingTasks.size}}submitTask(e,t){this.initialized===!1&&this.initialize();let n=this.generateRequestId(),r=Date.now(),i=(()=>{switch(t.type){case`file`:return{type:`file`,id:n,request:{...t,id:n},instance:e,requestStart:r};case`diff`:return{type:`diff`,id:n,request:{...t,id:n},instance:e,requestStart:r}}})();this.instanceRequestMap.set(e,n),this.taskQueue.push(i),this.queueDrain()}async resolveLanguagesAndExecuteTask(e,t,n){if(t.type===`file`||t.type===`diff`){let r=n.filter(t=>!e.langs.has(t));r.length>0&&(XW(r)?t.request.resolvedLanguages=YW(r):t.request.resolvedLanguages=await ZW(r))}this.executeTask(e,t)}handleWorkerMessage(e,t){let n=this.pendingTasks.get(t.id);try{if(n==null)throw Error(`handleWorkerMessage: Received response for unknown task`);if(t.type===`error`){let e=Error(t.error);throw t.stack&&(e.stack=t.stack),`reject`in n?n.reject(e):n.instance.onHighlightError(e),e}else{if(`instance`in n&&this.instanceRequestMap.get(n.instance)!==t.id)throw aG;switch(t.requestType){case`initialize`:if(n.type!==`initialize`)throw Error(`handleWorkerMessage: task/response dont match`);n.resolve();break;case`set-render-options`:if(n.type!==`set-render-options`)throw Error(`handleWorkerMessage: task/response dont match`);n.resolve();break;case`file`:{if(n.type!==`file`)throw Error(`handleWorkerMessage: task/response dont match`);let{result:e,options:r}=t,{instance:i,request:a}=n;a.file.cacheKey!=null&&this.fileCache.set(a.file.cacheKey,{result:e,options:r}),i.onHighlightSuccess(a.file,e,r);break}case`diff`:{if(n.type!==`diff`)throw Error(`handleWorkerMessage: task/response dont match`);let{result:e,options:r}=t,{instance:i,request:a}=n;a.diff.cacheKey!=null&&this.diffCache.set(a.diff.cacheKey,{result:e,options:r}),i.onHighlightSuccess(a.diff,e,r);break}}}}catch(e){e!==aG&&console.error(e,n,t)}n!=null&&`instance`in n&&this.instanceRequestMap.get(n.instance)===t.id&&this.instanceRequestMap.delete(n.instance),this.pendingTasks.delete(t.id),e.busy=!1,this.taskQueue.length>0&&this.queueDrain()}_queuedDrain;queueDrain(){this._queuedDrain??=Promise.resolve().then(this.drainQueue)}executeTask(e,t){e.busy=!0,this.pendingTasks.set(t.id,t);for(let n of sG(t))e.langs.add(n);e.worker.postMessage(t.request)}getAvailableWorker(e){let t;for(let n of this.workers){if(n.busy||!n.initialized)continue;if(t=n,e.length===0)break;let r=!0;for(let t of e)if(!n.langs.has(t)){r=!1;break}if(r)break}return t}generateRequestId(){return`req_${++this.nextRequestId}`}};function sG(e){let t=new Set;if(e.type===`initialize`||e.type===`set-render-options`)return[];switch(e.type){case`file`:t.add(e.request.file.lang??TU(e.request.file.name));break;case`diff`:t.add(e.request.diff.lang??TU(e.request.diff.name)),t.add(e.request.diff.lang??TU(e.request.diff.prevName??`-`));break}return t.delete(`text`),Array.from(t)}var cG;function lG({poolOptions:e,highlighterOptions:t}){return cG??(cG=new oG(e,t),cG.initialize()),cG}function uG(){cG!=null&&(cG.terminate(),cG=void 0)}var dG=(0,R.createContext)(void 0),fG=0;function pG({children:e,poolOptions:t,highlighterOptions:n}){let[r]=(0,R.useState)(()=>{if(!(typeof window>`u`))return lG({poolOptions:t,highlighterOptions:n})});return(0,R.useInsertionEffect)(()=>(fG++,()=>{fG--}),[]),(0,R.useEffect)(()=>()=>{fG===0&&uG()},[]),(0,z.jsx)(dG.Provider,{value:r,children:e})}function mG(e){let t=(0,R.useRef)(e);return(0,R.useInsertionEffect)(()=>void(t.current=e)),(0,R.useCallback)((...e)=>t.current(...e),[])}function hG({fileDiff:e,oldFile:t,newFile:n,renderHeaderMetadata:r,renderAnnotation:i,renderHoverUtility:a,lineAnnotations:o,getHoveredLine:s}){let c=r?.({fileDiff:e,oldFile:t,newFile:n});return(0,z.jsxs)(z.Fragment,{children:[c!=null&&(0,z.jsx)(`div`,{slot:`header-metadata`,children:c}),i!=null&&o?.map((e,t)=>(0,z.jsx)(`div`,{slot:DU(e),children:i(e)},t)),a!=null&&(0,z.jsx)(`div`,{slot:`hover-slot`,style:nG,children:a(s)})]})}var gG=typeof window>`u`?R.useEffect:R.useLayoutEffect;function _G({oldFile:e,newFile:t,fileDiff:n,options:r,lineAnnotations:i,selectedLines:a,prerenderedHTML:o}){let s=(0,R.useContext)(dG),c=(0,R.useRef)(null),l=mG(a=>{if(a!=null){if(c.current!=null)throw Error(`useFileDiffInstance: An instance should not already exist when a node is created`);c.current=new JW(r,s,!0),c.current.hydrate({fileDiff:n,oldFile:e,newFile:t,fileContainer:a,lineAnnotations:i,prerenderedHTML:o})}else{if(c.current==null)throw Error(`useFileDiffInstance: A FileDiff instance should exist when unmounting`);c.current.cleanUp(),c.current=null}});return gG(()=>{if(c.current==null)return;let o=c.current,s=!tG(o.options,r);o.setOptions(r),o.render({forceRender:s,fileDiff:n,oldFile:e,newFile:t,lineAnnotations:i}),a!==void 0&&o.setSelectedLines(a)}),{ref:l,getHoveredLine:(0,R.useCallback)(()=>c.current?.getHoveredLine(),[])}}function vG({fileDiff:e,options:t,lineAnnotations:n,selectedLines:r,className:i,style:a,prerenderedHTML:o,renderAnnotation:s,renderHeaderMetadata:c,renderHoverUtility:l}){let{ref:u,getHoveredLine:d}=_G({fileDiff:e,options:t,lineAnnotations:n,selectedLines:r,prerenderedHTML:o});return(0,z.jsx)(NN,{ref:u,className:i,style:a,children:rG(hG({fileDiff:e,renderHeaderMetadata:c,renderAnnotation:s,lineAnnotations:n,renderHoverUtility:l,getHoveredLine:d}),o)})}var yG=e(x(((e,t)=>{var n=`Expected a function`,r=NaN,i=`[object Symbol]`,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=Object.prototype.toString,m=Math.max,h=Math.min,g=function(){return f.Date.now()};function _(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(n);t=x(t)||0,v(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?m(x(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function _(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function y(e){return u=e,c=setTimeout(C,t),d?_(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?h(i,o-r):i}function S(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=g();if(S(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,p&&i?_(e):(i=a=void 0,s)}function T(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function E(){return c===void 0?s:w(g())}function D(){var e=g(),n=S(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return y(l);if(f)return c=setTimeout(C,t),_(l)}return c===void 0&&(c=setTimeout(C,t)),s}return D.cancel=T,D.flush=E,D}function v(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function y(e){return!!e&&typeof e==`object`}function b(e){return typeof e==`symbol`||y(e)&&p.call(e)==i}function x(e){if(typeof e==`number`)return e;if(b(e))return r;if(v(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=v(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(a,``);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}t.exports=_}))(),1);function bG(e){let t=(0,R.useRef)(e);t.current=e,(0,R.useEffect)(()=>()=>{t.current()},[])}function xG(e,t=500,n){let r=(0,R.useRef)();bG(()=>{r.current&&r.current.cancel()});let i=(0,R.useMemo)(()=>{let i=(0,yG.default)(e,t,n),a=(...e)=>i(...e);return a.cancel=()=>{i.cancel()},a.isPending=()=>!!r.current,a.flush=()=>i.flush(),a},[e,t,n]);return(0,R.useEffect)(()=>{r.current=(0,yG.default)(e,t,n)},[e,t,n]),i}function SG(e,t,n){let r=n?.equalityFn??((e,t)=>e===t),i=e instanceof Function?e():e,[a,o]=(0,R.useState)(i),s=(0,R.useRef)(i),c=xG(o,t,n);return r(s.current,i)||(c(i),s.current=i),[a,c]}function CG({threshold:e=0,root:t=null,rootMargin:n=`0%`,freezeOnceVisible:r=!1,initialIsIntersecting:i=!1,onChange:a}={}){let[o,s]=(0,R.useState)(null),[c,l]=(0,R.useState)(()=>({isIntersecting:i,entry:void 0})),u=(0,R.useRef)();u.current=a;let d=c.entry?.isIntersecting&&r;(0,R.useEffect)(()=>{if(!o||!(`IntersectionObserver`in window)||d)return;let i,a=new IntersectionObserver(e=>{let t=Array.isArray(a.thresholds)?a.thresholds:[a.thresholds];e.forEach(e=>{let n=e.isIntersecting&&t.some(t=>e.intersectionRatio>=t);l({isIntersecting:n,entry:e}),u.current&&u.current(n,e),n&&r&&i&&(i(),i=void 0)})},{threshold:e,root:t,rootMargin:n});return a.observe(o),()=>{a.disconnect()}},[o,JSON.stringify(e),t,n,d,r]);let f=(0,R.useRef)(null);(0,R.useEffect)(()=>{!o&&c.entry?.target&&!r&&!d&&f.current!==c.entry.target&&(f.current=c.entry.target,l({isIntersecting:i,entry:void 0}))},[o,c.entry,r,d,i]);let p=[s,!!c.isIntersecting,c.entry];return p.ref=p[0],p.isIntersecting=p[1],p.entry=p[2],p}function wG(){let e=(0,R.useRef)(!1);return(0,R.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),(0,R.useCallback)(()=>e.current,[])}var TG={width:void 0,height:void 0};function EG(e){let{ref:t,box:n=`content-box`}=e,[{width:r,height:i},a]=(0,R.useState)(TG),o=wG(),s=(0,R.useRef)({...TG}),c=(0,R.useRef)(void 0);return c.current=e.onResize,(0,R.useEffect)(()=>{if(!t.current||typeof window>`u`||!(`ResizeObserver`in window))return;let e=new ResizeObserver(([e])=>{let t=n===`border-box`?`borderBoxSize`:n===`device-pixel-content-box`?`devicePixelContentBoxSize`:`contentBoxSize`,r=DG(e,t,`inlineSize`),i=DG(e,t,`blockSize`);if(s.current.width!==r||s.current.height!==i){let e={width:r,height:i};s.current.width=r,s.current.height=i,c.current?c.current(e):o()&&a(e)}});return e.observe(t.current,{box:n}),()=>{e.disconnect()}},[n,t,o]),{width:r,height:i}}function DG(e,t,n){return e[t]?Array.isArray(e[t])?e[t][0][n]:e[t][n]:t===`contentBoxSize`?e.contentRect[n===`inlineSize`?`width`:`height`]:void 0}function OG({children:e,className:t,...n}){return(0,z.jsx)(`span`,{...n,dir:`rtl`,className:I(`block w-min max-w-full truncate`,t),children:`${e}`})}function kG({path:e,displayName:t,onClick:n,variant:r,className:i}){let a=`min-w-0 text-left text-xs leading-5`,o=t??e;return n?(0,z.jsxs)(`button`,{type:`button`,className:I(a,`inline-flex items-center gap-1 underline-offset-2 hover:underline`,i),title:e,onClick:n,children:[(0,z.jsx)(OG,{children:o}),r===`external`?(0,z.jsx)(F,{name:`ExternalLink`,className:`size-3 shrink-0 text-subtle-foreground`}):null]}):(0,z.jsx)(OG,{className:I(a,i),title:e,children:o})}function AG(e){return e===`/`?e:e.replace(/\/+$/u,``)}function jG(e){return e.replace(/^\/+/u,``)}function MG(e){return e.startsWith(`/`)}function NG({path:e,rootPath:t}){if(MG(e))return e;let n=AG(t),r=jG(e);return n===`/`?`/${r}`:`${n}/${r}`}function PG({path:e,rootPath:t}){return MG(e)?e:t?NG({path:e,rootPath:t}):null}function FG(e){if(e.trim().length===0)return[];try{return WW(e).flatMap(e=>e.files)}catch{return[]}}function IG(e){if(e.trim().length===0)return[];let t=e.split(`
|
|
1331
|
-
`),n=[],r=[],i=!1;for(let e of t){let t=e.startsWith(`diff --git `);if(t&&(i=!0),t&&r.length>0){n.push(r.join(`
|
|
1332
|
-
`)),r=[e];continue}r.push(e)}return r.length>0&&n.push(r.join(`
|
|
1333
|
-
`)),i?n.filter(e=>e.trim().length>0):[e]}function LG(e){let t=[];for(let n of e)t.push(...FG(n));return t}function RG(e){return`${e.length}:${e.slice(0,120)}:${e.slice(-120)}`}function zG(e,t){if(e.length>0){let t=0,n=0;for(let r of e)for(let e of r.hunks)t+=e.additionCount,n+=e.deletionCount;return{filesCount:e.length,insertions:t,deletions:n}}let n=0,r=0,i=0;for(let e of t.split(`
|
|
1334
|
-
`)){if(e.startsWith(`diff --git `)){i+=1;continue}if(!e.startsWith(`+++ `)&&!e.startsWith(`--- `)){if(e.startsWith(`+`)){n+=1;continue}e.startsWith(`-`)&&(r+=1)}}return{filesCount:i>0?i:+(n>0||r>0),insertions:n,deletions:r}}function BG(e){let t=0,n=0;for(let r of e.hunks)t+=r.additionCount,n+=r.deletionCount;return{insertions:t,deletions:n}}function VG(e){switch(e.type){case`new`:return`added`;case`deleted`:return`deleted`;case`rename-pure`:case`rename-changed`:return`renamed`;case`change`:return`modified`;default:return e.type}}function HG(e){let t=GG(e.name)??e.name,n=GG(e.prevName);return n&&n!==t?`${n} -> ${t}`:t}function UG(e){return`${VG(e)}:${GG(e.name)??``}:${GG(e.prevName)??``}`}function WG(e){let t=new Map;return e.map(e=>{let n=UG(e),r=t.get(n)??0;return t.set(n,r+1),{key:r===0?n:`${n}:${r+1}`,fileDiff:e}})}function GG(e){let t=e?.trim();return t&&t.length>0?t:void 0}function KG(e){let t=GG(e);if(!t||t===`/dev/null`)return[];let n=t.startsWith(`./`)?t.slice(2):t;if(n.length===0)return[];let r=[n];return(n.startsWith(`a/`)||n.startsWith(`b/`))&&r.push(n.slice(2)),Array.from(new Set(r.filter(e=>e.length>0)))}function qG(e,t){let n=new Set(KG(t));if(n.size===0)return!1;for(let t of[e.name,e.prevName])for(let e of KG(t))if(n.has(e))return!0;return!1}function JG(e){for(let t of[e.name,e.prevName]){let e=KG(t);if(e.length>0)return e[e.length-1]??null}return null}var YG={overflow:`scroll`,disableFileHeader:!1,expansionLineCount:30},XG={"--diffs-font-size":`12px`,"--diffs-line-height":`18px`},ZG={contain:`layout paint style`,contentVisibility:`auto`,containIntrinsicSize:`0 600px`},QG=/(?<=\n)/u;function $G(e,t){let n=GG(e.name)??e.name,r=GG(e.prevName)??n,i=t===`added`?{kind:`empty`,path:n}:{kind:`request`,path:t===`renamed`?r:n,side:`old`},a=t===`deleted`?{kind:`empty`,path:n}:{kind:`request`,path:n,side:`new`},o=e.hunks.map(e=>`${e.hunkSpecs??``}:${e.additionStart}:${e.additionCount}:${e.deletionStart}:${e.deletionCount}`).join(`|`);return{identity:[t,eK(i),eK(a),o].join(`:`),old:i,new:a}}function eK(e){return e.kind===`empty`?`empty:${e.path}`:`request:${e.side}:${e.path}`}function tK(e,t){return e.kind===`empty`?Promise.resolve({name:e.path,contents:``}):t(e.path,e.side)}function nK(e){return e.contents.length===0?[]:e.contents.split(QG)}var rK=(0,R.memo)(function({fileDiff:e,diffViewOptions:t,filePathRoot:n,onOpenFileInEditor:r,onOpenFilePreview:i,isCollapsed:a,onToggleCollapsed:o,stickyHeader:s=!1,isRendering:c=!1,cardRef:l,onRequestFileContents:u}){let d=(0,R.useMemo)(()=>BG(e),[e]),f=(0,R.useMemo)(()=>HG(e),[e]),p=(0,R.useMemo)(()=>VG(e),[e]),m=p===`added`,h=p===`deleted`,g=h?0:d.insertions,_=m?0:d.deletions,v=m||h,y=(0,R.useMemo)(()=>{let t=GG(e.name)??e.name,n=GG(e.prevName);return n&&n!==t?{from:n,to:t}:null},[e]),b=(0,R.useMemo)(()=>JG(e),[e]),x=b?PG({path:b,rootPath:n}):null,S=!!b,C=e.hunks.length>0,w=a!==void 0&&o!==void 0,T=!C||w&&a,E=(0,R.useMemo)(()=>({...t,disableFileHeader:!0}),[t]),{ref:D,isIntersecting:O}=CG({initialIsIntersecting:!0,threshold:1}),ee=s&&!O,k=(0,R.useMemo)(()=>$G(e,p),[e,p]),{ref:A,isIntersecting:j}=CG({initialIsIntersecting:!1,rootMargin:`200px`}),M=(0,R.useRef)(u);(0,R.useEffect)(()=>{M.current=u});let[N,te]=(0,R.useState)({status:`idle`}),ne=(0,R.useRef)(`idle`),[re,ie]=(0,R.useState)(!1),[ae,P]=(0,R.useState)(!1);(0,R.useEffect)(()=>{ne.current=`idle`,te({status:`idle`}),P(!1)},[k.identity]),(0,R.useEffect)(()=>{!T&&j&&ie(!0)},[T,j]);let oe=h&&!ae,se=re&&!c&&!oe;(0,R.useEffect)(()=>{if(!se||ne.current!==`idle`)return;let e=M.current;if(!e)return;let t=!1;return ne.current=`loading`,te({status:`loading`}),Promise.all([tK(k.old,e),tK(k.new,e)]).then(([e,n])=>{if(!t){if(!e||!n){ne.current=`unavailable`,te({status:`unavailable`});return}ne.current=`ready`,te({status:`ready`,oldLines:nK(e),newLines:nK(n)})}}).catch(()=>{t||(ne.current=`error`,te({status:`error`}))}),()=>{t=!0,ne.current===`loading`&&(ne.current=`idle`)}},[k,se]);let ce=(0,R.useMemo)(()=>N.status===`ready`?{...e,oldLines:N.oldLines,newLines:N.newLines}:e,[e,N]);return(0,z.jsxs)(`div`,{ref:l,className:`rounded-lg border border-border bg-background`,children:[s?(0,z.jsx)(`div`,{ref:D,className:`h-0`}):null,(0,z.jsx)(`div`,{className:I(`rounded-lg bg-background py-1.5 pl-2 pr-3 text-xs font-medium text-foreground`,s&&`sticky top-0 z-30`,!T&&`rounded-b-none`,ee&&`rounded-t-none border-t border-border`),children:(0,z.jsxs)(`div`,{className:`flex w-full min-w-0 items-center justify-between gap-2`,children:[(0,z.jsxs)(`span`,{className:`flex min-w-0 items-center`,children:[w?(0,z.jsx)(`button`,{type:`button`,className:I(`inline-flex w-8 shrink-0 items-center justify-center text-muted-foreground transition-colors`,C?`hover:text-foreground`:`cursor-not-allowed opacity-40`),onClick:C?o:void 0,disabled:!C,"aria-label":C?`${a?`Expand`:`Collapse`} ${f}`:`${f} has no changes to expand`,"aria-expanded":C?!a:void 0,children:(0,z.jsx)(F,{name:`ChevronRight`,className:I(`size-3.5 shrink-0 transition-transform duration-150`,C&&!a&&`rotate-90`)})}):null,(0,z.jsxs)(`span`,{className:I(`flex min-w-0 items-center gap-1.5`,`pl-[1ch]`),children:[y?(0,z.jsx)(OG,{className:`min-w-0 font-mono text-xs leading-5 text-muted-foreground`,title:y.from,children:y.from}):null,y?(0,z.jsx)(F,{name:`ArrowRight`,"aria-hidden":`true`,className:`size-3 shrink-0 text-subtle-foreground`}):null,(0,z.jsx)(kG,{path:b??e.name,displayName:y?y.to:f,onClick:S&&b&&i?()=>i(b):void 0,className:`font-mono font-medium text-foreground`}),x?(0,z.jsx)(bd,{text:x,label:`Copy path for ${f}`,className:`rounded-md hover:bg-state-hover`}):null,S&&b&&r?(0,z.jsx)(`button`,{type:`button`,onClick:()=>r(b),"aria-label":`Open ${f} in editor`,title:`Open in editor`,className:`inline-flex size-5 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-state-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,children:(0,z.jsx)(F,{name:`ExternalLink`,"aria-hidden":!0,className:`size-3`})}):null]})]}),(0,z.jsx)(`span`,{className:`flex shrink-0 items-center gap-1`,children:(0,z.jsx)(EO,{insertions:g,deletions:_,hideZero:v,className:`text-xs`})})]})}),T?null:(0,z.jsx)(`div`,{ref:A,className:`overflow-hidden rounded-b-lg bg-background`,style:ZG,children:oe?(0,z.jsxs)(`div`,{className:`flex items-center py-3 pl-2 pr-3 text-xs text-muted-foreground`,children:[w?(0,z.jsx)(`span`,{"aria-hidden":!0,className:`w-8 shrink-0`}):null,(0,z.jsxs)(`span`,{className:`pl-[1ch]`,children:[(0,z.jsx)(`span`,{children:`This file was deleted.`}),` `,(0,z.jsx)(it,{type:`button`,variant:`link`,size:`sm`,className:`h-auto p-0 text-xs underline underline-offset-4 hover:underline`,onClick:()=>{P(!0),ie(!0)},children:`Load diff`})]})]}):se?(0,z.jsx)(`div`,{className:`overflow-x-auto`,children:(0,z.jsx)(`div`,{className:`w-full max-w-full`,style:XG,children:(0,z.jsx)(vG,{fileDiff:ce,options:E})})}):(0,z.jsxs)(`div`,{className:`space-y-1.5 px-3 py-3`,children:[(0,z.jsx)(Wi,{className:`h-3 w-full rounded-sm`}),(0,z.jsx)(Wi,{className:`h-3 w-[96%] rounded-sm`}),(0,z.jsx)(Wi,{className:`h-3 w-[93%] rounded-sm`}),(0,z.jsx)(Wi,{className:`h-3 w-[90%] rounded-sm`}),(0,z.jsx)(Wi,{className:`h-3 w-[87%] rounded-sm`}),(0,z.jsx)(Wi,{className:`h-3 w-[84%] rounded-sm`})]})})]})}),iK={overflow:`scroll`,diffStyle:`unified`},aK=new WeakMap;function oK(e){let t=e.replaceAll(`\r
|
|
1335
|
-
`,`
|
|
1336
|
-
`);if(t.length===0)return[];let n=t.split(`
|
|
1337
|
-
`);return n[n.length-1]===``&&n.pop(),n}function sK(e){return e?oK(e).filter(e=>!Cl(e)):[]}function cK(e){return e.replaceAll(`\\`,`/`).replace(/^\/+/u,``)}function lK(e,t){if(!e||!t)return e;let n=t.replace(/\/+$/u,``);return n.length===0||e===n?e:e.startsWith(`${n}/`)?e.slice(n.length+1):e}function uK(e,t){if(!t)return e;let n=lK(e.path,t)??e.path,r=lK(e.movePath,t);return n===e.path&&r===e.movePath?e:{...e,path:n,movePath:r}}function dK(e,t){let n=t===`created`?`+`:`-`,r=t===`created`?`-`:`+`,i=[];for(let t of e){if(t.startsWith(n)){i.push(t);continue}t.startsWith(r)||t.startsWith(` `)||i.push(`${n}${t}`)}return i}function fK(e,t){let n=sK(e.diff);if(n.length===0)return null;let r=cK(e.path),i=t===`created`?`/dev/null`:`a/${r}`,a=t===`created`?`b/${r}`:`/dev/null`,o=dK(n,t);return o.length===0?null:`diff --git a/${r} b/${r}\n--- ${i}\n+++ ${a}\n@@ -1,${t===`created`?0:o.length} +1,${t===`created`?o.length:0} @@\n${o.join(`
|
|
1338
|
-
`)}\n`}function pK(e){let t=sK(e.diff);if(t.length===0||!t.some(e=>e.startsWith(`+`)||e.startsWith(`-`)))return null;let n=cK(e.movePath??e.path),r=t.filter(e=>e.startsWith(`-`)).length,i=t.filter(e=>e.startsWith(`+`)).length;return`diff --git a/${n} b/${n}\n--- a/${n}\n+++ b/${n}\n@@ -1,${Math.max(r,1)} +1,${Math.max(i,1)} @@\n${t.join(`
|
|
1339
|
-
`)}\n`}function mK(e){let t=e.diff;if(t&&t.trim().length>0){let n=t.trimEnd();if(n.startsWith(`diff --git`)||n.includes(`--- `)&&n.includes(`+++ `)&&n.includes(`@@`))return{patch:t,disableLineNumbers:!1};if(t.includes(`@@`)){let n=cK(e.movePath??e.path);return{patch:`diff --git a/${n} b/${n}\n--- a/${n}\n+++ b/${n}\n${t.trimEnd()}\n`,disableLineNumbers:!1}}}let n=Tl(e),r=(n===`created`?fK(e,`created`):n===`deleted`?fK(e,`deleted`):null)??pK(e);return r?{patch:r,disableLineNumbers:!0}:null}function hK(e){try{let t=WW(e.patch);if(t.length!==1)return null;let n=t[0];if(!n||n.files.length!==1)return null;let r=n.files[0];return r?{disableLineNumbers:e.disableLineNumbers,fileDiff:r}:null}catch{return null}}function gK(e,t){if(t)return null;let n=e.diff?.trimEnd();return n&&n.length>0?n:null}function _K(e){let t=aK.get(e);if(t)return t;let n=mK(e),r=n===null?null:hK(n),i={renderablePatch:r,plainDiff:gK(e,r!==null)};return aK.set(e,i),i}var vK=(0,R.memo)(function({change:e,themeType:t,workspaceRootPath:n}){let r=(0,R.useMemo)(()=>uK(e,n),[e,n]),i=(0,R.useMemo)(()=>_K(r),[r]),a=i.renderablePatch,o=(0,R.useMemo)(()=>a?{...iK,themeType:t,disableLineNumbers:a.disableLineNumbers}:null,[a,t]);if(a===null&&i.plainDiff===null)return(0,z.jsx)(`div`,{className:`rounded-md border border-border bg-surface-raised px-2 py-1.5 text-xs text-muted-foreground`,children:`No diff available.`});let s=`${a?`p`:`n`}:${i.plainDiff?.length??0}`;return a&&o?(0,z.jsx)(SN,{size:`base`,contentKey:s,className:`mt-1`,children:(0,z.jsx)(`div`,{"data-timeline-file-diff":``,children:(0,z.jsx)(rK,{fileDiff:a.fileDiff,diffViewOptions:o,filePathRoot:n,stickyHeader:!0})})}):(0,z.jsx)(SN,{size:`base`,contentKey:s,className:`mt-1 rounded-md border border-border bg-surface-raised`,children:(0,z.jsx)(`div`,{className:`min-w-fit`,children:(0,z.jsx)(LO,{className:`rounded-none border-0 bg-transparent`,children:i.plainDiff})})})});function yK(e){return typeof e==`string`?e:e===null?`null`:typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e,null,2)}function bK({toolName:e,argEntries:t}){let[n,r]=(0,R.useState)(!1),[i,a]=(0,R.useState)(!1),o=(0,R.useRef)(null);return(0,R.useEffect)(()=>{if(n)return;let e=o.current;if(!e)return;let t=()=>{a(e.scrollHeight>e.clientHeight+1)};t();let r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[n]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{ref:n?null:o,className:I(`relative whitespace-pre-wrap break-words leading-tight`,n?null:`line-clamp-3`),children:[(0,z.jsx)(`span`,{className:`font-semibold`,children:e}),t.map(([e,t])=>(0,z.jsxs)(R.Fragment,{children:[`
|
|
1340
|
-
`,(0,z.jsxs)(`span`,{className:`text-muted-foreground`,children:[e,`: `]}),(0,z.jsx)(`span`,{children:yK(t)})]},e)),i&&!n?(0,z.jsxs)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-0 flex h-[1lh] items-stretch justify-end`,"aria-hidden":!0,children:[(0,z.jsx)(`div`,{className:`w-24 bg-gradient-to-l from-card to-transparent`}),(0,z.jsx)(`button`,{type:`button`,onClick:()=>r(!0),"aria-expanded":!1,"aria-hidden":!1,className:`pointer-events-auto cursor-pointer bg-card pl-2 text-muted-foreground hover:text-foreground`,children:`Show more`})]}):null]}),n?(0,z.jsx)(`div`,{className:`mt-1 flex justify-end`,children:(0,z.jsx)(`button`,{type:`button`,onClick:()=>r(!1),className:`text-muted-foreground hover:text-foreground`,"aria-expanded":!0,children:`Show less`})}):null]})}function xK({toolName:e,args:t,output:n,streaming:r=!1}){let i=t?Object.entries(t):[],a=n.trim().length>0;return(0,z.jsx)(`div`,{className:`overflow-hidden rounded-lg border border-border bg-card`,children:(0,z.jsxs)(SN,{size:`base`,streaming:r,contentKey:n,scrollClassName:`px-4 py-3 font-mono text-xs leading-tight text-foreground`,children:[(0,z.jsx)(bK,{toolName:e,argEntries:i}),a?(0,z.jsx)(`div`,{className:`mt-2 whitespace-pre border-t border-border pt-2`,children:n}):null]})})}var SK=`grid grid-cols-[var(--detail-label-width,96px)_minmax(0,1fr)] gap-x-3`,CK=`m-0 text-xs leading-5 text-muted-foreground`,wK=`m-0 min-w-0 text-xs leading-5 text-foreground`;function TK(e){if(e)return{"--detail-label-width":e}}var EK=`flex flex-col gap-1`,DK=`rounded-md border border-border bg-surface-raised px-2 py-1`;function OK({children:e,className:t,labelWidth:n,appearance:r=`card`}){return(0,z.jsx)(`dl`,{className:I(EK,r===`card`&&DK,t),style:TK(n),children:e})}function kK({label:e,children:t,className:n,labelClassName:r,valueClassName:i,align:a=`center`,orientation:o=`horizontal`}){return o===`vertical`?(0,z.jsxs)(`div`,{className:I(`flex flex-col gap-1 py-0.5`,n),children:[(0,z.jsx)(`dt`,{className:I(CK,r),children:e}),(0,z.jsx)(`dd`,{className:I(wK,i),children:t})]}):(0,z.jsxs)(`div`,{className:I(SK,a===`center`?`items-center py-0.5`:`py-0.5`,n),children:[(0,z.jsx)(`dt`,{className:I(CK,r),children:e}),(0,z.jsx)(`dd`,{className:I(wK,i),children:t})]})}function AK({row:e}){return e.lifecycle!==`answered`&&e.lifecycle!==`resolving`?null:(0,z.jsx)(OK,{labelWidth:`120px`,children:e.questions.map(t=>(0,z.jsx)(jK,{question:t,answer:e.answers?.[t.id]??null},t.id))})}function jK({question:e,answer:t}){let n=e.shortLabel??e.prompt,r=t?.selected.map(t=>S({question:e,value:t}))??[],i=t?.freeText??null;return r.length>0||i!==null?(0,z.jsxs)(kK,{label:n,align:`start`,children:[r.length>0?(0,z.jsx)(`div`,{children:r.join(`, `)}):null,i?(0,z.jsx)(`div`,{className:`whitespace-pre-wrap`,children:i}):null]}):(0,z.jsx)(kK,{label:n,children:(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`No answer`})})}function MK(e){let t=[];for(let n of e)n!==null&&t.push(n);return t}function NK({row:e,themeType:t,workspaceRootPath:n}){switch(e.workKind){case`command`:return(0,z.jsx)(MN,{commandLine:`$ ${e.command}`,metadataLines:MK([e.source?`source: ${e.source}`:null]),output:e.output,exitCode:e.exitCode,streaming:e.status===`pending`});case`tool`:return(0,z.jsx)(xK,{toolName:e.toolName,args:e.toolArgs,output:e.output,streaming:e.status===`pending`});case`file-change`:return(0,z.jsxs)(`div`,{className:`space-y-2`,children:[(0,z.jsx)(vK,{change:e.change,themeType:t,workspaceRootPath:n}),e.stderr?(0,z.jsx)(SN,{size:`base`,contentKey:e.stderr,className:`rounded-md`,children:(0,z.jsx)(LO,{tone:`danger`,className:`rounded-none border-0 px-2 py-1.5`,children:e.stderr})}):null]});case`delegation`:return null;case`question`:return(0,z.jsx)(AK,{row:e});case`approval`:case`web-search`:case`web-fetch`:return null;default:return yl(e)}}var PK=`cubic-bezier(0.16, 1, 0.3, 1)`;function FK(e,t){t.savedDuration===null&&(t.savedDuration=e.style.transitionDuration),e.style.transitionDuration=`0s`}function IK(e,t){t.restoreFrame!==null&&cancelAnimationFrame(t.restoreFrame),t.restoreFrame=requestAnimationFrame(()=>{t.restoreFrame=null,t.savedDuration!==null&&(e.style.transitionDuration=t.savedDuration,t.savedDuration=null)})}function LK(e,t,n,r){let i=parseFloat(e.style.height),a=parseFloat(t);(n||Number.isFinite(i)&&Number.isFinite(a)&&a<i)&&(FK(e,r),IK(e,r)),e.style.height=t}function RK(e,t){t.restoreFrame!==null&&(cancelAnimationFrame(t.restoreFrame),t.restoreFrame=null),t.savedDuration!==null&&e&&(e.style.transitionDuration=t.savedDuration,t.savedDuration=null)}function zK({visible:e,children:t,durationMs:n=180,className:r}){let i=(0,R.useRef)(null),a=(0,R.useRef)(null),o=Br();return(0,R.useLayoutEffect)(()=>{let t=i.current,n=a.current;if(!t||!n||(t.style.height=e?`${n.offsetHeight}px`:`0px`,typeof ResizeObserver>`u`))return;let r=null,s=!1,c={savedDuration:null,restoreFrame:null},l=new ResizeObserver(n=>{let i=n[0];if(!i)return;let{width:a,height:l}=i.contentRect,u=r!==null&&a!==r,d=o.get(uO)>0,f=u||s||d;s=!1,r=a,LK(t,e?`${l}px`:`0px`,f,c)});l.observe(n);let u=()=>{document.visibilityState===`visible`&&(s=!0,LK(t,e?`${n.offsetHeight}px`:`0px`,!0,c))};return document.addEventListener(`visibilitychange`,u),()=>{l.disconnect(),document.removeEventListener(`visibilitychange`,u),RK(t,c)}},[e,o]),(0,z.jsx)(`div`,{ref:i,className:r,style:{overflowX:`visible`,overflowY:`clip`,opacity:+!!e,transition:`height ${n}ms ${PK}, opacity ${n}ms ${PK}`},children:(0,z.jsx)(`div`,{ref:a,style:{display:`flow-root`},children:t})})}var BK=250;function VK({children:e,className:t,durationMs:n=180}){let r=(0,R.useRef)(null),i=(0,R.useRef)(null),a=Br();return(0,R.useLayoutEffect)(()=>{let e=r.current,t=i.current;if(!e||!t||typeof ResizeObserver>`u`)return;e.style.height=`${t.offsetHeight}px`;let n=null,o=!1,s=!1,c=window.setTimeout(()=>{s=!0},BK),l={savedDuration:null,restoreFrame:null},u=new ResizeObserver(t=>{let r=t[0];if(!r)return;let{width:i,height:u}=r.contentRect,d=n!==null&&i!==n,f=a.get(uO)>0,p=d||o||!s||f;o=!1,n=i,LK(e,`${u}px`,p,l),s||(window.clearTimeout(c),c=window.setTimeout(()=>{s=!0},BK))});u.observe(t);let d=()=>{document.visibilityState===`visible`&&(o=!0,LK(e,`${t.offsetHeight}px`,!0,l))};return document.addEventListener(`visibilitychange`,d),()=>{u.disconnect(),document.removeEventListener(`visibilitychange`,d),window.clearTimeout(c),RK(e,l)}},[a]),(0,z.jsx)(`div`,{ref:r,className:t,style:{overflowX:`visible`,overflowY:`clip`,transition:`height ${n}ms ${PK}`},children:(0,z.jsx)(`div`,{ref:i,style:{display:`flow-root`},children:e})})}function HK(e){return e===null?`<null>`:e===void 0?`<undefined>`:String(e)}function UK(e){return e.map(HK).join(``)}function WK(e){switch(e.type){case`read`:return UK([e.type,e.command,e.name,e.path]);case`list_files`:return UK([e.type,e.command,e.path]);case`search`:return UK([e.type,e.command,e.query,e.path]);case`unknown`:return UK([e.type,e.command]);default:return yl(e)}}function GK(e){return e.map(WK).join(``)}var KK=new WeakMap,qK=new WeakMap;function JK(e){let t=qK.get(e);if(t!==void 0)return t;let n=e.map(ZK).join(``);return qK.set(e,n),n}function YK(e){return UK([e.kind,e.id,e.threadId,e.turnId,e.sourceSeqStart,e.sourceSeqEnd,e.startedAt,e.createdAt])}function XK(e){let t=[YK(e),e.status,e.workKind,e.inClosedStep];switch(e.workKind){case`command`:return UK([...t,e.callId,e.command,e.source,e.exitCode,e.completedAt,e.approvalStatus,GK(e.activityIntents)]);case`tool`:return UK([...t,e.callId,e.toolName,e.completedAt,e.approvalStatus,GK(e.activityIntents)]);case`file-change`:return UK([...t,e.callId,e.approvalStatus,e.change.kind,e.change.path,e.change.movePath,e.change.diffStats.added,e.change.diffStats.removed]);case`web-search`:return UK([...t,e.callId,e.queries.join(``),e.completedAt]);case`web-fetch`:return UK([...t,e.callId,e.url,e.prompt,e.pattern,e.completedAt]);case`delegation`:return UK([...t,e.callId,e.toolName,e.subagentType,e.description,e.completedAt,JK(e.childRows)]);case`approval`:return UK([...t,e.interactionId,e.approvalKind,e.lifecycle,e.approvalKind===`permission-grant`?e.grantScope:null,e.approvalKind===`permission-grant`?e.statusReason:null,e.target.itemId,e.target.toolName]);case`question`:return UK([...t,e.interactionId,e.lifecycle,e.statusReason,e.questions.map(e=>UK([e.id,e.prompt,e.shortLabel,e.multiSelect,e.allowFreeText,e.options?.map(e=>UK([e.value,e.label,e.description])).join(``)])).join(``),e.answers?Object.entries(e.answers).map(([e,t])=>UK([e,t.selected.join(``),t.freeText])).join(``):null]);default:return yl(e)}}function ZK(e){let t=KK.get(e);if(t!==void 0)return t;let n=QK(e);return KK.set(e,n),n}function QK(e){let t=YK(e);switch(e.kind){case`conversation`:return UK([t,e.role,e.turnRequest?.kind,e.turnRequest?.status,e.attachments?.localFiles,e.attachments?.localImages,e.attachments?.webImages]);case`system`:return e.systemKind===`operation`?UK([t,e.status,e.systemKind,e.operationKind,e.operationKind===`manager-assignment`?e.managerAssignment.action:null,e.operationKind===`manager-assignment`?e.managerAssignment.previousManagerThreadId:null,e.operationKind===`manager-assignment`?e.managerAssignment.previousManagerThreadTitle:null,e.operationKind===`manager-assignment`?e.managerAssignment.nextManagerThreadId:null,e.operationKind===`manager-assignment`?e.managerAssignment.nextManagerThreadTitle:null,e.title,e.detail]):UK([t,e.status,e.systemKind,e.title,e.detail]);case`bundle-summary`:case`step-summary`:return UK([t,e.status,JK(e.children)]);case`turn`:return UK([t,e.status,e.summaryCount,e.completedAt,e.children?JK(e.children):null]);case`work`:return XK(e);default:return yl(e)}}var $K=`relative my-1 pl-3 pr-2 before:pointer-events-none before:absolute before:bottom-1 before:left-1.5 before:top-0 before:w-px before:bg-border-hairline before:content-['']`,eq=(0,R.createContext)(null),tq=(0,R.createContext)(null);function nq(){let e=(0,R.useContext)(eq);if(!e)throw Error(`Thread timeline renderer context is missing`);return e}function rq(){let e=(0,R.useContext)(tq);if(!e)throw Error(`Thread timeline turn-state context is missing`);return e}function iq({activeLatestBundleId:e,compactActivityIntents:t,row:n,scopeActive:r}){return UK([ZK(n),t,r,e===n.id])}function aq({activeLatestBundleId:e,compactActivityIntents:t,row:n,scopeActive:r,spacing:i}){if(t&&mq(n)){let e=id(n);if(e.length>0)return{kind:`compact-activity-intents`,titles:e}}return{kind:`row-title`,title:cd(n,gq({activeLatestBundleId:e,row:n,scopeActive:r}))}}function oq(e){let t=(0,R.useRef)(null),n=iq(e),r=t.current;if(r?.key===n)return r.state;let i=aq(e);return t.current={key:n,state:i},i}function sq(e,t){return e.compactActivityIntents===t.compactActivityIntents&&e.scopeActive===t.scopeActive&&e.spacing===t.spacing&&e.activeLatestBundleId===t.activeLatestBundleId&&(e.row===t.row||ZK(e.row)===ZK(t.row))}function cq(e,t){return e.activeLatestBundleId===t.activeLatestBundleId&&e.compactActivityIntents===t.compactActivityIntents&&e.title===t.title&&e.horizontalPadding===t.horizontalPadding&&(e.row===t.row||ZK(e.row)===ZK(t.row))}function lq(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function uq(e){let t=(0,R.useRef)(e);return lq(t.current,e)||(t.current=e),t.current}function dq(e){return{id:e.id,threadId:e.threadId,turnId:e.turnId,sourceSeqStart:e.sourceSeqStart,sourceSeqEnd:e.sourceSeqEnd,startedAt:e.startedAt,createdAt:e.createdAt,kind:`turn`,status:e.status,summaryCount:e.summaryCount,completedAt:e.completedAt,children:null}}function fq({onLoadTurnSummaryRows:e,row:t}){e(dq(t))}function pq(){let e=(0,R.useRef)(_u());return(0,R.useCallback)((t,n)=>bu(t,{...n,cache:e.current}),[])}function mq(e){return e.kind===`work`&&(e.workKind===`command`||e.workKind===`tool`)&&e.approvalStatus===null}function hq({activeLatestBundleId:e,row:t,scopeActive:n}){return t.kind===`bundle-summary`&&n&&t.id===e}function gq({activeLatestBundleId:e,row:t,scopeActive:n}){let r=hq({activeLatestBundleId:e,row:t,scopeActive:n});return{summaryStyle:t.kind===`step-summary`?`background`:`bundle`,workStyle:t.kind===`work`&&t.inClosedStep?`summary`:`default`,isActiveLatestBundle:r}}function _q(e){switch(e){case`top-level`:case`nested`:return`default`;case`bundle`:return`flush`}}function vq({children:e,className:t,horizontalPadding:n=`default`}){return(0,z.jsx)(TO,{horizontalPadding:n,className:t,children:e})}function yq(e){switch(e){case`top-level`:return`gap-4`;case`nested`:return`gap-3`;case`bundle`:return`gap-0`}}function bq({row:e}){let{onOpenLocalFileLink:t,projectId:n,resolveUserAttachmentImageSrc:r}=nq();return e.role===`user`?(0,z.jsx)(lO,{attachments:e.attachments,initiator:e.initiator,onOpenLocalFileLink:t,projectId:n,resolveUserAttachmentImageSrc:r,role:`user`,text:e.text,turnRequest:e.turnRequest}):(0,z.jsx)(lO,{attachments:e.attachments,onOpenLocalFileLink:t,projectId:n,resolveUserAttachmentImageSrc:r,role:`assistant`,text:e.text,turnRequest:e.turnRequest})}function xq(){let e=Ue(),t=(0,R.useRef)(null),n=(0,R.useRef)(!1);return(0,R.useEffect)(()=>{if(!e||n.current)return;let r=window.setTimeout(()=>{let r=t.current;r&&(n.current=!0,e.scrollElementIntoViewClampedToMaxScroll({element:r}))},0);return()=>window.clearTimeout(r)},[e]),(0,z.jsxs)(`div`,{ref:t,role:`separator`,"aria-label":`New messages`,className:`flex items-center gap-2 px-2 py-1 text-[10px] font-medium uppercase tracking-wider text-foreground`,"data-testid":`thread-unread-divider`,children:[(0,z.jsx)(`span`,{className:`shrink-0`,children:`New`}),(0,z.jsx)(`span`,{className:`h-px min-w-0 flex-1 bg-border`,"aria-hidden":!0})]})}function Sq({detail:e,streaming:t,tone:n}){return(0,z.jsx)(SN,{size:`base`,streaming:t,contentKey:e,className:I(`overflow-hidden rounded-lg border bg-card`,n===`danger`?`border-destructive`:`border-border`),children:(0,z.jsx)(`pre`,{className:I(`whitespace-pre px-4 py-3 font-mono text-xs leading-tight`,n===`danger`?`text-destructive`:`text-foreground`),children:e})})}function Cq({activeLatestBundleId:e,compactActivityIntents:t,row:n}){let{onOpenLocalFileLink:r,projectId:i,resolveUserAttachmentImageSrc:a,themeType:o,workspaceRootPath:s}=nq();switch(n.kind){case`bundle-summary`:case`step-summary`:{let t=(0,z.jsx)(jq,{rows:n.children,scopeActive:!1,compactActivityIntents:!0,spacing:`bundle`,unreadDividerPlacement:null});return dd(n.children)?(0,z.jsx)(SN,{size:`summary`,streaming:n.kind===`bundle-summary`&&n.id===e,contentKey:JK(n.children),children:t}):t}case`turn`:return(0,z.jsx)(wq,{row:n,compactActivityIntents:t});case`work`:if(n.workKind===`delegation`){let e=n.status===`pending`;return(0,z.jsx)(SN,{size:`delegation`,streaming:e,contentKey:`${JK(n.childRows)}|${n.output.length}`,className:$K,children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[n.childRows.length>0?(0,z.jsx)(jq,{rows:n.childRows,scopeActive:e,compactActivityIntents:!1,spacing:`nested`,unreadDividerPlacement:null}):null,n.output.trim().length>0?(0,z.jsx)(lO,{attachments:null,onOpenLocalFileLink:r,projectId:i,resolveUserAttachmentImageSrc:a,role:`assistant`,text:n.output,turnRequest:null}):null]})})}return(0,z.jsx)(NK,{row:n,themeType:o,workspaceRootPath:s});case`system`:return n.detail?(0,z.jsx)(Sq,{detail:n.detail,streaming:n.status===`pending`,tone:n.systemKind===`error`||n.status===`error`?`danger`:`default`}):null;case`conversation`:return null;default:return yl(n)}}function wq({compactActivityIntents:e,row:t}){let{getViewRows:n,onLoadTurnSummaryRows:r}=nq(),{loadingTurnSummaryIds:i,erroredTurnSummaryIds:a,turnSummaryRowsById:o}=rq(),s=o[t.id],c=t.children!==null,l=s!==void 0,u=c?t.children:s?n(s,{closedScope:!0}):null,d=i.has(t.id),f=a.has(t.id),p=(0,R.useCallback)(()=>{fq({onLoadTurnSummaryRows:r,row:t})},[r,t]);return(0,R.useEffect)(()=>{c||l||d||f||fq({onLoadTurnSummaryRows:r,row:t})},[l,c,f,d,r,t]),f?(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-destructive`,children:[(0,z.jsx)(`span`,{children:`Failed to load turn details.`}),(0,z.jsxs)(it,{type:`button`,variant:`outline`,size:`sm`,onClick:p,className:`h-7 border-destructive px-2 text-destructive hover:text-destructive`,children:[(0,z.jsx)(F,{name:`RotateCcw`}),`Retry`]})]}):u?(0,z.jsx)(jq,{rows:u,scopeActive:!1,compactActivityIntents:e,spacing:`nested`,className:$K,unreadDividerPlacement:null}):(0,z.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:`Loading turn details...`})}function Tq({activeLatestBundleId:e,compactActivityIntents:t,row:n,scopeActive:r,spacing:i}){let{onTitleAction:a,resolveSegmentLinkHref:o}=nq(),s=_q(i),c=oq({activeLatestBundleId:e,compactActivityIntents:t,row:n,scopeActive:r,spacing:i});return n.kind===`conversation`?(0,z.jsx)(bq,{row:n}):c.kind===`compact-activity-intents`?(0,z.jsx)(z.Fragment,{children:c.titles.map(e=>(0,z.jsx)(vq,{horizontalPadding:s,children:(0,z.jsx)(NO,{title:e.title,onTitleAction:a,resolveSegmentLinkHref:o})},e.id))}):ud(n)?(0,z.jsx)(Oq,{activeLatestBundleId:e,row:n,title:c.title,horizontalPadding:s,compactActivityIntents:t}):(0,z.jsx)(vq,{horizontalPadding:s,children:(0,z.jsx)(NO,{title:c.title,onTitleAction:a,resolveSegmentLinkHref:o})})}var Eq=(0,R.memo)(Tq,sq);function Dq({activeLatestBundleId:e,compactActivityIntents:t,title:n,horizontalPadding:r,row:i}){let{onLoadTurnSummaryRows:a,onTitleAction:o,resolveSegmentLinkHref:s}=nq(),{autoExpandedRowIds:c,loadingTurnSummaryIds:l,erroredTurnSummaryIds:u,turnSummaryRowsById:d}=rq(),f=(0,R.useCallback)(()=>{i.kind===`turn`&&i.children===null&&!d[i.id]&&!l.has(i.id)&&!u.has(i.id)&&fq({onLoadTurnSummaryRows:a,row:i})},[u,l,a,i,d]),p=(0,R.useCallback)(()=>(0,z.jsx)(Cq,{activeLatestBundleId:e,row:i,compactActivityIntents:t}),[e,t,i]);return(0,z.jsx)(IO,{title:n,horizontalPadding:r,autoExpanded:c.has(i.id),onBeforeExpand:f,onTitleAction:o,resolveSegmentLinkHref:s,renderBody:p})}var Oq=(0,R.memo)(Dq,cq);function kq({rows:e,unreadDividerPlacement:t}){if(t===null)return-1;switch(t.kind){case`before-first`:return e.length>0?0:-1;case`after-cutoff`:return e.findIndex(e=>e.createdAt>t.cutoffAt);default:yl(t)}}function Aq({rows:e,unreadDividerPlacement:t}){let n=[],r=kq({rows:e,unreadDividerPlacement:t});for(let[t,i]of e.entries())t===r&&n.push({kind:`unread-divider`,id:`thread-unread-divider`}),n.push({kind:`row`,row:i});return n}function jq({compactActivityIntents:e,rows:t,scopeActive:n,spacing:r,className:i,unreadDividerPlacement:a}){let o=(0,R.useMemo)(()=>sd(t),[t]),s=(0,R.useMemo)(()=>Aq({rows:t,unreadDividerPlacement:a}),[t,a]);return(0,z.jsx)(`div`,{className:I(`flex min-w-0 flex-col`,yq(r),i),"data-timeline-row-list":r,children:s.map(t=>t.kind===`unread-divider`?(0,z.jsx)(xq,{},t.id):(0,z.jsx)(`div`,{"data-timeline-row-id":t.row.id,children:(0,z.jsx)(Eq,{activeLatestBundleId:o,row:t.row,scopeActive:n,spacing:r,compactActivityIntents:e})},t.row.id))})}function Mq(e){return(0,z.jsx)(Nq,{...e},e.turnSummaryRowsIdentity)}function Nq(e){let t=pq(),n=(0,R.useMemo)(()=>t(e.timelineRows),[t,e.timelineRows]),r=vl(e.threadRuntimeDisplayStatus),i=e.themeType??`light`,a=uq((0,R.useMemo)(()=>{let t=new Set(md({rows:n,scopeActive:r}));if(e.initialExpanded)for(let n of e.initialExpanded)t.add(n);return t},[n,r,e.initialExpanded])),o=uq(e.loadingTurnSummaryIds),s=uq(e.erroredTurnSummaryIds),c=e.onLoadTurnSummaryRows,l=(0,R.useRef)(new Set);(0,R.useEffect)(()=>{for(let e of s)l.current.delete(e)},[s]);let u=(0,R.useCallback)(e=>{l.current.has(e.id)||(l.current.add(e.id),c(e))},[c]),d=e.projectId,f=(0,R.useMemo)(()=>{if(d!==void 0)return e=>{switch(e.kind){case`thread`:return`/projects/${d}/threads/${e.threadId}`;default:return yl(e.kind)}}},[d]),p=(0,R.useMemo)(()=>({getViewRows:t,onLoadTurnSummaryRows:u,onOpenLocalFileLink:e.onOpenLocalFileLink,onTitleAction:e.onTitleAction,projectId:d,resolveSegmentLinkHref:f,resolveUserAttachmentImageSrc:e.resolveUserAttachmentImageSrc,themeType:i,workspaceRootPath:e.workspaceRootPath}),[t,u,e.onOpenLocalFileLink,e.onTitleAction,d,f,e.resolveUserAttachmentImageSrc,e.workspaceRootPath,i]),m=(0,R.useMemo)(()=>({autoExpandedRowIds:a,erroredTurnSummaryIds:s,loadingTurnSummaryIds:o,turnSummaryRowsById:e.turnSummaryRowsById}),[a,s,o,e.turnSummaryRowsById]);return(0,z.jsx)(eq.Provider,{value:p,children:(0,z.jsx)(tq.Provider,{value:m,children:(0,z.jsx)(VK,{children:(0,z.jsx)(jq,{rows:n,scopeActive:r,compactActivityIntents:!1,spacing:`top-level`,unreadDividerPlacement:e.unreadDividerPlacement??null})})})})}var Pq=(0,R.memo)(Mq);Pq.displayName=`ThreadTimelineRows`;function Fq({label:e,className:t}){return(0,z.jsx)(`div`,{className:I(`px-2 text-sm text-muted-foreground`,t),children:e})}function Iq({label:e,isThinking:t=!1,details:n,className:r}){let[i,a]=(0,R.useState)(!1),o=e??(t?`Thinking...`:`Working...`);return(n?.trim()??``).length>0?(0,z.jsx)(`div`,{className:I(`mt-4`,r),children:(0,z.jsx)(bO,{isExpanded:i,summaryContent:(0,z.jsx)(`span`,{className:`animate-shine`,children:o}),headerToneClass:vO(i),onToggle:()=>a(e=>!e),children:(0,z.jsx)(`div`,{className:`max-h-80 overflow-auto whitespace-pre-wrap text-sm italic leading-relaxed text-muted-foreground`,children:n})})}):(0,z.jsx)(Fq,{label:(0,z.jsx)(`span`,{className:`animate-shine`,children:o}),className:I(`mt-4`,r)})}var Lq=`Popover`,[Rq,zq]=Nn(Lq,[On]),Bq=On(),[Vq,Hq]=Rq(Lq),Uq=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Bq(t),c=R.useRef(null),[l,u]=R.useState(!1),[d,f]=Kt({prop:r,defaultProp:i??!1,onChange:a,caller:Lq});return(0,z.jsx)(xn,{...s,children:(0,z.jsx)(Vq,{scope:t,contentId:dn(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:R.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:R.useCallback(()=>u(!0),[]),onCustomAnchorRemove:R.useCallback(()=>u(!1),[]),modal:o,children:n})})};Uq.displayName=Lq;var Wq=`PopoverAnchor`,Gq=R.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Hq(Wq,n),a=Bq(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return R.useEffect(()=>(o(),()=>s()),[o,s]),(0,z.jsx)(gt,{...a,...r,ref:t})});Gq.displayName=Wq;var Kq=`PopoverTrigger`,qq=R.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Hq(Kq,n),a=Bq(n),o=tt(t,i.triggerRef),s=(0,z.jsx)(An.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":cJ(i.open),...r,ref:o,onClick:nn(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,z.jsx)(gt,{asChild:!0,...a,children:s})});qq.displayName=Kq;var Jq=`PopoverPortal`,[Yq,Xq]=Rq(Jq,{forceMount:void 0}),Zq=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Hq(Jq,t);return(0,z.jsx)(Yq,{scope:t,forceMount:n,children:(0,z.jsx)(Jt,{present:n||a.open,children:(0,z.jsx)(zt,{asChild:!0,container:i,children:r})})})};Zq.displayName=Jq;var Qq=`PopoverContent`,$q=R.forwardRef((e,t)=>{let n=Xq(Qq,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Hq(Qq,e.__scopePopover);return(0,z.jsx)(Jt,{present:r||a.open,children:a.modal?(0,z.jsx)(tJ,{...i,ref:t}):(0,z.jsx)(nJ,{...i,ref:t})})});$q.displayName=Qq;var eJ=en(`PopoverContent.RemoveScroll`),tJ=R.forwardRef((e,t)=>{let n=Hq(Qq,e.__scopePopover),r=R.useRef(null),i=tt(t,r),a=R.useRef(!1);return R.useEffect(()=>{let e=r.current;if(e)return Tt(e)},[]),(0,z.jsx)(Gt,{as:eJ,allowPinchZoom:!0,children:(0,z.jsx)(rJ,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nn(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:nn(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:nn(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),nJ=R.forwardRef((e,t)=>{let n=Hq(Qq,e.__scopePopover),r=R.useRef(!1),i=R.useRef(!1);return(0,z.jsx)(rJ,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),rJ=R.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=Hq(Qq,n),p=Bq(n);return En(),(0,z.jsx)(At,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,z.jsx)(Zt,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,z.jsx)(jn,{"data-state":cJ(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),iJ=`PopoverClose`,aJ=R.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Hq(iJ,n);return(0,z.jsx)(An.button,{type:`button`,...r,ref:t,onClick:nn(e.onClick,()=>i.onOpenChange(!1))})});aJ.displayName=iJ;var oJ=`PopoverArrow`,sJ=R.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Bq(n);return(0,z.jsx)(rn,{...i,...r,ref:t})});sJ.displayName=oJ;function cJ(e){return e?`open`:`closed`}var lJ=Uq,uJ=Gq,dJ=qq,fJ=Zq,pJ=$q,mJ=R.createContext({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function hJ(){return R.useContext(mJ)}function gJ({children:e,open:t,onOpenChange:n,defaultOpen:r,...i}){let a=cn(t,n,r);return a.isCompactViewport?(0,z.jsx)(mJ.Provider,{value:a,children:e}):(0,z.jsx)(lJ,{open:a.open,onOpenChange:a.onOpenChange,...i,children:(0,z.jsx)(mJ.Provider,{value:a,children:e})})}var _J=R.forwardRef(({asChild:e,children:t,className:n,...r},i)=>{let{isCompactViewport:a,open:o,onOpenChange:s}=hJ();return a?(0,z.jsx)(an,{ref:i,asChild:e,open:o,onOpenChange:s,haspopup:`dialog`,className:n,...r,children:t}):(0,z.jsx)(dJ,{ref:i,asChild:e,className:Pn(n),...r,children:t})});_J.displayName=`PopoverTrigger`;var vJ=R.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,children:r,mobileTitle:i,mobileClassName:a,...o},s)=>{let{isCompactViewport:c,open:l,onOpenChange:u}=hJ();if(c){let t=vn(o);return(0,z.jsx)(wn,{open:l,onOpenChange:u,srLabel:i??`Options`,contentClassName:a,children:(0,z.jsx)(`div`,{ref:s,className:I(`overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]`,e),...t,children:r})})}return(0,z.jsx)(fJ,{children:(0,z.jsx)(pJ,{ref:s,align:t,sideOffset:n,className:I(`z-50 w-96 rounded-md border bg-background p-4 text-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`,e),...o,children:r})})});vJ.displayName=`PopoverContent`;var yJ=R.forwardRef(({children:e,...t},n)=>{let{isCompactViewport:r}=hJ();return r?(0,z.jsx)(z.Fragment,{children:e}):(0,z.jsx)(uJ,{ref:n,...t,children:e})});yJ.displayName=`PopoverAnchor`;var bJ=`(pointer: coarse)`;function xJ(){return wt(bJ)}var SJ=160,CJ=()=>void 0,wJ={onPointerEnter:CJ,onPointerLeave:CJ};function TJ({closeDelayMs:e=SJ}={}){let t=xJ(),[n,r]=(0,R.useState)(!1),[i,a]=(0,R.useState)(!1),[o,s]=(0,R.useState)(!1),c=(0,R.useRef)(null),l=(0,R.useCallback)(()=>{c.current!==null&&(window.clearTimeout(c.current),c.current=null)},[]);(0,R.useEffect)(()=>{if(!t){if(l(),i||o){r(!0);return}return c.current=window.setTimeout(()=>{r(!1),c.current=null},e),l}},[l,e,t,o,i]),(0,R.useEffect)(()=>l,[l]);let u=(0,R.useCallback)(e=>{if(e){l(),r(!0);return}a(!1),s(!1),l(),r(!1)},[l]);return{open:n,triggerHoverProps:t?wJ:{onPointerEnter:()=>{a(!0)},onPointerLeave:()=>{a(!1)}},contentHoverProps:t?wJ:{onPointerEnter:()=>{s(!0)},onPointerLeave:()=>{s(!1)},onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{e.preventDefault()}},handleOpenChange:u}}var EJ=new Intl.NumberFormat(`en-US`,{notation:`compact`,maximumFractionDigits:0});function DJ(e){if(e.modelContextWindow<=0)return 0;let t=e.usedTokens/e.modelContextWindow;return Math.round(Math.min(Math.max(t,0),1)*100)}function OJ(e){let t=Math.max(0,Math.round(e));return EJ.format(t).toLowerCase()}function kJ({usage:e,className:t}){let{open:n,triggerHoverProps:r,contentHoverProps:i,handleOpenChange:a}=TJ(),o=DJ(e),s=Math.max(0,100-o),c=Math.min(Math.max(o,0),100),l=6.5,u=2*Math.PI*l,d=u*(1-c/100),f=o>=90?`text-destructive`:o>=75?`text-warning-text`:`text-muted-foreground`,p=OJ(e.usedTokens),m=OJ(e.modelContextWindow),h=e.estimated?`Estimated context window usage`:`Context window usage`;return(0,z.jsxs)(gJ,{open:n,onOpenChange:a,children:[(0,z.jsx)(_J,{asChild:!0,children:(0,z.jsx)(`button`,{type:`button`,...r,className:I(`inline-flex size-6 items-center justify-center rounded-full transition-colors hover:bg-state-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,t),"aria-label":`Context window ${o}% used`,title:h,children:(0,z.jsxs)(`svg`,{viewBox:`0 0 16 16`,className:I(`size-4`,f),"aria-hidden":`true`,children:[(0,z.jsx)(`circle`,{cx:`8`,cy:`8`,r:l,fill:`none`,strokeWidth:`3`,className:`stroke-border-hairline`}),(0,z.jsx)(`circle`,{cx:`8`,cy:`8`,r:l,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,strokeDasharray:u,strokeDashoffset:d,transform:`rotate(-90 8 8)`})]})})}),(0,z.jsx)(vJ,{side:`top`,align:`end`,sideOffset:8,...i,className:`w-auto max-w-[240px] border-border bg-surface-scrim px-3 py-2 text-sm shadow-lg backdrop-blur-sm`,children:(0,z.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:e.estimated?`Estimated context window:`:`Context window:`}),(0,z.jsxs)(`p`,{className:`font-medium`,children:[o,`% used (`,s,`% left)`]}),(0,z.jsxs)(`p`,{className:`font-medium`,children:[p,` / `,m,` tokens used`]})]})})]})}function AJ(e){return vl(e.runtime.displayStatus)}function jJ(e){if(e.parentThreadId!=null)return!1;switch(e.status){case`error`:case`idle`:return!gc(e);case`active`:case`created`:case`provisioning`:return!1;default:return N(e.status)}}var MJ=`flex w-full items-center gap-2 rounded-md pr-0 text-sm transition-colors`,NJ=`pl-2`,PJ=`pl-8`,FJ=`pl-8`,IJ=`pl-14`,LJ=`pl-20`,RJ=`text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,zJ=`before:pointer-events-none before:absolute before:bottom-0 before:left-4 before:top-0 before:z-[45] before:w-px before:bg-border-hairline before:content-[''] max-md:pointer-coarse:before:left-5`,BJ=`before:pointer-events-none before:absolute before:bottom-0 before:left-10 before:top-0 before:z-30 before:w-px before:bg-border-hairline before:content-['']`,VJ=`before:pointer-events-none before:absolute before:bottom-0 before:left-16 before:top-0 before:z-30 before:w-px before:bg-border-hairline before:content-['']`,HJ=`pointer-events-none absolute bottom-0 left-10 top-0 z-[1] w-px bg-border-hairline`,UJ=`pointer-events-none absolute -bottom-0.5 -right-1 flex h-3 min-w-3 items-center justify-center rounded-full bg-primary px-0.5 text-[8px] font-semibold leading-none text-primary-foreground transition-opacity duration-150`,WJ=`inline-flex shrink-0 items-center justify-center text-subtle-foreground`;function GJ({childCount:e,isCollapsed:t,onToggle:n,threadTitle:r}){return(0,z.jsx)(`button`,{type:`button`,"aria-expanded":!t,"aria-label":t?`Expand ${r} threads`:`Collapse ${r} threads`,title:t?`Expand managed threads`:`Collapse managed threads`,onClick:e=>{e.preventDefault(),e.stopPropagation(),n()},className:I(`relative z-10 rounded-md outline-none ring-sidebar-ring transition-colors hover:text-sidebar-foreground focus-visible:ring-2`,WJ,Rn),children:(0,z.jsxs)(`span`,{className:I(`relative inline-flex items-center justify-center`,Ln),children:[(0,z.jsx)(`span`,{"data-manager-leading-icon":``,className:I(`absolute inline-flex items-center justify-center opacity-100 transition-opacity duration-150 group-hover/thread-row:opacity-0 group-has-[:focus-visible]/thread-row:opacity-0`,Ln),"aria-hidden":`true`,children:(0,z.jsx)(F,{name:`UserRound`,className:Ln,"aria-hidden":`true`})}),(0,z.jsx)(`span`,{"data-manager-collapse-indicator":``,className:I(`absolute inline-flex items-center justify-center opacity-0 transition-all duration-150 group-hover/thread-row:opacity-100 group-has-[:focus-visible]/thread-row:opacity-100`,Ln,!t&&`rotate-90`),"aria-hidden":`true`,children:(0,z.jsx)(F,{name:`ChevronRight`,className:Ln,"aria-hidden":`true`})}),t?(0,z.jsx)(YJ,{count:e,className:`group-hover/thread-row:opacity-0 group-has-[:focus-visible]/thread-row:opacity-0`}):null]})})}function KJ(){return(0,z.jsx)(`span`,{"data-manager-leading-icon":``,className:I(WJ,Rn),"aria-hidden":`true`,children:(0,z.jsx)(F,{name:`UserRound`,className:Ln,"aria-hidden":`true`})})}function qJ({hasPendingInteraction:e,isBusy:t,showUnreadBadge:n}){return e?(0,z.jsx)(`span`,{className:I(`rounded-full bg-attention`,Fn),"aria-label":`Pending interaction requires attention`,title:`Pending interaction`}):t?(0,z.jsx)(F,{name:`CircleDashed`,className:I(`animate-spin text-muted-foreground`,Ln),"aria-label":`Thread working`}):n?(0,z.jsx)(`span`,{className:I(`rounded-full bg-primary`,Fn),"aria-label":`Unread thread requires attention`,title:`Unread thread requires attention`}):null}function JJ(e){return e>9?`9+`:String(e)}function YJ({className:e,count:t}){return(0,z.jsx)(`span`,{"aria-hidden":`true`,className:I(UJ,e),children:JJ(t)})}function XJ({environmentIcon:e,environmentIconLabel:t,hasPendingInteraction:n,isBusy:r,showUnreadBadge:i}){return n||r||i?(0,z.jsx)(`span`,{className:I(WJ,Rn),children:(0,z.jsx)(qJ,{hasPendingInteraction:n,isBusy:r,showUnreadBadge:i})}):(0,z.jsx)(ZJ,{environmentIcon:e,environmentIconLabel:t})}function ZJ({environmentIcon:e,environmentIconLabel:t}){return e?(0,z.jsx)(F,{name:e,className:I(`text-muted-foreground`,Ln),"aria-label":t??void 0}):null}function QJ({projectId:e,thread:t,isActive:n,onProjectSelect:r,options:i}){let[a,o]=(0,R.useState)(!1),[s,c]=(0,R.useState)(!1),l=t.hasPendingInteraction,u=AJ(t)&&!l,d=!l&&jJ(t),f=Wn(t),p=i.kind===`manager`?i:null,m=p!==null,h=i.kind===`managed-child`,g=i.kind===`env-grouped-child`,_=i.kind===`env-grouped-managed-child`,v=h||g||_,y=g||_,b=p?.isCollapsed??!1,x=p?.managedChildCount??0,S=x>0,C=y?null:pc(t.environmentWorkspaceDisplayKind),w=y?null:hc(t.environmentWorkspaceDisplayKind),T=I(`group/thread-row`,MJ,!m&&`relative`,v?Yt:vt,m?FJ:v?_?LJ:IJ:PJ,n?`bg-sidebar-border text-sidebar-foreground`:RJ),E=a||s,D=(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(sr,{to:`/projects/${e}/threads/${t.id}`,onClick:r,"aria-label":`Open ${f}`,title:`Open ${f}`,className:`absolute inset-0 rounded-md outline-none ring-sidebar-ring focus-visible:ring-2`}),p&&S?(0,z.jsx)(GJ,{childCount:x,isCollapsed:b,onToggle:()=>{p.onToggleCollapsed(t.id)},threadTitle:f}):m?(0,z.jsx)(KJ,{}):null,(0,z.jsx)(`span`,{className:`flex min-w-0 flex-1 items-center gap-1.5`,children:(0,z.jsx)(`span`,{className:`min-w-0 truncate`,children:f})}),(0,z.jsx)(`span`,{className:I(`flex shrink-0 items-center justify-end`,Yt),children:(0,z.jsxs)(`span`,{className:I(`relative shrink-0`,hn),children:[(0,z.jsx)(`span`,{className:I(`absolute inset-0 flex items-center justify-center transition-opacity`,E?`opacity-0`:`group-hover/thread-row:opacity-0`),children:(0,z.jsx)(XJ,{environmentIcon:C,environmentIconLabel:w,hasPendingInteraction:l,isBusy:u,showUnreadBadge:d})}),(0,z.jsx)(`div`,{className:I(`absolute inset-0 z-10 flex items-center justify-end transition-opacity`,E?`pointer-events-auto opacity-100`:`pointer-events-none opacity-0 group-hover/thread-row:pointer-events-auto group-hover/thread-row:opacity-100`),children:(0,z.jsx)(gl,{thread:t,triggerClassName:I(`text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-foreground`,hn),onOpenChange:o})})]})})]});return(0,z.jsx)(_l,{thread:t,onOpenChange:c,children:m?(0,z.jsx)(co,{tier:`manager`,className:T,children:D}):(0,z.jsx)(`div`,{className:T,children:D})})}var $J=(0,R.memo)(QJ);function eY(e){return e===`managed-worktree`||e===`unmanaged-worktree`}function tY(e,t){let n=t.createdAt-e.createdAt;return n===0?e.id.localeCompare(t.id):n}function nY(e,t){let n=t.latestAttentionAt-e.latestAttentionAt;return n===0?tY(e,t):n}function rY(e,t){let n=e.status===`active`;return n===(t.status===`active`)?n?tY(e,t):nY(e,t):n?-1:1}function iY(e){return e.kind===`thread`?e.thread:e.group.threads[0]}function aY(e,t){return rY(iY(e),iY(t))}function oY(e){let{environmentThreadGroups:t,looseThreads:n}=lY(e),r=[...n.map(e=>({kind:`thread`,thread:e})),...t.map(e=>({kind:`environment`,group:e}))];return r.sort(aY),r}function sY({managerThreadIds:e,thread:t}){return t.type!==`standard`||t.parentThreadId===null||!e.has(t.parentThreadId)?null:t.parentThreadId}function cY(e){let t=e.filter(e=>e.type===`manager`).sort(tY),n=new Set(t.map(e=>e.id)),r=new Map,i=new Map,a=[];for(let e of t)r.set(e.id,[]),i.set(e.id,{managedChildBusyCount:0,managedChildCount:0});for(let t of e){if(t.type!==`standard`)continue;let e=sY({managerThreadIds:n,thread:t});if(e===null){a.push(t);continue}let o=r.get(e),s=i.get(e);!o||!s||(o.push(t),s.managedChildCount+=1,AJ(t)&&(s.managedChildBusyCount+=1))}return{managerThreadGroups:t.map(e=>({managerThread:e,managedItems:oY(r.get(e.id)??[]),stats:i.get(e.id)??{managedChildBusyCount:0,managedChildCount:0}})),unmanagedItems:oY(a)}}function lY(e){let t=new Map;for(let n of e){if(n.environmentId===null||!eY(n.environmentWorkspaceDisplayKind))continue;let e=t.get(n.environmentId);e||(e=[],t.set(n.environmentId,e)),e.push(n)}let n=new Set,r=[];for(let[e,i]of t)i.length<2||(i.sort(rY),n.add(e),r.push({environmentId:e,threads:i}));let i=e.filter(e=>e.environmentId===null||!n.has(e.environmentId));return i.sort(rY),{environmentThreadGroups:r,looseThreads:i}}var uY={kind:`default`},dY={kind:`managed-child`},fY={kind:`env-grouped-child`},pY={kind:`env-grouped-managed-child`},mY=[];function hY({environmentId:e,representativeThread:t,paddingClass:n,stickyTier:r,parentLineClass:i,childCount:a,isCollapsed:o,onCreateNewThread:s,onToggleCollapsed:c}){let l=t.environmentBranchName,u=l?`Worktree: ${l}`:`Worktree`,d=mc(t.environmentWorkspaceDisplayKind);return(0,z.jsxs)(co,{tier:r,className:I(`group/env-row`,MJ,n,Yt,RJ),title:u,children:[i?(0,z.jsx)(`span`,{className:i,"aria-hidden":`true`}):null,(0,z.jsx)(`button`,{type:`button`,"aria-expanded":!o,"aria-label":o?`Expand ${u} threads`:`Collapse ${u} threads`,title:o?`Expand worktree threads`:`Collapse worktree threads`,onClick:()=>{c(e)},className:`absolute inset-0 rounded-md outline-none ring-sidebar-ring focus-visible:ring-2`}),(0,z.jsxs)(`span`,{className:I(`pointer-events-none relative z-10 inline-flex shrink-0 items-center justify-center text-subtle-foreground`,Rn),"aria-hidden":`true`,children:[(0,z.jsx)(`span`,{className:I(`absolute inline-flex items-center justify-center opacity-100 transition-opacity duration-150 group-hover/env-row:opacity-0 group-has-[:focus-visible]/env-row:opacity-0`,Ln),children:(0,z.jsx)(F,{name:d,className:Ln,"aria-hidden":`true`})}),(0,z.jsx)(`span`,{className:I(`absolute inline-flex items-center justify-center opacity-0 transition-all duration-150 group-hover/env-row:opacity-100 group-has-[:focus-visible]/env-row:opacity-100`,Ln,!o&&`rotate-90`),children:(0,z.jsx)(F,{name:`ChevronRight`,className:Ln,"aria-hidden":`true`})}),o?(0,z.jsx)(YJ,{count:a,className:`group-hover/env-row:opacity-0 group-has-[:focus-visible]/env-row:opacity-0`}):null]}),(0,z.jsxs)(`span`,{className:`pointer-events-none relative z-10 min-w-0 flex-1 truncate text-left`,children:[(0,z.jsx)(`span`,{children:`Worktree`}),l?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{children:`:`}),` `,(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:l})]}):null]}),s?(0,z.jsx)(it,{type:`button`,variant:`ghost`,size:`icon`,"aria-label":`Create new thread in this worktree`,title:`New thread in this worktree`,onClick:s,className:I(`relative z-10 rounded-md p-0 text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-foreground`,hn),children:(0,z.jsx)(F,{name:`MessageSquarePlus`,className:Ln})}):(0,z.jsx)(`span`,{className:I(`shrink-0`,hn),"aria-hidden":`true`})]})}var gY=(0,R.memo)(function({projectId:e,environmentThreadGroup:t,selectedThreadId:n,isCollapsed:r,onProjectSelect:i,onToggleEnvironmentCollapsed:a}){let{environmentId:o,threads:s}=t,c=Ao({projectId:e,environmentId:o}),l=(0,R.useCallback)(()=>{i?.(),c()},[c,i]);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(hY,{environmentId:o,representativeThread:s[0],paddingClass:FJ,stickyTier:`manager`,childCount:s.length,isCollapsed:r,onCreateNewThread:l,onToggleCollapsed:a}),r?null:(0,z.jsx)(`div`,{className:I(`relative space-y-px`,BJ),children:s.map(t=>(0,z.jsx)($J,{projectId:e,thread:t,isActive:n===t.id,onProjectSelect:i,options:fY},t.id))})]})});function _Y({projectId:e,environmentThreadGroup:t,selectedThreadId:n,isCollapsed:r,onProjectSelect:i,onToggleEnvironmentCollapsed:a}){let{environmentId:o,threads:s}=t,c=Ao({projectId:e,environmentId:o}),l=(0,R.useCallback)(()=>{i?.(),c()},[c,i]);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(hY,{environmentId:o,representativeThread:s[0],paddingClass:IJ,stickyTier:`environment`,parentLineClass:HJ,childCount:s.length,isCollapsed:r,onCreateNewThread:l,onToggleCollapsed:a}),r?null:(0,z.jsx)(`div`,{className:I(`relative space-y-px`,VJ),children:s.map(t=>(0,z.jsx)($J,{projectId:e,thread:t,isActive:n===t.id,onProjectSelect:i,options:pY},t.id))})]})}var vY=(0,R.memo)(function({projectId:e,managerThreadGroup:t,selectedThreadId:n,isManagerCollapsed:r,collapsedEnvironmentIds:i,onProjectSelect:a,onToggleManagerCollapsed:o,onToggleEnvironmentCollapsed:s}){let{managerThread:c,managedItems:l,stats:u}=t,d=(0,R.useMemo)(()=>({kind:`manager`,isCollapsed:r,managedChildCount:u.managedChildCount,onToggleCollapsed:o}),[r,o,u.managedChildCount]),f=!r&&l.length>0;return(0,z.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,z.jsx)($J,{projectId:e,thread:c,isActive:n===c.id,onProjectSelect:a,options:d}),f?(0,z.jsx)(`div`,{className:I(`relative space-y-px`,BJ),children:l.map(t=>t.kind===`thread`?(0,z.jsx)($J,{projectId:e,thread:t.thread,isActive:n===t.thread.id,onProjectSelect:a,options:dY},`thread:${t.thread.id}`):(0,z.jsx)(_Y,{projectId:e,environmentThreadGroup:t.group,selectedThreadId:n,isCollapsed:i.has(t.group.environmentId),onProjectSelect:a,onToggleEnvironmentCollapsed:s},`env:${t.group.environmentId}`))}):null]})});function yY({project:e,threadListState:t,selectedThreadId:n,isActive:r,isCollapsed:i,collapsedManagerIds:a,collapsedEnvironmentIds:o,isLocalPathInvalid:s,onProjectSelect:c,onToggleProjectCollapsed:l,onToggleManagerCollapsed:u,onToggleEnvironmentCollapsed:d}){let[f,p]=(0,R.useState)(!1),[m,h]=(0,R.useState)(!1),g=f||m,_=t.status===`ready`?t.threads:mY,{managerThreadGroups:v,unmanagedItems:y}=(0,R.useMemo)(()=>cY(_),[_]);return(0,z.jsxs)(po,{"data-sidebar-sticky-project-item":``,children:[(0,z.jsx)(fc,{project:e,onOpenChange:h,children:(0,z.jsxs)(co,{tier:`project`,className:I(`group/project-row flex w-full items-center rounded-md text-sm transition-colors`,r?`bg-sidebar-border text-sidebar-foreground`:`text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`),title:e.name,children:[(0,z.jsx)(sr,{to:`/projects/${e.id}`,onClick:c,className:`absolute inset-0 rounded-md outline-none ring-sidebar-ring focus-visible:ring-2`}),(0,z.jsx)(`button`,{type:`button`,"aria-expanded":!i,"aria-label":i?`Expand ${e.name}`:`Collapse ${e.name}`,title:i?`Expand project threads`:`Collapse project threads`,onClick:()=>{l(e.id)},className:I(`relative z-10 flex shrink-0 items-center justify-center rounded-md text-muted-foreground outline-none ring-sidebar-ring transition-colors hover:text-sidebar-foreground focus-visible:ring-2`,In),children:(0,z.jsxs)(`span`,{className:I(`relative inline-flex items-center justify-center`,Ln),children:[(0,z.jsx)(F,{name:`ChevronRight`,className:I(`absolute opacity-0 transition-all duration-150 group-hover/project-row:opacity-100`,Ln,!i&&`rotate-90`)}),i?(0,z.jsx)(F,{name:`Folder`,className:I(`absolute opacity-100 transition-opacity duration-150 group-hover/project-row:opacity-0`,Ln)}):(0,z.jsx)(F,{name:`FolderOpen`,className:I(`absolute opacity-100 transition-opacity duration-150 group-hover/project-row:opacity-0`,Ln)})]})}),(0,z.jsx)(`span`,{className:`pointer-events-none relative z-10 min-w-0 flex-1 truncate text-left`,children:e.name}),s?(0,z.jsx)(sr,{to:`/projects/${e.id}/settings`,onClick:e=>{e.stopPropagation(),c?.()},title:`Project folder not found. Open project settings to fix.`,"aria-label":`Project folder not found`,className:I(`relative z-10 inline-flex shrink-0 items-center justify-center rounded-md text-destructive outline-none ring-sidebar-ring transition-colors hover:bg-destructive/10 hover:text-destructive focus-visible:ring-2`,hn),children:(0,z.jsx)(F,{name:`AlertTriangle`,className:Ln})}):null,(0,z.jsx)(dc,{project:e,onOpenChange:p,triggerClassName:I(`relative z-10 text-muted-foreground transition-opacity hover:bg-sidebar-accent hover:text-sidebar-foreground data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-foreground`,hn,g?`opacity-100`:`opacity-0 group-hover/project-row:opacity-100 group-focus-within/project-row:opacity-100`)})]})}),i?null:t.status===`loading`?(0,z.jsx)(`div`,{className:`group-data-[collapsible=icon]:hidden`,children:(0,z.jsx)(vo,{})}):_.length>0?(0,z.jsxs)(`div`,{className:I(`relative space-y-0.5 group-data-[collapsible=icon]:hidden`,zJ),children:[v.map(t=>(0,z.jsx)(vY,{projectId:e.id,managerThreadGroup:t,selectedThreadId:n,isManagerCollapsed:a.has(t.managerThread.id),collapsedEnvironmentIds:o,onProjectSelect:c,onToggleManagerCollapsed:u,onToggleEnvironmentCollapsed:d},t.managerThread.id)),y.map(t=>t.kind===`thread`?(0,z.jsx)($J,{projectId:e.id,thread:t.thread,isActive:n===t.thread.id,onProjectSelect:c,options:uY},`thread:${t.thread.id}`):(0,z.jsx)(gY,{projectId:e.id,environmentThreadGroup:t.group,selectedThreadId:n,isCollapsed:o.has(t.group.environmentId),onProjectSelect:c,onToggleEnvironmentCollapsed:d},`env:${t.group.environmentId}`))]}):(0,z.jsx)(ko,{message:t.status===`unavailable`?`Threads unavailable`:`No threads`,className:`py-0.5 pl-8 pr-2 group-data-[collapsible=icon]:hidden`,messageClassName:`text-xs leading-4 text-muted-foreground`})]})}function bY({prev:e,next:t}){if(e.collapsedManagerIds===t.collapsedManagerIds||e.threadListState.status!==`ready`)return!1;for(let n of e.threadListState.threads)if(n.type===`manager`&&e.collapsedManagerIds.has(n.id)!==t.collapsedManagerIds.has(n.id))return!0;return!1}function xY({prev:e,next:t}){if(e.collapsedEnvironmentIds===t.collapsedEnvironmentIds||e.threadListState.status!==`ready`)return!1;for(let n of e.threadListState.threads)if(n.environmentId!==null&&e.collapsedEnvironmentIds.has(n.environmentId)!==t.collapsedEnvironmentIds.has(n.environmentId))return!0;return!1}function SY(e,t){if(e.project!==t.project||e.threadListState!==t.threadListState||e.isActive!==t.isActive||e.isCollapsed!==t.isCollapsed||e.isLocalPathInvalid!==t.isLocalPathInvalid||e.onProjectSelect!==t.onProjectSelect||e.onToggleProjectCollapsed!==t.onToggleProjectCollapsed||e.onToggleManagerCollapsed!==t.onToggleManagerCollapsed||e.onToggleEnvironmentCollapsed!==t.onToggleEnvironmentCollapsed)return!1;if(e.selectedThreadId!==t.selectedThreadId){if(e.threadListState.status!==`ready`)return!1;for(let n of e.threadListState.threads)if(n.id===e.selectedThreadId||n.id===t.selectedThreadId)return!1}return e.threadListState.status===`ready`?!bY({prev:e,next:t})&&!xY({prev:e,next:t}):!0}var CY=(0,R.memo)(yY,SY),wY=I(MJ,NJ,RJ,vt,`min-w-0 justify-start overflow-hidden font-normal ring-sidebar-ring focus-visible:ring-2 max-md:pointer-coarse:[&_svg]:size-5`),TY=I(`inline-flex shrink-0 items-center justify-center`,hn);function EY({projectIds:e,queryResults:t,serverConnectionState:n,connectionGracePeriodElapsed:r}){let i=[],a=new Map;for(let o=0;o<t.length;o+=1){let s=e[o],c=t[o];!s||!c||(c.data!==void 0&&i.push(...c.data),a.set(s,{status:wo({hasResolvedData:c.data!==void 0,isFetching:c.isFetching,isLoadingError:c.isLoadingError,serverConnectionState:n,connectionGracePeriodElapsed:r}).status}))}return{threads:i,threadStatesByProjectId:a}}var DY={status:`loading`};function OY({status:e,threads:t}){switch(e){case`ready`:return{status:`ready`,threads:t??[]};case`unavailable`:return{status:`unavailable`};case`loading`:case void 0:return DY}}function kY({current:e,id:t}){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),Array.from(n)}function AY({onNewProject:e,isCreatingProject:t}){return(0,z.jsxs)(un,{children:[(0,z.jsx)(tn,{asChild:!0,children:(0,z.jsx)(`button`,{type:`button`,title:`Project options`,"aria-label":`Project options`,className:I(`inline-flex items-center justify-center rounded text-muted-foreground transition-colors hover:text-sidebar-foreground disabled:opacity-50`,on),children:(0,z.jsx)(F,{name:`MoreHorizontal`,className:Ln})})}),(0,z.jsx)(Sn,{align:`end`,className:`w-40`,mobileTitle:`Project options`,children:(0,z.jsx)($t,{disabled:t,onSelect:()=>{window.setTimeout(e,0)},children:`Add project`})})]})}function jY({onNewProject:e,isCreatingProject:t=!1}){return(0,z.jsxs)(co,{tier:`label`,className:`justify-between pr-1`,children:[`Projects`,e?(0,z.jsx)(AY,{onNewProject:e,isCreatingProject:t}):null]})}function MY({onNewChat:e,onNewManager:t,selectedProjectId:n,isManagerActionPending:r}){let i=!e;return(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsxs)(it,{type:`button`,size:`sm`,variant:`ghost`,className:wY,onClick:e,disabled:i,title:i?`Select a project to start a new thread`:`New Thread`,children:[(0,z.jsx)(F,{name:`MessageSquarePlus`}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:`New Thread`}),(0,z.jsx)(`span`,{className:TY,"aria-hidden":`true`})]}),(0,z.jsxs)(it,{type:`button`,size:`sm`,variant:`ghost`,className:wY,onClick:()=>{n&&t?.(n)},disabled:!t||!n||r,title:!t||!n?`Select a project to hire a new manager`:r?`Hiring manager...`:`New Manager`,children:[(0,z.jsx)(F,{name:`UserRoundPlus`}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:`New Manager`}),(0,z.jsx)(`span`,{className:TY,"aria-hidden":`true`})]})]})}function NY({onNewProject:e,isCreatingProject:t=!1,children:n}){return(0,z.jsxs)(so,{"data-sidebar-sticky-density":`compact-actions`,children:[(0,z.jsx)(jY,{onNewProject:e,isCreatingProject:t}),(0,z.jsx)(uo,{children:(0,z.jsx)(fo,{className:`gap-1`,children:n})})]})}function PY({onNewProject:e,onProjectSelect:t,selectedProjectId:n,isCreatingProject:r=!1}){let i=Ar(),a=i.isSuccess||i.isError,{data:o,isFetching:s,isLoadingError:c}=jr({enabled:a}),l=kt(),u=To(),d=Eo({hasResolvedData:o!==void 0,isFetching:i.isFetching||s,isLoadingError:c}),f=(0,R.useMemo)(()=>(o??[]).map(e=>e.id),[o]),{threads:p,threadStatesByProjectId:m}=Ai({queries:(0,R.useMemo)(()=>f.map(e=>({enabled:a,queryKey:Ye({projectId:e,archived:!1}),queryFn:({signal:t})=>pt({projectId:e,archived:!1},t),staleTime:1e4})),[a,f]),combine:(0,R.useCallback)(e=>EY({projectIds:f,queryResults:e,serverConnectionState:l,connectionGracePeriodElapsed:u}),[f,l,u])}),{localHostId:h}=Ur(),{threadId:g,isProjectMainView:_}=So(),v=(0,R.useMemo)(()=>{if(!h||!o)return[];let e=[];for(let t of o){let n=je(t.sources,h);n&&e.push({path:n.path,projectId:t.id})}return e},[h,o]),y=(0,R.useMemo)(()=>{let e=new Map;for(let t of v)e.set(t.projectId,t.path);return e},[v]),b=Do((0,R.useMemo)(()=>h?v.map(e=>e.path):[],[h,v])),[x,S]=Mr(rc),[C,w]=Mr(ic),[T,E]=Mr(ac),D=(0,R.useMemo)(()=>new Set(x),[x]),O=(0,R.useMemo)(()=>new Set(C),[C]),ee=(0,R.useMemo)(()=>new Set(T),[T]),k=(0,R.useMemo)(()=>{let e=new Map;for(let t of p){let n=e.get(t.projectId);n?n.push(t):e.set(t.projectId,[t])}return e},[p]),A=(0,R.useMemo)(()=>{let e=new Map;for(let t of o??[]){let n=m.get(t.id)?.status,r=k.get(t.id);e.set(t.id,OY({status:n,threads:r}))}return e},[o,m,k]),j=(0,R.useCallback)(e=>{S(t=>kY({current:t,id:e}))},[S]),M=(0,R.useCallback)(e=>{w(t=>kY({current:t,id:e}))},[w]),N=(0,R.useCallback)(e=>{E(t=>kY({current:t,id:e}))},[E]);return(0,z.jsx)(NY,{onNewProject:e,isCreatingProject:r,children:d.status===`loading`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(vo,{}),(0,z.jsx)(vo,{})]}):o&&o.length>0?o.map(e=>{let r=A.get(e.id)??DY,i=Oo(b,y.get(e.id));return(0,z.jsx)(CY,{project:e,threadListState:r,selectedThreadId:g,isActive:n===e.id&&_,isCollapsed:D.has(e.id),collapsedManagerIds:O,collapsedEnvironmentIds:ee,isLocalPathInvalid:i,onProjectSelect:t,onToggleProjectCollapsed:j,onToggleManagerCollapsed:M,onToggleEnvironmentCollapsed:N},e.id)}):(0,z.jsx)(po,{children:(0,z.jsx)(ko,{message:d.status===`unavailable`?`Projects unavailable`:`No projects`,icon:`Folder`,className:`px-2 py-1.5`,iconClassName:`size-3.5`,messageClassName:`text-xs`})})})}var FY=(0,R.memo)(PY),IY=(0,R.createContext)(null);function LY({children:e}){let[t,n]=(0,R.useState)({isOpen:!1,initialProjectId:null}),r=(0,R.useCallback)(e=>{n({isOpen:!0,initialProjectId:e})},[]),i=(0,R.useCallback)(e=>{e||n(e=>({...e,isOpen:!1}))},[]),a=(0,R.useMemo)(()=>({state:t,open:r,setOpen:i}),[t,r,i]);return(0,z.jsx)(IY.Provider,{value:a,children:e})}function RY(){let e=(0,R.useContext)(IY);if(!e)throw Error(`NewManagerDialogProvider is required`);return e}var zY=(0,R.createContext)(null);function BY(){let{mutate:e,isPending:t}=Fr(),n=Ws({isPending:t,submit:(0,R.useCallback)(({path:t,hostId:n,target:r,closeDialog:i})=>{if(r.kind!==`create`)return;let a=Je(t).trim();a&&e({name:a,source:{type:`local_path`,hostId:n,path:t}},{onSuccess:i})},[e])}),r=(0,R.useCallback)(()=>{n.openPicker({kind:`create`})},[n]);return(0,R.useMemo)(()=>({isAvailable:n.isAvailable,isCreating:t,openCreateDialog:r,platform:n.platform,projectPathDialog:n.projectPathDialog,submitProjectPath:n.submitProjectPath}),[n,t,r])}function VY({children:e}){let t=BY();return(0,z.jsx)(zY.Provider,{value:t,children:e})}function HY(){let e=(0,R.useContext)(zY);if(!e)throw Error(`QuickCreateProjectProvider is required`);return e}function UY({onResizeMouseDown:e,isResizing:t,selectedProjectId:n,isManagerActionPending:r=!1}){let i=HY(),a=RY(),o=lr(),{isCompactViewport:s,setOpenMobile:c}=qa(),l=(0,R.useRef)(s);l.current=s;let u=(0,R.useCallback)(()=>{l.current&&c(!1)},[c]),d=(0,R.useCallback)(()=>{n&&(u(),o(`/projects/${n}`))},[u,o,n]),f=(0,R.useCallback)(e=>{u(),a.open(e)},[u,a]);return(0,z.jsx)(z.Fragment,{children:(0,z.jsxs)(Xa,{children:[(0,z.jsx)(`div`,{className:`flex h-12 shrink-0 items-center px-2`,children:(0,z.jsx)(Za,{})}),(0,z.jsx)(`div`,{className:`shrink-0 px-2 py-2 group-data-[collapsible=icon]:hidden`,children:(0,z.jsx)(MY,{onNewChat:n?d:void 0,onNewManager:n?f:void 0,selectedProjectId:n,isManagerActionPending:r})}),(0,z.jsx)(io,{children:(0,z.jsx)(FY,{onNewProject:i.isAvailable?i.openCreateDialog:void 0,onProjectSelect:u,selectedProjectId:n,isCreatingProject:i.isCreating})}),(0,z.jsxs)(no,{className:`relative`,children:[(0,z.jsx)(Ee,{placement:`above`,tone:`sidebar`,size:`sm`}),(0,z.jsx)(fo,{className:`flex-row items-center`,children:(0,z.jsx)(po,{children:(0,z.jsx)(ho,{asChild:!0,className:yn,tooltip:`App settings`,"aria-label":`App settings`,children:(0,z.jsx)(ar,{to:`/settings`,children:(0,z.jsx)(F,{name:`Settings`})})})})})]}),(0,z.jsx)(`div`,{className:I(`absolute -right-1.5 top-0 z-30 hidden h-full w-3 cursor-col-resize md:block`,`before:absolute before:inset-y-0 before:left-1/2 before:w-px before:-translate-x-1/2 before:bg-transparent before:transition-colors hover:before:bg-sidebar-border`,`group-data-[collapsible=icon]:hidden`,t&&`before:bg-sidebar-border`),onMouseDown:e})]})})}var WY=Qt;function GY({center:e,actions:t,bordered:n=!0,className:r}){let i=Ja();return(0,z.jsx)(`header`,{className:I(`relative h-12 shrink-0 bg-surface-scrim px-4 backdrop-blur-sm`,n&&`border-b border-border`,r),children:(0,z.jsxs)(`div`,{className:`flex h-full items-center gap-1 md:gap-2`,children:[i?null:(0,z.jsx)(Za,{className:`-ml-2 shrink-0 md:ml-0`}),e?(0,z.jsx)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:e}):(0,z.jsx)(`div`,{className:`min-w-0 flex-1`}),t?(0,z.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:t}):null]})})}var KY=Er(`bb.lastActiveProjectId`,null,Tr({parse:e=>e&&e.length>0?e:null,serialize:e=>e??``}),{getOnInit:!0});function qY(){let{projectId:e}=So(),{data:t}=jr({enabled:!e}),n=Or(KY),r=Vr(KY);if((0,R.useEffect)(()=>{e&&n(e)},[e,n]),e)return e;if(t)return r&&t.some(e=>e.id===r)?r:t[0]?.id}function JY({message:e,className:t}){return e?(0,z.jsx)(`p`,{className:I(`rounded-md border border-surface-destructive-border bg-surface-destructive px-3 py-2 text-sm text-destructive`,t),children:e}):null}var YY=`reuse`;function XY(e,t){return`host:${e}:${t}`}function ZY(e){return`reuse:${e}`}function QY(e){if(e===`reuse`)return{type:`reuse`,environmentId:null};if(e.startsWith(`host:`)){let t=e.split(`:`),n=t[1],r=t[2];if(n&&(r===`local`||r===`worktree`))return{type:`host`,hostId:n,mode:r}}if(e.startsWith(`reuse:`)){let t=e.slice(6);if(t.length>0)return{type:`reuse`,environmentId:t}}return null}var $Y=y([`codex`,`claude-code`,`pi`]),eX=new Map([{info:{available:!0,capabilities:{supportsArchive:!0,supportsRename:!0,supportsServiceTier:!0,supportsUserQuestion:!1,supportedPermissionModes:[`full`,`workspace-write`,`readonly`]},displayName:`Codex`,id:`codex`}},{info:{available:!0,capabilities:{supportsArchive:!1,supportsRename:!1,supportsServiceTier:!1,supportsUserQuestion:!0,supportedPermissionModes:[`full`,`workspace-write`,`readonly`]},displayName:`Claude Code`,id:`claude-code`}},{info:{available:!0,capabilities:{supportsArchive:!1,supportsRename:!1,supportsServiceTier:!1,supportsUserQuestion:!1,supportedPermissionModes:[`full`]},displayName:`Pi`,id:`pi`}}].map(e=>[e.info.id,e]));function tX(e){return{supportsArchive:e.supportsArchive,supportsRename:e.supportsRename,supportsServiceTier:e.supportsServiceTier,supportsUserQuestion:e.supportsUserQuestion,supportedPermissionModes:[...e.supportedPermissionModes]}}function nX(e){return{available:e.available,capabilities:tX(e.capabilities),displayName:e.displayName,id:e.id}}function rX(e){return $Y.safeParse(e).success}function iX(e){let t=eX.get(e);if(!t)throw Error(`Unsupported agent provider "${e}".`);return nX(t.info)}function aX({className:e}){return(0,z.jsxs)(`svg`,{fill:`currentColor`,viewBox:`0 0 149 149`,xmlns:`http://www.w3.org/2000/svg`,className:e,children:[(0,z.jsx)(`title`,{children:`Claude`}),(0,z.jsx)(`path`,{d:`M29.05 98.54L58.19 82.19L58.68 80.77L58.19 79.98H56.77L51.9 79.68L35.25 79.23L20.81 78.63L6.82 77.88L3.3 77.13L0 72.78L0.340004 70.61L3.3 68.62L7.54 68.99L16.91 69.63L30.97 70.6L41.17 71.2L56.28 72.77H58.68L59.02 71.8L58.2 71.2L57.56 70.6L43.01 60.74L27.26 50.32L19.01 44.32L14.55 41.28L12.3 38.43L11.33 32.21L15.38 27.75L20.82 28.12L22.21 28.49L27.72 32.73L39.49 41.84L54.86 53.16L57.11 55.03L58.01 54.39L58.12 53.94L57.11 52.25L48.75 37.14L39.83 21.77L35.86 15.4L34.81 11.58C34.44 10.01 34.17 8.69 34.17 7.08L38.78 0.820007L41.33 0L47.48 0.820007L50.07 3.07001L53.89 11.81L60.08 25.57L69.68 44.28L72.49 49.83L73.99 54.97L74.55 56.54H75.52V55.64L76.31 45.1L77.77 32.16L79.19 15.51L79.68 10.82L82 5.2L86.61 2.16L90.21 3.88L93.17 8.12L92.76 10.86L91 22.3L87.55 40.22L85.3 52.22H86.61L88.11 50.72L94.18 42.66L104.38 29.91L108.88 24.85L114.13 19.26L117.5 16.6H123.87L128.56 23.57L126.46 30.77L119.9 39.09L114.46 46.14L106.66 56.64L101.79 65.04L102.24 65.71L103.4 65.6L121.02 61.85L130.54 60.13L141.9 58.18L147.04 60.58L147.6 63.02L145.58 68.01L133.43 71.01L119.18 73.86L97.96 78.88L97.7 79.07L98 79.44L107.56 80.34L111.65 80.56H121.66L140.3 81.95L145.17 85.17L148.09 89.11L147.6 92.11L140.1 95.93L129.98 93.53L106.36 87.91L98.26 85.89H97.14V86.56L103.89 93.16L116.26 104.33L131.75 118.73L132.54 122.29L130.55 125.1L128.45 124.8L114.84 114.56L109.59 109.95L97.7 99.94H96.91V100.99L99.65 105L114.12 126.75L114.87 133.42L113.82 135.59L110.07 136.9L105.95 136.15L97.48 124.26L88.74 110.87L81.69 98.87L80.83 99.36L76.67 144.17L74.72 146.46L70.22 148.18L66.47 145.33L64.48 140.72L66.47 131.61L68.87 119.72L70.82 110.27L72.58 98.53L73.63 94.63L73.56 94.37L72.7 94.48L63.85 106.63L50.39 124.82L39.74 136.22L37.19 137.23L32.77 134.94L33.18 130.85L35.65 127.21L50.39 108.46L59.28 96.84L65.02 90.13L64.98 89.16H64.64L25.49 114.58L18.52 115.48L15.52 112.67L15.89 108.06L17.31 106.56L29.08 98.46L29.04 98.5L29.05 98.54Z`})]})}function oX({className:e}){return(0,z.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,children:[(0,z.jsx)(`title`,{children:`OpenAI`}),(0,z.jsx)(`path`,{d:`M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.8956zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z`})]})}function sX({className:e}){return(0,z.jsxs)(`svg`,{fill:`currentColor`,fillRule:`evenodd`,viewBox:`100 100 600 600`,xmlns:`http://www.w3.org/2000/svg`,className:e,children:[(0,z.jsx)(`title`,{children:`Pi`}),(0,z.jsx)(`path`,{d:`
|
|
1341
|
-
M165.29 165.29
|
|
1342
|
-
H517.36
|
|
1343
|
-
V400
|
|
1344
|
-
H400
|
|
1345
|
-
V517.36
|
|
1346
|
-
H282.65
|
|
1347
|
-
V634.72
|
|
1348
|
-
H165.29
|
|
1349
|
-
Z
|
|
1350
|
-
M282.65 282.65
|
|
1351
|
-
V400
|
|
1352
|
-
H400
|
|
1353
|
-
V282.65
|
|
1354
|
-
Z
|
|
1355
|
-
`}),(0,z.jsx)(`path`,{d:`M517.36 400 H634.72 V634.72 H517.36 Z`})]})}function cX(e){let t=rX(e)?iX(e):null;if(t)switch(e){case`codex`:return{icon:oX,ariaLabel:t.displayName};case`claude-code`:return{icon:aX,ariaLabel:t.displayName};case`pi`:return{icon:sX,ariaLabel:t.displayName};default:return}}var lX=`bb.promptbox.model`,uX=`bb.promptbox.service-tier`,dX=`bb.promptbox.reasoning`,fX=`bb.promptbox.permission-mode`,pX=`bb.promptbox.environment`,mX=`bb.promptbox.provider`,hX=[],gX={low:`Low`,medium:`Medium`,high:`High`,xhigh:`Extra High`,max:`Max`},_X=[{value:`full`,label:`Full Access`,tone:`warning`},{value:`workspace-write`,label:`Workspace Write`},{value:`readonly`,label:`Readonly`}],vX=[`full`];function yX(e){return e===`low`||e===`medium`||e===`high`||e===`xhigh`||e===`max`}function bX(e){return e===`readonly`||e===`workspace-write`||e===`full`}function xX(e){return e===`fast`||e===`default`}function SX(e){return e===``||xX(e)}var CX=_r(SX),wX=_r(e=>yX(e)),TX=_r(e=>bX(e)),EX=mr(mX,``,xr),DX=mr(lX,``,xr),OX=mr(uX,``,CX),kX=mr(dX,`medium`,wX),AX=mr(fX,`full`,TX),jX=mr(pX,``,xr);function MX(e){return{selectedProviderId:e?.initialProviderId??``,selectedModel:e?.initialModel??``,serviceTier:e?.initialServiceTier,reasoningLevel:e?.initialReasoningLevel??`medium`,permissionMode:e?.initialPermissionMode??`full`,environmentSelectionValue:e?.initialEnvironmentSelectionValue??``}}function NX({currentSelections:e,nextSelections:t,touchedFields:n}){let r=!1,i={...e};return!n.has(`selectedProviderId`)&&e.selectedProviderId!==t.selectedProviderId&&(i.selectedProviderId=t.selectedProviderId,r=!0),!n.has(`selectedModel`)&&e.selectedModel!==t.selectedModel&&(i.selectedModel=t.selectedModel,r=!0),!n.has(`serviceTier`)&&e.serviceTier!==t.serviceTier&&(i.serviceTier=t.serviceTier,r=!0),!n.has(`reasoningLevel`)&&e.reasoningLevel!==t.reasoningLevel&&(i.reasoningLevel=t.reasoningLevel,r=!0),!n.has(`permissionMode`)&&e.permissionMode!==t.permissionMode&&(i.permissionMode=t.permissionMode,r=!0),!n.has(`environmentSelectionValue`)&&e.environmentSelectionValue!==t.environmentSelectionValue&&(i.environmentSelectionValue=t.environmentSelectionValue,r=!0),r?i:e}function PX({currentSelections:e,field:t,value:n}){return e[t]===n?e:{...e,[t]:n}}function FX({rawPermissionMode:e,supportedPermissionModes:t}){return t.includes(e)?e:t.includes(`full`)?`full`:t[0]??`full`}function IX(e,t){let n=e.split(`-`).map(e=>e.toLowerCase()===`gpt`?`GPT`:/^\d+(\.\d+)*$/.test(e)?e:/^[a-z]+$/i.test(e)?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e).join(`-`);return t===`claude-code`&&(n=n.replace(/^Claude\s+/i,``)),n}function LX(e){return!e||QY(e)?.type===`reuse`?``:e}function RX(e){let{enabled:t=!0,environmentId:n,initialEnvironmentSelectionValue:r,initialModel:i,initialProviderId:a,initialPermissionMode:o,initialReasoningLevel:s,initialServiceTier:c,projectId:l,resetKey:u,scope:d=`new-thread`}=e??{},[f,p]=Mr(EX(l)),[m,h]=Mr(DX(l)),[g,_]=Mr(OX(l)),[v,y]=Mr(kX(l)),[b,x]=Mr(AX(l)),[S,C]=Mr(jX(l)),[w,T]=(0,R.useState)(null),[E,D]=(0,R.useState)(()=>MX({initialEnvironmentSelectionValue:r,initialModel:i,initialProviderId:a,initialPermissionMode:o,initialReasoningLevel:s,initialServiceTier:c})),O=(0,R.useRef)(new Set),ee=(0,R.useRef)(u),k=d===`new-thread`?f:E.selectedProviderId,A=d===`new-thread`?m:E.selectedModel,j=d===`new-thread`?g||void 0:E.serviceTier,M=d===`new-thread`?v:E.reasoningLevel,N=d===`new-thread`?b:E.permissionMode,te=d===`new-thread`?w??LX(S):E.environmentSelectionValue,ne=d===`component-local`?n:void 0,re=Dn({enabled:t&&(d!==`component-local`||ne!==void 0),environmentId:ne,providerId:k||void 0}),ie=re.data?.providers??hX,ae=ie.length>=2,P=(0,R.useMemo)(()=>k&&ie.some(e=>e.id===k)?k:ie[0]?.id??``,[ie,k]),oe=(0,R.useMemo)(()=>ie.find(e=>e.id===P),[P,ie]),se=(0,R.useMemo)(()=>ie.map(e=>({value:e.id,label:e.displayName,icon:cX(e.id)?.icon})),[ie]),ce=oe?.capabilities,le=ce?.supportsServiceTier??!1,ue=ce?.supportedPermissionModes??vX,de=ue.length>1,fe=(0,R.useMemo)(()=>_X.filter(e=>ue.includes(e.value)),[ue]),pe=(0,R.useMemo)(()=>{let e={};for(let t of ie)e[t.id]=t.capabilities.supportsServiceTier;return e},[ie]),me=(0,R.useMemo)(()=>{let e=re.data?.models??[];if(!A||e.some(e=>e.model===A))return e;let t=(re.data?.selectedOnlyModels??[]).find(e=>e.model===A);return t?[t,...e]:e},[re.data?.models,re.data?.selectedOnlyModels,A]),he=(0,R.useMemo)(()=>me.length===0||me.some(e=>e.model===A)?A:me.find(e=>e.isDefault)?.model??me[0].model,[me,A]),ge=(0,R.useMemo)(()=>me.map(e=>({value:e.model,label:IX(e.displayName||e.model,P)})),[me,P]),_e=(0,R.useMemo)(()=>me.find(e=>e.model===he)??me.find(e=>e.isDefault)??me[0],[me,he]),ve=(0,R.useMemo)(()=>{if(!_e)return[];let e=[],t=new Set,n=_e.supportedReasoningEfforts;for(let r of n)t.has(r.reasoningEffort)||(t.add(r.reasoningEffort),e.push({value:r.reasoningEffort,label:gX[r.reasoningEffort]}));return e.length===0?[]:e},[_e]),ye=(0,R.useMemo)(()=>le?j:void 0,[j,le]),be=(0,R.useMemo)(()=>ve.length===0||ve.some(e=>e.value===M)?M:_e?.defaultReasoningEffort??ve[0].value,[_e,M,ve]),xe=FX({rawPermissionMode:N,supportedPermissionModes:ue}),Se=te;(0,R.useEffect)(()=>{if(d!==`component-local`)return;let e=MX({initialEnvironmentSelectionValue:r,initialModel:i,initialProviderId:a,initialPermissionMode:o,initialReasoningLevel:s,initialServiceTier:c});if(ee.current!==u){ee.current=u,O.current=new Set,D(e);return}D(t=>NX({currentSelections:t,nextSelections:e,touchedFields:O.current}))},[r,i,a,o,s,c,u,d]);let Ce=(0,R.useCallback)(e=>{if(d===`new-thread`){p(e);return}O.current.add(`selectedProviderId`),D(t=>PX({currentSelections:t,field:`selectedProviderId`,value:e}))},[d,p]),F=(0,R.useCallback)(e=>{if(d===`new-thread`){h(e);return}O.current.add(`selectedModel`),D(t=>PX({currentSelections:t,field:`selectedModel`,value:e}))},[d,h]),we=(0,R.useCallback)(e=>{if(d===`new-thread`){_(e??``);return}O.current.add(`serviceTier`),D(t=>PX({currentSelections:t,field:`serviceTier`,value:e}))},[d,_]),Te=(0,R.useCallback)(e=>{if(d===`new-thread`){y(e);return}O.current.add(`reasoningLevel`),D(t=>PX({currentSelections:t,field:`reasoningLevel`,value:e}))},[d,y]),Ee=(0,R.useCallback)(e=>{if(d===`new-thread`){x(e);return}O.current.add(`permissionMode`),D(t=>PX({currentSelections:t,field:`permissionMode`,value:e}))},[d,x]),De=(0,R.useCallback)(e=>{if(d===`new-thread`){if(QY(e)?.type===`reuse`){T(e);return}T(null),C(e);return}O.current.add(`environmentSelectionValue`),D(t=>PX({currentSelections:t,field:`environmentSelectionValue`,value:e}))},[d,C]),Oe=(0,R.useCallback)(()=>{T(null)},[]);return{selectedProviderId:P,setSelectedProviderId:Ce,providerOptions:se,hasMultipleProviders:ae,selectedProviderDisplayName:oe?.displayName??P,selectedModel:he,setSelectedModel:F,serviceTier:ye,setServiceTier:we,reasoningLevel:be,setReasoningLevel:Te,permissionMode:xe,setPermissionMode:Ee,environmentSelectionValue:Se,setEnvironmentSelectionValue:De,clearReuseEnvironment:Oe,activeModel:_e,modelOptions:ge,reasoningOptions:ve,permissionModeOptions:fe,supportsPermissionModeSelection:de,supportsServiceTier:le,serviceTierSupportByProvider:pe}}var zX=`h-8 w-fit max-w-full min-w-0 items-center gap-1 px-1 text-xs leading-tight`,BX=`border-none bg-transparent shadow-none hover:bg-transparent data-[state=open]:bg-transparent`,VX=`flex min-w-0 items-center gap-1.5`,HX=`text-warning-text`,UX=`hover:text-warning-text data-[state=open]:text-warning-text`,WX=`text-warning-text`;function GX({label:e,value:t,tone:n=`default`,icon:r,leading:i,className:a,title:o,muted:s}){let c=typeof t==`string`?`${e}: ${t}`:void 0;return(0,z.jsx)(`div`,{title:o??c,className:I(`inline-flex`,zX,s&&`text-muted-foreground hover:text-foreground`,n===`warning`&&HX,a),children:(0,z.jsxs)(`span`,{className:VX,children:[i??(r?(0,z.jsx)(r,{className:`size-4 shrink-0`}):null),(0,z.jsxs)(`span`,{className:`sr-only`,children:[e,`: `]}),(0,z.jsx)(`span`,{className:`truncate`,children:t})]})})}function KX({label:e,value:t,options:n,onChange:r,className:i,contentClassName:a,muted:o,defaultOpen:s,modal:c,align:l=`start`}){let u=n.find(e=>e.value===t),d=u?.tone===`warning`,f=u?.icon,p=u?.label??t;return(0,z.jsxs)(un,{defaultOpen:s,modal:c,children:[(0,z.jsx)(tn,{asChild:!0,children:(0,z.jsxs)(it,{type:`button`,variant:`ghost`,size:`sm`,"aria-label":e,title:u?.description?`${e}: ${p} - ${u.description}`:`${e}: ${p}`,className:I(zX,BX,o&&`text-muted-foreground hover:text-foreground`,d&&HX,d&&UX,i),children:[(0,z.jsxs)(`span`,{className:VX,children:[f?(0,z.jsx)(f,{className:`size-3.5 shrink-0`}):null,(0,z.jsx)(`span`,{className:`truncate`,children:p})]}),(0,z.jsx)(F,{name:`ChevronDown`,className:I(`size-3.5`,d?WX:`text-muted-foreground`)})]})}),(0,z.jsxs)(Sn,{align:l,className:I(`min-w-52 max-w-96`,a),mobileTitle:e,children:[(0,z.jsx)(gn,{children:e}),n.map(e=>{let n=e.icon;return(0,z.jsxs)($t,{onSelect:()=>r(e.value),className:`flex items-start justify-between gap-3`,children:[(0,z.jsxs)(`span`,{className:I(`flex min-w-0 items-start gap-2`,e.tone===`warning`&&`text-warning-text`),children:[n?(0,z.jsx)(n,{className:`mt-0.5 size-4 shrink-0`}):null,(0,z.jsxs)(`span`,{className:`min-w-0`,children:[(0,z.jsx)(`span`,{className:`block truncate`,title:e.label,children:e.label}),e.description?(0,z.jsx)(`span`,{className:`mt-0.5 block text-xs leading-snug text-muted-foreground`,children:e.description}):null]})]}),(0,z.jsx)(F,{name:`Check`,className:I(Ln,e.value===t?`opacity-100`:`opacity-0`)})]},e.value)})]})]})}var qX=R.forwardRef(({checked:e,className:t,disabled:n,onCheckedChange:r,onClick:i,...a},o)=>(0,z.jsx)(`button`,{...a,ref:o,type:`button`,role:`switch`,"aria-checked":e,disabled:n,"data-state":e?`checked`:`unchecked`,className:I(`peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-input shadow-xs transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-foreground data-[state=unchecked]:bg-muted`,t),onClick:t=>{i?.(t),t.defaultPrevented||r?.(!e)},children:(0,z.jsx)(`span`,{"aria-hidden":!0,"data-state":e?`checked`:`unchecked`,className:`pointer-events-none block size-4 rounded-full bg-background ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0`})}));qX.displayName=`Switch`;function JX({providerOptions:e,selectedProviderId:t,onSelectedProviderChange:n,hasMultipleProviders:r,modelValue:i,modelOptions:a,onModelChange:o,formatModelLabel:s,fastModeEnabled:c,onFastModeChange:l,showFastModeToggle:u,serviceTierSupportByProvider:d,className:f,muted:p,defaultOpen:m=!1,modal:h=!0}){let g=Rt(),[_,v]=(0,R.useState)(m),[y,b]=(0,R.useState)(null),x=y??t,S=d?d[x]??!1:u,C=e.find(e=>e.value===t),w=C?.icon,T=a.find(e=>e.value===i)?.label??i,E=r&&n!==void 0&&e.length>1,D=y!==null&&y!==t,O=Dn({enabled:D,providerId:D?y:void 0}),ee=(0,R.useMemo)(()=>{if(!D)return a;let e=O.data?.models;return!e||e.length===0?[]:e.map(e=>({value:e.model,label:s?s(e.displayName||e.model,y):e.displayName||e.model}))},[D,a,O.data?.models,s,y]),k=(0,R.useCallback)(e=>{v(e),e||b(null)},[]),A=(0,R.useCallback)(e=>{D&&n?.(y),o(e),v(!1),b(null)},[D,o,n,y]),j=w;return(0,z.jsxs)(gJ,{open:_,onOpenChange:k,modal:h,children:[(0,z.jsx)(_J,{asChild:!0,children:(0,z.jsxs)(it,{type:`button`,variant:`ghost`,size:`sm`,"aria-label":`Provider and model`,title:`${C?.label??t}: ${T}${c?` (Fast mode)`:``}`,className:I(zX,BX,p&&`text-muted-foreground hover:text-foreground`,f),children:[(0,z.jsxs)(`span`,{className:VX,children:[j?(0,z.jsx)(j,{className:`size-3.5 shrink-0`}):null,c?(0,z.jsx)(F,{name:`Zap`,className:`size-3.5 shrink-0 fill-current text-subtle-foreground`}):null,(0,z.jsx)(`span`,{className:`truncate`,children:T})]}),(0,z.jsx)(F,{name:`ChevronDown`,className:`size-3.5 text-muted-foreground`})]})}),(0,z.jsxs)(vJ,{align:`start`,className:`flex w-auto min-w-52 max-w-80 flex-col p-0 max-md:w-full max-md:max-w-none`,children:[E?(0,z.jsx)(`div`,{className:I(`flex items-center gap-0.5 border-b border-border px-2.5 pt-1`,g?`sticky top-0 z-10 bg-background`:`bg-surface-recessed`),children:e.map(e=>{let n=e.icon,r=e.value===x;return(0,z.jsx)(`button`,{type:`button`,title:e.label,onClick:()=>{e.value!==x&&b(e.value===t?null:e.value)},className:I(`flex items-center justify-center border-b-2 transition-colors`,It,r?`border-foreground text-foreground`:`border-transparent text-muted-foreground hover:text-foreground`),children:n?(0,z.jsx)(n,{className:Ln}):(0,z.jsx)(`span`,{className:I(`font-medium`,Nt),children:e.label.charAt(0)})},e.value)})}):null,(0,z.jsx)(`div`,{className:I(`overflow-y-auto p-1`,!g&&`max-h-[min(300px,var(--radix-popover-content-available-height,300px)-80px)]`),children:D&&O.isLoading?(0,z.jsx)(`div`,{className:I(`px-2 text-xs text-muted-foreground`,g?`py-2`:`py-[0.3125rem]`),children:`Loading models...`}):ee.length>0?ee.map(e=>(0,z.jsxs)(`button`,{type:`button`,onClick:()=>A(e.value),className:I(`relative flex w-full cursor-default select-none items-center justify-between gap-3 rounded-sm px-2 text-xs outline-none transition-colors hover:bg-state-hover hover:text-foreground`,g?`py-2`:`py-[0.3125rem]`),children:[(0,z.jsx)(`span`,{className:`truncate`,title:e.label,children:e.label}),(0,z.jsx)(F,{name:`Check`,className:I(Vt,!D&&e.value===i?`opacity-100`:`opacity-0`)})]},e.value)):(0,z.jsx)(`div`,{className:I(`px-2 text-xs text-muted-foreground`,g?`py-2`:`py-[0.3125rem]`),children:`No models available`})}),S?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`border-t border-border`}),(0,z.jsx)(`div`,{className:`p-1`,children:(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-sm px-2 py-[0.3125rem] text-xs`,children:[(0,z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,z.jsx)(F,{name:`Zap`,className:`size-4 fill-current text-muted-foreground`}),(0,z.jsx)(`span`,{children:`Fast mode`})]}),(0,z.jsx)(qX,{checked:c,onCheckedChange:l,"aria-label":`Fast mode`})]})})]}):null]})]})}function YX({className:e}){return(0,z.jsx)(`span`,{className:I(`inline-block size-1.5 shrink-0 rounded-full bg-success`,e),"aria-label":`Online`})}function XX({className:e}){return(0,z.jsx)(Wr,{variant:`muted`,className:I(`shrink-0`,e),children:`offline`})}function ZX({connected:e,className:t}){return e?(0,z.jsx)(YX,{className:t}):(0,z.jsx)(XX,{className:t})}function QX({hosts:e,eligibleHosts:t,selectedHostId:n,onChange:r,isLocalHost:i,muted:a,defaultOpen:o,modal:s}){let c=e.find(e=>e.id===n),l=c?.name??`Select host`,u=zr(c),d=t.length<=1;return(0,z.jsxs)(un,{defaultOpen:o,modal:s,children:[(0,z.jsx)(tn,{asChild:!0,children:(0,z.jsxs)(it,{type:`button`,variant:`ghost`,size:`sm`,"aria-label":`Host`,title:`Host: ${l}`,className:I(zX,BX,a&&`text-muted-foreground hover:text-foreground`),children:[(0,z.jsxs)(`span`,{className:VX,children:[(0,z.jsx)(F,{name:u,className:`size-3.5 shrink-0`}),d?null:(0,z.jsx)(`span`,{className:`truncate`,children:l})]}),(0,z.jsx)(F,{name:`ChevronDown`,className:`size-3.5 text-muted-foreground`})]})}),(0,z.jsxs)(Sn,{align:`start`,className:`min-w-44 max-w-80`,mobileTitle:`Host`,children:[(0,z.jsx)(gn,{children:`Host`}),t.length>0?t.map(e=>(0,z.jsxs)($t,{onSelect:()=>r(e.id),className:`flex items-center justify-between gap-3`,children:[(0,z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2 text-xs`,children:[(0,z.jsx)(F,{name:zr(e),className:`size-3.5 shrink-0`}),(0,z.jsx)(`span`,{className:`truncate`,children:e.name}),i(e.id)?(0,z.jsx)(Jr,{}):null,(0,z.jsx)(ZX,{connected:e.status===`connected`})]}),(0,z.jsx)(F,{name:`Check`,className:I(Vt,e.id===n?`opacity-100`:`opacity-0`)})]},e.id)):(0,z.jsx)($t,{disabled:!0,className:`text-xs text-muted-foreground`,children:`No hosts available for this project`})]})]})}var $X={low:`Low`,medium:`Medium`,high:`High`,xhigh:`Extra High`,max:`Max`},eZ=[],tZ=[],nZ=[],rZ=[];function iZ(){let{state:e,setOpen:t}=RY();return(0,z.jsx)(wr,{open:e.isOpen,onOpenChange:t,children:(0,z.jsxs)(Sr,{className:`gap-3 md:max-w-md`,children:[(0,z.jsxs)(br,{children:[(0,z.jsx)(Cr,{children:`New Manager`}),(0,z.jsx)(gr,{children:`A manager is a teammate that coordinates work for you and delegates to worker threads.`})]}),e.isOpen&&e.initialProjectId?(0,z.jsx)(aZ,{initialProjectId:e.initialProjectId,onClose:()=>{t(!1)}},e.initialProjectId):null]})})}function aZ({initialProjectId:e,onClose:t}){let n=lr(),[r,i]=(0,R.useState)(e),[a,o]=(0,R.useState)(``),s=jr(),c=s.data??nZ,l=s.data!==void 0,{data:u=[]}=bn(),{isLocalHost:d}=Ur(),f=Dn({providerId:a||void 0}),p=f.data?.providers??eZ,m=f.data!==void 0,h=f.data?.models??tZ,g=Yr();return(0,z.jsx)(oZ,{projectId:r,projects:c,projectsAreLoaded:l,providers:p,providersAreLoaded:m,hosts:u,isLocalHost:d,models:h,selectedProviderId:a,onSelectedProviderIdChange:o,onProjectChange:i,onHire:(0,R.useCallback)(async e=>{let r=await g.mutateAsync(e);t(),n(`/projects/${r.projectId}/threads/${r.id}`)},[g,n,t]),isHirePending:g.isPending})}function oZ({projectId:e,projects:t,projectsAreLoaded:n,providers:r,providersAreLoaded:i,hosts:a,isLocalHost:o,models:s,selectedProviderId:c,onSelectedProviderIdChange:l,onProjectChange:u,onHire:d,isHirePending:f}){let p=(0,R.useId)(),[m,h]=(0,R.useState)(``),[g,_]=(0,R.useState)(``),[v,y]=(0,R.useState)(``),[b,x]=(0,R.useState)(`default`),[S,C]=(0,R.useState)(``),[w,T]=(0,R.useState)(!1),[E,D]=(0,R.useState)(null),O=(0,R.useMemo)(()=>{if(c){let e=r.find(e=>e.id===c);if(e)return e}return r[0]??null},[r,c]),ee=O?.id??``,k=O!==null,A=i?`No providers available`:`Loading…`,j=n?`No projects available`:`Loading projects…`,M=(0,R.useMemo)(()=>t.some(t=>t.id===e)?e:t[0]?.id??e,[e,t]),N=(0,R.useMemo)(()=>t.find(e=>e.id===M)??null,[M,t]),te=(0,R.useMemo)(()=>t.map(e=>({value:e.id,label:e.name})),[t]),ne=N?.sources??rZ;(0,R.useEffect)(()=>{!i||!c||!O||O.id!==c&&l(O.id)},[l,i,O,c]);let re=(0,R.useMemo)(()=>s.find(e=>e.model===g),[s,g]),ie=(0,R.useMemo)(()=>re?.supportedReasoningEfforts?.length?re.supportedReasoningEfforts.map(e=>({value:e.reasoningEffort,label:$X[e.reasoningEffort]??e.reasoningEffort})):[],[re]),ae=(0,R.useMemo)(()=>r.map(e=>({value:e.id,label:e.displayName,icon:cX(e.id)?.icon})),[r]),P=O?.id,oe=(0,R.useMemo)(()=>s.map(e=>({value:e.model,label:IX(e.displayName||e.model,P)})),[s,P]);(0,R.useEffect)(()=>{k&&s.length>0&&!s.some(e=>e.model===g)&&_(s.find(e=>e.isDefault)?.model??s[0]?.model??``)},[k,s,g]),(0,R.useEffect)(()=>{if(!re){y(``);return}let e=ie.some(e=>e.value===v);b===`user`&&e||y(re.defaultReasoningEffort??ie[0]?.value??``)},[ie,b,re,v]);let se=ie.find(e=>e.value===v)?.value??ie[0]?.value,ce=(0,R.useMemo)(()=>a.filter(e=>e.status===`connected`&&je(ne,e.id)!==void 0),[a,ne]);(0,R.useEffect)(()=>{if(ce.length===0){S&&C(``);return}ce.some(e=>e.id===S)||C(ce.find(e=>o(e.id))?.id??ce[0].id)},[ce,S,o]);let le=(0,R.useCallback)(e=>{l(e),D(null)},[l]),ue=(0,R.useCallback)(e=>{u(e),D(null)},[u]),de=(0,R.useCallback)(e=>{_(e),x(`default`),D(null)},[]),fe=(0,R.useCallback)(e=>{y(e),x(`user`),D(null)},[]),pe=(0,R.useCallback)(async e=>{if(e.preventDefault(),!(!M||w||f)){if(!O){D(`A provider is required`);return}if(!g){D(`A model is required`);return}if(!S){D(`A host is required`);return}T(!0),D(null);try{let e=m.trim();await d({projectId:M,...e?{name:e}:{},providerId:O.id,model:g,...se?{reasoningLevel:se}:{},environment:{type:`host`,hostId:S}})}catch(e){D(tl({error:e,fallbackMessage:`Failed to hire manager.`}))}finally{T(!1)}}},[se,M,f,w,m,d,S,g,O]),me=w||f;return(0,z.jsxs)(`form`,{"aria-label":`Hire manager`,className:`space-y-3`,onSubmit:pe,children:[(0,z.jsxs)(OK,{appearance:`flat`,labelWidth:`64px`,children:[(0,z.jsx)(kK,{label:`Project`,valueClassName:`min-w-0`,children:te.length>0?(0,z.jsx)(KX,{label:`Project`,value:M,options:te,onChange:ue}):(0,z.jsx)(sZ,{isLoading:!n,message:j})}),(0,z.jsx)(kK,{label:(0,z.jsx)(`label`,{htmlFor:p,children:`Name`}),valueClassName:`min-w-0`,children:(0,z.jsx)(hr,{id:p,value:m,placeholder:`Give them a name (optional)`,disabled:w,className:`h-7 text-xs`,onChange:e=>{h(e.target.value),D(null)}})}),(0,z.jsx)(kK,{label:`Model`,valueClassName:`min-w-0`,children:k?oe.length>0?(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1`,children:[(0,z.jsx)(JX,{providerOptions:ae,selectedProviderId:ee,onSelectedProviderChange:le,hasMultipleProviders:r.length>1,modelValue:g,modelOptions:oe,onModelChange:de,formatModelLabel:IX,fastModeEnabled:!1,onFastModeChange:()=>{},showFastModeToggle:!1}),ie.length>0?(0,z.jsx)(KX,{label:`Reasoning`,value:se??ie[0].value,options:ie,onChange:fe}):null]}):(0,z.jsx)(sZ,{isLoading:!0,message:`Loading…`}):(0,z.jsx)(sZ,{isLoading:!i,message:A})}),ce.length>1?(0,z.jsx)(kK,{label:`Host`,valueClassName:`min-w-0`,children:(0,z.jsx)(QX,{hosts:a,eligibleHosts:ce,selectedHostId:S,onChange:C,isLocalHost:o})}):null]}),(0,z.jsx)(JY,{message:E}),(0,z.jsx)(dr,{children:(0,z.jsx)(it,{type:`submit`,disabled:me,children:me?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(F,{name:`Spinner`,className:`mr-2 size-4 animate-spin`}),`Creating…`]}):`Create`})})]})}function sZ({isLoading:e,message:t}){return(0,z.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-sm text-muted-foreground`,children:[e?(0,z.jsx)(F,{name:`Spinner`,className:`size-3 animate-spin`,"aria-hidden":!0}):null,t]})}var cZ=`bb.sidebar.width`,lZ=`bb.sidebar.open`,uZ=240,dZ=460,fZ=320;function pZ(e){return Math.min(dZ,Math.max(uZ,e))}var mZ=Er(cZ,fZ,Tr({parse:(e,t)=>{if(e===null)return t;let n=Number(e);return Number.isFinite(n)?pZ(n):t},serialize:e=>String(pZ(e))}),{getOnInit:!0}),hZ=Er(lZ,!0,Tr({parse:(e,t)=>e===`true`?!0:e===`false`?!1:t,serialize:e=>String(e)}),{getOnInit:!0});function gZ({providerRef:e,style:t,children:n}){let[r,i]=Mr(hZ);return(0,z.jsx)(Ya,{ref:e,style:t,open:r,onOpenChange:i,children:n})}function _Z(){return Ja()?null:(0,z.jsx)(`div`,{className:`absolute left-3 top-3.5 z-20`,children:(0,z.jsx)(Za,{className:`h-5 w-5 rounded-md p-0`})})}var vZ={"/":{title:`Projects`,subtitle:`Select or create a project`},"/settings":{title:`Settings`},"/development-only/replay":{title:`Replay threads`}};function yZ({usesProjectChromeStyle:e,isArchivedView:t,isSettingsView:n,projectId:r,project:i,onHireManager:a,meta:o}){let s=o.breadcrumbs,c=s||e?void 0:o.title,l=s||c||o.subtitle?(0,z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[s?(0,z.jsx)(`p`,{className:`flex min-w-0 items-center gap-1.5 text-sm font-semibold`,children:s.map((e,t)=>{let n=t===s.length-1;return(0,z.jsxs)(R.Fragment,{children:[t>0?(0,z.jsx)(F,{name:`ChevronRight`,className:`size-3.5 shrink-0 text-subtle-foreground`}):null,!n&&e.to?(0,z.jsx)(ar,{to:e.to,className:`shrink-0 text-muted-foreground transition-colors hover:text-foreground`,children:e.label}):(0,z.jsx)(`span`,{className:n?`min-w-0 truncate`:`shrink-0 text-muted-foreground`,children:e.label})]},`${e.label}-${t}`)})}):null,c?(0,z.jsx)(`p`,{className:`truncate text-sm font-semibold`,children:c}):null,o.subtitle?(0,z.jsx)(`p`,{className:`truncate text-xs text-muted-foreground`,children:o.subtitle}):null]}):null,u=e&&r?(0,z.jsxs)(z.Fragment,{children:[a?(0,z.jsx)(`button`,{type:`button`,className:I(WY,`inline-flex items-center justify-center text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground`),"aria-label":`Hire manager`,title:`Hire manager`,onClick:()=>{a(r)},children:(0,z.jsx)(F,{name:`UserRoundPlus`})}):null,(0,z.jsx)(ar,{to:`/projects/${r}/settings`,className:I(WY,`inline-flex items-center justify-center transition-colors`,n?`bg-state-active text-foreground`:`text-muted-foreground hover:bg-state-hover hover:text-foreground`),"aria-label":`Project settings`,"aria-current":n?`page`:void 0,title:`Project settings`,children:(0,z.jsx)(F,{name:`Settings`})}),(0,z.jsx)(ar,{to:`/projects/${r}/archived`,className:I(WY,`inline-flex items-center justify-center transition-colors`,t?`bg-state-active text-foreground`:`text-muted-foreground hover:bg-state-hover hover:text-foreground`),"aria-label":`Archived threads`,"aria-current":t?`page`:void 0,title:`Archived threads`,children:(0,z.jsx)(F,{name:`Archive`})}),i?(0,z.jsx)(dc,{project:i,triggerClassName:WY}):null]}):null;return(0,z.jsx)(GY,{bordered:!e,center:l,actions:u})}function bZ({children:e}){let t=HY(),n=RY(),r=er(),{projectId:i,threadId:a,isProjectMainView:o,isThreadView:s,isArchivedView:c,isSettingsView:l,isRootView:u}=So(),d=Ar(),f=jr({enabled:d.isSuccess||d.isError}),p=f.data,m=d.isFetching||f.isLoading,h=qn(a??``,{enabled:s&&!!a}),g=h.isSuccess||h.isError,_=ji({mutationKey:Gr}),[v,y]=Mr(mZ),[b,x]=(0,R.useState)(!1),S=(0,R.useRef)(null),C=(0,R.useRef)(0),w=(0,R.useRef)(0),T=(0,R.useRef)(v),E=(0,R.useRef)(null),D=qY(),O=!u&&!s,ee=u,k=i?p?.find(e=>e.id===i):void 0,A=(i?k?.name:void 0)??(i?m?`Loading project…`:i:void 0),{data:j}=Yn(a??``,{enabled:!!a&&(!s||g),refetchOnMount:s&&h.isSuccess?!0:`always`}),M=j?Wn(j):a?`Thread ${a.slice(0,8)}`:`Thread`,N=s?{title:j?Wn(j):`Thread`,subtitle:void 0}:c&&i?{title:``,subtitle:void 0,breadcrumbs:[{label:A??i,to:`/projects/${i}`},{label:`Archived`}]}:l&&i?{title:``,subtitle:void 0,breadcrumbs:[{label:A??i,to:`/projects/${i}`},{label:`Settings`}]}:i?{title:A??i,subtitle:void 0}:vZ[r.pathname]??{title:``},te=(()=>{if(s)return M;if(c&&i)return`${A??i} · Archived`;if(l&&i)return`${A??i} · Settings`;if(i)return A??i;let e=vZ[r.pathname]?.title;return e&&e.length>0?e:`BB`})(),ne=(0,R.useCallback)(e=>{e.preventDefault(),x(!0),C.current=e.clientX,w.current=T.current,document.body.classList.add(`sidebar-resizing`),document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`},[]);(0,R.useEffect)(()=>{if(!b)return;let e=()=>{E.current=null,S.current?.style.setProperty(`--sidebar-width`,`${T.current}px`)},t=t=>{let n=t.clientX-C.current;T.current=pZ(w.current+n),E.current===null&&(E.current=window.requestAnimationFrame(e))},n=()=>{E.current!==null&&(window.cancelAnimationFrame(E.current),E.current=null),S.current?.style.setProperty(`--sidebar-width`,`${T.current}px`),y(T.current),x(!1),document.body.classList.remove(`sidebar-resizing`),document.body.style.cursor=``,document.body.style.userSelect=``};return window.addEventListener(`mousemove`,t),window.addEventListener(`mouseup`,n),()=>{window.removeEventListener(`mousemove`,t),window.removeEventListener(`mouseup`,n),E.current!==null&&(window.cancelAnimationFrame(E.current),E.current=null),document.body.classList.remove(`sidebar-resizing`),document.body.style.cursor=``,document.body.style.userSelect=``}},[b,y]),(0,R.useEffect)(()=>{T.current=v},[v]),(0,R.useEffect)(()=>{typeof document>`u`||(document.title=te)},[te]);let re=_>0;return(0,z.jsx)(cc,{children:(0,z.jsxs)(dl,{children:[(0,z.jsxs)(gZ,{providerRef:S,style:{"--sidebar-width":`${v}px`},children:[(0,z.jsx)(UY,{onResizeMouseDown:ne,isResizing:b,selectedProjectId:D,isManagerActionPending:re}),(0,z.jsx)($a,{children:(0,z.jsxs)(`div`,{className:`relative flex h-[100dvh] min-w-0 w-full flex-col`,children:[ee?(0,z.jsx)(_Z,{}):null,O?(0,z.jsx)(yZ,{usesProjectChromeStyle:o||c||l,isArchivedView:c,isSettingsView:l,projectId:i,project:k,onHireManager:n.open,meta:N}):null,(0,z.jsx)(`main`,{className:`flex min-h-0 flex-1 flex-col p-4 md:p-5`,children:e})]})})]}),(0,z.jsx)(Gs,{target:t.projectPathDialog.target,pending:t.isCreating,platform:t.platform,onOpenChange:t.projectPathDialog.onOpenChange,onSubmit:t.submitProjectPath}),(0,z.jsx)(iZ,{})]})})}var xZ={success:{title:`Authentication completed`,message:`You can close this window.`},error:{title:`Authentication failed`,message:`Something went wrong. Please close this window and try again.`}};function SZ(){let[e]=nr(),t=e.get(`status`)===`error`?`error`:`success`,n=xZ[t];return(0,z.jsx)(`div`,{className:`flex justify-center bg-background px-4 pt-12`,children:(0,z.jsxs)(`div`,{className:`w-full max-w-sm rounded-lg border border-border bg-card px-4 py-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[t===`error`?(0,z.jsx)(F,{name:`CircleX`,className:`size-4 shrink-0 text-destructive`}):(0,z.jsx)(F,{name:`CircleCheck`,className:`size-4 shrink-0`}),(0,z.jsx)(`h1`,{className:`text-sm font-semibold`,children:n.title})]}),(0,z.jsx)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:n.message})]})})}function CZ({status:e,isCreating:t,isAvailable:n,onCreate:r,onRetry:i}){return e===`loading`?(0,z.jsx)(rt,{contentClassName:`min-h-full items-center justify-center`,children:(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Loading projects...`})}):e===`unavailable`?(0,z.jsx)(rt,{contentClassName:`min-h-full items-center justify-center`,children:(0,z.jsxs)(`div`,{className:`flex flex-col items-center gap-4 text-center`,children:[(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Couldn't load projects`}),(0,z.jsx)(it,{variant:`outline`,onClick:i,children:`Try again`})]})}):n?(0,z.jsx)(rt,{contentClassName:`min-h-full items-center justify-center`,children:(0,z.jsxs)(`div`,{className:`flex flex-col items-center gap-4 text-center`,children:[(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Create a new project to get started`}),(0,z.jsx)(it,{onClick:r,disabled:t,children:t?`Creating...`:`New project`})]})}):(0,z.jsx)(rt,{contentClassName:`min-h-full items-center justify-center`,children:(0,z.jsxs)(`div`,{className:`flex flex-col items-center gap-1 text-center`,children:[(0,z.jsx)(`p`,{className:`text-sm font-medium text-foreground`,children:`No local daemon`}),(0,z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Start a local daemon on this device to create a project.`})]})})}function wZ(){let e=Ar(),t=jr({enabled:e.isSuccess||e.isError}),{data:n,isLoadingError:r,refetch:i}=t,a=Eo({hasResolvedData:n!==void 0,isFetching:e.isFetching||t.isFetching,isLoadingError:r}),o=HY(),s=qY();return a.status!==`loading`&&s?(0,z.jsx)(rr,{to:`/projects/${s}`,replace:!0}):(0,z.jsx)(CZ,{status:a.status,isCreating:o.isCreating,isAvailable:o.isAvailable,onCreate:()=>{o.openCreateDialog()},onRetry:()=>{i()}})}var TZ=(0,R.memo)(function({provider:e,model:t,serviceTier:n,reasoning:r}){let i=n?.onChange??(()=>{}),a=e.onChange===void 0,o=e.hasMultiple&&a&&e.displayName&&t.options.length===0,s=t.options.length>0;return(0,z.jsxs)(z.Fragment,{children:[o?(0,z.jsx)(GX,{label:`Provider`,value:e.displayName,icon:e.options?.find(t=>t.value===e.selectedId)?.icon,muted:!0}):null,s?(0,z.jsx)(JX,{providerOptions:e.options??[],selectedProviderId:e.selectedId??``,onSelectedProviderChange:e.onChange,hasMultipleProviders:e.hasMultiple??!1,modelValue:t.active?.model??t.selected,modelOptions:t.options,onModelChange:t.onChange,formatModelLabel:IX,fastModeEnabled:n?.value===`fast`,onFastModeChange:e=>i(e?`fast`:void 0),showFastModeToggle:n?.supported??!1,serviceTierSupportByProvider:n?.supportByProvider,muted:!0}):null,r.options.length>0?(0,z.jsx)(KX,{label:`Reasoning level`,value:r.value,options:r.options,onChange:r.onChange,muted:!0}):null]})}),EZ=60,DZ=160;function OZ(e,{minHeight:t=EZ,maxHeight:n=DZ}={}){return(0,R.useCallback)(r=>{let i=r??e.current;i&&(i.style.height=`auto`,i.style.height=`${Math.min(Math.max(i.scrollHeight,t),n)}px`)},[n,t,e])}var kZ=ge({text:_e().default(``),attachments:se(t()).default([]).transform(e=>e.flatMap(e=>{let t=We.safeParse(e);return t.success?[t.data]:[]}))});function AZ(){return{text:``,attachments:[]}}function jZ(e){return e.text.length===0&&e.attachments.length===0}function MZ(e){if(!e)return AZ();try{let t=JSON.parse(e),n=kZ.safeParse(t);return n.success?n.data:AZ()}catch{return AZ()}}function NZ(e){let t=e.text,n=e.attachments;return jZ(e)?null:JSON.stringify({text:t,attachments:n})}function PZ(e,t){return NZ(e)===NZ(t)}function FZ(e){let t=e.trim();if(t.length===0)return`Attachment`;let n=t.split(`/`),r=n[n.length-1];return r&&r.length>0?r:t}function IZ(e){let t=[],n=e.text.trim();n.length>0&&t.push({type:`text`,text:n});for(let n of e.attachments){if(n.type===`localImage`){t.push({type:`localImage`,path:n.path});continue}t.push({type:`localFile`,path:n.path,name:n.name,sizeBytes:n.sizeBytes,...n.mimeType?{mimeType:n.mimeType}:{}})}return t}function LZ(e){let t=[],n=[];for(let r of e){if(r.type===`text`){r.text.trim().length>0&&t.push(r.text);continue}if(r.type===`localImage`){n.push({type:`localImage`,path:r.path,name:FZ(r.path),sizeBytes:0});continue}r.type===`localFile`&&n.push({type:`localFile`,path:r.path,name:r.name??FZ(r.path),sizeBytes:r.sizeBytes??0,...r.mimeType?{mimeType:r.mimeType}:{}})}return{text:t.join(`
|
|
1356
|
-
|
|
1357
|
-
`),attachments:n}}function RZ(e,t){if(/^(https?:|data:|blob:)/i.test(e))return e;if(t)return le(t,e);if(/^file:/i.test(e))return e;let n=e.replaceAll(`\\`,`/`);return/^[a-zA-Z]:\//.test(n)?`file:///${encodeURI(n)}`:n.startsWith(`/`)?`file://${encodeURI(n)}`:e}function zZ(e){return e.type===`localImage`||e.mimeType?.toLowerCase().startsWith(`image/`)===!0}function BZ({attachments:e,attachmentProjectId:t,expandedImageIndex:n,onExpandedImageIndexChange:r,onRemoveAttachment:i}){let a=e.filter(zZ),o=e.filter(e=>!zZ(e)),s=a.map(e=>({alt:e.name,src:RZ(e.path,t)})),c=a.length>1,l=n===null?null:s[n]??null;return(0,R.useEffect)(()=>{n!==null&&(n<a.length||r(null))},[n,a.length,r]),e.length===0?null:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{className:`mx-3 mb-1 mt-1`,children:[a.length>0?(0,z.jsx)(`div`,{className:`mb-1.5 flex flex-wrap gap-2`,children:a.map((e,n)=>(0,z.jsxs)(`div`,{className:`relative`,children:[(0,z.jsx)(`button`,{type:`button`,className:`cursor-zoom-in overflow-hidden rounded-md border border-border bg-surface-recessed`,onClick:()=>r(n),title:e.name,children:(0,z.jsx)(`img`,{src:RZ(e.path,t),alt:e.name,className:`h-16 w-24 object-cover`,loading:`lazy`})}),i?(0,z.jsx)(`button`,{type:`button`,onClick:()=>i(e.path),className:`absolute right-1 top-1 z-10 rounded-full bg-black/55 p-0.5 text-white transition-colors hover:bg-black/70`,title:`Remove ${e.name}`,"aria-label":`Remove ${e.name}`,children:(0,z.jsx)(F,{name:`X`,className:`size-3`})}):null]},`${e.path}-${n}`))}):null,o.length>0?(0,z.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:o.map(e=>(0,z.jsxs)(`span`,{className:`inline-flex max-w-full items-center gap-1 rounded-full border border-border bg-surface-recessed px-2 py-0.5 text-xs text-muted-foreground`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:e.name}),i?(0,z.jsx)(`button`,{type:`button`,onClick:()=>i(e.path),className:`rounded p-0.5 hover:bg-state-hover`,title:`Remove ${e.name}`,children:(0,z.jsx)(F,{name:`X`,className:`size-3`})}):null]},e.path))}):null]}),(0,z.jsx)(_d,{imageSrc:l?.src??null,imageAlt:l?.alt??`Attached image`,title:`Attached image preview`,hasMultipleImages:c,onPrevious:()=>{r(n===null||s.length<=1?n:gd({currentIndex:n,direction:`previous`,itemCount:s.length}))},onNext:()=>{r(n===null||s.length<=1?n:gd({currentIndex:n,direction:`next`,itemCount:s.length}))},onClose:()=>r(null)})]})}var VZ=[`threads`,`workspace`,`manager-storage`];function HZ(e){let t=e.lastIndexOf(`/`);return t===-1?{name:e,directory:``}:{name:e.slice(t+1),directory:e.slice(0,t)}}function UZ(e,t){let n=new Map;for(let[r,i]of e.entries()){let e=WZ(i),a=n.get(e);if(a){a.items.push({item:i,index:r});continue}n.set(e,{kind:e,label:KZ(e,t),items:[{item:i,index:r}]})}return VZ.flatMap(e=>{let t=n.get(e);return t?[t]:[]})}function WZ(e){return e.kind===`thread`?`threads`:GZ(e)}function GZ(e){return e.source===`thread-storage`?`manager-storage`:`workspace`}function KZ(e,t){return e===`threads`?qZ(t):JZ(e)}function qZ(e){return e===`all`?`Managers & threads`:e===`managers`?`Managers`:`Threads`}function JZ(e){return e===`manager-storage`?`Manager Storage`:`Workspace`}function YZ(e){return e.kind===`thread`?e.threadType===`manager`?`UserRound`:`MessageSquare`:e.entryKind===`directory`?`Folder`:`File`}function XZ(e){return e.kind===`thread`?e.title||e.path:`${JZ(GZ(e))}: ${e.path}`}function ZZ(e,t){return e.kind===`path`?`${e.kind}-${e.source}-${e.entryKind}-${e.path}-${t}`:`${e.kind}-${e.path}-${t}`}function QZ({state:e,selectedIndex:t,onApply:n}){let r=(0,R.useRef)([]),i=e.kind===`results`?e.suggestions.length:0;(0,R.useEffect)(()=>{r.current=r.current.slice(0,i)},[i]),(0,R.useEffect)(()=>{if(e.kind!==`results`||e.suggestions.length===0)return;let n=r.current[t];n&&n.scrollIntoView({block:`nearest`})},[i,t,e.kind,e]);let a=(0,R.useMemo)(()=>e.kind===`results`?UZ(e.suggestions,e.threadSectionMode):[],[e]);return(0,z.jsx)(`div`,{className:`overflow-hidden rounded-md border border-border bg-popover text-popover-foreground`,children:(0,z.jsx)(`div`,{className:`max-h-48 overflow-y-auto`,children:e.kind===`hint`?(0,z.jsx)(`div`,{className:`px-3 py-2 text-xs text-muted-foreground`,children:`Type to search mentions`}):e.kind===`loading`?(0,z.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2 text-xs text-muted-foreground`,children:[(0,z.jsx)(F,{name:`Spinner`,className:`size-3.5 animate-spin`}),(0,z.jsx)(`span`,{children:`Searching mentions…`})]}):e.kind===`error`?(0,z.jsx)(`div`,{className:`px-3 py-2 text-xs text-destructive`,children:`Failed to load suggestions`}):a.length>0?(0,z.jsx)(`div`,{className:`pb-1`,children:a.map(e=>(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`sticky top-0 z-10 bg-popover px-3 pb-1 pt-1.5 text-xs text-muted-foreground`,children:e.label}),(0,z.jsx)(`div`,{className:`flex flex-col gap-px px-1`,children:e.items.map(({item:e,index:i})=>{let a=i===t,o,s=null,c=YZ(e);if(e.kind===`thread`)o=e.title||`Untitled thread`;else{let{directory:t}=HZ(e.path);o=e.name,s=t||null}return(0,z.jsx)(`button`,{ref:e=>{r.current[i]=e},type:`button`,onMouseDown:t=>{t.preventDefault(),n(e)},className:I(`w-full scroll-mt-7 rounded px-2 py-1.5 text-left text-xs`,a?`bg-state-active text-foreground`:`hover:bg-state-hover`),title:XZ(e),children:(0,z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,z.jsx)(F,{name:c,className:`size-3.5 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,z.jsx)(`span`,{className:`truncate`,children:o}),s===null?null:(0,z.jsx)(OG,{className:`text-muted-foreground [flex-shrink:9999]`,children:s})]})},ZZ(e,i))})})]},e.kind))}):(0,z.jsx)(`div`,{className:`px-3 py-2 text-xs text-muted-foreground`,children:`No matching mentions`})})})}var $Z=/(^|[\s([{])@([^\s@]*)$/;function eQ(e,t){if(t<0||t>e.length)return null;let n=e.slice(0,t),r=$Z.exec(n);if(!r)return null;let i=r[2]??``,a=n.length-i.length-1;return a<0||n[a]!==`@`?null:{query:i,start:a,end:t}}function tQ(e,t,n){let r=n.trim();if(!r)return{value:e,caretPosition:t.end,insertedLength:0};let i=e.slice(t.end),a=/^\s/.test(i)?`@${r}`:`@${r} `;return{value:`${e.slice(0,t.start)}${a}${i}`,caretPosition:t.start+a.length,insertedLength:a.length}}var nQ=68,rQ=158,iQ={thread:`bb.promptbox.zen-mode.thread`,"project-main":`bb.promptbox.zen-mode.project-main`},aQ={thread:`h-[50dvh]`,"project-main":`h-[70dvh]`};function oQ(){let e=Dr(!1);return Dr(t=>t(e),(t,n,r)=>{let i=t(e),a=typeof r==`function`?r(i):r;n(e,a===ur?!1:a)})}function sQ({id:e,value:t,onChange:n,onSubmit:r,placeholder:i=`Ask anything. @ to mention files or folders`,className:a,header:o,footerStart:s,autoFocus:c=!1,submission:l={},minHeight:u=nQ,mentions:d,mentionMenuPlacement:f,attachments:p={},zenMode:m={},history:h,voice:g,promptBoxRef:_}){let{isSubmitting:v=!1,disabled:y=!1,title:b=`Submit (Enter)`,mode:x=`enter`,isRunning:S=!1,onStop:C,onModifierSubmit:w}=l,{suggestions:T,threadSectionMode:E,isLoading:D,isError:O,onQueryChange:ee}=d,{items:k=[],isAttaching:A=!1,error:j=null,onAttachFiles:M,onRemove:N,projectId:te}=p,{layout:ne=`thread`,storageKey:re,resetKey:ie,resetOnSubmit:ae=!1}=m,P=(0,R.useRef)(null),oe=(0,R.useRef)(null),se=(0,R.useRef)(null),ce=(0,R.useRef)(null),le=(0,R.useRef)(t),ue=OZ(se,{minHeight:u,maxHeight:rQ}),de=(0,R.useRef)(``),fe=(0,R.useRef)(null),pe=(0,R.useRef)(!1),[me,he]=(0,R.useState)(null),[ge,_e]=(0,R.useState)(0),[ve,ye]=(0,R.useState)(null),[be,xe]=(0,R.useState)(null),[Se,Ce]=(0,R.useState)(null),[we,Te]=(0,R.useState)(null),Ee=re??iQ[ne],[De,Oe]=Mr((0,R.useMemo)(()=>Ee?Er(Ee,!1,pr(),{getOnInit:!0}):oQ(),[Ee])),ke=h?.resetKey;(0,R.useLayoutEffect)(()=>{if(!c)return;let e=se.current;if(!e)return;e.focus();let t=e.value.length;e.setSelectionRange(t,t)},[c,ke]),(0,R.useEffect)(()=>{if(se.current){if(De){se.current.style.height=`100%`;return}ue(se.current)}},[De,ue,t]),(0,R.useEffect)(()=>{le.current=t},[t]),(0,R.useEffect)(()=>{if(ie!==void 0){if(Ee){Oe(ur);return}Oe(!1)}},[Ee,Oe,ie]);let Ae=(0,R.useCallback)(()=>{xe(null),Ce(null),Te(null)},[]);(0,R.useEffect)(()=>{if(!h){Ae();return}if(h.entries.length===0){Ae();return}be!==null&&be>=h.entries.length&&Ae()},[be,h,Ae]),(0,R.useEffect)(()=>{Ae()},[h?.resetKey,Ae]),(0,R.useEffect)(()=>{if(!h||be===null||!we)return;let e=h.entries[be];if(!e||!PZ(e,we)){Ae();return}PZ(h.currentDraft,we)||Ae()},[be,h,we,Ae]),(0,R.useLayoutEffect)(()=>{let e=oe.current,t=P.current;if(e===null||!t)return;oe.current=null;let n=t.style.transition,r=t.style.willChange;t.style.transition=`none`,t.style.height=``;let i=t.getBoundingClientRect().height;t.style.height=`${e}px`,t.getBoundingClientRect(),t.style.willChange=`height`,t.style.transition=`height 240ms cubic-bezier(0.22, 1, 0.36, 1)`,t.style.height=`${i}px`;let a=!1,o=()=>{a||(a=!0,t.style.transition=n,t.style.willChange=r,t.style.height=``,t.removeEventListener(`transitionend`,s),window.clearTimeout(c))},s=e=>{e.propertyName===`height`&&o()},c=window.setTimeout(o,320);return t.addEventListener(`transitionend`,s),o},[De,ne]);let je=(0,R.useCallback)(e=>{let t=e.selectionStart??e.value.length,n=fe.current,r=pe.current&&n!==null;n&&!r&&(t>=n.start&&t<=n.end?n.hasLeftRange&&(fe.current=null):fe.current={...n,hasLeftRange:!0});let i=fe.current&&!fe.current.hasLeftRange&&(r||t>=fe.current.start&&t<=fe.current.end)?null:eQ(e.value,t),a=i?`${i.start}:${i.end}:${i.query}`:``;a!==de.current&&(de.current=a,_e(0)),he(i),ee(i?i.query:null)},[ee]);(0,R.useEffect)(()=>{se.current&&je(se.current)},[je,t]);let Me=t.trim(),Ne=k.length>0,Pe=Me.length>0||Ne,Fe=me!==null,Ie=(me?.query.trim()??``).length===0?{kind:`hint`}:D?{kind:`loading`}:O?{kind:`error`}:{kind:`results`,suggestions:T,threadSectionMode:E};(0,R.useEffect)(()=>{if(T.length===0){_e(0);return}ge>=T.length&&_e(0)},[T.length,ge]);let Le=(0,R.useCallback)(e=>{if(!se.current||!me)return;let r=me.start,i=tQ(t,me,e.replacement);de.current=``,fe.current={start:r,end:r+i.insertedLength,hasLeftRange:!1},pe.current=!0,n(i.value),he(null),_e(0),ee(null),requestAnimationFrame(()=>{let e=se.current;if(!e){pe.current=!1;return}e.focus(),e.setSelectionRange(i.caretPosition,i.caretPosition),De?e.style.height=`100%`:ue(e),je(e),pe.current=!1})},[me,De,n,ee,ue,je,t]),Re=(0,R.useCallback)(e=>{let t=e.replace(/\s+/g,` `).trim();if(t.length===0)return;let r=se.current,i=le.current;if(!r){n(i.length===0||/\s$/.test(i)?`${i}${t}`:`${i} ${t}`);return}let a=r.selectionStart??i.length,o=r.selectionEnd??a,s=i.slice(0,a),c=i.slice(o),l=s.length>0&&!/\s$/.test(s),u=c.length>0&&!/^\s/.test(c),d=`${l?` `:``}${t}${u?` `:``}`,f=`${s}${d}${c}`,p=s.length+d.length;n(f),requestAnimationFrame(()=>{let e=se.current;e&&(e.focus(),e.setSelectionRange(p,p),De?e.style.height=`100%`:ue(e),je(e))})},[De,n,ue,je]),ze=(0,R.useCallback)(()=>{let e=le.current,t=se.current;if(!t){let t=e.trim();return t.length>0?t:void 0}let n=t.selectionStart??e.length,r=e.slice(0,n).trim();return r.length>0?r:void 0},[]);(0,R.useImperativeHandle)(_,()=>({insertTextAtCursor:Re,getTextBeforeCursor:ze}),[Re,ze]);let Be=g?.state===`recording`,Ve=g?.state===`transcribing`,He=Be||Ve,Ue=g?.state===`error`?g.errorMessage??`Voice input failed.`:null,We=Be||Ve,Ge=Pe&&!v&&!y&&!He,Ke=w!==void 0&&!v&&!y&&!He,qe=!!(S&&C&&!Ge&&!He),Je=g!==void 0&&g.isSupported&&!v,Ye=x,Xe=De?b.replace(/^Submit\s+/,``):b,Ze=(0,R.useCallback)(e=>{!M||e.length===0||M(e)},[M]),Qe=(0,R.useCallback)(()=>{if(!(!ae||!De)){if(Ee){Oe(ur);return}Oe(!1)}},[De,ae,Ee,Oe]),$e=(0,R.useCallback)(()=>{Ge&&(r(),Qe())},[Ge,r,Qe]),et=(0,R.useCallback)(()=>{!Ke||!w||(w(),Qe())},[Ke,w,Qe]),tt=(0,R.useCallback)(e=>{h&&(h.onSelectEntry(e),requestAnimationFrame(()=>{let e=se.current;if(!e)return;e.focus();let t=e.value.length;e.setSelectionRange(t,t),De?e.style.height=`100%`:ue(e),je(e)}))},[h,De,ue,je]),nt=(0,R.useCallback)(()=>{let e=se.current,t=P.current,n=e?.selectionStart??null,r=e?.selectionEnd??null,i=e?.scrollTop??null;oe.current=t?.getBoundingClientRect().height??null,Oe(e=>!e),requestAnimationFrame(()=>{let e=se.current;e&&(e.focus(),n!==null&&r!==null&&e.setSelectionRange(n,r),i!==null&&(e.scrollTop=i))})},[Oe]),rt=(0,R.useCallback)(e=>{let t=e.target.files;!t||t.length===0||(Ze(Array.from(t)),e.target.value=``)},[Ze]);return(0,z.jsxs)(`form`,{ref:P,onSubmit:e=>{e.preventDefault(),$e()},onDragOver:e=>{M&&e.preventDefault()},onDrop:e=>{M&&(e.preventDefault(),!(!e.dataTransfer?.files||e.dataTransfer.files.length===0)&&Ze(Array.from(e.dataTransfer.files)))},className:I(`relative w-full rounded-lg border border-border bg-background pb-2`,De&&`flex flex-col pb-3`,De&&aQ[ne],a),children:[(0,z.jsx)(`input`,{ref:ce,type:`file`,multiple:!0,className:`hidden`,onChange:rt}),o?(0,z.jsx)(`div`,{className:I(`pr-14`,De?`pl-6 pt-6`:`pl-4 pt-3`),children:o}):null,(0,z.jsxs)(`div`,{className:I(`relative`,De&&`flex flex-1 flex-col`),children:[(0,z.jsx)(it,{type:`button`,size:`icon`,variant:`ghost`,onMouseDown:e=>{e.preventDefault()},onClick:nt,title:De?`Exit zen mode`:`Enter zen mode`,"aria-label":De?`Exit zen mode`:`Enter zen mode`,"aria-pressed":De,className:`absolute right-2 top-2 z-20 size-auto h-6 px-1.5 text-subtle-foreground hover:text-muted-foreground`,children:De?(0,z.jsx)(F,{name:`Minimize2`,className:`size-3`}):(0,z.jsx)(F,{name:`Maximize2`,className:`size-3`})}),(0,z.jsx)(`textarea`,{ref:se,id:e,value:t,onChange:e=>{n(e.target.value),De?e.target.style.height=`100%`:ue(e.target),je(e.target)},onClick:e=>{je(e.currentTarget)},onSelect:e=>{je(e.currentTarget)},onBlur:()=>{de.current=``,fe.current&&={...fe.current,hasLeftRange:!0},he(null),ee(null)},onPaste:e=>{if(!M)return;let t=Array.from(e.clipboardData?.items??[]).filter(e=>e.kind===`file`).map(e=>e.getAsFile()).filter(e=>e!==null);t.length!==0&&(e.preventDefault(),Ze(t))},onKeyDown:e=>{let t=e.currentTarget.selectionStart,n=e.currentTarget.selectionEnd,r=t!==null&&n!==null&&t===n,i=e.shiftKey||e.altKey||e.metaKey||e.ctrlKey,a=r&&t===e.currentTarget.value.length,o=h&&be!==null?h.entries[be]:null,s=!!(h&&o!=null&&PZ(h.currentDraft,o)),c=h!==void 0&&!i&&a&&(jZ(h.currentDraft)||s),l=Fe&&!i&&!c;if(Fe){if(e.key===`ArrowDown`&&l&&T.length>0){e.preventDefault(),_e(e=>(e+1)%T.length);return}if(e.key===`ArrowUp`&&l&&T.length>0){e.preventDefault(),_e(e=>(e+T.length-1)%T.length);return}if((e.key===`Enter`||e.key===`Tab`)&&T.length>0){e.preventDefault();let t=T[ge]??T[0];t&&Le(t);return}if(e.key===`Escape`){e.preventDefault(),de.current=``,he(null),ee(null);return}}if(h){if(e.key===`ArrowUp`&&c&&h.entries.length>0){e.preventDefault();let t=be===null?0:Math.min(be+1,h.entries.length-1);be===null&&Ce(h.currentDraft),xe(t);let n=h.entries[t];Te(n),tt(n);return}if(e.key===`ArrowDown`&&c&&be!==null){if(e.preventDefault(),be===0){Se&&tt(Se),Ae();return}let t=be-1;xe(t);let n=h.entries[t];Te(n),tt(n);return}}if(e.key===`Enter`&&e.metaKey&&!e.shiftKey&&!e.altKey&&!e.ctrlKey&&w){e.preventDefault(),et();return}let u=e.metaKey||e.ctrlKey;De||(Ye===`mod-enter`?u&&e.key===`Enter`:e.key===`Enter`&&!e.shiftKey)&&(e.preventDefault(),$e())},placeholder:i,rows:1,autoFocus:c,"aria-keyshortcuts":w?`Meta+Enter`:void 0,enterKeyHint:`send`,className:I(`w-full resize-none overflow-y-auto bg-transparent px-4 pb-1 pr-14 pt-3 leading-relaxed outline-none placeholder:select-none placeholder:text-subtle-foreground`,pn,De&&`min-h-0 flex-1 px-6 pb-3 pt-8`,De&&o?`pt-3`:null),style:{minHeight:De?`0px`:`${u}px`,height:De?`100%`:void 0,maxHeight:De?`none`:`${rQ}px`}})]}),Fe?(0,z.jsx)(`div`,{className:I(`absolute -left-px -right-px z-20`,De?`bottom-14 px-3`:f===`top`?`bottom-full mb-2`:`top-full mt-2`),children:(0,z.jsx)(QZ,{state:Ie,selectedIndex:ge,onApply:Le})}):null,(0,z.jsx)(BZ,{attachments:k,attachmentProjectId:te,expandedImageIndex:ve,onExpandedImageIndexChange:ye,onRemoveAttachment:N}),j?(0,z.jsx)(`div`,{className:`mx-3 mb-1 mt-1 text-xs text-destructive`,children:j}):null,Ue?(0,z.jsx)(`div`,{className:`mx-3 mb-1 mt-1 rounded-md border border-surface-destructive-border bg-surface-destructive px-2 py-1 text-xs text-destructive`,children:(0,z.jsx)(`span`,{className:`block truncate`,title:Ue,children:Ue})}):null,(0,z.jsxs)(`div`,{className:`flex flex-row items-center gap-3 px-3.5 pt-1.5`,children:[(0,z.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-row items-center gap-1`,"aria-live":`polite`,children:s}),(0,z.jsxs)(`div`,{className:`flex shrink-0 flex-row items-center gap-1`,children:[(0,z.jsx)(it,{type:`button`,size:`icon`,variant:`ghost`,title:`Attach files`,disabled:!M||A,onClick:()=>ce.current?.click(),className:xt,children:A?(0,z.jsx)(F,{name:`Spinner`,className:`size-4 animate-spin`}):(0,z.jsx)(F,{name:`Paperclip`,className:`size-4`})}),g&&!We?(0,z.jsx)(it,{type:`button`,size:`icon`,variant:`ghost`,title:g.isSupported?`Start voice input`:`Voice input is not supported in this browser`,disabled:!Je,onClick:g.start,className:xt,children:(0,z.jsx)(F,{name:`Mic`,className:`size-4`})}):null,qe?(0,z.jsx)(it,{type:`button`,size:`icon`,variant:`secondary`,title:`Stop run`,onClick:C,className:xt,children:(0,z.jsx)(F,{name:`Square`,className:`size-3.5 fill-current [&_*]:stroke-0`})}):g&&Be?(0,z.jsxs)(`div`,{className:`relative inline-flex`,children:[(0,z.jsx)(it,{type:`button`,size:`sm`,variant:`default`,title:`Stop and transcribe recording`,onClick:g.stop,className:I(`rounded-r-none`,Ht),children:(0,z.jsx)(F,{name:`AudioLines`,className:`size-4 animate-pulse`})}),(0,z.jsx)(it,{type:`button`,size:`sm`,variant:`default`,title:`Cancel recording`,onClick:g.cancel,className:St,children:(0,z.jsx)(F,{name:`X`,className:`size-3.5`})})]}):g&&Ve?(0,z.jsxs)(`div`,{className:`relative inline-flex`,children:[(0,z.jsxs)(it,{type:`button`,size:`sm`,variant:`default`,title:`Transcribing voice input...`,disabled:!0,className:I(`rounded-r-none`,Ht),children:[(0,z.jsx)(F,{name:`AudioLines`,className:`size-4`}),(0,z.jsx)(F,{name:`Spinner`,className:`size-4 animate-spin`})]}),(0,z.jsx)(it,{type:`button`,size:`sm`,variant:`default`,title:`Cancel transcription`,onClick:g.cancel,className:St,children:(0,z.jsx)(F,{name:`X`,className:`size-3.5`})})]}):(0,z.jsx)(it,{type:`submit`,size:`sm`,variant:`default`,title:Xe,disabled:!Ge,className:Ht,children:v?(0,z.jsx)(F,{name:`Spinner`,className:`size-4 animate-spin`}):De?(0,z.jsx)(F,{name:`ArrowUp`,className:`size-4`}):(0,z.jsx)(F,{name:`CornerDownLeft`,className:`size-4`})})]})]})]})}var cQ=1e3,lQ=250,uQ=180,dQ=/<!doctype html|<html[\s>]/i;function fQ(e){return e.replace(/\s+/g,` `).trim()}function pQ(e){let t=e.replace(/\s+/g,` `).trim();if(t.length===0)return null;let n=t.search(dQ);return n>=0&&(t=t.slice(0,n).trim()),t.length===0||(t=t.replace(/^HTTP\s+\d{3}:\s*/i,``).trim(),t.length===0)?null:t.length>uQ?`${t.slice(0,uQ-1)}...`:t}function mQ(e){if(e instanceof DOMException)switch(e.name){case`NotAllowedError`:case`SecurityError`:return`Microphone permission denied`;case`NotFoundError`:case`DevicesNotFoundError`:return`No microphone was found`;case`NotReadableError`:case`TrackStartError`:return`Microphone is already in use`;case`AbortError`:return`Voice capture was aborted`;default:return`Failed to start voice recording`}if(e instanceof Error&&e.message.trim().length>0){let t=pQ(e.message);if(t)return t}return`Voice input failed`}function hQ(){if(typeof MediaRecorder>`u`)return null;for(let e of[`audio/webm`,`audio/mp4`,`audio/ogg`])if(MediaRecorder.isTypeSupported(e))return e;return null}function gQ(e,t){let n=t.includes(`ogg`)?`ogg`:t.includes(`mp4`)?`mp4`:`webm`;return new File([e],`recording.${n}`,{type:t})}function _Q(e){let t=(0,R.useRef)(null),n=(0,R.useRef)(null),r=(0,R.useRef)([]),i=(0,R.useRef)(null),a=(0,R.useRef)(void 0),o=(0,R.useRef)(!0),s=(0,R.useRef)(null),[c,l]=(0,R.useState)(`idle`),[u,d]=(0,R.useState)(void 0),[f,p]=(0,R.useState)(!1),m=(0,R.useCallback)(()=>{let e=n.current;e&&(e.getTracks().forEach(e=>e.stop()),n.current=null)},[]);(0,R.useEffect)(()=>{if(typeof window>`u`){p(!1);return}let e=typeof navigator<`u`&&!!navigator.mediaDevices?.getUserMedia,t=window.MediaRecorder!==void 0;p(e&&t)},[]),(0,R.useEffect)(()=>()=>{let e=t.current;if(e&&e.state===`recording`)try{e.stop()}catch{}t.current=null,r.current=[],i.current=null,a.current=void 0,o.current=!0,s.current&&=(s.current.abort(),null),m()},[m]);let h=(0,R.useCallback)(async()=>{if(!f){l(`error`),d(`Voice input is not supported in this browser`);return}if(!(c===`recording`||c===`transcribing`))try{let c=await navigator.mediaDevices.getUserMedia({audio:!0});n.current=c,r.current=[],i.current=Date.now(),a.current=e.getPromptContext?.(),o.current=!0;let u=hQ(),f=u?new MediaRecorder(c,{mimeType:u}):new MediaRecorder(c);t.current=f,f.onstart=()=>{d(void 0),l(`recording`)},f.ondataavailable=e=>{e.data.size>0&&r.current.push(e.data)},f.onerror=()=>{l(`error`),d(`Voice recording failed`)},f.onstop=async()=>{if(m(),!o.current){o.current=!0,r.current=[],a.current=void 0,d(void 0),l(`idle`);return}let t=i.current??Date.now();if(i.current=null,Date.now()-t<cQ){l(`error`),d(`Recording too short (minimum 1 second)`),r.current=[],a.current=void 0;return}let n=r.current;if(r.current=[],n.length===0){l(`error`),d(`No audio was captured`),a.current=void 0;return}let c=f.mimeType||u||`audio/webm`,p=gQ(new Blob(n,{type:c}),c),h=a.current;a.current=void 0,l(`transcribing`);let g=new AbortController;s.current=g;try{let t=fQ(await e.onTranscribe({file:p,promptContext:h,signal:g.signal}));if(t.length===0)throw Error(`Voice transcription returned an empty result.`);e.onTranscript(t),d(void 0),l(`idle`)}catch(e){if(e instanceof DOMException&&e.name===`AbortError`){d(void 0),l(`idle`);return}l(`error`),d(mQ(e))}finally{s.current===g&&(s.current=null)}},f.start(lQ)}catch(e){m(),t.current=null,r.current=[],i.current=null,a.current=void 0,o.current=!0,s.current=null,l(`error`),d(mQ(e))}},[f,e,c,m]),g=(0,R.useCallback)(()=>{if(c!==`recording`)return;let e=t.current;if(!(!e||e.state!==`recording`)){o.current=!0;try{e.stop()}catch(e){l(`error`),d(mQ(e))}}},[c]),_=(0,R.useCallback)(()=>{if(c===`recording`){let e=t.current;if(e&&e.state===`recording`){o.current=!1;try{e.stop()}catch(e){l(`error`),d(mQ(e))}}return}if(c===`transcribing`){let e=s.current;e&&(e.abort(),s.current=null),d(void 0),l(`idle`)}},[c]);return{state:c,statusLabel:(0,R.useMemo)(()=>{switch(c){case`recording`:return`Recording...`;case`transcribing`:return`Transcribing...`;case`error`:return u??`Voice input failed`;case`idle`:return null}return N(c)},[u,c]),errorMessage:u,isSupported:f,isRecording:c===`recording`,isProcessing:c===`transcribing`,isListening:c===`recording`||c===`transcribing`,start:h,stop:g,cancel:_}}async function vQ({file:e,promptContext:t,signal:n}){return(await O(e,t,n)).text}function yQ(e){let t=_Q({onTranscript:(0,R.useCallback)(t=>{e.current?.insertTextAtCursor(t)},[e]),onTranscribe:vQ,getPromptContext:(0,R.useCallback)(()=>e.current?.getTextBeforeCursor(),[e])});return(0,R.useMemo)(()=>({state:t.state,errorMessage:t.state===`error`?t.errorMessage:void 0,isSupported:t.isSupported,start:t.start,stop:t.stop,cancel:t.cancel}),[t.state,t.errorMessage,t.isSupported,t.start,t.stop,t.cancel])}function bQ({mergeBaseBranch:e,mergeBaseBranchOptions:t}){let n=t??[];return!e||n.includes(e)?n:[e,...n]}var xQ=`Checkout new branch`;function SQ({value:e,options:t,loading:n=!1,disabled:r,placeholder:i,onChange:a,onCreate:o,isCreatingNew:s=!1,onOpenChange:c,className:l,variant:u=`default`,muted:d,defaultOpen:f=!1,modal:p=!0,popoverAlign:m=`start`}){let[h,g]=(0,R.useState)(f),[_,v]=(0,R.useState)(``),y=(0,R.useDeferredValue)(_),b=(0,R.useRef)(null),x=y.trim().toLowerCase(),S=(0,R.useMemo)(()=>{let n=x.length===0?t:t.filter(e=>e.toLowerCase().includes(x));if(s||!e)return n;let r=n.indexOf(e);return r<=0?n:[n[r],...n.slice(0,r),...n.slice(r+1)]},[x,t,e,s]),C=e?S.find(t=>t===e)??S[0]:S[0],w=n?`Loading branches...`:i??`Select branch`,T=s?xQ:e??w,E=!!o&&xQ.toLowerCase().includes(x);return(0,R.useEffect)(()=>{if(!h){v(``);return}let e=window.requestAnimationFrame(()=>{b.current?.focus(),b.current?.select()});return()=>{window.cancelAnimationFrame(e)}},[h]),(0,z.jsxs)(gJ,{modal:p,open:h,onOpenChange:e=>{g(e),c?.(e)},children:[(0,z.jsx)(_J,{asChild:!0,disabled:r,children:(0,z.jsxs)(it,{type:`button`,variant:u===`default`?`outline`:`ghost`,size:`sm`,disabled:r,"aria-label":`Branch`,title:s?xQ:e?`Branch: ${e}`:w,className:I(u===`default`&&`h-8 w-full min-w-0 justify-between rounded-md border-border bg-background px-2.5 text-sm font-normal shadow-none hover:bg-state-hover`,u===`minimal`&&`h-5 w-auto min-w-0 justify-between gap-1 rounded-sm px-0 text-xs font-normal shadow-none hover:bg-transparent data-[state=open]:bg-transparent data-[state=open]:hover:bg-transparent`,u===`minimal`&&d&&`text-muted-foreground hover:text-foreground`,u===`option`&&I(`h-8 w-fit max-w-full min-w-0 items-center gap-1 px-1 text-xs leading-tight`,`border-none bg-transparent shadow-none hover:bg-transparent data-[state=open]:bg-transparent`),u===`option`&&d&&`text-muted-foreground hover:text-foreground`,l),role:`combobox`,"aria-expanded":h,children:[u===`option`?(0,z.jsxs)(`span`,{className:VX,children:[s?(0,z.jsx)(F,{name:`Plus`,className:sn}):(0,z.jsx)(F,{name:`GitMerge`,className:sn}),(0,z.jsx)(`span`,{className:I(`truncate`,s&&`text-muted-foreground`),children:T})]}):(0,z.jsx)(`span`,{className:I(`truncate text-left`,s&&`text-muted-foreground`),children:T}),(0,z.jsx)(F,{name:`ChevronDown`,className:I(`shrink-0 text-muted-foreground`,u===`default`&&`size-4`,u===`minimal`&&`size-3`,u===`option`&&`size-3.5 max-md:pointer-coarse:size-5`)})]})}),(0,z.jsxs)(vJ,{align:m,sideOffset:6,collisionPadding:16,mobileTitle:`Branch`,className:`flex flex-col overflow-hidden p-0 md:max-h-[calc(100vh-6rem)] md:w-[18rem] md:min-w-[min(var(--radix-popover-trigger-width),calc(100vw-2rem))] md:max-w-[calc(100vw-2rem)]`,children:[(0,z.jsx)(`div`,{className:`shrink-0 border-b border-border p-1.5`,children:(0,z.jsxs)(`div`,{className:`relative`,children:[(0,z.jsx)(F,{name:`Search`,className:`pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground`}),(0,z.jsx)(hr,{ref:b,value:_,onChange:e=>v(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),C&&(a(C),g(!1)))},placeholder:`Search branches`,className:`h-8 border-0 bg-transparent pl-8 pr-2 text-sm shadow-none focus-visible:ring-0`})]})}),(0,z.jsxs)(`div`,{className:`min-h-0 max-h-[60vh] overflow-y-auto overscroll-contain p-1 md:max-h-80`,onWheel:e=>{e.stopPropagation()},children:[E&&o?(0,z.jsxs)(`button`,{type:`button`,className:`flex w-full min-w-0 items-center gap-2 rounded-sm py-1.5 pl-3 pr-2 text-left text-sm outline-none transition-colors hover:bg-state-hover hover:text-foreground focus-visible:bg-state-hover focus-visible:text-foreground`,onClick:()=>{o(),g(!1)},children:[(0,z.jsx)(F,{name:`Plus`,className:I(`text-muted-foreground`,sn)}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:xQ}),(0,z.jsx)(F,{name:`Check`,className:I(s?`opacity-100`:`opacity-0`,Vt)})]}):null,S.length>0?S.map(t=>(0,z.jsxs)(`button`,{type:`button`,className:`flex w-full min-w-0 items-center gap-2 rounded-sm py-1.5 pl-3 pr-2 text-left text-sm outline-none transition-colors hover:bg-state-hover hover:text-foreground focus-visible:bg-state-hover focus-visible:text-foreground`,onClick:()=>{a(t),g(!1)},children:[(0,z.jsx)(F,{name:`GitMerge`,className:I(`text-muted-foreground`,sn)}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:t,children:t}),(0,z.jsx)(F,{name:`Check`,className:I(!s&&t===e?`opacity-100`:`opacity-0`,Vt)})]},t)):E&&o?null:(0,z.jsx)(`p`,{className:`px-2 py-6 text-center text-sm text-muted-foreground`,children:n?`Loading branches...`:`No branches found.`})]})]})]})}function CQ(e,t,n){let r=e.map(e=>{let r=e.status===`connected`,i=je(t,e.id)!==void 0;return{host:e,isLocal:n(e.id),hasSource:i,isConnected:r}});return r.sort((e,t)=>{let n=(e.isConnected?2:0)+ +!!e.hasSource;return(t.isConnected?2:0)+ +!!t.hasSource-n}),r}function wQ({value:e,onChange:t,sources:n,hosts:r,isLocalHost:i,reuseDisabled:a,muted:o,defaultOpen:s,modal:c}){let l=(0,R.useMemo)(()=>CQ(r,n,i),[r,n,i]),u=(0,R.useMemo)(()=>QY(e),[e]),d=(0,R.useMemo)(()=>{if(!u)return{modeLabel:`Environment`,icon:`Laptop`};if(u.type===`reuse`)return{modeLabel:`Reuse worktree`,icon:mc(`managed-worktree`)};let e=r.find(e=>e.id===u.hostId),t=i(u.hostId),n=u.mode===`worktree`?`New worktree`:t?`Work locally`:`Work remotely`,a=mc(u.mode===`worktree`?`managed-worktree`:`other`);return t?{modeLabel:n,icon:a}:{modeLabel:n,hostLabel:e?.name??`Unknown`,icon:a,hostConnected:e?.status===`connected`}},[u,r,i]);return(0,z.jsxs)(un,{defaultOpen:s,modal:c,children:[(0,z.jsx)(tn,{asChild:!0,children:(0,z.jsxs)(it,{type:`button`,variant:`ghost`,size:`sm`,"aria-label":`Environment`,title:`Environment: ${d.modeLabel}${d.hostLabel?` · ${d.hostLabel}`:``}`,className:I(zX,BX,o&&`text-muted-foreground hover:text-foreground`),children:[(0,z.jsxs)(`span`,{className:VX,children:[(0,z.jsx)(F,{name:d.icon,className:sn}),(0,z.jsxs)(`span`,{className:`truncate`,children:[d.modeLabel,d.hostLabel?(0,z.jsxs)(`span`,{className:`text-muted-foreground`,children:[` `,`· `,d.hostLabel]}):null]}),d.hostConnected===void 0?null:(0,z.jsx)(ZX,{connected:d.hostConnected})]}),(0,z.jsx)(F,{name:`ChevronDown`,className:I(`text-muted-foreground`,ln)})]})}),(0,z.jsxs)(Sn,{align:`start`,className:`min-w-52 max-w-80 divide-y [&>*+*]:pt-2 [&>*:not(:last-child)]:pb-2`,mobileTitle:`Environment`,children:[l.map(n=>(0,z.jsx)(EQ,{section:n,enabled:n.isConnected&&n.hasSource,value:e,onChange:t},n.host.id)),(0,z.jsx)(TQ,{isReuseSelected:u?.type===`reuse`,disabled:!!a,onChange:t})]})]})}function TQ({isReuseSelected:e,disabled:t,onChange:n}){return(0,z.jsxs)(kn,{children:[(0,z.jsx)(gn,{children:`Reuse`}),(0,z.jsxs)($t,{disabled:t,onSelect:()=>{t||n(YY)},className:`flex items-center justify-between gap-3`,children:[(0,z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,z.jsx)(F,{name:mc(`managed-worktree`),className:I(`text-muted-foreground`,sn)}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,z.jsx)(`span`,{className:`truncate text-xs`,children:`Existing worktree`}),t?(0,z.jsx)(`span`,{className:`text-xs`,children:`No worktrees in this project yet`}):null]})]}),(0,z.jsx)(F,{name:`Check`,className:I(Ln,e?`opacity-100`:`opacity-0`)})]})]})}function EQ({section:e,enabled:t,value:n,onChange:r}){let i=XY(e.host.id,`local`),a=XY(e.host.id,`worktree`);return(0,z.jsxs)(kn,{children:[(0,z.jsxs)(gn,{className:`flex items-center gap-1.5`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:e.host.name}),e.isLocal?(0,z.jsx)(Jr,{}):null,e.isConnected?(0,z.jsx)(YX,{}):null]}),t?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(DQ,{label:e.isLocal?`Work locally`:`Work remotely`,icon:mc(`other`),itemValue:i,selectedValue:n,onSelect:r}),(0,z.jsx)(DQ,{label:`New worktree`,icon:mc(`managed-worktree`),itemValue:a,selectedValue:n,onSelect:r})]}):(0,z.jsx)($t,{disabled:!0,className:`text-xs text-muted-foreground`,children:e.isConnected?`Host not configured for project`:`Host is offline`})]})}function DQ({label:e,icon:t,itemValue:n,selectedValue:r,onSelect:i,disabled:a}){return(0,z.jsxs)($t,{disabled:a,onSelect:()=>i(n),className:`flex items-center justify-between gap-3`,children:[(0,z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,z.jsx)(F,{name:t,className:I(`text-muted-foreground`,sn)}),(0,z.jsx)(`span`,{className:`truncate text-xs`,children:e})]}),(0,z.jsx)(F,{name:`Check`,className:I(Ln,n===r?`opacity-100`:`opacity-0`)})]})}function OQ({value:e,options:t,onChange:n,supported:r,className:i,muted:a=!0,defaultOpen:o,modal:s}){return!r||t.length<=1?null:(0,z.jsx)(KX,{label:`Permission mode`,value:e??t[0]?.value??`full`,options:t,onChange:n,className:i,contentClassName:`max-w-72`,muted:a,defaultOpen:o,modal:s,align:`end`})}var kQ=2;function AQ({options:e,value:t,onChange:n,muted:r,defaultOpen:i,modal:a}){let o=mc(`managed-worktree`),s=(0,R.useMemo)(()=>e.find(e=>e.environmentId===t)??null,[e,t])?.branchName??`Pick a worktree`;return(0,z.jsxs)(un,{defaultOpen:i,modal:a,children:[(0,z.jsx)(tn,{asChild:!0,children:(0,z.jsxs)(it,{type:`button`,variant:`ghost`,size:`sm`,"aria-label":`Worktree`,title:`Worktree: ${s}`,className:I(zX,BX,r&&`text-muted-foreground hover:text-foreground`),children:[(0,z.jsxs)(`span`,{className:VX,children:[(0,z.jsx)(F,{name:o,className:sn}),(0,z.jsx)(`span`,{className:`truncate`,children:s})]}),(0,z.jsx)(F,{name:`ChevronDown`,className:I(`text-muted-foreground`,ln)})]})}),(0,z.jsxs)(Sn,{align:`start`,className:`min-w-52 max-w-80`,mobileTitle:`Worktree`,children:[(0,z.jsx)(gn,{children:`Reuse existing worktree`}),e.length===0?(0,z.jsx)(`div`,{className:`px-2 py-2 text-xs text-muted-foreground`,children:`No worktrees in this project yet.`}):e.map(e=>(0,z.jsx)(jQ,{option:e,isSelected:e.environmentId===t,onSelect:n},e.environmentId))]})]})}function jQ({option:e,isSelected:t,onSelect:n}){let r=e.threads.slice(0,kQ),i=e.threads.length-r.length;return(0,z.jsxs)($t,{onSelect:()=>n(e.environmentId),className:`flex flex-col items-stretch gap-1 py-2`,children:[(0,z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,z.jsx)(F,{name:mc(`managed-worktree`),className:I(`shrink-0 text-muted-foreground`,sn)}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-xs font-medium`,children:e.branchName??`Worktree`}),(0,z.jsx)(F,{name:`Check`,className:I(Ln,t?`opacity-100`:`opacity-0`)})]}),r.length>0?(0,z.jsxs)(`span`,{className:`flex flex-col gap-0.5 pl-6 text-xs text-muted-foreground`,children:[r.map(e=>(0,z.jsx)(`span`,{className:`truncate`,children:e.title},e.id)),i>0?(0,z.jsxs)(`span`,{className:`text-muted-foreground`,children:[`+`,i,` more`]}):null]}):null]})}var MQ=(0,R.memo)(function({id:e,value:t,onChange:n,onSubmit:r,isSubmitting:i,disabled:a,zenModeStorageKey:o,history:s,mentions:c,attachments:l,execution:u,environment:d,branch:f,worktree:p,permission:m,header:h}){let g=(0,R.useRef)(null),_=yQ(g),v=QY(d.value),y=v?.type===`host`,b=v?.type===`reuse`;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(sQ,{id:e,promptBoxRef:g,value:t,onChange:n,onSubmit:r,autoFocus:!0,history:s,mentions:c,mentionMenuPlacement:`bottom`,attachments:l,voice:_,submission:{isSubmitting:i,disabled:a,title:i?`Submitting...`:`Submit (Enter)`},zenMode:{layout:`project-main`,storageKey:o},header:h,footerStart:(0,z.jsx)(TZ,{...u})}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-3.5`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1`,children:[(0,z.jsx)(wQ,{value:d.value,onChange:d.onChange,sources:d.sources,hosts:d.hosts,isLocalHost:d.isLocalHost,reuseDisabled:d.reuseDisabled,muted:!0}),y?(0,z.jsx)(SQ,{variant:`option`,muted:!0,value:f.value,isCreatingNew:f.isNew,options:f.options,loading:f.loading,placeholder:f.placeholder,onChange:f.onChange,onOpenChange:f.onOpenChange,onCreate:f.onCreate}):null,b?(0,z.jsx)(AQ,{muted:!0,options:p.options,value:p.value,onChange:p.onChange}):null]}),(0,z.jsx)(OQ,{value:m.value,options:m.options,onChange:m.onChange,supported:m.supported})]})]})});function NQ({environment:e,branch:t,...n}){let{isLocalHost:r}=Ur(),{data:i=[]}=bn(),a=QY(e.value),o=a?.type===`host`&&a.mode===`local`,s=t.value??t.current,c=o&&s!==null,l=(0,R.useMemo)(()=>({...e,hosts:i,isLocalHost:r}),[e,i,r]),u=(0,R.useMemo)(()=>({value:s,isNew:o&&t.isNew,options:t.options,loading:t.loading,placeholder:t.placeholder,onChange:t.onChange,onOpenChange:t.onOpenChange,...c?{onCreate:t.onCreate}:{}}),[o,t.isNew,t.loading,t.onChange,t.onCreate,t.onOpenChange,t.options,t.placeholder,s,c]);return(0,z.jsx)(MQ,{...n,environment:l,branch:u})}var PQ=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,FQ=(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=PQ[n[e]&63];return t};function IQ(e){let t=[];for(let n of e){let e=LZ(n.input);if(jZ(e))continue;let r=t[t.length-1];r&&PZ(r,e)||t.push(e)}return t}function LQ(e,t){return h({entries:[t,...e??[]],limit:50})}function RQ(e){let t=0,n=0,r=0,i=[],a=[],o=[];for(let s of e)switch(s.type){case`text`:break;case`image`:t+=1,i.push(s.url);break;case`localImage`:n+=1,a.push(s.path);break;case`localFile`:r+=1,o.push(s.path);break}if(!(t===0&&n===0&&r===0))return{webImages:t,localImages:n,localFiles:r,...i.length>0?{imageUrls:i}:{},...a.length>0?{localImagePaths:a}:{},...o.length>0?{localFilePaths:o}:{}}}function zQ(e){return{id:`optimistic-prompt-history:${FQ()}`,createdAt:e.createdAt,input:e.input}}function BQ(e){return{id:`queued-message:${e.id}`,createdAt:e.createdAt,input:e.content}}function VQ(e,t,n){e.setQueryData(j(t),e=>LQ(e,n))}function HQ(e,t,n){e.setQueryData(Fe(t),e=>LQ(e,n))}function UQ(e){return ai(e,{queryKey:A()})}function WQ(e,t){for(let{queryKey:n,data:r}of t)e.setQueryData(n,r)}function GQ({queryClient:e,requestedAt:t,threadId:n}){ri(e,n,e=>({...e,stopRequestedAt:e.stopRequestedAt??t,updatedAt:Math.max(e.updatedAt,t)})),ii(e,{queryKey:A(),mapper:e=>e.map(e=>e.id===n?{...e,stopRequestedAt:e.stopRequestedAt??t,updatedAt:Math.max(e.updatedAt,t)}:e)})}function KQ(){let e=c();return ot({meta:{errorMessage:`Failed to create thread.`},mutationFn:e=>E(e),onMutate:async()=>{await e.cancelQueries({queryKey:A()})},onSuccess:(t,n)=>{e.setQueryData(be(t.id),t),Qr(e,t),VQ(e,n.projectId,zQ({createdAt:t.createdAt,input:n.input})),di({queryClient:e,projectId:n.projectId}),li({queryClient:e})}})}function qQ({mode:e,threadStatus:t}){return e===`steer`||e===`auto`&&t===`active`?`steer`:`message`}function JQ({createdAt:e,input:t,mode:n,threadId:r,threadStatus:i}){let a=`optimistic-user-${FQ()}`,o=t.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
1358
|
-
|
|
1359
|
-
`),s=RQ(t);return{id:a,kind:`conversation`,role:`user`,threadId:r,turnId:null,sourceSeqStart:0,sourceSeqEnd:0,startedAt:e,createdAt:e,text:o,attachments:s?{webImages:s.webImages,localImages:s.localImages,localFiles:s.localFiles,imageUrls:s.imageUrls??[],localImagePaths:s.localImagePaths??[],localFilePaths:s.localFilePaths??[]}:null,initiator:`user`,senderThreadId:null,turnRequest:{kind:qQ({mode:n,threadStatus:i}),status:`pending`}}}function YQ(){let e=c();return ot({meta:{errorMessage:`Failed to send message.`,showErrorToast:!1},mutationFn:({id:e,input:t,model:n,serviceTier:r,reasoningLevel:i,permissionMode:a,mode:o})=>ze(e,{input:t,model:n,serviceTier:r,reasoningLevel:i,permissionMode:a,mode:o}),onMutate:async t=>{await Promise.all([e.cancelQueries({queryKey:be(t.id)}),e.cancelQueries({queryKey:d(t.id)})]);let n=e.getQueryData(be(t.id)),r=Date.now();ri(e,t.id,e=>({...e,status:`active`,updatedAt:Math.max(e.updatedAt,r),runtime:{...e.runtime,displayStatus:e.runtime.displayStatus===`host-reconnecting`||e.runtime.displayStatus===`waiting-for-host`?e.runtime.displayStatus:`active`}}));let i=JQ({createdAt:r,input:t.input,mode:t.mode,threadId:t.id,threadStatus:n?.status??null});return pi(e,t.id,i),{previousThread:n,optimisticCreatedAt:r,optimisticRowId:i.id}},onError:(t,n,r)=>{r?.optimisticRowId&&fi(e,n.id,r.optimisticRowId),r?.previousThread&&e.setQueryData(be(n.id),r.previousThread)},onSuccess:(t,n,r)=>{HQ(e,n.id,zQ({createdAt:r?.optimisticCreatedAt??Date.now(),input:n.input})),(qt.getConnectionState()===`connected`?gi:ci)({queryClient:e,threadId:n.id})}})}function XQ(){let e=c();return ot({meta:{errorMessage:`Failed to queue message.`,showErrorToast:!1},mutationFn:({id:e,input:t,model:n,serviceTier:r,reasoningLevel:i,permissionMode:a})=>ne(e,{input:t,model:n,serviceTier:r,reasoningLevel:i,permissionMode:a}),onSuccess:(t,n)=>{HQ(e,n.id,BQ(t)),hi({queryClient:e,threadId:n.id})}})}function ZQ(){let e=c();return ot({meta:{errorMessage:`Failed to send queued message.`,showErrorToast:!1},mutationFn:({id:e,mode:t,queuedMessageId:n})=>i(e,n,{mode:t}),onSuccess:(t,n)=>{mi({queryClient:e,threadId:n.id})}})}function QQ(){let e=c();return ot({meta:{errorMessage:`Failed to delete queued message.`,showErrorToast:!1},mutationFn:({id:e,queuedMessageId:t})=>pe(e,t),onSuccess:(t,n)=>{hi({queryClient:e,threadId:n.id})}})}function $Q(){let e=c();return ot({meta:{errorMessage:`Failed to stop thread.`},mutationFn:e=>D(e),onMutate:async t=>{await Promise.all([e.cancelQueries({queryKey:be(t)}),e.cancelQueries({queryKey:A()})]);let n=e.getQueryData(be(t)),r=UQ(e);return GQ({queryClient:e,requestedAt:Date.now(),threadId:t}),{previousThread:n,previousThreadLists:r}},onError:(t,n,r)=>{r&&(e.setQueryData(be(n),r.previousThread),WQ(e,r.previousThreadLists))},onSettled:(t,n,r)=>{ui({queryClient:e,threadId:r})}})}var e$=`bb.promptbox.contents`,t$=`3`,n$=AZ(),r$=new Map,i$=new Map,a$=!1;function o$(e){return encodeURIComponent(e.trim())}function s$(e){if(!e||typeof window>`u`)return n$;let t=window.localStorage.getItem(e),n=r$.get(e);if(n&&n.rawValue===t)return n.draft;let r=MZ(t);return r$.set(e,{rawValue:t,draft:r}),r}function c$(e){let t=i$.get(e);if(!(!t||t.size===0))for(let e of t)e()}function l$(){a$||typeof window>`u`||(a$=!0,window.addEventListener(`storage`,e=>{e.key&&(r$.delete(e.key),c$(e.key))}))}function u$(e,t){if(!e)return()=>{};l$();let n=i$.get(e);return n||(n=new Set,i$.set(e,n)),n.add(t),()=>{let n=i$.get(e);n&&(n.delete(t),n.size===0&&i$.delete(e))}}function d$(e,t){if(!e||typeof window>`u`)return;let n=NZ(t);if(!n){window.localStorage.removeItem(e),r$.set(e,{rawValue:null,draft:n$}),c$(e);return}window.localStorage.setItem(e,n),r$.set(e,{rawValue:n,draft:t}),c$(e)}function f$(e,t){return!e||typeof window>`u`||jZ(t)||!jZ(s$(e))?!1:(d$(e,t),!0)}function p$({projectId:e,threadId:t}){if(!e)return null;let n=o$(e);return t?`${e$}-${n}-${o$(t)}-${t$}`:`${e$}-${n}-draft-${t$}`}function m$(e){let t=(0,R.useMemo)(()=>p$({projectId:e.projectId,threadId:e.threadId}),[e.projectId,e.threadId]),n=(0,R.useSyncExternalStore)((0,R.useCallback)(e=>u$(t,e),[t]),(0,R.useCallback)(()=>s$(t),[t]),()=>n$),r=(0,R.useCallback)(e=>{d$(t,e)},[t]),i=(0,R.useCallback)(()=>s$(t),[t]),a=(0,R.useCallback)(e=>{d$(t,{...s$(t),text:e})},[t]),o=(0,R.useCallback)(e=>{let n=e.replace(/\s+/g,` `).trim();if(n.length===0)return;let r=s$(t),i=r.text.trimEnd(),a=i.length===0?n:`${i} ${n}`;d$(t,{...r,text:a})},[t]),s=(0,R.useCallback)(e=>{let n=s$(t);n.attachments.some(t=>t.path===e.path)||d$(t,{...n,attachments:[...n.attachments,e]})},[t]),c=(0,R.useCallback)(e=>{let n=s$(t),r=n.attachments.filter(t=>t.path!==e);r.length!==n.attachments.length&&d$(t,{...n,attachments:r})},[t]),l=(0,R.useCallback)(()=>{r(n$)},[r]),u=(0,R.useCallback)(e=>PZ(s$(t),e)?(r(n$),!0):!1,[r,t]),d=(0,R.useCallback)(e=>{d$(t,{...s$(t),attachments:e})},[t]),f=(0,R.useCallback)(e=>{f$(t,e)},[t]);return(0,R.useMemo)(()=>({storageKey:t,getCurrent:i,value:n.text,text:n.text,attachments:n.attachments,setDraft:r,setValue:a,setText:a,setAttachments:d,appendText:o,addAttachment:s,removeAttachment:c,clear:l,clearIfCurrentMatches:u,restoreIfEmpty:f}),[s,o,l,u,n.attachments,n.text,i,c,f,d,r,a,t])}function h$(e){return e.endsWith(`/`)?e:`${e}/`}function g$(e){let t=e.entryKind===`directory`?h$(e.path):e.path;return e.source===`thread-storage`?`thread-storage:${t}`:t}function _$(e){return e.paths.map(e=>({kind:`path`,source:e.source,entryKind:e.entryKind,path:e.path,name:e.name,replacement:g$(e)}))}var v$={216:`O`,223:`s`,248:`o`,273:`d`,295:`h`,305:`i`,320:`l`,322:`l`,359:`t`,383:`s`,384:`b`,385:`B`,387:`b`,390:`O`,392:`c`,393:`D`,394:`D`,396:`d`,398:`E`,400:`E`,402:`f`,403:`G`,407:`I`,409:`k`,410:`l`,412:`M`,413:`N`,414:`n`,415:`O`,421:`p`,427:`t`,429:`t`,430:`T`,434:`V`,436:`y`,438:`z`,477:`e`,485:`g`,544:`N`,545:`d`,549:`z`,564:`l`,565:`n`,566:`t`,567:`j`,570:`A`,571:`C`,572:`c`,573:`L`,574:`T`,575:`s`,576:`z`,579:`B`,580:`U`,581:`V`,582:`E`,583:`e`,584:`J`,585:`j`,586:`Q`,587:`q`,588:`R`,589:`r`,590:`Y`,591:`y`,592:`a`,593:`a`,595:`b`,596:`o`,597:`c`,598:`d`,599:`d`,600:`e`,603:`e`,604:`e`,605:`e`,606:`e`,607:`j`,608:`g`,609:`g`,610:`G`,613:`h`,614:`h`,616:`i`,618:`I`,619:`l`,620:`l`,621:`l`,623:`m`,624:`m`,625:`m`,626:`n`,627:`n`,628:`N`,629:`o`,633:`r`,634:`r`,635:`r`,636:`r`,637:`r`,638:`r`,639:`r`,640:`R`,641:`R`,642:`s`,647:`t`,648:`t`,649:`u`,651:`v`,652:`v`,653:`w`,654:`y`,655:`Y`,656:`z`,657:`z`,663:`c`,665:`B`,666:`e`,667:`G`,668:`H`,669:`j`,670:`k`,671:`L`,672:`q`,686:`h`,867:`a`,868:`e`,869:`i`,870:`o`,871:`u`,872:`c`,873:`d`,874:`h`,875:`m`,876:`r`,877:`t`,878:`v`,879:`x`,7424:`A`,7427:`B`,7428:`C`,7429:`D`,7431:`E`,7432:`e`,7433:`i`,7434:`J`,7435:`K`,7436:`L`,7437:`M`,7438:`N`,7439:`O`,7440:`O`,7441:`o`,7442:`o`,7443:`o`,7446:`o`,7447:`o`,7448:`P`,7449:`R`,7450:`R`,7451:`T`,7452:`U`,7453:`u`,7454:`u`,7455:`m`,7456:`V`,7457:`W`,7458:`Z`,7522:`i`,7523:`r`,7524:`u`,7525:`v`,7834:`a`,7835:`s`,8305:`i`,8341:`h`,8342:`k`,8343:`l`,8344:`m`,8345:`n`,8346:`p`,8347:`s`,8348:`t`,8580:`c`};for(let e=`̀`.codePointAt(0);e<=`ͯ`.codePointAt(0);++e){let t=String.fromCodePoint(e);for(let e of`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`){let n=(e+t).normalize().codePointAt(0);n>126&&(v$[n]=e)}}var y$={a:[7844,7863],e:[7870,7879],o:[7888,7907],u:[7912,7921]};for(let e of Object.keys(y$)){let t=e.toUpperCase();for(let n=y$[e][0];n<=y$[e][1];++n)v$[n]=n%2==0?t:e}function b$(e){if(e<192||e>8580)return e;let t=v$[e];return t===void 0?e:t.codePointAt(0)}function x$(e){return e}function S$(e){return e}function C$(e,t){return e>t?e:t}var w$=e=>e.split(``).map(e=>e.codePointAt(0)),T$=new Set(` \f
|
|
1360
|
-
\r \v\xA0 \u2028\u2029 `.split(``).map(e=>e.codePointAt(0)));for(let e=` `.codePointAt(0);e<=` `.codePointAt(0);e++)T$.add(e);var E$=``.codePointAt(0),D$=`A`.codePointAt(0),O$=`Z`.codePointAt(0),k$=`a`.codePointAt(0),A$=`z`.codePointAt(0),j$=`0`.codePointAt(0),M$=`9`.codePointAt(0);function N$(e,t,n){return n?e:t-e-1}var P$=16,F$=-3,I$=-1,L$=P$/2,R$=P$/2,z$=L$+I$,B$=-(F$+I$),V$=2;function H$(e){return e?new Set:null}function U$(e,t,n){if(t!==null&&t.i16.length>e+n){let r=t.i16.subarray(e,e+n);return[e+n,r]}return[e,new Int16Array(n)]}function W$(e,t,n){if(t!==null&&t.i32.length>e+n){let r=t.i32.subarray(e,e+n);return[e+n,r]}return[e,new Int32Array(n)]}function G$(e){return e>=k$&&e<=A$?1:e>=D$&&e<=O$?2:e>=j$&&e<=M$?4:0}function K$(e){let t=String.fromCodePoint(e);return t===t.toUpperCase()?t===t.toLowerCase()?t.match(/\p{Number}/gu)===null?t.match(/\p{Letter}/gu)===null?0:3:4:2:1}function q$(e){return e<=E$?G$(e):K$(e)}function J$(e,t){return e===0&&t!==0?L$:e===1&&t===2||e!==4&&t===4?z$:t===0?R$:0}function Y$(e,t){return t===0?L$:J$(q$(e[t-1]),q$(e[t]))}function X$(e,t,n,r){let i=e.slice(r),a=i.indexOf(n);if(a===0)return r;if(!t&&n>=k$&&n<=A$){a>0&&(i=i.slice(0,a));let e=i.indexOf(n-32);e>=0&&(a=e)}return a<0?-1:r+a}function Z$(e){for(let t of e)if(t>=128)return!1;return!0}function Q$(e,t,n){if(!Z$(e))return 0;if(!Z$(t))return-1;let r=0,i=0;for(let a=0;a<t.length;a++){if(i=X$(e,n,t[a],i),i<0)return-1;a===0&&i>0&&(r=i-1),i++}return r}var $$=(e,t,n,r,i,a,o)=>{let s=i.length;if(s===0)return[{start:0,end:0,score:0},H$(a)];let c=r.length;if(o!==null&&c*s>o.i16.length)return t1(e,t,n,r,i,a);let l=Q$(r,i,e);if(l<0)return[{start:-1,end:-1,score:0},null];let u=0,d=0,f=null,p=null,m=null,h=null;[u,f]=U$(u,o,c),[u,p]=U$(u,o,c),[u,m]=U$(u,o,c),[d,h]=W$(d,o,s);let[,g]=W$(d,o,c);for(let e=0;e<g.length;e++)g[e]=r[e];let _=x$(0),v=0,y=0,b=0,x=i[0],S=i[0],C=x$(0),w=0,T=!1,E=g.subarray(l),D=f.subarray(l).subarray(0,E.length),O=p.subarray(l).subarray(0,E.length),ee=m.subarray(l).subarray(0,E.length);for(let[r,a]of E.entries()){let o=null;a<=E$?(o=G$(a),!e&&o===2&&(a+=32)):(o=K$(a),!e&&o===2&&(a=String.fromCodePoint(a).toLowerCase().codePointAt(0)),t&&(a=b$(a))),E[r]=a;let c=J$(w,o);if(ee[r]=c,w=o,a===S&&(y<s&&(h[y]=S$(l+r),y++,S=i[Math.min(y,s-1)]),b=l+r),a===x){let e=P$+c*V$;if(D[r]=e,O[r]=1,s===1&&(n&&e>_||!n&&e>=_)&&(_=e,v=l+r,n&&c===L$))break;T=!1}else T?D[r]=C$(C+I$,0):D[r]=C$(C+F$,0),O[r]=0,T=!0;C=D[r]}if(y!==s)return[{start:-1,end:-1,score:0},null];if(s===1){let e={start:v,end:v+1,score:_};if(!a)return[e,null];let t=new Set;return t.add(v),[e,t]}let k=h[0],A=b-k+1,j=null;[u,j]=U$(u,o,A*s);{let e=f.subarray(k,b+1);for(let[t,n]of e.entries())j[t]=n}let[,M]=U$(u,o,A*s);{let e=p.subarray(k,b+1);for(let[t,n]of e.entries())M[t]=n}let N=h.subarray(1),te=i.slice(1).slice(0,N.length);for(let[e,t]of N.entries()){let r=!1,i=te[e],a=e+1,o=a*A,c=g.subarray(t,b+1),l=m.subarray(t).subarray(0,c.length),u=M.subarray(o+t-k).subarray(0,c.length),d=M.subarray(o+t-k-1-A).subarray(0,c.length),f=j.subarray(o+t-k).subarray(0,c.length),p=j.subarray(o+t-k-1-A).subarray(0,c.length),h=j.subarray(o+t-k-1).subarray(0,c.length);h[0]=0;for(let[e,o]of c.entries()){let c=e+t,g=0,y=0,b=0;if(y=r?h[e]+I$:h[e]+F$,i===o){g=p[e]+P$;let t=l[e];b=d[e]+1,t===L$?b=1:b>1&&(t=C$(t,C$(B$,m[c-b+1]))),g+t<y?(g+=l[e],b=0):g+=t}u[e]=b,r=g<y;let x=C$(C$(g,y),0);a===s-1&&(n&&x>_||!n&&x>=_)&&(_=x,v=c),f[e]=x}}let ne=H$(a),re=k;if(a&&ne!==null){let e=s-1;re=v;let t=!0;for(;;){let n=e*A,r=re-k,i=j[n+r],a=0,o=0;if(e>0&&re>=h[e]&&(a=j[n-A+r-1]),re>h[e]&&(o=j[n+r-1]),i>a&&(i>o||i===o&&t)){if(ne.add(re),e===0)break;e--}t=M[n+r]>1||n+A+r+1<M.length&&M[n+A+r+1]>0,re--}}return[{start:re,end:v+1,score:_},ne]};function e1(e,t,n,r,i,a,o){let s=0,c=0,l=!1,u=0,d=x$(0),f=H$(o),p=0;i>0&&(p=q$(n[i-1]));for(let m=i;m<a;m++){let i=n[m],a=q$(i);if(e||(i>=D$&&i<=O$?i+=32:i>E$&&(i=String.fromCodePoint(i).toLowerCase().codePointAt(0))),t&&(i=b$(i)),i===r[s]){o&&f!==null&&f.add(m),c+=P$;let e=J$(p,a);u===0?d=e:(e===L$&&(d=e),e=C$(C$(e,d),B$)),s===0?c+=e*V$:c+=e,l=!1,u++,s++}else l?c+=I$:c+=F$,l=!0,u=0,d=0;p=a}return[c,f]}var t1=(e,t,n,r,i,a,o)=>{if(i.length===0)return[{start:0,end:0,score:0},null];if(Q$(r,i,e)<0)return[{start:-1,end:-1,score:0},null];let s=0,c=-1,l=-1,u=r.length,d=i.length;for(let a=0;a<u;a++){let o=r[N$(a,u,n)];e||(o>=D$&&o<=O$?o+=32:o>E$&&(o=String.fromCodePoint(o).toLowerCase().codePointAt(0))),t&&(o=b$(o));let f=i[N$(s,d,n)];if(o===f&&(c<0&&(c=a),s++,s===d)){l=a+1;break}}if(c>=0&&l>=0){s--;for(let t=l-1;t>=c;t--){let a=r[N$(t,u,n)];e||(a>=D$&&a<=O$?a+=32:a>E$&&(a=String.fromCodePoint(a).toLowerCase().codePointAt(0)));let o=i[N$(s,d,n)];if(a===o&&(s--,s<0)){c=t;break}}if(!n){let e=c;c=u-l,l=u-e}let[o,f]=e1(e,t,r,i,c,l,a);return[{start:c,end:l,score:o},f]}return[{start:-1,end:-1,score:0},null]},n1=(e,t,n,r,i,a,o)=>{if(i.length===0)return[{start:0,end:0,score:0},null];let s=r.length,c=i.length;if(s<c||Q$(r,i,e)<0)return[{start:-1,end:-1,score:0},null];let l=0,u=-1,d=x$(0),f=x$(-1);for(let a=0;a<s;a++){let o=N$(a,s,n),p=r[o];e||(p>=D$&&p<=O$?p+=32:p>E$&&(p=String.fromCodePoint(p).toLowerCase().codePointAt(0))),t&&(p=b$(p));let m=N$(l,c,n);if(i[m]===p){if(m===0&&(d=Y$(r,o)),l++,l===c){if(d>f&&(u=a,f=d),d===L$)break;a-=l-1,l=0,d=0}}else a-=l,l=0,d=0}if(u>=0){let a=0,o=0;n?(a=u-c+1,o=u+1):(a=s-(u+1),o=s-(u-c+1));let[l]=e1(e,t,r,i,a,o,!1);return[{start:a,end:o,score:l},null]}return[{start:-1,end:-1,score:0},null]},r1=100*1024,i1=2048;function a1(e,t){return{i16:new Int16Array(e),i32:new Int32Array(t)}}var o1=a1(r1,i1),s1=(e,t,n)=>{let r=!1;switch(t){case`smart-case`:e.toLowerCase()!==e&&(r=!0);break;case`case-sensitive`:r=!0;break;case`case-insensitive`:e=e.toLowerCase(),r=!1;break}let i=w$(e);return n&&(i=i.map(b$)),{queryRunes:i,caseSensitive:r}};function c1(e,t){let n=Object.keys(e).map(e=>parseInt(e,10)).sort((e,t)=>t-e),r=[];for(let i of n)if(r=r.concat(e[i]),r.length>=t)break;return r}function l1(e,t,n){return r=>{let i=this.runesList[r];if(t.length>i.length)return;let[a,o]=this.algoFn(n,this.opts.normalize,this.opts.forward,i,t,!0,o1);if(a.start===-1)return;if(this.opts.fuzzy===!1){o=new Set;for(let e=a.start;e<a.end;++e)o.add(e)}let s=this.opts.sort?a.score:0;e[s]===void 0&&(e[s]=[]),e[s].push({item:this.items[r],...a,positions:o??new Set})}}function u1(e){let{queryRunes:t,caseSensitive:n}=s1(e,this.opts.casing,this.opts.normalize),r={},i=l1.bind(this)(r,t,n);for(let e=0,t=this.runesList.length;e<t;++e)i(e);return c1(r,this.opts.limit)}var d1={limit:1/0,selector:e=>e,casing:`smart-case`,normalize:!0,fuzzy:`v2`,tiebreakers:[],sort:!0,forward:!0},f1=class{constructor(e,...t){switch(this.opts={...d1,...t[0]},this.items=e,this.runesList=e.map(e=>w$(this.opts.selector(e).normalize())),this.algoFn=n1,this.opts.fuzzy){case`v2`:this.algoFn=$$;break;case`v1`:this.algoFn=t1;break}}},p1={...d1,match:u1},m1=class extends f1{constructor(e,...t){super(e,...t),this.opts={...p1,...t[0]}}find(e){return e.length===0||this.items.length===0?this.items.slice(0,this.opts.limit).map(h1):(e=e.normalize(),g1(this.opts.match.bind(this)(e),this.opts))}};({...d1});var h1=e=>({item:e,start:-1,end:-1,score:0,positions:new Set});function g1(e,t){if(t.sort){let{selector:n}=t;e.sort((e,r)=>{if(e.score===r.score)for(let i of t.tiebreakers){let t=i(e,r,n);if(t!==0)return t}return 0})}return Number.isFinite(t.limit)&&e.splice(t.limit),e}var _1=class{constructor(e,...t){this.finder=new m1(e,...t),this.find=this.finder.find.bind(this.finder)}},v1={exact:2e4,prefix:15e3,contains:1e4,subsequence:5e3};function y1(e,t){return e.start-t.start}function b1(e,t,n){return n(e.item).length-n(t.item).length}function x1(e,t){return e===e.toLowerCase()?{query:e,value:t.toLowerCase()}:{query:e,value:t}}function S1(e,t){let n=0;for(let r of t)if(r===e[n]&&(n+=1),n===e.length)return!0;return e.length===0}function C1(e,t){let n=x1(t,e);return n.value===n.query?v1.exact:n.value.startsWith(n.query)?v1.prefix:n.value.includes(n.query)?v1.contains:S1(n.query,n.value)?v1.subsequence:0}function w1(e,t){let n=t(e);return typeof n==`string`?n.length>0?[n]:[]:n.filter(e=>e.length>0)}function T1(e,t){let n=[],r=0;for(let i of e){let e=w1(i,t),a=0;for(let t of e)n.push({item:i,itemIndex:r,text:t,textIndex:a}),a+=1;r+=1}return n}function E1(e,t){return e.score===t.score?e.start===t.start?e.textIndex===t.textIndex?e.text.length===t.text.length?e.text<t.text?-1:e.text>t.text?1:e.itemIndex-t.itemIndex:e.text.length-t.text.length:e.textIndex-t.textIndex:e.start-t.start:t.score-e.score}function D1(e,t){return new _1(e,{selector:e=>e.text,casing:`smart-case`,forward:!0,tiebreakers:[y1,b1]}).find(t).map(e=>({item:e.item.item,itemIndex:e.item.itemIndex,text:e.item.text,textIndex:e.item.textIndex,positions:[...e.positions].sort((e,t)=>e-t),score:e.score+C1(e.item.text,t),start:e.start})).sort(E1)}function O1(e){let t=new Map;for(let n of e){let e=t.get(n.itemIndex);(!e||E1(n,e)<0)&&t.set(n.itemIndex,n)}return[...t.values()].sort(E1)}function k1(e,t){return e.slice(0,t).map(e=>({item:e.item,score:e.score,positions:e.positions}))}function A1(e){return e.limit<=0?[]:e.query?e.query.length>256?[]:k1(O1(D1(T1(e.items,e.getText),e.query)),e.limit):e.items.slice(0,e.limit).map(e=>({item:e,score:0,positions:[]}))}function j1(e){return e===`none`?`threads`:e}function M1(e){return e.title?.trim()||e.titleFallback?.trim()||void 0}function N1(e){let t=M1(e);return t?[t,e.id]:[e.id]}function P1(e,t){return e.id===t.currentThreadId?!1:t.mode===`managers`?e.type===`manager`:!0}function F1(e){return{kind:`thread`,path:`thread:${e.id}`,replacement:`thread:${e.id}`,threadId:e.id,title:M1(e),threadType:e.type}}function I1(e,t){if(e.score!==t.score)return t.score-e.score;if(e.suggestion.threadType!==t.suggestion.threadType)return e.suggestion.threadType===`manager`?-1:1;let n=e.suggestion.title??``,r=t.suggestion.title??``;return n.localeCompare(r)||e.suggestion.threadId.localeCompare(t.suggestion.threadId)}function L1(e){let t=e.query.trim();if(e.mode===`none`||t.length===0||e.limit<=0)return[];let n=e.threads.filter(t=>P1(t,e));return A1({items:n,query:t,getText:N1,limit:n.length}).map(e=>({suggestion:F1(e.item),score:e.score})).sort(I1).slice(0,e.limit).map(e=>e.suggestion)}var R1=8,z1=2;function B1(e){return e===`workspace`?0:1}function V1(e,t){return e.score===t.score?e.sourceRank===t.sourceRank?e.entryKind===t.entryKind?e.path.localeCompare(t.path):e.entryKind===`directory`?-1:1:e.sourceRank-t.sourceRank:t.score-e.score}function H1(e){return{source:e.source,entryKind:e.entryKind,path:e.path,name:e.name,score:e.score,positions:e.positions}}function U1(e){let t=e.limit??R1,n=t*z1,[r]=SG(e.query,120),i=e.query===null?null:r,a=e.query?.trim()??``,o=a.length>0,s=i?.trim()??``,c=o&&a!==s,l=e.currentThreadType===`manager`&&!!e.currentThreadId,u=(0,R.useMemo)(()=>({limit:n,query:i,includeFiles:!0,includeDirectories:e.includeDirectories}),[e.includeDirectories,i,n]),d=kr({projectId:e.projectId,query:i,limit:n,environmentId:e.environmentId,includeFiles:!0,includeDirectories:e.includeDirectories}),f=Jn(e.currentThreadId??``,u,{enabled:l}),p=(0,R.useMemo)(()=>{if(!o)return[];let e=[];for(let t of d.data?.paths??[])e.push({source:`workspace`,sourceRank:B1(`workspace`),entryKind:t.kind,path:t.path,name:t.name,score:t.score,positions:t.positions});for(let t of f.data?.paths??[])e.push({source:`thread-storage`,sourceRank:B1(`thread-storage`),entryKind:t.kind,path:t.path,name:t.name,score:t.score,positions:t.positions});return e.sort(V1).slice(0,t).map(H1)},[o,t,f.data?.paths,d.data?.paths]),m=d.isFetching||l&&f.isFetching,h=d.isPending||l&&f.isPending;return{suggestions:p,isLoading:o&&p.length===0&&(c||h||m),isError:d.isError||l&&f.isError,isDebouncing:c}}var W1=8;function G1(e,t){let[n,r]=(0,R.useState)(null),i=U1({projectId:e,query:n,limit:W1,environmentId:t.environmentId,currentThreadId:t.currentThreadId,currentThreadType:t.currentThreadType,includeDirectories:!0}),a=t.threadSuggestionMode??`none`,o=j1(a),s=Kn(a===`managers`?{archived:!1,projectId:e,type:`manager`}:{archived:!1,projectId:e},{enabled:a!==`none`}),c=(n?.trim().length??0)>0,l=n?.trim()??``,u=t.currentThreadId,d=(0,R.useMemo)(()=>_$({paths:i.suggestions}),[i.suggestions]),f=(0,R.useMemo)(()=>L1({threads:s.data??[],query:l,mode:a,currentThreadId:u,limit:W1}),[u,a,s.data,l]),p=(0,R.useMemo)(()=>c?[...f,...d].slice(0,W1):[],[c,d,f]);return{query:n,setQuery:r,suggestions:p,threadSectionMode:o,isLoading:c&&p.length===0&&(i.isDebouncing||i.isLoading),isError:i.isError}}function K1(e){return e.selectedBranch?{kind:`named`,name:e.selectedBranch.name}:{kind:`default`}}function q1(e){if(!e.projectId)return null;let t=QY(e.environmentValue);if(!t)return null;if(t.type===`reuse`)return t.environmentId===null?null:{type:`reuse`,environmentId:t.environmentId};if(t.type===`host`){if(t.mode===`worktree`)return{type:`host`,hostId:t.hostId,workspace:{type:`managed-worktree`,baseBranch:K1(e)}};if(e.selectedBranch?.isNew)return{type:`host`,hostId:t.hostId,workspace:{type:`unmanaged`,path:null,branch:{kind:`new`}}};let n=e.selectedBranch?.name??e.currentBranch;return{type:`host`,hostId:t.hostId,workspace:{type:`unmanaged`,path:null,...n?{branch:{kind:`existing`,name:n}}:{}}}}return null}function J1(e){return!e.projectId||!e.environmentValue?null:{environmentValue:e.environmentValue,projectId:e.projectId}}function Y1(e,t){return e!==void 0&&t!==null&&e.projectId===t.projectId&&e.environmentValue===t.environmentValue}function X1(e){let[t,n]=(0,R.useState)(null),r=(0,R.useMemo)(()=>J1({environmentValue:e.environmentValue,projectId:e.projectId}),[e.environmentValue,e.projectId]),i=t!==null&&Y1(t.scope,r)?t.branch:null;return{onBranchChange:(0,R.useCallback)(e=>{r&&n({scope:r,branch:{name:e,isNew:!1}})},[r]),onCreateBranch:(0,R.useCallback)(()=>{r&&n(t=>{let n=(Y1(t?.scope,r)?t?.branch:null)?.name??e.currentBranch;return n?{scope:r,branch:{name:n,isNew:!0}}:Y1(t?.scope,r)?null:t})},[e.currentBranch,r]),selectedBranch:i}}var Z1=`bb.promptbox.zen-mode.project-main`;function Q1(e){if(!e||typeof e!=`object`)return null;let t=e.reuseEnvironmentId;return typeof t==`string`&&t.length>0?t:null}function $1(e){return e.environmentId===null?!1:e.environmentWorkspaceDisplayKind===`managed-worktree`||e.environmentWorkspaceDisplayKind===`unmanaged-worktree`}function e0(e){let t=new Map,n=new Map;for(let r of e){if(!$1(r)||r.environmentId===null)continue;let e=t.get(r.environmentId);e||(e=[],t.set(r.environmentId,e),n.set(r.environmentId,r.environmentBranchName)),e.push(r)}let r=[];for(let[e,i]of t)i.sort((e,t)=>t.latestAttentionAt-e.latestAttentionAt),r.push({environmentId:e,branchName:n.get(e)??null,threads:i.map(e=>({id:e.id,title:Wn(e)}))});return r.sort((e,t)=>e.branchName&&t.branchName?e.branchName.localeCompare(t.branchName):e.environmentId.localeCompare(t.environmentId)),r}function t0(){let{projectId:e}=tr(),t=er(),n=lr(),r=Ar(),i=jr({enabled:r.isSuccess||r.isError}),a=i.data,o=r.isFetching||i.isLoading,s=KQ(),{localHostId:c}=Ur(),l=Kr(),u=m$({projectId:e,threadId:null}),{data:d=[]}=Xr(e),f=G1(e,{environmentId:null}),[p,m]=(0,R.useState)(null),h=u.text,g=(0,R.useMemo)(()=>IZ({text:u.text,attachments:u.attachments}),[u.attachments,u.text]),_=(0,R.useMemo)(()=>vr(Z1,e),[e]),v=(0,R.useMemo)(()=>IQ(d),[d]),{selectedProviderId:y,setSelectedProviderId:b,providerOptions:x,hasMultipleProviders:S,selectedModel:C,setSelectedModel:w,serviceTier:T,setServiceTier:E,reasoningLevel:D,setReasoningLevel:O,permissionMode:ee,setPermissionMode:k,environmentSelectionValue:A,setEnvironmentSelectionValue:j,clearReuseEnvironment:M,activeModel:N,modelOptions:te,reasoningOptions:ne,permissionModeOptions:re,supportsPermissionModeSelection:ie,supportsServiceTier:ae,serviceTierSupportByProvider:P}=RX({scope:`new-thread`,projectId:e});(0,R.useEffect)(()=>{let e=Q1(t.state);e!==null&&(j(ZY(e)),n(t.pathname+t.search,{replace:!0,state:null}))},[t.pathname,t.search,t.state,n,j]);let oe=Kn({projectId:e,archived:!1},{enabled:!!e}),se=(0,R.useMemo)(()=>e0(oe.data??[]),[oe.data]),ce=(0,R.useMemo)(()=>a?.find(t=>t.id===e),[a,e]),le=(0,R.useMemo)(()=>ce?.sources??[],[ce?.sources]),ue=(0,R.useMemo)(()=>A&&QY(A)?A:c?`host:${c}:local`:``,[A,c]),de=(0,R.useMemo)(()=>QY(ue),[ue]),fe=de?.type===`host`,pe=Nr(e,fe?de.hostId:null,{enabled:fe}),me=(0,R.useMemo)(()=>pe.data?.branches??[],[pe.data?.branches]),he=fe&&de.mode===`local`?pe.data?.current??null:pe.data?.defaultBranch??null,{selectedBranch:ge,onBranchChange:_e,onCreateBranch:ve}=X1({currentBranch:he,environmentValue:ue,projectId:e}),ye=(0,R.useMemo)(()=>q1({environmentValue:ue,projectId:e,currentBranch:he,selectedBranch:ge}),[ue,e,he,ge]),be=(0,R.useMemo)(()=>{let t=a?.map(e=>({value:e.id,label:e.name}))??[];return e&&!t.some(t=>t.value===e)&&t.unshift({value:e,label:o?`Loading project…`:e}),t},[e,a,o]),xe=N?.model??C,Se=(0,R.useCallback)(t=>{t!==e&&n(`/projects/${t}`)},[n,e]),Ce=typeof t.state==`object`&&t.state!==null&&`focusPrompt`in t.state&&t.state.focusPrompt===!0;(0,R.useEffect)(()=>{if(!Ce)return;let e=window.requestAnimationFrame(()=>{let e=document.getElementById(`project-main-prompt`);if(!(e instanceof HTMLTextAreaElement))return;e.focus();let t=e.value.length;e.setSelectionRange(t,t)});return()=>window.cancelAnimationFrame(e)},[t.key,Ce]);let we=(0,R.useCallback)(async t=>{if(!(!e||t.length===0)){m(null);for(let n of t)try{let t=await l.mutateAsync({projectId:e,file:n});u.addAttachment(t)}catch(e){m(tl({error:e,fallbackMessage:`Attachment upload failed.`}));break}}},[e,u,l]),Te=(0,R.useCallback)(async()=>{let t={text:u.text,attachments:u.attachments},n=IZ(t);if(!(n.length===0||s.isPending||!ye||!y||!xe||!e)){m(null);try{await s.mutateAsync({input:n,projectId:e,providerId:y,model:xe,...ae&&T?{serviceTier:T}:{},reasoningLevel:D,permissionMode:ee,environment:ye}),u.clearIfCurrentMatches(t)}catch{}}},[s,ee,e,u,D,ye,y,xe,T,ae]),Ee=s.isPending||g.length===0||!ye||!y||!xe,De=(0,R.useMemo)(()=>({text:u.text,attachments:u.attachments}),[u.attachments,u.text]),Oe=(0,R.useMemo)(()=>({currentDraft:De,entries:v,onSelectEntry:u.setDraft,resetKey:e}),[De,e,u.setDraft,v]),ke=(0,R.useMemo)(()=>({suggestions:f.suggestions,threadSectionMode:f.threadSectionMode,isLoading:f.isLoading,isError:f.isError,onQueryChange:f.setQuery}),[f.isError,f.isLoading,f.setQuery,f.suggestions,f.threadSectionMode]),Ae=(0,R.useMemo)(()=>({items:u.attachments,projectId:e??``,onAttachFiles:we,onRemove:u.removeAttachment,isAttaching:l.isPending,error:p}),[p,we,e,u.attachments,u.removeAttachment,l.isPending]),je=(0,R.useMemo)(()=>({provider:{options:x,selectedId:y,onChange:b,hasMultiple:S},model:{active:N,selected:C,options:te,onChange:w},serviceTier:{value:T,onChange:E,supported:ae,supportByProvider:P},reasoning:{value:D,options:ne,onChange:O}}),[N,S,te,x,D,ne,C,y,T,P,O,w,b,E,ae]),Me=(0,R.useMemo)(()=>({value:ue,onChange:j,sources:le,reuseDisabled:se.length===0}),[ue,le,se.length,j]),Ne=(0,R.useMemo)(()=>({options:se,value:de?.type===`reuse`?de.environmentId:null,onChange:e=>{j(ZY(e))}}),[de,se,j]),Pe=(0,R.useMemo)(()=>({value:ge?.name??null,current:he,isNew:ge?.isNew??!1,options:me,loading:pe.isLoading,placeholder:`Default branch`,onChange:_e,onCreate:ve}),[pe.isLoading,me,he,_e,ve,ge?.isNew,ge?.name]),Fe=(0,R.useMemo)(()=>({value:ee,options:re,onChange:k,supported:ie}),[ee,re,k,ie]),Ie=(0,R.useMemo)(()=>de?.type===`reuse`?(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-sm`,children:[(0,z.jsx)(F,{name:`GitBranch`,className:`size-4 shrink-0 text-primary`}),(0,z.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1`,children:[(0,z.jsx)(`span`,{className:`font-medium text-foreground`,children:`Reusing existing worktree`}),(0,z.jsx)(`button`,{type:`button`,onClick:M,title:`Stop reusing and start a regular new thread`,"aria-label":`Stop reusing worktree`,className:`inline-flex size-5 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-state-hover hover:text-foreground`,children:(0,z.jsx)(F,{name:`X`,className:`size-3.5`})})]})]}):null,[M,de]);return e?(0,z.jsx)(rt,{contentClassName:`pt-4 md:pt-5`,children:(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`div`,{className:`flex items-center px-3.5`,children:e?(0,z.jsx)(`div`,{className:`flex items-center gap-3`,children:(0,z.jsx)(KX,{label:`Project`,value:e,options:be,onChange:Se,className:`h-8 text-sm`})}):null}),(0,z.jsx)(NQ,{id:`project-main-prompt`,value:h,onChange:u.setText,onSubmit:Te,isSubmitting:s.isPending,disabled:Ee,zenModeStorageKey:_,history:Oe,mentions:ke,attachments:Ae,execution:je,environment:Me,branch:Pe,worktree:Ne,permission:Fe,header:Ie})]})}):(0,z.jsx)(rt,{contentClassName:`min-h-full items-center justify-center`,children:(0,z.jsx)(`p`,{className:`py-12 text-center text-sm text-muted-foreground`,children:`Select a project.`})})}function n0(e){let t=new Map,n=Oe({debounceMs:e.debounceMs,maxWaitMs:e.maxWaitMs,onFlush:()=>{t.size!==0&&(e.flushChangedEnvironmentIds(Array.from(t.entries()).map(([e,t])=>({changeKinds:Array.from(t),environmentId:e}))),t.clear())}});return{dispose:()=>{n.dispose(),t.clear()},markChanged:(e,r)=>{let i=t.get(e);i||(i=new Set,t.set(e,i));for(let e of r)i.add(e);n.schedule()}}}var r0=50,i0=200,a0=250,o0=500;function s0(e,t){return e?t?Array.from(new Set([...e,...t])):e:t}function c0(e,t){let n=s0(e?.eventTypes,t.eventTypes),r=t.hasPendingInteraction??e?.hasPendingInteraction,i=t.projectId??e?.projectId,a={};return n&&(a.eventTypes=n),r!==void 0&&(a.hasPendingInteraction=r),i!==void 0&&(a.projectId=i),a}function l0(){return{changedThreadKinds:new Map,globalChangeKinds:new Set,metadataByThreadId:new Map}}function u0(e){e.changedThreadKinds.clear(),e.globalChangeKinds.clear(),e.metadataByThreadId.clear()}function d0({environmentId:e,queryClient:t}){let n=new Set;for(let[,r]of t.getQueriesData({queryKey:lt()}))r?.environmentId===e&&n.add(r.id);for(let{data:r}of ai(t,{queryKey:A()}))for(let t of ni(r))t.environmentId===e&&n.add(t.id);return Array.from(n)}function f0({changes:e,state:t,threadId:n}){let r=t.changedThreadKinds.get(n);r||(r=new Set,t.changedThreadKinds.set(n,r));for(let t of e)r.add(t)}function p0(e,t){for(let n of t.globalChangeKinds)ti({context:{eventTypes:void 0,hasPendingInteraction:void 0,projectId:void 0,queryClient:e,threadId:void 0},handlers:si[n].dirty});for(let[n,r]of t.changedThreadKinds){let i=t.metadataByThreadId.get(n);for(let t of r)ti({context:{hasPendingInteraction:i?.hasPendingInteraction,eventTypes:i?.eventTypes,projectId:i?.projectId,queryClient:e,threadId:n},handlers:si[t].dirty})}u0(t)}function m0(e,t){if(t.entity===`thread`){if(t.id){f0({changes:t.changes,state:e,threadId:t.id}),t.metadata&&e.metadataByThreadId.set(t.id,c0(e.metadataByThreadId.get(t.id),t.metadata));return}for(let n of t.changes)e.globalChangeKinds.add(n)}}function h0({changeKinds:e,environmentId:t,queryClient:n}){for(let r of e)ti({context:{environmentId:t,getCachedThreadIdsForEnvironment:()=>d0({environmentId:t,queryClient:n}),queryClient:n},handlers:vi[r].dirty})}function g0({queryClient:e}){let t=l0(),n=Oe({debounceMs:r0,maxWaitMs:i0,onFlush:()=>p0(e,t)}),r=n0({debounceMs:a0,flushChangedEnvironmentIds:t=>{for(let{changeKinds:n,environmentId:r}of t)h0({changeKinds:n,environmentId:r,queryClient:e})},maxWaitMs:o0});return{dispose:()=>{n.dispose(),r.dispose(),u0(t)},handleChanged:i=>{switch(i.entity){case`thread`:m0(t,i),ei(i.changes)?n.flush():n.schedule();break;case`environment`:i.id&&r.markChanged(i.id,i.changes);break;case`host`:for(let t of i.changes)ti({context:{queryClient:e},handlers:oi[t].dirty});break;case`project`:for(let t of i.changes)ti({context:{projectId:i.id,queryClient:e},handlers:$r[t].dirty});break;case`system`:for(let t of i.changes)ti({context:{queryClient:e},handlers:_i[t].dirty});break;default:N(i)}},handleConnected:({reconnected:t})=>{if(t){Rs({queryClient:e});return}zs({queryClient:e})}}}function _0(){let e=c();(0,R.useEffect)(()=>{let t=g0({queryClient:e}),n=qt.onConnected(t.handleConnected),r=qt.onChanged(t.handleChanged);return qt.connect(),qt.subscribe(`thread`),qt.subscribe(`project`),qt.subscribe(`environment`),qt.subscribe(`host`),qt.subscribe(`system`),()=>{t.dispose(),n(),r(),qt.unsubscribe(`thread`),qt.unsubscribe(`project`),qt.unsubscribe(`environment`),qt.unsubscribe(`host`),qt.unsubscribe(`system`)}},[e])}var v0=`/auth/callback`,y0=`/settings`,b0=`/projects/:projectId`,x0=`/projects/:projectId/settings`,S0=`/projects/:projectId/archived`,C0=`/projects/:projectId/threads/:threadId`,w0=[`/`,v0,y0,b0,x0,S0,C0],T0=(0,R.lazy)(()=>L(()=>import(`./ThreadDetailRoute-BI3VVE99.js`),__vite__mapDeps([102,1,103,104,105,106,107,108,109,110,111,112]))),E0=(0,R.lazy)(()=>L(()=>import(`./AppSettingsView-Dmjbm_4y.js`).then(e=>({default:e.AppSettingsView})),__vite__mapDeps([113,1,108,109,114]))),D0=(0,R.lazy)(()=>L(()=>import(`./ProjectSettingsView-BCVVMJFB.js`).then(e=>({default:e.ProjectSettingsView})),__vite__mapDeps([115,1,103,107,108,109,106,110,114]))),O0=(0,R.lazy)(()=>L(()=>import(`./ProjectArchivedThreadsView-DzbW3kSk.js`).then(e=>({default:e.ProjectArchivedThreadsView})),__vite__mapDeps([116,1,103,104,105,106,110])));(0,R.lazy)(()=>L(()=>import(`./InternalReplayListView-BMzOdu0K.js`).then(e=>({default:e.InternalReplayListView})),__vite__mapDeps([117,1,103,108,110,111])));function k0(){return(0,z.jsx)(bZ,{children:(0,z.jsx)(R.Suspense,{fallback:null,children:(0,z.jsxs)(or,{children:[(0,z.jsx)($n,{path:`/`,element:(0,z.jsx)(wZ,{})}),(0,z.jsx)($n,{path:y0,element:(0,z.jsx)(E0,{})}),null,(0,z.jsx)($n,{path:b0,element:(0,z.jsx)(t0,{})}),(0,z.jsx)($n,{path:x0,element:(0,z.jsx)(D0,{})}),(0,z.jsx)($n,{path:S0,element:(0,z.jsx)(O0,{})}),(0,z.jsx)($n,{path:C0,element:(0,z.jsx)(T0,{})}),(0,z.jsx)($n,{path:`*`,element:(0,z.jsx)(rr,{to:`/`,replace:!0})})]})})})}function A0(){return _0(),(0,z.jsx)(VY,{children:(0,z.jsx)(LY,{children:(0,z.jsxs)(or,{children:[(0,z.jsx)($n,{path:v0,element:(0,z.jsx)(SZ,{})}),(0,z.jsx)($n,{path:`*`,element:(0,z.jsx)(k0,{})})]})})})}function j0(e){return(0,z.jsx)(Kc,{...e})}function M0(e){return(0,z.jsx)(j0,{theme:fD(),...e})}function N0(e={}){let t=e.defaultOptions,n=e.showMutationErrorToasts??!0;return new ki({mutationCache:new Ci({onError:(e,t,r,i)=>{if(!n)return;let a=el(i.meta);a.showErrorToast!==!1&&rl({error:e,fallbackMessage:a.errorMessage??`Request failed.`})}}),defaultOptions:{...t,queries:{staleTime:2e3,refetchOnWindowFocus:!0,retry:0,...t?.queries}}})}var P0=N0();uD(),(0,Pi.createRoot)(document.getElementById(`root`)).render((0,z.jsx)(R.StrictMode,{children:(0,z.jsxs)(ie,{client:P0,children:[(0,z.jsx)(cr,{children:(0,z.jsx)(A0,{})}),(0,z.jsx)(M0,{position:`bottom-right`})]})}));export{nG as $,gc as $t,Pq as A,YN as At,FG as B,fD as Bt,cX as C,oU as Ct,kJ as D,QN as Dt,WY as E,tP as Et,rK as F,pN as Ft,PG as G,wu as Gt,IG as H,bd as Ht,WG as I,dN as It,EG as J,yl as Jt,kG as K,Fl as Kt,qG as L,EO as Lt,OK as M,NN as Mt,kK as N,WN as Nt,Iq as O,eP as Ot,YG as P,KN as Pt,rG as Q,Ac as Qt,VG as R,KD as Rt,RX as S,sU as St,GY as T,aP as Tt,zG as U,xd as Ut,LG as V,mD as Vt,NG as W,vd as Wt,dG as X,tl as Xt,mG as Y,gl as Yt,pG as Z,rl as Zt,IZ as _,mU as _t,XQ as a,Hs as an,WU as at,ZX as b,uU as bt,ZQ as c,Oo as cn,VU as ct,OQ as d,Wi as dn,DU as dt,mc as en,tG as et,SQ as f,EU as ft,RZ as g,_U as gt,sQ as h,yU as ht,m$ as i,Vs as in,GU as it,zK as j,GN as jt,Fq as k,JN as kt,$Q as l,Do as ln,BU as lt,yQ as m,SU as mt,G1 as n,Ws as nn,YU as nt,QQ as o,Ao as on,UU as ot,bQ as p,TU as pt,OG as q,bl as qt,U1 as r,Bs as rn,JU as rt,YQ as s,ko as sn,HU as st,w0 as t,Gs as tn,XU as tt,IQ as u,Eo as un,zU as ut,LZ as v,fU as vt,JY as w,sL as wt,GX as x,lU as xt,TZ as y,dU as yt,RG as z,nD as zt};
|