ccgauge 1.1.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-build-manifest.json +54 -38
- package/.next/standalone/.next/app-path-routes-manifest.json +6 -5
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/blocks/route.js +1 -1
- package/.next/standalone/.next/server/app/api/blocks/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/export/usage/route.js +1 -1
- package/.next/standalone/.next/server/app/api/export/usage/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/pricing/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/scan/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/turns/route.js +1 -0
- package/.next/standalone/.next/server/app/api/turns/route.js.nft.json +1 -0
- package/.next/standalone/.next/server/app/api/turns/route_client-reference-manifest.js +1 -0
- package/.next/standalone/.next/server/app/api/usage/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/models/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/page.js +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/[id]/page.js +1 -1
- package/.next/standalone/.next/server/app/projects/[id]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/projects/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/sessions/[id]/page.js +1 -1
- package/.next/standalone/.next/server/app/sessions/[id]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/page.js +1 -1
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/usage/page.js +3 -3
- package/.next/standalone/.next/server/app/usage/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/usage/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +6 -5
- package/.next/standalone/.next/server/chunks/567.js +2 -2
- package/.next/standalone/.next/server/chunks/{125.js → 697.js} +1 -1
- package/.next/standalone/.next/server/chunks/716.js +1 -1
- package/.next/standalone/.next/server/chunks/730.js +1 -1
- package/.next/standalone/.next/server/functions-config-manifest.json +4 -3
- package/.next/standalone/.next/server/middleware-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/static/KYCxLofmJUzQwVpdBlibl/_buildManifest.js +1 -0
- package/.next/standalone/.next/static/chunks/148-1212b038580a0433.js +1 -0
- package/.next/standalone/.next/static/chunks/567-72a086fabc9bacfe.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/blocks/route-c50a1245d93c020a.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/export/usage/route-c50a1245d93c020a.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/pricing/route-c50a1245d93c020a.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/projects/route-c50a1245d93c020a.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/scan/route-c50a1245d93c020a.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/sessions/route-c50a1245d93c020a.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/turns/route-c50a1245d93c020a.js +1 -0
- package/.next/standalone/.next/static/chunks/app/api/usage/route-c50a1245d93c020a.js +1 -0
- package/.next/standalone/.next/static/chunks/app/layout-6eefa1ce02863d7b.js +1 -0
- package/.next/standalone/.next/static/chunks/app/loading-c50a1245d93c020a.js +1 -0
- package/.next/standalone/.next/static/chunks/app/page-0816ef0cd3e872d8.js +1 -0
- package/.next/standalone/.next/static/chunks/app/usage/loading-c50a1245d93c020a.js +1 -0
- package/.next/standalone/.next/static/chunks/app/usage/page-1ffeadfacd55c9f0.js +1 -0
- package/.next/standalone/.next/static/css/169dd00e280f7237.css +5 -0
- package/.next/standalone/package.json +3 -2
- package/CHANGELOG.md +103 -0
- package/dist/mcp/server.mjs +15 -15
- package/dist/report/index.mjs +30 -30
- package/package.json +3 -2
- package/.next/standalone/.next/static/T5Enhm7piIOmShjmQ31T5/_buildManifest.js +0 -1
- package/.next/standalone/.next/static/chunks/148-59989feca70944f2.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/blocks/route-33a382d58df5da76.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/export/usage/route-33a382d58df5da76.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/pricing/route-33a382d58df5da76.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/projects/route-33a382d58df5da76.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/scan/route-33a382d58df5da76.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/sessions/route-33a382d58df5da76.js +0 -1
- package/.next/standalone/.next/static/chunks/app/api/usage/route-33a382d58df5da76.js +0 -1
- package/.next/standalone/.next/static/chunks/app/layout-af71188a257674b5.js +0 -1
- package/.next/standalone/.next/static/chunks/app/loading-33a382d58df5da76.js +0 -1
- package/.next/standalone/.next/static/chunks/app/page-1a147d12fca0b184.js +0 -1
- package/.next/standalone/.next/static/chunks/app/usage/page-8af23d9f5420c824.js +0 -1
- package/.next/standalone/.next/static/css/fabb40b2545c70dd.css +0 -5
- /package/.next/standalone/.next/static/{T5Enhm7piIOmShjmQ31T5 → KYCxLofmJUzQwVpdBlibl}/_ssgManifest.js +0 -0
package/dist/report/index.mjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
var Gr=Object.create;var At=Object.defineProperty;var qr=Object.getOwnPropertyDescriptor;var Hr=Object.getOwnPropertyNames;var Vr=Object.getPrototypeOf,Kr=Object.prototype.hasOwnProperty;var yt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(u,t)=>(typeof require<"u"?require:u)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var A=(e,u)=>()=>(u||e((u={exports:{}}).exports,u),u.exports);var zr=(e,u,t,n)=>{if(u&&typeof u=="object"||typeof u=="function")for(let D of Hr(u))!Kr.call(e,D)&&D!==t&&At(e,D,{get:()=>u[D],enumerable:!(n=qr(u,D))||n.enumerable});return e};var le=(e,u,t)=>(t=e!=null?Gr(Vr(e)):{},zr(u||!e||!e.__esModule?At(t,"default",{value:e,enumerable:!0}):t,e));var gn=A((nF,Cn)=>{Cn.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var In=A((EF,vn)=>{vn.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var Pn=A((RF,Fi)=>{Fi.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var Lu=A((wF,Ou)=>{"use strict";var On=Pn();Ou.exports=On;Ou.exports.default=On});var Uu=A((SF,Wn)=>{"use strict";Wn.exports=({onlyFirst:e=!1}={})=>{let u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,e?void 0:"g")}});var Gn=A((TF,jn)=>{"use strict";var mi=Uu();jn.exports=e=>typeof e=="string"?e.replace(mi(),""):e});var ju=A((_F,Wu)=>{"use strict";var qn=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);Wu.exports=qn;Wu.exports.default=qn});var Gu=A((vF,Hn)=>{"use strict";Hn.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var Kn=A((IF,qu)=>{"use strict";var Ei=Gn(),Bi=ju(),bi=Gu(),Vn=e=>{if(typeof e!="string"||e.length===0||(e=Ei(e),e.length===0))return 0;e=e.replace(bi()," ");let u=0;for(let t=0;t<e.length;t++){let n=e.codePointAt(t);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&t++,u+=Bi(n)?2:1)}return u};qu.exports=Vn;qu.exports.default=Vn});var Yn=A((MF,zn)=>{"use strict";var Ai=Kn();function ae(e,u){if(!e)return e;u=u||{};let t=u.align||"center";if(t==="left")return e;let n=u.split||`
|
|
2
|
-
`,
|
|
3
|
-
`).reduce(function(D
|
|
4
|
-
`);let
|
|
5
|
-
`)!=-1,n=this._styles,
|
|
6
|
-
`))}wrapLines(
|
|
1
|
+
var YD=Object.create;var Ru=Object.defineProperty;var XD=Object.getOwnPropertyDescriptor;var JD=Object.getOwnPropertyNames;var ZD=Object.getPrototypeOf,QD=Object.prototype.hasOwnProperty;var yu=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,u)=>(typeof require<"u"?require:t)[u]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var eo=(e,t,u,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of JD(t))!QD.call(e,r)&&r!==u&&Ru(e,r,{get:()=>t[r],enumerable:!(n=XD(t,r))||n.enumerable});return e};var le=(e,t,u)=>(u=e!=null?YD(ZD(e)):{},eo(t||!e||!e.__esModule?Ru(u,"default",{value:e,enumerable:!0}):u,e));var Rn=A((S0,An)=>{An.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var $n=A((V0,Nn)=>{Nn.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var Wn=A((Z0,Ti)=>{Ti.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var Nt=A((Q0,Lt)=>{"use strict";var jn=Wn();Lt.exports=jn;Lt.exports.default=jn});var Wt=A((tF,Kn)=>{"use strict";Kn.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var Yn=A((uF,zn)=>{"use strict";var Li=Wt();zn.exports=e=>typeof e=="string"?e.replace(Li(),""):e});var Gt=A((nF,jt)=>{"use strict";var Xn=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);jt.exports=Xn;jt.exports.default=Xn});var qt=A((rF,Jn)=>{"use strict";Jn.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var Qn=A((DF,Ht)=>{"use strict";var Ni=Yn(),$i=Gt(),Ui=qt(),Zn=e=>{if(typeof e!="string"||e.length===0||(e=Ni(e),e.length===0))return 0;e=e.replace(Ui()," ");let t=0;for(let u=0;u<e.length;u++){let n=e.codePointAt(u);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&u++,t+=$i(n)?2:1)}return t};Ht.exports=Zn;Ht.exports.default=Zn});var tr=A((oF,er)=>{"use strict";var Wi=Qn();function ae(e,t){if(!e)return e;t=t||{};let u=t.align||"center";if(u==="left")return e;let n=t.split||`
|
|
2
|
+
`,r=t.pad||" ",D=u!=="right"?ji:Gi,o=!1;Array.isArray(e)||(o=!0,e=String(e).split(n));let i,s=0;return e=e.map(function(a){return a=String(a),i=Wi(a),s=Math.max(i,s),{str:a,width:i}}).map(function(a){return new Array(D(s,a.width)+1).join(r)+a.str}),o?e.join(n):e}ae.left=function(t){return ae(t,{align:"left"})};ae.center=function(t){return ae(t,{align:"center"})};ae.right=function(t){return ae(t,{align:"right"})};er.exports=ae;function ji(e,t){return Math.floor((e-t)/2)}function Gi(e,t){return e-t}});var rt=A((BF,fr)=>{var Jt=[],pr=0,T=(e,t)=>{pr>=t&&Jt.push(e)};T.WARN=1;T.INFO=2;T.DEBUG=3;T.reset=()=>{Jt=[]};T.setDebugLevel=e=>{pr=e};T.warn=e=>T(e,T.WARN);T.info=e=>T(e,T.INFO);T.debug=e=>T(e,T.DEBUG);T.debugMessages=()=>Jt;fr.exports=T});var mr=A((bF,Cr)=>{"use strict";var ss=Wt();Cr.exports=e=>typeof e=="string"?e.replace(ss(),""):e});var Er=A((AF,Zt)=>{"use strict";var as=mr(),cs=Gt(),ls=qt(),gr=e=>{if(typeof e!="string"||e.length===0||(e=as(e),e.length===0))return 0;e=e.replace(ls()," ");let t=0;for(let u=0;u<e.length;u++){let n=e.codePointAt(u);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&u++,t+=cs(n)?2:1)}return t};Zt.exports=gr;Zt.exports.default=gr});var Qt=A((RF,Rr)=>{var Br=Er();function Dt(e){return e?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function H(e){let t=Dt();return(""+e).replace(t,"").split(`
|
|
3
|
+
`).reduce(function(r,D){return Br(D)>r?Br(D):r},0)}function Ie(e,t){return Array(t+1).join(e)}function Fs(e,t,u,n){let r=H(e);if(t+1>=r){let D=t-r;switch(n){case"right":{e=Ie(u,D)+e;break}case"center":{let o=Math.ceil(D/2),i=D-o;e=Ie(u,i)+e+Ie(u,o);break}default:{e=e+Ie(u,D);break}}}return e}var Ce={};function Me(e,t,u){t="\x1B["+t+"m",u="\x1B["+u+"m",Ce[t]={set:e,to:!0},Ce[u]={set:e,to:!1},Ce[e]={on:t,off:u}}Me("bold",1,22);Me("italics",3,23);Me("underline",4,24);Me("inverse",7,27);Me("strikethrough",9,29);function br(e,t){let u=t[1]?parseInt(t[1].split(";")[0]):0;if(u>=30&&u<=39||u>=90&&u<=97){e.lastForegroundAdded=t[0];return}if(u>=40&&u<=49||u>=100&&u<=107){e.lastBackgroundAdded=t[0];return}if(u===0){for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];return}let n=Ce[t[0]];n&&(e[n.set]=n.to)}function ds(e){let t=Dt(!0),u=t.exec(e),n={};for(;u!==null;)br(n,u),u=t.exec(e);return n}function Ar(e,t){let u=e.lastBackgroundAdded,n=e.lastForegroundAdded;return delete e.lastBackgroundAdded,delete e.lastForegroundAdded,Object.keys(e).forEach(function(r){e[r]&&(t+=Ce[r].off)}),u&&u!="\x1B[49m"&&(t+="\x1B[49m"),n&&n!="\x1B[39m"&&(t+="\x1B[39m"),t}function hs(e,t){let u=e.lastBackgroundAdded,n=e.lastForegroundAdded;return delete e.lastBackgroundAdded,delete e.lastForegroundAdded,Object.keys(e).forEach(function(r){e[r]&&(t=Ce[r].on+t)}),u&&u!="\x1B[49m"&&(t=u+t),n&&n!="\x1B[39m"&&(t=n+t),t}function ps(e,t){if(e.length===H(e))return e.substr(0,t);for(;H(e)>t;)e=e.slice(0,-1);return e}function fs(e,t){let u=Dt(!0),n=e.split(Dt()),r=0,D=0,o="",i,s={};for(;D<t;){i=u.exec(e);let a=n[r];if(r++,D+H(a)>t&&(a=ps(a,t-D)),o+=a,D+=H(a),D<t){if(!i)break;o+=i[0],br(s,i)}}return Ar(s,o)}function Cs(e,t,u){if(u=u||"\u2026",H(e)<=t)return e;t-=H(u);let r=fs(e,t);r+=u;let D="\x1B]8;;\x07";return e.includes(D)&&!r.includes(D)&&(r+=D),r}function ms(){return{chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]}}function gs(e,t){e=e||{},t=t||ms();let u=Object.assign({},t,e);return u.chars=Object.assign({},t.chars,e.chars),u.style=Object.assign({},t.style,e.style),u}function Es(e,t){let u=[],n=t.split(/(\s+)/g),r=[],D=0,o;for(let i=0;i<n.length;i+=2){let s=n[i],a=D+H(s);D>0&&o&&(a+=o.length),a>e?(D!==0&&u.push(r.join("")),r=[s],D=H(s)):(r.push(o||"",s),D=a),o=n[i+1]}return D&&u.push(r.join("")),u}function Bs(e,t){let u=[],n="";function r(o,i){for(n.length&&i&&(n+=i),n+=o;n.length>e;)u.push(n.slice(0,e)),n=n.slice(e)}let D=t.split(/(\s+)/g);for(let o=0;o<D.length;o+=2)r(D[o],o&&D[o-1]);return n.length&&u.push(n),u}function bs(e,t,u=!0){let n=[];t=t.split(`
|
|
4
|
+
`);let r=u?Es:Bs;for(let D=0;D<t.length;D++)n.push.apply(n,r(e,t[D]));return n}function As(e){let t={},u=[];for(let n=0;n<e.length;n++){let r=hs(t,e[n]);t=ds(r);let D=Object.assign({},t);u.push(Ar(D,r))}return u}function Rs(e,t){return["\x1B]","8",";",";",e||t,"\x07",t,"\x1B]","8",";",";","\x07"].join("")}Rr.exports={strlen:H,repeat:Ie,pad:Fs,truncate:Cs,mergeOptions:gs,wordWrap:bs,colorizeLines:As,hyperlink:Rs}});var kr=A((yF,wr)=>{var xr={};wr.exports=xr;var yr={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(yr).forEach(function(e){var t=yr[e],u=xr[e]=[];u.open="\x1B["+t[0]+"m",u.close="\x1B["+t[1]+"m"})});var Tr=A((xF,Sr)=>{"use strict";Sr.exports=function(e,t){t=t||process.argv;var u=t.indexOf("--"),n=/^-{1,2}/.test(e)?"":"--",r=t.indexOf(n+e);return r!==-1&&(u===-1?!0:r<u)}});var vr=A((wF,_r)=>{"use strict";var ys=yu("os"),j=Tr(),_=process.env,me=void 0;j("no-color")||j("no-colors")||j("color=false")?me=!1:(j("color")||j("colors")||j("color=true")||j("color=always"))&&(me=!0);"FORCE_COLOR"in _&&(me=_.FORCE_COLOR.length===0||parseInt(_.FORCE_COLOR,10)!==0);function xs(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ws(e){if(me===!1)return 0;if(j("color=16m")||j("color=full")||j("color=truecolor"))return 3;if(j("color=256"))return 2;if(e&&!e.isTTY&&me!==!0)return 0;var t=me?1:0;if(process.platform==="win32"){var u=ys.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(u[0])>=10&&Number(u[2])>=10586?Number(u[2])>=14931?3:2:1}if("CI"in _)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(r){return r in _})||_.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in _)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(_.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in _){var n=parseInt((_.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(_.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(_.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(_.TERM)||"COLORTERM"in _?1:(_.TERM==="dumb",t)}function eu(e){var t=ws(e);return xs(t)}_r.exports={supportsColor:eu,stdout:eu(process.stdout),stderr:eu(process.stderr)}});var Mr=A((kF,Ir)=>{Ir.exports=function(t,u){var n="";t=t||"Run the trap, drop the bass",t=t.split("");var r={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return t.forEach(function(D){D=D.toLowerCase();var o=r[D]||[" "],i=Math.floor(Math.random()*o.length);typeof r[D]<"u"?n+=r[D][i]:n+=D}),n}});var Or=A((SF,Pr)=>{Pr.exports=function(t,u){t=t||" he is here ";var n={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},r=[].concat(n.up,n.down,n.mid);function D(s){var a=Math.floor(Math.random()*s);return a}function o(s){var a=!1;return r.filter(function(F){a=F===s}),a}function i(s,a){var F="",c,h;a=a||{},a.up=typeof a.up<"u"?a.up:!0,a.mid=typeof a.mid<"u"?a.mid:!0,a.down=typeof a.down<"u"?a.down:!0,a.size=typeof a.size<"u"?a.size:"maxi",s=s.split("");for(h in s)if(!o(h)){switch(F=F+s[h],c={up:0,down:0,mid:0},a.size){case"mini":c.up=D(8),c.mid=D(2),c.down=D(8);break;case"maxi":c.up=D(16)+3,c.mid=D(4)+1,c.down=D(64)+3;break;default:c.up=D(8)+1,c.mid=D(6)/2,c.down=D(8)+1;break}var d=["up","mid","down"];for(var l in d)for(var C=d[l],f=0;f<=c[C];f++)a[C]&&(F=F+n[C][D(n[C].length)])}return F}return i(t,u)}});var Nr=A((TF,Lr)=>{Lr.exports=function(e){return function(t,u,n){if(t===" ")return t;switch(u%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}});var Ur=A((_F,$r)=>{$r.exports=function(e){return function(t,u,n){return u%2===0?t:e.inverse(t)}}});var jr=A((vF,Wr)=>{Wr.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(u,n,r){return u===" "?u:e[t[n++%t.length]](u)}}});var qr=A((IF,Gr)=>{Gr.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(u,n,r){return u===" "?u:e[t[Math.round(Math.random()*(t.length-2))]](u)}}});var Xr=A((PF,Yr)=>{var E={};Yr.exports=E;E.themes={};var ks=yu("util"),ce=E.styles=kr(),Vr=Object.defineProperties,Ss=new RegExp(/[\r\n]+/g);E.supportsColor=vr().supportsColor;typeof E.enabled>"u"&&(E.enabled=E.supportsColor()!==!1);E.enable=function(){E.enabled=!0};E.disable=function(){E.enabled=!1};E.stripColors=E.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};var MF=E.stylize=function(t,u){if(!E.enabled)return t+"";var n=ce[u];return!n&&u in E?E[u](t):n.open+t+n.close},Ts=/[|\\{}()[\]^$+*?.]/g,_s=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Ts,"\\$&")};function Kr(e){var t=function u(){return Is.apply(u,arguments)};return t._styles=e,t.__proto__=vs,t}var zr=(function(){var e={};return ce.grey=ce.gray,Object.keys(ce).forEach(function(t){ce[t].closeRe=new RegExp(_s(ce[t].close),"g"),e[t]={get:function(){return Kr(this._styles.concat(t))}}}),e})(),vs=Vr(function(){},zr);function Is(){var e=Array.prototype.slice.call(arguments),t=e.map(function(o){return o!=null&&o.constructor===String?o:ks.inspect(o)}).join(" ");if(!E.enabled||!t)return t;for(var u=t.indexOf(`
|
|
5
|
+
`)!=-1,n=this._styles,r=n.length;r--;){var D=ce[n[r]];t=D.open+t.replace(D.closeRe,D.open)+D.close,u&&(t=t.replace(Ss,function(o){return D.close+o+D.open}))}return t}E.setTheme=function(e){if(typeof e=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var t in e)(function(u){E[u]=function(n){if(typeof e[u]=="object"){var r=n;for(var D in e[u])r=E[e[u][D]](r);return r}return E[e[u]](n)}})(t)};function Ms(){var e={};return Object.keys(zr).forEach(function(t){e[t]={get:function(){return Kr([t])}}}),e}var Ps=function(t,u){var n=u.split("");return n=n.map(t),n.join("")};E.trap=Mr();E.zalgo=Or();E.maps={};E.maps.america=Nr()(E);E.maps.zebra=Ur()(E);E.maps.rainbow=jr()(E);E.maps.random=qr()(E);for(Hr in E.maps)(function(e){E[e]=function(t){return Ps(E.maps[e],t)}})(Hr);var Hr;Vr(E,Ms())});var Zr=A((OF,Jr)=>{var Os=Xr();Jr.exports=Os});var uD=A((LF,ot)=>{var{info:Ls,debug:tD}=rt(),L=Qt(),uu=class e{constructor(t){this.setOptions(t),this.x=null,this.y=null}setOptions(t){["boolean","number","bigint","string"].indexOf(typeof t)!==-1&&(t={content:""+t}),t=t||{},this.options=t;let u=t.content;if(["boolean","number","bigint","string"].indexOf(typeof u)!==-1)this.content=String(u);else if(!u)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof u);this.colSpan=t.colSpan||1,this.rowSpan=t.rowSpan||1,this.options.href&&Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(t,u){this.cells=u;let n=this.options.chars||{},r=t.chars,D=this.chars={};$s.forEach(function(s){tu(n,r,s,D)}),this.truncate=this.options.truncate||t.truncate;let o=this.options.style=this.options.style||{},i=t.style;tu(o,i,"padding-left",this),tu(o,i,"padding-right",this),this.head=o.head||i.head,this.border=o.border||i.border,this.fixedWidth=t.colWidths[this.x],this.lines=this.computeLines(t),this.desiredWidth=L.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(t){let u=t.wordWrap||t.textWrap,{wordWrap:n=u}=this.options;if(this.fixedWidth&&n){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let o=1;for(;o<this.colSpan;)this.fixedWidth+=t.colWidths[this.x+o],o++}let{wrapOnWordBoundary:r=!0}=t,{wrapOnWordBoundary:D=r}=this.options;return this.wrapLines(L.wordWrap(this.fixedWidth,this.content,D))}return this.wrapLines(this.content.split(`
|
|
6
|
+
`))}wrapLines(t){let u=L.colorizeLines(t);return this.href?u.map(n=>L.hyperlink(this.href,n)):u}init(t){let u=this.x,n=this.y;this.widths=t.colWidths.slice(u,u+this.colSpan),this.heights=t.rowHeights.slice(n,n+this.rowSpan),this.width=this.widths.reduce(eD,-1),this.height=this.heights.reduce(eD,-1),this.hAlign=this.options.hAlign||t.colAligns[u],this.vAlign=this.options.vAlign||t.rowAligns[n],this.drawRight=u+this.colSpan==t.colWidths.length}draw(t,u){if(t=="top")return this.drawTop(this.drawRight);if(t=="bottom")return this.drawBottom(this.drawRight);let n=L.truncate(this.content,10,this.truncate);t||Ls(`${this.y}-${this.x}: ${this.rowSpan-t}x${this.colSpan} Cell ${n}`);let r=Math.max(this.height-this.lines.length,0),D;switch(this.vAlign){case"center":D=Math.ceil(r/2);break;case"bottom":D=r;break;default:D=0}if(t<D||t>=D+this.lines.length)return this.drawEmpty(this.drawRight,u);let o=this.lines.length>this.height&&t+1>=this.height;return this.drawLine(t-D,this.drawRight,o,u)}drawTop(t){let u=[];return this.cells?this.widths.forEach(function(n,r){u.push(this._topLeftChar(r)),u.push(L.repeat(this.chars[this.y==0?"top":"mid"],n))},this):(u.push(this._topLeftChar(0)),u.push(L.repeat(this.chars[this.y==0?"top":"mid"],this.width))),t&&u.push(this.chars[this.y==0?"topRight":"rightMid"]),this.wrapWithStyleColors("border",u.join(""))}_topLeftChar(t){let u=this.x+t,n;if(this.y==0)n=u==0?"topLeft":t==0?"topMid":"top";else if(u==0)n="leftMid";else if(n=t==0?"midMid":"bottomMid",this.cells&&(this.cells[this.y-1][u]instanceof e.ColSpanCell&&(n=t==0?"topMid":"mid"),t==0)){let D=1;for(;this.cells[this.y][u-D]instanceof e.ColSpanCell;)D++;this.cells[this.y][u-D]instanceof e.RowSpanCell&&(n="leftMid")}return this.chars[n]}wrapWithStyleColors(t,u){if(this[t]&&this[t].length)try{let n=Zr();for(let r=this[t].length-1;r>=0;r--)n=n[this[t][r]];return n(u)}catch{return u}else return u}drawLine(t,u,n,r){let D=this.chars[this.x==0?"left":"middle"];if(this.x&&r&&this.cells){let h=this.cells[this.y+r][this.x-1];for(;h instanceof Pe;)h=this.cells[h.y][h.x-1];h instanceof Oe||(D=this.chars.rightMid)}let o=L.repeat(" ",this.paddingLeft),i=u?this.chars.right:"",s=L.repeat(" ",this.paddingRight),a=this.lines[t],F=this.width-(this.paddingLeft+this.paddingRight);n&&(a+=this.truncate||"\u2026");let c=L.truncate(a,F,this.truncate);return c=L.pad(c,F," ",this.hAlign),c=o+c+s,this.stylizeLine(D,c,i)}stylizeLine(t,u,n){return t=this.wrapWithStyleColors("border",t),n=this.wrapWithStyleColors("border",n),this.y===0&&(u=this.wrapWithStyleColors("head",u)),t+u+n}drawBottom(t){let u=this.chars[this.x==0?"bottomLeft":"bottomMid"],n=L.repeat(this.chars.bottom,this.width),r=t?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",u+n+r)}drawEmpty(t,u){let n=this.chars[this.x==0?"left":"middle"];if(this.x&&u&&this.cells){let o=this.cells[this.y+u][this.x-1];for(;o instanceof Pe;)o=this.cells[o.y][o.x-1];o instanceof Oe||(n=this.chars.rightMid)}let r=t?this.chars.right:"",D=L.repeat(" ",this.width);return this.stylizeLine(n,D,r)}},Pe=class{constructor(){}draw(t){return typeof t=="number"&&tD(`${this.y}-${this.x}: 1x1 ColSpanCell`),""}init(){}mergeTableOptions(){}},Oe=class{constructor(t){this.originalCell=t}init(t){let u=this.y,n=this.originalCell.y;this.cellOffset=u-n,this.offset=Ns(t.rowHeights,n,this.cellOffset)}draw(t){return t=="top"?this.originalCell.draw(this.offset,this.cellOffset):t=="bottom"?this.originalCell.draw("bottom"):(tD(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+t))}mergeTableOptions(){}};function Qr(...e){return e.filter(t=>t!=null).shift()}function tu(e,t,u,n){let r=u.split("-");r.length>1?(r[1]=r[1].charAt(0).toUpperCase()+r[1].substr(1),r=r.join(""),n[r]=Qr(e[r],e[u],t[r],t[u])):n[u]=Qr(e[u],t[u])}function Ns(e,t,u){let n=e[t];for(let r=1;r<u;r++)n+=1+e[t+r];return n}function eD(e,t){return e+t+1}var $s=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];ot.exports=uu;ot.exports.ColSpanCell=Pe;ot.exports.RowSpanCell=Oe});var DD=A((NF,rD)=>{var{warn:Us,debug:Ws}=rt(),nu=uD(),{ColSpanCell:js,RowSpanCell:Gs}=nu;(function(){function e(d,l){return d[l]>0?e(d,l+1):l}function t(d){let l={};d.forEach(function(C,f){let p=0;C.forEach(function(m){m.y=f,m.x=f?e(l,p):p;let B=m.rowSpan||1,g=m.colSpan||1;if(B>1)for(let b=0;b<g;b++)l[m.x+b]=B;p=m.x+g}),Object.keys(l).forEach(m=>{l[m]--,l[m]<1&&delete l[m]})})}function u(d){let l=0;return d.forEach(function(C){C.forEach(function(f){l=Math.max(l,f.x+(f.colSpan||1))})}),l}function n(d){return d.length}function r(d,l){let C=d.y,f=d.y-1+(d.rowSpan||1),p=l.y,m=l.y-1+(l.rowSpan||1),B=!(C>m||p>f),g=d.x,b=d.x-1+(d.colSpan||1),k=l.x,se=l.x-1+(l.colSpan||1),S=!(g>se||k>b);return B&&S}function D(d,l,C){let f=Math.min(d.length-1,C),p={x:l,y:C};for(let m=0;m<=f;m++){let B=d[m];for(let g=0;g<B.length;g++)if(r(p,B[g]))return!0}return!1}function o(d,l,C,f){for(let p=C;p<f;p++)if(D(d,p,l))return!1;return!0}function i(d){d.forEach(function(l,C){l.forEach(function(f){for(let p=1;p<f.rowSpan;p++){let m=new Gs(f);m.x=f.x,m.y=f.y+p,m.colSpan=f.colSpan,a(m,d[C+p])}})})}function s(d){for(let l=d.length-1;l>=0;l--){let C=d[l];for(let f=0;f<C.length;f++){let p=C[f];for(let m=1;m<p.colSpan;m++){let B=new js;B.x=p.x+m,B.y=p.y,C.splice(f+1,0,B)}}}}function a(d,l){let C=0;for(;C<l.length&&l[C].x<d.x;)C++;l.splice(C,0,d)}function F(d){let l=n(d),C=u(d);Ws(`Max rows: ${l}; Max cols: ${C}`);for(let f=0;f<l;f++)for(let p=0;p<C;p++)if(!D(d,p,f)){let m={x:p,y:f,colSpan:1,rowSpan:1};for(p++;p<C&&!D(d,p,f);)m.colSpan++,p++;let B=f+1;for(;B<l&&o(d,B,m.x,m.x+m.colSpan);)m.rowSpan++,B++;let g=new nu(m);g.x=m.x,g.y=m.y,Us(`Missing cell at ${g.y}-${g.x}.`),a(g,d[f])}}function c(d){return d.map(function(l){if(!Array.isArray(l)){let C=Object.keys(l)[0];l=l[C],Array.isArray(l)?(l=l.slice(),l.unshift(C)):l=[C,l]}return l.map(function(C){return new nu(C)})})}function h(d){let l=c(d);return t(l),F(l),i(l),s(l),l}rD.exports={makeTableLayout:h,layoutTable:t,addRowSpanCells:i,maxWidth:u,fillInTable:F,computeWidths:nD("colSpan","desiredWidth","x",1),computeHeights:nD("rowSpan","desiredHeight","y",1)}})();function nD(e,t,u,n){return function(r,D){let o=[],i=[],s={};D.forEach(function(a){a.forEach(function(F){(F[e]||1)>1?i.push(F):o[F[u]]=Math.max(o[F[u]]||0,F[t]||0,n)})}),r.forEach(function(a,F){typeof a=="number"&&(o[F]=a)});for(let a=i.length-1;a>=0;a--){let F=i[a],c=F[e],h=F[u],d=o[h],l=typeof r[h]=="number"?0:1;if(typeof d=="number")for(let C=1;C<c;C++)d+=1+o[h+C],typeof r[h+C]!="number"&&l++;else d=t==="desiredWidth"?F.desiredWidth-1:1,(!s[h]||s[h]<d)&&(s[h]=d);if(F[t]>d){let C=0;for(;l>0&&F[t]>d;){if(typeof r[h+C]!="number"){let f=Math.round((F[t]-d)/l);d+=f,o[h+C]+=f,l--}C++}}}Object.assign(r,o,s);for(let a=0;a<r.length;a++)r[a]=Math.max(n,r[a]||0)}}});var iD=A(($F,oD)=>{var J=rt(),qs=Qt(),ru=DD(),it=class extends Array{constructor(t){super();let u=qs.mergeOptions(t);if(Object.defineProperty(this,"options",{value:u,enumerable:u.debug}),u.debug){switch(typeof u.debug){case"boolean":J.setDebugLevel(J.WARN);break;case"number":J.setDebugLevel(u.debug);break;case"string":J.setDebugLevel(parseInt(u.debug,10));break;default:J.setDebugLevel(J.WARN),J.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof u.debug}`)}Object.defineProperty(this,"messages",{get(){return J.debugMessages()}})}}toString(){let t=this,u=this.options.head&&this.options.head.length;u?(t=[this.options.head],this.length&&t.push.apply(t,this)):this.options.style.head=[];let n=ru.makeTableLayout(t);n.forEach(function(D){D.forEach(function(o){o.mergeTableOptions(this.options,n)},this)},this),ru.computeWidths(this.options.colWidths,n),ru.computeHeights(this.options.rowHeights,n),n.forEach(function(D){D.forEach(function(o){o.init(this.options)},this)},this);let r=[];for(let D=0;D<n.length;D++){let o=n[D],i=this.options.rowHeights[D];(D===0||!this.options.style.compact||D==1&&u)&&Du(o,"top",r);for(let s=0;s<i;s++)Du(o,s,r);D+1==n.length&&Du(o,"bottom",r)}return r.join(`
|
|
7
7
|
`)}get width(){return this.toString().split(`
|
|
8
|
-
`)[0].length}};iu.reset=()=>Z.reset();function Dt(e,u,t){let n=[];e.forEach(function(r){n.push(r.draw(u))});let D=n.join("");D.length&&t.push(D)}er.exports=iu});var nr=A((f0,tr)=>{tr.exports=ur()});import He from"node:path";import eo from"node:os";import{createReadStream as Yr}from"node:fs";import Jr from"node:readline";var Eu=200;async function xt(e){let u=Yr(e,{encoding:"utf8"}),t=Jr.createInterface({input:u,crlfDelay:1/0}),n=[],D=[],r=[];for await(let o of t){if(!o.trim())continue;let i;try{i=JSON.parse(o)}catch{continue}if(!(!i||typeof i!="object")){if(i.uuid&&r.push([i.uuid,i.parentUuid??null]),i.type==="assistant"){let s=Xr(i,e);s&&n.push(s)}else if(i.type==="user"){let s=Zr(i,e);s&&D.push(s)}}}return{assistant:n,user:D,parentLinks:r}}function Xr(e,u){let t=e.message;if(!t)return null;let n=t.usage;if(!n)return null;let D=t.model??"";if(!D||D==="<synthetic>")return null;let r=t.id??e.uuid??"";if(!r&&!e.requestId)return null;let o=n.cache_creation,i=Array.isArray(t.content)?t.content:[],s=[],a=!1,F="";for(let c of i)c.type==="tool_use"&&typeof c.name=="string"?s.push(c.name):c.type==="thinking"?a=!0:c.type==="text"&&typeof c.text=="string"&&!F&&(F=c.text.slice(0,Eu));return{type:"assistant",source:"claude",uuid:e.uuid??r,parentUuid:e.parentUuid??null,timestamp:e.timestamp??new Date().toISOString(),sessionId:e.sessionId??"",requestId:e.requestId??"",cwd:e.cwd??"",gitBranch:e.gitBranch,version:e.version,model:D,messageId:r,usage:{input_tokens:Number(n.input_tokens)||0,output_tokens:Number(n.output_tokens)||0,cache_creation_input_tokens:Number(n.cache_creation_input_tokens)||0,cache_read_input_tokens:Number(n.cache_read_input_tokens)||0,cache_creation_5m:Number(o?.ephemeral_5m_input_tokens)||0,cache_creation_1h:Number(o?.ephemeral_1h_input_tokens)||0},toolNames:s,hasThinking:a,textPreview:F,filePath:u,isSidechain:e.isSidechain===!0?!0:void 0}}function Zr(e,u){if(!e.uuid)return null;let t=e.message,n="";if(t){let o=t.content;if(typeof o=="string")n=o.slice(0,Eu);else if(Array.isArray(o)){for(let i of o)if(i.type==="text"&&typeof i.text=="string"){n=i.text.slice(0,Eu);break}}}let D=e.isSidechain===!0,r=D||!!n&&Qr(n);return{type:"user",source:"claude",uuid:e.uuid,parentUuid:e.parentUuid??null,timestamp:e.timestamp??new Date().toISOString(),sessionId:e.sessionId??"",cwd:e.cwd??"",textPreview:n,isSynthetic:r,isSidechain:D?!0:void 0,filePath:u}}function Qr(e){let u=e.trimStart();return!!(u.startsWith("Base directory for this skill:")||u.startsWith("<system-reminder>")||u.startsWith("Caveat: The messages below were generated by")||u.startsWith("<task-notification>"))}var U={"claude-fable-5":{input:10,output:50,cacheCreation5m:12.5,cacheCreation1h:20,cacheRead:1},"claude-opus-4-8":{input:5,output:25,cacheCreation5m:6.25,cacheCreation1h:10,cacheRead:.5},"claude-opus-4-7":{input:5,output:25,cacheCreation5m:6.25,cacheCreation1h:10,cacheRead:.5},"claude-opus-4-6":{input:5,output:25,cacheCreation5m:6.25,cacheCreation1h:10,cacheRead:.5},"claude-opus-4-5":{input:5,output:25,cacheCreation5m:6.25,cacheCreation1h:10,cacheRead:.5},"claude-sonnet-4-6":{input:3,output:15,cacheCreation5m:3.75,cacheCreation1h:6,cacheRead:.3},"claude-sonnet-4-5":{input:3,output:15,cacheCreation5m:3.75,cacheCreation1h:6,cacheRead:.3},"claude-haiku-4-5":{input:1,output:5,cacheCreation5m:1.25,cacheCreation1h:2,cacheRead:.1},"claude-haiku-3-5":{input:.8,output:4,cacheCreation5m:1,cacheCreation1h:1.6,cacheRead:.08},"claude-opus-4-1":{input:15,output:75,cacheCreation5m:18.75,cacheCreation1h:30,cacheRead:1.5},"claude-opus-4":{input:15,output:75,cacheCreation5m:18.75,cacheCreation1h:30,cacheRead:1.5},"claude-sonnet-4":{input:3,output:15,cacheCreation5m:3.75,cacheCreation1h:6,cacheRead:.3},"claude-sonnet-3-7":{input:3,output:15,cacheCreation5m:3.75,cacheCreation1h:6,cacheRead:.3},"claude-haiku-3":{input:.25,output:1.25,cacheCreation5m:.3,cacheCreation1h:.5,cacheRead:.03}},Rt={fable:U["claude-fable-5"],opus:U["claude-opus-4-8"],sonnet:U["claude-sonnet-4-6"],haiku:U["claude-haiku-4-5"]};function Be(e,u){if(!u)return{input:0,output:0,cacheCreation5m:0,cacheCreation1h:0,cacheRead:0,total:0,saved:0};let t=e.input_tokens/1e6*u.input,n=e.output_tokens/1e6*u.output,D=e.cache_creation_5m/1e6*u.cacheCreation5m,r=e.cache_creation_1h/1e6*u.cacheCreation1h;D+r===0&&e.cache_creation_input_tokens>0&&(D=e.cache_creation_input_tokens/1e6*u.cacheCreation5m);let o=e.cache_read_input_tokens/1e6*u.cacheRead,i=t+n+D+r+o,s=e.cache_read_input_tokens/1e6*(u.input-u.cacheRead);return{input:t,output:n,cacheCreation5m:D,cacheCreation1h:r,cacheRead:o,total:i,saved:s}}function wt(e){return e.replace(/\b\w/g,u=>u.toUpperCase())}function kt(e){if(!e)return"(unknown)";let u=e.replace(/-(\d{8})$/,"").replace(/^(vertex_ai|bedrock|anthropic)\//,"");u=u.replace(/^claude-/,"");let t=u.split("-");if(t.length>=2){let n=t[0],D=t.slice(1).join(".");return wt(n)+" "+D}return wt(u.replace(/-/g," "))}var uo=/-\d{8}$/,to=/^(vertex_ai|bedrock|anthropic)\//;function no(e){if(!e)return{pricing:null,matchType:"none",matchedKey:null};if(U[e])return{pricing:U[e],matchType:"exact",matchedKey:e};let u=e.replace(uo,"");if(U[u])return{pricing:U[u],matchType:"date-stripped",matchedKey:u};let t=u.replace(to,"");if(U[t])return{pricing:U[t],matchType:"prefix-stripped",matchedKey:t};for(let n of["fable","opus","sonnet","haiku"])if(e.toLowerCase().includes(n))return{pricing:Rt[n],matchType:"family-fallback",matchedKey:`claude-${n}-(latest)`};return{pricing:null,matchType:"none",matchedKey:null}}function Do(){let e=eo.homedir(),u=[He.join(e,".claude","projects"),He.join(e,".config","claude","projects")];return process.env.CCGAUGE_CONFIG_DIR&&u.push(He.join(process.env.CCGAUGE_CONFIG_DIR,"projects")),process.env.CLAUDE_CONFIG_DIR&&u.push(He.join(process.env.CLAUDE_CONFIG_DIR,"projects")),Array.from(new Set(u))}var St={id:"claude",displayName:{en:"Claude",zh:"Claude"},shortLabel:"C",color:{fg:"#b45309",bg:"#fef3c7"},logoSrc:"/claude-logo.webp",parserVersion:"claude-v5-task-notification-synthetic",capabilities:{hasCacheCreation:!0,hasReasoningTokens:!1,blockWindowMs:300*60*1e3},getDirs:Do,shouldSkipDir:e=>e==="tool-results"||e==="memory",parseFile:async e=>await xt(e),resolvePricing:no,shortenModel:kt,costFromUsage:Be,costFootnoteKey:null};import Ve from"node:path";import fo from"node:os";import{createReadStream as ro,promises as oo}from"node:fs";import io from"node:readline";var Bu=200;async function so(e){try{let u=await oo.stat(e);return new Date(u.mtimeMs).toISOString()}catch{return new Date().toISOString()}}function M(e){return typeof e=="string"?e:""}function ne(e){let u=Number(e);return Number.isFinite(u)?u:0}function bu(e){let u=e.message;if(typeof u=="string")return u;let t=e.content;if(typeof t=="string")return t;if(Array.isArray(t))for(let n of t){let D=n?.type;if((D==="input_text"||D==="output_text"||D==="text")&&typeof n.text=="string")return n.text}return""}async function Tt(e){let u=ro(e,{encoding:"utf8"}),t=io.createInterface({input:u,crlfDelay:1/0}),n=[],D=[],r=[],o="",i,s="",a=0,F=0,c=null,d=await so(e),l={turnId:null,cwd:"",model:"gpt-unknown",userUuid:null,toolNames:[],hasThinking:!1,pendingTextPreview:""};for await(let C of t){if(!C.trim())continue;let h;try{h=JSON.parse(C)}catch{continue}if(!h||typeof h!="object"||!h.type)continue;let p=h.payload??{},g=M(h.timestamp),B=g||d;if(g&&(d=g),h.type==="session_meta"){o=M(p.id),s=M(p.cwd),i=M(p.cli_version)||void 0;let m=M(p.timestamp);m&&(d=m),l.cwd||(l.cwd=s);continue}if(h.type==="turn_context"){l.turnId=M(p.turn_id)||l.turnId,l.cwd=M(p.cwd)||s;let m=M(p.model);m&&(l.model=m);let b=M(p.effort);b&&(l.effort=b),l.toolNames=[],l.hasThinking=!1,l.pendingTextPreview="";continue}if(h.type==="event_msg"){let m=M(p.type);if(m==="user_message"){let b=bu(p);if(!b)continue;let k=`${o}::u${a++}`;D.push({type:"user",source:"codex",uuid:k,parentUuid:null,timestamp:B,sessionId:o,cwd:l.cwd||s,textPreview:b.slice(0,Bu),filePath:e}),r.push([k,null]),l.userUuid=k;continue}if(m==="agent_message"){let b=bu(p);b&&!l.pendingTextPreview&&(l.pendingTextPreview=b.slice(0,Bu));continue}if(m==="agent_reasoning"){l.hasThinking=!0;continue}if(m==="token_count"){let b=p.info;if(!b)continue;let k=b.total_token_usage,se=b.last_token_usage,S=k?{input:ne(k.input_tokens),cached:ne(k.cached_input_tokens),output:ne(k.output_tokens),reasoning:ne(k.reasoning_output_tokens)}:null,ue,K,te,z;if(S){if(c===null?(ue=S.input,K=S.cached,te=S.output,z=S.reasoning):(ue=Math.max(0,S.input-c.input),K=Math.max(0,S.cached-c.cached),te=Math.max(0,S.output-c.output),z=Math.max(0,S.reasoning-c.reasoning)),ue===0&&K===0&&te===0&&z===0)continue;c===null?c={...S}:c={input:Math.max(c.input,S.input),cached:Math.max(c.cached,S.cached),output:Math.max(c.output,S.output),reasoning:Math.max(c.reasoning,S.reasoning)}}else if(se){if(ue=ne(se.input_tokens),K=ne(se.cached_input_tokens),te=ne(se.output_tokens),z=ne(se.reasoning_output_tokens),ue===0&&K===0&&te===0&&z===0)continue;c===null?c={input:ue,cached:K,output:te,reasoning:z}:c={input:c.input+ue,cached:c.cached+K,output:c.output+te,reasoning:c.reasoning+z}}else continue;let Bt=`${o}::a${F++}`,bt=l.turnId?`${l.turnId}::a${F}`:`${o}::a${F}`;n.push({type:"assistant",source:"codex",uuid:Bt,parentUuid:l.userUuid,timestamp:B,sessionId:o,requestId:bt,cwd:l.cwd||s,version:i,model:l.model||"gpt-unknown",messageId:bt,usage:{input_tokens:Math.max(0,ue-K),output_tokens:te+z,cache_creation_input_tokens:0,cache_read_input_tokens:K,cache_creation_5m:0,cache_creation_1h:0,reasoning_tokens:z},toolNames:[...l.toolNames],hasThinking:l.hasThinking,textPreview:l.pendingTextPreview,filePath:e,effort:l.effort}),r.push([Bt,l.userUuid]),l.toolNames=[],l.hasThinking=!1,l.pendingTextPreview="";continue}continue}if(h.type==="response_item"){let m=M(p.type);if(m==="function_call"||m==="custom_tool_call"){let b=M(p.name);b&&l.toolNames.push(b);continue}if(m==="reasoning"){l.hasThinking=!0;continue}if(m==="message"){if(M(p.role)==="assistant"){let k=bu(p);k&&!l.pendingTextPreview&&(l.pendingTextPreview=k.slice(0,Bu))}continue}continue}}return{assistant:n,user:D,parentLinks:r}}var De={"gpt-5.5":{input:5,output:30,cacheRead:.5,cacheCreation5m:0,cacheCreation1h:0},"gpt-5.4":{input:2.5,output:15,cacheRead:.25,cacheCreation5m:0,cacheCreation1h:0},"gpt-5.4-mini":{input:.75,output:4.5,cacheRead:.075,cacheCreation5m:0,cacheCreation1h:0},"gpt-5.4-nano":{input:.2,output:1.25,cacheRead:.02,cacheCreation5m:0,cacheCreation1h:0},"gpt-5.3-codex":{input:1.75,output:14,cacheRead:.175,cacheCreation5m:0,cacheCreation1h:0},"gpt-5":{input:2.5,output:15,cacheRead:.25,cacheCreation5m:0,cacheCreation1h:0},"gpt-5-mini":{input:.75,output:4.5,cacheRead:.075,cacheCreation5m:0,cacheCreation1h:0},"gpt-5-nano":{input:.2,output:1.25,cacheRead:.02,cacheCreation5m:0,cacheCreation1h:0},"gpt-5-codex":{input:1.75,output:14,cacheRead:.175,cacheCreation5m:0,cacheCreation1h:0},"gpt-4.1":{input:2,output:8,cacheRead:.5,cacheCreation5m:0,cacheCreation1h:0},"gpt-4.1-mini":{input:.4,output:1.6,cacheRead:.1,cacheCreation5m:0,cacheCreation1h:0},o3:{input:2,output:8,cacheRead:.5,cacheCreation5m:0,cacheCreation1h:0},"o4-mini":{input:1.1,output:4.4,cacheRead:.275,cacheCreation5m:0,cacheCreation1h:0}},_t={gpt:De["gpt-5.5"],o:De.o3},ao=/-\d{8}$/,co=/^(openai)\//;function vt(e){if(!e)return{pricing:null,matchType:"none",matchedKey:null};if(De[e])return{pricing:De[e],matchType:"exact",matchedKey:e};let u=e.replace(ao,"");if(De[u])return{pricing:De[u],matchType:"date-stripped",matchedKey:u};let t=u.replace(co,"");if(De[t])return{pricing:De[t],matchType:"prefix-stripped",matchedKey:t};let n=e.toLowerCase();return n.startsWith("gpt-")||n==="gpt"?{pricing:_t.gpt,matchType:"family-fallback",matchedKey:"gpt-(latest)"}:/^o\d/.test(n)?{pricing:_t.o,matchType:"family-fallback",matchedKey:"o-(latest)"}:{pricing:null,matchType:"none",matchedKey:null}}function lo(e){return e.replace(/\b\w/g,u=>u.toUpperCase())}var Fo={mini:"Mini",nano:"Nano",pro:"Pro",turbo:"Turbo",preview:"Preview"};function It(e){if(!e)return"(unknown)";let u=e.replace(/^openai\//,"");return u.toLowerCase().startsWith("gpt-")?"GPT-"+u.slice(4).split("-").map(D=>Fo[D.toLowerCase()]??D).join(" "):u.toLowerCase().startsWith("o")?u.toUpperCase():lo(u.replace(/-/g," "))}function po(){let e=fo.homedir(),u=[Ve.join(e,".codex","sessions"),Ve.join(e,".codex","archived_sessions")];return process.env.CCGAUGE_CODEX_DIR&&u.push(process.env.CCGAUGE_CODEX_DIR),process.env.CODEX_HOME&&(u.push(Ve.join(process.env.CODEX_HOME,"sessions")),u.push(Ve.join(process.env.CODEX_HOME,"archived_sessions"))),Array.from(new Set(u))}var Mt={id:"codex",displayName:{en:"Codex",zh:"Codex"},shortLabel:"X",color:{fg:"#047857",bg:"#d1fae5"},logoSrc:"/codex-logo.webp",parserVersion:"codex-v5-last-total-prev",capabilities:{hasCacheCreation:!1,hasReasoningTokens:!0,blockWindowMs:300*60*1e3},getDirs:po,shouldSkipDir:()=>!1,parseFile:Tt,resolvePricing:vt,shortenModel:It,costFromUsage:Be,costFootnoteKey:"cost.footnote.codex"};var Pt={claude:St,codex:Mt},Au=["claude","codex"];function re(e){return Pt[e]}function yu(){return Au.map(e=>Pt[e])}function Ot(e){return typeof e=="string"&&(e==="claude"||e==="codex")}import{promises as be,watch as bo}from"node:fs";import Vt from"node:path";function ho(e){let u=`${e.source}:`;return e.messageId&&e.requestId?`${u}${e.messageId}::${e.requestId}`:e.messageId?`${u}mid:${e.messageId}`:e.requestId?`${u}req:${e.requestId}`:`${u}uuid:${e.uuid}`}function Lt(e){let u=new Map;for(let t of e){let n=ho(t),D=u.get(n);if(!D){u.set(n,t);continue}t.timestamp<D.timestamp&&u.set(n,t)}return Array.from(u.values())}import{promises as Ke}from"node:fs";import xu from"node:path";import Co from"node:os";var ze=2,Fe="default";function go(){return process.env.CCGAUGE_STATE_DIR?process.env.CCGAUGE_STATE_DIR:xu.join(Co.homedir(),".ccgauge")}function Nt(e){let u=e===Fe?`index-v${ze}.json`:`index-${e}-v${ze}.json`;return xu.join(go(),"cache",u)}async function $t(e=Fe){let u=Nt(e);try{let t=await Ke.readFile(u,"utf8"),n=JSON.parse(t);return n.schemaVersion!==ze||!Array.isArray(n.files)?null:n}catch{return null}}async function Ut(e,u=Fe){let t=Nt(u),n=xu.dirname(t);await Ke.mkdir(n,{recursive:!0});let D={schemaVersion:ze,savedAt:e.savedAt,files:e.files},r=`${t}.tmp-${process.pid}`;await Ke.writeFile(r,JSON.stringify(D)),await Ke.rename(r,t)}var Wt=/[\\/]([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})[\\/]subagents[\\/](?:[^\\/]+[\\/])*agent-[^\\/]+\.jsonl$/i,mo=/[\\/]subagents[\\/]workflows[\\/]/i;function Eo(e){let u=Wt.exec(e);return u?u[1]:null}function jt(e){return Wt.test(e)?mo.test(e)?"workflow":"task":null}function Gt({assistantRecords:e,userRecords:u,parentMap:t}){let n=new Map;for(let o of e){if(o.isSidechain||!o.sessionId)continue;let i=n.get(o.sessionId);i||(i=[],n.set(o.sessionId,i)),i.push(o)}for(let o of n.values())o.sort((i,s)=>i.timestamp<s.timestamp?-1:i.timestamp>s.timestamp?1:0);let D=new Map;for(let o of u){if(!o.isSidechain)continue;let i=D.get(o.filePath);(!i||o.timestamp<i.timestamp)&&D.set(o.filePath,o)}let r={subagentFiles:0,relinked:0,orphans:0,alreadyLinked:0};for(let[o,i]of D){let s=Eo(o);if(!s)continue;r.subagentFiles+=1;let a=t[i.uuid];if(a!=null){r.alreadyLinked+=1;continue}let F=n.get(s);if(!F||F.length===0){r.orphans+=1;continue}let c=i.timestamp,f;for(let d=F.length-1;d>=0;d-=1)if(F[d].timestamp<=c){f=F[d];break}f||(f=F[0]),t[i.uuid]=f.uuid,r.relinked+=1}return r}import{homedir as Bo}from"node:os";function qt(e){let u=Bo();if(!u)return e;let t=new Set([u]);process.platform==="win32"&&(t.add(u.replace(/\\/g,"/")),t.add(u.replace(/\\/g,"\\\\")),t.add("\\\\?\\"+u),t.add("\\\\?\\"+u.replace(/\\/g,"/")));let n=e;for(let D of t){let r=D.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp(r,"g"),"~")}return n}var Ao=200,yo=100,xo=3e4,Ro=2e3,wo=8,Ru=20,wu=class{cacheName;files=new Map;snapshot=null;watchers=new Map;pollTimer=null;snapshotRebuildTimer=null;persistTimer=null;fileDebouncers=new Map;initPromise=null;isIndexing=!1;lastIndexedAt=null;indexDurationMs=null;existingDirs=[];dirToProvider=new Map;errors=[];loadedFromDisk=!1;lastWorkStart=null;rescanPromise=null;mutationTail=Promise.resolve();constructor(u=Fe){this.cacheName=u}runExclusive(u){let t=this.mutationTail.then(u,u);return this.mutationTail=t.then(()=>{},()=>{}),t}init(){return this.initPromise||(this.initPromise=this.doInit()),this.initPromise}async doInit(){let u=Date.now();this.isIndexing=!0,this.lastWorkStart=u;try{await this.detectProviderDirs();let t=await $t(this.cacheName);this.loadedFromDisk=t!==null;let n=new Map;if(t)for(let D of t.files)n.set(D.filePath,D);await this.runExclusive(async()=>{await this.fullScan(n),this.rebuildSnapshotNow(),this.indexDurationMs=Date.now()-u,this.lastIndexedAt=new Date().toISOString(),this.schedulePersist()}),this.syncWatchersToDirs(),this.setupPolling()}finally{this.isIndexing=!1}}async detectProviderDirs(){let u=new Map,t=[];for(let r of yu())for(let o of r.getDirs())await ko(o)&&(u.has(o)||(u.set(o,r),t.push(o)));let n=[],D=[];for(let r of u.keys())this.dirToProvider.has(r)||n.push(r);for(let r of this.dirToProvider.keys())u.has(r)||D.push(r);return this.dirToProvider=u,this.existingDirs=t,{added:n,removed:D}}async fullScan(u){let t=[];for(let[D,r]of this.dirToProvider){let o=await Ht(D,r);for(let i of o)t.push({file:i,provider:r})}let n=new Set(t.map(D=>D.file));await Promise.all(t.map(async({file:D,provider:r})=>{try{let o=await be.stat(D),i=u.get(D);if(i&&i.source===r.id&&i.parserVersion===r.parserVersion&&i.mtimeMs===o.mtimeMs&&i.size===o.size){this.files.set(D,{source:r.id,parserVersion:r.parserVersion,mtimeMs:o.mtimeMs,size:o.size,assistantRecords:i.assistantRecords,userRecords:i.userRecords,parentLinks:i.parentLinks});return}let s=await r.parseFile(D);this.files.set(D,{source:r.id,parserVersion:r.parserVersion,mtimeMs:o.mtimeMs,size:o.size,assistantRecords:s.assistant,userRecords:s.user,parentLinks:s.parentLinks})}catch(o){this.recordError(`parse ${D}: ${o.message}`)}}));for(let D of Array.from(this.files.keys()))n.has(D)||this.files.delete(D)}syncWatchersToDirs(){for(let[u,t]of this.watchers)if(!this.dirToProvider.has(u)){try{t.close()}catch{}this.watchers.delete(u)}for(let[u,t]of this.dirToProvider)if(!this.watchers.has(u))try{let n=bo(u,{recursive:!0},(D,r)=>{if(!r||typeof r!="string"||!r.endsWith(".jsonl"))return;let o=Vt.join(u,r);this.scheduleFileReconcile(o,t)});n.on("error",D=>{this.recordError(`watcher ${u}: ${D.message}`)}),this.watchers.set(u,n)}catch(n){this.recordError(`watch ${u}: ${n.message}`)}}setupPolling(){this.pollTimer&&clearInterval(this.pollTimer);let u=this.cacheName==="mcp",t=process.env.CCGAUGE_POLL_FALLBACK;(t==="1"||t!=="0"&&!u)&&(this.pollTimer=setInterval(()=>{this.pollOnce().catch(D=>this.recordError(`poll: ${D.message}`))},xo),this.pollTimer.unref?.())}async pollOnce(){await this.runExclusive(async()=>{let u=Date.now(),t=await this.detectProviderDirs(),n=t.added.length>0||t.removed.length>0;n&&this.syncWatchersToDirs();let D=[];for(let[o,i]of this.dirToProvider){let s=await Ht(o,i);for(let a of s)D.push({file:a,provider:i})}let r=new Set(D.map(o=>o.file));await Promise.all(D.map(async({file:o,provider:i})=>{try{let s=await be.stat(o),a=this.files.get(o);if(a&&a.mtimeMs===s.mtimeMs&&a.size===s.size)return;let F=await i.parseFile(o);this.files.set(o,{source:i.id,parserVersion:i.parserVersion,mtimeMs:s.mtimeMs,size:s.size,assistantRecords:F.assistant,userRecords:F.user,parentLinks:F.parentLinks}),n=!0}catch(s){this.recordError(`poll-parse ${o}: ${s.message}`)}}));for(let o of Array.from(this.files.keys()))r.has(o)||(this.files.delete(o),n=!0);n&&(this.lastWorkStart=u,this.scheduleSnapshotRebuild(),this.schedulePersist())})}scheduleFileReconcile(u,t){let n=this.fileDebouncers.get(u);n&&clearTimeout(n);let D=setTimeout(()=>{this.fileDebouncers.delete(u),this.reconcileFile(u,t).catch(r=>this.recordError(`reconcile ${u}: ${r.message}`))},Ao);D.unref?.(),this.fileDebouncers.set(u,D)}async reconcileFile(u,t){await this.runExclusive(async()=>{let n=Date.now(),D=null;try{D=await be.stat(u)}catch{}if(!D||!D.isFile()){this.files.has(u)&&(this.files.delete(u),this.lastWorkStart=n,this.scheduleSnapshotRebuild(),this.schedulePersist());return}let r=this.files.get(u);if(!(r&&r.mtimeMs===D.mtimeMs&&r.size===D.size))try{let o=await t.parseFile(u);this.files.set(u,{source:t.id,parserVersion:t.parserVersion,mtimeMs:D.mtimeMs,size:D.size,assistantRecords:o.assistant,userRecords:o.user,parentLinks:o.parentLinks}),this.lastWorkStart=n,this.scheduleSnapshotRebuild(),this.schedulePersist()}catch(o){this.recordError(`parse ${u}: ${o.message}`)}})}scheduleSnapshotRebuild(){this.snapshotRebuildTimer&&clearTimeout(this.snapshotRebuildTimer),this.snapshotRebuildTimer=setTimeout(()=>{this.snapshotRebuildTimer=null,this.rebuildSnapshotNow()},yo),this.snapshotRebuildTimer.unref?.()}rebuildSnapshotNow(){let u=Date.now(),t=this.lastWorkStart??u,n=[],D=[],r={},o=0,i={claude:{source:"claude",filesScanned:0,recordsParsed:0,assistantRecords:0,scannedDirs:[]},codex:{source:"codex",filesScanned:0,recordsParsed:0,assistantRecords:0,scannedDirs:[]}};for(let[c,f]of this.dirToProvider)i[f.id].scannedDirs.push(c);for(let c of this.files.values()){n.push(...c.assistantRecords),D.push(...c.userRecords);for(let[f,d]of c.parentLinks)r[f]=d;o+=c.assistantRecords.length+c.userRecords.length,i[c.source].filesScanned+=1,i[c.source].recordsParsed+=c.assistantRecords.length+c.userRecords.length}let s=Lt(n).sort((c,f)=>c.timestamp.localeCompare(f.timestamp)),a=So(D).sort((c,f)=>c.timestamp.localeCompare(f.timestamp));Gt({assistantRecords:s,userRecords:a,parentMap:r});for(let c of s)c.isSidechain&&(c.isWorkflowSubagent=jt(c.filePath)==="workflow");for(let c of s)i[c.source].assistantRecords+=1;let F={filesScanned:this.files.size,recordsParsed:o,assistantRecords:s.length,durationMs:Date.now()-t,scannedDirs:this.existingDirs};this.snapshot={records:s,userRecords:a,parentMap:r,stats:F,bySource:Object.values(i)},this.lastWorkStart=null}getSnapshot(){if(!this.snapshot)throw new Error("Indexer not initialized \u2014 call init() first.");return this.snapshot}async forceRescan(){let u=!this.initPromise;if(await this.init(),u)return this.snapshot;if(this.rescanPromise)return this.rescanPromise;this.rescanPromise=this.runRescan();try{return await this.rescanPromise}finally{this.rescanPromise=null}}async runRescan(){this.isIndexing=!0;try{return await this.runExclusive(async()=>{let u=Date.now();return this.lastWorkStart=u,this.snapshotRebuildTimer&&(clearTimeout(this.snapshotRebuildTimer),this.snapshotRebuildTimer=null),this.persistTimer&&(clearTimeout(this.persistTimer),this.persistTimer=null),this.files.clear(),await this.detectProviderDirs(),await this.fullScan(new Map),this.rebuildSnapshotNow(),this.indexDurationMs=Date.now()-u,this.lastIndexedAt=new Date().toISOString(),this.syncWatchersToDirs(),this.schedulePersist(),this.snapshot})}finally{this.isIndexing=!1}}getStatus(){let u=this.snapshot;return{initialized:u!==null,isIndexing:this.isIndexing,lastIndexedAt:this.lastIndexedAt,indexDurationMs:this.indexDurationMs,filesIndexed:this.files.size,recordsIndexed:u?.stats.assistantRecords??0,bySource:u?.bySource??[],watchers:this.watchers.size,errors:this.errors.slice(-Ru),pendingReconciles:this.fileDebouncers.size,loadedFromDisk:this.loadedFromDisk}}schedulePersist(){this.persistTimer&&clearTimeout(this.persistTimer),this.persistTimer=setTimeout(()=>{this.persistTimer=null;let u=[];for(let[t,n]of this.files)u.push({filePath:t,source:n.source,parserVersion:n.parserVersion,mtimeMs:n.mtimeMs,size:n.size,assistantRecords:n.assistantRecords,userRecords:n.userRecords,parentLinks:n.parentLinks});Ut({savedAt:new Date().toISOString(),files:u},this.cacheName).catch(t=>this.recordError(`persist: ${t.message}`))},Ro),this.persistTimer.unref?.()}recordError(u){let t=`${new Date().toISOString()} ${qt(u)}`;this.errors.push(t),this.errors.length>Ru*2&&this.errors.splice(0,this.errors.length-Ru),process.env.CCGAUGE_DEBUG&&console.error(`[ccgauge:indexer] ${new Date().toISOString()} ${u}`)}disposeWatchers(){for(let u of this.watchers.values())try{u.close()}catch{}this.watchers.clear()}dispose(){this.disposeWatchers(),this.pollTimer&&clearInterval(this.pollTimer),this.snapshotRebuildTimer&&clearTimeout(this.snapshotRebuildTimer),this.persistTimer&&clearTimeout(this.persistTimer);for(let u of this.fileDebouncers.values())clearTimeout(u);this.fileDebouncers.clear()}};async function ko(e){try{return(await be.stat(e)).isDirectory()}catch{return!1}}async function Ht(e,u){let t=[];async function n(D,r){if(r>wo)return;let o;try{o=await be.readdir(D,{withFileTypes:!0})}catch{return}for(let i of o){let s=Vt.join(D,i.name);if(i.isDirectory()){if(u.shouldSkipDir(i.name))continue;await n(s,r+1)}else i.isFile()&&i.name.endsWith(".jsonl")&&t.push(s)}}return await n(e,0),t}function So(e){let u=new Set;return e.filter(t=>{let n=t.uuid;return n?u.has(n)?!1:(u.add(n),!0):!0})}function To(){return globalThis.__ccgaugeIndexers||(globalThis.__ccgaugeIndexers=new Map),globalThis.__ccgaugeIndexers}function Kt(e=Fe){let u=To(),t=u.get(e);return t||(t=new wu(e),u.set(e,t)),t}async function zt(e={}){let u=Kt();return e.force?u.forceRescan():(await u.init(),u.getSnapshot())}function oe(e){let u=re(e.source),{pricing:t}=u.resolvePricing(e.model);return u.costFromUsage(e.usage,t)}function Yt(e,u){return new Intl.NumberFormat("en-US",{maximumFractionDigits:u?.maxFrac??0}).format(e)}function v(e,u="en"){return Number.isFinite(e)?u==="zh"?e>=1e8?(e/1e8).toFixed(2)+"\u4EBF":e>=1e4?(e/1e4).toFixed(1)+"\u4E07":Yt(e):e>=1e9?(e/1e9).toFixed(2)+"B":e>=1e6?(e/1e6).toFixed(2)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":Yt(e):"0"}function N(e,u){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:u?.minFrac??2,maximumFractionDigits:u?.maxFrac??2}).format(e)}function de(e,u=1){return Number.isFinite(e)?`${(e*100).toFixed(u)}%`:"0%"}function Jt(e){if(e<1e3)return`${e}ms`;let u=Math.floor(e/1e3);if(u<60)return`${u}s`;let t=Math.floor(u/60);if(t<60){let r=u%60;return r?`${t}m ${r}s`:`${t}m`}let n=Math.floor(t/60),D=t%60;return D?`${n}h ${D}m`:`${n}h`}function Ae(e){if(!e)return"(unknown)";let t=e.replace(/[/\\]+$/,"").split(/[/\\]+/);return t[t.length-1]||e}import{readFileSync as _o,statSync as vo}from"node:fs";import{basename as Xt}from"node:path";var Zt=new Map,Io=/^(.+?)[/\\]\.git[/\\]worktrees[/\\]([^/\\]+)[/\\]?$/,Mo=/^(.+?)[/\\](?:\.git|\.claude)[/\\]worktrees[/\\]([^/\\]+)(?:[/\\].*)?$/;function Po(e){let u=Ae(e);if(!e)return{label:u,isWorktree:!1,mainName:u,worktreeName:"",canonicalCwd:e};let t=Mo.exec(e);if(t){let n=t[1],D=t[2],r=Xt(n)||n;return{label:`${r} (${D})`,isWorktree:!0,mainName:r,worktreeName:D,canonicalCwd:n}}try{let n=`${e}/.git`;if(!vo(n).isFile())return{label:u,isWorktree:!1,mainName:u,worktreeName:"",canonicalCwd:e};let o=_o(n,"utf8").trim().split(/\r?\n/,1)[0]??"",i=/^gitdir:\s*(.+)$/.exec(o);if(!i)return{label:u,isWorktree:!1,mainName:u,worktreeName:"",canonicalCwd:e};let s=i[1].trim(),a=Io.exec(s);if(!a)return{label:u,isWorktree:!1,mainName:u,worktreeName:"",canonicalCwd:e};let F=a[1],c=a[2],f=Xt(F)||F;return{label:`${f} (${c})`,isWorktree:!0,mainName:f,worktreeName:c,canonicalCwd:F}}catch{return{label:u,isWorktree:!1,mainName:u,worktreeName:"",canonicalCwd:e}}}function Qt(e){let u=Zt.get(e);if(u)return u.label;let t=Po(e);return Zt.set(e,t),t.label}var Oo=["hour","day","week","month"];function en(e){return typeof e=="string"&&Oo.includes(e)}function ku(e,u){let t=new Date(e),n=t.getFullYear(),D=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0"),o=String(t.getHours()).padStart(2,"0");if(u==="hour")return{key:`${n}-${D}-${r}T${o}`,label:`${D}/${r} ${o}:00`};if(u==="day")return{key:`${n}-${D}-${r}`,label:`${D}/${r}`};if(u==="week"){let i=new Date(t),s=i.getDay()||7;i.setDate(i.getDate()-s+1);let a=String(i.getMonth()+1).padStart(2,"0"),F=String(i.getDate()).padStart(2,"0");return{key:`${i.getFullYear()}-W${a}${F}`,label:`Wk ${a}/${F}`}}return{key:`${n}-${D}`,label:`${n}-${D}`}}function ye(e){return{source:e.source,fromIso:e.from?.toISOString(),toIso:e.to?.toISOString(),models:e.models&&e.models.length?new Set(e.models):void 0,projects:e.projects&&e.projects.length?new Set(e.projects):void 0}}function xe(e,u){return!(e.source!==u.source||u.fromIso&&e.timestamp<u.fromIso||u.toIso&&e.timestamp>u.toIso||u.models&&!u.models.has(e.model)||u.projects&&!u.projects.has(e.cwd))}function un(e,u,t){let n=new Map,D=ye(t);for(let r of e){if(!xe(r,D))continue;let{key:o,label:i}=ku(r.timestamp,u),s=n.get(o);s||(s=Lo(o,i),n.set(o,s)),No(s,r)}return Array.from(n.values()).sort((r,o)=>r.key.localeCompare(o.key))}function Lo(e,u){return{key:e,label:u,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalTokens:0,cost:0,saved:0,requests:0,models:{}}}function No(e,u){let t=oe(u);e.inputTokens+=u.usage.input_tokens,e.outputTokens+=u.usage.output_tokens,e.cacheReadTokens+=u.usage.cache_read_input_tokens,e.cacheCreationTokens+=u.usage.cache_creation_input_tokens,e.totalTokens=e.inputTokens+e.outputTokens+e.cacheReadTokens+e.cacheCreationTokens,e.cost+=t.total,e.saved+=t.saved,e.requests+=1;let n=e.models[u.model]??{tokens:0,cost:0,requests:0};n.tokens+=u.usage.input_tokens+u.usage.output_tokens+u.usage.cache_read_input_tokens+u.usage.cache_creation_input_tokens,n.cost+=t.total,n.requests+=1,e.models[u.model]=n}function tn(e,u){let t=new Map,n=ye(u);for(let D of e){if(!xe(D,n))continue;let r=t.get(D.model);if(!r){let{pricing:i,matchType:s}=re(D.source).resolvePricing(D.model);r={model:D.model,source:D.source,requests:0,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalTokens:0,cost:0,saved:0,pricing:i,pricingResolved:s==="exact"||s==="date-stripped"||s==="prefix-stripped"},t.set(D.model,r)}let o=oe(D);r.requests+=1,r.inputTokens+=D.usage.input_tokens,r.outputTokens+=D.usage.output_tokens,r.cacheReadTokens+=D.usage.cache_read_input_tokens,r.cacheCreationTokens+=D.usage.cache_creation_input_tokens,r.totalTokens=r.inputTokens+r.outputTokens+r.cacheReadTokens+r.cacheCreationTokens,r.cost+=o.total,r.saved+=o.saved}return Array.from(t.values()).sort((D,r)=>r.cost-D.cost)}function nn(e,u){let t=new Map,n=new Map,D=ye(u);for(let r of e){if(!xe(r,D))continue;let o=r.cwd||"(unknown)",i=t.get(o);i||(i={source:u.source,cwd:o,projectName:Ae(o),sessions:0,requests:0,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalTokens:0,cost:0,saved:0,firstActivity:r.timestamp,lastActivity:r.timestamp,models:[]},t.set(o,i),n.set(o,new Set)),n.get(o).add(r.sessionId);let s=oe(r);i.requests+=1,i.inputTokens+=r.usage.input_tokens,i.outputTokens+=r.usage.output_tokens,i.cacheReadTokens+=r.usage.cache_read_input_tokens,i.cacheCreationTokens+=r.usage.cache_creation_input_tokens,i.totalTokens=i.inputTokens+i.outputTokens+i.cacheReadTokens+i.cacheCreationTokens,i.cost+=s.total,i.saved+=s.saved,r.timestamp<i.firstActivity&&(i.firstActivity=r.timestamp),r.timestamp>i.lastActivity&&(i.lastActivity=r.timestamp),i.models.includes(r.model)||i.models.push(r.model)}for(let[r,o]of n){let i=t.get(r);i.sessions=o.size}return Array.from(t.values()).sort((r,o)=>o.cost-r.cost)}function Dn(e,u,t){let n=new Map,D=ye(t);for(let o of e){if(!xe(o,D))continue;let i=o.sessionId||o.uuid,s=n.get(i);s||(s={sessionId:i,source:o.source,cwd:o.cwd,projectName:Ae(o.cwd),projectLabel:Qt(o.cwd),startTime:o.timestamp,endTime:o.timestamp,durationMs:0,requests:0,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalTokens:0,cost:0,saved:0,models:[],modelBreakdown:{}},n.set(i,s));let a=oe(o);s.requests+=1,s.inputTokens+=o.usage.input_tokens,s.outputTokens+=o.usage.output_tokens,s.cacheReadTokens+=o.usage.cache_read_input_tokens,s.cacheCreationTokens+=o.usage.cache_creation_input_tokens,s.totalTokens=s.inputTokens+s.outputTokens+s.cacheReadTokens+s.cacheCreationTokens,s.cost+=a.total,s.saved+=a.saved,o.timestamp<s.startTime&&(s.startTime=o.timestamp),o.timestamp>s.endTime&&(s.endTime=o.timestamp),s.models.includes(o.model)||s.models.push(o.model);let F=s.modelBreakdown[o.model]??{tokens:0,cost:0,requests:0};F.tokens+=o.usage.input_tokens+o.usage.output_tokens+o.usage.cache_read_input_tokens+o.usage.cache_creation_input_tokens,F.cost+=a.total,F.requests+=1,s.modelBreakdown[o.model]=F}let r=new Map;for(let o of u){let i=r.get(o.sessionId);(!i||o.timestamp<i.timestamp)&&r.set(o.sessionId,o)}for(let o of n.values()){o.durationMs=Math.max(0,new Date(o.endTime).getTime()-new Date(o.startTime).getTime());let i=r.get(o.sessionId);i&&i.textPreview&&(o.firstUserMessage=i.textPreview,o.title=i.textPreview.slice(0,80))}return Array.from(n.values()).sort((o,i)=>i.endTime.localeCompare(o.endTime))}function rn(e,u){let t=0,n=0,D=0,r=0,o=0,i=0,s=0,a=ye(u);for(let F of e){if(!xe(F,a))continue;let c=oe(F);t+=F.usage.input_tokens,n+=F.usage.output_tokens,D+=F.usage.cache_read_input_tokens,r+=F.usage.cache_creation_input_tokens,o+=c.total,i+=c.saved,s+=1}return{inputTokens:t,outputTokens:n,cacheReadTokens:D,cacheCreationTokens:r,totalTokens:t+n+D+r,cost:o,saved:i,requests:s}}var $o=["1d","7d","30d","90d","all","custom"];function on(e){return typeof e=="string"&&$o.includes(e)}function sn(e){let u=new Date;if(e==="all"||e==="custom")return{};if(e==="1d")return{from:new Date(u.getFullYear(),u.getMonth(),u.getDate())};let t=e.match(/^(\d+)([dwm])$/);if(!t)return{};let n=parseInt(t[1],10),D=t[2],r=new Date(u);return D==="d"?r.setDate(r.getDate()-n):D==="w"?r.setDate(r.getDate()-n*7):D==="m"&&r.setMonth(r.getMonth()-n),{from:r}}function Uo(e,u,t){let n=new Map;for(let i of u)i.isSynthetic||i.textPreview&&i.textPreview.trim()&&n.set(i.uuid,i.textPreview);let D=new Map,r=new Map;function o(i){let s=[],a=i,F=null,c=0,f=new Set;for(;a&&c++<5e3&&!f.has(a);){f.add(a);let d=r.get(a);if(d){F=d;break}if(s.push(a),n.has(a)){F=a;break}a=t[a]??null}F||(F=i);for(let d of s)r.set(d,F);return F}for(let i of e)D.set(i.uuid,o(i.uuid));return D}function Re(e,u,t){let n=Uo(e,u,t),D=new Map;for(let r of e){let o=n.get(r.uuid)??r.uuid,i=D.get(o);(!i||r.timestamp<i.firstTimestamp)&&D.set(o,{turnId:o,firstTimestamp:r.timestamp,firstModel:r.model,cwd:r.cwd,sessionId:r.sessionId,source:r.source})}return D}import nu from"node:process";function Su({onlyFirst:e=!1}={}){let D="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(D,e?void 0:"g")}var Wo=Su();function Y(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(Wo,"")}var an=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],cn=12288,ln=65510,Fn=[12288,12288,65281,65376,65504,65510];var dn=4352,fn=262141,Tu=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var Ye=(e,u)=>{let t=0,n=Math.floor(e.length/2)-1;for(;t<=n;){let D=Math.floor((t+n)/2),r=D*2;if(u<e[r])n=D-1;else if(u>e[r+1])t=D+1;else return!0}return!1};var pn=19968,[qo,Ho]=Vo(Tu);function Vo(e){let u=e[0],t=e[1];for(let n=0;n<e.length;n+=2){let D=e[n],r=e[n+1];if(pn>=D&&pn<=r)return[D,r];r-D>t-u&&(u=D,t=r)}return[u,t]}var hn=e=>e<161||e>1114109?!1:Ye(an,e),we=e=>e<cn||e>ln?!1:Ye(Fn,e);var ke=e=>e>=qo&&e<=Ho?!0:e<dn||e>fn?!1:Ye(Tu,e);function Ko(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function J(e,{ambiguousAsWide:u=!1}={}){return Ko(e),we(e)||ke(e)||u&&hn(e)?2:1}var mn=le(gn(),1),zo=new Intl.Segmenter,Yo=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function P(e,u={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:n=!1}=u;if(n||(e=Y(e)),e.length===0)return 0;let D=0,r={ambiguousAsWide:!t};for(let{segment:o}of zo.segment(e)){let i=o.codePointAt(0);if(!(i<=31||i>=127&&i<=159)&&!(i>=8203&&i<=8207||i===65279)&&!(i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071)&&!(i>=55296&&i<=57343)&&!(i>=65024&&i<=65039)&&!Yo.test(o)){if((0,mn.default)().test(o)){D+=2;continue}D+=J(i,r)}}return D}var En=(e=0)=>u=>`\x1B[${u+e}m`,Bn=(e=0)=>u=>`\x1B[${38+e};5;${u}m`,bn=(e=0)=>(u,t,n)=>`\x1B[${38+e};2;${u};${t};${n}m`,y={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},iF=Object.keys(y.modifier),Jo=Object.keys(y.color),Xo=Object.keys(y.bgColor),sF=[...Jo,...Xo];function Zo(){let e=new Map;for(let[u,t]of Object.entries(y)){for(let[n,D]of Object.entries(t))y[n]={open:`\x1B[${D[0]}m`,close:`\x1B[${D[1]}m`},t[n]=y[n],e.set(D[0],D[1]);Object.defineProperty(y,u,{value:t,enumerable:!1})}return Object.defineProperty(y,"codes",{value:e,enumerable:!1}),y.color.close="\x1B[39m",y.bgColor.close="\x1B[49m",y.color.ansi=En(),y.color.ansi256=Bn(),y.color.ansi16m=bn(),y.bgColor.ansi=En(10),y.bgColor.ansi256=Bn(10),y.bgColor.ansi16m=bn(10),Object.defineProperties(y,{rgbToAnsi256:{value(u,t,n){return u===t&&t===n?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(u){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(r=>r+r).join(""));let D=Number.parseInt(n,16);return[D>>16&255,D>>8&255,D&255]},enumerable:!1},hexToAnsi256:{value:u=>y.rgbToAnsi256(...y.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value(u){if(u<8)return 30+u;if(u<16)return 90+(u-8);let t,n,D;if(u>=232)t=((u-232)*10+8)/255,n=t,D=t;else{u-=16;let i=u%36;t=Math.floor(u/36)/5,n=Math.floor(i/6)/5,D=i%6/5}let r=Math.max(t,n,D)*2;if(r===0)return 30;let o=30+(Math.round(D)<<2|Math.round(n)<<1|Math.round(t));return r===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(u,t,n)=>y.ansi256ToAnsi(y.rgbToAnsi256(u,t,n)),enumerable:!1},hexToAnsi:{value:u=>y.ansi256ToAnsi(y.hexToAnsi256(u)),enumerable:!1}}),y}var Qo=Zo(),W=Qo;import _u from"node:process";import ei from"node:os";import An from"node:tty";function $(e,u=globalThis.Deno?globalThis.Deno.args:_u.argv){let t=e.startsWith("-")?"":e.length===1?"-":"--",n=u.indexOf(t+e),D=u.indexOf("--");return n!==-1&&(D===-1||n<D)}var{env:x}=_u,Je;$("no-color")||$("no-colors")||$("color=false")||$("color=never")?Je=0:($("color")||$("colors")||$("color=true")||$("color=always"))&&(Je=1);function ui(){if("FORCE_COLOR"in x)return x.FORCE_COLOR==="true"?1:x.FORCE_COLOR==="false"?0:x.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(x.FORCE_COLOR,10),3)}function ti(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ni(e,{streamIsTTY:u,sniffFlags:t=!0}={}){let n=ui();n!==void 0&&(Je=n);let D=t?Je:n;if(D===0)return 0;if(t){if($("color=16m")||$("color=full")||$("color=truecolor"))return 3;if($("color=256"))return 2}if("TF_BUILD"in x&&"AGENT_NAME"in x)return 1;if(e&&!u&&D===void 0)return 0;let r=D||0;if(x.TERM==="dumb")return r;if(_u.platform==="win32"){let o=ei.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in x)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in x)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in x)||x.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in x)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(x.TEAMCITY_VERSION)?1:0;if(x.COLORTERM==="truecolor"||x.TERM==="xterm-kitty"||x.TERM==="xterm-ghostty"||x.TERM==="wezterm")return 3;if("TERM_PROGRAM"in x){let o=Number.parseInt((x.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(x.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(x.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(x.TERM)||"COLORTERM"in x?1:r}function yn(e,u={}){let t=ni(e,{streamIsTTY:e&&e.isTTY,...u});return ti(t)}var Di={stdout:yn({isTTY:An.isatty(1)}),stderr:yn({isTTY:An.isatty(2)})},xn=Di;function Rn(e,u,t){let n=e.indexOf(u);if(n===-1)return e;let D=u.length,r=0,o="";do o+=e.slice(r,n)+u+t,r=n+D,n=e.indexOf(u,r);while(n!==-1);return o+=e.slice(r),o}function wn(e,u,t,n){let D=0,r="";do{let o=e[n-1]==="\r";r+=e.slice(D,o?n-1:n)+u+(o?`\r
|
|
8
|
+
`)[0].length}};it.reset=()=>J.reset();function Du(e,t,u){let n=[];e.forEach(function(D){n.push(D.draw(t))});let r=n.join("");r.length&&u.push(r)}oD.exports=it});var aD=A((UF,sD)=>{sD.exports=iD()});import He from"node:path";import io from"node:os";import{createReadStream as to}from"node:fs";import uo from"node:readline";var Et=200;async function xu(e){let t=to(e,{encoding:"utf8"}),u=uo.createInterface({input:t,crlfDelay:1/0}),n=[],r=[],D=[];for await(let o of u){if(!o.trim())continue;let i;try{i=JSON.parse(o)}catch{continue}if(!(!i||typeof i!="object")){if(i.uuid&&D.push([i.uuid,i.parentUuid??null]),i.type==="assistant"){let s=no(i,e);s&&n.push(s)}else if(i.type==="user"){let s=ro(i,e);s&&r.push(s)}}}return{assistant:n,user:r,parentLinks:D}}function no(e,t){let u=e.message;if(!u)return null;let n=u.usage;if(!n)return null;let r=u.model??"";if(!r||r==="<synthetic>")return null;let D=u.id??e.uuid??"";if(!D&&!e.requestId)return null;let o=n.cache_creation,i=Array.isArray(u.content)?u.content:[],s=[],a=!1,F="";for(let c of i)c.type==="tool_use"&&typeof c.name=="string"?s.push(c.name):c.type==="thinking"?a=!0:c.type==="text"&&typeof c.text=="string"&&!F&&(F=c.text.slice(0,Et));return{type:"assistant",source:"claude",uuid:e.uuid??D,parentUuid:e.parentUuid??null,timestamp:e.timestamp??new Date().toISOString(),sessionId:e.sessionId??"",requestId:e.requestId??"",cwd:e.cwd??"",gitBranch:e.gitBranch,version:e.version,model:r,messageId:D,usage:{input_tokens:Number(n.input_tokens)||0,output_tokens:Number(n.output_tokens)||0,cache_creation_input_tokens:Number(n.cache_creation_input_tokens)||0,cache_read_input_tokens:Number(n.cache_read_input_tokens)||0,cache_creation_5m:Number(o?.ephemeral_5m_input_tokens)||0,cache_creation_1h:Number(o?.ephemeral_1h_input_tokens)||0},toolNames:s,hasThinking:a,textPreview:F,filePath:t,isSidechain:e.isSidechain===!0?!0:void 0}}function ro(e,t){if(!e.uuid)return null;let u=e.message,n="";if(u){let o=u.content;if(typeof o=="string")n=o.slice(0,Et);else if(Array.isArray(o)){for(let i of o)if(i.type==="text"&&typeof i.text=="string"){n=i.text.slice(0,Et);break}}}let r=e.isSidechain===!0,D=r||!!n&&Do(n);return{type:"user",source:"claude",uuid:e.uuid,parentUuid:e.parentUuid??null,timestamp:e.timestamp??new Date().toISOString(),sessionId:e.sessionId??"",cwd:e.cwd??"",textPreview:n,isSynthetic:D,isSidechain:r?!0:void 0,filePath:t}}function Do(e){let t=e.trimStart();return!!(t.startsWith("Base directory for this skill:")||t.startsWith("<system-reminder>")||t.startsWith("Caveat: The messages below were generated by")||t.startsWith("<task-notification>"))}var wu={"claude-3-7-sonnet-20250219":{input:3,output:15,cacheCreation5m:3.75,cacheCreation1h:6,cacheRead:.3},"claude-3-haiku-20240307":{input:.25,output:1.25,cacheCreation5m:.3,cacheCreation1h:.5,cacheRead:.03},"claude-3-opus-20240229":{input:15,output:75,cacheCreation5m:18.75,cacheCreation1h:30,cacheRead:1.5},"claude-4-opus-20250514":{input:15,output:75,cacheCreation5m:18.75,cacheCreation1h:30,cacheRead:1.5},"claude-4-sonnet-20250514":{input:3,output:15,cacheCreation5m:3.75,cacheCreation1h:6,cacheRead:.3},"claude-fable-5":{input:10,output:50,cacheCreation5m:12.5,cacheCreation1h:20,cacheRead:1},"claude-haiku-4-5":{input:1,output:5,cacheCreation5m:1.25,cacheCreation1h:2,cacheRead:.1},"claude-haiku-4-5-20251001":{input:1,output:5,cacheCreation5m:1.25,cacheCreation1h:2,cacheRead:.1},"claude-opus-4-1":{input:15,output:75,cacheCreation5m:18.75,cacheCreation1h:30,cacheRead:1.5},"claude-opus-4-1-20250805":{input:15,output:75,cacheCreation5m:18.75,cacheCreation1h:30,cacheRead:1.5},"claude-opus-4-20250514":{input:15,output:75,cacheCreation5m:18.75,cacheCreation1h:30,cacheRead:1.5},"claude-opus-4-5":{input:5,output:25,cacheCreation5m:6.25,cacheCreation1h:10,cacheRead:.5},"claude-opus-4-5-20251101":{input:5,output:25,cacheCreation5m:6.25,cacheCreation1h:10,cacheRead:.5},"claude-opus-4-6":{input:5,output:25,cacheCreation5m:6.25,cacheCreation1h:10,cacheRead:.5},"claude-opus-4-6-20260205":{input:5,output:25,cacheCreation5m:6.25,cacheCreation1h:10,cacheRead:.5},"claude-opus-4-7":{input:5,output:25,cacheCreation5m:6.25,cacheCreation1h:10,cacheRead:.5},"claude-opus-4-7-20260416":{input:5,output:25,cacheCreation5m:6.25,cacheCreation1h:10,cacheRead:.5},"claude-opus-4-8":{input:5,output:25,cacheCreation5m:6.25,cacheCreation1h:10,cacheRead:.5},"claude-sonnet-4-20250514":{input:3,output:15,cacheCreation5m:3.75,cacheCreation1h:6,cacheRead:.3},"claude-sonnet-4-5":{input:3,output:15,cacheCreation5m:3.75,cacheCreation1h:6,cacheRead:.3},"claude-sonnet-4-5-20250929":{input:3,output:15,cacheCreation5m:3.75,cacheCreation1h:6,cacheRead:.3},"claude-sonnet-4-6":{input:3,output:15,cacheCreation5m:3.75,cacheCreation1h:6,cacheRead:.3}},ku={"chatgpt-4o-latest":{input:5,output:15,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.5},"codex-mini-latest":{input:1.5,output:6,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.375},"gpt-3.5-turbo":{input:.5,output:1.5,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.05},"gpt-3.5-turbo-0125":{input:.5,output:1.5,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.05},"gpt-3.5-turbo-1106":{input:1,output:2,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.1},"gpt-3.5-turbo-16k":{input:3,output:4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.3},"gpt-4":{input:30,output:60,cacheCreation5m:0,cacheCreation1h:0,cacheRead:3},"gpt-4-0125-preview":{input:10,output:30,cacheCreation5m:0,cacheCreation1h:0,cacheRead:1},"gpt-4-0314":{input:30,output:60,cacheCreation5m:0,cacheCreation1h:0,cacheRead:3},"gpt-4-0613":{input:30,output:60,cacheCreation5m:0,cacheCreation1h:0,cacheRead:3},"gpt-4-1106-preview":{input:10,output:30,cacheCreation5m:0,cacheCreation1h:0,cacheRead:1},"gpt-4-turbo":{input:10,output:30,cacheCreation5m:0,cacheCreation1h:0,cacheRead:1},"gpt-4-turbo-2024-04-09":{input:10,output:30,cacheCreation5m:0,cacheCreation1h:0,cacheRead:1},"gpt-4-turbo-preview":{input:10,output:30,cacheCreation5m:0,cacheCreation1h:0,cacheRead:1},"gpt-4.1":{input:2,output:8,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.5},"gpt-4.1-2025-04-14":{input:2,output:8,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.5},"gpt-4.1-mini":{input:.4,output:1.6,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.1},"gpt-4.1-mini-2025-04-14":{input:.4,output:1.6,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.1},"gpt-4.1-nano":{input:.1,output:.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.025},"gpt-4.1-nano-2025-04-14":{input:.1,output:.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.025},"gpt-4o":{input:2.5,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:1.25},"gpt-4o-2024-05-13":{input:5,output:15,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.5},"gpt-4o-2024-08-06":{input:2.5,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:1.25},"gpt-4o-2024-11-20":{input:2.5,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:1.25},"gpt-4o-audio-preview":{input:2.5,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.25},"gpt-4o-audio-preview-2024-12-17":{input:2.5,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.25},"gpt-4o-audio-preview-2025-06-03":{input:2.5,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.25},"gpt-4o-mini":{input:.15,output:.6,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.075},"gpt-4o-mini-2024-07-18":{input:.15,output:.6,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.075},"gpt-4o-mini-audio-preview":{input:.15,output:.6,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.015},"gpt-4o-mini-audio-preview-2024-12-17":{input:.15,output:.6,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.015},"gpt-4o-mini-realtime-preview":{input:.6,output:2.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.3},"gpt-4o-mini-realtime-preview-2024-12-17":{input:.6,output:2.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.3},"gpt-4o-mini-search-preview":{input:.15,output:.6,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.075},"gpt-4o-mini-search-preview-2025-03-11":{input:.15,output:.6,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.075},"gpt-4o-realtime-preview":{input:5,output:20,cacheCreation5m:0,cacheCreation1h:0,cacheRead:2.5},"gpt-4o-realtime-preview-2024-12-17":{input:5,output:20,cacheCreation5m:0,cacheCreation1h:0,cacheRead:2.5},"gpt-4o-realtime-preview-2025-06-03":{input:5,output:20,cacheCreation5m:0,cacheCreation1h:0,cacheRead:2.5},"gpt-4o-search-preview":{input:2.5,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:1.25},"gpt-4o-search-preview-2025-03-11":{input:2.5,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:1.25},"gpt-5":{input:1.25,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.125},"gpt-5-2025-08-07":{input:1.25,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.125},"gpt-5-chat":{input:1.25,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.125},"gpt-5-chat-latest":{input:1.25,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.125},"gpt-5-codex":{input:1.25,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.125},"gpt-5-mini":{input:.25,output:2,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.025},"gpt-5-mini-2025-08-07":{input:.25,output:2,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.025},"gpt-5-nano":{input:.05,output:.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.005},"gpt-5-nano-2025-08-07":{input:.05,output:.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.005},"gpt-5-pro":{input:15,output:120,cacheCreation5m:0,cacheCreation1h:0,cacheRead:1.5},"gpt-5-pro-2025-10-06":{input:15,output:120,cacheCreation5m:0,cacheCreation1h:0,cacheRead:1.5},"gpt-5-search-api":{input:1.25,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.125},"gpt-5-search-api-2025-10-14":{input:1.25,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.125},"gpt-5.1":{input:1.25,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.125},"gpt-5.1-2025-11-13":{input:1.25,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.125},"gpt-5.1-chat-latest":{input:1.25,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.125},"gpt-5.1-codex":{input:1.25,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.125},"gpt-5.1-codex-max":{input:1.25,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.125},"gpt-5.1-codex-mini":{input:.25,output:2,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.025},"gpt-5.2":{input:1.75,output:14,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.175},"gpt-5.2-2025-12-11":{input:1.75,output:14,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.175},"gpt-5.2-chat-latest":{input:1.75,output:14,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.175},"gpt-5.2-codex":{input:1.75,output:14,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.175},"gpt-5.2-pro":{input:21,output:168,cacheCreation5m:0,cacheCreation1h:0,cacheRead:2.1},"gpt-5.2-pro-2025-12-11":{input:21,output:168,cacheCreation5m:0,cacheCreation1h:0,cacheRead:2.1},"gpt-5.3-chat-latest":{input:1.75,output:14,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.175},"gpt-5.3-codex":{input:1.75,output:14,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.175},"gpt-5.4":{input:2.5,output:15,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.25},"gpt-5.4-2026-03-05":{input:2.5,output:15,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.25},"gpt-5.4-mini":{input:.75,output:4.5,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.075},"gpt-5.4-mini-2026-03-17":{input:.75,output:4.5,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.075},"gpt-5.4-nano":{input:.2,output:1.25,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.02},"gpt-5.4-nano-2026-03-17":{input:.2,output:1.25,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.02},"gpt-5.4-pro":{input:30,output:180,cacheCreation5m:0,cacheCreation1h:0,cacheRead:3},"gpt-5.4-pro-2026-03-05":{input:30,output:180,cacheCreation5m:0,cacheCreation1h:0,cacheRead:3},"gpt-5.5":{input:5,output:30,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.5},"gpt-5.5-2026-04-23":{input:5,output:30,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.5},"gpt-5.5-pro":{input:30,output:180,cacheCreation5m:0,cacheCreation1h:0,cacheRead:3},"gpt-5.5-pro-2026-04-23":{input:30,output:180,cacheCreation5m:0,cacheCreation1h:0,cacheRead:3},"gpt-audio":{input:2.5,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.25},"gpt-audio-1.5":{input:2.5,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.25},"gpt-audio-2025-08-28":{input:2.5,output:10,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.25},"gpt-audio-mini":{input:.6,output:2.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.06},"gpt-audio-mini-2025-10-06":{input:.6,output:2.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.06},"gpt-audio-mini-2025-12-15":{input:.6,output:2.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.06},"gpt-realtime":{input:4,output:16,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.4},"gpt-realtime-1.5":{input:4,output:16,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.4},"gpt-realtime-2":{input:4,output:16,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.4},"gpt-realtime-2025-08-28":{input:4,output:16,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.4},"gpt-realtime-mini":{input:.6,output:2.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.06},"gpt-realtime-mini-2025-10-06":{input:.6,output:2.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.06},"gpt-realtime-mini-2025-12-15":{input:.6,output:2.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.06},o1:{input:15,output:60,cacheCreation5m:0,cacheCreation1h:0,cacheRead:7.5},"o1-2024-12-17":{input:15,output:60,cacheCreation5m:0,cacheCreation1h:0,cacheRead:7.5},"o1-pro":{input:150,output:600,cacheCreation5m:0,cacheCreation1h:0,cacheRead:15},"o1-pro-2025-03-19":{input:150,output:600,cacheCreation5m:0,cacheCreation1h:0,cacheRead:15},o3:{input:2,output:8,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.5},"o3-2025-04-16":{input:2,output:8,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.5},"o3-deep-research":{input:10,output:40,cacheCreation5m:0,cacheCreation1h:0,cacheRead:2.5},"o3-deep-research-2025-06-26":{input:10,output:40,cacheCreation5m:0,cacheCreation1h:0,cacheRead:2.5},"o3-mini":{input:1.1,output:4.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.55},"o3-mini-2025-01-31":{input:1.1,output:4.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.55},"o3-pro":{input:20,output:80,cacheCreation5m:0,cacheCreation1h:0,cacheRead:2},"o3-pro-2025-06-10":{input:20,output:80,cacheCreation5m:0,cacheCreation1h:0,cacheRead:2},"o4-mini":{input:1.1,output:4.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.275},"o4-mini-2025-04-16":{input:1.1,output:4.4,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.275},"o4-mini-deep-research":{input:2,output:8,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.5},"o4-mini-deep-research-2025-06-26":{input:2,output:8,cacheCreation5m:0,cacheCreation1h:0,cacheRead:.5}};var oo={"claude-opus-4":{input:15,output:75,cacheCreation5m:18.75,cacheCreation1h:30,cacheRead:1.5},"claude-sonnet-4":{input:3,output:15,cacheCreation5m:3.75,cacheCreation1h:6,cacheRead:.3},"claude-sonnet-3-7":{input:3,output:15,cacheCreation5m:3.75,cacheCreation1h:6,cacheRead:.3},"claude-haiku-3-5":{input:.8,output:4,cacheCreation5m:1,cacheCreation1h:1.6,cacheRead:.08},"claude-haiku-3":{input:.25,output:1.25,cacheCreation5m:.3,cacheCreation1h:.5,cacheRead:.03}},U={...oo,...wu},Su={fable:U["claude-fable-5"],opus:U["claude-opus-4-8"],sonnet:U["claude-sonnet-4-6"],haiku:U["claude-haiku-4-5"]};function Fe(e,t){if(!t)return{input:0,output:0,cacheCreation5m:0,cacheCreation1h:0,cacheRead:0,total:0,saved:0};let u=e.input_tokens/1e6*t.input,n=e.output_tokens/1e6*t.output,r=e.cache_creation_5m/1e6*t.cacheCreation5m,D=e.cache_creation_1h/1e6*t.cacheCreation1h;r+D===0&&e.cache_creation_input_tokens>0&&(r=e.cache_creation_input_tokens/1e6*t.cacheCreation5m);let o=e.cache_read_input_tokens/1e6*t.cacheRead,i=u+n+r+D+o,s=e.cache_read_input_tokens/1e6*(t.input-t.cacheRead);return{input:u,output:n,cacheCreation5m:r,cacheCreation1h:D,cacheRead:o,total:i,saved:s}}function Tu(e){return e.replace(/\b\w/g,t=>t.toUpperCase())}function _u(e){if(!e)return"(unknown)";let t=e.replace(/-(\d{8})$/,"").replace(/^(vertex_ai|bedrock|anthropic)\//,"");t=t.replace(/^claude-/,"");let u=t.split("-");if(u.length>=2){let n=u[0],r=u.slice(1).join(".");return Tu(n)+" "+r}return Tu(t.replace(/-/g," "))}var so=/-\d{8}$/,ao=/^(vertex_ai|bedrock|anthropic)\//;function co(e){if(!e)return{pricing:null,matchType:"none",matchedKey:null};if(U[e])return{pricing:U[e],matchType:"exact",matchedKey:e};let t=e.replace(so,"");if(U[t])return{pricing:U[t],matchType:"date-stripped",matchedKey:t};let u=t.replace(ao,"");if(U[u])return{pricing:U[u],matchType:"prefix-stripped",matchedKey:u};for(let n of["fable","opus","sonnet","haiku"])if(e.toLowerCase().includes(n))return{pricing:Su[n],matchType:"family-fallback",matchedKey:`claude-${n}-(latest)`};return{pricing:null,matchType:"none",matchedKey:null}}function lo(){let e=io.homedir(),t=[He.join(e,".claude","projects"),He.join(e,".config","claude","projects")];return process.env.CCGAUGE_CONFIG_DIR&&t.push(He.join(process.env.CCGAUGE_CONFIG_DIR,"projects")),process.env.CLAUDE_CONFIG_DIR&&t.push(He.join(process.env.CLAUDE_CONFIG_DIR,"projects")),Array.from(new Set(t))}var vu={id:"claude",displayName:{en:"Claude",zh:"Claude"},shortLabel:"C",color:{fg:"#b45309",bg:"#fef3c7"},logoSrc:"/claude-logo.webp",parserVersion:"claude-v5-task-notification-synthetic",capabilities:{hasCacheCreation:!0,hasReasoningTokens:!1,blockWindowMs:300*60*1e3},getDirs:lo,shouldSkipDir:e=>e==="tool-results"||e==="memory",parseFile:async e=>await xu(e),resolvePricing:co,shortenModel:_u,costFromUsage:Fe,costFootnoteKey:null};import Ve from"node:path";import _o from"node:os";import{createReadStream as Fo,promises as ho}from"node:fs";import po from"node:readline";var Bt=200;async function fo(e){try{let t=await ho.stat(e);return new Date(t.mtimeMs).toISOString()}catch{return new Date().toISOString()}}function M(e){return typeof e=="string"?e:""}function ne(e){let t=Number(e);return Number.isFinite(t)?t:0}function bt(e){let t=e.message;if(typeof t=="string")return t;let u=e.content;if(typeof u=="string")return u;if(Array.isArray(u))for(let n of u){let r=n?.type;if((r==="input_text"||r==="output_text"||r==="text")&&typeof n.text=="string")return n.text}return""}async function Iu(e){let t=Fo(e,{encoding:"utf8"}),u=po.createInterface({input:t,crlfDelay:1/0}),n=[],r=[],D=[],o="",i,s="",a=0,F=0,c=null,d=await fo(e),l={turnId:null,cwd:"",model:"gpt-unknown",userUuid:null,toolNames:[],hasThinking:!1,pendingTextPreview:""};for await(let C of u){if(!C.trim())continue;let f;try{f=JSON.parse(C)}catch{continue}if(!f||typeof f!="object"||!f.type)continue;let p=f.payload??{},m=M(f.timestamp),B=m||d;if(m&&(d=m),f.type==="session_meta"){o=M(p.id),s=M(p.cwd),i=M(p.cli_version)||void 0;let g=M(p.timestamp);g&&(d=g),l.cwd||(l.cwd=s);continue}if(f.type==="turn_context"){l.turnId=M(p.turn_id)||l.turnId,l.cwd=M(p.cwd)||s;let g=M(p.model);g&&(l.model=g);let b=M(p.effort);b&&(l.effort=b),l.toolNames=[],l.hasThinking=!1,l.pendingTextPreview="";continue}if(f.type==="event_msg"){let g=M(p.type);if(g==="user_message"){let b=bt(p);if(!b)continue;let k=`${o}::u${a++}`;r.push({type:"user",source:"codex",uuid:k,parentUuid:null,timestamp:B,sessionId:o,cwd:l.cwd||s,textPreview:b.slice(0,Bt),filePath:e}),D.push([k,null]),l.userUuid=k;continue}if(g==="agent_message"){let b=bt(p);b&&!l.pendingTextPreview&&(l.pendingTextPreview=b.slice(0,Bt));continue}if(g==="agent_reasoning"){l.hasThinking=!0;continue}if(g==="token_count"){let b=p.info;if(!b)continue;let k=b.total_token_usage,se=b.last_token_usage,S=k?{input:ne(k.input_tokens),cached:ne(k.cached_input_tokens),output:ne(k.output_tokens),reasoning:ne(k.reasoning_output_tokens)}:null,ee,K,te,ue;if(S){if(c===null?(ee=S.input,K=S.cached,te=S.output,ue=S.reasoning):(ee=Math.max(0,S.input-c.input),K=Math.max(0,S.cached-c.cached),te=Math.max(0,S.output-c.output),ue=Math.max(0,S.reasoning-c.reasoning)),ee===0&&K===0&&te===0&&ue===0)continue;c===null?c={...S}:c={input:Math.max(c.input,S.input),cached:Math.max(c.cached,S.cached),output:Math.max(c.output,S.output),reasoning:Math.max(c.reasoning,S.reasoning)}}else if(se){if(ee=ne(se.input_tokens),K=ne(se.cached_input_tokens),te=ne(se.output_tokens),ue=ne(se.reasoning_output_tokens),ee===0&&K===0&&te===0&&ue===0)continue;c===null?c={input:ee,cached:K,output:te,reasoning:ue}:c={input:c.input+ee,cached:c.cached+K,output:c.output+te,reasoning:c.reasoning+ue}}else continue;let bu=`${o}::a${F++}`,Au=l.turnId?`${l.turnId}::a${F}`:`${o}::a${F}`;n.push({type:"assistant",source:"codex",uuid:bu,parentUuid:l.userUuid,timestamp:B,sessionId:o,requestId:Au,cwd:l.cwd||s,version:i,model:l.model||"gpt-unknown",messageId:Au,usage:{input_tokens:Math.max(0,ee-K),output_tokens:te,cache_creation_input_tokens:0,cache_read_input_tokens:K,cache_creation_5m:0,cache_creation_1h:0,reasoning_tokens:ue},toolNames:[...l.toolNames],hasThinking:l.hasThinking,textPreview:l.pendingTextPreview,filePath:e,effort:l.effort}),D.push([bu,l.userUuid]),l.toolNames=[],l.hasThinking=!1,l.pendingTextPreview="";continue}continue}if(f.type==="response_item"){let g=M(p.type);if(g==="function_call"||g==="custom_tool_call"){let b=M(p.name);b&&l.toolNames.push(b);continue}if(g==="reasoning"){l.hasThinking=!0;continue}if(g==="message"){if(M(p.role)==="assistant"){let k=bt(p);k&&!l.pendingTextPreview&&(l.pendingTextPreview=k.slice(0,Bt))}continue}continue}}return{assistant:n,user:r,parentLinks:D}}var Co={},re={...Co,...ku},Mu={gpt:re["gpt-5.5"],o:re.o3},mo=/-\d{8}$/,go=/^(openai)\//;function Pu(e){if(!e)return{pricing:null,matchType:"none",matchedKey:null};if(re[e])return{pricing:re[e],matchType:"exact",matchedKey:e};let t=e.replace(mo,"");if(re[t])return{pricing:re[t],matchType:"date-stripped",matchedKey:t};let u=t.replace(go,"");if(re[u])return{pricing:re[u],matchType:"prefix-stripped",matchedKey:u};let n=e.toLowerCase();return n.startsWith("gpt-")||n==="gpt"?{pricing:Mu.gpt,matchType:"family-fallback",matchedKey:"gpt-(latest)"}:/^o\d/.test(n)?{pricing:Mu.o,matchType:"family-fallback",matchedKey:"o-(latest)"}:{pricing:null,matchType:"none",matchedKey:null}}function Eo(e){return e.replace(/\b\w/g,t=>t.toUpperCase())}var Bo={mini:"Mini",nano:"Nano",pro:"Pro",turbo:"Turbo",preview:"Preview"};function Ou(e){if(!e)return"(unknown)";let t=e.replace(/^openai\//,"");return t.toLowerCase().startsWith("gpt-")?"GPT-"+t.slice(4).split("-").map(r=>Bo[r.toLowerCase()]??r).join(" "):t.toLowerCase().startsWith("o")?t.toUpperCase():Eo(t.replace(/-/g," "))}import{readFileSync as bo}from"node:fs";import Ao from"node:os";import Lu from"node:path";var Ro={"gpt-5.5":2.5,"gpt-5.4":2,"gpt-5.3-codex":2},yo=2;function xo(e){return e.replace(/^openai\//,"").replace(/-\d{8}$/,"")}function wo(e){for(let t of e.split(/\r?\n/)){let u=(t.split("#")[0]??"").trim(),n=u.indexOf("=");if(n===-1||u.slice(0,n).trim()!=="service_tier")continue;let D=u.slice(n+1).trim().replace(/^['"]+|['"]+$/g,"");if(D==="fast"||D==="priority")return!0}return!1}function ko(){let e=[];return process.env.CODEX_HOME&&e.push(process.env.CODEX_HOME),e.push(Lu.join(Ao.homedir(),".codex")),Array.from(new Set(e))}function So(){for(let e of ko())try{let t=bo(Lu.join(e,"config.toml"),"utf8");if(wo(t))return!0}catch{}return!1}var At;function To(){return At===void 0&&(At=So()),At}function Nu(e){return To()?Ro[xo(e)]??yo:1}function $u(e,t){return t===1?e:{input:e.input*t,output:e.output*t,cacheRead:e.cacheRead*t,cacheCreation5m:e.cacheCreation5m*t,cacheCreation1h:e.cacheCreation1h*t}}function vo(){let e=_o.homedir(),t=[Ve.join(e,".codex","sessions"),Ve.join(e,".codex","archived_sessions")];return process.env.CCGAUGE_CODEX_DIR&&t.push(process.env.CCGAUGE_CODEX_DIR),process.env.CODEX_HOME&&(t.push(Ve.join(process.env.CODEX_HOME,"sessions")),t.push(Ve.join(process.env.CODEX_HOME,"archived_sessions"))),Array.from(new Set(t))}function Io(e,t,u){return t?Fe(e,$u(t,Nu(u??""))):Fe(e,null)}var Uu={id:"codex",displayName:{en:"Codex",zh:"Codex"},shortLabel:"X",color:{fg:"#047857",bg:"#d1fae5"},logoSrc:"/codex-logo.webp",parserVersion:"codex-v6-output-excludes-readded-reasoning",capabilities:{hasCacheCreation:!1,hasReasoningTokens:!0,blockWindowMs:300*60*1e3},getDirs:vo,shouldSkipDir:()=>!1,parseFile:Iu,resolvePricing:Pu,shortenModel:Ou,costFromUsage:Io,costFootnoteKey:"cost.footnote.codex"};var Wu={claude:vu,codex:Uu},Rt=["claude","codex"];function De(e){return Wu[e]}function yt(){return Rt.map(e=>Wu[e])}function ju(e){return typeof e=="string"&&(e==="claude"||e==="codex")}import{promises as be,watch as Uo}from"node:fs";import Zu from"node:path";function Mo(e){let t=`${e.source}:`;return e.messageId&&e.requestId?`${t}${e.messageId}::${e.requestId}`:e.messageId?`${t}mid:${e.messageId}`:e.requestId?`${t}req:${e.requestId}`:`${t}uuid:${e.uuid}`}function Gu(e){let t=new Map;for(let u of e){let n=Mo(u),r=t.get(n);if(!r){t.set(n,u);continue}u.timestamp<r.timestamp&&t.set(n,u)}return Array.from(t.values())}import{promises as Ke}from"node:fs";import xt from"node:path";import Po from"node:os";var ze=2,de="default";function Oo(){return process.env.CCGAUGE_STATE_DIR?process.env.CCGAUGE_STATE_DIR:xt.join(Po.homedir(),".ccgauge")}function qu(e){let t=e===de?`index-v${ze}.json`:`index-${e}-v${ze}.json`;return xt.join(Oo(),"cache",t)}async function Hu(e=de){let t=qu(e);try{let u=await Ke.readFile(t,"utf8"),n=JSON.parse(u);return n.schemaVersion!==ze||!Array.isArray(n.files)?null:n}catch{return null}}async function Vu(e,t=de){let u=qu(t),n=xt.dirname(u);await Ke.mkdir(n,{recursive:!0});let r={schemaVersion:ze,savedAt:e.savedAt,files:e.files},D=`${u}.tmp-${process.pid}`;await Ke.writeFile(D,JSON.stringify(r)),await Ke.rename(D,u)}var Ku=/[\\/]([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})[\\/]subagents[\\/](?:[^\\/]+[\\/])*agent-[^\\/]+\.jsonl$/i,Lo=/[\\/]subagents[\\/]workflows[\\/]/i;function No(e){let t=Ku.exec(e);return t?t[1]:null}function zu(e){return Ku.test(e)?Lo.test(e)?"workflow":"task":null}function Yu({assistantRecords:e,userRecords:t,parentMap:u}){let n=new Map;for(let o of e){if(o.isSidechain||!o.sessionId)continue;let i=n.get(o.sessionId);i||(i=[],n.set(o.sessionId,i)),i.push(o)}for(let o of n.values())o.sort((i,s)=>i.timestamp<s.timestamp?-1:i.timestamp>s.timestamp?1:0);let r=new Map;for(let o of t){if(!o.isSidechain)continue;let i=r.get(o.filePath);(!i||o.timestamp<i.timestamp)&&r.set(o.filePath,o)}let D={subagentFiles:0,relinked:0,orphans:0,alreadyLinked:0};for(let[o,i]of r){let s=No(o);if(!s)continue;D.subagentFiles+=1;let a=u[i.uuid];if(a!=null){D.alreadyLinked+=1;continue}let F=n.get(s);if(!F||F.length===0){D.orphans+=1;continue}let c=i.timestamp,h;for(let d=F.length-1;d>=0;d-=1)if(F[d].timestamp<=c){h=F[d];break}h||(h=F[0]),u[i.uuid]=h.uuid,D.relinked+=1}return D}import{homedir as $o}from"node:os";function Xu(e){let t=$o();if(!t)return e;let u=new Set([t]);process.platform==="win32"&&(u.add(t.replace(/\\/g,"/")),u.add(t.replace(/\\/g,"\\\\")),u.add("\\\\?\\"+t),u.add("\\\\?\\"+t.replace(/\\/g,"/")));let n=e;for(let r of u){let D=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp(D,"g"),"~")}return n}var Wo=200,jo=100,Go=3e4,qo=2e3,Ho=8,wt=20,kt=class{cacheName;files=new Map;snapshot=null;watchers=new Map;pollTimer=null;snapshotRebuildTimer=null;persistTimer=null;fileDebouncers=new Map;initPromise=null;isIndexing=!1;lastIndexedAt=null;indexDurationMs=null;existingDirs=[];dirToProvider=new Map;errors=[];loadedFromDisk=!1;lastWorkStart=null;rescanPromise=null;mutationTail=Promise.resolve();constructor(t=de){this.cacheName=t}runExclusive(t){let u=this.mutationTail.then(t,t);return this.mutationTail=u.then(()=>{},()=>{}),u}init(){return this.initPromise||(this.initPromise=this.doInit()),this.initPromise}async doInit(){let t=Date.now();this.isIndexing=!0,this.lastWorkStart=t;try{await this.detectProviderDirs();let u=await Hu(this.cacheName);this.loadedFromDisk=u!==null;let n=new Map;if(u)for(let r of u.files)n.set(r.filePath,r);await this.runExclusive(async()=>{await this.fullScan(n),this.rebuildSnapshotNow(),this.indexDurationMs=Date.now()-t,this.lastIndexedAt=new Date().toISOString(),this.schedulePersist()}),this.syncWatchersToDirs(),this.setupPolling()}finally{this.isIndexing=!1}}async detectProviderDirs(){let t=new Map,u=[];for(let D of yt())for(let o of D.getDirs())await Vo(o)&&(t.has(o)||(t.set(o,D),u.push(o)));let n=[],r=[];for(let D of t.keys())this.dirToProvider.has(D)||n.push(D);for(let D of this.dirToProvider.keys())t.has(D)||r.push(D);return this.dirToProvider=t,this.existingDirs=u,{added:n,removed:r}}async fullScan(t){let u=[];for(let[r,D]of this.dirToProvider){let o=await Ju(r,D);for(let i of o)u.push({file:i,provider:D})}let n=new Set(u.map(r=>r.file));await Promise.all(u.map(async({file:r,provider:D})=>{try{let o=await be.stat(r),i=t.get(r);if(i&&i.source===D.id&&i.parserVersion===D.parserVersion&&i.mtimeMs===o.mtimeMs&&i.size===o.size){this.files.set(r,{source:D.id,parserVersion:D.parserVersion,mtimeMs:o.mtimeMs,size:o.size,assistantRecords:i.assistantRecords,userRecords:i.userRecords,parentLinks:i.parentLinks});return}let s=await D.parseFile(r);this.files.set(r,{source:D.id,parserVersion:D.parserVersion,mtimeMs:o.mtimeMs,size:o.size,assistantRecords:s.assistant,userRecords:s.user,parentLinks:s.parentLinks})}catch(o){this.recordError(`parse ${r}: ${o.message}`)}}));for(let r of Array.from(this.files.keys()))n.has(r)||this.files.delete(r)}syncWatchersToDirs(){for(let[t,u]of this.watchers)if(!this.dirToProvider.has(t)){try{u.close()}catch{}this.watchers.delete(t)}for(let[t,u]of this.dirToProvider)if(!this.watchers.has(t))try{let n=Uo(t,{recursive:!0},(r,D)=>{if(!D||typeof D!="string"||!D.endsWith(".jsonl"))return;let o=Zu.join(t,D);this.scheduleFileReconcile(o,u)});n.on("error",r=>{this.recordError(`watcher ${t}: ${r.message}`)}),this.watchers.set(t,n)}catch(n){this.recordError(`watch ${t}: ${n.message}`)}}setupPolling(){this.pollTimer&&clearInterval(this.pollTimer);let t=this.cacheName==="mcp",u=process.env.CCGAUGE_POLL_FALLBACK;(u==="1"||u!=="0"&&!t)&&(this.pollTimer=setInterval(()=>{this.pollOnce().catch(r=>this.recordError(`poll: ${r.message}`))},Go),this.pollTimer.unref?.())}async pollOnce(){await this.runExclusive(async()=>{let t=Date.now(),u=await this.detectProviderDirs(),n=u.added.length>0||u.removed.length>0;n&&this.syncWatchersToDirs();let r=[];for(let[o,i]of this.dirToProvider){let s=await Ju(o,i);for(let a of s)r.push({file:a,provider:i})}let D=new Set(r.map(o=>o.file));await Promise.all(r.map(async({file:o,provider:i})=>{try{let s=await be.stat(o),a=this.files.get(o);if(a&&a.mtimeMs===s.mtimeMs&&a.size===s.size)return;let F=await i.parseFile(o);this.files.set(o,{source:i.id,parserVersion:i.parserVersion,mtimeMs:s.mtimeMs,size:s.size,assistantRecords:F.assistant,userRecords:F.user,parentLinks:F.parentLinks}),n=!0}catch(s){this.recordError(`poll-parse ${o}: ${s.message}`)}}));for(let o of Array.from(this.files.keys()))D.has(o)||(this.files.delete(o),n=!0);n&&(this.lastWorkStart=t,this.scheduleSnapshotRebuild(),this.schedulePersist())})}scheduleFileReconcile(t,u){let n=this.fileDebouncers.get(t);n&&clearTimeout(n);let r=setTimeout(()=>{this.fileDebouncers.delete(t),this.reconcileFile(t,u).catch(D=>this.recordError(`reconcile ${t}: ${D.message}`))},Wo);r.unref?.(),this.fileDebouncers.set(t,r)}async reconcileFile(t,u){await this.runExclusive(async()=>{let n=Date.now(),r=null;try{r=await be.stat(t)}catch{}if(!r||!r.isFile()){this.files.has(t)&&(this.files.delete(t),this.lastWorkStart=n,this.scheduleSnapshotRebuild(),this.schedulePersist());return}let D=this.files.get(t);if(!(D&&D.mtimeMs===r.mtimeMs&&D.size===r.size))try{let o=await u.parseFile(t);this.files.set(t,{source:u.id,parserVersion:u.parserVersion,mtimeMs:r.mtimeMs,size:r.size,assistantRecords:o.assistant,userRecords:o.user,parentLinks:o.parentLinks}),this.lastWorkStart=n,this.scheduleSnapshotRebuild(),this.schedulePersist()}catch(o){this.recordError(`parse ${t}: ${o.message}`)}})}scheduleSnapshotRebuild(){this.snapshotRebuildTimer&&clearTimeout(this.snapshotRebuildTimer),this.snapshotRebuildTimer=setTimeout(()=>{this.snapshotRebuildTimer=null,this.rebuildSnapshotNow()},jo),this.snapshotRebuildTimer.unref?.()}rebuildSnapshotNow(){let t=Date.now(),u=this.lastWorkStart??t,n=[],r=[],D={},o=0,i={claude:{source:"claude",filesScanned:0,recordsParsed:0,assistantRecords:0,scannedDirs:[]},codex:{source:"codex",filesScanned:0,recordsParsed:0,assistantRecords:0,scannedDirs:[]}};for(let[c,h]of this.dirToProvider)i[h.id].scannedDirs.push(c);for(let c of this.files.values()){n.push(...c.assistantRecords),r.push(...c.userRecords);for(let[h,d]of c.parentLinks)D[h]=d;o+=c.assistantRecords.length+c.userRecords.length,i[c.source].filesScanned+=1,i[c.source].recordsParsed+=c.assistantRecords.length+c.userRecords.length}let s=Gu(n).sort((c,h)=>c.timestamp.localeCompare(h.timestamp)),a=Ko(r).sort((c,h)=>c.timestamp.localeCompare(h.timestamp));Yu({assistantRecords:s,userRecords:a,parentMap:D});for(let c of s)c.isSidechain&&(c.isWorkflowSubagent=zu(c.filePath)==="workflow");for(let c of s)i[c.source].assistantRecords+=1;let F={filesScanned:this.files.size,recordsParsed:o,assistantRecords:s.length,durationMs:Date.now()-u,scannedDirs:this.existingDirs};this.snapshot={records:s,userRecords:a,parentMap:D,stats:F,bySource:Object.values(i)},this.lastWorkStart=null}getSnapshot(){if(!this.snapshot)throw new Error("Indexer not initialized \u2014 call init() first.");return this.snapshot}async forceRescan(){let t=!this.initPromise;if(await this.init(),t)return this.snapshot;if(this.rescanPromise)return this.rescanPromise;this.rescanPromise=this.runRescan();try{return await this.rescanPromise}finally{this.rescanPromise=null}}async runRescan(){this.isIndexing=!0;try{return await this.runExclusive(async()=>{let t=Date.now();return this.lastWorkStart=t,this.snapshotRebuildTimer&&(clearTimeout(this.snapshotRebuildTimer),this.snapshotRebuildTimer=null),this.persistTimer&&(clearTimeout(this.persistTimer),this.persistTimer=null),this.files.clear(),await this.detectProviderDirs(),await this.fullScan(new Map),this.rebuildSnapshotNow(),this.indexDurationMs=Date.now()-t,this.lastIndexedAt=new Date().toISOString(),this.syncWatchersToDirs(),this.schedulePersist(),this.snapshot})}finally{this.isIndexing=!1}}getStatus(){let t=this.snapshot;return{initialized:t!==null,isIndexing:this.isIndexing,lastIndexedAt:this.lastIndexedAt,indexDurationMs:this.indexDurationMs,filesIndexed:this.files.size,recordsIndexed:t?.stats.assistantRecords??0,bySource:t?.bySource??[],watchers:this.watchers.size,errors:this.errors.slice(-wt),pendingReconciles:this.fileDebouncers.size,loadedFromDisk:this.loadedFromDisk}}schedulePersist(){this.persistTimer&&clearTimeout(this.persistTimer),this.persistTimer=setTimeout(()=>{this.persistTimer=null;let t=[];for(let[u,n]of this.files)t.push({filePath:u,source:n.source,parserVersion:n.parserVersion,mtimeMs:n.mtimeMs,size:n.size,assistantRecords:n.assistantRecords,userRecords:n.userRecords,parentLinks:n.parentLinks});Vu({savedAt:new Date().toISOString(),files:t},this.cacheName).catch(u=>this.recordError(`persist: ${u.message}`))},qo),this.persistTimer.unref?.()}recordError(t){let u=`${new Date().toISOString()} ${Xu(t)}`;this.errors.push(u),this.errors.length>wt*2&&this.errors.splice(0,this.errors.length-wt),process.env.CCGAUGE_DEBUG&&console.error(`[ccgauge:indexer] ${new Date().toISOString()} ${t}`)}disposeWatchers(){for(let t of this.watchers.values())try{t.close()}catch{}this.watchers.clear()}dispose(){this.disposeWatchers(),this.pollTimer&&clearInterval(this.pollTimer),this.snapshotRebuildTimer&&clearTimeout(this.snapshotRebuildTimer),this.persistTimer&&clearTimeout(this.persistTimer);for(let t of this.fileDebouncers.values())clearTimeout(t);this.fileDebouncers.clear()}};async function Vo(e){try{return(await be.stat(e)).isDirectory()}catch{return!1}}async function Ju(e,t){let u=[];async function n(r,D){if(D>Ho)return;let o;try{o=await be.readdir(r,{withFileTypes:!0})}catch{return}for(let i of o){let s=Zu.join(r,i.name);if(i.isDirectory()){if(t.shouldSkipDir(i.name))continue;await n(s,D+1)}else i.isFile()&&i.name.endsWith(".jsonl")&&u.push(s)}}return await n(e,0),u}function Ko(e){let t=new Set;return e.filter(u=>{let n=u.uuid;return n?t.has(n)?!1:(t.add(n),!0):!0})}function zo(){return globalThis.__ccgaugeIndexers||(globalThis.__ccgaugeIndexers=new Map),globalThis.__ccgaugeIndexers}function Qu(e=de){let t=zo(),u=t.get(e);return u||(u=new kt(e),t.set(e,u)),u}async function en(e={}){let t=Qu();return e.force?t.forceRescan():(await t.init(),t.getSnapshot())}function oe(e){let t=De(e.source),{pricing:u}=t.resolvePricing(e.model);return t.costFromUsage(e.usage,u,e.model)}function tn(e,t){return new Intl.NumberFormat("en-US",{maximumFractionDigits:t?.maxFrac??0}).format(e)}function v(e,t="en"){return Number.isFinite(e)?t==="zh"?e>=1e8?(e/1e8).toFixed(2)+"\u4EBF":e>=1e4?(e/1e4).toFixed(1)+"\u4E07":tn(e):e>=1e9?(e/1e9).toFixed(2)+"B":e>=1e6?(e/1e6).toFixed(2)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":tn(e):"0"}function N(e,t){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:t?.minFrac??2,maximumFractionDigits:t?.maxFrac??2}).format(e)}function he(e,t=1){return Number.isFinite(e)?`${(e*100).toFixed(t)}%`:"0%"}function un(e){if(e<1e3)return`${e}ms`;let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let u=Math.floor(t/60);if(u<60){let D=t%60;return D?`${u}m ${D}s`:`${u}m`}let n=Math.floor(u/60),r=u%60;return r?`${n}h ${r}m`:`${n}h`}function Ae(e){if(!e)return"(unknown)";let u=e.replace(/[/\\]+$/,"").split(/[/\\]+/);return u[u.length-1]||e}import{readFileSync as Yo,statSync as Xo}from"node:fs";import{basename as nn}from"node:path";var rn=new Map,Jo=/^(.+?)[/\\]\.git[/\\]worktrees[/\\]([^/\\]+)[/\\]?$/,Zo=/^(.+?)[/\\](?:\.git|\.claude)[/\\]worktrees[/\\]([^/\\]+)(?:[/\\].*)?$/;function Qo(e){let t=Ae(e);if(!e)return{label:t,isWorktree:!1,mainName:t,worktreeName:"",canonicalCwd:e};let u=Zo.exec(e);if(u){let n=u[1],r=u[2],D=nn(n)||n;return{label:`${D} (${r})`,isWorktree:!0,mainName:D,worktreeName:r,canonicalCwd:n}}try{let n=`${e}/.git`;if(!Xo(n).isFile())return{label:t,isWorktree:!1,mainName:t,worktreeName:"",canonicalCwd:e};let o=Yo(n,"utf8").trim().split(/\r?\n/,1)[0]??"",i=/^gitdir:\s*(.+)$/.exec(o);if(!i)return{label:t,isWorktree:!1,mainName:t,worktreeName:"",canonicalCwd:e};let s=i[1].trim(),a=Jo.exec(s);if(!a)return{label:t,isWorktree:!1,mainName:t,worktreeName:"",canonicalCwd:e};let F=a[1],c=a[2],h=nn(F)||F;return{label:`${h} (${c})`,isWorktree:!0,mainName:h,worktreeName:c,canonicalCwd:F}}catch{return{label:t,isWorktree:!1,mainName:t,worktreeName:"",canonicalCwd:e}}}function Dn(e){let t=rn.get(e);if(t)return t.label;let u=Qo(e);return rn.set(e,u),u.label}var ei=["hour","day","week","month"];function on(e){return typeof e=="string"&&ei.includes(e)}function St(e,t){let u=new Date(e),n=u.getFullYear(),r=String(u.getMonth()+1).padStart(2,"0"),D=String(u.getDate()).padStart(2,"0"),o=String(u.getHours()).padStart(2,"0");if(t==="hour")return{key:`${n}-${r}-${D}T${o}`,label:`${r}/${D} ${o}:00`};if(t==="day")return{key:`${n}-${r}-${D}`,label:`${r}/${D}`};if(t==="week"){let i=new Date(u),s=i.getDay()||7;i.setDate(i.getDate()-s+1);let a=String(i.getMonth()+1).padStart(2,"0"),F=String(i.getDate()).padStart(2,"0");return{key:`${i.getFullYear()}-W${a}${F}`,label:`Wk ${a}/${F}`}}return{key:`${n}-${r}`,label:`${n}-${r}`}}function Re(e){return{source:e.source,fromIso:e.from?.toISOString(),toIso:e.to?.toISOString(),models:e.models&&e.models.length?new Set(e.models):void 0,projects:e.projects&&e.projects.length?new Set(e.projects):void 0}}function ye(e,t){return!(e.source!==t.source||t.fromIso&&e.timestamp<t.fromIso||t.toIso&&e.timestamp>t.toIso||t.models&&!t.models.has(e.model)||t.projects&&!t.projects.has(e.cwd))}function sn(e,t,u){let n=new Map,r=Re(u);for(let D of e){if(!ye(D,r))continue;let{key:o,label:i}=St(D.timestamp,t),s=n.get(o);s||(s=ti(o,i),n.set(o,s)),ui(s,D)}return Array.from(n.values()).sort((D,o)=>D.key.localeCompare(o.key))}function ti(e,t){return{key:e,label:t,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalTokens:0,cost:0,saved:0,requests:0,models:{}}}function ui(e,t){let u=oe(t);e.inputTokens+=t.usage.input_tokens,e.outputTokens+=t.usage.output_tokens,e.cacheReadTokens+=t.usage.cache_read_input_tokens,e.cacheCreationTokens+=t.usage.cache_creation_input_tokens,e.totalTokens=e.inputTokens+e.outputTokens+e.cacheReadTokens+e.cacheCreationTokens,e.cost+=u.total,e.saved+=u.saved,e.requests+=1;let n=e.models[t.model]??{tokens:0,cost:0,requests:0};n.tokens+=t.usage.input_tokens+t.usage.output_tokens+t.usage.cache_read_input_tokens+t.usage.cache_creation_input_tokens,n.cost+=u.total,n.requests+=1,e.models[t.model]=n}function an(e,t){let u=new Map,n=Re(t);for(let r of e){if(!ye(r,n))continue;let D=u.get(r.model);if(!D){let{pricing:i,matchType:s}=De(r.source).resolvePricing(r.model);D={model:r.model,source:r.source,requests:0,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalTokens:0,cost:0,saved:0,pricing:i,pricingResolved:s==="exact"||s==="date-stripped"||s==="prefix-stripped"},u.set(r.model,D)}let o=oe(r);D.requests+=1,D.inputTokens+=r.usage.input_tokens,D.outputTokens+=r.usage.output_tokens,D.cacheReadTokens+=r.usage.cache_read_input_tokens,D.cacheCreationTokens+=r.usage.cache_creation_input_tokens,D.totalTokens=D.inputTokens+D.outputTokens+D.cacheReadTokens+D.cacheCreationTokens,D.cost+=o.total,D.saved+=o.saved}return Array.from(u.values()).sort((r,D)=>D.cost-r.cost)}function cn(e,t){let u=new Map,n=new Map,r=Re(t);for(let D of e){if(!ye(D,r))continue;let o=D.cwd||"(unknown)",i=u.get(o);i||(i={source:t.source,cwd:o,projectName:Ae(o),sessions:0,requests:0,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalTokens:0,cost:0,saved:0,firstActivity:D.timestamp,lastActivity:D.timestamp,models:[]},u.set(o,i),n.set(o,new Set)),n.get(o).add(D.sessionId);let s=oe(D);i.requests+=1,i.inputTokens+=D.usage.input_tokens,i.outputTokens+=D.usage.output_tokens,i.cacheReadTokens+=D.usage.cache_read_input_tokens,i.cacheCreationTokens+=D.usage.cache_creation_input_tokens,i.totalTokens=i.inputTokens+i.outputTokens+i.cacheReadTokens+i.cacheCreationTokens,i.cost+=s.total,i.saved+=s.saved,D.timestamp<i.firstActivity&&(i.firstActivity=D.timestamp),D.timestamp>i.lastActivity&&(i.lastActivity=D.timestamp),i.models.includes(D.model)||i.models.push(D.model)}for(let[D,o]of n){let i=u.get(D);i.sessions=o.size}return Array.from(u.values()).sort((D,o)=>o.cost-D.cost)}function ln(e,t,u){let n=new Map,r=Re(u);for(let o of e){if(!ye(o,r))continue;let i=o.sessionId||o.uuid,s=n.get(i);s||(s={sessionId:i,source:o.source,cwd:o.cwd,projectName:Ae(o.cwd),projectLabel:Dn(o.cwd),startTime:o.timestamp,endTime:o.timestamp,durationMs:0,requests:0,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalTokens:0,cost:0,saved:0,models:[],modelBreakdown:{}},n.set(i,s));let a=oe(o);s.requests+=1,s.inputTokens+=o.usage.input_tokens,s.outputTokens+=o.usage.output_tokens,s.cacheReadTokens+=o.usage.cache_read_input_tokens,s.cacheCreationTokens+=o.usage.cache_creation_input_tokens,s.totalTokens=s.inputTokens+s.outputTokens+s.cacheReadTokens+s.cacheCreationTokens,s.cost+=a.total,s.saved+=a.saved,o.timestamp<s.startTime&&(s.startTime=o.timestamp),o.timestamp>s.endTime&&(s.endTime=o.timestamp),s.models.includes(o.model)||s.models.push(o.model);let F=s.modelBreakdown[o.model]??{tokens:0,cost:0,requests:0};F.tokens+=o.usage.input_tokens+o.usage.output_tokens+o.usage.cache_read_input_tokens+o.usage.cache_creation_input_tokens,F.cost+=a.total,F.requests+=1,s.modelBreakdown[o.model]=F}let D=new Map;for(let o of t){let i=D.get(o.sessionId);(!i||o.timestamp<i.timestamp)&&D.set(o.sessionId,o)}for(let o of n.values()){o.durationMs=Math.max(0,new Date(o.endTime).getTime()-new Date(o.startTime).getTime());let i=D.get(o.sessionId);i&&i.textPreview&&(o.firstUserMessage=i.textPreview,o.title=i.textPreview.slice(0,80))}return Array.from(n.values()).sort((o,i)=>i.endTime.localeCompare(o.endTime))}function Fn(e,t){let u=0,n=0,r=0,D=0,o=0,i=0,s=0,a=Re(t);for(let F of e){if(!ye(F,a))continue;let c=oe(F);u+=F.usage.input_tokens,n+=F.usage.output_tokens,r+=F.usage.cache_read_input_tokens,D+=F.usage.cache_creation_input_tokens,o+=c.total,i+=c.saved,s+=1}return{inputTokens:u,outputTokens:n,cacheReadTokens:r,cacheCreationTokens:D,totalTokens:u+n+r+D,cost:o,saved:i,requests:s}}var ni=["1d","7d","30d","90d","all","custom"];function dn(e){return typeof e=="string"&&ni.includes(e)}function hn(e){let t=new Date;if(e==="all"||e==="custom")return{};if(e==="1d")return{from:new Date(t.getFullYear(),t.getMonth(),t.getDate())};let u=e.match(/^(\d+)([dwm])$/);if(!u)return{};let n=parseInt(u[1],10),r=u[2],D=new Date(t);return r==="d"?D.setDate(D.getDate()-n):r==="w"?D.setDate(D.getDate()-n*7):r==="m"&&D.setMonth(D.getMonth()-n),{from:D}}function ri(e,t,u){let n=new Map;for(let i of t)i.isSynthetic||i.textPreview&&i.textPreview.trim()&&n.set(i.uuid,i.textPreview);let r=new Map,D=new Map;function o(i){let s=[],a=i,F=null,c=0,h=new Set;for(;a&&c++<5e3&&!h.has(a);){h.add(a);let d=D.get(a);if(d){F=d;break}if(s.push(a),n.has(a)){F=a;break}a=u[a]??null}F||(F=i);for(let d of s)D.set(d,F);return F}for(let i of e)r.set(i.uuid,o(i.uuid));return r}function xe(e,t,u){let n=ri(e,t,u),r=new Map;for(let D of e){let o=n.get(D.uuid)??D.uuid,i=r.get(o);(!i||D.timestamp<i.firstTimestamp)&&r.set(o,{turnId:o,firstTimestamp:D.timestamp,firstModel:D.model,cwd:D.cwd,sessionId:D.sessionId,source:D.source})}return r}import nt from"node:process";function Tt({onlyFirst:e=!1}={}){let r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,e?void 0:"g")}var Di=Tt();function z(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(Di,"")}var pn=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],fn=12288,Cn=65510,mn=[12288,12288,65281,65376,65504,65510];var gn=4352,En=262141,_t=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var Ye=(e,t)=>{let u=0,n=Math.floor(e.length/2)-1;for(;u<=n;){let r=Math.floor((u+n)/2),D=r*2;if(t<e[D])n=r-1;else if(t>e[D+1])u=r+1;else return!0}return!1};var Bn=19968,[si,ai]=ci(_t);function ci(e){let t=e[0],u=e[1];for(let n=0;n<e.length;n+=2){let r=e[n],D=e[n+1];if(Bn>=r&&Bn<=D)return[r,D];D-r>u-t&&(t=r,u=D)}return[t,u]}var bn=e=>e<161||e>1114109?!1:Ye(pn,e),we=e=>e<fn||e>Cn?!1:Ye(mn,e);var ke=e=>e>=si&&e<=ai?!0:e<gn||e>En?!1:Ye(_t,e);function li(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Y(e,{ambiguousAsWide:t=!1}={}){return li(e),we(e)||ke(e)||t&&bn(e)?2:1}var yn=le(Rn(),1),Fi=new Intl.Segmenter,di=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function P(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:u=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=z(e)),e.length===0)return 0;let r=0,D={ambiguousAsWide:!u};for(let{segment:o}of Fi.segment(e)){let i=o.codePointAt(0);if(!(i<=31||i>=127&&i<=159)&&!(i>=8203&&i<=8207||i===65279)&&!(i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071)&&!(i>=55296&&i<=57343)&&!(i>=65024&&i<=65039)&&!di.test(o)){if((0,yn.default)().test(o)){r+=2;continue}r+=Y(i,D)}}return r}var xn=(e=0)=>t=>`\x1B[${t+e}m`,wn=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,kn=(e=0)=>(t,u,n)=>`\x1B[${38+e};2;${t};${u};${n}m`,R={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},I0=Object.keys(R.modifier),hi=Object.keys(R.color),pi=Object.keys(R.bgColor),M0=[...hi,...pi];function fi(){let e=new Map;for(let[t,u]of Object.entries(R)){for(let[n,r]of Object.entries(u))R[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},u[n]=R[n],e.set(r[0],r[1]);Object.defineProperty(R,t,{value:u,enumerable:!1})}return Object.defineProperty(R,"codes",{value:e,enumerable:!1}),R.color.close="\x1B[39m",R.bgColor.close="\x1B[49m",R.color.ansi=xn(),R.color.ansi256=wn(),R.color.ansi16m=kn(),R.bgColor.ansi=xn(10),R.bgColor.ansi256=wn(10),R.bgColor.ansi16m=kn(10),Object.defineProperties(R,{rgbToAnsi256:{value(t,u,n){return t===u&&u===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(u/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let u=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!u)return[0,0,0];let[n]=u;n.length===3&&(n=[...n].map(D=>D+D).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:t=>R.rgbToAnsi256(...R.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let u,n,r;if(t>=232)u=((t-232)*10+8)/255,n=u,r=u;else{t-=16;let i=t%36;u=Math.floor(t/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let D=Math.max(u,n,r)*2;if(D===0)return 30;let o=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(u));return D===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,u,n)=>R.ansi256ToAnsi(R.rgbToAnsi256(t,u,n)),enumerable:!1},hexToAnsi:{value:t=>R.ansi256ToAnsi(R.hexToAnsi256(t)),enumerable:!1}}),R}var Ci=fi(),W=Ci;import vt from"node:process";import mi from"node:os";import Sn from"node:tty";function $(e,t=globalThis.Deno?globalThis.Deno.args:vt.argv){let u=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(u+e),r=t.indexOf("--");return n!==-1&&(r===-1||n<r)}var{env:y}=vt,Xe;$("no-color")||$("no-colors")||$("color=false")||$("color=never")?Xe=0:($("color")||$("colors")||$("color=true")||$("color=always"))&&(Xe=1);function gi(){if("FORCE_COLOR"in y)return y.FORCE_COLOR==="true"?1:y.FORCE_COLOR==="false"?0:y.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(y.FORCE_COLOR,10),3)}function Ei(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Bi(e,{streamIsTTY:t,sniffFlags:u=!0}={}){let n=gi();n!==void 0&&(Xe=n);let r=u?Xe:n;if(r===0)return 0;if(u){if($("color=16m")||$("color=full")||$("color=truecolor"))return 3;if($("color=256"))return 2}if("TF_BUILD"in y&&"AGENT_NAME"in y)return 1;if(e&&!t&&r===void 0)return 0;let D=r||0;if(y.TERM==="dumb")return D;if(vt.platform==="win32"){let o=mi.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in y)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(o=>o in y)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(o=>o in y)||y.CI_NAME==="codeship"?1:D;if("TEAMCITY_VERSION"in y)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(y.TEAMCITY_VERSION)?1:0;if(y.COLORTERM==="truecolor"||y.TERM==="xterm-kitty"||y.TERM==="xterm-ghostty"||y.TERM==="wezterm")return 3;if("TERM_PROGRAM"in y){let o=Number.parseInt((y.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(y.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(y.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(y.TERM)||"COLORTERM"in y?1:D}function Tn(e,t={}){let u=Bi(e,{streamIsTTY:e&&e.isTTY,...t});return Ei(u)}var bi={stdout:Tn({isTTY:Sn.isatty(1)}),stderr:Tn({isTTY:Sn.isatty(2)})},_n=bi;function vn(e,t,u){let n=e.indexOf(t);if(n===-1)return e;let r=t.length,D=0,o="";do o+=e.slice(D,n)+t+u,D=n+r,n=e.indexOf(t,D);while(n!==-1);return o+=e.slice(D),o}function In(e,t,u,n){let r=0,D="";do{let o=e[n-1]==="\r";D+=e.slice(r,o?n-1:n)+t+(o?`\r
|
|
9
9
|
`:`
|
|
10
|
-
`)+
|
|
11
|
-
`,
|
|
12
|
-
`);return
|
|
13
|
-
`))
|
|
14
|
-
`),a=[...s],F=0;for(let[c,
|
|
15
|
-
`?(
|
|
16
|
-
`&&(
|
|
10
|
+
`)+u,r=n+1,n=e.indexOf(`
|
|
11
|
+
`,r)}while(n!==-1);return D+=e.slice(r),D}var{stdout:Mn,stderr:Pn}=_n,It=Symbol("GENERATOR"),pe=Symbol("STYLER"),Se=Symbol("IS_EMPTY"),On=["ansi","ansi","ansi256","ansi16m"],fe=Object.create(null),Ai=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let u=Mn?Mn.level:0;e.level=t.level===void 0?u:t.level},Je=class{constructor(t){return Ln(t)}},Ln=e=>{let t=(...u)=>u.join(" ");return Ai(t,e),Object.setPrototypeOf(t,Te.prototype),t};function Te(e){return Ln(e)}Object.setPrototypeOf(Te.prototype,Function.prototype);for(let[e,t]of Object.entries(W))fe[e]={get(){let u=Ze(this,Pt(t.open,t.close,this[pe]),this[Se]);return Object.defineProperty(this,e,{value:u}),u}};fe.visible={get(){let e=Ze(this,this[pe],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Mt=(e,t,u,...n)=>e==="rgb"?t==="ansi16m"?W[u].ansi16m(...n):t==="ansi256"?W[u].ansi256(W.rgbToAnsi256(...n)):W[u].ansi(W.rgbToAnsi(...n)):e==="hex"?Mt("rgb",t,u,...W.hexToRgb(...n)):W[u][e](...n),Ri=["rgb","hex","ansi256"];for(let e of Ri){fe[e]={get(){let{level:u}=this;return function(...n){let r=Pt(Mt(e,On[u],"color",...n),W.color.close,this[pe]);return Ze(this,r,this[Se])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);fe[t]={get(){let{level:u}=this;return function(...n){let r=Pt(Mt(e,On[u],"bgColor",...n),W.bgColor.close,this[pe]);return Ze(this,r,this[Se])}}}}var yi=Object.defineProperties(()=>{},{...fe,level:{enumerable:!0,get(){return this[It].level},set(e){this[It].level=e}}}),Pt=(e,t,u)=>{let n,r;return u===void 0?(n=e,r=t):(n=u.openAll+e,r=t+u.closeAll),{open:e,close:t,openAll:n,closeAll:r,parent:u}},Ze=(e,t,u)=>{let n=(...r)=>xi(n,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(n,yi),n[It]=e,n[pe]=t,n[Se]=u,n},xi=(e,t)=>{if(e.level<=0||!t)return e[Se]?"":t;let u=e[pe];if(u===void 0)return t;let{openAll:n,closeAll:r}=u;if(t.includes("\x1B"))for(;u!==void 0;)t=vn(t,u.close,u.open),u=u.parent;let D=t.indexOf(`
|
|
12
|
+
`);return D!==-1&&(t=In(t,r,n,D)),n+t+r};Object.defineProperties(Te.prototype,fe);var wi=Te(),q0=Te({level:Pn?Pn.level:0});var X=wi;var Un=le($n(),1),ki=new Intl.Segmenter,Si=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function Ot(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:u=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=z(e)),e.length===0)return 0;let r=0,D={ambiguousAsWide:!u};for(let{segment:o}of ki.segment(e)){let i=o.codePointAt(0);if(!(i<=31||i>=127&&i<=159)&&!(i>=8203&&i<=8207||i===65279)&&!(i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071)&&!(i>=55296&&i<=57343)&&!(i>=65024&&i<=65039)&&!Si.test(o)){if((0,Un.default)().test(o)){r+=2;continue}r+=Y(i,D)}}return r}function Qe(e){let t=0;for(let u of e.split(`
|
|
13
|
+
`))t=Math.max(t,Ot(u));return t}var dr=le(Nt(),1);var _i=/[\p{Lu}]/u,vi=/[\p{Ll}]/u,Gn=/^[\p{Lu}](?![\p{Lu}])/gu,Vn=/([\p{Alpha}\p{N}_]|$)/u,$t=/[_.\- ]+/,Ii=new RegExp("^"+$t.source),qn=new RegExp($t.source+Vn.source,"gu"),Hn=new RegExp("\\d+"+Vn.source,"gu"),Mi=(e,t,u,n)=>{let r=!1,D=!1,o=!1,i=!1;for(let s=0;s<e.length;s++){let a=e[s];i=s>2?e[s-3]==="-":!0,r&&_i.test(a)?(e=e.slice(0,s)+"-"+e.slice(s),r=!1,o=D,D=!0,s++):D&&o&&vi.test(a)&&(!i||n)?(e=e.slice(0,s-1)+"-"+e.slice(s-1),o=D,D=!1,r=!0):(r=t(a)===a&&u(a)!==a,o=D,D=u(a)===a&&t(a)!==a)}return e},Pi=(e,t)=>(Gn.lastIndex=0,e.replaceAll(Gn,u=>t(u))),Oi=(e,t)=>(qn.lastIndex=0,Hn.lastIndex=0,e.replaceAll(Hn,(u,n,r)=>["_","-"].includes(e.charAt(r+u.length))?u:t(u)).replaceAll(qn,(u,n)=>t(n)));function Ut(e,t){if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},Array.isArray(e)?e=e.map(D=>D.trim()).filter(D=>D.length).join("-"):e=e.trim(),e.length===0)return"";let u=t.locale===!1?D=>D.toLowerCase():D=>D.toLocaleLowerCase(t.locale),n=t.locale===!1?D=>D.toUpperCase():D=>D.toLocaleUpperCase(t.locale);return e.length===1?$t.test(e)?"":t.pascalCase?n(e):u(e):(e!==u(e)&&(e=Mi(e,u,n,t.preserveConsecutiveUppercase)),e=e.replace(Ii,""),e=t.preserveConsecutiveUppercase?Pi(e,u):u(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),Oi(e,n))}var zt=le(tr(),1);var ur=(e=0)=>t=>`\x1B[${t+e}m`,nr=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,rr=(e=0)=>(t,u,n)=>`\x1B[${38+e};2;${t};${u};${n}m`,x={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},iF=Object.keys(x.modifier),qi=Object.keys(x.color),Hi=Object.keys(x.bgColor),sF=[...qi,...Hi];function Vi(){let e=new Map;for(let[t,u]of Object.entries(x)){for(let[n,r]of Object.entries(u))x[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},u[n]=x[n],e.set(r[0],r[1]);Object.defineProperty(x,t,{value:u,enumerable:!1})}return Object.defineProperty(x,"codes",{value:e,enumerable:!1}),x.color.close="\x1B[39m",x.bgColor.close="\x1B[49m",x.color.ansi=ur(),x.color.ansi256=nr(),x.color.ansi16m=rr(),x.bgColor.ansi=ur(10),x.bgColor.ansi256=nr(10),x.bgColor.ansi16m=rr(10),Object.defineProperties(x,{rgbToAnsi256:{value(t,u,n){return t===u&&u===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(u/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let u=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!u)return[0,0,0];let[n]=u;n.length===3&&(n=[...n].map(D=>D+D).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:t=>x.rgbToAnsi256(...x.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let u,n,r;if(t>=232)u=((t-232)*10+8)/255,n=u,r=u;else{t-=16;let i=t%36;u=Math.floor(t/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let D=Math.max(u,n,r)*2;if(D===0)return 30;let o=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(u));return D===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,u,n)=>x.ansi256ToAnsi(x.rgbToAnsi256(t,u,n)),enumerable:!1},hexToAnsi:{value:t=>x.ansi256ToAnsi(x.hexToAnsi256(t)),enumerable:!1}}),x}var Ki=Vi(),Dr=Ki;var tt=new Set(["\x1B","\x9B"]),zi=39,Kt="\x07",sr="[",Yi="]",ar="m",et=`${Yi}8;;`,or=e=>`${tt.values().next().value}${sr}${e}${ar}`,ir=e=>`${tt.values().next().value}${et}${e}${Kt}`,Xi=e=>e.split(" ").map(t=>P(t)),Vt=(e,t,u)=>{let n=[...t],r=!1,D=!1,o=P(z(e.at(-1)));for(let[i,s]of n.entries()){let a=P(s);if(o+a<=u?e[e.length-1]+=s:(e.push(s),o=0),tt.has(s)&&(r=!0,D=n.slice(i+1,i+1+et.length).join("")===et),r){D?s===Kt&&(r=!1,D=!1):s===ar&&(r=!1);continue}o+=a,o===u&&i<n.length-1&&(e.push(""),o=0)}!o&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Ji=e=>{let t=e.split(" "),u=t.length;for(;u>0&&!(P(t[u-1])>0);)u--;return u===t.length?e:t.slice(0,u).join(" ")+t.slice(u).join("")},Zi=(e,t,u={})=>{if(u.trim!==!1&&e.trim()==="")return"";let n="",r,D,o=Xi(e),i=[""];for(let[c,h]of e.split(" ").entries()){u.trim!==!1&&(i[i.length-1]=i.at(-1).trimStart());let d=P(i.at(-1));if(c!==0&&(d>=t&&(u.wordWrap===!1||u.trim===!1)&&(i.push(""),d=0),(d>0||u.trim===!1)&&(i[i.length-1]+=" ",d++)),u.hard&&o[c]>t){let l=t-d,C=1+Math.floor((o[c]-l-1)/t);Math.floor((o[c]-1)/t)<C&&i.push(""),Vt(i,h,t);continue}if(d+o[c]>t&&d>0&&o[c]>0){if(u.wordWrap===!1&&d<t){Vt(i,h,t);continue}i.push("")}if(d+o[c]>t&&u.wordWrap===!1){Vt(i,h,t);continue}i[i.length-1]+=h}u.trim!==!1&&(i=i.map(c=>Ji(c)));let s=i.join(`
|
|
14
|
+
`),a=[...s],F=0;for(let[c,h]of a.entries()){if(n+=h,tt.has(h)){let{groups:l}=new RegExp(`(?:\\${sr}(?<code>\\d+)m|\\${et}(?<uri>.*)${Kt})`).exec(s.slice(F))||{groups:{}};if(l.code!==void 0){let C=Number.parseFloat(l.code);r=C===zi?void 0:C}else l.uri!==void 0&&(D=l.uri.length===0?void 0:l.uri)}let d=Dr.codes.get(Number(r));a[c+1]===`
|
|
15
|
+
`?(D&&(n+=ir("")),r&&d&&(n+=or(d))):h===`
|
|
16
|
+
`&&(r&&d&&(n+=or(r)),D&&(n+=ir(D))),F+=h.length}return n};function ut(e,t,u){return String(e).normalize().replaceAll(`\r
|
|
17
17
|
`,`
|
|
18
18
|
`).split(`
|
|
19
|
-
`).map(n=>
|
|
20
|
-
`)}var
|
|
21
|
-
`,O=" ",_e="none",
|
|
22
|
-
`),C=Math.max(...l.map(h=>P(h)));for(let h of l){let p;switch(n){case"center":{p=O.repeat((i-C)/2)+h;break}case"right":{p=O.repeat(i-C)+h;break}default:{p=h;break}}F.push(p)}}r=F}n==="center"&&o<i?r=r.map(F=>O.repeat((i-o)/2)+F):n==="right"&&o<i&&(r=r.map(F=>O.repeat(i-o)+F));let s=O.repeat(u.left),a=O.repeat(u.right);return r=r.map(F=>{let c=s+F+a;return c+O.repeat(t-P(c))}),u.top>0&&(r=[...Array.from({length:u.top}).fill(O.repeat(t)),...r]),u.bottom>0&&(r=[...r,...Array.from({length:u.bottom}).fill(O.repeat(t))]),D&&r.length>D?r=r.slice(0,D):D&&r.length<D&&(r=[...r,...Array.from({length:D-r.length}).fill(O.repeat(t))]),r.join(ie)},Ni=(e,u,t)=>{let n=F=>{let c=t.borderColor?Wi(t.borderColor)(F):F;return t.dimBorder?X.dim(c):c},D=F=>t.backgroundColor?ji(t.backgroundColor)(F):F,r=Pi(t.borderStyle),o=sD(),i=O.repeat(t.margin.left);if(t.float==="center"){let F=Math.max((o-u-ve(t.borderStyle))/2,0);i=O.repeat(F)}else if(t.float==="right"){let F=Math.max(o-u-t.margin.right-ve(t.borderStyle),0);i=O.repeat(F)}let s="";t.margin.top&&(s+=ie.repeat(t.margin.top)),(t.borderStyle!==_e||t.title)&&(s+=n(i+r.topLeft+(t.title?Oi(t.title,r.top.repeat(u),t.titleAlignment):r.top.repeat(u))+r.topRight)+ie);let a=e.split(ie);return s+=a.map(F=>i+n(r.left)+D(F)+n(r.right)).join(ie),t.borderStyle!==_e&&(s+=ie+n(i+r.bottomLeft+r.bottom.repeat(u)+r.bottomRight)),t.margin.bottom&&(s+=ie.repeat(t.margin.bottom)),s},$i=e=>{if(e.fullscreen&&nu?.stdout){let u=[nu.stdout.columns,nu.stdout.rows];typeof e.fullscreen=="function"&&(u=e.fullscreen(...u)),e.width||=u[0],e.height||=u[1]}return e.width&&=Math.max(1,e.width-ve(e.borderStyle)),e.height&&=Math.max(1,e.height-ve(e.borderStyle)),e},rD=(e,u)=>u===_e?e:` ${e} `,Ui=(e,u)=>{u=$i(u);let t=u.width!==void 0,n=sD(),D=ve(u.borderStyle),r=n-u.margin.left-u.margin.right-D,o=Qe(tu(e,n-D,{hard:!0,trim:!1}))+u.padding.left+u.padding.right;if(u.title&&t?(u.title=u.title.slice(0,Math.max(0,u.width-2)),u.title&&=rD(u.title,u.borderStyle)):u.title&&(u.title=u.title.slice(0,Math.max(0,r-2)),u.title&&(u.title=rD(u.title,u.borderStyle),P(u.title)>o&&(u.width=P(u.title)))),u.width||=o,!t){if(u.margin.left&&u.margin.right&&u.width>r){let s=(n-u.width-D)/(u.margin.left+u.margin.right);u.margin.left=Math.max(0,Math.floor(u.margin.left*s)),u.margin.right=Math.max(0,Math.floor(u.margin.right*s))}u.width=Math.min(u.width,n-D-u.margin.left-u.margin.right)}return u.width-(u.padding.left+u.padding.right)<=0&&(u.padding.left=0,u.padding.right=0),u.height&&u.height-(u.padding.top+u.padding.bottom)<=0&&(u.padding.top=0,u.padding.bottom=0),u},zu=e=>e.match(/^#(?:[0-f]{3}){1,2}$/i),oD=e=>typeof e=="string"&&(X[e]??zu(e)),Wi=e=>zu(e)?X.hex(e):X[e],ji=e=>zu(e)?X.bgHex(e):X[$u(["bg",e])];function Yu(e,u){if(u={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...u},u.align&&(u.textAlignment=u.align),u.borderColor&&!oD(u.borderColor))throw new Error(`${u.borderColor} is not a valid borderColor`);if(u.backgroundColor&&!oD(u.backgroundColor))throw new Error(`${u.backgroundColor} is not a valid backgroundColor`);return u.padding=DD(u.padding),u.margin=DD(u.margin),u=Ui(e,u),e=Li(e,u),Ni(e,u.width,u)}var Lr=le(nr(),1);import Dr from"node:process";function rt(){let{env:e}=Dr,{TERM:u,TERM_PROGRAM:t}=e;return Dr.platform!=="win32"?u!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||t==="Terminus-Sublime"||t==="vscode"||u==="xterm-256color"||u==="alacritty"||u==="rxvt-unicode"||u==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var rr={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},or={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},ws={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},ks={...rr,...or},Ss={...rr,...ws},Ts=rt(),_s=Ts?ks:Ss,I=_s,g0=Object.entries(or);var ir=(e=0)=>u=>`\x1B[${u+e}m`,sr=(e=0)=>u=>`\x1B[${38+e};5;${u}m`,ar=(e=0)=>(u,t,n)=>`\x1B[${38+e};2;${u};${t};${n}m`,w={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},E0=Object.keys(w.modifier),vs=Object.keys(w.color),Is=Object.keys(w.bgColor),B0=[...vs,...Is];function Ms(){let e=new Map;for(let[u,t]of Object.entries(w)){for(let[n,D]of Object.entries(t))w[n]={open:`\x1B[${D[0]}m`,close:`\x1B[${D[1]}m`},t[n]=w[n],e.set(D[0],D[1]);Object.defineProperty(w,u,{value:t,enumerable:!1})}return Object.defineProperty(w,"codes",{value:e,enumerable:!1}),w.color.close="\x1B[39m",w.bgColor.close="\x1B[49m",w.color.ansi=ir(),w.color.ansi256=sr(),w.color.ansi16m=ar(),w.bgColor.ansi=ir(10),w.bgColor.ansi256=sr(10),w.bgColor.ansi16m=ar(10),Object.defineProperties(w,{rgbToAnsi256:{value(u,t,n){return u===t&&t===n?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(u){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(r=>r+r).join(""));let D=Number.parseInt(n,16);return[D>>16&255,D>>8&255,D&255]},enumerable:!1},hexToAnsi256:{value:u=>w.rgbToAnsi256(...w.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value(u){if(u<8)return 30+u;if(u<16)return 90+(u-8);let t,n,D;if(u>=232)t=((u-232)*10+8)/255,n=t,D=t;else{u-=16;let i=u%36;t=Math.floor(u/36)/5,n=Math.floor(i/6)/5,D=i%6/5}let r=Math.max(t,n,D)*2;if(r===0)return 30;let o=30+(Math.round(D)<<2|Math.round(n)<<1|Math.round(t));return r===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(u,t,n)=>w.ansi256ToAnsi(w.rgbToAnsi256(u,t,n)),enumerable:!1},hexToAnsi:{value:u=>w.ansi256ToAnsi(w.hexToAnsi256(u)),enumerable:!1}}),w}var Ps=Ms(),Q=Ps;function su(e){return Number.isInteger(e)?we(e)||ke(e):!1}var Ne=27,dr=144,fr=152,pr=155,hr=156,Fu=157,Cr=158,gr=159,$e=new Set([Ne,dr,fr,pr,hr,Fu,Cr,gr]),ge="\x1B",at="\x07",Ft="[",mr="]",Os="P",Ls="X",Ns="^",$s="_",Er="m",cu="\\",Br=`${ge}${cu}`,Us="\x9D",lu="\x9C",ct=`${ge}${mr}8;`,lt=`${Us}8;`,Ws=`${ct};`,js=`${lt};`,Gs="0".codePointAt(0),qs="9".codePointAt(0),Hs=";".codePointAt(0),Vs=":".codePointAt(0),Ks="0".codePointAt(0),zs="?".codePointAt(0),Ys=" ".codePointAt(0),Js="/".codePointAt(0),Xs="@".codePointAt(0),Zs="~".codePointAt(0),Qs=127462,ea=127487,cr=0,au=38,ot=39,ua=48,it=49,ta=5,na=2,lr=3,Fr=5,Da=2,ra=4,oa=65039,ia=8419,sa=new RegExp("\\p{Emoji_Presentation}","v"),dt=new Intl.Segmenter(void 0,{granularity:"grapheme"}),br=new Set;for(let[,e]of Q.codes)br.add(e);function aa(e){return e>=Gs&&e<=qs||e===Hs||e===Vs}function ca(e){return e>=Ks&&e<=zs}function la(e){return e>=Ys&&e<=Js}function Fa(e){return e>=Xs&&e<=Zs}function da(e){return e>=Qs&&e<=ea}function G(e,u){return{token:{type:"control",code:e},endIndex:u}}function fa(e){if(sa.test(e))return!0;for(let u of e){let t=u.codePointAt(0);if(t===oa||t===ia)return!0}return!1}function Ar(e){let u=0;for(let t of e){let n=t.codePointAt(0);if(su(n))return 2;da(n)&&u++}return u>=1||fa(e)?2:1}function pa(e){return e.startsWith("\x9B")?"\x9B":`${ge}${Ft}`}function Le(e,u){return`${e}${u.join(";")}${Er}`}function ha(e){let u=[],t=pa(e),n;if(e.startsWith(`${ge}${Ft}`))n=e.slice(2,-1);else if(e.startsWith("\x9B"))n=e.slice(1,-1);else return u;let D=n.length===0?[String(cr)]:n.split(";"),r=0;for(;r<D.length;){let o=Number.parseInt(D[r],10);if(Number.isNaN(o)){r++;continue}if(o===cr){u.push({type:"reset"}),r++;continue}if(o===au||o===ua){let a=Number.parseInt(D[r+1],10);if(a===ta&&r+Da<D.length){let c=Le(t,D.slice(r,r+lr));u.push({type:"start",code:c,endCode:Q.color.ansi(o===au?ot:it)}),r+=lr;continue}if(a===na&&r+ra<D.length){let c=Le(t,D.slice(r,r+Fr));u.push({type:"start",code:c,endCode:Q.color.ansi(o===au?ot:it)}),r+=Fr;continue}let F=Le(t,[D[r]]);u.push({type:"start",code:F,endCode:Q.color.ansi(o===au?ot:it)}),r++;continue}if(br.has(o)){u.push({type:"end",endCode:Q.color.ansi(o)}),r++;continue}let i=Q.codes.get(o);if(i!==void 0){let a=Le(t,[D[r]]);u.push({type:"start",code:a,endCode:Q.color.ansi(i)}),r++;continue}let s=Le(t,[D[r]]);u.push({type:"start",code:s,endCode:Q.reset.open}),r++}return u.length===0&&u.push({type:"reset"}),u}function Ca(e,u){let t=e.codePointAt(u),n;if(t===Ne){if(e[u+1]!==Ft)return;n=u+2}else if(t===pr)n=u+1;else return;let D=!0;for(let r=n;r<e.length;r++){let o=e.codePointAt(r);if(Fa(o)){let s=e.slice(u,r+1);return e[r]!==Er||!D?G(s,r+1):{token:{type:"sgr",code:s,fragments:ha(s)},endIndex:r+1}}if(ca(o)){aa(o)||(D=!1);continue}if(la(o)){D=!1;continue}let i=r;return G(e.slice(u,i),i)}return G(e.slice(u),e.length)}function ga(e,u){let t,n,D=e.codePointAt(u);if(D===Ne&&e.startsWith(ct,u))t=ct,n=Ws;else if(D===Fu&&e.startsWith(lt,u))t=lt,n=js;else return;let r=e.indexOf(";",u+t.length);if(r===-1)return G(e.slice(u),e.length);for(let o=r+1;o<e.length;o++){let i=e[o];if(i===at){let s=e.slice(u,o+1),a=o===r+1?"close":"open";return{token:{type:"hyperlink",code:s,action:a,closePrefix:n,terminator:at},endIndex:o+1}}if(i===ge&&e[o+1]===cu){let s=e.slice(u,o+2),a=o===r+1?"close":"open";return{token:{type:"hyperlink",code:s,action:a,closePrefix:n,terminator:Br},endIndex:o+2}}if(i===lu){let s=e.slice(u,o+1),a=o===r+1?"close":"open";return{token:{type:"hyperlink",code:s,action:a,closePrefix:n,terminator:lu},endIndex:o+1}}}return G(e.slice(u),e.length)}function ma(e,u){let t=e.codePointAt(u),n,D=!1;switch(t){case Ne:{switch(e[u+1]){case mr:{n=u+2,D=!0;break}case Os:case Ls:case Ns:case $s:{n=u+2;break}case cu:return G(Br,u+2);default:return}break}case Fu:{n=u+1,D=!0;break}case dr:case fr:case Cr:case gr:{n=u+1;break}case hr:return G(lu,u+1);default:return}for(let r=n;r<e.length;r++){if(D&&e[r]===at)return G(e.slice(u,r+1),r+1);if(e[r]===ge&&e[r+1]===cu)return G(e.slice(u,r+2),r+2);if(e[r]===lu)return G(e.slice(u,r+1),r+1)}return G(e.slice(u),e.length)}function Ue(e,u){let t=e.codePointAt(u);if(t===Ne||t===Fu){let D=ga(e,u);if(D)return D}let n=ma(e,u);return n||Ca(e,u)}function yr(e,u,t){for(;u<e.length;){let n=e.codePointAt(u);if(!$e.has(n))break;let D=Ue(e,u);if(!D)break;t.push(D.token),u=D.endIndex}return u}function xr(e,u,t){let n=t.containing(u);if(!(!n||n.index!==u))return{token:{type:"character",value:n.segment,visibleWidth:Ar(n.segment),isGraphemeContinuation:!1},endIndex:u+n.segment.length}}function Ea(e){let u=[],t=0;for(;t<e.length;){let n=e.codePointAt(t);if($e.has(n)){let r=Ue(e,t);if(r){t=r.endIndex;continue}}let D=String.fromCodePoint(n);u.push({value:D,visibleWidth:1,isGraphemeContinuation:!1}),t+=D.length}return u}function Ba(e){if(e.length===0)return;let u=e.map(({value:r})=>r).join(""),t=[],n=0;for(let r of e)t.push(n),n+=r.value.length;let D=0;for(let r of dt.segment(u)){for(;D<e.length&&t[D]<r.index;)D++;let o=D,i=!0;for(;o<e.length&&t[o]<r.index+r.segment.length;)e[o].visibleWidth=i?Ar(r.segment):0,e[o].isGraphemeContinuation=!i,i=!1,o++;D=o}}function st(e,{endCharacter:u=Number.POSITIVE_INFINITY}={}){let t=[],n=Ea(e);Ba(n);let D=0,r=0,o=0;for(;D<e.length;){let i=e.codePointAt(D);if($e.has(i)){let f=Ue(e,D);if(f){t.push(f.token),D=f.endIndex;continue}}let s=String.fromCodePoint(i),a=n[r],F=su(i)?2:s.length;a&&(F=a.visibleWidth);let c={type:"character",value:s,visibleWidth:F,isGraphemeContinuation:a?a.isGraphemeContinuation:!1};if(t.push(c),D+=s.length,r++,o+=c.visibleWidth,o>=u){let f=n[r];if(!f||!f.isGraphemeContinuation){D=yr(e,D,t);break}}}return t}function Rr(e,u){let t=`${e}${u}`,n=e.length;for(let D of dt.segment(t)){if(D.index===n)return!1;if(D.index>n)return!0}return!0}function ba(e,u,t,n){if(!t)return!1;let D=u,r=!1;for(;D<e.length;){let o=e.codePointAt(D);if($e.has(o)){let s=Ue(e,D);if(s){r=!0,D=s.endIndex;continue}}if(!r)return!1;let i=xr(e,D,n);return i?Rr(t,i.token.value):!0}return!1}function ft(e,{endCharacter:u=Number.POSITIVE_INFINITY}={}){let t=[],n=dt.segment(e),D=0,r=0,o,i=!1;for(;D<e.length;){let s=e.codePointAt(D);if($e.has(s)){let F=Ue(e,D);if(F){t.push(F.token),D=F.endIndex,i=!0;continue}}let a=xr(e,D,n);if(!a)return st(e,{endCharacter:u});if(i&&o&&Rr(o,a.token.value))return st(e,{endCharacter:u});if(t.push(a.token),D=a.endIndex,r+=a.token.visibleWidth,i=!1,o=a.token.value,r>=u){if(ba(e,D,o,n))return st(e,{endCharacter:u});D=yr(e,D,t);break}}return t}function Aa(e,u){for(let t of u)switch(t.type){case"reset":{e.clear();break}case"end":{e.delete(t.endCode);break}case"start":{e.delete(t.endCode),e.set(t.endCode,t.code);break}default:break}return e}function ya(e){return[...e.keys()].toReversed().join("")}function xa(e){return`${e.closePrefix}${e.terminator}`}function Ra(e,u){let t=!1,n=!1;for(let D of e.fragments){if(D.type==="start"){t=!0;continue}if(D.type==="reset"&&u.size>0){n=!0;continue}D.type==="end"&&u.has(D.endCode)&&(n=!0)}return n&&!t}function wa(e){return e.fragments.some(u=>u.type==="start")}function wr(e){if(e.activeHyperlink&&!e.activeHyperlinkHasVisibleText&&e.activeHyperlinkOutputIndex!==void 0){let u=e.activeHyperlink.code.length;e.returnValue=e.returnValue.slice(0,e.activeHyperlinkOutputIndex)+e.returnValue.slice(e.activeHyperlinkOutputIndex+u),e.pendingSgrOutputIndex!==void 0&&e.pendingSgrOutputIndex>e.activeHyperlinkOutputIndex&&(e.pendingSgrOutputIndex-=u)}e.activeHyperlink=void 0,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0}function ka(e){return e.isPastEnd&&!Ra(e.token,e.activeStyles)||(e.include&&wa(e.token)&&e.pendingSgrOutputIndex===void 0&&(e.pendingSgrOutputIndex=e.returnValue.length,e.pendingSgrActiveStyles=new Map(e.activeStyles)),e.activeStyles=Aa(e.activeStyles,e.token.fragments),e.include&&(e.returnValue+=e.token.code)),e}function Sa(e){if(e.isPastEnd&&(e.token.action!=="close"||!e.activeHyperlink))return e;if(e.token.action==="open")e.activeHyperlink=e.token,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0,e.include&&(e.activeHyperlinkOutputIndex=e.returnValue.length);else if(e.token.action==="close"){if(e.include&&e.activeHyperlink&&!e.activeHyperlinkHasVisibleText)return wr(e),e;e.activeHyperlink=void 0,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0}return e.include&&(e.returnValue+=e.token.code),e}function Ta(e){return!e.isPastEnd&&e.include&&(e.returnValue+=e.token.code),e}function _a(e){return!e.include&&e.position>=e.start&&!e.token.isGraphemeContinuation&&(e.include=!0,e.returnValue=[...e.activeStyles.values()].join(""),e.activeHyperlink&&(e.activeHyperlinkOutputIndex=e.returnValue.length,e.returnValue+=e.activeHyperlink.code)),e.include&&(e.returnValue+=e.token.value,e.pendingSgrOutputIndex=void 0,e.pendingSgrActiveStyles=void 0,e.activeHyperlink&&(e.activeHyperlinkHasVisibleText=!0)),e.position+=e.token.visibleWidth,e}var va={sgr:ka,hyperlink:Sa,control:Ta,character:_a};function Ia(e){let u=va[e.token.type];return u?u(e):e}function Ma(e){let u=Array.from({length:e.length},()=>!1),t=!1;for(let n=e.length-1;n>=0;n--){let D=e[n];u[n]=t,D.type==="character"&&(t=!!D.isGraphemeContinuation)}return u}function Pa(e,u,t){return t===void 0?!1:u>=t?!0:e.type==="character"&&!e.isGraphemeContinuation&&u+e.visibleWidth>t}function V(e,u,t){let n=ft(e,{endCharacter:t}),D=Ma(n),r=new Map,o,i=!1,s,a,F,c=0,f="",d=!1;for(let[l,C]of n.entries()){let h=Pa(C,c,t);if(h&&C.type!=="character"&&D[l]&&(h=!1),h&&C.type==="character"&&!C.isGraphemeContinuation){if(o&&!i){let p={activeHyperlink:o,activeHyperlinkHasVisibleText:i,activeHyperlinkOutputIndex:s,pendingSgrOutputIndex:a,returnValue:f};wr(p),{activeHyperlink:o,activeHyperlinkHasVisibleText:i,activeHyperlinkOutputIndex:s,pendingSgrOutputIndex:a,returnValue:f}=p}a!==void 0&&(f=f.slice(0,a),r=F,a=void 0,F=void 0);break}({activeStyles:r,activeHyperlink:o,activeHyperlinkHasVisibleText:i,activeHyperlinkOutputIndex:s,pendingSgrOutputIndex:a,pendingSgrActiveStyles:F,position:c,returnValue:f,include:d}=Ia({token:C,isPastEnd:h,start:u,activeStyles:r,activeHyperlink:o,activeHyperlinkHasVisibleText:i,activeHyperlinkOutputIndex:s,pendingSgrOutputIndex:a,pendingSgrActiveStyles:F,position:c,returnValue:f,include:d}))}return d?(o&&(f+=xa(o)),f+=ya(r),f):""}var Oa=new Intl.Segmenter,kr=new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Format}|\\p{Mark}|\\p{Surrogate})+$","v"),La=new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+","v"),Na=new RegExp("^\\p{RGI_Emoji}$","v"),$a=/^[\d#*]\u20E3$/,Ua=new RegExp("\\p{Extended_Pictographic}","gu");function Wa(e){if(e.length>50)return!1;if($a.test(e))return!0;if(e.includes("\u200D")){let u=e.match(Ua);return u!==null&&u.length>=2}return!1}function ja(e){return e.replace(La,"")}function Ga(e){return kr.test(e)}function Sr(e){return e>=4352&&e<=4447||e>=43360&&e<=43388}function Tr(e){return e>=4448&&e<=4519||e>=55216&&e<=55238}function _r(e){return e>=4520&&e<=4607||e>=55243&&e<=55291}function qa(e){return Sr(e)||Tr(e)||_r(e)}function Ha(e,u){let t=[];for(let D of e)kr.test(D)||t.push(D.codePointAt(0));if(t.length===0)return;let n=0;for(let D=0;D<t.length;D++){let r=t[D];if(!qa(r)){if(n===0)return;for(let o=D;o<t.length;o++)n+=J(t[o],u);return n}if(Sr(r)&&Tr(t[D+1])){n+=2,D+=_r(t[D+2])?2:1;continue}n+=J(r,u)}return n}function Va(e,u){let t=0,n=!0;for(let D of e){if(n){n=!1;continue}D>="\uFF00"&&D<="\uFFEF"&&(t+=J(D.codePointAt(0),u))}return t}function q(e,u={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:n=!1}=u,D=e;if(!n&&(D.includes("\x1B")||D.includes("\x9B"))&&(D=Y(D)),D.length===0)return 0;if(/^[\u0020-\u007E]*$/.test(D))return D.length;let r=0,o={ambiguousAsWide:!t};for(let{segment:i}of Oa.segment(D)){if(Ga(i))continue;if(Na.test(i)||Wa(i)){r+=2;continue}let s=ja(i),a=Ha(s,o);if(a!==void 0){r+=a;continue}let F=s.codePointAt(0);r+=J(F,o),r+=Va(s,o)}return r}function du(e,u,t){if(e.charAt(u)===" ")return u;let n=t?1:-1;for(let D=0;D<=3;D++){let r=u+D*n;if(e.charAt(r)===" ")return r}return u}function me(e,u,t={}){let{position:n="end",space:D=!1,preferTruncationOnSpace:r=!1}=t,{truncationCharacter:o="\u2026"}=t;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof u!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof u}`);if(u<1)return"";let i=q(e);if(i<=u)return e;if(u===1)return o;let s={ESC:27,LEFT_BRACKET:91,LETTER_M:109},a=l=>l>=48&&l<=57||l===59;function F(l){let C=0;for(;C+2<l.length&&l.codePointAt(C)===s.ESC&&l.codePointAt(C+1)===s.LEFT_BRACKET;){let h=C+2;for(;h<l.length&&a(l.codePointAt(h));)h++;if(h<l.length&&l.codePointAt(h)===s.LETTER_M){C=h+1;continue}break}return C}function c(l){let C=l.length;for(;C>1&&l.codePointAt(C-1)===s.LETTER_M;){let h=C-2;for(;h>=0&&a(l.codePointAt(h));)h--;if(h>=1&&l.codePointAt(h-1)===s.ESC&&l.codePointAt(h)===s.LEFT_BRACKET){C=h-1;continue}break}return C}function f(l,C){let h=c(l);return h===l.length?l+C:l.slice(0,h)+C+l.slice(h)}function d(l,C){let h=F(C);return h===0?l+C:C.slice(0,h)+l+C.slice(h)}if(n==="start"){if(r){let C=du(e,i-u+1,!0),h=V(e,C,i).trim();return d(o,h)}D&&(o+=" ");let l=V(e,i-u+q(o),i);return d(o,l)}if(n==="middle"){D&&(o=` ${o} `);let l=Math.floor(u/2);if(r){let C=du(e,l),h=du(e,i-(u-l)+1,!0);return V(e,0,C)+o+V(e,h,i).trim()}return V(e,0,l)+o+V(e,i-(u-l)+q(o),i)}if(n==="end"){if(r){let C=du(e,u-1),h=V(e,0,C);return f(h,o)}D&&(o=` ${o}`);let l=V(e,0,u-q(o));return f(l,o)}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${n}`)}var pt=300*60*1e3;function Ka(e,u=pt){if(e.length===0)return[];let t=[...e].sort((i,s)=>i.timestamp.localeCompare(s.timestamp)),n=[],D=null,r=0,o=Date.now();for(let i of t){let s=new Date(i.timestamp).getTime();(!D||s-r>=u)&&(r=s,D={id:i.timestamp,startTime:i.timestamp,endTime:new Date(s+u).toISOString(),actualEndTime:i.timestamp,isActive:!1,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalTokens:0,cost:0,saved:0,models:[],requests:0},n.push(D));let a=oe(i);D.inputTokens+=i.usage.input_tokens,D.outputTokens+=i.usage.output_tokens,D.cacheReadTokens+=i.usage.cache_read_input_tokens,D.cacheCreationTokens+=i.usage.cache_creation_input_tokens,D.totalTokens=D.inputTokens+D.outputTokens+D.cacheReadTokens+D.cacheCreationTokens,D.cost+=a.total,D.saved+=a.saved,D.requests+=1,D.actualEndTime=i.timestamp,D.models.includes(i.model)||D.models.push(i.model)}for(let i of n){let s=new Date(i.endTime).getTime();i.isActive=o<s}return n}function za(e,u=pt){return Ka(e,u).find(D=>D.isActive)??null}function vr(e,u=pt){let t=za(e,u);if(!t)return{block:null,windowMs:u,elapsedMs:0,remainingMs:0,progress:0,burnRatePerMin:0,costPerMin:0,projectedTotal:0,projectedCost:0};let n=Date.now(),D=new Date(t.startTime).getTime(),r=new Date(t.endTime).getTime(),o=n-D,i=Math.max(0,r-n),s=Math.min(1,o/u),a=o/6e4,F=a>0?t.totalTokens/a:0,c=a>0?t.cost/a:0,f=u/6e4;return{block:t,windowMs:u,elapsedMs:o,remainingMs:i,progress:s,burnRatePerMin:F,costPerMin:c,projectedTotal:F*f,projectedCost:c*f}}function Ir(e,u){let t=u.source==="all"?e:e.filter(h=>h.source===u.source);if(t.length===0)return{sessions:0,messages:0,totalTokens:0,activeDays:0,currentStreak:0,longestStreak:0,peakHour:-1,favoriteModel:null,heatmap:fu(),heatmapMax:0,tokenHeatmap:fu(),tokensSummed:0};let n=new Set,D=new Set,r=new Array(24).fill(0),o=new Map,i=fu(),s=fu(),a=0,F=0;for(let h of t){h.sessionId&&n.add(h.sessionId);let p=new Date(h.timestamp);if(Number.isNaN(p.getTime()))continue;let g=Ya(p);D.add(g);let B=p.getDay(),m=p.getHours();r[m]+=1,i[B][m]+=1,o.set(h.model,(o.get(h.model)??0)+1);let b=h.usage,k=b.input_tokens+b.output_tokens+b.cache_read_input_tokens+b.cache_creation_input_tokens;s[B][m]+=k,a+=k,F+=1}let c=Ja(r),f=Xa(o),{current:d,longest:l}=Za(D,u.streakWindowDays??365),C=0;for(let h of i)for(let p of h)p>C&&(C=p);return{sessions:n.size,messages:F,totalTokens:a,activeDays:D.size,currentStreak:d,longestStreak:l,peakHour:c,favoriteModel:f,heatmap:i,heatmapMax:C,tokenHeatmap:s,tokensSummed:a}}function fu(){return Array.from({length:7},()=>new Array(24).fill(0))}function Ya(e){let u=e.getFullYear(),t=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${u}-${t}-${n}`}function Ja(e){let u=-1,t=-1;for(let n=0;n<e.length;n+=1)e[n]>t&&(t=e[n],u=n);return u}function Xa(e){let u=null,t=-1;for(let[n,D]of e)D>t&&(u=n,t=D);return u}function Za(e,u){if(e.size===0)return{current:0,longest:0};let t=Array.from(e).map(c=>new Date(c+"T00:00:00").getTime()).filter(c=>Number.isFinite(c)).sort((c,f)=>c-f),n=1,D=1;for(let c=1;c<t.length;c+=1)t[c]-t[c-1]===864e5?(D+=1,D>n&&(n=D)):D=1;let r=Qa(Date.now()),o=t[t.length-1];if(r-o>864e5)return{current:0,longest:n};let i=o,s=0,a=0,F=new Set(t);for(;a<u&&F.has(i);)s+=1,i-=864e5,a+=1;return{current:s,longest:n}}function Qa(e){let u=new Date(e);return u.setHours(0,0,0,0),u.getTime()}var ee={brand:[129,140,248],green:[34,197,94],red:[239,68,68],yellow:[234,179,8],cyan:[34,211,238],input:[96,165,250],cacheWrite:[167,139,250],cacheRead:[52,211,153],output:[251,146,60]};function Mr(e){let u=new Xe({level:e?3:0}),t=n=>e?D=>u.rgb(n[0],n[1],n[2])(D):D=>D;return{reset:e?"\x1B[0m":"",bold:n=>u.bold(n),dim:n=>u.dim(n),brand:t(ee.brand),green:t(ee.green),red:t(ee.red),yellow:t(ee.yellow),cyan:t(ee.cyan),input:t(ee.input),cacheWrite:t(ee.cacheWrite),cacheRead:t(ee.cacheRead),output:t(ee.output)}}function pu(e){return q(e)}function hu(e,u,t=" "){let n=u-q(e);return n>0?e+t.repeat(n):e}function Ee(e,u,t=" "){let n=u-q(e);return n>0?t.repeat(n)+e:e}function ht(e,u,t=" "){let n=u-q(e);if(n<=0)return e;let D=Math.floor(n/2),r=n-D;return t.repeat(D)+e+t.repeat(r)}var ec=["","\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u2588"];function Cu(e,u,t){if(u<=0||!Number.isFinite(e)||e<=0)return" ".repeat(Math.max(0,u));let D=Math.min(1,e)*u,r=Math.floor(D),o=D-r,i=Math.round(o*8),s="\u2588".repeat(r);i>0&&r<u&&(s+=ec[i]);let a=hu(s,u," ");return t?t(a):a}var uc=["\u2581","\u2582","\u2583","\u2584","\u2585","\u2586","\u2587","\u2588"];function We(e,u,t){if(u<=0)return"";if(e.length===0)return t?t("\u2500".repeat(u)):"\u2500".repeat(u);let n=[];if(e.length===u)n.push(...e);else if(e.length>u){let o=e.length/u;for(let i=0;i<u;i+=1){let s=Math.floor(i*o),a=Math.floor((i+1)*o),F=0,c=0;for(let f=s;f<Math.min(a,e.length);f+=1)F+=e[f],c+=1;n.push(c>0?F/c:0)}}else{let o=u-e.length;for(let i=0;i<o;i+=1)n.push(0);n.push(...e)}let D=Math.max(...n,0);if(D<=0){let o="\u2500".repeat(u);return t?t(o):o}let r=n.map(o=>uc[Math.min(7,Math.max(0,Math.round(o/D*7)))]).join("");return t?t(r):r}var tc=["","\u2581","\u2582","\u2583","\u2584","\u2585","\u2586","\u2587","\u2588"];function Pr(e,u,t){let n=new Array(u).fill(" ");if(u<=0||t<=0)return n;let D=e.reduce((F,c)=>F+Math.max(0,c.value),0);if(D<=0)return n;let r=D/t*u*8,o=u*8,i=Math.min(r,o),s=i,a=0;for(let F of e){if(F.value<=0||s<=0)continue;let c=Math.min(s,F.value/D*i),f=a,d=a+c,l=Math.floor(f/8),C=Math.min(u-1,Math.floor((d-1e-4)/8));for(let h=l;h<=C;h+=1){let p=h*8,g=Math.max(0,f-p),B=Math.min(8,d-p),m;if(B>=8)m="\u2588";else if(g<=0){let b=Math.max(1,Math.round(B));m=tc[Math.min(8,b)]||"\u2581"}else m="\u2588";n[u-1-h]=F.color?F.color(m):m}s-=c,a=d}return n}function Nr(e,u,t,n){let D=t.width??process.stdout.columns??100,r=t.color!==!1;X.level=r?3:0;let o=Mr(r);if(D<80)return[`[ccgauge] terminal width (${D}) is below the dashboard's 80-column floor.`,"Resize wider for the rich layout, or omit --dashboard for the standard report.","",...Ct(u,t).split(`
|
|
19
|
+
`).map(n=>Zi(n,t,u)).join(`
|
|
20
|
+
`)}var is=le(Nt(),1),ie=`
|
|
21
|
+
`,O=" ",_e="none",hr=()=>{let{env:e,stdout:t,stderr:u}=nt;return t?.columns?t.columns:u?.columns?u.columns:e.COLUMNS?Number.parseInt(e.COLUMNS,10):80},cr=e=>typeof e=="number"?{top:e,right:e*3,bottom:e,left:e*3}:{top:0,right:0,bottom:0,left:0,...e},ve=e=>e===_e?0:2,Qi=e=>{let t=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"],u;if(e===_e){e={};for(let n of t)e[n]=""}if(typeof e=="string"){if(u=dr.default[e],!u)throw new TypeError(`Invalid border style: ${e}`)}else{typeof e?.vertical=="string"&&(e.left=e.vertical,e.right=e.vertical),typeof e?.horizontal=="string"&&(e.top=e.horizontal,e.bottom=e.horizontal);for(let n of t)if(e[n]===null||typeof e[n]!="string")throw new TypeError(`Invalid border style: ${n}`);u=e}return u},es=(e,t,u)=>{let n="",r=P(e);switch(u){case"left":{n=e+t.slice(r);break}case"right":{n=t.slice(r)+e;break}default:{t=t.slice(r),t.length%2===1?(t=t.slice(Math.floor(t.length/2)),n=t.slice(1)+e+t):(t=t.slice(t.length/2),n=t+e+t);break}}return n},ts=(e,{padding:t,width:u,textAlignment:n,height:r})=>{e=(0,zt.default)(e,{align:n});let D=e.split(ie),o=Qe(e),i=u-t.left-t.right;if(o>i){let F=[];for(let c of D){let h=ut(c,i,{hard:!0}),l=(0,zt.default)(h,{align:n}).split(`
|
|
22
|
+
`),C=Math.max(...l.map(f=>P(f)));for(let f of l){let p;switch(n){case"center":{p=O.repeat((i-C)/2)+f;break}case"right":{p=O.repeat(i-C)+f;break}default:{p=f;break}}F.push(p)}}D=F}n==="center"&&o<i?D=D.map(F=>O.repeat((i-o)/2)+F):n==="right"&&o<i&&(D=D.map(F=>O.repeat(i-o)+F));let s=O.repeat(t.left),a=O.repeat(t.right);return D=D.map(F=>{let c=s+F+a;return c+O.repeat(u-P(c))}),t.top>0&&(D=[...Array.from({length:t.top}).fill(O.repeat(u)),...D]),t.bottom>0&&(D=[...D,...Array.from({length:t.bottom}).fill(O.repeat(u))]),r&&D.length>r?D=D.slice(0,r):r&&D.length<r&&(D=[...D,...Array.from({length:r-D.length}).fill(O.repeat(u))]),D.join(ie)},us=(e,t,u)=>{let n=F=>{let c=u.borderColor?Ds(u.borderColor)(F):F;return u.dimBorder?X.dim(c):c},r=F=>u.backgroundColor?os(u.backgroundColor)(F):F,D=Qi(u.borderStyle),o=hr(),i=O.repeat(u.margin.left);if(u.float==="center"){let F=Math.max((o-t-ve(u.borderStyle))/2,0);i=O.repeat(F)}else if(u.float==="right"){let F=Math.max(o-t-u.margin.right-ve(u.borderStyle),0);i=O.repeat(F)}let s="";u.margin.top&&(s+=ie.repeat(u.margin.top)),(u.borderStyle!==_e||u.title)&&(s+=n(i+D.topLeft+(u.title?es(u.title,D.top.repeat(t),u.titleAlignment):D.top.repeat(t))+D.topRight)+ie);let a=e.split(ie);return s+=a.map(F=>i+n(D.left)+r(F)+n(D.right)).join(ie),u.borderStyle!==_e&&(s+=ie+n(i+D.bottomLeft+D.bottom.repeat(t)+D.bottomRight)),u.margin.bottom&&(s+=ie.repeat(u.margin.bottom)),s},ns=e=>{if(e.fullscreen&&nt?.stdout){let t=[nt.stdout.columns,nt.stdout.rows];typeof e.fullscreen=="function"&&(t=e.fullscreen(...t)),e.width||=t[0],e.height||=t[1]}return e.width&&=Math.max(1,e.width-ve(e.borderStyle)),e.height&&=Math.max(1,e.height-ve(e.borderStyle)),e},lr=(e,t)=>t===_e?e:` ${e} `,rs=(e,t)=>{t=ns(t);let u=t.width!==void 0,n=hr(),r=ve(t.borderStyle),D=n-t.margin.left-t.margin.right-r,o=Qe(ut(e,n-r,{hard:!0,trim:!1}))+t.padding.left+t.padding.right;if(t.title&&u?(t.title=t.title.slice(0,Math.max(0,t.width-2)),t.title&&=lr(t.title,t.borderStyle)):t.title&&(t.title=t.title.slice(0,Math.max(0,D-2)),t.title&&(t.title=lr(t.title,t.borderStyle),P(t.title)>o&&(t.width=P(t.title)))),t.width||=o,!u){if(t.margin.left&&t.margin.right&&t.width>D){let s=(n-t.width-r)/(t.margin.left+t.margin.right);t.margin.left=Math.max(0,Math.floor(t.margin.left*s)),t.margin.right=Math.max(0,Math.floor(t.margin.right*s))}t.width=Math.min(t.width,n-r-t.margin.left-t.margin.right)}return t.width-(t.padding.left+t.padding.right)<=0&&(t.padding.left=0,t.padding.right=0),t.height&&t.height-(t.padding.top+t.padding.bottom)<=0&&(t.padding.top=0,t.padding.bottom=0),t},Yt=e=>e.match(/^#(?:[0-f]{3}){1,2}$/i),Fr=e=>typeof e=="string"&&(X[e]??Yt(e)),Ds=e=>Yt(e)?X.hex(e):X[e],os=e=>Yt(e)?X.bgHex(e):X[Ut(["bg",e])];function Xt(e,t){if(t={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...t},t.align&&(t.textAlignment=t.align),t.borderColor&&!Fr(t.borderColor))throw new Error(`${t.borderColor} is not a valid borderColor`);if(t.backgroundColor&&!Fr(t.backgroundColor))throw new Error(`${t.backgroundColor} is not a valid backgroundColor`);return t.padding=cr(t.padding),t.margin=cr(t.margin),t=rs(e,t),e=ts(e,t),us(e,t.width,t)}var GD=le(aD(),1);import cD from"node:process";function ou(){let{env:e}=cD,{TERM:t,TERM_PROGRAM:u}=e;return cD.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||u==="Terminus-Sublime"||u==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var lD={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},FD={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Hs={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Vs={...lD,...FD},Ks={...lD,...Hs},zs=ou(),Ys=zs?Vs:Ks,I=Ys,qF=Object.entries(FD);var dD=(e=0)=>t=>`\x1B[${t+e}m`,hD=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,pD=(e=0)=>(t,u,n)=>`\x1B[${38+e};2;${t};${u};${n}m`,w={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},VF=Object.keys(w.modifier),Xs=Object.keys(w.color),Js=Object.keys(w.bgColor),KF=[...Xs,...Js];function Zs(){let e=new Map;for(let[t,u]of Object.entries(w)){for(let[n,r]of Object.entries(u))w[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},u[n]=w[n],e.set(r[0],r[1]);Object.defineProperty(w,t,{value:u,enumerable:!1})}return Object.defineProperty(w,"codes",{value:e,enumerable:!1}),w.color.close="\x1B[39m",w.bgColor.close="\x1B[49m",w.color.ansi=dD(),w.color.ansi256=hD(),w.color.ansi16m=pD(),w.bgColor.ansi=dD(10),w.bgColor.ansi256=hD(10),w.bgColor.ansi16m=pD(10),Object.defineProperties(w,{rgbToAnsi256:{value(t,u,n){return t===u&&u===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(u/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let u=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!u)return[0,0,0];let[n]=u;n.length===3&&(n=[...n].map(D=>D+D).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:t=>w.rgbToAnsi256(...w.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let u,n,r;if(t>=232)u=((t-232)*10+8)/255,n=u,r=u;else{t-=16;let i=t%36;u=Math.floor(t/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let D=Math.max(u,n,r)*2;if(D===0)return 30;let o=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(u));return D===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,u,n)=>w.ansi256ToAnsi(w.rgbToAnsi256(t,u,n)),enumerable:!1},hexToAnsi:{value:t=>w.ansi256ToAnsi(w.hexToAnsi256(t)),enumerable:!1}}),w}var Qs=Zs(),Z=Qs;function st(e){return Number.isInteger(e)?we(e)||ke(e):!1}var Ne=27,gD=144,ED=152,BD=155,bD=156,Ft=157,AD=158,RD=159,$e=new Set([Ne,gD,ED,BD,bD,Ft,AD,RD]),ge="\x1B",cu="\x07",du="[",yD="]",ea="P",ta="X",ua="^",na="_",xD="m",ct="\\",wD=`${ge}${ct}`,ra="\x9D",lt="\x9C",lu=`${ge}${yD}8;`,Fu=`${ra}8;`,Da=`${lu};`,oa=`${Fu};`,ia="0".codePointAt(0),sa="9".codePointAt(0),aa=";".codePointAt(0),ca=":".codePointAt(0),la="0".codePointAt(0),Fa="?".codePointAt(0),da=" ".codePointAt(0),ha="/".codePointAt(0),pa="@".codePointAt(0),fa="~".codePointAt(0),Ca=127462,ma=127487,fD=0,at=38,iu=39,ga=48,su=49,Ea=5,Ba=2,CD=3,mD=5,ba=2,Aa=4,Ra=65039,ya=8419,xa=new RegExp("\\p{Emoji_Presentation}","v"),hu=new Intl.Segmenter(void 0,{granularity:"grapheme"}),kD=new Set;for(let[,e]of Z.codes)kD.add(e);function wa(e){return e>=ia&&e<=sa||e===aa||e===ca}function ka(e){return e>=la&&e<=Fa}function Sa(e){return e>=da&&e<=ha}function Ta(e){return e>=pa&&e<=fa}function _a(e){return e>=Ca&&e<=ma}function G(e,t){return{token:{type:"control",code:e},endIndex:t}}function va(e){if(xa.test(e))return!0;for(let t of e){let u=t.codePointAt(0);if(u===Ra||u===ya)return!0}return!1}function SD(e){let t=0;for(let u of e){let n=u.codePointAt(0);if(st(n))return 2;_a(n)&&t++}return t>=1||va(e)?2:1}function Ia(e){return e.startsWith("\x9B")?"\x9B":`${ge}${du}`}function Le(e,t){return`${e}${t.join(";")}${xD}`}function Ma(e){let t=[],u=Ia(e),n;if(e.startsWith(`${ge}${du}`))n=e.slice(2,-1);else if(e.startsWith("\x9B"))n=e.slice(1,-1);else return t;let r=n.length===0?[String(fD)]:n.split(";"),D=0;for(;D<r.length;){let o=Number.parseInt(r[D],10);if(Number.isNaN(o)){D++;continue}if(o===fD){t.push({type:"reset"}),D++;continue}if(o===at||o===ga){let a=Number.parseInt(r[D+1],10);if(a===Ea&&D+ba<r.length){let c=Le(u,r.slice(D,D+CD));t.push({type:"start",code:c,endCode:Z.color.ansi(o===at?iu:su)}),D+=CD;continue}if(a===Ba&&D+Aa<r.length){let c=Le(u,r.slice(D,D+mD));t.push({type:"start",code:c,endCode:Z.color.ansi(o===at?iu:su)}),D+=mD;continue}let F=Le(u,[r[D]]);t.push({type:"start",code:F,endCode:Z.color.ansi(o===at?iu:su)}),D++;continue}if(kD.has(o)){t.push({type:"end",endCode:Z.color.ansi(o)}),D++;continue}let i=Z.codes.get(o);if(i!==void 0){let a=Le(u,[r[D]]);t.push({type:"start",code:a,endCode:Z.color.ansi(i)}),D++;continue}let s=Le(u,[r[D]]);t.push({type:"start",code:s,endCode:Z.reset.open}),D++}return t.length===0&&t.push({type:"reset"}),t}function Pa(e,t){let u=e.codePointAt(t),n;if(u===Ne){if(e[t+1]!==du)return;n=t+2}else if(u===BD)n=t+1;else return;let r=!0;for(let D=n;D<e.length;D++){let o=e.codePointAt(D);if(Ta(o)){let s=e.slice(t,D+1);return e[D]!==xD||!r?G(s,D+1):{token:{type:"sgr",code:s,fragments:Ma(s)},endIndex:D+1}}if(ka(o)){wa(o)||(r=!1);continue}if(Sa(o)){r=!1;continue}let i=D;return G(e.slice(t,i),i)}return G(e.slice(t),e.length)}function Oa(e,t){let u,n,r=e.codePointAt(t);if(r===Ne&&e.startsWith(lu,t))u=lu,n=Da;else if(r===Ft&&e.startsWith(Fu,t))u=Fu,n=oa;else return;let D=e.indexOf(";",t+u.length);if(D===-1)return G(e.slice(t),e.length);for(let o=D+1;o<e.length;o++){let i=e[o];if(i===cu){let s=e.slice(t,o+1),a=o===D+1?"close":"open";return{token:{type:"hyperlink",code:s,action:a,closePrefix:n,terminator:cu},endIndex:o+1}}if(i===ge&&e[o+1]===ct){let s=e.slice(t,o+2),a=o===D+1?"close":"open";return{token:{type:"hyperlink",code:s,action:a,closePrefix:n,terminator:wD},endIndex:o+2}}if(i===lt){let s=e.slice(t,o+1),a=o===D+1?"close":"open";return{token:{type:"hyperlink",code:s,action:a,closePrefix:n,terminator:lt},endIndex:o+1}}}return G(e.slice(t),e.length)}function La(e,t){let u=e.codePointAt(t),n,r=!1;switch(u){case Ne:{switch(e[t+1]){case yD:{n=t+2,r=!0;break}case ea:case ta:case ua:case na:{n=t+2;break}case ct:return G(wD,t+2);default:return}break}case Ft:{n=t+1,r=!0;break}case gD:case ED:case AD:case RD:{n=t+1;break}case bD:return G(lt,t+1);default:return}for(let D=n;D<e.length;D++){if(r&&e[D]===cu)return G(e.slice(t,D+1),D+1);if(e[D]===ge&&e[D+1]===ct)return G(e.slice(t,D+2),D+2);if(e[D]===lt)return G(e.slice(t,D+1),D+1)}return G(e.slice(t),e.length)}function Ue(e,t){let u=e.codePointAt(t);if(u===Ne||u===Ft){let r=Oa(e,t);if(r)return r}let n=La(e,t);return n||Pa(e,t)}function TD(e,t,u){for(;t<e.length;){let n=e.codePointAt(t);if(!$e.has(n))break;let r=Ue(e,t);if(!r)break;u.push(r.token),t=r.endIndex}return t}function _D(e,t,u){let n=u.containing(t);if(!(!n||n.index!==t))return{token:{type:"character",value:n.segment,visibleWidth:SD(n.segment),isGraphemeContinuation:!1},endIndex:t+n.segment.length}}function Na(e){let t=[],u=0;for(;u<e.length;){let n=e.codePointAt(u);if($e.has(n)){let D=Ue(e,u);if(D){u=D.endIndex;continue}}let r=String.fromCodePoint(n);t.push({value:r,visibleWidth:1,isGraphemeContinuation:!1}),u+=r.length}return t}function $a(e){if(e.length===0)return;let t=e.map(({value:D})=>D).join(""),u=[],n=0;for(let D of e)u.push(n),n+=D.value.length;let r=0;for(let D of hu.segment(t)){for(;r<e.length&&u[r]<D.index;)r++;let o=r,i=!0;for(;o<e.length&&u[o]<D.index+D.segment.length;)e[o].visibleWidth=i?SD(D.segment):0,e[o].isGraphemeContinuation=!i,i=!1,o++;r=o}}function au(e,{endCharacter:t=Number.POSITIVE_INFINITY}={}){let u=[],n=Na(e);$a(n);let r=0,D=0,o=0;for(;r<e.length;){let i=e.codePointAt(r);if($e.has(i)){let h=Ue(e,r);if(h){u.push(h.token),r=h.endIndex;continue}}let s=String.fromCodePoint(i),a=n[D],F=st(i)?2:s.length;a&&(F=a.visibleWidth);let c={type:"character",value:s,visibleWidth:F,isGraphemeContinuation:a?a.isGraphemeContinuation:!1};if(u.push(c),r+=s.length,D++,o+=c.visibleWidth,o>=t){let h=n[D];if(!h||!h.isGraphemeContinuation){r=TD(e,r,u);break}}}return u}function vD(e,t){let u=`${e}${t}`,n=e.length;for(let r of hu.segment(u)){if(r.index===n)return!1;if(r.index>n)return!0}return!0}function Ua(e,t,u,n){if(!u)return!1;let r=t,D=!1;for(;r<e.length;){let o=e.codePointAt(r);if($e.has(o)){let s=Ue(e,r);if(s){D=!0,r=s.endIndex;continue}}if(!D)return!1;let i=_D(e,r,n);return i?vD(u,i.token.value):!0}return!1}function pu(e,{endCharacter:t=Number.POSITIVE_INFINITY}={}){let u=[],n=hu.segment(e),r=0,D=0,o,i=!1;for(;r<e.length;){let s=e.codePointAt(r);if($e.has(s)){let F=Ue(e,r);if(F){u.push(F.token),r=F.endIndex,i=!0;continue}}let a=_D(e,r,n);if(!a)return au(e,{endCharacter:t});if(i&&o&&vD(o,a.token.value))return au(e,{endCharacter:t});if(u.push(a.token),r=a.endIndex,D+=a.token.visibleWidth,i=!1,o=a.token.value,D>=t){if(Ua(e,r,o,n))return au(e,{endCharacter:t});r=TD(e,r,u);break}}return u}function Wa(e,t){for(let u of t)switch(u.type){case"reset":{e.clear();break}case"end":{e.delete(u.endCode);break}case"start":{e.delete(u.endCode),e.set(u.endCode,u.code);break}default:break}return e}function ja(e){return[...e.keys()].toReversed().join("")}function Ga(e){return`${e.closePrefix}${e.terminator}`}function qa(e,t){let u=!1,n=!1;for(let r of e.fragments){if(r.type==="start"){u=!0;continue}if(r.type==="reset"&&t.size>0){n=!0;continue}r.type==="end"&&t.has(r.endCode)&&(n=!0)}return n&&!u}function Ha(e){return e.fragments.some(t=>t.type==="start")}function ID(e){if(e.activeHyperlink&&!e.activeHyperlinkHasVisibleText&&e.activeHyperlinkOutputIndex!==void 0){let t=e.activeHyperlink.code.length;e.returnValue=e.returnValue.slice(0,e.activeHyperlinkOutputIndex)+e.returnValue.slice(e.activeHyperlinkOutputIndex+t),e.pendingSgrOutputIndex!==void 0&&e.pendingSgrOutputIndex>e.activeHyperlinkOutputIndex&&(e.pendingSgrOutputIndex-=t)}e.activeHyperlink=void 0,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0}function Va(e){return e.isPastEnd&&!qa(e.token,e.activeStyles)||(e.include&&Ha(e.token)&&e.pendingSgrOutputIndex===void 0&&(e.pendingSgrOutputIndex=e.returnValue.length,e.pendingSgrActiveStyles=new Map(e.activeStyles)),e.activeStyles=Wa(e.activeStyles,e.token.fragments),e.include&&(e.returnValue+=e.token.code)),e}function Ka(e){if(e.isPastEnd&&(e.token.action!=="close"||!e.activeHyperlink))return e;if(e.token.action==="open")e.activeHyperlink=e.token,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0,e.include&&(e.activeHyperlinkOutputIndex=e.returnValue.length);else if(e.token.action==="close"){if(e.include&&e.activeHyperlink&&!e.activeHyperlinkHasVisibleText)return ID(e),e;e.activeHyperlink=void 0,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0}return e.include&&(e.returnValue+=e.token.code),e}function za(e){return!e.isPastEnd&&e.include&&(e.returnValue+=e.token.code),e}function Ya(e){return!e.include&&e.position>=e.start&&!e.token.isGraphemeContinuation&&(e.include=!0,e.returnValue=[...e.activeStyles.values()].join(""),e.activeHyperlink&&(e.activeHyperlinkOutputIndex=e.returnValue.length,e.returnValue+=e.activeHyperlink.code)),e.include&&(e.returnValue+=e.token.value,e.pendingSgrOutputIndex=void 0,e.pendingSgrActiveStyles=void 0,e.activeHyperlink&&(e.activeHyperlinkHasVisibleText=!0)),e.position+=e.token.visibleWidth,e}var Xa={sgr:Va,hyperlink:Ka,control:za,character:Ya};function Ja(e){let t=Xa[e.token.type];return t?t(e):e}function Za(e){let t=Array.from({length:e.length},()=>!1),u=!1;for(let n=e.length-1;n>=0;n--){let r=e[n];t[n]=u,r.type==="character"&&(u=!!r.isGraphemeContinuation)}return t}function Qa(e,t,u){return u===void 0?!1:t>=u?!0:e.type==="character"&&!e.isGraphemeContinuation&&t+e.visibleWidth>u}function V(e,t,u){let n=pu(e,{endCharacter:u}),r=Za(n),D=new Map,o,i=!1,s,a,F,c=0,h="",d=!1;for(let[l,C]of n.entries()){let f=Qa(C,c,u);if(f&&C.type!=="character"&&r[l]&&(f=!1),f&&C.type==="character"&&!C.isGraphemeContinuation){if(o&&!i){let p={activeHyperlink:o,activeHyperlinkHasVisibleText:i,activeHyperlinkOutputIndex:s,pendingSgrOutputIndex:a,returnValue:h};ID(p),{activeHyperlink:o,activeHyperlinkHasVisibleText:i,activeHyperlinkOutputIndex:s,pendingSgrOutputIndex:a,returnValue:h}=p}a!==void 0&&(h=h.slice(0,a),D=F,a=void 0,F=void 0);break}({activeStyles:D,activeHyperlink:o,activeHyperlinkHasVisibleText:i,activeHyperlinkOutputIndex:s,pendingSgrOutputIndex:a,pendingSgrActiveStyles:F,position:c,returnValue:h,include:d}=Ja({token:C,isPastEnd:f,start:t,activeStyles:D,activeHyperlink:o,activeHyperlinkHasVisibleText:i,activeHyperlinkOutputIndex:s,pendingSgrOutputIndex:a,pendingSgrActiveStyles:F,position:c,returnValue:h,include:d}))}return d?(o&&(h+=Ga(o)),h+=ja(D),h):""}var ec=new Intl.Segmenter,MD=new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Format}|\\p{Mark}|\\p{Surrogate})+$","v"),tc=new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+","v"),uc=new RegExp("^\\p{RGI_Emoji}$","v"),nc=/^[\d#*]\u20E3$/,rc=new RegExp("\\p{Extended_Pictographic}","gu");function Dc(e){if(e.length>50)return!1;if(nc.test(e))return!0;if(e.includes("\u200D")){let t=e.match(rc);return t!==null&&t.length>=2}return!1}function oc(e){return e.replace(tc,"")}function ic(e){return MD.test(e)}function PD(e){return e>=4352&&e<=4447||e>=43360&&e<=43388}function OD(e){return e>=4448&&e<=4519||e>=55216&&e<=55238}function LD(e){return e>=4520&&e<=4607||e>=55243&&e<=55291}function sc(e){return PD(e)||OD(e)||LD(e)}function ac(e,t){let u=[];for(let r of e)MD.test(r)||u.push(r.codePointAt(0));if(u.length===0)return;let n=0;for(let r=0;r<u.length;r++){let D=u[r];if(!sc(D)){if(n===0)return;for(let o=r;o<u.length;o++)n+=Y(u[o],t);return n}if(PD(D)&&OD(u[r+1])){n+=2,r+=LD(u[r+2])?2:1;continue}n+=Y(D,t)}return n}function cc(e,t){let u=0,n=!0;for(let r of e){if(n){n=!1;continue}r>="\uFF00"&&r<="\uFFEF"&&(u+=Y(r.codePointAt(0),t))}return u}function q(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:u=!0,countAnsiEscapeCodes:n=!1}=t,r=e;if(!n&&(r.includes("\x1B")||r.includes("\x9B"))&&(r=z(r)),r.length===0)return 0;if(/^[\u0020-\u007E]*$/.test(r))return r.length;let D=0,o={ambiguousAsWide:!u};for(let{segment:i}of ec.segment(r)){if(ic(i))continue;if(uc.test(i)||Dc(i)){D+=2;continue}let s=oc(i),a=ac(s,o);if(a!==void 0){D+=a;continue}let F=s.codePointAt(0);D+=Y(F,o),D+=cc(s,o)}return D}function dt(e,t,u){if(e.charAt(t)===" ")return t;let n=u?1:-1;for(let r=0;r<=3;r++){let D=t+r*n;if(e.charAt(D)===" ")return D}return t}function Ee(e,t,u={}){let{position:n="end",space:r=!1,preferTruncationOnSpace:D=!1}=u,{truncationCharacter:o="\u2026"}=u;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof t!="number")throw new TypeError(`Expected \`columns\` to be a number, got ${typeof t}`);if(t<1)return"";let i=q(e);if(i<=t)return e;if(t===1)return o;let s={ESC:27,LEFT_BRACKET:91,LETTER_M:109},a=l=>l>=48&&l<=57||l===59;function F(l){let C=0;for(;C+2<l.length&&l.codePointAt(C)===s.ESC&&l.codePointAt(C+1)===s.LEFT_BRACKET;){let f=C+2;for(;f<l.length&&a(l.codePointAt(f));)f++;if(f<l.length&&l.codePointAt(f)===s.LETTER_M){C=f+1;continue}break}return C}function c(l){let C=l.length;for(;C>1&&l.codePointAt(C-1)===s.LETTER_M;){let f=C-2;for(;f>=0&&a(l.codePointAt(f));)f--;if(f>=1&&l.codePointAt(f-1)===s.ESC&&l.codePointAt(f)===s.LEFT_BRACKET){C=f-1;continue}break}return C}function h(l,C){let f=c(l);return f===l.length?l+C:l.slice(0,f)+C+l.slice(f)}function d(l,C){let f=F(C);return f===0?l+C:C.slice(0,f)+l+C.slice(f)}if(n==="start"){if(D){let C=dt(e,i-t+1,!0),f=V(e,C,i).trim();return d(o,f)}r&&(o+=" ");let l=V(e,i-t+q(o),i);return d(o,l)}if(n==="middle"){r&&(o=` ${o} `);let l=Math.floor(t/2);if(D){let C=dt(e,l),f=dt(e,i-(t-l)+1,!0);return V(e,0,C)+o+V(e,f,i).trim()}return V(e,0,l)+o+V(e,i-(t-l)+q(o),i)}if(n==="end"){if(D){let C=dt(e,t-1),f=V(e,0,C);return h(f,o)}r&&(o=` ${o}`);let l=V(e,0,t-q(o));return h(l,o)}throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${n}`)}var fu=300*60*1e3;function lc(e,t=fu){if(e.length===0)return[];let u=[...e].sort((i,s)=>i.timestamp.localeCompare(s.timestamp)),n=[],r=null,D=0,o=Date.now();for(let i of u){let s=new Date(i.timestamp).getTime();(!r||s-D>=t)&&(D=s,r={id:i.timestamp,startTime:i.timestamp,endTime:new Date(s+t).toISOString(),actualEndTime:i.timestamp,isActive:!1,inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0,totalTokens:0,cost:0,saved:0,models:[],requests:0},n.push(r));let a=oe(i);r.inputTokens+=i.usage.input_tokens,r.outputTokens+=i.usage.output_tokens,r.cacheReadTokens+=i.usage.cache_read_input_tokens,r.cacheCreationTokens+=i.usage.cache_creation_input_tokens,r.totalTokens=r.inputTokens+r.outputTokens+r.cacheReadTokens+r.cacheCreationTokens,r.cost+=a.total,r.saved+=a.saved,r.requests+=1,r.actualEndTime=i.timestamp,r.models.includes(i.model)||r.models.push(i.model)}for(let i of n){let s=new Date(i.endTime).getTime();i.isActive=o<s}return n}function Fc(e,t=fu){return lc(e,t).find(r=>r.isActive)??null}function ND(e,t=fu){let u=Fc(e,t);if(!u)return{block:null,windowMs:t,elapsedMs:0,remainingMs:0,progress:0,burnRatePerMin:0,costPerMin:0,projectedTotal:0,projectedCost:0};let n=Date.now(),r=new Date(u.startTime).getTime(),D=new Date(u.endTime).getTime(),o=n-r,i=Math.max(0,D-n),s=Math.min(1,o/t),a=o/6e4,F=a>0?u.totalTokens/a:0,c=a>0?u.cost/a:0,h=t/6e4;return{block:u,windowMs:t,elapsedMs:o,remainingMs:i,progress:s,burnRatePerMin:F,costPerMin:c,projectedTotal:F*h,projectedCost:c*h}}function $D(e,t){let u=t.source==="all"?e:e.filter(f=>f.source===t.source);if(u.length===0)return{sessions:0,messages:0,totalTokens:0,activeDays:0,currentStreak:0,longestStreak:0,peakHour:-1,favoriteModel:null,heatmap:ht(),heatmapMax:0,tokenHeatmap:ht(),tokensSummed:0};let n=new Set,r=new Set,D=new Array(24).fill(0),o=new Map,i=ht(),s=ht(),a=0,F=0;for(let f of u){f.sessionId&&n.add(f.sessionId);let p=new Date(f.timestamp);if(Number.isNaN(p.getTime()))continue;let m=dc(p);r.add(m);let B=p.getDay(),g=p.getHours();D[g]+=1,i[B][g]+=1,o.set(f.model,(o.get(f.model)??0)+1);let b=f.usage,k=b.input_tokens+b.output_tokens+b.cache_read_input_tokens+b.cache_creation_input_tokens;s[B][g]+=k,a+=k,F+=1}let c=hc(D),h=pc(o),{current:d,longest:l}=fc(r,t.streakWindowDays??365),C=0;for(let f of i)for(let p of f)p>C&&(C=p);return{sessions:n.size,messages:F,totalTokens:a,activeDays:r.size,currentStreak:d,longestStreak:l,peakHour:c,favoriteModel:h,heatmap:i,heatmapMax:C,tokenHeatmap:s,tokensSummed:a}}function ht(){return Array.from({length:7},()=>new Array(24).fill(0))}function dc(e){let t=e.getFullYear(),u=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${u}-${n}`}function hc(e){let t=-1,u=-1;for(let n=0;n<e.length;n+=1)e[n]>u&&(u=e[n],t=n);return t}function pc(e){let t=null,u=-1;for(let[n,r]of e)r>u&&(t=n,u=r);return t}function fc(e,t){if(e.size===0)return{current:0,longest:0};let u=Array.from(e).map(c=>new Date(c+"T00:00:00").getTime()).filter(c=>Number.isFinite(c)).sort((c,h)=>c-h),n=1,r=1;for(let c=1;c<u.length;c+=1)u[c]-u[c-1]===864e5?(r+=1,r>n&&(n=r)):r=1;let D=Cc(Date.now()),o=u[u.length-1];if(D-o>864e5)return{current:0,longest:n};let i=o,s=0,a=0,F=new Set(u);for(;a<t&&F.has(i);)s+=1,i-=864e5,a+=1;return{current:s,longest:n}}function Cc(e){let t=new Date(e);return t.setHours(0,0,0,0),t.getTime()}var Q={brand:[129,140,248],green:[34,197,94],red:[239,68,68],yellow:[234,179,8],cyan:[34,211,238],input:[96,165,250],cacheWrite:[167,139,250],cacheRead:[52,211,153],output:[251,146,60]};function UD(e){let t=new Je({level:e?3:0}),u=n=>e?r=>t.rgb(n[0],n[1],n[2])(r):r=>r;return{reset:e?"\x1B[0m":"",bold:n=>t.bold(n),dim:n=>t.dim(n),brand:u(Q.brand),green:u(Q.green),red:u(Q.red),yellow:u(Q.yellow),cyan:u(Q.cyan),input:u(Q.input),cacheWrite:u(Q.cacheWrite),cacheRead:u(Q.cacheRead),output:u(Q.output)}}function pt(e){return q(e)}function ft(e,t,u=" "){let n=t-q(e);return n>0?e+u.repeat(n):e}function Be(e,t,u=" "){let n=t-q(e);return n>0?u.repeat(n)+e:e}function Cu(e,t,u=" "){let n=t-q(e);if(n<=0)return e;let r=Math.floor(n/2),D=n-r;return u.repeat(r)+e+u.repeat(D)}var mc=["","\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u2588"];function Ct(e,t,u){if(t<=0||!Number.isFinite(e)||e<=0)return" ".repeat(Math.max(0,t));let r=Math.min(1,e)*t,D=Math.floor(r),o=r-D,i=Math.round(o*8),s="\u2588".repeat(D);i>0&&D<t&&(s+=mc[i]);let a=ft(s,t," ");return u?u(a):a}var gc=["\u2581","\u2582","\u2583","\u2584","\u2585","\u2586","\u2587","\u2588"];function We(e,t,u){if(t<=0)return"";if(e.length===0)return u?u("\u2500".repeat(t)):"\u2500".repeat(t);let n=[];if(e.length===t)n.push(...e);else if(e.length>t){let o=e.length/t;for(let i=0;i<t;i+=1){let s=Math.floor(i*o),a=Math.floor((i+1)*o),F=0,c=0;for(let h=s;h<Math.min(a,e.length);h+=1)F+=e[h],c+=1;n.push(c>0?F/c:0)}}else{let o=t-e.length;for(let i=0;i<o;i+=1)n.push(0);n.push(...e)}let r=Math.max(...n,0);if(r<=0){let o="\u2500".repeat(t);return u?u(o):o}let D=n.map(o=>gc[Math.min(7,Math.max(0,Math.round(o/r*7)))]).join("");return u?u(D):D}var Ec=["","\u2581","\u2582","\u2583","\u2584","\u2585","\u2586","\u2587","\u2588"];function WD(e,t,u){let n=new Array(t).fill(" ");if(t<=0||u<=0)return n;let r=e.reduce((F,c)=>F+Math.max(0,c.value),0);if(r<=0)return n;let D=r/u*t*8,o=t*8,i=Math.min(D,o),s=i,a=0;for(let F of e){if(F.value<=0||s<=0)continue;let c=Math.min(s,F.value/r*i),h=a,d=a+c,l=Math.floor(h/8),C=Math.min(t-1,Math.floor((d-1e-4)/8));for(let f=l;f<=C;f+=1){let p=f*8,m=Math.max(0,h-p),B=Math.min(8,d-p),g;if(B>=8)g="\u2588";else if(m<=0){let b=Math.max(1,Math.round(B));g=Ec[Math.min(8,b)]||"\u2581"}else g="\u2588";n[t-1-f]=F.color?F.color(g):g}s-=c,a=d}return n}function qD(e,t,u,n){let r=u.width??process.stdout.columns??100,D=u.color!==!1;X.level=D?3:0;let o=UD(D);if(r<80)return[`[ccgauge] terminal width (${r}) is below the dashboard's 80-column floor.`,"Resize wider for the rich layout, or omit --dashboard for the standard report.","",...mu(t,u).split(`
|
|
23
23
|
`)].join(`
|
|
24
|
-
`);let i=
|
|
25
|
-
`)}function
|
|
26
|
-
`)),s+o<e.length&&i.push("")}return i}function
|
|
27
|
-
`);return
|
|
28
|
-
`)),n=Math.max(...
|
|
29
|
-
`)}function
|
|
30
|
-
`)}function
|
|
31
|
-
`);let i=new
|
|
24
|
+
`);let i=r-4,s=[];return u.banner!==!1&&(s.push(...Bc(o,i,t)),s.push("")),s.push(...Ac(o,i,e,t)),s.push(""),u.compact!==!0&&t.trend.length>0&&(s.push(...xc(o,i,t)),s.push("")),s.push(...wc(o,i,t)),s.push(""),s.push(...kc(o,i,n)),s.push(""),s.push(...Sc(o,n,t,u)),s.map(a=>" "+a).join(`
|
|
25
|
+
`)}function Bc(e,t,u){let n=`${e.brand(e.bold("ccgauge"))} ${e.dim(I.line)} ${e.bold("dashboard")}`,r=e.dim([`range: ${u.range}`,`source: ${u.source}`,`by: ${u.by}`,`generated ${new Date(u.generatedAt).toLocaleString()}`].join(` ${I.bullet} `)),D=pt(n),o=pt(r),i=Math.max(2,t-D-o);return[`${n}${" ".repeat(i)}${r}`]}function bc(e,t){function u(D){return ND(e.filter(o=>o.source===D),De(D).capabilities.blockWindowMs)}if(t==="claude")return u("claude");if(t==="codex")return u("codex");let n=u("claude");if(n.block)return n;let r=u("codex");return r.block?r:n}function Ac(e,t,u,n){let r=n.totals,D=n.trend.map(d=>d.tokens),o=n.trend.map(d=>d.cost),i=n.trend.map(d=>Math.max(0,d.cost-d.cost*.95)),s=n.trend.map(d=>d.turns),a=r.input+r.cacheRead+r.cacheWrite,F=a>0?r.cacheRead/a:0,c=bc(u.records,n.source),h=[{label:"Total tokens",value:e.bold(v(r.total)),sub:`${r.requests.toLocaleString()} reqs \xB7 ${r.turns.toLocaleString()} convs`,spark:We(D,14,e.input)},{label:"Cost",value:e.bold(N(r.cost)),sub:r.cost>0?`${N(r.cost/Math.max(1,r.requests))} / req`:"\u2014",spark:We(o,14,e.output)},{label:"Cache saved",value:e.bold(e.green(N(r.saved))),sub:"vs full input pricing",spark:We(i,14,e.green)},{label:"Cache hit",value:e.bold(e.green(he(F,0))),spark:Ct(F,14,e.green),sub:`${v(r.cacheRead)} cached`},{label:"Conversations",value:e.bold(r.turns.toLocaleString()),sub:r.requests>0?`${(r.requests/Math.max(1,r.turns)).toFixed(1)} reqs/turn`:"\u2014",spark:We(s,14,e.cacheRead)},{label:"Active 5h block",value:c?.block?e.bold(un(c.remainingMs)):e.dim("idle"),spark:c?.block?Ct(c.progress,14,e.yellow):void 0,sub:c?.block?`${he(c.progress,0)} elapsed`:"no active window"}];return Rc(h,e,t)}function Rc(e,t,u){let o=Math.max(1,Math.floor((u+1)/27)),i=[];for(let s=0;s<e.length;s+=o){let F=e.slice(s,s+o).map(c=>yc(c,22,t));i.push(...HD(F,1).split(`
|
|
26
|
+
`)),s+o<e.length&&i.push("")}return i}function yc(e,t,u){let n=t,r=[u.dim(e.label.toUpperCase()),"",Ee(e.value,n),e.spark?Ee(e.spark,n):"",u.dim(Ee(e.sub,n))].join(`
|
|
27
|
+
`);return Xt(r,{padding:{top:0,right:1,bottom:0,left:1},borderStyle:"round",borderColor:"#5a5a64",width:t+4,textAlignment:"left"})}function HD(e,t){let u=e.map(i=>i.split(`
|
|
28
|
+
`)),n=Math.max(...u.map(i=>i.length)),r=u.map(i=>Math.max(...i.map(pt))),D=" ".repeat(t),o=[];for(let i=0;i<n;i+=1){let s=u.map((a,F)=>ft(a[i]??"",r[F]));o.push(s.join(D))}return o.join(`
|
|
29
|
+
`)}function xc(e,t,u){let n=u.trend,r=10,D=Math.max(4,Math.min(8,Math.floor((t-8)/Math.max(1,n.length)))),o=Math.max(...n.map(p=>p.input+p.output+p.cacheRead+p.cacheWrite),1),i=`${e.brand(I.pointerSmall)} ${e.bold("Token usage trend")} ${e.dim(`(${u.gran} ${I.bullet} stacked: input / cache-w / cache-r / output)`)}`,s=n.map(p=>WD([{value:p.input,color:e.input},{value:p.cacheWrite,color:e.cacheWrite},{value:p.cacheRead,color:e.cacheRead},{value:p.output,color:e.output}],r,o)),a=[Be(v(o),7),Be(v(o/2),7),Be("0",7)],F=p=>p===0?a[0]:p===Math.floor((r-1)/2)?a[1]:p===r-1?a[2]:" ".repeat(7),c=[i,""];for(let p=0;p<r;p+=1){let m=s.map(B=>Cu(B[p],D));c.push(`${e.dim(F(p))} ${e.dim("\u2502")} ${m.join("")}`)}let h="\u2500".repeat(Math.min(t-9,D*n.length));c.push(`${" ".repeat(7)} ${e.dim("\u2514")}${e.dim(h)}`);let d=n[0]?.label??"",l=Math.max(1,Math.ceil((d.length+1)/D)),C=n.map((p,m)=>{if(m%l!==0)return" ".repeat(D);let B=D*Math.min(l,n.length-m);return Cu(p.label,B)}),f="";for(let p=0;p<C.length;p+=1)p%l===0&&(f+=C[p]);return c.push(`${" ".repeat(8)} ${e.dim(f)}`),c.push(""),c.push(`${" ".repeat(8)}${e.input(I.circleFilled)} input ${e.cacheWrite(I.circleFilled)} cache-write ${e.cacheRead(I.circleFilled)} cache-read ${e.output(I.circleFilled)} output`),c}function wc(e,t,u){let n=u.breakdown.slice(0,8),r=Math.floor((t-2)/2),D=jD(e,r,`Top ${u.by}s by cost`,n,"cost",u.totals.cost),o=jD(e,r,`Top ${u.by}s by conversations`,n.slice().sort((i,s)=>s.turns-i.turns).slice(0,8),"turns",Math.max(1,...n.map(i=>i.turns)));return HD([D,o],2).split(`
|
|
30
|
+
`)}function jD(e,t,u,n,r,D){let o=`${e.brand(I.pointerSmall)} ${e.bold(u)}`;if(n.length===0)return[o,e.dim(" (no data in this window)")].join(`
|
|
31
|
+
`);let i=new GD.default({head:[e.dim("#"),e.dim("Item"),e.dim("Conv"),e.dim("Reqs"),e.dim("Tokens"),e.dim("Cost")],style:{head:[],border:["gray"],"padding-left":1,"padding-right":1},chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u256D","top-right":"\u256E",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2570","bottom-right":"\u256F",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},wordWrap:!1,colAligns:["right","left","right","right","right","right"]});return n.forEach((s,a)=>{let F=Ee(s.label,Math.max(8,t-40)),c=r==="cost"?s.cost/Math.max(1e-9,D):s.turns/Math.max(1e-9,D),h=Math.max(8,Math.min(24,t-40)),d=Ct(c,h,e.brand);i.push([String(a+1),`${F}
|
|
32
32
|
${d}`,s.turns.toLocaleString(),s.requests.toLocaleString(),v(s.tokens),N(s.cost)])}),[o,"",i.toString()].join(`
|
|
33
|
-
`)}function
|
|
34
|
-
`)}function
|
|
35
|
-
`)}function
|
|
36
|
-
`)}function
|
|
33
|
+
`)}function kc(e,t,u){let n=$D(u,{source:"all"}),r=n.heatmap,D=n.heatmapMax;if(D===0)return[`${e.brand(I.pointerSmall)} ${e.bold("Activity heatmap")}`,"",e.dim(" (no activity yet \u2014 start a session and re-run)")];let o=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],i=c=>{if(c===0)return e.dim("\xB7");let h=c/D;return h<.2?e.input("\u2591"):h<.4?e.input("\u2592"):h<.6?e.cacheRead("\u2592"):h<.8?e.cacheRead("\u2593"):e.output("\u2588")},s=`${e.brand(I.pointerSmall)} ${e.bold("Activity heatmap")} ${e.dim("(local time, day-of-week \xD7 hour)")}`,a=" "+Array.from({length:24},(c,h)=>Be(String(h),2)).join(" "),F=[s,"",e.dim(a)];for(let c=0;c<7;c+=1){let h=(c+1)%7,l=(r[h]??new Array(24).fill(0)).map(C=>Be(i(C),2)).join(" ");F.push(`${e.dim(ft(o[c],4))} ${l}`)}return F}function Sc(e,t,u,n){let r=[];if(n.model&&r.push(`model~${n.model}`),n.project&&r.push(`project~${n.project}`),u.fromIso||u.untilIso){let o=`${u.fromIso?.slice(0,10)??"\u2026"} \u2192 ${u.untilIso?.slice(0,10)??"\u2026"}`;r.push(o)}let D=[`range: ${u.range}`,`source: ${u.source}`,`scope: ${t.length.toLocaleString()} records \xB7 ${u.totals.turns.toLocaleString()} conversations`];return r.length>0&&D.push(`filters: ${r.join(", ")}`),[e.dim(D.join(` ${I.bullet} `)),e.dim(`${I.info} Use ${e.cyan("`ccgauge report`")} for a CI-friendly text summary, or ${e.cyan("`ccgauge report -d --json`")} to pipe.`)]}var Eu=["today","1d","7d","30d","90d","all"],zD=["model","project","session"],Tc=/^(\d{4})-(\d{2})-(\d{2})$/,_c={range:"7d",source:"all",by:"model",gran:"day",limit:10,json:!1,color:!0,showTrend:!0,showBreakdown:!0,dashboard:!1,compact:!1,banner:!0};async function Id(e){let t=Ic(e),u=await en(),n=t.source==="all"?Rt:[t.source],r=Oc(u,n,t);if(t.json)return JSON.stringify(r,null,2);if(t.dashboard){let D=vc(u,n,t);return qD(u,r,t,D)}return mu(r,t)}function vc(e,t,u){let n=Bu(u),r=n.from?.toISOString(),D=n.until?.toISOString(),o=new Set(t),i=u.model?.toLowerCase(),s=u.project?.toLowerCase();return e.records.filter(a=>{if(!o.has(a.source)||r&&a.timestamp<r||D&&a.timestamp>D||i&&!a.model.toLowerCase().includes(i))return!1;if(s){let F=(a.cwd||"").toLowerCase(),c=F.split(/[/\\]+/).pop()??"";if(!F.includes(s)&&!c.includes(s))return!1}return!0})}function Ic(e){let t={..._c,...e};if(!Mc(t.range))throw new Error(je("range",t.range,Eu));if(t.source!=="all"&&!ju(t.source))throw new Error(je("source",t.source,["claude","codex","all"]));if(!Pc(t.by))throw new Error(je("by",t.by,zD));if(!on(t.gran))throw new Error(je("gran",t.gran,["hour","day","week","month"]));t.since&>(t.since,"since"),t.until&>(t.until,"until");let u=Bu(t);if(u.from&&u.until&&u.from.getTime()>u.until.getTime())throw new Error("invalid date range: --since must be before or equal to --until");return t}function Mc(e){return typeof e=="string"&&Eu.includes(e)}function Pc(e){return typeof e=="string"&&zD.includes(e)}function je(e,t,u){return`invalid ${e}: ${JSON.stringify(t)}. Expected one of: ${u.join(", ")}`}function Oc(e,t,u){let n=e.records,r=Bu(u),D={from:r.from??void 0,to:r.until??void 0},o={input:0,output:0,reasoning:0,cacheRead:0,cacheWrite:0,total:0,cost:0,saved:0,requests:0,turns:0},i=new Map;for(let F of t){let c={...D,source:F},h=n.filter(p=>mt(p,c,u)),d=Fn(h,c);o.input+=d.inputTokens,o.output+=d.outputTokens,o.cacheRead+=d.cacheReadTokens,o.cacheWrite+=d.cacheCreationTokens,o.total+=d.totalTokens,o.cost+=d.cost,o.saved+=d.saved,o.requests+=d.requests;for(let p of h)o.reasoning+=p.usage.reasoning_tokens??0;let l=xe(h,e.userRecords,e.parentMap);o.turns+=l.size;let C=new Map;for(let p of l.values()){let{key:m}=St(p.firstTimestamp,u.gran);C.set(m,(C.get(m)??0)+1)}let f=sn(h,u.gran,c);for(let p of f){let m=i.get(p.key),B=C.get(p.key)??0;m?(m.cost+=p.cost,m.tokens+=p.totalTokens,m.turns+=B,m.input+=p.inputTokens,m.output+=p.outputTokens,m.cacheRead+=p.cacheReadTokens,m.cacheWrite+=p.cacheCreationTokens):i.set(p.key,{label:p.label,cost:p.cost,tokens:p.totalTokens,turns:B,input:p.inputTokens,output:p.outputTokens,cacheRead:p.cacheReadTokens,cacheWrite:p.cacheCreationTokens})}}let s=Array.from(i.entries()).sort(([F],[c])=>F.localeCompare(c)).map(([,F])=>F),a=Lc(e,t,D,u);return{generatedAt:new Date().toISOString(),range:u.range,source:u.source,by:u.by,gran:u.gran,fromIso:r.from?.toISOString()??null,untilIso:r.until?.toISOString()??null,totals:o,trend:s,breakdown:a}}function Lc(e,t,u,n){let r=e.records;if(n.by==="model"){let o=[];for(let i of t){let s={...u,source:i},a=r.filter(d=>mt(d,s,n)),F=an(a,s),c=De(i),h=new Map;for(let d of xe(a,e.userRecords,e.parentMap).values())h.set(d.firstModel,(h.get(d.firstModel)??0)+1);for(let d of F)o.push({key:`${i}::${d.model}`,label:c.shortenModel(d.model),requests:d.requests,turns:h.get(d.model)??0,tokens:d.totalTokens,cost:d.cost,share:0,sub:d.model})}return gu(o,n.limit)}if(n.by==="project"){let o=[];for(let i of t){let s={...u,source:i},a=r.filter(h=>mt(h,s,n)),F=cn(a,s),c=new Map;for(let h of xe(a,e.userRecords,e.parentMap).values()){let d=h.cwd||"(unknown)";c.set(d,(c.get(d)??0)+1)}for(let h of F)o.push({key:`${i}::${h.cwd}`,label:h.projectName,requests:h.requests,turns:c.get(h.cwd)??0,tokens:h.totalTokens,cost:h.cost,share:0,sub:h.cwd})}return gu(o,n.limit)}let D=[];for(let o of t){let i={...u,source:o},s=r.filter(c=>mt(c,i,n)),a=ln(s,[],i),F=new Map;for(let c of xe(s,e.userRecords,e.parentMap).values())F.set(c.sessionId,(F.get(c.sessionId)??0)+1);for(let c of a)D.push({key:`${o}::${c.sessionId}`,label:c.title??c.sessionId.slice(0,8),requests:c.requests,turns:F.get(c.sessionId)??0,tokens:c.totalTokens,cost:c.cost,share:0,sub:c.projectLabel})}return gu(D,n.limit)}function gu(e,t){let u=e.reduce((r,D)=>r+D.cost,0);e.sort((r,D)=>D.cost-r.cost);let n=e.slice(0,Math.max(1,t));if(u>0)for(let r of n)r.share=r.cost/u;return n}function mt(e,t,u){if(e.source!==t.source||t.from&&e.timestamp<t.from.toISOString()||t.to&&e.timestamp>t.to.toISOString()||u.model&&!e.model.toLowerCase().includes(u.model.toLowerCase()))return!1;if(u.project){let n=u.project.toLowerCase(),r=(e.cwd||"").toLowerCase(),D=r.split(/[/\\]+/).pop()??"";if(!r.includes(n)&&!D.includes(n))return!1}return!0}function Bu(e){if(e.since||e.until)return{from:e.since?gt(e.since,"since"):null,until:e.until?gt(e.until,"until"):null};let t=e.range==="today"?"1d":e.range;if(!dn(t))throw new Error(je("range",e.range,Eu));let u=hn(t);return{from:u.from??null,until:u.to??null}}function gt(e,t){let u=e.match(Tc);if(u){let r=Number(u[1]),D=Number(u[2]),o=Number(u[3]),i=t==="since"?new Date(r,D-1,o,0,0,0,0):new Date(r,D-1,o,23,59,59,999);if(i.getFullYear()!==r||i.getMonth()!==D-1||i.getDate()!==o)throw new Error(`invalid ${t} date: ${e}`);return i}let n=new Date(e);if(Number.isNaN(n.getTime()))throw new Error(`invalid ${t} date: ${e}`);return n}function Nc(e){let t=u=>n=>e?`\x1B[${u}m${n}\x1B[0m`:String(n);return{bold:t("1"),dim:t("2"),cyan:t("36"),green:t("32"),yellow:t("33"),red:t("31"),blue:t("34"),magenta:t("35"),brand:t("38;2;129;140;248")}}function mu(e,t){let u=Nc(t.color!==!1),n=[],r=new Date(e.generatedAt).toLocaleString();n.push(""),n.push(`${u.brand(u.bold("ccgauge"))} ${u.bold("report")}`),n.push(u.dim([`range: ${e.range}`,`source: ${e.source}`,`by: ${e.by}`,`gran: ${e.gran}`,`generated ${r}`].join(" \xB7 "))),n.push(""),n.push(u.brand("\u25B8")+" "+u.bold("Tokens"));let D=e.totals,o=[["Input",v(D.input),"Output",v(D.output)],["Cache R",u.green(v(D.cacheRead)),"Cache W",v(D.cacheWrite)]];D.reasoning>0&&o.push(["Reasoning",u.dim(v(D.reasoning)),"",""]),o.push(["Total",u.bold(v(D.total)),"",""]),o.push(["Convos",u.bold(D.turns.toLocaleString()),"Requests",D.requests.toLocaleString()]),n.push(VD(o,u)),n.push(""),n.push(u.brand("\u25B8")+" "+u.bold("Cost"));let i=D.input+D.cacheRead+D.cacheWrite,s=i>0?D.cacheRead/i:0,a=D.requests>0?D.cost/D.requests:0,F=[["Total",u.bold(N(D.cost)),"Saved by cache",u.green(N(D.saved))],["Avg / request",a<.01?`$${a.toFixed(4)}`:N(a),"Cache hit",u.green(he(s,1))]];if(n.push(VD(F,u)),n.push(""),t.showTrend!==!1&&e.trend.length>0){n.push(u.brand("\u25B8")+" "+u.bold("Trend")+" "+u.dim(`(${t.gran}, by cost)`));let c=Math.max(...e.trend.map(l=>l.cost),1e-9),h=Math.max(...e.trend.map(l=>l.label.length)),d=Math.max(...e.trend.map(l=>N(l.cost).length));for(let l of e.trend){let C=Uc(l.cost/c,44),f=l.label.padEnd(h),p=N(l.cost).padStart(d);n.push(` ${u.dim(f)} ${p} ${u.brand(C)}`)}n.push("")}if(t.showBreakdown!==!1&&e.breakdown.length>0){let c=e.by[0].toUpperCase()+e.by.slice(1);n.push(u.brand("\u25B8")+" "+u.bold(`Top ${e.breakdown.length} ${c}s`)+" "+u.dim("(by cost)"));let h=["#",c,"Convos","Reqs","Tokens","Cost","Share"],d=e.breakdown.map((l,C)=>[String(C+1),Gc(l.label,28),l.turns.toLocaleString(),l.requests.toLocaleString(),v(l.tokens),N(l.cost),he(l.share,1)]);n.push($c(h,d,u,[!1,!1,!0,!0,!0,!0,!0])),n.push("")}return n.join(`
|
|
34
|
+
`)}function VD(e,t){let u=[0,0,0,0];for(let r of e)for(let D=0;D<4;D+=1){let o=r[D];qe(o)>u[D]&&(u[D]=qe(o))}let n=[];for(let[r,D,o,i]of e){let s=`${t.dim(Ge(r,u[0]))} ${Ge(D,u[1])}`,a=o?`${t.dim(Ge(o,u[2]))} ${i}`:"";n.push(` ${s} ${a}`.replace(/\s+$/,""))}return n.join(`
|
|
35
|
+
`)}function $c(e,t,u,n){let r=e.map((s,a)=>Math.max(s.length,...t.map(F=>qe(F[a]??"")))),D=" "+e.map((s,a)=>n[a]?KD(s,r[a]):Ge(s,r[a])).map(s=>u.dim(s)).join(" "),o=" "+r.map(s=>"\u2500".repeat(s)).map(s=>u.dim(s)).join(" "),i=t.map(s=>" "+s.map((a,F)=>n[F]?KD(a,r[F]):Ge(a,r[F])).join(" "));return[D,o,...i].join(`
|
|
36
|
+
`)}function Uc(e,t){let u=Math.max(0,Math.min(1,e)),n=Math.round(u*t);return"\u2587".repeat(n)+"\u2500".repeat(t-n)}var Wc="\x1B",jc=new RegExp(Wc+"\\[[0-9;]*m","g");function qe(e){return e.replace(jc,"").length}function Ge(e,t){return e+" ".repeat(Math.max(0,t-qe(e)))}function KD(e,t){return" ".repeat(Math.max(0,t-qe(e)))+e}function Gc(e,t){return e.length<=t?e:e.slice(0,t-1)+"\u2026"}export{_c as DEFAULT_REPORT,vc as filterRecordsForReport,mu as renderText,Id as runReport};
|