modviz 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/summary-D703Zh3x.js","assets/jsx-runtime-DWSWI4JT.js","assets/modviz-data-BiRqoDI5.js","assets/modviz-layout-Do93E-IB.js","assets/utils-DkkZd0ys.js","assets/setup-view-j1o0TuZz.js","assets/formatting-CiC0SYI8.js","assets/configure-DnlSnhtN.js","assets/button-aOWckyNs.js","assets/check-C0EQe2S8.js","assets/input-BCFMF0aR.js","assets/routes-DBtN8hrZ.js"])))=>i.map(i=>d[i]);
2
- import{a as e,n as t,r as n,t as r}from"./jsx-runtime-DWSWI4JT.js";import{$ as i,B as a,C as o,D as s,E as c,F as l,G as u,H as d,I as f,J as p,K as m,L as h,M as g,N as _,O as v,P as y,Q as b,R as x,S,T as C,U as ee,V as te,W as ne,X as re,Y as ie,Z as ae,_ as oe,at as se,b as ce,ct as le,et as ue,h as w,it as E,j as de,k as fe,m as pe,ot as me,q as he,rt as D,st as ge,t as _e,tt as ve,v as ye,w as be,x as xe,y as Se,z as Ce}from"./modviz-data-BiRqoDI5.js";import{n as we,t as Te}from"./lazyRouteComponent-PTSyFp1J.js";import{t as Ee}from"./treemap-Csroy8Gy.js";import{t as De}from"./trace-B67CM5s2.js";import{t as Oe}from"./imports-CPggnrs-.js";import{t as ke}from"./hierarchy-iO7d4oSK.js";import{t as Ae}from"./graph-CVzypIGU.js";import{t as je}from"./explorer-C7NclVKg.js";import{t as Me}from"./compare-TOnoe1EP.js";var Ne=n((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,ie());else{var t=n(l);t!==null&&se(x,t.startTime-e)}}var S=!1,C=-1,ee=5,te=-1;function ne(){return g?!0:!(e.unstable_now()-te<ee)}function re(){if(g=!1,S){var t=e.unstable_now();te=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&&ne());){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&&se(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ie():S=!1}}}var ie;if(typeof y==`function`)ie=function(){y(re)};else if(typeof MessageChannel<`u`){var ae=new MessageChannel,oe=ae.port2;ae.port1.onmessage=re,ie=function(){oe.postMessage(null)}}else ie=function(){_(re,0)};function se(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`):ee=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,se(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ie()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Pe=n(((e,t)=>{t.exports=Ne()})),Fe=n((e=>{var n=Pe(),r=t(),i=le();function a(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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(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 c(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 l(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 u(e){if(s(e)!==e)throw Error(a(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return u(i),e;if(o===r)return u(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),ne=Symbol.for(`react.lazy`),re=Symbol.for(`react.activity`),ie=Symbol.for(`react.memo_cache_sentinel`),ae=Symbol.iterator;function oe(e){return typeof e!=`object`||!e?null:(e=ae&&e[ae]||e[`@@iterator`],typeof e==`function`?e:null)}var se=Symbol.for(`react.client.reference`);function ce(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case ee:return`SuspenseList`;case re:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case te:return t=e.displayName||null,t===null?ce(e.type)||`Memo`:t;case ne:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var ue=Array.isArray,w=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},fe=[],pe=-1;function me(e){return{current:e}}function he(e){0>pe||(e.current=fe[pe],fe[pe]=null,pe--)}function D(e,t){pe++,fe[pe]=e.current,e.current=t}var ge=me(null),_e=me(null),ve=me(null),ye=me(null);function be(e,t){switch(D(ve,t),D(_e,e),D(ge,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}he(ge),D(ge,e)}function xe(){he(ge),he(_e),he(ve)}function Se(e){e.memoizedState!==null&&D(ye,e);var t=ge.current,n=Ud(t,e.type);t!==n&&(D(_e,e),D(ge,n))}function Ce(e){_e.current===e&&(he(ge),he(_e)),ye.current===e&&(he(ye),$f._currentValue=de)}var we,Te;function Ee(e){if(we===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||``,Te=-1<e.stack.indexOf(`
2
+ import{a as e,n as t,r as n,t as r}from"./jsx-runtime-DWSWI4JT.js";import{$ as i,B as a,C as o,D as s,E as c,F as l,G as u,H as d,I as f,J as p,K as m,L as h,M as g,N as _,O as v,P as y,Q as b,R as x,S,T as C,U as ee,V as te,W as ne,X as re,Y as ie,Z as ae,_ as oe,at as se,b as ce,ct as le,et as ue,h as w,it as E,j as de,k as fe,m as pe,ot as me,q as he,rt as D,st as ge,t as _e,tt as ve,v as ye,w as be,x as xe,y as Se,z as Ce}from"./modviz-data-BiRqoDI5.js";import{n as we,t as Te}from"./lazyRouteComponent-PTSyFp1J.js";import{t as Ee}from"./treemap-B6RbbHUZ.js";import{t as De}from"./trace-B67CM5s2.js";import{t as Oe}from"./imports-CPggnrs-.js";import{t as ke}from"./hierarchy-iO7d4oSK.js";import{t as Ae}from"./graph-CVzypIGU.js";import{t as je}from"./explorer-C7NclVKg.js";import{t as Me}from"./compare-TOnoe1EP.js";var Ne=n((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,ie());else{var t=n(l);t!==null&&se(x,t.startTime-e)}}var S=!1,C=-1,ee=5,te=-1;function ne(){return g?!0:!(e.unstable_now()-te<ee)}function re(){if(g=!1,S){var t=e.unstable_now();te=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&&ne());){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&&se(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ie():S=!1}}}var ie;if(typeof y==`function`)ie=function(){y(re)};else if(typeof MessageChannel<`u`){var ae=new MessageChannel,oe=ae.port2;ae.port1.onmessage=re,ie=function(){oe.postMessage(null)}}else ie=function(){_(re,0)};function se(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`):ee=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,se(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ie()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Pe=n(((e,t)=>{t.exports=Ne()})),Fe=n((e=>{var n=Pe(),r=t(),i=le();function a(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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(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 c(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 l(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 u(e){if(s(e)!==e)throw Error(a(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return u(i),e;if(o===r)return u(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),ne=Symbol.for(`react.lazy`),re=Symbol.for(`react.activity`),ie=Symbol.for(`react.memo_cache_sentinel`),ae=Symbol.iterator;function oe(e){return typeof e!=`object`||!e?null:(e=ae&&e[ae]||e[`@@iterator`],typeof e==`function`?e:null)}var se=Symbol.for(`react.client.reference`);function ce(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case ee:return`SuspenseList`;case re:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case te:return t=e.displayName||null,t===null?ce(e.type)||`Memo`:t;case ne:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var ue=Array.isArray,w=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},fe=[],pe=-1;function me(e){return{current:e}}function he(e){0>pe||(e.current=fe[pe],fe[pe]=null,pe--)}function D(e,t){pe++,fe[pe]=e.current,e.current=t}var ge=me(null),_e=me(null),ve=me(null),ye=me(null);function be(e,t){switch(D(ve,t),D(_e,e),D(ge,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}he(ge),D(ge,e)}function xe(){he(ge),he(_e),he(ve)}function Se(e){e.memoizedState!==null&&D(ye,e);var t=ge.current,n=Ud(t,e.type);t!==n&&(D(_e,e),D(ge,n))}function Ce(e){_e.current===e&&(he(ge),he(_e)),ye.current===e&&(he(ye),$f._currentValue=de)}var we,Te;function Ee(e){if(we===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||``,Te=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+we+e+Te}var De=!1;function Oe(e,t){if(!e||De)return``;De=!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
5
  `),l=s.split(`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/treemap-BZf2shzY.js","assets/jsx-runtime-DWSWI4JT.js","assets/modviz-data-BiRqoDI5.js","assets/button-aOWckyNs.js","assets/utils-DkkZd0ys.js","assets/portal-BgAm3V3j.js","assets/floating-ui.dom-DLIT5tPE.js","assets/tooltip-B1VDU9HG.js","assets/colors-CQoWjU5E.js","assets/modviz-layout-Do93E-IB.js","assets/external-link-B9eNA-li.js","assets/setup-view-j1o0TuZz.js"])))=>i.map(i=>d[i]);
2
- import{m as e}from"./modviz-data-BiRqoDI5.js";import{n as t,t as n}from"./lazyRouteComponent-PTSyFp1J.js";import{t as r}from"./search-params-BaZRBvGI.js";var i=t(`/treemap`)({validateSearch:e=>({focus:r.string(e.focus,`root`)||`root`,page:Math.max(0,Math.floor(r.number(e.page,0))),paginate:r.boolean(e.paginate,!0),selected:r.string(e.selected)}),component:n(()=>e(()=>import(`./treemap-BZf2shzY.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),`component`)});export{i as t};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/treemap-BaEdxIhV.js","assets/jsx-runtime-DWSWI4JT.js","assets/modviz-data-BiRqoDI5.js","assets/button-aOWckyNs.js","assets/utils-DkkZd0ys.js","assets/portal-BgAm3V3j.js","assets/floating-ui.dom-DLIT5tPE.js","assets/tooltip-B1VDU9HG.js","assets/colors-CQoWjU5E.js","assets/modviz-layout-Do93E-IB.js","assets/external-link-B9eNA-li.js","assets/setup-view-j1o0TuZz.js"])))=>i.map(i=>d[i]);
2
+ import{m as e}from"./modviz-data-BiRqoDI5.js";import{n as t,t as n}from"./lazyRouteComponent-PTSyFp1J.js";import{t as r}from"./search-params-BaZRBvGI.js";var i=t(`/treemap`)({validateSearch:e=>({focus:r.string(e.focus,`root`)||`root`,page:Math.max(0,Math.floor(r.number(e.page,0))),paginate:r.boolean(e.paginate,!0),selected:r.string(e.selected)}),component:n(()=>e(()=>import(`./treemap-BaEdxIhV.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),`component`)});export{i as t};
@@ -0,0 +1,4 @@
1
+ import{a as e,n as t,t as n}from"./jsx-runtime-DWSWI4JT.js";import{_ as r,d as i,l as a,p as o,s,u as c}from"./modviz-data-BiRqoDI5.js";import{t as l}from"./treemap-B6RbbHUZ.js";import{r as u}from"./utils-DkkZd0ys.js";import{a as d,t as f}from"./modviz-layout-Do93E-IB.js";import{t as p}from"./external-link-B9eNA-li.js";import{t as m}from"./setup-view-j1o0TuZz.js";import{t as h}from"./button-aOWckyNs.js";import{i as g,r as _,t as v}from"./tooltip-B1VDU9HG.js";import{t as y}from"./portal-BgAm3V3j.js";import{t as b}from"./colors-CQoWjU5E.js";var x=u(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),S=u(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),C=`BN.BN.BN.BN.BN.BN.BN.BN.BN.S.B.S.WS.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.B.B.B.S.WS.ON.ON.ET.ET.ET.ON.ON.ON.ON.ON.ES.CS.ES.CS.CS.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.CS.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.BN.BN.BN.BN.BN.BN.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.CS.ON.ET.ET.ET.ET.ON.ON.ON.ON.L.ON.ON.BN.ON.ON.ET.ET.EN.EN.ON.L.ON.ON.ON.EN.L.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L`.split(`.`),w=[[697,698,`ON`],[706,719,`ON`],[722,735,`ON`],[741,749,`ON`],[751,767,`ON`],[768,879,`NSM`],[884,885,`ON`],[894,894,`ON`],[900,901,`ON`],[903,903,`ON`],[1014,1014,`ON`],[1155,1161,`NSM`],[1418,1418,`ON`],[1421,1422,`ON`],[1423,1423,`ET`],[1424,1424,`R`],[1425,1469,`NSM`],[1470,1470,`R`],[1471,1471,`NSM`],[1472,1472,`R`],[1473,1474,`NSM`],[1475,1475,`R`],[1476,1477,`NSM`],[1478,1478,`R`],[1479,1479,`NSM`],[1480,1535,`R`],[1536,1541,`AN`],[1542,1543,`ON`],[1544,1544,`AL`],[1545,1546,`ET`],[1547,1547,`AL`],[1548,1548,`CS`],[1549,1549,`AL`],[1550,1551,`ON`],[1552,1562,`NSM`],[1563,1610,`AL`],[1611,1631,`NSM`],[1632,1641,`AN`],[1642,1642,`ET`],[1643,1644,`AN`],[1645,1647,`AL`],[1648,1648,`NSM`],[1649,1749,`AL`],[1750,1756,`NSM`],[1757,1757,`AN`],[1758,1758,`ON`],[1759,1764,`NSM`],[1765,1766,`AL`],[1767,1768,`NSM`],[1769,1769,`ON`],[1770,1773,`NSM`],[1774,1775,`AL`],[1776,1785,`EN`],[1786,1808,`AL`],[1809,1809,`NSM`],[1810,1839,`AL`],[1840,1866,`NSM`],[1867,1957,`AL`],[1958,1968,`NSM`],[1969,1983,`AL`],[1984,2026,`R`],[2027,2035,`NSM`],[2036,2037,`R`],[2038,2041,`ON`],[2042,2044,`R`],[2045,2045,`NSM`],[2046,2069,`R`],[2070,2073,`NSM`],[2074,2074,`R`],[2075,2083,`NSM`],[2084,2084,`R`],[2085,2087,`NSM`],[2088,2088,`R`],[2089,2093,`NSM`],[2094,2136,`R`],[2137,2139,`NSM`],[2140,2143,`R`],[2144,2191,`AL`],[2192,2193,`AN`],[2194,2198,`AL`],[2199,2207,`NSM`],[2208,2249,`AL`],[2250,2273,`NSM`],[2274,2274,`AN`],[2275,2306,`NSM`],[2362,2362,`NSM`],[2364,2364,`NSM`],[2369,2376,`NSM`],[2381,2381,`NSM`],[2385,2391,`NSM`],[2402,2403,`NSM`],[2433,2433,`NSM`],[2492,2492,`NSM`],[2497,2500,`NSM`],[2509,2509,`NSM`],[2530,2531,`NSM`],[2546,2547,`ET`],[2555,2555,`ET`],[2558,2558,`NSM`],[2561,2562,`NSM`],[2620,2620,`NSM`],[2625,2626,`NSM`],[2631,2632,`NSM`],[2635,2637,`NSM`],[2641,2641,`NSM`],[2672,2673,`NSM`],[2677,2677,`NSM`],[2689,2690,`NSM`],[2748,2748,`NSM`],[2753,2757,`NSM`],[2759,2760,`NSM`],[2765,2765,`NSM`],[2786,2787,`NSM`],[2801,2801,`ET`],[2810,2815,`NSM`],[2817,2817,`NSM`],[2876,2876,`NSM`],[2879,2879,`NSM`],[2881,2884,`NSM`],[2893,2893,`NSM`],[2901,2902,`NSM`],[2914,2915,`NSM`],[2946,2946,`NSM`],[3008,3008,`NSM`],[3021,3021,`NSM`],[3059,3064,`ON`],[3065,3065,`ET`],[3066,3066,`ON`],[3072,3072,`NSM`],[3076,3076,`NSM`],[3132,3132,`NSM`],[3134,3136,`NSM`],[3142,3144,`NSM`],[3146,3149,`NSM`],[3157,3158,`NSM`],[3170,3171,`NSM`],[3192,3198,`ON`],[3201,3201,`NSM`],[3260,3260,`NSM`],[3276,3277,`NSM`],[3298,3299,`NSM`],[3328,3329,`NSM`],[3387,3388,`NSM`],[3393,3396,`NSM`],[3405,3405,`NSM`],[3426,3427,`NSM`],[3457,3457,`NSM`],[3530,3530,`NSM`],[3538,3540,`NSM`],[3542,3542,`NSM`],[3633,3633,`NSM`],[3636,3642,`NSM`],[3647,3647,`ET`],[3655,3662,`NSM`],[3761,3761,`NSM`],[3764,3772,`NSM`],[3784,3790,`NSM`],[3864,3865,`NSM`],[3893,3893,`NSM`],[3895,3895,`NSM`],[3897,3897,`NSM`],[3898,3901,`ON`],[3953,3966,`NSM`],[3968,3972,`NSM`],[3974,3975,`NSM`],[3981,3991,`NSM`],[3993,4028,`NSM`],[4038,4038,`NSM`],[4141,4144,`NSM`],[4146,4151,`NSM`],[4153,4154,`NSM`],[4157,4158,`NSM`],[4184,4185,`NSM`],[4190,4192,`NSM`],[4209,4212,`NSM`],[4226,4226,`NSM`],[4229,4230,`NSM`],[4237,4237,`NSM`],[4253,4253,`NSM`],[4957,4959,`NSM`],[5008,5017,`ON`],[5120,5120,`ON`],[5760,5760,`WS`],[5787,5788,`ON`],[5906,5908,`NSM`],[5938,5939,`NSM`],[5970,5971,`NSM`],[6002,6003,`NSM`],[6068,6069,`NSM`],[6071,6077,`NSM`],[6086,6086,`NSM`],[6089,6099,`NSM`],[6107,6107,`ET`],[6109,6109,`NSM`],[6128,6137,`ON`],[6144,6154,`ON`],[6155,6157,`NSM`],[6158,6158,`BN`],[6159,6159,`NSM`],[6277,6278,`NSM`],[6313,6313,`NSM`],[6432,6434,`NSM`],[6439,6440,`NSM`],[6450,6450,`NSM`],[6457,6459,`NSM`],[6464,6464,`ON`],[6468,6469,`ON`],[6622,6655,`ON`],[6679,6680,`NSM`],[6683,6683,`NSM`],[6742,6742,`NSM`],[6744,6750,`NSM`],[6752,6752,`NSM`],[6754,6754,`NSM`],[6757,6764,`NSM`],[6771,6780,`NSM`],[6783,6783,`NSM`],[6832,6877,`NSM`],[6880,6891,`NSM`],[6912,6915,`NSM`],[6964,6964,`NSM`],[6966,6970,`NSM`],[6972,6972,`NSM`],[6978,6978,`NSM`],[7019,7027,`NSM`],[7040,7041,`NSM`],[7074,7077,`NSM`],[7080,7081,`NSM`],[7083,7085,`NSM`],[7142,7142,`NSM`],[7144,7145,`NSM`],[7149,7149,`NSM`],[7151,7153,`NSM`],[7212,7219,`NSM`],[7222,7223,`NSM`],[7376,7378,`NSM`],[7380,7392,`NSM`],[7394,7400,`NSM`],[7405,7405,`NSM`],[7412,7412,`NSM`],[7416,7417,`NSM`],[7616,7679,`NSM`],[8125,8125,`ON`],[8127,8129,`ON`],[8141,8143,`ON`],[8157,8159,`ON`],[8173,8175,`ON`],[8189,8190,`ON`],[8192,8202,`WS`],[8203,8205,`BN`],[8207,8207,`R`],[8208,8231,`ON`],[8232,8232,`WS`],[8233,8233,`B`],[8234,8238,`BN`],[8239,8239,`CS`],[8240,8244,`ET`],[8245,8259,`ON`],[8260,8260,`CS`],[8261,8286,`ON`],[8287,8287,`WS`],[8288,8303,`BN`],[8304,8304,`EN`],[8308,8313,`EN`],[8314,8315,`ES`],[8316,8318,`ON`],[8320,8329,`EN`],[8330,8331,`ES`],[8332,8334,`ON`],[8352,8399,`ET`],[8400,8432,`NSM`],[8448,8449,`ON`],[8451,8454,`ON`],[8456,8457,`ON`],[8468,8468,`ON`],[8470,8472,`ON`],[8478,8483,`ON`],[8485,8485,`ON`],[8487,8487,`ON`],[8489,8489,`ON`],[8494,8494,`ET`],[8506,8507,`ON`],[8512,8516,`ON`],[8522,8525,`ON`],[8528,8543,`ON`],[8585,8587,`ON`],[8592,8721,`ON`],[8722,8722,`ES`],[8723,8723,`ET`],[8724,9013,`ON`],[9083,9108,`ON`],[9110,9257,`ON`],[9280,9290,`ON`],[9312,9351,`ON`],[9352,9371,`EN`],[9450,9899,`ON`],[9901,10239,`ON`],[10496,11123,`ON`],[11126,11263,`ON`],[11493,11498,`ON`],[11503,11505,`NSM`],[11513,11519,`ON`],[11647,11647,`NSM`],[11744,11775,`NSM`],[11776,11869,`ON`],[11904,11929,`ON`],[11931,12019,`ON`],[12032,12245,`ON`],[12272,12287,`ON`],[12288,12288,`WS`],[12289,12292,`ON`],[12296,12320,`ON`],[12330,12333,`NSM`],[12336,12336,`ON`],[12342,12343,`ON`],[12349,12351,`ON`],[12441,12442,`NSM`],[12443,12444,`ON`],[12448,12448,`ON`],[12539,12539,`ON`],[12736,12773,`ON`],[12783,12783,`ON`],[12829,12830,`ON`],[12880,12895,`ON`],[12924,12926,`ON`],[12977,12991,`ON`],[13004,13007,`ON`],[13175,13178,`ON`],[13278,13279,`ON`],[13311,13311,`ON`],[19904,19967,`ON`],[42128,42182,`ON`],[42509,42511,`ON`],[42607,42610,`NSM`],[42611,42611,`ON`],[42612,42621,`NSM`],[42622,42623,`ON`],[42654,42655,`NSM`],[42736,42737,`NSM`],[42752,42785,`ON`],[42888,42888,`ON`],[43010,43010,`NSM`],[43014,43014,`NSM`],[43019,43019,`NSM`],[43045,43046,`NSM`],[43048,43051,`ON`],[43052,43052,`NSM`],[43064,43065,`ET`],[43124,43127,`ON`],[43204,43205,`NSM`],[43232,43249,`NSM`],[43263,43263,`NSM`],[43302,43309,`NSM`],[43335,43345,`NSM`],[43392,43394,`NSM`],[43443,43443,`NSM`],[43446,43449,`NSM`],[43452,43453,`NSM`],[43493,43493,`NSM`],[43561,43566,`NSM`],[43569,43570,`NSM`],[43573,43574,`NSM`],[43587,43587,`NSM`],[43596,43596,`NSM`],[43644,43644,`NSM`],[43696,43696,`NSM`],[43698,43700,`NSM`],[43703,43704,`NSM`],[43710,43711,`NSM`],[43713,43713,`NSM`],[43756,43757,`NSM`],[43766,43766,`NSM`],[43882,43883,`ON`],[44005,44005,`NSM`],[44008,44008,`NSM`],[44013,44013,`NSM`],[64285,64285,`R`],[64286,64286,`NSM`],[64287,64296,`R`],[64297,64297,`ES`],[64298,64335,`R`],[64336,64450,`AL`],[64451,64466,`ON`],[64467,64829,`AL`],[64830,64847,`ON`],[64848,64911,`AL`],[64912,64913,`ON`],[64914,64967,`AL`],[64968,64975,`ON`],[64976,65007,`BN`],[65008,65020,`AL`],[65021,65023,`ON`],[65024,65039,`NSM`],[65040,65049,`ON`],[65056,65071,`NSM`],[65072,65103,`ON`],[65104,65104,`CS`],[65105,65105,`ON`],[65106,65106,`CS`],[65108,65108,`ON`],[65109,65109,`CS`],[65110,65118,`ON`],[65119,65119,`ET`],[65120,65121,`ON`],[65122,65123,`ES`],[65124,65126,`ON`],[65128,65128,`ON`],[65129,65130,`ET`],[65131,65131,`ON`],[65136,65278,`AL`],[65279,65279,`BN`],[65281,65282,`ON`],[65283,65285,`ET`],[65286,65290,`ON`],[65291,65291,`ES`],[65292,65292,`CS`],[65293,65293,`ES`],[65294,65295,`CS`],[65296,65305,`EN`],[65306,65306,`CS`],[65307,65312,`ON`],[65339,65344,`ON`],[65371,65381,`ON`],[65504,65505,`ET`],[65506,65508,`ON`],[65509,65510,`ET`],[65512,65518,`ON`],[65520,65528,`BN`],[65529,65533,`ON`],[65534,65535,`BN`],[65793,65793,`ON`],[65856,65932,`ON`],[65936,65948,`ON`],[65952,65952,`ON`],[66045,66045,`NSM`],[66272,66272,`NSM`],[66273,66299,`EN`],[66422,66426,`NSM`],[67584,67870,`R`],[67871,67871,`ON`],[67872,68096,`R`],[68097,68099,`NSM`],[68100,68100,`R`],[68101,68102,`NSM`],[68103,68107,`R`],[68108,68111,`NSM`],[68112,68151,`R`],[68152,68154,`NSM`],[68155,68158,`R`],[68159,68159,`NSM`],[68160,68324,`R`],[68325,68326,`NSM`],[68327,68408,`R`],[68409,68415,`ON`],[68416,68863,`R`],[68864,68899,`AL`],[68900,68903,`NSM`],[68904,68911,`AL`],[68912,68921,`AN`],[68922,68927,`AL`],[68928,68937,`AN`],[68938,68968,`R`],[68969,68973,`NSM`],[68974,68974,`ON`],[68975,69215,`R`],[69216,69246,`AN`],[69247,69290,`R`],[69291,69292,`NSM`],[69293,69311,`R`],[69312,69327,`AL`],[69328,69336,`ON`],[69337,69369,`AL`],[69370,69375,`NSM`],[69376,69423,`R`],[69424,69445,`AL`],[69446,69456,`NSM`],[69457,69487,`AL`],[69488,69505,`R`],[69506,69509,`NSM`],[69510,69631,`R`],[69633,69633,`NSM`],[69688,69702,`NSM`],[69714,69733,`ON`],[69744,69744,`NSM`],[69747,69748,`NSM`],[69759,69761,`NSM`],[69811,69814,`NSM`],[69817,69818,`NSM`],[69826,69826,`NSM`],[69888,69890,`NSM`],[69927,69931,`NSM`],[69933,69940,`NSM`],[70003,70003,`NSM`],[70016,70017,`NSM`],[70070,70078,`NSM`],[70089,70092,`NSM`],[70095,70095,`NSM`],[70191,70193,`NSM`],[70196,70196,`NSM`],[70198,70199,`NSM`],[70206,70206,`NSM`],[70209,70209,`NSM`],[70367,70367,`NSM`],[70371,70378,`NSM`],[70400,70401,`NSM`],[70459,70460,`NSM`],[70464,70464,`NSM`],[70502,70508,`NSM`],[70512,70516,`NSM`],[70587,70592,`NSM`],[70606,70606,`NSM`],[70608,70608,`NSM`],[70610,70610,`NSM`],[70625,70626,`NSM`],[70712,70719,`NSM`],[70722,70724,`NSM`],[70726,70726,`NSM`],[70750,70750,`NSM`],[70835,70840,`NSM`],[70842,70842,`NSM`],[70847,70848,`NSM`],[70850,70851,`NSM`],[71090,71093,`NSM`],[71100,71101,`NSM`],[71103,71104,`NSM`],[71132,71133,`NSM`],[71219,71226,`NSM`],[71229,71229,`NSM`],[71231,71232,`NSM`],[71264,71276,`ON`],[71339,71339,`NSM`],[71341,71341,`NSM`],[71344,71349,`NSM`],[71351,71351,`NSM`],[71453,71453,`NSM`],[71455,71455,`NSM`],[71458,71461,`NSM`],[71463,71467,`NSM`],[71727,71735,`NSM`],[71737,71738,`NSM`],[71995,71996,`NSM`],[71998,71998,`NSM`],[72003,72003,`NSM`],[72148,72151,`NSM`],[72154,72155,`NSM`],[72160,72160,`NSM`],[72193,72198,`NSM`],[72201,72202,`NSM`],[72243,72248,`NSM`],[72251,72254,`NSM`],[72263,72263,`NSM`],[72273,72278,`NSM`],[72281,72283,`NSM`],[72330,72342,`NSM`],[72344,72345,`NSM`],[72544,72544,`NSM`],[72546,72548,`NSM`],[72550,72550,`NSM`],[72752,72758,`NSM`],[72760,72765,`NSM`],[72850,72871,`NSM`],[72874,72880,`NSM`],[72882,72883,`NSM`],[72885,72886,`NSM`],[73009,73014,`NSM`],[73018,73018,`NSM`],[73020,73021,`NSM`],[73023,73029,`NSM`],[73031,73031,`NSM`],[73104,73105,`NSM`],[73109,73109,`NSM`],[73111,73111,`NSM`],[73459,73460,`NSM`],[73472,73473,`NSM`],[73526,73530,`NSM`],[73536,73536,`NSM`],[73538,73538,`NSM`],[73562,73562,`NSM`],[73685,73692,`ON`],[73693,73696,`ET`],[73697,73713,`ON`],[78912,78912,`NSM`],[78919,78933,`NSM`],[90398,90409,`NSM`],[90413,90415,`NSM`],[92912,92916,`NSM`],[92976,92982,`NSM`],[94031,94031,`NSM`],[94095,94098,`NSM`],[94178,94178,`ON`],[94180,94180,`NSM`],[113821,113822,`NSM`],[113824,113827,`BN`],[117760,117973,`ON`],[118e3,118009,`EN`],[118010,118012,`ON`],[118016,118451,`ON`],[118458,118480,`ON`],[118496,118512,`ON`],[118528,118573,`NSM`],[118576,118598,`NSM`],[119143,119145,`NSM`],[119155,119162,`BN`],[119163,119170,`NSM`],[119173,119179,`NSM`],[119210,119213,`NSM`],[119273,119274,`ON`],[119296,119361,`ON`],[119362,119364,`NSM`],[119365,119365,`ON`],[119552,119638,`ON`],[120513,120513,`ON`],[120539,120539,`ON`],[120571,120571,`ON`],[120597,120597,`ON`],[120629,120629,`ON`],[120655,120655,`ON`],[120687,120687,`ON`],[120713,120713,`ON`],[120745,120745,`ON`],[120771,120771,`ON`],[120782,120831,`EN`],[121344,121398,`NSM`],[121403,121452,`NSM`],[121461,121461,`NSM`],[121476,121476,`NSM`],[121499,121503,`NSM`],[121505,121519,`NSM`],[122880,122886,`NSM`],[122888,122904,`NSM`],[122907,122913,`NSM`],[122915,122916,`NSM`],[122918,122922,`NSM`],[123023,123023,`NSM`],[123184,123190,`NSM`],[123566,123566,`NSM`],[123628,123631,`NSM`],[123647,123647,`ET`],[124140,124143,`NSM`],[124398,124399,`NSM`],[124643,124643,`NSM`],[124646,124646,`NSM`],[124654,124655,`NSM`],[124661,124661,`NSM`],[124928,125135,`R`],[125136,125142,`NSM`],[125143,125251,`R`],[125252,125258,`NSM`],[125259,126063,`R`],[126064,126143,`AL`],[126144,126207,`R`],[126208,126287,`AL`],[126288,126463,`R`],[126464,126703,`AL`],[126704,126705,`ON`],[126706,126719,`AL`],[126720,126975,`R`],[126976,127019,`ON`],[127024,127123,`ON`],[127136,127150,`ON`],[127153,127167,`ON`],[127169,127183,`ON`],[127185,127221,`ON`],[127232,127242,`EN`],[127243,127247,`ON`],[127279,127279,`ON`],[127338,127343,`ON`],[127405,127405,`ON`],[127584,127589,`ON`],[127744,128728,`ON`],[128732,128748,`ON`],[128752,128764,`ON`],[128768,128985,`ON`],[128992,129003,`ON`],[129008,129008,`ON`],[129024,129035,`ON`],[129040,129095,`ON`],[129104,129113,`ON`],[129120,129159,`ON`],[129168,129197,`ON`],[129200,129211,`ON`],[129216,129217,`ON`],[129232,129240,`ON`],[129280,129623,`ON`],[129632,129645,`ON`],[129648,129660,`ON`],[129664,129674,`ON`],[129678,129734,`ON`],[129736,129736,`ON`],[129741,129756,`ON`],[129759,129770,`ON`],[129775,129784,`ON`],[129792,129938,`ON`],[129940,130031,`ON`],[130032,130041,`EN`],[130042,130042,`ON`],[131070,131071,`BN`],[196606,196607,`BN`],[262142,262143,`BN`],[327678,327679,`BN`],[393214,393215,`BN`],[458750,458751,`BN`],[524286,524287,`BN`],[589822,589823,`BN`],[655358,655359,`BN`],[720894,720895,`BN`],[786430,786431,`BN`],[851966,851967,`BN`],[917502,917759,`BN`],[917760,917999,`NSM`],[918e3,921599,`BN`],[983038,983039,`BN`],[1048574,1048575,`BN`],[1114110,1114111,`BN`]];function T(e){if(e<=255)return C[e];let t=0,n=w.length-1;for(;t<=n;){let r=t+n>>1,i=w[r];if(e<i[0]){n=r-1;continue}if(e>i[1]){t=r+1;continue}return i[2]}return`L`}function ee(e){let t=e.length;if(t===0)return null;let n=Array(t),r=!1;for(let i=0;i<t;){let a=e.charCodeAt(i),o=a,s=1;if(a>=55296&&a<=56319&&i+1<t){let t=e.charCodeAt(i+1);t>=56320&&t<=57343&&(o=(a-55296<<10)+(t-56320)+65536,s=2)}let c=T(o);(c===`R`||c===`AL`||c===`AN`)&&(r=!0);for(let e=0;e<s;e++)n[i+e]=c;i+=s}if(!r)return null;let i=0;for(let e=0;e<t;e++){let t=n[e];if(t===`L`){i=0;break}if(t===`R`||t===`AL`){i=1;break}}let a=new Int8Array(t);for(let e=0;e<t;e++)a[e]=i;let o=i&1?`R`:`L`,s=o,c=s;for(let e=0;e<t;e++)n[e]===`NSM`?n[e]=c:c=n[e];c=s;for(let e=0;e<t;e++){let t=n[e];t===`EN`?n[e]=c===`AL`?`AN`:`EN`:(t===`R`||t===`L`||t===`AL`)&&(c=t)}for(let e=0;e<t;e++)n[e]===`AL`&&(n[e]=`R`);for(let e=1;e<t-1;e++)n[e]===`ES`&&n[e-1]===`EN`&&n[e+1]===`EN`&&(n[e]=`EN`),n[e]===`CS`&&(n[e-1]===`EN`||n[e-1]===`AN`)&&n[e+1]===n[e-1]&&(n[e]=n[e-1]);for(let e=0;e<t;e++){if(n[e]!==`EN`)continue;let r;for(r=e-1;r>=0&&n[r]===`ET`;r--)n[r]=`EN`;for(r=e+1;r<t&&n[r]===`ET`;r++)n[r]=`EN`}for(let e=0;e<t;e++){let t=n[e];(t===`WS`||t===`ES`||t===`ET`||t===`CS`)&&(n[e]=`ON`)}c=s;for(let e=0;e<t;e++){let t=n[e];t===`EN`?n[e]=c===`L`?`L`:`EN`:(t===`R`||t===`L`)&&(c=t)}for(let e=0;e<t;e++){if(n[e]!==`ON`)continue;let r=e+1;for(;r<t&&n[r]===`ON`;)r++;let i=e>0?n[e-1]:s,a=r<t?n[r]:s,o=i===`L`?`L`:`R`;if(o===(a===`L`?`L`:`R`))for(let t=e;t<r;t++)n[t]=o;e=r-1}for(let e=0;e<t;e++)n[e]===`ON`&&(n[e]=o);for(let e=0;e<t;e++){let t=n[e];a[e]&1?(t===`L`||t===`AN`||t===`EN`)&&a[e]++:t===`R`?a[e]++:(t===`AN`||t===`EN`)&&(a[e]+=2)}return a}function E(e,t){let n=ee(e);if(n===null)return null;let r=new Int8Array(t.length);for(let e=0;e<t.length;e++)r[e]=n[t[e]];return r}var D=/[ \t\n\r\f]+/g,O=/[\t\n\r\f]| {2,}|^ | $/;function te(e){let t=e??`normal`;return t===`pre-wrap`?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function ne(e){if(!O.test(e))return e;let t=e.replace(D,` `);return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function k(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
2
+ `).replace(/[\r\f]/g,`
3
+ `):e}var A=null,re;function ie(){return A===null&&(A=new Intl.Segmenter(re,{granularity:`word`})),A}var j=/\p{Script=Arabic}/u,M=/\p{M}/u,N=/\p{Nd}/u;function P(e){return j.test(e)}function F(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function I(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){if(F((n-55296<<10)+(r-56320)+65536))return!0;t++;continue}}if(F(n))return!0}}return!1}function L(e){let t=U(e);return t!==null&&(se.has(t)||H.has(t))}var R=new Set([`\xA0`,` `,`⁠`,``]),z=new Set([`-`,`‐`,`–`,`—`]);function ae(e){let t=U(e);return t!==null&&R.has(t)}function oe(e){let t=U(e);return t!==null&&z.has(t)}function B(e,t){return ae(e)?!1:t?!(L(e)||oe(e)):!0}var se=new Set(`,...!.:.;.?.、.。.・.).〕.〉.》.」.』.】.〗.〙.〛.ー.々.〻.ゝ.ゞ.ヽ.ヾ`.split(`.`)),V=new Set([`"`,`(`,`[`,`{`,`¡`,`¿`,`“`,`‘`,`‚`,`„`,`«`,`‹`,`⸘`,`(`,`〔`,`〈`,`《`,`「`,`『`,`【`,`〖`,`〘`,`〚`]),ce=new Set([`'`,`’`]),H=new Set(`.(,(!(?(:(;(،(؛(؟(।(॥(၊(။(၌(၍(၏()(](}(%("(”(’(»(›(…`.split(`(`)),le=new Set([`:`,`.`,`،`,`؛`]),ue=new Set([`၏`]),de=new Set([`”`,`’`,`»`,`›`,`」`,`』`,`】`,`》`,`〉`,`〕`,`)`]);function fe(e){if(he(e))return!0;let t=!1;for(let n of e){if(H.has(n)||xe(n)){t=!0;continue}if(!(t&&M.test(n)))return!1}return t}function pe(e){for(let t of e)if(!se.has(t)&&!H.has(t))return!1;return e.length>0}function me(e){if(he(e))return!0;for(let t of e)if(!V.has(t)&&!ce.has(t)&&!M.test(t)&&!xe(t))return!1;return e.length>0}function he(e){let t=!1;for(let n of e)if(!(n===`\\`||M.test(n))){if(V.has(n)||H.has(n)||ce.has(n)){t=!0;continue}return!1}return t}function ge(e,t){let n=t-1;if(n<=0)return Math.max(n,0);let r=e.charCodeAt(n);if(r<56320||r>57343)return n;let i=n-1;if(i<0)return n;let a=e.charCodeAt(i);return a>=55296&&a<=56319?i:n}function U(e){if(e.length===0)return null;let t=ge(e,e.length);return e.slice(t)}function _e(e){for(let t of e)if(!M.test(t))return t;return null}function ve(e){for(let t=e.length;t>0;){let n=ge(e,t),r=e.slice(n,t);if(!M.test(r))return r;t=n}return null}var ye=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function be(e,t){for(let n=0;n<t.length;n+=2)if(e>=t[n]&&e<=t[n+1])return!0;return!1}function xe(e){let t=e.codePointAt(0);return t!==void 0&&be(t,ye)}function Se(e){let t=ve(e);return t!==null&&xe(t)}function Ce(e){let t=_e(e);return t!==null&&N.test(t)}function we(e){let t=Array.from(e),n=t.length;for(;n>0;){let e=t[n-1];if(M.test(e)){n--;continue}if(V.has(e)||ce.has(e)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(``),tail:t.slice(n).join(``)}}function Te(e,t,n){return n===`text`&&!t&&e.length===1&&e!==`-`&&e!==`—`?e:null}function Ee(e,t,n,r){let i=t[r],a=e[r];if(i==null)return a;let o=n[r];if(a.length===o)return a;let s=i.repeat(o);return e[r]=s,s}function De(e,t){return e&&t!==null&&le.has(t)}function Oe(e){let t=U(e);return t!==null&&ue.has(t)}function ke(e){if(e.length<2||e[0]!==` `)return null;let t=e.slice(1);return/^\p{M}+$/u.test(t)?{space:` `,marks:t}:null}function Ae(e){let t=e.length;for(;t>0;){let n=ge(e,t),r=e.slice(n,t);if(de.has(r))return!0;if(!H.has(r))return!1;t=n}return!1}function je(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===` `)return`preserved-space`;if(e===` `)return`tab`;if(t.preserveHardBreaks&&e===`
4
+ `)return`hard-break`}return e===` `?`space`:e===`\xA0`||e===` `||e===`⁠`||e===``?`glue`:e===`​`?`zero-width-break`:e===`­`?`soft-hyphen`:`text`}var Me=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function W(e){return e.length===1?e[0]:e.join(``)}function Ne(e,t){let n=[];for(let t=e.length-1;t>=0;t--)n.push(e[t]);return n.push(t),W(n)}function Pe(e,t,n,r){if(!Me.test(e))return[{text:e,isWordLike:t,kind:`text`,start:n}];let i=[],a=null,o=[],s=n,c=!1,l=0;for(let u of e){let e=je(u,r),d=e===`text`&&t;if(a!==null&&e===a&&d===c){o.push(u),l+=u.length;continue}a!==null&&i.push({text:W(o),isWordLike:c,kind:a,start:s}),a=e,o=[u],s=n+l,c=d,l+=u.length}return a!==null&&i.push({text:W(o),isWordLike:c,kind:a,start:s}),i}function Fe(e){return e===`space`||e===`preserved-space`||e===`zero-width-break`||e===`hard-break`}var Ie=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function Le(e,t){let n=e.texts[t];return n.startsWith(`www.`)?!0:Ie.test(n)&&t+1<e.len&&e.kinds[t+1]===`text`&&e.texts[t+1]===`//`}function Re(e){return e.includes(`?`)&&(e.includes(`://`)||e.startsWith(`www.`))}function ze(e){let t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),i=e.starts.slice();for(let i=0;i<e.len;i++){if(r[i]!==`text`||!Le(e,i))continue;let a=[t[i]],o=i+1;for(;o<e.len&&!Fe(r[o]);){a.push(t[o]),n[i]=!0;let e=t[o].includes(`?`);if(r[o]=`text`,t[o]=``,o++,e)break}t[i]=W(a)}let a=0;for(let e=0;e<t.length;e++){let o=t[e];o.length!==0&&(a!==e&&(t[a]=o,n[a]=n[e],r[a]=r[e],i[a]=i[e]),a++)}return t.length=a,n.length=a,r.length=a,i.length=a,{len:a,texts:t,isWordLike:n,kinds:r,starts:i}}function Be(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a];if(t.push(o),n.push(e.isWordLike[a]),r.push(e.kinds[a]),i.push(e.starts[a]),!Re(o))continue;let s=a+1;if(s>=e.len||Fe(e.kinds[s]))continue;let c=[],l=e.starts[s],u=s;for(;u<e.len&&!Fe(e.kinds[u]);)c.push(e.texts[u]),u++;c.length>0&&(t.push(W(c)),n.push(!0),r.push(`text`),i.push(l),a=u-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}var Ve=new Set([`:`,`-`,`/`,`×`,`,`,`.`,`+`,`–`,`—`]),He=/[\p{P}\p{S}\p{Co}]/u,Ue=/\p{Emoji_Presentation}/u,We=new Set([`?`,`֊`,`-`,`‐`,`‒`,`–`,`—`,`…`,`‼`,`‽`,`⁉`]);function Ge(e){return e>=33&&e<=47&&e!==45||e>=58&&e<=64&&e!==63||e>=91&&e<=96||e>=123&&e<=126}function Ke(e){let t=e.charCodeAt(0);return t<128?Ge(t):!We.has(e)&&!Ue.test(e)&&He.test(e)}function qe(e){let t=!1;for(let n of e)if(!M.test(n)){if(!Ke(n))return!1;t=!0}return t}function Je(e){for(let t=e.length;t>0;){let n=ge(e,t),r=e.slice(n,t);if(M.test(r)){t=n;continue}return Ke(r)||xe(r)}return!1}function Ye(e,t,n,r){let i=!t&&qe(e),a=!r&&qe(n),o=Se(e),s=(t||o)&&Je(e);return!i&&!a&&!s||I(e)||I(n)?!1:(t||i||o)&&(r||a)}function Xe(e){for(let t of e)if(N.test(t))return!0;return!1}function Ze(e){if(e.length===0)return!1;for(let t of e)if(!(N.test(t)||Ve.has(t)))return!1;return!0}function Qe(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a],s=e.kinds[a];if(s===`text`&&Ze(o)&&Xe(o)){let s=[o],c=a+1;for(;c<e.len&&e.kinds[c]===`text`&&Ze(e.texts[c]);)s.push(e.texts[c]),c++;t.push(W(s)),n.push(!0),r.push(`text`),i.push(e.starts[a]),a=c-1;continue}t.push(o),n.push(e.isWordLike[a]),r.push(s),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function $e(e){let t=[],n=[],r=[],i=[],a=0;for(;a<e.len;){let o=e.texts[a],s=e.kinds[a],c=e.isWordLike[a];if(s===`text`){let s=[o],l=a+1,u=c;for(;l<e.len&&e.kinds[l]===`text`&&Ye(e.texts[l-1],e.isWordLike[l-1],e.texts[l],e.isWordLike[l]);){let t=e.texts[l];s.push(t),u||=e.isWordLike[l],l++}if(l>a+1){t.push(W(s)),n.push(u),r.push(`text`),i.push(e.starts[a]),a=l;continue}}t.push(o),n.push(c),r.push(s),i.push(e.starts[a]),a++}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function et(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a];if(e.kinds[a]===`text`&&o.includes(`-`)){let s=o.split(`-`),c=s.length>1;for(let e=0;e<s.length;e++){let t=s[e];if(!c)break;(t.length===0||!Xe(t)||!Ze(t))&&(c=!1)}if(c){let o=0;for(let c=0;c<s.length;c++){let l=s[c],u=c<s.length-1?`${l}-`:l;t.push(u),n.push(!0),r.push(`text`),i.push(e.starts[a]+o),o+=u.length}continue}}t.push(o),n.push(e.isWordLike[a]),r.push(e.kinds[a]),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function tt(e){let t=[],n=[],r=[],i=[],a=0;for(;a<e.len;){let o=[e.texts[a]],s=e.isWordLike[a],c=e.kinds[a],l=e.starts[a];if(c===`glue`){let u=[o[0]],d=l;for(a++;a<e.len&&e.kinds[a]===`glue`;)u.push(e.texts[a]),a++;let f=W(u);if(a<e.len&&e.kinds[a]===`text`)o[0]=f,o.push(e.texts[a]),s=e.isWordLike[a],c=`text`,l=d,a++;else{t.push(f),n.push(!1),r.push(`glue`),i.push(d);continue}}else a++;if(c===`text`)for(;a<e.len&&e.kinds[a]===`glue`;){let t=[];for(;a<e.len&&e.kinds[a]===`glue`;)t.push(e.texts[a]),a++;let n=W(t);if(a<e.len&&e.kinds[a]===`text`){o.push(n,e.texts[a]),s||=e.isWordLike[a],a++;continue}o.push(n)}t.push(W(o)),n.push(s),r.push(c),i.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function nt(e){let t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),i=e.starts.slice();for(let e=0;e<t.length-1;e++){if(r[e]!==`text`||r[e+1]!==`text`||!I(t[e])||!I(t[e+1]))continue;let n=we(t[e]);n!==null&&(t[e]=n.head,t[e+1]=n.tail+t[e+1],i[e+1]=i[e]+n.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function rt(e,t,n){let r=ie(),i=0,a=[],o=[],s=[],c=[],l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=[];for(let _ of r.segment(e))for(let e of Pe(_.segment,_.isWordLike??!1,_.index,n)){let n=e.kind===`text`,r=Te(e.text,e.isWordLike,e.kind),_=I(e.text),v=P(e.text),y=U(e.text),b=Ae(e.text),x=Oe(e.text),S=i-1;function C(){u[S]!==null&&(o[S]=[Ee(a,u,d,S)],u[S]=null),o[S].push(e.text),s[S]=s[S]||e.isWordLike,f[S]=f[S]||_,p[S]=p[S]||v,m[S]=b,h[S]=x,g[S]=De(p[S],y)}t.carryCJKAfterClosingQuote&&n&&i>0&&c[S]===`text`&&_&&f[S]&&m[S]||n&&i>0&&c[S]===`text`&&pe(e.text)&&f[S]||n&&i>0&&c[S]===`text`&&h[S]?C():n&&i>0&&c[S]===`text`&&e.isWordLike&&v&&g[S]?(C(),s[S]=!0):r!==null&&i>0&&c[S]===`text`&&u[S]===r?d[S]=(d[S]??1)+1:n&&!e.isWordLike&&i>0&&c[S]===`text`&&!f[S]&&(fe(e.text)||e.text===`-`&&s[S])?C():(a[i]=e.text,o[i]=[e.text],s[i]=e.isWordLike,c[i]=e.kind,l[i]=e.start,u[i]=r,d[i]=r===null?0:1,f[i]=_,p[i]=v,m[i]=b,h[i]=x,g[i]=De(v,y),i++)}for(let e=0;e<i;e++){if(u[e]!==null){a[e]=Ee(a,u,d,e);continue}a[e]=W(o[e])}for(let e=1;e<i;e++)c[e]===`text`&&!s[e]&&he(a[e])&&c[e-1]===`text`&&!f[e-1]&&(a[e-1]+=a[e],s[e-1]=s[e-1]||s[e],a[e]=``);let _=Array.from({length:i},()=>null),v=-1;for(let e=i-1;e>=0;e--){let t=a[e];if(t.length!==0){if(c[e]===`text`&&!s[e]&&v>=0&&c[v]===`text`&&(me(t)||t===`-`&&Ce(a[v]))){let n=_[v]??[];n.push(t),_[v]=n,l[v]=l[e],a[e]=``;continue}v=e}}for(let e=0;e<i;e++){let t=_[e];t!=null&&(a[e]=Ne(t,a[e]))}let y=0;for(let e=0;e<i;e++){let t=a[e];t.length!==0&&(y!==e&&(a[y]=t,s[y]=s[e],c[y]=c[e],l[y]=l[e]),y++)}a.length=y,s.length=y,c.length=y,l.length=y;let b=nt($e(et(Qe(Be(ze(tt({len:y,texts:a,isWordLike:s,kinds:c,starts:l})))))));for(let e=0;e<b.len-1;e++){let t=ke(b.texts[e]);t!==null&&(b.kinds[e]!==`space`&&b.kinds[e]!==`preserved-space`||b.kinds[e+1]!==`text`||!P(b.texts[e+1])||(b.texts[e]=t.space,b.isWordLike[e]=!1,b.kinds[e]=b.kinds[e]===`preserved-space`?`preserved-space`:`space`,b.texts[e+1]=t.marks+b.texts[e+1],b.starts[e+1]=b.starts[e]+t.space.length))}return b}function it(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];let n=[],r=0;for(let t=0;t<e.len;t++)e.kinds[t]===`hard-break`&&(n.push({startSegmentIndex:r,endSegmentIndex:t,consumedEndSegmentIndex:t+1}),r=t+1);return r<e.len&&n.push({startSegmentIndex:r,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function at(e,t,n){if(t.len<=1)return t;let r=[],i=[],a=[],o=[],s=-1,c=!1;function l(e){r.push(t.texts[e]),i.push(t.isWordLike[e]),a.push(`text`),o.push(t.starts[e])}function u(n,s){let c=!1;for(let e=n;e<s;e++)c||=t.isWordLike[e];let l=t.starts[n],u=s<t.len?t.starts[s]:e.length;r.push(e.slice(l,u)),i.push(c),a.push(`text`),o.push(l)}function d(e){if(!(s<0)){if(c)s+1===e?l(s):u(s,e);else for(let t=s;t<e;t++)l(t);s=-1,c=!1}}for(let e=0;e<t.len;e++){let l=t.texts[e],u=t.kinds[e];if(u===`text`){s>=0&&!B(t.texts[e-1],n)&&d(e),s<0&&(s=e),c||=I(l);continue}d(e),r.push(l),i.push(t.isWordLike[e]),a.push(u),o.push(t.starts[e])}return d(t.len),{len:r.length,texts:r,isWordLike:i,kinds:a,starts:o}}function ot(e,t,n=`normal`,r=`normal`){let i=te(n),a=i.mode===`pre-wrap`?k(e):ne(e);if(a.length===0)return{normalized:a,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let o=rt(a,t,i),s=r===`keep-all`?at(a,o,t.breakKeepAllAfterPunctuation):o;return{normalized:a,chunks:it(s,i),...s}}var G=null,st=new Map,K=null,ct=96,lt=/\p{Emoji_Presentation}/u,ut=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u,dt=null,ft=new Map;function pt(){if(G!==null)return G;if(typeof OffscreenCanvas<`u`)return G=new OffscreenCanvas(1,1).getContext(`2d`),G;if(typeof document<`u`)return G=document.createElement(`canvas`).getContext(`2d`),G;throw Error(`Text measurement requires OffscreenCanvas or a DOM canvas context.`)}function mt(e){let t=st.get(e);return t||(t=new Map,st.set(e,t)),t}function q(e,t){let n=t.get(e);return n===void 0&&(n={width:pt().measureText(e).width,containsCJK:I(e)},t.set(e,n)),n}function ht(){if(K!==null)return K;if(typeof navigator>`u`)return K={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},K;let e=navigator.userAgent,t=navigator.vendor===`Apple Computer, Inc.`&&e.includes(`Safari/`)&&!e.includes(`Chrome/`)&&!e.includes(`Chromium/`)&&!e.includes(`CriOS/`)&&!e.includes(`FxiOS/`)&&!e.includes(`EdgiOS/`),n=e.includes(`Chrome/`)||e.includes(`Chromium/`)||e.includes(`CriOS/`)||e.includes(`Edg/`);return K={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,breakKeepAllAfterPunctuation:!t,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},K}function gt(e){let t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function _t(){return dt===null&&(dt=new Intl.Segmenter(void 0,{granularity:`grapheme`})),dt}function vt(e){return lt.test(e)||e.includes(`️`)}function yt(e){return ut.test(e)}function bt(e,t){let n=ft.get(e);if(n!==void 0)return n;let r=pt();r.font=e;let i=r.measureText(`😀`).width;if(n=0,i>t+.5&&typeof document<`u`&&document.body!==null){let t=document.createElement(`span`);t.style.font=e,t.style.display=`inline-block`,t.style.visibility=`hidden`,t.style.position=`absolute`,t.textContent=`😀`,document.body.appendChild(t);let r=t.getBoundingClientRect().width;document.body.removeChild(t),i-r>.5&&(n=i-r)}return ft.set(e,n),n}function xt(e){let t=0,n=_t();for(let r of n.segment(e))vt(r.segment)&&t++;return t}function St(e,t){return t.emojiCount===void 0&&(t.emojiCount=xt(e)),t.emojiCount}function J(e,t,n){return n===0?t.width:t.width-St(e,t)*n}function Ct(e,t,n,r,i){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===i)return t.breakableFitAdvances;t.breakableFitMode=i;let a=_t(),o=[];for(let t of a.segment(e))o.push(t.segment);if(o.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(i===`sum-graphemes`){let e=[];for(let t of o){let i=q(t,n);e.push(J(t,i,r))}return t.breakableFitAdvances=e,t.breakableFitAdvances}if(i===`pair-context`||o.length>ct){let e=[],i=null,a=0;for(let t of o){let o=J(t,q(t,n),r);if(i===null)e.push(o);else{let o=i+t,s=q(o,n);e.push(J(o,s,r)-a)}i=t,a=o}return t.breakableFitAdvances=e,t.breakableFitAdvances}let s=[],c=``,l=0;for(let e of o){c+=e;let t=q(c,n),i=J(c,t,r);s.push(i-l),l=i}return t.breakableFitAdvances=s,t.breakableFitAdvances}function wt(e,t){let n=pt();n.font=e;let r=mt(e),i=gt(e);return{cache:r,fontSize:i,emojiCorrection:t?bt(e,i):0}}function Tt(e){return e===`space`||e===`zero-width-break`||e===`soft-hyphen`}function Et(e){return e===`space`||e===`preserved-space`||e===`tab`||e===`zero-width-break`||e===`soft-hyphen`}function Dt(e,t,n=e.widths.length){for(;t<n;){let n=e.kinds[t];if(!Tt(n))break;t++}return t}function Ot(e,t){if(t<=0)return 0;let n=e%t;return Math.abs(n)<=1e-6?t:t-n}function kt(e,t,n){return e.letterSpacing!==0&&t&&e.spacingGraphemeCounts[n]>0?e.letterSpacing:0}function At(e,t){return t===0?0:e+t}function jt(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function Mt(e,t,n,r,i){return At(r,t===`tab`?i+jt(e,n):e.lineEndFitAdvances[n])}function Nt(e,t,n,r){return At(r,t===`tab`?0:e.lineEndFitAdvances[n])}function Pt(e,t,n,r,i){return At(r,t===`tab`?i:e.lineEndPaintAdvances[n])}function Ft(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function It(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function Lt(e,t,n){let r=t;for(;r<e.length&&e[r]<n;)r++;return r}function Rt(e,t,n,r,i){if(e.letterSpacing===0)return 0;if(i>0)return e.spacingGraphemeCounts[r]>0?e.letterSpacing:0;for(let i=r-1;i>=t;i--){let a=e.kinds[i];if(!(a===`space`||a===`zero-width-break`||a===`hard-break`)){if(a===`soft-hyphen`){if(i===r-1)return 0;continue}return i===t&&n>0||e.spacingGraphemeCounts[i]>0?e.letterSpacing:0}}return 0}function zt(e,t,n,r,i,a){return t+Rt(e,n,r,i,a)}function Bt(e,t,n){let{widths:r,kinds:i,breakableFitAdvances:a,breakablePreferredBreaks:o}=e;if(r.length===0)return 0;let s=t+ht().lineFitEpsilon,c=0,l=0,u=!1,d=0,f=0,p=0,m=0,h=-1,g=0;function _(){h=-1,g=0}function v(e=p,t=m,r=l){c++,n?.(r,d,f,e,t),l=0,u=!1,_()}function y(e,t){u=!0,d=e,f=0,p=e+1,m=0,l=t}function b(e,t,n){u=!0,d=e,f=t,p=e,m=t+1,l=n}function x(e,t){if(!u){y(e,t);return}l+=t,p=e+1,m=0}function S(e,t){let n=a[e],r=o[e]??null,i=r===null?-1:Lt(r,0,t+1),c=-1,d=0,f=t;for(;f<n.length;){let a=n[f];if(!u)b(e,f,a);else if(l+a>s){if(r!==null&&c>t){v(e,c,d),f=c,i=Lt(r,i,f+1),c=-1,d=0;continue}v(),b(e,f,a)}else l+=a,p=e,m=f+1;let o=f+1;r!==null&&r[i]===o&&(c=o,d=l,i++),f++}u&&p===e&&m===n.length&&(p=e+1,m=0)}let C=0;for(;C<r.length&&!(!u&&(C=Dt(e,C),C>=r.length));){let e=r[C],t=i[C],n=Et(t);if(!u){e>s&&a[C]!==null?S(C,0):y(C,e),n&&(h=C+1,g=l-e),C++;continue}if(l+e>s){if(n){x(C,e),v(C+1,0,l-e),C++;continue}if(h>=0){if(p>h||p===h&&m>0){v();continue}v(h,0,g);continue}if(e>s&&a[C]!==null){v(),S(C,0),C++;continue}v();continue}x(C,e),n&&(h=C+1,g=l-e),C++}return u&&v(),c}function Vt(e,t,n){if(e.simpleLineWalkFastPath)return Bt(e,t,n);let{widths:r,kinds:i,breakableFitAdvances:a,breakablePreferredBreaks:o,discretionaryHyphenWidth:s,chunks:c}=e;if(r.length===0||c.length===0)return 0;let l=ht(),u=t+l.lineFitEpsilon,d=0,f=0,p=!1,m=0,h=0,g=0,_=0,v=-1,y=0,b=0,x=null;function S(){v=-1,y=0,b=0,x=null}function C(){return x===`soft-hyphen`&&v===g&&_===0?b:f}function w(t=g,r=_,i){d++,n!==void 0&&n(zt(e,i??C(),m,h,t,r),m,h,t,r),f=0,p=!1,S()}function T(e,t){p=!0,m=e,h=0,g=e+1,_=0,f=t}function ee(e,t,n){p=!0,m=e,h=t,g=e,_=t+1,f=n}function E(e,t){if(!p){T(e,t);return}f+=t,g=e+1,_=0}function D(t,n,r,i,a,o){if(!n)return;let s=Nt(e,t,r,a),c=Pt(e,t,r,a,i);v=r+1,y=f-o+s,b=f-o+c,x=t}function O(t,n){let r=a[t],i=o[t]??null,s=i===null?-1:Lt(i,0,n+1),c=-1,l=0,d=n;for(;d<r.length;){let a=r[d];if(!p)ee(t,d,a);else{let r=Ft(e,!0,a),o=f+r;if(It(e,o)>u){if(i!==null&&c>n){w(t,c,l),d=c,s=Lt(i,s,d+1),c=-1,l=0;continue}w(),ee(t,d,a)}else f=o,g=t,_=d+1}let o=d+1;i!==null&&i[s]===o&&(c=o,l=f,s++),d++}p&&g===t&&_===r.length&&(g=t+1,_=0)}function te(e){d++,n?.(0,e.startSegmentIndex,0,e.consumedEndSegmentIndex,0),S()}for(let t=0;t<c.length;t++){let n=c[t];if(n.startSegmentIndex===n.endSegmentIndex){te(n);continue}p=!1,f=0,m=n.startSegmentIndex,h=0,g=n.startSegmentIndex,_=0,S();let o=n.startSegmentIndex;for(;o<n.endSegmentIndex&&!(!p&&(o=Dt(e,o,n.endSegmentIndex),o>=n.endSegmentIndex));){let t=i[o],n=Et(t),c=kt(e,p,o),d=t===`tab`?Ot(f+c,e.tabStopAdvance):r[o],m=c+d,h=Mt(e,t,o,c,d);if(t===`soft-hyphen`){p&&(g=o+1,_=0,v=o+1,y=f+s,b=f+s,x=t),o++;continue}if(!p){h>u&&a[o]!==null?O(o,0):T(o,d),D(t,n,o,d,c,m),o++;continue}if(f+h>u){let r=f+Nt(e,t,o,c),i=f+Pt(e,t,o,c,d);if(x===`soft-hyphen`&&l.preferEarlySoftHyphenBreak&&y<=u){w(v,0,b);continue}if(n&&r<=u){E(o,m),w(o+1,0,i),o++;continue}if(v>=0&&y<=u){if(g>v||g===v&&_>0){w();continue}let e=v;w(e,0,b),o=e;continue}if(h>u&&a[o]!==null){w(),O(o,0),o++;continue}w();continue}E(o,m),D(t,n,o,d,c,m),o++}if(p){let e=v===n.consumedEndSegmentIndex?b:f;w(n.consumedEndSegmentIndex,0,e)}}return d}var Ht=null,Ut=new WeakMap;function Wt(){return Ht===null&&(Ht=new Intl.Segmenter(void 0,{granularity:`grapheme`})),Ht}function Gt(e,t,n){let r=n.get(e);if(r!==void 0)return r;r=[];let i=Wt();for(let n of i.segment(t[e]))r.push(n.segment);return n.set(e,r),r}function Kt(e,t,n){return n>t&&e[n-1]===`soft-hyphen`}function qt(e,t,n,r){for(let i=n;i<r;i++)e+=t[i];return e}function Jt(e){let t=Ut.get(e);return t===void 0?(t=new Map,Ut.set(e,t),t):t}function Yt(e,t,n,r,i,a){let o=``,s=Kt(e.kinds,n,i);for(let a=n;a<i;a++)if(!(e.kinds[a]===`soft-hyphen`||e.kinds[a]===`hard-break`))if(a===n&&r>0){let n=Gt(a,e.segments,t);o=qt(o,n,r,n.length)}else o+=e.segments[a];if(a>0){s&&(o+=`-`);let c=Gt(i,e.segments,t);o=qt(o,c,n===i?r:0,a)}else s&&(o+=`-`);return o}var Xt=null;function Zt(){return Xt===null&&(Xt=new Intl.Segmenter(void 0,{granularity:`grapheme`})),Xt}function Qt(e){return e?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function $t(e,t){let n=[],r=[],i=0,a=!1,o=!1,s=!1;function c(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(``),start:i}),r=[],a=!1,o=!1,s=!1)}function l(e,t,n){r=[e],i=t,a=n,o=Ae(e),s=V.has(e)}function u(e,t){r.push(e),a||=t;let n=Ae(e);e.length===1&&H.has(e)?o||=n:o=n,s=!1}for(let n of Zt().segment(e)){let e=n.segment,i=I(e);if(r.length===0){l(e,n.index,i);continue}if(s||se.has(e)||H.has(e)||t.carryCJKAfterClosingQuote&&i&&o){u(e,i);continue}if(!a&&!i){u(e,i);continue}c(),l(e,n.index,i)}return c(),n}function en(e,t,n){if(t.length<=1)return t;let r=[],i=-1,a=!1;function o(n,i){let a=t[n].start,o=i<t.length?t[i].start:e.length;r.push({text:e.slice(a,o),start:a})}function s(e){if(!(i<0)){if(a)i+1===e?r.push(t[i]):o(i,e);else for(let n=i;n<e;n++)r.push(t[n]);i=-1,a=!1}}for(let e=0;e<t.length;e++){let r=t[e];i>=0&&!B(t[e-1].text,n)&&s(e),i<0&&(i=e),a||=I(r.text)}return s(t.length),r}function tn(e,t){if(t===`zero-width-break`||t===`soft-hyphen`||t===`hard-break`)return 0;if(t===`tab`)return 1;let n=0,r=Zt();for(let t of r.segment(e))n++;return n}function nn(e){return e===`-`||e===`֊`||e===`‐`||e===`‒`||e===`–`||e===`—`}function rn(e){if(!/[-\u058A\u2010\u2012\u2013\u2014]/u.test(e))return null;let t=[],n=0;for(let r of Zt().segment(e))n++,nn(r.segment)&&t.push(n);return t.length===0?null:t}function an(e,t,n){return t>1?e+(t-1)*n:e}function on(e,t,n,r,i){let a=ht(),{cache:o,emojiCorrection:s}=wt(t,yt(e.normalized)),c=J(`-`,q(`-`,o),s)+(i===0?0:i*2),l=J(` `,q(` `,o),s)*8,u=i!==0;if(e.len===0)return Qt(n);let d=[],f=[],p=[],m=[],h=e.chunks.length<=1&&!u,g=n?[]:null,_=[],v=[],y=[],b=n?[]:null,x=Array.from({length:e.len});function S(e,t,n,r,i,a,o,s,c){i!==`text`&&i!==`space`&&i!==`zero-width-break`&&(h=!1),d.push(t),f.push(n),p.push(r),m.push(i),g?.push(a),_.push(o),v.push(s),u&&y.push(c),b!==null&&b.push(e)}function C(e,t,n,c,l){let d=q(e,o),f=u?tn(e,t):0,p=an(J(e,d,s),f,i),m=t===`space`||t===`preserved-space`||t===`zero-width-break`?0:p,h=m===0?0:m+(f>0?i:0),g=t===`space`||t===`zero-width-break`?0:p;if(l&&c&&e.length>1){let c=`sum-graphemes`;i===0?Ze(e)?c=`pair-context`:a.preferPrefixWidthsForBreakableRuns&&(c=`segment-prefixes`):c=`segment-prefixes`;let l=Ct(e,d,o,s,c);S(e,p,h,g,t,n,l,l===null||r===`keep-all`?null:rn(e),f);return}S(e,p,h,g,t,n,null,null,f)}for(let t=0;t<e.len;t++){x[t]=d.length;let n=e.texts[t],i=e.isWordLike[t],s=e.kinds[t],l=e.starts[t];if(s===`soft-hyphen`){S(n,0,c,c,s,l,null,null,0);continue}if(s===`hard-break`){S(n,0,0,0,s,l,null,null,0);continue}if(s===`tab`){S(n,0,0,0,s,l,null,null,u?tn(n,s):0);continue}let f=q(n,o);if(s===`text`&&f.containsCJK){let e=$t(n,a),t=r===`keep-all`?en(n,e,a.breakKeepAllAfterPunctuation):e;for(let e=0;e<t.length;e++){let n=t[e];C(n.text,`text`,l+n.start,i,r===`keep-all`||!I(n.text))}continue}C(n,s,l,i,!0)}let w=sn(e.chunks,x,d.length),T=g===null?null:E(e.normalized,g);return b===null?{widths:d,lineEndFitAdvances:f,lineEndPaintAdvances:p,kinds:m,simpleLineWalkFastPath:h,segLevels:T,breakableFitAdvances:_,breakablePreferredBreaks:v,letterSpacing:i,spacingGraphemeCounts:y,discretionaryHyphenWidth:c,tabStopAdvance:l,chunks:w}:{widths:d,lineEndFitAdvances:f,lineEndPaintAdvances:p,kinds:m,simpleLineWalkFastPath:h,segLevels:T,breakableFitAdvances:_,breakablePreferredBreaks:v,letterSpacing:i,spacingGraphemeCounts:y,discretionaryHyphenWidth:c,tabStopAdvance:l,chunks:w,segments:b}}function sn(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a.startSegmentIndex<t.length?t[a.startSegmentIndex]:n,s=a.endSegmentIndex<t.length?t[a.endSegmentIndex]:n,c=a.consumedEndSegmentIndex<t.length?t[a.consumedEndSegmentIndex]:n;r.push({startSegmentIndex:o,endSegmentIndex:s,consumedEndSegmentIndex:c})}return r}function cn(e,t,n,r){let i=r?.wordBreak??`normal`,a=r?.letterSpacing??0;return on(ot(e,ht(),r?.whiteSpace,i),t,n,i,a)}function ln(e,t,n){return cn(e,t,!0,n)}function un(e){return e}function dn(e,t,n,r,i,a,o){return{text:Yt(e,t,r,i,a,o),width:n,start:{segmentIndex:r,graphemeIndex:i},end:{segmentIndex:a,graphemeIndex:o}}}function fn(e,t,n){let r=[];if(e.widths.length===0)return{lineCount:0,height:0,lines:r};let i=Jt(e),a=Vt(un(e),t,(t,n,a,o,s)=>{r.push(dn(e,i,t,n,a,o,s))});return{lineCount:a,height:a*n,lines:r}}var Y=e(t()),pn=`#94a3b8`,mn=(e,t,n,r,i=pn)=>({id:e,label:t,kind:n,color:i,parentId:r,children:[],size:0,moduleCount:0,totalIncoming:0,totalOutgoing:0,totalNamedImports:0}),hn=e=>Math.max(1,e.importees.length+e.importedBy.length),gn=(e,t)=>{let n=e.cluster??e.package?.name??e.type??e.path;return t.get(n)??pn},_n=e=>{let t=e.path.split(/[\\/]/).filter(Boolean);return t.length>0?t:[e.name]},vn=(e,t)=>{let n=e.path.split(/[\\/]/).filter(Boolean),r=n.lastIndexOf(`node_modules`);if(r===-1)return[t,...n];let i=!!n[r+1]?.startsWith(`@`),a=n.slice(r+(i?3:2));return a.length>0?[t,...a]:[t,e.name]},yn=(e,t,n,r,i,a)=>{let o=t.get(n);if(o)return o;let s=mn(n,r,i,e.id,a);return e.children.push(s),t.set(n,s),s},bn=e=>{if(e.kind===`module`&&e.sourceNode)return e.size=hn(e.sourceNode),e.moduleCount=1,e.totalIncoming=e.sourceNode.importedBy.length,e.totalOutgoing=e.sourceNode.importees.length,e.totalNamedImports=e.sourceNode.imports.length,e;for(let t of e.children)bn(t),e.size+=t.size,e.moduleCount+=t.moduleCount,e.totalIncoming+=t.totalIncoming,e.totalOutgoing+=t.totalOutgoing,e.totalNamedImports+=t.totalNamedImports;return e.children.sort((e,t)=>t.size-e.size||e.label.localeCompare(t.label)),e.children[0]&&(e.color=e.children[0].color),e},xn=(e,t,n)=>{let r=mn(`root`,`All Modules`,`root`,null,pn),i=new Map([[r.id,r]]),o=mn(`scope:workspace`,`Workspace`,`scope`,r.id,`#2563eb`),c=mn(`scope:external`,`External`,`scope`,r.id,`#0f766e`);r.children.push(o,c),i.set(o.id,o),i.set(c.id,c);for(let r of e){let e=a(r,t),l=e===`workspace`?o:c,u=e===`external`?s(r):null,d=e===`workspace`?_n(r):vn(r,u??`external`),f=d.slice(0,-1),p=d.at(-1)??r.name,m=gn(r,n),h=l,g=[e];for(let[t,n]of f.entries()){g.push(n);let r=e===`external`&&t===0?`package`:`folder`,a=`${r}:${g.join(`/`)}`;h=yn(h,i,a,n,r,m)}let _=`module:${r.path}`,v=yn(h,i,_,p,`module`,m);v.sourceNode=r,v.sourcePath=r.path}return bn(r),r.children=r.children.filter(e=>e.moduleCount>0),{root:r,nodesById:i}},Sn=(e,t)=>{let n=[],r=e;for(;r;)n.unshift(r),r=r.parentId?t.get(r.parentId):void 0;return n},Cn=e=>e.kind===`module`?[e]:e.children.flatMap(e=>Cn(e)),wn=(e,t,n,r,i)=>{if(e.length===0||r<=0||i<=0)return[];if(e.length===1)return[{id:e[0].id,x:t,y:n,width:r,height:i,node:e[0]}];let a=e.reduce((e,t)=>e+t.size,0);if(a<=0)return[];let o=1,s=e[0].size;for(;o<e.length-1&&s<a/2;)s+=e[o].size,o+=1;let c=e.slice(0,o),l=e.slice(o);if(l.length===0)return e.map((a,o)=>({id:a.id,x:r>=i?t+r/e.length*o:t,y:r>=i?n:n+i/e.length*o,width:r>=i?r/e.length:r,height:r>=i?i:i/e.length,node:a}));if(r>=i){let e=s/a*r;return[...wn(c,t,n,e,i),...wn(l,t+e,n,r-e,i)]}let u=s/a*i;return[...wn(c,t,n,r,u),...wn(l,t,n+u,r,i-u)]},Tn=(e,t,n,r,i)=>wn([...e].sort((e,t)=>t.size-e.size),t,n,r,i),X=n(),En=18,Dn=1e3,On=600,kn=28,An=36,jn=14,Mn=56,Nn=42,Pn=4,Fn=12,In=3,Ln=2,Rn=2,zn=18,Bn=16,Vn=14,Hn=`600 14px ui-sans-serif, system-ui, sans-serif`,Un=`400 12px ui-sans-serif, system-ui, sans-serif`,Wn=`400 11px ui-sans-serif, system-ui, sans-serif`,Z=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`,Q=e=>e.kind===`module`?e.sourcePath??e.label:e.label,Gn=e=>e.kind===`module`&&e.sourceNode?`${e.sourceNode.type}${e.sourceNode.cluster?` • ${e.sourceNode.cluster}`:``}`:e.kind===`package`?`${Z(e.moduleCount,`module`)} in package`:e.kind===`scope`?`${Z(e.moduleCount,`module`)} in ${e.label.toLowerCase()}`:`${Z(e.moduleCount,`module`)} across this branch`,$=e=>e.kind===`module`?`${e.totalOutgoing} out • ${e.totalIncoming} in`:`${Z(e.moduleCount,`module`)}`,Kn=(e,t)=>e>32&&t>24,qn=e=>e.inlineLabel?!1:e.width*e.height<900||e.width<28||e.height<28,Jn=(e,t,n,r)=>({left:`${e/Dn*100}%`,top:`${t/On*100}%`,width:`${n/Dn*100}%`,height:`${r/On*100}%`}),Yn=(e,t,n,r)=>fn(ln(e,t),Math.max(1,n),r),Xn=(e,t,n)=>{let r=t-kn,i=n-An-jn;if(r<Mn||i<Nn)return null;let a=Yn(e.label,Hn,r,zn);if(a.lineCount===0||a.lineCount>In)return null;let o=Yn($(e),Un,r,Bn);if(o.lineCount===0||o.lineCount>Ln)return null;let s=e.kind===`module`?null:`Click to zoom deeper`,c=s?Yn(s,Wn,r,Vn):null;return c&&c.lineCount>Rn||a.height+Pn+o.height+(c?Fn+c.height:0)>i?null:{titleLines:a.lines.map(e=>e.text),captionLines:o.lines.map(e=>e.text),hintLines:c?c.lines.map(e=>e.text):[]}},Zn=(e,t,n)=>{let r=e;for(;r;){if(r.id===t)return!0;r=r.parentId?n.get(r.parentId)??null:null}return!1},Qn=(e,t)=>{let n=t?.kind===`module`?t.sourcePath??``:``;if(e.kind===`module`&&e.sourcePath)return{selected:e.sourcePath,q:``,scope:e.sourcePath.includes(`node_modules`)?`external`:`workspace`};if(e.kind===`scope`)return{selected:n,q:``,scope:e.id===`scope:external`?`external`:`workspace`};let[,r=``]=e.id.split(`:`),[i,...a]=r.split(`/`);return{selected:n,q:a.join(`/`),scope:i===`external`?`external`:`workspace`}};function $n(){let e=o(),t=l.useSearch(),n=l.useNavigate(),[a,s]=(0,Y.useState)(null);if(!i(e))return(0,X.jsx)(f,{projectTitle:e.projectTitle,title:`Treemap`,description:`Package and module area map for wide snapshot exploration.`,children:(0,X.jsx)(m,{bundle:e})});let u=(0,Y.useMemo)(()=>c(e.graph),[e.graph]),C=(0,Y.useMemo)(()=>{let t=new Map;return e.graph.nodes.forEach(e=>{let n=e.cluster??e.package?.name??e.type??e.path;t.has(n)||t.set(n,b.list[t.size]??b.deterministic(n))}),t},[e.graph.nodes]),w=(0,Y.useMemo)(()=>xn(e.graph.nodes,u,C),[e.graph.nodes,u,C]),T=t.focus||`root`,ee=t.selected||T,E=(e,t)=>{n({replace:t?.replace??!1,resetScroll:!1,search:t=>({...t,...e})})},D=w.nodesById.get(T)??w.root,O=w.nodesById.get(ee)??D,te=(0,Y.useMemo)(()=>Sn(D,w.nodesById),[D,w.nodesById]),ne=D.parentId?w.nodesById.get(D.parentId)??null:null,k=a?w.nodesById.get(a)??null:null,A=(0,Y.useMemo)(()=>k?.kind===`module`&&Zn(k,D.id,w.nodesById)?k:O.kind===`module`&&Zn(O,D.id,w.nodesById)?O:null,[k,O,D.id,w.nodesById]),re=(0,Y.useMemo)(()=>Qn(D,A),[A,D]),ie=D.children.length>0?D.children:[D],j=(0,Y.useMemo)(()=>[...ie].sort((e,t)=>t.size-e.size),[ie]),M=t.paginate,N=Math.max(1,Math.ceil(j.length/En)),P=M?Math.min(t.page,N-1):0,F=M?P*En:0,I=(0,Y.useMemo)(()=>M?j.slice(F,F+En):j,[F,M,j]);(0,Y.useEffect)(()=>{!M||t.page===P||E({page:P},{replace:!0})},[P,M,t.page]);let L=(0,Y.useMemo)(()=>Tn(I,0,0,Dn,On).map((e,t)=>({...e,legendIndex:F+t+1,inlineLabel:Xn(e.node,e.width,e.height)})),[I,F]),R=(0,Y.useMemo)(()=>{if(M)return null;let e=L.filter(qn);if(e.length<8)return null;let t=Math.min(...e.map(e=>e.x)),n=Math.min(...e.map(e=>e.y)),r=Math.max(...e.map(e=>e.x+e.width)),i=Math.max(...e.map(e=>e.y+e.height)),a={x:t,y:n,width:r-t,height:i-n},o=Math.max(18,a.width-12),s=Math.max(18,a.height-12),c=Math.max(1,Math.floor((o+4)/22)),l=Math.max(1,Math.floor((s+4)/22)),u=Math.max(1,c*l),d=Math.max(0,e.length-u),f=d>0?e.slice(0,u-1):e.slice(0,u),p=f.length+ +(d>0),m=Math.min(c,Math.max(1,Math.ceil(Math.sqrt(p)))),h=Math.max(1,Math.ceil(p/m)),g=Math.floor(Math.min((o-4*(m-1))/m,(s-4*(h-1))/h)),_=[];if(f.forEach((e,t)=>{let n=t%m,r=Math.floor(t/m);_.push({id:e.node.id,label:Q(e.node),caption:$(e.node),color:e.node.color,legendIndex:e.legendIndex,x:6+n*(g+4),y:6+r*(g+4),size:g})}),d>0){let e=f.length,t=e%m,n=Math.floor(e/m);_.push({id:`dense-tail-more`,label:`+${d} more`,caption:`Enable pagination to reveal every tiny node`,color:`rgba(15,23,42,0.84)`,legendIndex:0,x:6+t*(g+4),y:6+n*(g+4),size:g})}return{bounds:a,tiles:_,hiddenCount:d}},[M,L]),z=k??O,ae=(0,Y.useMemo)(()=>Cn(O).sort((e,t)=>t.size-e.size).slice(0,6),[O]),oe=e=>{let t=j.findIndex(t=>t.id===e);return t<0?0:Math.floor(t/En)},B=e=>{E({selected:e.id}),e.children.length>0&&E({focus:e.id,page:0,selected:e.id})},se=e=>{E({paginate:!0,page:oe(e),selected:e})},V=e=>{E({focus:e,page:0,selected:e})},ce=Math.min(j.length,F+En);return(0,X.jsx)(f,{projectTitle:e.projectTitle,children:(0,X.jsxs)(`div`,{className:`space-y-4`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,X.jsx)(`h1`,{className:`text-2xl font-bold text-slate-900 dark:text-slate-100`,children:`Treemap Visualization`}),ne&&(0,X.jsxs)(h,{variant:`outline`,size:`sm`,onClick:()=>V(ne.id),className:`gap-2`,children:[(0,X.jsx)(x,{className:`size-4`}),`Up one level`]}),D.id!==w.root.id&&(0,X.jsx)(h,{variant:`outline`,size:`sm`,onClick:()=>V(w.root.id),children:`Reset view`}),(0,X.jsx)(h,{asChild:!0,variant:`outline`,size:`sm`,children:(0,X.jsxs)(r,{to:`/explorer`,search:re,children:[(0,X.jsx)(p,{className:`size-4`}),`Open current view in explorer`]})})]}),(0,X.jsx)(`p`,{className:`mt-2 text-slate-600 dark:text-slate-400`,children:`Size reflects total direct dependency edges for each branch or file. Click folders or packages to drill in, then click files to inspect the hotspot.`})]}),(0,X.jsxs)(`div`,{className:`rounded-[24px] border border-slate-200/70 bg-white/90 p-6 shadow-[0_16px_50px_-32px_rgba(15,23,42,0.55)] dark:border-slate-800 dark:bg-slate-950/70`,children:[(0,X.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center gap-2 text-sm text-slate-500 dark:text-slate-400`,children:[(0,X.jsx)(d,{className:`size-4`}),te.map((e,t)=>(0,X.jsxs)(`button`,{type:`button`,onClick:()=>V(e.id),className:`rounded-full px-2 py-1 transition hover:bg-slate-100 hover:text-slate-900 dark:hover:bg-slate-900 dark:hover:text-slate-100`,children:[t>0?`/ `:``,e.label]},e.id))]}),(0,X.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-start justify-between gap-3 rounded-[20px] border border-slate-200/70 bg-slate-50/90 px-4 py-3 dark:border-slate-800 dark:bg-slate-900/70`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.18em] text-slate-500 dark:text-slate-400`,children:k?`Hover preview`:`Selection preview`}),(0,X.jsx)(`p`,{className:`mt-1 text-sm font-semibold text-slate-900 dark:text-slate-100`,children:Q(z)}),(0,X.jsx)(`p`,{className:`mt-1 text-xs text-slate-500 dark:text-slate-400`,children:Gn(z)})]}),(0,X.jsxs)(`div`,{className:`text-right text-xs text-slate-500 dark:text-slate-400`,children:[(0,X.jsx)(`p`,{children:$(z)}),(0,X.jsx)(`p`,{className:`mt-1`,children:Z(z.totalNamedImports,`import statement`)})]})]}),(0,X.jsxs)(`div`,{className:`mb-4 flex min-h-[84px] flex-wrap items-center justify-between gap-3 rounded-[20px] border border-slate-200/70 bg-white/80 px-4 py-3 text-sm dark:border-slate-800 dark:bg-slate-950/40`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`p`,{className:`font-medium text-slate-900 dark:text-slate-100`,children:M?N>1?`Dense level detected`:`Single-page level`:`Global overview enabled`}),(0,X.jsx)(`p`,{className:`text-slate-500 dark:text-slate-400`,children:M?N>1?`Showing ${F+1}-${ce} of ${j.length} nodes so each page stays readable.`:`Showing all ${j.length} nodes on a single page.`:`Showing all ${j.length} nodes at once for a full branch overview.`})]}),(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsx)(h,{variant:`outline`,size:`sm`,onClick:()=>E({paginate:!M,page:0},{replace:!0}),children:M?`Show global overview`:`Enable pagination`}),(0,X.jsx)(h,{variant:`outline`,size:`sm`,onClick:()=>E({page:Math.max(0,P-1)},{replace:!0}),disabled:!M||N<=1||P===0,children:`Previous page`}),(0,X.jsx)(`span`,{className:`min-w-24 px-2 text-center text-xs font-medium text-slate-500 dark:text-slate-400`,children:M?`Page ${P+1} / ${N}`:`All nodes visible`}),(0,X.jsx)(h,{variant:`outline`,size:`sm`,onClick:()=>E({page:Math.min(N-1,P+1)},{replace:!0}),disabled:!M||N<=1||P>=N-1,children:`Next page`})]})]}),(0,X.jsxs)(`div`,{className:`relative aspect-[5/3] w-full overflow-hidden rounded-[20px] border border-slate-200 bg-slate-50 dark:border-slate-700 dark:bg-slate-900/60`,children:[(0,X.jsx)(`svg`,{viewBox:`0 0 ${Dn} ${On}`,className:`absolute inset-0 h-full w-full`,children:L.map(e=>{if(R&&qn(e))return null;let t=e.node.id===O.id,n=e.node.id===a;return(0,X.jsxs)(`g`,{onClick:()=>B(e.node),className:`cursor-pointer transition-opacity hover:opacity-90`,onMouseEnter:()=>s(e.node.id),onMouseLeave:()=>s(t=>t===e.node.id?null:t),children:[(0,X.jsxs)(`title`,{children:[`#`,e.legendIndex,` `,Q(e.node),`\n${Gn(e.node)}`,`\n${$(e.node)}`]}),(0,X.jsx)(`rect`,{x:e.x+2,y:e.y+2,width:Math.max(0,e.width-4),height:Math.max(0,e.height-4),fill:e.node.color,stroke:t||n?`#0f172a`:`rgba(255,255,255,0.92)`,strokeWidth:t?4:n?3:2,rx:10,opacity:e.node.kind===`module`?.9:.84}),Kn(e.width,e.height)&&(0,X.jsxs)(`g`,{children:[(0,X.jsx)(`rect`,{x:e.x+10,y:e.y+10,width:Math.min(34,Math.max(24,e.width-20)),height:20,rx:10,fill:`rgba(15,23,42,0.72)`}),(0,X.jsxs)(`text`,{x:e.x+10+Math.min(34,Math.max(24,e.width-20))/2,y:e.y+24,textAnchor:`middle`,fontSize:`11`,fontWeight:`700`,fill:`white`,children:[`#`,e.legendIndex]})]}),e.inlineLabel&&(0,X.jsx)(`foreignObject`,{x:e.x+14,y:e.y+36,width:Math.max(0,e.width-28),height:Math.max(0,e.height-50),children:(0,X.jsxs)(`div`,{className:`flex h-full flex-col justify-between overflow-hidden text-white`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`div`,{className:`space-y-0 text-sm font-semibold`,style:{lineHeight:`${zn}px`},children:e.inlineLabel.titleLines.map((t,n)=>(0,X.jsx)(`p`,{className:`overflow-hidden text-ellipsis whitespace-nowrap`,children:t},`${e.id}-title-${n}`))}),(0,X.jsx)(`div`,{className:`mt-1 space-y-0 text-xs opacity-90`,style:{lineHeight:`${Bn}px`},children:e.inlineLabel.captionLines.map((t,n)=>(0,X.jsx)(`p`,{className:`overflow-hidden text-ellipsis whitespace-nowrap`,children:t},`${e.id}-caption-${n}`))})]}),e.inlineLabel.hintLines.length>0&&(0,X.jsx)(`div`,{className:`space-y-0 text-[11px] opacity-80`,style:{lineHeight:`${Vn}px`},children:e.inlineLabel.hintLines.map((t,n)=>(0,X.jsx)(`p`,{className:`overflow-hidden text-ellipsis whitespace-nowrap`,children:t},`${e.id}-hint-${n}`))})]})})]},e.id)})}),(0,X.jsxs)(`div`,{className:`pointer-events-none absolute inset-0`,children:[L.filter(e=>!e.inlineLabel).filter(e=>!(R&&qn(e))).map(e=>(0,X.jsx)(`div`,{className:`pointer-events-auto absolute`,style:Jn(e.x+2,e.y+2,Math.max(0,e.width-4),Math.max(0,e.height-4)),children:(0,X.jsxs)(v,{lazyMount:!0,openDelay:70,closeDelay:0,children:[(0,X.jsx)(g,{asChild:!0,children:(0,X.jsx)(`button`,{type:`button`,className:`block h-full w-full rounded-[10px]`,onClick:()=>B(e.node),onMouseEnter:()=>s(e.node.id),onMouseLeave:()=>s(t=>t===e.node.id?null:t),"aria-label":`Open ${Q(e.node)}`})}),(0,X.jsx)(y,{children:(0,X.jsx)(_,{className:`max-w-80`,children:(0,X.jsxs)(`div`,{className:`space-y-1`,children:[(0,X.jsxs)(`p`,{className:`font-semibold`,children:[`#`,e.legendIndex,` `,Q(e.node)]}),(0,X.jsx)(`p`,{className:`text-xs opacity-80`,children:Gn(e.node)}),(0,X.jsx)(`p`,{className:`text-xs opacity-80`,children:$(e.node)})]})})})]})},`${e.id}-overlay`)),R&&(0,X.jsx)(`div`,{className:`pointer-events-auto absolute`,style:Jn(R.bounds.x,R.bounds.y,R.bounds.width,R.bounds.height),children:(0,X.jsx)(`div`,{className:`relative h-full w-full rounded-[16px] border border-white/75 bg-white/18 p-1 shadow-[0_12px_32px_-22px_rgba(15,23,42,0.55)] backdrop-blur-[1px] dark:border-slate-700/80 dark:bg-slate-950/12`,children:R.tiles.map(e=>e.id===`dense-tail-more`?(0,X.jsxs)(`button`,{type:`button`,onClick:()=>E({paginate:!0,page:0},{replace:!0}),className:`absolute flex items-center justify-center rounded-[10px] text-[10px] font-semibold text-white shadow-sm transition hover:scale-[1.03]`,style:{left:e.x,top:e.y,width:e.size,height:e.size,backgroundColor:e.color},children:[`+`,R.hiddenCount]},e.id):(0,X.jsxs)(v,{lazyMount:!0,openDelay:70,closeDelay:0,children:[(0,X.jsx)(g,{asChild:!0,children:(0,X.jsx)(`button`,{type:`button`,onClick:()=>se(e.id),className:`absolute rounded-[10px] border border-white/80 shadow-sm transition hover:scale-[1.03]`,style:{left:e.x,top:e.y,width:e.size,height:e.size,backgroundColor:e.color},"aria-label":`Open ${e.label}`})}),(0,X.jsx)(y,{children:(0,X.jsx)(_,{className:`max-w-80`,children:(0,X.jsxs)(`div`,{className:`space-y-1`,children:[(0,X.jsxs)(`p`,{className:`font-semibold`,children:[`#`,e.legendIndex,` `,e.label]}),(0,X.jsx)(`p`,{className:`text-xs opacity-80`,children:e.caption})]})})})]},e.id))})})]})]})]}),(0,X.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-[minmax(0,1.2fr)_minmax(0,0.8fr)]`,children:[(0,X.jsxs)(`div`,{className:`rounded-[24px] border border-slate-200/70 bg-white/90 p-6 shadow-[0_16px_50px_-32px_rgba(15,23,42,0.55)] dark:border-slate-800 dark:bg-slate-950/70`,children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.22em] text-sky-700 dark:text-sky-300`,children:`Current selection`}),(0,X.jsx)(`h2`,{className:`mt-2 text-lg font-semibold text-slate-900 dark:text-slate-100`,children:Q(O)}),(0,X.jsx)(`p`,{className:`mt-1 text-sm text-slate-500 dark:text-slate-400`,children:Gn(O)}),(0,X.jsxs)(`div`,{className:`mt-4 grid gap-4 md:grid-cols-3`,children:[(0,X.jsxs)(`div`,{className:`rounded-lg bg-slate-50/80 p-4 dark:bg-slate-900/50`,children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.18em] text-slate-500 dark:text-slate-400`,children:`Modules`}),(0,X.jsx)(`p`,{className:`mt-2 text-2xl font-semibold text-slate-900 dark:text-slate-100`,children:O.moduleCount})]}),(0,X.jsxs)(`div`,{className:`rounded-lg bg-slate-50/80 p-4 dark:bg-slate-900/50`,children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.18em] text-slate-500 dark:text-slate-400`,children:`Outgoing imports`}),(0,X.jsx)(`p`,{className:`mt-2 text-2xl font-semibold text-slate-900 dark:text-slate-100`,children:O.totalOutgoing})]}),(0,X.jsxs)(`div`,{className:`rounded-lg bg-slate-50/80 p-4 dark:bg-slate-900/50`,children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.18em] text-slate-500 dark:text-slate-400`,children:`Incoming imports`}),(0,X.jsx)(`p`,{className:`mt-2 text-2xl font-semibold text-slate-900 dark:text-slate-100`,children:O.totalIncoming})]})]}),O.kind===`module`&&O.sourceNode&&(0,X.jsxs)(`div`,{className:`mt-4 rounded-lg bg-slate-50/80 p-4 text-sm text-slate-600 dark:bg-slate-900/50 dark:text-slate-300`,children:[(0,X.jsxs)(`p`,{children:[`Named imports in source: `,O.totalNamedImports]}),(0,X.jsxs)(`p`,{className:`mt-1`,children:[`Imported by`,` `,Z(O.sourceNode.importedBy.length,`module`),`and imports`,` `,Z(O.sourceNode.importees.length,`module`),`.`]})]})]}),(0,X.jsxs)(`div`,{className:`rounded-[24px] border border-slate-200/70 bg-white/90 p-6 shadow-[0_16px_50px_-32px_rgba(15,23,42,0.55)] dark:border-slate-800 dark:bg-slate-950/70`,children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.22em] text-slate-500 dark:text-slate-400`,children:`Nodes in current view`}),(0,X.jsx)(`p`,{className:`mt-1 text-sm text-slate-500 dark:text-slate-400`,children:M?`Tiny tiles are numbered to match this page of the list.`:`Tiny tiles are numbered to match the full list below.`}),(0,X.jsxs)(`div`,{className:`mt-4 max-h-[26rem] space-y-3 overflow-auto pr-1`,children:[L.map(e=>(0,X.jsx)(`button`,{type:`button`,onClick:()=>B(e.node),onMouseEnter:()=>s(e.node.id),onMouseLeave:()=>s(t=>t===e.node.id?null:t),className:`block w-full rounded-2xl border border-slate-200/80 bg-slate-50/80 px-4 py-3 text-left transition hover:border-slate-300 hover:bg-slate-100 dark:border-slate-800 dark:bg-slate-900/60 dark:hover:border-slate-700 dark:hover:bg-slate-900`,children:(0,X.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,X.jsxs)(`div`,{className:`mt-0.5 flex items-center gap-2`,children:[(0,X.jsxs)(`span`,{className:`inline-flex min-w-8 items-center justify-center rounded-full bg-slate-900 px-2 py-1 text-[11px] font-semibold text-white dark:bg-slate-100 dark:text-slate-900`,children:[`#`,e.legendIndex]}),(0,X.jsx)(`span`,{className:`mt-1 size-3 rounded-full`,style:{backgroundColor:e.node.color}})]}),(0,X.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,X.jsx)(`p`,{className:`truncate text-sm font-semibold text-slate-900 dark:text-slate-100`,children:Q(e.node)}),(0,X.jsx)(`p`,{className:`mt-1 text-xs text-slate-500 dark:text-slate-400`,children:Gn(e.node)}),(0,X.jsx)(`p`,{className:`mt-1 text-xs text-slate-500 dark:text-slate-400`,children:$(e.node)})]})]})},e.id)),L.length===0&&(0,X.jsx)(`p`,{className:`text-sm text-slate-500 dark:text-slate-400`,children:`No nodes are visible at this level.`}),ae.length>0&&(0,X.jsxs)(`div`,{className:`pt-2`,children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.18em] text-slate-500 dark:text-slate-400`,children:`Heaviest modules in selection`}),(0,X.jsx)(`div`,{className:`mt-3 space-y-3`,children:ae.map(e=>(0,X.jsxs)(`button`,{type:`button`,onClick:()=>E({selected:e.id}),className:`block w-full rounded-2xl border border-slate-200/80 bg-slate-50/80 px-4 py-3 text-left transition hover:border-slate-300 hover:bg-slate-100 dark:border-slate-800 dark:bg-slate-900/60 dark:hover:border-slate-700 dark:hover:bg-slate-900`,children:[(0,X.jsx)(`p`,{className:`truncate text-sm font-semibold text-slate-900 dark:text-slate-100`,children:e.sourcePath??e.label}),(0,X.jsxs)(`p`,{className:`mt-1 text-xs text-slate-500 dark:text-slate-400`,children:[e.totalOutgoing,` outgoing • `,e.totalIncoming,` incoming`]})]},e.id))})]})]})]})]}),(0,X.jsx)(`div`,{className:`rounded-[24px] border border-blue-200/70 bg-blue-50/80 p-4 dark:border-blue-900/30 dark:bg-blue-950/30`,children:(0,X.jsxs)(`div`,{className:`flex gap-3`,children:[(0,X.jsx)(S,{className:`mt-0.5 size-5 shrink-0 text-blue-900 dark:text-blue-100`}),(0,X.jsxs)(`div`,{className:`text-sm text-blue-800 dark:text-blue-200`,children:[(0,X.jsx)(`p`,{className:`font-semibold`,children:`About this view`}),(0,X.jsx)(`p`,{className:`mt-1`,children:`The treemap now groups workspace code by folders and third-party code by package, so the first click reveals structure instead of dropping you into a broken leaf. Area reflects direct dependency pressure using incoming plus outgoing edges.`})]})]})})]})})}export{$n as component};
@@ -21,7 +21,7 @@ var tsrStartManifest = () => ({
21
21
  ],
22
22
  assets: void 0,
23
23
  preloads: [
24
- "/assets/index-Dj_rhLdR.js",
24
+ "/assets/index-MuhMV3ad.js",
25
25
  "/assets/jsx-runtime-DWSWI4JT.js",
26
26
  "/assets/modviz-data-BiRqoDI5.js",
27
27
  "/assets/lazyRouteComponent-PTSyFp1J.js",
@@ -31,7 +31,7 @@ var tsrStartManifest = () => ({
31
31
  "/assets/explorer-C7NclVKg.js",
32
32
  "/assets/hierarchy-iO7d4oSK.js",
33
33
  "/assets/imports-CPggnrs-.js",
34
- "/assets/treemap-Csroy8Gy.js"
34
+ "/assets/treemap-B6RbbHUZ.js"
35
35
  ]
36
36
  },
37
37
  "/": {
@@ -170,7 +170,7 @@ var tsrStartManifest = () => ({
170
170
  children: void 0,
171
171
  assets: void 0,
172
172
  preloads: [
173
- "/assets/treemap-BZf2shzY.js",
173
+ "/assets/treemap-BaEdxIhV.js",
174
174
  "/assets/button-aOWckyNs.js",
175
175
  "/assets/portal-BgAm3V3j.js",
176
176
  "/assets/tooltip-B1VDU9HG.js",
@@ -182,7 +182,7 @@ var tsrStartManifest = () => ({
182
182
  ]
183
183
  }
184
184
  },
185
- clientEntry: "/assets/index-Dj_rhLdR.js"
185
+ clientEntry: "/assets/index-MuhMV3ad.js"
186
186
  });
187
187
  //#endregion
188
188
  export { tsrStartManifest };
@@ -3860,7 +3860,7 @@ var defaultSerovalPlugins = [
3860
3860
  * the dev styles URL for route-scoped CSS collection.
3861
3861
  */
3862
3862
  async function getStartManifest(matchedRoutes) {
3863
- const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-DMytuIue.js");
3863
+ const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-D4Pee14z.js");
3864
3864
  const startManifest = tsrStartManifest();
3865
3865
  const rootRoute = startManifest.routes[rootRouteId$1] = startManifest.routes["__root__"] || {};
3866
3866
  rootRoute.assets = rootRoute.assets || [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modviz",
3
3
  "type": "module",
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "description": "CLI and web UI for analyzing and visualizing TypeScript and JavaScript module dependency graphs.",
6
6
  "keywords": [
7
7
  "module",
@@ -72,7 +72,7 @@
72
72
  "@ai-sdk/openai": "3.0.52",
73
73
  "@ark-ui/react": "5.36.0",
74
74
  "@astahmer/module-graph": "0.14.2",
75
- "@chenglou/pretext": "0.0.5",
75
+ "@chenglou/pretext": "0.0.8",
76
76
  "@radix-ui/react-dialog": "1.1.15",
77
77
  "@radix-ui/react-popover": "1.1.15",
78
78
  "@radix-ui/react-slot": "1.2.4",
@@ -1,5 +0,0 @@
1
- import{a as e,n as t,t as n}from"./jsx-runtime-DWSWI4JT.js";import{_ as r,d as i,l as a,p as o,s,u as c}from"./modviz-data-BiRqoDI5.js";import{t as l}from"./treemap-Csroy8Gy.js";import{r as u}from"./utils-DkkZd0ys.js";import{a as d,t as f}from"./modviz-layout-Do93E-IB.js";import{t as p}from"./external-link-B9eNA-li.js";import{t as m}from"./setup-view-j1o0TuZz.js";import{t as h}from"./button-aOWckyNs.js";import{i as g,r as _,t as v}from"./tooltip-B1VDU9HG.js";import{t as y}from"./portal-BgAm3V3j.js";import{t as b}from"./colors-CQoWjU5E.js";var x=u(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),S=u(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),C=`BN.BN.BN.BN.BN.BN.BN.BN.BN.S.B.S.WS.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.B.B.B.S.WS.ON.ON.ET.ET.ET.ON.ON.ON.ON.ON.ES.CS.ES.CS.CS.EN.EN.EN.EN.EN.EN.EN.EN.EN.EN.CS.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.ON.ON.ON.BN.BN.BN.BN.BN.BN.B.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.BN.CS.ON.ET.ET.ET.ET.ON.ON.ON.ON.L.ON.ON.BN.ON.ON.ET.ET.EN.EN.ON.L.ON.ON.ON.EN.L.ON.ON.ON.ON.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.ON.L.L.L.L.L.L.L.L`.split(`.`),w=[[697,698,`ON`],[706,719,`ON`],[722,735,`ON`],[741,749,`ON`],[751,767,`ON`],[768,879,`NSM`],[884,885,`ON`],[894,894,`ON`],[900,901,`ON`],[903,903,`ON`],[1014,1014,`ON`],[1155,1161,`NSM`],[1418,1418,`ON`],[1421,1422,`ON`],[1423,1423,`ET`],[1424,1424,`R`],[1425,1469,`NSM`],[1470,1470,`R`],[1471,1471,`NSM`],[1472,1472,`R`],[1473,1474,`NSM`],[1475,1475,`R`],[1476,1477,`NSM`],[1478,1478,`R`],[1479,1479,`NSM`],[1480,1535,`R`],[1536,1541,`AN`],[1542,1543,`ON`],[1544,1544,`AL`],[1545,1546,`ET`],[1547,1547,`AL`],[1548,1548,`CS`],[1549,1549,`AL`],[1550,1551,`ON`],[1552,1562,`NSM`],[1563,1610,`AL`],[1611,1631,`NSM`],[1632,1641,`AN`],[1642,1642,`ET`],[1643,1644,`AN`],[1645,1647,`AL`],[1648,1648,`NSM`],[1649,1749,`AL`],[1750,1756,`NSM`],[1757,1757,`AN`],[1758,1758,`ON`],[1759,1764,`NSM`],[1765,1766,`AL`],[1767,1768,`NSM`],[1769,1769,`ON`],[1770,1773,`NSM`],[1774,1775,`AL`],[1776,1785,`EN`],[1786,1808,`AL`],[1809,1809,`NSM`],[1810,1839,`AL`],[1840,1866,`NSM`],[1867,1957,`AL`],[1958,1968,`NSM`],[1969,1983,`AL`],[1984,2026,`R`],[2027,2035,`NSM`],[2036,2037,`R`],[2038,2041,`ON`],[2042,2044,`R`],[2045,2045,`NSM`],[2046,2069,`R`],[2070,2073,`NSM`],[2074,2074,`R`],[2075,2083,`NSM`],[2084,2084,`R`],[2085,2087,`NSM`],[2088,2088,`R`],[2089,2093,`NSM`],[2094,2136,`R`],[2137,2139,`NSM`],[2140,2143,`R`],[2144,2191,`AL`],[2192,2193,`AN`],[2194,2198,`AL`],[2199,2207,`NSM`],[2208,2249,`AL`],[2250,2273,`NSM`],[2274,2274,`AN`],[2275,2306,`NSM`],[2362,2362,`NSM`],[2364,2364,`NSM`],[2369,2376,`NSM`],[2381,2381,`NSM`],[2385,2391,`NSM`],[2402,2403,`NSM`],[2433,2433,`NSM`],[2492,2492,`NSM`],[2497,2500,`NSM`],[2509,2509,`NSM`],[2530,2531,`NSM`],[2546,2547,`ET`],[2555,2555,`ET`],[2558,2558,`NSM`],[2561,2562,`NSM`],[2620,2620,`NSM`],[2625,2626,`NSM`],[2631,2632,`NSM`],[2635,2637,`NSM`],[2641,2641,`NSM`],[2672,2673,`NSM`],[2677,2677,`NSM`],[2689,2690,`NSM`],[2748,2748,`NSM`],[2753,2757,`NSM`],[2759,2760,`NSM`],[2765,2765,`NSM`],[2786,2787,`NSM`],[2801,2801,`ET`],[2810,2815,`NSM`],[2817,2817,`NSM`],[2876,2876,`NSM`],[2879,2879,`NSM`],[2881,2884,`NSM`],[2893,2893,`NSM`],[2901,2902,`NSM`],[2914,2915,`NSM`],[2946,2946,`NSM`],[3008,3008,`NSM`],[3021,3021,`NSM`],[3059,3064,`ON`],[3065,3065,`ET`],[3066,3066,`ON`],[3072,3072,`NSM`],[3076,3076,`NSM`],[3132,3132,`NSM`],[3134,3136,`NSM`],[3142,3144,`NSM`],[3146,3149,`NSM`],[3157,3158,`NSM`],[3170,3171,`NSM`],[3192,3198,`ON`],[3201,3201,`NSM`],[3260,3260,`NSM`],[3276,3277,`NSM`],[3298,3299,`NSM`],[3328,3329,`NSM`],[3387,3388,`NSM`],[3393,3396,`NSM`],[3405,3405,`NSM`],[3426,3427,`NSM`],[3457,3457,`NSM`],[3530,3530,`NSM`],[3538,3540,`NSM`],[3542,3542,`NSM`],[3633,3633,`NSM`],[3636,3642,`NSM`],[3647,3647,`ET`],[3655,3662,`NSM`],[3761,3761,`NSM`],[3764,3772,`NSM`],[3784,3790,`NSM`],[3864,3865,`NSM`],[3893,3893,`NSM`],[3895,3895,`NSM`],[3897,3897,`NSM`],[3898,3901,`ON`],[3953,3966,`NSM`],[3968,3972,`NSM`],[3974,3975,`NSM`],[3981,3991,`NSM`],[3993,4028,`NSM`],[4038,4038,`NSM`],[4141,4144,`NSM`],[4146,4151,`NSM`],[4153,4154,`NSM`],[4157,4158,`NSM`],[4184,4185,`NSM`],[4190,4192,`NSM`],[4209,4212,`NSM`],[4226,4226,`NSM`],[4229,4230,`NSM`],[4237,4237,`NSM`],[4253,4253,`NSM`],[4957,4959,`NSM`],[5008,5017,`ON`],[5120,5120,`ON`],[5760,5760,`WS`],[5787,5788,`ON`],[5906,5908,`NSM`],[5938,5939,`NSM`],[5970,5971,`NSM`],[6002,6003,`NSM`],[6068,6069,`NSM`],[6071,6077,`NSM`],[6086,6086,`NSM`],[6089,6099,`NSM`],[6107,6107,`ET`],[6109,6109,`NSM`],[6128,6137,`ON`],[6144,6154,`ON`],[6155,6157,`NSM`],[6158,6158,`BN`],[6159,6159,`NSM`],[6277,6278,`NSM`],[6313,6313,`NSM`],[6432,6434,`NSM`],[6439,6440,`NSM`],[6450,6450,`NSM`],[6457,6459,`NSM`],[6464,6464,`ON`],[6468,6469,`ON`],[6622,6655,`ON`],[6679,6680,`NSM`],[6683,6683,`NSM`],[6742,6742,`NSM`],[6744,6750,`NSM`],[6752,6752,`NSM`],[6754,6754,`NSM`],[6757,6764,`NSM`],[6771,6780,`NSM`],[6783,6783,`NSM`],[6832,6877,`NSM`],[6880,6891,`NSM`],[6912,6915,`NSM`],[6964,6964,`NSM`],[6966,6970,`NSM`],[6972,6972,`NSM`],[6978,6978,`NSM`],[7019,7027,`NSM`],[7040,7041,`NSM`],[7074,7077,`NSM`],[7080,7081,`NSM`],[7083,7085,`NSM`],[7142,7142,`NSM`],[7144,7145,`NSM`],[7149,7149,`NSM`],[7151,7153,`NSM`],[7212,7219,`NSM`],[7222,7223,`NSM`],[7376,7378,`NSM`],[7380,7392,`NSM`],[7394,7400,`NSM`],[7405,7405,`NSM`],[7412,7412,`NSM`],[7416,7417,`NSM`],[7616,7679,`NSM`],[8125,8125,`ON`],[8127,8129,`ON`],[8141,8143,`ON`],[8157,8159,`ON`],[8173,8175,`ON`],[8189,8190,`ON`],[8192,8202,`WS`],[8203,8205,`BN`],[8207,8207,`R`],[8208,8231,`ON`],[8232,8232,`WS`],[8233,8233,`B`],[8234,8238,`BN`],[8239,8239,`CS`],[8240,8244,`ET`],[8245,8259,`ON`],[8260,8260,`CS`],[8261,8286,`ON`],[8287,8287,`WS`],[8288,8303,`BN`],[8304,8304,`EN`],[8308,8313,`EN`],[8314,8315,`ES`],[8316,8318,`ON`],[8320,8329,`EN`],[8330,8331,`ES`],[8332,8334,`ON`],[8352,8399,`ET`],[8400,8432,`NSM`],[8448,8449,`ON`],[8451,8454,`ON`],[8456,8457,`ON`],[8468,8468,`ON`],[8470,8472,`ON`],[8478,8483,`ON`],[8485,8485,`ON`],[8487,8487,`ON`],[8489,8489,`ON`],[8494,8494,`ET`],[8506,8507,`ON`],[8512,8516,`ON`],[8522,8525,`ON`],[8528,8543,`ON`],[8585,8587,`ON`],[8592,8721,`ON`],[8722,8722,`ES`],[8723,8723,`ET`],[8724,9013,`ON`],[9083,9108,`ON`],[9110,9257,`ON`],[9280,9290,`ON`],[9312,9351,`ON`],[9352,9371,`EN`],[9450,9899,`ON`],[9901,10239,`ON`],[10496,11123,`ON`],[11126,11263,`ON`],[11493,11498,`ON`],[11503,11505,`NSM`],[11513,11519,`ON`],[11647,11647,`NSM`],[11744,11775,`NSM`],[11776,11869,`ON`],[11904,11929,`ON`],[11931,12019,`ON`],[12032,12245,`ON`],[12272,12287,`ON`],[12288,12288,`WS`],[12289,12292,`ON`],[12296,12320,`ON`],[12330,12333,`NSM`],[12336,12336,`ON`],[12342,12343,`ON`],[12349,12351,`ON`],[12441,12442,`NSM`],[12443,12444,`ON`],[12448,12448,`ON`],[12539,12539,`ON`],[12736,12773,`ON`],[12783,12783,`ON`],[12829,12830,`ON`],[12880,12895,`ON`],[12924,12926,`ON`],[12977,12991,`ON`],[13004,13007,`ON`],[13175,13178,`ON`],[13278,13279,`ON`],[13311,13311,`ON`],[19904,19967,`ON`],[42128,42182,`ON`],[42509,42511,`ON`],[42607,42610,`NSM`],[42611,42611,`ON`],[42612,42621,`NSM`],[42622,42623,`ON`],[42654,42655,`NSM`],[42736,42737,`NSM`],[42752,42785,`ON`],[42888,42888,`ON`],[43010,43010,`NSM`],[43014,43014,`NSM`],[43019,43019,`NSM`],[43045,43046,`NSM`],[43048,43051,`ON`],[43052,43052,`NSM`],[43064,43065,`ET`],[43124,43127,`ON`],[43204,43205,`NSM`],[43232,43249,`NSM`],[43263,43263,`NSM`],[43302,43309,`NSM`],[43335,43345,`NSM`],[43392,43394,`NSM`],[43443,43443,`NSM`],[43446,43449,`NSM`],[43452,43453,`NSM`],[43493,43493,`NSM`],[43561,43566,`NSM`],[43569,43570,`NSM`],[43573,43574,`NSM`],[43587,43587,`NSM`],[43596,43596,`NSM`],[43644,43644,`NSM`],[43696,43696,`NSM`],[43698,43700,`NSM`],[43703,43704,`NSM`],[43710,43711,`NSM`],[43713,43713,`NSM`],[43756,43757,`NSM`],[43766,43766,`NSM`],[43882,43883,`ON`],[44005,44005,`NSM`],[44008,44008,`NSM`],[44013,44013,`NSM`],[64285,64285,`R`],[64286,64286,`NSM`],[64287,64296,`R`],[64297,64297,`ES`],[64298,64335,`R`],[64336,64450,`AL`],[64451,64466,`ON`],[64467,64829,`AL`],[64830,64847,`ON`],[64848,64911,`AL`],[64912,64913,`ON`],[64914,64967,`AL`],[64968,64975,`ON`],[64976,65007,`BN`],[65008,65020,`AL`],[65021,65023,`ON`],[65024,65039,`NSM`],[65040,65049,`ON`],[65056,65071,`NSM`],[65072,65103,`ON`],[65104,65104,`CS`],[65105,65105,`ON`],[65106,65106,`CS`],[65108,65108,`ON`],[65109,65109,`CS`],[65110,65118,`ON`],[65119,65119,`ET`],[65120,65121,`ON`],[65122,65123,`ES`],[65124,65126,`ON`],[65128,65128,`ON`],[65129,65130,`ET`],[65131,65131,`ON`],[65136,65278,`AL`],[65279,65279,`BN`],[65281,65282,`ON`],[65283,65285,`ET`],[65286,65290,`ON`],[65291,65291,`ES`],[65292,65292,`CS`],[65293,65293,`ES`],[65294,65295,`CS`],[65296,65305,`EN`],[65306,65306,`CS`],[65307,65312,`ON`],[65339,65344,`ON`],[65371,65381,`ON`],[65504,65505,`ET`],[65506,65508,`ON`],[65509,65510,`ET`],[65512,65518,`ON`],[65520,65528,`BN`],[65529,65533,`ON`],[65534,65535,`BN`],[65793,65793,`ON`],[65856,65932,`ON`],[65936,65948,`ON`],[65952,65952,`ON`],[66045,66045,`NSM`],[66272,66272,`NSM`],[66273,66299,`EN`],[66422,66426,`NSM`],[67584,67870,`R`],[67871,67871,`ON`],[67872,68096,`R`],[68097,68099,`NSM`],[68100,68100,`R`],[68101,68102,`NSM`],[68103,68107,`R`],[68108,68111,`NSM`],[68112,68151,`R`],[68152,68154,`NSM`],[68155,68158,`R`],[68159,68159,`NSM`],[68160,68324,`R`],[68325,68326,`NSM`],[68327,68408,`R`],[68409,68415,`ON`],[68416,68863,`R`],[68864,68899,`AL`],[68900,68903,`NSM`],[68904,68911,`AL`],[68912,68921,`AN`],[68922,68927,`AL`],[68928,68937,`AN`],[68938,68968,`R`],[68969,68973,`NSM`],[68974,68974,`ON`],[68975,69215,`R`],[69216,69246,`AN`],[69247,69290,`R`],[69291,69292,`NSM`],[69293,69311,`R`],[69312,69327,`AL`],[69328,69336,`ON`],[69337,69369,`AL`],[69370,69375,`NSM`],[69376,69423,`R`],[69424,69445,`AL`],[69446,69456,`NSM`],[69457,69487,`AL`],[69488,69505,`R`],[69506,69509,`NSM`],[69510,69631,`R`],[69633,69633,`NSM`],[69688,69702,`NSM`],[69714,69733,`ON`],[69744,69744,`NSM`],[69747,69748,`NSM`],[69759,69761,`NSM`],[69811,69814,`NSM`],[69817,69818,`NSM`],[69826,69826,`NSM`],[69888,69890,`NSM`],[69927,69931,`NSM`],[69933,69940,`NSM`],[70003,70003,`NSM`],[70016,70017,`NSM`],[70070,70078,`NSM`],[70089,70092,`NSM`],[70095,70095,`NSM`],[70191,70193,`NSM`],[70196,70196,`NSM`],[70198,70199,`NSM`],[70206,70206,`NSM`],[70209,70209,`NSM`],[70367,70367,`NSM`],[70371,70378,`NSM`],[70400,70401,`NSM`],[70459,70460,`NSM`],[70464,70464,`NSM`],[70502,70508,`NSM`],[70512,70516,`NSM`],[70587,70592,`NSM`],[70606,70606,`NSM`],[70608,70608,`NSM`],[70610,70610,`NSM`],[70625,70626,`NSM`],[70712,70719,`NSM`],[70722,70724,`NSM`],[70726,70726,`NSM`],[70750,70750,`NSM`],[70835,70840,`NSM`],[70842,70842,`NSM`],[70847,70848,`NSM`],[70850,70851,`NSM`],[71090,71093,`NSM`],[71100,71101,`NSM`],[71103,71104,`NSM`],[71132,71133,`NSM`],[71219,71226,`NSM`],[71229,71229,`NSM`],[71231,71232,`NSM`],[71264,71276,`ON`],[71339,71339,`NSM`],[71341,71341,`NSM`],[71344,71349,`NSM`],[71351,71351,`NSM`],[71453,71453,`NSM`],[71455,71455,`NSM`],[71458,71461,`NSM`],[71463,71467,`NSM`],[71727,71735,`NSM`],[71737,71738,`NSM`],[71995,71996,`NSM`],[71998,71998,`NSM`],[72003,72003,`NSM`],[72148,72151,`NSM`],[72154,72155,`NSM`],[72160,72160,`NSM`],[72193,72198,`NSM`],[72201,72202,`NSM`],[72243,72248,`NSM`],[72251,72254,`NSM`],[72263,72263,`NSM`],[72273,72278,`NSM`],[72281,72283,`NSM`],[72330,72342,`NSM`],[72344,72345,`NSM`],[72544,72544,`NSM`],[72546,72548,`NSM`],[72550,72550,`NSM`],[72752,72758,`NSM`],[72760,72765,`NSM`],[72850,72871,`NSM`],[72874,72880,`NSM`],[72882,72883,`NSM`],[72885,72886,`NSM`],[73009,73014,`NSM`],[73018,73018,`NSM`],[73020,73021,`NSM`],[73023,73029,`NSM`],[73031,73031,`NSM`],[73104,73105,`NSM`],[73109,73109,`NSM`],[73111,73111,`NSM`],[73459,73460,`NSM`],[73472,73473,`NSM`],[73526,73530,`NSM`],[73536,73536,`NSM`],[73538,73538,`NSM`],[73562,73562,`NSM`],[73685,73692,`ON`],[73693,73696,`ET`],[73697,73713,`ON`],[78912,78912,`NSM`],[78919,78933,`NSM`],[90398,90409,`NSM`],[90413,90415,`NSM`],[92912,92916,`NSM`],[92976,92982,`NSM`],[94031,94031,`NSM`],[94095,94098,`NSM`],[94178,94178,`ON`],[94180,94180,`NSM`],[113821,113822,`NSM`],[113824,113827,`BN`],[117760,117973,`ON`],[118e3,118009,`EN`],[118010,118012,`ON`],[118016,118451,`ON`],[118458,118480,`ON`],[118496,118512,`ON`],[118528,118573,`NSM`],[118576,118598,`NSM`],[119143,119145,`NSM`],[119155,119162,`BN`],[119163,119170,`NSM`],[119173,119179,`NSM`],[119210,119213,`NSM`],[119273,119274,`ON`],[119296,119361,`ON`],[119362,119364,`NSM`],[119365,119365,`ON`],[119552,119638,`ON`],[120513,120513,`ON`],[120539,120539,`ON`],[120571,120571,`ON`],[120597,120597,`ON`],[120629,120629,`ON`],[120655,120655,`ON`],[120687,120687,`ON`],[120713,120713,`ON`],[120745,120745,`ON`],[120771,120771,`ON`],[120782,120831,`EN`],[121344,121398,`NSM`],[121403,121452,`NSM`],[121461,121461,`NSM`],[121476,121476,`NSM`],[121499,121503,`NSM`],[121505,121519,`NSM`],[122880,122886,`NSM`],[122888,122904,`NSM`],[122907,122913,`NSM`],[122915,122916,`NSM`],[122918,122922,`NSM`],[123023,123023,`NSM`],[123184,123190,`NSM`],[123566,123566,`NSM`],[123628,123631,`NSM`],[123647,123647,`ET`],[124140,124143,`NSM`],[124398,124399,`NSM`],[124643,124643,`NSM`],[124646,124646,`NSM`],[124654,124655,`NSM`],[124661,124661,`NSM`],[124928,125135,`R`],[125136,125142,`NSM`],[125143,125251,`R`],[125252,125258,`NSM`],[125259,126063,`R`],[126064,126143,`AL`],[126144,126207,`R`],[126208,126287,`AL`],[126288,126463,`R`],[126464,126703,`AL`],[126704,126705,`ON`],[126706,126719,`AL`],[126720,126975,`R`],[126976,127019,`ON`],[127024,127123,`ON`],[127136,127150,`ON`],[127153,127167,`ON`],[127169,127183,`ON`],[127185,127221,`ON`],[127232,127242,`EN`],[127243,127247,`ON`],[127279,127279,`ON`],[127338,127343,`ON`],[127405,127405,`ON`],[127584,127589,`ON`],[127744,128728,`ON`],[128732,128748,`ON`],[128752,128764,`ON`],[128768,128985,`ON`],[128992,129003,`ON`],[129008,129008,`ON`],[129024,129035,`ON`],[129040,129095,`ON`],[129104,129113,`ON`],[129120,129159,`ON`],[129168,129197,`ON`],[129200,129211,`ON`],[129216,129217,`ON`],[129232,129240,`ON`],[129280,129623,`ON`],[129632,129645,`ON`],[129648,129660,`ON`],[129664,129674,`ON`],[129678,129734,`ON`],[129736,129736,`ON`],[129741,129756,`ON`],[129759,129770,`ON`],[129775,129784,`ON`],[129792,129938,`ON`],[129940,130031,`ON`],[130032,130041,`EN`],[130042,130042,`ON`],[131070,131071,`BN`],[196606,196607,`BN`],[262142,262143,`BN`],[327678,327679,`BN`],[393214,393215,`BN`],[458750,458751,`BN`],[524286,524287,`BN`],[589822,589823,`BN`],[655358,655359,`BN`],[720894,720895,`BN`],[786430,786431,`BN`],[851966,851967,`BN`],[917502,917759,`BN`],[917760,917999,`NSM`],[918e3,921599,`BN`],[983038,983039,`BN`],[1048574,1048575,`BN`],[1114110,1114111,`BN`]];function T(e){if(e<=255)return C[e];let t=0,n=w.length-1;for(;t<=n;){let r=t+n>>1,i=w[r];if(e<i[0]){n=r-1;continue}if(e>i[1]){t=r+1;continue}return i[2]}return`L`}function E(e){let t=e.length;if(t===0)return null;let n=Array(t),r=!1;for(let i=0;i<t;){let a=e.charCodeAt(i),o=a,s=1;if(a>=55296&&a<=56319&&i+1<t){let t=e.charCodeAt(i+1);t>=56320&&t<=57343&&(o=(a-55296<<10)+(t-56320)+65536,s=2)}let c=T(o);(c===`R`||c===`AL`||c===`AN`)&&(r=!0);for(let e=0;e<s;e++)n[i+e]=c;i+=s}if(!r)return null;let i=0;for(let e=0;e<t;e++){let t=n[e];if(t===`L`){i=0;break}if(t===`R`||t===`AL`){i=1;break}}let a=new Int8Array(t);for(let e=0;e<t;e++)a[e]=i;let o=i&1?`R`:`L`,s=o,c=s;for(let e=0;e<t;e++)n[e]===`NSM`?n[e]=c:c=n[e];c=s;for(let e=0;e<t;e++){let t=n[e];t===`EN`?n[e]=c===`AL`?`AN`:`EN`:(t===`R`||t===`L`||t===`AL`)&&(c=t)}for(let e=0;e<t;e++)n[e]===`AL`&&(n[e]=`R`);for(let e=1;e<t-1;e++)n[e]===`ES`&&n[e-1]===`EN`&&n[e+1]===`EN`&&(n[e]=`EN`),n[e]===`CS`&&(n[e-1]===`EN`||n[e-1]===`AN`)&&n[e+1]===n[e-1]&&(n[e]=n[e-1]);for(let e=0;e<t;e++){if(n[e]!==`EN`)continue;let r;for(r=e-1;r>=0&&n[r]===`ET`;r--)n[r]=`EN`;for(r=e+1;r<t&&n[r]===`ET`;r++)n[r]=`EN`}for(let e=0;e<t;e++){let t=n[e];(t===`WS`||t===`ES`||t===`ET`||t===`CS`)&&(n[e]=`ON`)}c=s;for(let e=0;e<t;e++){let t=n[e];t===`EN`?n[e]=c===`L`?`L`:`EN`:(t===`R`||t===`L`)&&(c=t)}for(let e=0;e<t;e++){if(n[e]!==`ON`)continue;let r=e+1;for(;r<t&&n[r]===`ON`;)r++;let i=e>0?n[e-1]:s,a=r<t?n[r]:s,o=i===`L`?`L`:`R`;if(o===(a===`L`?`L`:`R`))for(let t=e;t<r;t++)n[t]=o;e=r-1}for(let e=0;e<t;e++)n[e]===`ON`&&(n[e]=o);for(let e=0;e<t;e++){let t=n[e];a[e]&1?(t===`L`||t===`AN`||t===`EN`)&&a[e]++:t===`R`?a[e]++:(t===`AN`||t===`EN`)&&(a[e]+=2)}return a}function D(e,t){let n=E(e);if(n===null)return null;let r=new Int8Array(t.length);for(let e=0;e<t.length;e++)r[e]=n[t[e]];return r}var O=/[ \t\n\r\f]+/g,k=/[\t\n\r\f]| {2,}|^ | $/;function ee(e){let t=e??`normal`;return t===`pre-wrap`?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function A(e){if(!k.test(e))return e;let t=e.replace(O,` `);return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function j(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
2
- `).replace(/[\r\f]/g,`
3
- `):e.replace(/\r\n/g,`
4
- `)}var M=null,te;function ne(){return M===null&&(M=new Intl.Segmenter(te,{granularity:`word`})),M}var N=/\p{Script=Arabic}/u,P=/\p{M}/u,F=/\p{Nd}/u;function I(e){return N.test(e)}function L(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=44032&&e<=55215||e>=65280&&e<=65519}function R(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){if(L((n-55296<<10)+(r-56320)+65536))return!0;t++;continue}}if(L(n))return!0}}return!1}function z(e){let t=he(e);return t!==null&&(V.has(t)||U.has(t))}var B=new Set([`\xA0`,` `,`⁠`,``]);function re(e){return R(e)}function ie(e){let t=he(e);return t!==null&&B.has(t)}function ae(e){return!z(e)&&!ie(e)}var V=new Set(`,...!.:.;.?.、.。.・.).〕.〉.》.」.』.】.〗.〙.〛.ー.々.〻.ゝ.ゞ.ヽ.ヾ`.split(`.`)),oe=new Set([`"`,`(`,`[`,`{`,`“`,`‘`,`«`,`‹`,`(`,`〔`,`〈`,`《`,`「`,`『`,`【`,`〖`,`〘`,`〚`]),H=new Set([`'`,`’`]),U=new Set(`.(,(!(?(:(;(،(؛(؟(।(॥(၊(။(၌(၍(၏()(](}(%("(”(’(»(›(…`.split(`(`)),se=new Set([`:`,`.`,`،`,`؛`]),ce=new Set([`၏`]),le=new Set([`”`,`’`,`»`,`›`,`」`,`』`,`】`,`》`,`〉`,`〕`,`)`]);function ue(e){if(pe(e))return!0;let t=!1;for(let n of e){if(U.has(n)){t=!0;continue}if(!(t&&P.test(n)))return!1}return t}function de(e){for(let t of e)if(!V.has(t)&&!U.has(t))return!1;return e.length>0}function fe(e){if(pe(e))return!0;for(let t of e)if(!oe.has(t)&&!H.has(t)&&!P.test(t))return!1;return e.length>0}function pe(e){let t=!1;for(let n of e)if(!(n===`\\`||P.test(n))){if(oe.has(n)||U.has(n)||H.has(n)){t=!0;continue}return!1}return t}function me(e,t){let n=t-1;if(n<=0)return Math.max(n,0);let r=e.charCodeAt(n);if(r<56320||r>57343)return n;let i=n-1;if(i<0)return n;let a=e.charCodeAt(i);return a>=55296&&a<=56319?i:n}function he(e){if(e.length===0)return null;let t=me(e,e.length);return e.slice(t)}function ge(e){let t=Array.from(e),n=t.length;for(;n>0;){let e=t[n-1];if(P.test(e)){n--;continue}if(oe.has(e)||H.has(e)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(``),tail:t.slice(n).join(``)}}function _e(e,t,n){return n===`text`&&!t&&e.length===1&&e!==`-`&&e!==`—`?e:null}function ve(e,t,n,r){let i=t[r],a=e[r];if(i==null)return a;let o=n[r];if(a.length===o)return a;let s=i.repeat(o);return e[r]=s,s}function ye(e,t){return e&&t!==null&&se.has(t)}function be(e){let t=he(e);return t!==null&&ce.has(t)}function xe(e){if(e.length<2||e[0]!==` `)return null;let t=e.slice(1);return/^\p{M}+$/u.test(t)?{space:` `,marks:t}:null}function Se(e){let t=e.length;for(;t>0;){let n=me(e,t),r=e.slice(n,t);if(le.has(r))return!0;if(!U.has(r))return!1;t=n}return!1}function Ce(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===` `)return`preserved-space`;if(e===` `)return`tab`;if(t.preserveHardBreaks&&e===`
5
- `)return`hard-break`}return e===` `?`space`:e===`\xA0`||e===` `||e===`⁠`||e===``?`glue`:e===`​`?`zero-width-break`:e===`­`?`soft-hyphen`:`text`}var we=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function W(e){return e.length===1?e[0]:e.join(``)}function Te(e,t){let n=[];for(let t=e.length-1;t>=0;t--)n.push(e[t]);return n.push(t),W(n)}function Ee(e,t,n,r){if(!we.test(e))return[{text:e,isWordLike:t,kind:`text`,start:n}];let i=[],a=null,o=[],s=n,c=!1,l=0;for(let u of e){let e=Ce(u,r),d=e===`text`&&t;if(a!==null&&e===a&&d===c){o.push(u),l+=u.length;continue}a!==null&&i.push({text:W(o),isWordLike:c,kind:a,start:s}),a=e,o=[u],s=n+l,c=d,l+=u.length}return a!==null&&i.push({text:W(o),isWordLike:c,kind:a,start:s}),i}function De(e){return e===`space`||e===`preserved-space`||e===`zero-width-break`||e===`hard-break`}var Oe=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function ke(e,t){let n=e.texts[t];return n.startsWith(`www.`)?!0:Oe.test(n)&&t+1<e.len&&e.kinds[t+1]===`text`&&e.texts[t+1]===`//`}function Ae(e){return e.includes(`?`)&&(e.includes(`://`)||e.startsWith(`www.`))}function je(e){let t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),i=e.starts.slice();for(let i=0;i<e.len;i++){if(r[i]!==`text`||!ke(e,i))continue;let a=[t[i]],o=i+1;for(;o<e.len&&!De(r[o]);){a.push(t[o]),n[i]=!0;let e=t[o].includes(`?`);if(r[o]=`text`,t[o]=``,o++,e)break}t[i]=W(a)}let a=0;for(let e=0;e<t.length;e++){let o=t[e];o.length!==0&&(a!==e&&(t[a]=o,n[a]=n[e],r[a]=r[e],i[a]=i[e]),a++)}return t.length=a,n.length=a,r.length=a,i.length=a,{len:a,texts:t,isWordLike:n,kinds:r,starts:i}}function Me(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a];if(t.push(o),n.push(e.isWordLike[a]),r.push(e.kinds[a]),i.push(e.starts[a]),!Ae(o))continue;let s=a+1;if(s>=e.len||De(e.kinds[s]))continue;let c=[],l=e.starts[s],u=s;for(;u<e.len&&!De(e.kinds[u]);)c.push(e.texts[u]),u++;c.length>0&&(t.push(W(c)),n.push(!0),r.push(`text`),i.push(l),a=u-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}var Ne=new Set([`:`,`-`,`/`,`×`,`,`,`.`,`+`,`–`,`—`]),Pe=/^[A-Za-z0-9_]+[,:;]*$/,Fe=/[,:;]+$/;function Ie(e){for(let t of e)if(F.test(t))return!0;return!1}function Le(e){if(e.length===0)return!1;for(let t of e)if(!(F.test(t)||Ne.has(t)))return!1;return!0}function Re(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a],s=e.kinds[a];if(s===`text`&&Le(o)&&Ie(o)){let s=[o],c=a+1;for(;c<e.len&&e.kinds[c]===`text`&&Le(e.texts[c]);)s.push(e.texts[c]),c++;t.push(W(s)),n.push(!0),r.push(`text`),i.push(e.starts[a]),a=c-1;continue}t.push(o),n.push(e.isWordLike[a]),r.push(s),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function ze(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a],s=e.kinds[a],c=e.isWordLike[a];if(s===`text`&&c&&Pe.test(o)){let s=[o],c=Fe.test(o),l=a+1;for(;c&&l<e.len&&e.kinds[l]===`text`&&e.isWordLike[l]&&Pe.test(e.texts[l]);){let t=e.texts[l];s.push(t),c=Fe.test(t),l++}t.push(W(s)),n.push(!0),r.push(`text`),i.push(e.starts[a]),a=l-1;continue}t.push(o),n.push(c),r.push(s),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function Be(e){let t=[],n=[],r=[],i=[];for(let a=0;a<e.len;a++){let o=e.texts[a];if(e.kinds[a]===`text`&&o.includes(`-`)){let s=o.split(`-`),c=s.length>1;for(let e=0;e<s.length;e++){let t=s[e];if(!c)break;(t.length===0||!Ie(t)||!Le(t))&&(c=!1)}if(c){let o=0;for(let c=0;c<s.length;c++){let l=s[c],u=c<s.length-1?`${l}-`:l;t.push(u),n.push(!0),r.push(`text`),i.push(e.starts[a]+o),o+=u.length}continue}}t.push(o),n.push(e.isWordLike[a]),r.push(e.kinds[a]),i.push(e.starts[a])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function Ve(e){let t=[],n=[],r=[],i=[],a=0;for(;a<e.len;){let o=[e.texts[a]],s=e.isWordLike[a],c=e.kinds[a],l=e.starts[a];if(c===`glue`){let u=[o[0]],d=l;for(a++;a<e.len&&e.kinds[a]===`glue`;)u.push(e.texts[a]),a++;let f=W(u);if(a<e.len&&e.kinds[a]===`text`)o[0]=f,o.push(e.texts[a]),s=e.isWordLike[a],c=`text`,l=d,a++;else{t.push(f),n.push(!1),r.push(`glue`),i.push(d);continue}}else a++;if(c===`text`)for(;a<e.len&&e.kinds[a]===`glue`;){let t=[];for(;a<e.len&&e.kinds[a]===`glue`;)t.push(e.texts[a]),a++;let n=W(t);if(a<e.len&&e.kinds[a]===`text`){o.push(n,e.texts[a]),s||=e.isWordLike[a],a++;continue}o.push(n)}t.push(W(o)),n.push(s),r.push(c),i.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function He(e){let t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),i=e.starts.slice();for(let e=0;e<t.length-1;e++){if(r[e]!==`text`||r[e+1]!==`text`||!R(t[e])||!R(t[e+1]))continue;let n=ge(t[e]);n!==null&&(t[e]=n.head,t[e+1]=n.tail+t[e+1],i[e+1]=i[e]+n.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function Ue(e,t,n){let r=ne(),i=0,a=[],o=[],s=[],c=[],l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=[];for(let _ of r.segment(e))for(let e of Ee(_.segment,_.isWordLike??!1,_.index,n)){let n=e.kind===`text`,r=_e(e.text,e.isWordLike,e.kind),_=R(e.text),v=I(e.text),y=he(e.text),b=Se(e.text),x=be(e.text),S=i-1;function C(){u[S]!==null&&(o[S]=[ve(a,u,d,S)],u[S]=null),o[S].push(e.text),s[S]=s[S]||e.isWordLike,f[S]=f[S]||_,p[S]=p[S]||v,m[S]=b,h[S]=x,g[S]=ye(p[S],y)}t.carryCJKAfterClosingQuote&&n&&i>0&&c[S]===`text`&&_&&f[S]&&m[S]||n&&i>0&&c[S]===`text`&&de(e.text)&&f[S]||n&&i>0&&c[S]===`text`&&h[S]?C():n&&i>0&&c[S]===`text`&&e.isWordLike&&v&&g[S]?(C(),s[S]=!0):r!==null&&i>0&&c[S]===`text`&&u[S]===r?d[S]=(d[S]??1)+1:n&&!e.isWordLike&&i>0&&c[S]===`text`&&(ue(e.text)||e.text===`-`&&s[S])?C():(a[i]=e.text,o[i]=[e.text],s[i]=e.isWordLike,c[i]=e.kind,l[i]=e.start,u[i]=r,d[i]=r===null?0:1,f[i]=_,p[i]=v,m[i]=b,h[i]=x,g[i]=ye(v,y),i++)}for(let e=0;e<i;e++){if(u[e]!==null){a[e]=ve(a,u,d,e);continue}a[e]=W(o[e])}for(let e=1;e<i;e++)c[e]===`text`&&!s[e]&&pe(a[e])&&c[e-1]===`text`&&(a[e-1]+=a[e],s[e-1]=s[e-1]||s[e],a[e]=``);let _=Array.from({length:i},()=>null),v=-1;for(let e=i-1;e>=0;e--){let t=a[e];if(t.length!==0){if(c[e]===`text`&&!s[e]&&fe(t)&&v>=0&&c[v]===`text`){let n=_[v]??[];n.push(t),_[v]=n,l[v]=l[e],a[e]=``;continue}v=e}}for(let e=0;e<i;e++){let t=_[e];t!=null&&(a[e]=Te(t,a[e]))}let y=0;for(let e=0;e<i;e++){let t=a[e];t.length!==0&&(y!==e&&(a[y]=t,s[y]=s[e],c[y]=c[e],l[y]=l[e]),y++)}a.length=y,s.length=y,c.length=y,l.length=y;let b=He(ze(Be(Re(Me(je(Ve({len:y,texts:a,isWordLike:s,kinds:c,starts:l})))))));for(let e=0;e<b.len-1;e++){let t=xe(b.texts[e]);t!==null&&(b.kinds[e]!==`space`&&b.kinds[e]!==`preserved-space`||b.kinds[e+1]!==`text`||!I(b.texts[e+1])||(b.texts[e]=t.space,b.isWordLike[e]=!1,b.kinds[e]=b.kinds[e]===`preserved-space`?`preserved-space`:`space`,b.texts[e+1]=t.marks+b.texts[e+1],b.starts[e+1]=b.starts[e]+t.space.length))}return b}function We(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];let n=[],r=0;for(let t=0;t<e.len;t++)e.kinds[t]===`hard-break`&&(n.push({startSegmentIndex:r,endSegmentIndex:t,consumedEndSegmentIndex:t+1}),r=t+1);return r<e.len&&n.push({startSegmentIndex:r,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function Ge(e){if(e.len<=1)return e;let t=[],n=[],r=[],i=[],a=null,o=!1,s=0,c=!1,l=!1;function u(){a!==null&&(t.push(W(a)),n.push(o),r.push(`text`),i.push(s),a=null)}for(let d=0;d<e.len;d++){let f=e.texts[d],p=e.kinds[d],m=e.isWordLike[d],h=e.starts[d];if(p===`text`){let e=re(f),t=ae(f);if(a!==null&&c&&l){a.push(f),o||=m,c||=e,l=t;continue}u(),a=[f],o=m,s=h,c=e,l=t;continue}u(),t.push(f),n.push(m),r.push(p),i.push(h)}return u(),{len:t.length,texts:t,isWordLike:n,kinds:r,starts:i}}function Ke(e,t,n=`normal`,r=`normal`){let i=ee(n),a=i.mode===`pre-wrap`?j(e):A(e);if(a.length===0)return{normalized:a,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};let o=r===`keep-all`?Ge(Ue(a,t,i)):Ue(a,t,i);return{normalized:a,chunks:We(o,i),...o}}var G=null,qe=new Map,K=null,Je=96,Ye=/\p{Emoji_Presentation}/u,Xe=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u,Ze=null,Qe=new Map;function $e(){if(G!==null)return G;if(typeof OffscreenCanvas<`u`)return G=new OffscreenCanvas(1,1).getContext(`2d`),G;if(typeof document<`u`)return G=document.createElement(`canvas`).getContext(`2d`),G;throw Error(`Text measurement requires OffscreenCanvas or a DOM canvas context.`)}function et(e){let t=qe.get(e);return t||(t=new Map,qe.set(e,t)),t}function q(e,t){let n=t.get(e);return n===void 0&&(n={width:$e().measureText(e).width,containsCJK:R(e)},t.set(e,n)),n}function tt(){if(K!==null)return K;if(typeof navigator>`u`)return K={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},K;let e=navigator.userAgent,t=navigator.vendor===`Apple Computer, Inc.`&&e.includes(`Safari/`)&&!e.includes(`Chrome/`)&&!e.includes(`Chromium/`)&&!e.includes(`CriOS/`)&&!e.includes(`FxiOS/`)&&!e.includes(`EdgiOS/`),n=e.includes(`Chrome/`)||e.includes(`Chromium/`)||e.includes(`CriOS/`)||e.includes(`Edg/`);return K={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},K}function nt(e){let t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function rt(){return Ze===null&&(Ze=new Intl.Segmenter(void 0,{granularity:`grapheme`})),Ze}function it(e){return Ye.test(e)||e.includes(`️`)}function at(e){return Xe.test(e)}function ot(e,t){let n=Qe.get(e);if(n!==void 0)return n;let r=$e();r.font=e;let i=r.measureText(`😀`).width;if(n=0,i>t+.5&&typeof document<`u`&&document.body!==null){let t=document.createElement(`span`);t.style.font=e,t.style.display=`inline-block`,t.style.visibility=`hidden`,t.style.position=`absolute`,t.textContent=`😀`,document.body.appendChild(t);let r=t.getBoundingClientRect().width;document.body.removeChild(t),i-r>.5&&(n=i-r)}return Qe.set(e,n),n}function st(e){let t=0,n=rt();for(let r of n.segment(e))it(r.segment)&&t++;return t}function ct(e,t){return t.emojiCount===void 0&&(t.emojiCount=st(e)),t.emojiCount}function J(e,t,n){return n===0?t.width:t.width-ct(e,t)*n}function lt(e,t,n,r,i){if(t.breakableFitAdvances!==void 0)return t.breakableFitAdvances;let a=rt(),o=[];for(let t of a.segment(e))o.push(t.segment);if(o.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(i===`sum-graphemes`){let e=[];for(let t of o){let i=q(t,n);e.push(J(t,i,r))}return t.breakableFitAdvances=e,t.breakableFitAdvances}if(i===`pair-context`||o.length>Je){let e=[],i=null,a=0;for(let t of o){let o=J(t,q(t,n),r);if(i===null)e.push(o);else{let o=i+t,s=q(o,n);e.push(J(o,s,r)-a)}i=t,a=o}return t.breakableFitAdvances=e,t.breakableFitAdvances}let s=[],c=``,l=0;for(let e of o){c+=e;let t=q(c,n),i=J(c,t,r);s.push(i-l),l=i}return t.breakableFitAdvances=s,t.breakableFitAdvances}function ut(e,t){let n=$e();n.font=e;let r=et(e),i=nt(e);return{cache:r,fontSize:i,emojiCorrection:t?ot(e,i):0}}function dt(e,t){for(;t<e.widths.length;){let n=e.kinds[t];if(n!==`space`&&n!==`zero-width-break`&&n!==`soft-hyphen`)break;t++}return t}function ft(e,t){if(t<=0)return 0;let n=e%t;return Math.abs(n)<=1e-6?t:t-n}function pt(e,t,n,r,i){let a=0,o=t;for(;a<e.length;){let t=o+e[a];if((a+1<e.length?t+i:t)>n+r)break;o=t,a++}return{fitCount:a,fittedWidth:o}}function mt(e,t,n){let{widths:r,kinds:i,breakableFitAdvances:a}=e;if(r.length===0)return 0;let o=t+tt().lineFitEpsilon,s=0,c=0,l=!1,u=0,d=0,f=0,p=0,m=-1,h=0;function g(){m=-1,h=0}function _(e=f,t=p,r=c){s++,n?.({startSegmentIndex:u,startGraphemeIndex:d,endSegmentIndex:e,endGraphemeIndex:t,width:r}),c=0,l=!1,g()}function v(e,t){l=!0,u=e,d=0,f=e+1,p=0,c=t}function y(e,t,n){l=!0,u=e,d=t,f=e,p=t+1,c=n}function b(e,t){if(!l){v(e,t);return}c+=t,f=e+1,p=0}function x(e,t){let n=a[e];for(let r=t;r<n.length;r++){let t=n[r];l?c+t>o?(_(),y(e,r,t)):(c+=t,f=e,p=r+1):y(e,r,t)}l&&f===e&&p===n.length&&(f=e+1,p=0)}let S=0;for(;S<r.length&&!(!l&&(S=dt(e,S),S>=r.length));){let e=r[S],n=i[S],s=n===`space`||n===`preserved-space`||n===`tab`||n===`zero-width-break`||n===`soft-hyphen`;if(!l){e>t&&a[S]!==null?x(S,0):v(S,e),s&&(m=S+1,h=c-e),S++;continue}if(c+e>o){if(s){b(S,e),_(S+1,0,c-e),S++;continue}if(m>=0){if(f>m||f===m&&p>0){_();continue}_(m,0,h);continue}if(e>t&&a[S]!==null){_(),x(S,0),S++;continue}_();continue}b(S,e),s&&(m=S+1,h=c-e),S++}return l&&_(),s}function ht(e,t,n){if(e.simpleLineWalkFastPath)return mt(e,t,n);let{widths:r,lineEndFitAdvances:i,lineEndPaintAdvances:a,kinds:o,breakableFitAdvances:s,discretionaryHyphenWidth:c,tabStopAdvance:l,chunks:u}=e;if(r.length===0||u.length===0)return 0;let d=tt(),f=d.lineFitEpsilon,p=t+f,m=0,h=0,g=!1,_=0,v=0,y=0,b=0,x=-1,S=0,C=0,w=null;function T(){x=-1,S=0,C=0,w=null}function E(e=y,t=b,r=h){m++,n?.({startSegmentIndex:_,startGraphemeIndex:v,endSegmentIndex:e,endGraphemeIndex:t,width:r}),h=0,g=!1,T()}function D(e,t){g=!0,_=e,v=0,y=e+1,b=0,h=t}function O(e,t,n){g=!0,_=e,v=t,y=e,b=t+1,h=n}function k(e,t){if(!g){D(e,t);return}h+=t,y=e+1,b=0}function ee(e,t,n,r){if(!t)return;let o=e===`tab`?0:i[n],s=e===`tab`?r:a[n];x=n+1,S=h-r+o,C=h-r+s,w=e}function A(e,t){let n=s[e];for(let r=t;r<n.length;r++){let t=n[r];g?h+t>p?(E(),O(e,r,t)):(h+=t,y=e,b=r+1):O(e,r,t)}g&&y===e&&b===n.length&&(y=e+1,b=0)}function j(e){if(w!==`soft-hyphen`)return!1;let n=s[e];if(n==null)return!1;let{fitCount:r,fittedWidth:i}=pt(n,h,t,f,c);return r===0?!1:(h=i,y=e,b=r,T(),r===n.length?(y=e+1,b=0,!0):(E(e,r,i+c),A(e,r),!0))}function M(e){m++,n?.({startSegmentIndex:e.startSegmentIndex,startGraphemeIndex:0,endSegmentIndex:e.consumedEndSegmentIndex,endGraphemeIndex:0,width:0}),T()}for(let e=0;e<u.length;e++){let n=u[e];if(n.startSegmentIndex===n.endSegmentIndex){M(n);continue}g=!1,h=0,_=n.startSegmentIndex,v=0,y=n.startSegmentIndex,b=0,T();let f=n.startSegmentIndex;for(;f<n.endSegmentIndex;){let e=o[f],n=e===`space`||e===`preserved-space`||e===`tab`||e===`zero-width-break`||e===`soft-hyphen`,u=e===`tab`?ft(h,l):r[f];if(e===`soft-hyphen`){g&&(y=f+1,b=0,x=f+1,S=h+c,C=h+c,w=e),f++;continue}if(!g){u>t&&s[f]!==null?A(f,0):D(f,u),ee(e,n,f,u),f++;continue}if(h+u>p){let r=h+(e===`tab`?0:i[f]),o=h+(e===`tab`?u:a[f]);if(w===`soft-hyphen`&&d.preferEarlySoftHyphenBreak&&S<=p){E(x,0,C);continue}if(w===`soft-hyphen`&&j(f)){f++;continue}if(n&&r<=p){k(f,u),E(f+1,0,o),f++;continue}if(x>=0&&S<=p){if(y>x||y===x&&b>0){E();continue}let e=x;E(e,0,C),f=e;continue}if(u>t&&s[f]!==null){E(),A(f,0),f++;continue}E();continue}k(f,u),ee(e,n,f,u),f++}if(g){let e=x===n.consumedEndSegmentIndex?C:h;E(n.consumedEndSegmentIndex,0,e)}}return m}var gt=null,_t=new WeakMap;function vt(){return gt===null&&(gt=new Intl.Segmenter(void 0,{granularity:`grapheme`})),gt}function yt(e){return e?{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}:{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]}}function bt(e,t){let n=[],r=[],i=0,a=!1,o=!1,s=!1;function c(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(``),start:i}),r=[],a=!1,o=!1,s=!1)}function l(e,t,n){r=[e],i=t,a=n,o=Se(e),s=oe.has(e)}function u(e,t){r.push(e),a||=t;let n=Se(e);e.length===1&&U.has(e)?o||=n:o=n,s=!1}for(let n of vt().segment(e)){let e=n.segment,i=R(e);if(r.length===0){l(e,n.index,i);continue}if(s||V.has(e)||U.has(e)||t.carryCJKAfterClosingQuote&&i&&o){u(e,i);continue}if(!a&&!i){u(e,i);continue}c(),l(e,n.index,i)}return c(),n}function xt(e){if(e.length<=1)return e;let t=[],n=[e[0].text],r=e[0].start,i=R(e[0].text),a=ae(e[0].text);function o(){t.push({text:n.length===1?n[0]:n.join(``),start:r})}for(let t=1;t<e.length;t++){let s=e[t],c=R(s.text),l=ae(s.text);if(i&&a){n.push(s.text),i||=c,a=l;continue}o(),n=[s.text],r=s.start,i=c,a=l}return o(),t}function St(e,t,n,r){let i=tt(),{cache:a,emojiCorrection:o}=ut(t,at(e.normalized)),s=J(`-`,q(`-`,a),o),c=J(` `,q(` `,a),o)*8;if(e.len===0)return yt(n);let l=[],u=[],d=[],f=[],p=e.chunks.length<=1,m=n?[]:null,h=[],g=n?[]:null,_=Array.from({length:e.len});function v(e,t,n,r,i,a,o){i!==`text`&&i!==`space`&&i!==`zero-width-break`&&(p=!1),l.push(t),u.push(n),d.push(r),f.push(i),m?.push(a),h.push(o),g!==null&&g.push(e)}function y(e,t,n,r,s){let c=q(e,a),l=J(e,c,o),u=t===`space`||t===`preserved-space`||t===`zero-width-break`?0:l,d=t===`space`||t===`zero-width-break`?0:l;if(s&&r&&e.length>1){let r=`sum-graphemes`;Le(e)?r=`pair-context`:i.preferPrefixWidthsForBreakableRuns&&(r=`segment-prefixes`),v(e,l,u,d,t,n,lt(e,c,a,o,r));return}v(e,l,u,d,t,n,null)}for(let t=0;t<e.len;t++){_[t]=l.length;let n=e.texts[t],o=e.isWordLike[t],c=e.kinds[t],u=e.starts[t];if(c===`soft-hyphen`){v(n,0,s,s,c,u,null);continue}if(c===`hard-break`){v(n,0,0,0,c,u,null);continue}if(c===`tab`){v(n,0,0,0,c,u,null);continue}let d=q(n,a);if(c===`text`&&d.containsCJK){let e=bt(n,i),t=r===`keep-all`?xt(e):e;for(let e=0;e<t.length;e++){let n=t[e];y(n.text,`text`,u+n.start,o,r===`keep-all`||!R(n.text))}continue}y(n,c,u,o,!0)}let b=Ct(e.chunks,_,l.length),x=m===null?null:D(e.normalized,m);return g===null?{widths:l,lineEndFitAdvances:u,lineEndPaintAdvances:d,kinds:f,simpleLineWalkFastPath:p,segLevels:x,breakableFitAdvances:h,discretionaryHyphenWidth:s,tabStopAdvance:c,chunks:b}:{widths:l,lineEndFitAdvances:u,lineEndPaintAdvances:d,kinds:f,simpleLineWalkFastPath:p,segLevels:x,breakableFitAdvances:h,discretionaryHyphenWidth:s,tabStopAdvance:c,chunks:b,segments:g}}function Ct(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a.startSegmentIndex<t.length?t[a.startSegmentIndex]:n,s=a.endSegmentIndex<t.length?t[a.endSegmentIndex]:n,c=a.consumedEndSegmentIndex<t.length?t[a.consumedEndSegmentIndex]:n;r.push({startSegmentIndex:o,endSegmentIndex:s,consumedEndSegmentIndex:c})}return r}function wt(e,t,n,r){let i=r?.wordBreak??`normal`;return St(Ke(e,tt(),r?.whiteSpace,i),t,n,i)}function Tt(e,t,n){return wt(e,t,!0,n)}function Et(e){return e}function Dt(e,t,n){let r=n.get(e);if(r!==void 0)return r;r=[];let i=vt();for(let n of i.segment(t[e]))r.push(n.segment);return n.set(e,r),r}function Ot(e){let t=_t.get(e);return t===void 0?(t=new Map,_t.set(e,t),t):t}function kt(e,t,n,r){return r>0&&e[r-1]===`soft-hyphen`&&!(t===r&&n>0)}function At(e,t,n,r,i,a,o){let s=``,c=kt(t,r,i,a);for(let o=r;o<a;o++)t[o]===`soft-hyphen`||t[o]===`hard-break`||(o===r&&i>0?s+=Dt(o,e,n).slice(i).join(``):s+=e[o]);return o>0?(c&&(s+=`-`),s+=Dt(a,e,n).slice(r===a?i:0,o).join(``)):c&&(s+=`-`),s}function jt(e,t,n,r,i,a,o){return{text:At(e.segments,e.kinds,t,r,i,a,o),width:n,start:{segmentIndex:r,graphemeIndex:i},end:{segmentIndex:a,graphemeIndex:o}}}function Mt(e,t,n){return jt(e,t,n.width,n.startSegmentIndex,n.startGraphemeIndex,n.endSegmentIndex,n.endGraphemeIndex)}function Nt(e,t,n){let r=[];if(e.widths.length===0)return{lineCount:0,height:0,lines:r};let i=Ot(e),a=ht(Et(e),t,t=>{r.push(Mt(e,i,t))});return{lineCount:a,height:a*n,lines:r}}var Y=e(t()),Pt=`#94a3b8`,Ft=(e,t,n,r,i=Pt)=>({id:e,label:t,kind:n,color:i,parentId:r,children:[],size:0,moduleCount:0,totalIncoming:0,totalOutgoing:0,totalNamedImports:0}),It=e=>Math.max(1,e.importees.length+e.importedBy.length),Lt=(e,t)=>{let n=e.cluster??e.package?.name??e.type??e.path;return t.get(n)??Pt},Rt=e=>{let t=e.path.split(/[\\/]/).filter(Boolean);return t.length>0?t:[e.name]},zt=(e,t)=>{let n=e.path.split(/[\\/]/).filter(Boolean),r=n.lastIndexOf(`node_modules`);if(r===-1)return[t,...n];let i=!!n[r+1]?.startsWith(`@`),a=n.slice(r+(i?3:2));return a.length>0?[t,...a]:[t,e.name]},Bt=(e,t,n,r,i,a)=>{let o=t.get(n);if(o)return o;let s=Ft(n,r,i,e.id,a);return e.children.push(s),t.set(n,s),s},Vt=e=>{if(e.kind===`module`&&e.sourceNode)return e.size=It(e.sourceNode),e.moduleCount=1,e.totalIncoming=e.sourceNode.importedBy.length,e.totalOutgoing=e.sourceNode.importees.length,e.totalNamedImports=e.sourceNode.imports.length,e;for(let t of e.children)Vt(t),e.size+=t.size,e.moduleCount+=t.moduleCount,e.totalIncoming+=t.totalIncoming,e.totalOutgoing+=t.totalOutgoing,e.totalNamedImports+=t.totalNamedImports;return e.children.sort((e,t)=>t.size-e.size||e.label.localeCompare(t.label)),e.children[0]&&(e.color=e.children[0].color),e},Ht=(e,t,n)=>{let r=Ft(`root`,`All Modules`,`root`,null,Pt),i=new Map([[r.id,r]]),o=Ft(`scope:workspace`,`Workspace`,`scope`,r.id,`#2563eb`),c=Ft(`scope:external`,`External`,`scope`,r.id,`#0f766e`);r.children.push(o,c),i.set(o.id,o),i.set(c.id,c);for(let r of e){let e=a(r,t),l=e===`workspace`?o:c,u=e===`external`?s(r):null,d=e===`workspace`?Rt(r):zt(r,u??`external`),f=d.slice(0,-1),p=d.at(-1)??r.name,m=Lt(r,n),h=l,g=[e];for(let[t,n]of f.entries()){g.push(n);let r=e===`external`&&t===0?`package`:`folder`,a=`${r}:${g.join(`/`)}`;h=Bt(h,i,a,n,r,m)}let _=`module:${r.path}`,v=Bt(h,i,_,p,`module`,m);v.sourceNode=r,v.sourcePath=r.path}return Vt(r),r.children=r.children.filter(e=>e.moduleCount>0),{root:r,nodesById:i}},Ut=(e,t)=>{let n=[],r=e;for(;r;)n.unshift(r),r=r.parentId?t.get(r.parentId):void 0;return n},Wt=e=>e.kind===`module`?[e]:e.children.flatMap(e=>Wt(e)),Gt=(e,t,n,r,i)=>{if(e.length===0||r<=0||i<=0)return[];if(e.length===1)return[{id:e[0].id,x:t,y:n,width:r,height:i,node:e[0]}];let a=e.reduce((e,t)=>e+t.size,0);if(a<=0)return[];let o=1,s=e[0].size;for(;o<e.length-1&&s<a/2;)s+=e[o].size,o+=1;let c=e.slice(0,o),l=e.slice(o);if(l.length===0)return e.map((a,o)=>({id:a.id,x:r>=i?t+r/e.length*o:t,y:r>=i?n:n+i/e.length*o,width:r>=i?r/e.length:r,height:r>=i?i:i/e.length,node:a}));if(r>=i){let e=s/a*r;return[...Gt(c,t,n,e,i),...Gt(l,t+e,n,r-e,i)]}let u=s/a*i;return[...Gt(c,t,n,r,u),...Gt(l,t,n+u,r,i-u)]},Kt=(e,t,n,r,i)=>Gt([...e].sort((e,t)=>t.size-e.size),t,n,r,i),X=n(),qt=18,Jt=1e3,Yt=600,Xt=28,Zt=36,Qt=14,$t=56,en=42,tn=4,nn=12,rn=3,an=2,on=2,sn=18,cn=16,ln=14,un=`600 14px ui-sans-serif, system-ui, sans-serif`,dn=`400 12px ui-sans-serif, system-ui, sans-serif`,fn=`400 11px ui-sans-serif, system-ui, sans-serif`,Z=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`,Q=e=>e.kind===`module`?e.sourcePath??e.label:e.label,pn=e=>e.kind===`module`&&e.sourceNode?`${e.sourceNode.type}${e.sourceNode.cluster?` • ${e.sourceNode.cluster}`:``}`:e.kind===`package`?`${Z(e.moduleCount,`module`)} in package`:e.kind===`scope`?`${Z(e.moduleCount,`module`)} in ${e.label.toLowerCase()}`:`${Z(e.moduleCount,`module`)} across this branch`,$=e=>e.kind===`module`?`${e.totalOutgoing} out • ${e.totalIncoming} in`:`${Z(e.moduleCount,`module`)}`,mn=(e,t)=>e>32&&t>24,hn=e=>e.inlineLabel?!1:e.width*e.height<900||e.width<28||e.height<28,gn=(e,t,n,r)=>({left:`${e/Jt*100}%`,top:`${t/Yt*100}%`,width:`${n/Jt*100}%`,height:`${r/Yt*100}%`}),_n=(e,t,n,r)=>Nt(Tt(e,t),Math.max(1,n),r),vn=(e,t,n)=>{let r=t-Xt,i=n-Zt-Qt;if(r<$t||i<en)return null;let a=_n(e.label,un,r,sn);if(a.lineCount===0||a.lineCount>rn)return null;let o=_n($(e),dn,r,cn);if(o.lineCount===0||o.lineCount>an)return null;let s=e.kind===`module`?null:`Click to zoom deeper`,c=s?_n(s,fn,r,ln):null;return c&&c.lineCount>on||a.height+tn+o.height+(c?nn+c.height:0)>i?null:{titleLines:a.lines.map(e=>e.text),captionLines:o.lines.map(e=>e.text),hintLines:c?c.lines.map(e=>e.text):[]}},yn=(e,t,n)=>{let r=e;for(;r;){if(r.id===t)return!0;r=r.parentId?n.get(r.parentId)??null:null}return!1},bn=(e,t)=>{let n=t?.kind===`module`?t.sourcePath??``:``;if(e.kind===`module`&&e.sourcePath)return{selected:e.sourcePath,q:``,scope:e.sourcePath.includes(`node_modules`)?`external`:`workspace`};if(e.kind===`scope`)return{selected:n,q:``,scope:e.id===`scope:external`?`external`:`workspace`};let[,r=``]=e.id.split(`:`),[i,...a]=r.split(`/`);return{selected:n,q:a.join(`/`),scope:i===`external`?`external`:`workspace`}};function xn(){let e=o(),t=l.useSearch(),n=l.useNavigate(),[a,s]=(0,Y.useState)(null);if(!i(e))return(0,X.jsx)(f,{projectTitle:e.projectTitle,title:`Treemap`,description:`Package and module area map for wide snapshot exploration.`,children:(0,X.jsx)(m,{bundle:e})});let u=(0,Y.useMemo)(()=>c(e.graph),[e.graph]),C=(0,Y.useMemo)(()=>{let t=new Map;return e.graph.nodes.forEach(e=>{let n=e.cluster??e.package?.name??e.type??e.path;t.has(n)||t.set(n,b.list[t.size]??b.deterministic(n))}),t},[e.graph.nodes]),w=(0,Y.useMemo)(()=>Ht(e.graph.nodes,u,C),[e.graph.nodes,u,C]),T=t.focus||`root`,E=t.selected||T,D=(e,t)=>{n({replace:t?.replace??!1,resetScroll:!1,search:t=>({...t,...e})})},O=w.nodesById.get(T)??w.root,k=w.nodesById.get(E)??O,ee=(0,Y.useMemo)(()=>Ut(O,w.nodesById),[O,w.nodesById]),A=O.parentId?w.nodesById.get(O.parentId)??null:null,j=a?w.nodesById.get(a)??null:null,M=(0,Y.useMemo)(()=>j?.kind===`module`&&yn(j,O.id,w.nodesById)?j:k.kind===`module`&&yn(k,O.id,w.nodesById)?k:null,[j,k,O.id,w.nodesById]),te=(0,Y.useMemo)(()=>bn(O,M),[M,O]),ne=O.children.length>0?O.children:[O],N=(0,Y.useMemo)(()=>[...ne].sort((e,t)=>t.size-e.size),[ne]),P=t.paginate,F=Math.max(1,Math.ceil(N.length/qt)),I=P?Math.min(t.page,F-1):0,L=P?I*qt:0,R=(0,Y.useMemo)(()=>P?N.slice(L,L+qt):N,[L,P,N]);(0,Y.useEffect)(()=>{!P||t.page===I||D({page:I},{replace:!0})},[I,P,t.page]);let z=(0,Y.useMemo)(()=>Kt(R,0,0,Jt,Yt).map((e,t)=>({...e,legendIndex:L+t+1,inlineLabel:vn(e.node,e.width,e.height)})),[R,L]),B=(0,Y.useMemo)(()=>{if(P)return null;let e=z.filter(hn);if(e.length<8)return null;let t=Math.min(...e.map(e=>e.x)),n=Math.min(...e.map(e=>e.y)),r=Math.max(...e.map(e=>e.x+e.width)),i=Math.max(...e.map(e=>e.y+e.height)),a={x:t,y:n,width:r-t,height:i-n},o=Math.max(18,a.width-12),s=Math.max(18,a.height-12),c=Math.max(1,Math.floor((o+4)/22)),l=Math.max(1,Math.floor((s+4)/22)),u=Math.max(1,c*l),d=Math.max(0,e.length-u),f=d>0?e.slice(0,u-1):e.slice(0,u),p=f.length+ +(d>0),m=Math.min(c,Math.max(1,Math.ceil(Math.sqrt(p)))),h=Math.max(1,Math.ceil(p/m)),g=Math.floor(Math.min((o-4*(m-1))/m,(s-4*(h-1))/h)),_=[];if(f.forEach((e,t)=>{let n=t%m,r=Math.floor(t/m);_.push({id:e.node.id,label:Q(e.node),caption:$(e.node),color:e.node.color,legendIndex:e.legendIndex,x:6+n*(g+4),y:6+r*(g+4),size:g})}),d>0){let e=f.length,t=e%m,n=Math.floor(e/m);_.push({id:`dense-tail-more`,label:`+${d} more`,caption:`Enable pagination to reveal every tiny node`,color:`rgba(15,23,42,0.84)`,legendIndex:0,x:6+t*(g+4),y:6+n*(g+4),size:g})}return{bounds:a,tiles:_,hiddenCount:d}},[P,z]),re=j??k,ie=(0,Y.useMemo)(()=>Wt(k).sort((e,t)=>t.size-e.size).slice(0,6),[k]),ae=e=>{let t=N.findIndex(t=>t.id===e);return t<0?0:Math.floor(t/qt)},V=e=>{D({selected:e.id}),e.children.length>0&&D({focus:e.id,page:0,selected:e.id})},oe=e=>{D({paginate:!0,page:ae(e),selected:e})},H=e=>{D({focus:e,page:0,selected:e})},U=Math.min(N.length,L+qt);return(0,X.jsx)(f,{projectTitle:e.projectTitle,children:(0,X.jsxs)(`div`,{className:`space-y-4`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,X.jsx)(`h1`,{className:`text-2xl font-bold text-slate-900 dark:text-slate-100`,children:`Treemap Visualization`}),A&&(0,X.jsxs)(h,{variant:`outline`,size:`sm`,onClick:()=>H(A.id),className:`gap-2`,children:[(0,X.jsx)(x,{className:`size-4`}),`Up one level`]}),O.id!==w.root.id&&(0,X.jsx)(h,{variant:`outline`,size:`sm`,onClick:()=>H(w.root.id),children:`Reset view`}),(0,X.jsx)(h,{asChild:!0,variant:`outline`,size:`sm`,children:(0,X.jsxs)(r,{to:`/explorer`,search:te,children:[(0,X.jsx)(p,{className:`size-4`}),`Open current view in explorer`]})})]}),(0,X.jsx)(`p`,{className:`mt-2 text-slate-600 dark:text-slate-400`,children:`Size reflects total direct dependency edges for each branch or file. Click folders or packages to drill in, then click files to inspect the hotspot.`})]}),(0,X.jsxs)(`div`,{className:`rounded-[24px] border border-slate-200/70 bg-white/90 p-6 shadow-[0_16px_50px_-32px_rgba(15,23,42,0.55)] dark:border-slate-800 dark:bg-slate-950/70`,children:[(0,X.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center gap-2 text-sm text-slate-500 dark:text-slate-400`,children:[(0,X.jsx)(d,{className:`size-4`}),ee.map((e,t)=>(0,X.jsxs)(`button`,{type:`button`,onClick:()=>H(e.id),className:`rounded-full px-2 py-1 transition hover:bg-slate-100 hover:text-slate-900 dark:hover:bg-slate-900 dark:hover:text-slate-100`,children:[t>0?`/ `:``,e.label]},e.id))]}),(0,X.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-start justify-between gap-3 rounded-[20px] border border-slate-200/70 bg-slate-50/90 px-4 py-3 dark:border-slate-800 dark:bg-slate-900/70`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.18em] text-slate-500 dark:text-slate-400`,children:j?`Hover preview`:`Selection preview`}),(0,X.jsx)(`p`,{className:`mt-1 text-sm font-semibold text-slate-900 dark:text-slate-100`,children:Q(re)}),(0,X.jsx)(`p`,{className:`mt-1 text-xs text-slate-500 dark:text-slate-400`,children:pn(re)})]}),(0,X.jsxs)(`div`,{className:`text-right text-xs text-slate-500 dark:text-slate-400`,children:[(0,X.jsx)(`p`,{children:$(re)}),(0,X.jsx)(`p`,{className:`mt-1`,children:Z(re.totalNamedImports,`import statement`)})]})]}),(0,X.jsxs)(`div`,{className:`mb-4 flex min-h-[84px] flex-wrap items-center justify-between gap-3 rounded-[20px] border border-slate-200/70 bg-white/80 px-4 py-3 text-sm dark:border-slate-800 dark:bg-slate-950/40`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`p`,{className:`font-medium text-slate-900 dark:text-slate-100`,children:P?F>1?`Dense level detected`:`Single-page level`:`Global overview enabled`}),(0,X.jsx)(`p`,{className:`text-slate-500 dark:text-slate-400`,children:P?F>1?`Showing ${L+1}-${U} of ${N.length} nodes so each page stays readable.`:`Showing all ${N.length} nodes on a single page.`:`Showing all ${N.length} nodes at once for a full branch overview.`})]}),(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsx)(h,{variant:`outline`,size:`sm`,onClick:()=>D({paginate:!P,page:0},{replace:!0}),children:P?`Show global overview`:`Enable pagination`}),(0,X.jsx)(h,{variant:`outline`,size:`sm`,onClick:()=>D({page:Math.max(0,I-1)},{replace:!0}),disabled:!P||F<=1||I===0,children:`Previous page`}),(0,X.jsx)(`span`,{className:`min-w-24 px-2 text-center text-xs font-medium text-slate-500 dark:text-slate-400`,children:P?`Page ${I+1} / ${F}`:`All nodes visible`}),(0,X.jsx)(h,{variant:`outline`,size:`sm`,onClick:()=>D({page:Math.min(F-1,I+1)},{replace:!0}),disabled:!P||F<=1||I>=F-1,children:`Next page`})]})]}),(0,X.jsxs)(`div`,{className:`relative aspect-[5/3] w-full overflow-hidden rounded-[20px] border border-slate-200 bg-slate-50 dark:border-slate-700 dark:bg-slate-900/60`,children:[(0,X.jsx)(`svg`,{viewBox:`0 0 ${Jt} ${Yt}`,className:`absolute inset-0 h-full w-full`,children:z.map(e=>{if(B&&hn(e))return null;let t=e.node.id===k.id,n=e.node.id===a;return(0,X.jsxs)(`g`,{onClick:()=>V(e.node),className:`cursor-pointer transition-opacity hover:opacity-90`,onMouseEnter:()=>s(e.node.id),onMouseLeave:()=>s(t=>t===e.node.id?null:t),children:[(0,X.jsxs)(`title`,{children:[`#`,e.legendIndex,` `,Q(e.node),`\n${pn(e.node)}`,`\n${$(e.node)}`]}),(0,X.jsx)(`rect`,{x:e.x+2,y:e.y+2,width:Math.max(0,e.width-4),height:Math.max(0,e.height-4),fill:e.node.color,stroke:t||n?`#0f172a`:`rgba(255,255,255,0.92)`,strokeWidth:t?4:n?3:2,rx:10,opacity:e.node.kind===`module`?.9:.84}),mn(e.width,e.height)&&(0,X.jsxs)(`g`,{children:[(0,X.jsx)(`rect`,{x:e.x+10,y:e.y+10,width:Math.min(34,Math.max(24,e.width-20)),height:20,rx:10,fill:`rgba(15,23,42,0.72)`}),(0,X.jsxs)(`text`,{x:e.x+10+Math.min(34,Math.max(24,e.width-20))/2,y:e.y+24,textAnchor:`middle`,fontSize:`11`,fontWeight:`700`,fill:`white`,children:[`#`,e.legendIndex]})]}),e.inlineLabel&&(0,X.jsx)(`foreignObject`,{x:e.x+14,y:e.y+36,width:Math.max(0,e.width-28),height:Math.max(0,e.height-50),children:(0,X.jsxs)(`div`,{className:`flex h-full flex-col justify-between overflow-hidden text-white`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`div`,{className:`space-y-0 text-sm font-semibold`,style:{lineHeight:`${sn}px`},children:e.inlineLabel.titleLines.map((t,n)=>(0,X.jsx)(`p`,{className:`overflow-hidden text-ellipsis whitespace-nowrap`,children:t},`${e.id}-title-${n}`))}),(0,X.jsx)(`div`,{className:`mt-1 space-y-0 text-xs opacity-90`,style:{lineHeight:`${cn}px`},children:e.inlineLabel.captionLines.map((t,n)=>(0,X.jsx)(`p`,{className:`overflow-hidden text-ellipsis whitespace-nowrap`,children:t},`${e.id}-caption-${n}`))})]}),e.inlineLabel.hintLines.length>0&&(0,X.jsx)(`div`,{className:`space-y-0 text-[11px] opacity-80`,style:{lineHeight:`${ln}px`},children:e.inlineLabel.hintLines.map((t,n)=>(0,X.jsx)(`p`,{className:`overflow-hidden text-ellipsis whitespace-nowrap`,children:t},`${e.id}-hint-${n}`))})]})})]},e.id)})}),(0,X.jsxs)(`div`,{className:`pointer-events-none absolute inset-0`,children:[z.filter(e=>!e.inlineLabel).filter(e=>!(B&&hn(e))).map(e=>(0,X.jsx)(`div`,{className:`pointer-events-auto absolute`,style:gn(e.x+2,e.y+2,Math.max(0,e.width-4),Math.max(0,e.height-4)),children:(0,X.jsxs)(v,{lazyMount:!0,openDelay:70,closeDelay:0,children:[(0,X.jsx)(g,{asChild:!0,children:(0,X.jsx)(`button`,{type:`button`,className:`block h-full w-full rounded-[10px]`,onClick:()=>V(e.node),onMouseEnter:()=>s(e.node.id),onMouseLeave:()=>s(t=>t===e.node.id?null:t),"aria-label":`Open ${Q(e.node)}`})}),(0,X.jsx)(y,{children:(0,X.jsx)(_,{className:`max-w-80`,children:(0,X.jsxs)(`div`,{className:`space-y-1`,children:[(0,X.jsxs)(`p`,{className:`font-semibold`,children:[`#`,e.legendIndex,` `,Q(e.node)]}),(0,X.jsx)(`p`,{className:`text-xs opacity-80`,children:pn(e.node)}),(0,X.jsx)(`p`,{className:`text-xs opacity-80`,children:$(e.node)})]})})})]})},`${e.id}-overlay`)),B&&(0,X.jsx)(`div`,{className:`pointer-events-auto absolute`,style:gn(B.bounds.x,B.bounds.y,B.bounds.width,B.bounds.height),children:(0,X.jsx)(`div`,{className:`relative h-full w-full rounded-[16px] border border-white/75 bg-white/18 p-1 shadow-[0_12px_32px_-22px_rgba(15,23,42,0.55)] backdrop-blur-[1px] dark:border-slate-700/80 dark:bg-slate-950/12`,children:B.tiles.map(e=>e.id===`dense-tail-more`?(0,X.jsxs)(`button`,{type:`button`,onClick:()=>D({paginate:!0,page:0},{replace:!0}),className:`absolute flex items-center justify-center rounded-[10px] text-[10px] font-semibold text-white shadow-sm transition hover:scale-[1.03]`,style:{left:e.x,top:e.y,width:e.size,height:e.size,backgroundColor:e.color},children:[`+`,B.hiddenCount]},e.id):(0,X.jsxs)(v,{lazyMount:!0,openDelay:70,closeDelay:0,children:[(0,X.jsx)(g,{asChild:!0,children:(0,X.jsx)(`button`,{type:`button`,onClick:()=>oe(e.id),className:`absolute rounded-[10px] border border-white/80 shadow-sm transition hover:scale-[1.03]`,style:{left:e.x,top:e.y,width:e.size,height:e.size,backgroundColor:e.color},"aria-label":`Open ${e.label}`})}),(0,X.jsx)(y,{children:(0,X.jsx)(_,{className:`max-w-80`,children:(0,X.jsxs)(`div`,{className:`space-y-1`,children:[(0,X.jsxs)(`p`,{className:`font-semibold`,children:[`#`,e.legendIndex,` `,e.label]}),(0,X.jsx)(`p`,{className:`text-xs opacity-80`,children:e.caption})]})})})]},e.id))})})]})]})]}),(0,X.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-[minmax(0,1.2fr)_minmax(0,0.8fr)]`,children:[(0,X.jsxs)(`div`,{className:`rounded-[24px] border border-slate-200/70 bg-white/90 p-6 shadow-[0_16px_50px_-32px_rgba(15,23,42,0.55)] dark:border-slate-800 dark:bg-slate-950/70`,children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.22em] text-sky-700 dark:text-sky-300`,children:`Current selection`}),(0,X.jsx)(`h2`,{className:`mt-2 text-lg font-semibold text-slate-900 dark:text-slate-100`,children:Q(k)}),(0,X.jsx)(`p`,{className:`mt-1 text-sm text-slate-500 dark:text-slate-400`,children:pn(k)}),(0,X.jsxs)(`div`,{className:`mt-4 grid gap-4 md:grid-cols-3`,children:[(0,X.jsxs)(`div`,{className:`rounded-lg bg-slate-50/80 p-4 dark:bg-slate-900/50`,children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.18em] text-slate-500 dark:text-slate-400`,children:`Modules`}),(0,X.jsx)(`p`,{className:`mt-2 text-2xl font-semibold text-slate-900 dark:text-slate-100`,children:k.moduleCount})]}),(0,X.jsxs)(`div`,{className:`rounded-lg bg-slate-50/80 p-4 dark:bg-slate-900/50`,children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.18em] text-slate-500 dark:text-slate-400`,children:`Outgoing imports`}),(0,X.jsx)(`p`,{className:`mt-2 text-2xl font-semibold text-slate-900 dark:text-slate-100`,children:k.totalOutgoing})]}),(0,X.jsxs)(`div`,{className:`rounded-lg bg-slate-50/80 p-4 dark:bg-slate-900/50`,children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.18em] text-slate-500 dark:text-slate-400`,children:`Incoming imports`}),(0,X.jsx)(`p`,{className:`mt-2 text-2xl font-semibold text-slate-900 dark:text-slate-100`,children:k.totalIncoming})]})]}),k.kind===`module`&&k.sourceNode&&(0,X.jsxs)(`div`,{className:`mt-4 rounded-lg bg-slate-50/80 p-4 text-sm text-slate-600 dark:bg-slate-900/50 dark:text-slate-300`,children:[(0,X.jsxs)(`p`,{children:[`Named imports in source: `,k.totalNamedImports]}),(0,X.jsxs)(`p`,{className:`mt-1`,children:[`Imported by`,` `,Z(k.sourceNode.importedBy.length,`module`),`and imports`,` `,Z(k.sourceNode.importees.length,`module`),`.`]})]})]}),(0,X.jsxs)(`div`,{className:`rounded-[24px] border border-slate-200/70 bg-white/90 p-6 shadow-[0_16px_50px_-32px_rgba(15,23,42,0.55)] dark:border-slate-800 dark:bg-slate-950/70`,children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.22em] text-slate-500 dark:text-slate-400`,children:`Nodes in current view`}),(0,X.jsx)(`p`,{className:`mt-1 text-sm text-slate-500 dark:text-slate-400`,children:P?`Tiny tiles are numbered to match this page of the list.`:`Tiny tiles are numbered to match the full list below.`}),(0,X.jsxs)(`div`,{className:`mt-4 max-h-[26rem] space-y-3 overflow-auto pr-1`,children:[z.map(e=>(0,X.jsx)(`button`,{type:`button`,onClick:()=>V(e.node),onMouseEnter:()=>s(e.node.id),onMouseLeave:()=>s(t=>t===e.node.id?null:t),className:`block w-full rounded-2xl border border-slate-200/80 bg-slate-50/80 px-4 py-3 text-left transition hover:border-slate-300 hover:bg-slate-100 dark:border-slate-800 dark:bg-slate-900/60 dark:hover:border-slate-700 dark:hover:bg-slate-900`,children:(0,X.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,X.jsxs)(`div`,{className:`mt-0.5 flex items-center gap-2`,children:[(0,X.jsxs)(`span`,{className:`inline-flex min-w-8 items-center justify-center rounded-full bg-slate-900 px-2 py-1 text-[11px] font-semibold text-white dark:bg-slate-100 dark:text-slate-900`,children:[`#`,e.legendIndex]}),(0,X.jsx)(`span`,{className:`mt-1 size-3 rounded-full`,style:{backgroundColor:e.node.color}})]}),(0,X.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,X.jsx)(`p`,{className:`truncate text-sm font-semibold text-slate-900 dark:text-slate-100`,children:Q(e.node)}),(0,X.jsx)(`p`,{className:`mt-1 text-xs text-slate-500 dark:text-slate-400`,children:pn(e.node)}),(0,X.jsx)(`p`,{className:`mt-1 text-xs text-slate-500 dark:text-slate-400`,children:$(e.node)})]})]})},e.id)),z.length===0&&(0,X.jsx)(`p`,{className:`text-sm text-slate-500 dark:text-slate-400`,children:`No nodes are visible at this level.`}),ie.length>0&&(0,X.jsxs)(`div`,{className:`pt-2`,children:[(0,X.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.18em] text-slate-500 dark:text-slate-400`,children:`Heaviest modules in selection`}),(0,X.jsx)(`div`,{className:`mt-3 space-y-3`,children:ie.map(e=>(0,X.jsxs)(`button`,{type:`button`,onClick:()=>D({selected:e.id}),className:`block w-full rounded-2xl border border-slate-200/80 bg-slate-50/80 px-4 py-3 text-left transition hover:border-slate-300 hover:bg-slate-100 dark:border-slate-800 dark:bg-slate-900/60 dark:hover:border-slate-700 dark:hover:bg-slate-900`,children:[(0,X.jsx)(`p`,{className:`truncate text-sm font-semibold text-slate-900 dark:text-slate-100`,children:e.sourcePath??e.label}),(0,X.jsxs)(`p`,{className:`mt-1 text-xs text-slate-500 dark:text-slate-400`,children:[e.totalOutgoing,` outgoing • `,e.totalIncoming,` incoming`]})]},e.id))})]})]})]})]}),(0,X.jsx)(`div`,{className:`rounded-[24px] border border-blue-200/70 bg-blue-50/80 p-4 dark:border-blue-900/30 dark:bg-blue-950/30`,children:(0,X.jsxs)(`div`,{className:`flex gap-3`,children:[(0,X.jsx)(S,{className:`mt-0.5 size-5 shrink-0 text-blue-900 dark:text-blue-100`}),(0,X.jsxs)(`div`,{className:`text-sm text-blue-800 dark:text-blue-200`,children:[(0,X.jsx)(`p`,{className:`font-semibold`,children:`About this view`}),(0,X.jsx)(`p`,{className:`mt-1`,children:`The treemap now groups workspace code by folders and third-party code by package, so the first click reveals structure instead of dropping you into a broken leaf. Area reflects direct dependency pressure using incoming plus outgoing edges.`})]})]})})]})})}export{xn as component};