bb-app 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -7
- package/app/dist/assets/AppSettingsView-SFYjccBR.js +1 -0
- package/app/dist/assets/InternalReplayListView-D-5BEgLK.js +1 -0
- package/app/dist/assets/ProjectArchivedThreadsView-DAF8LFet.js +1 -0
- package/app/dist/assets/{ProjectSettingsView-DucRZWso.js → ProjectSettingsView-C_WCJcrH.js} +1 -1
- package/app/dist/assets/{ThreadDetailRoute-CrBpC0ct.js → ThreadDetailRoute-D8k29X_E.js} +3 -3
- package/app/dist/assets/{dialog-CxN4lDeD.js → dialog-CaQY-B8P.js} +1 -1
- package/app/dist/assets/{effective-hosts-BWRuszG7.js → effective-hosts-ps3WYS_d.js} +1 -1
- package/app/dist/assets/index-B8UIxEOk.js +1359 -0
- package/app/dist/assets/index-Ct4fTclZ.css +2 -0
- package/app/dist/assets/{localhost-badge-BBCmn0GW.js → localhost-badge-C9iEqET9.js} +2 -2
- package/app/dist/assets/{pill-BHnTA2D7.js → pill-DYYeHA29.js} +1 -1
- package/app/dist/assets/{split-button-CeV-MQ2f.js → split-button-2v1ePK2A.js} +1 -1
- package/app/dist/index.html +6 -6
- package/package.json +1 -1
- package/app/dist/assets/AppSettingsView-D4Xk7Lux.js +0 -1
- package/app/dist/assets/InternalReplayListView-DOajBbUO.js +0 -1
- package/app/dist/assets/ProjectArchivedThreadsView-CR1mxrlQ.js +0 -1
- package/app/dist/assets/index-BSJHUjhM.css +0 -2
- package/app/dist/assets/index-ByQGFt4l.js +0 -1359
|
@@ -0,0 +1,1359 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-C2Dl0O00.js","assets/page-shell-Dglk9LmR.js","assets/html-C4e0uDKx.js","assets/css-QhLRjU31.js","assets/javascript-B6-baDIX.js","assets/angular-ts-CVYqc36v.js","assets/scss-Cz2NsCSh.js","assets/apl-BGPamPSJ.js","assets/json-DtR-rTq5.js","assets/xml-BJ3Y9ehh.js","assets/java-C9TLG_lA.js","assets/astro-Ba-Dojj4.js","assets/postcss-D_ArMqNC.js","assets/tsx-B1khekg1.js","assets/typescript-BVriUqhl.js","assets/blade-Lwg2Qi0v.js","assets/html-derivative-DtQj__OI.js","assets/sql-DQAX0EN7.js","assets/bsl-JaCMWPaY.js","assets/sdbl-D0gXyfL6.js","assets/c-B_58eHuy.js","assets/cairo-D7Xpkdmw.js","assets/python-CUtprRpG.js","assets/cobol-CM0x5uzi.js","assets/coffee-WumiHYOD.js","assets/cpp-D0sZgzGq.js","assets/glsl-Dy3tp3E1.js","assets/regexp-Dl_oPCDN.js","assets/crystal-C2tAIJ-r.js","assets/shellscript-CJedfzfs.js","assets/edge-BmtKCk7-.js","assets/elixir-DiumzaXM.js","assets/elm-DV3i51_v.js","assets/erb-3qqPnLJh.js","assets/ruby-BJwcPMyx.js","assets/graphql-CseHr1LK.js","assets/jsx-TQyKdSmQ.js","assets/haml-CjrsmcwN.js","assets/lua-D4PO1r07.js","assets/yaml-BJda_PXC.js","assets/erlang-DJdyEhn7.js","assets/markdown-CppElJDR.js","assets/fortran-fixed-form-Dyncprn4.js","assets/fortran-free-form-B9mY58s0.js","assets/fsharp-D6WYKxtq.js","assets/gdresource-Bac2fAQZ.js","assets/gdscript-B_WUGHIs.js","assets/gdshader-BR6nyn6z.js","assets/git-commit-CDZnUqIF.js","assets/diff-pSjjL-ZH.js","assets/git-rebase-DIMwlcT0.js","assets/glimmer-js-BKsURin4.js","assets/glimmer-ts-Chhe0oIX.js","assets/hack-boTiAbss.js","assets/handlebars-B_oDWsbs.js","assets/http-W8z61A1Z.js","assets/hurl-CBaPhsIJ.js","assets/csv-92JdhrVb.js","assets/hxml-BNblpm3P.js","assets/haxe-DDQKctJt.js","assets/jinja-D6Ec9tX7.js","assets/jison-abiW-9pn.js","assets/julia-BKK2QHze.js","assets/r-C3AjV-3E.js","assets/just-BY5hWNgR.js","assets/perl-OrqzwF6j.js","assets/latex-CuW1q2vJ.js","assets/tex-BOG7uw6j.js","assets/liquid-BsqUQnO5.js","assets/marko-1bNyFeKY.js","assets/less-6BW8xQaX.js","assets/mdc-BoU9IUKL.js","assets/nextflow-dLJhzX3Z.js","assets/nextflow-groovy-jKlTICX_.js","assets/nginx-BXWzwlUI.js","assets/nim-BgalU8R5.js","assets/php-DsC0K8EH.js","assets/pug-D-Q9Kgtz.js","assets/qml-Dyn06a9u.js","assets/razor-DHd1twLi.js","assets/csharp-Bz4y1fn8.js","assets/rst-BIq6VDAT.js","assets/cmake-5KZO_J3V.js","assets/sas-TXWq-8Bu.js","assets/shaderlab-CSb6CBXg.js","assets/hlsl-BVEJlW36.js","assets/shellsession-Tkblvq8e.js","assets/soy-g_UxtUjg.js","assets/sparql-J1VOnnwM.js","assets/turtle-ZCrKgE8E.js","assets/stata-BXjroK6c.js","assets/surrealql-DyDhPjEW.js","assets/svelte-CEjCx-8g.js","assets/templ-BViMCY-s.js","assets/go-D2GlBE5F.js","assets/ts-tags-1PkZB39L.js","assets/twig-C30VOGkj.js","assets/vue-Dy6YaQjk.js","assets/vue-html-yfcmxRL7.js","assets/vue-vine-BnfxXDO0.js","assets/stylus-DZvi0832.js","assets/xsl-CFOlFF3h.js","assets/ThreadDetailRoute-D8k29X_E.js","assets/pill-DYYeHA29.js","assets/ThreadUnarchiveButton-EqnpnszW.js","assets/thread-queries-BOTfj5Vv.js","assets/mutation-cache-effects-BQHFwGL7.js","assets/localhost-badge-C9iEqET9.js","assets/effective-hosts-ps3WYS_d.js","assets/dialog-CaQY-B8P.js","assets/split-button-2v1ePK2A.js","assets/ThreadDetailRoute-BrP-ENHg.css","assets/AppSettingsView-SFYjccBR.js","assets/settings-section-CZi6DvBs.js","assets/ProjectSettingsView-C_WCJcrH.js","assets/ProjectArchivedThreadsView-DAF8LFet.js","assets/InternalReplayListView-D-5BEgLK.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,$r as t,Ai as n,Bi as r,C as i,Ci as a,Cn as o,Ct as s,Dn as c,E as l,En as u,Fi as d,Fn as f,G as p,Gi as m,Gr as h,H as g,Hi as _,Hn as v,Ii as y,Ir as b,Jr as x,Ki as S,Kn as C,Li as w,Lr as T,Mi as E,Mt as D,Ni as O,Nt as ee,O as te,Pi as ne,Qr as k,Ri as A,Rn as j,S as re,Si as ie,St as ae,T as oe,Tt as se,Ui as M,Ur as ce,Vi as le,W as ue,Wi as de,Xn as fe,Xt as pe,Y as me,Yr as N,Zr as he,_ as ge,_i as _e,ai as ve,b as ye,bi as be,ci as xe,cr as Se,d as Ce,di as we,et as Te,f as Ee,fi as De,ft as P,g as Oe,gi as ke,h as Ae,hi as je,hn as Me,i as Ne,ii as Pe,it as Fe,ji as Ie,ki as Le,kr as Re,li as ze,lr as Be,m as Ve,mi as He,mt as Ue,n as We,ni as F,or as Ge,p as Ke,pi as qe,qr as Je,r as Ye,ri as I,si as Xe,sr as Ze,t as Qe,ti as $e,ui as et,ur as tt,ut as nt,vi as rt,w as it,wi as at,wn as ot,x as st,xi as ct,y as lt,yi as ut,zi as dt,zn as ft,zt as pt}from"./page-shell-Dglk9LmR.js";import{$ as mt,A as ht,At as gt,B as _t,D as vt,Dt as yt,Et as bt,F as xt,Ft as St,G as Ct,H as wt,I as Tt,It as Et,J as Dt,K as Ot,L as kt,M as At,Mt as jt,N as Mt,O as Nt,Ot as Pt,P as Ft,Pt as It,Q as Lt,R as Rt,St as zt,Tt as Bt,U as Vt,V as Ht,W as Ut,X as Wt,Y as Gt,Z as Kt,_t as qt,a as Jt,at as Yt,bt as Xt,c as Zt,ct as Qt,d as $t,dt as en,et as tn,f as nn,ft as rn,gt as an,h as on,ht as sn,i as cn,it as ln,j as un,jt as dn,k as fn,kt as pn,l as mn,lt as hn,m as gn,mt as _n,n as vn,nt as yn,o as bn,ot as xn,p as Sn,pt as Cn,q as wn,r as Tn,rt as En,s as Dn,st as On,tt as kn,u as An,ut as jn,v as Mn,vt as Nn,wt as Pn,xt as Fn,yt as In,z as Ln}from"./effective-hosts-ps3WYS_d.js";import{C as Rn,E as zn,S as Bn,T as Vn,b as Hn,h as Un,o as Wn,r as Gn,v as Kn,w as qn,x as Jn,y as Yn}from"./thread-queries-BOTfj5Vv.js";import{a as Xn,d as Zn,f as Qn,i as $n,l as er,m as L,n as tr,o as nr,p as rr,r as ir,s as ar,t as or,u as sr}from"./pill-DYYeHA29.js";import{_ as cr,a as lr,b as ur,c as dr,f as fr,g as pr,i as mr,l as hr,m as gr,n as _r,o as vr,p as yr,r as br,s as xr,t as Sr,u as Cr,v as wr,y as Tr}from"./dialog-CaQY-B8P.js";import{A as Er,C as Dr,D as Or,E as kr,O as Ar,T as jr,a as Mr,c as Nr,f as Pr,g as Fr,h as Ir,i as Lr,j as Rr,k as zr,l as Br,m as Vr,n as Hr,o as Ur,p as Wr,s as Gr,t as Kr,u as qr,w as Jr,x as Yr}from"./localhost-badge-C9iEqET9.js";import{A as Xr,C as Zr,D as Qr,E as $r,F as ei,M as ti,N as ni,P as ri,S as ii,T as ai,c as oi,g as si,h as ci,i as li,j as ui,k as di,m as fi,p as pi,s as mi,w as hi,x as gi}from"./mutation-cache-effects-BQHFwGL7.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 _i=_((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&&ne(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&&ne(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,te=ee.port2;ee.port1.onmessage=D,O=function(){te.postMessage(null)}}else O=function(){_(D,0)};function ne(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,ne(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}}}})),vi=_(((e,t)=>{t.exports=_i()})),yi=_((e=>{var t=vi(),n=le(),r=Et();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 te=Symbol.for(`react.client.reference`);function ne(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===te?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?ne(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return ne(e(t))}catch{}}return null}var k=Array.isArray,A=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},ie=[],ae=-1;function oe(e){return{current:e}}function se(e){0>ae||(e.current=ie[ae],ie[ae]=null,ae--)}function M(e,t){ae++,ie[ae]=e.current,e.current=t}var ce=oe(null),ue=oe(null),de=oe(null),fe=oe(null);function pe(e,t){switch(M(de,t),M(ue,e),M(ce,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Xd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Xd(t),e=Zd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}se(ce),M(ce,e)}function me(){se(ce),se(ue),se(de)}function N(e){e.memoizedState!==null&&M(fe,e);var t=ce.current,n=Zd(t,e.type);t!==n&&(M(ue,e),M(ce,n))}function he(e){ue.current===e&&(se(ce),se(ue)),fe.current===e&&(se(fe),sp._currentValue=re)}var ge,_e;function ve(e){if(ge===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ge=t&&t[1]||``,_e=-1<e.stack.indexOf(`
|
|
3
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
+
`+ge+e+_e}var ye=!1;function be(e,t){if(!e||ye)return``;ye=!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{ye=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ve(n):``}function xe(e,t){switch(e.tag){case 26:case 27:case 5:return ve(e.type);case 16:return ve(`Lazy`);case 13:return e.child!==t&&t!==null?ve(`Suspense Fallback`):ve(`Suspense`);case 19:return ve(`SuspenseList`);case 0:case 15:return be(e.type,!1);case 11:return be(e.type.render,!1);case 1:return be(e.type,!0);case 31:return ve(`Activity`);default:return``}}function Se(e){try{var t=``,n=null;do t+=xe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
+
Error generating stack: `+e.message+`
|
|
9
|
+
`+e.stack}}var Ce=Object.prototype.hasOwnProperty,we=t.unstable_scheduleCallback,Te=t.unstable_cancelCallback,Ee=t.unstable_shouldYield,De=t.unstable_requestPaint,P=t.unstable_now,Oe=t.unstable_getCurrentPriorityLevel,ke=t.unstable_ImmediatePriority,Ae=t.unstable_UserBlockingPriority,je=t.unstable_NormalPriority,Me=t.unstable_LowPriority,Ne=t.unstable_IdlePriority,Pe=t.log,Fe=t.unstable_setDisableYieldValue,Ie=null,Le=null;function Re(e){if(typeof Pe==`function`&&Fe(e),Le&&typeof Le.setStrictMode==`function`)try{Le.setStrictMode(Ie,e)}catch{}}var ze=Math.clz32?Math.clz32:He,Be=Math.log,Ve=Math.LN2;function He(e){return e>>>=0,e===0?32:31-(Be(e)/Ve|0)|0}var Ue=256,We=262144,F=4194304;function Ge(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 Ke(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=Ge(n))):i=Ge(o):i=Ge(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ge(n))):i=Ge(o)):i=Ge(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 qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Je(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 Ye(){var e=F;return F<<=1,!(F&62914560)&&(F=4194304),e}function I(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ze(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-ze(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-ze(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-ze(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=j.p;return e===0?(e=window.event,e===void 0?32:Sp(e.type)):e}function it(e,t){var n=j.p;try{return j.p=e,t()}finally{j.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=bf(e);e!==null;){if(n=e[ot])return n;e=bf(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={},Dt={};function Ot(e){return Ce.call(Dt,e)?!0:Ce.call(Tt,e)?!1:wt.test(e)?Dt[e]=!0:(Tt[e]=!0,!1)}function kt(e,t,n){if(Ot(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(k(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)&&(ku(),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 L=!1;function tr(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 nr(e,t){if(L)return e===`compositionend`||!qn&&$n(e,t)?(e=gn(),hn=mn=pn=null,L=!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 rr={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 ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!rr[e.type]:t===`textarea`}function ar(e,t,n,r){rn?an?an.push(r):an=[r]:rn=r,t=Pd(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var or=null,sr=null;function cr(e){Od(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(){or&&(or.detachEvent(`onpropertychange`,gr),sr=or=null)}function gr(e){if(e.propertyName===`value`&&lr(sr)){var t=[];ar(t,sr,e,nn(e)),cn(cr,t)}}function _r(e,t,n){e===`focusin`?(hr(),or=t,sr=n,or.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(!Ce.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=Pd(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-ze(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<xu)throw xu=0,V=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=Qf(e,n,ce.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 yi(e,t){if(typeof e==`object`&&e){var n=_i.get(e);return n===void 0?(t={value:e,source:t,stack:Se(t)},_i.set(e,t),t):n}return{value:e,source:t,stack:Se(t)}}var bi=[],xi=0,Si=null,Ci=0,wi=[],Ti=0,Ei=null,Di=1,R=``;function Oi(e,t){bi[xi++]=Ci,bi[xi++]=Si,Si=e,Ci=t}function ki(e,t,n){wi[Ti++]=Di,wi[Ti++]=R,wi[Ti++]=Ei,Ei=e;var r=Di;e=R;var i=32-ze(r)-1;r&=~(1<<i),n+=1;var a=32-ze(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Di=1<<32-ze(t)+i|n<<i|r,R=a+e}else Di=1<<a|n<<i|r,R=e}function Ai(e){e.return!==null&&(Oi(e,1),ki(e,1,0))}function ji(e){for(;e===Si;)Si=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null;for(;e===Ei;)Ei=wi[--Ti],wi[Ti]=null,R=wi[--Ti],wi[Ti]=null,Di=wi[--Ti],wi[Ti]=null}function Mi(e,t){wi[Ti++]=Di,wi[Ti++]=R,wi[Ti++]=Ei,Di=t.id,R=t.overflow,Ei=e}var Ni=null,z=null,Pi=!1,Fi=null,Ii=!1,Li=Error(i(519));function Ri(e){throw Wi(yi(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`:U(`cancel`,t),U(`close`,t);break;case`iframe`:case`object`:case`embed`:U(`load`,t);break;case`video`:case`audio`:for(n=0;n<Ed.length;n++)U(Ed[n],t);break;case`source`:U(`error`,t);break;case`img`:case`image`:case`link`:U(`error`,t),U(`load`,t);break;case`details`:U(`toggle`,t);break;case`input`:U(`invalid`,t),Vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:U(`invalid`,t);break;case`textarea`:U(`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||Bd(t.textContent,n)?(r.popover!=null&&(U(`beforetoggle`,t),U(`toggle`,t)),r.onScroll!=null&&U(`scroll`,t),r.onScrollEnd!=null&&U(`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(!Pi)return Bi(e),Pi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Qd(e.type,e.memoizedProps)),n=!n),n&&z&&Ri(e),Bi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));z=yf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));z=yf(e)}else t===27?(t=z,sf(e.type)?(e=vf,vf=null,z=e):z=t):z=Ni?_f(e.stateNode.nextSibling):null;return!0}function Hi(){z=Ni=null,Pi=!1}function Ui(){var e=Fi;return e!==null&&(su===null?su=e:su.push.apply(su,e),Fi=null),e}function Wi(e){Fi===null?Fi=[e]:Fi.push(e)}var Gi=oe(null),Ki=null,qi=null;function Ji(e,t,n){M(Gi,t._currentValue),t._currentValue=n}function Yi(e){e._currentValue=Gi.current,se(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===fe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[sp]:e.push(sp))}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=bd(),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=A.S;A.S=function(e,t){uu=P(),typeof t==`object`&&t&&typeof t.then==`function`&&ma(e,t),_a!==null&&_a(e,t)};var va=oe(null);function ya(){var e=va.current;return e===null?Gl.pooledCache:e}function ba(e,t){t===null?M(va,va.current):M(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=Gl,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(k(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(k(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(k(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),Pi&&Oi(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 Pi&&Oi(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)}),Pi&&Oi(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),Pi&&Oi(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 Pi&&Oi(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)}),Pi&&Oi(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(k(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,Wl&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?(ql&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),tu|=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=oe(null),$a=oe(0);function eo(e,t){e=$l,M($a,e),M(Qa,t),$l=e|t.baseLanes}function to(){M($a,$l),M(Qa,Qa.current)}function no(){$l=$a.current,se(Qa),se($a)}var ro=oe(null),io=null;function ao(e){var t=e.alternate;M(uo,uo.current&1),M(ro,e),io===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(io=e)}function oo(e){M(uo,uo.current),M(ro,e),io===null&&(io=e)}function so(e){e.tag===22?(M(uo,uo.current),M(ro,e),io===null&&(io=e)):co(e)}function co(){M(uo,uo.current),M(ro,ro.current)}function lo(e){se(ro),io===e&&(io=null),se(uo)}var uo=oe(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||mf(n)||hf(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,A.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){A.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)}A.H=Gs,o=t(n,r)}while(vo);return o}function ko(){var e=A.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,A.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:(ql&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,tu|=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,tu|=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=Pi;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),Gl===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&&wu(t,e,2)}function Yo(e){var t=No();if(typeof e==`function`){var n=e;if(e=n(),yo){Re(!0);try{n()}finally{Re(!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)}};A.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=A.T,o={};A.T=o;try{var s=n(i,r),c=A.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),A.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(Pi){var n=Gl.formState;if(n!==null){a:{var r=mo;if(Pi){if(z){b:{for(var i=z,a=Ii;i.nodeType!==8;){if(!a){i=null;break b}if(i=_f(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){z=_f(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(Wl&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){Re(!0);try{e()}finally{Re(!1)}}return n.memoizedState=[r,t],r}function ws(e,t,n){return n===void 0||po&1073741824&&!(ql&261930)?e.memoizedState=t:(e.memoizedState=n,e=Cu(),mo.lanes|=e,tu|=e,n)}function Ts(e,t,n,r){return Sr(n,t)?n:Qa.current===null?!(po&42)||po&1073741824&&!(ql&261930)?(sc=!0,e.memoizedState=n):(e=Cu(),mo.lanes|=e,tu|=e,t):(e=ws(e,n,r),Sr(e,t)||(sc=!0),e)}function Es(e,t,n,r,i){var a=j.p;j.p=a!==0&&8>a?a:8;var o=A.T,s={};A.T=s,Rs(e,!1,t,n);try{var c=i(),l=A.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ls(e,t,ga(c,r),Su(e)):Ls(e,t,r,Su(e))}catch(n){Ls(e,t,{then:function(){},status:`rejected`,reason:n},Su())}finally{j.p=a,o!==null&&s.types!==null&&(o.types=s.types),A.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,re,n===null?Ds:function(){return As(e),n(r)})}function ks(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:re},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,{},Su())}function js(){return ta(sp)}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=Su();e=Ua(n);var r=Wa(t,e,n);r!==null&&(wu(r,t,n),Ga(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function Fs(e,t,n){var r=Su();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&&(wu(n,e,r),Vs(n,t,r)))}function Is(e,t,n){Ls(e,t,n,Su())}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),Gl===null&&ei(),!1}catch{}if(n=ni(e,t,i,r),n!==null)return wu(n,e,r),Vs(n,t,r),!0}return!1}function Rs(e,t,n,r){if(r={lane:2,revertLane:bd(),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&&wu(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){Re(!0);try{e()}finally{Re(!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){Re(!0);try{n(t)}finally{Re(!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(Pi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Gl===null)throw Error(i(349));ql&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=Gl.identifierPrefix;if(Pi){var n=R,r=Di;n=(r&~(1<<32-ze(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(Wl&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=Su(),i=Ua(r);i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(wu(t,e,r),Ga(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Su(),i=Ua(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(wu(t,e,r),Ga(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Su(),r=Ua(n);r.tag=2,t!=null&&(r.callback=t),t=Wa(e,r,n),t!==null&&(wu(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`&&(pu===null?pu=new Set([this]):pu.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?Fu():n.alternate===null&&eu===0&&(eu=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),ed(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)),ed(e,r,a)),!1}throw Error(i(435,n.tag))}return ed(e,r,a),Fu(),!1}if(Pi)return t=ro.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Wi(yi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=yi(r,n),a=nc(e.stateNode,r,a),Ka(e,a),eu!==4&&(eu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Wi(yi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=yi(o,n),ou===null?ou=[o]:ou.push(o),eu!==4&&(eu=2),t===null)return!0;r=yi(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`&&(pu===null||!pu.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)):(Pi&&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(Pi){if(r.mode===`hidden`)return e=hc(t,r),t.lanes=536870912,pc(null,e);if(oo(t),(e=z)?(e=pf(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ei===null?null:{id:Di,overflow:R},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,z=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=Gl,r!==null&&(s=et(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ri(e,s),wu(r,e,s),oc;Fu(),t=gc(e,t,n)}else e=o.treeContext,z=_f(s.nextSibling),Ni=t,Pi=!0,Fi=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)):(Pi&&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)):(Pi&&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|=iu),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(Pi){if(a?ao(t):co(t),(e=z)?(e=pf(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ei===null?null:{id:Di,overflow:R},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,z=null)):e=null,e===null)throw Ri(t);return hf(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),hf(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=Gl,s!==null&&(r=et(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ri(e,r),wu(s,e,r),oc;mf(c)||Fu(),t=kc(e,t,n)}else mf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,z=_f(c.nextSibling),Ni=t,Pi=!0,Fi=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,M(uo,o),cc(e,t,r,n),r=Pi?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),tu|=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:pe(t,t.stateNode.containerInfo),Ji(t,sa,e.memoizedState.cache),Hi();break;case 27:case 5:N(t);break;case 4:pe(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),M(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,Pi&&t.flags&1048576&&ki(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=ne(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(pe(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=yi(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(z=_f(e.firstChild),Ni=t,Pi=!0,Fi=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=Rf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Pi||(n=t.type,e=t.pendingProps,r=Yd(de.current).createElement(n),r[ot]=t,r[st]=e,Ud(r,n,e),yt(r),t.stateNode=r):t.memoizedState=Rf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return N(t),e===null&&Pi&&(r=t.stateNode=xf(t.type,t.pendingProps,de.current),Ni=t,Ii=!0,a=z,sf(t.type)?(vf=a,z=_f(r.firstChild)):z=a),cc(e,t,t.pendingProps.children,n),vc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pi&&((a=r=z)&&(r=df(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,Ni=t,z=_f(r.firstChild),Ii=!1,a=!0)),a||Ri(t)),N(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Qd(a,o)?r=null:s!==null&&Qd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Eo(e,t,ko,null,null,n),sp._currentValue=a),vc(e,t),cc(e,t,r,n),t.child;case 6:return e===null&&Pi&&((e=n=z)&&(n=ff(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,Ni=t,z=null,e=!0)),e||Ri(t)),null;case 13:return Ec(e,t,n);case 4:return pe(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=Gl,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(Mu())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,!$f(t))if(Mu())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:Ye(),e.lanes|=t,au|=t)}function Vc(e,t){if(!Pi)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),me(),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(he(t),n=de.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=ce.current,Vi(t)?zi(t,e):(e=xf(a,r,n),t.stateNode=e,Lc(t))}return Hc(t),null;case 5:if(he(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=ce.current,Vi(t))zi(t,o);else{var s=Yd(de.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(Ud(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=de.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||Bd(e.nodeValue,n)),e||Ri(t,!0)}else e=Yd(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 me(),e===null&&jd(t.stateNode.containerInfo),Hc(t),null;case 10:return Yi(t.type),Hc(t),null;case 19:if(se(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(eu!==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 M(uo,uo.current&1|2),Pi&&Oi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&P()>du&&(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&&!Pi)return Hc(t),null}else 2*P()-r.renderingStartTime>du&&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=P(),e.sibling=null,n=uo.current,M(uo,a?n&1|2:n&1),Pi&&Oi(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&&se(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),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return he(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 se(uo),null;case 4:return me(),null;case 10:return Yi(t.type),null;case 22:case 23:return lo(t),no(),e!==null&&se(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),me();break;case 26:case 27:case 5:he(t);break;case 4:me();break;case 31:t.memoizedState!==null&&lo(t);break;case 13:lo(t);break;case 19:se(uo);break;case 10:Yi(t.type);break;case 22:case 23:lo(t),no(),e!==null&&se(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){$u(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){$u(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){$u(t,t.return,e)}}function Jc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Za(t,n)}catch(t){$u(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){$u(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){$u(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){$u(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){$u(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){$u(e,e.return,t)}}function $c(e,t,n){try{var r=e.stateNode;Wd(r,e.type,n,t),r[st]=t}catch(t){$u(e,e.return,t)}}function el(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sf(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&&sf(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&&sf(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&&sf(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]);Ud(t,r,n),t[ot]=e,t[st]=n}catch(t){$u(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,qd=gp,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(Jd={focusedElem:e,selectionRange:n},gp=!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){$u(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)uf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:uf(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:Tl(e,n),r&4&&Kc(5,n);break;case 1:if(Tl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){$u(n,n.return,e)}else{var i=Xs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){$u(n,n.return,e)}}r&64&&Jc(n),r&512&&Xc(n,n.return);break;case 3:if(Tl(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){$u(n,n.return,e)}}break;case 27:t===null&&r&4&&il(n);case 26:case 5:Tl(e,n),t===null&&r&4&&Qc(n),r&512&&Xc(n,n.return);break;case 12:Tl(e,n);break;case 31:Tl(e,n),r&4&&gl(e,n);break;case 13:Tl(e,n),r&4&&_l(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=rd.bind(null,n),gf(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?Dl(e,n,(n.subtreeFlags&8772)!=0):Tl(e,n),al=i,ol=a}break;case 30:break;default:Tl(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 B(e,t,n){for(n=n.child;n!==null;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(Le&&typeof Le.onCommitFiberUnmount==`function`)try{Le.onCommitFiberUnmount(Ie,n)}catch{}switch(n.tag){case 26:ol||Zc(n,t),B(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;sf(n.type)&&(pl=n.stateNode,ml=!1),B(e,t,n),Sf(n.stateNode),pl=r,ml=i;break;case 5:ol||Zc(n,t);case 6:if(r=pl,i=ml,pl=null,B(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){$u(n,t,e)}else try{pl.removeChild(n.stateNode)}catch(e){$u(n,t,e)}break;case 18:pl!==null&&(ml?(e=pl,cf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Vp(e)):cf(pl,n.stateNode));break;case 4:r=pl,i=ml,pl=n.stateNode.containerInfo,ml=!0,B(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),B(e,t,n);break;case 1:ol||(Zc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Yc(n,t,r)),B(e,t,n);break;case 21:B(e,t,n);break;case 22:ol=(r=ol)||n.memoizedState!==null,B(e,t,n),ol=r;break;default:B(e,t,n)}}function gl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Vp(e)}catch(e){$u(t,t.return,e)}}}function _l(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){$u(t,t.return,e)}}function vl(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 yl(e,t){var n=vl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=id.bind(null,e,t);t.then(r,r)}})}function bl(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(sf(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));hl(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;)Sl(t,e),t=t.sibling}var xl=null;function Sl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bl(t,e),Cl(e),r&4&&(qc(3,e,e.return),Kc(3,e),qc(5,e,e.return));break;case 1:bl(t,e),Cl(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=xl;if(bl(t,e),Cl(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`))),Ud(o,r,n),o[ot]=e,yt(o),r=o;break a;case`link`:var s=Xf(`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),Ud(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Xf(`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),Ud(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 Zf(a,e.type,e.stateNode);else e.stateNode=Gf(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?Zf(a,e.type,e.stateNode):Gf(a,r,e.memoizedProps))}break;case 27:bl(t,e),Cl(e),r&512&&(ol||n===null||Zc(n,n.return)),n!==null&&r&4&&$c(e,e.memoizedProps,n.memoizedProps);break;case 5:if(bl(t,e),Cl(e),r&512&&(ol||n===null||Zc(n,n.return)),e.flags&32){a=e.stateNode;try{Kt(a,``)}catch(t){$u(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(bl(t,e),Cl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){$u(e,e.return,t)}}break;case 3:if(Yf=null,a=xl,xl=Tf(t.containerInfo),bl(t,e),xl=a,Cl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vp(t.containerInfo)}catch(t){$u(e,e.return,t)}sl&&(sl=!1,wl(e));break;case 4:r=xl,xl=Tf(e.stateNode.containerInfo),bl(t,e),Cl(e),xl=r;break;case 12:bl(t,e),Cl(e);break;case 31:bl(t,e),Cl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yl(e,r)));break;case 13:bl(t,e),Cl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(lu=P()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yl(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,bl(t,e),ol=d,al=u,Cl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||al||ol||El(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){$u(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){$u(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?lf(m,!0):lf(l.stateNode,!1)}catch(e){$u(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,yl(e,n))));break;case 19:bl(t,e),Cl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yl(e,r)));break;case 30:break;case 21:break;default:bl(t,e),Cl(e)}}function Cl(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){$u(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dl(e,t.alternate,t),t=t.sibling}function El(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),El(t);break;case 1:Zc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Yc(t,t.return,n),El(t);break;case 27:Sf(t.stateNode);case 26:case 5:Zc(t,t.return),El(t);break;case 22:t.memoizedState===null&&El(t);break;case 30:El(t);break;default:El(t)}e=e.sibling}}function Dl(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:Dl(i,a,n),Kc(4,a);break;case 1:if(Dl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){$u(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){$u(r,r.return,e)}}n&&o&64&&Jc(a),Xc(a,a.return);break;case 27:il(a);case 26:case 5:Dl(i,a,n),n&&r===null&&o&4&&Qc(a),Xc(a,a.return);break;case 12:Dl(i,a,n);break;case 31:Dl(i,a,n),n&&o&4&&gl(i,a);break;case 13:Dl(i,a,n),n&&o&4&&_l(i,a);break;case 22:a.memoizedState===null&&Dl(i,a,n),Xc(a,a.return);break;case 30:break;default:Dl(i,a,n)}t=t.sibling}}function Ol(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 kl(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 Al(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jl(e,t,n,r),t=t.sibling}function jl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Al(e,t,n,r),i&2048&&Kc(9,t);break;case 1:Al(e,t,n,r);break;case 3:Al(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){Al(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){$u(t,t.return,e)}}else Al(e,t,n,r);break;case 31:Al(e,t,n,r);break;case 13:Al(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Al(e,t,n,r):(a._visibility|=2,Ml(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Al(e,t,n,r):Nl(e,t),i&2048&&Ol(o,t);break;case 24:Al(e,t,n,r),i&2048&&kl(t.alternate,t);break;default:Al(e,t,n,r)}}function Ml(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:Ml(a,o,s,c,i),Kc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ml(a,o,s,c,i)):u._visibility&2?Ml(a,o,s,c,i):Nl(a,o),i&&l&2048&&Ol(o.alternate,o);break;case 24:Ml(a,o,s,c,i),i&&l&2048&&kl(o.alternate,o);break;default:Ml(a,o,s,c,i)}t=t.sibling}}function Nl(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:Nl(n,r),i&2048&&Ol(r.alternate,r);break;case 24:Nl(n,r),i&2048&&kl(r.alternate,r);break;default:Nl(n,r)}t=t.sibling}}var Pl=8192;function Fl(e,t,n){if(e.subtreeFlags&Pl)for(e=e.child;e!==null;)Il(e,t,n),e=e.sibling}function Il(e,t,n){switch(e.tag){case 26:Fl(e,t,n),e.flags&Pl&&e.memoizedState!==null&&ep(n,xl,e.memoizedState,e.memoizedProps);break;case 5:Fl(e,t,n);break;case 3:case 4:var r=xl;xl=Tf(e.stateNode.containerInfo),Fl(e,t,n),xl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Pl,Pl=16777216,Fl(e,t,n),Pl=r):Fl(e,t,n));break;default:Fl(e,t,n)}}function Ll(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 Rl(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,Vl(r,e)}Ll(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zl(e),e=e.sibling}function zl(e){switch(e.tag){case 0:case 11:case 15:Rl(e),e.flags&2048&&qc(9,e,e.return);break;case 3:Rl(e);break;case 12:Rl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Bl(e)):Rl(e);break;default:Rl(e)}}function Bl(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,Vl(r,e)}Ll(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qc(8,t,t.return),Bl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Bl(t));break;default:Bl(t)}e=e.sibling}}function Vl(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 Hl={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}},Ul=typeof WeakMap==`function`?WeakMap:Map,Wl=0,Gl=null,Kl=null,ql=0,Jl=0,Yl=null,Xl=!1,Zl=!1,Ql=!1,$l=0,eu=0,tu=0,nu=0,ru=0,iu=0,au=0,ou=null,su=null,cu=!1,lu=0,uu=0,du=1/0,fu=null,pu=null,mu=0,hu=null,gu=null,_u=0,vu=0,yu=null,bu=null,xu=0,V=null;function Su(){return Wl&2&&ql!==0?ql&-ql:A.T===null?rt():bd()}function Cu(){if(iu===0)if(!(ql&536870912)||Pi){var e=We;We<<=1,!(We&3932160)&&(We=262144),iu=e}else iu=536870912;return e=ro.current,e!==null&&(e.flags|=32),iu}function wu(e,t,n){(e===Gl&&(Jl===2||Jl===9)||e.cancelPendingCommit!==null)&&(H(e,0),Ou(e,ql,iu,!1)),Xe(e,n),(!(Wl&2)||e!==Gl)&&(e===Gl&&(!(Wl&2)&&(nu|=n),eu===4&&Ou(e,ql,iu,!1)),fd(e))}function Tu(e,t,n){if(Wl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||qe(e,t),a=r?Ru(e,t):Iu(e,t,!0),o=r;do{if(a===0){Zl&&!r&&Ou(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Du(n)){a=Iu(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=ou;var l=c.current.memoizedState.isDehydrated;if(l&&(H(c,s).flags|=256),s=Iu(c,s,!1),s!==2){if(Ql&&!l){c.errorRecoveryDisabledLanes|=o,nu|=o,a=4;break a}o=su,su=a,o!==null&&(su===null?su=o:su.push.apply(su,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){H(e,0),Ou(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:Ou(r,t,iu,!Xl);break a;case 2:su=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=lu+300-P(),10<a)){if(Ou(r,t,iu,!Xl),Ke(r,0,!0)!==0)break a;_u=t,r.timeoutHandle=tf(Eu.bind(null,r,n,su,fu,cu,t,iu,nu,au,Xl,o,`Throttled`,-0,0),a);break a}Eu(r,n,su,fu,cu,t,iu,nu,au,Xl,o,null,-0,0)}}break}while(1);fd(e)}function Eu(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},Il(t,a,d);var m=(a&62914560)===a?lu-P():(a&4194048)===a?uu-P():0;if(m=np(d,m),m!==null){_u=a,e.cancelPendingCommit=m(Gu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Ou(e,a,o,!l);return}}Gu(e,t,a,n,r,i,o,s,c)}function Du(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 Ou(e,t,n,r){t&=~ru,t&=~nu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-ze(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Qe(e,n,t)}function ku(){return Wl&6?!0:(pd(0,!1),!1)}function Au(){if(Kl!==null){if(Jl===0)var e=Kl.return;else e=Kl,qi=Ki=null,Mo(e),Ma=null,Na=0,e=Kl;for(;e!==null;)Gc(e.alternate,e),e=e.return;Kl=null}}function H(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,nf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),_u=0,Au(),Gl=e,Kl=n=ui(e.current,null),ql=t,Jl=0,Yl=null,Xl=!1,Zl=qe(e,t),Ql=!1,au=iu=ru=nu=tu=eu=0,su=ou=null,cu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-ze(r),a=1<<i;t|=e[i],r&=~a}return $l=t,ei(),n}function ju(e,t){mo=null,A.H=Hs,t===Sa||t===wa?(t=Aa(),Jl=3):t===Ca?(t=Aa(),Jl=4):Jl=t===oc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Yl=t,Kl===null&&(eu=1,ec(e,yi(t,e.current)))}function Mu(){var e=ro.current;return e===null?!0:(ql&4194048)===ql?io===null:(ql&62914560)===ql||ql&536870912?e===io:!1}function Nu(){var e=A.H;return A.H=Hs,e===null?Hs:e}function Pu(){var e=A.A;return A.A=Hl,e}function Fu(){eu=4,Xl||(ql&4194048)!==ql&&ro.current!==null||(Zl=!0),!(tu&134217727)&&!(nu&134217727)||Gl===null||Ou(Gl,ql,iu,!1)}function Iu(e,t,n){var r=Wl;Wl|=2;var i=Nu(),a=Pu();(Gl!==e||ql!==t)&&(fu=null,H(e,t)),t=!1;var o=eu;a:do try{if(Jl!==0&&Kl!==null){var s=Kl,c=Yl;switch(Jl){case 8:Au(),o=6;break a;case 3:case 2:case 9:case 6:ro.current===null&&(t=!0);var l=Jl;if(Jl=0,Yl=null,Hu(e,s,c,l),n&&Zl){o=0;break a}break;default:l=Jl,Jl=0,Yl=null,Hu(e,s,c,l)}}Lu(),o=eu;break}catch(t){ju(e,t)}while(1);return t&&e.shellSuspendCounter++,qi=Ki=null,Wl=r,A.H=i,A.A=a,Kl===null&&(Gl=null,ql=0,ei()),o}function Lu(){for(;Kl!==null;)Bu(Kl)}function Ru(e,t){var n=Wl;Wl|=2;var r=Nu(),a=Pu();Gl!==e||ql!==t?(fu=null,du=P()+500,H(e,t)):Zl=qe(e,t);a:do try{if(Jl!==0&&Kl!==null){t=Kl;var o=Yl;b:switch(Jl){case 1:Jl=0,Yl=null,Hu(e,t,o,1);break;case 2:case 9:if(Ea(o)){Jl=0,Yl=null,Vu(t);break}t=function(){Jl!==2&&Jl!==9||Gl!==e||(Jl=7),fd(e)},o.then(t,t);break a;case 3:Jl=7;break a;case 4:Jl=5;break a;case 7:Ea(o)?(Jl=0,Yl=null,Vu(t)):(Jl=0,Yl=null,Hu(e,t,o,7));break;case 5:var s=null;switch(Kl.tag){case 26:s=Kl.memoizedState;case 5:case 27:var c=Kl;if(s?$f(s):c.stateNode.complete){Jl=0,Yl=null;var l=c.sibling;if(l!==null)Kl=l;else{var u=c.return;u===null?Kl=null:(Kl=u,Uu(u))}break b}}Jl=0,Yl=null,Hu(e,t,o,5);break;case 6:Jl=0,Yl=null,Hu(e,t,o,6);break;case 8:Au(),eu=6;break a;default:throw Error(i(462))}}zu();break}catch(t){ju(e,t)}while(1);return qi=Ki=null,A.H=r,A.A=a,Wl=n,Kl===null?(Gl=null,ql=0,ei(),eu):0}function zu(){for(;Kl!==null&&!Ee();)Bu(Kl)}function Bu(e){var t=Ic(e.alternate,e,$l);e.memoizedProps=e.pendingProps,t===null?Uu(e):Kl=t}function Vu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=bc(n,t,t.pendingProps,t.type,void 0,ql);break;case 11:t=bc(n,t,t.pendingProps,t.type.render,t.ref,ql);break;case 5:Mo(t);default:Gc(n,t),t=Kl=di(t,$l),t=Ic(n,t,$l)}e.memoizedProps=e.pendingProps,t===null?Uu(e):Kl=t}function Hu(e,t,n,r){qi=Ki=null,Mo(t),Ma=null,Na=0;var i=t.return;try{if(ac(e,i,t,n,ql)){eu=1,ec(e,yi(n,e.current)),Kl=null;return}}catch(t){if(i!==null)throw Kl=i,t;eu=1,ec(e,yi(n,e.current)),Kl=null;return}t.flags&32768?(Pi||r===1?e=!0:Zl||ql&536870912?e=!1:(Xl=e=!0,(r===2||r===9||r===3||r===6)&&(r=ro.current,r!==null&&r.tag===13&&(r.flags|=16384))),Wu(t,e)):Uu(t)}function Uu(e){var t=e;do{if(t.flags&32768){Wu(t,Xl);return}e=t.return;var n=Uc(t.alternate,t,$l);if(n!==null){Kl=n;return}if(t=t.sibling,t!==null){Kl=t;return}Kl=t=e}while(t!==null);eu===0&&(eu=5)}function Wu(e,t){do{var n=Wc(e.alternate,e);if(n!==null){n.flags&=32767,Kl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Kl=e;return}Kl=e=n}while(e!==null);eu=6,Kl=null}function Gu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Xu();while(mu!==0);if(Wl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=$r,Ze(e,n,o,s,c,l),e===Gl&&(Kl=Gl=null,ql=0),gu=t,hu=e,_u=n,vu=o,yu=a,bu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ad(je,function(){return Zu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=A.T,A.T=null,a=j.p,j.p=2,s=Wl,Wl|=4;try{ul(e,t,n)}finally{Wl=s,j.p=a,A.T=r}}mu=1,Ku(),qu(),Ju()}}function Ku(){if(mu===1){mu=0;var e=hu,t=gu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=Wl;Wl|=4;try{Sl(t,e);var a=Jd,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}}gp=!!qd,Jd=qd=null}finally{Wl=i,j.p=r,A.T=n}}e.current=t,mu=2}}function qu(){if(mu===2){mu=0;var e=hu,t=gu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=Wl;Wl|=4;try{dl(e,t.alternate,t)}finally{Wl=i,j.p=r,A.T=n}}mu=3}}function Ju(){if(mu===4||mu===3){mu=0,De();var e=hu,t=gu,n=_u,r=bu;t.subtreeFlags&10256||t.flags&10256?mu=5:(mu=0,gu=hu=null,Yu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(pu=null),nt(n),t=t.stateNode,Le&&typeof Le.onCommitFiberRoot==`function`)try{Le.onCommitFiberRoot(Ie,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=A.T,i=j.p,j.p=2,A.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{A.T=t,j.p=i}}_u&3&&Xu(),fd(e),i=e.pendingLanes,n&261930&&i&42?e===V?xu++:(xu=0,V=e):xu=0,pd(0,!1)}}function Yu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,la(t)))}function Xu(){return Ku(),qu(),Ju(),Zu()}function Zu(){if(mu!==5)return!1;var e=hu,t=vu;vu=0;var n=nt(_u),r=A.T,a=j.p;try{j.p=32>n?32:n,A.T=null,n=yu,yu=null;var o=hu,s=_u;if(mu=0,gu=hu=null,_u=0,Wl&6)throw Error(i(331));var c=Wl;if(Wl|=4,zl(o.current),jl(o,o.current,s,n),Wl=c,pd(0,!1),Le&&typeof Le.onPostCommitFiberRoot==`function`)try{Le.onPostCommitFiberRoot(Ie,o)}catch{}return!0}finally{j.p=a,A.T=r,Yu(e,t)}}function Qu(e,t,n){t=yi(n,t),t=nc(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(Xe(e,2),fd(e))}function $u(e,t,n){if(e.tag===3)Qu(e,e,n);else for(;t!==null;){if(t.tag===3){Qu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(pu===null||!pu.has(r))){e=yi(n,e),n=rc(2),r=Wa(t,n,2),r!==null&&(ic(n,r,t,e),Xe(r,2),fd(r));break}}t=t.return}}function ed(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ul;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)||(Ql=!0,i.add(n),e=td.bind(null,e,t,n),t.then(e,e))}function td(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Gl===e&&(ql&n)===n&&(eu===4||eu===3&&(ql&62914560)===ql&&300>P()-lu?!(Wl&2)&&H(e,0):ru|=n,au===ql&&(au=0)),fd(e)}function nd(e,t){t===0&&(t=Ye()),e=ri(e,t),e!==null&&(Xe(e,t),fd(e))}function rd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nd(e,n)}function id(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),nd(e,n)}function ad(e,t){return we(e,t)}var od=null,sd=null,cd=!1,ld=!1,ud=!1,dd=0;function fd(e){e!==sd&&e.next===null&&(sd===null?od=sd=e:sd=sd.next=e),ld=!0,cd||(cd=!0,yd())}function pd(e,t){if(!ud&&ld){ud=!0;do for(var n=!1,r=od;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-ze(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,vd(r,a))}else a=ql,a=Ke(r,r===Gl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||qe(r,a)||(n=!0,vd(r,a));r=r.next}while(n);ud=!1}}function md(){hd()}function hd(){ld=cd=!1;var e=0;dd!==0&&ef()&&(e=dd);for(var t=P(),n=null,r=od;r!==null;){var i=r.next,a=gd(r,t);a===0?(r.next=null,n===null?od=i:n.next=i,i===null&&(sd=n)):(n=r,(e!==0||a&3)&&(ld=!0)),r=i}mu!==0&&mu!==5||pd(e,!1),dd!==0&&(dd=0)}function gd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-ze(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Je(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Gl,n=ql,n=Ke(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Jl===2||Jl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Te(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||qe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Te(r),nt(n)){case 2:case 8:n=Ae;break;case 32:n=je;break;case 268435456:n=Ne;break;default:n=je}return r=_d.bind(null,e),n=we(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Te(r),e.callbackPriority=2,e.callbackNode=null,2}function _d(e,t){if(mu!==0&&mu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xu()&&e.callbackNode!==n)return null;var r=ql;return r=Ke(e,e===Gl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Tu(e,r,t),gd(e,P()),e.callbackNode!=null&&e.callbackNode===n?_d.bind(null,e):null)}function vd(e,t){if(Xu())return null;Tu(e,t,!0)}function yd(){af(function(){Wl&6?we(ke,md):hd()})}function bd(){if(dd===0){var e=fa;e===0&&(e=Ue,Ue<<=1,!(Ue&261888)&&(Ue=256)),dd=e}return dd}function xd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:$t(``+e)}function Sd(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 Cd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=xd((i[st]||null).action),o=r.submitter;o&&(t=(t=o[st]||null)?xd(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(dd!==0){var e=o?Sd(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?Sd(i,o):new FormData(i),Os(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var wd=0;wd<Jr.length;wd++){var Td=Jr[wd];Yr(Td.toLowerCase(),`on`+(Td[0].toUpperCase()+Td.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 Ed=`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(` `),Dd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Ed));function Od(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 U(e,t){var n=t[lt];n===void 0&&(n=t[lt]=new Set);var r=e+`__bubble`;n.has(r)||(Md(t,e,2,!1),n.add(r))}function kd(e,t,n){var r=0;t&&(r|=4),Md(n,e,r,t)}var Ad=`_reactListening`+Math.random().toString(36).slice(2);function jd(e){if(!e[Ad]){e[Ad]=!0,bt.forEach(function(t){t!==`selectionchange`&&(Dd.has(t)||kd(t,!1,e),kd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ad]||(t[Ad]=!0,kd(`selectionchange`,!1,t))}}function Md(e,t,n,r){switch(Sp(t)){case 2:var i=_p;break;case 8:i=vp;break;default:i=yp}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 Nd(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(W(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=Fd,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&&Id(s,c,l,d,!1),u!==null&&f!==null&&Id(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(ir(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)){ar(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`:(ir(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 L?$n(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Xn&&n.locale!==`ko`&&(L||x!==`onCompositionStart`?x===`onCompositionEnd`&&L&&(b=gn()):(pn=i,mn=`value`in pn?pn.value:pn.textContent,L=!0)),y=Pd(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?tr(e,n):nr(e,n))&&(x=Pd(r,`onBeforeInput`),0<x.length&&(y=new Pn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),Cd(s,e,r,n,i)}Od(s,t)})}function W(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pd(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(W(e,i,a)),i=ln(e,t),i!=null&&r.push(W(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Fd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Id(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(W(n,l,c))):i||(l=ln(n,a),l!=null&&o.push(W(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ld=/\r\n?/g,Rd=/\u0000|\uFFFD/g;function zd(e){return(typeof e==`string`?e:``+e).replace(Ld,`
|
|
10
|
+
`).replace(Rd,``)}function Bd(e,t){return t=zd(t),zd(e)===t}function Vd(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`&&Vd(e,t,`name`,a.name,a,null),Vd(e,t,`formEncType`,a.formEncType,a,null),Vd(e,t,`formMethod`,a.formMethod,a,null),Vd(e,t,`formTarget`,a.formTarget,a,null)):(Vd(e,t,`encType`,a.encType,a,null),Vd(e,t,`method`,a.method,a,null),Vd(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&&U(`scroll`,e);break;case`onScrollEnd`:r!=null&&U(`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`:U(`beforetoggle`,e),U(`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 Hd(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&&U(`scroll`,e);break;case`onScrollEnd`:r!=null&&U(`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 Ud(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:U(`error`,e),U(`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:Vd(e,t,o,s,n,null)}}a&&Vd(e,t,`srcSet`,n.srcSet,n,null),r&&Vd(e,t,`src`,n.src,n,null);return;case`input`:U(`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:Vd(e,t,r,d,n,null)}}Vt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in U(`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:Vd(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 U(`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:Vd(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:Vd(e,t,l,r,n,null)}return;case`dialog`:U(`beforetoggle`,e),U(`toggle`,e),U(`cancel`,e),U(`close`,e);break;case`iframe`:case`object`:U(`load`,e);break;case`video`:case`audio`:for(r=0;r<Ed.length;r++)U(Ed[r],e);break;case`image`:U(`error`,e),U(`load`,e);break;case`details`:U(`toggle`,e);break;case`embed`:case`source`:case`link`:U(`error`,e),U(`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:Vd(e,t,u,r,n,null)}return;default:if(Xt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Hd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Vd(e,t,c,r,n,null))}function Wd(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)||Vd(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&&Vd(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)||Vd(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&&Vd(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:Vd(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&&Vd(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:Vd(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:Vd(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)&&Vd(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:Vd(e,t,u,p,r,m)}return;default:if(Xt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Hd(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||Hd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Vd(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||Vd(e,t,f,p,r,m)}function Gd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Kd(){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&&Gd(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&&Gd(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 qd=null,Jd=null;function Yd(e){return e.nodeType===9?e:e.ownerDocument}function Xd(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 Zd(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 Qd(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 $d=null;function ef(){var e=window.event;return e&&e.type===`popstate`?e===$d?!1:($d=e,!0):($d=null,!1)}var tf=typeof setTimeout==`function`?setTimeout:void 0,nf=typeof clearTimeout==`function`?clearTimeout:void 0,rf=typeof Promise==`function`?Promise:void 0,af=typeof queueMicrotask==`function`?queueMicrotask:rf===void 0?tf:function(e){return rf.resolve(null).then(e).catch(of)};function of(e){setTimeout(function(){throw e})}function sf(e){return e===`head`}function cf(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`)Sf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Sf(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`&&Sf(e.ownerDocument.body);n=i}while(n);Vp(t)}function lf(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 uf(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`:uf(n),mt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function df(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=_f(e.nextSibling),e===null)break}return null}function ff(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=_f(e.nextSibling),e===null))return null;return e}function pf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=_f(e.nextSibling),e===null))return null;return e}function mf(e){return e.data===`$?`||e.data===`$~`}function hf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function gf(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 _f(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 vf=null;function yf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return _f(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function bf(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 xf(e,t,n){switch(t=Yd(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 Sf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mt(e)}var Cf=new Map,wf=new Set;function Tf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ef=j.d;j.d={f:Df,r:Of,D:jf,C:Mf,L:Nf,m:Pf,X:If,S:Ff,M:Lf};function Df(){var e=Ef.f(),t=ku();return e||t}function Of(e){var t=gt(e);t!==null&&t.tag===5&&t.type===`form`?As(t):Ef.r(e)}var kf=typeof document>`u`?null:document;function Af(e,t,n){var r=kf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wf.has(i)||(wf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ud(t,`link`,e),yt(t),r.head.appendChild(t)))}}function jf(e){Ef.D(e),Af(`dns-prefetch`,e,null)}function Mf(e,t){Ef.C(e,t),Af(`preconnect`,e,t)}function Nf(e,t,n){Ef.L(e,t,n);var r=kf;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=zf(e);break;case`script`:a=Uf(e)}Cf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Bf(a))||t===`script`&&r.querySelector(Wf(a))||(t=r.createElement(`link`),Ud(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Pf(e,t){Ef.m(e,t);var n=kf;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=Uf(e)}if(!Cf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Cf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Wf(a)))return}r=n.createElement(`link`),Ud(r,`link`,e),yt(r),n.head.appendChild(r)}}}function Ff(e,t,n){Ef.S(e,t,n);var r=kf;if(r&&e){var i=vt(r).hoistableStyles,a=zf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Bf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cf.get(a))&&qf(e,n);var c=o=r.createElement(`link`);yt(c),Ud(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,Kf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function If(e,t){Ef.X(e,t);var n=kf;if(n&&e){var r=vt(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),yt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t){Ef.M(e,t);var n=kf;if(n&&e){var r=vt(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),yt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rf(e,t,n,r){var a=(a=de.current)?Tf(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=zf(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=zf(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(Bf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Cf.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},Cf.set(e,n),o||Hf(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=Uf(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 zf(e){return`href="`+zt(e)+`"`}function Bf(e){return`link[rel="stylesheet"][`+e+`]`}function Vf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Hf(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}),Ud(t,`link`,n),yt(t),e.head.appendChild(t))}function Uf(e){return`[src="`+zt(e)+`"]`}function Wf(e){return`script[async]`+e}function Gf(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),Ud(r,`style`,a),Kf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=zf(n.href);var o=e.querySelector(Bf(a));if(o)return t.state.loading|=4,t.instance=o,yt(o),o;r=Vf(n),(a=Cf.get(a))&&qf(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}),Ud(o,`link`,r),t.state.loading|=4,Kf(o,n.precedence,e),t.instance=o;case`script`:return o=Uf(n.src),(a=e.querySelector(Wf(o)))?(t.instance=a,yt(a),a):(r=n,(a=Cf.get(o))&&(r=f({},n),Jf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),yt(a),Ud(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,Kf(r,n.precedence,e));return t.instance}function Kf(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 qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Jf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Yf=null;function Xf(e,t,n){if(Yf===null){var r=new Map,i=Yf=new Map;i.set(n,r)}else i=Yf,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 Zf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Qf(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 $f(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ep(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=zf(r.href),a=t.querySelector(Bf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Vf(r),(i=Cf.get(i))&&qf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ud(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=rp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var tp=0;function np(e,t){return e.stylesheets&&e.count===0&&ap(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&tp===0&&(tp=62500*Kd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>tp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ap(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ip=null;function ap(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ip=new Map,t.forEach(op,e),ip=null,rp.call(e))}function op(e,t){if(!(t.state.loading&4)){var n=ip.get(e);if(n)var r=n.get(null);else{n=new Map,ip.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=rp.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 sp={$$typeof:b,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function cp(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=I(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=I(0),this.hiddenUpdates=I(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 lp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new cp(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 up(e){return e?(e=oi,e):oi}function dp(e,t,n,r,i,a){i=up(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&&(wu(n,e,t),Ga(n,e,t))}function fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pp(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function mp(e){if(e.tag===13||e.tag===31){var t=ri(e,67108864);t!==null&&wu(t,e,67108864),pp(e,67108864)}}function hp(e){if(e.tag===13||e.tag===31){var t=Su();t=tt(t);var n=ri(e,t);n!==null&&wu(n,e,t),pp(e,t)}}var gp=!0;function _p(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=2,yp(e,t,n,r)}finally{j.p=a,A.T=i}}function vp(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=8,yp(e,t,n,r)}finally{j.p=a,A.T=i}}function yp(e,t,n,r){if(gp){var i=G(r);if(i===null)Nd(e,t,r,bp,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=Ge(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-ze(o);s.entanglements[1]|=c,o&=~c}fd(a),!(Wl&6)&&(du=P()+500,pd(0,!1))}}break;case 31:case 13:s=ri(a,2),s!==null&&wu(s,a,2),ku(),pp(a,2)}if(a=G(r),a===null&&Nd(e,t,r,bp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Nd(e,t,r,null,n)}}function G(e){return e=nn(e),xp(e)}var bp=null;function xp(e){if(bp=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 bp=e,null}function Sp(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(Oe()){case ke:return 2;case Ae:return 8;case je:case Me:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var Cp=!1,wp=null,Tp=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`:wp=null;break;case`dragenter`:case`dragleave`:Tp=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&&mp(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 wp=Mp(wp,e,t,n,r,i),!0;case`dragenter`:return Tp=Mp(Tp,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(){hp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,it(e.priority,function(){hp(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=G(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&&mp(t),e.blockedOn=n,!1;t.shift()}return!0}function Ip(e,t,n){Fp(e)&&n.delete(t)}function Lp(){Cp=!1,wp!==null&&Fp(wp)&&(wp=null),Tp!==null&&Fp(Tp)&&(Tp=null),Ep!==null&&Fp(Ep)&&(Ep=null),Dp.forEach(Ip),Op.forEach(Ip)}function Rp(e,n){e.blockedOn===n&&(e.blockedOn=null,Cp||(Cp=!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(xp(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)}wp!==null&&Rp(wp,e),Tp!==null&&Rp(Tp,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(xp(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;dp(n,Su(),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;dp(e.current,2,null,e,null,null),ku(),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`));j.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:A,reconcilerVersion:`19.2.4`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var qp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qp.isDisabled&&qp.supportsFiber)try{Ie=qp.inject(Kp),Le=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=lp(e,1,!1,null,null,n,r,null,o,s,c,Hp),e[ct]=t.current,jd(e),new Up(t)}})),bi=_(((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=yi()})),xi=class extends r{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 ut({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=Si(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=Si(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=Si(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=Si(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){a.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=>E(t,e))}findAll(e={}){return this.getAll().filter(t=>E(e,t))}notify(e){a.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return a.batch(()=>Promise.all(e.map(e=>e.continue().catch(ne))))}};function Si(e){return e.options.scope?.id}function Ci(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}function wi(e,t,n){let r=e.slice(0);return r[t]=n,r}var Ti=class extends r{#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,a.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||!A(e,n)});!o&&!s||(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(Ci(e,n).forEach(e=>{e.destroy()}),Ci(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=y(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 be(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#p(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=wi(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)&&a.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},Ei=class extends r{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Ie(r,t),a=this.get(i);return a||(a=new ct({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(){a.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=>O(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>O(e,t)):t}notify(e){a.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){a.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){a.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Di=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Ei,this.#t=e.mutationCache||new xi,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=at.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ie.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(w(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=Le(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return a.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;a.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return a.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=a.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(ne).catch(ne)}invalidateQueries(e,t={}){return a.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=a.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(ne)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(ne)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(w(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ne).catch(ne)}fetchInfiniteQuery(e){return e.behavior=zn(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ne).catch(ne)}ensureInfiniteQueryData(e){return e.behavior=zn(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ie.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(n(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{d(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(n(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{d(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||=Ie(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===dt&&(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=S(le(),1);function Oi({queries:e,...t},n){let r=_e(n),i=je(),o=He(),s=R.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:`optimistic`,t}),[e,r,i]);s.forEach(e=>{Xe(e),we(e,o,r.getQueryCache().get(e.queryHash))}),qe(o);let[c]=R.useState(()=>new Ti(r,s,t)),[l,u,d]=c.getOptimisticResult(s,t.combine),f=!i&&t.subscribed!==!1;R.useSyncExternalStore(R.useCallback(e=>f?c.subscribe(a.batchCalls(e)):ne,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),R.useEffect(()=>{c.setQueries(s,t)},[s,t,c]);let p=l.some((e,t)=>ze(s[t],e))?l.flatMap((e,t)=>{let n=s[t];if(n){let t=new be(r,n);if(ze(n,e))return xe(n,t,o);et(e,i)&&xe(n,t,o)}return[]}):[];if(p.length>0)throw Promise.all(p);let m=l.find((e,t)=>{let n=s[t];return n&&De({result:e,errorResetBoundary:o,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(m?.error)throw m.error;return u(d())}function ki(e,t){let n=_e(t);return ji({filters:{...e,status:`pending`}},n).length}function Ai(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}function ji(e={},t){let n=_e(t).getMutationCache(),r=R.useRef(e),i=R.useRef(null);return i.current===null&&(i.current=Ai(n,e)),R.useEffect(()=>{r.current=e}),R.useSyncExternalStore(R.useCallback(e=>n.subscribe(()=>{let t=y(i.current,Ai(n,r.current));i.current!==t&&(i.current=t,a.schedule(e))}),[n]),()=>i.current,()=>i.current)}var Mi=bi(),Ni=S(Et(),1),z=rt(),Pi=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,n)=>{let r=t(`Primitive.${n}`),i=R.forwardRef((e,t)=>{let{asChild:i,...a}=e,o=i?r:n;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,z.jsx)(o,{...a,ref:t})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{}),Fi=`Separator`,Ii=`horizontal`,Li=[`horizontal`,`vertical`],Ri=R.forwardRef((e,t)=>{let{decorative:n,orientation:r=Ii,...i}=e,a=zi(r)?r:Ii,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,z.jsx)(Pi.div,{"data-orientation":a,...o,...i,ref:t})});Ri.displayName=Fi;function zi(e){return Li.includes(e)}var Bi=Ri,Vi=R.forwardRef(({className:e,orientation:t=`horizontal`,decorative:n=!0,...r},i)=>(0,z.jsx)(Bi,{ref:i,decorative:n,orientation:t,className:I(`shrink-0 bg-border`,t===`horizontal`?`h-[1px] w-full`:`h-full w-[1px]`,e),...r}));Vi.displayName=Bi.displayName;function Hi({className:e,...t}){return(0,z.jsx)(`div`,{className:I(`animate-pulse rounded-md bg-surface-selected`,e),...t})}var Ui=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`}),Wi=`VisuallyHidden`,Gi=R.forwardRef((e,t)=>(0,z.jsx)(On.span,{...e,ref:t,style:{...Ui,...e.style}}));Gi.displayName=Wi;var Ki=Gi,[qi,Ji]=jn(`Tooltip`,[En]),Yi=En(),Xi=`TooltipProvider`,Zi=700,Qi=`tooltip.open`,[$i,ea]=qi(Xi),ta=e=>{let{__scopeTooltip:t,delayDuration:n=Zi,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)($i,{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})};ta.displayName=Xi;var na=`Tooltip`,[ra,ia]=qi(na),aa=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=ea(na,e.__scopeTooltip),l=Yi(t),[u,d]=R.useState(null),f=ln(),p=R.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=R.useRef(!1),[_,v]=Wt({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Qi))):c.onClose(),a?.(e)},caller:na}),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)(yn,{...l,children:(0,z.jsx)(ra,{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})})};aa.displayName=na;var oa=`TooltipTrigger`,sa=R.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=ia(oa,n),a=ea(oa,n),o=Yi(n),s=$e(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)(mt,{asChild:!0,...o,children:(0,z.jsx)(On.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:en(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:en(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:en(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:en(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:en(e.onBlur,i.onClose),onClick:en(e.onClick,i.onClose)})})});sa.displayName=oa;var ca=`TooltipPortal`,[la,ua]=qi(ca,{forceMount:void 0}),da=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=ia(ca,t);return(0,z.jsx)(la,{scope:t,forceMount:n,children:(0,z.jsx)(Kt,{present:n||a.open,children:(0,z.jsx)(Lt,{asChild:!0,container:i,children:r})})})};da.displayName=ca;var fa=`TooltipContent`,pa=R.forwardRef((e,t)=>{let n=ua(fa,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=ia(fa,e.__scopeTooltip);return(0,z.jsx)(Kt,{present:r||o.open,children:o.disableHoverableContent?(0,z.jsx)(va,{side:i,...a,ref:t}):(0,z.jsx)(ma,{side:i,...a,ref:t})})}),ma=R.forwardRef((e,t)=>{let n=ia(fa,e.__scopeTooltip),r=ea(fa,e.__scopeTooltip),i=R.useRef(null),a=$e(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=Sa(r,xa(r,n.getBoundingClientRect())),a=Ca(t.getBoundingClientRect());s(Ta([...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=!wa(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,z.jsx)(va,{...e,ref:a})}),[ha,ga]=qi(na,{isInside:!1}),_a=hn(`TooltipContent`),va=R.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=ia(fa,n),l=Yi(n),{onClose:u}=c;return R.useEffect(()=>(document.addEventListener(Qi,u),()=>document.removeEventListener(Qi,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)(Yt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,z.jsxs)(kn,{"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)(_a,{children:r}),(0,z.jsx)(ha,{scope:n,isInside:!0,children:(0,z.jsx)(Ki,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});pa.displayName=fa;var ya=`TooltipArrow`,ba=R.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Yi(n);return ga(ya,n).isInside?null:(0,z.jsx)(tn,{...i,...r,ref:t})});ba.displayName=ya;function xa(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 Sa(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 Ca(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 wa(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 Ta(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)),Ea(t)}function Ea(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 Da=ta,Oa=aa,ka=sa,Aa=da,ja=pa,Ma=Da,Na=Oa,Pa=ka,Fa=R.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,z.jsx)(Aa,{children:(0,z.jsx)(ja,{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})}));Fa.displayName=ja.displayName;var Ia=`16rem`,La=`min(90vw, 320px)`,Ra=`3rem`,za=`b`,Ba=`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`,Va=`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,Ha=`h-8`,Ua={"--sidebar-width-mobile":La},Wa=R.createContext(null);function Ga(){let e=R.useContext(Wa);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Ka(){let{state:e,isCompactViewport:t,openMobile:n}=Ga();return t?n:e===`expanded`}var qa=R.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o},s)=>{let c=It(),[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===za&&(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)(Wa.Provider,{value:_,children:(0,z.jsx)(Ma,{delayDuration:0,children:(0,z.jsx)(`div`,{style:{"--sidebar-width":Ia,"--sidebar-width-icon":Ra,...i},className:I(`group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar`,r),ref:s,...o,children:a})})})});qa.displayName=`SidebarProvider`;var Ja=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}=Ga();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:Ua,...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})})]})]})});Ja.displayName=`Sidebar`;var Ya=R.forwardRef(({className:e,onClick:t,...n},r)=>{let{toggleSidebar:i}=Ga();return(0,z.jsxs)(N,{ref:r,"data-sidebar":`trigger`,variant:`ghost`,size:`icon`,className:I(Xt,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`})]})});Ya.displayName=`SidebarTrigger`;var Xa=R.forwardRef(({className:e,...t},n)=>{let{toggleSidebar:r}=Ga();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})});Xa.displayName=`SidebarRail`;var Za=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}));Za.displayName=`SidebarInset`;var Qa=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(pr,{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}));Qa.displayName=`SidebarInput`;var $a=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}));$a.displayName=`SidebarHeader`;var eo=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}));eo.displayName=`SidebarFooter`;var to=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(Vi,{ref:n,"data-sidebar":`separator`,className:I(`mx-2 w-auto bg-sidebar-border`,e),...t}));to.displayName=`SidebarSeparator`;var no=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}));no.displayName=`SidebarContent`;var ro=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}));ro.displayName=`SidebarGroup`;var io=R.forwardRef(({className:e,asChild:t=!1,...n},r)=>(0,z.jsx)(t?k:`div`,{ref:r,"data-sidebar":`group-label`,className:I(Ba,Ha,Va,e),...n}));io.displayName=`SidebarGroupLabel`;var ao=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}));ao.displayName=`SidebarStickyStack`;var oo=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`&&Ba,n===`label`&&Va,`bg-sidebar`,t),children:e}));oo.displayName=`SidebarStickyTier`;var so=R.forwardRef(({className:e,asChild:t=!1,...n},r)=>(0,z.jsx)(t?k:`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}));so.displayName=`SidebarGroupAction`;var co=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`div`,{ref:n,"data-sidebar":`group-content`,className:I(`w-full text-sm`,e),...t}));co.displayName=`SidebarGroupContent`;var lo=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}));lo.displayName=`SidebarMenu`;var uo=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(`li`,{ref:n,"data-sidebar":`menu-item`,className:I(`group/menu-item relative`,e),...t}));uo.displayName=`SidebarMenuItem`;var fo=he(`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`}}),po=R.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o},s)=>{let c=e?k:`button`,{isCompactViewport:l,state:u}=Ga(),d=(0,z.jsx)(c,{ref:s,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:I(fo({variant:n,size:r}),a),...o});return i?(typeof i==`string`&&(i={children:i}),(0,z.jsxs)(Na,{children:[(0,z.jsx)(Pa,{asChild:!0,children:d}),(0,z.jsx)(Fa,{side:`right`,align:`center`,hidden:u!==`collapsed`||l,...i})]})):d});po.displayName=`SidebarMenuButton`;var mo=R.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},i)=>(0,z.jsx)(t?k:`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}));mo.displayName=`SidebarMenuAction`;var ho=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}));ho.displayName=`SidebarMenuBadge`;var go=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)(Hi,{className:`size-4 rounded-md`,"data-sidebar":`menu-skeleton-icon`}),(0,z.jsx)(Hi,{className:`h-4 flex-1 max-w-[--skeleton-width]`,"data-sidebar":`menu-skeleton-text`,style:{"--skeleton-width":i}})]})});go.displayName=`SidebarMenuSkeleton`;var _o=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}));_o.displayName=`SidebarMenuSub`;var vo=R.forwardRef(({...e},t)=>(0,z.jsx)(`li`,{ref:t,...e}));vo.displayName=`SidebarMenuSubItem`;var yo=R.forwardRef(({asChild:e=!1,size:t=`md`,isActive:n,className:r,...i},a)=>(0,z.jsx)(e?k:`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}));yo.displayName=`SidebarMenuSubButton`;function bo(){let e=er(),t=sr(`/projects/:projectId/*`),n=sr(`/projects/:projectId`),r=sr(`/projects/:projectId/threads/:threadId/*`),i=sr(`/projects/:projectId/archived`),a=sr(`/projects/:projectId/managers/new`),o=sr(`/projects/:projectId/settings`);return{projectId:t?.params.projectId,threadId:r?.params.threadId,isProjectMainView:!!n,isThreadView:!!r,isArchivedView:!!i,isNewManagerView:!!a,isSettingsView:!!o,isRootView:e.pathname===`/`}}var xo=1e4;function So({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 Co(e=xo){let t=Dt(),[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 wo({hasResolvedData:e,isFetching:t,isLoadingError:n}){let r=Dt(),i=Co();return(0,R.useMemo)(()=>So({hasResolvedData:e,isFetching:t,isLoadingError:n,serverConnectionState:r,connectionGracePeriodElapsed:i}),[e,t,n,r,i])}function To(e){let t=zr(Fr),n=zr(Ir),r=(0,R.useMemo)(()=>e.length===0?[]:[...new Set(e)].sort(),[e]),i=t!=null&&n!=null&&r.length>0;return ve({queryKey:ue(t??``,r),queryFn:i?()=>Yr(n,r):dt,staleTime:1e4}).data??{}}function Eo(e,t){return t==null?!1:e[t]===!1}function Do({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 Oo({projectId:e,environmentId:t}){let n=Zn();return(0,R.useCallback)(()=>{n(`/projects/${e}`,{state:{reuseEnvironmentId:t}})},[t,n,e])}var ko=`ContextMenu`,[Ao,jo]=jn(ko,[Vt]),Mo=Vt(),[No,Po]=Ao(ko),Fo=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,dir:i,modal:a=!0}=e,[o,s]=R.useState(!1),c=Mo(t),l=xn(r),u=R.useCallback(e=>{s(e),l(e)},[l]);return(0,z.jsx)(No,{scope:t,open:o,onOpenChange:u,modal:a,children:(0,z.jsx)(Rt,{...c,dir:i,open:o,onOpenChange:u,modal:a,children:n})})};Fo.displayName=ko;var Io=`ContextMenuTrigger`,Lo=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=Po(Io,n),o=Mo(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)(vt,{...o,virtualRef:c}),(0,z.jsx)(On.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:en(e.onContextMenu,e=>{u(),d(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:en(e.onPointerDown,fs(e=>{u(),l.current=window.setTimeout(()=>d(e),700)})),onPointerMove:r?e.onPointerMove:en(e.onPointerMove,fs(u)),onPointerCancel:r?e.onPointerCancel:en(e.onPointerCancel,fs(u)),onPointerUp:r?e.onPointerUp:en(e.onPointerUp,fs(u))})]})});Lo.displayName=Io;var Ro=`ContextMenuPortal`,zo=e=>{let{__scopeContextMenu:t,...n}=e,r=Mo(t);return(0,z.jsx)(xt,{...r,...n})};zo.displayName=Ro;var Bo=`ContextMenuContent`,Vo=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Po(Bo,n),a=Mo(n),o=R.useRef(!1);return(0,z.jsx)(ht,{...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)`}})});Vo.displayName=Bo;var Ho=`ContextMenuGroup`,Uo=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Mo(n);return(0,z.jsx)(un,{...i,...r,ref:t})});Uo.displayName=Ho;var Wo=`ContextMenuLabel`,Go=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Mo(n);return(0,z.jsx)(Ft,{...i,...r,ref:t})});Go.displayName=Wo;var Ko=`ContextMenuItem`,qo=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Mo(n);return(0,z.jsx)(At,{...i,...r,ref:t})});qo.displayName=Ko;var Jo=`ContextMenuCheckboxItem`,Yo=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Mo(n);return(0,z.jsx)(fn,{...i,...r,ref:t})});Yo.displayName=Jo;var Xo=`ContextMenuRadioGroup`,Zo=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Mo(n);return(0,z.jsx)(Tt,{...i,...r,ref:t})});Zo.displayName=Xo;var Qo=`ContextMenuRadioItem`,$o=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Mo(n);return(0,z.jsx)(kt,{...i,...r,ref:t})});$o.displayName=Qo;var es=`ContextMenuItemIndicator`,ts=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Mo(n);return(0,z.jsx)(Mt,{...i,...r,ref:t})});ts.displayName=es;var ns=`ContextMenuSeparator`,rs=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Mo(n);return(0,z.jsx)(Ln,{...i,...r,ref:t})});rs.displayName=ns;var is=`ContextMenuArrow`,as=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Mo(n);return(0,z.jsx)(Nt,{...i,...r,ref:t})});as.displayName=is;var os=`ContextMenuSub`,ss=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=Mo(t),[s,c]=Wt({prop:i,defaultProp:a??!1,onChange:r,caller:os});return(0,z.jsx)(_t,{...o,open:s,onOpenChange:c,children:n})};ss.displayName=os;var cs=`ContextMenuSubTrigger`,ls=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Mo(n);return(0,z.jsx)(wt,{...i,...r,ref:t})});ls.displayName=cs;var us=`ContextMenuSubContent`,ds=R.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Mo(n);return(0,z.jsx)(Ht,{...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)`}})});ds.displayName=us;function fs(e){return t=>t.pointerType===`mouse`?void 0:e(t)}var ps=Fo,ms=Lo,hs=zo,gs=Vo,_s=Go,vs=qo,ys=Yo,bs=$o,xs=ts,Ss=rs,Cs=ls,ws=ds,Ts=ps,Es=ms,Ds=R.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,z.jsxs)(Cs,{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`})]}));Ds.displayName=Cs.displayName;var Os=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(ws,{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}));Os.displayName=ws.displayName;var ks=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(hs,{children:(0,z.jsx)(gs,{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})}));ks.displayName=gs.displayName;var As=R.forwardRef(({className:e,inset:t,...n},r)=>(0,z.jsx)(vs,{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}));As.displayName=vs.displayName;var js=R.forwardRef(({className:e,children:t,checked:n,...r},i)=>(0,z.jsxs)(ys,{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`,Cn),children:(0,z.jsx)(xs,{children:(0,z.jsx)(F,{name:`Check`,className:Cn})})}),t]}));js.displayName=ys.displayName;var Ms=R.forwardRef(({className:e,children:t,...n},r)=>(0,z.jsxs)(bs,{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)(xs,{children:(0,z.jsx)(F,{name:`Circle`,className:`h-2 w-2 fill-current`})})}),t]}));Ms.displayName=bs.displayName;var Ns=R.forwardRef(({className:e,inset:t,...n},r)=>(0,z.jsx)(_s,{ref:r,className:I(`px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground`,t&&`pl-8`,e),...n}));Ns.displayName=_s.displayName;var Ps=R.forwardRef(({className:e,...t},n)=>(0,z.jsx)(Ss,{ref:n,className:I(`-mx-1 my-1 h-px bg-muted`,e),...t}));Ps.displayName=Ss.displayName;function Fs({className:e,...t}){return(0,z.jsx)(`span`,{className:I(`ml-auto text-xs tracking-widest opacity-60`,e),...t})}Fs.displayName=`ContextMenuShortcut`;function Is({queryClient:e}){Ye({queryClient:e,queryKeys:Vs()})}function Ls({queryClient:e}){Ne({queryClient:e,queryKeys:Vs()})}function Rs({queryClient:e}){e.invalidateQueries({queryKey:g()}),e.invalidateQueries({queryKey:Oe()})}function zs({queryClient:t}){Rs({queryClient:t}),t.invalidateQueries({queryKey:e()})}function Bs({queryClient:e}){e.invalidateQueries({queryKey:Te()})}function Vs(){return[g(),Oe(),e(),ge(),s(),i(),ye(),te(),it(),re(),st(),l(),oe(),Ve(),Ae(),Ke(),Ee(),Ce(),p(),Fe(),lt()]}function Hs({isPending:e,submit:t}){let{localHostId:n,pickFolder:r,platform:i}=Vr(),a=Mr(),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(Be(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 Us({target:e,pending:t=!1,platform:n,onOpenChange:r,onSubmit:i}){return(0,z.jsx)(Sr,{open:e!==null,onOpenChange:r,children:(0,z.jsx)(br,{children:e?(0,z.jsx)(qs,{target:e,pending:t,platform:n,onSubmit:i},e.kind===`create`?`create`:e.projectId):null})})}function Ws(e){switch(e){case`create`:return`Add project`;case`update`:return`Update project path`;case`add-source`:return`Add project source`}}function Gs(e){switch(e){case`create`:return`Add project`;case`update`:return`Save path`;case`add-source`:return`Add source`}}function Ks(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 qs({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=Ze(a),u=Ks(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)(vr,{children:[(0,z.jsx)(xr,{children:Ws(e.kind)}),(0,z.jsx)(mr,{children:u.description})]}),(0,z.jsxs)(`form`,{className:`space-y-4`,onSubmit:n=>{if(n.preventDefault(),t)return;let i=Be(a),o=Se(i);if(o){c(o);return}if(e.kind===`create`&&!Ze(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)(pr,{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)(lr,{children:(0,z.jsx)(N,{type:`submit`,disabled:t,children:Gs(e.kind)})})]})]})}function Js({target:e,pending:t,onOpenChange:n,onDelete:r}){return(0,z.jsx)(Sr,{open:e!==null,onOpenChange:n,children:(0,z.jsx)(br,{children:e?(0,z.jsx)(Ys,{target:e,pending:t,onDelete:r}):null})})}function Ys({target:e,pending:t,onDelete:n}){return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(vr,{children:[(0,z.jsx)(xr,{children:`Remove project?`}),(0,z.jsx)(mr,{children:`Remove "${e.name}" and all of its threads? This cannot be undone.`})]}),(0,z.jsx)(lr,{children:(0,z.jsx)(N,{type:`button`,variant:`destructive`,disabled:t,onClick:()=>n(e.id),children:`Remove project`})})]})}function Xs({target:e,pending:t=!1,onOpenChange:n,onRename:r}){return(0,z.jsx)(Sr,{open:e!==null,onOpenChange:n,children:(0,z.jsx)(br,{children:e?(0,z.jsx)(Zs,{target:e,pending:t,onRename:r},e.id):null})})}function Zs({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)(vr,{children:[(0,z.jsx)(xr,{children:`Rename project`}),(0,z.jsx)(mr,{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)(pr,{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)(lr,{children:(0,z.jsx)(N,{type:`submit`,disabled:t,children:`Rename project`})})]})]})}var Qs=`bb.sidebar.collapsedProjects`,$s=`bb.sidebar.collapsedManagers`,ec=wr(Qs,[],dr(),{getOnInit:!0}),tc=wr($s,[],dr(),{getOnInit:!0}),nc=(0,R.createContext)(null);function rc(){let e=(0,R.useContext)(nc);if(!e)throw Error(`useProjectActions must be used within a <ProjectActionsProvider>`);return e}function ic({children:e}){let t=Zn(),n=Er(ec),r=Pr(),i=Br(),a=Gr(),{mutate:o}=r,{mutate:s}=i,{mutate:c}=a,l=Mr(),u=Mr(),{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=Hs({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)(nc.Provider,{value:S,children:[e,(0,z.jsx)(Xs,{target:l.target,pending:r.isPending,onOpenChange:l.onOpenChange,onRename:v}),(0,z.jsx)(Js,{target:u.target,pending:i.isPending,onOpenChange:u.onOpenChange,onDelete:b}),(0,z.jsx)(Us,{target:g.projectPathDialog.target,pending:a.isPending,platform:g.platform,onOpenChange:g.projectPathDialog.onOpenChange,onSubmit:g.submitProjectPath})]})}function ac({children:e,className:t,onSelect:n,surface:r}){return r===`context`?(0,z.jsx)(As,{className:t,onSelect:n,children:e}):(0,z.jsx)(Zt,{className:t,onSelect:n,children:e})}function oc({project:e,surface:t}){let{localHostId:n}=Vr(),{requestRename:r,requestDelete:i,requestAddLocalPath:a}=rc(),o=n!=null&&!tt(e.sources,n);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(ac,{surface:t,onSelect:n=>{t===`dropdown`&&n.preventDefault(),r(e)},children:`Rename`}),o?(0,z.jsx)(ac,{surface:t,onSelect:n=>{t===`dropdown`&&n.preventDefault(),a(e)},children:`Add local path`}):null,(0,z.jsx)(ac,{surface:t,className:`text-destructive focus:text-destructive`,onSelect:n=>{t===`dropdown`&&n.preventDefault(),i(e)},children:`Remove`})]})}function sc({project:e,triggerClassName:t,align:n=`end`,onOpenChange:r}){return(0,z.jsxs)(cn,{onOpenChange:r,children:[(0,z.jsx)($t,{asChild:!0,children:(0,z.jsx)(N,{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:Fn})})}),(0,z.jsx)(bn,{align:n,className:`w-44`,children:(0,z.jsx)(oc,{project:e,surface:`dropdown`})})]})}function cc({children:e,project:t,onOpenChange:n}){return(0,z.jsxs)(Ts,{onOpenChange:n,children:[(0,z.jsx)(Es,{asChild:!0,children:e}),(0,z.jsx)(ks,{"aria-label":`${t.name} actions`,className:`w-44`,children:(0,z.jsx)(oc,{project:t,surface:`context`})})]})}function lc(e){switch(e){case`managed-worktree`:return`GitBranch`;case`unmanaged-worktree`:return`GitBranch`;case`other`:return null}}function uc(e){return lc(e)??`Laptop`}function dc(e){switch(e){case`managed-worktree`:return`Managed worktree environment`;case`unmanaged-worktree`:return`Git worktree environment`;case`other`:return null}}function fc(e){return(e.lastReadAt??0)>=e.latestAttentionAt}var pc=e=>{switch(e){case`success`:return gc;case`info`:return vc;case`warning`:return _c;case`error`:return yc;default:return null}},mc=Array(12).fill(0),hc=({visible:e,className:t})=>R.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},R.createElement(`div`,{className:`sonner-spinner`},mc.map((e,t)=>R.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),gc=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`})),_c=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`})),vc=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`})),yc=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`})),bc=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`})),xc=()=>{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},Sc=1,Cc=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:Sc++,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(Tc(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||Sc++;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}},wc=(e,t)=>{let n=t?.id||Sc++;return Cc.addToast({title:e,...t,id:n}),n},Tc=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,Ec=Object.assign(wc,{success:Cc.success,info:Cc.info,warning:Cc.warning,error:Cc.error,custom:Cc.custom,message:Cc.message,promise:Cc.promise,dismiss:Cc.dismiss,loading:Cc.loading},{getHistory:()=>Cc.toasts,getToasts:()=>Cc.getActiveToasts()});function Dc(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))}Dc(`: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 Oc(e){return e.label!==void 0}var kc=3,Ac=`32px`,jc=`16px`,Mc=4e3,Nc=356,Pc=14,Fc=20,Ic=200;function Lc(...e){return e.filter(Boolean).join(` `)}function Rc(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var zc=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),[te,ne]=R.useState(null),[k,A]=R.useState(!1),[j,re]=R.useState(!1),[ie,ae]=R.useState(!1),[oe,se]=R.useState(!1),[M,ce]=R.useState(!1),[le,ue]=R.useState(0),[de,fe]=R.useState(0),pe=R.useRef(n.duration||y||Mc),me=R.useRef(null),N=R.useRef(null),he=c===0,ge=c+1<=o,_e=n.type,ve=n.dismissible!==!1,ye=n.className||``,be=n.descriptionClassName||``,xe=R.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),Se=R.useMemo(()=>n.closeButton??p,[n.closeButton,p]),Ce=R.useMemo(()=>n.duration||y||Mc,[n.duration,y]),we=R.useRef(0),Te=R.useRef(0),Ee=R.useRef(0),De=R.useRef(null),[P,Oe]=b.split(`-`),ke=R.useMemo(()=>s.reduce((e,t,n)=>n>=xe?e:e+t.height,0),[s,xe]),Ae=xc(),je=n.invert||t,Me=_e===`loading`;Te.current=R.useMemo(()=>xe*x+ke,[xe,ke]),R.useEffect(()=>{pe.current=Ce},[Ce]),R.useEffect(()=>{A(!0)},[]),R.useEffect(()=>{let e=N.current;if(e){let t=e.getBoundingClientRect().height;return fe(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(!k)return;let e=N.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,fe(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])},[k,n.title,n.description,a,n.id]);let Ne=R.useCallback(()=>{re(!0),ue(Te.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},Ic)},[n,d,a,Te]);R.useEffect(()=>{if(n.promise&&_e===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||D&&Ae?(()=>{if(Ee.current<we.current){let e=new Date().getTime()-we.current;pe.current-=e}Ee.current=new Date().getTime()})():pe.current!==1/0&&(we.current=new Date().getTime(),e=setTimeout(()=>{var e;(e=n.onAutoClose)==null||e.call(n,n),Ne()},pe.current)),()=>clearTimeout(e)},[u,i,n,_e,D,Ae,Ne]),R.useEffect(()=>{n.delete&&Ne()},[Ne,n.delete]);function Pe(){return T!=null&&T.loading?R.createElement(`div`,{className:Lc(w?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":_e===`loading`},T.loading):S?R.createElement(`div`,{className:Lc(w?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":_e===`loading`},S):R.createElement(hc,{className:Lc(w?.loader,n?.classNames?.loader),visible:_e===`loading`})}return R.createElement(`li`,{tabIndex:0,ref:N,className:Lc(_,ye,w?.toast,n?.classNames?.toast,w?.default,w?.[_e],n?.classNames?.[_e]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":k,"data-promise":!!n.promise,"data-swiped":M,"data-removed":j,"data-visible":ge,"data-y-position":P,"data-x-position":Oe,"data-index":c,"data-front":he,"data-swiping":ie,"data-dismissible":ve,"data-type":_e,"data-invert":je,"data-swipe-out":oe,"data-swipe-direction":te,"data-expanded":!!(u||C&&k),style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${j?le:Te.current}px`,"--initial-height":C?`auto`:`${de}px`,...m,...n.style},onDragEnd:()=>{ae(!1),ee(null),De.current=null},onPointerDown:e=>{Me||!ve||(me.current=new Date,ue(Te.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(ae(!0),De.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e;if(oe||!ve)return;De.current=null;let t=Number(N.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),r=Number(N.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),i=new Date().getTime()-me.current?.getTime(),a=O===`x`?t:r,o=Math.abs(a)/i;if(Math.abs(a)>=Fc||o>.11){ue(Te.current),(e=n.onDismiss)==null||e.call(n,n),ne(O===`x`?t>0?`right`:`left`:r>0?`down`:`up`),Ne(),se(!0),ce(!1);return}ae(!1),ee(null)},onPointerMove:t=>{var n,r;if(!De.current||!ve||window.getSelection()?.toString().length>0)return;let i=t.clientY-De.current.y,a=t.clientX-De.current.x,o=e.swipeDirections??Rc(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)&&ce(!0),(n=N.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=N.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},Se&&!n.jsx?R.createElement(`button`,{"aria-label":E,"data-disabled":Me,"data-close-button":!0,onClick:Me||!ve?()=>{}:()=>{var e;Ne(),(e=n.onDismiss)==null||e.call(n,n)},className:Lc(w?.closeButton,n?.classNames?.closeButton)},T?.close??bc):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,_e||n.icon||n.promise?R.createElement(`div`,{"data-icon":``,className:Lc(w?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Pe():null,n.type===`loading`?null:n.icon||T?.[_e]||pc(_e)):null,R.createElement(`div`,{"data-content":``,className:Lc(w?.content,n?.classNames?.content)},R.createElement(`div`,{"data-title":``,className:Lc(w?.title,n?.classNames?.title)},typeof n.title==`function`?n.title():n.title),n.description?R.createElement(`div`,{"data-description":``,className:Lc(v,be,w?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),(0,R.isValidElement)(n.cancel)?n.cancel:n.cancel&&Oc(n.cancel)?R.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{var t,r;Oc(n.cancel)&&ve&&((r=(t=n.cancel).onClick)==null||r.call(t,e),Ne())},className:Lc(w?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,(0,R.isValidElement)(n.action)?n.action:n.action&&Oc(n.action)?R.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{var t,r;Oc(n.action)&&((r=(t=n.action).onClick)==null||r.call(t,e),!e.defaultPrevented&&Ne())},className:Lc(w?.actionButton,n?.classNames?.actionButton)},n.action.label):null))};function Bc(){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 Vc(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?jc:Ac;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 Hc=(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=kc,toastOptions:h,dir:g=Bc(),gap:_=Pc,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,te]=R.useState(!1),[ne,k]=R.useState(u===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:u),A=R.useRef(null),j=i.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),re=R.useRef(null),ie=R.useRef(!1),ae=R.useCallback(e=>{C(t=>{var n;return(n=t.find(t=>t.id===e.id))!=null&&n.delete||Cc.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return R.useEffect(()=>Cc.subscribe(e=>{if(e.dismiss){C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}setTimeout(()=>{Ni.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`){k(u);return}if(u===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?k(`dark`):k(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{k(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{k(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=A.current)==null||t.focus()),e.code===`Escape`&&(document.activeElement===A.current||(n=A.current)!=null&&n.contains(document.activeElement))&&O(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[i]),R.useEffect(()=>{if(A.current)return()=>{re.current&&(re.current.focus({preventScroll:!0}),re.current=null,ie.current=!1)}},[A.current]),R.createElement(`section`,{ref:t,"aria-label":`${b} ${j}`,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`?Bc():g,tabIndex:-1,ref:A,className:s,"data-sonner-toaster":!0,"data-theme":ne,"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":`${Nc}px`,"--gap":`${_}px`,...p,...Vc(c,l)},onBlur:e=>{ie.current&&!e.currentTarget.contains(e.relatedTarget)&&(ie.current=!1,re.current&&=(re.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||ie.current||(ie.current=!0,re.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`||te(!0)},onPointerUp:()=>te(!1)},S.filter(e=>!e.position&&r===0||e.position===t).map((r,i)=>R.createElement(zc,{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:ae,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}))}),Uc=/^HTTP \d{3}:\s*/u,Wc=`Could not reach the server. Check that it is running and try again.`;function Gc(e){return e.replace(/\s+/g,` `).trim()}function Kc(e){return e.replace(Uc,``)}function qc(e){return e instanceof DOMException&&e.name===`AbortError`?!0:ft(e)?.name===`AbortError`}function Jc(e){if(e instanceof se||qc(e))return!1;let t=ft(e);if(!t||typeof t.message!=`string`)return!1;let n=Gc(t.message).toLowerCase();return n.includes(`failed to fetch`)||n.includes(`load failed`)||n.includes(`networkerror`)}function Yc(e){let t=j(e.body);if(t)return Gc(t);let n=Kc(Gc(e.message));return n.length>0?n:null}function Xc(e){if(!e)return{};let t=typeof e.errorMessage==`string`?Gc(e.errorMessage):void 0,n=typeof e.showErrorToast==`boolean`?e.showErrorToast:void 0;return{...t?{errorMessage:t}:{},...n===void 0?{}:{showErrorToast:n}}}function Zc({error:e,fallbackMessage:t}){if(e instanceof se)return Yc(e)??t;if(Jc(e))return Wc;let n=j(e);if(!n)return t;let r=Kc(Gc(n));return r.length>0?r:t}function Qc(e){return!qc(e)}function $c({error:e,fallbackMessage:t}){Qc(e)&&Ec.error(Zc({error:e,fallbackMessage:t}))}function el({target:e,pending:t=!1,onOpenChange:n,onRename:r}){return(0,z.jsx)(Sr,{open:e!==null,onOpenChange:n,children:(0,z.jsx)(br,{children:e?(0,z.jsx)(tl,{target:e,pending:t,onRename:r},e.id):null})})}function tl({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=Vn(e.threadType??`standard`);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(vr,{children:[(0,z.jsxs)(xr,{children:[`Rename `,l]}),(0,z.jsxs)(mr,{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)(pr,{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)(lr,{children:(0,z.jsxs)(N,{type:`submit`,disabled:t,children:[`Rename `,l]})})]})]})}function nl({target:e,pending:t,onOpenChange:n,onDelete:r}){return(0,z.jsx)(Sr,{open:e!==null,onOpenChange:n,children:(0,z.jsx)(br,{children:e?(0,z.jsx)(rl,{target:e,pending:t,onOpenChange:n,onDelete:r}):null})})}function rl({target:e,pending:t,onOpenChange:n,onDelete:r}){let i=Vn(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)(vr,{children:[(0,z.jsxs)(xr,{children:[`Delete `,i,`?`]}),(0,z.jsx)(mr,{children:a.join(` `)})]}),(0,z.jsxs)(lr,{children:[(0,z.jsx)(N,{type:`button`,variant:`outline`,disabled:t,onClick:()=>n(!1),children:`Cancel`}),(0,z.jsxs)(N,{type:`button`,variant:`destructive`,disabled:t,onClick:()=>r(e),children:[`Delete `,i]})]})]})}function il(e){return fc(e)?`mark_unread`:`mark_read`}var al=(0,R.createContext)(null);function ol(){let e=(0,R.useContext)(al);if(!e)throw Error(`useThreadActions must be used within a <ThreadActionsProvider>`);return e}function sl({children:e}){let t=Zn(),{threadId:n}=bo(),r=Kn(),i=Bn(),a=Hn(),o=Jn(),s=Yn(),c=Rn(),l=(0,R.useRef)(null),{mutate:u}=r,{mutate:d}=i,{mutate:f}=a,{mutate:p}=o,{mutate:m}=s,{mutate:h}=c,g=Mr(),_=Mr(),{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:qn(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 pe(e.id,t):null;return t.aborted?null:{assignedChildCount:n?.nonDeletedAssignedChildCount??0}}catch(e){return t.aborted||Qc(e)&&Ec.error(Zc({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]),te=(0,R.useCallback)(e=>{O({closeDialog:b,managerChildThreadsConfirmed:e.assignedChildCount!==void 0,thread:e.thread})},[b,O]),ne=(0,R.useCallback)((e,t)=>{Ec.error(Zc({error:t,fallbackMessage:`Failed to archive ${Vn(e.type)}.`}))},[]),k=(0,R.useCallback)(e=>{u({id:e.id},{onSuccess:()=>{S(e),Ec.success(`Archived ${Vn(e.type)}`,{action:{label:`Undo`,onClick:()=>{d({id:e.id})}}})},onError:t=>{ne(e,t)}})},[u,S,ne,d]),A=(0,R.useCallback)(e=>{if(e.archivedAt!=null){d({id:e.id});return}k(e)},[k,d]),j=(0,R.useCallback)(e=>{if(il(e)===`mark_unread`){p(e.id,{onError:e=>{Ec.error(Zc({error:e,fallbackMessage:`Failed to mark thread unread.`}))}});return}f(e.id,{onError:e=>{Ec.error(Zc({error:e,fallbackMessage:`Failed to mark thread read.`}))}})},[f,p]),re=(0,R.useMemo)(()=>({requestRename:C,requestDelete:ee,toggleArchive:A,toggleRead:j}),[C,ee,A,j]);return(0,z.jsxs)(al.Provider,{value:re,children:[e,(0,z.jsx)(el,{target:g.target,pending:c.isPending,onOpenChange:g.onOpenChange,onRename:w}),(0,z.jsx)(nl,{target:_.target,pending:s.isPending,onOpenChange:_.onOpenChange,onDelete:te})]})}function cl({children:e,className:t,onSelect:n,surface:r}){return r===`context`?(0,z.jsx)(As,{className:t,onSelect:n,children:e}):(0,z.jsx)(Zt,{className:t,onSelect:n,children:e})}function ll({checked:e,children:t,onCheckedChange:n,onSelect:r,surface:i}){return i===`context`?(0,z.jsx)(js,{checked:e,onCheckedChange:n,onSelect:r,children:t}):(0,z.jsx)(Jt,{checked:e,onCheckedChange:n,onSelect:r,children:t})}function ul({surface:e}){return e===`context`?(0,z.jsx)(Ps,{}):(0,z.jsx)(An,{})}function dl({thread:e,canDelete:t=!0,viewerToggleLabel:n,viewerToggleChecked:r,onViewerToggleCheckedChange:i,surface:a}){let{requestRename:o,requestDelete:s,toggleArchive:c,toggleRead:l}=ol(),u=fc(e),d=e.archivedAt!=null;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(cl,{surface:a,onSelect:t=>{a===`dropdown`&&t.preventDefault(),l(e)},children:u?`Mark as unread`:`Mark as read`}),(0,z.jsx)(cl,{surface:a,onSelect:()=>{window.setTimeout(()=>{o(e)},0)},children:`Rename`}),(0,z.jsx)(cl,{surface:a,onSelect:t=>{a===`dropdown`&&t.preventDefault(),c(e)},children:d?`Unarchive`:`Archive`}),t?(0,z.jsx)(cl,{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)(ul,{surface:a}),(0,z.jsx)(ll,{surface:a,checked:r,onCheckedChange:e=>{i(e===!0)},onSelect:e=>{a===`dropdown`&&e.preventDefault()},children:n})]}):null]})}function fl({thread:e,canDelete:t=!0,viewerToggleLabel:n,viewerToggleChecked:r,onViewerToggleCheckedChange:i,onOpenChange:a,triggerClassName:o,align:s=`end`}){let c=Vn(e.type),l=c.charAt(0).toUpperCase()+c.slice(1);return(0,z.jsxs)(cn,{onOpenChange:a,children:[(0,z.jsx)($t,{asChild:!0,children:(0,z.jsx)(N,{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:Fn})})}),(0,z.jsx)(bn,{align:s,className:`w-44`,children:(0,z.jsx)(dl,{thread:e,canDelete:t,viewerToggleLabel:n,viewerToggleChecked:r,onViewerToggleCheckedChange:i,surface:`dropdown`})})]})}function pl({children:e,thread:t,canDelete:n=!0,viewerToggleLabel:r,viewerToggleChecked:i,onViewerToggleCheckedChange:a,onOpenChange:o}){let s=Vn(t.type),c=s.charAt(0).toUpperCase()+s.slice(1);return(0,z.jsxs)(Ts,{onOpenChange:o,children:[(0,z.jsx)(Es,{asChild:!0,children:e}),(0,z.jsx)(ks,{"aria-label":`${c} actions`,className:`w-44`,children:(0,z.jsx)(dl,{thread:t,canDelete:n,viewerToggleLabel:r,viewerToggleChecked:i,onViewerToggleCheckedChange:a,surface:`context`})})]})}function ml(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 C(e)}}function B(e,t){throw Error(t??`Unexpected value: ${String(e)}`)}function hl(e){let t=e.replaceAll(`\\`,`/`).split(`/`),n=t[t.length-1];return n&&n.length>0?n:e}function gl({mode:e,path:t}){switch(e){case`compact`:return hl(t);case`full`:return t}}function _l(e){return(e??``).toLowerCase().replaceAll(/[^a-z0-9]/gu,``)}function vl(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 yl(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 bl(e){if(e.movePath)return yl(e)?`edited`:`renamed`;let t=_l(e.kind);return t.includes(`add`)||t.includes(`create`)?`created`:t.includes(`delete`)||t.includes(`remove`)?`deleted`:`edited`}function xl(e){switch(e){case`created`:return`Created`;case`deleted`:return`Deleted`;case`renamed`:return`Renamed`;case`edited`:return`Edited`}}function Sl(e){switch(e){case`created`:return`Creating`;case`deleted`:return`Deleting`;case`renamed`:return`Renaming`;case`edited`:return`Editing`}}function Cl(e){switch(e){case`created`:return`create`;case`deleted`:return`delete`;case`renamed`:return`rename`;case`edited`:return`edit`}}function wl({change:e,mode:t}){let n=gl({path:e.path,mode:t});return e.movePath?bl(e)===`edited`?gl({path:e.movePath,mode:t}):`${n} -> ${gl({path:e.movePath,mode:t})}`:n}function Tl(e,t,n){return`${e} ${e===1?t:n??`${t}s`}`}function El(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`:Dl(t)}function Dl(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 Ol=new Intl.NumberFormat(`en-US`);function kl(e){return Ol.format(e)}function Al(e){let{added:t,removed:n,hideZero:r=!1}=e,i=`+${kl(t)}`,a=`-${kl(n)}`;if(!r)return`${i} ${a}`;let o=[];return t>0&&o.push(i),n>0&&o.push(a),o.join(` `)}function jl(e){return e.activityIntents.find(e=>e.type!==`unknown`)??null}function Ml(e){return jl(e)!==null}function Nl(e){return e.path??e.name}function Pl(e,t){return gl({path:Nl(e),mode:t})}function Fl({intent:e,pathMode:t,pending:n}){return Il({intent:e,pathMode:t,pending:n})}function Il({intent:e,pathMode:t,pending:n}){switch(e.type){case`read`:return{prefix:n?`Reading`:`Read`,content:Pl(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 B(e)}}function Ll(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 B(e)}}function Rl(e){return e.length===0?e:`${e.charAt(0).toLowerCase()}${e.slice(1)}`}function zl(e){switch(e.type){case`read`:return e.path??e.name;case`list_files`:case`search`:case`unknown`:return null;default:return B(e)}}function Bl(e,t,n,r){for(let i of e.activityIntents)switch(i.type){case`read`:{let e=zl(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:B(i)}}function Vl(e){return e.change.movePath??e.change.path}function Hl(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`:Ml(t)?Bl(t,i,a,r):i.commands+=1;break;case`tool`:Ml(t)?Bl(t,i,a,r):i.tools+=1;break;case`file-change`:switch(bl(t.change)){case`created`:o.add(Vl(t));break;case`deleted`:s.add(Vl(t));break;case`edited`:c.add(Vl(t));break;case`renamed`:l.add(Vl(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:B(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 Ul(e){let t=e.explorationKindOrder.map(t=>{switch(t){case`files`:return e.files>0?Tl(e.files,`file`):null;case`searches`:return e.searches>0?Tl(e.searches,`search`,`searches`):null;case`lists`:return e.lists>0?Tl(e.lists,`list`):null;default:return B(t)}}).filter(e=>e!==null);return t.length===0?null:t.join(`, `)}function Wl(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:B(a)}if(t===null)t=e;else if(t!==e)return null}if(t===null)return null;let a=[n>0?Tl(n,`command`):null,r>0?Tl(r,`file change`):null,i>0?Tl(i,`tool`):null].filter(e=>e!==null).join(`, `);return t===`denied`?`Denied ${a}`:`Waiting for approval on ${a}`}function Gl(e){switch(e.workKind){case`command`:return Ml(e)?`exploration`:`commands`;case`tool`:return Ml(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 B(e)}}function Kl(e){let t=[];for(let n of e){let e=Gl(n);e&&!t.includes(e)&&t.push(e)}return t}var ql={created:`Creating`,deleted:`Deleting`,edited:`Editing`,renamed:`Renaming`},Jl={created:`Created`,deleted:`Deleted`,edited:`Edited`,renamed:`Renamed`};function Yl(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]:Jl[e]} ${Tl(r,`file`)}`}let r=n.reduce((e,t)=>e+t.count,0);return`${t?`Editing`:`Edited`} ${Tl(r,`file`)}`}function Xl(e,t,n){switch(e){case`exploration`:return n?`Explored ${n}`:null;case`commands`:return t.commands>0?`Ran ${Tl(t.commands,`command`)}`:null;case`fileChanges`:return Yl(t,!1);case`webResearch`:return $l(t,!1);case`delegations`:return t.delegations>0?`Ran ${Tl(t.delegations,`subagent`)}`:null;case`tools`:return t.tools>0?`Ran ${Tl(t.tools,`tool`)}`:null;default:return B(e)}}function Zl(e,t,n){switch(e){case`exploration`:return n?`Exploring ${n}`:null;case`commands`:return t.commands>0?`Running ${Tl(t.commands,`command`)}`:null;case`fileChanges`:return Yl(t,!0);case`webResearch`:return $l(t,!0);case`delegations`:return t.delegations>0?`Running ${Tl(t.delegations,`subagent`)}`:null;case`tools`:return t.tools>0?`Running ${Tl(t.tools,`tool`)}`:null;default:return B(e)}}function Ql(e){return e.map((e,t)=>t===0?e:Rl(e)).join(`, `)}function $l(e,t){let n=[];return e.webSearches>0&&n.push(Tl(e.webSearches,`search query`,`search queries`)),e.webFetches>0&&n.push(Tl(e.webFetches,`web page`)),n.length===0?null:`${t?`Researching`:`Researched`} ${n.join(`, `)}`}function eu(e,t={active:!1}){let n=Wl(e.children);if(n!==null)return tu(n);let r=Hl(e.children),i=t.active,a=Ul(r),o=Kl(e.children).map(e=>i?Zl(e,r,a):Xl(e,r,a)).filter(e=>e!==null);return o.length===0?{verb:i?`Working`:`Worked`,rest:``}:tu(Ql(o))}function tu(e){let t=e.indexOf(` `);return t===-1?{verb:e,rest:``}:{verb:e.slice(0,t),rest:e.slice(t+1)}}function nu(e,t){return e===`error`||t===`error`?`error`:e===`pending`||t===`pending`?`pending`:e===`interrupted`||t===`interrupted`?`interrupted`:`completed`}function ru(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=nu(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 iu(e){return e.kind===`work`&&e.workKind!==`approval`&&e.workKind!==`question`}function au(e){return!(e.kind!==`conversation`||e.role===`user`&&e.turnRequest.status===`pending`)}function ou(e){switch(e.workKind){case`command`:case`tool`:return Ml(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 B(e)}}function su(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=Ml(r),i=[];for(let e of r.activityIntents){if(e.type===`unknown`){i.push(e);continue}let n=Ll(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 cu(e){let t=su(e);return{...ru(t),kind:`step-summary`,children:t}}function lu(e){let t=su(e);return{...ru(t),kind:`bundle-summary`,children:t}}function uu(e){return e.length===0?[]:e.length===1?[{...e[0],inClosedStep:!0}]:[cu(e)]}function du(e){if(e.length===0)return[];let t=[];for(let n of e){let e=ou(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(lu(e.rows));return n}function fu(){return new WeakMap}function pu(e,t){if(e.workKind!==`delegation`)return e;let n=e.status!==`pending`;return{...e,childRows:hu(e.childRows,{cache:t,closedScope:n})}}function mu(e,t){switch(e.kind){case`conversation`:case`system`:return e;case`work`:return pu(e,t);case`turn`:return{...e,children:e.children?hu(e.children,{cache:t,closedScope:!0}):null};default:return B(e)}}function hu(e,t={}){let n=t.cache;if(n){let t=n.get(e);if(t)return t}let r=n??fu(),i=e.map(e=>mu(e,r)),a=[],o=[];for(let e of i){if(iu(e)){o.push(e);continue}if(au(e)){a.push(...uu(o)),o=[],a.push(e);continue}a.push(...du(o)),o=[],a.push(e)}return t.closedScope?a.push(...uu(o)):a.push(...du(o)),n&&n.set(e,a),a}var gu=new Set([`sh`,`bash`,`zsh`]);function _u(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 vu(e){let t=e.split(`/`).pop()??e;return gu.has(t)}function yu(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||!vu(r)?t:_u(i.trim())}function bu(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 xu(e){return e.replace(/[\r\n]+/gu,` `)}function V(e,t={}){return{text:xu(e),em:t.em??!1,shimmer:t.shimmer??!1,truncate:t.truncate??!1,...t.plainText===void 0?{}:{plainText:xu(t.plainText)},...t.link===void 0?{}:{link:t.link}}}function Su(e){return e.filter(e=>e!==null)}function Cu(e){return e!==null&&e>1e3?e:null}function wu(e,t,n={}){return t!==null&&Cu(t-e)===null?null:{kind:`duration`,startedAt:e,completedAt:t,em:n.em??!1}}function Tu(e,t){return t===null?null:{kind:`duration`,startedAt:e,completedAt:t,em:!0}}function Eu(e,t){return{kind:`status`,status:e,durationMs:Cu(t)}}function Du(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 Ou(e){let{added:t,removed:n}=e.diffStats;return t===0&&n===0?null:{kind:`diff-stats`,added:t,removed:n}}function ku(e){switch(e.kind){case`duration`:return e.completedAt===null?``:`(${El(e.completedAt-e.startedAt)})`;case`status`:return e.durationMs===null?`(${e.status})`:`(${El(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 Al({added:e.added,removed:e.removed,hideZero:!0});default:return B(e)}}function Au(e,t){let n=e.map(e=>e.plainText??e.text).filter(e=>e.length>0).join(` `),r=t.map(ku).filter(e=>e.length>0).join(` `);return r.length===0?n:n.length===0?r:`${n} ${r}`}function H({segments:e,decorations:t=[],tone:n=`default`,action:r=null}){return{segments:e,decorations:t,tone:n,action:r,plain:Au(e,t)}}function ju({approvalStatus:e,status:t}){return e===`waiting_for_approval`?`waiting`:e===`denied`?`denied`:t}function Mu(e){let t=Nu(e);if(t!==null)return t;let n=ju({approvalStatus:e.approvalStatus,status:e.status}),r=e.workKind===`command`,i=r?e.command:bu(e.toolName,e.toolArgs);switch(n){case`waiting`:return H({segments:[V(`Waiting for approval`,{shimmer:!0}),V(r?`to run`:`to use`),V(i,{em:!0,truncate:!0})]});case`denied`:return H({segments:[V(`Permission denied:`),V(i,{em:!0,truncate:!0})],decorations:Su([wu(e.startedAt,e.completedAt)])});case`pending`:return H({segments:[V(r?`Running`:`Running tool:`,{shimmer:!0}),V(i,{em:!0,truncate:!0})],decorations:Su([wu(e.startedAt,e.completedAt)])});case`completed`:return H({segments:[V(r?`Ran`:`Ran tool:`),V(i,{em:!0,truncate:!0})],decorations:Su([wu(e.startedAt,e.completedAt)])});case`error`:return H({segments:[V(r?`Ran`:`Ran tool:`),V(i,{em:!0,truncate:!0})],decorations:[Eu(`error`,e.completedAt===null?null:e.completedAt-e.startedAt)]});case`interrupted`:return H({segments:[V(r?`Ran`:`Ran tool:`),V(i,{em:!0,truncate:!0})],decorations:[Eu(`interrupted`,e.completedAt===null?null:e.completedAt-e.startedAt)]});default:return B(n)}}function Nu(e){if(!Ml(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=ju({approvalStatus:e.approvalStatus,status:e.status}),i=r===`pending`,a=Fl({intent:n,pathMode:`compact`,pending:i}),o=Fl({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 H({segments:[V(`Permission denied:`),V(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 H({segments:[V(`Waiting for approval`,{shimmer:!0}),V(`to use`),V(e,{em:!0,truncate:!0,plainText:t})]})}let s=[];return a.prefix&&s.push(V(a.prefix,{shimmer:i})),s.push(V(a.content,{em:!1,truncate:!0,plainText:o.content})),H({segments:s,decorations:r===`error`?[Eu(`error`,null)]:r===`interrupted`?[Eu(`interrupted`,null)]:[]})}function Pu(e){let t=ju({approvalStatus:e.approvalStatus,status:e.status}),n=bl(e.change),r=wl({change:e.change,mode:`compact`}),i=wl({change:e.change,mode:`full`}),a={kind:`open-file-diff`,path:e.change.movePath??e.change.path},o=V(r,{em:!0,truncate:!0,plainText:i});switch(t){case`waiting`:return H({segments:[V(`Waiting for approval`,{shimmer:!0}),V(`to edit`),o],decorations:Su([Ou(e.change)]),action:a});case`denied`:return H({segments:[V(`Permission denied:`),o],decorations:Su([Ou(e.change)]),action:a});case`pending`:return H({segments:[V(Sl(n),{shimmer:!0}),o],decorations:Su([Ou(e.change)]),action:a});case`completed`:return H({segments:[V(xl(n)),o],decorations:Su([Ou(e.change)]),action:a});case`error`:return H({segments:[V(`Failed to ${Cl(n)}`),o],decorations:[Eu(`error`,null)],action:a});case`interrupted`:return H({segments:[V(`Interrupted while ${Sl(n).toLowerCase()}`),o],action:a});default:return B(t)}}function Fu(e){let t=V(e.queries.join(`, `)||`web search`,{em:!1,truncate:!0});switch(e.status){case`pending`:return H({segments:[V(`Running web search:`,{shimmer:!0}),t]});case`completed`:return H({segments:[V(`Ran web search:`),t],decorations:Su([wu(e.startedAt,e.completedAt)])});case`error`:return H({segments:[V(`Ran web search:`),t],decorations:[Eu(`error`,e.completedAt===null?null:e.completedAt-e.startedAt)]});case`interrupted`:return H({segments:[V(`Interrupted web search:`),t],decorations:[Eu(`interrupted`,e.completedAt===null?null:e.completedAt-e.startedAt)]});default:return B(e.status)}}function Iu(e){let t=V(e.url,{em:!1,truncate:!0});switch(e.status){case`pending`:return H({segments:[V(`Fetching:`,{shimmer:!0}),t]});case`completed`:return H({segments:[V(`Fetched:`),t],decorations:Su([wu(e.startedAt,e.completedAt)])});case`error`:return H({segments:[V(`Fetched:`),t],decorations:[Eu(`error`,e.completedAt===null?null:e.completedAt-e.startedAt)]});case`interrupted`:return H({segments:[V(`Interrupted fetch:`),t],decorations:[Eu(`interrupted`,e.completedAt===null?null:e.completedAt-e.startedAt)]});default:return B(e.status)}}function Lu(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 B(e)}}function Ru(e){let t=e.description??(e.output.trim()||e.toolName),n=Lu(e.status),r=[V(n.text,{shimmer:n.shimmer}),V(t,{em:!0,truncate:!0})];return e.subagentType&&r.push(V(`(${e.subagentType})`,{em:!1,truncate:!0})),H({segments:r,decorations:Su([wu(e.startedAt,e.completedAt)])})}function zu(e){switch(e.lifecycle){case`waiting`:return H({segments:[V(`Waiting for approval to edit`,{shimmer:!0}),V(`files`,{em:!0,truncate:!0})]});case`denied`:return H({segments:[V(`Permission denied:`),V(`file changes`,{em:!0,truncate:!0})]});default:return B(e.lifecycle)}}function Bu(e){let t=e.target.toolName,n=e.statusReason!==null&&e.statusReason.trim().length>0?e.statusReason.trim():null,r=n===null?null:V(`(${n})`,{truncate:!0});switch(e.lifecycle){case`pending`:return H({segments:t===null?[V(`Waiting for permissions`,{shimmer:!0})]:[V(`Waiting for permission`,{shimmer:!0}),V(`to use`),V(t,{em:!0,truncate:!0})]});case`resolving`:return H({segments:t===null?[V(`Delivering permissions`,{shimmer:!0})]:[V(`Delivering permission`,{shimmer:!0}),V(`to use`),V(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 H({segments:t===null?[V(n===null?`Permission granted`:`Permission granted ${n}`)]:[V(r),V(t,{em:!0,truncate:!0})]})}case`denied`:return H({segments:t===null?[V(`Permission denied`)]:[V(`Permission denied:`),V(t,{em:!0,truncate:!0})]});case`interrupted`:return H({segments:Su([V(t===null?`Permission grant interrupted`:`Permission grant interrupted:`),t===null?null:V(t,{em:!0,truncate:!0}),r])});case`expired`:return H({segments:Su([V(t===null?`Permission grant expired`:`Permission grant expired:`),t===null?null:V(t,{em:!0,truncate:!0}),r])});default:return B(e.lifecycle)}}function Vu(e){switch(e.approvalKind){case`file-edit`:return zu(e);case`permission-grant`:return Bu(e);default:return B(e)}}function Hu(e){return e.questions[0]?.prompt??null}function Uu(e){let t=Hu(e),n=t?V(t,{em:!0,truncate:!0}):null;switch(e.lifecycle){case`pending`:return H({segments:Su([V(`Waiting for answer`,{shimmer:!0}),n])});case`resolving`:return H({segments:Su([V(`Delivering answer`,{shimmer:!0}),n])});case`answered`:return H({segments:Su([V(`Answered`),n])});case`interrupted`:return H({segments:Su([V(`Asked`),n]),decorations:[Eu(`interrupted`,null)]});case`expired`:return H({segments:Su([V(`Asked`),n]),decorations:[Eu(`expired`,null)]});default:return B(e.lifecycle)}}function Wu(e,t){let n=(()=>{switch(e.workKind){case`command`:case`tool`:return Mu(e);case`file-change`:return Pu(e);case`web-search`:return Fu(e);case`web-fetch`:return Iu(e);case`delegation`:return Ru(e);case`approval`:return Vu(e);case`question`:return Uu(e);default:return B(e)}})();return t.workStyle===`default`||n.tone===`destructive`?n:{...n,tone:`summary`}}function Gu(e,t){let n=e.kind===`bundle-summary`&&t.isActiveLatestBundle===!0,{verb:r,rest:i}=eu(e,{active:n}),a=Su([Du(e)]);if(t.summaryStyle===`background`)return H({segments:[V(i.length===0?r:`${r} ${i}`,{em:!1,truncate:!0})],decorations:a,tone:`summary`});let o=V(r,{shimmer:n});return i.length===0?H({segments:[{...o,truncate:!0}],decorations:a}):H({segments:[o,V(i,{em:!0,truncate:!0})],decorations:a})}function Ku(e){let t=e.status===`pending`,n=t?wu(e.startedAt,e.completedAt,{em:!0}):Tu(e.startedAt,e.completedAt);return!t&&e.completedAt!==null&&n!==null?H({segments:[V(`Worked for`,{shimmer:!1})],decorations:[n]}):H({segments:[V(t?`Working`:`Worked`,{shimmer:t})],decorations:t&&n!==null?[n]:[]})}function qu(e,t){return e===null?null:V(t??e,{em:!0,truncate:!0,link:{kind:`thread`,threadId:e}})}function Ju(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 B(e)}}function Yu(e){let t=e.managerAssignment,n=qu(t.previousManagerThreadId,t.previousManagerThreadTitle),r=qu(t.nextManagerThreadId,t.nextManagerThreadTitle),i=e.status===`pending`,a=Ju(e.status);return H({segments:(()=>{switch(t.action){case`assign`:return Su([V(a.assign,{shimmer:i}),r]);case`release`:return Su([V(a.release,{shimmer:i}),n]);case`transfer`:return Su([V(a.transferFrom,{shimmer:i}),n,r===null?null:V(a.transferTo,{shimmer:i}),r]);default:return B(t.action)}})(),decorations:(()=>{switch(e.status){case`error`:return[Eu(`error`,null)];case`interrupted`:return[Eu(`interrupted`,null)];case`pending`:case`completed`:return[];default:return B(e.status)}})(),tone:e.status===`error`?`destructive`:`default`})}function Xu(e){let t=e.systemKind===`error`||e.status===`error`;if(e.systemKind===`operation`&&e.operationKind===`manager-assignment`)return Yu(e);let n=e.systemKind===`operation`&&e.operationKind===`compaction`,r=n&&(e.status===`pending`||e.status===`completed`)?Su([wu(e.startedAt,e.completedAt)]):[];return H({segments:[V(n&&e.status===`pending`?`${e.title}…`:e.title,{em:t,shimmer:e.status===`pending`,truncate:!0})],decorations:r,tone:t?`destructive`:`default`})}function Zu(e){return H({segments:[V(e.role===`user`?`User`:`Assistant`,{em:!1})]})}function Qu({intent:e,pending:t,failureStatus:n}){let r=Fl({intent:e,pathMode:`compact`,pending:t}),i=Fl({intent:e,pathMode:`full`,pending:t}),a=[];return r.prefix&&a.push(V(r.prefix,{shimmer:t})),a.push(V(r.content,{em:!1,truncate:!0,plainText:i.content})),H({segments:a,decorations:n?[Eu(n,null)]:[]})}function $u(e){if(!Ml(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=Ll(i);o!==null&&o===t||(n.push({id:`${e.id}:activity-intent:${a}`,title:Qu({intent:i,pending:e.status===`pending`,...r?{failureStatus:r}:{}})}),t=o)}),n}function ed(e){return e.kind===`conversation`&&e.role===`user`}function td(e){for(let t=e.length-1;t>=0;--t){let n=e[t];if(n&&!ed(n))return n}return null}function nd(e){let t=td(e);return t?.kind===`bundle-summary`?t.id:null}function rd(e,t){switch(e.kind){case`conversation`:return Zu(e);case`system`:return Xu(e);case`work`:return Wu(e,t);case`bundle-summary`:case`step-summary`:return Gu(e,t);case`turn`:return Ku(e);default:return B(e)}}ce({content:h(),status:h()}).passthrough(),ce({todos:T(Je())});function id(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!Ml(e);case`file-change`:return!0;case`delegation`:return e.childRows.length>0||e.output.trim().length>0;default:return B(e)}}function ad(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 id(e);default:return B(e)}}function od(e){return e.length>0&&e.every(e=>!id(e))}function sd(e){if(!ad(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 B(e)}}function cd(e,t,n){if(!t)return;let r=td(e);r&&sd(r)&&n.add(r.id);for(let t of e)t.kind===`work`&&t.workKind===`delegation`&&t.status===`pending`&&cd(t.childRows,!0,n)}function ld({rows:e,scopeActive:t}){let n=new Set;return cd(e,t,n),n}function ud({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 dd({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 fd({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=ud({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)(Sr,{open:!0,onOpenChange:e=>!e&&r(),children:(0,z.jsxs)(br,{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)(xr,{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)(N,{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)(N,{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)(_r,{asChild:!0,children:(0,z.jsx)(N,{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 pd(e,{successMessage:t=`Copied`,errorMessage:n=`Failed to copy`}={}){if(typeof navigator>`u`||!navigator.clipboard?.writeText)return n&&Ec.error(n),!1;try{return await navigator.clipboard.writeText(e),t&&Ec.success(t),!0}catch{return n&&Ec.error(n),!1}}function md({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 pd(e,{successMessage:t,errorMessage:n})&&i(!0)},[e,r,t,n])}}function hd({text:e,className:t,iconClassName:n,label:r=`Copy to clipboard`,successMessage:i,errorMessage:a}){let{copied:o,copy:s}=md({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 gd({text:e,label:t,title:n,className:r,iconClassName:i,successMessage:a,errorMessage:o,children:s}){let{copied:c,copy:l}=md({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 _d(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 vd(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var yd=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bd=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xd={};function Sd(e,t){return((t||xd).jsx?bd:yd).test(e)}var Cd=/[ \t\n\f\r]/g;function wd(e){return typeof e==`object`?e.type===`text`?Td(e.value):!1:Td(e)}function Td(e){return e.replace(Cd,``)===``}var Ed=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Ed.prototype.normal={},Ed.prototype.property={},Ed.prototype.space=void 0;function Dd(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Ed(n,r,t)}function Od(e){return e.toLowerCase()}var U=class{constructor(e,t){this.attribute=t,this.property=e}};U.prototype.attribute=``,U.prototype.booleanish=!1,U.prototype.boolean=!1,U.prototype.commaOrSpaceSeparated=!1,U.prototype.commaSeparated=!1,U.prototype.defined=!1,U.prototype.mustUseProperty=!1,U.prototype.number=!1,U.prototype.overloadedBoolean=!1,U.prototype.property=``,U.prototype.spaceSeparated=!1,U.prototype.space=void 0;var kd=de({boolean:()=>jd,booleanish:()=>Md,commaOrSpaceSeparated:()=>Id,commaSeparated:()=>Fd,number:()=>W,overloadedBoolean:()=>Nd,spaceSeparated:()=>Pd}),Ad=0,jd=Ld(),Md=Ld(),Nd=Ld(),W=Ld(),Pd=Ld(),Fd=Ld(),Id=Ld();function Ld(){return 2**++Ad}var Rd=Object.keys(kd),zd=class extends U{constructor(e,t,n,r){let i=-1;if(super(e,t),Bd(this,`space`,r),typeof n==`number`)for(;++i<Rd.length;){let e=Rd[i];Bd(this,Rd[i],(n&kd[e])===kd[e])}}};zd.prototype.defined=!0;function Bd(e,t,n){n&&(e[t]=n)}function Vd(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new zd(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Od(r)]=r,n[Od(a.attribute)]=r}return new Ed(t,n,e.space)}var Hd=Vd({properties:{ariaActiveDescendant:null,ariaAtomic:Md,ariaAutoComplete:null,ariaBusy:Md,ariaChecked:Md,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Pd,ariaCurrent:null,ariaDescribedBy:Pd,ariaDetails:null,ariaDisabled:Md,ariaDropEffect:Pd,ariaErrorMessage:null,ariaExpanded:Md,ariaFlowTo:Pd,ariaGrabbed:Md,ariaHasPopup:null,ariaHidden:Md,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pd,ariaLevel:W,ariaLive:null,ariaModal:Md,ariaMultiLine:Md,ariaMultiSelectable:Md,ariaOrientation:null,ariaOwns:Pd,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:Md,ariaReadOnly:Md,ariaRelevant:null,ariaRequired:Md,ariaRoleDescription:Pd,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:Md,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Ud(e,t){return t in e?e[t]:t}function Wd(e,t){return Ud(e,t.toLowerCase())}var Gd=Vd({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Fd,acceptCharset:Pd,accessKey:Pd,action:null,allow:null,allowFullScreen:jd,allowPaymentRequest:jd,allowUserMedia:jd,alt:null,as:null,async:jd,autoCapitalize:null,autoComplete:Pd,autoFocus:jd,autoPlay:jd,blocking:Pd,capture:null,charSet:null,checked:jd,cite:null,className:Pd,cols:W,colSpan:null,content:null,contentEditable:Md,controls:jd,controlsList:Pd,coords:W|Fd,crossOrigin:null,data:null,dateTime:null,decoding:null,default:jd,defer:jd,dir:null,dirName:null,disabled:jd,download:Nd,draggable:Md,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:jd,formTarget:null,headers:Pd,height:W,hidden:Nd,high:W,href:null,hrefLang:null,htmlFor:Pd,httpEquiv:Pd,id:null,imageSizes:null,imageSrcSet:null,inert:jd,inputMode:null,integrity:null,is:null,isMap:jd,itemId:null,itemProp:Pd,itemRef:Pd,itemScope:jd,itemType:Pd,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:jd,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:jd,muted:jd,name:null,nonce:null,noModule:jd,noValidate:jd,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:jd,optimum:W,pattern:null,ping:Pd,placeholder:null,playsInline:jd,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:jd,referrerPolicy:null,rel:Pd,required:jd,reversed:jd,rows:W,rowSpan:W,sandbox:Pd,scope:null,scoped:jd,seamless:jd,selected:jd,shadowRootClonable:jd,shadowRootDelegatesFocus:jd,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:Md,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:jd,useMap:null,value:Md,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pd,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:jd,declare:jd,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:jd,noHref:jd,noShade:jd,noWrap:jd,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:Md,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:jd,disableRemotePlayback:jd,prefix:null,property:null,results:W,security:null,unselectable:null},space:`html`,transform:Wd}),Kd=Vd({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:Id,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:Pd,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:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:jd,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,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:Fd,g2:Fd,glyphName:Fd,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:Id,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,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:W,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:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pd,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Id,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Id,rev:Id,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Id,requiredFeatures:Id,requiredFonts:Id,requiredFormats:Id,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:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:Id,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Id,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Id,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Ud}),qd=Vd({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()}}),Jd=Vd({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Wd}),Yd=Vd({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Xd={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`},Zd=/[A-Z]/g,Qd=/-[a-z]/g,$d=/^data[-\w.:]+$/i;function ef(e,t){let n=Od(t),r=t,i=U;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&$d.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Qd,nf);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Qd.test(e)){let n=e.replace(Zd,tf);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=zd}return new i(r,t)}function tf(e){return`-`+e.toLowerCase()}function nf(e){return e.charAt(1).toUpperCase()}var rf=Dd([Hd,Gd,qd,Jd,Yd],`html`),af=Dd([Hd,Kd,qd,Jd,Yd],`svg`);function of(e){let t=String(e||``).trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function sf(e){return e.join(` `).trim()}var cf=_(((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})),lf=_((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(cf());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}})),uf=_((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))}})),df=_(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(lf()),r=uf();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})),ff=mf(`end`),pf=mf(`start`);function mf(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 hf(e){let t=pf(e),n=ff(e);if(t&&n)return{start:t,end:n}}function gf(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?vf(e.position):`start`in e||`end`in e?vf(e):`line`in e||`column`in e?_f(e):``}function _f(e){return yf(e&&e.line)+`:`+yf(e&&e.column)}function vf(e){return _f(e&&e.start)+`-`+_f(e&&e.end)}function yf(e){return e&&typeof e==`number`?e:1}var bf=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=gf(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}};bf.prototype.file=``,bf.prototype.name=``,bf.prototype.reason=``,bf.prototype.message=``,bf.prototype.stack=``,bf.prototype.column=void 0,bf.prototype.line=void 0,bf.prototype.ancestors=void 0,bf.prototype.cause=void 0,bf.prototype.fatal=void 0,bf.prototype.place=void 0,bf.prototype.ruleId=void 0,bf.prototype.source=void 0;var xf=S(df(),1),Sf={}.hasOwnProperty,Cf=new Map,wf=/[A-Z]/g,Tf=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Ef=new Set([`td`,`th`]),Df=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Of(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=zf(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=Rf(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`?af:rf,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=kf(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function kf(e,t,n){if(t.type===`element`)return Af(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return jf(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Nf(e,t,n);if(t.type===`mdxjsEsm`)return Mf(e,t);if(t.type===`root`)return Pf(e,t,n);if(t.type===`text`)return Ff(e,t)}function Af(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=af,e.schema=i),e.ancestors.push(t);let a=Gf(e,t.tagName,!1),o=Bf(e,t),s=Hf(e,t);return Tf.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!wd(e):!0})),If(e,o,a,t),Lf(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function jf(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)}Kf(e,t.position)}function Mf(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Kf(e,t.position)}function Nf(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=af,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Gf(e,t.name,!0),o=Vf(e,t),s=Hf(e,t);return If(e,o,a,t),Lf(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Pf(e,t,n){let r={};return Lf(r,Hf(e,t)),e.create(t,e.Fragment,r,n)}function Ff(e,t){return t.value}function If(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Lf(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Rf(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 zf(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=pf(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 Bf(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Sf.call(t.properties,i)){let a=Uf(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Ef.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 Vf(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 Kf(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 Kf(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Hf(e,t){let n=[],r=-1,i=e.passKeys?new Map:Cf;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=kf(e,a,o);s!==void 0&&n.push(s)}return n}function Uf(e,t,n){let r=ef(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?vd(n):sf(n)),r.property===`style`){let t=typeof n==`object`?n:Wf(e,String(n));return e.stylePropertyNameCase===`css`&&(t=qf(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Xd[r.property]||r.property:r.attribute,n]}}function Wf(e,t){try{return(0,xf.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new bf("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=Df+`#cannot-parse-style-attribute`,r}}function Gf(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=Sd(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=Sd(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Sf.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Kf(e)}function Kf(e,t){let n=new bf("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=Df+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function qf(e){let t={},n;for(n in e)Sf.call(e,n)&&(t[Jf(n)]=e[n]);return t}function Jf(e){let t=e.replace(wf,Yf);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Yf(e){return`-`+e.toLowerCase()}var Xf={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`]},Zf={};function Qf(e,t){let n=t||Zf;return $f(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function $f(e,t,n){if(tp(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 ep(e.children,t,n)}return Array.isArray(e)?ep(e,t,n):``}function ep(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=$f(e[i],t,n);return r.join(``)}function tp(e){return!!(e&&typeof e==`object`)}var np={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:``},rp={}.hasOwnProperty;function ip(e){return rp.call(np,e)?np[e]:!1}function ap(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 op(e,t){return e.length>0?(ap(e,e.length,0,t),e):t}var sp={}.hasOwnProperty;function cp(e){let t={},n=-1;for(;++n<e.length;)lp(t,e[n]);return t}function lp(e,t){let n;for(n in t){let r=(sp.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){sp.call(r,a)||(r[a]=[]);let e=i[a];up(r[a],Array.isArray(e)?e:e?[e]:[])}}}function up(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);ap(e,0,0,r)}function dp(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 fp(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var pp=wp(/[A-Za-z]/),mp=wp(/[\dA-Za-z]/),hp=wp(/[#-'*+\--9=?A-Z^-~]/);function gp(e){return e!==null&&(e<32||e===127)}var _p=wp(/\d/),vp=wp(/[\dA-Fa-f]/),yp=wp(/[!-/:-@[-`{-~]/);function G(e){return e!==null&&e<-2}function bp(e){return e!==null&&(e<0||e===32)}function xp(e){return e===-2||e===-1||e===32}var Sp=wp(/\p{P}|\p{S}/u),Cp=wp(/\s/);function wp(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Tp(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&mp(e.charCodeAt(n+1))&&mp(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 Ep(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return xp(r)?(e.enter(n),s(r)):t(r)}function s(r){return xp(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Dp={tokenize:Op};function Op(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`),Ep(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 G(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var kp={tokenize:jp},Ap={tokenize:Mp};function jp(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 ap(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(Ap,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(Ap,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 G(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++;ap(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 Mp(e,t,n){return Ep(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Np(e){if(e===null||bp(e)||Cp(e))return 1;if(Sp(e))return 2}function Pp(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 Fp={name:`attention`,resolveAll:Ip,tokenize:Lp};function Ip(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};Rp(d,-c),Rp(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=op(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=op(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=op(l,Pp(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=op(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=op(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,ap(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 Lp(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Np(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=Np(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 Rp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var zp={name:`autolink`,tokenize:Bp};function Bp(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 pp(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||mp(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||mp(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||gp(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):hp(t)?(e.consume(t),l):n(t)}function u(e){return mp(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||mp(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Vp={partial:!0,tokenize:Hp};function Hp(e,t,n){return r;function r(t){return xp(t)?Ep(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||G(e)?t(e):n(e)}}var Up={continuation:{tokenize:Gp},exit:Kp,name:`blockQuote`,tokenize:Wp};function Wp(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 xp(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Gp(e,t,n){let r=this;return i;function i(t){return xp(t)?Ep(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(Up,t,n)(r)}}function Kp(e){e.exit(`blockQuote`)}var qp={name:`characterEscape`,tokenize:Jp};function Jp(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 yp(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var Yp={name:`characterReference`,tokenize:Xp};function Xp(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=mp,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=vp,u):(e.enter(`characterReferenceValue`),a=7,o=_p,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===mp&&!ip(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 Zp={partial:!0,tokenize:em},Qp={concrete:!0,name:`codeFenced`,tokenize:$p};function $p(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`),xp(t)?Ep(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||G(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(Zp,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||G(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):xp(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Ep(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||G(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||G(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&&xp(t)?Ep(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||G(t)?e.check(Zp,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||G(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`),xp(t)?Ep(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`),xp(t)?Ep(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||G(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function em(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 tm={name:`codeIndented`,tokenize:rm},nm={partial:!0,tokenize:im};function rm(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Ep(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):G(t)?e.attempt(nm,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||G(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function im(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):G(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Ep(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):G(e)?i(e):n(e)}}var am={name:`codeText`,previous:sm,resolve:om,tokenize:cm};function om(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 sm(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function cm(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)):G(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||G(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 lm=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&&um(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),um(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),um(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);um(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);um(this.left,t.reverse())}}};function um(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 dm(e){let t={},n=-1,r,i,a,o,s,c,l,u=new lm(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,fm(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 ap(e,0,1/0,u.slice(0)),!l}function fm(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 pm={resolve:hm,tokenize:gm},mm={partial:!0,tokenize:_m};function hm(e){return dm(e),e}function gm(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):G(t)?e.check(mm,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 _m(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Ep(e,a,`linePrefix`)}function a(i){if(i===null||G(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 vm(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||gp(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||G(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||bp(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||gp(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 ym(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):G(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||G(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!xp(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function bm(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):G(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Ep(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||G(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 xm(e,t){let n;return r;function r(i){return G(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):xp(i)?Ep(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Sm={name:`definition`,tokenize:wm},Cm={partial:!0,tokenize:Tm};function wm(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return ym.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=fp(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 bp(t)?xm(e,l)(t):l(t)}function l(t){return vm(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Cm,d,d)(t)}function d(t){return xp(t)?Ep(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||G(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Tm(e,t,n){return r;function r(t){return bp(t)?xm(e,i)(t):n(t)}function i(t){return bm(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return xp(t)?Ep(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||G(e)?t(e):n(e)}}var Em={name:`hardBreakEscape`,tokenize:Dm};function Dm(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return G(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Om={name:`headingAtx`,resolve:km,tokenize:Am};function km(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`},ap(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Am(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||bp(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||G(n)?(e.exit(`atxHeading`),t(n)):xp(n)?Ep(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||bp(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var jm=`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(`.`),Mm=[`pre`,`script`,`style`,`textarea`],Nm={concrete:!0,name:`htmlFlow`,resolveTo:Im,tokenize:Lm},Pm={partial:!0,tokenize:zm},Fm={partial:!0,tokenize:Rm};function Im(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 Lm(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:ie):pp(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):pp(a)?(e.consume(a),i=4,r.interrupt?t:ie):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ie):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 pp(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||bp(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Mm.includes(l)?(i=1,r.interrupt?t(s):O(s)):jm.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||mp(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 xp(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||pp(t)?(e.consume(t),b):xp(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||mp(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):xp(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):xp(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||G(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||bp(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||xp(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||G(t)?O(t):xp(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),k):t===60&&i===1?(e.consume(t),A):t===62&&i===4?(e.consume(t),ae):t===63&&i===3?(e.consume(t),ie):t===93&&i===5?(e.consume(t),re):G(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Pm,oe,ee)(t)):t===null||G(t)?(e.exit(`htmlFlowData`),ee(t)):(e.consume(t),O)}function ee(t){return e.check(Fm,te,oe)(t)}function te(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ne}function ne(t){return t===null||G(t)?ee(t):(e.enter(`htmlFlowData`),O(t))}function k(t){return t===45?(e.consume(t),ie):O(t)}function A(t){return t===47?(e.consume(t),o=``,j):O(t)}function j(t){if(t===62){let n=o.toLowerCase();return Mm.includes(n)?(e.consume(t),ae):O(t)}return pp(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),j):O(t)}function re(t){return t===93?(e.consume(t),ie):O(t)}function ie(t){return t===62?(e.consume(t),ae):t===45&&i===2?(e.consume(t),ie):O(t)}function ae(t){return t===null||G(t)?(e.exit(`htmlFlowData`),oe(t)):(e.consume(t),ae)}function oe(n){return e.exit(`htmlFlow`),t(n)}}function Rm(e,t,n){let r=this;return i;function i(t){return G(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 zm(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Vp,t,n)}}var Bm={name:`htmlText`,tokenize:Vm};function Vm(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):pp(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):pp(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):G(t)?(o=d,A(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?k(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):G(t)?(o=h,A(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?k(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?k(t):G(t)?(o=v,A(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):G(t)?(o=y,A(t)):(e.consume(t),y)}function b(e){return e===62?k(e):y(e)}function x(t){return pp(t)?(e.consume(t),S):n(t)}function S(t){return t===45||mp(t)?(e.consume(t),S):C(t)}function C(t){return G(t)?(o=C,A(t)):xp(t)?(e.consume(t),C):k(t)}function w(t){return t===45||mp(t)?(e.consume(t),w):t===47||t===62||bp(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),k):t===58||t===95||pp(t)?(e.consume(t),E):G(t)?(o=T,A(t)):xp(t)?(e.consume(t),T):k(t)}function E(t){return t===45||t===46||t===58||t===95||mp(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):G(t)?(o=D,A(t)):xp(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):G(t)?(o=O,A(t)):xp(t)?(e.consume(t),O):(e.consume(t),te)}function ee(t){return t===i?(e.consume(t),i=void 0,ne):t===null?n(t):G(t)?(o=ee,A(t)):(e.consume(t),ee)}function te(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||bp(t)?T(t):(e.consume(t),te)}function ne(e){return e===47||e===62||bp(e)?T(e):n(e)}function k(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function A(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return xp(t)?Ep(e,re,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):re(t)}function re(t){return e.enter(`htmlTextData`),o(t)}}var Hm={name:`labelEnd`,resolveAll:Km,resolveTo:qm,tokenize:Jm},Um={tokenize:Ym},Wm={tokenize:Xm},Gm={tokenize:Zm};function Km(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&&ap(e,0,e.length,n),e}function qm(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=op(s,e.slice(a+1,a+r+3)),s=op(s,[[`enter`,u,t]]),s=op(s,Pp(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=op(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=op(s,e.slice(o+1)),s=op(s,[[`exit`,c,t]]),ap(e,a,e.length,s),e}function Jm(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(fp(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(Um,u,o?u:d)(t):t===91?e.attempt(Wm,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Gm,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function Ym(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 bp(t)?xm(e,a)(t):a(t)}function a(t){return t===41?u(t):vm(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return bp(t)?xm(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?bm(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return bp(t)?xm(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 Xm(e,t,n){let r=this;return i;function i(t){return ym.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(fp(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Zm(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 Qm={name:`labelStartImage`,resolveAll:Hm.resolveAll,tokenize:$m};function $m(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 eh={name:`labelStartLink`,resolveAll:Hm.resolveAll,tokenize:th};function th(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 nh={name:`lineEnding`,tokenize:rh};function rh(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Ep(e,t,`linePrefix`)}}var ih={name:`thematicBreak`,tokenize:ah};function ah(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||G(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),xp(t)?Ep(e,s,`whitespace`)(t):s(t))}}var oh={continuation:{tokenize:uh},exit:fh,name:`list`,tokenize:lh},sh={partial:!0,tokenize:ph},ch={partial:!0,tokenize:dh};function lh(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:_p(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(ih,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 _p(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(Vp,r.interrupt?n:u,e.attempt(sh,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return xp(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 uh(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Vp,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ep(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!xp(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(ch,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ep(e,e.attempt(oh,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function dh(e,t,n){let r=this;return Ep(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 fh(e){e.exit(this.containerState.type)}function ph(e,t,n){let r=this;return Ep(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!xp(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var mh={name:`setextUnderline`,resolveTo:hh,tokenize:gh};function hh(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 gh(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`),xp(t)?Ep(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||G(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var _h={tokenize:vh};function vh(e){let t=this,n=e.attempt(Vp,r,e.attempt(this.parser.constructs.flowInitial,i,Ep(e,e.attempt(this.parser.constructs.flow,i,e.attempt(pm,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 yh={resolveAll:Ch()},bh=Sh(`string`),xh=Sh(`text`);function Sh(e){return{resolveAll:Ch(e===`text`?wh: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 Ch(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 wh(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 Th=de({attentionMarkers:()=>Nh,contentInitial:()=>Dh,disable:()=>Ph,document:()=>Eh,flow:()=>kh,flowInitial:()=>Oh,insideSpan:()=>Mh,string:()=>Ah,text:()=>jh}),Eh={42:oh,43:oh,45:oh,48:oh,49:oh,50:oh,51:oh,52:oh,53:oh,54:oh,55:oh,56:oh,57:oh,62:Up},Dh={91:Sm},Oh={[-2]:tm,[-1]:tm,32:tm},kh={35:Om,42:ih,45:[mh,ih],60:Nm,61:mh,95:ih,96:Qp,126:Qp},Ah={38:Yp,92:qp},jh={[-5]:nh,[-4]:nh,[-3]:nh,33:Qm,38:Yp,42:Fp,60:[zp,Bm],91:eh,92:[Em,qp],93:Hm,95:Fp,96:am},Mh={null:[Fp,yh]},Nh={null:[42,95]},Ph={null:[]};function Fh(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=op(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Pp(a,l.events,l),l.events):[]}function f(e,t){return Lh(p(e),t)}function p(e){return Ih(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){G(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&&ap(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 Ih(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 Lh(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 Rh(e){let t={constructs:cp([Th,...(e||{}).extensions||[]]),content:n(Dp),defined:[],document:n(kp),flow:n(_h),lazy:{},string:n(bh),text:n(xh)};return t;function n(e){return n;function n(n){return Fh(t,e,n)}}}function zh(e){for(;!dm(e););return e}var Bh=/[\0\t\n\r]/g;function Vh(){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(Bh.lastIndex=u,c=Bh.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 Hh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Uh(e){return e.replace(Hh,Wh)}function Wh(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return dp(n.slice(t?2:1),t?16:10)}return ip(n)||e}var Gh={}.hasOwnProperty;function Kh(e,t,n){return typeof t!=`string`&&(n=t,t=void 0),qh(n)(zh(Rh(n).document().write(Vh()(e,t,!0))))}function qh(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(xe),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(_e),blockQuote:a(pe),characterEscape:T,characterReference:T,codeFenced:a(me),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(me,o),codeText:a(N,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(he),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ge),hardBreakEscape:a(ve),hardBreakTrailing:a(ve),htmlFlow:a(ye,o),htmlFlowData:T,htmlText:a(ye,o),htmlTextData:T,image:a(be),label:o,link:a(xe),listItem:a(Ce),listItemValue:f,listOrdered:a(Se,d),listUnordered:a(Se),paragraph:a(we),reference:se,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(_e),strong:a(Te),thematicBreak:a(De)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:fe,autolinkProtocol:de,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:le,characterReference:ue,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(ne),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(te),htmlTextData:E,image:c(A),label:re,labelText:j,lineEnding:D,link:c(k),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:M,resourceDestinationString:ie,resourceTitleString:ae,resource:oe,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};Yh(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]];Gh.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]||Zh).call(a,void 0,e[0])}for(r.position={start:Jh(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Jh(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:Jh(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]||Zh).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+gf({start:e.start,end:e.end})+`): it’s not open`);n.position.end=Jh(e.end)}function u(){return Qf(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=fp(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=Ee(),n.position={start:Jh(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=Jh(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=Jh(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 te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function k(){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 A(){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 j(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Uh(t),n.identifier=fp(t).toLowerCase()}function re(){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 ie(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function oe(){this.data.inReference=void 0}function se(){this.data.referenceType=`collapsed`}function M(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=fp(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ce(e){this.data.characterReferenceType=e.type}function le(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=dp(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=ip(t);let i=this.stack[this.stack.length-1];i.value+=r}function ue(e){let t=this.stack.pop();t.position.end=Jh(e.end)}function de(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function fe(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function pe(){return{type:`blockquote`,children:[]}}function me(){return{type:`code`,lang:null,meta:null,value:``}}function N(){return{type:`inlineCode`,value:``}}function he(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ge(){return{type:`emphasis`,children:[]}}function _e(){return{type:`heading`,depth:0,children:[]}}function ve(){return{type:`break`}}function ye(){return{type:`html`,value:``}}function be(){return{type:`image`,title:null,url:``,alt:null}}function xe(){return{type:`link`,title:null,url:``,children:[]}}function Se(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Ce(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function we(){return{type:`paragraph`,children:[]}}function Te(){return{type:`strong`,children:[]}}function Ee(){return{type:`text`,value:``}}function De(){return{type:`thematicBreak`}}}function Jh(e){return{line:e.line,column:e.column,offset:e.offset}}function Yh(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Yh(e,r):Xh(e,r)}}function Xh(e,t){let n;for(n in t)if(Gh.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 Zh(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+gf({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+gf({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+gf({start:t.start,end:t.end})+`) is still open`)}function Qh(e){let t=this;t.parser=n;function n(n){return Kh(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function $h(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 eg(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
18
|
+
`}]}function tg(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 ng(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function rg(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ig(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Tp(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 ag(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 og(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function sg(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 cg(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sg(e,t);let i={src:Tp(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 lg(e,t){let n={src:Tp(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 ug(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 dg(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return sg(e,t);let i={href:Tp(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 fg(e,t){let n={href:Tp(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 pg(e,t,n){let r=e.all(t),i=n?mg(n):hg(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 mg(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=hg(n[r])}return t}function hg(e){return e.spread??e.children.length>1}function gg(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 _g(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vg(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function yg(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bg(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=pf(t.children[1]),o=ff(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 xg(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 Sg(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Cg=9,wg=32;function Tg(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Eg(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Eg(t.slice(i),i>0,!1)),a.join(``)}function Eg(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Cg||t===wg;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Cg||t===wg;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Dg(e,t){let n={type:`text`,value:Tg(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Og(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var kg={blockquote:$h,break:eg,code:tg,delete:ng,emphasis:rg,footnoteReference:ig,heading:ag,html:og,imageReference:cg,image:lg,inlineCode:ug,linkReference:dg,link:fg,listItem:pg,list:gg,paragraph:_g,root:vg,strong:yg,table:bg,tableCell:Sg,tableRow:xg,text:Dg,thematicBreak:Og,toml:Ag,yaml:Ag,definition:Ag,footnoteDefinition:Ag};function Ag(){}var jg=typeof self==`object`?self:globalThis,Mg=(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 jg[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 jg[a](o),i)};return r},Ng=e=>Mg(new Map,e)(0),Pg=``,{toString:Fg}={},{keys:Ig}=Object,Lg=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Fg.call(e).slice(8,-1);switch(n){case`Array`:return[1,Pg];case`Object`:return[2,Pg];case`Date`:return[3,Pg];case`RegExp`:return[4,Pg];case`Map`:return[5,Pg];case`Set`:return[6,Pg];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},Rg=([e,t])=>e===0&&(t===`function`||t===`symbol`),zg=(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]=Lg(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 Ig(r))(e||!Rg(Lg(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||!(Rg(Lg(n))||Rg(Lg(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!Rg(Lg(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},Bg=(e,{json:t,lossy:n}={})=>{let r=[];return zg(!(t||n),!!t,new Map,r)(e),r},Vg=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?Ng(Bg(e,t)):structuredClone(e):(e,t)=>Ng(Bg(e,t));function Hg(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 Ug(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Wg(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||Hg,r=e.options.footnoteBackLabel||Ug,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=Tp(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:{...Vg(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 Gg=(function(e){if(e==null)return Xg;if(typeof e==`function`)return Yg(e);if(typeof e==`object`)return Array.isArray(e)?Kg(e):qg(e);if(typeof e==`string`)return Jg(e);throw Error(`Expected function, string, or object as test`)});function Kg(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Gg(e[n]);return Yg(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function qg(e){let t=e;return Yg(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function Jg(e){return Yg(t);function t(t){return t&&t.type===e}}function Yg(e){return t;function t(t,n,r){return!!(Zg(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Xg(){return!0}function Zg(e){return typeof e==`object`&&!!e&&`type`in e}function Qg(e){return e}var $g=[];function e_(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=Gg(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 (`+Qg(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=$g,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=t_(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 t_(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?$g:[e]}function n_(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),e_(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 r_={}.hasOwnProperty,i_={};function a_(e,t){let n=t||i_,r=new Map,i=new Map,a={all:s,applyData:s_,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...kg,...n.handlers},one:o,options:n,patch:o_,wrap:l_};return n_(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(r_.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=Vg(n);return r.children=a.all(e),r}return Vg(e)}return(a.options.unknownHandler||c_)(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=u_(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=u_(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function o_(e,t){e.position&&(t.position=hf(e))}function s_(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,Vg(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function c_(e,t){let n=t.data||{},r=`value`in t&&!(r_.call(n,`hProperties`)||r_.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 l_(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 u_(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function d_(e,t){let n=a_(e,t),r=n.one(e,void 0),i=Wg(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 f_(e,t){return e&&`run`in e?async function(n,r){let i=d_(n,{file:r,...t});await e.run(i,r)}:function(n,r){return d_(n,{file:r,...e||t})}}function p_(e){if(e)throw e}var m_=_(((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 h_(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 g_(){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?__(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 __(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 v_={basename:y_,dirname:b_,extname:x_,join:S_,sep:`/`};function y_(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);T_(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 b_(e){if(T_(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 x_(e){T_(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 S_(...e){let t=-1,n;for(;++t<e.length;)T_(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:C_(n)}function C_(e){T_(e);let t=e.codePointAt(0)===47,n=w_(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function w_(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 T_(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var E_={cwd:D_};function D_(){return`/`}function O_(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function k_(e){if(typeof e==`string`)e=new URL(e);else if(!O_(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 A_(e)}function A_(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 j_=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],M_=class{constructor(e){let t;t=e?O_(e)?{path:e}:typeof e==`string`||I_(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:E_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<j_.length;){let e=j_[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)j_.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?v_.basename(this.path):void 0}set basename(e){P_(e,`basename`),N_(e,`basename`),this.path=v_.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?v_.dirname(this.path):void 0}set dirname(e){F_(this.basename,`dirname`),this.path=v_.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?v_.extname(this.path):void 0}set extname(e){if(N_(e,`extname`),F_(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=v_.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){O_(e)&&(e=k_(e)),P_(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?v_.basename(this.path,this.extname):void 0}set stem(e){P_(e,`stem`),N_(e,`stem`),this.path=v_.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 bf(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 N_(e,t){if(e&&e.includes(v_.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+v_.sep+"`")}function P_(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function F_(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function I_(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var L_=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),R_=S(m_(),1),z_={}.hasOwnProperty,B_=new class e extends L_{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=g_()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,R_.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(U_(`data`,this.frozen),this.namespace[e]=t,this):z_.call(this.namespace,e)&&this.namespace[e]||void 0:e?(U_(`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=K_(e),n=this.parser||this.Parser;return V_(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),V_(`process`,this.parser||this.Parser),H_(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=K_(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);J_(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(),V_(`processSync`,this.parser||this.Parser),H_(`processSync`,this.compiler||this.Compiler),this.process(e,r),G_(`processSync`,`process`,t),n;function r(e,r){t=!0,p_(e),n=r}}run(e,t,n){W_(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=K_(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),G_(`runSync`,`run`,n),r;function i(e,t){p_(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=K_(t),r=this.compiler||this.Compiler;return H_(`stringify`,r),W_(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(U_(`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,R_.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];h_(o)&&h_(r)&&(r=(0,R_.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function V_(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function H_(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function U_(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 W_(e){if(!h_(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function G_(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function K_(e){return q_(e)?e:new M_(e)}function q_(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function J_(e){return typeof e==`string`||Y_(e)}function Y_(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var X_=[],Z_={allowDangerousHtml:!0},Q_=/^(https?|ircs?|mailto|xmpp)$/i,$_=[{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 ev(e){let t=tv(e),n=nv(e);return rv(t.runSync(t.parse(n),n),e)}function tv(e){let t=e.rehypePlugins||X_,n=e.remarkPlugins||X_,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Z_}:Z_;return B_().use(Qh).use(n).use(f_,r).use(t)}function nv(e){let t=e.children||``,n=new M_;return typeof t==`string`?n.value=t:``+t,n}function rv(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||iv;for(let e of $_)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return n_(e,l),Of(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 Xf)if(Object.hasOwn(Xf,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=Xf[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 iv(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||Q_.test(e.slice(0,t))?e:``}var av=/[#.]/g;function ov(e,t){let n=e||``,r={},i=0,a,o;for(;i<n.length;){av.lastIndex=i;let e=av.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 sv(e,t,n){let r=n?pv(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=ov(n,t);let s=o.tagName.toLowerCase(),c=r?r.get(s):void 0;if(o.tagName=c||s,cv(i))a.unshift(i);else for(let[t,n]of Object.entries(i))lv(e,o.properties,t,n)}for(let e of a)uv(o.children,e);return o.type===`element`&&o.tagName===`template`&&(o.content={type:`root`,children:o.children},o.children=[]),o}return i}function cv(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 lv(e,t,n,r){let i=ef(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?of(r):i.commaSeparated?_d(r):i.commaOrSpaceSeparated?of(_d(r).join(` `)):dv(i,i.property,r):Array.isArray(r)?[...r]:i.property===`style`?fv(r):String(r);if(Array.isArray(a)){let e=[];for(let t of a)e.push(dv(i,i.property,t));a=e}i.property===`className`&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function uv(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)uv(e,n);else if(typeof t==`object`&&`type`in t)t.type===`root`?uv(e,t.children):e.push(t);else throw Error("Expected node, nodes, or string, got `"+t+"`")}function dv(e,t,n){if(typeof n==`string`){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===``||Od(n)===Od(t)))return!0}return n}function fv(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(`: `));return t.join(`; `)}function pv(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}var mv=`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(`.`),hv=sv(rf,`div`),gv=sv(af,`g`,mv);function _v(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=vv(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=vv(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 vv(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 yv={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/`},bv={}.hasOwnProperty,xv=Object.prototype;function Sv(e,t){let n=t||{};return Cv({file:n.file||void 0,location:!1,schema:n.space===`svg`?af:rf,verbose:n.verbose||!1},e)}function Cv(e,t){let n;switch(t.nodeName){case`#comment`:{let r=t;return n={type:`comment`,value:r.data},Ev(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:wv(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){let t=String(e.file),r=_v(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`},Ev(e,r,n),n}case`#text`:{let r=t;return n={type:`text`,value:r.value},Ev(e,r,n),n}default:return n=Tv(e,t),n}}function wv(e,t){let n=-1,r=[];for(;++n<t.length;){let i=Cv(e,t[n]);r.push(i)}return r}function Tv(e,t){let n=e.schema;e.schema=t.namespaceURI===yv.svg?af:rf;let r=-1,i={};for(;++r<t.attrs.length;){let e=t.attrs[r],n=(e.prefix?e.prefix+`:`:``)+e.name;bv.call(xv,n)||(i[n]=e.value)}let a=(e.schema.space===`svg`?gv:hv)(t.tagName,i,wv(e,t.childNodes));if(Ev(e,t,a),a.tagName===`template`){let n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&Ov(r.startTag),o=r&&r.endTag&&Ov(r.endTag),s=Cv(e,n.content);i&&o&&e.file&&(s.position={start:i.end,end:o.start}),a.content=s}return e.schema=n,a}function Ev(e,t,n){if(`sourceCodeLocation`in t&&t.sourceCodeLocation&&e.file){let r=Dv(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Dv(e,t,n){let r=Ov(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)bv.call(n.attrs,i)&&(r[ef(e.schema,i).property]=Ov(n.attrs[i]));n.startTag;let a=Ov(n.startTag),o=n.endTag?Ov(n.endTag):void 0,s={opening:a};o&&(s.closing=o),s.properties=r,t.data={position:s}}}return r}function Ov(e){let t=kv({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=kv({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function kv(e){return e.line&&e.column?e:void 0}var Av={}.hasOwnProperty;function jv(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&Av.call(t,e)){let n=String(t[e]);i=Av.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 Mv={},Nv={}.hasOwnProperty,Pv=jv(`type`,{handlers:{root:Iv,element:Vv,text:zv,comment:Bv,doctype:Rv}});function Fv(e,t){let n=(t||Mv).space;return Pv(e,n===`svg`?af:rf)}function Iv(e,t){let n={nodeName:`#document`,mode:(e.data||{}).quirksMode?`quirks`:`no-quirks`,childNodes:[]};return n.childNodes=Uv(e.children,n,t),Wv(e,n),n}function Lv(e,t){let n={nodeName:`#document-fragment`,childNodes:[]};return n.childNodes=Uv(e.children,n,t),Wv(e,n),n}function Rv(e){let t={nodeName:`#documentType`,name:`html`,publicId:``,systemId:``,parentNode:null};return Wv(e,t),t}function zv(e){let t={nodeName:`#text`,value:e.value,parentNode:null};return Wv(e,t),t}function Bv(e){let t={nodeName:`#comment`,data:e.value,parentNode:null};return Wv(e,t),t}function Vv(e,t){let n=t,r=n;e.type===`element`&&e.tagName.toLowerCase()===`svg`&&n.space===`html`&&(r=af);let i=[],a;if(e.properties){for(a in e.properties)if(a!==`children`&&Nv.call(e.properties,a)){let t=Hv(r,a,e.properties[a]);t&&i.push(t)}}let o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:yv[o],childNodes:[],parentNode:null};return s.childNodes=Uv(e.children,s,r),Wv(e,s),e.tagName===`template`&&e.content&&(s.content=Lv(e.content,r)),s}function Hv(e,t,n){let r=ef(e,t);if(n===!1||n==null||typeof n==`number`&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?vd(n):sf(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=yv[r.space]}return i}function Uv(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=Pv(e[r],n);a.parentNode=t,i.push(a)}return i}function Wv(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 Gv=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],Kv=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 qv={DASH_DASH:`--`,CDATA_START:`[CDATA[`,DOCTYPE:`doctype`,SCRIPT:`script`,PUBLIC:`public`,SYSTEM:`system`};function Jv(e){return e>=55296&&e<=57343}function Yv(e){return e>=56320&&e<=57343}function Xv(e,t){return(e-55296)*1024+9216+t}function Zv(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Qv(e){return e>=64976&&e<=65007||Kv.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 $v=65536,ey=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=$v,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(Yv(t))return this.pos++,this._addGap(),Xv(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,Jv(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){Zv(e)?this._err(q.controlCharacterInInputStream):Qv(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}},ty;(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`})(ty||={});function ny(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 ry=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))),iy=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 ay(e){return e>=55296&&e<=57343||e>1114111?65533:iy.get(e)??e}var oy;(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`})(oy||={});var sy=32,cy;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.BRANCH_LENGTH=16256]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(cy||={});function ly(e){return e>=oy.ZERO&&e<=oy.NINE}function uy(e){return e>=oy.UPPER_A&&e<=oy.UPPER_F||e>=oy.LOWER_A&&e<=oy.LOWER_F}function dy(e){return e>=oy.UPPER_A&&e<=oy.UPPER_Z||e>=oy.LOWER_A&&e<=oy.LOWER_Z||ly(e)}function fy(e){return e===oy.EQUALS||dy(e)}var py;(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`})(py||={});var my;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(my||={});var hy=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=py.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=my.Strict}startEntity(e){this.decodeMode=e,this.state=py.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case py.EntityStart:return e.charCodeAt(t)===oy.NUM?(this.state=py.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=py.NamedEntity,this.stateNamedEntity(e,t));case py.NumericStart:return this.stateNumericStart(e,t);case py.NumericDecimal:return this.stateNumericDecimal(e,t);case py.NumericHex:return this.stateNumericHex(e,t);case py.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|sy)===oy.LOWER_X?(this.state=py.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=py.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(ly(r)||uy(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(ly(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===oy.SEMI)this.consumed+=1;else if(this.decodeMode===my.Strict)return 0;return this.emitCodePoint(ay(this.result),this.consumed),this.errors&&(e!==oy.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&cy.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=gy(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===my.Attribute&&(i===0||fy(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&cy.VALUE_LENGTH)>>14,i!==0){if(a===oy.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==my.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]&cy.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]&~cy.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case py.NamedEntity:return this.result!==0&&(this.decodeMode!==my.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case py.NumericDecimal:return this.emitNumericEntity(0,2);case py.NumericHex:return this.emitNumericEntity(0,3);case py.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case py.EntityStart:return 0}}};function gy(e,t,n,r){let i=(t&cy.BRANCH_LENGTH)>>7,a=t&cy.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 _y;(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`})(_y||={});var vy;(function(e){e.NO_QUIRKS=`no-quirks`,e.QUIRKS=`quirks`,e.LIMITED_QUIRKS=`limited-quirks`})(vy||={});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 yy=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 by(e){return yy.get(e)??X.UNKNOWN}var Z=X,xy={[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},Sy=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 Cy={DATA:Q.DATA,RCDATA:Q.RCDATA,RAWTEXT:Q.RAWTEXT,SCRIPT_DATA:Q.SCRIPT_DATA,PLAINTEXT:Q.PLAINTEXT,CDATA_SECTION:Q.CDATA_SECTION};function wy(e){return e>=K.DIGIT_0&&e<=K.DIGIT_9}function Ty(e){return e>=K.LATIN_CAPITAL_A&&e<=K.LATIN_CAPITAL_Z}function Ey(e){return e>=K.LATIN_SMALL_A&&e<=K.LATIN_SMALL_Z}function Dy(e){return Ey(e)||Ty(e)}function Oy(e){return Dy(e)||wy(e)}function ky(e){return e+32}function Ay(e){return e===K.SPACE||e===K.LINE_FEED||e===K.TABULATION||e===K.FORM_FEED}function jy(e){return Ay(e)||e===K.SOLIDUS||e===K.GREATER_THAN_SIGN}function My(e){return e===K.NULL?q.nullCharacterReference:e>1114111?q.characterReferenceOutsideUnicodeRange:Jv(e)?q.surrogateCharacterReference:Qv(e)?q.noncharacterCharacterReference:Zv(e)||e===K.CARRIAGE_RETURN?q.controlCharacterReference:null}var Ny=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 ey(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new hy(ry,(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=My(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:ty.START_TAG,tagName:``,tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ty.END_TAG,tagName:``,tagID:X.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:ty.COMMENT,data:``,location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:ty.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(ny(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=by(e.tagName),e.type===ty.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 ty.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case ty.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case ty.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:ty.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=Ay(e)?ty.WHITESPACE_CHARACTER:e===K.NULL?ty.NULL_CHARACTER:ty.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(ty.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=Q.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?my.Attribute:my.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(Dy(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(Dy(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(Ty(e)?ky(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){Dy(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){Dy(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){Dy(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:Dy(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){Dy(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(qv.SCRIPT,!1)&&jy(this.preprocessor.peek(qv.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<qv.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(qv.SCRIPT,!1)&&jy(this.preprocessor.peek(qv.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<qv.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(Ty(e)?ky(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(qv.DASH_DASH,!0)?(this._createCommentToken(qv.DASH_DASH.length+1),this.state=Q.COMMENT_START):this._consumeSequenceIfMatch(qv.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(qv.DOCTYPE.length+1),this.state=Q.DOCTYPE):this._consumeSequenceIfMatch(qv.CDATA_START,!0)?this.inForeignNode?this.state=Q.CDATA_SECTION:(this._err(q.cdataInHtmlContent),this._createCommentToken(qv.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(Ty(e))this._createDoctypeToken(String.fromCharCode(ky(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(Ty(e)?ky(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(qv.PUBLIC,!1)?this.state=Q.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(qv.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()&&Oy(this.preprocessor.peek(1))?Q.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){Oy(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===K.SEMICOLON&&this._err(q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}},Py=new Set([X.DD,X.DT,X.LI,X.OPTGROUP,X.OPTION,X.P,X.RB,X.RP,X.RT,X.RTC]),Fy=new Set([...Py,X.CAPTION,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR]),Iy=new Set([X.APPLET,X.CAPTION,X.HTML,X.MARQUEE,X.OBJECT,X.TABLE,X.TD,X.TEMPLATE,X.TH]),Ly=new Set([...Iy,X.OL,X.UL]),Ry=new Set([...Iy,X.BUTTON]),zy=new Set([X.ANNOTATION_XML,X.MI,X.MN,X.MO,X.MS,X.MTEXT]),By=new Set([X.DESC,X.FOREIGN_OBJECT,X.TITLE]),Vy=new Set([X.TR,X.TEMPLATE,X.HTML]),Hy=new Set([X.TBODY,X.TFOOT,X.THEAD,X.TEMPLATE,X.HTML]),Uy=new Set([X.TABLE,X.TEMPLATE,X.HTML]),Wy=new Set([X.TD,X.TH]),Gy=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(Sy,J.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Wy,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(Uy,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Hy,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(Vy,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(By.has(r))return!1;break;case J.MATHML:if(zy.has(r))return!1;break}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Iy)}hasInListItemScope(e){return this.hasInDynamicScope(e,Ly)}hasInButtonScope(e){return this.hasInDynamicScope(e,Ry)}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(Sy.has(t))return!0;if(Iy.has(t))return!1;break;case J.SVG:if(By.has(t))return!1;break;case J.MATHML:if(zy.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&&Py.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Fy.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&Fy.has(this.currentTagId);)this.pop()}},Ky=3,qy;(function(e){e[e.Marker=0]=`Marker`,e[e.Element=1]=`Element`})(qy||={});var Jy={type:qy.Marker},Yy=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===qy.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<Ky)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<Ky)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>=Ky&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(Jy)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:qy.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:qy.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(Jy);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===qy.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===qy.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===qy.Element&&t.element===e)}},Xy={createDocument(){return{nodeName:`#document`,mode:vy.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};Xy.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(Xy.isTextNode(n)){n.value+=t;return}}Xy.appendChild(e,Xy.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Xy.isTextNode(r)?r.value+=t:Xy.insertBefore(e,Xy.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}}},Zy=`html`,Qy=`about:legacy-compat`,$y=`http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd`,eb=`+//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(`,`),tb=[...eb,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`],nb=new Set([`-//w3o//dtd w3 html strict 3.0//en//`,`-/w3c/dtd html 4.0 transitional/en`,`html`]),rb=[`-//w3c//dtd xhtml 1.0 frameset//`,`-//w3c//dtd xhtml 1.0 transitional//`],ib=[...rb,`-//w3c//dtd html 4.01 frameset//`,`-//w3c//dtd html 4.01 transitional//`];function ab(e,t){return t.some(t=>e.startsWith(t))}function ob(e){return e.name===Zy&&e.publicId===null&&(e.systemId===null||e.systemId===Qy)}function sb(e){if(e.name!==Zy)return vy.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===$y)return vy.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),nb.has(n))return vy.QUIRKS;let e=t===null?tb:eb;if(ab(n,e))return vy.QUIRKS;if(e=t===null?rb:ib,ab(n,e))return vy.LIMITED_QUIRKS}return vy.NO_QUIRKS}var cb={TEXT_HTML:`text/html`,APPLICATION_XML:`application/xhtml+xml`},lb=`definitionurl`,ub=`definitionURL`,db=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])),fb=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}]]),pb=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])),mb=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 hb(e){let t=e.tagID;return t===X.FONT&&e.attrs.some(({name:e})=>e===_y.COLOR||e===_y.SIZE||e===_y.FACE)||mb.has(t)}function gb(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===lb){e.attrs[t].name=ub;break}}function _b(e){for(let t=0;t<e.attrs.length;t++){let n=db.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function vb(e){for(let t=0;t<e.attrs.length;t++){let n=fb.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 yb(e){let t=pb.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=by(e.tagName))}function bb(e,t){return t===J.MATHML&&(e===X.MI||e===X.MO||e===X.MN||e===X.MS||e===X.MTEXT)}function xb(e,t,n){if(t===J.MATHML&&e===X.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===_y.ENCODING){let t=n[e].value.toLowerCase();return t===cb.TEXT_HTML||t===cb.APPLICATION_XML}}return t===J.SVG&&(e===X.FOREIGN_OBJECT||e===X.DESC||e===X.TITLE)}function Sb(e,t,n,r){return(!r||r===J.HTML)&&xb(e,t,n)||(!r||r===J.MATHML)&&bb(e,t)}var Cb=`hidden`,wb=8,Tb=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 Eb={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Db=new Set([X.TABLE,X.TBODY,X.TFOOT,X.THEAD,X.TR]),Ob={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Xy,onParseError:null},kb=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={...Ob,...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 Ny(this.options,this),this.activeFormattingElements=new Yy(this.treeAdapter),this.fragmentContextID=n?by(this.treeAdapter.getTagName(n)):X.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new Gy(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={...Ob,...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??Eb,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=Cy.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=Cy.RCDATA;break;case X.STYLE:case X.XMP:case X.IFRAME:case X.NOEMBED:case X.NOFRAMES:case X.NOSCRIPT:this.tokenizer.state=Cy.RAWTEXT;break;case X.SCRIPT:this.tokenizer.state=Cy.SCRIPT_DATA;break;case X.PLAINTEXT:this.tokenizer.state=Cy.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===ty.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 ty.CHARACTER:this.onCharacter(e);break;case ty.NULL_CHARACTER:this.onNullCharacter(e);break;case ty.COMMENT:this.onComment(e);break;case ty.DOCTYPE:this.onDoctype(e);break;case ty.START_TAG:this._processStartTag(e);break;case ty.END_TAG:this.onEndTag(e);break;case ty.EOF:this.onEof(e);break;case ty.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e);break}}_isIntegrationPoint(e,t,n){return Sb(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===qy.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 Db.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 xy[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){qS(this,e);return}switch(this.insertionMode){case $.INITIAL:Hb(this,e);break;case $.BEFORE_HTML:Gb(this,e);break;case $.BEFORE_HEAD:Jb(this,e);break;case $.IN_HEAD:Qb(this,e);break;case $.IN_HEAD_NO_SCRIPT:tx(this,e);break;case $.AFTER_HEAD:ix(this,e);break;case $.IN_BODY:case $.IN_CAPTION:case $.IN_CELL:case $.IN_TEMPLATE:sx(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:nS(this,e);break;case $.IN_TABLE_TEXT:hS(this,e);break;case $.IN_COLUMN_GROUP:SS(this,e);break;case $.AFTER_BODY:RS(this,e);break;case $.AFTER_AFTER_BODY:WS(this,e);break;default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){KS(this,e);return}switch(this.insertionMode){case $.INITIAL:Hb(this,e);break;case $.BEFORE_HTML:Gb(this,e);break;case $.BEFORE_HEAD:Jb(this,e);break;case $.IN_HEAD:Qb(this,e);break;case $.IN_HEAD_NO_SCRIPT:tx(this,e);break;case $.AFTER_HEAD:ix(this,e);break;case $.TEXT:this._insertCharacters(e);break;case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:nS(this,e);break;case $.IN_COLUMN_GROUP:SS(this,e);break;case $.AFTER_BODY:RS(this,e);break;case $.AFTER_AFTER_BODY:WS(this,e);break;default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Lb(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:Lb(this,e);break;case $.IN_TABLE_TEXT:gS(this,e);break;case $.AFTER_BODY:Rb(this,e);break;case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:zb(this,e);break;default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case $.INITIAL:Vb(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:gS(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)?YS(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case $.INITIAL:Hb(this,e);break;case $.BEFORE_HTML:Ub(this,e);break;case $.BEFORE_HEAD:Kb(this,e);break;case $.IN_HEAD:Yb(this,e);break;case $.IN_HEAD_NO_SCRIPT:$b(this,e);break;case $.AFTER_HEAD:nx(this,e);break;case $.IN_BODY:Bx(this,e);break;case $.IN_TABLE:dS(this,e);break;case $.IN_TABLE_TEXT:gS(this,e);break;case $.IN_CAPTION:vS(this,e);break;case $.IN_COLUMN_GROUP:bS(this,e);break;case $.IN_TABLE_BODY:CS(this,e);break;case $.IN_ROW:TS(this,e);break;case $.IN_CELL:DS(this,e);break;case $.IN_SELECT:kS(this,e);break;case $.IN_SELECT_IN_TABLE:jS(this,e);break;case $.IN_TEMPLATE:NS(this,e);break;case $.AFTER_BODY:IS(this,e);break;case $.IN_FRAMESET:zS(this,e);break;case $.AFTER_FRAMESET:VS(this,e);break;case $.AFTER_AFTER_BODY:US(this,e);break;case $.AFTER_AFTER_FRAMESET:GS(this,e);break;default:}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?XS(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case $.INITIAL:Hb(this,e);break;case $.BEFORE_HTML:Wb(this,e);break;case $.BEFORE_HEAD:qb(this,e);break;case $.IN_HEAD:Xb(this,e);break;case $.IN_HEAD_NO_SCRIPT:ex(this,e);break;case $.AFTER_HEAD:rx(this,e);break;case $.IN_BODY:Qx(this,e);break;case $.TEXT:eS(this,e);break;case $.IN_TABLE:fS(this,e);break;case $.IN_TABLE_TEXT:gS(this,e);break;case $.IN_CAPTION:yS(this,e);break;case $.IN_COLUMN_GROUP:xS(this,e);break;case $.IN_TABLE_BODY:wS(this,e);break;case $.IN_ROW:ES(this,e);break;case $.IN_CELL:OS(this,e);break;case $.IN_SELECT:AS(this,e);break;case $.IN_SELECT_IN_TABLE:MS(this,e);break;case $.IN_TEMPLATE:PS(this,e);break;case $.AFTER_BODY:LS(this,e);break;case $.IN_FRAMESET:BS(this,e);break;case $.AFTER_FRAMESET:HS(this,e);break;case $.AFTER_AFTER_BODY:WS(this,e);break;default:}}onEof(e){switch(this.insertionMode){case $.INITIAL:Hb(this,e);break;case $.BEFORE_HTML:Gb(this,e);break;case $.BEFORE_HEAD:Jb(this,e);break;case $.IN_HEAD:Qb(this,e);break;case $.IN_HEAD_NO_SCRIPT:tx(this,e);break;case $.AFTER_HEAD:ix(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:$x(this,e);break;case $.TEXT:tS(this,e);break;case $.IN_TABLE_TEXT:gS(this,e);break;case $.IN_TEMPLATE:FS(this,e);break;case $.AFTER_BODY:case $.IN_FRAMESET:case $.AFTER_FRAMESET:case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:Bb(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:ox(this,e);break;case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:nS(this,e);break;case $.IN_TABLE_TEXT:mS(this,e);break;default:}}};function Ab(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):Zx(e,t),n}function jb(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 Mb(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>=Tb;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=Nb(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Nb(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 Pb(e,t,n){let r=by(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 Fb(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 Ib(e,t){for(let n=0;n<wb;n++){let n=Ab(e,t);if(!n)break;let r=jb(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=Mb(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&Pb(e,a,i),Fb(e,r,n)}}function Lb(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Rb(e,t){e._appendCommentNode(t,e.openElements.items[0])}function zb(e,t){e._appendCommentNode(t,e.document)}function Bb(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 Vb(e,t){e._setDocumentType(t);let n=t.forceQuirks?vy.QUIRKS:sb(t);ob(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=$.BEFORE_HTML}function Hb(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,vy.QUIRKS),e.insertionMode=$.BEFORE_HTML,e._processToken(t)}function Ub(e,t){t.tagID===X.HTML?(e._insertElement(t,J.HTML),e.insertionMode=$.BEFORE_HEAD):Gb(e,t)}function Wb(e,t){let n=t.tagID;(n===X.HTML||n===X.HEAD||n===X.BODY||n===X.BR)&&Gb(e,t)}function Gb(e,t){e._insertFakeRootElement(),e.insertionMode=$.BEFORE_HEAD,e._processToken(t)}function Kb(e,t){switch(t.tagID){case X.HTML:Bx(e,t);break;case X.HEAD:e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=$.IN_HEAD;break;default:Jb(e,t)}}function qb(e,t){let n=t.tagID;n===X.HEAD||n===X.BODY||n===X.HTML||n===X.BR?Jb(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function Jb(e,t){e._insertFakeElement(Y.HEAD,X.HEAD),e.headElement=e.openElements.current,e.insertionMode=$.IN_HEAD,e._processToken(t)}function Yb(e,t){switch(t.tagID){case X.HTML:Bx(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,Cy.RCDATA);break;case X.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Cy.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=$.IN_HEAD_NO_SCRIPT);break;case X.NOFRAMES:case X.STYLE:e._switchToTextParsing(t,Cy.RAWTEXT);break;case X.SCRIPT:e._switchToTextParsing(t,Cy.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:Qb(e,t)}}function Xb(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:Qb(e,t);break;case X.TEMPLATE:Zb(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Zb(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 Qb(e,t){e.openElements.pop(),e.insertionMode=$.AFTER_HEAD,e._processToken(t)}function $b(e,t){switch(t.tagID){case X.HTML:Bx(e,t);break;case X.BASEFONT:case X.BGSOUND:case X.HEAD:case X.LINK:case X.META:case X.NOFRAMES:case X.STYLE:Yb(e,t);break;case X.NOSCRIPT:e._err(t,q.nestedNoscriptInHead);break;default:tx(e,t)}}function ex(e,t){switch(t.tagID){case X.NOSCRIPT:e.openElements.pop(),e.insertionMode=$.IN_HEAD;break;case X.BR:tx(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function tx(e,t){let n=t.type===ty.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=$.IN_HEAD,e._processToken(t)}function nx(e,t){switch(t.tagID){case X.HTML:Bx(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),Yb(e,t),e.openElements.remove(e.headElement);break;case X.HEAD:e._err(t,q.misplacedStartTagForHeadElement);break;default:ix(e,t)}}function rx(e,t){switch(t.tagID){case X.BODY:case X.HTML:case X.BR:ix(e,t);break;case X.TEMPLATE:Zb(e,t);break;default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function ix(e,t){e._insertFakeElement(Y.BODY,X.BODY),e.insertionMode=$.IN_BODY,ax(e,t)}function ax(e,t){switch(t.type){case ty.CHARACTER:sx(e,t);break;case ty.WHITESPACE_CHARACTER:ox(e,t);break;case ty.COMMENT:Lb(e,t);break;case ty.START_TAG:Bx(e,t);break;case ty.END_TAG:Qx(e,t);break;case ty.EOF:$x(e,t);break;default:}}function ox(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function sx(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function cx(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function lx(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function ux(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 dx(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function fx(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Sy.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function px(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function mx(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 hx(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 gx(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=Cy.PLAINTEXT}function _x(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 vx(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Y.A);n&&(Ib(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 yx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function bx(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(X.NOBR)&&(Ib(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Sx(e,t){e.treeAdapter.getDocumentMode(e.document)!==vy.QUIRKS&&e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=$.IN_TABLE}function Cx(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function wx(e){let t=ny(e,_y.TYPE);return t!=null&&t.toLowerCase()===Cb}function Tx(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),wx(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Ex(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function Dx(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ox(e,t){t.tagName=Y.IMG,t.tagID=X.IMG,Cx(e,t)}function kx(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Cy.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=$.TEXT}function Ax(e,t){e.openElements.hasInButtonScope(X.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Cy.RAWTEXT)}function jx(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Cy.RAWTEXT)}function Mx(e,t){e._switchToTextParsing(t,Cy.RAWTEXT)}function Nx(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 Px(e,t){e.openElements.currentTagId===X.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function Fx(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function Ix(e,t){e.openElements.hasInScope(X.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(X.RTC),e._insertElement(t,J.HTML)}function Lx(e,t){e._reconstructActiveFormattingElements(),gb(t),vb(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function Rx(e,t){e._reconstructActiveFormattingElements(),_b(t),vb(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function zx(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function Bx(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:yx(e,t);break;case X.A:vx(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:fx(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:dx(e,t);break;case X.LI:case X.DD:case X.DT:hx(e,t);break;case X.BR:case X.IMG:case X.WBR:case X.AREA:case X.EMBED:case X.KEYGEN:Cx(e,t);break;case X.HR:Dx(e,t);break;case X.RB:case X.RTC:Fx(e,t);break;case X.RT:case X.RP:Ix(e,t);break;case X.PRE:case X.LISTING:px(e,t);break;case X.XMP:Ax(e,t);break;case X.SVG:Rx(e,t);break;case X.HTML:cx(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:Yb(e,t);break;case X.BODY:lx(e,t);break;case X.FORM:mx(e,t);break;case X.NOBR:bx(e,t);break;case X.MATH:Lx(e,t);break;case X.TABLE:Sx(e,t);break;case X.INPUT:Tx(e,t);break;case X.PARAM:case X.TRACK:case X.SOURCE:Ex(e,t);break;case X.IMAGE:Ox(e,t);break;case X.BUTTON:_x(e,t);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:xx(e,t);break;case X.IFRAME:jx(e,t);break;case X.SELECT:Nx(e,t);break;case X.OPTION:case X.OPTGROUP:Px(e,t);break;case X.NOEMBED:case X.NOFRAMES:Mx(e,t);break;case X.FRAMESET:ux(e,t);break;case X.TEXTAREA:kx(e,t);break;case X.NOSCRIPT:e.options.scriptingEnabled?Mx(e,t):zx(e,t);break;case X.PLAINTEXT:gx(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:zx(e,t)}}function Vx(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 Hx(e,t){e.openElements.hasInScope(X.BODY)&&(e.insertionMode=$.AFTER_BODY,LS(e,t))}function Ux(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Wx(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 Gx(e){e.openElements.hasInButtonScope(X.P)||e._insertFakeElement(Y.P,X.P),e._closePElement()}function Kx(e){e.openElements.hasInListItemScope(X.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(X.LI),e.openElements.popUntilTagNamePopped(X.LI))}function qx(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Jx(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Yx(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Xx(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Y.BR,X.BR),e.openElements.pop(),e.framesetOk=!1}function Zx(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 Qx(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:Ib(e,t);break;case X.P:Gx(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:Ux(e,t);break;case X.LI:Kx(e);break;case X.DD:case X.DT:qx(e,t);break;case X.H1:case X.H2:case X.H3:case X.H4:case X.H5:case X.H6:Jx(e);break;case X.BR:Xx(e);break;case X.BODY:Vx(e,t);break;case X.HTML:Hx(e,t);break;case X.FORM:Wx(e);break;case X.APPLET:case X.OBJECT:case X.MARQUEE:Yx(e,t);break;case X.TEMPLATE:Zb(e,t);break;default:Zx(e,t)}}function $x(e,t){e.tmplInsertionModeStack.length>0?FS(e,t):Bb(e,t)}function eS(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 tS(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function nS(e,t){if(e.openElements.currentTagId!==void 0&&Db.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=$.IN_TABLE_TEXT,t.type){case ty.CHARACTER:hS(e,t);break;case ty.WHITESPACE_CHARACTER:mS(e,t);break}else pS(e,t)}function rS(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_CAPTION}function iS(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_COLUMN_GROUP}function aS(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.COLGROUP,X.COLGROUP),e.insertionMode=$.IN_COLUMN_GROUP,bS(e,t)}function oS(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=$.IN_TABLE_BODY}function sS(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.TBODY,X.TBODY),e.insertionMode=$.IN_TABLE_BODY,CS(e,t)}function cS(e,t){e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function lS(e,t){wx(t)?e._appendElement(t,J.HTML):pS(e,t),t.ackSelfClosing=!0}function uS(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function dS(e,t){switch(t.tagID){case X.TD:case X.TH:case X.TR:sS(e,t);break;case X.STYLE:case X.SCRIPT:case X.TEMPLATE:Yb(e,t);break;case X.COL:aS(e,t);break;case X.FORM:uS(e,t);break;case X.TABLE:cS(e,t);break;case X.TBODY:case X.TFOOT:case X.THEAD:oS(e,t);break;case X.INPUT:lS(e,t);break;case X.CAPTION:rS(e,t);break;case X.COLGROUP:iS(e,t);break;default:pS(e,t)}}function fS(e,t){switch(t.tagID){case X.TABLE:e.openElements.hasInTableScope(X.TABLE)&&(e.openElements.popUntilTagNamePopped(X.TABLE),e._resetInsertionMode());break;case X.TEMPLATE:Zb(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:pS(e,t)}}function pS(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ax(e,t),e.fosterParentingEnabled=n}function mS(e,t){e.pendingCharacterTokens.push(t)}function hS(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function gS(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)pS(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var _S=new Set([X.CAPTION,X.COL,X.COLGROUP,X.TBODY,X.TD,X.TFOOT,X.TH,X.THEAD,X.TR]);function vS(e,t){let n=t.tagID;_S.has(n)?e.openElements.hasInTableScope(X.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(X.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=$.IN_TABLE,dS(e,t)):Bx(e,t)}function yS(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&&fS(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:Qx(e,t)}}function bS(e,t){switch(t.tagID){case X.HTML:Bx(e,t);break;case X.COL:e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break;case X.TEMPLATE:Yb(e,t);break;default:SS(e,t)}}function xS(e,t){switch(t.tagID){case X.COLGROUP:e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=$.IN_TABLE);break;case X.TEMPLATE:Zb(e,t);break;case X.COL:break;default:SS(e,t)}}function SS(e,t){e.openElements.currentTagId===X.COLGROUP&&(e.openElements.pop(),e.insertionMode=$.IN_TABLE,e._processToken(t))}function CS(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,TS(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,dS(e,t));break;default:dS(e,t)}}function wS(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,fS(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:fS(e,t)}}function TS(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,CS(e,t));break;default:dS(e,t)}}function ES(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,wS(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,wS(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:fS(e,t)}}function DS(e,t){let n=t.tagID;_S.has(n)?(e.openElements.hasInTableScope(X.TD)||e.openElements.hasInTableScope(X.TH))&&(e._closeTableCell(),TS(e,t)):Bx(e,t)}function OS(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(),ES(e,t));break;case X.BODY:case X.CAPTION:case X.COL:case X.COLGROUP:case X.HTML:break;default:Qx(e,t)}}function kS(e,t){switch(t.tagID){case X.HTML:Bx(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:Yb(e,t);break;default:}}function AS(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:Zb(e,t);break;default:}}function jS(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)):kS(e,t)}function MS(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)):AS(e,t)}function NS(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:Yb(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,dS(e,t);break;case X.COL:e.tmplInsertionModeStack[0]=$.IN_COLUMN_GROUP,e.insertionMode=$.IN_COLUMN_GROUP,bS(e,t);break;case X.TR:e.tmplInsertionModeStack[0]=$.IN_TABLE_BODY,e.insertionMode=$.IN_TABLE_BODY,CS(e,t);break;case X.TD:case X.TH:e.tmplInsertionModeStack[0]=$.IN_ROW,e.insertionMode=$.IN_ROW,TS(e,t);break;default:e.tmplInsertionModeStack[0]=$.IN_BODY,e.insertionMode=$.IN_BODY,Bx(e,t)}}function PS(e,t){t.tagID===X.TEMPLATE&&Zb(e,t)}function FS(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(X.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Bb(e,t)}function IS(e,t){t.tagID===X.HTML?Bx(e,t):RS(e,t)}function LS(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 RS(e,t)}function RS(e,t){e.insertionMode=$.IN_BODY,ax(e,t)}function zS(e,t){switch(t.tagID){case X.HTML:Bx(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:Yb(e,t);break;default:}}function BS(e,t){t.tagID===X.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==X.FRAMESET&&(e.insertionMode=$.AFTER_FRAMESET))}function VS(e,t){switch(t.tagID){case X.HTML:Bx(e,t);break;case X.NOFRAMES:Yb(e,t);break;default:}}function HS(e,t){t.tagID===X.HTML&&(e.insertionMode=$.AFTER_AFTER_FRAMESET)}function US(e,t){t.tagID===X.HTML?Bx(e,t):WS(e,t)}function WS(e,t){e.insertionMode=$.IN_BODY,ax(e,t)}function GS(e,t){switch(t.tagID){case X.HTML:Bx(e,t);break;case X.NOFRAMES:Yb(e,t);break;default:}}function KS(e,t){t.chars=`�`,e._insertCharacters(t)}function qS(e,t){e._insertCharacters(t),e.framesetOk=!1}function JS(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 YS(e,t){if(hb(t))JS(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===J.MATHML?gb(t):r===J.SVG&&(yb(t),_b(t)),vb(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function XS(e,t){if(t.tagID===X.P||t.tagID===X.BR){JS(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 ZS=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,QS=new Set([`mdxFlowExpression`,`mdxJsxFlowElement`,`mdxJsxTextElement`,`mdxTextExpression`,`mdxjsEsm`]),$S={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function eC(e,t){let n=mC(e),r=jv(`type`,{handlers:{root:nC,element:rC,text:iC,comment:sC,doctype:aC,raw:cC},unknown:lC}),i={parser:n?new kb($S):kb.getFragmentParser(void 0,$S),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),uC(i,pf());let a=Sv(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&n_(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 tC(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function nC(e,t){tC(e.children,t)}function rC(e,t){fC(e,t),tC(e.children,t),pC(e,t)}function iC(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:ty.CHARACTER,chars:e.value,location:hC(e)};uC(t,pf(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function aC(e,t){let n={type:ty.DOCTYPE,name:`html`,forceQuirks:!1,publicId:``,systemId:``,location:hC(e)};uC(t,pf(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function oC(e,t){t.stitches=!0;let n=gC(e);`children`in e&&`children`in n&&(n.children=eC({type:`root`,children:e.children},t.options).children),sC({type:`comment`,value:{stitch:n}},t)}function sC(e,t){let n=e.value,r={type:ty.COMMENT,data:n,location:hC(e)};uC(t,pf(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function cC(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,dC(t,pf(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(ZS,`<$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 lC(e,t){let n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))oC(n,t);else{let e=``;throw QS.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 uC(e,t){dC(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=Cy.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 dC(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 fC(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Cy.PLAINTEXT)return;uC(t,pf(e));let r=t.parser.openElements.current,i=`namespaceURI`in r?r.namespaceURI:yv.html;i===yv.html&&n===`svg`&&(i=yv.svg);let a=Fv({...e,children:[]},{space:i===yv.svg?`svg`:`html`}),o={type:ty.START_TAG,tagName:n,tagID:by(n),selfClosing:!1,ackSelfClosing:!1,attrs:`attrs`in a?a.attrs:[],location:hC(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function pC(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Gv.includes(n)||t.parser.tokenizer.state===Cy.PLAINTEXT)return;uC(t,ff(e));let r={type:ty.END_TAG,tagName:n,tagID:by(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:hC(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Cy.RCDATA||t.parser.tokenizer.state===Cy.RAWTEXT||t.parser.tokenizer.state===Cy.SCRIPT_DATA)&&(t.parser.tokenizer.state=Cy.DATA)}function mC(e){let t=e.type===`root`?e.children[0]:e;return!!(t&&(t.type===`doctype`||t.type===`element`&&t.tagName.toLowerCase()===`html`))}function hC(e){let t=pf(e)||{line:void 0,column:void 0,offset:void 0},n=ff(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 gC(e){return`children`in e?Vg({...e,children:[]}):Vg(e)}function _C(e){return function(t,n){return eC(t,{...e,file:n})}}var vC=[`ariaDescribedBy`,`ariaLabel`,`ariaLabelledBy`],yC={ancestors:{tbody:[`table`],td:[`table`],th:[`table`],thead:[`table`],tfoot:[`table`],tr:[`table`]},attributes:{a:[...vC,`dataFootnoteBackref`,`dataFootnoteRef`,[`className`,`data-footnote-backref`],`href`],blockquote:[`cite`],code:[[`className`,/^language-./]],del:[`cite`],div:[`itemScope`,`itemType`],dl:[...vC],h2:[[`className`,`sr-only`]],img:[...vC,`longDesc`,`src`],input:[[`disabled`,!0],[`type`,`checkbox`]],ins:[`cite`],li:[[`className`,`task-list-item`]],ol:[...vC,[`className`,`contains-task-list`]],q:[`cite`],section:[`dataFootnotes`,[`className`,`footnotes`]],source:[`srcSet`],summary:[...vC],table:[...vC],ul:[...vC,[`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(`.`)},bC={}.hasOwnProperty;function xC(e,t){let n={type:`root`,children:[]},r=SC({schema:t?{...yC,...t}:yC,stack:[]},e);return r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r),n}function SC(e,t){if(t&&typeof t==`object`){let n=t;switch(typeof n.type==`string`?n.type:``){case`comment`:return CC(e,n);case`doctype`:return wC(e,n);case`element`:return TC(e,n);case`root`:return EC(e,n);case`text`:return DC(e,n);default:}}}function CC(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 PC(r,t),r}}function wC(e,t){if(e.schema.allowDoctypes){let e={type:`doctype`};return PC(e,t),e}}function TC(e,t){let n=typeof t.tagName==`string`?t.tagName:``;e.stack.push(n);let r=OC(e,t.children),i=kC(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&&bC.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 PC(o,t),o}function EC(e,t){let n={type:`root`,children:OC(e,t.children)};return PC(n,t),n}function DC(e,t){let n={type:`text`,value:typeof t.value==`string`?t.value:``};return PC(n,t),n}function OC(e,t){let n=[];if(Array.isArray(t)){let r=t,i=-1;for(;++i<r.length;){let t=SC(e,r[i]);t&&(Array.isArray(t)?n.push(...t):n.push(t))}}return n}function kC(e,t){let n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&bC.call(r,n)?r[n]:void 0,o=r&&bC.call(r,`*`)?r[`*`]:void 0,s=t&&typeof t==`object`?t:{},c={},l;for(l in s)if(bC.call(s,l)){let t=s[l],n=AC(e,FC(a,l),l,t);n??=AC(e,FC(o,l),l,t),n!=null&&(c[l]=n)}if(i&&bC.call(i,n)){let e=i[n];for(l in e)bC.call(e,l)&&!bC.call(c,l)&&(c[l]=e[l])}return c}function AC(e,t,n,r){return t?Array.isArray(r)?jC(e,t,n,r):MC(e,t,n,r):void 0}function jC(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let o=MC(e,t,n,r[i]);(typeof o==`number`||typeof o==`string`)&&a.push(o)}return a}function MC(e,t,n,r){if(!(typeof r!=`boolean`&&typeof r!=`number`&&typeof r!=`string`)&&NC(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 NC(e,t,n){let r=e.schema.protocols&&bC.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 PC(e,t){let n=hf(t);t.data&&(e.data=Vg(t.data)),n&&(e.position=n)}function FC(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 IC(e){return function(t){return xC(t,e)}}function LC(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 RC(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function zC(e,t,n){let r=Gg((n||{}).ignore||[]),i=BC(t),a=-1;for(;++a<i.length;)e_(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 BC(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([VC(e[0]),HC(e[1])])}return t}function VC(e){return typeof e==`string`?new RegExp(RC(e),`g`):e}function HC(e){return typeof e==`function`?e:function(){return e}}var UC=`phrasing`,WC=[`autolink`,`link`,`image`,`label`];function GC(){return{transforms:[$C],enter:{literalAutolink:qC,literalAutolinkEmail:JC,literalAutolinkHttp:JC,literalAutolinkWww:JC},exit:{literalAutolink:QC,literalAutolinkEmail:ZC,literalAutolinkHttp:YC,literalAutolinkWww:XC}}}function KC(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:UC,notInConstruct:WC},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:UC,notInConstruct:WC},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:UC,notInConstruct:WC}]}}function qC(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function JC(e){this.config.enter.autolinkProtocol.call(this,e)}function YC(e){this.config.exit.autolinkProtocol.call(this,e)}function XC(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 ZC(e){this.config.exit.autolinkEmail.call(this,e)}function QC(e){this.exit(e)}function $C(e){zC(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ew],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,tw]],{ignore:[`link`,`linkReference`]})}function ew(e,t,n,r,i){let a=``;if(!iw(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!nw(n)))return!1;let o=rw(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 tw(e,t,n,r){return!iw(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function nw(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 rw(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=LC(e,`(`),a=LC(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 iw(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||Cp(n)||Sp(n))&&(!t||n!==47)}mw.peek=pw;function aw(){this.buffer()}function ow(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function sw(){this.buffer()}function cw(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function lw(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fp(this.sliceSerialize(e)).toLowerCase(),n.label=t}function uw(e){this.exit(e)}function dw(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fp(this.sliceSerialize(e)).toLowerCase(),n.label=t}function fw(e){this.exit(e)}function pw(){return`[`}function mw(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 hw(){return{enter:{gfmFootnoteCallString:aw,gfmFootnoteCall:ow,gfmFootnoteDefinitionLabelString:sw,gfmFootnoteDefinition:cw},exit:{gfmFootnoteCallString:lw,gfmFootnoteCall:uw,gfmFootnoteDefinitionLabelString:dw,gfmFootnoteDefinition:fw}}}function gw(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:mw},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?vw:_w))),s(),o}}function _w(e,t,n){return t===0?e:vw(e,t,n)}function vw(e,t,n){return(n?``:` `)+e}var yw=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];ww.peek=Tw;function bw(){return{canContainEols:[`delete`],enter:{strikethrough:Sw},exit:{strikethrough:Cw}}}function xw(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:yw}],handlers:{delete:ww}}}function Sw(e){this.enter({type:`delete`,children:[]},e)}function Cw(e){this.exit(e)}function ww(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 Tw(){return`~`}function Ew(e){return e.length}function Dw(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Ew,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=Ow(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]=kw(r[d]);else{let e=kw(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 Ow(e){return e==null?``:String(e)}function kw(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 Aw(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()),jw);return i(),o}function jw(e,t,n){return`>`+(n?``:` `)+e}function Mw(e,t){return Nw(e,t.inConstruct,!0)&&!Nw(e,t.notInConstruct,!1)}function Nw(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 Pw(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
31
|
+
`&&Mw(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
|
|
32
|
+
`}function Fw(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 Iw(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 Lw(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Rw(e,t,n,r){let i=Lw(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(Iw(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,zw);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(Fw(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 zw(e,t,n){return(n?``:` `)+e}function Bw(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Vw(e,t,n,r){let i=Bw(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 Hw(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Uw(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function Ww(e,t,n){let r=Np(e),i=Np(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}}Gw.peek=Kw;function Gw(e,t,n,r){let i=Hw(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=Ww(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=Uw(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Ww(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+Uw(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Kw(e,t,n){return n.options.emphasis||`*`}function qw(e,t){let n=!1;return n_(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)&&Qf(e)&&(t.options.setext||n))}function Jw(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(qw(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=Uw(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}Yw.peek=Xw;function Yw(e){return e.value||``}function Xw(){return`<`}Zw.peek=Qw;function Zw(e,t,n,r){let i=Bw(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 Qw(){return`!`}$w.peek=eT;function $w(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 eT(){return`!`}tT.peek=nT;function tT(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 nT(){return"`"}function rT(e,t){let n=Qf(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))}iT.peek=aT;function iT(e,t,n,r){let i=Bw(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(rT(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 aT(e,t,n){return rT(e,n)?`<`:`[`}oT.peek=sT;function oT(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 sT(){return`[`}function cT(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 lT(e){let t=cT(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 uT(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function dT(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 fT(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?uT(n):cT(n),s=e.ordered?o===`.`?`)`:`.`:lT(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),dT(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 pT(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 mT(e,t,n,r){let i=pT(n),a=n.bulletCurrent||cT(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 hT(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var gT=Gg([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function _T(e,t,n,r){return(e.children.some(function(e){return gT(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function vT(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}yT.peek=bT;function yT(e,t,n,r){let i=vT(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=Ww(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=Uw(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Ww(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+Uw(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function bT(e,t,n){return n.options.strong||`*`}function xT(e,t,n,r){return n.safe(e.value,r)}function ST(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 CT(e,t,n){let r=(dT(n)+(n.options.ruleSpaces?` `:``)).repeat(ST(n));return n.options.ruleSpaces?r.slice(0,-1):r}var wT={blockquote:Aw,break:Pw,code:Rw,definition:Vw,emphasis:Gw,hardBreak:Pw,heading:Jw,html:Yw,image:Zw,imageReference:$w,inlineCode:tT,link:iT,linkReference:oT,list:fT,listItem:mT,paragraph:hT,root:_T,strong:yT,text:xT,thematicBreak:CT};function TT(){return{enter:{table:ET,tableData:AT,tableHeader:AT,tableRow:OT},exit:{codeText:jT,table:DT,tableData:kT,tableHeader:kT,tableRow:kT}}}function ET(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 DT(e){this.exit(e),this.data.inTable=void 0}function OT(e){this.enter({type:`tableRow`,children:[]},e)}function kT(e){this.exit(e)}function AT(e){this.enter({type:`tableCell`,children:[]},e)}function jT(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,MT));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function MT(e,t){return t===`|`?t:e}function NT(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 Dw(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=wT.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function PT(){return{exit:{taskListCheckValueChecked:IT,taskListCheckValueUnchecked:IT,paragraph:LT}}}function FT(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:RT}}}function IT(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function LT(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 RT(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=wT.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 zT(){return[GC(),hw(),bw(),TT(),PT()]}function BT(e){return{extensions:[KC(),gw(e),xw(),NT(e),FT()]}}var VT={tokenize:tE,partial:!0},HT={tokenize:nE,partial:!0},UT={tokenize:rE,partial:!0},WT={tokenize:iE,partial:!0},GT={tokenize:aE,partial:!0},KT={name:`wwwAutolink`,tokenize:$T,previous:oE},qT={name:`protocolAutolink`,tokenize:eE,previous:sE},JT={name:`emailAutolink`,tokenize:QT,previous:cE},YT={};function XT(){return{text:YT}}for(var ZT=48;ZT<123;)YT[ZT]=JT,ZT++,ZT===58?ZT=65:ZT===91&&(ZT=97);YT[43]=JT,YT[45]=JT,YT[46]=JT,YT[95]=JT,YT[72]=[JT,qT],YT[104]=[JT,qT],YT[87]=[JT,KT],YT[119]=[JT,KT];function QT(e,t,n){let r=this,i,a;return o;function o(t){return!lE(t)||!cE.call(r,r.previous)||uE(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return lE(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(GT,u,l)(t):t===45||t===95||mp(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&&pp(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function $T(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!oE.call(r,r.previous)||uE(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(VT,e.attempt(HT,e.attempt(UT,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function eE(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&sE.call(r,r.previous)&&!uE(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(pp(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||gp(t)||bp(t)||Cp(t)||Sp(t)?n(t):e.attempt(HT,e.attempt(UT,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function tE(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 nE(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(WT,c,s)(t):t===null||bp(t)||Cp(t)||t!==45&&Sp(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 rE(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(WT,t,a)(o):o===null||bp(o)||Cp(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function iE(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||bp(o)||Cp(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||bp(e)||Cp(e)?t(e):r(e)}function a(e){return pp(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):pp(t)?(e.consume(t),o):n(t)}}function aE(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return mp(e)?n(e):t(e)}}function oE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||bp(e)}function sE(e){return!pp(e)}function cE(e){return!(e===47||lE(e))}function lE(e){return e===43||e===45||e===46||e===95||mp(e)}function uE(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 dE={tokenize:yE,partial:!0};function fE(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:gE,continuation:{tokenize:_E},exit:vE}},text:{91:{name:`gfmFootnoteCall`,tokenize:hE},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:pE,resolveTo:mE}}}}function pE(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=fp(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 mE(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 hE(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||bp(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(fp(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return bp(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 gE(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||bp(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=fp(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return bp(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),Ep(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function _E(e,t,n){return e.check(Vp,t,e.attempt(dE,t,n))}function vE(e){e.exit(`gfmFootnoteDefinition`)}function yE(e,t,n){let r=this;return Ep(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 bE(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&&ap(o,o.length,0,Pp(s,e.slice(r+1,n),t)),ap(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),ap(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=Np(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=Np(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var xE=class{constructor(){this.map=[]}add(e,t,n){SE(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 SE(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 CE(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 wE(){return{flow:{null:{name:`table`,tokenize:TE,resolveAll:EE}}}}function TE(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):G(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):xp(t)?Ep(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||bp(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,xp(t)?Ep(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 xp(t)?Ep(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||G(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 xp(t)?Ep(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||G(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||G(n)?(e.exit(`tableRow`),t(n)):xp(n)?Ep(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||bp(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 EE(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 xE;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(OE(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=DE(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=DE(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=DE(f,t,o,i,n,d)):(o[0]=o[1],d=DE(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&OE(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=CE(t.events,n))}return e}function DE(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},kE(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=kE(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=kE(t.events,n[2]),a=kE(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({},kE(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function OE(e,t,n,r,i){let a=[],o=kE(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 kE(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var AE={name:`tasklistCheck`,tokenize:ME};function jE(){return{text:{91:AE}}}function ME(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 bp(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 G(r)?t(r):xp(r)?e.check({tokenize:NE},t,n)(r):n(r)}}function NE(e,t,n){return Ep(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function PE(e){return cp([XT(),fE(),bE(e),wE(),jE()])}var FE={};function IE(e){let t=this,n=e||FE,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(PE(n)),a.push(zT()),o.push(BT(n))}function LE(e){try{return decodeURIComponent(e)}catch{return e}}function RE(e){if(!/^[0-9]+$/u.test(e))return null;let t=Number(e);return Number.isSafeInteger(t)&&t>0?t:null}function zE(e){let t=e.match(/#L([0-9]+)$/u);if(t){let n=RE(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=RE(n[1]??``);return t===null?null:{lineNumber:t,path:e.slice(0,n.index)}}return{lineNumber:null,path:e}}function BE(e){let t=e.split(`/`),n=t[t.length-1]??``;return n.startsWith(`.`)||n.includes(`.`)}function VE(e){return e.startsWith(`/`)&&!e.startsWith(`//`)&&e!==`/`&&!e.endsWith(`/`)&&!e.includes(`
|
|
44
|
+
`)&&!e.includes(`\r`)&&!e.includes(`?`)&&!e.includes(`#`)}function HE(e){if(e.length===0||e.trim()!==e||!e.startsWith(`/`)||e.startsWith(`//`))return null;let t=zE(LE(e));return!t||!VE(t.path)?null:t}function UE(e){if(!e)return null;if(e.startsWith(`file://`))try{let t=new URL(e);return t.search.length>0?null:HE(t.pathname+t.hash)}catch{return null}return HE(e)}function WE(e){return e.split(`/`).map(encodeURIComponent).join(`/`)}function GE(e){return e.path.startsWith(`/`)&&(e.lineNumber!==null||BE(e.path))}function KE(e,t){return!e||!GE(e)?t:`file://${WE(e.path)}${e.lineNumber===null?``:`#L${e.lineNumber}`}`}var qE=wr(`bb.theme`,`system`,hr(e=>e===`light`||e===`dark`||e===`system`),{getOnInit:!0});function JE(){return ur().get(qE)}function YE(e){typeof document>`u`||document.documentElement.classList.toggle(`dark`,e===`dark`)}function XE(){return typeof window>`u`||typeof window.matchMedia!=`function`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function ZE(){let e=JE();return e===`system`?XE():e}function QE(e){ur().set(qE,e),YE(ZE()),iD()}var $E=`light`,eD=`system`,tD=new Set,nD=new Set,rD=!1;function iD(){let e=JE(),t=ZE();YE(t);let n=e!==eD,r=t!==$E;eD=e,$E=t,n&&nD.forEach(e=>e()),r&&tD.forEach(e=>e())}function aD(){rD||typeof window>`u`||(rD=!0,eD=JE(),$E=ZE(),YE($E),ur().sub(qE,iD),typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,iD))}function oD(){aD()}function sD(e){return aD(),tD.add(e),()=>{tD.delete(e)}}function cD(){return R.useSyncExternalStore(sD,()=>typeof window>`u`?`light`:($E=ZE(),$E),()=>`light`)}function lD(e){return aD(),nD.add(e),()=>{nD.delete(e)}}function uD(){return R.useSyncExternalStore(lD,JE,()=>`system`)}var dD=`max(100%, min(1100px, 100cqw - 2rem))`,fD=`--md-content-w`,pD=/^\(\s*prefers-color-scheme\s*:\s*(dark|light)\s*\)$/iu,mD=[_C,IC],hD=(e,t)=>t===`href`&&UE(e)?e:iv(e);function gD({children:e,href:t,onOpenLocalFileLink:n,...r}){let i=n?UE(t):null,a=KE(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 _D({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)(hd,{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 vD({children:e}){return(0,z.jsx)(z.Fragment,{children:e})}function yD({children:e}){return(0,z.jsx)(`h1`,{className:`mb-2 mt-4 text-lg font-semibold text-foreground first:mt-0`,children:e})}function bD({children:e}){return(0,z.jsx)(`h2`,{className:`mb-2 mt-4 text-base font-semibold text-foreground first:mt-0`,children:e})}function xD({children:e}){return(0,z.jsx)(`h3`,{className:`mb-2 mt-3 text-sm font-semibold text-foreground first:mt-0`,children:e})}function SD({children:e}){return(0,z.jsx)(`h4`,{className:`mb-1 mt-3 text-sm font-medium text-foreground first:mt-0`,children:e})}function CD({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 wD({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 TD({children:e,className:t,node:n,...r}){return(0,z.jsx)(`p`,{...r,className:`mb-2 text-foreground last:mb-0`,children:e})}function ED({children:e}){return(0,z.jsx)(`ul`,{className:`mb-2 list-disc pl-5 text-foreground`,children:e})}function DD({children:e}){return(0,z.jsx)(`ol`,{className:`mb-2 list-decimal pl-5 text-foreground`,children:e})}function OD({children:e}){return(0,z.jsx)(`li`,{className:`mb-1 text-foreground`,children:e})}function kD({children:e}){return(0,z.jsx)(`blockquote`,{className:`my-2 border-l-2 border-border pl-3 italic text-muted-foreground`,children:e})}function AD({children:e}){return(0,z.jsx)(`div`,{className:`my-2 flex justify-center`,style:{width:dD,marginInline:`calc((100% - ${dD}) / 2)`},children:(0,z.jsx)(`div`,{className:`w-max max-w-full overflow-x-auto`,style:{minWidth:`min(var(${fD}), 100%)`},children:(0,z.jsx)(`table`,{className:`border border-border`,children:e})})})}function jD({children:e}){return(0,z.jsx)(`thead`,{className:`bg-surface-recessed`,children:e})}function MD({children:e}){return(0,z.jsx)(`th`,{className:`border border-border px-2 py-1 text-left font-medium`,children:e})}function ND({children:e}){return(0,z.jsx)(`td`,{className:`border border-border px-2 py-1`,children:e})}function PD({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 FD(e){return(0,z.jsx)(`hr`,{className:`my-4 border-t border-border`})}function ID(e){let t=pD.exec(e)?.[1];return t===`dark`||t===`light`?t:null}function LD({media:e,preferredTheme:t}){if(!e)return e;let n=ID(e);return n?n===t?`all`:`not all`:e}function RD({onOpenLocalFileLink:e,preferredTheme:t,setExpandedImageUrl:n}){function r(t){return(0,z.jsx)(gD,{...t,onOpenLocalFileLink:e})}function i({src:e,alt:t,className:r,node:i,...a}){return PD({alt:t,imageAttributes:a,setExpandedImageUrl:n,src:e})}function a({media:e,node:n,...r}){return(0,z.jsx)(`source`,{...r,media:LD({media:e,preferredTheme:t})})}return{a:r,blockquote:kD,code:_D,h1:yD,h2:bD,h3:xD,h4:SD,h5:CD,h6:wD,hr:FD,img:i,li:OD,ol:DD,p:TD,pre:vD,source:a,table:AD,td:ND,th:MD,thead:jD,ul:ED}}function zD({element:e,width:t}){t<=0||e.style.setProperty(fD,`${t}px`)}function BD(){let e=(0,R.useRef)(null);return(0,R.useLayoutEffect)(()=>{let t=e.current;if(!t||(zD({element:t,width:t.getBoundingClientRect().width}),typeof ResizeObserver>`u`))return;let n=new ResizeObserver(e=>{let n=e[0];n&&zD({element:t,width:n.contentRect.width})});return n.observe(t),()=>n.disconnect()},[]),e}function VD({allowHtml:e=!1,className:t,content:n,expandedImageAlt:r=`Expanded image`,imageLightboxTitle:i=`Expanded image preview`,onOpenLocalFileLink:a}){let o=cD(),s=BD(),[c,l]=(0,R.useState)(null),u=(0,R.useMemo)(()=>RD({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)(ev,{rehypePlugins:e?mD:void 0,remarkPlugins:[IE],components:u,urlTransform:a?hD:void 0,children:n})}),(0,z.jsx)(fd,{imageSrc:c,imageAlt:r,title:i,onClose:()=>l(null)})]})}var HD=(0,R.memo)(VD);HD.displayName=`MarkdownPreview`;function UD(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 WD=/^[a-zA-Z]:[\\/]/u,GD=/^[a-zA-Z][a-zA-Z0-9+.-]*:/u;function KD({path:e}){return e.startsWith(`/`)||WD.test(e)}function qD({path:e}){return e.length>0&&!e.startsWith(`\\`)&&!KD({path:e})&&!GD.test(e)}function JD({path:e,projectId:t}){return!t||!qD({path:e})?null:f(t,e)}function YD(e){return e.kind===`steer`?e.status===`pending`?`steer pending`:`steer`:null}function XD({attachments:e,projectId:t,resolveUserAttachmentImageSrc:n}){if(!e)return{filePaths:[],imageItems:[]};let r=[...e.imageUrls.map(e=>({alt:hl(e),src:e})),...e.localImagePaths.map(e=>({alt:hl(e),src:n?n(e,t):e}))];return{filePaths:e.localFilePaths,imageItems:r}}function ZD({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:hl(t)}),o=JD({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||!KD({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)(fd,{title:`Attached image preview`,imageSrc:s?.src??null,imageAlt:s?.alt??`Attached image`,hasMultipleImages:c,onPrevious:()=>{o(a===null||n.length<=1?a:dd({currentIndex:a,direction:`previous`,itemCount:n.length}))},onNext:()=>{o(a===null||n.length<=1?a:dd({currentIndex:a,direction:`next`,itemCount:n.length}))},onClose:()=>o(null)})]})}var QD=15,$D=4096;function eO(e){return e.split(/\r\n|\r|\n/u)}function tO(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 nO({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>$D,l=c?i.slice(0,$D):i,u=eO(l),d=u.length>QD,f=a||!d?l:u.slice(0,QD).join(`
|
|
46
|
+
`),p=tO(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 rO({attachmentItems:e,initiator:t,onOpenLocalFileLink:n,projectId:r,text:i,turnRequest:a}){let o=(0,R.useMemo)(()=>UD(t,i),[t,i]),s=i.trim(),c=YD(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)(nO,{text:i,mutePrefixLength:o||void 0}):(0,z.jsx)(`p`,{className:`text-muted-foreground`,children:`Sent attachments`}),(0,z.jsx)(ZD,{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)(hd,{text:i,label:`Copy message`}):null]}):null]})})}function iO({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)(HD,{content:r,onOpenLocalFileLink:t}),(0,z.jsx)(ZD,{filePaths:e.filePaths,imageItems:e.imageItems,onOpenLocalFileLink:t,projectId:n})]})}function aO(e){let{attachments:t,onOpenLocalFileLink:n,projectId:r,resolveUserAttachmentImageSrc:i,text:a}=e,o=(0,R.useMemo)(()=>XD({attachments:t,projectId:r,resolveUserAttachmentImageSrc:i}),[t,r,i]);return e.role===`user`?(0,z.jsx)(rO,{attachmentItems:o,attachments:t,initiator:e.initiator,onOpenLocalFileLink:n,projectId:r,resolveUserAttachmentImageSrc:i,text:a,turnRequest:e.turnRequest}):(0,z.jsx)(iO,{attachmentItems:o,attachments:t,onOpenLocalFileLink:n,projectId:r,resolveUserAttachmentImageSrc:i,text:a,turnRequest:e.turnRequest})}var oO=Tr(0),sO=200,cO=typeof window>`u`?R.useEffect:R.useLayoutEffect,lO=`text-muted-foreground transition-colors hover:text-foreground focus-visible:text-foreground`,uO=`text-foreground`,dO=`text-muted-foreground`,fO=`inline-flex max-w-full items-center gap-1 overflow-hidden py-0.5 text-left text-sm`;function pO({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 mO(e){return e?uO:lO}function hO({summaryContent:e,toneClassName:t,summaryClassName:n,className:r,isExpanded:i=!1,onToggle:a}){let o=I(fO,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)(pO,{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 gO({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]),_=Er(oO),v=(0,R.useRef)(!0);cO(()=>{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,sO);return()=>{window.clearTimeout(n),t()}},[e,_]),cO(()=>{e&&(h.current=g)},[g,e]),cO(()=>{if(e||h.current===null)return;m(!0);let t=setTimeout(()=>{h.current=null,m(!1)},sO);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)(hO,{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 _O=`min-w-0 max-w-full`,vO=`timeline-row-header flex w-full max-w-full justify-start py-0 leading-5`;function yO(e){switch(e){case`default`:return`px-2`;case`flush`:return`px-0`}}function bO(e){return I(yO(e),vO)}function xO({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)(hO,{toneClassName:dO,className:bO(n),summaryClassName:_O,summaryContent:e})})}function SO({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:[`+`,kl(e)]}):null,i&&a?` `:null,a?(0,z.jsxs)(`span`,{className:`text-diff-removed`,children:[`-`,kl(t)]}):null]})}function CO(e){switch(e){case`default`:return`font-semibold text-foreground`;case`destructive`:return`text-destructive`;case`summary`:return`text-subtle-foreground`;default:return B(e)}}function wO(e){switch(e){case`default`:return`text-muted-foreground`;case`destructive`:return`text-destructive`;case`summary`:return`text-subtle-foreground`;default:return B(e)}}function TO(e){switch(e){case`default`:return`text-muted-foreground`;case`destructive`:return`text-destructive`;case`summary`:return`text-subtle-foreground`;default:return B(e)}}function EO(e,t,n,r){let i=I(e.truncate?`min-w-0 truncate whitespace-pre`:`shrink-0 whitespace-pre`,e.em?CO(n):wO(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 DO({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:El(t)})}function OO(e,t,n){let r=I(`shrink-0 whitespace-pre`,TO(n));switch(e.kind){case`duration`:return(0,z.jsx)(`span`,{className:e.em?I(`shrink-0 whitespace-pre`,CO(n)):r,children:e.completedAt===null?(0,z.jsx)(DO,{startedAt:e.startedAt}):El(e.completedAt-e.startedAt)},t);case`status`:case`summary-status`:{let n=ku(e);return n.length===0?null:(0,z.jsx)(`span`,{className:r,children:n},t)}case`diff-stats`:if(n===`summary`){let n=Al({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)(SO,{insertions:e.added,deletions:e.removed,hideZero:!0,className:`shrink-0`},t);default:return B(e)}}function kO({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,EO(t,n,e.tone,{onClick:i,linkHref:a})]},`segment-${n}`)}),e.decorations.map((t,n)=>(0,z.jsxs)(R.Fragment,{children:[` `,OO(t,n,e.tone)]},`decoration-${n}`))]})}function AO(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`:mO(t)}function jO({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=yO(n);return(0,z.jsx)(gO,{isExpanded:u,onToggle:(0,R.useCallback)(()=>{u||r?.(),l(!u)},[u,r]),headerToneClass:AO(s,u),summaryContent:(0,z.jsx)(kO,{title:s,onTitleAction:i,resolveSegmentLinkHref:o}),summaryContentClassName:_O,className:I(`w-full`,t),headerClassName:bO(n),contentClassName:I(d,`pb-1 pt-0.5`),renderBody:a})}var MO=(0,R.memo)(jO);function NO({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 PO=de({AElig:()=>`Æ`,AMP:()=>`&`,Aacute:()=>`Á`,Abreve:()=>`Ă`,Acirc:()=>`Â`,Acy:()=>`А`,Afr:()=>IO,Agrave:()=>`À`,Alpha:()=>`Α`,Amacr:()=>`Ā`,And:()=>`⩓`,Aogon:()=>`Ą`,Aopf:()=>RO,ApplyFunction:()=>``,Aring:()=>`Å`,Ascr:()=>BO,Assign:()=>`≔`,Atilde:()=>`Ã`,Auml:()=>`Ä`,Backslash:()=>`∖`,Barv:()=>`⫧`,Barwed:()=>`⌆`,Bcy:()=>`Б`,Because:()=>`∵`,Bernoullis:()=>`ℬ`,Beta:()=>`Β`,Bfr:()=>HO,Bopf:()=>KO,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:()=>QO,Cup:()=>`⋓`,CupCap:()=>`≍`,DD:()=>`ⅅ`,DDotrahd:()=>`⤑`,DJcy:()=>`Ђ`,DScy:()=>`Ѕ`,DZcy:()=>`Џ`,Dagger:()=>`‡`,Darr:()=>`↡`,Dashv:()=>`⫤`,Dcaron:()=>`Ď`,Dcy:()=>`Д`,Del:()=>`∇`,Delta:()=>`Δ`,Dfr:()=>tk,DiacriticalAcute:()=>`´`,DiacriticalDot:()=>`˙`,DiacriticalDoubleAcute:()=>`˝`,DiacriticalGrave:()=>"`",DiacriticalTilde:()=>`˜`,Diamond:()=>`⋄`,DifferentialD:()=>`ⅆ`,Dopf:()=>rk,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:()=>ak,Dstrok:()=>`Đ`,ENG:()=>`Ŋ`,ETH:()=>`Ð`,Eacute:()=>`É`,Ecaron:()=>`Ě`,Ecirc:()=>`Ê`,Ecy:()=>`Э`,Edot:()=>`Ė`,Efr:()=>sk,Egrave:()=>`È`,Element:()=>`∈`,Emacr:()=>`Ē`,EmptySmallSquare:()=>`◻`,EmptyVerySmallSquare:()=>`▫`,Eogon:()=>`Ę`,Eopf:()=>lk,Epsilon:()=>`Ε`,Equal:()=>`⩵`,EqualTilde:()=>`≂`,Equilibrium:()=>`⇌`,Escr:()=>`ℰ`,Esim:()=>`⩳`,Eta:()=>`Η`,Euml:()=>`Ë`,Exists:()=>`∃`,ExponentialE:()=>`ⅇ`,Fcy:()=>`Ф`,Ffr:()=>dk,FilledSmallSquare:()=>`◼`,FilledVerySmallSquare:()=>`▪`,Fopf:()=>pk,ForAll:()=>`∀`,Fouriertrf:()=>`ℱ`,Fscr:()=>`ℱ`,GJcy:()=>`Ѓ`,GT:()=>`>`,Gamma:()=>`Γ`,Gammad:()=>`Ϝ`,Gbreve:()=>`Ğ`,Gcedil:()=>`Ģ`,Gcirc:()=>`Ĝ`,Gcy:()=>`Г`,Gdot:()=>`Ġ`,Gfr:()=>_k,Gg:()=>`⋙`,Gopf:()=>yk,GreaterEqual:()=>`≥`,GreaterEqualLess:()=>`⋛`,GreaterFullEqual:()=>`≧`,GreaterGreater:()=>`⪢`,GreaterLess:()=>`≷`,GreaterSlantEqual:()=>`⩾`,GreaterTilde:()=>`≳`,Gscr:()=>xk,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:()=>Ok,Iota:()=>`Ι`,Iscr:()=>`ℐ`,Itilde:()=>`Ĩ`,Iukcy:()=>`І`,Iuml:()=>`Ï`,Jcirc:()=>`Ĵ`,Jcy:()=>`Й`,Jfr:()=>jk,Jopf:()=>Nk,Jscr:()=>Fk,Jsercy:()=>`Ј`,Jukcy:()=>`Є`,KHcy:()=>`Х`,KJcy:()=>`Ќ`,Kappa:()=>`Κ`,Kcedil:()=>`Ķ`,Kcy:()=>`К`,Kfr:()=>Lk,Kopf:()=>zk,Kscr:()=>Vk,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:()=>Gk,Ll:()=>`⋘`,Lleftarrow:()=>`⇚`,Lmidot:()=>`Ŀ`,LongLeftArrow:()=>`⟵`,LongLeftRightArrow:()=>`⟷`,LongRightArrow:()=>`⟶`,Longleftarrow:()=>`⟸`,Longleftrightarrow:()=>`⟺`,Longrightarrow:()=>`⟹`,Lopf:()=>qk,LowerLeftArrow:()=>`↙`,LowerRightArrow:()=>`↘`,Lscr:()=>`ℒ`,Lsh:()=>`↰`,Lstrok:()=>`Ł`,Lt:()=>`≪`,Map:()=>`⤅`,Mcy:()=>`М`,MediumSpace:()=>` `,Mellintrf:()=>`ℳ`,Mfr:()=>Qk,MinusPlus:()=>`∓`,Mopf:()=>eA,Mscr:()=>`ℳ`,Mu:()=>`Μ`,NJcy:()=>`Њ`,Nacute:()=>`Ń`,Ncaron:()=>`Ň`,Ncedil:()=>`Ņ`,Ncy:()=>`Н`,NegativeMediumSpace:()=>``,NegativeThickSpace:()=>``,NegativeThinSpace:()=>``,NegativeVeryThinSpace:()=>``,NestedGreaterGreater:()=>`≫`,NestedLessLess:()=>`≪`,NewLine:()=>`
|
|
47
|
+
`,Nfr:()=>dA,NoBreak:()=>``,NonBreakingSpace:()=>`\xA0`,Nopf:()=>`ℕ`,Not:()=>`⫬`,NotCongruent:()=>`≢`,NotCupCap:()=>`≭`,NotDoubleVerticalBar:()=>`∦`,NotElement:()=>`∉`,NotEqual:()=>`≠`,NotEqualTilde:()=>OA,NotExists:()=>`∄`,NotGreater:()=>`≯`,NotGreaterEqual:()=>`≱`,NotGreaterFullEqual:()=>kA,NotGreaterGreater:()=>AA,NotGreaterLess:()=>`≹`,NotGreaterSlantEqual:()=>jA,NotGreaterTilde:()=>`≵`,NotHumpDownHump:()=>MA,NotHumpEqual:()=>NA,NotLeftTriangle:()=>`⋪`,NotLeftTriangleBar:()=>IA,NotLeftTriangleEqual:()=>`⋬`,NotLess:()=>`≮`,NotLessEqual:()=>`≰`,NotLessGreater:()=>`≸`,NotLessLess:()=>LA,NotLessSlantEqual:()=>RA,NotLessTilde:()=>`≴`,NotNestedGreaterGreater:()=>zA,NotNestedLessLess:()=>BA,NotPrecedes:()=>`⊀`,NotPrecedesEqual:()=>VA,NotPrecedesSlantEqual:()=>`⋠`,NotReverseElement:()=>`∌`,NotRightTriangle:()=>`⋫`,NotRightTriangleBar:()=>HA,NotRightTriangleEqual:()=>`⋭`,NotSquareSubset:()=>UA,NotSquareSubsetEqual:()=>`⋢`,NotSquareSuperset:()=>WA,NotSquareSupersetEqual:()=>`⋣`,NotSubset:()=>GA,NotSubsetEqual:()=>`⊈`,NotSucceeds:()=>`⊁`,NotSucceedsEqual:()=>KA,NotSucceedsSlantEqual:()=>`⋡`,NotSucceedsTilde:()=>qA,NotSuperset:()=>JA,NotSupersetEqual:()=>`⊉`,NotTilde:()=>`≁`,NotTildeEqual:()=>`≄`,NotTildeFullEqual:()=>`≇`,NotTildeTilde:()=>`≉`,NotVerticalBar:()=>`∤`,Nscr:()=>nj,Ntilde:()=>`Ñ`,Nu:()=>`Ν`,OElig:()=>`Œ`,Oacute:()=>`Ó`,Ocirc:()=>`Ô`,Ocy:()=>`О`,Odblac:()=>`Ő`,Ofr:()=>yj,Ograve:()=>`Ò`,Omacr:()=>`Ō`,Omega:()=>`Ω`,Omicron:()=>`Ο`,Oopf:()=>xj,OpenCurlyDoubleQuote:()=>`“`,OpenCurlyQuote:()=>`‘`,Or:()=>`⩔`,Oscr:()=>Cj,Oslash:()=>`Ø`,Otilde:()=>`Õ`,Otimes:()=>`⨷`,Ouml:()=>`Ö`,OverBar:()=>`‾`,OverBrace:()=>`⏞`,OverBracket:()=>`⎴`,OverParenthesis:()=>`⏜`,PartialD:()=>`∂`,Pcy:()=>`П`,Pfr:()=>wj,Phi:()=>`Φ`,Pi:()=>`Π`,PlusMinus:()=>`±`,Poincareplane:()=>`ℌ`,Popf:()=>`ℙ`,Pr:()=>`⪻`,Precedes:()=>`≺`,PrecedesEqual:()=>`⪯`,PrecedesSlantEqual:()=>`≼`,PrecedesTilde:()=>`≾`,Prime:()=>`″`,Product:()=>`∏`,Proportion:()=>`∷`,Proportional:()=>`∝`,Pscr:()=>Dj,Psi:()=>`Ψ`,QUOT:()=>`"`,Qfr:()=>kj,Qopf:()=>`ℚ`,Qscr:()=>Mj,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:()=>Rj,ShortDownArrow:()=>`↓`,ShortLeftArrow:()=>`←`,ShortRightArrow:()=>`→`,ShortUpArrow:()=>`↑`,Sigma:()=>`Σ`,SmallCircle:()=>`∘`,Sopf:()=>Vj,Sqrt:()=>`√`,Square:()=>`□`,SquareIntersection:()=>`⊓`,SquareSubset:()=>`⊏`,SquareSubsetEqual:()=>`⊑`,SquareSuperset:()=>`⊐`,SquareSupersetEqual:()=>`⊒`,SquareUnion:()=>`⊔`,Sscr:()=>Gj,Star:()=>`⋆`,Sub:()=>`⋐`,Subset:()=>`⋐`,SubsetEqual:()=>`⊆`,Succeeds:()=>`≻`,SucceedsEqual:()=>`⪰`,SucceedsSlantEqual:()=>`≽`,SucceedsTilde:()=>`≿`,SuchThat:()=>`∋`,Sum:()=>`∑`,Sup:()=>`⋑`,Superset:()=>`⊃`,SupersetEqual:()=>`⊇`,Supset:()=>`⋑`,THORN:()=>`Þ`,TRADE:()=>`™`,TSHcy:()=>`Ћ`,TScy:()=>`Ц`,Tab:()=>` `,Tau:()=>`Τ`,Tcaron:()=>`Ť`,Tcedil:()=>`Ţ`,Tcy:()=>`Т`,Tfr:()=>qj,Therefore:()=>`∴`,Theta:()=>`Θ`,ThickSpace:()=>Yj,ThinSpace:()=>` `,Tilde:()=>`∼`,TildeEqual:()=>`≃`,TildeFullEqual:()=>`≅`,TildeTilde:()=>`≈`,Topf:()=>Xj,TripleDot:()=>`⃛`,Tscr:()=>Qj,Tstrok:()=>`Ŧ`,Uacute:()=>`Ú`,Uarr:()=>`↟`,Uarrocir:()=>`⥉`,Ubrcy:()=>`Ў`,Ubreve:()=>`Ŭ`,Ucirc:()=>`Û`,Ucy:()=>`У`,Udblac:()=>`Ű`,Ufr:()=>eM,Ugrave:()=>`Ù`,Umacr:()=>`Ū`,UnderBar:()=>`_`,UnderBrace:()=>`⏟`,UnderBracket:()=>`⎵`,UnderParenthesis:()=>`⏝`,Union:()=>`⋃`,UnionPlus:()=>`⊎`,Uogon:()=>`Ų`,Uopf:()=>nM,UpArrow:()=>`↑`,UpArrowBar:()=>`⤒`,UpArrowDownArrow:()=>`⇅`,UpDownArrow:()=>`↕`,UpEquilibrium:()=>`⥮`,UpTee:()=>`⊥`,UpTeeArrow:()=>`↥`,Uparrow:()=>`⇑`,Updownarrow:()=>`⇕`,UpperLeftArrow:()=>`↖`,UpperRightArrow:()=>`↗`,Upsi:()=>`ϒ`,Upsilon:()=>`Υ`,Uring:()=>`Ů`,Uscr:()=>iM,Utilde:()=>`Ũ`,Uuml:()=>`Ü`,VDash:()=>`⊫`,Vbar:()=>`⫫`,Vcy:()=>`В`,Vdash:()=>`⊩`,Vdashl:()=>`⫦`,Vee:()=>`⋁`,Verbar:()=>`‖`,Vert:()=>`‖`,VerticalBar:()=>`∣`,VerticalLine:()=>`|`,VerticalSeparator:()=>`❘`,VerticalTilde:()=>`≀`,VeryThinSpace:()=>` `,Vfr:()=>uM,Vopf:()=>mM,Vscr:()=>gM,Vvdash:()=>`⊪`,Wcirc:()=>`Ŵ`,Wedge:()=>`⋀`,Wfr:()=>SM,Wopf:()=>wM,Wscr:()=>EM,Xfr:()=>OM,Xi:()=>`Ξ`,Xopf:()=>AM,Xscr:()=>MM,YAcy:()=>`Я`,YIcy:()=>`Ї`,YUcy:()=>`Ю`,Yacute:()=>`Ý`,Ycirc:()=>`Ŷ`,Ycy:()=>`Ы`,Yfr:()=>PM,Yopf:()=>IM,Yscr:()=>RM,Yuml:()=>`Ÿ`,ZHcy:()=>`Ж`,Zacute:()=>`Ź`,Zcaron:()=>`Ž`,Zcy:()=>`З`,Zdot:()=>`Ż`,ZeroWidthSpace:()=>``,Zeta:()=>`Ζ`,Zfr:()=>`ℨ`,Zopf:()=>`ℤ`,Zscr:()=>HM,aacute:()=>`á`,abreve:()=>`ă`,ac:()=>`∾`,acE:()=>FO,acd:()=>`∿`,acirc:()=>`â`,acute:()=>`´`,acy:()=>`а`,aelig:()=>`æ`,af:()=>``,afr:()=>LO,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:()=>zO,ap:()=>`≈`,apE:()=>`⩰`,apacir:()=>`⩯`,ape:()=>`≊`,apid:()=>`≋`,apos:()=>`'`,approx:()=>`≈`,approxeq:()=>`≊`,aring:()=>`å`,ascr:()=>VO,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:()=>UO,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:()=>WO,bnequiv:()=>GO,bnot:()=>`⌐`,bopf:()=>qO,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:()=>JO,bsemi:()=>`⁏`,bsim:()=>`∽`,bsime:()=>`⋍`,bsol:()=>`\\`,bsolb:()=>`⧅`,bsolhsub:()=>`⟈`,bull:()=>`•`,bullet:()=>`•`,bump:()=>`≎`,bumpE:()=>`⪮`,bumpe:()=>`≏`,bumpeq:()=>`≏`,cacute:()=>`ć`,cap:()=>`∩`,capand:()=>`⩄`,capbrcup:()=>`⩉`,capcap:()=>`⩋`,capcup:()=>`⩇`,capdot:()=>`⩀`,caps:()=>YO,caret:()=>`⁁`,caron:()=>`ˇ`,ccaps:()=>`⩍`,ccaron:()=>`č`,ccedil:()=>`ç`,ccirc:()=>`ĉ`,ccups:()=>`⩌`,ccupssm:()=>`⩐`,cdot:()=>`ċ`,cedil:()=>`¸`,cemptyv:()=>`⦲`,cent:()=>`¢`,centerdot:()=>`·`,cfr:()=>XO,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:()=>ZO,coprod:()=>`∐`,copy:()=>`©`,copysr:()=>`℗`,crarr:()=>`↵`,cross:()=>`✗`,cscr:()=>$O,csub:()=>`⫏`,csube:()=>`⫑`,csup:()=>`⫐`,csupe:()=>`⫒`,ctdot:()=>`⋯`,cudarrl:()=>`⤸`,cudarrr:()=>`⤵`,cuepr:()=>`⋞`,cuesc:()=>`⋟`,cularr:()=>`↶`,cularrp:()=>`⤽`,cup:()=>`∪`,cupbrcap:()=>`⩈`,cupcap:()=>`⩆`,cupcup:()=>`⩊`,cupdot:()=>`⊍`,cupor:()=>`⩅`,cups:()=>ek,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:()=>WM,deg:()=>`°`,delta:()=>`δ`,demptyv:()=>`⦱`,dfisht:()=>`⥿`,dfr:()=>nk,dharl:()=>`⇃`,dharr:()=>`⇂`,diam:()=>`⋄`,diamond:()=>`⋄`,diamondsuit:()=>`♦`,diams:()=>`♦`,die:()=>`¨`,digamma:()=>`ϝ`,disin:()=>`⋲`,div:()=>`÷`,divide:()=>`÷`,divideontimes:()=>`⋇`,divonx:()=>`⋇`,djcy:()=>`ђ`,dlcorn:()=>`⌞`,dlcrop:()=>`⌍`,dollar:()=>`$`,dopf:()=>ik,dot:()=>`˙`,doteq:()=>`≐`,doteqdot:()=>`≑`,dotminus:()=>`∸`,dotplus:()=>`∔`,dotsquare:()=>`⊡`,doublebarwedge:()=>`⌆`,downarrow:()=>`↓`,downdownarrows:()=>`⇊`,downharpoonleft:()=>`⇃`,downharpoonright:()=>`⇂`,drbkarow:()=>`⤐`,drcorn:()=>`⌟`,drcrop:()=>`⌌`,dscr:()=>ok,dscy:()=>`ѕ`,dsol:()=>`⧶`,dstrok:()=>`đ`,dtdot:()=>`⋱`,dtri:()=>`▿`,dtrif:()=>`▾`,duarr:()=>`⇵`,duhar:()=>`⥯`,dwangle:()=>`⦦`,dzcy:()=>`џ`,dzigrarr:()=>`⟿`,eDDot:()=>`⩷`,eDot:()=>`≑`,eacute:()=>`é`,easter:()=>`⩮`,ecaron:()=>`ě`,ecir:()=>`≖`,ecirc:()=>`ê`,ecolon:()=>`≕`,ecy:()=>`э`,edot:()=>`ė`,ee:()=>`ⅇ`,efDot:()=>`≒`,efr:()=>ck,eg:()=>`⪚`,egrave:()=>`è`,egs:()=>`⪖`,egsdot:()=>`⪘`,el:()=>`⪙`,elinters:()=>`⏧`,ell:()=>`ℓ`,els:()=>`⪕`,elsdot:()=>`⪗`,emacr:()=>`ē`,empty:()=>`∅`,emptyset:()=>`∅`,emptyv:()=>`∅`,emsp:()=>` `,emsp13:()=>` `,emsp14:()=>` `,eng:()=>`ŋ`,ensp:()=>` `,eogon:()=>`ę`,eopf:()=>uk,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:()=>fk,filig:()=>`fi`,fjlig:()=>`fj`,flat:()=>`♭`,fllig:()=>`fl`,fltns:()=>`▱`,fnof:()=>`ƒ`,fopf:()=>mk,forall:()=>`∀`,fork:()=>`⋔`,forkv:()=>`⫙`,fpartint:()=>`⨍`,frac12:()=>`½`,frac13:()=>`⅓`,frac14:()=>`¼`,frac15:()=>`⅕`,frac16:()=>`⅙`,frac18:()=>`⅛`,frac23:()=>`⅔`,frac25:()=>`⅖`,frac34:()=>`¾`,frac35:()=>`⅗`,frac38:()=>`⅜`,frac45:()=>`⅘`,frac56:()=>`⅚`,frac58:()=>`⅝`,frac78:()=>`⅞`,frasl:()=>`⁄`,frown:()=>`⌢`,fscr:()=>hk,gE:()=>`≧`,gEl:()=>`⪌`,gacute:()=>`ǵ`,gamma:()=>`γ`,gammad:()=>`ϝ`,gap:()=>`⪆`,gbreve:()=>`ğ`,gcirc:()=>`ĝ`,gcy:()=>`г`,gdot:()=>`ġ`,ge:()=>`≥`,gel:()=>`⋛`,geq:()=>`≥`,geqq:()=>`≧`,geqslant:()=>`⩾`,ges:()=>`⩾`,gescc:()=>`⪩`,gesdot:()=>`⪀`,gesdoto:()=>`⪂`,gesdotol:()=>`⪄`,gesl:()=>gk,gesles:()=>`⪔`,gfr:()=>vk,gg:()=>`≫`,ggg:()=>`⋙`,gimel:()=>`ℷ`,gjcy:()=>`ѓ`,gl:()=>`≷`,glE:()=>`⪒`,gla:()=>`⪥`,glj:()=>`⪤`,gnE:()=>`≩`,gnap:()=>`⪊`,gnapprox:()=>`⪊`,gne:()=>`⪈`,gneq:()=>`⪈`,gneqq:()=>`≩`,gnsim:()=>`⋧`,gopf:()=>bk,grave:()=>"`",gscr:()=>`ℊ`,gsim:()=>`≳`,gsime:()=>`⪎`,gsiml:()=>`⪐`,gt:()=>`>`,gtcc:()=>`⪧`,gtcir:()=>`⩺`,gtdot:()=>`⋗`,gtlPar:()=>`⦕`,gtquest:()=>`⩼`,gtrapprox:()=>`⪆`,gtrarr:()=>`⥸`,gtrdot:()=>`⋗`,gtreqless:()=>`⋛`,gtreqqless:()=>`⪌`,gtrless:()=>`≷`,gtrsim:()=>`≳`,gvertneqq:()=>Sk,gvnE:()=>Ck,hArr:()=>`⇔`,hairsp:()=>` `,half:()=>`½`,hamilt:()=>`ℋ`,hardcy:()=>`ъ`,harr:()=>`↔`,harrcir:()=>`⥈`,harrw:()=>`↭`,hbar:()=>`ℏ`,hcirc:()=>`ĥ`,hearts:()=>`♥`,heartsuit:()=>`♥`,hellip:()=>`…`,hercon:()=>`⊹`,hfr:()=>wk,hksearow:()=>`⤥`,hkswarow:()=>`⤦`,hoarr:()=>`⇿`,homtht:()=>`∻`,hookleftarrow:()=>`↩`,hookrightarrow:()=>`↪`,hopf:()=>Tk,horbar:()=>`―`,hscr:()=>Ek,hslash:()=>`ℏ`,hstrok:()=>`ħ`,hybull:()=>`⁃`,hyphen:()=>`‐`,iacute:()=>`í`,ic:()=>``,icirc:()=>`î`,icy:()=>`и`,iecy:()=>`е`,iexcl:()=>`¡`,iff:()=>`⇔`,ifr:()=>Dk,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:()=>kk,iota:()=>`ι`,iprod:()=>`⨼`,iquest:()=>`¿`,iscr:()=>Ak,isin:()=>`∈`,isinE:()=>`⋹`,isindot:()=>`⋵`,isins:()=>`⋴`,isinsv:()=>`⋳`,isinv:()=>`∈`,it:()=>``,itilde:()=>`ĩ`,iukcy:()=>`і`,iuml:()=>`ï`,jcirc:()=>`ĵ`,jcy:()=>`й`,jfr:()=>Mk,jmath:()=>`ȷ`,jopf:()=>Pk,jscr:()=>Ik,jsercy:()=>`ј`,jukcy:()=>`є`,kappa:()=>`κ`,kappav:()=>`ϰ`,kcedil:()=>`ķ`,kcy:()=>`к`,kfr:()=>Rk,kgreen:()=>`ĸ`,khcy:()=>`х`,kjcy:()=>`ќ`,kopf:()=>Bk,kscr:()=>Hk,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:()=>Uk,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:()=>Wk,lesges:()=>`⪓`,lessapprox:()=>`⪅`,lessdot:()=>`⋖`,lesseqgtr:()=>`⋚`,lesseqqgtr:()=>`⪋`,lessgtr:()=>`≶`,lesssim:()=>`≲`,lfisht:()=>`⥼`,lfloor:()=>`⌊`,lfr:()=>Kk,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:()=>Jk,loplus:()=>`⨭`,lotimes:()=>`⨴`,lowast:()=>`∗`,lowbar:()=>`_`,loz:()=>`◊`,lozenge:()=>`◊`,lozf:()=>`⧫`,lpar:()=>`(`,lparlt:()=>`⦓`,lrarr:()=>`⇆`,lrcorner:()=>`⌟`,lrhar:()=>`⇋`,lrhard:()=>`⥭`,lrm:()=>``,lrtri:()=>`⊿`,lsaquo:()=>`‹`,lscr:()=>Yk,lsh:()=>`↰`,lsim:()=>`≲`,lsime:()=>`⪍`,lsimg:()=>`⪏`,lsqb:()=>`[`,lsquo:()=>`‘`,lsquor:()=>`‚`,lstrok:()=>`ł`,lt:()=>`<`,ltcc:()=>`⪦`,ltcir:()=>`⩹`,ltdot:()=>`⋖`,lthree:()=>`⋋`,ltimes:()=>`⋉`,ltlarr:()=>`⥶`,ltquest:()=>`⩻`,ltrPar:()=>`⦖`,ltri:()=>`◃`,ltrie:()=>`⊴`,ltrif:()=>`◂`,lurdshar:()=>`⥊`,luruhar:()=>`⥦`,lvertneqq:()=>Xk,lvnE:()=>Zk,mDDot:()=>`∺`,macr:()=>`¯`,male:()=>`♂`,malt:()=>`✠`,maltese:()=>`✠`,map:()=>`↦`,mapsto:()=>`↦`,mapstodown:()=>`↧`,mapstoleft:()=>`↤`,mapstoup:()=>`↥`,marker:()=>`▮`,mcomma:()=>`⨩`,mcy:()=>`м`,mdash:()=>`—`,measuredangle:()=>`∡`,mfr:()=>$k,mho:()=>`℧`,micro:()=>`µ`,mid:()=>`∣`,midast:()=>`*`,midcir:()=>`⫰`,middot:()=>`·`,minus:()=>`−`,minusb:()=>`⊟`,minusd:()=>`∸`,minusdu:()=>`⨪`,mlcp:()=>`⫛`,mldr:()=>`…`,mnplus:()=>`∓`,models:()=>`⊧`,mopf:()=>tA,mp:()=>`∓`,mscr:()=>nA,mstpos:()=>`∾`,mu:()=>`μ`,multimap:()=>`⊸`,mumap:()=>`⊸`,nGg:()=>_A,nGt:()=>vA,nGtv:()=>yA,nLeftarrow:()=>`⇍`,nLeftrightarrow:()=>`⇎`,nLl:()=>wA,nLt:()=>TA,nLtv:()=>EA,nRightarrow:()=>`⇏`,nVDash:()=>`⊯`,nVdash:()=>`⊮`,nabla:()=>`∇`,nacute:()=>`ń`,nang:()=>rA,nap:()=>`≉`,napE:()=>iA,napid:()=>aA,napos:()=>`ʼn`,napprox:()=>`≉`,natur:()=>`♮`,natural:()=>`♮`,naturals:()=>`ℕ`,nbsp:()=>`\xA0`,nbump:()=>oA,nbumpe:()=>sA,ncap:()=>`⩃`,ncaron:()=>`ň`,ncedil:()=>`ņ`,ncong:()=>`≇`,ncongdot:()=>cA,ncup:()=>`⩂`,ncy:()=>`н`,ndash:()=>`–`,ne:()=>`≠`,neArr:()=>`⇗`,nearhk:()=>`⤤`,nearr:()=>`↗`,nearrow:()=>`↗`,nedot:()=>lA,nequiv:()=>`≢`,nesear:()=>`⤨`,nesim:()=>uA,nexist:()=>`∄`,nexists:()=>`∄`,nfr:()=>fA,ngE:()=>pA,nge:()=>`≱`,ngeq:()=>`≱`,ngeqq:()=>mA,ngeqslant:()=>hA,nges:()=>gA,ngsim:()=>`≵`,ngt:()=>`≯`,ngtr:()=>`≯`,nhArr:()=>`⇎`,nharr:()=>`↮`,nhpar:()=>`⫲`,ni:()=>`∋`,nis:()=>`⋼`,nisd:()=>`⋺`,niv:()=>`∋`,njcy:()=>`њ`,nlArr:()=>`⇍`,nlE:()=>bA,nlarr:()=>`↚`,nldr:()=>`‥`,nle:()=>`≰`,nleftarrow:()=>`↚`,nleftrightarrow:()=>`↮`,nleq:()=>`≰`,nleqq:()=>xA,nleqslant:()=>SA,nles:()=>CA,nless:()=>`≮`,nlsim:()=>`≴`,nlt:()=>`≮`,nltri:()=>`⋪`,nltrie:()=>`⋬`,nmid:()=>`∤`,nopf:()=>DA,not:()=>`¬`,notin:()=>`∉`,notinE:()=>FA,notindot:()=>PA,notinva:()=>`∉`,notinvb:()=>`⋷`,notinvc:()=>`⋶`,notni:()=>`∌`,notniva:()=>`∌`,notnivb:()=>`⋾`,notnivc:()=>`⋽`,npar:()=>`∦`,nparallel:()=>`∦`,nparsl:()=>YA,npart:()=>XA,npolint:()=>`⨔`,npr:()=>`⊀`,nprcue:()=>`⋠`,npre:()=>QA,nprec:()=>`⊀`,npreceq:()=>ZA,nrArr:()=>`⇏`,nrarr:()=>`↛`,nrarrc:()=>$A,nrarrw:()=>ej,nrightarrow:()=>`↛`,nrtri:()=>`⋫`,nrtrie:()=>`⋭`,nsc:()=>`⊁`,nsccue:()=>`⋡`,nsce:()=>tj,nscr:()=>rj,nshortmid:()=>`∤`,nshortparallel:()=>`∦`,nsim:()=>`≁`,nsime:()=>`≄`,nsimeq:()=>`≄`,nsmid:()=>`∤`,nspar:()=>`∦`,nsqsube:()=>`⋢`,nsqsupe:()=>`⋣`,nsub:()=>`⊄`,nsubE:()=>ij,nsube:()=>`⊈`,nsubset:()=>aj,nsubseteq:()=>`⊈`,nsubseteqq:()=>oj,nsucc:()=>`⊁`,nsucceq:()=>sj,nsup:()=>`⊅`,nsupE:()=>cj,nsupe:()=>`⊉`,nsupset:()=>lj,nsupseteq:()=>`⊉`,nsupseteqq:()=>uj,ntgl:()=>`≹`,ntilde:()=>`ñ`,ntlg:()=>`≸`,ntriangleleft:()=>`⋪`,ntrianglelefteq:()=>`⋬`,ntriangleright:()=>`⋫`,ntrianglerighteq:()=>`⋭`,nu:()=>`ν`,num:()=>`#`,numero:()=>`№`,numsp:()=>` `,nvDash:()=>`⊭`,nvHarr:()=>`⤄`,nvap:()=>dj,nvdash:()=>`⊬`,nvge:()=>fj,nvgt:()=>pj,nvinfin:()=>`⧞`,nvlArr:()=>`⤂`,nvle:()=>mj,nvlt:()=>hj,nvltrie:()=>gj,nvrArr:()=>`⤃`,nvrtrie:()=>_j,nvsim:()=>vj,nwArr:()=>`⇖`,nwarhk:()=>`⤣`,nwarr:()=>`↖`,nwarrow:()=>`↖`,nwnear:()=>`⤧`,oS:()=>`Ⓢ`,oacute:()=>`ó`,oast:()=>`⊛`,ocir:()=>`⊚`,ocirc:()=>`ô`,ocy:()=>`о`,odash:()=>`⊝`,odblac:()=>`ő`,odiv:()=>`⨸`,odot:()=>`⊙`,odsold:()=>`⦼`,oelig:()=>`œ`,ofcir:()=>`⦿`,ofr:()=>bj,ogon:()=>`˛`,ograve:()=>`ò`,ogt:()=>`⧁`,ohbar:()=>`⦵`,ohm:()=>`Ω`,oint:()=>`∮`,olarr:()=>`↺`,olcir:()=>`⦾`,olcross:()=>`⦻`,oline:()=>`‾`,olt:()=>`⧀`,omacr:()=>`ō`,omega:()=>`ω`,omicron:()=>`ο`,omid:()=>`⦶`,ominus:()=>`⊖`,oopf:()=>Sj,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:()=>Tj,phi:()=>`φ`,phiv:()=>`ϕ`,phmmat:()=>`ℳ`,phone:()=>`☎`,pi:()=>`π`,pitchfork:()=>`⋔`,piv:()=>`ϖ`,planck:()=>`ℏ`,planckh:()=>`ℎ`,plankv:()=>`ℏ`,plus:()=>`+`,plusacir:()=>`⨣`,plusb:()=>`⊞`,pluscir:()=>`⨢`,plusdo:()=>`∔`,plusdu:()=>`⨥`,pluse:()=>`⩲`,plusmn:()=>`±`,plussim:()=>`⨦`,plustwo:()=>`⨧`,pm:()=>`±`,pointint:()=>`⨕`,popf:()=>Ej,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:()=>Oj,psi:()=>`ψ`,puncsp:()=>` `,qfr:()=>Aj,qint:()=>`⨌`,qopf:()=>jj,qprime:()=>`⁗`,qscr:()=>Nj,quaternions:()=>`ℍ`,quatint:()=>`⨖`,quest:()=>`?`,questeq:()=>`≟`,quot:()=>`"`,rAarr:()=>`⇛`,rArr:()=>`⇒`,rAtail:()=>`⤜`,rBarr:()=>`⤏`,rHar:()=>`⥤`,race:()=>Pj,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:()=>Fj,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:()=>Ij,roplus:()=>`⨮`,rotimes:()=>`⨵`,rpar:()=>`)`,rpargt:()=>`⦔`,rppolint:()=>`⨒`,rrarr:()=>`⇉`,rsaquo:()=>`›`,rscr:()=>Lj,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:()=>zj,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:()=>Bj,softcy:()=>`ь`,sol:()=>`/`,solb:()=>`⧄`,solbar:()=>`⌿`,sopf:()=>Hj,spades:()=>`♠`,spadesuit:()=>`♠`,spar:()=>`∥`,sqcap:()=>`⊓`,sqcaps:()=>Uj,sqcup:()=>`⊔`,sqcups:()=>Wj,sqsub:()=>`⊏`,sqsube:()=>`⊑`,sqsubset:()=>`⊏`,sqsubseteq:()=>`⊑`,sqsup:()=>`⊐`,sqsupe:()=>`⊒`,sqsupset:()=>`⊐`,sqsupseteq:()=>`⊒`,squ:()=>`□`,square:()=>`□`,squarf:()=>`▪`,squf:()=>`▪`,srarr:()=>`→`,sscr:()=>Kj,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:()=>Jj,there4:()=>`∴`,therefore:()=>`∴`,theta:()=>`θ`,thetasym:()=>`ϑ`,thetav:()=>`ϑ`,thickapprox:()=>`≈`,thicksim:()=>`∼`,thinsp:()=>` `,thkap:()=>`≈`,thksim:()=>`∼`,thorn:()=>`þ`,tilde:()=>`˜`,times:()=>`×`,timesb:()=>`⊠`,timesbar:()=>`⨱`,timesd:()=>`⨰`,tint:()=>`∭`,toea:()=>`⤨`,top:()=>`⊤`,topbot:()=>`⌶`,topcir:()=>`⫱`,topf:()=>Zj,topfork:()=>`⫚`,tosa:()=>`⤩`,tprime:()=>`‴`,trade:()=>`™`,triangle:()=>`▵`,triangledown:()=>`▿`,triangleleft:()=>`◃`,trianglelefteq:()=>`⊴`,triangleq:()=>`≜`,triangleright:()=>`▹`,trianglerighteq:()=>`⊵`,tridot:()=>`◬`,trie:()=>`≜`,triminus:()=>`⨺`,triplus:()=>`⨹`,trisb:()=>`⧍`,tritime:()=>`⨻`,trpezium:()=>`⏢`,tscr:()=>$j,tscy:()=>`ц`,tshcy:()=>`ћ`,tstrok:()=>`ŧ`,twixt:()=>`≬`,twoheadleftarrow:()=>`↞`,twoheadrightarrow:()=>`↠`,uArr:()=>`⇑`,uHar:()=>`⥣`,uacute:()=>`ú`,uarr:()=>`↑`,ubrcy:()=>`ў`,ubreve:()=>`ŭ`,ucirc:()=>`û`,ucy:()=>`у`,udarr:()=>`⇅`,udblac:()=>`ű`,udhar:()=>`⥮`,ufisht:()=>`⥾`,ufr:()=>tM,ugrave:()=>`ù`,uharl:()=>`↿`,uharr:()=>`↾`,uhblk:()=>`▀`,ulcorn:()=>`⌜`,ulcorner:()=>`⌜`,ulcrop:()=>`⌏`,ultri:()=>`◸`,umacr:()=>`ū`,uml:()=>`¨`,uogon:()=>`ų`,uopf:()=>rM,uparrow:()=>`↑`,updownarrow:()=>`↕`,upharpoonleft:()=>`↿`,upharpoonright:()=>`↾`,uplus:()=>`⊎`,upsi:()=>`υ`,upsih:()=>`ϒ`,upsilon:()=>`υ`,upuparrows:()=>`⇈`,urcorn:()=>`⌝`,urcorner:()=>`⌝`,urcrop:()=>`⌎`,uring:()=>`ů`,urtri:()=>`◹`,uscr:()=>aM,utdot:()=>`⋰`,utilde:()=>`ũ`,utri:()=>`▵`,utrif:()=>`▴`,uuarr:()=>`⇈`,uuml:()=>`ü`,uwangle:()=>`⦧`,vArr:()=>`⇕`,vBar:()=>`⫨`,vBarv:()=>`⫩`,vDash:()=>`⊨`,vangrt:()=>`⦜`,varepsilon:()=>`ϵ`,varkappa:()=>`ϰ`,varnothing:()=>`∅`,varphi:()=>`ϕ`,varpi:()=>`ϖ`,varpropto:()=>`∝`,varr:()=>`↕`,varrho:()=>`ϱ`,varsigma:()=>`ς`,varsubsetneq:()=>oM,varsubsetneqq:()=>sM,varsupsetneq:()=>cM,varsupsetneqq:()=>lM,vartheta:()=>`ϑ`,vartriangleleft:()=>`⊲`,vartriangleright:()=>`⊳`,vcy:()=>`в`,vdash:()=>`⊢`,vee:()=>`∨`,veebar:()=>`⊻`,veeeq:()=>`≚`,vellip:()=>`⋮`,verbar:()=>`|`,vert:()=>`|`,vfr:()=>dM,vltri:()=>`⊲`,vnsub:()=>fM,vnsup:()=>pM,vopf:()=>hM,vprop:()=>`∝`,vrtri:()=>`⊳`,vscr:()=>_M,vsubnE:()=>vM,vsubne:()=>yM,vsupnE:()=>bM,vsupne:()=>xM,vzigzag:()=>`⦚`,wcirc:()=>`ŵ`,wedbar:()=>`⩟`,wedge:()=>`∧`,wedgeq:()=>`≙`,weierp:()=>`℘`,wfr:()=>CM,wopf:()=>TM,wp:()=>`℘`,wr:()=>`≀`,wreath:()=>`≀`,wscr:()=>DM,xcap:()=>`⋂`,xcirc:()=>`◯`,xcup:()=>`⋃`,xdtri:()=>`▽`,xfr:()=>kM,xhArr:()=>`⟺`,xharr:()=>`⟷`,xi:()=>`ξ`,xlArr:()=>`⟸`,xlarr:()=>`⟵`,xmap:()=>`⟼`,xnis:()=>`⋻`,xodot:()=>`⨀`,xopf:()=>jM,xoplus:()=>`⨁`,xotime:()=>`⨂`,xrArr:()=>`⟹`,xrarr:()=>`⟶`,xscr:()=>NM,xsqcup:()=>`⨆`,xuplus:()=>`⨄`,xutri:()=>`△`,xvee:()=>`⋁`,xwedge:()=>`⋀`,yacute:()=>`ý`,yacy:()=>`я`,ycirc:()=>`ŷ`,ycy:()=>`ы`,yen:()=>`¥`,yfr:()=>FM,yicy:()=>`ї`,yopf:()=>LM,yscr:()=>zM,yucy:()=>`ю`,yuml:()=>`ÿ`,zacute:()=>`ź`,zcaron:()=>`ž`,zcy:()=>`з`,zdot:()=>`ż`,zeetrf:()=>`ℨ`,zeta:()=>`ζ`,zfr:()=>BM,zhcy:()=>`ж`,zigrarr:()=>`⇝`,zopf:()=>VM,zscr:()=>UM,zwj:()=>``,zwnj:()=>``}),FO,IO,LO,RO,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=M((()=>{FO=`∾̳`,IO=`𝔄`,LO=`𝔞`,RO=`𝔸`,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={Aacute:`Á`,aacute:`á`,Abreve:`Ă`,abreve:`ă`,ac:`∾`,acd:`∿`,acE:FO,Acirc:`Â`,acirc:`â`,acute:`´`,Acy:`А`,acy:`а`,AElig:`Æ`,aelig:`æ`,af:``,Afr:IO,afr:LO,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:RO,aopf:zO,apacir:`⩯`,ap:`≈`,apE:`⩰`,ape:`≊`,apid:`≋`,apos:`'`,ApplyFunction:``,approx:`≈`,approxeq:`≊`,Aring:`Å`,aring:`å`,Ascr:BO,ascr:VO,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:HO,bfr:UO,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:WO,bnequiv:GO,bNot:`⫭`,bnot:`⌐`,Bopf:KO,bopf:qO,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:JO,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:YO,caret:`⁁`,caron:`ˇ`,Cayleys:`ℭ`,ccaps:`⩍`,Ccaron:`Č`,ccaron:`č`,Ccedil:`Ç`,ccedil:`ç`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cconint:`∰`,ccups:`⩌`,ccupssm:`⩐`,Cdot:`Ċ`,cdot:`ċ`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,CenterDot:`·`,cfr:XO,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:ZO,Copf:`ℂ`,coprod:`∐`,Coproduct:`∐`,copy:`©`,COPY:`©`,copysr:`℗`,CounterClockwiseContourIntegral:`∳`,crarr:`↵`,cross:`✗`,Cross:`⨯`,Cscr:QO,cscr:$O,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cupbrcap:`⩈`,cupcap:`⩆`,CupCap:`≍`,cup:`∪`,Cup:`⋓`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:ek,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:tk,dfr:nk,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:rk,dopf:ik,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:ak,dscr:ok,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:sk,efr:ck,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:lk,eopf:uk,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:dk,ffr:fk,filig:`fi`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,Fopf:pk,fopf:mk,forall:`∀`,ForAll:`∀`,fork:`⋔`,forkv:`⫙`,Fouriertrf:`ℱ`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:hk,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:gk,gesles:`⪔`,Gfr:_k,gfr:vk,gg:`≫`,Gg:`⋙`,ggg:`⋙`,gimel:`ℷ`,GJcy:`Ѓ`,gjcy:`ѓ`,gla:`⪥`,gl:`≷`,glE:`⪒`,glj:`⪤`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gnE:`≩`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,Gopf:yk,gopf:bk,grave:"`",GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:xk,gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gtcc:`⪧`,gtcir:`⩺`,gt:`>`,GT:`>`,Gt:`≫`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:Sk,gvnE:Ck,Hacek:`ˇ`,hairsp:` `,half:`½`,hamilt:`ℋ`,HARDcy:`Ъ`,hardcy:`ъ`,harrcir:`⥈`,harr:`↔`,hArr:`⇔`,harrw:`↭`,Hat:`^`,hbar:`ℏ`,Hcirc:`Ĥ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:wk,Hfr:`ℌ`,HilbertSpace:`ℋ`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:Tk,Hopf:`ℍ`,horbar:`―`,HorizontalLine:`─`,hscr:Ek,Hscr:`ℋ`,hslash:`ℏ`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,hybull:`⁃`,hyphen:`‐`,Iacute:`Í`,iacute:`í`,ic:``,Icirc:`Î`,icirc:`î`,Icy:`И`,icy:`и`,Idot:`İ`,IEcy:`Е`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:Dk,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:Ok,iopf:kk,Iota:`Ι`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:Ak,Iscr:`ℐ`,isin:`∈`,isindot:`⋵`,isinE:`⋹`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:``,Itilde:`Ĩ`,itilde:`ĩ`,Iukcy:`І`,iukcy:`і`,Iuml:`Ï`,iuml:`ï`,Jcirc:`Ĵ`,jcirc:`ĵ`,Jcy:`Й`,jcy:`й`,Jfr:jk,jfr:Mk,jmath:`ȷ`,Jopf:Nk,jopf:Pk,Jscr:Fk,jscr:Ik,Jsercy:`Ј`,jsercy:`ј`,Jukcy:`Є`,jukcy:`є`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`ķ`,Kcy:`К`,kcy:`к`,Kfr:Lk,kfr:Rk,kgreen:`ĸ`,KHcy:`Х`,khcy:`х`,KJcy:`Ќ`,kjcy:`ќ`,Kopf:zk,kopf:Bk,Kscr:Vk,kscr:Hk,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:Uk,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:Wk,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,lessgtr:`≶`,LessLess:`⪡`,lesssim:`≲`,LessSlantEqual:`⩽`,LessTilde:`≲`,lfisht:`⥼`,lfloor:`⌊`,Lfr:Gk,lfr:Kk,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:qk,lopf:Jk,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:``,lrtri:`⊿`,lsaquo:`‹`,lscr:Yk,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:Xk,lvnE:Zk,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,Map:`⤅`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,Mcy:`М`,mcy:`м`,mdash:`—`,mDDot:`∺`,measuredangle:`∡`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:Qk,mfr:$k,mho:`℧`,micro:`µ`,midast:`*`,midcir:`⫰`,mid:`∣`,middot:`·`,minusb:`⊟`,minus:`−`,minusd:`∸`,minusdu:`⨪`,MinusPlus:`∓`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,Mopf:eA,mopf:tA,mp:`∓`,mscr:nA,Mscr:`ℳ`,mstpos:`∾`,Mu:`Μ`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nabla:`∇`,Nacute:`Ń`,nacute:`ń`,nang:rA,nap:`≉`,napE:iA,napid:aA,napos:`ʼn`,napprox:`≉`,natural:`♮`,naturals:`ℕ`,natur:`♮`,nbsp:`\xA0`,nbump:oA,nbumpe:sA,ncap:`⩃`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ncong:`≇`,ncongdot:cA,ncup:`⩂`,Ncy:`Н`,ncy:`н`,ndash:`–`,nearhk:`⤤`,nearr:`↗`,neArr:`⇗`,nearrow:`↗`,ne:`≠`,nedot:lA,NegativeMediumSpace:``,NegativeThickSpace:``,NegativeThinSpace:``,NegativeVeryThinSpace:``,nequiv:`≢`,nesear:`⤨`,nesim:uA,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
|
|
48
|
+
`,nexist:`∄`,nexists:`∄`,Nfr:dA,nfr:fA,ngE:pA,nge:`≱`,ngeq:`≱`,ngeqq:mA,ngeqslant:hA,nges:gA,nGg:_A,ngsim:`≵`,nGt:vA,ngt:`≯`,ngtr:`≯`,nGtv:yA,nharr:`↮`,nhArr:`⇎`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,NJcy:`Њ`,njcy:`њ`,nlarr:`↚`,nlArr:`⇍`,nldr:`‥`,nlE:bA,nle:`≰`,nleftarrow:`↚`,nLeftarrow:`⇍`,nleftrightarrow:`↮`,nLeftrightarrow:`⇎`,nleq:`≰`,nleqq:xA,nleqslant:SA,nles:CA,nless:`≮`,nLl:wA,nlsim:`≴`,nLt:TA,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nLtv:EA,nmid:`∤`,NoBreak:``,NonBreakingSpace:`\xA0`,nopf:DA,Nopf:`ℕ`,Not:`⫬`,not:`¬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:OA,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:kA,NotGreaterGreater:AA,NotGreaterLess:`≹`,NotGreaterSlantEqual:jA,NotGreaterTilde:`≵`,NotHumpDownHump:MA,NotHumpEqual:NA,notin:`∉`,notindot:PA,notinE:FA,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,NotLeftTriangleBar:IA,NotLeftTriangle:`⋪`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:LA,NotLessSlantEqual:RA,NotLessTilde:`≴`,NotNestedGreaterGreater:zA,NotNestedLessLess:BA,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,NotPrecedes:`⊀`,NotPrecedesEqual:VA,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangleBar:HA,NotRightTriangle:`⋫`,NotRightTriangleEqual:`⋭`,NotSquareSubset:UA,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:WA,NotSquareSupersetEqual:`⋣`,NotSubset:GA,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:KA,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:qA,NotSuperset:JA,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,nparallel:`∦`,npar:`∦`,nparsl:YA,npart:XA,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,nprec:`⊀`,npreceq:ZA,npre:QA,nrarrc:$A,nrarr:`↛`,nrArr:`⇏`,nrarrw:ej,nrightarrow:`↛`,nRightarrow:`⇏`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:tj,Nscr:nj,nscr:rj,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:ij,nsube:`⊈`,nsubset:aj,nsubseteq:`⊈`,nsubseteqq:oj,nsucc:`⊁`,nsucceq:sj,nsup:`⊅`,nsupE:cj,nsupe:`⊉`,nsupset:lj,nsupseteq:`⊉`,nsupseteqq:uj,ntgl:`≹`,Ntilde:`Ñ`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,Nu:`Ν`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvap:dj,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`,nvge:fj,nvgt:pj,nvHarr:`⤄`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:mj,nvlt:hj,nvltrie:gj,nvrArr:`⤃`,nvrtrie:_j,nvsim:vj,nwarhk:`⤣`,nwarr:`↖`,nwArr:`⇖`,nwarrow:`↖`,nwnear:`⤧`,Oacute:`Ó`,oacute:`ó`,oast:`⊛`,Ocirc:`Ô`,ocirc:`ô`,ocir:`⊚`,Ocy:`О`,ocy:`о`,odash:`⊝`,Odblac:`Ő`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,OElig:`Œ`,oelig:`œ`,ofcir:`⦿`,Ofr:yj,ofr:bj,ogon:`˛`,Ograve:`Ò`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,Omacr:`Ō`,omacr:`ō`,Omega:`Ω`,omega:`ω`,Omicron:`Ο`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,Oopf:xj,oopf:Sj,opar:`⦷`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,operp:`⦹`,oplus:`⊕`,orarr:`↻`,Or:`⩔`,or:`∨`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oS:`Ⓢ`,Oscr:Cj,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:wj,pfr:Tj,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:Ej,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:Dj,pscr:Oj,Psi:`Ψ`,psi:`ψ`,puncsp:` `,Qfr:kj,qfr:Aj,qint:`⨌`,qopf:jj,Qopf:`ℚ`,qprime:`⁗`,Qscr:Mj,qscr:Nj,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quot:`"`,QUOT:`"`,rAarr:`⇛`,race:Pj,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:Fj,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:Ij,Ropf:`ℝ`,roplus:`⨮`,rotimes:`⨵`,RoundImplies:`⥰`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,Rrightarrow:`⇛`,rsaquo:`›`,rscr:Lj,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:Rj,sfr:zj,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:Bj,SOFTcy:`Ь`,softcy:`ь`,solbar:`⌿`,solb:`⧄`,sol:`/`,Sopf:Vj,sopf:Hj,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:Uj,sqcup:`⊔`,sqcups:Wj,Sqrt:`√`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,square:`□`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,squarf:`▪`,squ:`□`,squf:`▪`,srarr:`→`,Sscr:Gj,sscr:Kj,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:qj,tfr:Jj,there4:`∴`,therefore:`∴`,Therefore:`∴`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,ThickSpace:Yj,ThinSpace:` `,thinsp:` `,thkap:`≈`,thksim:`∼`,THORN:`Þ`,thorn:`þ`,tilde:`˜`,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,timesbar:`⨱`,timesb:`⊠`,times:`×`,timesd:`⨰`,tint:`∭`,toea:`⤨`,topbot:`⌶`,topcir:`⫱`,top:`⊤`,Topf:Xj,topf:Zj,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,TRADE:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,TripleDot:`⃛`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,Tscr:Qj,tscr:$j,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:eM,ufr:tM,Ugrave:`Ù`,ugrave:`ù`,uHar:`⥣`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,Umacr:`Ū`,umacr:`ū`,uml:`¨`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,uogon:`ų`,Uopf:nM,uopf:rM,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:iM,uscr:aM,utdot:`⋰`,Utilde:`Ũ`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,Uuml:`Ü`,uuml:`ü`,uwangle:`⦧`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,vArr:`⇕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:oM,varsubsetneqq:sM,varsupsetneq:cM,varsupsetneqq:lM,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:uM,vfr:dM,vltri:`⊲`,vnsub:fM,vnsup:pM,Vopf:mM,vopf:hM,vprop:`∝`,vrtri:`⊳`,Vscr:gM,vscr:_M,vsubnE:vM,vsubne:yM,vsupnE:bM,vsupne:xM,Vvdash:`⊪`,vzigzag:`⦚`,Wcirc:`Ŵ`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,Wedge:`⋀`,wedgeq:`≙`,weierp:`℘`,Wfr:SM,wfr:CM,Wopf:wM,wopf:TM,wp:`℘`,wr:`≀`,wreath:`≀`,Wscr:EM,wscr:DM,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,Xfr:OM,xfr:kM,xharr:`⟷`,xhArr:`⟺`,Xi:`Ξ`,xi:`ξ`,xlarr:`⟵`,xlArr:`⟸`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,Xopf:AM,xopf:jM,xoplus:`⨁`,xotime:`⨂`,xrarr:`⟶`,xrArr:`⟹`,Xscr:MM,xscr:NM,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,Yacute:`Ý`,yacute:`ý`,YAcy:`Я`,yacy:`я`,Ycirc:`Ŷ`,ycirc:`ŷ`,Ycy:`Ы`,ycy:`ы`,yen:`¥`,Yfr:PM,yfr:FM,YIcy:`Ї`,yicy:`ї`,Yopf:IM,yopf:LM,Yscr:RM,yscr:zM,YUcy:`Ю`,yucy:`ю`,yuml:`ÿ`,Yuml:`Ÿ`,Zacute:`Ź`,zacute:`ź`,Zcaron:`Ž`,zcaron:`ž`,Zcy:`З`,zcy:`з`,Zdot:`Ż`,zdot:`ż`,zeetrf:`ℨ`,ZeroWidthSpace:``,Zeta:`Ζ`,zeta:`ζ`,zfr:BM,Zfr:`ℨ`,ZHcy:`Ж`,zhcy:`ж`,zigrarr:`⇝`,zopf:VM,Zopf:`ℤ`,Zscr:HM,zscr:UM,zwj:``,zwnj:``}})),KM=de({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:()=>qM,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:()=>`ÿ`}),qM,JM=M((()=>{qM={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:`ÿ`}})),YM=de({amp:()=>`&`,apos:()=>`'`,default:()=>XM,gt:()=>`>`,lt:()=>`<`,quot:()=>`"`}),XM,ZM=M((()=>{XM={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`}})),QM=de({default:()=>$M}),$M,eN=M((()=>{$M={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}})),tN=_((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t((eN(),m(QM).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})),nN=_((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((GM(),m(PO).default)),r=t((JM(),m(KM).default)),i=t((ZM(),m(YM).default)),a=t(tN()),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}}})),rN=_((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((ZM(),m(YM).default)).default),r=o(n);e.encodeXML=h(n);var i=a(t((GM(),m(PO).default)).default);e.encodeHTML=u(i,o(i)),e.encodeNonAsciiHTML=h(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 h(e){return function(t){return t.replace(d,function(t){return e[t]||l(t)})}}})),iN=_((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=nN(),n=rN();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=rN();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=nN();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}})})),aN=S(_(((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=iN(),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),oN={summary:`max-h-[240px]`,base:`max-h-[288px]`,delegation:`max-h-[768px]`};function sN(e){return oN[e]}var cN=`whitespace-pre-wrap break-words`;function lN({fullText:e,children:t,className:n,collapsedClassName:r,collapsedStyle:i,expandedClassName:a=cN}){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 uN=4,dN=350,fN=250;function pN(e){return Math.max(0,e.scrollHeight-e.clientHeight)}function mN(e){return pN(e)-e.scrollTop<=uN}function hN(e,t){let n=pN(e);t?e.scrollTo({top:n,behavior:`smooth`}):e.scrollTop=n}function gN({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();hN(i,!s.current&&a-o.current>=fN),o.current=a,s.current=!1},[e,t]);let l=(0,R.useCallback)(()=>{a.current=window.performance.now()+dN},[]),u=(0,R.useCallback)(()=>{i.current=!0},[]),d=(0,R.useCallback)(()=>{i.current=!1},[]),f=(0,R.useCallback)(e=>{if(mN(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 _N(){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 vN({size:e,streaming:t=!1,contentKey:n,className:r,scrollClassName:i,children:a}){let o=gN({contentKey:n,streaming:t}),s=_N(),c=sN(e),{aboveOverflow:l,belowOverflow:u}=s,d=(0,R.useCallback)(e=>{o.onScroll(e)},[o]),f=$e(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 yN={display:`-webkit-box`,WebkitBoxOrient:`vertical`,WebkitLineClamp:2},bN={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)`},xN=Object.keys(bN).map(Number),SN=`background-color:var(--background)`,CN=`${SN};color:var(--foreground)`;function wN(e){let t=e;for(let e of xN){let n=`background-color:var(--ansi-${e})`;t=t.replaceAll(n,`${n};color:var(--ansi-bg-fg-${e})`)}return t.replaceAll(SN,CN)}var TN=new aN.default({escapeXML:!0,newline:!1,stream:!1,fg:`var(--foreground)`,bg:`var(--background)`,colors:bN});function EN(e){let t=0;for(let n of e)t+=n.length;return t}function DN({commandLine:e,exitCode:t,metadataLines:n,output:r}){return[e?.length??0,EN(n),r.length,t??``].join(`:`)}function ON({commandLine:e,exitCode:t=null,metadataLines:n=[],output:r,streaming:i=!1}){let a=(0,R.useMemo)(()=>r.length>0?wN(TN.toHtml(r)):null,[r]),o=t!==null,s=DN({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)(lN,{fullText:e,collapsedClassName:`max-h-[2lh] overflow-hidden whitespace-pre-wrap break-words`,collapsedStyle:yN,expandedClassName:I(`overflow-auto whitespace-pre-wrap break-words`,sN(`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)(vN,{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 kN=`diffs-container`,AN=/(?=^From [a-f0-9]+ .+$)/m,jN=/(?=^diff --git)/gm,MN=/(?=^---\s+\S)/gm,NN=/(?=^@@ )/gm,PN=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,FN=/(?<=\n)/,IN=/^(---|\+\+\+)\s+([^\t\r\n]+)/,LN=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,RN=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,zN=/^index (?:[0-9a-f]+)\.\.(?:[0-9a-f]+)(?: (\d+))?/,BN=`header-metadata`,VN={dark:`pierre-dark`,light:`pierre-light`},HN=`data-unsafe-css`;function UN(e,t){return e?.start===t?.start&&e?.end===t?.end&&e?.side===t?.side&&e?.endSide===t?.endSide}var WN=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||UN(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 GN({enableLineSelection:e,onLineSelected:t,onLineSelectionStart:n,onLineSelectionEnd:r}){return{enableLineSelection:e,onLineSelected:t,onLineSelectionStart:n,onLineSelectionEnd:r}}function KN(e,t){return e==null?!1:t===`file`?e.type===`line`:e.type===`diff-line`}function qN(e){return e?.type===`line-info`}var JN=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=``,YN(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),YN(t,`move`,`FileDiff.DEBUG.attachEventListeners: Attaching pointer move event`),e.addEventListener(`pointerleave`,this.handleMouseLeave),YN(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=>{YN(this.options.__debugMouseEvents,`click`,`FileDiff.DEBUG.handleMouseClick:`,e),this.handleMouseEvent({eventType:`click`,event:e})};handleMouseMove=e=>{YN(this.options.__debugMouseEvents,`move`,`FileDiff.DEBUG.handleMouseMove:`,e),this.handleMouseEvent({eventType:`move`,event:e})};handleMouseLeave=e=>{let{__debugMouseEvents:t}=this.options;if(YN(t,`move`,`FileDiff.DEBUG.handleMouseLeave: no event`),this.hoveredLine==null){YN(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();YN(n,e,`FileDiff.DEBUG.handleMouseEvent:`,{eventType:e,composedPath:r});let i=this.getLineData(r);YN(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(KN(i,this.mode)&&this.hoveredLine?.lineElement===i.lineElement){YN(n,`move`,`FileDiff.DEBUG.handleMouseEvent: switch, 'move', returned early because same line`);break}this.hoveredLine!=null&&(YN(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),KN(i,this.mode)&&(YN(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(YN(n,`click`,`FileDiff.DEBUG.handleMouseEvent: switch, 'click', with data:`,i),i==null)break;if(qN(i)&&l!=null){YN(n,`click`,`FileDiff.DEBUG.handleMouseEvent: switch, 'click', expanding a hunk`),l(i.hunkIndex,i.direction);break}KN(i,this.mode)&&(o!=null&&i.numberColumn?(YN(n,`click`,`FileDiff.DEBUG.handleMouseEvent: switch, 'click', firing 'onLineNumberClick'`),o({...i,event:t})):a==null?YN(n,`click`,`FileDiff.DEBUG.handleMouseEvent: switch, 'click', fell through, no event to fire`):(YN(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 YN(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 XN({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 ZN=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`)))}}},QN=new Map,$N=new Map,eP=new Set;function tP(e){for(let t of Array.isArray(e)?e:[e])if(!eP.has(t))return!1;return!0}function nP(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(eP.has(n.name))continue;let e=QN.get(n.name);e??(e=n,QN.set(n.name,e)),eP.add(e.name),t.loadLanguageSync(e.data)}}function rP(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var iP=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function aP(e){return oP(e)}function oP(e){return Array.isArray(e)?sP(e):e instanceof RegExp?e:typeof e==`object`?cP(e):e}function sP(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=oP(e[n]);return t}function cP(e){let t={};for(let n in e)t[n]=oP(e[n]);return t}function lP(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function uP(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?uP(e.substring(0,e.length-1)):e.substr(~t+1)}var dP=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,fP=class{static hasCaptures(e){return e===null?!1:(dP.lastIndex=0,dP.test(e))}static replaceCaptures(e,t,n){return e.replace(dP,(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 pP(e,t){return e<t?-1:+(e>t)}function mP(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=pP(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function hP(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 gP(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var _P=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}},vP=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(CP(e),t)}static createFromParsedTheme(e,t){return EP(e,t)}_cachedMatchRoot=new _P(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=>bP(e.parent,t.parentScopes));return n?new SP(n.fontStyle,n.foreground,n.background):null}},yP=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 bP(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&&!xP(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function xP(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var SP=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function CP(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`&&hP(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&hP(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 wP(l,u,e,o,s,c)}}return n}var wP=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}},TP=(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))(TP||{});function EP(e,t){e.sort((e,t)=>{let n=pP(e.scope,t.scope);return n!==0||(n=mP(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 DP(t),o=new SP(n,a.getId(r),a.getId(i)),s=new AP(new kP(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 vP(a,o,s)}var DP=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)}},OP=Object.freeze([]),kP=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||OP,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)}},AP=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(),kP.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(mP(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 kP(e,t,n,r,i))}},jP=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=NP(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 MP(e){return e}function NP(e){return e}function PP(e,t){let n=[],r=IP(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(FP(i)){let e=[];do e.push(i),i=r.next();while(FP(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 FP(e){return!!e&&!!e.match(/[\w\.:]+/)}function IP(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 LP(e){typeof e.dispose==`function`&&e.dispose()}var RP=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},zP=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},BP=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))}},VP=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new RP(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new BP;for(let n of e)HP(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof RP){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 HP(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 RP?WP({baseGrammar:a,selfGrammar:i},r):UP(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 RP(e))}function UP(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];GP([r],t,n)}}function WP(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&GP(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&GP(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function GP(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?lP({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&GP(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=ZP(i);switch(a.kind){case 0:WP({...t,selfGrammar:t.baseGrammar},n);break;case 1:WP(t,n);break;case 2:UP(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?UP(a.ruleName,i,n):WP(i,n)}else a.kind===4?n.add(new zP(a.scopeName,a.ruleName)):n.add(new RP(a.scopeName));break}}}var KP=class{kind=0},qP=class{kind=1},JP=class{constructor(e){this.ruleName=e}kind=2},YP=class{constructor(e){this.scopeName=e}kind=3},XP=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function ZP(e){if(e===`$base`)return new KP;if(e===`$self`)return new qP;let t=e.indexOf(`#`);return t===-1?new YP(e):t===0?new JP(e.substring(1)):new XP(e.substring(0,t),e.substring(t+1))}var QP=/\\(\d+)/,$P=/\\(\d+)/g,eF=-1,tF=-2;function nF(e){return e}function rF(e){return e}var iF=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=fP.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=fP.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${uP(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:fP.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:fP.replaceCaptures(this._contentName,e,t)}},aF=class extends iF{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!`)}},oF=class extends iF{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new dF(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 fF,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},sF=class extends iF{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 fF,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},cF=class extends iF{_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 dF(i,this.id),this.beginCaptures=a,this._end=new dF(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 fF;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}},lF=class extends iF{_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 dF(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new dF(o,tF),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 fF;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 fF,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||``),this._cachedCompiledWhilePatterns}},uF=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new aF(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new oF(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=lP({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new sF(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new lF(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 cF(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=ZP(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 sF||e instanceof cF||e instanceof lF)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},dF=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=QP.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 $P.lastIndex=0,this.source.replace($P,(e,t)=>gP(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}},fF=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 pF(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 pF(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},pF=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}},mF=class{constructor(e,t){this.languageId=e,this.tokenType=t}},hF=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new mF(e,8),this._embeddedLanguagesMatcher=new gF(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 mF(0,0);_getBasicScopeAttributes=new _P(e=>new mF(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/},gF=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])=>gP(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 _F=!1,vF=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function yF(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=bF(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 vF(i,!0);f()}return new vF(i,!1);function f(){let o=xF(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===eF){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),DF(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 cF){let r=o;DF(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 lF){let r=o;DF(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(DF(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 bF(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 lF&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=TF(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==tF){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),DF(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 xF(e,t,n,r,i,a){let o=SF(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=CF(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 SF(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=wF(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 CF(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}=wF(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 wF(e,t,n,r,i){return _F?{ruleScanner:e.compile(t,n),findOptions:EF(r,i)}:{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function TF(e,t,n,r,i){return _F?{ruleScanner:e.compileWhile(t,n),findOptions:EF(r,i)}:{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function EF(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function DF(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));yF(e,p,n&&d.start===0,d.start,f,i,!1,0),LP(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 OF(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var OF=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function kF(e,t,n,r,i,a,o,s){return new NF(e,t,n,r,i,a,o,s)}function AF(e,t,n,r,i){let a=PP(t,jF),o=uF.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 jF(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(MF(t[r],e))return n=r+1,!0;return!1})}function MF(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 NF=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new hF(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=PF(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=PP(e,jF);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)AF(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&&AF(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(nF(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[rF(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]=PF(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=uF.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===IF.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=jP.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?FF.createRootAndLookUpScopeName(a,r,this):FF.createRoot(`unknown`,r),t=new IF(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 RF(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=yF(this,a,i,0,t,s,!0,r);return LP(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function PF(e,t){return e=aP(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 FF=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=yP.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new yP(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new yP(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),jP.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}},IF=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)?FF.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:rF(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=FF.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,nF(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,FF.fromExtension(r,n.contentNameScopesList))}},LF=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):PP(e,jF).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>PP(e,jF).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}},RF=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=jP.set(n,0,MP(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=jP.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}},zF=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,kF(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},BF=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new zF(vP.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(vP.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 LF(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new VP(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)}},VF=IF.NULL,HF=/["&'<>`]/g,UF=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,WF=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,GF=/[|\\{}()[\]^$+*?.]/g,KF=new WeakMap;function qF(e,t){if(e=e.replace(t.subset?JF(t.subset):HF,r),t.subset||t.escapeOnly)return e;return e.replace(UF,n).replace(WF,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 JF(e){let t=KF.get(e);return t||(t=YF(e),KF.set(e,t)),t}function YF(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(GF,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var XF=/[\dA-Fa-f]/;function ZF(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!XF.test(String.fromCharCode(t))?r:r+`;`}var QF=/\d/;function $F(e,t,n){let r=`&#`+String(e);return n&&t&&!QF.test(String.fromCharCode(t))?r:r+`;`}var eI=`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(`.`),tI={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:`€`},nI=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],rI={}.hasOwnProperty,iI={},aI;for(aI in tI)rI.call(tI,aI)&&(iI[tI[aI]]=aI);var oI=/[^\dA-Za-z]/;function sI(e,t,n,r){let i=String.fromCharCode(e);if(rI.call(iI,i)){let e=iI[i],a=`&`+e;return n&&eI.includes(e)&&!nI.includes(e)&&(!r||t&&t!==61&&oI.test(String.fromCharCode(t)))?a:a+`;`}return``}function cI(e,t,n){let r=ZF(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=sI(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=$F(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function lI(e,t){return qF(e,Object.assign({format:cI},t))}var uI=/^>|^->|<!--|-->|--!>|<!-$/g,dI=[`>`],fI=[`<`,`>`];function pI(e,t,n,r){return r.settings.bogusComments?`<?`+lI(e.value,Object.assign({},r.settings.characterReferences,{subset:dI}))+`>`:`<!--`+e.value.replace(uI,i)+`-->`;function i(e){return lI(e,Object.assign({},r.settings.characterReferences,{subset:fI}))}}function mI(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}var hI=vI(1),gI=vI(-1),_I=[];function vI(e){return t;function t(t,n,r){let i=t?t.children:_I,a=(n||0)+e,o=i[a];if(!r)for(;o&&wd(o);)a+=e,o=i[a];return o}}var yI={}.hasOwnProperty;function bI(e){return t;function t(t,n,r){return yI.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var xI=bI({body:wI,caption:SI,colgroup:SI,dd:OI,dt:DI,head:SI,html:CI,li:EI,optgroup:AI,option:jI,p:TI,rp:kI,rt:kI,tbody:NI,td:II,tfoot:PI,th:II,thead:MI,tr:FI});function SI(e,t,n){let r=hI(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&wd(r.value.charAt(0)))}function CI(e,t,n){let r=hI(n,t);return!r||r.type!==`comment`}function wI(e,t,n){let r=hI(n,t);return!r||r.type!==`comment`}function TI(e,t,n){let r=hI(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 EI(e,t,n){let r=hI(n,t);return!r||r.type===`element`&&r.tagName===`li`}function DI(e,t,n){let r=hI(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function OI(e,t,n){let r=hI(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function kI(e,t,n){let r=hI(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function AI(e,t,n){let r=hI(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function jI(e,t,n){let r=hI(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function MI(e,t,n){let r=hI(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function NI(e,t,n){let r=hI(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function PI(e,t,n){return!hI(n,t)}function FI(e,t,n){let r=hI(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function II(e,t,n){let r=hI(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var LI=bI({body:BI,colgroup:VI,head:zI,html:RI,tbody:HI});function RI(e){let t=hI(e,-1);return!t||t.type!==`comment`}function zI(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 BI(e){let t=hI(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&wd(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function VI(e,t,n){let r=gI(n,t),i=hI(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&xI(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function HI(e,t,n){let r=gI(n,t),i=hI(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&xI(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var UI={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 WI(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=af);let l=GI(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!LI(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||!xI(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function GI(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=KI(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 KI(e,t,n){let r=ef(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=lI(r.attribute,Object.assign({},e.settings.characterReferences,{subset:UI.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?vd:sf)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=lI(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:UI.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&LC(n,o)>LC(n,e.alternative)&&(o=e.alternative),s=o+lI(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?UI.single:UI.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var qI=[`<`,`&`];function JI(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:lI(e.value,Object.assign({},r.settings.characterReferences,{subset:qI}))}function YI(e,t,n,r){return r.settings.allowDangerousHtml?e.value:JI(e,t,n,r)}function XI(e,t,n,r){return r.all(e)}var ZI=jv(`type`,{invalid:QI,unknown:$I,handlers:{comment:pI,doctype:mI,element:WI,raw:YI,root:XI,text:JI}});function QI(e){throw Error("Expected node, not `"+e+"`")}function $I(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var eL={},tL={},nL=[];function rL(e,t){let n=t||eL,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:iL,all:aL,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||Gv,characterReferences:n.characterReferences||tL,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?af:rf,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function iL(e,t,n){return ZI(e,t,n,this)}function aL(e){let t=[],n=e&&e.children||nL,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}function oL(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 sL(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function cL(e){return Array.isArray(e)?e:[e]}async function lL(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function uL(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function dL(e){return e===`ansi`||uL(e)}function fL(e){return e===`none`}function pL(e){return fL(e)}function mL(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 hL(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 gL(e){let t=hL(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 _L(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 vL=`light-dark()`,yL=[`color`,`background-color`];function bL(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 xL(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?bL(e,t):e})):e}function SL(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>CL(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&&yL.includes(a))if(r===vL&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new iP('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 CL(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&TP.Italic&&(t[`font-style`]=`italic`),e.fontStyle&TP.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&TP.Underline&&n.push(`underline`),e.fontStyle&TP.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function wL(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}var TL=new WeakMap;function EL(e,t){TL.set(e,t)}function DL(e){return TL.get(e)}var OL=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(cL(n).map(e=>[e,VF])),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 kL(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function kL(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 AL(e,t){if(!(e instanceof OL))throw new iP(`Invalid grammar state`);return e.getInternalStack(t)}function jL(){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 iP(`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 iP(`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 iP(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}},r=gL(t.source),i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));ML(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 xL(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 iP(`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+=NL(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new iP(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new iP(`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&&mL(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 ML(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new iP(`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 iP(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function NL(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(NL).join(``):``}var PL=[jL()];function FL(e){let t=IL(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...PL]}function IL(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 LL=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],RL={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function zL(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 BL(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 VL(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)RL[r]&&t.push({type:`setDecoration`,value:RL[r]});else if(r<=29){let e=RL[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:LL[r-30]}});else if(r===38){let n=BL(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:LL[r-40]}});else if(r===48){let n=BL(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:LL[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:LL[r-100+8]}})}return t}function HL(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=zL(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=VL(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 UL={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 WL(e=UL){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<LL.length;e++)r.push(t(LL[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 GL={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 KL(e,t,n){let r=oL(e,n),i=hL(t),a=WL(Object.fromEntries(LL.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||GL[t]]}))),o=HL();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=sL(i,r),o=sL(o,r),n.decorations.has(`dim`)&&(i=qL(i));let s=TP.None;return n.decorations.has(`bold`)&&(s|=TP.Bold),n.decorations.has(`italic`)&&(s|=TP.Italic),n.decorations.has(`underline`)&&(s|=TP.Underline),n.decorations.has(`strikethrough`)&&(s|=TP.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function qL(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 JL(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||`text`);if(uL(i)||fL(r))return hL(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:a,colorMap:o}=e.setTheme(r);if(i===`ansi`)return KL(a,t,n);let s=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==s.name)throw new iP(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(a.name))throw new iP(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return XL(t,s,a,o,n)}function YL(...e){if(e.length===2)return DL(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(uL(i)||fL(a))throw new iP(`Plain language does not have grammar state`);if(i===`ansi`)throw new iP(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new OL(ZL(n,c,o,s,r).stateStack,c.name,o.name)}function XL(e,t,n,r,i){let a=ZL(e,t,n,r,i),o=new OL(a.stateStack,t.name,n.name);return EL(a.tokens,o),a.tokens}function ZL(e,t,n,r,i){let a=oL(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=hL(e),l=i.grammarState?AL(i.grammarState,n.name)??VF:i.grammarContextCode==null?VF:ZL(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=sL(r[jP.getForeground(s)],a),l=jP.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`?QL(t.scopes):$L(e,t.scopes)}),g+=1}}u.push(d)}d.push(u),u=[],l=_.ruleStack}return{tokens:d,stateStack:l}}function QL(e){return e.map(e=>({scopeName:e}))}function $L(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:nR(e,i,t.slice(0,r))}}return n}function eR(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function tR(e,t,n){if(!eR(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)eR(e[r],n[i])&&--r,--i;return r===-1}function nR(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(tR(e,t,n)){r.push(a);break}return r}function rR(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=JL(e,t,{...n,theme:r.theme});return{tokens:i,state:DL(i),theme:typeof r.theme==`string`?r.theme:r.theme.name}}),a=iR(...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 OL(Object.fromEntries(i.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),i[0].state.lang):void 0;return s&&EL(o,s),o}function iR(...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 aR(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 iP("`themes` option must not be empty");let p=rR(e,t,n);if(c=DL(p),l&&vL!==l&&!f.find(e=>e.color===l))throw new iP(`\`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=>SL(e,h,u,l,d))),c&&EL(a,c);let g=f.map(e=>oL(e.theme,n));i=oR(f,m,g,u,l,`fg`,d),r=oR(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=oL(n.theme,n);a=JL(e,t,n);let l=e.getTheme(n.theme);r=sL(l.bg,s),i=sL(l.fg,s),o=l.name,c=DL(a)}else throw new iP("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function oR(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=sL(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===vL&&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 iP('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${sL(t[r][a],n[r])||`inherit`}, ${sL(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}function sR(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>sR(e,t,n),codeToTokens:(t,n)=>aR(e,t,n)}){let i=t;for(let e of FL(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=aR(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=lR(a):d===`never`&&(a=uR(a)),f&&(a=dR(a));let p={...r,get source(){return i}};for(let e of FL(n))a=e.tokens?.call(p,a)||a;return cR(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function cR(e,t,n,r=DL(e)){let i=FL(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:mL,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=wL(a.htmlStyle||CL(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&&EL(m,r),m}function lR(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&TP.Underline||i.fontStyle&TP.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 uR(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 dR(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=wL(e.htmlStyle||CL(e)),i=wL(n.htmlStyle||CL(n)),a=e.fontStyle&&(e.fontStyle&TP.Underline||e.fontStyle&TP.Strikethrough),o=n.fontStyle&&(n.fontStyle&TP.Underline||n.fontStyle&TP.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var fR=rL;function pR(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>sR(e,t,n),codeToTokens:(t,n)=>aR(e,t,n)},i=fR(sR(e,t,n,r));for(let e of FL(n))i=e.postprocess?.call(r,i,n)||i;return i}var mR={light:`#333333`,dark:`#bbbbbb`},hR={light:`#fffffe`,dark:`#1e1e1e`},gR=`__shiki_resolved`;function _R(e){if(e?.[gR])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`?mR.light:mR.dark,n||=t.type===`light`?hR.light:hR.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,gR,{enumerable:!1,writable:!1,value:!0}),t}async function vR(e){return Array.from(new Set((await Promise.all(e.filter(e=>!dL(e)).map(async e=>await lL(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function yR(e){return(await Promise.all(e.map(async e=>pL(e)?null:_R(await lL(e))))).filter(e=>!!e)}var bR=3,xR=!1;function SR(e,t=3){if(bR&&!(typeof bR==`number`&&t>bR)){if(xR)throw Error(`[SHIKI DEPRECATE]: ${e}`);console.trace(`[SHIKI DEPRECATE]: ${e}`)}}var CR=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function wR(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 CR(`Circular alias \`${Array.from(n).join(` -> `)} -> ${e}\``);n.add(e)}}return e}var TR=class extends BF{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=_R(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=vP.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=wR(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 CR(`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))}},ER=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}},DR=0;function OR(e){DR+=1,e.warnings!==!1&&DR>=10&&DR%10==0&&console.warn(`[Shiki] ${DR} 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 CR("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(_R),i=new TR(new ER(e.engine,n),r,n,e.langAlias),a;function o(t){return wR(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new CR(`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 CR(`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 vR(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await yR(e))}function g(){if(t)throw new CR(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--DR)}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 kR(e){e.engine||SR("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([yR(e.themes||[]),vR(e.langs||[]),e.engine]);return OR({...e,themes:t,langs:n,engine:r})}async function AR(e){let t=await kR(e);return{getLastGrammarState:(...e)=>YL(t,...e),codeToTokensBase:(e,n)=>JL(t,e,n),codeToTokensWithThemes:(e,n)=>rR(t,e,n),codeToTokens:(e,n)=>aR(t,e,n),codeToHast:(e,n)=>sR(t,e,n),codeToHtml:(e,n)=>pR(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function jR(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,dL(n))return[];let r=t[n];if(!r)throw new iP(`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(pL(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new iP(`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 AR({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 MR(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 NR(e,t){let n=MR(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 PR=[{id:`abap`,name:`ABAP`,import:(()=>L(()=>import(`./abap-DKGmjV0m.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>L(()=>import(`./actionscript-3-PQHI9sRP.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>L(()=>import(`./ada-7dCRqcEc.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>L(()=>import(`./angular-html-C2Dl0O00.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3,4])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>L(()=>import(`./angular-ts-CVYqc36v.js`),__vite__mapDeps([5,0,1,2,3,4,6])))},{id:`apache`,name:`Apache Conf`,import:(()=>L(()=>import(`./apache-DuwFT_ko.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>L(()=>import(`./apex-ZrILV9y9.js`),[]))},{id:`apl`,name:`APL`,import:(()=>L(()=>import(`./apl-BGPamPSJ.js`),__vite__mapDeps([7,3,1,2,4,8,9,10])))},{id:`applescript`,name:`AppleScript`,import:(()=>L(()=>import(`./applescript-QewDI2Hm.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>L(()=>import(`./ara-CAKYVeDX.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>L(()=>import(`./asciidoc-xYtH5EEV.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>L(()=>import(`./asm-DuNyKkDV.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>L(()=>import(`./astro-Ba-Dojj4.js`),__vite__mapDeps([11,3,1,4,8,12,13,14])))},{id:`awk`,name:`AWK`,import:(()=>L(()=>import(`./awk-BDSWDVpS.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>L(()=>import(`./ballerina-eIQtFtZN.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>L(()=>import(`./bat-DVPhDFws.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>L(()=>import(`./beancount-DRh4LoEp.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>L(()=>import(`./berry-BJPWN0aG.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>L(()=>import(`./bibtex-BXZl-zGT.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>L(()=>import(`./bicep-DUhze7H3.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>L(()=>import(`./bird2-D_94N4Us.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>L(()=>import(`./blade-Lwg2Qi0v.js`),__vite__mapDeps([15,3,1,16,2,4,8,17,9,10])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>L(()=>import(`./bsl-JaCMWPaY.js`),__vite__mapDeps([18,19])))},{id:`c`,name:`C`,import:(()=>L(()=>import(`./c-B_58eHuy.js`).then(e=>e.n),__vite__mapDeps([20,1])))},{id:`c3`,name:`C3`,import:(()=>L(()=>import(`./c3-CUFd2ak_.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>L(()=>import(`./cadence-zuA3Lqsu.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>L(()=>import(`./cairo-D7Xpkdmw.js`),__vite__mapDeps([21,22])))},{id:`clarity`,name:`Clarity`,import:(()=>L(()=>import(`./clarity-Dp-fzxYs.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>L(()=>import(`./clojure-85kagXuc.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>L(()=>import(`./cmake-5KZO_J3V.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>L(()=>import(`./cobol-CM0x5uzi.js`),__vite__mapDeps([23,2,1,3,4,10])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>L(()=>import(`./codeowners-CwITHnrC.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>L(()=>import(`./codeql-DsuZZPKs.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>L(()=>import(`./coffee-WumiHYOD.js`),__vite__mapDeps([24,4,1])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>L(()=>import(`./common-lisp-DQj0fa1s.js`),[]))},{id:`coq`,name:`Coq`,import:(()=>L(()=>import(`./coq-BGPtnnb4.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>L(()=>import(`./cpp-D0sZgzGq.js`).then(e=>e.n),__vite__mapDeps([25,1,26,20,27,17])))},{id:`crystal`,name:`Crystal`,import:(()=>L(()=>import(`./crystal-C2tAIJ-r.js`),__vite__mapDeps([28,20,1,3,2,4,29,17])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>L(()=>import(`./csharp-Bz4y1fn8.js`),[]))},{id:`css`,name:`CSS`,import:(()=>L(()=>import(`./css-QhLRjU31.js`).then(e=>e.n),__vite__mapDeps([3,1])))},{id:`csv`,name:`CSV`,import:(()=>L(()=>import(`./csv-92JdhrVb.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>L(()=>import(`./cue-DO5iBckt.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>L(()=>import(`./cypher-Dt0SBufN.js`),[]))},{id:`d`,name:`D`,import:(()=>L(()=>import(`./d-POAmrdpL.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>L(()=>import(`./dart-Cv4z4sEx.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>L(()=>import(`./dax-Cw_LNvcO.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>L(()=>import(`./desktop-B_uWbpWi.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>L(()=>import(`./diff-pSjjL-ZH.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>L(()=>import(`./docker-r0L9bSzI.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>L(()=>import(`./dotenv-DU-Uz6AA.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>L(()=>import(`./dream-maker-DE3sVgWW.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>L(()=>import(`./edge-BmtKCk7-.js`),__vite__mapDeps([30,16,2,1,3,4,14])))},{id:`elixir`,name:`Elixir`,import:(()=>L(()=>import(`./elixir-DiumzaXM.js`),__vite__mapDeps([31,2,1,3,4])))},{id:`elm`,name:`Elm`,import:(()=>L(()=>import(`./elm-DV3i51_v.js`),__vite__mapDeps([32,26,1,20])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>L(()=>import(`./emacs-lisp-aMjKKeFP.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>L(()=>import(`./erb-3qqPnLJh.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-DJdyEhn7.js`),__vite__mapDeps([40,41])))},{id:`fennel`,name:`Fennel`,import:(()=>L(()=>import(`./fennel-Bruivvq3.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>L(()=>import(`./fish-CaGhpV7s.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>L(()=>import(`./fluent-BsmQk-nO.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>L(()=>import(`./fortran-fixed-form-Dyncprn4.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-B9mY58s0.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>L(()=>import(`./fsharp-D6WYKxtq.js`),__vite__mapDeps([44,41])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>L(()=>import(`./gdresource-Bac2fAQZ.js`),__vite__mapDeps([45,46,47])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>L(()=>import(`./gdscript-B_WUGHIs.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>L(()=>import(`./gdshader-BR6nyn6z.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>L(()=>import(`./genie-CW-a1unw.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>L(()=>import(`./gherkin-D8z0Dn14.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>L(()=>import(`./git-commit-CDZnUqIF.js`),__vite__mapDeps([48,49])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>L(()=>import(`./git-rebase-DIMwlcT0.js`),__vite__mapDeps([50,29,1])))},{id:`gleam`,name:`Gleam`,import:(()=>L(()=>import(`./gleam-BtOZgVle.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>L(()=>import(`./glimmer-js-BKsURin4.js`),__vite__mapDeps([51,3,1,2,4,14])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>L(()=>import(`./glimmer-ts-Chhe0oIX.js`),__vite__mapDeps([52,3,1,2,4,14])))},{id:`glsl`,name:`GLSL`,import:(()=>L(()=>import(`./glsl-Dy3tp3E1.js`).then(e=>e.n),__vite__mapDeps([26,1,20])))},{id:`gn`,name:`GN`,import:(()=>L(()=>import(`./gn-JO9YMz2t.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>L(()=>import(`./gnuplot-DjZHg3_f.js`),[]))},{id:`go`,name:`Go`,import:(()=>L(()=>import(`./go-D2GlBE5F.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>L(()=>import(`./graphql-CseHr1LK.js`).then(e=>e.n),__vite__mapDeps([35,1,4,36,13,14])))},{id:`groovy`,name:`Groovy`,import:(()=>L(()=>import(`./groovy-1vEGAvvX.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>L(()=>import(`./hack-boTiAbss.js`),__vite__mapDeps([53,2,1,3,4,17])))},{id:`haml`,name:`Ruby Haml`,import:(()=>L(()=>import(`./haml-CjrsmcwN.js`).then(e=>e.n),__vite__mapDeps([37,1,3,4])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>L(()=>import(`./handlebars-B_oDWsbs.js`),__vite__mapDeps([54,3,1,2,4,39])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>L(()=>import(`./haskell-BFZjB68l.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>L(()=>import(`./haxe-DDQKctJt.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>L(()=>import(`./hcl-DUAADz_v.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>L(()=>import(`./hjson-DyGphq4K.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>L(()=>import(`./hlsl-BVEJlW36.js`),[]))},{id:`html`,name:`HTML`,import:(()=>L(()=>import(`./html-C4e0uDKx.js`).then(e=>e.n),__vite__mapDeps([2,1,3,4])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>L(()=>import(`./html-derivative-DtQj__OI.js`),__vite__mapDeps([16,2,1,3,4])))},{id:`http`,name:`HTTP`,import:(()=>L(()=>import(`./http-W8z61A1Z.js`),__vite__mapDeps([55,35,1,4,36,13,14,8,29,9,10])))},{id:`hurl`,name:`Hurl`,import:(()=>L(()=>import(`./hurl-CBaPhsIJ.js`),__vite__mapDeps([56,57,35,1,4,36,13,14,9,10])))},{id:`hxml`,name:`HXML`,import:(()=>L(()=>import(`./hxml-BNblpm3P.js`),__vite__mapDeps([58,59])))},{id:`hy`,name:`Hy`,import:(()=>L(()=>import(`./hy-oWi_RwAK.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>L(()=>import(`./imba-iwzgkuTD.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>L(()=>import(`./ini-BNaakZQr.js`),[]))},{id:`java`,name:`Java`,import:(()=>L(()=>import(`./java-C9TLG_lA.js`).then(e=>e.n),__vite__mapDeps([10,1])))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>L(()=>import(`./javascript-B6-baDIX.js`).then(e=>e.n),__vite__mapDeps([4,1])))},{id:`jinja`,name:`Jinja`,import:(()=>L(()=>import(`./jinja-D6Ec9tX7.js`),__vite__mapDeps([60,2,1,3,4])))},{id:`jison`,name:`Jison`,import:(()=>L(()=>import(`./jison-abiW-9pn.js`),__vite__mapDeps([61,4,1])))},{id:`json`,name:`JSON`,import:(()=>L(()=>import(`./json-DtR-rTq5.js`).then(e=>e.n),__vite__mapDeps([8,1])))},{id:`json5`,name:`JSON5`,import:(()=>L(()=>import(`./json5-Y2CuQCK-.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>L(()=>import(`./jsonc-B30nqSUF.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>L(()=>import(`./jsonl-B7UEa0TN.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>L(()=>import(`./jsonnet-ZiCJB3SD.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>L(()=>import(`./jssm-BOfC2rh1.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>L(()=>import(`./jsx-TQyKdSmQ.js`).then(e=>e.n),__vite__mapDeps([36,1])))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>L(()=>import(`./julia-BKK2QHze.js`),__vite__mapDeps([62,25,1,26,20,27,17,4,22,63])))},{id:`just`,name:`Just`,import:(()=>L(()=>import(`./just-BY5hWNgR.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-Bg7xxjIF.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>L(()=>import(`./kotlin-CNprttl8.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>L(()=>import(`./kusto-D3uRUZFA.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>L(()=>import(`./latex-CuW1q2vJ.js`),__vite__mapDeps([66,67,63,1])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>L(()=>import(`./lean-BbKKg8_U.js`),[]))},{id:`less`,name:`Less`,import:(()=>L(()=>import(`./less-6BW8xQaX.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>L(()=>import(`./liquid-BsqUQnO5.js`),__vite__mapDeps([68,3,1,2,4,8])))},{id:`llvm`,name:`LLVM IR`,import:(()=>L(()=>import(`./llvm-OMExIg60.js`),[]))},{id:`log`,name:`Log file`,import:(()=>L(()=>import(`./log-BBfW4u9k.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>L(()=>import(`./logo-D8GGcRiY.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>L(()=>import(`./lua-D4PO1r07.js`).then(e=>e.n),__vite__mapDeps([38,1,20])))},{id:`luau`,name:`Luau`,import:(()=>L(()=>import(`./luau-CZIl0XK4.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>L(()=>import(`./make-mlZyflos.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>L(()=>import(`./markdown-CppElJDR.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>L(()=>import(`./marko-1bNyFeKY.js`),__vite__mapDeps([69,3,1,70,6,14])))},{id:`matlab`,name:`MATLAB`,import:(()=>L(()=>import(`./matlab-CwLrY_Ss.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>L(()=>import(`./mdc-BoU9IUKL.js`),__vite__mapDeps([71,16,2,1,3,4,41,39])))},{id:`mdx`,name:`MDX`,import:(()=>L(()=>import(`./mdx-OZt5aooY.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>L(()=>import(`./mermaid-mzvznqsh.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>L(()=>import(`./mipsasm-DONjtc4L.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>L(()=>import(`./mojo-CHKQ5hW9.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>L(()=>import(`./moonbit-CWIHpJf0.js`),[]))},{id:`move`,name:`Move`,import:(()=>L(()=>import(`./move-Dy7CmIgW.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>L(()=>import(`./narrat-NioX5-_j.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>L(()=>import(`./nextflow-dLJhzX3Z.js`),__vite__mapDeps([72,73])))},{id:`nextflow-groovy`,name:`nextflow-groovy`,import:(()=>L(()=>import(`./nextflow-groovy-jKlTICX_.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>L(()=>import(`./nginx-BXWzwlUI.js`),__vite__mapDeps([74,38,1,20])))},{id:`nim`,name:`Nim`,import:(()=>L(()=>import(`./nim-BgalU8R5.js`),__vite__mapDeps([75,20,1,3,26,2,4,41,9,10])))},{id:`nix`,name:`Nix`,import:(()=>L(()=>import(`./nix-BZVKmCQS.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>L(()=>import(`./nushell-C8hgS98n.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>L(()=>import(`./objective-c-BUiYTSad.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>L(()=>import(`./objective-cpp-BwY1U2XT.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>L(()=>import(`./ocaml-D51PiCY5.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>L(()=>import(`./odin-CoC4d8pi.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>L(()=>import(`./openscad-DCmPLSXt.js`),[]))},{id:`pascal`,name:`Pascal`,import:(()=>L(()=>import(`./pascal-BMY45JJO.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>L(()=>import(`./perl-OrqzwF6j.js`),__vite__mapDeps([65,3,1,2,4,17,9,10])))},{id:`php`,name:`PHP`,import:(()=>L(()=>import(`./php-DsC0K8EH.js`),__vite__mapDeps([76,3,1,2,4,8,17,9,10])))},{id:`pkl`,name:`Pkl`,import:(()=>L(()=>import(`./pkl-BlBky-cR.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>L(()=>import(`./plsql-B6Eq-lAd.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>L(()=>import(`./po-ByS5p8Sz.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>L(()=>import(`./polar-COmSbiHW.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>L(()=>import(`./postcss-D_ArMqNC.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>L(()=>import(`./powerquery-BzHwsYRb.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>L(()=>import(`./powershell-C6bIwB0M.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>L(()=>import(`./prisma-D5S9vj6g.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>L(()=>import(`./prolog-CHVuxG8M.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>L(()=>import(`./proto-BhkmoXVj.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>L(()=>import(`./pug-D-Q9Kgtz.js`),__vite__mapDeps([77,3,1,2,4])))},{id:`puppet`,name:`Puppet`,import:(()=>L(()=>import(`./puppet-Brdz8eoo.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>L(()=>import(`./purescript-DX3wKXeK.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>L(()=>import(`./python-CUtprRpG.js`),[]))},{id:`qml`,name:`QML`,import:(()=>L(()=>import(`./qml-Dyn06a9u.js`),__vite__mapDeps([78,4,1])))},{id:`qmldir`,name:`QML Directory`,import:(()=>L(()=>import(`./qmldir-ftS4SxdQ.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>L(()=>import(`./qss-Mo-j41VR.js`),[]))},{id:`r`,name:`R`,import:(()=>L(()=>import(`./r-C3AjV-3E.js`).then(e=>e.n),__vite__mapDeps([63,1])))},{id:`racket`,name:`Racket`,import:(()=>L(()=>import(`./racket-CrTD1_3_.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>L(()=>import(`./raku-Bhig3MAC.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>L(()=>import(`./razor-DHd1twLi.js`),__vite__mapDeps([79,80,2,1,3,4])))},{id:`reg`,name:`Windows Registry Script`,import:(()=>L(()=>import(`./reg-C0s7-4s0.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>L(()=>import(`./regexp-Dl_oPCDN.js`).then(e=>e.n),__vite__mapDeps([27,1])))},{id:`rel`,name:`Rel`,import:(()=>L(()=>import(`./rel-D1_XRRAX.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>L(()=>import(`./riscv-QV-e36TY.js`),[]))},{id:`ron`,name:`RON`,import:(()=>L(()=>import(`./ron-B-EB7ZBI.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>L(()=>import(`./rosmsg-CcBwQf5j.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>L(()=>import(`./rst-BIq6VDAT.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-BJwcPMyx.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-ppknoGus.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>L(()=>import(`./sas-TXWq-8Bu.js`),__vite__mapDeps([83,17,1])))},{id:`sass`,name:`Sass`,import:(()=>L(()=>import(`./sass-Baw41att.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>L(()=>import(`./scala-DtlnBhKt.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>L(()=>import(`./scheme-DYQMayIi.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>L(()=>import(`./scss-Cz2NsCSh.js`).then(e=>e.n),__vite__mapDeps([6,1,3])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>L(()=>import(`./sdbl-D0gXyfL6.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>L(()=>import(`./shaderlab-CSb6CBXg.js`),__vite__mapDeps([84,85])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>L(()=>import(`./shellscript-CJedfzfs.js`).then(e=>e.n),__vite__mapDeps([29,1])))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>L(()=>import(`./shellsession-Tkblvq8e.js`),__vite__mapDeps([86,29,1])))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>L(()=>import(`./smalltalk-DRM3jr39.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>L(()=>import(`./solidity-CYAp_sJG.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>L(()=>import(`./soy-g_UxtUjg.js`),__vite__mapDeps([87,2,1,3,4])))},{id:`sparql`,name:`SPARQL`,import:(()=>L(()=>import(`./sparql-J1VOnnwM.js`),__vite__mapDeps([88,89])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>L(()=>import(`./splunk-LsCTpuOP.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>L(()=>import(`./sql-DQAX0EN7.js`).then(e=>e.n),__vite__mapDeps([17,1])))},{id:`ssh-config`,name:`SSH Config`,import:(()=>L(()=>import(`./ssh-config-QxQe7y21.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>L(()=>import(`./stata-BXjroK6c.js`),__vite__mapDeps([90,17,1])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>L(()=>import(`./stylus-DZvi0832.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>L(()=>import(`./surrealql-DyDhPjEW.js`),__vite__mapDeps([91,4,1])))},{id:`svelte`,name:`Svelte`,import:(()=>L(()=>import(`./svelte-CEjCx-8g.js`),__vite__mapDeps([92,3,1,4,12,14])))},{id:`swift`,name:`Swift`,import:(()=>L(()=>import(`./swift-BBBWvOdl.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>L(()=>import(`./system-verilog-Ddagu-BW.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>L(()=>import(`./systemd-BxlmhgV_.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>L(()=>import(`./talonscript-p-GlmLEL.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>L(()=>import(`./tasl-BNm9EzXM.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>L(()=>import(`./tcl-BQwTCs7_.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>L(()=>import(`./templ-BViMCY-s.js`),__vite__mapDeps([93,3,1,94,4])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>L(()=>import(`./terraform-DQhgYyF5.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>L(()=>import(`./tex-BOG7uw6j.js`),__vite__mapDeps([67,63,1])))},{id:`toml`,name:`TOML`,import:(()=>L(()=>import(`./toml-BncMjmx0.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>L(()=>import(`./ts-tags-1PkZB39L.js`),__vite__mapDeps([95,3,1,26,20,2,4,17,14,9,10])))},{id:`tsv`,name:`TSV`,import:(()=>L(()=>import(`./tsv--yOlbuAc.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>L(()=>import(`./tsx-B1khekg1.js`).then(e=>e.n),__vite__mapDeps([13,1])))},{id:`turtle`,name:`Turtle`,import:(()=>L(()=>import(`./turtle-ZCrKgE8E.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>L(()=>import(`./twig-C30VOGkj.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-BVriUqhl.js`).then(e=>e.n),__vite__mapDeps([14,1])))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>L(()=>import(`./typespec-9rD7KG94.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>L(()=>import(`./typst-DJ10KoY6.js`),[]))},{id:`v`,name:`V`,import:(()=>L(()=>import(`./v-CutuAYrg.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>L(()=>import(`./vala-DJpFErrU.js`),[]))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>L(()=>import(`./vb-DQuyY02M.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>L(()=>import(`./verilog-BuvxZrtu.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>L(()=>import(`./vhdl-pScFq2IF.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>L(()=>import(`./viml-LZIbwXqf.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>L(()=>import(`./vue-Dy6YaQjk.js`),__vite__mapDeps([97,3,1,16,2,4,8,14])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>L(()=>import(`./vue-html-yfcmxRL7.js`),__vite__mapDeps([98,4,1])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>L(()=>import(`./vue-vine-BnfxXDO0.js`),__vite__mapDeps([99,3,1,4,70,12,6,100])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>L(()=>import(`./vyper-CAC2wkEx.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>L(()=>import(`./wasm-JuQDwMf4.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>L(()=>import(`./wenyan-BtC3dCkd.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>L(()=>import(`./wgsl-BfhDoYq0.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>L(()=>import(`./wikitext-BN0a9cMl.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>L(()=>import(`./wit-B5eB3VJ4.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>L(()=>import(`./wolfram-hGtNh8mf.js`),[]))},{id:`xml`,name:`XML`,import:(()=>L(()=>import(`./xml-BJ3Y9ehh.js`).then(e=>e.n),__vite__mapDeps([9,1,10])))},{id:`xsl`,name:`XSL`,import:(()=>L(()=>import(`./xsl-CFOlFF3h.js`),__vite__mapDeps([101,9,1,10])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>L(()=>import(`./yaml-BJda_PXC.js`).then(e=>e.n),__vite__mapDeps([39,1])))},{id:`zenscript`,name:`ZenScript`,import:(()=>L(()=>import(`./zenscript-Dl5s7Kfy.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>L(()=>import(`./zig-Dashm4F0.js`),[]))}],FR=Object.fromEntries(PR.map(e=>[e.id,e.import])),IR=Object.fromEntries(PR.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),LR={...FR,...IR},RR=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>L(()=>import(`./andromeeda-CvHLbWZU.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>L(()=>import(`./aurora-x-mlfFqJAh.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>L(()=>import(`./ayu-dark-BTeHke7b.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>L(()=>import(`./ayu-light-CoZXvb4i.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>L(()=>import(`./ayu-mirage-DlGy8b5I.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>L(()=>import(`./catppuccin-frappe-C4xh_RpD.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>L(()=>import(`./catppuccin-latte-ZIzlVBYe.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>L(()=>import(`./catppuccin-macchiato-DOZXEuSH.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>L(()=>import(`./catppuccin-mocha-rnm_6i_u.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>L(()=>import(`./dark-plus-Ci223Kw7.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>L(()=>import(`./dracula-C5lq8I7X.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>L(()=>import(`./dracula-soft-QH3ntlSU.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>L(()=>import(`./everforest-dark-KTiMpaXm.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>L(()=>import(`./everforest-light-yJZ9a76P.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>L(()=>import(`./github-dark-C2YvJIRl.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>L(()=>import(`./github-dark-default-DPZ1YWUU.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>L(()=>import(`./github-dark-dimmed-BlMwpJVf.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>L(()=>import(`./github-dark-high-contrast-KRBg57oP.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>L(()=>import(`./github-light-BLj5WXD_.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>L(()=>import(`./github-light-default-BLgrdOV4.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>L(()=>import(`./github-light-high-contrast-Bmexxccr.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>L(()=>import(`./gruvbox-dark-hard-pdBjrsK5.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>L(()=>import(`./gruvbox-dark-medium-Csp4lPEF.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>L(()=>import(`./gruvbox-dark-soft-BpNWvgik.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>L(()=>import(`./gruvbox-light-hard-CC8CVJp5.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>L(()=>import(`./gruvbox-light-medium-D2yGUmJd.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>L(()=>import(`./gruvbox-light-soft-C_9RTTTT.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>L(()=>import(`./horizon-BZmYXqIF.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`dark`,import:(()=>L(()=>import(`./horizon-bright-D0uooZm5.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>L(()=>import(`./houston-BUtcOxf9.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>L(()=>import(`./kanagawa-dragon-BVoApXR6.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>L(()=>import(`./kanagawa-lotus-C-uV5im6.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>L(()=>import(`./kanagawa-wave-BizPisns.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>L(()=>import(`./laserwave-BypMvj8s.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>L(()=>import(`./light-plus-zSYF2DYe.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>L(()=>import(`./material-theme-OBz0sIMu.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>L(()=>import(`./material-theme-darker-BNfFk916.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>L(()=>import(`./material-theme-lighter-D0OJsx_T.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>L(()=>import(`./material-theme-ocean-CKWC7YJB.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>L(()=>import(`./material-theme-palenight-DOTFIR3W.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>L(()=>import(`./min-dark-BAbZNtjj.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>L(()=>import(`./min-light-BzEisXBR.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>L(()=>import(`./monokai-B8rLeJY_.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>L(()=>import(`./night-owl-C_xVeV9U.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>L(()=>import(`./night-owl-light-C_DkqGGe.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>L(()=>import(`./nord-CrTSutxR.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>L(()=>import(`./one-dark-pro-C9bEA2Dz.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>L(()=>import(`./one-light-DZ_5GYrV.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>L(()=>import(`./plastic-C50vuo0c.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>L(()=>import(`./poimandres-Cs9j_baE.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>L(()=>import(`./red-CWX-2pbk.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>L(()=>import(`./rose-pine-Dxqc8n_1.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>L(()=>import(`./rose-pine-dawn-pz_3O4ep.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>L(()=>import(`./rose-pine-moon-B27idgkd.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>L(()=>import(`./slack-dark-D27cdsBY.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>L(()=>import(`./slack-ochin-BaRZ7cFo.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>L(()=>import(`./snazzy-light-BayTLer3.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>L(()=>import(`./solarized-dark-Y31Htb59.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>L(()=>import(`./solarized-light-B-u_T8hk.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>L(()=>import(`./synthwave-84-Dq9WAwjJ.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>L(()=>import(`./tokyo-night-DxL5lL62.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>L(()=>import(`./vesper-bM1AKkiO.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>L(()=>import(`./vitesse-black-BhKXUSxn.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>L(()=>import(`./vitesse-dark-BzqhRcAC.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>L(()=>import(`./vitesse-light-C6rj90Ld.js`),[]))}].map(e=>[e.id,e.import])),zR=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function BR(){return 2147483648}function VR(){return typeof performance<`u`?performance.now():Date.now()}var HR=(e,t)=>e+(t-e%t)%t;async function UR(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=BR();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,HR(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:VR,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 WR=Object.defineProperty,GR=(e,t,n)=>t in e?WR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,KR=(e,t,n)=>GR(e,typeof t==`symbol`?t:t+``,n),qR=null;function JR(e){throw new zR(e.UTF8ToString(e.getLastOnigError()))}var YR=class e{constructor(t){KR(this,`utf16Length`),KR(this,`utf8Length`),KR(this,`utf16Value`),KR(this,`utf8Value`),KR(this,`utf16OffsetToUtf8`),KR(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}},XR=class e{constructor(t){if(KR(this,`id`,++e.LAST_ID),KR(this,`_onigBinding`),KR(this,`content`),KR(this,`utf16Length`),KR(this,`utf8Length`),KR(this,`utf16OffsetToUtf8`),KR(this,`utf8OffsetToUtf16`),KR(this,`ptr`),!qR)throw new zR(`Must invoke loadWasm first.`);this._onigBinding=qR,this.content=t;let n=new YR(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=qR.omalloc(1e4),e._sharedPtrInUse=!0,qR.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(qR)}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)}};KR(XR,`LAST_ID`,0),KR(XR,`_sharedPtr`,0),KR(XR,`_sharedPtrInUse`,!1);var ZR=XR,QR=class{constructor(e){if(KR(this,`_onigBinding`),KR(this,`_ptr`),!qR)throw new zR(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new YR(e[r]);t[r]=i.createString(qR),n[r]=i.utf8Length}let r=qR.omalloc(4*e.length);qR.HEAPU32.set(t,r/4);let i=qR.omalloc(4*e.length);qR.HEAPU32.set(n,i/4);let a=qR.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)qR.ofree(t[n]);qR.ofree(i),qR.ofree(r),a===0&&JR(qR),this._onigBinding=qR,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 ZR(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 $R(e){return typeof e.instantiator==`function`}function ez(e){return typeof e.default==`function`}function tz(e){return e.data!==void 0}function nz(e){return typeof Response<`u`&&e instanceof Response}function rz(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 iz;function az(e){if(iz)return iz;async function t(){qR=await UR(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),$R(n)?n=await n.instantiator(t):ez(n)?n=await n.default(t):(tz(n)&&(n=n.data),nz(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await sz(n)(t):await cz(n)(t):rz(n)||n instanceof WebAssembly.Module?n=await oz(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await oz(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return iz=t(),iz}function oz(e){return t=>WebAssembly.instantiate(e,t)}function sz(e){return t=>WebAssembly.instantiateStreaming(e,t)}function cz(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function lz(e){return e&&await az(e),{createScanner(e){return new QR(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new ZR(e)}}}var uz=jR({langs:LR,themes:RR,engine:()=>lz(L(()=>import(`./wasm-C9fkFrNS.js`),[]))}),{codeToHtml:dz,codeToHast:fz,codeToTokens:pz,codeToTokensBase:mz,codeToTokensWithThemes:hz,getSingletonHighlighter:gz,getLastGrammarState:_z}=NR(uz,{guessEmbeddedLanguages:_L});function vz(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function yz(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var bz=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),xz=String.raw;function Sz(e,t){if(e==null)throw Error(t??`Value expected`);return e}var Cz=xz`\[\^?`,wz=`c.? | C(?:-.?)?|${xz`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${xz`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${xz`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${xz`o\{[^\}]*\}?`}|${xz`\d{1,3}`}`,Tz=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Ez=new RegExp(xz`
|
|
61
|
+
\\ (?:
|
|
62
|
+
${wz}
|
|
63
|
+
| [gk]<[^>]*>?
|
|
64
|
+
| [gk]'[^']*'?
|
|
65
|
+
| .
|
|
66
|
+
)
|
|
67
|
+
| \( (?:
|
|
68
|
+
\? (?:
|
|
69
|
+
[:=!>({]
|
|
70
|
+
| <[=!]
|
|
71
|
+
| <[^>]*>
|
|
72
|
+
| '[^']*'
|
|
73
|
+
| ~\|?
|
|
74
|
+
| #(?:[^)\\]|\\.?)*
|
|
75
|
+
| [^:)]*[:)]
|
|
76
|
+
)?
|
|
77
|
+
| \*[^\)]*\)?
|
|
78
|
+
)?
|
|
79
|
+
| (?:${Tz.source})+
|
|
80
|
+
| ${Cz}
|
|
81
|
+
| .
|
|
82
|
+
`.replace(/\s+/g,``),`gsu`),Dz=new RegExp(xz`
|
|
83
|
+
\\ (?:
|
|
84
|
+
${wz}
|
|
85
|
+
| .
|
|
86
|
+
)
|
|
87
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
88
|
+
| ${Cz}
|
|
89
|
+
| &&
|
|
90
|
+
| .
|
|
91
|
+
`.replace(/\s+/g,``),`gsu`);function Oz(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=iB(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(Ez.lastIndex=0;s=Ez.exec(e);){let t=kz(a,e,s[0],Ez.lastIndex);t.tokens?o.push(...t.tokens):t.token&&o.push(t.token),t.lastIndex!==void 0&&(Ez.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`?oB(e,u):e).flat(),flags:r}}function kz(e,t,n,r){let[i,a]=n;if(n===`[`||n===`[^`){let e=Az(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if(i===`\\`){if(`AbBGyYzZ`.includes(a))return{token:Pz(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:Jz(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:Fz(n)}}if(a===`K`)return{token:Hz(`keep`,n)};if(a===`N`||a===`R`)return{token:Vz(`newline`,n,{negate:a===`N`})};if(a===`O`)return{token:Vz(`any`,n)};if(a===`X`)return{token:Vz(`text_segment`,n)};let e=Mz(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if(i===`(`){if(a===`*`)return{token:$z(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:Qz(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n===`(`&&!e.captureGroup||n===`(?:`)return{token:Gz(`group`,n)};if(n===`(?>`)return{token:Gz(`atomic`,n)};if(n===`(?=`||n===`(?!`||n===`(?<=`||n===`(?<!`)return{token:Gz(n[2]===`<`?`lookbehind`:`lookahead`,n,{negate:n.endsWith(`!`)})};if(n===`(`&&e.captureGroup||n.startsWith(`(?<`)&&n.endsWith(`>`)||n.startsWith(`(?'`)&&n.endsWith(`'`))return{token:Gz(`capturing`,n,{...n!==`(`&&{name:n.slice(3,-1)}})};if(n.startsWith(`(?~`)){if(n===`(?~|`)throw Error(`Unsupported absence function kind "${n}"`);return{token:Gz(`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:Wz(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:Vz(`dot`,n)}:n===`^`||n===`$`?{token:Pz(e.singleline?{"^":xz`\A`,$:xz`\Z`}[n]:n,n)}:n===`|`?{token:Nz(n)}:Tz.test(n)?{tokens:sB(n)}:{token:Iz(vz(n),n)}}function Az(e,t,n){let r=[Bz(t[1]===`^`,t)],i=1,a;for(Dz.lastIndex=n;a=Dz.exec(e);){let e=a[0];if(e[0]===`[`&&e[1]!==`:`)i++,r.push(Bz(e[1]===`^`,e));else if(e===`]`){if(r.at(-1).type===`CharacterClassOpen`)r.push(Iz(93,e));else if(i--,r.push(Lz(e)),!i)break}else{let t=jz(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:Dz.lastIndex||e.length}}function jz(e){if(e[0]===`\\`)return Mz(e,{inCharClass:!0});if(e[0]===`[`){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!bz.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return Vz(`posix`,e,{value:t.groups.name,negate:!!t.groups.negate})}return e===`-`?Rz(e):e===`&&`?zz(e):Iz(vz(e),e)}function Mz(e,{inCharClass:t}){let n=e[1];if(n===`c`||n===`C`)return Zz(e);if(`dDhHsSwW`.includes(n))return tB(e);if(e.startsWith(xz`\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 nB(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 Iz(vz(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n===`u`||n===`x`)return Iz(aB(e),e);if(Xz.has(n))return Iz(Xz.get(n),e);if(/\d/.test(n))return Uz(t,e);if(e===`\\`)throw Error(xz`Incomplete escape "\"`);if(n===`M`)throw Error(`Unsupported meta "${e}"`);if([...e].length===2)return Iz(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function Nz(e){return{type:`Alternator`,raw:e}}function Pz(e,t){return{type:`Assertion`,kind:e,raw:t}}function Fz(e){return{type:`Backreference`,raw:e}}function Iz(e,t){return{type:`Character`,value:e,raw:t}}function Lz(e){return{type:`CharacterClassClose`,raw:e}}function Rz(e){return{type:`CharacterClassHyphen`,raw:e}}function zz(e){return{type:`CharacterClassIntersector`,raw:e}}function Bz(e,t){return{type:`CharacterClassOpen`,negate:e,raw:t}}function Vz(e,t,n={}){return{type:`CharacterSet`,kind:e,...n,raw:t}}function Hz(e,t,n={}){return e===`keep`?{type:`Directive`,kind:e,raw:t}:{type:`Directive`,kind:e,flags:Sz(n.flags),raw:t}}function Uz(e,t){return{type:`EscapedNumber`,inCharClass:e,raw:t}}function Wz(e){return{type:`GroupClose`,raw:e}}function Gz(e,t,n={}){return{type:`GroupOpen`,kind:e,...n,raw:t}}function Kz(e,t,n,r){return{type:`NamedCallout`,kind:e,tag:t,arguments:n,raw:r}}function qz(e,t,n,r){return{type:`Quantifier`,kind:e,min:t,max:n,raw:r}}function Jz(e){return{type:`Subroutine`,raw:e}}var Yz=new Set([`COUNT`,`CMP`,`ERROR`,`FAIL`,`MAX`,`MISMATCH`,`SKIP`,`TOTAL_COUNT`]),Xz=new Map([[`a`,7],[`b`,8],[`e`,27],[`f`,12],[`n`,10],[`r`,13],[`t`,9],[`v`,11]]);function Zz(e){let t=e[1]===`c`?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return Iz(vz(t.toUpperCase())-64,e)}function Qz(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=rB(n),o=rB(r),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(`)`))return t.replaceCurrentModX(i),Hz(`flags`,e,{flags:s});if(e.endsWith(`:`))return t.pushModX(i),t.numOpenGroups++,Gz(`group`,e,{...(a||o)&&{flags:s}});throw Error(`Unexpected flag modifier "${e}"`)}function $z(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=Yz.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 Kz(l,r??null,i?.split(`,`)??null,e)}function eB(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 qz(t,n,r,e)}function tB(e){let t=e[1].toLowerCase();return Vz({d:`digit`,h:`hex`,s:`space`,w:`word`}[t],e,{negate:e[1]!==t})}function nB(e){let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Vz(`property`,e,{value:r,negate:t===`P`&&!n||t===`p`&&!!n})}function rB(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 iB(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 aB(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 oB(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[Fz(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(xz`Octal encoded byte above 177 unsupported "${n}"`)}else r=vz(t);a.push(Iz(r,(e===0?`\\`:``)+t))}return a}function sB(e){let t=[],n=new RegExp(Tz,`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(eB(e.slice(0,-1)));continue}}}t.push(eB(e))}return t}function cB(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 lB(e){return uB.has(e.type)}var uB=new Set([`AbsenceFunction`,`Backreference`,`CapturingGroup`,`Character`,`CharacterClass`,`CharacterSet`,`Group`,`Quantifier`,`Subroutine`]);function dB(e,t={}){let n={flags:``,normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=Oz(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 xB();case`Assertion`:return fB(n);case`Backreference`:return pB(n,a);case`Character`:return TB(n.value,{useLastValid:!!t.isCheckingRangeEnd});case`CharacterClassHyphen`:return mB(n,a,t);case`CharacterClassOpen`:return hB(n,a,t);case`CharacterSet`:return gB(n,a);case`Directive`:return kB(n.kind,{flags:n.flags});case`GroupOpen`:return _B(n,a,t);case`NamedCallout`:return NB(n.kind,n.tag,n.arguments);case`Quantifier`:return vB(n,a);case`Subroutine`:return yB(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=IB(AB(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(xz`Subroutine uses a duplicate group name "\g<${e}>"`);u.get(e)[0].isSubroutined=!0}else throw Error(xz`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function fB({kind:e}){return SB(Sz({"^":`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===xz`\B`||e===xz`\Y`})}function pB({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,CB(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 CB(r)}return i(+r)}function mB(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(),DB(o,e);throw Error(`Invalid character class range`)}return TB(vz(`-`))}function hB({negate:e},t,n){let{tokens:r,walk:i}=t,a=r[t.nextIndex],o=[EB()],s=qB(a);for(;s.type!==`CharacterClassClose`;){if(s.type===`CharacterClassIntersector`)o.push(EB()),t.nextIndex++;else{let e=o.at(-1);e.body.push(i(e,n))}s=qB(r[t.nextIndex],a)}let c=EB({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 gB({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=r;if(e===`property`){let r=KB(n);if(bz.has(r)&&!o?.has(r))e=`posix`,n=r;else return RB(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o})}return e===`posix`?PB(n,{negate:t}):OB(e,{negate:t})}function _B(e,t,n){let{tokens:r,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:o,walk:s}=t,c=zB(e),l=c.type===`AbsenceFunction`,u=UB(c),d=u&&c.negate;if(c.type===`CapturingGroup`&&(i.push(c),c.name&&yz(a,c.name,[]).push(c)),l&&n.isInAbsenceFunction)throw Error(`Nested absence function not supported by Oniguruma`);let f=JB(r[t.nextIndex]);for(;f.type!==`GroupClose`;){if(f.type===`Alternator`)c.body.push(xB()),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(HB(t)||t.type===`CapturingGroup`)throw Error(e)}else if(HB(t)||UB(t)&&t.negate)throw Error(e)}}f=JB(r[t.nextIndex])}return t.nextIndex++,c}function vB({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!lB(a))throw Error(`Quantifier requires a repeatable token`);let o=FB(e,t,n,a);return i.body.pop(),o}function yB({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=LB(i);return r.push(o),o}function bB(e,t){if(e!==`repeater`)throw Error(`Unexpected absence function kind "${e}"`);return{type:`AbsenceFunction`,kind:e,body:BB(t?.body)}}function xB(e){return{type:`Alternative`,body:VB(e?.body)}}function SB(e,t){let n={type:`Assertion`,kind:e};return(e===`word_boundary`||e===`text_segment_boundary`)&&(n.negate=!!t?.negate),n}function CB(e,t){let n=!!t?.orphan;return{type:`Backreference`,ref:e,...n&&{orphan:n}}}function wB(e,t){let n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!WB(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:BB(t?.body)}}function TB(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 EB(e){let t={kind:`union`,negate:!1,...e};return{type:`CharacterClass`,kind:t.kind,negate:t.negate,body:VB(e?.body)}}function DB(e,t){if(t.value<e.value)throw Error(`Character class range out of order`);return{type:`CharacterClassRange`,min:e,max:t}}function OB(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 kB(e,t={}){if(e===`keep`)return{type:`Directive`,kind:e};if(e===`flags`)return{type:`Directive`,kind:e,flags:Sz(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}function AB(e){return{type:`Flags`,...e}}function jB(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:BB(e?.body)}}function MB(e){let t={behind:!1,negate:!1,...e};return{type:`LookaroundAssertion`,kind:t.behind?`lookbehind`:`lookahead`,negate:t.negate,body:BB(e?.body)}}function NB(e,t,n){return{type:`NamedCallout`,kind:e,tag:t,arguments:n}}function PB(e,t){let n=!!t?.negate;if(!bz.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:`CharacterSet`,kind:`posix`,value:e,negate:n}}function FB(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 IB(e,t){return{type:`Regex`,body:BB(t?.body),flags:e}}function LB(e){return{type:`Subroutine`,ref:e}}function RB(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},r=n.unicodePropertyMap?.get(KB(e));if(!r){if(n.normalizeUnknownPropertyNames)r=GB(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(xz`Invalid Unicode property "\p{${e}}"`)}return{type:`CharacterSet`,kind:`property`,value:r??e,negate:n.negate}}function zB({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case`absence_repeater`:return bB(`repeater`);case`atomic`:return jB({atomic:!0});case`capturing`:return wB(i,{name:n});case`group`:return jB({flags:e});case`lookahead`:case`lookbehind`:return MB({behind:t===`lookbehind`,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}function BB(e){if(e===void 0)e=[xB()];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 VB(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 HB(e){return e.type===`LookaroundAssertion`&&e.kind===`lookahead`}function UB(e){return e.type===`LookaroundAssertion`&&e.kind===`lookbehind`}function WB(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function GB(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 KB(e){return e.replace(/[- _]+/g,``).toLowerCase()}function qB(e,t){return Sz(e,`${t?.type===`Character`&&t.value===93?`Empty`:`Unclosed`} character class`)}function JB(e){return Sz(e,`Unclosed group`)}function YB(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(){XB(c).splice(Math.max(0,ZB(s)+l),1),l--,u=!0},removeAllNextSiblings(){return XB(c).splice(ZB(s)+1)},removeAllPrevSiblings(){let e=ZB(s)+l;return l-=e,XB(c).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;c?c[Math.max(0,ZB(s)+l)]=e:Sz(o,`Can't replace root node`)[s]=e,n&&i(e,o,s,c),u=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(XB(c).splice(Math.max(0,ZB(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,ZB(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 XB(e){if(!Array.isArray(e))throw Error(`Container expected`);return e}function ZB(e){if(typeof e!=`number`)throw Error(`Numeric key expected`);return e}var QB=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function $B(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function eV(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}var tV=Object.freeze({DEFAULT:`DEFAULT`,CHAR_CLASS:`CHAR_CLASS`});function nV(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===tV.DEFAULT==!o)){n instanceof Function?s+=n(t,{context:o?tV.CHAR_CLASS:tV.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 rV(e,t,n,r){nV(e,t,n,r)}function iV(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===tV.DEFAULT==!a))return o;e===`[`?a++:e===`]`&&a&&a--,i.lastIndex==o.index&&i.lastIndex++}return null}function aV(e,t,n){return!!iV(e,t,0,n)}function oV(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 sV=new RegExp(String.raw`(?<noncapturingStart>${QB})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,`gsu`);function cV(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(sV.lastIndex=Number.isNaN(c)?0:c+7;f=sV.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),$B(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=nV(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}`},tV.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}var lV=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,uV=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>${lV})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
106
|
+
| \\?.
|
|
107
|
+
`.replace(/\s+/g,``),`gsu`);function dV(e){if(!RegExp(`${lV}\\+`).test(e))return{pattern:e};let t=[],n=null,r=null,i=``,a=0,o;for(uV.lastIndex=0;o=uV.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=eV(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}uV.lastIndex+=t}else s[0]===`(`?t.push(c):s===`)`&&(n=t.length?t.pop():null);i=s}return{pattern:e}}var fV=String.raw,pV=fV`\(\?R=(?<rDepth>[^\)]+)\)|${fV`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`,mV=fV`\(\?<(?![=!])(?<captureName>[^>]+)>`,hV=fV`${mV}|(?<unnamed>\()(?!\?)`,gV=new RegExp(fV`${mV}|${pV}|\(\?|\\?.`,`gsu`),_V=`Cannot use multiple overlapping recursions`;function vV(e,t){let{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:`plugin`,...t},i=t?.captureTransfers??new Map;if(!new RegExp(pV,`su`).test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if(r===`plugin`&&aV(e,fV`\(\?\(DEFINE\)`,tV.DEFAULT))throw Error(`DEFINE groups cannot be used with recursion`);let a=[],o=aV(e,fV`\\[1-9]`,tV.DEFAULT),s=new Map,c=[],l=!1,u=0,d=0,f;for(gV.lastIndex=0;f=gV.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(yV(m),l)throw Error(_V);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(gV.lastIndex);if(aV(s,pV,tV.DEFAULT))throw Error(_V);let c=m-1;e=bV(t,s,c,!1,n,a,d),i=CV(i,t,c,a.length,0,d);break}else if(h){yV(g);let u=!1;for(let e of c)if(e.name===h||e.num===+h){if(u=!0,e.hasRecursedWithin)throw Error(_V);break}if(!u)throw Error(fV`Recursive \g cannot be used outside the referenced group "${r===`external`?h:fV`\g<${h}&R=${g}>`}"`);let p=s.get(h),m=oV(e,p);if(o&&aV(m,fV`${mV}|\((?!\?)`,tV.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=bV(_,v,b,!0,n,a,d);i=CV(i,_,b,a.length-y,y,d),e=`${e.slice(0,p)}${x}${e.slice(p+m.length)}`,gV.lastIndex+=x.length-t.length-_.length-v.length,c.forEach(e=>e.hasRecursedWithin=!0),l=!0}else if(p)d++,s.set(String(d),gV.lastIndex),s.set(p,gV.lastIndex),c.push({num:d,name:p});else if(t[0]===`(`){let e=t===`(`;e&&(d++,s.set(String(d),gV.lastIndex)),c.push(e?{num:d}:{})}else t===`)`&&c.pop()}return n.push(...a),{pattern:e,captureTransfers:i,hiddenCaptures:n}}function yV(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 bV(e,t,n,r,i,a,o){let s=new Set;r&&rV(e+t,mV,({groups:{captureName:e}})=>{s.add(e)},tV.DEFAULT);let c=[n,r?s:null,i,a,o];return`${e}${xV(`(?:${e}`,`forward`,...c)}(?:)${xV(`${t})`,`backward`,...c)}${t}`}function xV(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+=nV(e,fV`${hV}|\\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),SV(i,n),s?e:`(?<${t}${l}>`}return fV`\k<${c}${l}>`},tV.DEFAULT)}return c}function SV(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function CV(e,t,n,r,i,a){if(e.size&&r){let o=0;rV(t,hV,()=>o++,tV.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 wV=String.fromCodePoint,TV=String.raw,EV={flagGroups:!0,unicodeSets:!0};EV.bugFlagVLiteralHyphenIsRange=EV.unicodeSets?(()=>{try{new RegExp(TV`[\d\-a]`,`v`)}catch{return!0}return!1})():!1,EV.bugNestedClassIgnoresNegation=EV.unicodeSets&&RegExp(`[[^a]]`,`v`).test(`a`);function DV(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function OV(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function kV(e,t){return jV[e]>=jV[t]}function AV(e,t){if(e==null)throw Error(t??`Value expected`);return e}var jV={ES2025:2025,ES2024:2024,ES2018:2018},MV={auto:`auto`,ES2025:`ES2025`,ES2024:`ES2024`,ES2018:`ES2018`};function NV(e={}){if({}.toString.call(e)!==`[object Object]`)throw Error(`Unexpected options`);if(e.target!==void 0&&!MV[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=EV.flagGroups?`ES2025`:EV.unicodeSets?`ES2024`:`ES2018`),t}var PV=`[ -\r ]`,FV=new Set([wV(304),wV(305)]),IV=TV`[\p{L}\p{M}\p{N}\p{Pc}]`;function LV(e){if(FV.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=VV.get(n),a=zV.get(n),o=BV.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 RV=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=>[KB(e),e])),zV=new Map([[`s`,wV(383)],[wV(383),`s`]]),BV=new Map([[wV(223),wV(7838)],[wV(107),wV(8490)],[wV(229),wV(8491)],[wV(969),wV(8486)]]),VV=new Map([WV(453),WV(456),WV(459),WV(498),...GV(8072,8079),...GV(8088,8095),...GV(8104,8111),WV(8124),WV(8140),WV(8188)]),HV=new Map([[`alnum`,TV`[\p{Alpha}\p{Nd}]`],[`alpha`,TV`\p{Alpha}`],[`ascii`,TV`\p{ASCII}`],[`blank`,TV`[\p{Zs}\t]`],[`cntrl`,TV`\p{Cc}`],[`digit`,TV`\p{Nd}`],[`graph`,TV`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],[`lower`,TV`\p{Lower}`],[`print`,TV`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],[`punct`,TV`[\p{P}\p{S}]`],[`space`,TV`\p{space}`],[`upper`,TV`\p{Upper}`],[`word`,TV`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],[`xdigit`,TV`\p{AHex}`]]);function UV(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n}function WV(e){let t=wV(e);return[t.toLowerCase(),t]}function GV(e,t){return UV(e,t).map(e=>WV(e))}var KV=new Set([`Lower`,`Lowercase`,`Upper`,`Uppercase`,`Ll`,`Lowercase_Letter`,`Lt`,`Titlecase_Letter`,`Lu`,`Uppercase_Letter`]);function qV(e,t){let n={accuracy:`default`,asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:`ES2025`,...t};ZV(e);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:kV(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};YB(e,JV,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 YB(e,YV,a),YB(e,XV,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}var JV={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if(i===`repeater`){let e=jB();e.body[0].body.push(MB({negate:!0,body:r}),RB(`Any`));let i=jB();i.body[0].body.push(FB(`greedy`,0,1/0,e)),n(gH(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];OV(r,n,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=iH(t.get(e));if(n){let t=jB({flags:n});t.body[0].body=e.body,e.body=[gH(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(gH(MB({body:[xB({body:[SB(`string_end`)]}),xB({body:[TB(10)]})]}),t));else if(c===`line_start`)o(gH(pH(TV`(?<=\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&&uH(e))o(gH(MB({negate:!0}),t));else if(d)throw Error(TV`Uses "\G" in a way that requires a subclass`);else o(hH(SB(`string_start`),t)),s.strategy=`clip_search`}else if(!(c===`string_end`||c===`string_start`))if(c===`string_end_newline`)o(gH(pH(TV`(?=\n?\z)`),t));else if(c===`word_boundary`){if(!p&&!u){let e=`(?:(?<=${IV})(?!${IV})|(?<!${IV})(?=${IV}))`,n=`(?:(?<=${IV})(?=${IV})|(?<!${IV})(?!${IV}))`;o(gH(pH(l?n:e),t))}}else throw Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!fH(n)&&(n=rH(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!fH(r)&&(r=rH(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(gH(EB({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(hH(OB(`digit`,{negate:l}),t));return}if(o&&(c===`space`||u===`space`)){n(gH(mH(pH(PV),l),t));return}if(s&&(c===`word`||u===`word`)){n(hH(OB(`word`,{negate:l}),t));return}if(c===`any`)n(hH(RB(`Any`),t));else if(c===`digit`)n(hH(RB(`Nd`,{negate:l}),t));else if(c!==`dot`)if(c===`text_segment`){if(r===`strict`)throw Error(TV`Use of "\X" requires non-strict accuracy`);let e=`\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?`,a=TV`\p{RI}{2}|${e}(?:\u200D${e})*`;n(gH(pH(TV`(?>\r\n|${i?TV`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c===`hex`)n(hH(RB(`AHex`,{negate:l}),t));else if(c===`newline`)n(gH(pH(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-${wV(e.codePointAt(0)-1)}${wV(e.codePointAt(2)+1)}-\u{10FFFF}`),n(gH(pH(`[${e}]`),t))}else n(gH(mH(pH(HV.get(u)),l),t));else if(c===`property`)RV.has(KB(u))||(e.key=`sc`);else if(c===`space`)n(hH(RB(`space`,{negate:l}),t));else if(c===`word`)n(gH(mH(pH(IV),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=jB({flags:c});e.body[0].body=o(),i(gH(e,t),{traverse:!0})}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&cB(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(TV`Uses "\K" in a way that's unsupported`);let o=MB({behind:!0});o.body[0].body=a(),i(gH(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(gH(MB({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=jB();t.body[0].body.push(e.body),e.body=gH(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=sH(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(TV`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!fH(n)&&(n=rH(n,t),e.ref=n)}},YV={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=hH(tH(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&OV(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=OV(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=DV(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?tH(0):eH(o,r.groupOriginByCopy,null),l=c;if(!s){let e=iH(nH(o,e=>e.type===`Group`&&!!e.flags)),t=e?DV(r.globalFlags,e):r.globalFlags;QV(t,r.currentFlags)||(l=jB({flags:aH(t)}),l.body[0].body.push(c))}n(gH(l,t),{traverse:!s})}},XV={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=>$V(t,e));i.length?i.length>1?n(gH(jB({atomic:!0,body:i.reverse().map(e=>xB({body:[CB(e.number)]}))}),t)):e.ref=i[0].number:n(gH(MB({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=wB();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function ZV(e){YB(e,{"*"({node:e,parent:t}){e.parent=t}})}function QV(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function $V(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=oH(n.parent);for(let r of t){if(r===n)break;if(r===e||cH(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function eH(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]=eH(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function tH(e){let t=LB(e);return t.isRecursive=!0,t}function nH(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function rH(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 iH(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 aH({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 oH(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function sH(e){let t=e.find(e=>e.kind===`search_start`||dH(e,{negate:!1})||!lH(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=sH(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function cH(e,t){let n=oH(e)??[];for(let e of n)if(e===t||cH(e,t))return!0;return!1}function lH({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function uH(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function dH(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&cB(e.body[0],{type:`Assertion`,kind:`search_start`})}function fH(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function pH(e,t){let n=dB(e,{...t,unicodePropertyMap:RV}).body;return n.length>1||n[0].body.length>1?jB({body:n}):n[0].body[0]}function mH(e,t){return e.negate=t,e}function hH(e,t){return e.parent=t,e}function gH(e,t){return ZV(e),e.parent=t,e}function _H(e,t){let n=NV(t),r=kV(n.target,`ES2024`),i=kV(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];YB(e,vH,{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,AV(yH[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&&OV(f._captureTransfers,e.transferTo,[]).push(t)}),f}var vH={"*":{enter({node:e},t){if(jH(e)){let n=t.getCurrentModI();t.pushModI(e.flags?DV({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){jH(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){TH(wV(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),EH(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&KV.has(e.value)&&t.setHasCasedChar()}},yH={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?TV`\B`:TV`\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=wV(e),r=DH(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&TH(n)){let e=LV(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`);EV.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(NH)&&(o=[TB(45),...o.filter(e=>!NH(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||EV.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=jB(),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=xB({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`&&!(EV.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=DH(n,i),o=DH(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&OH(EH(e)).forEach(e=>{s.add(Array.isArray(e)?`${DH(e[0],i)}-${DH(e[1],i)}`:DH(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?`.`:`[^]`:TV`[^\n]`;if(e===`digit`)return t?TV`\D`:TV`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&KV.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?TV`\P`:TV`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?TV`\W`:TV`\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=DV(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${kH(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)+AH(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})`:TV`\g<${t}&R=${r}>`}},bH=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),xH=new Set([`-`,`\\`,`]`,`^`,`[`]),SH=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),CH=new Map([[9,TV`\t`],[10,TV`\n`],[11,TV`\v`],[12,TV`\f`],[13,TV`\r`],[8232,TV`\u2028`],[8233,TV`\u2029`],[65279,TV`\uFEFF`]]),wH=/^\p{Cased}$/u;function TH(e){return wH.test(e)}function EH(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=wV(e);if(!TH(t))continue;let o=LV(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function DH(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(CH.has(e))return CH.get(e);if(e<32||e>126&&e<160||e>262143||t&&MH(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?SH:xH:bH,a=wV(e);return(i.has(a)?`\\`:``)+a}function OH(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 kH(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 AH({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 jH({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function MH(e){return e>47&&e<58}function NH({type:e,value:t}){return e===`Character`&&t===45}var PH=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=IH(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&&(FH(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||=LH(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 FH(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 IH(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)OV(n,t,{}).transferTo=e;return n}function LH(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 RH(e,t){let n=zH(e,t);return n.options?new PH(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function zH(e,t){let n=NV(t),r=qV(dB(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:RV}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=_H(r,n),a=vV(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=cV(dV(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 BH=4294967295,VH=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:BH,end:BH,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 HH(e,t){return RH(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function UH(e={}){let t=Object.assign({target:`auto`,cache:new Map},e);return t.regexConstructor||=e=>HH(e,{target:t.target}),{createScanner(e){return new VH(e,t)},createString(e){return{content:e}}}}async function WH(e){if(rP())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=$N.get(e);if(t!=null)return t;try{let t=LR[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 QN.has(e)||QN.set(e,n),n});return $N.set(e,n),await n}finally{$N.delete(e)}}function GH(e){return QN.get(e)??WH(e)}var KH=new Map,qH=new Map,JH=new Map,YH=new Set;function XH(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let e;if(typeof n==`string`){if(e=KH.get(n),e==null)throw Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,KH.has(n)||KH.set(n,e);YH.has(n)||(YH.add(n),t.loadThemeSync(e))}}async function ZH(e){if(rP())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=qH.get(e);if(t!=null)return t;try{let t=JH.get(e)??RR[e];if(t==null)throw Error(`resolveTheme: No valid loader for ${e}`);let n=t().then(t=>QH(e,`default`in t?t.default:t));qH.set(e,n);let r=await n;if(r.name!==e)throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${r.name}`);return KH.set(r.name,r),r}finally{qH.delete(e)}}function QH(e,t){return KH.get(e)??(t=_R(t),KH.set(e,t),t)}function $H(e){return KH.get(e)??ZH(e)}function eU(e,t){if(JH.has(e)){console.error(`SharedHighlight.registerCustomTheme: theme name already registered`,e);return}JH.set(e,t)}var tU;async function nU({themes:e,langs:t}){tU??=uz({themes:[],langs:[`text`],engine:UH()});let n=iU(tU)?await tU:tU;tU=n;let r=[];for(let e of t){if(e===`text`||e===`ansi`)continue;let t=GH(e);`then`in t?r.push(t):nP(t,n)}let i=[];for(let t of e){let e=$H(t);`then`in e?i.push(e):XH(e,tU)}return(r.length>0||i.length>0)&&await Promise.all([Promise.all(r).then(e=>{nP(e,n)}),Promise.all(i).then(e=>{XH(e,n)})]),n}function rU(){if(tU!=null&&!(`then`in tU))return tU}function iU(e=tU){return e!=null&&`then`in e}eU(`pierre-dark`,()=>L(()=>import(`./pierre-dark-CMWr1OVv.js`),[])),eU(`pierre-light`,()=>L(()=>import(`./pierre-light-DhtJ5n85.js`),[]));function aU(e=VN){let t=[];return typeof e==`string`?t.push(e):(t.push(e.dark),t.push(e.light)),t}function oU(e){for(let t of aU(e))if(!YH.has(t))return!1;return!0}function sU(e){for(let t of e)if(!KH.has(t))return!1;return!0}function cU(e,t){return e==null||t==null||typeof e==`string`||typeof t==`string`?e===t:e.dark===t.dark&&e.light===t.light}function lU(e){return{type:`text`,value:e}}function uU({tagName:e,children:t=[],properties:n={}}){return{type:`element`,tagName:e,properties:n,children:t}}function dU({name:e,width:t=16,height:n=16,properties:r}){return uU({tagName:`svg`,properties:{width:t,height:n,viewBox:`0 0 16 16`,...r},children:[uU({tagName:`use`,properties:{href:`#${e.replace(/^#/,``)}`}})]})}function fU(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 pU(e){return uU({tagName:`div`,children:[uU({tagName:`div`,children:e.annotations?.map(e=>uU({tagName:`slot`,properties:{name:e}})),properties:{"data-annotation-content":``}})],properties:{"data-line-annotation":`${e.hunkIndex},${e.lineIndex}`}})}function mU(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 hU({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 uU({tagName:`div`,children:[gU({name:e.name,prevName:`prevName`in e?e.prevName:void 0,iconType:r?.type??`file`}),_U(r)],properties:i})}function gU({name:e,prevName:t,iconType:n}){let r=[dU({name:mU(n),properties:{"data-change-icon":n}})];return t!=null&&(r.push(uU({tagName:`div`,children:[lU(t)],properties:{"data-prev-name":``}})),r.push(dU({name:`diffs-icon-arrow-right-short`,properties:{"data-rename-icon":``}}))),r.push(uU({tagName:`div`,children:[lU(e)],properties:{"data-title":``}})),uU({tagName:`div`,children:r,properties:{"data-header-content":``}})}function _U(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(uU({tagName:`span`,children:[lU(`-${r}`)],properties:{"data-deletions-count":``}})),(n>0||r===0)&&t.push(uU({tagName:`span`,children:[lU(`+${n}`)],properties:{"data-additions-count":``}}))}return t.push(uU({tagName:`slot`,properties:{name:BN}})),uU({tagName:`div`,children:t,properties:{"data-metadata":``}})}function vU(e){return uU({tagName:`pre`,properties:yU(e)})}function yU({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 bU={"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 xU(e){if(bU[e]!=null)return bU[e];let t=e.match(/\.([^/\\]+\.[^/\\]+)$/);return t!=null&&bU[t[1]]!=null?bU[t[1]]??`text`:bU[e.match(/\.([^.]+)$/)?.[1]??``]??`text`}function SU(e,t){return{langs:[e??`text`],themes:aU(t.theme)}}function CU(e){return`annotation-${`side`in e?`${e.side}-`:``}${e.lineNumber}`}function wU(e){return e.replace(/\n$|\r\n$/,``)}function TU(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(lU(`
|
|
201
|
+
`)),uU({tagName:`div`,children:[uU({tagName:`span`,children:[uU({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 EU(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+DU(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 DU(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 OU(e=!1){let t={lineInfo:{}},n=[{line(e){return delete e.properties.class,e},pre(e){let n=fU(e),r=[];if(n!=null){let e=1;for(let i of n.children)i.type===`element`&&(r.push(TU(i,e,t)),e++);n.children=r}return e}}];return e&&n.push(AU,kU),{state:t,transformers:n,toClass:kU}}var kU=EU({classPrefix:`hl-`}),AU={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 jU(e){return`--${e===`token`?`diffs-token`:`diffs`}-`}function MU({theme:e=VN,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+=`${jU(`global`)}fg:${i.fg};`,r+=`${jU(`global`)}bg:${i.bg};`,r+=NU(i,n)}else{let n=t.getTheme(e.dark);r+=`${jU(`global`)}dark:${n.fg};`,r+=`${jU(`global`)}dark-bg:${n.bg};`,r+=NU(n,`dark`),n=t.getTheme(e.light),r+=`${jU(`global`)}light:${n.fg};`,r+=`${jU(`global`)}light-bg:${n.bg};`,r+=NU(n,`light`)}return r}function NU(e,t){t=t==null?``:`${t}-`;let n=``,r=e.colors?.[`gitDecoration.addedResourceForeground`]??e.colors?.[`terminal.ansiGreen`];r!=null&&(n+=`${jU(`global`)}${t}addition-color:${r};`);let i=e.colors?.[`gitDecoration.deletedResourceForeground`]??e.colors?.[`terminal.ansiRed`];i!=null&&(n+=`${jU(`global`)}${t}deletion-color:${i};`);let a=e.colors?.[`gitDecoration.modifiedResourceForeground`]??e.colors?.[`terminal.ansiBlue`];return a!=null&&(n+=`${jU(`global`)}${t}modified-color:${a};`),n}function PU(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 FU(e,t,{theme:n=VN,tokenizeMaxLineLength:r},i=!1){let{state:a,transformers:o}=OU(),s=i?`text`:e.lang??xU(e.name),c=(()=>{if(typeof n==`string`)return t.getTheme(n).type})(),l=MU({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:jU(`token`),tokenizeMaxLineLength:r}:{lang:s,themes:n,transformers:o,defaultColor:!1,cssVariablePrefix:jU(`token`),tokenizeMaxLineLength:r};return{code:PU(t.codeToHast(wU(e.contents),u)),themeStyles:l,baseThemeType:c}}var IU=`<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 LU(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}function RU(e){let t=document.createElement(`div`);return t.dataset.annotationSlot=``,t.slot=e,t.style.whiteSpace=`normal`,t}function zU({pre:e,columnType:t}={}){let n=document.createElement(`code`);return n.dataset.code=``,t!=null&&(n.dataset[t]=``),e?.appendChild(n),n}function BU(){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 VU(){let e=document.createElement(`style`);return e.setAttribute(HN,``),e}var HU=`@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
|
+
`,UU=`@layer base, theme, unsafe;`;function WU(e){return`${UU}
|
|
1314
|
+
@layer unsafe {
|
|
1315
|
+
${e}
|
|
1316
|
+
}`}function GU(e,t){if(t==null)return;let n=e.shadowRoot??e.attachShadow({mode:`open`});n.innerHTML===``&&(n.innerHTML=t)}function KU({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(HU)),t.adoptedStyleSheets=[e]}}customElements.define(kN,t)}var qU=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 JU(e){return uU({tagName:`div`,properties:{"data-buffer":``,style:`grid-row: span ${e};min-height:calc(${e} * 1lh)`}})}function YU(e){return uU({tagName:`div`,children:[uU({tagName:`span`,properties:{"data-column-number":``}}),uU({tagName:`span`,children:[lU(`No newline at end of file`)],properties:{"data-column-content":``}})],properties:{"data-no-newline":``,"data-line-type":e}})}function XU(e){return uU({tagName:`div`,children:[dU({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 ZU({type:e,content:t,expandIndex:n,chunked:r=!1,slotName:i,isFirstHunk:a,isLastHunk:o}){let s=[];if(e===`metadata`&&t!=null&&s.push(uU({tagName:`div`,children:[lU(t)],properties:{"data-separator-wrapper":``}})),e===`line-info`&&t!=null){let e=[];n!=null&&(r?(a||e.push(XU(`up`)),o||e.push(XU(`down`))):e.push(XU(!a&&!o?`both`:a?`down`:`up`))),e.push(uU({tagName:`div`,children:[uU({tagName:`span`,children:[lU(t)],properties:{"data-unmodified-lines":``}})],properties:{"data-separator-content":``}})),s.push(uU({tagName:`div`,children:e,properties:{"data-separator-wrapper":``,"data-separator-multi-button":e.length>2?``:void 0}}))}return e===`custom`&&i!=null&&s.push(uU({tagName:`slot`,properties:{name:i}})),uU({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 QU(e,t){return`hunk-separator-${e}-${t}`}function $U(e){let t=e[e.length-1];return t==null?0:Math.max(t.additionStart+t.additionCount,t.deletionStart+t.deletionCount)}var eW=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}},tW=new class extends eW{};function nW(e,t,n){return tW.diff(e,t,n)}function rW(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 iW(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 aW(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 oW(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 sW(e,t){return aW(e,t,``)}function cW(e,t){return oW(e,t,``)}function lW(e,t){return t.slice(0,uW(e,t))}function uW(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 dW(e){let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function fW(e){let t=e.match(/^\s*/);return t?t[0]:``}var pW=`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}`,mW=RegExp(`[${pW}]+|\\s+|[^${pW}]`,`ug`);new class extends eW{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(mW)||[];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)&&hW(n,i,r,e),n=e,r=null,i=null)}),(r||i)&&hW(n,i,r,null),e}};function hW(e,t,n,r){if(t&&n){let i=fW(t.value),a=dW(t.value),o=fW(n.value),s=dW(n.value);if(e){let r=rW(i,o);e.value=oW(e.value,o,r),t.value=sW(t.value,r),n.value=sW(n.value,r)}if(r){let e=iW(a,s);r.value=aW(r.value,s,e),t.value=cW(t.value,e),n.value=cW(n.value,e)}}else if(n){if(e){let e=fW(n.value);n.value=n.value.substring(e.length)}if(r){let e=fW(r.value);r.value=r.value.substring(e.length)}}else if(e&&r){let n=fW(r.value),i=fW(t.value),a=dW(t.value),o=rW(n,i);t.value=sW(t.value,o);let s=iW(sW(n,o),a);t.value=cW(t.value,s),r.value=aW(r.value,n,s),e.value=oW(e.value,n,n.slice(0,n.length-s.length))}else if(r){let e=fW(r.value),n=lW(dW(t.value),e);t.value=cW(t.value,n)}else if(e){let n=lW(dW(e.value),fW(t.value));t.value=sW(t.value,n)}}var gW=new class extends eW{tokenize(e){let t=RegExp(`(\\r?\\n)|[${pW}]+|[^\\S\\n\\r]+|[^${pW}]`,`ug`);return e.match(t)||[]}};function _W(e,t,n){return gW.diff(e,t,n)}var vW=new class extends eW{constructor(){super(...arguments),this.tokenize=bW}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 yW(e,t,n){return vW.diff(e,t,n)}function bW(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 xW(e){return e==`.`||e==`!`||e==`?`}new class extends eW{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(xW(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 eW{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends eW{constructor(){super(...arguments),this.tokenize=bW}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(SW(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 SW(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]=SW(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]=SW(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}new class extends eW{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};var CW={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function wW(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;yW(n,r,Object.assign(Object.assign({},s),{callback:t=>{e(l(t))}}))}else return l(yW(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||DW(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 TW(e,t){if(t||=CW,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=>TW(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 EW(e,t,n,r,i,a,o){if(typeof o==`function`&&(o={callback:o}),o?.callback){let{callback:s}=o;wW(e,t,n,r,i,a,Object.assign(Object.assign({},o),{callback:e=>{s(e?TW(e,o.headerOptions):void 0)}}))}else{let s=wW(e,t,n,r,i,a,o);return s?TW(s,o?.headerOptions):void 0}}function DW(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 OW({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 kW({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 AW(e,t,n,r=!1){let i=(()=>{let e=n.theme??VN;if(typeof e==`string`)return t.getTheme(e).type})(),a=MU({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}=MW({hunks:e.hunks,oldLines:e.oldLines,newLines:e.newLines,lineDiffType:n.lineDiffType});return{code:NW({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}=MW({hunks:[i],splitLineIndex:s,unifiedLineIndex:c,lineDiffType:n.lineDiffType}),g={name:e.prevName??e.name,contents:a},_={name:e.name,contents:l};o.push(NW({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 jW({oldLine:e,newLine:t,oldLineIndex:n,newLineIndex:r,oldDecorations:i,newDecorations:a,lineDiffType:o}){if(e==null||t==null||o===`none`)return;e=wU(e),t=wU(t);let s=o===`char`?nW(e,t):_W(e,t),c=[],l=[],u=o===`word-alt`;for(let e of s){let t=e===s[s.length-1];!e.added&&!e.removed?(kW({item:e,arr:c,enableJoin:u,isNeutral:!0,isLastItem:t}),kW({item:e,arr:l,enableJoin:u,isNeutral:!0,isLastItem:t})):e.removed?kW({item:e,arr:c,enableJoin:u,isLastItem:t}):kW({item:e,arr:l,enableJoin:u,isLastItem:t})}let d=0;for(let e of c)e[0]===1&&i.push(OW({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(OW({line:r-1,spanStart:d,spanLength:e[1].length})),d+=e[1].length}function MW({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];jW({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 NW({oldFile:e,newFile:t,oldInfo:n,newInfo:r,highlighter:i,oldDecorations:a,newDecorations:o,languageOverride:s,options:{theme:c=VN,...l}}){let u=s??xU(e.name),d=s??xU(t.name),{state:f,transformers:p}=OU(),m=typeof c==`string`?{...l,lang:`text`,theme:c,transformers:p,decorations:void 0,defaultColor:!1,cssVariablePrefix:jU(`token`)}:{...l,lang:`text`,themes:c,transformers:p,decorations:void 0,defaultColor:!1,cssVariablePrefix:jU(`token`)};return{oldLines:e.contents===``?[]:(m.lang=u,f.lineInfo=n,m.decorations=a,PU(i.codeToHast(wU(e.contents),m))),newLines:t.contents===``?[]:(m.lang=d,m.decorations=o,f.lineInfo=r,PU(i.codeToHast(wU(t.contents),m)))}}var PW={fromStart:0,fromEnd:0},FW=class{highlighter;diff;expandedHunks=new Map;deletionAnnotations={};additionAnnotations={};computedLang=`text`;renderCache;constructor(e={theme:VN},t,n){this.options=e,this.onRenderUpdate=t,this.workerManager=n,n?.isWorkingPool()!==!0&&(this.highlighter=oU(e.theme??VN)?rU():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=VN,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 nU(SU(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&&!IW(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||!IW(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??xU(e.name);let t=this.highlighter!=null&&oU(n.theme),i=this.highlighter!=null&&tP(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 vU({diffIndicators:i,disableBackground:a,disableLineNumbers:o,overflow:s,themeStyles:n,split:e,themeType:r??c,totalLines:t})}async asyncHighlight(e){this.computedLang=e.lang??xU(e.name);let t=this.highlighter!=null&&oU(this.options.theme??VN),n=this.highlighter!=null&&tP(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:AW(e,t,r,n),options:r}}onHighlightSuccess(e,t,n){if(this.renderCache==null)return;let r=this.renderCache.diff!==e||!this.renderCache.highlighted||!IW(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($U(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(uU({tagName:`code`,children:e.unifiedAST,properties:{"data-code":``,"data-unified":``}})),e.deletionsAST!=null&&t.push(uU({tagName:`code`,children:e.deletionsAST,properties:{"data-code":``,"data-deletions":``}})),e.additionsAST!=null&&t.push(uU({tagName:`code`,children:e.additionsAST,properties:{"data-code":``,"data-additions":``}})),{...e.preNode,children:t}}renderFullHTML(e,t=[]){return rL(this.renderFullAST(e,t))}renderPartialHTML(e,t){return rL(t==null?e:uU({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)??PW,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=QU(e,n);o.push(ZU({type:p,content:LW(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(ZU({type:`metadata`,content:r,isFirstHunk:i,isLastHunk:a})):p===`simple`&&n>0&&o.push(ZU({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=YU(`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(JU(u)):c.push(JU(u)),u=0),this.pushLineWithAnnotation({newLine:b,oldLine:y,deletionsAST:s,additionsAST:c,...t}),r++}}d||(u>0&&(i>e?s.push(JU(u)):c.push(JU(u)),u=0),t.noEOFCRDeletions&&(s.push(YU(`change-deletion`)),t.noEOFCRAdditions||c.push(JU(1))),t.noEOFCRAdditions&&(c.push(YU(`change-addition`)),t.noEOFCRDeletions||s.push(JU(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(pU(o)),s!=null&&r.push(pU(s))):(t==null?e!=null&&n.push(e):n.push(t),a!=null&&n.push(pU(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(CU(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(CU(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 hU({fileOrDiff:e,themeStyles:t,themeType:n??r})}};function IW(e,t){return cU(e.theme,t.theme)&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength&&e.lineDiffType===t.lineDiffType}function LW(e){return`${e} unmodified line${e>1?`s`:``}`}function RW(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 zW(e,t){let n=jN.test(e),r=e.split(n?jN:MN),i,a=[],o;for(let e of r){if(n&&!jN.test(e)){i==null?i=e:console.error(`parsePatchContent: unknown file blob:`,e);continue}else if(!n&&!MN.test(e)){i==null?i=e:console.error(`parsePatchContent: unknown file blob:`,e);continue}let r=0,s=e.split(NN);o=void 0;for(let e of s){let i=e.split(FN),s=i.shift();if(s==null){console.error(`parsePatchContent: invalid hunk`,e);continue}let c=s.match(PN),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?LN:IN);if(e.startsWith(`diff --git`)){let[,,t,,n]=e.trim().match(RN)??[];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(zN)??[];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=RW(n);if(r==null)continue;let{type:i,line:a}=r;if(i===`addition`)(e==null||e.type!==`change`)&&(e=VW(`change`),l.push(e)),e.additions.push(a),u++,t=`addition`;else if(i===`deletion`)(e==null||e.type!==`change`)&&(e=VW(`change`),l.push(e)),e.deletions.push(a),d++,t=`deletion`;else if(i===`context`)(e==null||e.type!==`context`)&&(e=VW(`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]=wU(e.deletions[t]))}else if(t===`addition`){e.noEOFCRAdditions=!0;let t=e.additions.length-1;t>=0&&(e.additions[t]=wU(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 BW(e,t){let n=[];for(let r of e.split(AN))try{n.push(zW(r,t==null?void 0:`${t}-${n.length}`))}catch(e){console.error(e)}return n}function VW(e){return e===`change`?{type:`change`,additions:[],deletions:[],noEOFCRAdditions:!1,noEOFCRDeletions:!1}:{type:`context`,lines:[],noEOFCR:!1}}function HW(e,t,n){let r=BW(EW(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(FN),r.newLines=t.contents.split(FN),e.cacheKey!=null&&t.cacheKey!=null&&(r.cacheKey=`${e.cacheKey}:${t.cacheKey}`),r}var UW=-1,WW=class{static LoadedCustomComponent=!0;__id=++UW;fileContainer;spriteSVG;pre;unsafeCSSStyle;hoverContent;headerElement;headerMetadata;customHunkElements=[];errorWrapper;hunksRenderer;resizeManager;scrollSyncManager;mouseEventManager;lineSelectionManager;annotationElements=[];lineAnnotations=[];oldFile;newFile;fileDiff;constructor(e={theme:VN},t,n=!1){this.options=e,this.workerManager=t,this.isContainerManaged=n,this.hunksRenderer=new FW({...e,hunkSeparators:typeof e.hunkSeparators==`function`?`custom`:e.hunkSeparators},this.handleHighlightRender,this.workerManager),this.resizeManager=new ZN,this.scrollSyncManager=new qU,this.mouseEventManager=new JN(`diff`,XN(e,typeof e.hunkSeparators==`function`||(e.hunkSeparators??`line-info`)===`line-info`?this.handleExpandHunk:void 0)),this.lineSelectionManager=new WN(GN(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(XN(e,typeof e.hunkSeparators==`function`||(e.hunkSeparators??`line-info`)===`line-info`?this.handleExpandHunk:void 0)),this.lineSelectionManager.setOptions(GN(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;GU(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?HW(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&&(!LU(e,this.oldFile)||!LU(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=HW(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=RU(CU(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=BU(),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=IU;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=rL(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=BN,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=VU(),this.fileContainer.shadowRoot.appendChild(this.unsafeCSSStyle)),this.unsafeCSSStyle.innerText=WU(e))}applyHunksToDOM(e,t){this.cleanupErrorWrapper(),this.applyPreNodeAttributes(e,t),e.innerHTML=``;let n,r;if(t.unifiedAST!=null){let n=zU({columnType:`unified`});n.innerHTML=this.hunksRenderer.renderPartialHTML(t.unifiedAST),e.appendChild(n)}else t.deletionsAST!=null&&(n=zU({columnType:`deletions`}),n.innerHTML=this.hunksRenderer.renderPartialHTML(t.deletionsAST),e.appendChild(n)),t.additionsAST!=null&&(r=zU({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;KU({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 GW(e){let t=[];for(let n of e){let e=QN.get(n);if(e==null)throw Error(`getResolvedLanguages: ${n} is not resolved. Please resolve languages before calling getResolvedLanguages`);t.push(e)}return t}function KW(e){for(let t of Array.isArray(e)?e:[e])if(!QN.has(t))return!1;return!0}async function qW(e){let t=[],n=[];for(let r of e){if(r===`text`||r===`ansi`)continue;let e=GH(r)??WH(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 JW(e){let t=[];for(let n of e){let e=KH.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 YW(e){let t=[],n=[];for(let r of e){let e=$H(r)??ZH(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 XW(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 ZW(e,t){return cU(e?.theme??VN,t?.theme??VN)&&XW(e,t,[`theme`])}var QW={position:`absolute`,top:0,bottom:0,textAlign:`center`};function $W(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 eG=S(_(((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),tG=Symbol(`IGNORE_RESPONSE`),nG=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=VN,lineDiffType:r=`word-alt`,tokenizeMaxLineLength:i=1e3}){this.options=e,this.renderOptions={theme:n,lineDiffType:r,tokenizeMaxLineLength:i},this.fileCache=new eG.default.LRUMap(e.totalASTLRUCacheSize??100),this.diffCache=new eG.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=VN,lineDiffType:t=`word-alt`,tokenizeMaxLineLength:n=1e3}){let r={theme:e,lineDiffType:t,tokenizeMaxLineLength:n};this.isInitialized()||await this.initialize();let i=cU(r.theme,this.renderOptions.theme);if(i&&r.lineDiffType===this.renderOptions.lineDiffType&&r.tokenizeMaxLineLength===this.renderOptions.tokenizeMaxLineLength)return;let a=aU(e),o=[];if(i||(o=sU(a)?JW(a):await YW(a)),this.highlighter!=null)XH(o,this.highlighter),await this.setRenderOptionsOnWorkers(r,o);else{let[e]=await Promise.all([nU({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=aU(this.renderOptions.theme),i=[];i=sU(r)?JW(r):await YW(r);let a=[];a=KW(e)?GW(e):await qW(e);let[o]=await Promise.all([nU({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=rG(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 FU(e,this.highlighter,this.renderOptions,!0)}highlightDiffAST(e,t){this.submitTask(e,{type:`diff`,diff:t})}getPlainDiffAST(e){return this.highlighter==null?void 0:AW(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&&(KW(r)?t.request.resolvedLanguages=GW(r):t.request.resolvedLanguages=await qW(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 tG;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!==tG&&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 rG(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 rG(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??xU(e.request.file.name));break;case`diff`:t.add(e.request.diff.lang??xU(e.request.diff.name)),t.add(e.request.diff.lang??xU(e.request.diff.prevName??`-`));break}return t.delete(`text`),Array.from(t)}var iG;function aG({poolOptions:e,highlighterOptions:t}){return iG??(iG=new nG(e,t),iG.initialize()),iG}function oG(){iG!=null&&(iG.terminate(),iG=void 0)}var sG=(0,R.createContext)(void 0),cG=0;function lG({children:e,poolOptions:t,highlighterOptions:n}){let[r]=(0,R.useState)(()=>{if(!(typeof window>`u`))return aG({poolOptions:t,highlighterOptions:n})});return(0,R.useInsertionEffect)(()=>(cG++,()=>{cG--}),[]),(0,R.useEffect)(()=>()=>{cG===0&&oG()},[]),(0,z.jsx)(sG.Provider,{value:r,children:e})}function uG(e){let t=(0,R.useRef)(e);return(0,R.useInsertionEffect)(()=>void(t.current=e)),(0,R.useCallback)((...e)=>t.current(...e),[])}function dG({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:CU(e),children:i(e)},t)),a!=null&&(0,z.jsx)(`div`,{slot:`hover-slot`,style:QW,children:a(s)})]})}var fG=typeof window>`u`?R.useEffect:R.useLayoutEffect;function pG({oldFile:e,newFile:t,fileDiff:n,options:r,lineAnnotations:i,selectedLines:a,prerenderedHTML:o}){let s=(0,R.useContext)(sG),c=(0,R.useRef)(null),l=uG(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 WW(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 fG(()=>{if(c.current==null)return;let o=c.current,s=!ZW(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 mG({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}=pG({fileDiff:e,options:t,lineAnnotations:n,selectedLines:r,prerenderedHTML:o});return(0,z.jsx)(kN,{ref:u,className:i,style:a,children:$W(dG({fileDiff:e,renderHeaderMetadata:c,renderAnnotation:s,lineAnnotations:n,renderHoverUtility:l,getHoveredLine:d}),o)})}var hG=S(_(((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 gG(e){let t=(0,R.useRef)(e);t.current=e,(0,R.useEffect)(()=>()=>{t.current()},[])}function _G(e,t=500,n){let r=(0,R.useRef)();gG(()=>{r.current&&r.current.cancel()});let i=(0,R.useMemo)(()=>{let i=(0,hG.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,hG.default)(e,t,n)},[e,t,n]),i}function vG(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=_G(o,t,n);return r(s.current,i)||(c(i),s.current=i),[a,c]}function yG({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 bG(){let e=(0,R.useRef)(!1);return(0,R.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),(0,R.useCallback)(()=>e.current,[])}var xG={width:void 0,height:void 0};function SG(e){let{ref:t,box:n=`content-box`}=e,[{width:r,height:i},a]=(0,R.useState)(xG),o=bG(),s=(0,R.useRef)({...xG}),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=CG(e,t,`inlineSize`),i=CG(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 CG(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 wG({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 TG({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)(wG,{children:o}),r===`external`?(0,z.jsx)(F,{name:`ExternalLink`,className:`size-3 shrink-0 text-subtle-foreground`}):null]}):(0,z.jsx)(wG,{className:I(a,i),title:e,children:o})}function EG(e){return e===`/`?e:e.replace(/\/+$/u,``)}function DG(e){return e.replace(/^\/+/u,``)}function OG(e){return e.startsWith(`/`)}function kG({path:e,rootPath:t}){if(OG(e))return e;let n=EG(t),r=DG(e);return n===`/`?`/${r}`:`${n}/${r}`}function AG({path:e,rootPath:t}){return OG(e)?e:t?kG({path:e,rootPath:t}):null}function jG(e){if(e.trim().length===0)return[];try{return BW(e).flatMap(e=>e.files)}catch{return[]}}function MG(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 NG(e){let t=[];for(let n of e)t.push(...jG(n));return t}function PG(e){return`${e.length}:${e.slice(0,120)}:${e.slice(-120)}`}function FG(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 IG(e){let t=0,n=0;for(let r of e.hunks)t+=r.additionCount,n+=r.deletionCount;return{insertions:t,deletions:n}}function LG(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 RG(e){let t=VG(e.name)??e.name,n=VG(e.prevName);return n&&n!==t?`${n} -> ${t}`:t}function zG(e){return`${LG(e)}:${VG(e.name)??``}:${VG(e.prevName)??``}`}function BG(e){let t=new Map;return e.map(e=>{let n=zG(e),r=t.get(n)??0;return t.set(n,r+1),{key:r===0?n:`${n}:${r+1}`,fileDiff:e}})}function VG(e){let t=e?.trim();return t&&t.length>0?t:void 0}function HG(e){let t=VG(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 UG(e,t){let n=new Set(HG(t));if(n.size===0)return!1;for(let t of[e.name,e.prevName])for(let e of HG(t))if(n.has(e))return!0;return!1}function WG(e){for(let t of[e.name,e.prevName]){let e=HG(t);if(e.length>0)return e[e.length-1]??null}return null}var GG={overflow:`scroll`,disableFileHeader:!1,expansionLineCount:30},KG={"--diffs-font-size":`12px`,"--diffs-line-height":`18px`},qG={contain:`layout paint style`,contentVisibility:`auto`,containIntrinsicSize:`0 600px`},JG=/(?<=\n)/u;function YG(e,t){let n=VG(e.name)??e.name,r=VG(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,XG(i),XG(a),o].join(`:`),old:i,new:a}}function XG(e){return e.kind===`empty`?`empty:${e.path}`:`request:${e.side}:${e.path}`}function ZG(e,t){return e.kind===`empty`?Promise.resolve({name:e.path,contents:``}):t(e.path,e.side)}function QG(e){return e.contents.length===0?[]:e.contents.split(JG)}var $G=(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)(()=>IG(e),[e]),f=(0,R.useMemo)(()=>RG(e),[e]),p=(0,R.useMemo)(()=>LG(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=VG(e.name)??e.name,n=VG(e.prevName);return n&&n!==t?{from:n,to:t}:null},[e]),b=(0,R.useMemo)(()=>WG(e),[e]),x=b?AG({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}=yG({initialIsIntersecting:!0,threshold:1}),ee=s&&!O,te=(0,R.useMemo)(()=>YG(e,p),[e,p]),{ref:ne,isIntersecting:k}=yG({initialIsIntersecting:!1,rootMargin:`200px`}),A=(0,R.useRef)(u);(0,R.useEffect)(()=>{A.current=u});let[j,re]=(0,R.useState)({status:`idle`}),ie=(0,R.useRef)(`idle`),[ae,oe]=(0,R.useState)(!1),[se,M]=(0,R.useState)(!1);(0,R.useEffect)(()=>{ie.current=`idle`,re({status:`idle`}),M(!1)},[te.identity]),(0,R.useEffect)(()=>{!T&&k&&oe(!0)},[T,k]);let ce=h&&!se,le=ae&&!c&&!ce;(0,R.useEffect)(()=>{if(!le||ie.current!==`idle`)return;let e=A.current;if(!e)return;let t=!1;return ie.current=`loading`,re({status:`loading`}),Promise.all([ZG(te.old,e),ZG(te.new,e)]).then(([e,n])=>{if(!t){if(!e||!n){ie.current=`unavailable`,re({status:`unavailable`});return}ie.current=`ready`,re({status:`ready`,oldLines:QG(e),newLines:QG(n)})}}).catch(()=>{t||(ie.current=`error`,re({status:`error`}))}),()=>{t=!0,ie.current===`loading`&&(ie.current=`idle`)}},[te,le]);let ue=(0,R.useMemo)(()=>j.status===`ready`?{...e,oldLines:j.oldLines,newLines:j.newLines}:e,[e,j]);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)(wG,{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)(TG,{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)(hd,{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)(SO,{insertions:g,deletions:_,hideZero:v,className:`text-xs`})})]})}),T?null:(0,z.jsx)(`div`,{ref:ne,className:`overflow-hidden rounded-b-lg bg-background`,style:qG,children:ce?(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)(N,{type:`button`,variant:`link`,size:`sm`,className:`h-auto p-0 text-xs underline underline-offset-4 hover:underline`,onClick:()=>{M(!0),oe(!0)},children:`Load diff`})]})]}):le?(0,z.jsx)(`div`,{className:`overflow-x-auto`,children:(0,z.jsx)(`div`,{className:`w-full max-w-full`,style:KG,children:(0,z.jsx)(mG,{fileDiff:ue,options:E})})}):(0,z.jsxs)(`div`,{className:`space-y-1.5 px-3 py-3`,children:[(0,z.jsx)(Hi,{className:`h-3 w-full rounded-sm`}),(0,z.jsx)(Hi,{className:`h-3 w-[96%] rounded-sm`}),(0,z.jsx)(Hi,{className:`h-3 w-[93%] rounded-sm`}),(0,z.jsx)(Hi,{className:`h-3 w-[90%] rounded-sm`}),(0,z.jsx)(Hi,{className:`h-3 w-[87%] rounded-sm`}),(0,z.jsx)(Hi,{className:`h-3 w-[84%] rounded-sm`})]})})]})}),eK={overflow:`scroll`,diffStyle:`unified`},tK=new WeakMap;function nK(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 rK(e){return e?nK(e).filter(e=>!vl(e)):[]}function iK(e){return e.replaceAll(`\\`,`/`).replace(/^\/+/u,``)}function aK(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 oK(e,t){if(!t)return e;let n=aK(e.path,t)??e.path,r=aK(e.movePath,t);return n===e.path&&r===e.movePath?e:{...e,path:n,movePath:r}}function sK(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 cK(e,t){let n=rK(e.diff);if(n.length===0)return null;let r=iK(e.path),i=t===`created`?`/dev/null`:`a/${r}`,a=t===`created`?`b/${r}`:`/dev/null`,o=sK(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 lK(e){let t=rK(e.diff);if(t.length===0||!t.some(e=>e.startsWith(`+`)||e.startsWith(`-`)))return null;let n=iK(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 uK(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=iK(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=bl(e),r=(n===`created`?cK(e,`created`):n===`deleted`?cK(e,`deleted`):null)??lK(e);return r?{patch:r,disableLineNumbers:!0}:null}function dK(e){try{let t=BW(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 fK(e,t){if(t)return null;let n=e.diff?.trimEnd();return n&&n.length>0?n:null}function pK(e){let t=tK.get(e);if(t)return t;let n=uK(e),r=n===null?null:dK(n),i={renderablePatch:r,plainDiff:fK(e,r!==null)};return tK.set(e,i),i}var mK=(0,R.memo)(function({change:e,themeType:t,workspaceRootPath:n}){let r=(0,R.useMemo)(()=>oK(e,n),[e,n]),i=(0,R.useMemo)(()=>pK(r),[r]),a=i.renderablePatch,o=(0,R.useMemo)(()=>a?{...eK,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)(vN,{size:`base`,contentKey:s,className:`mt-1`,children:(0,z.jsx)(`div`,{"data-timeline-file-diff":``,children:(0,z.jsx)($G,{fileDiff:a.fileDiff,diffViewOptions:o,filePathRoot:n,stickyHeader:!0})})}):(0,z.jsx)(vN,{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)(NO,{className:`rounded-none border-0 bg-transparent`,children:i.plainDiff})})})});function hK(e){return typeof e==`string`?e:e===null?`null`:typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e,null,2)}function gK({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:hK(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 _K({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)(vN,{size:`base`,streaming:r,contentKey:n,scrollClassName:`px-4 py-3 font-mono text-xs leading-tight text-foreground`,children:[(0,z.jsx)(gK,{toolName:e,argEntries:i}),a?(0,z.jsx)(`div`,{className:`mt-2 whitespace-pre border-t border-border pt-2`,children:n}):null]})})}var vK=`grid grid-cols-[var(--detail-label-width,96px)_minmax(0,1fr)] gap-x-3`,yK=`m-0 text-xs leading-5 text-muted-foreground`,bK=`m-0 min-w-0 text-xs leading-5 text-foreground`;function xK(e){if(e)return{"--detail-label-width":e}}function SK({children:e,className:t,labelWidth:n}){return(0,z.jsx)(`dl`,{className:I(`flex flex-col gap-1 rounded-md border border-border bg-surface-raised px-2 py-1`,t),style:xK(n),children:e})}function CK({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(yK,r),children:e}),(0,z.jsx)(`dd`,{className:I(bK,i),children:t})]}):(0,z.jsxs)(`div`,{className:I(vK,a===`center`?`items-center py-0.5`:`py-0.5`,n),children:[(0,z.jsx)(`dt`,{className:I(yK,r),children:e}),(0,z.jsx)(`dd`,{className:I(bK,i),children:t})]})}function wK({row:e}){return e.lifecycle!==`answered`&&e.lifecycle!==`resolving`?null:(0,z.jsx)(SK,{labelWidth:`120px`,children:e.questions.map(t=>(0,z.jsx)(TK,{question:t,answer:e.answers?.[t.id]??null},t.id))})}function TK({question:e,answer:t}){let n=e.shortLabel??e.prompt,r=t?.selected.map(t=>v({question:e,value:t}))??[],i=t?.freeText??null;return r.length>0||i!==null?(0,z.jsxs)(CK,{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)(CK,{label:n,children:(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:`No answer`})})}function EK(e){let t=[];for(let n of e)n!==null&&t.push(n);return t}function DK({row:e,themeType:t,workspaceRootPath:n}){switch(e.workKind){case`command`:return(0,z.jsx)(ON,{commandLine:`$ ${e.command}`,metadataLines:EK([e.source?`source: ${e.source}`:null]),output:e.output,exitCode:e.exitCode,streaming:e.status===`pending`});case`tool`:return(0,z.jsx)(_K,{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)(mK,{change:e.change,themeType:t,workspaceRootPath:n}),e.stderr?(0,z.jsx)(vN,{size:`base`,contentKey:e.stderr,className:`rounded-md`,children:(0,z.jsx)(NO,{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)(wK,{row:e});case`approval`:case`web-search`:case`web-fetch`:return null;default:return B(e)}}var OK=`cubic-bezier(0.16, 1, 0.3, 1)`;function kK(e,t){t.savedDuration===null&&(t.savedDuration=e.style.transitionDuration),e.style.transitionDuration=`0s`}function AK(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 jK(e,t,n,r){let i=parseFloat(e.style.height),a=parseFloat(t);(n||Number.isFinite(i)&&Number.isFinite(a)&&a<i)&&(kK(e,r),AK(e,r)),e.style.height=t}function MK(e,t){t.restoreFrame!==null&&(cancelAnimationFrame(t.restoreFrame),t.restoreFrame=null),t.savedDuration!==null&&e&&(e.style.transitionDuration=t.savedDuration,t.savedDuration=null)}function NK({visible:e,children:t,durationMs:n=180,className:r}){let i=(0,R.useRef)(null),a=(0,R.useRef)(null),o=Rr();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(oO)>0,f=u||s||d;s=!1,r=a,jK(t,e?`${l}px`:`0px`,f,c)});l.observe(n);let u=()=>{document.visibilityState===`visible`&&(s=!0,jK(t,e?`${n.offsetHeight}px`:`0px`,!0,c))};return document.addEventListener(`visibilitychange`,u),()=>{l.disconnect(),document.removeEventListener(`visibilitychange`,u),MK(t,c)}},[e,o]),(0,z.jsx)(`div`,{ref:i,className:r,style:{overflowX:`visible`,overflowY:`clip`,opacity:+!!e,transition:`height ${n}ms ${OK}, opacity ${n}ms ${OK}`},children:(0,z.jsx)(`div`,{ref:a,style:{display:`flow-root`},children:t})})}var PK=250;function FK({children:e,className:t,durationMs:n=180}){let r=(0,R.useRef)(null),i=(0,R.useRef)(null),a=Rr();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},PK),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(oO)>0,p=d||o||!s||f;o=!1,n=i,jK(e,`${u}px`,p,l),s||(window.clearTimeout(c),c=window.setTimeout(()=>{s=!0},PK))});u.observe(t);let d=()=>{document.visibilityState===`visible`&&(o=!0,jK(e,`${t.offsetHeight}px`,!0,l))};return document.addEventListener(`visibilitychange`,d),()=>{u.disconnect(),document.removeEventListener(`visibilitychange`,d),window.clearTimeout(c),MK(e,l)}},[a]),(0,z.jsx)(`div`,{ref:r,className:t,style:{overflowX:`visible`,overflowY:`clip`,transition:`height ${n}ms ${OK}`},children:(0,z.jsx)(`div`,{ref:i,style:{display:`flow-root`},children:e})})}function IK(e){return e===null?`<null>`:e===void 0?`<undefined>`:String(e)}function LK(e){return e.map(IK).join(``)}function RK(e){switch(e.type){case`read`:return LK([e.type,e.command,e.name,e.path]);case`list_files`:return LK([e.type,e.command,e.path]);case`search`:return LK([e.type,e.command,e.query,e.path]);case`unknown`:return LK([e.type,e.command]);default:return B(e)}}function zK(e){return e.map(RK).join(``)}var BK=new WeakMap,VK=new WeakMap;function HK(e){let t=VK.get(e);if(t!==void 0)return t;let n=e.map(GK).join(``);return VK.set(e,n),n}function UK(e){return LK([e.kind,e.id,e.threadId,e.turnId,e.sourceSeqStart,e.sourceSeqEnd,e.startedAt,e.createdAt])}function WK(e){let t=[UK(e),e.status,e.workKind,e.inClosedStep];switch(e.workKind){case`command`:return LK([...t,e.callId,e.command,e.source,e.exitCode,e.completedAt,e.approvalStatus,zK(e.activityIntents)]);case`tool`:return LK([...t,e.callId,e.toolName,e.completedAt,e.approvalStatus,zK(e.activityIntents)]);case`file-change`:return LK([...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 LK([...t,e.callId,e.queries.join(``),e.completedAt]);case`web-fetch`:return LK([...t,e.callId,e.url,e.prompt,e.pattern,e.completedAt]);case`delegation`:return LK([...t,e.callId,e.toolName,e.subagentType,e.description,e.completedAt,HK(e.childRows)]);case`approval`:return LK([...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 LK([...t,e.interactionId,e.lifecycle,e.statusReason,e.questions.map(e=>LK([e.id,e.prompt,e.shortLabel,e.multiSelect,e.allowFreeText,e.options?.map(e=>LK([e.value,e.label,e.description])).join(``)])).join(``),e.answers?Object.entries(e.answers).map(([e,t])=>LK([e,t.selected.join(``),t.freeText])).join(``):null]);default:return B(e)}}function GK(e){let t=BK.get(e);if(t!==void 0)return t;let n=KK(e);return BK.set(e,n),n}function KK(e){let t=UK(e);switch(e.kind){case`conversation`:return LK([t,e.role,e.turnRequest?.kind,e.turnRequest?.status,e.attachments?.localFiles,e.attachments?.localImages,e.attachments?.webImages]);case`system`:return e.systemKind===`operation`?LK([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]):LK([t,e.status,e.systemKind,e.title,e.detail]);case`bundle-summary`:case`step-summary`:return LK([t,e.status,HK(e.children)]);case`turn`:return LK([t,e.status,e.summaryCount,e.completedAt,e.children?HK(e.children):null]);case`work`:return WK(e);default:return B(e)}}var qK=`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-['']`,JK=(0,R.createContext)(null),YK=(0,R.createContext)(null);function XK(){let e=(0,R.useContext)(JK);if(!e)throw Error(`Thread timeline renderer context is missing`);return e}function ZK(){let e=(0,R.useContext)(YK);if(!e)throw Error(`Thread timeline turn-state context is missing`);return e}function QK({activeLatestBundleId:e,compactActivityIntents:t,row:n,scopeActive:r}){return LK([GK(n),t,r,e===n.id])}function $K({activeLatestBundleId:e,compactActivityIntents:t,row:n,scopeActive:r,spacing:i}){if(t&&cq(n)){let e=$u(n);if(e.length>0)return{kind:`compact-activity-intents`,titles:e}}return{kind:`row-title`,title:rd(n,uq({activeLatestBundleId:e,row:n,scopeActive:r}))}}function eq(e){let t=(0,R.useRef)(null),n=QK(e),r=t.current;if(r?.key===n)return r.state;let i=$K(e);return t.current={key:n,state:i},i}function tq(e,t){return e.compactActivityIntents===t.compactActivityIntents&&e.scopeActive===t.scopeActive&&e.spacing===t.spacing&&e.activeLatestBundleId===t.activeLatestBundleId&&(e.row===t.row||GK(e.row)===GK(t.row))}function nq(e,t){return e.activeLatestBundleId===t.activeLatestBundleId&&e.compactActivityIntents===t.compactActivityIntents&&e.title===t.title&&e.horizontalPadding===t.horizontalPadding&&(e.row===t.row||GK(e.row)===GK(t.row))}function rq(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 iq(e){let t=(0,R.useRef)(e);return rq(t.current,e)||(t.current=e),t.current}function aq(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 oq({onLoadTurnSummaryRows:e,row:t}){e(aq(t))}function sq(){let e=(0,R.useRef)(fu());return(0,R.useCallback)((t,n)=>hu(t,{...n,cache:e.current}),[])}function cq(e){return e.kind===`work`&&(e.workKind===`command`||e.workKind===`tool`)&&e.approvalStatus===null}function lq({activeLatestBundleId:e,row:t,scopeActive:n}){return t.kind===`bundle-summary`&&n&&t.id===e}function uq({activeLatestBundleId:e,row:t,scopeActive:n}){let r=lq({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 dq(e){switch(e){case`top-level`:case`nested`:return`default`;case`bundle`:return`flush`}}function fq({children:e,className:t,horizontalPadding:n=`default`}){return(0,z.jsx)(xO,{horizontalPadding:n,className:t,children:e})}function pq(e){switch(e){case`top-level`:return`gap-4`;case`nested`:return`gap-3`;case`bundle`:return`gap-0`}}function mq({row:e}){let{onOpenLocalFileLink:t,projectId:n,resolveUserAttachmentImageSrc:r}=XK();return e.role===`user`?(0,z.jsx)(aO,{attachments:e.attachments,initiator:e.initiator,onOpenLocalFileLink:t,projectId:n,resolveUserAttachmentImageSrc:r,role:`user`,text:e.text,turnRequest:e.turnRequest}):(0,z.jsx)(aO,{attachments:e.attachments,onOpenLocalFileLink:t,projectId:n,resolveUserAttachmentImageSrc:r,role:`assistant`,text:e.text,turnRequest:e.turnRequest})}function hq(){let e=We(),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.scrollElementIntoView({element:r,options:{block:`center`,inline:`nearest`}}))},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 gq({detail:e,streaming:t,tone:n}){return(0,z.jsx)(vN,{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 _q({activeLatestBundleId:e,compactActivityIntents:t,row:n}){let{onOpenLocalFileLink:r,projectId:i,resolveUserAttachmentImageSrc:a,themeType:o,workspaceRootPath:s}=XK();switch(n.kind){case`bundle-summary`:case`step-summary`:{let t=(0,z.jsx)(Tq,{rows:n.children,scopeActive:!1,compactActivityIntents:!0,spacing:`bundle`,unreadDividerPlacement:null});return od(n.children)?(0,z.jsx)(vN,{size:`summary`,streaming:n.kind===`bundle-summary`&&n.id===e,contentKey:HK(n.children),children:t}):t}case`turn`:return(0,z.jsx)(vq,{row:n,compactActivityIntents:t});case`work`:if(n.workKind===`delegation`){let e=n.status===`pending`;return(0,z.jsx)(vN,{size:`delegation`,streaming:e,contentKey:`${HK(n.childRows)}|${n.output.length}`,className:qK,children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[n.childRows.length>0?(0,z.jsx)(Tq,{rows:n.childRows,scopeActive:e,compactActivityIntents:!1,spacing:`nested`,unreadDividerPlacement:null}):null,n.output.trim().length>0?(0,z.jsx)(aO,{attachments:null,onOpenLocalFileLink:r,projectId:i,resolveUserAttachmentImageSrc:a,role:`assistant`,text:n.output,turnRequest:null}):null]})})}return(0,z.jsx)(DK,{row:n,themeType:o,workspaceRootPath:s});case`system`:return n.detail?(0,z.jsx)(gq,{detail:n.detail,streaming:n.status===`pending`,tone:n.systemKind===`error`||n.status===`error`?`danger`:`default`}):null;case`conversation`:return null;default:return B(n)}}function vq({compactActivityIntents:e,row:t}){let{getViewRows:n,onLoadTurnSummaryRows:r}=XK(),{loadingTurnSummaryIds:i,erroredTurnSummaryIds:a,turnSummaryRowsById:o}=ZK(),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)(()=>{oq({onLoadTurnSummaryRows:r,row:t})},[r,t]);return(0,R.useEffect)(()=>{c||l||d||f||oq({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)(N,{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)(Tq,{rows:u,scopeActive:!1,compactActivityIntents:e,spacing:`nested`,className:qK,unreadDividerPlacement:null}):(0,z.jsx)(`div`,{className:`text-sm text-muted-foreground`,children:`Loading turn details...`})}function yq({activeLatestBundleId:e,compactActivityIntents:t,row:n,scopeActive:r,spacing:i}){let{onTitleAction:a,resolveSegmentLinkHref:o}=XK(),s=dq(i),c=eq({activeLatestBundleId:e,compactActivityIntents:t,row:n,scopeActive:r,spacing:i});return n.kind===`conversation`?(0,z.jsx)(mq,{row:n}):c.kind===`compact-activity-intents`?(0,z.jsx)(z.Fragment,{children:c.titles.map(e=>(0,z.jsx)(fq,{horizontalPadding:s,children:(0,z.jsx)(kO,{title:e.title,onTitleAction:a,resolveSegmentLinkHref:o})},e.id))}):ad(n)?(0,z.jsx)(Sq,{activeLatestBundleId:e,row:n,title:c.title,horizontalPadding:s,compactActivityIntents:t}):(0,z.jsx)(fq,{horizontalPadding:s,children:(0,z.jsx)(kO,{title:c.title,onTitleAction:a,resolveSegmentLinkHref:o})})}var bq=(0,R.memo)(yq,tq);function xq({activeLatestBundleId:e,compactActivityIntents:t,title:n,horizontalPadding:r,row:i}){let{onLoadTurnSummaryRows:a,onTitleAction:o,resolveSegmentLinkHref:s}=XK(),{autoExpandedRowIds:c,loadingTurnSummaryIds:l,erroredTurnSummaryIds:u,turnSummaryRowsById:d}=ZK(),f=(0,R.useCallback)(()=>{i.kind===`turn`&&i.children===null&&!d[i.id]&&!l.has(i.id)&&!u.has(i.id)&&oq({onLoadTurnSummaryRows:a,row:i})},[u,l,a,i,d]),p=(0,R.useCallback)(()=>(0,z.jsx)(_q,{activeLatestBundleId:e,row:i,compactActivityIntents:t}),[e,t,i]);return(0,z.jsx)(MO,{title:n,horizontalPadding:r,autoExpanded:c.has(i.id),onBeforeExpand:f,onTitleAction:o,resolveSegmentLinkHref:s,renderBody:p})}var Sq=(0,R.memo)(xq,nq);function Cq({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:B(t)}}function wq({rows:e,unreadDividerPlacement:t}){let n=[],r=Cq({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 Tq({compactActivityIntents:e,rows:t,scopeActive:n,spacing:r,className:i,unreadDividerPlacement:a}){let o=(0,R.useMemo)(()=>nd(t),[t]),s=(0,R.useMemo)(()=>wq({rows:t,unreadDividerPlacement:a}),[t,a]);return(0,z.jsx)(`div`,{className:I(`flex min-w-0 flex-col`,pq(r),i),"data-timeline-row-list":r,children:s.map(t=>t.kind===`unread-divider`?(0,z.jsx)(hq,{},t.id):(0,z.jsx)(`div`,{"data-timeline-row-id":t.row.id,children:(0,z.jsx)(bq,{activeLatestBundleId:o,row:t.row,scopeActive:n,spacing:r,compactActivityIntents:e})},t.row.id))})}function Eq(e){return(0,z.jsx)(Dq,{...e},e.turnSummaryRowsIdentity)}function Dq(e){let t=sq(),n=(0,R.useMemo)(()=>t(e.timelineRows),[t,e.timelineRows]),r=ml(e.threadRuntimeDisplayStatus),i=e.themeType??`light`,a=iq((0,R.useMemo)(()=>{let t=new Set(ld({rows:n,scopeActive:r}));if(e.initialExpanded)for(let n of e.initialExpanded)t.add(n);return t},[n,r,e.initialExpanded])),o=iq(e.loadingTurnSummaryIds),s=iq(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 B(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)(JK.Provider,{value:p,children:(0,z.jsx)(YK.Provider,{value:m,children:(0,z.jsx)(FK,{children:(0,z.jsx)(Tq,{rows:n,scopeActive:r,compactActivityIntents:!1,spacing:`top-level`,unreadDividerPlacement:e.unreadDividerPlacement??null})})})})}var Oq=(0,R.memo)(Eq);Oq.displayName=`ThreadTimelineRows`;function kq({label:e,className:t}){return(0,z.jsx)(`div`,{className:I(`px-2 text-sm text-muted-foreground`,t),children:e})}function Aq({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)(gO,{isExpanded:i,summaryContent:(0,z.jsx)(`span`,{className:`animate-shine`,children:o}),headerToneClass:mO(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)(kq,{label:(0,z.jsx)(`span`,{className:`animate-shine`,children:o}),className:I(`mt-4`,r)})}var jq=`Popover`,[Mq,Nq]=jn(jq,[En]),Pq=En(),[Fq,Iq]=Mq(jq),Lq=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Pq(t),c=R.useRef(null),[l,u]=R.useState(!1),[d,f]=Wt({prop:r,defaultProp:i??!1,onChange:a,caller:jq});return(0,z.jsx)(yn,{...s,children:(0,z.jsx)(Fq,{scope:t,contentId:ln(),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})})};Lq.displayName=jq;var Rq=`PopoverAnchor`,zq=R.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Iq(Rq,n),a=Pq(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return R.useEffect(()=>(o(),()=>s()),[o,s]),(0,z.jsx)(mt,{...a,...r,ref:t})});zq.displayName=Rq;var Bq=`PopoverTrigger`,Vq=R.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Iq(Bq,n),a=Pq(n),o=$e(t,i.triggerRef),s=(0,z.jsx)(On.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":nJ(i.open),...r,ref:o,onClick:en(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,z.jsx)(mt,{asChild:!0,...a,children:s})});Vq.displayName=Bq;var Hq=`PopoverPortal`,[Uq,Wq]=Mq(Hq,{forceMount:void 0}),Gq=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Iq(Hq,t);return(0,z.jsx)(Uq,{scope:t,forceMount:n,children:(0,z.jsx)(Kt,{present:n||a.open,children:(0,z.jsx)(Lt,{asChild:!0,container:i,children:r})})})};Gq.displayName=Hq;var Kq=`PopoverContent`,qq=R.forwardRef((e,t)=>{let n=Wq(Kq,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Iq(Kq,e.__scopePopover);return(0,z.jsx)(Kt,{present:r||a.open,children:a.modal?(0,z.jsx)(Yq,{...i,ref:t}):(0,z.jsx)(Xq,{...i,ref:t})})});qq.displayName=Kq;var Jq=Qt(`PopoverContent.RemoveScroll`),Yq=R.forwardRef((e,t)=>{let n=Iq(Kq,e.__scopePopover),r=R.useRef(null),i=$e(t,r),a=R.useRef(!1);return R.useEffect(()=>{let e=r.current;if(e)return Ct(e)},[]),(0,z.jsx)(Ut,{as:Jq,allowPinchZoom:!0,children:(0,z.jsx)(Zq,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:en(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:en(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:en(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Xq=R.forwardRef((e,t)=>{let n=Iq(Kq,e.__scopePopover),r=R.useRef(!1),i=R.useRef(!1);return(0,z.jsx)(Zq,{...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()}})}),Zq=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=Iq(Kq,n),p=Pq(n);return wn(),(0,z.jsx)(Ot,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,z.jsx)(Yt,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,z.jsx)(kn,{"data-state":nJ(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)`}})})})}),Qq=`PopoverClose`,$q=R.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Iq(Qq,n);return(0,z.jsx)(On.button,{type:`button`,...r,ref:t,onClick:en(e.onClick,()=>i.onOpenChange(!1))})});$q.displayName=Qq;var eJ=`PopoverArrow`,tJ=R.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Pq(n);return(0,z.jsx)(tn,{...i,...r,ref:t})});tJ.displayName=eJ;function nJ(e){return e?`open`:`closed`}var rJ=Lq,iJ=zq,aJ=Vq,oJ=Gq,sJ=qq,cJ=R.createContext({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function lJ(){return R.useContext(cJ)}function uJ({children:e,open:t,onOpenChange:n,defaultOpen:r,...i}){let a=on(t,n,r);return a.isCompactViewport?(0,z.jsx)(cJ.Provider,{value:a,children:e}):(0,z.jsx)(rJ,{open:a.open,onOpenChange:a.onOpenChange,...i,children:(0,z.jsx)(cJ.Provider,{value:a,children:e})})}var dJ=R.forwardRef(({asChild:e,children:t,className:n,...r},i)=>{let{isCompactViewport:a,open:o,onOpenChange:s}=lJ();return a?(0,z.jsx)(nn,{ref:i,asChild:e,open:o,onOpenChange:s,haspopup:`dialog`,className:n,...r,children:t}):(0,z.jsx)(aJ,{ref:i,asChild:e,className:Mn(n),...r,children:t})});dJ.displayName=`PopoverTrigger`;var fJ=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}=lJ();if(c){let t=gn(o);return(0,z.jsx)(Sn,{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)(oJ,{children:(0,z.jsx)(sJ,{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})})});fJ.displayName=`PopoverContent`;var pJ=R.forwardRef(({children:e,...t},n)=>{let{isCompactViewport:r}=lJ();return r?(0,z.jsx)(z.Fragment,{children:e}):(0,z.jsx)(iJ,{ref:n,...t,children:e})});pJ.displayName=`PopoverAnchor`;var mJ=`(pointer: coarse)`;function hJ(){return St(mJ)}var gJ=160,_J=()=>void 0,vJ={onPointerEnter:_J,onPointerLeave:_J};function yJ({closeDelayMs:e=gJ}={}){let t=hJ(),[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?vJ:{onPointerEnter:()=>{a(!0)},onPointerLeave:()=>{a(!1)}},contentHoverProps:t?vJ:{onPointerEnter:()=>{s(!0)},onPointerLeave:()=>{s(!1)},onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{e.preventDefault()}},handleOpenChange:u}}var bJ=new Intl.NumberFormat(`en-US`,{notation:`compact`,maximumFractionDigits:0});function xJ(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 SJ(e){let t=Math.max(0,Math.round(e));return bJ.format(t).toLowerCase()}function CJ({usage:e,className:t}){let{open:n,triggerHoverProps:r,contentHoverProps:i,handleOpenChange:a}=yJ(),o=xJ(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=SJ(e.usedTokens),m=SJ(e.modelContextWindow),h=e.estimated?`Estimated context window usage`:`Context window usage`;return(0,z.jsxs)(uJ,{open:n,onOpenChange:a,children:[(0,z.jsx)(dJ,{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)(fJ,{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 wJ(e){return ml(e.runtime.displayStatus)}function TJ(e){if(e.parentThreadId!=null)return!1;switch(e.status){case`error`:case`idle`:return!fc(e);case`active`:case`created`:case`provisioning`:return!1;default:return C(e.status)}}var EJ=`flex w-full items-center gap-2 rounded-md pr-0 text-sm transition-colors`,DJ=`pl-2`,OJ=`pl-8`,kJ=`pl-8`,AJ=`pl-14`,jJ=`pl-20`,MJ=`text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,NJ=`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`,PJ=`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-['']`,FJ=`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-['']`,IJ=`inline-flex shrink-0 items-center justify-center text-subtle-foreground`;function LJ({isCollapsed:e,onToggle:t,threadTitle:n}){return(0,z.jsx)(`button`,{type:`button`,"aria-expanded":!e,"aria-label":e?`Expand ${n} threads`:`Collapse ${n} threads`,title:e?`Expand managed threads`:`Collapse managed threads`,onClick:e=>{e.preventDefault(),e.stopPropagation(),t()},className:I(`relative z-10 rounded-md outline-none ring-sidebar-ring transition-colors hover:text-sidebar-foreground focus-visible:ring-2`,IJ,In),children:(0,z.jsxs)(`span`,{className:I(`relative inline-flex items-center justify-center`,Fn),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`,Fn),"aria-hidden":`true`,children:(0,z.jsx)(F,{name:`UserRound`,className:Fn,"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`,Fn,!e&&`rotate-90`),"aria-hidden":`true`,children:(0,z.jsx)(F,{name:`ChevronRight`,className:Fn,"aria-hidden":`true`})})]})})}function RJ(){return(0,z.jsx)(`span`,{"data-manager-leading-icon":``,className:I(IJ,In),"aria-hidden":`true`,children:(0,z.jsx)(F,{name:`UserRound`,className:Fn,"aria-hidden":`true`})})}function zJ({hasPendingInteraction:e,isBusy:t,showUnreadBadge:n}){return e?(0,z.jsx)(`span`,{className:I(`rounded-full bg-attention`,Nn),"aria-label":`Pending interaction requires attention`,title:`Pending interaction`}):t?(0,z.jsx)(F,{name:`CircleDashed`,className:I(`animate-spin text-muted-foreground`,Fn),"aria-label":`Thread working`}):n?(0,z.jsx)(`span`,{className:I(`rounded-full bg-primary`,Nn),"aria-label":`Unread thread requires attention`,title:`Unread thread requires attention`}):null}function BJ({environmentIcon:e,environmentIconLabel:t,hasPendingInteraction:n,isBusy:r,showUnreadBadge:i}){return n||r||i?(0,z.jsx)(`span`,{className:I(IJ,In),children:(0,z.jsx)(zJ,{hasPendingInteraction:n,isBusy:r,showUnreadBadge:i})}):(0,z.jsx)(VJ,{environmentIcon:e,environmentIconLabel:t})}function VJ({environmentIcon:e,environmentIconLabel:t}){return e?(0,z.jsx)(F,{name:e,className:I(`text-muted-foreground`,Fn),"aria-label":t??void 0}):null}function HJ({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=wJ(t)&&!l,d=!l&&TJ(t),f=qn(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)>0,S=y?null:lc(t.environmentWorkspaceDisplayKind),C=y?null:dc(t.environmentWorkspaceDisplayKind),w=I(`group/thread-row`,EJ,!m&&`relative`,v?qt:gt,m?kJ:v?_?jJ:AJ:OJ,n?`bg-sidebar-border text-sidebar-foreground`:MJ),T=a||s,E=(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)($n,{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&&x?(0,z.jsx)(LJ,{isCollapsed:b,onToggle:()=>{p.onToggleCollapsed(t.id)},threadTitle:f}):m?(0,z.jsx)(RJ,{}):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`,qt),children:(0,z.jsxs)(`span`,{className:I(`relative shrink-0`,pn),children:[(0,z.jsx)(`span`,{className:I(`absolute inset-0 flex items-center justify-center transition-opacity`,T?`opacity-0`:`group-hover/thread-row:opacity-0`),children:(0,z.jsx)(BJ,{environmentIcon:S,environmentIconLabel:C,hasPendingInteraction:l,isBusy:u,showUnreadBadge:d})}),(0,z.jsx)(`div`,{className:I(`absolute inset-0 z-10 flex items-center justify-end transition-opacity`,T?`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)(fl,{thread:t,triggerClassName:I(`text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-foreground`,pn),onOpenChange:o})})]})})]});return(0,z.jsx)(pl,{thread:t,onOpenChange:c,children:m?(0,z.jsx)(oo,{tier:`manager`,className:w,children:E}):(0,z.jsx)(`div`,{className:w,children:E})})}var UJ=(0,R.memo)(HJ);function WJ(e){return e===`managed-worktree`||e===`unmanaged-worktree`}function GJ(e,t){let n=t.createdAt-e.createdAt;return n===0?e.id.localeCompare(t.id):n}function KJ(e,t){let n=t.latestAttentionAt-e.latestAttentionAt;return n===0?GJ(e,t):n}function qJ(e,t){let n=e.status===`active`;return n===(t.status===`active`)?n?GJ(e,t):KJ(e,t):n?-1:1}function JJ(e){return e.kind===`thread`?e.thread:e.group.threads[0]}function YJ(e,t){return qJ(JJ(e),JJ(t))}function XJ(e){let{environmentThreadGroups:t,looseThreads:n}=$J(e),r=[...n.map(e=>({kind:`thread`,thread:e})),...t.map(e=>({kind:`environment`,group:e}))];return r.sort(YJ),r}function ZJ({managerThreadIds:e,thread:t}){return t.type!==`standard`||t.parentThreadId===null||!e.has(t.parentThreadId)?null:t.parentThreadId}function QJ(e){let t=e.filter(e=>e.type===`manager`).sort(GJ),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=ZJ({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,wJ(t)&&(s.managedChildBusyCount+=1))}return{managerThreadGroups:t.map(e=>({managerThread:e,managedItems:XJ(r.get(e.id)??[]),stats:i.get(e.id)??{managedChildBusyCount:0,managedChildCount:0}})),unmanagedItems:XJ(a)}}function $J(e){let t=new Map;for(let n of e){if(n.environmentId===null||!WJ(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(qJ),n.add(e),r.push({environmentId:e,threads:i}));let i=e.filter(e=>e.environmentId===null||!n.has(e.environmentId));return i.sort(qJ),{environmentThreadGroups:r,looseThreads:i}}var eY={kind:`default`},tY={kind:`managed-child`},nY={kind:`env-grouped-child`},rY={kind:`env-grouped-managed-child`},iY=[];function aY({representativeThread:e,paddingClass:t,onCreateNewThread:n}){let r=e.environmentBranchName,i=r?`Worktree: ${r}`:`Worktree`,a=uc(e.environmentWorkspaceDisplayKind),o=dc(e.environmentWorkspaceDisplayKind);return(0,z.jsxs)(`div`,{className:I(EJ,t,qt,`text-muted-foreground`),title:i,children:[(0,z.jsx)(`span`,{className:I(`inline-flex shrink-0 items-center justify-center text-subtle-foreground`,In),"aria-label":o??void 0,children:(0,z.jsx)(F,{name:a,className:Fn})}),(0,z.jsxs)(`span`,{className:`min-w-0 flex-1 truncate text-left`,children:[(0,z.jsx)(`span`,{children:`Worktree`}),r?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{children:`:`}),` `,(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:r})]}):null]}),n?(0,z.jsx)(N,{type:`button`,variant:`ghost`,size:`icon`,"aria-label":`Create new thread in this worktree`,title:`New thread in this worktree`,onClick:n,className:I(`relative z-10 rounded-md p-0 text-muted-foreground hover:bg-sidebar-accent hover:text-sidebar-foreground`,pn),children:(0,z.jsx)(F,{name:`MessageSquarePlus`,className:Fn})}):(0,z.jsx)(`span`,{className:I(`shrink-0`,pn),"aria-hidden":`true`})]})}var oY=(0,R.memo)(function({projectId:e,environmentThreadGroup:t,selectedThreadId:n,onProjectSelect:r}){let{environmentId:i,threads:a}=t,o=Oo({projectId:e,environmentId:i}),s=(0,R.useCallback)(()=>{r?.(),o()},[o,r]);return(0,z.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,z.jsx)(aY,{representativeThread:a[0],paddingClass:kJ,onCreateNewThread:s}),(0,z.jsx)(`div`,{className:I(`relative space-y-px`,PJ),children:a.map(t=>(0,z.jsx)(UJ,{projectId:e,thread:t,isActive:n===t.id,onProjectSelect:r,options:nY},t.id))})]})});function sY({projectId:e,environmentThreadGroup:t,selectedThreadId:n,onProjectSelect:r}){let{environmentId:i,threads:a}=t,o=Oo({projectId:e,environmentId:i}),s=(0,R.useCallback)(()=>{r?.(),o()},[o,r]);return(0,z.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,z.jsx)(aY,{representativeThread:a[0],paddingClass:AJ,onCreateNewThread:s}),(0,z.jsx)(`div`,{className:I(`relative space-y-px`,FJ),children:a.map(t=>(0,z.jsx)(UJ,{projectId:e,thread:t,isActive:n===t.id,onProjectSelect:r,options:rY},t.id))})]})}var cY=(0,R.memo)(function({projectId:e,managerThreadGroup:t,selectedThreadId:n,isManagerCollapsed:r,onProjectSelect:i,onToggleManagerCollapsed:a}){let{managerThread:o,managedItems:s,stats:c}=t,l=(0,R.useMemo)(()=>({kind:`manager`,isCollapsed:r,managedChildCount:c.managedChildCount,onToggleCollapsed:a}),[r,a,c.managedChildCount]),u=!r&&s.length>0;return(0,z.jsxs)(`div`,{className:`space-y-0.5`,children:[(0,z.jsx)(UJ,{projectId:e,thread:o,isActive:n===o.id,onProjectSelect:i,options:l}),u?(0,z.jsx)(`div`,{className:I(`relative space-y-px`,PJ),children:s.map(t=>t.kind===`thread`?(0,z.jsx)(UJ,{projectId:e,thread:t.thread,isActive:n===t.thread.id,onProjectSelect:i,options:tY},`thread:${t.thread.id}`):(0,z.jsx)(sY,{projectId:e,environmentThreadGroup:t.group,selectedThreadId:n,onProjectSelect:i},`env:${t.group.environmentId}`))}):null]})});function lY({project:e,threadListState:t,selectedThreadId:n,isActive:r,isCollapsed:i,collapsedManagerIds:a,isLocalPathInvalid:o,onProjectSelect:s,onToggleProjectCollapsed:c,onToggleManagerCollapsed:l}){let[u,d]=(0,R.useState)(!1),[f,p]=(0,R.useState)(!1),m=u||f,h=t.status===`ready`?t.threads:iY,{managerThreadGroups:g,unmanagedItems:_}=(0,R.useMemo)(()=>QJ(h),[h]);return(0,z.jsxs)(uo,{"data-sidebar-sticky-project-item":``,children:[(0,z.jsx)(cc,{project:e,onOpenChange:p,children:(0,z.jsxs)(oo,{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)($n,{to:`/projects/${e.id}`,onClick:s,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:()=>{c(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`,Pn),children:(0,z.jsxs)(`span`,{className:I(`relative inline-flex items-center justify-center`,Fn),children:[(0,z.jsx)(F,{name:`ChevronRight`,className:I(`absolute opacity-0 transition-all duration-150 group-hover/project-row:opacity-100`,Fn,!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`,Fn)}):(0,z.jsx)(F,{name:`FolderOpen`,className:I(`absolute opacity-100 transition-opacity duration-150 group-hover/project-row:opacity-0`,Fn)})]})}),(0,z.jsx)(`span`,{className:`pointer-events-none relative z-10 min-w-0 flex-1 truncate text-left`,children:e.name}),o?(0,z.jsx)($n,{to:`/projects/${e.id}/settings`,onClick:e=>{e.stopPropagation(),s?.()},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`,pn),children:(0,z.jsx)(F,{name:`AlertTriangle`,className:Fn})}):null,(0,z.jsx)(sc,{project:e,onOpenChange:d,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`,pn,m?`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)(go,{})}):h.length>0?(0,z.jsxs)(`div`,{className:I(`relative space-y-0.5 group-data-[collapsible=icon]:hidden`,NJ),children:[g.map(t=>(0,z.jsx)(cY,{projectId:e.id,managerThreadGroup:t,selectedThreadId:n,isManagerCollapsed:a.has(t.managerThread.id),onProjectSelect:s,onToggleManagerCollapsed:l},t.managerThread.id)),_.map(t=>t.kind===`thread`?(0,z.jsx)(UJ,{projectId:e.id,thread:t.thread,isActive:n===t.thread.id,onProjectSelect:s,options:eY},`thread:${t.thread.id}`):(0,z.jsx)(oY,{projectId:e.id,environmentThreadGroup:t.group,selectedThreadId:n,onProjectSelect:s},`env:${t.group.environmentId}`))]}):(0,z.jsx)(Do,{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 uY(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)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}if(e.collapsedManagerIds===t.collapsedManagerIds||e.threadListState.status!==`ready`)return!0;for(let n of e.threadListState.threads)if(n.type===`manager`&&e.collapsedManagerIds.has(n.id)!==t.collapsedManagerIds.has(n.id))return!1;return!0}var dY=(0,R.memo)(lY,uY),fY=I(EJ,DJ,MJ,gt,`min-w-0 justify-start overflow-hidden font-normal ring-sidebar-ring focus-visible:ring-2 max-md:pointer-coarse:[&_svg]:size-5`),pY=I(`inline-flex shrink-0 items-center justify-center`,pn);function mY({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:So({hasResolvedData:c.data!==void 0,isFetching:c.isFetching,isLoadingError:c.isLoadingError,serverConnectionState:n,connectionGracePeriodElapsed:r}).status}))}return{threads:i,threadStatesByProjectId:a}}var hY={status:`loading`};function gY({status:e,threads:t}){switch(e){case`ready`:return{status:`ready`,threads:t??[]};case`unavailable`:return{status:`unavailable`};case`loading`:case void 0:return hY}}function _Y({onNewProject:e,isCreatingProject:t}){return(0,z.jsxs)(cn,{children:[(0,z.jsx)($t,{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`,rn),children:(0,z.jsx)(F,{name:`MoreHorizontal`,className:Fn})})}),(0,z.jsx)(bn,{align:`end`,className:`w-40`,mobileTitle:`Project options`,children:(0,z.jsx)(Zt,{disabled:t,onSelect:()=>{window.setTimeout(e,0)},children:`Add project`})})]})}function vY({onNewProject:e,isCreatingProject:t=!1}){return(0,z.jsxs)(oo,{tier:`label`,className:`justify-between pr-1`,children:[`Projects`,e?(0,z.jsx)(_Y,{onNewProject:e,isCreatingProject:t}):null]})}function yY({onNewChat:e,onNewManager:t,selectedProjectId:n,isManagerActionPending:r}){let i=!e;return(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsxs)(N,{type:`button`,size:`sm`,variant:`ghost`,className:fY,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:pY,"aria-hidden":`true`})]}),(0,z.jsxs)(N,{type:`button`,size:`sm`,variant:`ghost`,className:fY,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:pY,"aria-hidden":`true`})]})]})}function bY({onNewProject:e,isCreatingProject:t=!1,children:n}){return(0,z.jsxs)(ao,{"data-sidebar-sticky-density":`compact-actions`,children:[(0,z.jsx)(vY,{onNewProject:e,isCreatingProject:t}),(0,z.jsx)(co,{children:(0,z.jsx)(lo,{className:`gap-1`,children:n})})]})}function xY({onNewProject:e,onProjectSelect:t,selectedProjectId:n,isCreatingProject:r=!1}){let i=Or(),a=i.isSuccess||i.isError,{data:o,isFetching:s,isLoadingError:c}=kr({enabled:a}),l=Dt(),u=Co(),d=wo({hasResolvedData:o!==void 0,isFetching:i.isFetching||s,isLoadingError:c}),f=(0,R.useMemo)(()=>(o??[]).map(e=>e.id),[o]),{threads:p,threadStatesByProjectId:m}=Oi({queries:(0,R.useMemo)(()=>f.map(e=>({enabled:a,queryKey:nt({projectId:e,archived:!1}),queryFn:({signal:t})=>Me({projectId:e,archived:!1},t),staleTime:1e4})),[a,f]),combine:(0,R.useCallback)(e=>mY({projectIds:f,queryResults:e,serverConnectionState:l,connectionGracePeriodElapsed:u}),[f,l,u])}),{localHostId:h}=Vr(),{threadId:g,isProjectMainView:_}=bo(),v=(0,R.useMemo)(()=>{if(!h||!o)return[];let e=[];for(let t of o){let n=tt(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=To((0,R.useMemo)(()=>h?v.map(e=>e.path):[],[h,v])),[x,S]=Ar(ec),[C,w]=Ar(tc),T=(0,R.useMemo)(()=>new Set(x),[x]),E=(0,R.useMemo)(()=>new Set(C),[C]),D=(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]),O=(0,R.useMemo)(()=>{let e=new Map;for(let t of o??[]){let n=m.get(t.id)?.status,r=D.get(t.id);e.set(t.id,gY({status:n,threads:r}))}return e},[o,m,D]),ee=(0,R.useCallback)(e=>{S(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),Array.from(n)})},[S]),te=(0,R.useCallback)(e=>{w(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),Array.from(n)})},[w]);return(0,z.jsx)(bY,{onNewProject:e,isCreatingProject:r,children:d.status===`loading`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(go,{}),(0,z.jsx)(go,{})]}):o&&o.length>0?o.map(e=>{let r=O.get(e.id)??hY,i=Eo(b,y.get(e.id));return(0,z.jsx)(dY,{project:e,threadListState:r,selectedThreadId:g,isActive:n===e.id&&_,isCollapsed:T.has(e.id),collapsedManagerIds:E,isLocalPathInvalid:i,onProjectSelect:t,onToggleProjectCollapsed:ee,onToggleManagerCollapsed:te},e.id)}):(0,z.jsx)(uo,{children:(0,z.jsx)(Do,{message:d.status===`unavailable`?`Projects unavailable`:`No projects`,icon:`Folder`,className:`px-2 py-1.5`,iconClassName:`size-3.5`,messageClassName:`text-xs`})})})}var SY=(0,R.memo)(xY),CY=(0,R.createContext)(null);function wY(){let{mutate:e,isPending:t}=Nr(),n=Hs({isPending:t,submit:(0,R.useCallback)(({path:t,hostId:n,target:r,closeDialog:i})=>{if(r.kind!==`create`)return;let a=Ze(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 TY({children:e}){let t=wY();return(0,z.jsx)(CY.Provider,{value:t,children:e})}function EY(){let e=(0,R.useContext)(CY);if(!e)throw Error(`QuickCreateProjectProvider is required`);return e}function DY({onResizeMouseDown:e,isResizing:t,selectedProjectId:n,isManagerActionPending:r=!1}){let i=EY(),a=Zn(),{isCompactViewport:o,setOpenMobile:s}=Ga(),c=(0,R.useRef)(o);c.current=o;let l=(0,R.useCallback)(()=>{c.current&&s(!1)},[s]),u=(0,R.useCallback)(()=>{n&&(l(),a(`/projects/${n}`))},[l,a,n]),d=(0,R.useCallback)(e=>{l(),a(`/projects/${e}/managers/new`)},[l,a]);return(0,z.jsx)(z.Fragment,{children:(0,z.jsxs)(Ja,{children:[(0,z.jsx)(`div`,{className:`flex h-12 shrink-0 items-center px-2`,children:(0,z.jsx)(Ya,{})}),(0,z.jsx)(`div`,{className:`shrink-0 px-2 py-2 group-data-[collapsible=icon]:hidden`,children:(0,z.jsx)(yY,{onNewChat:n?u:void 0,onNewManager:n?d:void 0,selectedProjectId:n,isManagerActionPending:r})}),(0,z.jsx)(no,{children:(0,z.jsx)(SY,{onNewProject:i.isAvailable?i.openCreateDialog:void 0,onProjectSelect:l,selectedProjectId:n,isCreatingProject:i.isCreating})}),(0,z.jsxs)(eo,{className:`relative`,children:[(0,z.jsx)(x,{placement:`above`,tone:`sidebar`,size:`sm`}),(0,z.jsx)(lo,{className:`flex-row items-center`,children:(0,z.jsx)(uo,{children:(0,z.jsx)(po,{asChild:!0,className:_n,tooltip:`App settings`,"aria-label":`App settings`,children:(0,z.jsx)(ir,{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 OY=Xt;function kY({center:e,actions:t,bordered:n=!0,className:r}){let i=Ka();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)(Ya,{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 AY=wr(`bb.lastActiveProjectId`,null,Cr({parse:e=>e&&e.length>0?e:null,serialize:e=>e??``}),{getOnInit:!0});function jY(){let{projectId:e}=bo(),{data:t}=kr({enabled:!e}),n=Er(AY),r=zr(AY);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}var MY=`bb.sidebar.width`,NY=`bb.sidebar.open`,PY=240,FY=460,IY=320;function LY(e){return Math.min(FY,Math.max(PY,e))}var RY=wr(MY,IY,Cr({parse:(e,t)=>{if(e===null)return t;let n=Number(e);return Number.isFinite(n)?LY(n):t},serialize:e=>String(LY(e))}),{getOnInit:!0}),zY=wr(NY,!0,Cr({parse:(e,t)=>e===`true`?!0:e===`false`?!1:t,serialize:e=>String(e)}),{getOnInit:!0});function BY({providerRef:e,style:t,children:n}){let[r,i]=Ar(zY);return(0,z.jsx)(qa,{ref:e,style:t,open:r,onOpenChange:i,children:n})}function VY(){return Ka()?null:(0,z.jsx)(`div`,{className:`absolute left-3 top-3.5 z-20`,children:(0,z.jsx)(Ya,{className:`h-5 w-5 rounded-md p-0`})})}var HY={"/":{title:`Projects`,subtitle:`Select or create a project`},"/settings":{title:`Settings`},"/development-only/replay":{title:`Replay threads`}};function UY({usesProjectChromeStyle:e,isArchivedView:t,isSettingsView:n,projectId:r,project:i,meta:a}){let o=a.breadcrumbs,s=o||e?void 0:a.title,c=o||s||a.subtitle?(0,z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[o?(0,z.jsx)(`p`,{className:`flex min-w-0 items-center gap-1.5 text-sm font-semibold`,children:o.map((e,t)=>{let n=t===o.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)(ir,{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,s?(0,z.jsx)(`p`,{className:`truncate text-sm font-semibold`,children:s}):null,a.subtitle?(0,z.jsx)(`p`,{className:`truncate text-xs text-muted-foreground`,children:a.subtitle}):null]}):null,l=e&&r?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(ir,{to:`/projects/${r}/settings`,className:I(OY,`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)(ir,{to:`/projects/${r}/archived`,className:I(OY,`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)(sc,{project:i,triggerClassName:OY}):null]}):null;return(0,z.jsx)(kY,{bordered:!e,center:c,actions:l})}function WY({children:e}){let t=EY(),n=er(),{projectId:r,threadId:i,isProjectMainView:a,isThreadView:o,isArchivedView:s,isNewManagerView:c,isSettingsView:l,isRootView:u}=bo(),d=Or(),f=kr({enabled:d.isSuccess||d.isError}),p=f.data,m=d.isFetching||f.isLoading,h=Wn(i??``,{enabled:o&&!!i}),g=h.isSuccess||h.isError,_=ki({mutationKey:Ur}),[v,y]=Ar(RY),[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=jY(),O=!u&&!o,ee=u,te=r?p?.find(e=>e.id===r):void 0,ne=(r?te?.name:void 0)??(r?m?`Loading project…`:r:void 0),{data:k}=Gn(i??``,{enabled:!!i&&(!o||g),refetchOnMount:o&&h.isSuccess?!0:`always`}),A=k?qn(k):i?`Thread ${i.slice(0,8)}`:`Thread`,j=o?{title:k?qn(k):`Thread`,subtitle:void 0}:s&&r?{title:``,subtitle:void 0,breadcrumbs:[{label:ne??r,to:`/projects/${r}`},{label:`Archived`}]}:l&&r?{title:``,subtitle:void 0,breadcrumbs:[{label:ne??r,to:`/projects/${r}`},{label:`Settings`}]}:r?{title:ne??r,subtitle:void 0}:HY[n.pathname]??{title:``},re=(()=>{if(o)return A;if(s&&r)return`${ne??r} · Archived`;if(c&&r)return`${ne??r} · New Manager`;if(l&&r)return`${ne??r} · Settings`;if(r)return ne??r;let e=HY[n.pathname]?.title;return e&&e.length>0?e:`BB`})(),ie=(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=LY(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=re)},[re]);let ae=_>0;return(0,z.jsx)(ic,{children:(0,z.jsxs)(sl,{children:[(0,z.jsxs)(BY,{providerRef:S,style:{"--sidebar-width":`${v}px`},children:[(0,z.jsx)(DY,{onResizeMouseDown:ie,isResizing:b,selectedProjectId:D,isManagerActionPending:ae}),(0,z.jsx)(Za,{children:(0,z.jsxs)(`div`,{className:`relative flex h-[100dvh] min-w-0 w-full flex-col`,children:[ee?(0,z.jsx)(VY,{}):null,O?(0,z.jsx)(UY,{usesProjectChromeStyle:a||c||s||l,isArchivedView:s,isSettingsView:l,projectId:r,project:te,meta:j}):null,(0,z.jsx)(`main`,{className:`flex min-h-0 flex-1 flex-col p-4 md:p-5`,children:e})]})})]}),(0,z.jsx)(Us,{target:t.projectPathDialog.target,pending:t.isCreating,platform:t.platform,onOpenChange:t.projectPathDialog.onOpenChange,onSubmit:t.submitProjectPath})]})})}var GY={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 KY(){let[e]=rr(),t=e.get(`status`)===`error`?`error`:`success`,n=GY[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 qY({status:e,isCreating:t,isAvailable:n,onCreate:r,onRetry:i}){return e===`loading`?(0,z.jsx)(Qe,{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)(Qe,{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)(N,{variant:`outline`,onClick:i,children:`Try again`})]})}):n?(0,z.jsx)(Qe,{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)(N,{onClick:r,disabled:t,children:t?`Creating...`:`New project`})]})}):(0,z.jsx)(Qe,{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 JY(){let e=Or(),t=kr({enabled:e.isSuccess||e.isError}),{data:n,isLoadingError:r,refetch:i}=t,a=wo({hasResolvedData:n!==void 0,isFetching:e.isFetching||t.isFetching,isLoadingError:r}),o=EY(),s=jY();return a.status!==`loading`&&s?(0,z.jsx)(Xn,{to:`/projects/${s}`,replace:!0}):(0,z.jsx)(qY,{status:a.status,isCreating:o.isCreating,isAvailable:o.isAvailable,onCreate:()=>{o.openCreateDialog()},onRetry:()=>{i()}})}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=b([`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=hr(SX),wX=hr(e=>yX(e)),TX=hr(e=>bX(e)),EX=fr(mX,``,yr),DX=fr(lX,``,yr),OX=fr(uX,``,CX),kX=fr(dX,`medium`,wX),AX=fr(fX,`full`,TX),jX=fr(pX,``,yr);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]=Ar(EX(l)),[m,h]=Ar(DX(l)),[g,_]=Ar(OX(l)),[v,y]=Ar(kX(l)),[b,x]=Ar(AX(l)),[S,C]=Ar(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),te=d===`new-thread`?f:E.selectedProviderId,ne=d===`new-thread`?m:E.selectedModel,k=d===`new-thread`?g||void 0:E.serviceTier,A=d===`new-thread`?v:E.reasoningLevel,j=d===`new-thread`?b:E.permissionMode,re=d===`new-thread`?w??LX(S):E.environmentSelectionValue,ie=d===`component-local`?n:void 0,ae=Tn({enabled:t&&(d!==`component-local`||ie!==void 0),environmentId:ie,providerId:te||void 0}),oe=ae.data?.providers??hX,se=oe.length>=2,M=(0,R.useMemo)(()=>te&&oe.some(e=>e.id===te)?te:oe[0]?.id??``,[oe,te]),ce=(0,R.useMemo)(()=>oe.find(e=>e.id===M),[M,oe]),le=(0,R.useMemo)(()=>oe.map(e=>({value:e.id,label:e.displayName,icon:cX(e.id)?.icon})),[oe]),ue=ce?.capabilities,de=ue?.supportsServiceTier??!1,fe=ue?.supportedPermissionModes??vX,pe=fe.length>1,me=(0,R.useMemo)(()=>_X.filter(e=>fe.includes(e.value)),[fe]),N=(0,R.useMemo)(()=>{let e={};for(let t of oe)e[t.id]=t.capabilities.supportsServiceTier;return e},[oe]),he=(0,R.useMemo)(()=>{let e=ae.data?.models??[];if(!ne||e.some(e=>e.model===ne))return e;let t=(ae.data?.selectedOnlyModels??[]).find(e=>e.model===ne);return t?[t,...e]:e},[ae.data?.models,ae.data?.selectedOnlyModels,ne]),ge=(0,R.useMemo)(()=>he.length===0||he.some(e=>e.model===ne)?ne:he.find(e=>e.isDefault)?.model??he[0].model,[he,ne]),_e=(0,R.useMemo)(()=>he.map(e=>({value:e.model,label:IX(e.displayName||e.model,M)})),[he,M]),ve=(0,R.useMemo)(()=>he.find(e=>e.model===ge)??he.find(e=>e.isDefault)??he[0],[he,ge]),ye=(0,R.useMemo)(()=>{if(!ve)return[];let e=[],t=new Set,n=ve.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},[ve]),be=(0,R.useMemo)(()=>de?k:void 0,[k,de]),xe=(0,R.useMemo)(()=>ye.length===0||ye.some(e=>e.value===A)?A:ve?.defaultReasoningEffort??ye[0].value,[ve,A,ye]),Se=FX({rawPermissionMode:j,supportedPermissionModes:fe}),Ce=re;(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 we=(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]),Te=(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]),Ee=(0,R.useCallback)(e=>{if(d===`new-thread`){_(e??``);return}O.current.add(`serviceTier`),D(t=>PX({currentSelections:t,field:`serviceTier`,value:e}))},[d,_]),De=(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]),P=(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]),Oe=(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]),ke=(0,R.useCallback)(()=>{T(null)},[]);return{selectedProviderId:M,setSelectedProviderId:we,providerOptions:le,hasMultipleProviders:se,selectedProviderDisplayName:ce?.displayName??M,selectedModel:ge,setSelectedModel:Te,serviceTier:be,setServiceTier:Ee,reasoningLevel:xe,setReasoningLevel:De,permissionMode:Se,setPermissionMode:P,environmentSelectionValue:Ce,setEnvironmentSelectionValue:Oe,clearReuseEnvironment:ke,activeModel:ve,modelOptions:_e,reasoningOptions:ye,permissionModeOptions:me,supportsPermissionModeSelection:pe,supportsServiceTier:de,serviceTierSupportByProvider:N}}var zX=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`})}));zX.displayName=`Switch`;var BX=`h-8 w-fit max-w-full min-w-0 items-center gap-1 px-1 text-xs leading-tight`,VX=`border-none bg-transparent shadow-none hover:bg-transparent data-[state=open]:bg-transparent`,HX=`flex min-w-0 items-center gap-1.5`,UX=`text-warning-text`,WX=`hover:text-warning-text data-[state=open]:text-warning-text`,GX=`text-warning-text`;function KX({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`,BX,s&&`text-muted-foreground hover:text-foreground`,n===`warning`&&UX,a),children:(0,z.jsxs)(`span`,{className:HX,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 qX({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)(cn,{defaultOpen:s,modal:c,children:[(0,z.jsx)($t,{asChild:!0,children:(0,z.jsxs)(N,{type:`button`,variant:`ghost`,size:`sm`,"aria-label":e,title:u?.description?`${e}: ${p} - ${u.description}`:`${e}: ${p}`,className:I(BX,VX,o&&`text-muted-foreground hover:text-foreground`,d&&UX,d&&WX,i),children:[(0,z.jsxs)(`span`,{className:HX,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?GX:`text-muted-foreground`)})]})}),(0,z.jsxs)(bn,{align:l,className:I(`min-w-52 max-w-96`,a),mobileTitle:e,children:[(0,z.jsx)(mn,{children:e}),n.map(e=>{let n=e.icon;return(0,z.jsxs)(Zt,{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(Fn,e.value===t?`opacity-100`:`opacity-0`)})]},e.value)})]})]})}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=It(),[_,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=Tn({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]),te=(0,R.useCallback)(e=>{v(e),e||b(null)},[]),ne=(0,R.useCallback)(e=>{D&&n?.(y),o(e),v(!1),b(null)},[D,o,n,y]),k=w;return(0,z.jsxs)(uJ,{open:_,onOpenChange:te,modal:h,children:[(0,z.jsx)(dJ,{asChild:!0,children:(0,z.jsxs)(N,{type:`button`,variant:`ghost`,size:`sm`,"aria-label":`Provider and model`,title:`${C?.label??t}: ${T}${c?` (Fast mode)`:``}`,className:I(BX,VX,p&&`text-muted-foreground hover:text-foreground`,f),children:[(0,z.jsxs)(`span`,{className:HX,children:[k?(0,z.jsx)(k,{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)(fJ,{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`,Pt,r?`border-foreground text-foreground`:`border-transparent text-muted-foreground hover:text-foreground`),children:n?(0,z.jsx)(n,{className:Fn}):(0,z.jsx)(`span`,{className:I(`font-medium`,jt),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:()=>ne(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(zt,!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)(zX,{checked:c,onCheckedChange:l,"aria-label":`Fast mode`})]})})]}):null]})]})}var YX=(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)(KX,{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)(qX,{label:`Reasoning level`,value:r.value,options:r.options,onChange:r.onChange,muted:!0}):null]})}),XX=60,ZX=160;function QX(e,{minHeight:t=XX,maxHeight:n=ZX}={}){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 $X=ce({text:h().default(``),attachments:T(Je()).default([]).transform(e=>e.flatMap(e=>{let t=fe.safeParse(e);return t.success?[t.data]:[]}))});function eZ(){return{text:``,attachments:[]}}function tZ(e){return e.text.length===0&&e.attachments.length===0}function nZ(e){if(!e)return eZ();try{let t=JSON.parse(e),n=$X.safeParse(t);return n.success?n.data:eZ()}catch{return eZ()}}function rZ(e){let t=e.text,n=e.attachments;return tZ(e)?null:JSON.stringify({text:t,attachments:n})}function iZ(e,t){return rZ(e)===rZ(t)}function aZ(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 oZ(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 sZ(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:aZ(r.path),sizeBytes:0});continue}r.type===`localFile`&&n.push({type:`localFile`,path:r.path,name:r.name??aZ(r.path),sizeBytes:r.sizeBytes??0,...r.mimeType?{mimeType:r.mimeType}:{}})}return{text:t.join(`
|
|
1356
|
+
|
|
1357
|
+
`),attachments:n}}function cZ(e,t){if(/^(https?:|data:|blob:)/i.test(e))return e;if(t)return f(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 lZ(e){return e.type===`localImage`||e.mimeType?.toLowerCase().startsWith(`image/`)===!0}function uZ({attachments:e,attachmentProjectId:t,expandedImageIndex:n,onExpandedImageIndexChange:r,onRemoveAttachment:i}){let a=e.filter(lZ),o=e.filter(e=>!lZ(e)),s=a.map(e=>({alt:e.name,src:cZ(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:cZ(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)(fd,{imageSrc:l?.src??null,imageAlt:l?.alt??`Attached image`,title:`Attached image preview`,hasMultipleImages:c,onPrevious:()=>{r(n===null||s.length<=1?n:dd({currentIndex:n,direction:`previous`,itemCount:s.length}))},onNext:()=>{r(n===null||s.length<=1?n:dd({currentIndex:n,direction:`next`,itemCount:s.length}))},onClose:()=>r(null)})]})}function dZ(e){let t=e.lastIndexOf(`/`);return t===-1?{name:e,directory:``}:{name:e.slice(t+1),directory:e.slice(0,t)}}function fZ(e){let t=[];return e.forEach((e,n)=>{let r=t[t.length-1];(!r||r.kind!==e.kind)&&t.push({kind:e.kind,label:e.kind===`thread`?`Threads`:`Files`,items:[]}),t[t.length-1].items.push({item:e,index:n})}),t}function pZ({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`?fZ(e.suggestions):[],[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 pb-1`,children:e.kind===`hint`?(0,z.jsx)(`div`,{className:`px-3 py-2 text-xs text-muted-foreground`,children:`Type to search files`}):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 files…`})]}):e.kind===`error`?(0,z.jsx)(`div`,{className:`px-3 py-2 text-xs text-destructive`,children:`Failed to load suggestions`}):a.length>0?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=null;if(e.kind===`thread`)o=e.title||`Untitled thread`,c=e.threadType===`manager`?`Manager`:`Thread`;else{let{name:t,directory:n}=dZ(e.path);o=t,s=n||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:e.path,children:(0,z.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:o}),s===null?null:(0,z.jsx)(wG,{className:`text-muted-foreground [flex-shrink:9999]`,children:s}),c===null?null:(0,z.jsx)(or,{variant:`outline`,className:`shrink-0`,children:c})]})},`${e.kind}-${e.path}-${i}`)})})]},e.kind)):(0,z.jsx)(`div`,{className:`px-3 py-2 text-xs text-muted-foreground`,children:`No matching files`})})})}var mZ=/(^|[\s([{])@([^\s@]*)$/;function hZ(e,t){if(t<0||t>e.length)return null;let n=e.slice(0,t),r=mZ.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 gZ(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 _Z=68,vZ=158,yZ={thread:`bb.promptbox.zen-mode.thread`,"project-main":`bb.promptbox.zen-mode.project-main`},bZ={thread:`h-[50dvh]`,"project-main":`h-[70dvh]`};function xZ(){let e=Tr(!1);return Tr(t=>t(e),(t,n,r)=>{let i=t(e),a=typeof r==`function`?r(i):r;n(e,a===cr?!1:a)})}function SZ({id:e,value:t,onChange:n,onSubmit:r,placeholder:i=`Ask anything. @ to mention files`,className:a,header:o,footerStart:s,autoFocus:c=!1,submission:l={},minHeight:u=_Z,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,isLoading:E,isError:D,onQueryChange:O}=d,{items:ee=[],isAttaching:te=!1,error:ne=null,onAttachFiles:k,onRemove:A,projectId:j}=p,{layout:re=`thread`,storageKey:ie,resetKey:ae,resetOnSubmit:oe=!1}=m,se=(0,R.useRef)(null),M=(0,R.useRef)(null),ce=(0,R.useRef)(null),le=(0,R.useRef)(null),ue=(0,R.useRef)(t),de=QX(ce,{minHeight:u,maxHeight:vZ}),fe=(0,R.useRef)(``),pe=(0,R.useRef)(null),me=(0,R.useRef)(!1),[he,ge]=(0,R.useState)(null),[_e,ve]=(0,R.useState)(0),[ye,be]=(0,R.useState)(null),[xe,Se]=(0,R.useState)(null),[Ce,we]=(0,R.useState)(null),[Te,Ee]=(0,R.useState)(null),De=ie??yZ[re],[P,Oe]=Ar((0,R.useMemo)(()=>De?wr(De,!1,dr(),{getOnInit:!0}):xZ(),[De])),ke=h?.resetKey;(0,R.useLayoutEffect)(()=>{if(!c)return;let e=ce.current;if(!e)return;e.focus();let t=e.value.length;e.setSelectionRange(t,t)},[c,ke]),(0,R.useEffect)(()=>{if(ce.current){if(P){ce.current.style.height=`100%`;return}de(ce.current)}},[P,de,t]),(0,R.useEffect)(()=>{ue.current=t},[t]),(0,R.useEffect)(()=>{if(ae!==void 0){if(De){Oe(cr);return}Oe(!1)}},[De,Oe,ae]);let Ae=(0,R.useCallback)(()=>{Se(null),we(null),Ee(null)},[]);(0,R.useEffect)(()=>{if(!h){Ae();return}if(h.entries.length===0){Ae();return}xe!==null&&xe>=h.entries.length&&Ae()},[xe,h,Ae]),(0,R.useEffect)(()=>{Ae()},[h?.resetKey,Ae]),(0,R.useEffect)(()=>{if(!h||xe===null||!Te)return;let e=h.entries[xe];if(!e||!iZ(e,Te)){Ae();return}iZ(h.currentDraft,Te)||Ae()},[xe,h,Te,Ae]),(0,R.useLayoutEffect)(()=>{let e=M.current,t=se.current;if(e===null||!t)return;M.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},[P,re]);let je=(0,R.useCallback)(e=>{let t=e.selectionStart??e.value.length,n=pe.current,r=me.current&&n!==null;n&&!r&&(t>=n.start&&t<=n.end?n.hasLeftRange&&(pe.current=null):pe.current={...n,hasLeftRange:!0});let i=pe.current&&!pe.current.hasLeftRange&&(r||t>=pe.current.start&&t<=pe.current.end)?null:hZ(e.value,t),a=i?`${i.start}:${i.end}:${i.query}`:``;a!==fe.current&&(fe.current=a,ve(0)),ge(i),O(i?i.query:null)},[O]);(0,R.useEffect)(()=>{ce.current&&je(ce.current)},[je,t]);let Me=t.trim(),Ne=ee.length>0,Pe=Me.length>0||Ne,Fe=he!==null,Ie=(he?.query.trim()??``).length===0?{kind:`hint`}:E?{kind:`loading`}:D?{kind:`error`}:{kind:`results`,suggestions:T};(0,R.useEffect)(()=>{if(T.length===0){ve(0);return}_e>=T.length&&ve(0)},[T.length,_e]);let Le=(0,R.useCallback)(e=>{if(!ce.current||!he)return;let r=he.start,i=gZ(t,he,e.replacement);fe.current=``,pe.current={start:r,end:r+i.insertedLength,hasLeftRange:!1},me.current=!0,n(i.value),ge(null),ve(0),O(null),requestAnimationFrame(()=>{let e=ce.current;if(!e){me.current=!1;return}e.focus(),e.setSelectionRange(i.caretPosition,i.caretPosition),P?e.style.height=`100%`:de(e),je(e),me.current=!1})},[he,P,n,O,de,je,t]),Re=(0,R.useCallback)(e=>{let t=e.replace(/\s+/g,` `).trim();if(t.length===0)return;let r=ce.current,i=ue.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=ce.current;e&&(e.focus(),e.setSelectionRange(p,p),P?e.style.height=`100%`:de(e),je(e))})},[P,n,de,je]),ze=(0,R.useCallback)(()=>{let e=ue.current,t=ce.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=P?b.replace(/^Submit\s+/,``):b,Ze=(0,R.useCallback)(e=>{!k||e.length===0||k(e)},[k]),Qe=(0,R.useCallback)(()=>{if(!(!oe||!P)){if(De){Oe(cr);return}Oe(!1)}},[P,oe,De,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=ce.current;if(!e)return;e.focus();let t=e.value.length;e.setSelectionRange(t,t),P?e.style.height=`100%`:de(e),je(e)}))},[h,P,de,je]),nt=(0,R.useCallback)(()=>{let e=ce.current,t=se.current,n=e?.selectionStart??null,r=e?.selectionEnd??null,i=e?.scrollTop??null;M.current=t?.getBoundingClientRect().height??null,Oe(e=>!e),requestAnimationFrame(()=>{let e=ce.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:se,onSubmit:e=>{e.preventDefault(),$e()},onDragOver:e=>{k&&e.preventDefault()},onDrop:e=>{k&&(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`,P&&`flex flex-col pb-3`,P&&bZ[re],a),children:[(0,z.jsx)(`input`,{ref:le,type:`file`,multiple:!0,className:`hidden`,onChange:rt}),o?(0,z.jsx)(`div`,{className:I(`pr-14`,P?`pl-6 pt-6`:`pl-4 pt-3`),children:o}):null,(0,z.jsxs)(`div`,{className:I(`relative`,P&&`flex flex-1 flex-col`),children:[(0,z.jsx)(N,{type:`button`,size:`icon`,variant:`ghost`,onMouseDown:e=>{e.preventDefault()},onClick:nt,title:P?`Exit zen mode`:`Enter zen mode`,"aria-label":P?`Exit zen mode`:`Enter zen mode`,"aria-pressed":P,className:`absolute right-2 top-2 z-20 size-auto h-6 px-1.5 text-subtle-foreground hover:text-muted-foreground`,children:P?(0,z.jsx)(F,{name:`Minimize2`,className:`size-3`}):(0,z.jsx)(F,{name:`Maximize2`,className:`size-3`})}),(0,z.jsx)(`textarea`,{ref:ce,id:e,value:t,onChange:e=>{n(e.target.value),P?e.target.style.height=`100%`:de(e.target),je(e.target)},onClick:e=>{je(e.currentTarget)},onSelect:e=>{je(e.currentTarget)},onBlur:()=>{fe.current=``,pe.current&&={...pe.current,hasLeftRange:!0},ge(null),O(null)},onPaste:e=>{if(!k)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&&xe!==null?h.entries[xe]:null,s=!!(h&&o!=null&&iZ(h.currentDraft,o)),c=h!==void 0&&!i&&a&&(tZ(h.currentDraft)||s),l=Fe&&!i&&!c;if(Fe){if(e.key===`ArrowDown`&&l&&T.length>0){e.preventDefault(),ve(e=>(e+1)%T.length);return}if(e.key===`ArrowUp`&&l&&T.length>0){e.preventDefault(),ve(e=>(e+T.length-1)%T.length);return}if((e.key===`Enter`||e.key===`Tab`)&&T.length>0){e.preventDefault();let t=T[_e]??T[0];t&&Le(t);return}if(e.key===`Escape`){e.preventDefault(),fe.current=``,ge(null),O(null);return}}if(h){if(e.key===`ArrowUp`&&c&&h.entries.length>0){e.preventDefault();let t=xe===null?0:Math.min(xe+1,h.entries.length-1);xe===null&&we(h.currentDraft),Se(t);let n=h.entries[t];Ee(n),tt(n);return}if(e.key===`ArrowDown`&&c&&xe!==null){if(e.preventDefault(),xe===0){Ce&&tt(Ce),Ae();return}let t=xe-1;Se(t);let n=h.entries[t];Ee(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;P||(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`,dn,P&&`min-h-0 flex-1 px-6 pb-3 pt-8`,P&&o?`pt-3`:null),style:{minHeight:P?`0px`:`${u}px`,height:P?`100%`:void 0,maxHeight:P?`none`:`${vZ}px`}})]}),Fe?(0,z.jsx)(`div`,{className:I(`absolute -left-px -right-px z-20`,P?`bottom-14 px-3`:f===`top`?`bottom-full mb-2`:`top-full mt-2`),children:(0,z.jsx)(pZ,{state:Ie,selectedIndex:_e,onApply:Le})}):null,(0,z.jsx)(uZ,{attachments:ee,attachmentProjectId:j,expandedImageIndex:ye,onExpandedImageIndexChange:be,onRemoveAttachment:A}),ne?(0,z.jsx)(`div`,{className:`mx-3 mb-1 mt-1 text-xs text-destructive`,children:ne}):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)(N,{type:`button`,size:`icon`,variant:`ghost`,title:`Attach files`,disabled:!k||te,onClick:()=>le.current?.click(),className:yt,children:te?(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)(N,{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:yt,children:(0,z.jsx)(F,{name:`Mic`,className:`size-4`})}):null,qe?(0,z.jsx)(N,{type:`button`,size:`icon`,variant:`secondary`,title:`Stop run`,onClick:C,className:yt,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)(N,{type:`button`,size:`sm`,variant:`default`,title:`Stop and transcribe recording`,onClick:g.stop,className:I(`rounded-r-none`,Bt),children:(0,z.jsx)(F,{name:`AudioLines`,className:`size-4 animate-pulse`})}),(0,z.jsx)(N,{type:`button`,size:`sm`,variant:`default`,title:`Cancel recording`,onClick:g.cancel,className:bt,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)(N,{type:`button`,size:`sm`,variant:`default`,title:`Transcribing voice input...`,disabled:!0,className:I(`rounded-r-none`,Bt),children:[(0,z.jsx)(F,{name:`AudioLines`,className:`size-4`}),(0,z.jsx)(F,{name:`Spinner`,className:`size-4 animate-spin`})]}),(0,z.jsx)(N,{type:`button`,size:`sm`,variant:`default`,title:`Cancel transcription`,onClick:g.cancel,className:bt,children:(0,z.jsx)(F,{name:`X`,className:`size-3.5`})})]}):(0,z.jsx)(N,{type:`submit`,size:`sm`,variant:`default`,title:Xe,disabled:!Ge,className:Bt,children:v?(0,z.jsx)(F,{name:`Spinner`,className:`size-4 animate-spin`}):P?(0,z.jsx)(F,{name:`ArrowUp`,className:`size-4`}):(0,z.jsx)(F,{name:`CornerDownLeft`,className:`size-4`})})]})]})]})}var CZ=1e3,wZ=250,TZ=180,EZ=/<!doctype html|<html[\s>]/i;function DZ(e){return e.replace(/\s+/g,` `).trim()}function OZ(e){let t=e.replace(/\s+/g,` `).trim();if(t.length===0)return null;let n=t.search(EZ);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>TZ?`${t.slice(0,TZ-1)}...`:t}function kZ(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=OZ(e.message);if(t)return t}return`Voice input failed`}function AZ(){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 jZ(e,t){let n=t.includes(`ogg`)?`ogg`:t.includes(`mp4`)?`mp4`:`webm`;return new File([e],`recording.${n}`,{type:t})}function MZ(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=AZ(),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<CZ){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=jZ(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=DZ(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(kZ(e))}finally{s.current===g&&(s.current=null)}},f.start(wZ)}catch(e){m(),t.current=null,r.current=[],i.current=null,a.current=void 0,o.current=!0,s.current=null,l(`error`),d(kZ(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(kZ(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(kZ(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 C(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 NZ({file:e,promptContext:t,signal:n}){return(await c(e,t,n)).text}function PZ(e){let t=MZ({onTranscript:(0,R.useCallback)(t=>{e.current?.insertTextAtCursor(t)},[e]),onTranscribe:NZ,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 FZ({mergeBaseBranch:e,mergeBaseBranchOptions:t}){let n=t??[];return!e||n.includes(e)?n:[e,...n]}var IZ=`Checkout new branch`;function LZ({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?IZ:e??w,E=!!o&&IZ.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)(uJ,{modal:p,open:h,onOpenChange:e=>{g(e),c?.(e)},children:[(0,z.jsx)(dJ,{asChild:!0,disabled:r,children:(0,z.jsxs)(N,{type:`button`,variant:u===`default`?`outline`:`ghost`,size:`sm`,disabled:r,"aria-label":`Branch`,title:s?IZ: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:HX,children:[s?(0,z.jsx)(F,{name:`Plus`,className:an}):(0,z.jsx)(F,{name:`GitMerge`,className:an}),(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)(fJ,{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)(pr,{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`,an)}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:IZ}),(0,z.jsx)(F,{name:`Check`,className:I(s?`opacity-100`:`opacity-0`,zt)})]}):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`,an)}),(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`,zt)})]},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 RZ({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 zZ({className:e}){return(0,z.jsx)(Hr,{variant:`muted`,className:I(`shrink-0`,e),children:`offline`})}function BZ({connected:e,className:t}){return e?(0,z.jsx)(RZ,{className:t}):(0,z.jsx)(zZ,{className:t})}function VZ(e,t,n){let r=e.map(e=>{let r=e.status===`connected`,i=tt(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 HZ({value:e,onChange:t,sources:n,hosts:r,isLocalHost:i,reuseDisabled:a,muted:o,defaultOpen:s,modal:c}){let l=(0,R.useMemo)(()=>VZ(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:uc(`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=uc(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)(cn,{defaultOpen:s,modal:c,children:[(0,z.jsx)($t,{asChild:!0,children:(0,z.jsxs)(N,{type:`button`,variant:`ghost`,size:`sm`,"aria-label":`Environment`,title:`Environment: ${d.modeLabel}${d.hostLabel?` · ${d.hostLabel}`:``}`,className:I(BX,VX,o&&`text-muted-foreground hover:text-foreground`),children:[(0,z.jsxs)(`span`,{className:HX,children:[(0,z.jsx)(F,{name:d.icon,className:an}),(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)(BZ,{connected:d.hostConnected})]}),(0,z.jsx)(F,{name:`ChevronDown`,className:I(`text-muted-foreground`,sn)})]})}),(0,z.jsxs)(bn,{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)(WZ,{section:n,enabled:n.isConnected&&n.hasSource,value:e,onChange:t},n.host.id)),(0,z.jsx)(UZ,{isReuseSelected:u?.type===`reuse`,disabled:!!a,onChange:t})]})]})}function UZ({isReuseSelected:e,disabled:t,onChange:n}){return(0,z.jsxs)(Dn,{children:[(0,z.jsx)(mn,{children:`Reuse`}),(0,z.jsxs)(Zt,{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:uc(`managed-worktree`),className:I(`text-muted-foreground`,an)}),(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(Fn,e?`opacity-100`:`opacity-0`)})]})]})}function WZ({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)(Dn,{children:[(0,z.jsxs)(mn,{className:`flex items-center gap-1.5`,children:[(0,z.jsx)(`span`,{className:`truncate`,children:e.host.name}),e.isLocal?(0,z.jsx)(Kr,{}):null,e.isConnected?(0,z.jsx)(RZ,{}):null]}),t?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(GZ,{label:e.isLocal?`Work locally`:`Work remotely`,icon:uc(`other`),itemValue:i,selectedValue:n,onSelect:r}),(0,z.jsx)(GZ,{label:`New worktree`,icon:uc(`managed-worktree`),itemValue:a,selectedValue:n,onSelect:r})]}):(0,z.jsx)(Zt,{disabled:!0,className:`text-xs text-muted-foreground`,children:e.isConnected?`Host not configured for project`:`Host is offline`})]})}function GZ({label:e,icon:t,itemValue:n,selectedValue:r,onSelect:i,disabled:a}){return(0,z.jsxs)(Zt,{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`,an)}),(0,z.jsx)(`span`,{className:`truncate text-xs`,children:e})]}),(0,z.jsx)(F,{name:`Check`,className:I(Fn,n===r?`opacity-100`:`opacity-0`)})]})}function KZ({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)(qX,{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 qZ=2;function JZ({options:e,value:t,onChange:n,muted:r,defaultOpen:i,modal:a}){let o=uc(`managed-worktree`),s=(0,R.useMemo)(()=>e.find(e=>e.environmentId===t)??null,[e,t])?.branchName??`Pick a worktree`;return(0,z.jsxs)(cn,{defaultOpen:i,modal:a,children:[(0,z.jsx)($t,{asChild:!0,children:(0,z.jsxs)(N,{type:`button`,variant:`ghost`,size:`sm`,"aria-label":`Worktree`,title:`Worktree: ${s}`,className:I(BX,VX,r&&`text-muted-foreground hover:text-foreground`),children:[(0,z.jsxs)(`span`,{className:HX,children:[(0,z.jsx)(F,{name:o,className:an}),(0,z.jsx)(`span`,{className:`truncate`,children:s})]}),(0,z.jsx)(F,{name:`ChevronDown`,className:I(`text-muted-foreground`,sn)})]})}),(0,z.jsxs)(bn,{align:`start`,className:`min-w-52 max-w-80`,mobileTitle:`Worktree`,children:[(0,z.jsx)(mn,{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)(YZ,{option:e,isSelected:e.environmentId===t,onSelect:n},e.environmentId))]})]})}function YZ({option:e,isSelected:t,onSelect:n}){let r=e.threads.slice(0,qZ),i=e.threads.length-r.length;return(0,z.jsxs)(Zt,{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:uc(`managed-worktree`),className:I(`shrink-0 text-muted-foreground`,an)}),(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(Fn,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 XZ=(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),_=PZ(g),v=QY(d.value),y=v?.type===`host`,b=v?.type===`reuse`;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(SZ,{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)(YX,{...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)(HZ,{value:d.value,onChange:d.onChange,sources:d.sources,hosts:d.hosts,isLocalHost:d.isLocalHost,reuseDisabled:d.reuseDisabled,muted:!0}),y?(0,z.jsx)(LZ,{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)(JZ,{muted:!0,options:p.options,value:p.value,onChange:p.onChange}):null]}),(0,z.jsx)(KZ,{value:m.value,options:m.options,onChange:m.onChange,supported:m.supported})]})]})});function ZZ({environment:e,branch:t,...n}){let{isLocalHost:r}=Vr(),{data:i=[]}=vn(),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)(XZ,{...n,environment:l,branch:u})}var QZ=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,$Z=(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=QZ[n[e]&63];return t};function eQ(e){let t=[];for(let n of e){let e=sZ(n.input);if(tZ(e))continue;let r=t[t.length-1];r&&iZ(r,e)||t.push(e)}return t}function tQ(e,t){return Re({entries:[t,...e??[]],limit:50})}function nQ(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 rQ(e){return{id:`optimistic-prompt-history:${$Z()}`,createdAt:e.createdAt,input:e.input}}function iQ(e){return{id:`queued-message:${e.id}`,createdAt:e.createdAt,input:e.content}}function aQ(e,t,n){e.setQueryData(me(t),e=>tQ(e,n))}function oQ(e,t,n){e.setQueryData(P(t),e=>tQ(e,n))}function sQ(e){return ri(e,{queryKey:s()})}function cQ(e,t){for(let{queryKey:n,data:r}of t)e.setQueryData(n,r)}function lQ({queryClient:e,requestedAt:t,threadId:n}){ti(e,n,e=>({...e,stopRequestedAt:e.stopRequestedAt??t,updatedAt:Math.max(e.updatedAt,t)})),ni(e,{queryKey:s(),mapper:e=>e.map(e=>e.id===n?{...e,stopRequestedAt:e.stopRequestedAt??t,updatedAt:Math.max(e.updatedAt,t)}:e)})}function uQ(){let e=_e();return Pe({meta:{errorMessage:`Failed to create thread.`},mutationFn:e=>D(e),onMutate:async()=>{await e.cancelQueries({queryKey:s()})},onSuccess:(t,n)=>{e.setQueryData(Ue(t.id),t),Xr(e,t),aQ(e,n.projectId,rQ({createdAt:t.createdAt,input:n.input})),li({queryClient:e,projectId:n.projectId}),si({queryClient:e})}})}function dQ({mode:e,threadStatus:t}){return e===`steer`||e===`auto`&&t===`active`?`steer`:`message`}function fQ({createdAt:e,input:t,mode:n,threadId:r,threadStatus:i}){let a=`optimistic-user-${$Z()}`,o=t.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
1358
|
+
|
|
1359
|
+
`),s=nQ(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:dQ({mode:n,threadStatus:i}),status:`pending`}}}function pQ(){let e=_e();return Pe({meta:{errorMessage:`Failed to send message.`,showErrorToast:!1},mutationFn:({id:e,input:t,model:n,serviceTier:r,reasoningLevel:i,permissionMode:a,mode:s})=>o(e,{input:t,model:n,serviceTier:r,reasoningLevel:i,permissionMode:a,mode:s}),onMutate:async t=>{await Promise.all([e.cancelQueries({queryKey:Ue(t.id)}),e.cancelQueries({queryKey:ae(t.id)})]);let n=e.getQueryData(Ue(t.id)),r=Date.now();ti(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=fQ({createdAt:r,input:t.input,mode:t.mode,threadId:t.id,threadStatus:n?.status??null});return di(e,t.id,i),{previousThread:n,optimisticCreatedAt:r,optimisticRowId:i.id}},onError:(t,n,r)=>{r?.optimisticRowId&&ui(e,n.id,r.optimisticRowId),r?.previousThread&&e.setQueryData(Ue(n.id),r.previousThread)},onSuccess:(t,n,r)=>{oQ(e,n.id,rQ({createdAt:r?.optimisticCreatedAt??Date.now(),input:n.input})),(Gt.getConnectionState()===`connected`?mi:oi)({queryClient:e,threadId:n.id})}})}function mQ(){let e=_e();return Pe({meta:{errorMessage:`Failed to queue message.`,showErrorToast:!1},mutationFn:({id:e,input:t,model:n,serviceTier:r,reasoningLevel:i,permissionMode:a})=>ee(e,{input:t,model:n,serviceTier:r,reasoningLevel:i,permissionMode:a}),onSuccess:(t,n)=>{oQ(e,n.id,iQ(t)),pi({queryClient:e,threadId:n.id})}})}function hQ(){let e=_e();return Pe({meta:{errorMessage:`Failed to send queued message.`,showErrorToast:!1},mutationFn:({id:e,mode:t,queuedMessageId:n})=>ot(e,n,{mode:t}),onSuccess:(t,n)=>{fi({queryClient:e,threadId:n.id})}})}function gQ(){let e=_e();return Pe({meta:{errorMessage:`Failed to delete queued message.`,showErrorToast:!1},mutationFn:({id:e,queuedMessageId:t})=>pt(e,t),onSuccess:(t,n)=>{pi({queryClient:e,threadId:n.id})}})}function _Q(){let e=_e();return Pe({meta:{errorMessage:`Failed to stop thread.`},mutationFn:e=>u(e),onMutate:async t=>{await Promise.all([e.cancelQueries({queryKey:Ue(t)}),e.cancelQueries({queryKey:s()})]);let n=e.getQueryData(Ue(t)),r=sQ(e);return lQ({queryClient:e,requestedAt:Date.now(),threadId:t}),{previousThread:n,previousThreadLists:r}},onError:(t,n,r)=>{r&&(e.setQueryData(Ue(n),r.previousThread),cQ(e,r.previousThreadLists))},onSettled:(t,n,r)=>{ci({queryClient:e,threadId:r})}})}var vQ=`bb.promptbox.contents`,yQ=`3`,bQ=eZ(),xQ=new Map,SQ=new Map,CQ=!1;function wQ(e){return encodeURIComponent(e.trim())}function TQ(e){if(!e||typeof window>`u`)return bQ;let t=window.localStorage.getItem(e),n=xQ.get(e);if(n&&n.rawValue===t)return n.draft;let r=nZ(t);return xQ.set(e,{rawValue:t,draft:r}),r}function EQ(e){let t=SQ.get(e);if(!(!t||t.size===0))for(let e of t)e()}function DQ(){CQ||typeof window>`u`||(CQ=!0,window.addEventListener(`storage`,e=>{e.key&&(xQ.delete(e.key),EQ(e.key))}))}function OQ(e,t){if(!e)return()=>{};DQ();let n=SQ.get(e);return n||(n=new Set,SQ.set(e,n)),n.add(t),()=>{let n=SQ.get(e);n&&(n.delete(t),n.size===0&&SQ.delete(e))}}function kQ(e,t){if(!e||typeof window>`u`)return;let n=rZ(t);if(!n){window.localStorage.removeItem(e),xQ.set(e,{rawValue:null,draft:bQ}),EQ(e);return}window.localStorage.setItem(e,n),xQ.set(e,{rawValue:n,draft:t}),EQ(e)}function AQ(e,t){return!e||typeof window>`u`||tZ(t)||!tZ(TQ(e))?!1:(kQ(e,t),!0)}function jQ({projectId:e,threadId:t}){if(!e)return null;let n=wQ(e);return t?`${vQ}-${n}-${wQ(t)}-${yQ}`:`${vQ}-${n}-draft-${yQ}`}function MQ(e){let t=(0,R.useMemo)(()=>jQ({projectId:e.projectId,threadId:e.threadId}),[e.projectId,e.threadId]),n=(0,R.useSyncExternalStore)((0,R.useCallback)(e=>OQ(t,e),[t]),(0,R.useCallback)(()=>TQ(t),[t]),()=>bQ),r=(0,R.useCallback)(e=>{kQ(t,e)},[t]),i=(0,R.useCallback)(()=>TQ(t),[t]),a=(0,R.useCallback)(e=>{kQ(t,{...TQ(t),text:e})},[t]),o=(0,R.useCallback)(e=>{let n=e.replace(/\s+/g,` `).trim();if(n.length===0)return;let r=TQ(t),i=r.text.trimEnd(),a=i.length===0?n:`${i} ${n}`;kQ(t,{...r,text:a})},[t]),s=(0,R.useCallback)(e=>{let n=TQ(t);n.attachments.some(t=>t.path===e.path)||kQ(t,{...n,attachments:[...n.attachments,e]})},[t]),c=(0,R.useCallback)(e=>{let n=TQ(t),r=n.attachments.filter(t=>t.path!==e);r.length!==n.attachments.length&&kQ(t,{...n,attachments:r})},[t]),l=(0,R.useCallback)(()=>{r(bQ)},[r]),u=(0,R.useCallback)(e=>iZ(TQ(t),e)?(r(bQ),!0):!1,[r,t]),d=(0,R.useCallback)(e=>{kQ(t,{...TQ(t),attachments:e})},[t]),f=(0,R.useCallback)(e=>{AQ(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])}var NQ=120,PQ=8;function FQ(e,t){let[n,r]=(0,R.useState)(null),[i]=vG(n,NQ),a=n===null?null:i,o=Dr({projectId:e,query:a,limit:PQ,environmentId:t.environmentId}),s=t.threadSuggestionMode??`none`,c=Un(s===`managers`?{archived:!1,projectId:e,type:`manager`}:{archived:!1,projectId:e},{enabled:s!==`none`}),l=(n?.trim().length??0)>0,u=l&&n!==a,d=n?.trim().toLowerCase()??``,f=t.currentThreadId,p=(0,R.useMemo)(()=>(o.data?.files??[]).map(e=>({kind:`file`,path:e.path,replacement:e.path})),[o.data?.files]),m=(0,R.useMemo)(()=>s===`none`||d.length===0?[]:(c.data??[]).filter(e=>e.id!==f).filter(e=>s===`managers`?e.type===`manager`:!0).filter(e=>{let t=e.title?.trim().toLowerCase()??``;return e.id.toLowerCase().includes(d)||t.includes(d)}).sort((e,t)=>{if(e.type!==t.type)return e.type===`manager`?-1:1;let n=e.title?.trim().toLowerCase()??``,r=t.title?.trim().toLowerCase()??``;return n.localeCompare(r)||e.id.localeCompare(t.id)}).slice(0,PQ).map(e=>({kind:`thread`,path:`thread:${e.id}`,replacement:`thread:${e.id}`,threadId:e.id,title:e.title??e.titleFallback??void 0,threadType:e.type})),[f,s,c.data,d]),h=(0,R.useMemo)(()=>l?[...m,...p].slice(0,PQ):[],[l,p,m]);return{query:n,setQuery:r,suggestions:h,isLoading:l&&h.length===0&&(u||o.isPending||o.isFetching),isError:o.isError}}function IQ(e){return e.selectedBranch?{kind:`named`,name:e.selectedBranch.name}:{kind:`default`}}function LQ(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:IQ(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 RQ(e){return!e.projectId||!e.environmentValue?null:{environmentValue:e.environmentValue,projectId:e.projectId}}function zQ(e,t){return e!==void 0&&t!==null&&e.projectId===t.projectId&&e.environmentValue===t.environmentValue}function BQ(e){let[t,n]=(0,R.useState)(null),r=(0,R.useMemo)(()=>RQ({environmentValue:e.environmentValue,projectId:e.projectId}),[e.environmentValue,e.projectId]),i=t!==null&&zQ(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=(zQ(t?.scope,r)?t?.branch:null)?.name??e.currentBranch;return n?{scope:r,branch:{name:n,isNew:!0}}:zQ(t?.scope,r)?null:t})},[e.currentBranch,r]),selectedBranch:i}}var VQ=`bb.promptbox.zen-mode.project-main`;function HQ(e){if(!e||typeof e!=`object`)return null;let t=e.reuseEnvironmentId;return typeof t==`string`&&t.length>0?t:null}function UQ(e){return e.environmentId===null?!1:e.environmentWorkspaceDisplayKind===`managed-worktree`||e.environmentWorkspaceDisplayKind===`unmanaged-worktree`}function WQ(e){let t=new Map,n=new Map;for(let r of e){if(!UQ(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:qn(e)}))});return r.sort((e,t)=>e.branchName&&t.branchName?e.branchName.localeCompare(t.branchName):e.environmentId.localeCompare(t.environmentId)),r}function GQ(){let{projectId:e}=Qn(),t=er(),n=Zn(),r=Or(),i=kr({enabled:r.isSuccess||r.isError}),a=i.data,o=r.isFetching||i.isLoading,s=uQ(),{localHostId:c}=Vr(),l=Wr(),u=MQ({projectId:e,threadId:null}),{data:d=[]}=Jr(e),f=FQ(e,{environmentId:null}),[p,m]=(0,R.useState)(null),h=u.text,g=(0,R.useMemo)(()=>oZ({text:u.text,attachments:u.attachments}),[u.attachments,u.text]),_=(0,R.useMemo)(()=>gr(VQ,e),[e]),v=(0,R.useMemo)(()=>eQ(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:te,environmentSelectionValue:ne,setEnvironmentSelectionValue:k,clearReuseEnvironment:A,activeModel:j,modelOptions:re,reasoningOptions:ie,permissionModeOptions:ae,supportsPermissionModeSelection:oe,supportsServiceTier:se,serviceTierSupportByProvider:M}=RX({scope:`new-thread`,projectId:e});(0,R.useEffect)(()=>{let e=HQ(t.state);e!==null&&(k(ZY(e)),n(t.pathname+t.search,{replace:!0,state:null}))},[t.pathname,t.search,t.state,n,k]);let ce=Un({projectId:e,archived:!1},{enabled:!!e}),le=(0,R.useMemo)(()=>WQ(ce.data??[]),[ce.data]),ue=(0,R.useMemo)(()=>a?.find(t=>t.id===e),[a,e]),de=(0,R.useMemo)(()=>ue?.sources??[],[ue?.sources]),fe=(0,R.useMemo)(()=>ne&&QY(ne)?ne:c?`host:${c}:local`:``,[ne,c]),pe=(0,R.useMemo)(()=>QY(fe),[fe]),me=pe?.type===`host`,N=jr(e,me?pe.hostId:null,{enabled:me}),he=(0,R.useMemo)(()=>N.data?.branches??[],[N.data?.branches]),ge=me&&pe.mode===`local`?N.data?.current??null:N.data?.defaultBranch??null,{selectedBranch:_e,onBranchChange:ve,onCreateBranch:ye}=BQ({currentBranch:ge,environmentValue:fe,projectId:e}),be=(0,R.useMemo)(()=>LQ({environmentValue:fe,projectId:e,currentBranch:ge,selectedBranch:_e}),[fe,e,ge,_e]),xe=(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]),Se=j?.model??C,Ce=(0,R.useCallback)(t=>{t!==e&&n(`/projects/${t}`)},[n,e]),we=typeof t.state==`object`&&t.state!==null&&`focusPrompt`in t.state&&t.state.focusPrompt===!0;(0,R.useEffect)(()=>{if(!we)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,we]);let Te=(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(Zc({error:e,fallbackMessage:`Attachment upload failed.`}));break}}},[e,u,l]),Ee=(0,R.useCallback)(async()=>{let t={text:u.text,attachments:u.attachments},n=oZ(t);if(!(n.length===0||s.isPending||!be||!y||!Se||!e)){m(null);try{await s.mutateAsync({input:n,projectId:e,providerId:y,model:Se,...se&&T?{serviceTier:T}:{},reasoningLevel:D,permissionMode:ee,environment:be}),u.clearIfCurrentMatches(t)}catch{}}},[s,ee,e,u,D,be,y,Se,T,se]),De=s.isPending||g.length===0||!be||!y||!Se,P=(0,R.useMemo)(()=>({text:u.text,attachments:u.attachments}),[u.attachments,u.text]),Oe=(0,R.useMemo)(()=>({currentDraft:P,entries:v,onSelectEntry:u.setDraft,resetKey:e}),[P,e,u.setDraft,v]),ke=(0,R.useMemo)(()=>({suggestions:f.suggestions,isLoading:f.isLoading,isError:f.isError,onQueryChange:f.setQuery}),[f.isError,f.isLoading,f.setQuery,f.suggestions]),Ae=(0,R.useMemo)(()=>({items:u.attachments,projectId:e??``,onAttachFiles:Te,onRemove:u.removeAttachment,isAttaching:l.isPending,error:p}),[p,Te,e,u.attachments,u.removeAttachment,l.isPending]),je=(0,R.useMemo)(()=>({provider:{options:x,selectedId:y,onChange:b,hasMultiple:S},model:{active:j,selected:C,options:re,onChange:w},serviceTier:{value:T,onChange:E,supported:se,supportByProvider:M},reasoning:{value:D,options:ie,onChange:O}}),[j,S,re,x,D,ie,C,y,T,M,O,w,b,E,se]),Me=(0,R.useMemo)(()=>({value:fe,onChange:k,sources:de,reuseDisabled:le.length===0}),[fe,de,le.length,k]),Ne=(0,R.useMemo)(()=>({options:le,value:pe?.type===`reuse`?pe.environmentId:null,onChange:e=>{k(ZY(e))}}),[pe,le,k]),Pe=(0,R.useMemo)(()=>({value:_e?.name??null,current:ge,isNew:_e?.isNew??!1,options:he,loading:N.isLoading,placeholder:`Default branch`,onChange:ve,onCreate:ye}),[N.isLoading,he,ge,ve,ye,_e?.isNew,_e?.name]),Fe=(0,R.useMemo)(()=>({value:ee,options:ae,onChange:te,supported:oe}),[ee,ae,te,oe]),Ie=(0,R.useMemo)(()=>pe?.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:A,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,[A,pe]);return e?(0,z.jsx)(Qe,{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)(qX,{label:`Project`,value:e,options:xe,onChange:Ce,className:`h-8 text-sm`})}):null}),(0,z.jsx)(ZZ,{id:`project-main-prompt`,value:h,onChange:u.setText,onSubmit:Ee,isSubmitting:s.isPending,disabled:De,zenModeStorageKey:_,history:Oe,mentions:ke,attachments:Ae,execution:je,environment:Me,branch:Pe,worktree:Ne,permission:Fe,header:Ie})]})}):(0,z.jsx)(Qe,{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 KQ({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}function qQ({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=Lr(c),d=t.length<=1;return(0,z.jsxs)(cn,{defaultOpen:o,modal:s,children:[(0,z.jsx)($t,{asChild:!0,children:(0,z.jsxs)(N,{type:`button`,variant:`ghost`,size:`sm`,"aria-label":`Host`,title:`Host: ${l}`,className:I(BX,VX,a&&`text-muted-foreground hover:text-foreground`),children:[(0,z.jsxs)(`span`,{className:HX,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)(bn,{align:`start`,className:`min-w-44 max-w-80`,mobileTitle:`Host`,children:[(0,z.jsx)(mn,{children:`Host`}),t.length>0?t.map(e=>(0,z.jsxs)(Zt,{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:Lr(e),className:`size-3.5 shrink-0`}),(0,z.jsx)(`span`,{className:`truncate`,children:e.name}),i(e.id)?(0,z.jsx)(Kr,{}):null,(0,z.jsx)(BZ,{connected:e.status===`connected`})]}),(0,z.jsx)(F,{name:`Check`,className:I(zt,e.id===n?`opacity-100`:`opacity-0`)})]},e.id)):(0,z.jsx)(Zt,{disabled:!0,className:`text-xs text-muted-foreground`,children:`No hosts available for this project`})]})]})}var JQ={low:`Low`,medium:`Medium`,high:`High`,xhigh:`Extra High`,max:`Max`},YQ=[],XQ=[],ZQ=[],QQ=[];function $Q(e){return`/projects/${e}/managers/new`}function e$(){let{projectId:e}=Qn(),t=Zn(),[n,r]=(0,R.useState)(``),i=kr(),a=i.data??ZQ,o=i.data!==void 0,{data:s=[]}=vn(),{isLocalHost:c}=Vr(),l=Tn({providerId:n||void 0}),u=l.data?.providers??YQ,d=l.data!==void 0,f=l.data?.models??XQ,p=qr(),m=(0,R.useCallback)(async e=>{let n=await p.mutateAsync(e);t(`/projects/${n.projectId}/threads/${n.id}`)},[p,t]),h=(0,R.useCallback)(n=>{n!==e&&t($Q(n))},[t,e]);return e?(0,z.jsx)(Qe,{contentClassName:`pt-4 md:pt-5`,children:(0,z.jsx)(t$,{projectId:e,projects:a,projectsAreLoaded:o,providers:u,providersAreLoaded:d,hosts:s,isLocalHost:c,models:f,selectedProviderId:n,onSelectedProviderIdChange:r,onProjectChange:h,onHire:m,isHirePending:p.isPending})}):(0,z.jsx)(Qe,{contentClassName:`min-h-full items-center justify-center`,children:(0,z.jsxs)(`div`,{className:`flex flex-col items-center gap-3 py-12 text-center`,children:[(0,z.jsx)(F,{name:`FolderOpen`,className:`size-5 text-muted-foreground`,"aria-hidden":!0}),(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Pick a project from the sidebar to hire a manager.`})]})})}function t$({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??``,te=O!==null,ne=i?`No providers available`:`Loading providers…`,k=n?`No projects available`:`Loading projects…`,A=(0,R.useMemo)(()=>t.some(t=>t.id===e)?e:t[0]?.id??e,[e,t]),j=(0,R.useMemo)(()=>t.find(e=>e.id===A)??null,[A,t]),re=(0,R.useMemo)(()=>t.map(e=>({value:e.id,label:e.name})),[t]),ie=j?.sources??QQ;(0,R.useEffect)(()=>{!i||!c||!O||O.id!==c&&l(O.id)},[l,i,O,c]);let ae=(0,R.useMemo)(()=>s.find(e=>e.model===g),[s,g]),oe=(0,R.useMemo)(()=>ae?.supportedReasoningEfforts?.length?ae.supportedReasoningEfforts.map(e=>({value:e.reasoningEffort,label:JQ[e.reasoningEffort]??e.reasoningEffort})):[],[ae]),se=(0,R.useMemo)(()=>r.map(e=>({value:e.id,label:e.displayName,icon:cX(e.id)?.icon})),[r]),M=O?.id,ce=(0,R.useMemo)(()=>s.map(e=>({value:e.model,label:IX(e.displayName||e.model,M)})),[s,M]);(0,R.useEffect)(()=>{te&&s.length>0&&!s.some(e=>e.model===g)&&_(s.find(e=>e.isDefault)?.model??s[0]?.model??``)},[te,s,g]),(0,R.useEffect)(()=>{if(!ae){y(``);return}let e=oe.some(e=>e.value===v);b===`user`&&e||y(ae.defaultReasoningEffort??oe[0]?.value??``)},[oe,b,ae,v]);let le=oe.find(e=>e.value===v)?.value??oe[0]?.value,ue=(0,R.useMemo)(()=>a.filter(e=>e.status===`connected`&&tt(ie,e.id)!==void 0),[a,ie]);(0,R.useEffect)(()=>{if(ue.length===0){S&&C(``);return}ue.some(e=>e.id===S)||C(ue.find(e=>o(e.id))?.id??ue[0].id)},[ue,S,o]);let de=(0,R.useCallback)(e=>{l(e),D(null)},[l]),fe=(0,R.useCallback)(e=>{u(e),D(null)},[u]),pe=(0,R.useCallback)(e=>{_(e),x(`default`),D(null)},[]),me=(0,R.useCallback)(e=>{y(e),x(`user`),D(null)},[]),he=(0,R.useCallback)(async e=>{if(e.preventDefault(),!(!A||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:A,...e?{name:e}:{},providerId:O.id,model:g,...le?{reasoningLevel:le}:{},environment:{type:`host`,hostId:S}})}catch(e){D(Zc({error:e,fallbackMessage:`Failed to hire manager.`}))}finally{T(!1)}}},[le,A,f,w,m,d,S,g,O]),ge=w||f;return(0,z.jsxs)(`form`,{"aria-label":`Hire manager`,className:`space-y-1`,onSubmit:he,children:[(0,z.jsx)(`div`,{className:`flex items-center px-3.5`,children:re.length>0?(0,z.jsx)(qX,{label:`Project`,value:A,options:re,onChange:fe,className:`h-8 text-sm`}):(0,z.jsx)(n$,{isLoading:!n,message:k})}),(0,z.jsxs)(`div`,{className:`relative w-full rounded-lg border border-border bg-background pb-2`,children:[(0,z.jsxs)(`div`,{className:`space-y-3 px-4 pt-3`,children:[(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2 text-sm`,children:[(0,z.jsx)(F,{name:`UserRoundPlus`,className:`size-4 shrink-0 text-primary`}),(0,z.jsx)(`span`,{className:`font-medium text-foreground`,children:`New Manager`})]}),(0,z.jsx)(`p`,{className:`text-sm leading-relaxed text-muted-foreground`,children:`A manager is a teammate that coordinates work for you and delegates to worker threads. They remember your preferences and use bb just like you do.`})]}),(0,z.jsxs)(`div`,{className:`space-y-1`,children:[(0,z.jsx)(`p`,{className:`text-sm font-medium text-foreground`,children:`They can:`}),(0,z.jsxs)(`ul`,{className:`list-disc space-y-0.5 pl-5 text-sm leading-relaxed text-muted-foreground`,children:[(0,z.jsx)(`li`,{children:`Orchestrate work across multiple threads`}),(0,z.jsx)(`li`,{children:`Handle the repetitive parts of your work`}),(0,z.jsx)(`li`,{children:`Schedule recurring check-ins or future tasks`})]})]})]}),(0,z.jsx)(`div`,{className:`px-4 pt-3`,children:(0,z.jsx)(pr,{id:p,value:m,placeholder:`Give them a name (optional)`,disabled:w,"aria-label":`Manager name`,className:`h-10 border-input text-sm`,onChange:e=>{h(e.target.value),D(null)}})}),(0,z.jsxs)(`div`,{className:`flex flex-row items-center gap-3 pl-3.5 pr-4 pt-1.5`,children:[(0,z.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-row items-center gap-1`,children:te?ce.length>0?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(JX,{providerOptions:se,selectedProviderId:ee,onSelectedProviderChange:de,hasMultipleProviders:r.length>1,modelValue:g,modelOptions:ce,onModelChange:pe,formatModelLabel:IX,fastModeEnabled:!1,onFastModeChange:()=>{},showFastModeToggle:!1,muted:!0}),oe.length>0?(0,z.jsx)(qX,{label:`Reasoning`,value:le??oe[0].value,options:oe,onChange:me,muted:!0}):null,(0,z.jsx)(qQ,{hosts:a,eligibleHosts:ue,selectedHostId:S,onChange:C,isLocalHost:o,muted:!0})]}):(0,z.jsx)(n$,{isLoading:!0,message:`Loading models…`}):(0,z.jsx)(n$,{isLoading:!i,message:ne})}),(0,z.jsx)(`div`,{className:`flex shrink-0 flex-row items-center gap-1`,children:(0,z.jsx)(N,{type:`submit`,size:`sm`,variant:`default`,title:ge?`Hiring…`:`Hire manager`,"aria-label":`Hire Manager`,disabled:ge,className:Bt,children:ge?(0,z.jsx)(F,{name:`Spinner`,className:`size-4 animate-spin`}):(0,z.jsx)(F,{name:`UserRoundPlus`,className:`size-4`})})})]})]}),(0,z.jsx)(KQ,{message:E})]})}function n$({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]})}function r$(e){let t=new Map,n=Ge({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 i$=50,a$=200,o$=250,s$=500;function c$(e,t){return e?t?Array.from(new Set([...e,...t])):e:t}function l$(e,t){let n=c$(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 u$(){return{changedThreadKinds:new Map,globalChangeKinds:new Set,metadataByThreadId:new Map}}function d$(e){e.changedThreadKinds.clear(),e.globalChangeKinds.clear(),e.metadataByThreadId.clear()}function f$({environmentId:e,queryClient:t}){let n=new Set;for(let[,r]of t.getQueriesData({queryKey:i()}))r?.environmentId===e&&n.add(r.id);for(let{data:r}of ri(t,{queryKey:s()}))for(let t of ei(r))t.environmentId===e&&n.add(t.id);return Array.from(n)}function p$({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 m$(e,t){for(let n of t.globalChangeKinds)$r({context:{eventTypes:void 0,hasPendingInteraction:void 0,projectId:void 0,queryClient:e,threadId:void 0},handlers:ai[n].dirty});for(let[n,r]of t.changedThreadKinds){let i=t.metadataByThreadId.get(n);for(let t of r)$r({context:{hasPendingInteraction:i?.hasPendingInteraction,eventTypes:i?.eventTypes,projectId:i?.projectId,queryClient:e,threadId:n},handlers:ai[t].dirty})}d$(t)}function h$(e,t){if(t.entity===`thread`){if(t.id){p$({changes:t.changes,state:e,threadId:t.id}),t.metadata&&e.metadataByThreadId.set(t.id,l$(e.metadataByThreadId.get(t.id),t.metadata));return}for(let n of t.changes)e.globalChangeKinds.add(n)}}function g$({changeKinds:e,environmentId:t,queryClient:n}){for(let r of e)$r({context:{environmentId:t,getCachedThreadIdsForEnvironment:()=>f$({environmentId:t,queryClient:n}),queryClient:n},handlers:gi[r].dirty})}function _$({queryClient:e}){let t=u$(),n=Ge({debounceMs:i$,maxWaitMs:a$,onFlush:()=>m$(e,t)}),r=r$({debounceMs:o$,flushChangedEnvironmentIds:t=>{for(let{changeKinds:n,environmentId:r}of t)g$({changeKinds:n,environmentId:r,queryClient:e})},maxWaitMs:s$});return{dispose:()=>{n.dispose(),r.dispose(),d$(t)},handleChanged:i=>{switch(i.entity){case`thread`:h$(t,i),Qr(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)$r({context:{queryClient:e},handlers:ii[t].dirty});break;case`project`:for(let t of i.changes)$r({context:{projectId:i.id,queryClient:e},handlers:Zr[t].dirty});break;case`system`:for(let t of i.changes)$r({context:{queryClient:e},handlers:hi[t].dirty});break;default:C(i)}},handleConnected:({reconnected:t})=>{if(t){Is({queryClient:e});return}Ls({queryClient:e})}}}function v$(){let e=_e();(0,R.useEffect)(()=>{let t=_$({queryClient:e}),n=Gt.onConnected(t.handleConnected),r=Gt.onChanged(t.handleChanged);return Gt.connect(),Gt.subscribe(`thread`),Gt.subscribe(`project`),Gt.subscribe(`environment`),Gt.subscribe(`host`),Gt.subscribe(`system`),()=>{t.dispose(),n(),r(),Gt.unsubscribe(`thread`),Gt.unsubscribe(`project`),Gt.unsubscribe(`environment`),Gt.unsubscribe(`host`),Gt.unsubscribe(`system`)}},[e])}var y$=`/auth/callback`,b$=`/settings`,x$=`/projects/:projectId`,S$=`/projects/:projectId/managers/new`,C$=`/projects/:projectId/settings`,w$=`/projects/:projectId/archived`,T$=`/projects/:projectId/threads/:threadId`,E$=[`/`,y$,b$,x$,S$,C$,w$,T$],D$=(0,R.lazy)(()=>L(()=>import(`./ThreadDetailRoute-D8k29X_E.js`),__vite__mapDeps([102,1,103,104,105,106,107,108,109,110,111]))),O$=(0,R.lazy)(()=>L(()=>import(`./AppSettingsView-SFYjccBR.js`).then(e=>({default:e.AppSettingsView})),__vite__mapDeps([112,1,108,109,113]))),k$=(0,R.lazy)(()=>L(()=>import(`./ProjectSettingsView-C_WCJcrH.js`).then(e=>({default:e.ProjectSettingsView})),__vite__mapDeps([114,1,103,107,108,109,106,113]))),A$=(0,R.lazy)(()=>L(()=>import(`./ProjectArchivedThreadsView-DAF8LFet.js`).then(e=>({default:e.ProjectArchivedThreadsView})),__vite__mapDeps([115,1,103,104,105,106])));(0,R.lazy)(()=>L(()=>import(`./InternalReplayListView-D-5BEgLK.js`).then(e=>({default:e.InternalReplayListView})),__vite__mapDeps([116,1,103,108,110])));function j$(){return(0,z.jsx)(WY,{children:(0,z.jsx)(R.Suspense,{fallback:null,children:(0,z.jsxs)(ar,{children:[(0,z.jsx)(nr,{path:`/`,element:(0,z.jsx)(JY,{})}),(0,z.jsx)(nr,{path:b$,element:(0,z.jsx)(O$,{})}),null,(0,z.jsx)(nr,{path:x$,element:(0,z.jsx)(GQ,{})}),(0,z.jsx)(nr,{path:S$,element:(0,z.jsx)(e$,{})}),(0,z.jsx)(nr,{path:C$,element:(0,z.jsx)(k$,{})}),(0,z.jsx)(nr,{path:w$,element:(0,z.jsx)(A$,{})}),(0,z.jsx)(nr,{path:T$,element:(0,z.jsx)(D$,{})}),(0,z.jsx)(nr,{path:`*`,element:(0,z.jsx)(Xn,{to:`/`,replace:!0})})]})})})}function M$(){return v$(),(0,z.jsx)(TY,{children:(0,z.jsxs)(ar,{children:[(0,z.jsx)(nr,{path:y$,element:(0,z.jsx)(KY,{})}),(0,z.jsx)(nr,{path:`*`,element:(0,z.jsx)(j$,{})})]})})}function N$(e){return(0,z.jsx)(Hc,{...e})}function P$(e){return(0,z.jsx)(N$,{theme:cD(),...e})}function F$(e={}){let t=e.defaultOptions,n=e.showMutationErrorToasts??!0;return new Di({mutationCache:new xi({onError:(e,t,r,i)=>{if(!n)return;let a=Xc(i.meta);a.showErrorToast!==!1&&$c({error:e,fallbackMessage:a.errorMessage??`Request failed.`})}}),defaultOptions:{...t,queries:{staleTime:2e3,refetchOnWindowFocus:!0,retry:0,...t?.queries}}})}var I$=F$();oD(),(0,Mi.createRoot)(document.getElementById(`root`)).render((0,z.jsx)(R.StrictMode,{children:(0,z.jsxs)(ke,{client:I$,children:[(0,z.jsx)(tr,{children:(0,z.jsx)(M$,{})}),(0,z.jsx)(P$,{position:`bottom-right`})]})}));export{ZW as $,uc as $t,NK as A,VN as At,NG as B,uD as Bt,cX as C,rL as Ct,Aq as D,XN as Dt,CJ as E,JN as Et,BG as F,sN as Ft,TG as G,Al as Gt,FG as H,gd as Ht,UG as I,SO as It,uG as J,fl as Jt,wG as K,hl as Kt,LG as L,HD as Lt,CK as M,BN as Mt,GG as N,HN as Nt,kq as O,WN as Ot,$G as P,lN as Pt,QW as Q,fc as Qt,PG as R,QE as Rt,RX as S,nU as St,OY as T,ZN as Tt,kG as U,pd as Ut,MG as V,hd as Vt,AG as W,yu as Wt,lG as X,$c as Xt,sG as Y,Zc as Yt,$W as Z,Ec as Zt,cZ as _,cU as _t,mQ as a,Oo as an,zU as at,YX as b,aU as bt,hQ as c,To as cn,IU as ct,KZ as d,SU as dt,Us as en,KU as et,BZ as f,xU as ft,SZ as g,uU as gt,PZ as h,pU as ht,MQ as i,Bs as in,BU as it,SK as j,kN as jt,Oq as k,GN as kt,_Q as l,wo as ln,FU as lt,FZ as m,hU as mt,KQ as n,Rs as nn,WU as nt,gQ as o,Do as on,RU as ot,LZ as p,vU as pt,SG as q,B as qt,FQ as r,zs as rn,VU as rt,pQ as s,Eo as sn,LU as st,E$ as t,Hs as tn,GU as tt,eQ as u,Hi as un,CU as ut,oZ as v,sU as vt,kY as w,tP as wt,KX as x,rU as xt,sZ as y,oU as yt,jG as z,cD as zt};
|