@jait/gateway 0.1.537 → 0.1.538
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/package.json +1 -1
- package/web-dist/assets/{_basePickBy-DfW9svIs.js → _basePickBy-DgLICDHV.js} +1 -1
- package/web-dist/assets/{_baseUniq-BpwruzjS.js → _baseUniq-CE9ks1J6.js} +1 -1
- package/web-dist/assets/{arc-Bq1ttgmo.js → arc--a8wMUsf.js} +1 -1
- package/web-dist/assets/{architectureDiagram-2XIMDMQ5-W3dH64Ks.js → architectureDiagram-2XIMDMQ5-D4Kowk9Q.js} +1 -1
- package/web-dist/assets/{blockDiagram-WCTKOSBZ-ZuXpK3kS.js → blockDiagram-WCTKOSBZ-BjUAURqL.js} +1 -1
- package/web-dist/assets/{c4Diagram-IC4MRINW-C0owin_t.js → c4Diagram-IC4MRINW-Dwmxdl05.js} +1 -1
- package/web-dist/assets/channel-BeeigfEU.js +1 -0
- package/web-dist/assets/{chunk-4BX2VUAB-ClulsH0L.js → chunk-4BX2VUAB-jIdqfa5f.js} +1 -1
- package/web-dist/assets/{chunk-55IACEB6-DWlZ-qNj.js → chunk-55IACEB6-DUDKxf01.js} +1 -1
- package/web-dist/assets/{chunk-FMBD7UC4-CZaolZW9.js → chunk-FMBD7UC4-CihMqnC8.js} +1 -1
- package/web-dist/assets/{chunk-JSJVCQXG-DxtEwKg_.js → chunk-JSJVCQXG-BHBWzjdb.js} +1 -1
- package/web-dist/assets/{chunk-KX2RTZJC-8XsPx-it.js → chunk-KX2RTZJC-iiLmvVyq.js} +1 -1
- package/web-dist/assets/{chunk-NQ4KR5QH-DZ4K-eXp.js → chunk-NQ4KR5QH-DihviFJm.js} +1 -1
- package/web-dist/assets/{chunk-QZHKN3VN-CedpPZYy.js → chunk-QZHKN3VN-UxgKZ48F.js} +1 -1
- package/web-dist/assets/{chunk-WL4C6EOR-BskKnX0y.js → chunk-WL4C6EOR-Ds85oLrk.js} +1 -1
- package/web-dist/assets/classDiagram-VBA2DB6C-Q8QOn0fN.js +1 -0
- package/web-dist/assets/classDiagram-v2-RAHNMMFH-Q8QOn0fN.js +1 -0
- package/web-dist/assets/clone-UKTTfqJa.js +1 -0
- package/web-dist/assets/{cose-bilkent-S5V4N54A-DpTyPZFN.js → cose-bilkent-S5V4N54A-CpCfCXFQ.js} +1 -1
- package/web-dist/assets/{dagre-KLK3FWXG-DxLC70d9.js → dagre-KLK3FWXG-YWEoIbyh.js} +1 -1
- package/web-dist/assets/{diagram-E7M64L7V-B7G9sS8h.js → diagram-E7M64L7V-DB1CtiDV.js} +1 -1
- package/web-dist/assets/{diagram-IFDJBPK2-zO0spVfx.js → diagram-IFDJBPK2-ievVHR3w.js} +1 -1
- package/web-dist/assets/{diagram-P4PSJMXO-l9shdh40.js → diagram-P4PSJMXO-EeurGnq5.js} +1 -1
- package/web-dist/assets/{erDiagram-INFDFZHY-DRbDz-NC.js → erDiagram-INFDFZHY-C3STuDOs.js} +1 -1
- package/web-dist/assets/{flowDiagram-PKNHOUZH-Doo8zdnx.js → flowDiagram-PKNHOUZH-C5P6-hIC.js} +1 -1
- package/web-dist/assets/{ganttDiagram-A5KZAMGK-CUqiI-rF.js → ganttDiagram-A5KZAMGK-sqi0bTwp.js} +1 -1
- package/web-dist/assets/{gitGraphDiagram-K3NZZRJ6-BqqCDG8g.js → gitGraphDiagram-K3NZZRJ6-D1Mc1xvP.js} +1 -1
- package/web-dist/assets/{graph-DIOE-OFp.js → graph-D6PhbTOz.js} +1 -1
- package/web-dist/assets/{index-YXmOM4WT.js → index-BBqvlW02.js} +1 -1
- package/web-dist/assets/{index-DWsdYaKL.js → index-B_e1HTq3.js} +1 -1
- package/web-dist/assets/{index-EkZx44BM.js → index-Dj-8Xi74.js} +5 -5
- package/web-dist/assets/{infoDiagram-LFFYTUFH-ko-1voEO.js → infoDiagram-LFFYTUFH-B6JIOmV7.js} +1 -1
- package/web-dist/assets/{ishikawaDiagram-PHBUUO56-BgCHL5kL.js → ishikawaDiagram-PHBUUO56-1IQ7Rv0G.js} +1 -1
- package/web-dist/assets/{journeyDiagram-4ABVD52K-Cd8aqXcR.js → journeyDiagram-4ABVD52K-BZOLlp_7.js} +1 -1
- package/web-dist/assets/{kanban-definition-K7BYSVSG-CjB8FKYl.js → kanban-definition-K7BYSVSG-CMVF7S_8.js} +1 -1
- package/web-dist/assets/{layout-jjBeaSPl.js → layout-CbOnOUmA.js} +1 -1
- package/web-dist/assets/{linear-Bn-VMKGb.js → linear-CNCHDoUp.js} +1 -1
- package/web-dist/assets/{mindmap-definition-YRQLILUH-D0qBdZxV.js → mindmap-definition-YRQLILUH-B_3-oeFh.js} +1 -1
- package/web-dist/assets/{pieDiagram-SKSYHLDU-BZo_Tpjs.js → pieDiagram-SKSYHLDU-ivCRpH6_.js} +1 -1
- package/web-dist/assets/{quadrantDiagram-337W2JSQ-BMlQSpcP.js → quadrantDiagram-337W2JSQ-RkATLRqb.js} +1 -1
- package/web-dist/assets/{requirementDiagram-Z7DCOOCP-DGOFRH6K.js → requirementDiagram-Z7DCOOCP-Dc6JNr9x.js} +1 -1
- package/web-dist/assets/{sankeyDiagram-WA2Y5GQK-DmKgr8xH.js → sankeyDiagram-WA2Y5GQK-A2d6syiM.js} +1 -1
- package/web-dist/assets/{sequenceDiagram-2WXFIKYE-CcYf-VHg.js → sequenceDiagram-2WXFIKYE-CICgYMMy.js} +1 -1
- package/web-dist/assets/{stateDiagram-RAJIS63D-lyEa3VxX.js → stateDiagram-RAJIS63D-BGSwePVy.js} +1 -1
- package/web-dist/assets/stateDiagram-v2-FVOUBMTO-hx8mdJH3.js +1 -0
- package/web-dist/assets/{timeline-definition-YZTLITO2-B6Jksli8.js → timeline-definition-YZTLITO2-C0G9kF6G.js} +1 -1
- package/web-dist/assets/{treemap-KZPCXAKY-F0RTMFl-.js → treemap-KZPCXAKY-Bu5YGpxa.js} +1 -1
- package/web-dist/assets/{vennDiagram-LZ73GAT5-DMaFpi1k.js → vennDiagram-LZ73GAT5-BG9_EnS7.js} +1 -1
- package/web-dist/assets/{xychartDiagram-JWTSCODW-B_hh5agy.js → xychartDiagram-JWTSCODW-0OBw49fm.js} +1 -1
- package/web-dist/index.html +1 -1
- package/web-dist/assets/channel-B8dDixiB.js +0 -1
- package/web-dist/assets/classDiagram-VBA2DB6C-r7CVvTw8.js +0 -1
- package/web-dist/assets/classDiagram-v2-RAHNMMFH-r7CVvTw8.js +0 -1
- package/web-dist/assets/clone-CsKh_9hk.js +0 -1
- package/web-dist/assets/stateDiagram-v2-FVOUBMTO-CKn6mqEz.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-DA-rfuFy.js","./html-pp8916En.js","./javascript-wDzz0qaB.js","./css-CLj8gQPS.js","./angular-ts-BrjP3tb8.js","./scss-D5BDwBP9.js","./astro-HNnZUWAn.js","./json-Cp-IABpG.js","./typescript-BPQ3VLAy.js","./postcss-CXtECtnM.js","./tsx-COt5Ahok.js","./blade-BjGOyj-B.js","./html-derivative-DlHx6ybY.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js","./sql-BLtJtn59.js","./coffee-Ch7k5sss.js","./cpp-CofmeUqb.js","./regexp-CDVJQ6XC.js","./glsl-DplSGwfg.js","./c-BIGW1oBm.js","./graphql-ChdNCCLP.js","./jsx-g9-lgVsj.js","./haml-D5jkg6IW.js","./handlebars-BpdQsYii.js","./yaml-Buea-lGh.js","./http-jrhK8wxY.js","./shellscript-Yzrsuije.js","./hurl-irOxFIW8.js","./csv-fuZLfV_i.js","./jinja-f2NsQr07.js","./jison-wvAkD_A8.js","./julia-CxzCAyBv.js","./python-B6aJPvgy.js","./r-Dspwwk_N.js","./marko-DjSrsDqO.js","./less-B1dDrJ26.js","./mdc-DTYItulj.js","./markdown-Cvjx9yec.js","./php-R6g_5hLQ.js","./pug-DKIMFp6K.js","./svelte-Cy7k_4gC.js","./ts-tags-DQrlYJgV.js","./vue-D2xRrEX4.js","./vue-html-AaS7Mt5G.js","./vue-vine-BoDAl6tE.js","./stylus-BEDo0Tqx.js","./dagre-KLK3FWXG-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-DA-rfuFy.js","./html-pp8916En.js","./javascript-wDzz0qaB.js","./css-CLj8gQPS.js","./angular-ts-BrjP3tb8.js","./scss-D5BDwBP9.js","./astro-HNnZUWAn.js","./json-Cp-IABpG.js","./typescript-BPQ3VLAy.js","./postcss-CXtECtnM.js","./tsx-COt5Ahok.js","./blade-BjGOyj-B.js","./html-derivative-DlHx6ybY.js","./xml-sdJ4AIDG.js","./java-CylS5w8V.js","./sql-BLtJtn59.js","./coffee-Ch7k5sss.js","./cpp-CofmeUqb.js","./regexp-CDVJQ6XC.js","./glsl-DplSGwfg.js","./c-BIGW1oBm.js","./graphql-ChdNCCLP.js","./jsx-g9-lgVsj.js","./haml-D5jkg6IW.js","./handlebars-BpdQsYii.js","./yaml-Buea-lGh.js","./http-jrhK8wxY.js","./shellscript-Yzrsuije.js","./hurl-irOxFIW8.js","./csv-fuZLfV_i.js","./jinja-f2NsQr07.js","./jison-wvAkD_A8.js","./julia-CxzCAyBv.js","./python-B6aJPvgy.js","./r-Dspwwk_N.js","./marko-DjSrsDqO.js","./less-B1dDrJ26.js","./mdc-DTYItulj.js","./markdown-Cvjx9yec.js","./php-R6g_5hLQ.js","./pug-DKIMFp6K.js","./svelte-Cy7k_4gC.js","./ts-tags-DQrlYJgV.js","./vue-D2xRrEX4.js","./vue-html-AaS7Mt5G.js","./vue-vine-BoDAl6tE.js","./stylus-BEDo0Tqx.js","./dagre-KLK3FWXG-YWEoIbyh.js","./graph-D6PhbTOz.js","./_baseUniq-CE9ks1J6.js","./layout-CbOnOUmA.js","./_basePickBy-DgLICDHV.js","./clone-UKTTfqJa.js","./cose-bilkent-S5V4N54A-CpCfCXFQ.js","./cytoscape.esm-BQaXIfA_.js","./c4Diagram-IC4MRINW-Dwmxdl05.js","./chunk-JSJVCQXG-BHBWzjdb.js","./flowDiagram-PKNHOUZH-C5P6-hIC.js","./chunk-FMBD7UC4-CihMqnC8.js","./chunk-55IACEB6-DUDKxf01.js","./chunk-KX2RTZJC-iiLmvVyq.js","./channel-BeeigfEU.js","./erDiagram-INFDFZHY-C3STuDOs.js","./gitGraphDiagram-K3NZZRJ6-D1Mc1xvP.js","./chunk-4BX2VUAB-jIdqfa5f.js","./chunk-QZHKN3VN-UxgKZ48F.js","./treemap-KZPCXAKY-Bu5YGpxa.js","./ganttDiagram-A5KZAMGK-sqi0bTwp.js","./linear-CNCHDoUp.js","./defaultLocale-DX6XiGOO.js","./infoDiagram-LFFYTUFH-B6JIOmV7.js","./pieDiagram-SKSYHLDU-ivCRpH6_.js","./arc--a8wMUsf.js","./quadrantDiagram-337W2JSQ-RkATLRqb.js","./xychartDiagram-JWTSCODW-0OBw49fm.js","./requirementDiagram-Z7DCOOCP-Dc6JNr9x.js","./sequenceDiagram-2WXFIKYE-CICgYMMy.js","./classDiagram-VBA2DB6C-Q8QOn0fN.js","./chunk-WL4C6EOR-Ds85oLrk.js","./classDiagram-v2-RAHNMMFH-Q8QOn0fN.js","./stateDiagram-RAJIS63D-BGSwePVy.js","./chunk-NQ4KR5QH-DihviFJm.js","./stateDiagram-v2-FVOUBMTO-hx8mdJH3.js","./journeyDiagram-4ABVD52K-BZOLlp_7.js","./timeline-definition-YZTLITO2-C0G9kF6G.js","./mindmap-definition-YRQLILUH-B_3-oeFh.js","./kanban-definition-K7BYSVSG-CMVF7S_8.js","./diagram-P4PSJMXO-EeurGnq5.js","./diagram-IFDJBPK2-ievVHR3w.js","./blockDiagram-WCTKOSBZ-BjUAURqL.js","./architectureDiagram-2XIMDMQ5-D4Kowk9Q.js","./diagram-E7M64L7V-DB1CtiDV.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var dpe=Object.defineProperty;var hpe=(e,n,r)=>n in e?dpe(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var Xe=(e,n,r)=>hpe(e,typeof n!="symbol"?n+"":n,r);function fpe(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const a=Object.getOwnPropertyDescriptor(i,s);a&&Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();function F0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i_t(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if(typeof n=="function"){var r=function i(){return this instanceof i?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var A6={exports:{}},Lv={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
@@ -942,7 +942,7 @@ Referenced files:
|
|
|
942
942
|
*/var az;function UAe(){if(az)return PT;az=1;var e=Yj();function n(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var r=typeof Object.is=="function"?Object.is:n,i=e.useState,s=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function l(f,m){var x=m(),v=i({inst:{value:x,getSnapshot:m}}),_=v[0].inst,w=v[1];return a(function(){_.value=x,_.getSnapshot=m,u(_)&&w({inst:_})},[f,x,m]),s(function(){return u(_)&&w({inst:_}),f(function(){u(_)&&w({inst:_})})},[f]),o(x),x}function u(f){var m=f.getSnapshot;f=f.value;try{var x=m();return!r(f,x)}catch{return!0}}function d(f,m){return m()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return PT.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,PT}var oz;function VAe(){return oz||(oz=1,MT.exports=UAe()),MT.exports}var qAe=VAe();y.createContext(null);var GAe=function(n,r){if(r){if(n&&r==="#000")return"0 0 0 1px rgba(255,255,255,0.1) inset";if(!n&&r==="#fff")return"0 0 0 1px rgba(0,0,0,0.05) inset"}};function iw(e){"@babel/helpers - typeof";return iw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},iw(e)}var KAe=["shape","color","background","size","style","iconMultiple","Icon","iconStyle","iconClassName"];function lz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function hC(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?lz(Object(r),!0).forEach(function(i){YAe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function YAe(e,n,r){return n=XAe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function XAe(e){var n=JAe(e,"string");return iw(n)=="symbol"?n:String(n)}function JAe(e,n){if(iw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(iw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function ZAe(e,n){if(e==null)return{};var r=QAe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function QAe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Jl=y.memo(function(e){var n=e.shape,r=n===void 0?"circle":n,i=e.color,s=i===void 0?"#fff":i,a=e.background,o=e.size,l=e.style,u=e.iconMultiple,d=u===void 0?.75:u,h=e.Icon,f=e.iconStyle,m=e.iconClassName,x=ZAe(e,KAe),v=$Ae(),_=v.isDarkMode;return c.jsx(FAe,hC(hC({flex:"none",style:hC({background:a,borderRadius:r==="circle"?"50%":Math.floor(o*.1),boxShadow:GAe(_,a),color:s,height:o,width:o},l)},x),{},{children:h&&c.jsx(h,{className:m,color:s,size:o,style:hC({transform:"scale(".concat(d,")")},f)})}))}),gS="OpenAI",eOe=.75,tOe=.1,oee="#000",lee="#19C37D",cee="#AB68FF",uee="#F86AA4",d9="#F9C322",dee="#0099FF",hee="#0000FE",nOe=oee,rOe="#fff",iOe=.75;function sw(e){"@babel/helpers - typeof";return sw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sw(e)}var sOe=["size","style"];function cz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function LT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?cz(Object(r),!0).forEach(function(i){aOe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function aOe(e,n,r){return n=oOe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function oOe(e){var n=lOe(e,"string");return sw(n)=="symbol"?n:String(n)}function lOe(e,n){if(sw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(sw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function cOe(e,n){if(e==null)return{};var r=uOe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function uOe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var h9=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=cOe(e,sOe);return c.jsxs("svg",LT(LT({fill:"currentColor",fillRule:"evenodd",height:r,style:LT({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:gS}),c.jsx("path",{d:"M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z"})]}))});function aw(e){"@babel/helpers - typeof";return aw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},aw(e)}var dOe=["type"];function uz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function hOe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?uz(Object(r),!0).forEach(function(i){fOe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function fOe(e,n,r){return n=pOe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function pOe(e){var n=mOe(e,"string");return aw(n)=="symbol"?n:String(n)}function mOe(e,n){if(aw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(aw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function gOe(e,n){if(e==null)return{};var r=yOe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function yOe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var xOe=y.memo(function(e){var n=e.type,r=n===void 0?"normal":n,i=gOe(e,dOe),s=y.useMemo(function(){switch(r){case"gpt3":return lee;case"gpt4":return cee;case"gpt5":return uee;case"o3":case"o1":return d9;case"oss":return dee;case"platform":return hee;default:return nOe}},[r]);return c.jsx(Jl,hOe({Icon:h9,"aria-label":gS,background:s,color:rOe,iconMultiple:iOe},i))});function ow(e){"@babel/helpers - typeof";return ow=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ow(e)}var vOe=["Icon","style","Text","color","size","spaceMultiple","textMultiple","extra","extraStyle","showText","showLogo","extraClassName","iconProps","inverse"];function dz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function rm(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?dz(Object(r),!0).forEach(function(i){bOe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function bOe(e,n,r){return n=_Oe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function _Oe(e){var n=wOe(e,"string");return ow(n)=="symbol"?n:String(n)}function wOe(e,n){if(ow(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(ow(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function SOe(e,n){if(e==null)return{};var r=kOe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function kOe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Zl=y.memo(function(e){var n=e.Icon,r=e.style,i=e.Text,s=e.color,a=e.size,o=a===void 0?24:a,l=e.spaceMultiple,u=l===void 0?1:l,d=e.textMultiple,h=d===void 0?1:d,f=e.extra,m=e.extraStyle,x=e.showText,v=x===void 0?!0:x,_=e.showLogo,w=_===void 0?!0:_,S=e.extraClassName,C=e.iconProps,j=e.inverse,T=SOe(e,vOe),E=n&&w&&c.jsx(n,rm(rm({size:o},C),{},{style:rm(j?{marginLeft:o*u}:{marginRight:o*u},C==null?void 0:C.style)})),N=v&&i&&c.jsx(i,{size:o*h});return c.jsxs(see,rm(rm({align:"center",flex:"none",horizontal:!0,justify:"flex-start",style:rm({color:s},r)},T),{},{children:[j?c.jsxs(c.Fragment,{children:[N,E]}):c.jsxs(c.Fragment,{children:[E,N]}),f&&c.jsx("span",{className:S,style:rm({fontSize:o*h*.95,lineHeight:1},m),children:f})]}))});function lw(e){"@babel/helpers - typeof";return lw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lw(e)}var COe=["size","style"];function hz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function $T(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?hz(Object(r),!0).forEach(function(i){jOe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function jOe(e,n,r){return n=NOe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function NOe(e){var n=TOe(e,"string");return lw(n)=="symbol"?n:String(n)}function TOe(e,n){if(lw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(lw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function EOe(e,n){if(e==null)return{};var r=AOe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function AOe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var fee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=EOe(e,COe);return c.jsxs("svg",$T($T({fill:"currentColor",fillRule:"evenodd",height:r,style:$T({flex:"none",lineHeight:1},i),viewBox:"0 0 86 24",xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:gS}),c.jsx("path",{d:"M10.703 2C5.916 2 2 5.916 2 10.703c0 4.787 3.916 8.704 8.703 8.704 4.787 0 8.704-3.893 8.704-8.704A8.698 8.698 0 0010.703 2zm0 14.288c-2.973 0-5.367-2.442-5.367-5.585S7.73 5.12 10.703 5.12c2.974 0 5.367 2.441 5.367 5.584s-2.393 5.585-5.367 5.585zM28.206 6.835c-1.57 0-3.094.629-3.892 1.693v-1.45h-3.143V24h3.143v-6.116c.798.99 2.273 1.523 3.892 1.523 3.385 0 6.045-2.66 6.045-6.286 0-3.626-2.66-6.286-6.044-6.286zm-.531 9.84c-1.79 0-3.385-1.402-3.385-3.554s1.596-3.554 3.385-3.554c1.789 0 3.384 1.402 3.384 3.554s-1.595 3.554-3.384 3.554zM41.649 6.835c-3.433 0-6.141 2.684-6.141 6.286 0 3.602 2.37 6.286 6.237 6.286 3.167 0 5.198-1.91 5.827-4.062h-3.07c-.388.895-1.475 1.523-2.78 1.523-1.62 0-2.854-1.136-3.144-2.756h9.139V12.88c0-3.288-2.297-6.044-6.068-6.044zm-3.047 5.053c.339-1.523 1.596-2.514 3.12-2.514 1.619 0 2.852 1.064 2.997 2.514h-6.117zM56.081 6.835c-1.402 0-2.877.629-3.553 1.669V7.077h-3.143v12.088h3.143v-6.503c0-1.886 1.015-3.119 2.659-3.119 1.523 0 2.345 1.16 2.345 2.78v6.842h3.143v-7.35c0-2.997-1.838-4.98-4.594-4.98zM68.724 2.242l-6.841 16.923h3.36l1.45-3.699h7.785l1.45 3.7h3.41L72.543 2.241h-3.82zm-.943 10.42l2.805-7.084 2.78 7.084H67.78zM83.81 2.242h-3.191v16.923h3.19V2.242z"})]}))});function cw(e){"@babel/helpers - typeof";return cw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},cw(e)}var OOe=["extraStyle"];function fz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function pz(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?fz(Object(r),!0).forEach(function(i){ROe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function ROe(e,n,r){return n=MOe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function MOe(e){var n=POe(e,"string");return cw(n)=="symbol"?n:String(n)}function POe(e,n){if(cw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(cw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function LOe(e,n){if(e==null)return{};var r=$Oe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function $Oe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var DOe=y.memo(function(e){var n=e.extraStyle,r=LOe(e,OOe);return c.jsx(Zl,pz({Icon:h9,Text:fee,"aria-label":gS,extraStyle:pz({fontWeight:600},n),spaceMultiple:tOe,textMultiple:eOe},r))}),as=h9;as.Text=fee;as.Combine=DOe;as.Avatar=xOe;as.colorPrimary=oee;as.colorGpt3=lee;as.colorGpt4=cee;as.colorGpt5=uee;as.colorO1=d9;as.colorO3=d9;as.colorOss=dee;as.colorPlatform=hee;as.title=gS;var _1="Claude",IOe=.8,BOe=.1,pee="#D97757",zOe=pee,FOe="#fff",HOe=.75;function uw(e){"@babel/helpers - typeof";return uw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},uw(e)}var WOe=["size","style"];function mz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function DT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?mz(Object(r),!0).forEach(function(i){UOe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function UOe(e,n,r){return n=VOe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function VOe(e){var n=qOe(e,"string");return uw(n)=="symbol"?n:String(n)}function qOe(e,n){if(uw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(uw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function GOe(e,n){if(e==null)return{};var r=KOe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function KOe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var f9=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=GOe(e,WOe);return c.jsxs("svg",DT(DT({fill:"currentColor",fillRule:"evenodd",height:r,style:DT({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:_1}),c.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})]}))});function dw(e){"@babel/helpers - typeof";return dw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dw(e)}function gz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function YOe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?gz(Object(r),!0).forEach(function(i){XOe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function XOe(e,n,r){return n=JOe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function JOe(e){var n=ZOe(e,"string");return dw(n)=="symbol"?n:String(n)}function ZOe(e,n){if(dw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(dw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function QOe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var e7e=y.memo(function(e){var n=Object.assign({},(QOe(e),e));return c.jsx(Jl,YOe({Icon:f9,"aria-label":_1,background:zOe,color:FOe,iconMultiple:HOe},n))});function hw(e){"@babel/helpers - typeof";return hw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hw(e)}var t7e=["size","style"];function yz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function IT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?yz(Object(r),!0).forEach(function(i){n7e(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function n7e(e,n,r){return n=r7e(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function r7e(e){var n=i7e(e,"string");return hw(n)=="symbol"?n:String(n)}function i7e(e,n){if(hw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(hw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function s7e(e,n){if(e==null)return{};var r=a7e(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function a7e(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var mee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=s7e(e,t7e);return c.jsxs("svg",IT(IT({height:r,style:IT({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:_1}),c.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z",fill:"#D97757",fillRule:"nonzero"})]}))});function fw(e){"@babel/helpers - typeof";return fw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fw(e)}var o7e=["size","style"];function xz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function BT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?xz(Object(r),!0).forEach(function(i){l7e(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function l7e(e,n,r){return n=c7e(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function c7e(e){var n=u7e(e,"string");return fw(n)=="symbol"?n:String(n)}function u7e(e,n){if(fw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(fw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function d7e(e,n){if(e==null)return{};var r=h7e(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function h7e(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var gee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=d7e(e,o7e);return c.jsxs("svg",BT(BT({fill:"currentColor",fillRule:"nonzero",height:r,style:BT({flex:"none",lineHeight:1},i),viewBox:"0 0 97 24",xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:_1}),c.jsx("path",{d:"M13.623 20.222c-3.417 0-5.753-1.901-6.855-4.827a12.992 12.992 0 01-.838-4.772c0-4.907 2.206-8.315 7.08-8.315 3.275 0 5.297 1.425 6.448 4.826h1.402l-.19-4.69C18.709 1.18 16.258.543 13.276.543c-4.2 0-7.775 1.874-9.763 5.254a11.357 11.357 0 00-1.511 5.872c0 3.753 1.777 7.08 5.113 8.926a11.95 11.95 0 005.943 1.398c3.254 0 5.835-.617 8.122-1.697l.593-5.172h-1.43c-.858 2.362-1.88 3.78-3.574 4.534-.831.373-1.88.564-3.146.564zm14.74-17.914L28.499 0h-.967L23.23 1.29v.699l1.907.882v16.142c0 1.1-.565 1.344-2.043 1.528v1.18h7.319v-1.18c-1.484-.184-2.042-.428-2.042-1.528V2.315l-.007-.007zm29.104 19.685h.565l4.95-.937v-1.208l-.695-.054c-1.157-.109-1.457-.346-1.457-1.29V9.897l.137-2.763h-.783l-4.678.672v1.181l.457.082c1.266.183 1.64.536 1.64 1.419v7.67c-1.212.937-2.369 1.527-3.744 1.527-1.525 0-2.471-.774-2.471-2.58V9.905l.136-2.763h-.804l-4.684.672v1.181l.484.082c1.266.183 1.64.536 1.64 1.418v7.08c0 3 1.703 4.426 4.412 4.426 2.07 0 3.765-1.1 5.038-2.627L57.474 22l-.007-.007zm-13.602-9.55c0-3.836-2.043-5.309-5.733-5.309-3.254 0-5.616 1.344-5.616 3.57 0 .666.238 1.175.721 1.528l2.478-.326c-.109-.746-.163-1.201-.163-1.391 0-1.263.674-1.901 2.042-1.901 2.022 0 3.044 1.419 3.044 3.7v.746l-5.106 1.527c-1.702.462-2.67.863-3.316 1.8a3.386 3.386 0 00-.476 1.9c0 2.172 1.497 3.706 4.057 3.706 1.852 0 3.493-.835 4.922-2.416.51 1.581 1.294 2.416 2.69 2.416 1.13 0 2.15-.455 3.063-1.344l-.272-.937a4.363 4.363 0 01-1.178.163c-.783 0-1.157-.617-1.157-1.826v-5.607zm-6.536 7.378c-1.396 0-2.26-.808-2.26-2.226 0-.964.456-1.528 1.43-1.854l4.139-1.31v3.965c-1.321.997-2.097 1.425-3.31 1.425zm43.095 1.235v-1.208l-.701-.054c-1.158-.109-1.45-.346-1.45-1.29V2.308L78.409 0h-.974l-4.302 1.29v.699l1.906.882V8.18a6.024 6.024 0 00-3.656-1.046c-4.276 0-7.612 3.245-7.612 8.098 0 3.998 2.397 6.761 6.346 6.761 2.042 0 3.819-.99 4.922-2.525l-.136 2.525h.571l4.95-.937zm-8.96-12.313c2.043 0 3.575 1.181 3.575 3.353v6.11a4.91 4.91 0 01-3.547 1.425c-2.928 0-4.412-2.308-4.412-5.39 0-3.462 1.695-5.498 4.385-5.498zm19.424 3.055c-.381-1.792-1.484-2.81-3.016-2.81-2.288 0-3.874 1.717-3.874 4.18 0 3.646 1.934 6.008 5.059 6.008a5.858 5.858 0 005.03-2.953l.913.245c-.408 3.163-3.281 5.525-6.808 5.525-4.14 0-6.992-3.054-6.992-7.399 0-4.378 3.098-7.46 7.237-7.46 3.09 0 5.27 1.853 5.97 5.07l-10.783 3.3V14.05l7.264-2.247v-.006z"})]}))});function pw(e){"@babel/helpers - typeof";return pw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pw(e)}var f7e=["type"];function vz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function p7e(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?vz(Object(r),!0).forEach(function(i){m7e(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function m7e(e,n,r){return n=g7e(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function g7e(e){var n=y7e(e,"string");return pw(n)=="symbol"?n:String(n)}function y7e(e,n){if(pw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(pw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function x7e(e,n){if(e==null)return{};var r=v7e(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function v7e(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var b7e=y.memo(function(e){var n=e.type,r=n===void 0?"mono":n,i=x7e(e,f7e),s=r==="color"?mee:f9;return c.jsx(Zl,p7e({Icon:s,Text:gee,"aria-label":_1,spaceMultiple:BOe,textMultiple:IOe},i))}),Ul=f9;Ul.Color=mee;Ul.Text=gee;Ul.Combine=b7e;Ul.Avatar=e7e;Ul.colorPrimary=pee;Ul.title=_1;function _7e(e,n=[]){let r=[];function i(a,o){const l=y.createContext(o),u=r.length;r=[...r,o];const d=f=>{var S;const{scope:m,children:x,...v}=f,_=((S=m==null?void 0:m[e])==null?void 0:S[u])||l,w=y.useMemo(()=>v,Object.values(v));return c.jsx(_.Provider,{value:w,children:x})};d.displayName=a+"Provider";function h(f,m){var _;const x=((_=m==null?void 0:m[e])==null?void 0:_[u])||l,v=y.useContext(x);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[d,h]}const s=()=>{const a=r.map(o=>y.createContext(o));return function(l){const u=(l==null?void 0:l[e])||a;return y.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return s.scopeName=e,[i,w7e(s,...n)]}function w7e(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const o=i.reduce((l,{useScope:u,scopeName:d})=>{const f=u(a)[`__scope${d}`];return{...l,...f}},{});return y.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function yee(e){const n=S7e(e),r=y.forwardRef((i,s)=>{const{children:a,...o}=i,l=y.Children.toArray(a),u=l.find(C7e);if(u){const d=u.props.children,h=l.map(f=>f===u?y.Children.count(d)>1?y.Children.only(null):y.isValidElement(d)?d.props.children:null:f);return c.jsx(n,{...o,ref:s,children:y.isValidElement(d)?y.cloneElement(d,void 0,h):null})}return c.jsx(n,{...o,ref:s,children:a})});return r.displayName=`${e}.Slot`,r}function S7e(e){const n=y.forwardRef((r,i)=>{const{children:s,...a}=r;if(y.isValidElement(s)){const o=N7e(s),l=j7e(a,s.props);return s.type!==y.Fragment&&(l.ref=i?ra(i,o):o),y.cloneElement(s,l)}return y.Children.count(s)>1?y.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var k7e=Symbol("radix.slottable");function C7e(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===k7e}function j7e(e,n){const r={...n};for(const i in n){const s=e[i],a=n[i];/^on[A-Z]/.test(i)?s&&a?r[i]=(...l)=>{const u=a(...l);return s(...l),u}:s&&(r[i]=s):i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}function N7e(e){var i,s;let n=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var T7e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xee=T7e.reduce((e,n)=>{const r=yee(`Primitive.${n}`),i=y.forwardRef((s,a)=>{const{asChild:o,...l}=s,u=o?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(u,{...l,ref:a})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{}),I4="Popover",[vee]=_7e(I4,[v1]),yS=v1(),[E7e,Xm]=vee(I4),bee=e=>{const{__scopePopover:n,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:o=!1}=e,l=yS(n),u=y.useRef(null),[d,h]=y.useState(!1),[f,m]=Qf({prop:i,defaultProp:s??!1,onChange:a,caller:I4});return c.jsx(YM,{...l,children:c.jsx(E7e,{scope:n,contentId:bu(),triggerRef:u,open:f,onOpenChange:m,onOpenToggle:y.useCallback(()=>m(x=>!x),[m]),hasCustomAnchor:d,onCustomAnchorAdd:y.useCallback(()=>h(!0),[]),onCustomAnchorRemove:y.useCallback(()=>h(!1),[]),modal:o,children:r})})};bee.displayName=I4;var _ee="PopoverAnchor",A7e=y.forwardRef((e,n)=>{const{__scopePopover:r,...i}=e,s=Xm(_ee,r),a=yS(r),{onCustomAnchorAdd:o,onCustomAnchorRemove:l}=s;return y.useEffect(()=>(o(),()=>l()),[o,l]),c.jsx(A4,{...a,...i,ref:n})});A7e.displayName=_ee;var wee="PopoverTrigger",See=y.forwardRef((e,n)=>{const{__scopePopover:r,...i}=e,s=Xm(wee,r),a=yS(r),o=oi(n,s.triggerRef),l=c.jsx(xee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Tee(s.open),...i,ref:o,onClick:Cn(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?l:c.jsx(A4,{asChild:!0,...a,children:l})});See.displayName=wee;var p9="PopoverPortal",[O7e,R7e]=vee(p9,{forceMount:void 0}),kee=e=>{const{__scopePopover:n,forceMount:r,children:i,container:s}=e,a=Xm(p9,n);return c.jsx(O7e,{scope:n,forceMount:r,children:c.jsx(Eu,{present:r||a.open,children:c.jsx(X2,{asChild:!0,container:s,children:i})})})};kee.displayName=p9;var Kx="PopoverContent",Cee=y.forwardRef((e,n)=>{const r=R7e(Kx,e.__scopePopover),{forceMount:i=r.forceMount,...s}=e,a=Xm(Kx,e.__scopePopover);return c.jsx(Eu,{present:i||a.open,children:a.modal?c.jsx(P7e,{...s,ref:n}):c.jsx(L7e,{...s,ref:n})})});Cee.displayName=Kx;var M7e=yee("PopoverContent.RemoveScroll"),P7e=y.forwardRef((e,n)=>{const r=Xm(Kx,e.__scopePopover),i=y.useRef(null),s=oi(n,i),a=y.useRef(!1);return y.useEffect(()=>{const o=i.current;if(o)return Qj(o)},[]),c.jsx(Z2,{as:M7e,allowPinchZoom:!0,children:c.jsx(jee,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Cn(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),a.current||(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:Cn(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Cn(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),L7e=y.forwardRef((e,n)=>{const r=Xm(Kx,e.__scopePopover),i=y.useRef(!1),s=y.useRef(!1);return c.jsx(jee,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,a),a.defaultPrevented||(i.current||(l=r.triggerRef.current)==null||l.focus(),a.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:a=>{var u,d;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(o))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&s.current&&a.preventDefault()}})}),jee=y.forwardRef((e,n)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:h,...f}=e,m=Xm(Kx,r),x=yS(r);return Jj(),c.jsx(Y2,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a,children:c.jsx(K2,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:h,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),children:c.jsx(XM,{"data-state":Tee(m.open),role:"dialog",id:m.contentId,...x,...f,ref:n,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Nee="PopoverClose",$7e=y.forwardRef((e,n)=>{const{__scopePopover:r,...i}=e,s=Xm(Nee,r);return c.jsx(xee.button,{type:"button",...i,ref:n,onClick:Cn(e.onClick,()=>s.onOpenChange(!1))})});$7e.displayName=Nee;var D7e="PopoverArrow",I7e=y.forwardRef((e,n)=>{const{__scopePopover:r,...i}=e,s=yS(r);return c.jsx(JM,{...s,...i,ref:n})});I7e.displayName=D7e;function Tee(e){return e?"open":"closed"}var B7e=bee,z7e=See,F7e=kee,H7e=Cee;const m9=B7e,g9=z7e,W7e=H7e;function y9({className:e,align:n="center",side:r,sideOffset:i=4,ref:s,children:a,...o}){return c.jsx(F7e,{children:c.jsx(W7e,{ref:s,align:n,side:r,sideOffset:i,className:je("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o,children:a})})}const fd="jait-auth-token",N5="token",x9="jait-auth-token";let pd=null;function k0(){if(typeof window>"u")return null;try{return window.localStorage}catch{return null}}function v9(){if(typeof window>"u")return null;try{return window.sessionStorage}catch{return null}}function b9(){return typeof window>"u"?null:window.jaitDesktop??null}function Yx(){return typeof window>"u"?!1:!!window.jaitDesktop||!!window.Capacitor}async function U7e(){const e=b9();if(e!=null&&e.credentialGet)try{const i=await e.credentialGet(x9);if(i!=null&&i.value){pd=i.value;return}}catch{}if(!Yx()){bz();const i=k0(),s=(i==null?void 0:i.getItem(fd))??null;if(s){pd=s,i==null||i.removeItem(fd);return}try{const{getApiUrl:a}=await nt(async()=>{const{getApiUrl:l}=await Promise.resolve().then(()=>Aee);return{getApiUrl:l}},void 0,import.meta.url),o=await fetch(`${a()}/api/auth/refresh`,{method:"POST",credentials:"include"});if(o.ok){const l=await o.json();if(l.access_token){pd=l.access_token;return}}}catch{}return}bz();const n=k0(),r=(n==null?void 0:n.getItem(fd))??null;r&&(pd=r)}function bz(){const e=v9(),n=k0(),r=(e==null?void 0:e.getItem(fd))??null;r&&(Yx()&&(n==null||n.setItem(fd,r)),e==null||e.removeItem(fd),pd||(pd=r));const i=(n==null?void 0:n.getItem(N5))??null;i&&(Yx()&&(n==null||n.setItem(fd,i)),n==null||n.removeItem(N5),pd||(pd=i))}function If(){return pd}function V7e(e){var n,r,i;if(pd=e,Yx()){(n=k0())==null||n.setItem(fd,e),(r=k0())==null||r.removeItem(N5),(i=v9())==null||i.removeItem(fd);const s=b9();s!=null&&s.credentialStore&&s.credentialStore(x9,e).catch(()=>{})}}function zT(){var e,n,r;if(pd=null,(e=k0())==null||e.removeItem(fd),(n=k0())==null||n.removeItem(N5),(r=v9())==null||r.removeItem(fd),Yx()){const i=b9();i!=null&&i.credentialClear&&i.credentialClear(x9).catch(()=>{})}}async function q7e(){if(!Yx())try{const{getApiUrl:e}=await nt(async()=>{const{getApiUrl:n}=await Promise.resolve().then(()=>Aee);return{getApiUrl:n}},void 0,import.meta.url);await fetch(`${e()}/api/auth/logout`,{method:"POST",credentials:"include"})}catch{}}const v3="jait-gateway-url";function G7e(){return typeof window>"u"?!1:!!(window.jaitDesktop||window.Capacitor)}function T5(){return G7e()}function K7e(){var e;return typeof window<"u"&&((e=window.location)!=null&&e.origin)&&window.location.origin!=="null"?window.location.origin:"http://localhost:8000"}function Y7e(){var e;return typeof window<"u"&&((e=window.location)!=null&&e.origin)&&window.location.origin!=="null"?window.location.origin:"http://localhost:8000"}function Em(e){return e.endsWith("/")?e.slice(0,-1):e}function FT(e){return e.replace(/^http/,"ws")}function X7e(e,n=!1){try{const r=new URL(e);return n&&r.port&&r.port!=="8000"&&(r.port="8000"),Em(r.toString())}catch{return Em(e)}}function w1(){if(!T5())return null;try{const e=localStorage.getItem(v3);return e&&e.trim()?e.trim():null}catch{return null}}function Eee(e){if(!T5()){try{localStorage.removeItem(v3)}catch{}window.dispatchEvent(new Event("jait-gateway-url-changed"));return}try{e&&e.trim()?localStorage.setItem(v3,Em(e.trim())):localStorage.removeItem(v3)}catch{}window.dispatchEvent(new Event("jait-gateway-url-changed"))}function Nr(){var r;const e=w1();if(e)return Em(e);const n=typeof window<"u"?(r=window.jaitDesktop)==null?void 0:r.gatewayUrl:void 0;return n?Em(n):K7e()}function Y0(){var r;const e=w1();if(e)return Em(FT(e));const n=typeof window<"u"?(r=window.jaitDesktop)==null?void 0:r.gatewayUrl:void 0;return Em(FT(n||Y7e()))}function _9(){var e;return!!(T5()&&w1()||typeof window<"u"&&((e=window.jaitDesktop)!=null&&e.gatewayUrl)||!T5())}const J7e=Nr(),Z7e=Y0(),Aee=Object.freeze(Object.defineProperty({__proto__:null,API_URL:J7e,WS_URL:Z7e,getApiUrl:Nr,getStoredGatewayUrl:w1,getWsUrl:Y0,isGatewayConfigured:_9,normalizeDirectGatewayBase:X7e,setStoredGatewayUrl:Eee},Symbol.toStringTag,{value:"Module"})),pr=Nr();class Q7e{constructor(){Xe(this,"_providersInflight",null);Xe(this,"_providersCachedAt",0);Xe(this,"_modelsInflight",new Map);Xe(this,"_modelsCachedAt",new Map)}getToken(){return If()}getHeaders(n=!1){const r={};n&&(r["Content-Type"]="application/json");const i=this.getToken();return i&&(r.Authorization=`Bearer ${i}`),r}async listProviders(n=!1){const r=Date.now();return!n&&this._providersInflight&&r-this._providersCachedAt<3e4?this._providersInflight:(this._providersCachedAt=r,this._providersInflight=(async()=>{const i=await fetch(`${pr}/api/providers${n?"?fresh=1":""}`,{headers:this.getHeaders()});if(!i.ok)throw new Error(`Failed to list providers: ${i.statusText}`);const s=await i.json();return{providers:s.providers,remoteProviders:s.remoteProviders??[]}})(),this._providersInflight.catch(()=>{this._providersInflight=null,this._providersCachedAt=0}),this._providersInflight)}async listProvidersFresh(){return this._providersInflight=null,this._providersCachedAt=0,this.listProviders(!0)}async getProviderAuthStatus(n){const r=await fetch(`${pr}/api/providers/${n}/auth/status`,{headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to get provider auth status: ${r.statusText}`);return r.json()}async startProviderLogin(n){const r=await fetch(`${pr}/api/providers/${n}/auth/login`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify({})}),i=await r.json().catch(()=>null);if(!r.ok){const s=i&&"message"in i&&typeof i.message=="string"?i.message:i&&"error"in i&&typeof i.error=="string"?i.error:`Failed to start provider login: ${r.statusText}`;throw new Error(s)}return i}async logoutProvider(n){const r=await fetch(`${pr}/api/providers/${n}/auth/logout`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify({})}),i=await r.json().catch(()=>null);if(!r.ok){const s=i&&"message"in i&&typeof i.message=="string"?i.message:i&&"error"in i&&typeof i.error=="string"?i.error:`Failed to log out provider: ${r.statusText}`;throw new Error(s)}return i}async sendProviderLoginInput(n,r){const i=await fetch(`${pr}/api/providers/${n}/auth/login/input`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify({code:r})});if(!i.ok){const s=await i.json().catch(()=>null);throw new Error((s==null?void 0:s.error)??`Failed to send login code: ${i.statusText}`)}}async listProviderModels(n){const r=Date.now(),i=this._modelsCachedAt.get(n)??0,s=this._modelsInflight.get(n);if(s&&r-i<15e3)return s;this._modelsCachedAt.set(n,r);const a=(async()=>{const o=await fetch(`${pr}/api/providers/${n}/models`,{headers:this.getHeaders()});if(!o.ok){const l=await o.json().catch(()=>({}));throw new Error(l.error||l.message||`Failed to list models: ${o.statusText}`)}return o.json()})();return this._modelsInflight.set(n,a),a.catch(()=>{this._modelsInflight.delete(n),this._modelsCachedAt.delete(n)}),a}async listThreads(n){return(await this.listThreadsPage({sessionId:n})).threads}async listThreadsPage(n={}){const r=new URLSearchParams;n.sessionId&&r.set("sessionId",n.sessionId),typeof n.limit=="number"&&r.set("limit",String(n.limit));const i=r.toString(),s=await fetch(`${pr}/api/threads${i?`?${i}`:""}`,{headers:this.getHeaders()});if(!s.ok)throw new Error(`Failed to list threads: ${s.statusText}`);const a=await s.json();return{threads:a.threads,hasMore:!!a.hasMore}}async getThread(n){const r=await fetch(`${pr}/api/threads/${n}`,{headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to get thread: ${r.statusText}`);return r.json()}async createThread(n){const r=await fetch(`${pr}/api/threads`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify(n)});if(!r.ok)throw new Error(`Failed to create thread: ${r.statusText}`);return r.json()}async updateThread(n,r){const i=await fetch(`${pr}/api/threads/${n}`,{method:"PATCH",headers:this.getHeaders(!0),body:JSON.stringify(r)});if(!i.ok)throw new Error(`Failed to update thread: ${i.statusText}`);return i.json()}async deleteThread(n){const r=await fetch(`${pr}/api/threads/${n}`,{method:"DELETE",headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to delete thread: ${r.statusText}`)}async startThread(n,r){const i=typeof r=="string"?{message:r}:r??{},s=await fetch(`${pr}/api/threads/${n}/start`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify(i)});if(!s.ok){const a=await s.json().catch(()=>({})),o=new Error(a.error||`Failed to start thread: ${s.statusText}`);throw a.code&&(o.code=a.code),o}return s.json()}async sendTurn(n,r){const i=typeof r=="string"?{message:r}:r,s=await fetch(`${pr}/api/threads/${n}/send`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify(i)});if(!s.ok)throw new Error(`Failed to send turn: ${s.statusText}`)}async steerThread(n,r){const i=await fetch(`${pr}/api/threads/${n}/steer`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify({message:r})});if(!i.ok){const s=await i.json().catch(()=>({})),a=typeof s.details=="string"?s.details:null,o=typeof s.error=="string"?s.error:null;throw new Error(a||o||`Failed to steer thread: ${i.statusText}`)}}async stopThread(n){const r=await fetch(`${pr}/api/threads/${n}/stop`,{method:"POST",headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to stop thread: ${r.statusText}`)}async interruptThread(n){const r=await fetch(`${pr}/api/threads/${n}/interrupt`,{method:"POST",headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to interrupt thread: ${r.statusText}`)}async approveToolCall(n,r,i){const s=await fetch(`${pr}/api/threads/${n}/approve`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify({requestId:r,approved:i})});if(!s.ok)throw new Error(`Failed to approve: ${s.statusText}`)}async createPullRequest(n,r){const i=await fetch(`${pr}/api/threads/${n}/create-pr`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify(r)});if(!i.ok){const s=await i.json().catch(()=>({}));throw new Error(s.error||`Failed to create pull request: ${i.statusText}`)}return i.json()}async getActivities(n,r){const i=typeof r=="number"?`?limit=${r}`:"",s=await fetch(`${pr}/api/threads/${n}/activities${i}`,{headers:this.getHeaders()});if(!s.ok)throw new Error(`Failed to get activities: ${s.statusText}`);return(await s.json()).activities}async listRepos(){const n=await fetch(`${pr}/api/repos`,{headers:this.getHeaders()});if(!n.ok)throw new Error(`Failed to list repos: ${n.statusText}`);return(await n.json()).repos}async createRepo(n){const r=await fetch(`${pr}/api/repos`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify(n)});if(!r.ok)throw new Error(`Failed to create repo: ${r.statusText}`);return(await r.json()).repo}async updateRepo(n,r){const i=await fetch(`${pr}/api/repos/${n}`,{method:"PATCH",headers:this.getHeaders(!0),body:JSON.stringify(r)});if(!i.ok)throw new Error(`Failed to update repo: ${i.statusText}`);return(await i.json()).repo}async deleteRepo(n){const r=await fetch(`${pr}/api/repos/${n}`,{method:"DELETE",headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to delete repo: ${r.statusText}`)}async getRepoStrategy(n){const r=await fetch(`${pr}/api/repos/${n}/strategy`,{headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to get strategy: ${r.statusText}`);return(await r.json()).strategy}async updateRepoStrategy(n,r){const i=await fetch(`${pr}/api/repos/${n}/strategy`,{method:"PUT",headers:this.getHeaders(!0),body:JSON.stringify({strategy:r})});if(!i.ok)throw new Error(`Failed to update strategy: ${i.statusText}`);return(await i.json()).strategy}async generateRepoStrategy(n){const r=await fetch(`${pr}/api/repos/${n}/strategy/generate`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify({})});if(!r.ok){const s=await r.json().catch(()=>({error:r.statusText}));throw new Error(s.error||`Failed to generate strategy: ${r.statusText}`)}return(await r.json()).strategy}async listPlans(n){const r=await fetch(`${pr}/api/repos/${n}/plans`,{headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to list plans: ${r.statusText}`);return(await r.json()).plans}async createPlan(n,r){const i=await fetch(`${pr}/api/repos/${n}/plans`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify(r??{})});if(!i.ok)throw new Error(`Failed to create plan: ${i.statusText}`);return(await i.json()).plan}async getPlan(n){const r=await fetch(`${pr}/api/plans/${n}`,{headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to get plan: ${r.statusText}`);return(await r.json()).plan}async updatePlan(n,r){const i=await fetch(`${pr}/api/plans/${n}`,{method:"PATCH",headers:this.getHeaders(!0),body:JSON.stringify(r)});if(!i.ok)throw new Error(`Failed to update plan: ${i.statusText}`);return(await i.json()).plan}async deletePlan(n){const r=await fetch(`${pr}/api/plans/${n}`,{method:"DELETE",headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to delete plan: ${r.statusText}`)}async generatePlanTasks(n,r){const i=await fetch(`${pr}/api/plans/${n}/generate`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify(r??{})});if(!i.ok){const s=await i.json().catch(()=>({error:i.statusText}));throw new Error(s.error||`Failed to generate tasks: ${i.statusText}`)}return await i.json()}async startPlanTask(n,r){const i=await fetch(`${pr}/api/plans/${n}/tasks/${r}/start`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify({})});if(!i.ok)throw new Error(`Failed to start task: ${i.statusText}`);return await i.json()}async startAllPlanTasks(n){const r=await fetch(`${pr}/api/plans/${n}/start`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify({})});if(!r.ok){const i=await r.json().catch(()=>({error:r.statusText}));throw new Error(i.error||`Failed to start tasks: ${r.statusText}`)}return await r.json()}async listJaitTodos(n){const r=await fetch(`${pr}/api/repos/${n}/todos`,{headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to list todos: ${r.statusText}`);return(await r.json()).todos}async createJaitTodo(n,r){const i=await fetch(`${pr}/api/repos/${n}/todos`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify(r)});if(!i.ok)throw new Error(`Failed to create todo: ${i.statusText}`);return(await i.json()).todo}async generateJaitTodos(n,r={}){const i=await fetch(`${pr}/api/repos/${n}/todos/generate`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify(r)});if(!i.ok){const s=await i.json().catch(()=>({}));throw new Error(s.error||`Failed to generate todos: ${i.statusText}`)}return await i.json()}async updateJaitTodo(n,r){const i=await fetch(`${pr}/api/jait-todos/${n}`,{method:"PATCH",headers:this.getHeaders(!0),body:JSON.stringify(r)});if(!i.ok)throw new Error(`Failed to update todo: ${i.statusText}`);return(await i.json()).todo}async deleteJaitTodo(n){const r=await fetch(`${pr}/api/jait-todos/${n}`,{method:"DELETE",headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to delete todo: ${r.statusText}`)}async getRemindersSnapshot(n={}){const r=new URLSearchParams;n.status&&r.set("status",n.status),typeof n.limit=="number"&&r.set("limit",String(n.limit));const i=r.toString(),s=await fetch(`${pr}/api/reminders${i?`?${i}`:""}`,{headers:this.getHeaders()});if(!s.ok)throw new Error(`Failed to load reminders: ${s.statusText}`);return s.json()}async exportMemoryMarkdown(n={}){const r=new URLSearchParams;n.status&&r.set("status",n.status),n.projectId&&n.projectId!=="all"&&r.set("projectId",n.projectId),typeof n.limit=="number"&&r.set("limit",String(n.limit));const i=r.toString(),s=await fetch(`${pr}/api/reminders/export.md${i?`?${i}`:""}`,{headers:this.getHeaders()});if(!s.ok)throw new Error(`Failed to export memory: ${s.statusText}`);return s.text()}async createReminder(n){const r=await fetch(`${pr}/api/reminders`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify(n)});if(!r.ok)throw new Error(`Failed to create reminder: ${r.statusText}`);return(await r.json()).reminder}async updateReminder(n,r){const i=await fetch(`${pr}/api/reminders/${n}`,{method:"PATCH",headers:this.getHeaders(!0),body:JSON.stringify(r)});if(!i.ok)throw new Error(`Failed to update reminder: ${i.statusText}`);return(await i.json()).reminder}async deleteReminder(n){const r=await fetch(`${pr}/api/reminders/${n}`,{method:"DELETE",headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to delete reminder: ${r.statusText}`)}async listUserSecrets(n={}){const r=new URLSearchParams;n.type&&r.set("type",n.type);const i=r.toString(),s=await fetch(`${pr}/api/secrets${i?`?${i}`:""}`,{headers:this.getHeaders()});if(!s.ok)throw new Error(`Failed to load secrets: ${s.statusText}`);return(await s.json()).secrets}async createUserSecret(n){const r=await fetch(`${pr}/api/secrets`,{method:"POST",headers:this.getHeaders(!0),body:JSON.stringify(n)});if(!r.ok)throw new Error(`Failed to save secret: ${r.statusText}`);return(await r.json()).secret}async deleteUserSecret(n){const r=await fetch(`${pr}/api/secrets/${n}`,{method:"DELETE",headers:this.getHeaders()});if(!r.ok)throw new Error(`Failed to delete secret: ${r.statusText}`)}async listRepoProposals(n){return this.listJaitTodos(n)}async createRepoProposal(n,r){return this.createJaitTodo(n,r)}async updateRepoProposal(n,r){return this.updateJaitTodo(n,r)}async deleteRepoProposal(n){return this.deleteJaitTodo(n)}}const bn=new Q7e,Vg=Nr(),HT={theme:"system",api_keys:{},stt_provider:"whisper",chat_provider:"jait",jait_backend:"openai",recent_models:[],selected_model:null,reasoning_effort:null,project_picker_path:null,project_picker_node_id:null,updated_at:new Date(0).toISOString()};async function WT(e){try{const n=await fetch(`${Vg}/api/auth/settings`,{headers:{Authorization:`Bearer ${e}`}});return n.ok?await n.json():null}catch{return null}}function Oee(){const[e,n]=y.useState({user:null,token:null,settings:null,isLoading:!0}),r=y.useCallback(async f=>{try{const m=await fetch(`${Vg}/api/auth/me`,{headers:{Authorization:`Bearer ${f}`}});if(!m.ok){zT(),n({user:null,token:null,settings:null,isLoading:!1});return}const x=await m.json(),v=await WT(f);n({user:x,token:f,settings:v??HT,isLoading:!1})}catch{zT(),n({user:null,token:null,settings:null,isLoading:!1})}},[]);y.useEffect(()=>{(async()=>{await U7e();const f=If();if(f){r(f);return}n(m=>({...m,isLoading:!1}))})()},[r]);const i=y.useCallback(async f=>{V7e(f.access_token),n({user:f.user,token:f.access_token,settings:HT,isLoading:!1});const m=await WT(f.access_token);m&&n(x=>x.token!==f.access_token?x:{...x,settings:m})},[]),s=y.useCallback(async(f,m)=>{const x=await fetch(`${Vg}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({username:f,password:m})});if(!x.ok){const _=await x.json().catch(()=>({detail:"Login failed"}));throw new Error(_.detail??"Login failed")}const v=await x.json();return await i(v),v},[i]),a=y.useCallback(async(f,m)=>{const x=await fetch(`${Vg}/api/auth/register`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({username:f,password:m})});if(!x.ok){const _=await x.json().catch(()=>({detail:"Registration failed"}));throw new Error(_.detail??"Registration failed")}const v=await x.json();return await i(v),v},[i]),o=y.useCallback(()=>{zT(),q7e(),n({user:null,token:null,settings:null,isLoading:!1})},[]),l=y.useCallback(async()=>{if(!e.token)return null;const f=await WT(e.token);return f?(n(m=>({...m,settings:f})),f):null},[e.token]),u=y.useCallback(async f=>{if(!e.token)throw new Error("Not authenticated");const m=await fetch(`${Vg}/api/auth/settings`,{method:"PATCH",headers:{Authorization:`Bearer ${e.token}`,"Content-Type":"application/json"},body:JSON.stringify(f)});if(!m.ok){const v=await m.json().catch(()=>({detail:"Failed to update settings"}));throw new Error(v.detail??"Failed to update settings")}const x=await m.json();return n(v=>({...v,settings:x})),x},[e.token]),d=y.useCallback(async()=>{if(!e.token)throw new Error("Not authenticated");const f=await fetch(`${Vg}/api/auth/settings/archive`,{method:"DELETE",headers:{Authorization:`Bearer ${e.token}`}});if(!f.ok){const m=await f.json().catch(()=>({detail:"Failed to clear archive"}));throw new Error(m.detail??"Failed to clear archive")}return await f.json()},[e.token]),h=y.useCallback(async f=>{if(e.token)try{await fetch(`${Vg}/api/auth/session/bind`,{method:"POST",headers:{Authorization:`Bearer ${e.token}`,"Content-Type":"application/json"},body:JSON.stringify({session_id:f})})}catch{}},[e.token]);return{user:e.user,token:e.token,settings:e.settings??HT,isLoading:e.isLoading,isAuthenticated:!!e.user,login:s,register:a,logout:o,bindSession:h,refreshSettings:l,updateSettings:u,clearSessionArchive:d}}var xS="Ollama",eRe=.6,tRe=.1,Ree="#fff",nRe=Ree,rRe="#000",iRe=.75;function mw(e){"@babel/helpers - typeof";return mw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mw(e)}var sRe=["size","style"];function _z(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function UT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?_z(Object(r),!0).forEach(function(i){aRe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_z(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function aRe(e,n,r){return n=oRe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function oRe(e){var n=lRe(e,"string");return mw(n)=="symbol"?n:String(n)}function lRe(e,n){if(mw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(mw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function cRe(e,n){if(e==null)return{};var r=uRe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function uRe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var w9=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=cRe(e,sRe);return c.jsxs("svg",UT(UT({fill:"currentColor",fillRule:"evenodd",height:r,style:UT({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:xS}),c.jsx("path",{d:"M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z"})]}))});function gw(e){"@babel/helpers - typeof";return gw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},gw(e)}function wz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function dRe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?wz(Object(r),!0).forEach(function(i){hRe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function hRe(e,n,r){return n=fRe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function fRe(e){var n=pRe(e,"string");return gw(n)=="symbol"?n:String(n)}function pRe(e,n){if(gw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(gw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function mRe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var gRe=y.memo(function(e){var n=Object.assign({},(mRe(e),e));return c.jsx(Jl,dRe({Icon:w9,"aria-label":xS,background:nRe,color:rRe,iconMultiple:iRe},n))});function yw(e){"@babel/helpers - typeof";return yw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},yw(e)}var yRe=["size","style"];function Sz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function VT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Sz(Object(r),!0).forEach(function(i){xRe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function xRe(e,n,r){return n=vRe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function vRe(e){var n=bRe(e,"string");return yw(n)=="symbol"?n:String(n)}function bRe(e,n){if(yw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(yw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function _Re(e,n){if(e==null)return{};var r=wRe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function wRe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Mee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=_Re(e,yRe);return c.jsxs("svg",VT(VT({fill:"currentColor",fillRule:"evenodd",height:r,style:VT({flex:"none",lineHeight:1},i),viewBox:"0 0 87 24",xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:xS}),c.jsx("path",{d:"M11.333 2c-2.959 0-5.272.943-6.94 2.884C2.78 6.717 2 9.09 2 12.027c0 2.911.78 5.283 2.394 7.116C6.06 21.03 8.374 22 11.333 22c2.931 0 5.244-.943 6.939-2.83 1.614-1.806 2.42-4.178 2.42-7.143s-.806-5.364-2.42-7.17C16.577 2.943 14.264 2 11.332 2zm0 2.776c1.99 0 3.523.62 4.599 1.914 1.049 1.294 1.587 3.073 1.587 5.337s-.538 4.016-1.587 5.283c-1.076 1.267-2.609 1.914-4.6 1.914-1.99 0-3.55-.674-4.625-1.995-1.05-1.294-1.56-3.019-1.56-5.202 0-2.21.51-3.935 1.56-5.23 1.102-1.347 2.636-2.02 4.626-2.02zM22.979 2v19.623h3.066V2h-3.066zm6.159 0v19.623h3.066V2h-3.066zm12.21 5.31c-1.775 0-3.173.296-4.195.943-1.21.701-1.964 1.833-2.26 3.37l3.04.242c.161-.728.564-1.267 1.156-1.617.511-.323 1.184-.458 2.044-.458 1.99 0 2.986.89 2.986 2.722v.54l-3.04.08c-2.044.054-3.63.485-4.76 1.294-1.237.835-1.829 2.048-1.829 3.612 0 1.159.43 2.102 1.29 2.857.835.728 1.964 1.105 3.417 1.105 1.21 0 2.259-.216 3.146-.62.78-.377 1.453-.89 1.99-1.59v1.833h2.852v-8.895c0-1.698-.43-2.992-1.291-3.882-.969-1.024-2.502-1.536-4.546-1.536zm2.77 7.951v.701c0 1.078-.43 1.968-1.237 2.669-.806.674-1.802 1.024-2.985 1.024-.672 0-1.21-.189-1.64-.512-.431-.324-.62-.728-.62-1.213 0-1.614 1.129-2.473 3.41-2.58l3.073-.089zM56.572 7.31c-1.344 0-2.609.593-3.765 1.806V7.687H49.74v13.936h3.066v-8.356c0-.917.269-1.725.807-2.372.538-.7 1.237-1.024 2.125-1.024 1.828 0 2.743 1.05 2.743 3.18v8.572h3.066v-8.518c0-1.024.242-1.806.78-2.372.511-.593 1.13-.862 1.883-.862 1.075 0 1.829.242 2.313.754.457.486.699 1.294.699 2.4v8.598h3.066v-9.138c0-1.536-.484-2.776-1.398-3.746-.969-.97-2.152-1.429-3.578-1.429-.941 0-1.72.162-2.34.485-.699.324-1.371.917-2.017 1.78-.887-1.51-2.34-2.265-4.384-2.265zm22.593 0c-1.775 0-3.174.296-4.196.943-1.21.701-1.963 1.833-2.26 3.37l3.04.242c.161-.728.565-1.267 1.156-1.617.511-.323 1.184-.458 2.044-.458 1.99 0 2.986.89 2.986 2.722v.54l-3.04.08c-2.043.054-3.63.485-4.76 1.294-1.237.835-1.829 2.048-1.829 3.612 0 1.159.43 2.102 1.291 2.857.834.728 1.964 1.105 3.416 1.105 1.21 0 2.26-.216 3.147-.62.78-.377 1.452-.89 1.99-1.59v1.833H85v-8.895c0-1.698-.43-2.992-1.291-3.882-.968-1.024-2.501-1.536-4.545-1.536zm2.77 7.951v.701c0 1.078-.43 1.968-1.237 2.669-.807.674-1.802 1.024-2.986 1.024-.672 0-1.21-.189-1.64-.512-.43-.324-.619-.728-.619-1.213 0-1.614 1.128-2.473 3.41-2.58l3.072-.089z"})]}))});function xw(e){"@babel/helpers - typeof";return xw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xw(e)}function kz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function SRe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?kz(Object(r),!0).forEach(function(i){kRe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function kRe(e,n,r){return n=CRe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function CRe(e){var n=jRe(e,"string");return xw(n)=="symbol"?n:String(n)}function jRe(e,n){if(xw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(xw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function NRe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var TRe=y.memo(function(e){var n=Object.assign({},(NRe(e),e));return c.jsx(Zl,SRe({Icon:w9,Text:Mee,"aria-label":xS,spaceMultiple:tRe,textMultiple:eRe},n))}),X0=w9;X0.Text=Mee;X0.Combine=TRe;X0.Avatar=gRe;X0.colorPrimary=Ree;X0.title=xS;var C0="Qwen",ERe=.7,ARe=.2,Pee="#615ced",ORe="linear-gradient(to right, #6336E7, #6F69F7)",RRe=Pee,MRe="#fff",PRe=.75;function vw(e){"@babel/helpers - typeof";return vw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vw(e)}var LRe=["size","style"];function Cz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function qT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Cz(Object(r),!0).forEach(function(i){$Re(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function $Re(e,n,r){return n=DRe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function DRe(e){var n=IRe(e,"string");return vw(n)=="symbol"?n:String(n)}function IRe(e,n){if(vw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(vw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function BRe(e,n){if(e==null)return{};var r=zRe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function zRe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var S9=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=BRe(e,LRe);return c.jsxs("svg",qT(qT({fill:"currentColor",fillRule:"evenodd",height:r,style:qT({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:C0}),c.jsx("path",{d:"M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z"})]}))});function bw(e){"@babel/helpers - typeof";return bw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bw(e)}function jz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function FRe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?jz(Object(r),!0).forEach(function(i){HRe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function HRe(e,n,r){return n=WRe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function WRe(e){var n=URe(e,"string");return bw(n)=="symbol"?n:String(n)}function URe(e,n){if(bw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(bw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function VRe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var qRe=y.memo(function(e){var n=Object.assign({},(VRe(e),e));return c.jsx(Jl,FRe({Icon:S9,"aria-label":C0,background:RRe,color:MRe,iconMultiple:PRe},n))}),GRe=function(n){var r="lobe-icons-".concat(aee(n),"-fill");return y.useMemo(function(){return{fill:"url(#".concat(r,")"),id:r}},[n])},k9=function(n,r){return y.useMemo(function(){var i=Array.from({length:r},function(s,a){var o="lobe-icons-".concat(aee(n),"-fill-").concat(a);return{fill:"url(#".concat(o,")"),id:o}});return i},[n,r])};function _w(e){"@babel/helpers - typeof";return _w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_w(e)}var KRe=["size","style"];function Nz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function GT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Nz(Object(r),!0).forEach(function(i){YRe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function YRe(e,n,r){return n=XRe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function XRe(e){var n=JRe(e,"string");return _w(n)=="symbol"?n:String(n)}function JRe(e,n){if(_w(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(_w(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function ZRe(e,n){if(e==null)return{};var r=QRe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function QRe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Lee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=ZRe(e,KRe),a=GRe(C0),o=a.id,l=a.fill;return c.jsxs("svg",GT(GT({height:r,style:GT({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:C0}),c.jsx("path",{d:"M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z",fill:l,fillRule:"nonzero"}),c.jsx("defs",{children:c.jsxs("linearGradient",{id:o,x1:"0%",x2:"100%",y1:"0%",y2:"0%",children:[c.jsx("stop",{offset:"0%",stopColor:"#6336E7",stopOpacity:".84"}),c.jsx("stop",{offset:"100%",stopColor:"#6F69F7",stopOpacity:".84"})]})})]}))});function ww(e){"@babel/helpers - typeof";return ww=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ww(e)}var eMe=["size","style"];function Tz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function KT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Tz(Object(r),!0).forEach(function(i){tMe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function tMe(e,n,r){return n=nMe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function nMe(e){var n=rMe(e,"string");return ww(n)=="symbol"?n:String(n)}function rMe(e,n){if(ww(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(ww(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function iMe(e,n){if(e==null)return{};var r=sMe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function sMe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var $ee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=iMe(e,eMe);return c.jsxs("svg",KT(KT({fill:"currentColor",fillRule:"evenodd",height:r,style:KT({flex:"none",lineHeight:1},i),viewBox:"0 0 75 24",xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:C0}),c.jsx("path",{d:"M11.425 14.13h3.642l1.529 1.795a7.89 7.89 0 002.166-2.832 8.36 8.36 0 00.771-3.562c0-2.03-.624-3.664-1.874-4.905-1.24-1.25-2.884-1.874-4.931-1.874-1.028 0-1.99.186-2.885.558A6.99 6.99 0 007.45 4.932 8.576 8.576 0 005.656 7.67a8.354 8.354 0 00-.625 3.19c0 2.003.611 3.643 1.834 4.919 1.223 1.276 2.779 1.914 4.666 1.914.39 0 .793-.031 1.21-.093.425-.062.868-.16 1.329-.293l-2.645-3.177zM18.07 22l-2.127-2.46c-.753.293-1.48.51-2.18.652a9.84 9.84 0 01-2.073.226c-2.97 0-5.326-.85-7.072-2.552C2.873 16.164 2 13.865 2 10.966c0-1.577.28-3.052.837-4.426a10.148 10.148 0 012.406-3.576A10.427 10.427 0 018.713.758C10.025.253 11.429 0 12.927 0c2.915 0 5.25.86 7.005 2.579 1.755 1.72 2.632 4.01 2.632 6.872 0 1.764-.354 3.399-1.063 4.905a10.156 10.156 0 01-3.031 3.776L21.714 22H18.07zm5.743-14.675h2.884l2.047 6.433.054.16c.248.789.38 1.373.399 1.755.097-.302.221-.62.372-.958.16-.345.354-.713.585-1.103l4.227-7.218 2.06 7.43c.08.275.146.559.2.851.053.293.097.63.133 1.01.132-.372.265-.708.398-1.01.142-.3.28-.562.412-.784l3.816-6.567h3.243L36.097 20.71l-2.127-7.045a8.683 8.683 0 01-.213-.798 17.846 17.846 0 01-.146-.97 69.17 69.17 0 01-.519 1.063c-.15.302-.265.514-.345.638l-4.28 7.112-4.653-13.385zm24.392 4.785h6.5c-.026-.85-.292-1.52-.797-2.007-.496-.497-1.166-.745-2.008-.745-.957 0-1.768.248-2.432.745-.665.496-1.086 1.165-1.263 2.007zm6.34 3.948l2.061 1.608c-.735.966-1.533 1.67-2.392 2.114-.86.443-1.848.665-2.965.665-1.87 0-3.38-.563-4.533-1.689-1.152-1.134-1.728-2.623-1.728-4.466 0-2.162.66-3.935 1.98-5.317 1.33-1.391 3.018-2.087 5.066-2.087 1.71 0 3.07.532 4.08 1.595 1.02 1.055 1.53 2.473 1.53 4.254 0 .15-.01.345-.027.585-.01.23-.027.51-.054.837h-9.61c0 1.143.288 2.056.864 2.738.576.674 1.342 1.01 2.3 1.01.664 0 1.293-.159 1.887-.478a4.633 4.633 0 001.542-1.369zm14.317 3.868l.957-7.244c.018-.133.031-.27.04-.412.009-.151.013-.368.013-.652 0-.824-.2-1.453-.598-1.887-.399-.444-.98-.665-1.741-.665-1.188 0-2.118.385-2.792 1.156-.673.763-1.112 1.937-1.316 3.523l-.797 6.181H59.77l1.661-12.601h2.752l-.213 1.515c.727-.664 1.476-1.156 2.247-1.475a6.5 6.5 0 012.486-.479c1.293 0 2.3.341 3.017 1.024.727.673 1.09 1.622 1.09 2.845 0 .31-.018.673-.053 1.09-.036.407-.089.886-.16 1.435l-.877 6.647h-2.858z"})]}))});function Sw(e){"@babel/helpers - typeof";return Sw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sw(e)}var aMe=["type","extraStyle"];function Ez(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function Az(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Ez(Object(r),!0).forEach(function(i){oMe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ez(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function oMe(e,n,r){return n=lMe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function lMe(e){var n=cMe(e,"string");return Sw(n)=="symbol"?n:String(n)}function cMe(e,n){if(Sw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Sw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function uMe(e,n){if(e==null)return{};var r=dMe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function dMe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var hMe=y.memo(function(e){var n=e.type,r=n===void 0?"mono":n,i=e.extraStyle,s=uMe(e,aMe),a=r==="color"?Lee:S9;return c.jsx(Zl,Az({Icon:a,Text:$ee,"aria-label":C0,extraStyle:Az({fontWeight:500},i),spaceMultiple:ARe,textMultiple:ERe},s))}),md=S9;md.Color=Lee;md.Text=$ee;md.Combine=hMe;md.Avatar=qRe;md.colorPrimary=Pee;md.colorGradient=ORe;md.title=C0;var Oh="Meta",fMe=.75,pMe=.2,mMe="#1d65c1",Dee="linear-gradient(45deg, #007FF8, #0668E1, #007FF8)",gMe=Dee,yMe="#fff",xMe=.75;function kw(e){"@babel/helpers - typeof";return kw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kw(e)}var vMe=["size","style"];function Oz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function YT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Oz(Object(r),!0).forEach(function(i){bMe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function bMe(e,n,r){return n=_Me(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function _Me(e){var n=wMe(e,"string");return kw(n)=="symbol"?n:String(n)}function wMe(e,n){if(kw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(kw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function SMe(e,n){if(e==null)return{};var r=kMe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function kMe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var C9=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=SMe(e,vMe);return c.jsxs("svg",YT(YT({fill:"currentColor",fillRule:"evenodd",height:r,style:YT({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:Oh}),c.jsx("path",{d:"M6.897 4c1.915 0 3.516.932 5.43 3.376l.282-.373c.19-.246.383-.484.58-.71l.313-.35C14.588 4.788 15.792 4 17.225 4c1.273 0 2.469.557 3.491 1.516l.218.213c1.73 1.765 2.917 4.71 3.053 8.026l.011.392.002.25c0 1.501-.28 2.759-.818 3.7l-.14.23-.108.153c-.301.42-.664.758-1.086 1.009l-.265.142-.087.04a3.493 3.493 0 01-.302.118 4.117 4.117 0 01-1.33.208c-.524 0-.996-.067-1.438-.215-.614-.204-1.163-.56-1.726-1.116l-.227-.235c-.753-.812-1.534-1.976-2.493-3.586l-1.43-2.41-.544-.895-1.766 3.13-.343.592C7.597 19.156 6.227 20 4.356 20c-1.21 0-2.205-.42-2.936-1.182l-.168-.184c-.484-.573-.837-1.311-1.043-2.189l-.067-.32a8.69 8.69 0 01-.136-1.288L0 14.468c.002-.745.06-1.49.174-2.23l.1-.573c.298-1.53.828-2.958 1.536-4.157l.209-.34c1.177-1.83 2.789-3.053 4.615-3.16L6.897 4zm-.033 2.615l-.201.01c-.83.083-1.606.673-2.252 1.577l-.138.199-.01.018c-.67 1.017-1.185 2.378-1.456 3.845l-.004.022a12.591 12.591 0 00-.207 2.254l.002.188c.004.18.017.36.04.54l.043.291c.092.503.257.908.486 1.208l.117.137c.303.323.698.492 1.17.492 1.1 0 1.796-.676 3.696-3.641l2.175-3.4.454-.701-.139-.198C9.11 7.3 8.084 6.616 6.864 6.616zm10.196-.552l-.176.007c-.635.048-1.223.359-1.82.933l-.196.198c-.439.462-.887 1.064-1.367 1.807l.266.398c.18.274.362.56.55.858l.293.475 1.396 2.335.695 1.114c.583.926 1.03 1.6 1.408 2.082l.213.262c.282.326.529.54.777.673l.102.05c.227.1.457.138.718.138.176.002.35-.023.518-.073.338-.104.61-.32.813-.637l.095-.163.077-.162c.194-.459.29-1.06.29-1.785l-.006-.449c-.08-2.871-.938-5.372-2.2-6.798l-.176-.189c-.67-.683-1.444-1.074-2.27-1.074z"})]}))});function Cw(e){"@babel/helpers - typeof";return Cw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cw(e)}function Rz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function CMe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Rz(Object(r),!0).forEach(function(i){jMe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function jMe(e,n,r){return n=NMe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function NMe(e){var n=TMe(e,"string");return Cw(n)=="symbol"?n:String(n)}function TMe(e,n){if(Cw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Cw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function EMe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var AMe=y.memo(function(e){var n=Object.assign({},(EMe(e),e));return c.jsx(Jl,CMe({Icon:C9,"aria-label":Oh,background:gMe,color:yMe,iconMultiple:xMe},n))});function jw(e){"@babel/helpers - typeof";return jw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jw(e)}var OMe=["size","style"];function Mz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function XT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Mz(Object(r),!0).forEach(function(i){RMe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function RMe(e,n,r){return n=MMe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function MMe(e){var n=PMe(e,"string");return jw(n)=="symbol"?n:String(n)}function PMe(e,n){if(jw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(jw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function LMe(e,n){return BMe(e)||IMe(e,n)||DMe(e,n)||$Me()}function $Me(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
943
943
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DMe(e,n){if(e){if(typeof e=="string")return Pz(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pz(e,n)}}function Pz(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function IMe(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,n!==0)for(;!(u=(i=a.call(r)).done)&&(l.push(i.value),l.length!==n);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function BMe(e){if(Array.isArray(e))return e}function zMe(e,n){if(e==null)return{};var r=FMe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function FMe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var HMe=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=zMe(e,OMe),a=k9("".concat(Oh,"-brand"),13),o=LMe(a,13),l=o[0],u=o[1],d=o[2],h=o[3],f=o[4],m=o[5],x=o[6],v=o[7],_=o[8],w=o[9],S=o[10],C=o[11],j=o[12];return c.jsxs("svg",XT(XT({fill:"currentColor",fillRule:"evenodd",height:r,style:XT({flex:"none",lineHeight:1},i),viewBox:"0 0 103 24",xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:Oh}),c.jsx("path",{d:"M38.337 2.641h3.752l6.38 11.57 6.38-11.57h3.671v19.011H55.46V7.082l-5.594 10.09h-2.872l-5.595-10.09v14.57h-3.06V2.642zm30.058 19.353c-1.418 0-2.664-.314-3.739-.944a6.594 6.594 0 01-2.513-2.614c-.6-1.113-.9-2.39-.9-3.829 0-1.457.293-2.748.88-3.87.587-1.123 1.402-2 2.445-2.635 1.043-.633 2.242-.95 3.596-.95 1.346 0 2.504.319 3.475.957.97.638 1.718 1.532 2.242 2.682.523 1.15.785 2.499.785 4.047v.842h-10.39c.19 1.159.658 2.07 1.403 2.736.745.665 1.686.998 2.824.998.912 0 1.698-.136 2.357-.407a5.997 5.997 0 001.856-1.236l1.625 1.996c-1.616 1.485-3.599 2.227-5.946 2.227zm2.235-11.278c-.642-.656-1.481-.984-2.52-.984-1.011 0-1.858.335-2.54 1.005-.681.67-1.113 1.57-1.293 2.702h7.45c-.09-1.159-.456-2.066-1.097-2.723zm7.748-.712h-2.817V7.492h2.817V3.337h2.953v4.155h4.28v2.512h-4.28v6.369c0 1.059.18 1.815.542 2.267.36.453.98.68 1.855.68.389 0 .718-.016.99-.048l.426-.056c.15-.022.305-.046.467-.073v2.485a8.876 8.876 0 01-2.452.34c-3.187 0-4.781-1.748-4.781-5.242v-6.722zM101 21.654h-2.899v-1.982a5.24 5.24 0 01-1.964 1.718c-.795.403-1.698.604-2.71.604-1.245 0-2.35-.319-3.311-.957-.962-.638-1.718-1.517-2.269-2.635-.55-1.118-.826-2.396-.826-3.836 0-1.448.28-2.73.84-3.843.56-1.113 1.334-1.987 2.323-2.62.989-.634 2.124-.951 3.406-.951.967 0 1.834.188 2.601.563a5.145 5.145 0 011.91 1.596V7.49H101v14.164zm-2.953-9.206c-.316-.806-.815-1.442-1.497-1.908-.682-.466-1.47-.7-2.363-.7-1.265 0-2.272.426-3.021 1.277-.75.851-1.125 2-1.124 3.45 0 1.457.36 2.611 1.083 3.462.722.851 1.702 1.276 2.94 1.276.911 0 1.724-.235 2.438-.706a3.987 3.987 0 001.544-1.9v-4.251z"}),c.jsx("path",{d:"M8.627 0h-.029l-.04 3.27.028-.001c2.146 0 3.81 1.696 7.43 7.807l.22.372.014.024 2.026-3.047-.014-.023a60.949 60.949 0 00-1.374-2.146 35.014 35.014 0 00-1.47-2.036C13.026 1.165 11.024 0 8.628 0z",fill:l.fill,transform:"translate(2 2)"}),c.jsx("path",{d:"M8.598 0C6.19.013 4.062 1.573 2.525 3.961a5.44 5.44 0 00-.013.021l2.82 1.54.015-.022c.897-1.354 2.014-2.218 3.211-2.23l.027-.001L8.627 0h-.03z",fill:u.fill,transform:"translate(2 2)"}),c.jsx("path",{d:"M2.525 3.963l-.013.02C1.502 5.56.749 7.494.342 9.58l-.005.027 3.17.75c0-.01.002-.018.004-.028.339-1.833.984-3.533 1.822-4.806l.013-.02-2.82-1.54z",fill:d.fill,transform:"translate(2 2)"}),c.jsx("path",{d:"M3.511 10.33L.342 9.582l-.005.027A18.541 18.541 0 000 13.09v.028l3.25.292v-.029a15.728 15.728 0 01.262-3.05z",fill:h.fill,transform:"translate(2 2)"}),c.jsx("path",{d:"M3.349 14.422a6.822 6.822 0 01-.099-1.017v-.028L0 13.085v.031a11.105 11.105 0 00.183 2.064l3.17-.731a5.131 5.131 0 01-.004-.027z",fill:f.fill,transform:"translate(2 2)"}),c.jsx("path",{d:"M4.09 16.112c-.354-.387-.605-.945-.736-1.659l-.005-.027-3.171.731.005.027c.24 1.262.71 2.313 1.383 3.108l.018.022 2.524-2.181a2.635 2.635 0 01-.019-.02z",fill:m.fill,transform:"translate(2 2)"}),c.jsx("path",{d:"M15.484 9.067a399.491 399.491 0 00-3.069 4.781c-2.545 4-3.426 4.897-4.843 4.897-.591 0-1.085-.211-1.464-.615a2.313 2.313 0 01-.019-.02l-2.523 2.18.018.021C4.514 21.397 5.825 22 7.448 22c2.456 0 4.222-1.16 7.361-6.662l2.21-3.913a51.6 51.6 0 00-1.535-2.358z",fill:"#0082FB"}),c.jsx("path",{d:"M16.89 2.432a19.722 19.722 0 00-1.471 1.79c.472.604.96 1.281 1.47 2.038.6-.93 1.16-1.682 1.71-2.258l.019-.02-1.728-1.55z",fill:x.fill,transform:"translate(2 2)"}),c.jsx("path",{d:"M28.166 4.142C26.834 2.792 25.245 2 23.546 2c-1.79 0-3.297.984-4.656 2.43a6.451 6.451 0 00-.02.02L20.6 6l.019-.021c.895-.934 1.762-1.4 2.722-1.4 1.034 0 2.001.488 2.84 1.343l.019.02 1.987-1.78-.02-.02z",fill:"#0082FB"}),c.jsx("path",{d:"M30.019 12.656c-.075-4.333-1.588-8.207-3.833-10.495l-.02-.02-1.987 1.78.02.02c1.689 1.74 2.848 4.975 2.953 8.714v.028l2.867.001v-.028z",fill:v.fill,transform:"translate(2 2)"}),c.jsx("path",{d:"M30.02 12.687l-.001-.028h-2.867v.027c.005.176.008.352.008.53 0 1.02-.152 1.843-.461 2.438l-.014.027 2.137 2.228.016-.024c.776-1.2 1.183-2.868 1.183-4.89 0-.103 0-.205-.002-.308z",fill:_.fill,transform:"translate(2 2)"}),c.jsx("path",{d:"M26.7 15.65l-.015.026c-.267.502-.649.836-1.147.982l.974 3.079a4.372 4.372 0 00.547-.229 4.45 4.45 0 001.709-1.522 4.18 4.18 0 00.055-.081l.015-.025-2.139-2.23z",fill:w.fill,transform:"translate(2 2)"}),c.jsx("path",{d:"M24.917 16.742c-.327 0-.615-.049-.897-.175l-.998 3.151c.56.192 1.16.279 1.826.279.615 0 1.179-.092 1.69-.27l-.974-3.077c-.21.063-.428.094-.647.092z",fill:S.fill,transform:"translate(2 2)"}),c.jsx("path",{d:"M22.92 15.667l-.018-.021-2.296 2.393.02.02c.797.853 1.56 1.382 2.423 1.672l.997-3.15c-.364-.156-.716-.44-1.125-.914z",fill:C.fill,transform:"translate(2 2)"}),c.jsx("path",{d:"M22.902 15.643c-.688-.802-1.54-2.139-2.88-4.3l-1.746-2.92-.014-.023-2.026 3.046.014.024 1.237 2.087c1.2 2.012 2.177 3.467 3.12 4.48l.019.02 2.295-2.392a2.945 2.945 0 01-.019-.022z",fill:j.fill,transform:"translate(2 2)"}),c.jsxs("defs",{children:[c.jsxs("linearGradient",{id:l.id,x1:"75.904%",x2:"33.275%",y1:"89.153%",y2:"23.044%",children:[c.jsx("stop",{offset:".06%",stopColor:"#0867DF"}),c.jsx("stop",{offset:"45.39%",stopColor:"#0668E1"}),c.jsx("stop",{offset:"100%",stopColor:"#0064E0"})]}),c.jsxs("linearGradient",{id:u.id,x1:"21.67%",x2:"97.068%",y1:"75.837%",y2:"24.022%",children:[c.jsx("stop",{offset:"13.23%",stopColor:"#0064DF"}),c.jsx("stop",{offset:"99.88%",stopColor:"#0064E0"})]}),c.jsxs("linearGradient",{id:d.id,x1:"38.247%",x2:"60.91%",y1:"89.127%",y2:"16.131%",children:[c.jsx("stop",{offset:"1.47%",stopColor:"#0072EC"}),c.jsx("stop",{offset:"68.81%",stopColor:"#0064DF"})]}),c.jsxs("linearGradient",{id:h.id,x1:"47.027%",x2:"52.153%",y1:"90.19%",y2:"15.745%",children:[c.jsx("stop",{offset:"7.31%",stopColor:"#007CF6"}),c.jsx("stop",{offset:"99.43%",stopColor:"#0072EC"})]}),c.jsxs("linearGradient",{id:f.id,x1:"52.155%",x2:"47.591%",y1:"58.289%",y2:"37.023%",children:[c.jsx("stop",{offset:"7.31%",stopColor:"#007FF9"}),c.jsx("stop",{offset:"100%",stopColor:"#007CF6"})]}),c.jsxs("linearGradient",{id:m.id,x1:"37.689%",x2:"61.961%",y1:"12.556%",y2:"63.605%",children:[c.jsx("stop",{offset:"7.31%",stopColor:"#007FF9"}),c.jsx("stop",{offset:"100%",stopColor:"#0082FB"})]}),c.jsxs("linearGradient",{id:x.id,x1:"42.496%",x2:"59.964%",y1:"56.072%",y2:"27.099%",children:[c.jsx("stop",{offset:"0%",stopColor:"#007FF8"}),c.jsx("stop",{offset:"100%",stopColor:"#0082FB"})]}),c.jsxs("linearGradient",{id:v.id,x1:"43.753%",x2:"57.613%",y1:"6.235%",y2:"98.514%",children:[c.jsx("stop",{offset:"0%",stopColor:"#0082FB"}),c.jsx("stop",{offset:"99.95%",stopColor:"#0081FA"})]}),c.jsxs("linearGradient",{id:_.id,x1:"60.07%",x2:"39.865%",y1:"4.661%",y2:"69.077%",children:[c.jsx("stop",{offset:"6.19%",stopColor:"#0081FA"}),c.jsx("stop",{offset:"100%",stopColor:"#0080F9"})]}),c.jsxs("linearGradient",{id:w.id,x1:"30.254%",x2:"61.097%",y1:"59.32%",y2:"33.244%",children:[c.jsx("stop",{offset:"0%",stopColor:"#027AF3"}),c.jsx("stop",{offset:"100%",stopColor:"#0080F9"})]}),c.jsxs("linearGradient",{id:S.id,x1:"20.433%",x2:"82.112%",y1:"50.001%",y2:"50.001%",children:[c.jsx("stop",{offset:"0%",stopColor:"#0377EF"}),c.jsx("stop",{offset:"99.94%",stopColor:"#0279F1"})]}),c.jsxs("linearGradient",{id:C.id,x1:"40.289%",x2:"72.427%",y1:"35.298%",y2:"57.811%",children:[c.jsx("stop",{offset:".19%",stopColor:"#0471E9"}),c.jsx("stop",{offset:"100%",stopColor:"#0377EF"})]}),c.jsxs("linearGradient",{id:j.id,x1:"32.228%",x2:"68.028%",y1:"19.719%",y2:"84.908%",children:[c.jsx("stop",{offset:"27.65%",stopColor:"#0867DF"}),c.jsx("stop",{offset:"100%",stopColor:"#0471E9"})]})]})]}))});function Nw(e){"@babel/helpers - typeof";return Nw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nw(e)}var WMe=["size","style"];function Lz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function JT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Lz(Object(r),!0).forEach(function(i){UMe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function UMe(e,n,r){return n=VMe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function VMe(e){var n=qMe(e,"string");return Nw(n)=="symbol"?n:String(n)}function qMe(e,n){if(Nw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Nw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function GMe(e,n){if(e==null)return{};var r=KMe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function KMe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var YMe=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=GMe(e,WMe);return c.jsxs("svg",JT(JT({fill:"currentColor",fillRule:"evenodd",height:r,style:JT({flex:"none",lineHeight:1},i),viewBox:"0 0 103 24",xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:Oh}),c.jsx("path",{d:"M38.337 2.641h3.752l6.38 11.57 6.38-11.57h3.671v19.011H55.46V7.082l-5.594 10.09h-2.872l-5.595-10.09v14.57h-3.06V2.642zm30.058 19.353c-1.418 0-2.664-.314-3.739-.944a6.594 6.594 0 01-2.513-2.614c-.6-1.113-.9-2.39-.9-3.829 0-1.457.293-2.748.88-3.87.587-1.123 1.402-2 2.445-2.635 1.043-.633 2.242-.95 3.596-.95 1.346 0 2.504.319 3.475.957.97.638 1.718 1.532 2.242 2.682.523 1.15.785 2.499.785 4.047v.842h-10.39c.19 1.159.658 2.07 1.403 2.736.745.665 1.686.998 2.824.998.912 0 1.698-.136 2.357-.407a5.997 5.997 0 001.856-1.236l1.625 1.996c-1.616 1.485-3.599 2.227-5.946 2.227zm2.235-11.278c-.642-.656-1.481-.984-2.52-.984-1.011 0-1.858.335-2.54 1.005-.681.67-1.113 1.57-1.293 2.702h7.45c-.09-1.159-.456-2.066-1.097-2.723zm7.748-.712h-2.817V7.492h2.817V3.337h2.953v4.155h4.28v2.512h-4.28v6.369c0 1.059.18 1.815.542 2.267.36.453.98.68 1.855.68.389 0 .718-.016.99-.048l.426-.056c.15-.022.305-.046.467-.073v2.485a8.88 8.88 0 01-2.452.34c-3.187 0-4.781-1.748-4.781-5.242v-6.722zM101 21.654h-2.899v-1.982a5.24 5.24 0 01-1.964 1.718c-.795.403-1.698.604-2.71.604-1.245 0-2.35-.319-3.311-.957-.962-.638-1.718-1.517-2.269-2.635-.55-1.118-.826-2.396-.826-3.836 0-1.448.28-2.73.84-3.843.56-1.113 1.334-1.987 2.323-2.62.989-.634 2.124-.951 3.406-.951.967 0 1.834.188 2.601.563a5.145 5.145 0 011.91 1.596V7.49H101v14.164zm-2.953-9.206c-.316-.806-.815-1.442-1.497-1.908-.682-.466-1.47-.7-2.363-.7-1.265 0-2.272.426-3.021 1.277-.75.851-1.125 2-1.124 3.45 0 1.457.36 2.611 1.083 3.462.722.851 1.702 1.276 2.94 1.276.911 0 1.724-.235 2.438-.706a3.987 3.987 0 001.544-1.9v-4.251zM10.627 2c2.396 0 4.398 1.165 6.792 4.22.375-.507.758-.99 1.153-1.438l.318-.352C20.249 2.984 21.755 2 23.546 2c1.604 0 3.11.706 4.395 1.92l.245.24c2.173 2.215 3.66 5.914 3.821 10.078l.012.446.002.311c0 1.896-.358 3.48-1.042 4.66l-.157.254-.134.19a4.45 4.45 0 01-1.629 1.41l-.17.08a4.372 4.372 0 01-.377.148c-.505.17-1.06.26-1.664.26-.656 0-1.246-.084-1.8-.27-.784-.26-1.485-.72-2.206-1.443l-.236-.245c-.942-1.015-1.92-2.47-3.119-4.482l-1.472-2.481c-.171-.29-.338-.57-.5-.839l-.497-.812-2.209 3.913-.377.652-.373.623C11.374 21.023 9.701 22 7.449 22c-1.528 0-2.78-.534-3.696-1.501l-.187-.207c-.617-.729-1.063-1.673-1.318-2.797l-.07-.338a10.856 10.856 0 01-.17-1.61L2 15.084c.002-.97.08-1.941.235-2.902l.107-.603C2.72 9.643 3.396 7.837 4.3 6.327l.226-.366c1.482-2.303 3.514-3.836 5.816-3.954L10.627 2zm.114 3.272l-.183-.003c-1.13.012-2.19.784-3.06 2.01l-.153.222-.012.022c-.774 1.175-1.383 2.714-1.738 4.386l-.089.448c-.17.93-.257 1.873-.259 2.818l.003.235c.005.224.022.45.05.675l.054.364c.117.639.328 1.15.621 1.528l.113.133.02.02c.379.404.873.615 1.464.615 1.348 0 2.21-.811 4.482-4.333l2.286-3.578 1.144-1.767-.25-.354c-1.744-2.429-2.965-3.32-4.34-3.432l-.153-.009zm12.599-.693l-.204.007c-.88.062-1.687.526-2.518 1.393l-.02.023c-.549.576-1.11 1.329-1.71 2.258.352.52.715 1.082 1.09 1.683l.298.48 1.746 2.92.748 1.2.527.83c.607.946 1.085 1.641 1.5 2.146l.124.146c.358.416.672.686.989.852l.108.051c.284.125.572.174.899.174.22.002.437-.03.647-.092.43-.132.774-.409 1.03-.815l.106-.185.087-.181c.25-.576.373-1.336.373-2.253l-.002-.266-.006-.292c-.102-3.612-1.185-6.752-2.78-8.53l-.193-.206c-.838-.855-1.805-1.343-2.84-1.343z"})]}))});function Tw(e){"@babel/helpers - typeof";return Tw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tw(e)}var XMe=["size","style"];function $z(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function ZT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?$z(Object(r),!0).forEach(function(i){JMe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$z(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function JMe(e,n,r){return n=ZMe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function ZMe(e){var n=QMe(e,"string");return Tw(n)=="symbol"?n:String(n)}function QMe(e,n){if(Tw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Tw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function e9e(e,n){return i9e(e)||r9e(e,n)||n9e(e,n)||t9e()}function t9e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
944
944
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n9e(e,n){if(e){if(typeof e=="string")return Dz(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dz(e,n)}}function Dz(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function r9e(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,n!==0)for(;!(u=(i=a.call(r)).done)&&(l.push(i.value),l.length!==n);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function i9e(e){if(Array.isArray(e))return e}function s9e(e,n){if(e==null)return{};var r=a9e(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function a9e(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Iee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=s9e(e,XMe),a=k9(Oh,13),o=e9e(a,13),l=o[0],u=o[1],d=o[2],h=o[3],f=o[4],m=o[5],x=o[6],v=o[7],_=o[8],w=o[9],S=o[10],C=o[11],j=o[12];return c.jsxs("svg",ZT(ZT({height:r,style:ZT({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:Oh}),c.jsx("path",{d:"M6.897 4h-.024l-.031 2.615h.022c1.715 0 3.046 1.357 5.94 6.246l.175.297.012.02 1.62-2.438-.012-.019a48.763 48.763 0 00-1.098-1.716 28.01 28.01 0 00-1.175-1.629C10.413 4.932 8.812 4 6.896 4z",fill:l.fill}),c.jsx("path",{d:"M6.873 4C4.95 4.01 3.247 5.258 2.02 7.17a4.352 4.352 0 00-.01.017l2.254 1.231.011-.017c.718-1.083 1.61-1.774 2.568-1.785h.021L6.896 4h-.023z",fill:u.fill}),c.jsx("path",{d:"M2.019 7.17l-.011.017C1.2 8.447.598 9.995.274 11.664l-.005.022 2.534.6.004-.022c.27-1.467.786-2.828 1.456-3.845l.011-.017L2.02 7.17z",fill:d.fill}),c.jsx("path",{d:"M2.807 12.264l-2.533-.6-.005.022c-.177.918-.267 1.851-.269 2.786v.023l2.598.233v-.023a12.591 12.591 0 01.21-2.44z",fill:h.fill}),c.jsx("path",{d:"M2.677 15.537a5.462 5.462 0 01-.079-.813v-.022L0 14.468v.024a8.89 8.89 0 00.146 1.652l2.535-.585a4.106 4.106 0 01-.004-.022z",fill:f.fill}),c.jsx("path",{d:"M3.27 16.89c-.284-.31-.484-.756-.589-1.328l-.004-.021-2.535.585.004.021c.192 1.01.568 1.85 1.106 2.487l.014.017 2.018-1.745a2.106 2.106 0 01-.015-.016z",fill:m.fill}),c.jsx("path",{d:"M10.78 9.654c-1.528 2.35-2.454 3.825-2.454 3.825-2.035 3.2-2.739 3.917-3.871 3.917a1.545 1.545 0 01-1.186-.508l-2.017 1.744.014.017C2.01 19.518 3.058 20 4.356 20c1.963 0 3.374-.928 5.884-5.33l1.766-3.13a41.283 41.283 0 00-1.227-1.886z",fill:"#0082FB"}),c.jsx("path",{d:"M13.502 5.946l-.016.016c-.4.43-.786.908-1.16 1.416.378.483.768 1.024 1.175 1.63.48-.743.928-1.345 1.367-1.807l.016-.016-1.382-1.24z",fill:x.fill}),c.jsx("path",{d:"M20.918 5.713C19.853 4.633 18.583 4 17.225 4c-1.432 0-2.637.787-3.723 1.944l-.016.016 1.382 1.24.016-.017c.715-.747 1.408-1.12 2.176-1.12.826 0 1.6.39 2.27 1.075l.015.016 1.589-1.425-.016-.016z",fill:"#0082FB"}),c.jsx("path",{d:"M23.998 14.125c-.06-3.467-1.27-6.566-3.064-8.396l-.016-.016-1.588 1.424.015.016c1.35 1.392 2.277 3.98 2.361 6.971v.023h2.292v-.022z",fill:v.fill}),c.jsx("path",{d:"M23.998 14.15v-.023h-2.292v.022c.004.14.006.282.006.424 0 .815-.121 1.474-.368 1.95l-.011.022 1.708 1.782.013-.02c.62-.96.946-2.293.946-3.91 0-.083 0-.165-.002-.247z",fill:_.fill}),c.jsx("path",{d:"M21.344 16.52l-.011.02c-.214.402-.519.67-.917.787l.778 2.462a3.493 3.493 0 00.438-.182 3.558 3.558 0 001.366-1.218l.044-.065.012-.02-1.71-1.784z",fill:w.fill}),c.jsx("path",{d:"M19.92 17.393c-.262 0-.492-.039-.718-.14l-.798 2.522c.449.153.927.222 1.46.222.492 0 .943-.073 1.352-.215l-.78-2.462c-.167.05-.341.075-.517.073z",fill:S.fill}),c.jsx("path",{d:"M18.323 16.534l-.014-.017-1.836 1.914.016.017c.637.682 1.246 1.105 1.937 1.337l.797-2.52c-.291-.125-.573-.353-.9-.731z",fill:C.fill}),c.jsx("path",{d:"M18.309 16.515c-.55-.642-1.232-1.712-2.303-3.44l-1.396-2.336-.011-.02-1.62 2.438.012.02.989 1.668c.959 1.61 1.74 2.774 2.493 3.585l.016.016 1.834-1.914a2.353 2.353 0 01-.014-.017z",fill:j.fill}),c.jsxs("defs",{children:[c.jsxs("linearGradient",{id:l.id,x1:"75.897%",x2:"26.312%",y1:"89.199%",y2:"12.194%",children:[c.jsx("stop",{offset:".06%",stopColor:"#0867DF"}),c.jsx("stop",{offset:"45.39%",stopColor:"#0668E1"}),c.jsx("stop",{offset:"85.91%",stopColor:"#0064E0"})]}),c.jsxs("linearGradient",{id:u.id,x1:"21.67%",x2:"97.068%",y1:"75.874%",y2:"23.985%",children:[c.jsx("stop",{offset:"13.23%",stopColor:"#0064DF"}),c.jsx("stop",{offset:"99.88%",stopColor:"#0064E0"})]}),c.jsxs("linearGradient",{id:d.id,x1:"38.263%",x2:"60.895%",y1:"89.127%",y2:"16.131%",children:[c.jsx("stop",{offset:"1.47%",stopColor:"#0072EC"}),c.jsx("stop",{offset:"68.81%",stopColor:"#0064DF"})]}),c.jsxs("linearGradient",{id:h.id,x1:"47.032%",x2:"52.15%",y1:"90.19%",y2:"15.745%",children:[c.jsx("stop",{offset:"7.31%",stopColor:"#007CF6"}),c.jsx("stop",{offset:"99.43%",stopColor:"#0072EC"})]}),c.jsxs("linearGradient",{id:f.id,x1:"52.155%",x2:"47.591%",y1:"58.301%",y2:"37.004%",children:[c.jsx("stop",{offset:"7.31%",stopColor:"#007FF9"}),c.jsx("stop",{offset:"100%",stopColor:"#007CF6"})]}),c.jsxs("linearGradient",{id:m.id,x1:"37.689%",x2:"61.961%",y1:"12.502%",y2:"63.624%",children:[c.jsx("stop",{offset:"7.31%",stopColor:"#007FF9"}),c.jsx("stop",{offset:"100%",stopColor:"#0082FB"})]}),c.jsxs("linearGradient",{id:x.id,x1:"34.808%",x2:"62.313%",y1:"68.859%",y2:"23.174%",children:[c.jsx("stop",{offset:"27.99%",stopColor:"#007FF8"}),c.jsx("stop",{offset:"91.41%",stopColor:"#0082FB"})]}),c.jsxs("linearGradient",{id:v.id,x1:"43.762%",x2:"57.602%",y1:"6.235%",y2:"98.514%",children:[c.jsx("stop",{offset:"0%",stopColor:"#0082FB"}),c.jsx("stop",{offset:"99.95%",stopColor:"#0081FA"})]}),c.jsxs("linearGradient",{id:_.id,x1:"60.055%",x2:"39.88%",y1:"4.661%",y2:"69.077%",children:[c.jsx("stop",{offset:"6.19%",stopColor:"#0081FA"}),c.jsx("stop",{offset:"100%",stopColor:"#0080F9"})]}),c.jsxs("linearGradient",{id:w.id,x1:"30.282%",x2:"61.081%",y1:"59.32%",y2:"33.244%",children:[c.jsx("stop",{offset:"0%",stopColor:"#027AF3"}),c.jsx("stop",{offset:"100%",stopColor:"#0080F9"})]}),c.jsxs("linearGradient",{id:S.id,x1:"20.433%",x2:"82.112%",y1:"50.001%",y2:"50.001%",children:[c.jsx("stop",{offset:"0%",stopColor:"#0377EF"}),c.jsx("stop",{offset:"99.94%",stopColor:"#0279F1"})]}),c.jsxs("linearGradient",{id:C.id,x1:"40.303%",x2:"72.394%",y1:"35.298%",y2:"57.811%",children:[c.jsx("stop",{offset:".19%",stopColor:"#0471E9"}),c.jsx("stop",{offset:"100%",stopColor:"#0377EF"})]}),c.jsxs("linearGradient",{id:j.id,x1:"32.254%",x2:"68.003%",y1:"19.719%",y2:"84.908%",children:[c.jsx("stop",{offset:"27.65%",stopColor:"#0867DF"}),c.jsx("stop",{offset:"100%",stopColor:"#0471E9"})]})]})]}))});function Ew(e){"@babel/helpers - typeof";return Ew=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ew(e)}var o9e=["size","style"];function Iz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function QT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Iz(Object(r),!0).forEach(function(i){l9e(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function l9e(e,n,r){return n=c9e(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function c9e(e){var n=u9e(e,"string");return Ew(n)=="symbol"?n:String(n)}function u9e(e,n){if(Ew(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Ew(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function d9e(e,n){if(e==null)return{};var r=h9e(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function h9e(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Bee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=d9e(e,o9e);return c.jsxs("svg",QT(QT({fill:"currentColor",fillRule:"evenodd",height:r,style:QT({flex:"none",lineHeight:1},i),viewBox:"0 0 75 24",xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:Oh}),c.jsx("path",{d:"M2 21.73V2.81h2.878V19h9.98v2.73zM17.722 21.73V2h2.69v19.73zM27.352 22c-1.416 0-2.517-.367-3.302-1.101-.784-.735-1.176-1.7-1.176-2.899 0-1.19.441-2.185 1.324-2.986.884-.802 2.294-1.203 4.23-1.203h3.659v-.04c0-2.271-1.04-3.406-3.12-3.406-.87 0-1.603.158-2.2.473a3.828 3.828 0 00-1.446 1.324l-1.842-1.5a5.763 5.763 0 012.266-2.054c.937-.477 2.002-.716 3.194-.716h.296c1.65 0 2.977.477 3.981 1.432 1.005.955 1.507 2.383 1.507 4.284v8.122H32.14v-2.203a5.325 5.325 0 01-2.004 1.831c-.816.428-1.744.642-2.784.642zm.592-2.405c1.04 0 1.905-.237 2.596-.71.69-.473 1.206-1.115 1.547-1.926v-1.027h-3.551c-1.058 0-1.814.17-2.266.507-.453.338-.68.795-.68 1.372 0 1.189.785 1.784 2.354 1.784zM37.776 21.73V8.216h2.69v2.216c.484-.792 1.085-1.414 1.802-1.864.717-.45 1.547-.676 2.488-.676h.296c1.04 0 1.914.257 2.623.77.708.514 1.232 1.252 1.573 2.216.52-.928 1.184-1.657 1.99-2.189.808-.531 1.722-.797 2.744-.797h.296c1.507 0 2.657.527 3.45 1.581.794 1.054 1.19 2.536 1.19 4.446v7.81h-2.69v-7.486c0-2.558-.878-3.838-2.636-3.838h-.269c-.887 0-1.638.282-2.252.845-.615.563-1.074 1.273-1.379 2.128v8.352h-2.69v-7.487c0-2.558-.879-3.838-2.636-3.838h-.269c-.888 0-1.639.282-2.253.845-.614.563-1.074 1.273-1.378 2.128v8.352h-2.69zM65.63 22c-1.417 0-2.518-.367-3.302-1.101-.785-.735-1.177-1.7-1.177-2.899 0-1.19.442-2.185 1.325-2.986.883-.802 2.293-1.203 4.23-1.203h3.658v-.04c0-2.271-1.04-3.406-3.12-3.406-.87 0-1.603.158-2.2.473a3.828 3.828 0 00-1.445 1.324l-1.843-1.5a5.763 5.763 0 012.266-2.054c.937-.477 2.002-.716 3.195-.716h.296c1.65 0 2.976.477 3.98 1.432C72.499 10.28 73 11.707 73 13.608v8.122h-2.582v-2.203a5.325 5.325 0 01-2.004 1.831c-.816.428-1.744.642-2.784.642zm.591-2.405c1.04 0 1.906-.237 2.596-.71.69-.473 1.206-1.115 1.547-1.926v-1.027h-3.55c-1.059 0-1.814.17-2.267.507-.453.338-.68.795-.68 1.372 0 1.189.785 1.784 2.354 1.784z"})]}))});function Aw(e){"@babel/helpers - typeof";return Aw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Aw(e)}var f9e=["type"];function Bz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function p9e(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Bz(Object(r),!0).forEach(function(i){m9e(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function m9e(e,n,r){return n=g9e(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function g9e(e){var n=y9e(e,"string");return Aw(n)=="symbol"?n:String(n)}function y9e(e,n){if(Aw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Aw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function x9e(e,n){if(e==null)return{};var r=v9e(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function v9e(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var b9e=y.memo(function(e){var n=e.type,r=n===void 0?"mono":n,i=x9e(e,f9e),s=r==="color"?Iee:C9;return c.jsx(Zl,p9e({Icon:s,Text:Bee,"aria-label":Oh,spaceMultiple:pMe,textMultiple:fMe},i))}),Bh=C9;Bh.Color=Iee;Bh.Text=Bee;Bh.Combine=b9e;Bh.Avatar=AMe;Bh.Brand=YMe;Bh.BrandColor=HMe;Bh.colorPrimary=mMe;Bh.colorGradient=Dee;Bh.title=Oh;var S1="Mistral",_9e=.6,w9e=.2,zee="#FA520F",S9e=zee,k9e="#fff",C9e=.75;function Ow(e){"@babel/helpers - typeof";return Ow=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ow(e)}var j9e=["size","style"];function zz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function eE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?zz(Object(r),!0).forEach(function(i){N9e(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function N9e(e,n,r){return n=T9e(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function T9e(e){var n=E9e(e,"string");return Ow(n)=="symbol"?n:String(n)}function E9e(e,n){if(Ow(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Ow(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function A9e(e,n){if(e==null)return{};var r=O9e(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function O9e(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var j9=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=A9e(e,j9e);return c.jsxs("svg",eE(eE({fill:"currentColor",fillRule:"evenodd",height:r,style:eE({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:S1}),c.jsx("path",{clipRule:"evenodd",d:"M3.428 3.4h3.429v3.428h3.429v3.429h-.002 3.431V6.828h3.427V3.4h3.43v13.714H24v3.429H13.714v-3.428h-3.428v-3.429h-3.43v3.428h3.43v3.429H0v-3.429h3.428V3.4zm10.286 13.715h3.428v-3.429h-3.427v3.429z"})]}))});function Rw(e){"@babel/helpers - typeof";return Rw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rw(e)}function Fz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function R9e(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Fz(Object(r),!0).forEach(function(i){M9e(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function M9e(e,n,r){return n=P9e(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function P9e(e){var n=L9e(e,"string");return Rw(n)=="symbol"?n:String(n)}function L9e(e,n){if(Rw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Rw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function $9e(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var D9e=y.memo(function(e){var n=Object.assign({},($9e(e),e));return c.jsx(Jl,R9e({Icon:j9,"aria-label":S1,background:S9e,color:k9e,iconMultiple:C9e},n))});function Mw(e){"@babel/helpers - typeof";return Mw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mw(e)}var I9e=["size","style"];function Hz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function tE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Hz(Object(r),!0).forEach(function(i){B9e(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function B9e(e,n,r){return n=z9e(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function z9e(e){var n=F9e(e,"string");return Mw(n)=="symbol"?n:String(n)}function F9e(e,n){if(Mw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Mw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function H9e(e,n){if(e==null)return{};var r=W9e(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function W9e(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Fee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=H9e(e,I9e);return c.jsxs("svg",tE(tE({height:r,style:tE({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:S1}),c.jsx("path",{d:"M3.428 3.4h3.429v3.428H3.428V3.4zm13.714 0h3.43v3.428h-3.43V3.4z",fill:"gold"}),c.jsx("path",{d:"M3.428 6.828h6.857v3.429H3.429V6.828zm10.286 0h6.857v3.429h-6.857V6.828z",fill:"#FFAF00"}),c.jsx("path",{d:"M3.428 10.258h17.144v3.428H3.428v-3.428z",fill:"#FF8205"}),c.jsx("path",{d:"M3.428 13.686h3.429v3.428H3.428v-3.428zm6.858 0h3.429v3.428h-3.429v-3.428zm6.856 0h3.43v3.428h-3.43v-3.428z",fill:"#FA500F"}),c.jsx("path",{d:"M0 17.114h10.286v3.429H0v-3.429zm13.714 0H24v3.429H13.714v-3.429z",fill:"#E10500"})]}))});function Pw(e){"@babel/helpers - typeof";return Pw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pw(e)}var U9e=["size","style"];function Wz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function nE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Wz(Object(r),!0).forEach(function(i){V9e(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function V9e(e,n,r){return n=q9e(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function q9e(e){var n=G9e(e,"string");return Pw(n)=="symbol"?n:String(n)}function G9e(e,n){if(Pw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Pw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function K9e(e,n){if(e==null)return{};var r=Y9e(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Y9e(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Hee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=K9e(e,U9e);return c.jsxs("svg",nE(nE({fill:"currentColor",fillRule:"evenodd",height:r,style:nE({flex:"none",lineHeight:1},i),viewBox:"0 0 134 24",xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:S1}),c.jsx("path",{d:"M2 22.638V1h6.55l3.933 14.76L16.37 1h6.565v21.638H18.87V5.605l-4.302 17.033h-4.214L6.066 5.605v17.033H2zm25.011-17.8V1.002h4.155V4.84h-4.155zm0 17.801V6.964h4.155V22.64h-4.155zm6.707-4.473l4.17-.635c.177.807.536 1.42 1.079 1.838.986.864 3.753.796 4.702.036.588-.404.753-1.367.25-1.89-.206-.196-.67-.378-1.389-.545-3.351-.738-5.475-1.412-6.372-2.022-2.418-1.526-2.465-5.18-.252-6.952 1.76-1.8 7.852-1.78 9.788-.34 1.045.699 1.764 1.732 2.159 3.1l-3.918.723c-.413-1.402-1.417-1.886-2.957-1.89-1.094 0-1.878.154-2.35.458-.591.383-.651 1.179-.06 1.595.374.275 1.668.664 3.88 1.165 2.213.502 3.759 1.117 4.636 1.845 1.993 1.694 1.615 5.13-.503 6.79-2.087 2.01-8.091 2.034-10.416.25-1.247-.865-2.063-2.04-2.447-3.527zm31.88 4.472h-4.154V6.963h3.86v2.229c.66-1.053 1.253-1.747 1.78-2.081 1.374-.857 3.144-.536 4.532.28l-1.286 3.617c-1.877-1.247-3.849-.81-4.384 1.535-.468 1.352-.329 7.76-.347 10.096zm10.67-10.892l-3.77-.679c1.014-3.408 3.08-4.43 6.801-4.457 2.81.037 4.804.362 6.055 2.324.37.674.554 1.912.554 3.713.013 1.729-.178 6.48.155 7.889.133.654.382 1.355.747 2.103H82.7c-.124-.272-.411-1.286-.547-1.712-1.378 1.335-2.97 2.066-4.865 2.067-2.945.058-5.22-1.756-5.219-4.635-.011-1.72.87-3.225 2.418-3.963.764-.37 1.865-.691 3.304-.967 1.942-.364 3.287-.703 4.037-1.018v-.413c0-.797-.197-1.366-.591-1.705-.57-.582-3.147-.744-3.963-.074-.414.29-.75.8-1.006 1.527zm5.56 3.365c-.757.315-4.139.86-4.79 1.358-1.077.707-1.038 2.141-.163 2.967 1.017.987 2.672.733 3.8-.103 1.374-.983 1.117-2.455 1.153-4.221zm7.933 7.527V1h4.155v21.638H89.76zm35.917 0h-4.761l-1.892-4.915h-8.665l-1.789 4.915h-4.643L112.371 1h4.627l8.679 21.638h.001zm-8.058-8.56l-2.987-8.03-2.927 8.03h5.914zm10.004 8.56V1H132v21.638h-4.376zM58.98 6.964v3.307H56.14v6.317l.081 2.236c.434 1.136 1.612.712 2.743.332l.355 3.218c-2.416 1.02-6.87 1.14-7.215-2.346-.096-.537-.123-1.89-.133-3.44v-6.317h-1.908V6.965h1.908V3.85l4.17-2.42v5.535h2.838z"})]}))});function Lw(e){"@babel/helpers - typeof";return Lw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lw(e)}var X9e=["type"];function Uz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function J9e(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Uz(Object(r),!0).forEach(function(i){Z9e(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Z9e(e,n,r){return n=Q9e(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Q9e(e){var n=ePe(e,"string");return Lw(n)=="symbol"?n:String(n)}function ePe(e,n){if(Lw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Lw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function tPe(e,n){if(e==null)return{};var r=nPe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function nPe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var rPe=y.memo(function(e){var n=e.type,r=n===void 0?"mono":n,i=tPe(e,X9e),s=r==="color"?Fee:j9;return c.jsx(Zl,J9e({Icon:s,Text:Hee,"aria-label":S1,spaceMultiple:w9e,textMultiple:_9e},i))}),cd=j9;cd.Color=Fee;cd.Text=Hee;cd.Combine=rPe;cd.Avatar=D9e;cd.colorPrimary=zee;cd.title=S1;var k1="DeepSeek",iPe=.65,sPe=.2,Wee="#4D6BFE",aPe=Wee,oPe="#fff",lPe=.75;function $w(e){"@babel/helpers - typeof";return $w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$w(e)}var cPe=["size","style"];function Vz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function rE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Vz(Object(r),!0).forEach(function(i){uPe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function uPe(e,n,r){return n=dPe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function dPe(e){var n=hPe(e,"string");return $w(n)=="symbol"?n:String(n)}function hPe(e,n){if($w(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if($w(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function fPe(e,n){if(e==null)return{};var r=pPe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function pPe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var N9=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=fPe(e,cPe);return c.jsxs("svg",rE(rE({fill:"currentColor",fillRule:"evenodd",height:r,style:rE({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:k1}),c.jsx("path",{d:"M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z"})]}))});function Dw(e){"@babel/helpers - typeof";return Dw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dw(e)}function qz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function mPe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?qz(Object(r),!0).forEach(function(i){gPe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function gPe(e,n,r){return n=yPe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function yPe(e){var n=xPe(e,"string");return Dw(n)=="symbol"?n:String(n)}function xPe(e,n){if(Dw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Dw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function vPe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var bPe=y.memo(function(e){var n=Object.assign({},(vPe(e),e));return c.jsx(Jl,mPe({Icon:N9,"aria-label":k1,background:aPe,color:oPe,iconMultiple:lPe},n))});function Iw(e){"@babel/helpers - typeof";return Iw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Iw(e)}var _Pe=["size","style"];function Gz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function iE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Gz(Object(r),!0).forEach(function(i){wPe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function wPe(e,n,r){return n=SPe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function SPe(e){var n=kPe(e,"string");return Iw(n)=="symbol"?n:String(n)}function kPe(e,n){if(Iw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Iw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function CPe(e,n){if(e==null)return{};var r=jPe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function jPe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Uee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=CPe(e,_Pe);return c.jsxs("svg",iE(iE({height:r,style:iE({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:k1}),c.jsx("path",{d:"M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z",fill:"#4D6BFE"})]}))});function Bw(e){"@babel/helpers - typeof";return Bw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bw(e)}var NPe=["size","style"];function Kz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function sE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Kz(Object(r),!0).forEach(function(i){TPe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function TPe(e,n,r){return n=EPe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function EPe(e){var n=APe(e,"string");return Bw(n)=="symbol"?n:String(n)}function APe(e,n){if(Bw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Bw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function OPe(e,n){if(e==null)return{};var r=RPe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function RPe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Vee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=OPe(e,NPe);return c.jsxs("svg",sE(sE({fill:"currentColor",fillRule:"evenodd",height:r,style:sE({flex:"none",lineHeight:1},i),viewBox:"0 0 131 24",xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:k1}),c.jsx("path",{d:"M117.986 0h-3.21v19.404h3.21V0zM8.7 5.215h1.83v2.838H8.7c-1.135 0-2.28.282-3.019 1.068-.738.785-1.016 1.99-1.016 3.194s.267 2.408 1.016 3.193c.75.786 1.884 1.068 3.018 1.068 1.135 0 2.28-.282 3.018-1.068.739-.785 1.017-1.99 1.017-3.193V.649h3.21v18.755h-3.21V18.21h-.589a3.498 3.498 0 01-.192.199c-.803.733-2.034.995-3.243.995-1.894 0-3.788-.472-5.03-1.78C2.44 16.314 2 14.303 2 12.303c0-2 .45-4 1.68-5.32 1.242-1.308 3.136-1.77 5.02-1.77zM57.564 18.9h-1.83v-2.837h1.83c1.134 0 2.28-.283 3.017-1.068.739-.785 1.017-1.99 1.017-3.194s-.267-2.408-1.017-3.194c-.749-.785-1.883-1.068-3.017-1.068s-2.28.283-3.018 1.068c-.738.786-1.017 1.99-1.017 3.194v11.655h-3.21V4.712h3.21v1.194h.59a3.42 3.42 0 01.186-.194l.005-.005c.803-.733 2.034-.995 3.243-.995 1.895 0 3.788.471 5.03 1.78 1.241 1.31 1.68 3.32 1.68 5.32 0 2-.45 4-1.68 5.319-1.23 1.32-3.135 1.77-5.019 1.77zM32.05 13.204v-1.14c0-2.064-.46-4.137-1.754-5.498-1.285-1.362-3.264-1.843-5.223-1.843-1.958 0-3.928.492-5.222 1.843-1.295 1.35-1.755 3.434-1.755 5.497 0 2.063.47 4.136 1.755 5.498 1.284 1.36 3.264 1.843 5.222 1.843 1.959 0 3.938-.493 5.223-1.843.663-.692 1.102-1.582 1.38-2.566h-3.168a5.026 5.026 0 01-.3.367c-.77.816-1.958 1.11-3.135 1.11-1.177 0-2.365-.304-3.136-1.11-.77-.807-1.048-2.063-1.048-3.299 0-1.236.278-2.482 1.049-3.298.77-.817 1.958-1.11 3.135-1.11 1.177 0 2.365.293 3.136 1.11.535.565.834 1.34.963 2.167H23.5v2.272h8.55zM48.168 12.063v1.141h-8.55v-2.272h5.671c-.129-.827-.428-1.602-.963-2.167-.77-.817-1.959-1.11-3.136-1.11s-2.365.293-3.136 1.11c-.77.816-1.049 2.063-1.049 3.298 0 1.236.279 2.492 1.05 3.299.77.806 1.958 1.11 3.135 1.11 1.177 0 2.365-.294 3.136-1.11.107-.116.203-.241.299-.367h3.168c-.278.985-.717 1.874-1.38 2.566-1.285 1.35-3.264 1.843-5.223 1.843s-3.938-.482-5.222-1.843c-1.285-1.362-1.756-3.435-1.756-5.498s.46-4.147 1.755-5.497c1.296-1.351 3.264-1.843 5.223-1.843s3.938.481 5.222 1.843c1.296 1.36 1.756 3.434 1.756 5.497zM78.635 18.315c-1.284.806-3.263 1.089-5.222 1.089-1.958 0-3.917-.294-5.212-1.09-1.295-.795-1.755-2.03-1.755-3.246h3.767c0 .472.225.953.824 1.257.6.304 1.54.419 2.462.419.92 0 1.851-.115 2.46-.42.611-.303.825-.784.825-1.256 0-.47-.214-.952-.824-1.256-.61-.304-1.627-.419-2.547-.419-1.777 0-3.563-.293-4.73-1.09-1.167-.795-1.584-2.03-1.584-3.245 0-1.215.417-2.44 1.584-3.246 1.167-.807 2.953-1.09 4.73-1.09 1.776 0 3.564.294 4.73 1.09 1.167.795 1.584 2.031 1.584 3.246h-3.264c0-.471-.203-.942-.749-1.257-.546-.303-1.391-.419-2.226-.419s-1.68.105-2.226.42c-.556.303-.75.785-.75 1.256 0 .47.204.942.75 1.256.545.304 1.316.42 2.151.42 1.959 0 3.938.292 5.222 1.088 1.295.796 1.756 2.032 1.756 3.246 0 1.215-.471 2.44-1.756 3.247zM96.507 12.063v1.141h-8.55v-2.272h5.672c-.129-.827-.429-1.602-.963-2.167-.771-.817-1.959-1.11-3.136-1.11s-2.366.293-3.136 1.11c-.77.816-1.048 2.063-1.048 3.298 0 1.236.278 2.492 1.048 3.299.77.806 1.959 1.11 3.135 1.11 1.178 0 2.366-.294 3.137-1.11.106-.116.203-.241.3-.367h3.167c-.279.985-.717 1.874-1.38 2.566-1.284 1.35-3.265 1.843-5.224 1.843-1.957 0-3.938-.482-5.222-1.843-1.284-1.362-1.754-3.435-1.754-5.498s.46-4.147 1.754-5.497c1.296-1.351 3.265-1.843 5.222-1.843 1.96 0 3.94.481 5.224 1.843 1.294 1.36 1.754 3.434 1.754 5.497zM112.624 13.204v-1.14c0-2.064-.46-4.137-1.754-5.498-1.285-1.362-3.265-1.843-5.223-1.843-1.959 0-3.928.492-5.222 1.843-1.296 1.35-1.756 3.434-1.756 5.497 0 2.063.471 4.136 1.756 5.498 1.284 1.36 3.263 1.843 5.222 1.843 1.958 0 3.938-.493 5.223-1.843.663-.692 1.102-1.582 1.38-2.566h-3.168l-.012.016c-.093.12-.185.24-.288.35-.77.817-1.957 1.11-3.135 1.11-1.177 0-2.365-.303-3.136-1.11-.77-.806-1.049-2.062-1.049-3.298 0-1.236.279-2.482 1.049-3.298.771-.817 1.959-1.11 3.136-1.11 1.178 0 2.365.293 3.135 1.11.536.565.836 1.34.964 2.167h-5.672v2.272h8.55zM128.73 19.404l-5.264-7.78 5.264-6.252h-3.97l-5.265 6.251 5.265 7.78h3.97z"})]}))});function zw(e){"@babel/helpers - typeof";return zw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zw(e)}var MPe=["type"];function Yz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function PPe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Yz(Object(r),!0).forEach(function(i){LPe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function LPe(e,n,r){return n=$Pe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function $Pe(e){var n=DPe(e,"string");return zw(n)=="symbol"?n:String(n)}function DPe(e,n){if(zw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(zw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function IPe(e,n){if(e==null)return{};var r=BPe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function BPe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var zPe=y.memo(function(e){var n=e.type,r=n===void 0?"mono":n,i=IPe(e,MPe),s=r==="color"?Uee:N9;return c.jsx(Zl,PPe({Icon:s,Text:Vee,"aria-label":k1,spaceMultiple:sPe,textMultiple:iPe},i))}),Dm=N9;Dm.Color=Uee;Dm.Text=Vee;Dm.Combine=zPe;Dm.Avatar=bPe;Dm.colorPrimary=Wee;Dm.title=k1;var j0="Gemini",FPe=.8,HPe=.2,qee="#fff",WPe=qee,UPe="#fff",VPe=.8;function Fw(e){"@babel/helpers - typeof";return Fw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fw(e)}var qPe=["size","style"];function Xz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function aE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Xz(Object(r),!0).forEach(function(i){GPe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function GPe(e,n,r){return n=KPe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function KPe(e){var n=YPe(e,"string");return Fw(n)=="symbol"?n:String(n)}function YPe(e,n){if(Fw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Fw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function XPe(e,n){return eLe(e)||QPe(e,n)||ZPe(e,n)||JPe()}function JPe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
945
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZPe(e,n){if(e){if(typeof e=="string")return Jz(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jz(e,n)}}function Jz(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function QPe(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,n!==0)for(;!(u=(i=a.call(r)).done)&&(l.push(i.value),l.length!==n);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function eLe(e){if(Array.isArray(e))return e}function tLe(e,n){if(e==null)return{};var r=nLe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function nLe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var T9=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=tLe(e,qPe),a=k9(j0,3),o=XPe(a,3),l=o[0],u=o[1],d=o[2];return c.jsxs("svg",aE(aE({height:r,style:aE({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:j0}),c.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"#3186FF"}),c.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:l.fill}),c.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:u.fill}),c.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:d.fill}),c.jsxs("defs",{children:[c.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:l.id,x1:"7",x2:"11",y1:"15.5",y2:"12",children:[c.jsx("stop",{stopColor:"#08B962"}),c.jsx("stop",{offset:"1",stopColor:"#08B962",stopOpacity:"0"})]}),c.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:u.id,x1:"8",x2:"11.5",y1:"5.5",y2:"11",children:[c.jsx("stop",{stopColor:"#F94543"}),c.jsx("stop",{offset:"1",stopColor:"#F94543",stopOpacity:"0"})]}),c.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:d.id,x1:"3.5",x2:"17.5",y1:"13.5",y2:"12",children:[c.jsx("stop",{stopColor:"#FABC12"}),c.jsx("stop",{offset:".46",stopColor:"#FABC12",stopOpacity:"0"})]})]})]}))});function Hw(e){"@babel/helpers - typeof";return Hw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hw(e)}function Zz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function rLe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Zz(Object(r),!0).forEach(function(i){iLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function iLe(e,n,r){return n=sLe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function sLe(e){var n=aLe(e,"string");return Hw(n)=="symbol"?n:String(n)}function aLe(e,n){if(Hw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Hw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function oLe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var lLe=y.memo(function(e){var n=Object.assign({},(oLe(e),e));return c.jsx(Jl,rLe({Icon:T9,"aria-label":j0,background:WPe,color:UPe,iconMultiple:VPe},n))});function Ww(e){"@babel/helpers - typeof";return Ww=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ww(e)}var cLe=["size","style"];function Qz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function oE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Qz(Object(r),!0).forEach(function(i){uLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function uLe(e,n,r){return n=dLe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function dLe(e){var n=hLe(e,"string");return Ww(n)=="symbol"?n:String(n)}function hLe(e,n){if(Ww(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Ww(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function fLe(e,n){if(e==null)return{};var r=pLe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function pLe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Gee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=fLe(e,cLe);return c.jsxs("svg",oE(oE({fill:"currentColor",fillRule:"evenodd",height:r,style:oE({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:j0}),c.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z"})]}))});function Uw(e){"@babel/helpers - typeof";return Uw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Uw(e)}var mLe=["size","style"];function eF(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function lE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?eF(Object(r),!0).forEach(function(i){gLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function gLe(e,n,r){return n=yLe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function yLe(e){var n=xLe(e,"string");return Uw(n)=="symbol"?n:String(n)}function xLe(e,n){if(Uw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Uw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function vLe(e,n){if(e==null)return{};var r=bLe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function bLe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Kee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=vLe(e,mLe);return c.jsxs("svg",lE(lE({fill:"currentColor",fillRule:"evenodd",height:r,style:lE({flex:"none",lineHeight:1},i),viewBox:"0 0 98 24",xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:j0}),c.jsx("path",{d:"M21.186 12.67c0 2.649-.786 4.759-2.359 6.33-1.766 1.87-4.09 2.806-6.969 2.806-2.756 0-5.088-.953-6.996-2.86C2.954 17.04 2 14.693 2 11.904c0-2.789.954-5.137 2.862-7.043C6.77 2.953 9.102 2 11.858 2c1.396 0 2.712.247 3.949.741 1.236.495 2.252 1.192 3.047 2.092l-1.749 1.748c-.583-.706-1.338-1.258-2.266-1.655a7.49 7.49 0 00-2.981-.596c-2.067 0-3.816.715-5.247 2.145-1.413 1.448-2.12 3.257-2.12 5.428s.707 3.98 2.12 5.428c1.431 1.43 3.18 2.145 5.247 2.145 1.89 0 3.463-.53 4.717-1.588 1.254-1.06 1.979-2.516 2.173-4.37h-6.89v-2.277h9.196c.088.495.132.971.132 1.43m7.652-4.633c1.946 0 3.494.629 4.645 1.886 1.15 1.257 1.726 3.018 1.726 5.282l-.027.268H24.877c.036 1.284.464 2.318 1.285 3.102.82.785 1.802 1.177 2.944 1.177 1.57 0 2.802-.784 3.694-2.354l2.195 1.07a6.54 6.54 0 01-2.45 2.595C31.503 21.688 30.32 22 29 22c-1.927 0-3.516-.66-4.765-1.98-1.249-1.319-1.873-2.986-1.873-5.001 0-1.997.606-3.66 1.82-4.988 1.213-1.329 2.766-1.993 4.657-1.993m-.053 2.247c-.928 0-1.727.285-2.396.856-.67.57-1.11 1.337-1.325 2.3h7.522c-.071-.91-.442-1.663-1.111-2.26-.67-.598-1.566-.896-2.69-.896M39.247 21.53h-2.455V8.465h2.348v1.813h.107c.374-.64.947-1.173 1.721-1.6.774-.427 1.544-.64 2.309-.64.96 0 1.806.222 2.535.667a3.931 3.931 0 011.601 1.84c1.085-1.671 2.589-2.507 4.51-2.507 1.513 0 2.678.462 3.496 1.387.819.924 1.228 2.24 1.228 3.946v8.16h-2.455v-7.786c0-1.227-.223-2.112-.668-2.654-.444-.542-1.192-.813-2.241-.813-.943 0-1.735.4-2.375 1.2-.64.8-.961 1.742-.961 2.826v7.227h-2.455v-7.786c0-1.227-.223-2.112-.668-2.654-.444-.542-1.191-.813-2.241-.813-.943 0-1.735.4-2.375 1.2-.64.8-.961 1.742-.961 2.826v7.227zM61.911 3.93c0 .48-.17.89-.508 1.228a1.675 1.675 0 01-1.23.508c-.48 0-.89-.17-1.229-.508a1.673 1.673 0 01-.508-1.228c0-.481.17-.89.508-1.229a1.675 1.675 0 011.23-.508c.48 0 .89.17 1.23.508.338.338.507.748.507 1.228m-.11 4.514v13.088h-2.857V8.443h2.857zM80 3.93c0 .48-.17.89-.508 1.228a1.675 1.675 0 01-1.23.508c-.48 0-.89-.17-1.229-.508a1.673 1.673 0 01-.508-1.228c0-.481.17-.89.508-1.229a1.675 1.675 0 011.23-.508c.48 0 .89.17 1.23.508.338.338.507.748.507 1.228m-.11 4.514v13.088h-2.857V8.443h2.857zm-16.343.022h2.349v1.813h.107c.373-.64.947-1.173 1.721-1.6a4.935 4.935 0 012.415-.64c1.601 0 2.833.458 3.696 1.373.863.916 1.294 2.218 1.294 3.907v8.213h-2.455v-8.053c-.053-2.133-1.13-3.2-3.229-3.2-.978 0-1.797.395-2.455 1.187-.658.79-.987 1.737-.987 2.84v7.226h-2.456V8.465z"})]}))});function Vw(e){"@babel/helpers - typeof";return Vw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vw(e)}var _Le=["type"];function tF(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function wLe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?tF(Object(r),!0).forEach(function(i){SLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function SLe(e,n,r){return n=kLe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function kLe(e){var n=CLe(e,"string");return Vw(n)=="symbol"?n:String(n)}function CLe(e,n){if(Vw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Vw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function jLe(e,n){if(e==null)return{};var r=NLe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function NLe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var TLe=y.memo(function(e){var n=e.type,r=n===void 0?"mono":n,i=jLe(e,_Le),s=r==="color"?T9:Gee;return c.jsx(Zl,wLe({Icon:s,Text:Kee,"aria-label":j0,spaceMultiple:HPe,textMultiple:FPe},i))}),rp=Gee;rp.Color=T9;rp.Text=Kee;rp.Combine=TLe;rp.Avatar=lLe;rp.colorPrimary=qee;rp.title=j0;var vS="Grok",ELe=.75,ALe=.2,Yee="#000",OLe=Yee,RLe="#fff",MLe=.75;function qw(e){"@babel/helpers - typeof";return qw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qw(e)}var PLe=["size","style"];function nF(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function cE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?nF(Object(r),!0).forEach(function(i){LLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function LLe(e,n,r){return n=$Le(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function $Le(e){var n=DLe(e,"string");return qw(n)=="symbol"?n:String(n)}function DLe(e,n){if(qw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(qw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function ILe(e,n){if(e==null)return{};var r=BLe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function BLe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var E9=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=ILe(e,PLe);return c.jsxs("svg",cE(cE({fill:"currentColor",fillRule:"evenodd",height:r,style:cE({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:vS}),c.jsx("path",{d:"M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815"})]}))});function Gw(e){"@babel/helpers - typeof";return Gw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gw(e)}function rF(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function zLe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?rF(Object(r),!0).forEach(function(i){FLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function FLe(e,n,r){return n=HLe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function HLe(e){var n=WLe(e,"string");return Gw(n)=="symbol"?n:String(n)}function WLe(e,n){if(Gw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Gw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function ULe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var VLe=y.memo(function(e){var n=Object.assign({},(ULe(e),e));return c.jsx(Jl,zLe({Icon:E9,"aria-label":vS,background:OLe,color:RLe,iconMultiple:MLe},n))});function Kw(e){"@babel/helpers - typeof";return Kw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kw(e)}var qLe=["size","style"];function iF(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function uE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?iF(Object(r),!0).forEach(function(i){GLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function GLe(e,n,r){return n=KLe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function KLe(e){var n=YLe(e,"string");return Kw(n)=="symbol"?n:String(n)}function YLe(e,n){if(Kw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Kw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function XLe(e,n){if(e==null)return{};var r=JLe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function JLe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Xee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=XLe(e,qLe);return c.jsxs("svg",uE(uE({fill:"currentColor",fillRule:"evenodd",height:r,style:uE({flex:"none",lineHeight:1},i),viewBox:"0 0 63 24",xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:vS}),c.jsx("path",{d:"M47.419 21.645V2.457h3.033V15.12l6.415-7.369h3.678l-5.772 6.316 5.825 7.578h-3.624l-4.717-6.512-1.805-.012v6.524h-3.033zM38.22 21.968c-4.51 0-6.952-3.198-6.952-7.283 0-4.112 2.443-7.283 6.952-7.283 4.537 0 6.952 3.17 6.952 7.283 0 4.085-2.415 7.283-6.952 7.283zm-3.785-7.283c0 3.17 1.718 4.756 3.785 4.756 2.094 0 3.785-1.585 3.785-4.756 0-3.172-1.691-4.784-3.785-4.784-2.067 0-3.785 1.612-3.785 4.784zM22.826 21.645V9.955l2.55-2.204h5.422v2.58H25.86v11.314h-3.033zM11.228 22C5.447 22 2 17.802 2 12.078 2 6.3 5.57 2 11.341 2c4.51 0 7.811 2.311 8.59 6.611h-3.463c-.51-2.445-2.55-3.816-5.127-3.816-4.16 0-5.986 3.601-5.986 7.283 0 3.682 1.826 7.256 5.986 7.256 3.973 0 5.717-2.876 5.852-5.267h-5.986v-2.783h9.046l-.015 1.455c0 5.406-2.203 9.261-9.01 9.261z"})]}))});function Yw(e){"@babel/helpers - typeof";return Yw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yw(e)}function sF(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function ZLe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?sF(Object(r),!0).forEach(function(i){QLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function QLe(e,n,r){return n=e$e(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function e$e(e){var n=t$e(e,"string");return Yw(n)=="symbol"?n:String(n)}function t$e(e,n){if(Yw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Yw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function n$e(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var r$e=y.memo(function(e){var n=Object.assign({},(n$e(e),e));return c.jsx(Zl,ZLe({Icon:E9,Text:Xee,"aria-label":vS,spaceMultiple:ALe,textMultiple:ELe},n))}),J0=E9;J0.Text=Xee;J0.Combine=r$e;J0.Avatar=VLe;J0.colorPrimary=Yee;J0.title=vS;function Xx(e){return e.trim().replace(/\s*\[([^\]]+)\]\s*$/," ($1)")}function Jee({size:e=20,className:n}){return c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 1024 1024",className:n,children:[c.jsx("path",{d:"M318 372 L430 486 L318 600",fill:"none",stroke:"currentColor",strokeWidth:"88",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M610 258 L610 642 C610 734 549 796 455 796 C393 796 338 766 299 715",fill:"none",stroke:"currentColor",strokeWidth:"88",strokeLinecap:"round",strokeLinejoin:"round"})]})}const nx=Bh,dE={"gpt-4":as,"gpt-4o":as,"gpt-4-turbo":as,"gpt-5":as,"gpt-3.5-turbo":as,o1:as,"o1-mini":as,"o1-preview":as,codex:as,"claude-3":Ul,"claude-3-opus":Ul,"claude-3-sonnet":Ul,"claude-sonnet":Ul,"claude-3-haiku":Ul,"claude-2":Ul,qwen:md,qwen2:md,"qwen2.5":md,qwen3:md,llama:nx,llama2:nx,llama3:nx,"llama3.1":nx,"llama3.2":nx,mistral:cd,mixtral:cd,dolphin:cd,"dolphin-mistral":cd,"dolphin-mistral-nemo":cd,deepseek:Dm,"deepseek-coder":Dm,gemini:rp,"gemini-pro":rp,grok:J0},aF={openai:as,anthropic:Ul,ollama:X0,local:nx,jait:Jee};function i$e(e,n){if(n){if(dE[n])return dE[n];const r=n.split(":")[0].toLowerCase(),i=r.includes("/")?r.split("/").pop():r;for(const[s,a]of Object.entries(dE))if(i.startsWith(s.toLowerCase())||s.toLowerCase().startsWith(i))return a}return aF[e]??aF.ollama}function E5({provider:e,model:n,size:r=20,className:i}){const s=i$e(e,n);return c.jsx(s,{size:r,className:i})}function s$e(e){const r=(e.includes("/")?e.split("/").pop():e).split(":"),i=r[0],s=r[1],a=i.split(/[-_]/).map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ");return s&&!["latest","stable"].includes(s.toLowerCase())?Xx(`${a} ${s.toUpperCase()}`):Xx(a)}const a$e=({className:e})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 1024 1024",className:e,children:[c.jsx("path",{d:"M318 372 L430 486 L318 600",fill:"none",stroke:"currentColor",strokeWidth:"88",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M610 258 L610 642 C610 734 549 796 455 796 C393 796 338 766 299 715",fill:"none",stroke:"currentColor",strokeWidth:"88",strokeLinecap:"round",strokeLinejoin:"round"})]}),o$e=({className:e})=>c.jsx(as,{size:16,className:e}),l$e=({className:e})=>c.jsx(Ul,{size:16,className:e}),Zee=[{value:"jait",label:"Jait",icon:a$e,description:"Native Jait agent loop with full tool access"},{value:"codex",label:"Codex",icon:o$e,description:"OpenAI Codex CLI — coding agent with MCP tools"},{value:"claude-code",label:"Claude Code",icon:l$e,description:"Anthropic Claude Code CLI — coding agent with MCP tools"}],c$e=new Map(Zee.map(e=>[e.value,e]));function u$e(e){return c$e.get(e.id)??{value:e.id,label:e.name||e.id,icon:bc,description:e.description}}const Qee="jait-recent-models",A9=5;function d$e(e){const n=e.toLowerCase();return n.includes("not installed")||n.includes("not found")?"not installed":n.includes("not authenticated")||n.includes("login")?"not authenticated":"unavailable"}function h$e(e){const n=e.trim().toLowerCase();return!n||n.includes("quota")||n.includes("rate limit")||n.includes("token limit")||n.includes("usage limit")||n.includes("limit reached")?!1:n==="authentication required"||n==="not authenticated"||n.includes("not logged in")||n.includes("login required")||n.includes("credentials are not configured")||n.includes("missing credentials")||n.includes("no credentials")}function FA(){try{const e=localStorage.getItem(Qee);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(r=>typeof r=="string").slice(0,A9):[]}catch{return[]}}function f$e(e){const n=FA().filter(r=>r!==e);n.unshift(e),localStorage.setItem(Qee,JSON.stringify(n.slice(0,A9)))}function p$e(){if(typeof document>"u")return;const e=document.activeElement;e instanceof HTMLElement&&e.blur()}function m$e({provider:e,model:n,onProviderChange:r,onModelChange:i,disabled:s,className:a,compact:o=!1,repoRuntime:l,onMoveToGateway:u,sessionInfo:d,projectNodeId:h}){var Be;const f=K0(),{updateSettings:m,settings:x}=Oee(),v=(x==null?void 0:x.reasoning_effort)??null,[_,w]=y.useState(!1),[S,C]=y.useState(""),[j,T]=y.useState({}),[E,N]=y.useState([]),[R,$]=y.useState([]),[U,H]=y.useState([]),[B,W]=y.useState([]),[D,O]=y.useState(!1),[z,M]=y.useState(null),[L,I]=y.useState(null),[G,q]=y.useState(null),[F,X]=y.useState(null),V=y.useRef(null),ne=y.useRef(null),J=y.useCallback((ke=!1)=>{(ke?bn.listProvidersFresh():bn.listProviders()).then(({providers:Ge,remoteProviders:rt})=>{const Ze={};for(const Ye of Ge)Ze[Ye.id]=Ye;T(Ze),N(Ge),$(rt)}).catch(()=>{})},[]);y.useEffect(()=>{J()},[J]);const te=async(ke,we)=>{try{await navigator.clipboard.writeText(we),X(Ge=>Ge&&Ge.providerId===ke?{...Ge,copied:!0}:Ge)}catch{X(Ge=>Ge&&Ge.providerId===ke?{...Ge,copied:!1}:Ge)}},re=async ke=>{var Ge;const we=(Ge=V.current)==null?void 0:Ge.value.trim();if(!(!we||G)){q(ke);try{await bn.sendProviderLoginInput(ke,we),V.current&&(V.current.value=""),X(rt=>rt&&rt.providerId===ke?{...rt,requiresCodeInput:!1,message:"Code sent. Completing login…"}:rt),J(!0)}catch(rt){X(Ze=>Ze&&Ze.providerId===ke?{...Ze,tone:"error",message:rt instanceof Error?rt.message:"Failed to send code."}:Ze)}finally{q(null)}}},Q=async(ke,we)=>{if(!G){w(!1),q(ke),X({providerId:ke,label:we,tone:"loading",message:`Starting ${we} login...`});try{const Ge=await bn.startProviderLogin(ke);let rt=!1;if(Ge.userCode)try{await navigator.clipboard.writeText(Ge.userCode),rt=!0}catch{rt=!1}Ge.verificationUri&&window.open(Ge.verificationUri,"_blank","noopener,noreferrer"),X({providerId:ke,label:we,tone:"success",message:Ge.userCode?`Device code ${rt?"copied to clipboard.":"is ready to copy."}`:Ge.requiresCodeInput?Ge.inputPrompt??`Enter the authorization code from your browser to complete ${we} login.`:Ge.message,userCode:Ge.userCode,verificationUri:Ge.verificationUri,copied:rt,requiresCodeInput:Ge.requiresCodeInput,inputPrompt:Ge.inputPrompt}),J(!0)}catch(Ge){X({providerId:ke,label:we,tone:"error",message:Ge instanceof Error?Ge.message:`Failed to start ${we} login.`})}finally{q(null)}}};y.useEffect(()=>{if(!F||F.tone!=="success")return;let ke=!1,we=null;const Ge=window.setInterval(()=>{rt()},2e3);async function rt(){if(!(ke||!F))try{const Ze=await bn.getProviderAuthStatus(F.providerId);if(ke||Ze.authenticated!==!0)return;ke=!0,window.clearInterval(Ge),J(!0),X(Ye=>Ye&&Ye.providerId===F.providerId?{...Ye,message:`${F.label} is logged in.`}:Ye),we=window.setTimeout(()=>{X(Ye=>Ye&&Ye.providerId===F.providerId?null:Ye)},900)}catch{}}return rt(),()=>{ke=!0,window.clearInterval(Ge),we&&window.clearTimeout(we)}},[F==null?void 0:F.providerId,F==null?void 0:F.tone,F==null?void 0:F.label,J]),y.useEffect(()=>{_&&(C(""),f||requestAnimationFrame(()=>{var ke;return(ke=ne.current)==null?void 0:ke.focus()}))},[_,f]),y.useEffect(()=>{H([]),M(null),W(FA());let ke=!1;return O(!0),bn.listProviderModels(e).then(we=>{var Ge;ke||(M(null),H(we.models),(Ge=we.recentModels)!=null&&Ge.length&&W(we.recentModels),we.currentBackend&&I(we.currentBackend))}).catch(we=>{ke||(H([]),M(we instanceof Error?we.message:"Failed to load models"))}).finally(()=>{ke||O(!1)}),()=>{ke=!0}},[e]),y.useEffect(()=>{if(e==="jait"||D||U.length===0||n&&U.some(Ge=>Ge.id===n))return;const ke=U.find(Ge=>Ge.isDefault)??U[0]??null,we=(ke==null?void 0:ke.id)??null;we!==n&&i(we)},[e,D,n,U,i]);const ue=l!=null,ge=(l==null?void 0:l.availableProviders)??[],se=(l==null?void 0:l.online)??!0,oe=(l==null?void 0:l.loading)??!1,ve=(l==null?void 0:l.hostType)==="gateway",_e=!!(h&&h!=="gateway"),Ae=_e?R.find(ke=>ke.nodeId===h):void 0,Ke=_e&&!ue,ot=y.useMemo(()=>(E.length>0?E.map(u$e):Zee).map(we=>{const Ge=j[we.value];let rt,Ze,Ye;if(ue)we.value==="jait"?(rt=!0,Ye="Gateway"):ve?(rt=(Ge==null?void 0:Ge.available)!==!1,Ze=Ge==null?void 0:Ge.unavailableReason,Ye="Gateway"):oe?(rt=!1,Ze="Checking device…"):se?(rt=ge.includes(we.value),Ze=rt?void 0:"Not available on this device",Ye=(l==null?void 0:l.locationLabel)??"device"):(rt=!1,Ze="Device is offline");else if(Ke)we.value==="jait"?(rt=!0,Ye="Gateway"):Ae?(rt=Ae.providers.includes(we.value),Ze=rt?void 0:"Not available on this device",Ye=Ae.nodeName):(rt=!1,Ze="Device is offline");else{const ut=(Ge==null?void 0:Ge.available)!==!1,xt=ut?void 0:R.find(zt=>zt.providers.includes(we.value));rt=ut||!!xt,Ze=Ge==null?void 0:Ge.unavailableReason,Ye=!(Ge!=null&&Ge.available)&&xt?xt.nodeName:"Gateway"}return{...we,isAvailable:rt,reason:Ze,nodeLabel:Ye,auth:Ge==null?void 0:Ge.auth}}),[E,j,R,ue,ve,oe,se,ge,l==null?void 0:l.locationLabel,Ke,Ae]),Nt=ot.find(ke=>ke.value===e)??ot[0],$t=Nt.icon,en=n?U.find(ke=>ke.id===n):null,on=D?"Loading":en!=null&&en.name||n?Xx((en==null?void 0:en.name)??n):"Default",Vt=ue?ve?"Gateway":l==null?void 0:l.locationLabel:Ke?(Ae==null?void 0:Ae.nodeName)??h:d!=null&&d.isRemote&&d.remoteNode?d.remoteNode.nodeName:void 0,Gt=S.trim().toLowerCase(),Et=y.useMemo(()=>Gt?U.filter(ke=>{var we;return ke.id.toLowerCase().includes(Gt)||ke.name.toLowerCase().includes(Gt)||((we=ke.description)==null?void 0:we.toLowerCase().includes(Gt))}):U,[U,Gt]),_n=y.useMemo(()=>{if(Gt)return[];const ke=new Map(U.map(we=>[we.id,we]));return B.filter(we=>ke.has(we)).map(we=>ke.get(we)).slice(0,A9)},[U,B,Gt]),xe=y.useMemo(()=>{if(Gt)return Et;const ke=new Set(_n.map(we=>we.id));return Et.filter(we=>!ke.has(we.id))},[Et,_n,Gt]),pe=y.useMemo(()=>{var we;if(!z)return null;const ke=Nt.label;return((we=Nt.auth)==null?void 0:we.authenticated)===!1&&h$e(z)?`You're not logged in to ${ke}.`:z},[(Be=Nt.auth)==null?void 0:Be.authenticated,Nt.label,z]),ze=ke=>{r(ke)},ft=[{value:"minimal",label:"Minimal",hint:"Fastest, least thinking"},{value:"low",label:"Low",hint:"Brief reasoning"},{value:"medium",label:"Medium",hint:"Balanced"},{value:"high",label:"High",hint:"Deepest reasoning"}],Je=ke=>{m({reasoning_effort:ke}).catch(()=>{})},ht=n?U.find(ke=>ke.id===n):null,yt=!!(ht!=null&&ht.reasoningEffortSupported),St={OpenAI:"openai",OpenRouter:"openrouter",Ollama:"ollama"},We=ke=>{const we=U.find(Ge=>Ge.id===ke);if(e==="jait"&&(we!=null&&we.group)){const Ge=St[we.group];Ge&&Ge!==L&&m({jait_backend:Ge}).then(()=>{I(Ge)}).catch(()=>{})}e==="jait"&&(v&&!(we!=null&&we.reasoningEffortSupported)?m({selected_model:ke,reasoning_effort:null}).catch(()=>{}):m({selected_model:ke}).catch(()=>{})),i(ke),f$e(ke),W(FA()),w(!1)},Fe=y.useCallback(ke=>{ke&&f&&p$e(),w(ke)},[f]),lt=c.jsxs("button",{type:"button",disabled:s,onClick:f?()=>Fe(!0):void 0,className:je("flex h-10 items-center gap-1 rounded-md border border-transparent px-2 py-1 text-sm font-medium text-muted-foreground sm:h-8 sm:px-1.5 sm:text-xs","hover:text-foreground hover:bg-muted/60 transition-colors","focus-visible:outline-none focus-visible:border-ring/60 focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring/50","disabled:pointer-events-none disabled:opacity-50",a),title:`Provider: ${Nt.label} · Model: ${on}`,"aria-label":`Provider ${Nt.label}, model ${on}`,children:[c.jsx($t,{className:"h-4 w-4 shrink-0"}),!o&&c.jsxs(c.Fragment,{children:[c.jsx("span",{children:Nt.label}),c.jsx("span",{className:"max-w-[112px] truncate font-mono text-xs opacity-80",children:on})]}),!o&&Vt&&c.jsxs("span",{className:"flex max-w-[72px] items-center gap-0.5 truncate text-2xs text-blue-500",children:[c.jsx($o,{className:"h-3 w-3"}),Vt]}),D?c.jsx(Lt,{className:"h-3 w-3 animate-spin opacity-70"}):null,c.jsx(fl,{className:"h-3 w-3 opacity-60"})]}),et=c.jsxs(c.Fragment,{children:[c.jsx("div",{className:je("shrink-0 border-b px-3 py-2",f&&"flex min-h-10 items-center pr-12"),children:c.jsx("div",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:"Providers"})}),ue&&!ve&&!se&&!oe&&c.jsx("div",{className:"shrink-0 border-b px-3 py-2 text-xs text-amber-600 dark:text-amber-400",children:"Device is offline — only Jait (gateway) is available"}),ue&&oe&&c.jsxs("div",{className:"flex shrink-0 items-center gap-1.5 border-b px-3 py-2 text-xs text-muted-foreground",children:[c.jsx(Lt,{className:"h-3 w-3 animate-spin"}),"Connecting to device…"]}),Ke&&!Ae&&c.jsx("div",{className:"shrink-0 border-b px-3 py-2 text-xs text-amber-600 dark:text-amber-400",children:"Device is offline — only Jait (gateway) is available"}),c.jsxs("div",{className:je("shrink-0 overflow-y-auto p-1",f?"max-h-28":"min-h-24 max-h-56"),children:[ot.map(ke=>{var Ye,ut;const we=ke.icon,Ge=ke.value===e,rt=!!((Ye=ke.auth)!=null&&Ye.login)&&((ut=ke.auth)==null?void 0:ut.authenticated)!==!0&&!Ke&&(!ue||ve),Ze=G===ke.value;return c.jsx("div",{className:je("rounded-sm",Ge&&"bg-accent/50"),children:c.jsxs("div",{className:"flex items-start gap-1.5",children:[c.jsxs("button",{type:"button",onClick:()=>ze(ke.value),disabled:!ke.isAvailable,className:je("flex min-w-0 flex-1 items-start gap-2.5 rounded-sm px-2 py-2 text-left transition-colors","hover:bg-accent hover:text-accent-foreground",!ke.isAvailable&&"cursor-not-allowed opacity-60"),children:[c.jsx(we,{className:"mt-0.5 h-4 w-4 shrink-0"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-sm font-medium",children:[ke.label,ke.isAvailable&&ke.nodeLabel&&c.jsxs("span",{className:"flex items-center gap-0.5 text-2xs text-muted-foreground",children:[c.jsx($o,{className:"h-3 w-3"}),ke.nodeLabel]}),!ke.isAvailable&&c.jsxs("span",{className:"flex items-center gap-0.5 text-2xs text-destructive/80",children:[c.jsx(Fx,{className:"h-3 w-3"}),ke.reason?d$e(ke.reason):"unavailable"]}),ke.auth&&ke.auth.authenticated===!0&&c.jsx("span",{className:"text-2xs text-emerald-600 dark:text-emerald-400",children:"signed in"})]}),c.jsx("div",{className:je("text-xs leading-snug text-muted-foreground",f&&"hidden"),children:!ke.isAvailable&&ke.reason?ke.reason:ke.description})]}),Ge&&c.jsx(Ii,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"})]}),rt&&c.jsx("button",{type:"button",title:`Login to ${ke.label}`,"aria-label":`Login to ${ke.label}`,onClick:xt=>{xt.preventDefault(),xt.stopPropagation(),Q(ke.value,ke.label)},disabled:!!G,className:"mr-1 mt-2 inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-border bg-background text-foreground transition-colors hover:bg-muted disabled:opacity-50",children:Ze?c.jsx(Lt,{className:"h-3.5 w-3.5 animate-spin"}):c.jsx(Gxe,{className:"h-3.5 w-3.5"})})]})},ke.value)}),ue&&!ve&&!se&&!oe&&u&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"mx-2 my-1 border-t"}),c.jsxs("button",{type:"button",onClick:u,className:je("flex w-full items-start gap-2.5 rounded-sm px-2 py-2 text-left transition-colors","hover:bg-accent hover:text-accent-foreground"),children:[c.jsx($a,{className:"mt-0.5 h-4 w-4 shrink-0"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("div",{className:"text-sm font-medium",children:"Move to Gateway"}),c.jsx("div",{className:je("text-xs leading-snug text-muted-foreground",f&&"hidden"),children:"Run this repo on the gateway server instead"})]})]})]})]}),c.jsx("div",{className:"shrink-0 border-y px-3 py-2",children:c.jsx("div",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:"Models"})}),c.jsx("div",{className:"shrink-0 border-b px-3 py-2",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(co,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),c.jsx("input",{ref:ne,type:"text",value:S,onChange:ke=>C(ke.target.value),placeholder:"Search models...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground"})]})}),c.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto p-1",children:[_n.length>0&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1.5",children:[c.jsx(Gm,{className:"h-3 w-3 text-muted-foreground"}),c.jsx("span",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:"Recent"})]}),_n.map(ke=>c.jsx(hE,{model:ke,selected:n===ke.id,onSelect:We},`recent-${ke.id}`)),c.jsx("div",{className:"mx-2 my-1 border-t"})]}),!Gt&&_n.length>0&&c.jsx("div",{className:"px-2 py-1.5",children:c.jsx("span",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:"All models"})}),D&&c.jsxs("div",{className:"flex items-center gap-2 px-3 py-3 text-xs text-muted-foreground",children:[c.jsx(Lt,{className:"h-3.5 w-3.5 animate-spin"}),"Loading models…"]}),!D&&pe&&c.jsxs("div",{className:"flex items-start gap-2 px-3 py-3 text-xs text-amber-700 dark:text-amber-300",children:[c.jsx(Fx,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),c.jsx("span",{children:pe})]}),!D&&!pe&&(()=>{if(!xe.some(rt=>rt.group))return xe.map(rt=>c.jsx(hE,{model:rt,selected:n===rt.id,onSelect:We},rt.id));const we=[],Ge=new Set;for(const rt of xe){const Ze=rt.group||"Other";Ge.has(Ze)||(Ge.add(Ze),we.push({label:Ze,items:[]})),we.find(Ye=>Ye.label===Ze).items.push(rt)}return we.map(rt=>c.jsxs("div",{children:[c.jsx("div",{className:"sticky top-0 z-10 bg-popover px-2 py-1.5",children:c.jsx("span",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:rt.label})}),rt.items.map(Ze=>c.jsx(hE,{model:Ze,selected:n===Ze.id,onSelect:We},Ze.id))]},rt.label))})(),!D&&!pe&&Et.length===0&&c.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:S?`No models matching "${S}"`:"No models available"})]}),yt&&!D&&c.jsxs("div",{className:"shrink-0 border-t px-3 py-2",children:[c.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[c.jsx(oo,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsx("span",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:"Reasoning effort"})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-1",children:[c.jsxs("button",{type:"button",onClick:()=>Je(null),className:je("flex items-center justify-between rounded-sm px-2 py-1.5 text-left text-xs transition-colors","hover:bg-accent hover:text-accent-foreground",v===null&&"bg-accent/50"),children:[c.jsx("span",{className:"text-muted-foreground",children:"Default"}),v===null&&c.jsx(Ii,{className:"h-3.5 w-3.5 shrink-0 text-primary"})]}),ft.map(ke=>{const we=v===ke.value;return c.jsxs("button",{type:"button",title:ke.hint,onClick:()=>Je(ke.value),className:je("flex items-center justify-between rounded-sm px-2 py-1.5 text-left text-xs transition-colors","hover:bg-accent hover:text-accent-foreground",we&&"bg-accent/50"),children:[c.jsx("span",{children:ke.label}),we&&c.jsx(Ii,{className:"h-3.5 w-3.5 shrink-0 text-primary"})]},ke.value)})]}),c.jsx("p",{className:"mt-1.5 text-2xs leading-snug text-muted-foreground",children:"Controls how much the model reasons before answering. Only applies to this reasoning model."})]})]});return c.jsxs(c.Fragment,{children:[f?c.jsxs(c.Fragment,{children:[lt,c.jsx(zo,{open:_,onOpenChange:Fe,children:c.jsxs(uo,{showCloseButton:!1,overlayClassName:"bg-black/40",onOpenAutoFocus:ke=>ke.preventDefault(),onCloseAutoFocus:ke=>ke.preventDefault(),className:"!bottom-2 !top-auto !flex !max-w-none !translate-x-0 !translate-y-0 !flex-col !gap-0 !overflow-hidden !rounded-lg !p-0 shadow-lg",style:{left:"0.5rem",right:"0.5rem",bottom:"max(0.5rem, env(safe-area-inset-bottom))",top:"auto",width:"auto",maxHeight:"min(36rem, calc(100dvh - 1rem))",transform:"translateZ(0)"},children:[c.jsxs(Rve,{className:"absolute right-2 top-1 z-10 inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground opacity-80 transition-colors hover:bg-muted hover:text-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring",children:[c.jsx(Ur,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]}),c.jsx(ho,{className:"sr-only",children:"Provider and model"}),c.jsx(ju,{className:"sr-only",children:"Choose a provider and model"}),et]})})]}):c.jsxs(m9,{open:_,onOpenChange:Fe,children:[c.jsx(g9,{asChild:!0,disabled:s,children:lt}),c.jsx(y9,{align:"start",side:"top",collisionPadding:8,className:"flex w-[min(22rem,calc(100vw-1rem))] flex-col overflow-hidden p-0",style:{maxHeight:"min(32rem, var(--radix-popover-content-available-height, 80dvh))"},children:et})]}),c.jsx(zo,{open:!!F,onOpenChange:ke=>{ke||X(null)},children:c.jsxs(uo,{className:"w-[calc(100vw-1.5rem)] max-w-md",children:[c.jsxs(ul,{children:[c.jsxs(ho,{children:[(F==null?void 0:F.label)??"Provider"," login"]}),c.jsx(ju,{children:(F==null?void 0:F.tone)==="loading"?F.message:"Use the device code below on the provider login page."})]}),F&&c.jsxs("div",{className:"space-y-4",children:[F.tone!=="loading"&&c.jsx("div",{className:je("rounded-md border px-3 py-2 text-sm",F.tone==="success"?"border-emerald-500/25 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/25 bg-destructive/10 text-destructive"),children:F.message}),F.tone==="loading"&&c.jsxs("div",{className:"flex items-center gap-2 rounded-md border px-3 py-2 text-sm text-muted-foreground",children:[c.jsx(Lt,{className:"h-4 w-4 animate-spin"}),"Starting device login..."]}),F.userCode&&c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("div",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Device code"}),c.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[c.jsx("code",{className:"min-w-0 flex-1 rounded-md border bg-muted px-3 py-2 text-center font-mono text-lg font-semibold [overflow-wrap:anywhere]",children:F.userCode}),c.jsxs(ye,{variant:"outline",size:"sm",onClick:()=>void te(F.providerId,F.userCode),children:[c.jsx(nl,{className:"mr-1.5 h-3.5 w-3.5"}),F.copied?"Copied":"Copy"]})]})]}),F.requiresCodeInput&&c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("div",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Authorization code"}),c.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[c.jsx("input",{ref:V,type:"text",placeholder:"Paste authorization code…",className:"min-w-0 flex-1 rounded-md border bg-background px-3 py-2 font-mono text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring",onKeyDown:ke=>{ke.key==="Enter"&&re(F.providerId)},autoFocus:!0}),c.jsx(ye,{size:"sm",disabled:!!G,onClick:()=>void re(F.providerId),children:G?c.jsx(Lt,{className:"h-3.5 w-3.5 animate-spin"}):"Submit"})]})]})]}),c.jsxs(lp,{className:"gap-2 sm:gap-0",children:[c.jsx(ye,{variant:"outline",onClick:()=>X(null),children:"Close"}),(F==null?void 0:F.verificationUri)&&c.jsxs(ye,{onClick:()=>window.open(F.verificationUri,"_blank","noopener,noreferrer"),children:[c.jsx(ep,{className:"mr-1.5 h-4 w-4"}),"Open login page"]})]})]})})]})}function hE({model:e,selected:n,onSelect:r}){return c.jsxs("button",{type:"button",onClick:()=>r(e.id),className:je("flex w-full items-start gap-2 rounded-sm px-2 py-1.5 text-left transition-colors","hover:bg-accent hover:text-accent-foreground",n&&"bg-accent/50"),children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"truncate text-sm font-medium",children:[Xx(e.name),e.isDefault&&c.jsx("span",{className:"ml-1.5 text-2xs font-normal text-muted-foreground",children:"(default)"})]}),e.description&&c.jsx("div",{className:"truncate text-xs leading-snug text-muted-foreground",children:e.description})]}),n&&c.jsx(Ii,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-primary"})]})}const oF={"full-access":{label:"Full access",description:"Provider runs without approval prompts when supported.",icon:r4},supervised:{label:"Supervised",description:"Provider asks for approvals when it supports them.",icon:Nm}};function g$e({provider:e,value:n,onChange:r,disabled:i,className:s,compact:a=!1}){const[o,l]=y.useState({});y.useEffect(()=>{bn.listProviders().then(({providers:m})=>{const x={};for(const v of m)x[v.id]=v;l(x)}).catch(()=>{})},[]);const u=y.useMemo(()=>{var x;const m=(x=o[e])==null?void 0:x.modes;return!m||m.length===0?e==="jait"?[]:["full-access","supervised"]:m},[e,o]);if(e==="jait"||u.length<=1)return null;const d=u.includes(n)?n:u[0],h=oF[d],f=h.icon;return c.jsxs(Mc,{children:[c.jsx(Pc,{asChild:!0,disabled:i,children:c.jsxs("button",{type:"button",className:je("flex h-8 items-center gap-1 rounded-md border border-transparent px-1.5 py-1 text-xs font-medium text-muted-foreground","hover:text-foreground hover:bg-muted/60 transition-colors","focus-visible:outline-none focus-visible:border-ring/60 focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring/50","disabled:pointer-events-none disabled:opacity-50",s),title:`Runtime: ${h.label}`,"aria-label":`Runtime: ${h.label}`,children:[c.jsx(f,{className:"h-4 w-4"}),!a&&c.jsx("span",{children:h.label}),c.jsx(fl,{className:"h-3 w-3 opacity-60"})]})}),c.jsx(Kl,{align:"start",side:"top",className:"w-64",children:u.map(m=>{const x=oF[m],v=x.icon,_=d===m;return c.jsxs($i,{onClick:()=>r(m),className:"flex items-start justify-between gap-3",children:[c.jsxs("div",{className:"flex min-w-0 items-start gap-2",children:[c.jsx(v,{className:"mt-0.5 h-4 w-4 shrink-0"}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate text-sm font-medium",children:x.label}),c.jsx("div",{className:"text-xs text-muted-foreground",children:x.description})]})]}),_&&c.jsx(Ii,{className:"mt-0.5 h-4 w-4 shrink-0"})]},m)})})]})}function lF(e){return!!(e.isLoading&&e.hasQueueHandler&&e.sendTarget!=="thread")}const ete="application/x-jait-project+json",tte="application/x-jait-terminal+json";function y$e(e,n){return{path:e,name:n||e.split(/[\\/]/).pop()||e}}function x$e(e,n,r){return{terminalId:e,name:n||e,...r?{projectRoot:r}:{}}}function v$e(e){const{store:n,draftStateKey:r,previousDraftStateKey:i,currentAttachments:s}=e;if(!r)return[];const a=n.get(r);return a||(i&&i!==r&&s.length>0?s:[])}function cF(e,n,r){if(n){if(r.length===0){e.delete(n);return}e.set(n,r)}}function b3(e,n){return JSON.stringify({value:e,segments:Ds(n)})}function b$e(e,n,r,i){const s=b3(n,r);if(e===s)return!1;const a=Ds(r);return a.length>0?JSON.stringify(i)!==JSON.stringify(a):i.length===0?n.length>0:w0(i)!==n}function _$e(e){const{startContainerIsRoot:n,startContainerIsText:r,startOffset:i,childIndex:s}=e;return s<=0?!1:n?!0:i===0}function w$e(e,n){return Math.max(0,Math.min(e-1,n))}const uF="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@12.9.0/icons/",dF=[],S$e=[];function A5(e){const n="lineRange"in e?e.lineRange:void 0,r=n?`:L${n.startLine}-L${n.endLine}`:"";if("type"in e&&e.type==="project")return`project:${e.path}`;if("type"in e&&e.type==="terminal"){const i=e.selectedText?`:${C$e(e.selectedText)}`:"";return`terminal:${e.terminalId}${r}${i}`}return`file:${e.path}${r}`}function k$e(e){return e.toLowerCase().trim().replace(/[\s_]+/g,"-").replace(/[^a-z0-9-]/g,"")}function C$e(e){let n=5381;for(let r=0;r<e.length;r++)n=(n<<5)+n^e.charCodeAt(r);return(n>>>0).toString(36)}function O5(e,n){const r=document.createElement("span");r.contentEditable="false";const i=A5(e);r.setAttribute("data-chip-ref",i),"type"in e&&e.type==="project"?(r.setAttribute("data-segment-type","project"),r.setAttribute("data-project-path",e.path),r.setAttribute("data-chip-name",e.name)):"type"in e&&e.type==="terminal"?(r.setAttribute("data-segment-type","terminal"),r.setAttribute("data-terminal-id",e.terminalId),r.setAttribute("data-chip-name",e.name),e.projectRoot&&r.setAttribute("data-project-root",e.projectRoot),e.lineRange&&(r.setAttribute("data-line-start",String(e.lineRange.startLine)),r.setAttribute("data-line-end",String(e.lineRange.endLine))),e.selectedText&&r.setAttribute("data-selected-text",e.selectedText)):(r.setAttribute("data-segment-type","file"),r.setAttribute("data-file-path",e.path),r.setAttribute("data-chip-name",e.name),e.kind&&r.setAttribute("data-kind",e.kind),e.lineRange&&(r.setAttribute("data-line-start",String(e.lineRange.startLine)),r.setAttribute("data-line-end",String(e.lineRange.endLine)))),r.className="inline-flex items-center gap-1.5 align-middle text-xs font-medium leading-none mx-[2px] rounded-md border border-border/70 bg-muted/45 pl-2 pr-1 py-1 text-foreground cursor-default whitespace-nowrap transition-colors";const s=document.createElement("span");if(s.className="inline-flex items-center shrink-0","type"in e&&e.type==="project")s.innerHTML=`<img src="${uF}${hd.DEFAULT_FOLDER}" alt="" class="h-3.5 w-3.5" draggable="false" />`;else if("type"in e&&e.type==="terminal")s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" class="h-3.5 w-3.5 text-muted-foreground"><path d="M4 17l6-6-6-6"/><path d="M12 19h8"/></svg>';else{const u=e.kind==="dir"?N$e(e.name):j$e(e.name);s.innerHTML=`<img src="${uF}${u}" alt="" class="h-3.5 w-3.5" draggable="false" />`}r.appendChild(s);const a=document.createElement("span");a.className="truncate max-w-[180px]";const o="lineRange"in e?nw(e.lineRange):"";a.textContent=o?`${e.name}:${o.replace(/^lines? /,"")}`:e.name,r.appendChild(a);const l=document.createElement("button");return l.type="button",l.className="inline-flex items-center p-0.5 rounded hover:bg-foreground/10 transition-colors text-muted-foreground hover:text-foreground",l.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>',l.addEventListener("mousedown",u=>{u.preventDefault(),u.stopPropagation()}),l.addEventListener("click",u=>{u.preventDefault(),u.stopPropagation(),r.remove(),n==null||n(i)}),r.appendChild(l),r}function j$e(e){return hd.getIconForFile(e)??hd.DEFAULT_FILE}function N$e(e){return hd.getIconForFolder(e)??hd.DEFAULT_FOLDER}function Ks(e){let n="";const r=e.childNodes;for(let i=0;i<r.length;i++){const s=r[i];if(s.nodeType===Node.TEXT_NODE)n+=s.textContent??"";else if(s instanceof HTMLElement){if(s.hasAttribute("data-chip-ref"))continue;s.tagName==="BR"?i===r.length-1||(n+=`
|
|
945
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZPe(e,n){if(e){if(typeof e=="string")return Jz(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jz(e,n)}}function Jz(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function QPe(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,a,o,l=[],u=!0,d=!1;try{if(a=(r=r.call(e)).next,n!==0)for(;!(u=(i=a.call(r)).done)&&(l.push(i.value),l.length!==n);u=!0);}catch(h){d=!0,s=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function eLe(e){if(Array.isArray(e))return e}function tLe(e,n){if(e==null)return{};var r=nLe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function nLe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var T9=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=tLe(e,qPe),a=k9(j0,3),o=XPe(a,3),l=o[0],u=o[1],d=o[2];return c.jsxs("svg",aE(aE({height:r,style:aE({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:j0}),c.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"#3186FF"}),c.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:l.fill}),c.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:u.fill}),c.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:d.fill}),c.jsxs("defs",{children:[c.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:l.id,x1:"7",x2:"11",y1:"15.5",y2:"12",children:[c.jsx("stop",{stopColor:"#08B962"}),c.jsx("stop",{offset:"1",stopColor:"#08B962",stopOpacity:"0"})]}),c.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:u.id,x1:"8",x2:"11.5",y1:"5.5",y2:"11",children:[c.jsx("stop",{stopColor:"#F94543"}),c.jsx("stop",{offset:"1",stopColor:"#F94543",stopOpacity:"0"})]}),c.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:d.id,x1:"3.5",x2:"17.5",y1:"13.5",y2:"12",children:[c.jsx("stop",{stopColor:"#FABC12"}),c.jsx("stop",{offset:".46",stopColor:"#FABC12",stopOpacity:"0"})]})]})]}))});function Hw(e){"@babel/helpers - typeof";return Hw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hw(e)}function Zz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function rLe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Zz(Object(r),!0).forEach(function(i){iLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function iLe(e,n,r){return n=sLe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function sLe(e){var n=aLe(e,"string");return Hw(n)=="symbol"?n:String(n)}function aLe(e,n){if(Hw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Hw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function oLe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var lLe=y.memo(function(e){var n=Object.assign({},(oLe(e),e));return c.jsx(Jl,rLe({Icon:T9,"aria-label":j0,background:WPe,color:UPe,iconMultiple:VPe},n))});function Ww(e){"@babel/helpers - typeof";return Ww=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ww(e)}var cLe=["size","style"];function Qz(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function oE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Qz(Object(r),!0).forEach(function(i){uLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qz(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function uLe(e,n,r){return n=dLe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function dLe(e){var n=hLe(e,"string");return Ww(n)=="symbol"?n:String(n)}function hLe(e,n){if(Ww(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Ww(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function fLe(e,n){if(e==null)return{};var r=pLe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function pLe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Gee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=fLe(e,cLe);return c.jsxs("svg",oE(oE({fill:"currentColor",fillRule:"evenodd",height:r,style:oE({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:j0}),c.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z"})]}))});function Uw(e){"@babel/helpers - typeof";return Uw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Uw(e)}var mLe=["size","style"];function eF(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function lE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?eF(Object(r),!0).forEach(function(i){gLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function gLe(e,n,r){return n=yLe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function yLe(e){var n=xLe(e,"string");return Uw(n)=="symbol"?n:String(n)}function xLe(e,n){if(Uw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Uw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function vLe(e,n){if(e==null)return{};var r=bLe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function bLe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Kee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=vLe(e,mLe);return c.jsxs("svg",lE(lE({fill:"currentColor",fillRule:"evenodd",height:r,style:lE({flex:"none",lineHeight:1},i),viewBox:"0 0 98 24",xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:j0}),c.jsx("path",{d:"M21.186 12.67c0 2.649-.786 4.759-2.359 6.33-1.766 1.87-4.09 2.806-6.969 2.806-2.756 0-5.088-.953-6.996-2.86C2.954 17.04 2 14.693 2 11.904c0-2.789.954-5.137 2.862-7.043C6.77 2.953 9.102 2 11.858 2c1.396 0 2.712.247 3.949.741 1.236.495 2.252 1.192 3.047 2.092l-1.749 1.748c-.583-.706-1.338-1.258-2.266-1.655a7.49 7.49 0 00-2.981-.596c-2.067 0-3.816.715-5.247 2.145-1.413 1.448-2.12 3.257-2.12 5.428s.707 3.98 2.12 5.428c1.431 1.43 3.18 2.145 5.247 2.145 1.89 0 3.463-.53 4.717-1.588 1.254-1.06 1.979-2.516 2.173-4.37h-6.89v-2.277h9.196c.088.495.132.971.132 1.43m7.652-4.633c1.946 0 3.494.629 4.645 1.886 1.15 1.257 1.726 3.018 1.726 5.282l-.027.268H24.877c.036 1.284.464 2.318 1.285 3.102.82.785 1.802 1.177 2.944 1.177 1.57 0 2.802-.784 3.694-2.354l2.195 1.07a6.54 6.54 0 01-2.45 2.595C31.503 21.688 30.32 22 29 22c-1.927 0-3.516-.66-4.765-1.98-1.249-1.319-1.873-2.986-1.873-5.001 0-1.997.606-3.66 1.82-4.988 1.213-1.329 2.766-1.993 4.657-1.993m-.053 2.247c-.928 0-1.727.285-2.396.856-.67.57-1.11 1.337-1.325 2.3h7.522c-.071-.91-.442-1.663-1.111-2.26-.67-.598-1.566-.896-2.69-.896M39.247 21.53h-2.455V8.465h2.348v1.813h.107c.374-.64.947-1.173 1.721-1.6.774-.427 1.544-.64 2.309-.64.96 0 1.806.222 2.535.667a3.931 3.931 0 011.601 1.84c1.085-1.671 2.589-2.507 4.51-2.507 1.513 0 2.678.462 3.496 1.387.819.924 1.228 2.24 1.228 3.946v8.16h-2.455v-7.786c0-1.227-.223-2.112-.668-2.654-.444-.542-1.192-.813-2.241-.813-.943 0-1.735.4-2.375 1.2-.64.8-.961 1.742-.961 2.826v7.227h-2.455v-7.786c0-1.227-.223-2.112-.668-2.654-.444-.542-1.191-.813-2.241-.813-.943 0-1.735.4-2.375 1.2-.64.8-.961 1.742-.961 2.826v7.227zM61.911 3.93c0 .48-.17.89-.508 1.228a1.675 1.675 0 01-1.23.508c-.48 0-.89-.17-1.229-.508a1.673 1.673 0 01-.508-1.228c0-.481.17-.89.508-1.229a1.675 1.675 0 011.23-.508c.48 0 .89.17 1.23.508.338.338.507.748.507 1.228m-.11 4.514v13.088h-2.857V8.443h2.857zM80 3.93c0 .48-.17.89-.508 1.228a1.675 1.675 0 01-1.23.508c-.48 0-.89-.17-1.229-.508a1.673 1.673 0 01-.508-1.228c0-.481.17-.89.508-1.229a1.675 1.675 0 011.23-.508c.48 0 .89.17 1.23.508.338.338.507.748.507 1.228m-.11 4.514v13.088h-2.857V8.443h2.857zm-16.343.022h2.349v1.813h.107c.373-.64.947-1.173 1.721-1.6a4.935 4.935 0 012.415-.64c1.601 0 2.833.458 3.696 1.373.863.916 1.294 2.218 1.294 3.907v8.213h-2.455v-8.053c-.053-2.133-1.13-3.2-3.229-3.2-.978 0-1.797.395-2.455 1.187-.658.79-.987 1.737-.987 2.84v7.226h-2.456V8.465z"})]}))});function Vw(e){"@babel/helpers - typeof";return Vw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Vw(e)}var _Le=["type"];function tF(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function wLe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?tF(Object(r),!0).forEach(function(i){SLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function SLe(e,n,r){return n=kLe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function kLe(e){var n=CLe(e,"string");return Vw(n)=="symbol"?n:String(n)}function CLe(e,n){if(Vw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Vw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function jLe(e,n){if(e==null)return{};var r=NLe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function NLe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var TLe=y.memo(function(e){var n=e.type,r=n===void 0?"mono":n,i=jLe(e,_Le),s=r==="color"?T9:Gee;return c.jsx(Zl,wLe({Icon:s,Text:Kee,"aria-label":j0,spaceMultiple:HPe,textMultiple:FPe},i))}),rp=Gee;rp.Color=T9;rp.Text=Kee;rp.Combine=TLe;rp.Avatar=lLe;rp.colorPrimary=qee;rp.title=j0;var vS="Grok",ELe=.75,ALe=.2,Yee="#000",OLe=Yee,RLe="#fff",MLe=.75;function qw(e){"@babel/helpers - typeof";return qw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qw(e)}var PLe=["size","style"];function nF(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function cE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?nF(Object(r),!0).forEach(function(i){LLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function LLe(e,n,r){return n=$Le(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function $Le(e){var n=DLe(e,"string");return qw(n)=="symbol"?n:String(n)}function DLe(e,n){if(qw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(qw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function ILe(e,n){if(e==null)return{};var r=BLe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function BLe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var E9=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=ILe(e,PLe);return c.jsxs("svg",cE(cE({fill:"currentColor",fillRule:"evenodd",height:r,style:cE({flex:"none",lineHeight:1},i),viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:vS}),c.jsx("path",{d:"M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815"})]}))});function Gw(e){"@babel/helpers - typeof";return Gw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gw(e)}function rF(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function zLe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?rF(Object(r),!0).forEach(function(i){FLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function FLe(e,n,r){return n=HLe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function HLe(e){var n=WLe(e,"string");return Gw(n)=="symbol"?n:String(n)}function WLe(e,n){if(Gw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Gw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function ULe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var VLe=y.memo(function(e){var n=Object.assign({},(ULe(e),e));return c.jsx(Jl,zLe({Icon:E9,"aria-label":vS,background:OLe,color:RLe,iconMultiple:MLe},n))});function Kw(e){"@babel/helpers - typeof";return Kw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kw(e)}var qLe=["size","style"];function iF(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function uE(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?iF(Object(r),!0).forEach(function(i){GLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function GLe(e,n,r){return n=KLe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function KLe(e){var n=YLe(e,"string");return Kw(n)=="symbol"?n:String(n)}function YLe(e,n){if(Kw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Kw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function XLe(e,n){if(e==null)return{};var r=JLe(e,n),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)i=a[s],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function JLe(e,n){if(e==null)return{};var r={},i=Object.keys(e),s,a;for(a=0;a<i.length;a++)s=i[a],!(n.indexOf(s)>=0)&&(r[s]=e[s]);return r}var Xee=y.memo(function(e){var n=e.size,r=n===void 0?"1em":n,i=e.style,s=XLe(e,qLe);return c.jsxs("svg",uE(uE({fill:"currentColor",fillRule:"evenodd",height:r,style:uE({flex:"none",lineHeight:1},i),viewBox:"0 0 63 24",xmlns:"http://www.w3.org/2000/svg"},s),{},{children:[c.jsx("title",{children:vS}),c.jsx("path",{d:"M47.419 21.645V2.457h3.033V15.12l6.415-7.369h3.678l-5.772 6.316 5.825 7.578h-3.624l-4.717-6.512-1.805-.012v6.524h-3.033zM38.22 21.968c-4.51 0-6.952-3.198-6.952-7.283 0-4.112 2.443-7.283 6.952-7.283 4.537 0 6.952 3.17 6.952 7.283 0 4.085-2.415 7.283-6.952 7.283zm-3.785-7.283c0 3.17 1.718 4.756 3.785 4.756 2.094 0 3.785-1.585 3.785-4.756 0-3.172-1.691-4.784-3.785-4.784-2.067 0-3.785 1.612-3.785 4.784zM22.826 21.645V9.955l2.55-2.204h5.422v2.58H25.86v11.314h-3.033zM11.228 22C5.447 22 2 17.802 2 12.078 2 6.3 5.57 2 11.341 2c4.51 0 7.811 2.311 8.59 6.611h-3.463c-.51-2.445-2.55-3.816-5.127-3.816-4.16 0-5.986 3.601-5.986 7.283 0 3.682 1.826 7.256 5.986 7.256 3.973 0 5.717-2.876 5.852-5.267h-5.986v-2.783h9.046l-.015 1.455c0 5.406-2.203 9.261-9.01 9.261z"})]}))});function Yw(e){"@babel/helpers - typeof";return Yw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Yw(e)}function sF(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function ZLe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?sF(Object(r),!0).forEach(function(i){QLe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sF(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function QLe(e,n,r){return n=e$e(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function e$e(e){var n=t$e(e,"string");return Yw(n)=="symbol"?n:String(n)}function t$e(e,n){if(Yw(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(Yw(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function n$e(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var r$e=y.memo(function(e){var n=Object.assign({},(n$e(e),e));return c.jsx(Zl,ZLe({Icon:E9,Text:Xee,"aria-label":vS,spaceMultiple:ALe,textMultiple:ELe},n))}),J0=E9;J0.Text=Xee;J0.Combine=r$e;J0.Avatar=VLe;J0.colorPrimary=Yee;J0.title=vS;function Xx(e){return e.trim().replace(/\s*\[([^\]]+)\]\s*$/," ($1)")}function Jee({size:e=20,className:n}){return c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 1024 1024",className:n,children:[c.jsx("path",{d:"M318 372 L430 486 L318 600",fill:"none",stroke:"currentColor",strokeWidth:"88",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M610 258 L610 642 C610 734 549 796 455 796 C393 796 338 766 299 715",fill:"none",stroke:"currentColor",strokeWidth:"88",strokeLinecap:"round",strokeLinejoin:"round"})]})}const nx=Bh,dE={"gpt-4":as,"gpt-4o":as,"gpt-4-turbo":as,"gpt-5":as,"gpt-3.5-turbo":as,o1:as,"o1-mini":as,"o1-preview":as,codex:as,"claude-3":Ul,"claude-3-opus":Ul,"claude-3-sonnet":Ul,"claude-sonnet":Ul,"claude-3-haiku":Ul,"claude-2":Ul,qwen:md,qwen2:md,"qwen2.5":md,qwen3:md,llama:nx,llama2:nx,llama3:nx,"llama3.1":nx,"llama3.2":nx,mistral:cd,mixtral:cd,dolphin:cd,"dolphin-mistral":cd,"dolphin-mistral-nemo":cd,deepseek:Dm,"deepseek-coder":Dm,gemini:rp,"gemini-pro":rp,grok:J0},aF={openai:as,anthropic:Ul,ollama:X0,local:nx,jait:Jee};function i$e(e,n){if(n){if(dE[n])return dE[n];const r=n.split(":")[0].toLowerCase(),i=r.includes("/")?r.split("/").pop():r;for(const[s,a]of Object.entries(dE))if(i.startsWith(s.toLowerCase())||s.toLowerCase().startsWith(i))return a}return aF[e]??aF.ollama}function E5({provider:e,model:n,size:r=20,className:i}){const s=i$e(e,n);return c.jsx(s,{size:r,className:i})}function s$e(e){const r=(e.includes("/")?e.split("/").pop():e).split(":"),i=r[0],s=r[1],a=i.split(/[-_]/).map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ");return s&&!["latest","stable"].includes(s.toLowerCase())?Xx(`${a} ${s.toUpperCase()}`):Xx(a)}const a$e=({className:e})=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 1024 1024",className:e,children:[c.jsx("path",{d:"M318 372 L430 486 L318 600",fill:"none",stroke:"currentColor",strokeWidth:"88",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M610 258 L610 642 C610 734 549 796 455 796 C393 796 338 766 299 715",fill:"none",stroke:"currentColor",strokeWidth:"88",strokeLinecap:"round",strokeLinejoin:"round"})]}),o$e=({className:e})=>c.jsx(as,{size:16,className:e}),l$e=({className:e})=>c.jsx(Ul,{size:16,className:e}),Zee=[{value:"jait",label:"Jait",icon:a$e,description:"Native Jait agent loop with full tool access"},{value:"codex",label:"Codex",icon:o$e,description:"OpenAI Codex CLI — coding agent with MCP tools"},{value:"claude-code",label:"Claude Code",icon:l$e,description:"Anthropic Claude Code CLI — coding agent with MCP tools"}],c$e=new Map(Zee.map(e=>[e.value,e]));function u$e(e){return c$e.get(e.id)??{value:e.id,label:e.name||e.id,icon:bc,description:e.description}}const Qee="jait-recent-models",A9=10;function d$e(e){const n=e.toLowerCase();return n.includes("not installed")||n.includes("not found")?"not installed":n.includes("not authenticated")||n.includes("login")?"not authenticated":"unavailable"}function h$e(e){const n=e.trim().toLowerCase();return!n||n.includes("quota")||n.includes("rate limit")||n.includes("token limit")||n.includes("usage limit")||n.includes("limit reached")?!1:n==="authentication required"||n==="not authenticated"||n.includes("not logged in")||n.includes("login required")||n.includes("credentials are not configured")||n.includes("missing credentials")||n.includes("no credentials")}function FA(){try{const e=localStorage.getItem(Qee);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(r=>typeof r=="string").slice(0,A9):[]}catch{return[]}}function f$e(e){const n=FA().filter(r=>r!==e);n.unshift(e),localStorage.setItem(Qee,JSON.stringify(n.slice(0,A9)))}function p$e(){if(typeof document>"u")return;const e=document.activeElement;e instanceof HTMLElement&&e.blur()}function m$e({provider:e,model:n,onProviderChange:r,onModelChange:i,disabled:s,className:a,compact:o=!1,repoRuntime:l,onMoveToGateway:u,sessionInfo:d,projectNodeId:h}){var Be;const f=K0(),{updateSettings:m,settings:x}=Oee(),v=(x==null?void 0:x.reasoning_effort)??null,[_,w]=y.useState(!1),[S,C]=y.useState(""),[j,T]=y.useState({}),[E,N]=y.useState([]),[R,$]=y.useState([]),[U,H]=y.useState([]),[B,W]=y.useState([]),[D,O]=y.useState(!1),[z,M]=y.useState(null),[L,I]=y.useState(null),[G,q]=y.useState(null),[F,X]=y.useState(null),V=y.useRef(null),ne=y.useRef(null),J=y.useCallback((ke=!1)=>{(ke?bn.listProvidersFresh():bn.listProviders()).then(({providers:Ge,remoteProviders:rt})=>{const Ze={};for(const Ye of Ge)Ze[Ye.id]=Ye;T(Ze),N(Ge),$(rt)}).catch(()=>{})},[]);y.useEffect(()=>{J()},[J]);const te=async(ke,we)=>{try{await navigator.clipboard.writeText(we),X(Ge=>Ge&&Ge.providerId===ke?{...Ge,copied:!0}:Ge)}catch{X(Ge=>Ge&&Ge.providerId===ke?{...Ge,copied:!1}:Ge)}},re=async ke=>{var Ge;const we=(Ge=V.current)==null?void 0:Ge.value.trim();if(!(!we||G)){q(ke);try{await bn.sendProviderLoginInput(ke,we),V.current&&(V.current.value=""),X(rt=>rt&&rt.providerId===ke?{...rt,requiresCodeInput:!1,message:"Code sent. Completing login…"}:rt),J(!0)}catch(rt){X(Ze=>Ze&&Ze.providerId===ke?{...Ze,tone:"error",message:rt instanceof Error?rt.message:"Failed to send code."}:Ze)}finally{q(null)}}},Q=async(ke,we)=>{if(!G){w(!1),q(ke),X({providerId:ke,label:we,tone:"loading",message:`Starting ${we} login...`});try{const Ge=await bn.startProviderLogin(ke);let rt=!1;if(Ge.userCode)try{await navigator.clipboard.writeText(Ge.userCode),rt=!0}catch{rt=!1}Ge.verificationUri&&window.open(Ge.verificationUri,"_blank","noopener,noreferrer"),X({providerId:ke,label:we,tone:"success",message:Ge.userCode?`Device code ${rt?"copied to clipboard.":"is ready to copy."}`:Ge.requiresCodeInput?Ge.inputPrompt??`Enter the authorization code from your browser to complete ${we} login.`:Ge.message,userCode:Ge.userCode,verificationUri:Ge.verificationUri,copied:rt,requiresCodeInput:Ge.requiresCodeInput,inputPrompt:Ge.inputPrompt}),J(!0)}catch(Ge){X({providerId:ke,label:we,tone:"error",message:Ge instanceof Error?Ge.message:`Failed to start ${we} login.`})}finally{q(null)}}};y.useEffect(()=>{if(!F||F.tone!=="success")return;let ke=!1,we=null;const Ge=window.setInterval(()=>{rt()},2e3);async function rt(){if(!(ke||!F))try{const Ze=await bn.getProviderAuthStatus(F.providerId);if(ke||Ze.authenticated!==!0)return;ke=!0,window.clearInterval(Ge),J(!0),X(Ye=>Ye&&Ye.providerId===F.providerId?{...Ye,message:`${F.label} is logged in.`}:Ye),we=window.setTimeout(()=>{X(Ye=>Ye&&Ye.providerId===F.providerId?null:Ye)},900)}catch{}}return rt(),()=>{ke=!0,window.clearInterval(Ge),we&&window.clearTimeout(we)}},[F==null?void 0:F.providerId,F==null?void 0:F.tone,F==null?void 0:F.label,J]),y.useEffect(()=>{_&&(C(""),f||requestAnimationFrame(()=>{var ke;return(ke=ne.current)==null?void 0:ke.focus()}))},[_,f]),y.useEffect(()=>{H([]),M(null),W(FA());let ke=!1;return O(!0),bn.listProviderModels(e).then(we=>{var Ge;ke||(M(null),H(we.models),(Ge=we.recentModels)!=null&&Ge.length&&W(we.recentModels),we.currentBackend&&I(we.currentBackend))}).catch(we=>{ke||(H([]),M(we instanceof Error?we.message:"Failed to load models"))}).finally(()=>{ke||O(!1)}),()=>{ke=!0}},[e]),y.useEffect(()=>{if(e==="jait"||D||U.length===0||n&&U.some(Ge=>Ge.id===n))return;const ke=U.find(Ge=>Ge.isDefault)??U[0]??null,we=(ke==null?void 0:ke.id)??null;we!==n&&i(we)},[e,D,n,U,i]);const ue=l!=null,ge=(l==null?void 0:l.availableProviders)??[],se=(l==null?void 0:l.online)??!0,oe=(l==null?void 0:l.loading)??!1,ve=(l==null?void 0:l.hostType)==="gateway",_e=!!(h&&h!=="gateway"),Ae=_e?R.find(ke=>ke.nodeId===h):void 0,Ke=_e&&!ue,ot=y.useMemo(()=>(E.length>0?E.map(u$e):Zee).map(we=>{const Ge=j[we.value];let rt,Ze,Ye;if(ue)we.value==="jait"?(rt=!0,Ye="Gateway"):ve?(rt=(Ge==null?void 0:Ge.available)!==!1,Ze=Ge==null?void 0:Ge.unavailableReason,Ye="Gateway"):oe?(rt=!1,Ze="Checking device…"):se?(rt=ge.includes(we.value),Ze=rt?void 0:"Not available on this device",Ye=(l==null?void 0:l.locationLabel)??"device"):(rt=!1,Ze="Device is offline");else if(Ke)we.value==="jait"?(rt=!0,Ye="Gateway"):Ae?(rt=Ae.providers.includes(we.value),Ze=rt?void 0:"Not available on this device",Ye=Ae.nodeName):(rt=!1,Ze="Device is offline");else{const ut=(Ge==null?void 0:Ge.available)!==!1,xt=ut?void 0:R.find(zt=>zt.providers.includes(we.value));rt=ut||!!xt,Ze=Ge==null?void 0:Ge.unavailableReason,Ye=!(Ge!=null&&Ge.available)&&xt?xt.nodeName:"Gateway"}return{...we,isAvailable:rt,reason:Ze,nodeLabel:Ye,auth:Ge==null?void 0:Ge.auth}}),[E,j,R,ue,ve,oe,se,ge,l==null?void 0:l.locationLabel,Ke,Ae]),Nt=ot.find(ke=>ke.value===e)??ot[0],$t=Nt.icon,en=n?U.find(ke=>ke.id===n):null,on=D?"Loading":en!=null&&en.name||n?Xx((en==null?void 0:en.name)??n):"Default",Vt=ue?ve?"Gateway":l==null?void 0:l.locationLabel:Ke?(Ae==null?void 0:Ae.nodeName)??h:d!=null&&d.isRemote&&d.remoteNode?d.remoteNode.nodeName:void 0,Gt=S.trim().toLowerCase(),Et=y.useMemo(()=>Gt?U.filter(ke=>{var we;return ke.id.toLowerCase().includes(Gt)||ke.name.toLowerCase().includes(Gt)||((we=ke.description)==null?void 0:we.toLowerCase().includes(Gt))}):U,[U,Gt]),_n=y.useMemo(()=>{if(Gt)return[];const ke=new Map(U.map(we=>[we.id,we]));return B.filter(we=>ke.has(we)).map(we=>ke.get(we)).slice(0,A9)},[U,B,Gt]),xe=y.useMemo(()=>{if(Gt)return Et;const ke=new Set(_n.map(we=>we.id));return Et.filter(we=>!ke.has(we.id))},[Et,_n,Gt]),pe=y.useMemo(()=>{var we;if(!z)return null;const ke=Nt.label;return((we=Nt.auth)==null?void 0:we.authenticated)===!1&&h$e(z)?`You're not logged in to ${ke}.`:z},[(Be=Nt.auth)==null?void 0:Be.authenticated,Nt.label,z]),ze=ke=>{r(ke)},ft=[{value:"minimal",label:"Minimal",hint:"Fastest, least thinking"},{value:"low",label:"Low",hint:"Brief reasoning"},{value:"medium",label:"Medium",hint:"Balanced"},{value:"high",label:"High",hint:"Deepest reasoning"}],Je=ke=>{m({reasoning_effort:ke}).catch(()=>{})},ht=n?U.find(ke=>ke.id===n):null,yt=!!(ht!=null&&ht.reasoningEffortSupported),St={OpenAI:"openai",OpenRouter:"openrouter",Ollama:"ollama"},We=ke=>{const we=U.find(Ge=>Ge.id===ke);if(e==="jait"&&(we!=null&&we.group)){const Ge=St[we.group];Ge&&Ge!==L&&m({jait_backend:Ge}).then(()=>{I(Ge)}).catch(()=>{})}e==="jait"&&(v&&!(we!=null&&we.reasoningEffortSupported)?m({selected_model:ke,reasoning_effort:null}).catch(()=>{}):m({selected_model:ke}).catch(()=>{})),i(ke),f$e(ke),W(FA()),w(!1)},Fe=y.useCallback(ke=>{ke&&f&&p$e(),w(ke)},[f]),lt=c.jsxs("button",{type:"button",disabled:s,onClick:f?()=>Fe(!0):void 0,className:je("flex h-10 items-center gap-1 rounded-md border border-transparent px-2 py-1 text-sm font-medium text-muted-foreground sm:h-8 sm:px-1.5 sm:text-xs","hover:text-foreground hover:bg-muted/60 transition-colors","focus-visible:outline-none focus-visible:border-ring/60 focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring/50","disabled:pointer-events-none disabled:opacity-50",a),title:`Provider: ${Nt.label} · Model: ${on}`,"aria-label":`Provider ${Nt.label}, model ${on}`,children:[c.jsx($t,{className:"h-4 w-4 shrink-0"}),!o&&c.jsxs(c.Fragment,{children:[c.jsx("span",{children:Nt.label}),c.jsx("span",{className:"max-w-[112px] truncate font-mono text-xs opacity-80",children:on})]}),!o&&Vt&&c.jsxs("span",{className:"flex max-w-[72px] items-center gap-0.5 truncate text-2xs text-blue-500",children:[c.jsx($o,{className:"h-3 w-3"}),Vt]}),D?c.jsx(Lt,{className:"h-3 w-3 animate-spin opacity-70"}):null,c.jsx(fl,{className:"h-3 w-3 opacity-60"})]}),et=c.jsxs(c.Fragment,{children:[c.jsx("div",{className:je("shrink-0 border-b px-3 py-2",f&&"flex min-h-10 items-center pr-12"),children:c.jsx("div",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:"Providers"})}),ue&&!ve&&!se&&!oe&&c.jsx("div",{className:"shrink-0 border-b px-3 py-2 text-xs text-amber-600 dark:text-amber-400",children:"Device is offline — only Jait (gateway) is available"}),ue&&oe&&c.jsxs("div",{className:"flex shrink-0 items-center gap-1.5 border-b px-3 py-2 text-xs text-muted-foreground",children:[c.jsx(Lt,{className:"h-3 w-3 animate-spin"}),"Connecting to device…"]}),Ke&&!Ae&&c.jsx("div",{className:"shrink-0 border-b px-3 py-2 text-xs text-amber-600 dark:text-amber-400",children:"Device is offline — only Jait (gateway) is available"}),c.jsxs("div",{className:je("shrink-0 overflow-y-auto p-1",f?"max-h-28":"min-h-24 max-h-56"),children:[ot.map(ke=>{var Ye,ut;const we=ke.icon,Ge=ke.value===e,rt=!!((Ye=ke.auth)!=null&&Ye.login)&&((ut=ke.auth)==null?void 0:ut.authenticated)!==!0&&!Ke&&(!ue||ve),Ze=G===ke.value;return c.jsx("div",{className:je("rounded-sm",Ge&&"bg-accent/50"),children:c.jsxs("div",{className:"flex items-start gap-1.5",children:[c.jsxs("button",{type:"button",onClick:()=>ze(ke.value),disabled:!ke.isAvailable,className:je("flex min-w-0 flex-1 items-start gap-2.5 rounded-sm px-2 py-2 text-left transition-colors","hover:bg-accent hover:text-accent-foreground",!ke.isAvailable&&"cursor-not-allowed opacity-60"),children:[c.jsx(we,{className:"mt-0.5 h-4 w-4 shrink-0"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-sm font-medium",children:[ke.label,ke.isAvailable&&ke.nodeLabel&&c.jsxs("span",{className:"flex items-center gap-0.5 text-2xs text-muted-foreground",children:[c.jsx($o,{className:"h-3 w-3"}),ke.nodeLabel]}),!ke.isAvailable&&c.jsxs("span",{className:"flex items-center gap-0.5 text-2xs text-destructive/80",children:[c.jsx(Fx,{className:"h-3 w-3"}),ke.reason?d$e(ke.reason):"unavailable"]}),ke.auth&&ke.auth.authenticated===!0&&c.jsx("span",{className:"text-2xs text-emerald-600 dark:text-emerald-400",children:"signed in"})]}),c.jsx("div",{className:je("text-xs leading-snug text-muted-foreground",f&&"hidden"),children:!ke.isAvailable&&ke.reason?ke.reason:ke.description})]}),Ge&&c.jsx(Ii,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"})]}),rt&&c.jsx("button",{type:"button",title:`Login to ${ke.label}`,"aria-label":`Login to ${ke.label}`,onClick:xt=>{xt.preventDefault(),xt.stopPropagation(),Q(ke.value,ke.label)},disabled:!!G,className:"mr-1 mt-2 inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-border bg-background text-foreground transition-colors hover:bg-muted disabled:opacity-50",children:Ze?c.jsx(Lt,{className:"h-3.5 w-3.5 animate-spin"}):c.jsx(Gxe,{className:"h-3.5 w-3.5"})})]})},ke.value)}),ue&&!ve&&!se&&!oe&&u&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"mx-2 my-1 border-t"}),c.jsxs("button",{type:"button",onClick:u,className:je("flex w-full items-start gap-2.5 rounded-sm px-2 py-2 text-left transition-colors","hover:bg-accent hover:text-accent-foreground"),children:[c.jsx($a,{className:"mt-0.5 h-4 w-4 shrink-0"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("div",{className:"text-sm font-medium",children:"Move to Gateway"}),c.jsx("div",{className:je("text-xs leading-snug text-muted-foreground",f&&"hidden"),children:"Run this repo on the gateway server instead"})]})]})]})]}),c.jsx("div",{className:"shrink-0 border-y px-3 py-2",children:c.jsx("div",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:"Models"})}),c.jsx("div",{className:"shrink-0 border-b px-3 py-2",children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(co,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),c.jsx("input",{ref:ne,type:"text",value:S,onChange:ke=>C(ke.target.value),placeholder:"Search models...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground"})]})}),c.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto p-1",children:[_n.length>0&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1.5",children:[c.jsx(Gm,{className:"h-3 w-3 text-muted-foreground"}),c.jsx("span",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:"Recent"})]}),_n.map(ke=>c.jsx(hE,{model:ke,selected:n===ke.id,onSelect:We},`recent-${ke.id}`)),c.jsx("div",{className:"mx-2 my-1 border-t"})]}),!Gt&&_n.length>0&&c.jsx("div",{className:"px-2 py-1.5",children:c.jsx("span",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:"All models"})}),D&&c.jsxs("div",{className:"flex items-center gap-2 px-3 py-3 text-xs text-muted-foreground",children:[c.jsx(Lt,{className:"h-3.5 w-3.5 animate-spin"}),"Loading models…"]}),!D&&pe&&c.jsxs("div",{className:"flex items-start gap-2 px-3 py-3 text-xs text-amber-700 dark:text-amber-300",children:[c.jsx(Fx,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),c.jsx("span",{children:pe})]}),!D&&!pe&&(()=>{if(!xe.some(rt=>rt.group))return xe.map(rt=>c.jsx(hE,{model:rt,selected:n===rt.id,onSelect:We},rt.id));const we=[],Ge=new Set;for(const rt of xe){const Ze=rt.group||"Other";Ge.has(Ze)||(Ge.add(Ze),we.push({label:Ze,items:[]})),we.find(Ye=>Ye.label===Ze).items.push(rt)}return we.map(rt=>c.jsxs("div",{children:[c.jsx("div",{className:"sticky top-0 z-10 bg-popover px-2 py-1.5",children:c.jsx("span",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:rt.label})}),rt.items.map(Ze=>c.jsx(hE,{model:Ze,selected:n===Ze.id,onSelect:We},Ze.id))]},rt.label))})(),!D&&!pe&&Et.length===0&&c.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:S?`No models matching "${S}"`:"No models available"})]}),yt&&!D&&c.jsxs("div",{className:"shrink-0 border-t px-3 py-2",children:[c.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[c.jsx(oo,{className:"h-3.5 w-3.5 text-muted-foreground"}),c.jsx("span",{className:"text-2xs font-medium uppercase tracking-wider text-muted-foreground",children:"Reasoning effort"})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-1",children:[c.jsxs("button",{type:"button",onClick:()=>Je(null),className:je("flex items-center justify-between rounded-sm px-2 py-1.5 text-left text-xs transition-colors","hover:bg-accent hover:text-accent-foreground",v===null&&"bg-accent/50"),children:[c.jsx("span",{className:"text-muted-foreground",children:"Default"}),v===null&&c.jsx(Ii,{className:"h-3.5 w-3.5 shrink-0 text-primary"})]}),ft.map(ke=>{const we=v===ke.value;return c.jsxs("button",{type:"button",title:ke.hint,onClick:()=>Je(ke.value),className:je("flex items-center justify-between rounded-sm px-2 py-1.5 text-left text-xs transition-colors","hover:bg-accent hover:text-accent-foreground",we&&"bg-accent/50"),children:[c.jsx("span",{children:ke.label}),we&&c.jsx(Ii,{className:"h-3.5 w-3.5 shrink-0 text-primary"})]},ke.value)})]}),c.jsx("p",{className:"mt-1.5 text-2xs leading-snug text-muted-foreground",children:"Controls how much the model reasons before answering. Only applies to this reasoning model."})]})]});return c.jsxs(c.Fragment,{children:[f?c.jsxs(c.Fragment,{children:[lt,c.jsx(zo,{open:_,onOpenChange:Fe,children:c.jsxs(uo,{showCloseButton:!1,overlayClassName:"bg-black/40",onOpenAutoFocus:ke=>ke.preventDefault(),onCloseAutoFocus:ke=>ke.preventDefault(),className:"!bottom-2 !top-auto !flex !max-w-none !translate-x-0 !translate-y-0 !flex-col !gap-0 !overflow-hidden !rounded-lg !p-0 shadow-lg",style:{left:"0.5rem",right:"0.5rem",bottom:"max(0.5rem, env(safe-area-inset-bottom))",top:"auto",width:"auto",maxHeight:"min(36rem, calc(100dvh - 1rem))",transform:"translateZ(0)"},children:[c.jsxs(Rve,{className:"absolute right-2 top-1 z-10 inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground opacity-80 transition-colors hover:bg-muted hover:text-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring",children:[c.jsx(Ur,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]}),c.jsx(ho,{className:"sr-only",children:"Provider and model"}),c.jsx(ju,{className:"sr-only",children:"Choose a provider and model"}),et]})})]}):c.jsxs(m9,{open:_,onOpenChange:Fe,children:[c.jsx(g9,{asChild:!0,disabled:s,children:lt}),c.jsx(y9,{align:"start",side:"top",collisionPadding:8,className:"flex w-[min(22rem,calc(100vw-1rem))] flex-col overflow-hidden p-0",style:{maxHeight:"min(32rem, var(--radix-popover-content-available-height, 80dvh))"},children:et})]}),c.jsx(zo,{open:!!F,onOpenChange:ke=>{ke||X(null)},children:c.jsxs(uo,{className:"w-[calc(100vw-1.5rem)] max-w-md",children:[c.jsxs(ul,{children:[c.jsxs(ho,{children:[(F==null?void 0:F.label)??"Provider"," login"]}),c.jsx(ju,{children:(F==null?void 0:F.tone)==="loading"?F.message:"Use the device code below on the provider login page."})]}),F&&c.jsxs("div",{className:"space-y-4",children:[F.tone!=="loading"&&c.jsx("div",{className:je("rounded-md border px-3 py-2 text-sm",F.tone==="success"?"border-emerald-500/25 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/25 bg-destructive/10 text-destructive"),children:F.message}),F.tone==="loading"&&c.jsxs("div",{className:"flex items-center gap-2 rounded-md border px-3 py-2 text-sm text-muted-foreground",children:[c.jsx(Lt,{className:"h-4 w-4 animate-spin"}),"Starting device login..."]}),F.userCode&&c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("div",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Device code"}),c.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[c.jsx("code",{className:"min-w-0 flex-1 rounded-md border bg-muted px-3 py-2 text-center font-mono text-lg font-semibold [overflow-wrap:anywhere]",children:F.userCode}),c.jsxs(ye,{variant:"outline",size:"sm",onClick:()=>void te(F.providerId,F.userCode),children:[c.jsx(nl,{className:"mr-1.5 h-3.5 w-3.5"}),F.copied?"Copied":"Copy"]})]})]}),F.requiresCodeInput&&c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("div",{className:"text-xs font-medium uppercase tracking-wider text-muted-foreground",children:"Authorization code"}),c.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[c.jsx("input",{ref:V,type:"text",placeholder:"Paste authorization code…",className:"min-w-0 flex-1 rounded-md border bg-background px-3 py-2 font-mono text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring",onKeyDown:ke=>{ke.key==="Enter"&&re(F.providerId)},autoFocus:!0}),c.jsx(ye,{size:"sm",disabled:!!G,onClick:()=>void re(F.providerId),children:G?c.jsx(Lt,{className:"h-3.5 w-3.5 animate-spin"}):"Submit"})]})]})]}),c.jsxs(lp,{className:"gap-2 sm:gap-0",children:[c.jsx(ye,{variant:"outline",onClick:()=>X(null),children:"Close"}),(F==null?void 0:F.verificationUri)&&c.jsxs(ye,{onClick:()=>window.open(F.verificationUri,"_blank","noopener,noreferrer"),children:[c.jsx(ep,{className:"mr-1.5 h-4 w-4"}),"Open login page"]})]})]})})]})}function hE({model:e,selected:n,onSelect:r}){return c.jsxs("button",{type:"button",onClick:()=>r(e.id),className:je("flex w-full items-start gap-2 rounded-sm px-2 py-1.5 text-left transition-colors","hover:bg-accent hover:text-accent-foreground",n&&"bg-accent/50"),children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"truncate text-sm font-medium",children:[Xx(e.name),e.isDefault&&c.jsx("span",{className:"ml-1.5 text-2xs font-normal text-muted-foreground",children:"(default)"})]}),e.description&&c.jsx("div",{className:"truncate text-xs leading-snug text-muted-foreground",children:e.description})]}),n&&c.jsx(Ii,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-primary"})]})}const oF={"full-access":{label:"Full access",description:"Provider runs without approval prompts when supported.",icon:r4},supervised:{label:"Supervised",description:"Provider asks for approvals when it supports them.",icon:Nm}};function g$e({provider:e,value:n,onChange:r,disabled:i,className:s,compact:a=!1}){const[o,l]=y.useState({});y.useEffect(()=>{bn.listProviders().then(({providers:m})=>{const x={};for(const v of m)x[v.id]=v;l(x)}).catch(()=>{})},[]);const u=y.useMemo(()=>{var x;const m=(x=o[e])==null?void 0:x.modes;return!m||m.length===0?e==="jait"?[]:["full-access","supervised"]:m},[e,o]);if(e==="jait"||u.length<=1)return null;const d=u.includes(n)?n:u[0],h=oF[d],f=h.icon;return c.jsxs(Mc,{children:[c.jsx(Pc,{asChild:!0,disabled:i,children:c.jsxs("button",{type:"button",className:je("flex h-8 items-center gap-1 rounded-md border border-transparent px-1.5 py-1 text-xs font-medium text-muted-foreground","hover:text-foreground hover:bg-muted/60 transition-colors","focus-visible:outline-none focus-visible:border-ring/60 focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring/50","disabled:pointer-events-none disabled:opacity-50",s),title:`Runtime: ${h.label}`,"aria-label":`Runtime: ${h.label}`,children:[c.jsx(f,{className:"h-4 w-4"}),!a&&c.jsx("span",{children:h.label}),c.jsx(fl,{className:"h-3 w-3 opacity-60"})]})}),c.jsx(Kl,{align:"start",side:"top",className:"w-64",children:u.map(m=>{const x=oF[m],v=x.icon,_=d===m;return c.jsxs($i,{onClick:()=>r(m),className:"flex items-start justify-between gap-3",children:[c.jsxs("div",{className:"flex min-w-0 items-start gap-2",children:[c.jsx(v,{className:"mt-0.5 h-4 w-4 shrink-0"}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate text-sm font-medium",children:x.label}),c.jsx("div",{className:"text-xs text-muted-foreground",children:x.description})]})]}),_&&c.jsx(Ii,{className:"mt-0.5 h-4 w-4 shrink-0"})]},m)})})]})}function lF(e){return!!(e.isLoading&&e.hasQueueHandler&&e.sendTarget!=="thread")}const ete="application/x-jait-project+json",tte="application/x-jait-terminal+json";function y$e(e,n){return{path:e,name:n||e.split(/[\\/]/).pop()||e}}function x$e(e,n,r){return{terminalId:e,name:n||e,...r?{projectRoot:r}:{}}}function v$e(e){const{store:n,draftStateKey:r,previousDraftStateKey:i,currentAttachments:s}=e;if(!r)return[];const a=n.get(r);return a||(i&&i!==r&&s.length>0?s:[])}function cF(e,n,r){if(n){if(r.length===0){e.delete(n);return}e.set(n,r)}}function b3(e,n){return JSON.stringify({value:e,segments:Ds(n)})}function b$e(e,n,r,i){const s=b3(n,r);if(e===s)return!1;const a=Ds(r);return a.length>0?JSON.stringify(i)!==JSON.stringify(a):i.length===0?n.length>0:w0(i)!==n}function _$e(e){const{startContainerIsRoot:n,startContainerIsText:r,startOffset:i,childIndex:s}=e;return s<=0?!1:n?!0:i===0}function w$e(e,n){return Math.max(0,Math.min(e-1,n))}const uF="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@12.9.0/icons/",dF=[],S$e=[];function A5(e){const n="lineRange"in e?e.lineRange:void 0,r=n?`:L${n.startLine}-L${n.endLine}`:"";if("type"in e&&e.type==="project")return`project:${e.path}`;if("type"in e&&e.type==="terminal"){const i=e.selectedText?`:${C$e(e.selectedText)}`:"";return`terminal:${e.terminalId}${r}${i}`}return`file:${e.path}${r}`}function k$e(e){return e.toLowerCase().trim().replace(/[\s_]+/g,"-").replace(/[^a-z0-9-]/g,"")}function C$e(e){let n=5381;for(let r=0;r<e.length;r++)n=(n<<5)+n^e.charCodeAt(r);return(n>>>0).toString(36)}function O5(e,n){const r=document.createElement("span");r.contentEditable="false";const i=A5(e);r.setAttribute("data-chip-ref",i),"type"in e&&e.type==="project"?(r.setAttribute("data-segment-type","project"),r.setAttribute("data-project-path",e.path),r.setAttribute("data-chip-name",e.name)):"type"in e&&e.type==="terminal"?(r.setAttribute("data-segment-type","terminal"),r.setAttribute("data-terminal-id",e.terminalId),r.setAttribute("data-chip-name",e.name),e.projectRoot&&r.setAttribute("data-project-root",e.projectRoot),e.lineRange&&(r.setAttribute("data-line-start",String(e.lineRange.startLine)),r.setAttribute("data-line-end",String(e.lineRange.endLine))),e.selectedText&&r.setAttribute("data-selected-text",e.selectedText)):(r.setAttribute("data-segment-type","file"),r.setAttribute("data-file-path",e.path),r.setAttribute("data-chip-name",e.name),e.kind&&r.setAttribute("data-kind",e.kind),e.lineRange&&(r.setAttribute("data-line-start",String(e.lineRange.startLine)),r.setAttribute("data-line-end",String(e.lineRange.endLine)))),r.className="inline-flex items-center gap-1.5 align-middle text-xs font-medium leading-none mx-[2px] rounded-md border border-border/70 bg-muted/45 pl-2 pr-1 py-1 text-foreground cursor-default whitespace-nowrap transition-colors";const s=document.createElement("span");if(s.className="inline-flex items-center shrink-0","type"in e&&e.type==="project")s.innerHTML=`<img src="${uF}${hd.DEFAULT_FOLDER}" alt="" class="h-3.5 w-3.5" draggable="false" />`;else if("type"in e&&e.type==="terminal")s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" class="h-3.5 w-3.5 text-muted-foreground"><path d="M4 17l6-6-6-6"/><path d="M12 19h8"/></svg>';else{const u=e.kind==="dir"?N$e(e.name):j$e(e.name);s.innerHTML=`<img src="${uF}${u}" alt="" class="h-3.5 w-3.5" draggable="false" />`}r.appendChild(s);const a=document.createElement("span");a.className="truncate max-w-[180px]";const o="lineRange"in e?nw(e.lineRange):"";a.textContent=o?`${e.name}:${o.replace(/^lines? /,"")}`:e.name,r.appendChild(a);const l=document.createElement("button");return l.type="button",l.className="inline-flex items-center p-0.5 rounded hover:bg-foreground/10 transition-colors text-muted-foreground hover:text-foreground",l.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>',l.addEventListener("mousedown",u=>{u.preventDefault(),u.stopPropagation()}),l.addEventListener("click",u=>{u.preventDefault(),u.stopPropagation(),r.remove(),n==null||n(i)}),r.appendChild(l),r}function j$e(e){return hd.getIconForFile(e)??hd.DEFAULT_FILE}function N$e(e){return hd.getIconForFolder(e)??hd.DEFAULT_FOLDER}function Ks(e){let n="";const r=e.childNodes;for(let i=0;i<r.length;i++){const s=r[i];if(s.nodeType===Node.TEXT_NODE)n+=s.textContent??"";else if(s instanceof HTMLElement){if(s.hasAttribute("data-chip-ref"))continue;s.tagName==="BR"?i===r.length-1||(n+=`
|
|
946
946
|
`):n+=Ks(s)}}return n}function T$e(e){return e.replace(/[\u200B\u200C\u200D\uFEFF]/g,"")}function Zu(e){return T$e(e).length===0}function E$e(e){const n=[];return e.querySelectorAll('[data-segment-type="file"][data-file-path]').forEach(r=>{n.push(r.getAttribute("data-file-path"))}),n}function fE(e){const n=[];return e.querySelectorAll('[data-segment-type="file"][data-file-path]').forEach(r=>{const i=r.getAttribute("data-kind");n.push({path:r.getAttribute("data-file-path"),name:r.getAttribute("data-chip-name")||r.getAttribute("data-file-path").split(/[\\/]/).pop(),...i==="file"||i==="dir"?{kind:i}:{},...Xw(r)})}),n}function no(e){const n=[],r=i=>{if(i.nodeType===Node.TEXT_NODE){const s=i.textContent??"";s&&n.push({type:"text",text:s});return}if(i instanceof HTMLElement){if(i.hasAttribute("data-chip-ref")){const s=i.getAttribute("data-segment-type");if(s==="project"){const l=i.getAttribute("data-project-path");if(!l)return;n.push({type:"project",path:l,name:i.getAttribute("data-chip-name")||l.split(/[\\/]/).pop()||l});return}if(s==="terminal"){const l=i.getAttribute("data-terminal-id");if(!l)return;const u=i.getAttribute("data-project-root");n.push({type:"terminal",terminalId:l,name:i.getAttribute("data-chip-name")||l,...u?{projectRoot:u}:{},...Xw(i),...i.getAttribute("data-selected-text")?{selectedText:i.getAttribute("data-selected-text")}:{}});return}const a=i.getAttribute("data-file-path");if(!a)return;const o=i.getAttribute("data-kind");n.push({type:"file",path:a,name:i.getAttribute("data-chip-name")||a.split(/[\\/]/).pop()||a,...o==="file"||o==="dir"?{kind:o}:{},...Xw(i)});return}if(i.tagName==="BR"){n.push({type:"text",text:`
|
|
947
947
|
`});return}for(const s of i.childNodes)r(s)}};for(const i of e.childNodes)r(i);return Ds(n)}function Xw(e){const n=Number.parseInt(e.getAttribute("data-line-start")??"",10),r=Number.parseInt(e.getAttribute("data-line-end")??"",10);return!Number.isFinite(n)||!Number.isFinite(r)||n<1||r<n?{}:{lineRange:{startLine:n,endLine:r}}}function Qu(e){return!!(e!=null&&e.querySelector("[data-chip-ref]"))}function hF(e,n,r){const i=window.getSelection();if(!i)return;const s=document.createRange();(n==null?void 0:n.nodeType)===Node.TEXT_NODE?s.setStart(n,0):(n==null?void 0:n.parentNode)===e?s.setStart(e,Array.from(e.childNodes).indexOf(n)):s.setStart(e,w$e(r,e.childNodes.length)),s.collapse(!0),i.removeAllRanges(),i.addRange(s)}function fF(e,n,r){hF(e,n,r),requestAnimationFrame(()=>{e.isConnected&&hF(e,n,r)})}function pE(e,n,r,i){e.innerHTML="";const s=Ds(n);if(s.length===0){r&&e.appendChild(document.createTextNode(r));return}for(const a of s)HA(e,a,i)}function HA(e,n,r){if(n.type==="text"){e.appendChild(document.createTextNode(n.text));return}if(n.type==="file"||n.type==="project"||n.type==="terminal"){e.appendChild(O5(n,r));return}}function A$e(e,n,r){var u;const i=window.getSelection();if(!i||i.rangeCount===0){for(const d of n)HA(e,d,r);vm(e);return}const s=i.getRangeAt(0);s.deleteContents();const a=document.createDocumentFragment();for(const d of n)HA(a,d,r);const o=a.lastChild;if(s.insertNode(a),!o)return;const l=document.createRange();o.nodeType===Node.TEXT_NODE?l.setStart(o,((u=o.textContent)==null?void 0:u.length)??0):l.setStartAfter(o),l.collapse(!0),i.removeAllRanges(),i.addRange(l)}function O$e(e,n){if(!n)return;const r=window.getSelection();if(!r||r.rangeCount===0){e.appendChild(document.createTextNode(n)),vm(e);return}const i=r.getRangeAt(0),s=i.commonAncestorContainer;if(s!==e&&!e.contains(s)){e.appendChild(document.createTextNode(n)),vm(e);return}i.deleteContents();const a=document.createTextNode(n);i.insertNode(a);const o=document.createRange();o.setStart(a,a.length),o.collapse(!0),r.removeAllRanges(),r.addRange(o)}function vm(e){const n=window.getSelection();if(n){const r=document.createRange();r.selectNodeContents(e),r.collapse(!1),n.removeAllRanges(),n.addRange(r)}}function pF(e){window.requestAnimationFrame(()=>{if(!e.isConnected)return;const n=window.getSelection();if(!n||n.rangeCount===0){e.scrollTop=e.scrollHeight;return}const r=n.getRangeAt(0),i=r.commonAncestorContainer;if(i!==e&&!e.contains(i))return;const s=r.getClientRects()[0]??r.getBoundingClientRect();if(!s||s.width===0&&s.height===0){e.scrollTop=e.scrollHeight;return}const a=e.getBoundingClientRect(),o=8;s.bottom>a.bottom-o?e.scrollTop+=s.bottom-a.bottom+o:s.top<a.top+o&&(e.scrollTop-=a.top+o-s.top)})}function WA(e){for(let n=e.childNodes.length-1;n>=0;n--){const r=e.childNodes[n];(r instanceof HTMLElement&&r.tagName==="BR"||r.nodeType===Node.TEXT_NODE&&!r.textContent)&&r.remove()}}function R$e(e){for(let n=e.childNodes.length-1;n>=0;n--){const r=e.childNodes[n];if(r.nodeType!==Node.TEXT_NODE){if(!(r instanceof HTMLElement)){r.remove();continue}if(!(r.hasAttribute("data-chip-ref")||r.tagName==="BR")){if(r.matches('button, a, input, textarea, select, svg, [role="button"]')||r.querySelector('button, a, input, textarea, select, svg, [role="button"]')){r.remove();continue}r.replaceWith(document.createTextNode(r.textContent??""))}}}}function mF(e,n,r){WA(e);for(const i of Ds(n)){if(i.type==="text"){i.text&&e.appendChild(document.createTextNode(i.text));continue}i.type==="image"||i.type==="attachment"||e.querySelector(`[data-chip-ref="${CSS.escape(A5(i))}"]`)||(e.appendChild(O5(i,r)),e.appendChild(document.createTextNode(" ")))}}const fC=new Map,M$e=560;function nte({levels:e=[],compact:n=!1}){const r=e.length>0?e:Array.from({length:28},()=>.05),i=n?r.slice(-16):r,s=n?24:30;return c.jsx("span",{className:je("flex min-w-0 flex-1 items-center gap-1.5 overflow-hidden rounded-full border border-black/10 bg-gradient-to-b from-black/5 via-black/10 to-black/5 px-3 py-1 dark:border-white/10 dark:from-white/5 dark:via-white/10 dark:to-white/5",n?"h-8 max-w-[210px]":"h-10 max-w-[320px]"),children:i.map((a,o)=>c.jsx("span",{className:je("block shrink-0 rounded-full bg-black/75 transition-[height,opacity,transform] duration-300 ease-out dark:bg-white/80",n?"w-[2px]":"w-[3px]"),style:{height:`${6+a*s}px`,opacity:.18+a*.82,transform:`translateY(${(1-a)*1.5}px)`}},o))})}const Jw=y.forwardRef(function({value:n,onChange:r,onSubmit:i,onStop:s,onQueue:a,isLoading:o,submitLoading:l,disabled:u,controlsDisabled:d,placeholder:h="Ask anything...",className:f,footerLeadingContent:m,footerTrailingContent:x,onVoiceInput:v,voiceRecording:_,voiceLevels:w,voiceTranscribing:S,onVoiceStop:C,mode:j,onModeChange:T,sendTarget:E,onSendTargetChange:N,showSendTargetSelector:R=!0,provider:$,onProviderChange:U,responseStyle:H,onResponseStyleChange:B,providerRuntimeMode:W,onProviderRuntimeModeChange:D,cliModel:O,onCliModelChange:z,repoRuntime:M,onMoveToGateway:L,sessionInfo:I,projectNodeId:G,projectName:q,projectPath:F,chatId:X,availableFiles:V=dF,segments:ne,onSearchFiles:J,projectOpen:te=!1,availableSkills:re=S$e,draftStateKey:Q,syncKey:ue},ge){const se=y.useRef(null),oe=y.useRef(null),ve=y.useRef(null),_e=K0(),[Ae,Ke]=y.useState(!1),[ot,Nt]=y.useState(!1),$t=y.useRef(0),[en,on]=y.useState(!1),[Vt,Gt]=y.useState(Zu(n)),[Et,_n]=y.useState(()=>Q?fC.get(Q)??[]:[]),xe=y.useRef(null),pe=y.useRef(Ds(ne)),ze=y.useRef(Et),ft=y.useRef(Q),Je=y.useRef(!1),ht=y.useRef(null),yt=y.useRef([]),St=y.useRef([]),We=y.useRef(null),[Fe,lt]=y.useState(!1),[et,Be]=y.useState(""),[ke,we]=y.useState(0),[Ge,rt]=y.useState(!1),[Ze,Ye]=y.useState(""),[ut,xt]=y.useState(0),zt=y.useRef(null),rn=y.useRef(!1);y.useEffect(()=>{rn.current=Fe},[Fe]);const sn=y.useRef(!1);y.useEffect(()=>{sn.current=Ge},[Ge]);const dt=y.useRef(re);y.useEffect(()=>{dt.current=re},[re]);const Tt=y.useRef(V);y.useEffect(()=>{Tt.current=V},[V]);const Oe=y.useRef(r);y.useEffect(()=>{Oe.current=r},[r]);const pt=y.useRef(J);y.useEffect(()=>{pt.current=J},[J]);const Ot=y.useRef(te);y.useEffect(()=>{Ot.current=te},[te]);const Pt=y.useRef(()=>{}),hn=y.useMemo(()=>{const Me=Ze.toLowerCase();return(Me?re.filter(Yt=>Yt.id.toLowerCase().includes(Me)||Yt.name.toLowerCase().includes(Me)||Yt.description.toLowerCase().includes(Me)):re).slice(0,20)},[re,Ze]),[un,dn]=y.useState([]),[pn,Bt]=y.useState(!1),qn=y.useRef(null),Ne=!!u,Dt=!!(d??u??!1),kt=!!($&&U&&z),_t=!!(H&&B),ie=!!($&&W&&D),Se=!!(j&&T&&E!=="thread"&&E!=="swarm"&&(!$||$==="jait")),fe=R&&!!(E&&N),$e=(q==null?void 0:q.trim())||(F==null?void 0:F.trim())||null,Ft=fe||kt||_t||ie||Se||!!m,He=Ft,It=Vt&&Et.length===0,fn=lF({isLoading:o,sendTarget:E,hasQueueHandler:!!a})&&!!a;y.useEffect(()=>{const Me=se.current;if(!Me||typeof ResizeObserver>"u"){Ke(!1);return}const it=()=>{Ke(Me.clientWidth<M$e)};it();const Yt=new ResizeObserver(()=>it());return Yt.observe(Me),()=>Yt.disconnect()},[]);const Kt=y.useRef(!1);y.useEffect(()=>{ze.current=Et},[Et]),y.useEffect(()=>{const Me=ft.current;ft.current=Q;const it=v$e({store:fC,draftStateKey:Q,previousDraftStateKey:Me,currentAttachments:ze.current});Je.current=!0,_n(it),cF(fC,Q,it)},[Q]),y.useEffect(()=>{if(Je.current){Je.current=!1;return}cF(fC,Q,Et)},[Q,Et]);const sr=y.useCallback(Me=>{var Yt;const it=oe.current;it&&(Pt.current(!0),(Yt=it.querySelector(`[data-chip-ref="${CSS.escape(Me)}"]`))==null||Yt.remove(),pe.current=no(it),Kt.current=!0,Oe.current(Ks(it)),Kt.current=!1,Gt(Zu(Ks(it))&&!Qu(it)))},[]),Tr=y.useCallback(()=>{const Me=oe.current;Me&&(pE(Me,[],"",sr),pe.current=[],ht.current=b3("",[]),Kt.current=!0,Oe.current(""),Kt.current=!1,Gt(!0),yt.current=[],St.current=[])},[sr]),cn=y.useCallback(Me=>{const it=()=>{const Yt=[...pe.current],wn=yt.current;wn.length>0&&JSON.stringify(wn[wn.length-1])===JSON.stringify(Yt)||(wn.push(Yt),wn.length>100&&wn.shift(),St.current=[])};Me?(We.current&&(clearTimeout(We.current),We.current=null),it()):(We.current&&clearTimeout(We.current),We.current=setTimeout(it,300))},[]);y.useEffect(()=>{Pt.current=cn},[cn]);const hi=y.useCallback(Me=>{const it=oe.current;if(!it)return;Kt.current=!0,pE(it,Me,"",sr),pe.current=no(it);const Yt=Ks(it);Oe.current(Yt),Gt(Zu(Yt)&&!Qu(it)),Kt.current=!1,vm(it)},[sr]);y.useImperativeHandle(ge,()=>({insertChip:Me=>{const it=oe.current;if(!it||it.querySelector(`[data-chip-ref="${CSS.escape(A5(Me))}"]`))return;Pt.current(!0),WA(it);const Yt=O5(Me,sr);it.appendChild(Yt),it.appendChild(document.createTextNode(" ")),pe.current=no(it),vm(it),Kt.current=!0,Oe.current(Ks(it)),Kt.current=!1,Gt(!1)},insertSegments:Me=>{const it=oe.current;if(!it)return;const Yt=Ds(Me);Yt.length&&(Pt.current(!0),mF(it,Yt,sr),pe.current=no(it),vm(it),Kt.current=!0,Oe.current(Ks(it)),Kt.current=!1,Gt(!1))},getSegments:()=>{const Me=oe.current;return Me?no(Me):Ds(ne)},focus:()=>{const Me=oe.current;Me&&(Me.focus(),vm(Me))},addAttachment:Me=>{_n(it=>[...it,Me]),Gt(!1)}}),[sr,ne]),y.useEffect(()=>{var ln;if(!Fe){dn(rr=>rr.length===0?rr:dF);return}(ln=qn.current)==null||ln.abort();const Me=new Set(oe.current?E$e(oe.current):[]),it=Tt.current;if(!et){const rr=it.filter(kn=>!Me.has(kn.path)).slice(0,15);dn(rr),Bt(!1);return}const Yt=it.filter(rr=>{if(Me.has(rr.path))return!1;const kn=et.toLowerCase();return rr.name.toLowerCase().includes(kn)||rr.path.toLowerCase().includes(kn)}).slice(0,10);dn(Yt);const wn=pt.current;if(!wn){Bt(!1);return}Bt(!0);const Sn=new AbortController;qn.current=Sn;const nn=setTimeout(async()=>{try{const rr=await wn(et,15,Sn.signal);if(Sn.signal.aborted)return;const kn=new Set,vr=[];for(const jn of rr)Me.has(jn.path)||kn.has(jn.path)||(kn.add(jn.path),vr.push(jn));for(const jn of Yt)kn.has(jn.path)||(kn.add(jn.path),vr.push(jn));dn(vr.slice(0,15))}catch{}finally{Sn.signal.aborted||Bt(!1)}},150);return()=>{clearTimeout(nn),Sn.abort()}},[Fe,et]),y.useEffect(()=>{const Me=oe.current;if(!Me||Kt.current)return;if(Me.childNodes.length>0&&((Me.textContent??"").length>0||Qu(Me))&&!b$e(ht.current,n,ne,pe.current)){ht.current=b3(n,ne);return}Kt.current=!0,pE(Me,ne,n,sr),pe.current=no(Me),Gt(Zu(n)&&!Qu(oe.current)),Kt.current=!1,ht.current=b3(n,ne)},[n,ne,sr,ue]),y.useEffect(()=>{if(!Fe)return;const Me=it=>{ve.current&&!ve.current.contains(it.target)&<(!1)};return document.addEventListener("mousedown",Me),()=>document.removeEventListener("mousedown",Me)},[Fe]),y.useEffect(()=>{we(0)},[et]),y.useEffect(()=>{xt(0)},[Ze]),y.useEffect(()=>{if(!Ge)return;const Me=it=>{zt.current&&!zt.current.contains(it.target)&&rt(!1)};return document.addEventListener("mousedown",Me),()=>document.removeEventListener("mousedown",Me)},[Ge]);const Fa=y.useCallback(Me=>{const it=oe.current;if(!it)return;cn(!0);const Yt=window.getSelection();if(Yt&&Yt.rangeCount>0){const wn=Yt.getRangeAt(0),Sn=wn.startContainer;if(Sn.nodeType===Node.TEXT_NODE&&Sn.textContent){const nn=Sn.textContent,ln=wn.startOffset,rr=nn.lastIndexOf("@",ln-1);if(rr>=0){Sn.textContent=nn.slice(0,rr)+nn.slice(ln);const kn=Sn.textContent.slice(0,rr),vr=Sn.textContent.slice(rr);Sn.textContent=kn;const jn=O5(Me,sr),wt=document.createTextNode(vr||" "),Nn=Sn.parentNode;if(kn)Sn.nextSibling?(Nn.insertBefore(wt,Sn.nextSibling),Nn.insertBefore(jn,wt)):(Nn.appendChild(jn),Nn.appendChild(wt));else{const ki=Sn.nextSibling;Nn.removeChild(Sn),ki?(Nn.insertBefore(wt,ki),Nn.insertBefore(jn,wt)):(Nn.appendChild(jn),Nn.appendChild(wt))}const fi=document.createRange();fi.setStart(wt,vr?0:1),fi.collapse(!0),Yt.removeAllRanges(),Yt.addRange(fi)}}}lt(!1),Be(""),pe.current=no(it),Kt.current=!0,r(Ks(it)),Kt.current=!1},[r,cn]),Ri=y.useCallback(Me=>{const it=oe.current;if(!it)return;cn(!0);const Yt=`/${k$e(Me.id)} `,wn=window.getSelection();if(wn&&wn.rangeCount>0){const Sn=wn.getRangeAt(0),nn=Sn.startContainer;if(nn.nodeType===Node.TEXT_NODE&&nn.textContent!=null){const ln=nn.textContent,rr=Sn.startOffset,kn=ln.lastIndexOf("/",rr-1);if(kn>=0){nn.textContent=ln.slice(0,kn)+Yt+ln.slice(rr);const vr=kn+Yt.length,jn=document.createRange();jn.setStart(nn,Math.min(vr,nn.textContent.length)),jn.collapse(!0),wn.removeAllRanges(),wn.addRange(jn)}}}rt(!1),Ye(""),pe.current=no(it),Kt.current=!0,r(Ks(it)),Kt.current=!1,Gt(Zu(Ks(it))&&!Qu(it))},[r,cn]);y.useEffect(()=>{const Me=oe.current;if(!Me)return;const it=()=>{Kt.current=!0,R$e(Me);const Yt=Ks(Me);pe.current=no(Me),Oe.current(Yt),Gt(Zu(Yt)&&!Qu(Me)),Kt.current=!1,Pt.current();const wn=window.getSelection();if(!wn||wn.rangeCount===0)return;const Sn=wn.getRangeAt(0);let nn=Sn.startContainer,ln=Sn.startOffset;if(nn.nodeType!==Node.TEXT_NODE){const jn=nn.childNodes[ln-1]??nn.childNodes[ln];if((jn==null?void 0:jn.nodeType)===Node.TEXT_NODE)nn=jn,ln=jn.length;else if(ln>0&&nn.childNodes[ln-1]){let wt=nn.childNodes[ln-1];for(;wt&&wt.nodeType!==Node.TEXT_NODE&&wt.lastChild;)wt=wt.lastChild;if((wt==null?void 0:wt.nodeType)===Node.TEXT_NODE)nn=wt,ln=wt.length;else return}else return}const rr=nn.textContent??"";if(rn.current){const jn=rr.lastIndexOf("@",ln-1);if(jn<0||ln<=jn){lt(!1);return}const wt=rr.slice(jn+1,ln);wt.includes(" ")||wt.includes(`
|
|
948
948
|
`)?lt(!1):Be(wt)}else if(ln>0&&rr[ln-1]==="@"){const jn=ln>1?rr[ln-2]:" ";(jn===" "||jn===`
|
|
@@ -959,7 +959,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
959
959
|
monaco.config({ paths: { vs: '...' } })
|
|
960
960
|
|
|
961
961
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
962
|
-
`},_F=aDe(uDe)(rte),dDe={config:lDe},hDe=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return function(s){return r.reduceRight(function(a,o){return o(a)},s)}};function ite(e,n){return Object.keys(n).forEach(function(r){n[r]instanceof Object&&e[r]&&Object.assign(n[r],ite(e[r],n[r]))}),xF(xF({},e),n)}var fDe={type:"cancelation",msg:"operation is manually canceled"};function mE(e){var n=!1,r=new Promise(function(i,s){e.then(function(a){return n?s(fDe):i(a)}),e.catch(s)});return r.cancel=function(){return n=!0},r}var pDe=["monaco"],mDe=iDe.create({config:sDe,isInitialized:!1,resolve:null,reject:null,monaco:null}),ste=z$e(mDe,2),bS=ste[0],B4=ste[1];function gDe(e){var n=dDe.config(e),r=n.monaco,i=I$e(n,pDe);B4(function(s){return{config:ite(s.config,i),monaco:r}})}function yDe(){var e=bS(function(n){var r=n.monaco,i=n.isInitialized,s=n.resolve;return{monaco:r,isInitialized:i,resolve:s}});if(!e.isInitialized){if(B4({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),mE(gE);if(window.monaco&&window.monaco.editor)return ate(window.monaco),e.resolve(window.monaco),mE(gE);hDe(xDe,bDe)(_De)}return mE(gE)}function xDe(e){return document.body.appendChild(e)}function vDe(e){var n=document.createElement("script");return e&&(n.src=e),n}function bDe(e){var n=bS(function(i){var s=i.config,a=i.reject;return{config:s,reject:a}}),r=vDe("".concat(n.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=n.reject,r}function _De(){var e=bS(function(r){var i=r.config,s=r.resolve,a=r.reject;return{config:i,resolve:s,reject:a}}),n=window.require;n.config(e.config),n(["vs/editor/editor.main"],function(r){var i=r.m||r;ate(i),e.resolve(i)},function(r){e.reject(r)})}function ate(e){bS().monaco||B4({monaco:e})}function wDe(){return bS(function(e){var n=e.monaco;return n})}var gE=new Promise(function(e,n){return B4({resolve:e,reject:n})}),z4={config:gDe,init:yDe,__getMonacoInstance:wDe};const ote=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#383a49","activityBarBadge.background":"#007ACC","checkbox.border":"#6B6B6B","editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.inactiveSelectionBackground":"#3A3D41","editor.selectionHighlightBackground":"#ADD6FF26","editorIndentGuide.activeBackground1":"#707070","editorIndentGuide.background1":"#404040","input.placeholderForeground":"#A6A6A6","list.activeSelectionIconForeground":"#FFF","list.dropBackground":"#383B3D","menu.background":"#252526","menu.border":"#454545","menu.foreground":"#CCCCCC","menu.selectionBackground":"#0078d4","menu.separatorBackground":"#454545","ports.iconRunningProcessForeground":"#369432","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#ccc3","sideBarTitle.foreground":"#BBBBBB","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#ccc3","tab.selectedBackground":"#222222","tab.selectedForeground":"#ffffffa0","terminal.inactiveSelectionBackground":"#3A3D41","widget.border":"#303031"},"displayName":"Dark Plus","name":"dark-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#DCDCAA","newOperator":"#C586C0","numberLiteral":"#b5cea8","stringLiteral":"#ce9178"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#D4D4D4"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#6A9955"}},{"scope":"constant.language","settings":{"foreground":"#569cd6"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#b5cea8"}},{"scope":"constant.regexp","settings":{"foreground":"#646695"}},{"scope":"entity.name.tag","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.tag.css","entity.name.tag.less"],"settings":{"foreground":"#d7ba7d"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#9cdcfe"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#d7ba7d"}},{"scope":"invalid","settings":{"foreground":"#f44747"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#b5cea8"}},{"scope":"markup.deleted","settings":{"foreground":"#ce9178"}},{"scope":"markup.changed","settings":{"foreground":"#569cd6"}},{"scope":"punctuation.definition.quote.begin.markdown","settings":{"foreground":"#6A9955"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#6796e6"}},{"scope":"markup.inline.raw","settings":{"foreground":"#ce9178"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#808080"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#569cd6"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#ce9178"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b5cea8"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#9cdcfe"}},{"scope":"meta.diff.header","settings":{"foreground":"#569cd6"}},{"scope":"storage","settings":{"foreground":"#569cd6"}},{"scope":"storage.type","settings":{"foreground":"#569cd6"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#569cd6"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#ce9178"}},{"scope":"string.tag","settings":{"foreground":"#ce9178"}},{"scope":"string.value","settings":{"foreground":"#ce9178"}},{"scope":"string.regexp","settings":{"foreground":"#d16969"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#569cd6"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#d4d4d4"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#9cdcfe"}},{"scope":"keyword","settings":{"foreground":"#569cd6"}},{"scope":"keyword.control","settings":{"foreground":"#569cd6"}},{"scope":"keyword.operator","settings":{"foreground":"#d4d4d4"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#569cd6"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b5cea8"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#569cd6"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#9cdcfe"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b5cea8"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#d4d4d4"}},{"scope":"variable.language","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#DCDCAA"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#4EC9B0"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#4EC9B0"}},{"scope":["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#C586C0"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#9CDCFE"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#4FC1FF"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#9CDCFE"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#CE9178"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#CE9178"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#DCDCAA"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d7ba7d"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#569cd6"}},{"scope":"constant.character.escape","settings":{"foreground":"#d7ba7d"}},{"scope":"entity.name.label","settings":{"foreground":"#C8C8C8"}}],"type":"dark"}')),SDe=Object.freeze(Object.defineProperty({__proto__:null,default:ote},Symbol.toStringTag,{value:"Module"})),kDe=["editor theme","vscode theme","monaco theme","workbench colors"],yE=new Set,Qw="dark-plus",wF=new WeakSet,SF=ote,CDe={"editor.background":"#0B0C0E","editorGutter.background":"#0B0C0E","editorStickyScroll.background":"#0B0C0E","editorStickyScrollGutter.background":"#0B0C0E","minimap.background":"#0B0C0E","editor.lineHighlightBackground":"#151922","editorWidget.background":"#16181D","editorHoverWidget.background":"#16181D","editorWidget.border":"#363B44","editorHoverWidget.border":"#363B44","editorGroupHeader.tabsBackground":"#0B0C0E"},jDe={base:"vs-dark",inherit:!1,rules:[...cte(SF.tokenColors??[]),...MDe()],colors:{...ute(SF.colors??{}),...CDe}};function NDe(){return kDe}function lte(e){var n,r;(r=(n=e==null?void 0:e.editor)==null?void 0:n.defineTheme)==null||r.call(n,Qw,jDe)}function TDe(e){!e||typeof e!="object"||wF.has(e)||(wF.add(e),Promise.all([nt(()=>import("./index-YXmOM4WT.js"),[],import.meta.url),nt(()=>import("./index-DWsdYaKL.js"),[],import.meta.url)]).then(async([{shikiToMonaco:n},{createHighlighter:r}])=>{var l,u,d;const i=e.languages,s=new Set(((l=i==null?void 0:i.getLanguages)==null?void 0:l.call(i).map(h=>h.id))??[]);for(const h of["javascript","typescript","json","css","html","markdown","python","yaml","diff"])s.has(h)||((u=i==null?void 0:i.register)==null||u.call(i,{id:h}),s.add(h));const a=await r({themes:["dark-plus"],langs:["javascript","typescript","jsx","tsx","json","css","html","markdown","python","yaml","diff"]});n(a,e),lte(e);const o=e.editor;typeof document<"u"&&document.documentElement.dataset.monacoTheme===Qw&&((d=o==null?void 0:o.setTheme)==null||d.call(o,Qw))}).catch(n=>{console.error("Failed to initialize Shiki Monaco Dark Plus theme:",n)}))}function EDe(e){var o;const n=ADe(e.text),r=ute(n.colors??{}),i=LDe(n,r),s=((o=n.name)==null?void 0:o.trim())||e.sourceLabel.trim()||"Imported Theme",a=`jait-vscode-${HDe(s)}-${e.id}`;return{id:e.id,name:s,sourceLabel:e.sourceLabel,importedAt:e.importedAt??new Date().toISOString(),colorMode:i,monacoThemeName:a,monacoThemeData:{base:i==="dark"?"vs-dark":"vs",inherit:!0,rules:cte(n.tokenColors??[]),colors:r},cssVariables:PDe(r),rawColors:r,hasInclude:typeof n.include=="string"&&n.include.trim().length>0}}function ADe(e){const n=FDe(zDe(e)),r=JSON.parse(n);if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Theme file must contain a JSON object.");return r}function ODe(e,n){var r;!n||!((r=e==null?void 0:e.editor)!=null&&r.defineTheme)||e.editor.defineTheme(n.monacoThemeName,n.monacoThemeData)}function RDe(e){if(typeof document>"u")return;const n=document.documentElement;n.classList.toggle("dark",e.colorMode==="dark"),n.dataset.monacoTheme=e.monacoThemeName;for(const r of yE)n.style.removeProperty(r);if(yE.clear(),!!e.theme)for(const[r,i]of Object.entries(e.theme.cssVariables))n.style.setProperty(r,i),yE.add(r)}function cte(e){var r;const n=[];for(const i of e){const s=i.settings??{},a=$De(i.scope);if(a.length===0)continue;const o=CF(s.foreground),l=CF(s.background),u=((r=s.fontStyle)==null?void 0:r.trim())||void 0;for(const d of a)n.push({token:d,foreground:o,background:l,fontStyle:u})}return n}function MDe(){return[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"F44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"comment",foreground:"6A9955"},{token:"constant",foreground:"569CD6"},{token:"number",foreground:"B5CEA8"},{token:"regexp",foreground:"D16969"},{token:"string",foreground:"CE9178"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.operator",foreground:"D4D4D4"},{token:"keyword.operator.new",foreground:"C586C0"},{token:"operator",foreground:"D4D4D4"},{token:"type",foreground:"4EC9B0"},{token:"type.identifier",foreground:"4EC9B0"},{token:"class",foreground:"4EC9B0"},{token:"interface",foreground:"4EC9B0"},{token:"enum",foreground:"4EC9B0"},{token:"namespace",foreground:"4EC9B0"},{token:"identifier",foreground:"9CDCFE"},{token:"identifier.function",foreground:"DCDCAA"},{token:"function",foreground:"DCDCAA"},{token:"member",foreground:"DCDCAA"},{token:"method",foreground:"DCDCAA"},{token:"property",foreground:"9CDCFE"},{token:"variable",foreground:"9CDCFE"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"parameter",foreground:"9CDCFE"},{token:"delimiter",foreground:"D4D4D4"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"}]}function PDe(e){const n={},r=si(e,["editor.background","sideBar.background","panel.background"]),i=si(e,["editor.foreground","foreground"]),s=si(e,["sideBar.background","panel.background","editorWidget.background"]),a=si(e,["panel.background","tab.inactiveBackground","editorGroupHeader.tabsBackground"]),o=si(e,["list.hoverBackground","tab.activeBackground","editor.lineHighlightBackground"]),l=si(e,["button.background","focusBorder","textLink.foreground"]),u=si(e,["widget.border","panel.border","sideBar.border","contrastBorder"]);Ei(n,"--background",r),Ei(n,"--foreground",i),Ei(n,"--card",s),Ei(n,"--card-foreground",si(e,["sideBar.foreground","foreground"])??i),Ei(n,"--popover",si(e,["editorWidget.background","panel.background"])??s),Ei(n,"--popover-foreground",si(e,["editorWidget.foreground","foreground"])??i),Ei(n,"--primary",l),Ei(n,"--primary-foreground",kF(l)),Ei(n,"--secondary",si(e,["tab.inactiveBackground","panel.background"])??a),Ei(n,"--secondary-foreground",si(e,["tab.inactiveForeground","foreground"])??i),Ei(n,"--muted",a),Ei(n,"--muted-foreground",si(e,["descriptionForeground","input.placeholderForeground","disabledForeground"])),Ei(n,"--accent",o),Ei(n,"--accent-foreground",si(e,["list.activeSelectionForeground","foreground"])??i),Ei(n,"--destructive",si(e,["inputValidation.errorBackground","errorForeground","list.errorForeground"])),Ei(n,"--destructive-foreground",kF(si(e,["inputValidation.errorBackground","errorForeground"]))),Ei(n,"--border",u),Ei(n,"--input",si(e,["input.background","editorWidget.background","dropdown.background"])??u),Ei(n,"--ring",si(e,["focusBorder","button.background","textLink.foreground"])??l),Ei(n,"--scrollbar-track",si(e,["editor.background","sideBar.background","panel.background"])??r),Ei(n,"--scrollbar-thumb",si(e,["scrollbarSlider.background","scrollbar.shadow"])),Ei(n,"--scrollbar-thumb-hover",si(e,["scrollbarSlider.hoverBackground","scrollbarSlider.activeBackground","scrollbarSlider.background"])),Ei(n,"--toast-bg",si(e,["notifications.background","editorWidget.background","panel.background"])??s,!0),Ei(n,"--toast-border",si(e,["notifications.border","widget.border","panel.border"])??u,!0),Ei(n,"--toast-success-accent",si(e,["testing.iconPassed","terminal.ansiGreen"])),Ei(n,"--toast-info-accent",si(e,["textLink.foreground","focusBorder"])??l),Ei(n,"--toast-warning-accent",si(e,["editorWarning.foreground","terminal.ansiYellow"])),Ei(n,"--toast-error-accent",si(e,["editorError.foreground","terminal.ansiRed"]));const d=si(e,["editorGroupHeader.tabsBackground","tab.inactiveBackground","sideBar.background"]);d&&(n["--tab-bg"]=d);const h=si(e,["activityBarBadge.background","button.background","focusBorder"]),f=si(e,["textLink.foreground","terminal.ansiBlue"]),m=si(e,["editorWarning.foreground","terminal.ansiYellow"]),x=si(e,["terminal.ansiMagenta","badge.background"]);return h&&(n["--ctx-system"]=h),f&&(n["--ctx-history"]=f),m&&(n["--ctx-tool-results"]=m),x&&(n["--ctx-tools"]=x),n}function Ei(e,n,r,i=!1){if(!r)return;const s=DDe(r,i);s&&(e[n]=s)}function kF(e){const n=O9(e);return n?(.2126*n.r+.7152*n.g+.0722*n.b)/255>.55?"0 0% 7%":"0 0% 100%":null}function LDe(e,n){if(e.type==="light"||e.type==="hc-light")return"light";if(e.type==="dark"||e.type==="hc-dark")return"dark";const r=O9(n["editor.background"]??n["sideBar.background"]??"");return r&&(.2126*r.r+.7152*r.g+.0722*r.b)/255>.55?"light":"dark"}function ute(e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"&&i.trim()&&(n[r]=i.trim());return n}function $De(e){return Array.isArray(e)?e.flatMap(n=>n.split(",")).map(n=>n.trim()).filter(Boolean):typeof e!="string"?[]:e.split(",").map(n=>n.trim()).filter(Boolean)}function CF(e){if(!e)return;const n=e.trim();if(n.startsWith("#"))return dte(n).slice(1)}function si(e,n){for(const r of n){const i=e[r];if(typeof i=="string"&&i.trim())return i.trim()}return null}function DDe(e,n=!1){const r=O9(e);if(!r)return null;const i=r.r/255,s=r.g/255,a=r.b/255,o=Math.max(i,s,a),l=Math.min(i,s,a),u=o-l,d=(o+l)/2;let h=0;u!==0&&(o===i?h=(s-a)/u%6:o===s?h=(a-i)/u+2:h=(i-s)/u+4,h*=60),h<0&&(h+=360);const f=u===0?0:u/(1-Math.abs(2*d-1)),m=`${Math.round(h)} ${Math.round(f*100)}% ${Math.round(d*100)}%`;return n&&r.a<1?`${m} / ${Number(r.a.toFixed(3))}`:m}function O9(e){if(!e)return null;const n=e.trim();if(!n)return null;if(n.startsWith("#"))return IDe(n);const r=n.match(/^rgba?\(([^)]+)\)$/i);if(!r)return null;const i=r[1].split(",").map(u=>u.trim());if(i.length<3)return null;const s=xE(i[0]),a=xE(i[1]),o=xE(i[2]),l=i[3]==null?1:BDe(i[3]);return s==null||a==null||o==null||l==null?null:{r:s,g:a,b:o,a:l}}function IDe(e){const n=dte(e).slice(1);return n.length===6?{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16),a:1}:n.length===8?{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16),a:Number.parseInt(n.slice(6,8),16)/255}:null}function xE(e){if(e.endsWith("%")){const r=Number.parseFloat(e.slice(0,-1));return Number.isFinite(r)?jF(Math.round(r/100*255)):null}const n=Number.parseFloat(e);return Number.isFinite(n)?jF(Math.round(n)):null}function BDe(e){const n=Number.parseFloat(e);return Number.isFinite(n)?Math.max(0,Math.min(1,n)):null}function jF(e){return Math.max(0,Math.min(255,e))}function dte(e){const n=e.trim().slice(1);return n.length===3||n.length===4?`#${n.split("").map(r=>`${r}${r}`).join("").toLowerCase()}`:`#${n.toLowerCase()}`}function zDe(e){let n="",r=!1,i=!1,s=!1,a=!1;for(let o=0;o<e.length;o+=1){const l=e[o],u=e[o+1];if(i){l===`
|
|
962
|
+
`},_F=aDe(uDe)(rte),dDe={config:lDe},hDe=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return function(s){return r.reduceRight(function(a,o){return o(a)},s)}};function ite(e,n){return Object.keys(n).forEach(function(r){n[r]instanceof Object&&e[r]&&Object.assign(n[r],ite(e[r],n[r]))}),xF(xF({},e),n)}var fDe={type:"cancelation",msg:"operation is manually canceled"};function mE(e){var n=!1,r=new Promise(function(i,s){e.then(function(a){return n?s(fDe):i(a)}),e.catch(s)});return r.cancel=function(){return n=!0},r}var pDe=["monaco"],mDe=iDe.create({config:sDe,isInitialized:!1,resolve:null,reject:null,monaco:null}),ste=z$e(mDe,2),bS=ste[0],B4=ste[1];function gDe(e){var n=dDe.config(e),r=n.monaco,i=I$e(n,pDe);B4(function(s){return{config:ite(s.config,i),monaco:r}})}function yDe(){var e=bS(function(n){var r=n.monaco,i=n.isInitialized,s=n.resolve;return{monaco:r,isInitialized:i,resolve:s}});if(!e.isInitialized){if(B4({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),mE(gE);if(window.monaco&&window.monaco.editor)return ate(window.monaco),e.resolve(window.monaco),mE(gE);hDe(xDe,bDe)(_De)}return mE(gE)}function xDe(e){return document.body.appendChild(e)}function vDe(e){var n=document.createElement("script");return e&&(n.src=e),n}function bDe(e){var n=bS(function(i){var s=i.config,a=i.reject;return{config:s,reject:a}}),r=vDe("".concat(n.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=n.reject,r}function _De(){var e=bS(function(r){var i=r.config,s=r.resolve,a=r.reject;return{config:i,resolve:s,reject:a}}),n=window.require;n.config(e.config),n(["vs/editor/editor.main"],function(r){var i=r.m||r;ate(i),e.resolve(i)},function(r){e.reject(r)})}function ate(e){bS().monaco||B4({monaco:e})}function wDe(){return bS(function(e){var n=e.monaco;return n})}var gE=new Promise(function(e,n){return B4({resolve:e,reject:n})}),z4={config:gDe,init:yDe,__getMonacoInstance:wDe};const ote=Object.freeze(JSON.parse('{"colors":{"actionBar.toggledBackground":"#383a49","activityBarBadge.background":"#007ACC","checkbox.border":"#6B6B6B","editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.inactiveSelectionBackground":"#3A3D41","editor.selectionHighlightBackground":"#ADD6FF26","editorIndentGuide.activeBackground1":"#707070","editorIndentGuide.background1":"#404040","input.placeholderForeground":"#A6A6A6","list.activeSelectionIconForeground":"#FFF","list.dropBackground":"#383B3D","menu.background":"#252526","menu.border":"#454545","menu.foreground":"#CCCCCC","menu.selectionBackground":"#0078d4","menu.separatorBackground":"#454545","ports.iconRunningProcessForeground":"#369432","sideBarSectionHeader.background":"#0000","sideBarSectionHeader.border":"#ccc3","sideBarTitle.foreground":"#BBBBBB","statusBarItem.remoteBackground":"#16825D","statusBarItem.remoteForeground":"#FFF","tab.lastPinnedBorder":"#ccc3","tab.selectedBackground":"#222222","tab.selectedForeground":"#ffffffa0","terminal.inactiveSelectionBackground":"#3A3D41","widget.border":"#303031"},"displayName":"Dark Plus","name":"dark-plus","semanticHighlighting":true,"semanticTokenColors":{"customLiteral":"#DCDCAA","newOperator":"#C586C0","numberLiteral":"#b5cea8","stringLiteral":"#ce9178"},"tokenColors":[{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown","variable.legacy.builtin.python"],"settings":{"foreground":"#D4D4D4"}},{"scope":"emphasis","settings":{"fontStyle":"italic"}},{"scope":"strong","settings":{"fontStyle":"bold"}},{"scope":"header","settings":{"foreground":"#000080"}},{"scope":"comment","settings":{"foreground":"#6A9955"}},{"scope":"constant.language","settings":{"foreground":"#569cd6"}},{"scope":["constant.numeric","variable.other.enummember","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],"settings":{"foreground":"#b5cea8"}},{"scope":"constant.regexp","settings":{"foreground":"#646695"}},{"scope":"entity.name.tag","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.tag.css","entity.name.tag.less"],"settings":{"foreground":"#d7ba7d"}},{"scope":"entity.other.attribute-name","settings":{"foreground":"#9cdcfe"}},{"scope":["entity.other.attribute-name.class.css","source.css entity.other.attribute-name.class","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.parent.less","source.css entity.other.attribute-name.pseudo-class","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],"settings":{"foreground":"#d7ba7d"}},{"scope":"invalid","settings":{"foreground":"#f44747"}},{"scope":"markup.underline","settings":{"fontStyle":"underline"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#569cd6"}},{"scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inserted","settings":{"foreground":"#b5cea8"}},{"scope":"markup.deleted","settings":{"foreground":"#ce9178"}},{"scope":"markup.changed","settings":{"foreground":"#569cd6"}},{"scope":"punctuation.definition.quote.begin.markdown","settings":{"foreground":"#6A9955"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#6796e6"}},{"scope":"markup.inline.raw","settings":{"foreground":"#ce9178"}},{"scope":"punctuation.definition.tag","settings":{"foreground":"#808080"}},{"scope":["meta.preprocessor","entity.name.function.preprocessor"],"settings":{"foreground":"#569cd6"}},{"scope":"meta.preprocessor.string","settings":{"foreground":"#ce9178"}},{"scope":"meta.preprocessor.numeric","settings":{"foreground":"#b5cea8"}},{"scope":"meta.structure.dictionary.key.python","settings":{"foreground":"#9cdcfe"}},{"scope":"meta.diff.header","settings":{"foreground":"#569cd6"}},{"scope":"storage","settings":{"foreground":"#569cd6"}},{"scope":"storage.type","settings":{"foreground":"#569cd6"}},{"scope":["storage.modifier","keyword.operator.noexcept"],"settings":{"foreground":"#569cd6"}},{"scope":["string","meta.embedded.assembly"],"settings":{"foreground":"#ce9178"}},{"scope":"string.tag","settings":{"foreground":"#ce9178"}},{"scope":"string.value","settings":{"foreground":"#ce9178"}},{"scope":"string.regexp","settings":{"foreground":"#d16969"}},{"scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#569cd6"}},{"scope":["meta.template.expression"],"settings":{"foreground":"#d4d4d4"}},{"scope":["support.type.vendored.property-name","support.type.property-name","source.css variable","source.coffee.embedded"],"settings":{"foreground":"#9cdcfe"}},{"scope":"keyword","settings":{"foreground":"#569cd6"}},{"scope":"keyword.control","settings":{"foreground":"#569cd6"}},{"scope":"keyword.operator","settings":{"foreground":"#d4d4d4"}},{"scope":["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],"settings":{"foreground":"#569cd6"}},{"scope":"keyword.other.unit","settings":{"foreground":"#b5cea8"}},{"scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#569cd6"}},{"scope":"support.function.git-rebase","settings":{"foreground":"#9cdcfe"}},{"scope":"constant.sha.git-rebase","settings":{"foreground":"#b5cea8"}},{"scope":["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],"settings":{"foreground":"#d4d4d4"}},{"scope":"variable.language","settings":{"foreground":"#569cd6"}},{"scope":["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],"settings":{"foreground":"#DCDCAA"}},{"scope":["support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],"settings":{"foreground":"#4EC9B0"}},{"scope":["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class","punctuation.separator.namespace.ruby"],"settings":{"foreground":"#4EC9B0"}},{"scope":["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.directive.using","keyword.other.operator","entity.name.operator"],"settings":{"foreground":"#C586C0"}},{"scope":["variable","meta.definition.variable.name","support.variable","entity.name.variable","constant.other.placeholder"],"settings":{"foreground":"#9CDCFE"}},{"scope":["variable.other.constant","variable.other.enummember"],"settings":{"foreground":"#4FC1FF"}},{"scope":["meta.object-literal.key"],"settings":{"foreground":"#9CDCFE"}},{"scope":["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],"settings":{"foreground":"#CE9178"}},{"scope":["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],"settings":{"foreground":"#CE9178"}},{"scope":["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],"settings":{"foreground":"#d16969"}},{"scope":["keyword.operator.or.regexp","keyword.control.anchor.regexp"],"settings":{"foreground":"#DCDCAA"}},{"scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d7ba7d"}},{"scope":["constant.character","constant.other.option"],"settings":{"foreground":"#569cd6"}},{"scope":"constant.character.escape","settings":{"foreground":"#d7ba7d"}},{"scope":"entity.name.label","settings":{"foreground":"#C8C8C8"}}],"type":"dark"}')),SDe=Object.freeze(Object.defineProperty({__proto__:null,default:ote},Symbol.toStringTag,{value:"Module"})),kDe=["editor theme","vscode theme","monaco theme","workbench colors"],yE=new Set,Qw="dark-plus",wF=new WeakSet,SF=ote,CDe={"editor.background":"#0B0C0E","editorGutter.background":"#0B0C0E","editorStickyScroll.background":"#0B0C0E","editorStickyScrollGutter.background":"#0B0C0E","minimap.background":"#0B0C0E","editor.lineHighlightBackground":"#151922","editorWidget.background":"#16181D","editorHoverWidget.background":"#16181D","editorWidget.border":"#363B44","editorHoverWidget.border":"#363B44","editorGroupHeader.tabsBackground":"#0B0C0E"},jDe={base:"vs-dark",inherit:!1,rules:[...cte(SF.tokenColors??[]),...MDe()],colors:{...ute(SF.colors??{}),...CDe}};function NDe(){return kDe}function lte(e){var n,r;(r=(n=e==null?void 0:e.editor)==null?void 0:n.defineTheme)==null||r.call(n,Qw,jDe)}function TDe(e){!e||typeof e!="object"||wF.has(e)||(wF.add(e),Promise.all([nt(()=>import("./index-BBqvlW02.js"),[],import.meta.url),nt(()=>import("./index-B_e1HTq3.js"),[],import.meta.url)]).then(async([{shikiToMonaco:n},{createHighlighter:r}])=>{var l,u,d;const i=e.languages,s=new Set(((l=i==null?void 0:i.getLanguages)==null?void 0:l.call(i).map(h=>h.id))??[]);for(const h of["javascript","typescript","json","css","html","markdown","python","yaml","diff"])s.has(h)||((u=i==null?void 0:i.register)==null||u.call(i,{id:h}),s.add(h));const a=await r({themes:["dark-plus"],langs:["javascript","typescript","jsx","tsx","json","css","html","markdown","python","yaml","diff"]});n(a,e),lte(e);const o=e.editor;typeof document<"u"&&document.documentElement.dataset.monacoTheme===Qw&&((d=o==null?void 0:o.setTheme)==null||d.call(o,Qw))}).catch(n=>{console.error("Failed to initialize Shiki Monaco Dark Plus theme:",n)}))}function EDe(e){var o;const n=ADe(e.text),r=ute(n.colors??{}),i=LDe(n,r),s=((o=n.name)==null?void 0:o.trim())||e.sourceLabel.trim()||"Imported Theme",a=`jait-vscode-${HDe(s)}-${e.id}`;return{id:e.id,name:s,sourceLabel:e.sourceLabel,importedAt:e.importedAt??new Date().toISOString(),colorMode:i,monacoThemeName:a,monacoThemeData:{base:i==="dark"?"vs-dark":"vs",inherit:!0,rules:cte(n.tokenColors??[]),colors:r},cssVariables:PDe(r),rawColors:r,hasInclude:typeof n.include=="string"&&n.include.trim().length>0}}function ADe(e){const n=FDe(zDe(e)),r=JSON.parse(n);if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Theme file must contain a JSON object.");return r}function ODe(e,n){var r;!n||!((r=e==null?void 0:e.editor)!=null&&r.defineTheme)||e.editor.defineTheme(n.monacoThemeName,n.monacoThemeData)}function RDe(e){if(typeof document>"u")return;const n=document.documentElement;n.classList.toggle("dark",e.colorMode==="dark"),n.dataset.monacoTheme=e.monacoThemeName;for(const r of yE)n.style.removeProperty(r);if(yE.clear(),!!e.theme)for(const[r,i]of Object.entries(e.theme.cssVariables))n.style.setProperty(r,i),yE.add(r)}function cte(e){var r;const n=[];for(const i of e){const s=i.settings??{},a=$De(i.scope);if(a.length===0)continue;const o=CF(s.foreground),l=CF(s.background),u=((r=s.fontStyle)==null?void 0:r.trim())||void 0;for(const d of a)n.push({token:d,foreground:o,background:l,fontStyle:u})}return n}function MDe(){return[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"F44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"comment",foreground:"6A9955"},{token:"constant",foreground:"569CD6"},{token:"number",foreground:"B5CEA8"},{token:"regexp",foreground:"D16969"},{token:"string",foreground:"CE9178"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.operator",foreground:"D4D4D4"},{token:"keyword.operator.new",foreground:"C586C0"},{token:"operator",foreground:"D4D4D4"},{token:"type",foreground:"4EC9B0"},{token:"type.identifier",foreground:"4EC9B0"},{token:"class",foreground:"4EC9B0"},{token:"interface",foreground:"4EC9B0"},{token:"enum",foreground:"4EC9B0"},{token:"namespace",foreground:"4EC9B0"},{token:"identifier",foreground:"9CDCFE"},{token:"identifier.function",foreground:"DCDCAA"},{token:"function",foreground:"DCDCAA"},{token:"member",foreground:"DCDCAA"},{token:"method",foreground:"DCDCAA"},{token:"property",foreground:"9CDCFE"},{token:"variable",foreground:"9CDCFE"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"parameter",foreground:"9CDCFE"},{token:"delimiter",foreground:"D4D4D4"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"}]}function PDe(e){const n={},r=si(e,["editor.background","sideBar.background","panel.background"]),i=si(e,["editor.foreground","foreground"]),s=si(e,["sideBar.background","panel.background","editorWidget.background"]),a=si(e,["panel.background","tab.inactiveBackground","editorGroupHeader.tabsBackground"]),o=si(e,["list.hoverBackground","tab.activeBackground","editor.lineHighlightBackground"]),l=si(e,["button.background","focusBorder","textLink.foreground"]),u=si(e,["widget.border","panel.border","sideBar.border","contrastBorder"]);Ei(n,"--background",r),Ei(n,"--foreground",i),Ei(n,"--card",s),Ei(n,"--card-foreground",si(e,["sideBar.foreground","foreground"])??i),Ei(n,"--popover",si(e,["editorWidget.background","panel.background"])??s),Ei(n,"--popover-foreground",si(e,["editorWidget.foreground","foreground"])??i),Ei(n,"--primary",l),Ei(n,"--primary-foreground",kF(l)),Ei(n,"--secondary",si(e,["tab.inactiveBackground","panel.background"])??a),Ei(n,"--secondary-foreground",si(e,["tab.inactiveForeground","foreground"])??i),Ei(n,"--muted",a),Ei(n,"--muted-foreground",si(e,["descriptionForeground","input.placeholderForeground","disabledForeground"])),Ei(n,"--accent",o),Ei(n,"--accent-foreground",si(e,["list.activeSelectionForeground","foreground"])??i),Ei(n,"--destructive",si(e,["inputValidation.errorBackground","errorForeground","list.errorForeground"])),Ei(n,"--destructive-foreground",kF(si(e,["inputValidation.errorBackground","errorForeground"]))),Ei(n,"--border",u),Ei(n,"--input",si(e,["input.background","editorWidget.background","dropdown.background"])??u),Ei(n,"--ring",si(e,["focusBorder","button.background","textLink.foreground"])??l),Ei(n,"--scrollbar-track",si(e,["editor.background","sideBar.background","panel.background"])??r),Ei(n,"--scrollbar-thumb",si(e,["scrollbarSlider.background","scrollbar.shadow"])),Ei(n,"--scrollbar-thumb-hover",si(e,["scrollbarSlider.hoverBackground","scrollbarSlider.activeBackground","scrollbarSlider.background"])),Ei(n,"--toast-bg",si(e,["notifications.background","editorWidget.background","panel.background"])??s,!0),Ei(n,"--toast-border",si(e,["notifications.border","widget.border","panel.border"])??u,!0),Ei(n,"--toast-success-accent",si(e,["testing.iconPassed","terminal.ansiGreen"])),Ei(n,"--toast-info-accent",si(e,["textLink.foreground","focusBorder"])??l),Ei(n,"--toast-warning-accent",si(e,["editorWarning.foreground","terminal.ansiYellow"])),Ei(n,"--toast-error-accent",si(e,["editorError.foreground","terminal.ansiRed"]));const d=si(e,["editorGroupHeader.tabsBackground","tab.inactiveBackground","sideBar.background"]);d&&(n["--tab-bg"]=d);const h=si(e,["activityBarBadge.background","button.background","focusBorder"]),f=si(e,["textLink.foreground","terminal.ansiBlue"]),m=si(e,["editorWarning.foreground","terminal.ansiYellow"]),x=si(e,["terminal.ansiMagenta","badge.background"]);return h&&(n["--ctx-system"]=h),f&&(n["--ctx-history"]=f),m&&(n["--ctx-tool-results"]=m),x&&(n["--ctx-tools"]=x),n}function Ei(e,n,r,i=!1){if(!r)return;const s=DDe(r,i);s&&(e[n]=s)}function kF(e){const n=O9(e);return n?(.2126*n.r+.7152*n.g+.0722*n.b)/255>.55?"0 0% 7%":"0 0% 100%":null}function LDe(e,n){if(e.type==="light"||e.type==="hc-light")return"light";if(e.type==="dark"||e.type==="hc-dark")return"dark";const r=O9(n["editor.background"]??n["sideBar.background"]??"");return r&&(.2126*r.r+.7152*r.g+.0722*r.b)/255>.55?"light":"dark"}function ute(e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"&&i.trim()&&(n[r]=i.trim());return n}function $De(e){return Array.isArray(e)?e.flatMap(n=>n.split(",")).map(n=>n.trim()).filter(Boolean):typeof e!="string"?[]:e.split(",").map(n=>n.trim()).filter(Boolean)}function CF(e){if(!e)return;const n=e.trim();if(n.startsWith("#"))return dte(n).slice(1)}function si(e,n){for(const r of n){const i=e[r];if(typeof i=="string"&&i.trim())return i.trim()}return null}function DDe(e,n=!1){const r=O9(e);if(!r)return null;const i=r.r/255,s=r.g/255,a=r.b/255,o=Math.max(i,s,a),l=Math.min(i,s,a),u=o-l,d=(o+l)/2;let h=0;u!==0&&(o===i?h=(s-a)/u%6:o===s?h=(a-i)/u+2:h=(i-s)/u+4,h*=60),h<0&&(h+=360);const f=u===0?0:u/(1-Math.abs(2*d-1)),m=`${Math.round(h)} ${Math.round(f*100)}% ${Math.round(d*100)}%`;return n&&r.a<1?`${m} / ${Number(r.a.toFixed(3))}`:m}function O9(e){if(!e)return null;const n=e.trim();if(!n)return null;if(n.startsWith("#"))return IDe(n);const r=n.match(/^rgba?\(([^)]+)\)$/i);if(!r)return null;const i=r[1].split(",").map(u=>u.trim());if(i.length<3)return null;const s=xE(i[0]),a=xE(i[1]),o=xE(i[2]),l=i[3]==null?1:BDe(i[3]);return s==null||a==null||o==null||l==null?null:{r:s,g:a,b:o,a:l}}function IDe(e){const n=dte(e).slice(1);return n.length===6?{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16),a:1}:n.length===8?{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16),a:Number.parseInt(n.slice(6,8),16)/255}:null}function xE(e){if(e.endsWith("%")){const r=Number.parseFloat(e.slice(0,-1));return Number.isFinite(r)?jF(Math.round(r/100*255)):null}const n=Number.parseFloat(e);return Number.isFinite(n)?jF(Math.round(n)):null}function BDe(e){const n=Number.parseFloat(e);return Number.isFinite(n)?Math.max(0,Math.min(1,n)):null}function jF(e){return Math.max(0,Math.min(255,e))}function dte(e){const n=e.trim().slice(1);return n.length===3||n.length===4?`#${n.split("").map(r=>`${r}${r}`).join("").toLowerCase()}`:`#${n.toLowerCase()}`}function zDe(e){let n="",r=!1,i=!1,s=!1,a=!1;for(let o=0;o<e.length;o+=1){const l=e[o],u=e[o+1];if(i){l===`
|
|
963
963
|
`&&(i=!1,n+=l);continue}if(s){l==="*"&&u==="/"&&(s=!1,o+=1);continue}if(r){n+=l,a?a=!1:l==="\\"?a=!0:l==='"'&&(r=!1);continue}if(l==='"'){r=!0,n+=l;continue}if(l==="/"&&u==="/"){i=!0,o+=1;continue}if(l==="/"&&u==="*"){s=!0,o+=1;continue}n+=l}return n}function FDe(e){return e.replace(/,\s*([}\]])/g,"$1")}function HDe(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,40)||"theme"}function NF(){if(typeof document>"u")return"vs";const e=document.documentElement;return e.dataset.monacoTheme??(e.classList.contains("dark")?Qw:"vs")}function _S(){const[e,n]=y.useState(NF);return y.useEffect(()=>{if(typeof document>"u")return;const r=document.documentElement,i=()=>n(NF());i();const s=new MutationObserver(i);return s.observe(r,{attributes:!0,attributeFilter:["class","data-monaco-theme"]}),()=>s.disconnect()},[]),e}const R9="jait:vscode-theme-store",_3=new Set;let bd=fte(),TF=!1;function hte(){if(typeof window>"u")return null;try{return window.localStorage}catch{return null}}function fte(){const e=hte();if(!e)return{importedThemes:[],activeThemeId:null};let n=null;try{n=e.getItem(R9)}catch{return{importedThemes:[],activeThemeId:null}}if(!n)return{importedThemes:[],activeThemeId:null};try{const r=JSON.parse(n),i=Array.isArray(r.importedThemes)?r.importedThemes.filter(a=>!!(a&&typeof a.id=="string"&&typeof a.monacoThemeName=="string")):[],s=typeof r.activeThemeId=="string"?r.activeThemeId:null;return{importedThemes:i,activeThemeId:i.some(a=>a.id===s)?s:null}}catch{return{importedThemes:[],activeThemeId:null}}}function M9(e){bd=e;const n=hte();if(n)try{n.setItem(R9,JSON.stringify(e))}catch{}for(const r of _3)r()}function WDe(e){return!TF&&typeof window<"u"&&(TF=!0,window.addEventListener("storage",n=>{if(n.key===R9){bd=fte();for(const r of _3)r()}})),_3.add(e),()=>_3.delete(e)}function EF(){return bd}function pte(){const e=y.useSyncExternalStore(WDe,EF,EF);return{...e,activeTheme:e.importedThemes.find(n=>n.id===e.activeThemeId)??null}}function mte(){return bd.importedThemes.find(e=>e.id===bd.activeThemeId)??null}function UDe(e,n){const r=`${Date.now().toString(36)}-${GDe(e+n)}`,i=EDe({id:r,sourceLabel:e,text:n});return M9({importedThemes:[...bd.importedThemes.filter(s=>s.id!==r),i],activeThemeId:r}),i}function M5(e){M9({...bd,activeThemeId:e&&bd.importedThemes.some(n=>n.id===e)?e:null})}function VDe(e){M9({importedThemes:bd.importedThemes.filter(n=>n.id!==e),activeThemeId:bd.activeThemeId===e?null:bd.activeThemeId})}function qDe(e){lte(e);const n=mte();n?ODe(e,n):TDe(e)}function Yl(e,n){var r,i;qDe(e),n&&((i=(r=e==null?void 0:e.editor)==null?void 0:r.setTheme)==null||i.call(r,n))}function GDe(e){let n=0;for(let r=0;r<e.length;r+=1)n=(n<<5)-n+e.charCodeAt(r)|0;return Math.abs(n).toString(36)}function Hy(e,n){return Math.max(1,e||n||1)}function e2({original:e,modified:n,language:r,modelKey:i,className:s,editorClassName:a,renderSideBySide:o=!1,emptyMessage:l="Files are identical.",options:u}){const d=y.useRef(null),h=y.useRef(null),f=y.useRef(null),m=y.useRef(null),x=y.useRef({original:null,modified:null}),[v,_]=y.useState(!1),[w,S]=y.useState([]),[C,j]=y.useState(0),T=_S(),E=y.useRef(T);y.useEffect(()=>{E.current=T},[T]);const N=y.useMemo(()=>`inmemory://jait-diff/${encodeURIComponent(i??`${r}:${e.length}:${n.length}`)}`,[r,i,n.length,e.length]),R=y.useMemo(()=>({readOnly:!0,renderSideBySide:o,minimap:{enabled:!1},"semanticHighlighting.enabled":!0,fontSize:13,automaticLayout:!0,scrollBeyondLastLine:!1,renderOverviewRuler:!0,ignoreTrimWhitespace:!1,...u}),[u,o]),$=y.useCallback(()=>{var D;const B=h.current;if(!B)return;const W=((D=B.getLineChanges)==null?void 0:D.call(B))??[];S(W.map(O=>({originalStartLineNumber:O.originalStartLineNumber,originalEndLineNumber:O.originalEndLineNumber,modifiedStartLineNumber:O.modifiedStartLineNumber,modifiedEndLineNumber:O.modifiedEndLineNumber})))},[]);y.useEffect(()=>{let B=!1;const W=z4.init();return W.then(D=>{if(B||!d.current)return;f.current=D,Yl(D,E.current);const O=D.editor.createDiffEditor(d.current,{automaticLayout:!0,...R});h.current=O,m.current=O.onDidUpdateDiff(()=>$()),_(!0),$()}).catch(D=>{!B&&(D==null?void 0:D.type)!=="cancelation"&&console.error("Monaco initialization: error:",D)}),()=>{var z,M,L,I,G,q;B=!0,(z=m.current)==null||z.dispose(),m.current=null;const D=h.current,O=x.current;try{D==null||D.setModel(null)}catch{}(M=D==null?void 0:D.dispose)==null||M.call(D),(I=(L=O.original)==null?void 0:L.dispose)==null||I.call(L),(q=(G=O.modified)==null?void 0:G.dispose)==null||q.call(G),x.current={original:null,modified:null},h.current=null,f.current=null,_(!1),W.cancel()}},[$]),y.useEffect(()=>{j(0)},[e,n,r]),y.useEffect(()=>{var I,G;const B=h.current,W=f.current;if(!v||!B||!W)return;const D=x.current,O=W.Uri.parse(`${N}.original`),z=W.Uri.parse(`${N}.modified`);(I=W.editor.getModel(O))==null||I.dispose(),(G=W.editor.getModel(z))==null||G.dispose();const M=W.editor.createModel(e,r,O),L=W.editor.createModel(n,r,z);return B.setModel({original:M,modified:L}),x.current={original:M,modified:L},$(),()=>{var q,F,X,V;try{B.setModel(null)}catch{}(F=(q=D.original)==null?void 0:q.dispose)==null||F.call(q),(V=(X=D.modified)==null?void 0:X.dispose)==null||V.call(X),M.dispose(),L.dispose(),(x.current.original===M||x.current.modified===L)&&(x.current={original:null,modified:null})}},[v,r,N,n,e,$]),y.useEffect(()=>{const B=f.current;B&&Yl(B,T)},[T]),y.useEffect(()=>{var B,W;(W=(B=h.current)==null?void 0:B.updateOptions)==null||W.call(B,R)},[R]),y.useEffect(()=>{w.length!==0&&j(B=>Math.min(B,w.length-1))},[w]),y.useEffect(()=>{const B=h.current;if(!B||w.length===0)return;const W=w[C];if(!W)return;const D=B.getModifiedEditor(),O=B.getOriginalEditor();try{W.modifiedStartLineNumber>0||W.modifiedEndLineNumber>0?D.revealLineInCenter(Hy(W.modifiedStartLineNumber,W.modifiedEndLineNumber)):O.revealLineInCenter(Hy(W.originalStartLineNumber,W.originalEndLineNumber))}catch{}},[C,w]),y.useEffect(()=>{const B=h.current,W=f.current;if(!B||!W||w.length===0)return;const D=w[C];if(!D)return;const O=[];(D.originalStartLineNumber>0||D.originalEndLineNumber>0)&&O.push({editor:B.getOriginalEditor(),range:new W.Range(Hy(D.originalStartLineNumber,D.originalEndLineNumber),1,Hy(D.originalEndLineNumber,D.originalStartLineNumber),1)}),(D.modifiedStartLineNumber>0||D.modifiedEndLineNumber>0)&&O.push({editor:B.getModifiedEditor(),range:new W.Range(Hy(D.modifiedStartLineNumber,D.modifiedEndLineNumber),1,Hy(D.modifiedEndLineNumber,D.modifiedStartLineNumber),1)});const z=O.map(({editor:M,range:L})=>M.deltaDecorations([],[{range:L,options:{isWholeLine:!0,className:"diff-change-active"}}]));return()=>{var M;for(let L=0;L<O.length;L++)try{(M=O[L])==null||M.editor.deltaDecorations(z[L]??[],[])}catch{}}},[C,w]);const U=y.useCallback(()=>{j(B=>Math.max(B-1,0))},[]),H=y.useCallback(()=>{j(B=>Math.min(B+1,w.length-1))},[w.length]);return c.jsxs("div",{className:je("relative min-h-0",s),children:[c.jsx("div",{className:je("h-full min-h-0",a),children:c.jsx("div",{ref:d,className:"h-full min-h-0"})}),!v&&c.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-sm text-muted-foreground",children:"Loading diff..."}),w.length>1&&c.jsxs("div",{className:"absolute right-3 top-1/2 z-10 flex -translate-y-1/2 flex-col gap-1.5",children:[c.jsx(ye,{size:"sm",variant:"secondary",className:"h-9 w-9 rounded-full border bg-background/90 p-0 shadow-lg backdrop-blur-sm hover:bg-background",onClick:U,disabled:C===0,title:"Previous change",children:c.jsx(nM,{className:"h-5 w-5"})}),c.jsxs("span",{className:"text-center font-medium tabular-nums text-2xs text-muted-foreground",children:[C+1,"/",w.length]}),c.jsx(ye,{size:"sm",variant:"secondary",className:"h-9 w-9 rounded-full border bg-background/90 p-0 shadow-lg backdrop-blur-sm hover:bg-background",onClick:H,disabled:C===w.length-1,title:"Next change",children:c.jsx(fl,{className:"h-5 w-5"})})]}),w.length===0&&e===n&&v&&c.jsx("div",{className:"pointer-events-none absolute inset-x-3 bottom-3 rounded-md border bg-background/90 px-3 py-2 text-center text-xs text-muted-foreground shadow-sm",children:l}),c.jsx("style",{children:`
|
|
964
964
|
.diff-change-active { outline: 1px solid rgba(99, 102, 241, 0.5); outline-offset: -1px; }
|
|
965
965
|
`})]})}var KDe={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},vE=KDe,YDe={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},XDe=YDe;function JDe({children:e}){return Ht.createElement("div",{style:XDe.container},e)}var ZDe=JDe,QDe=ZDe;function eIe({width:e,height:n,isEditorReady:r,loading:i,_ref:s,className:a,wrapperProps:o}){return Ht.createElement("section",{style:{...vE.wrapper,width:e,height:n},...o},!r&&Ht.createElement(QDe,null,i),Ht.createElement("div",{ref:s,style:{...vE.fullWidth,...!r&&vE.hide},className:a}))}var tIe=eIe,gte=y.memo(tIe);function nIe(e){y.useEffect(e,[])}var yte=nIe;function rIe(e,n,r=!0){let i=y.useRef(!0);y.useEffect(i.current||!r?()=>{i.current=!1}:e,n)}var wc=rIe;function y_(){}function cx(e,n,r,i){return iIe(e,i)||sIe(e,n,r,i)}function iIe(e,n){return e.editor.getModel(xte(e,n))}function sIe(e,n,r,i){return e.editor.createModel(n,r,i?xte(e,i):void 0)}function xte(e,n){return e.Uri.parse(n)}function aIe({original:e,modified:n,language:r,originalLanguage:i,modifiedLanguage:s,originalModelPath:a,modifiedModelPath:o,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:u=!1,theme:d="light",loading:h="Loading...",options:f={},height:m="100%",width:x="100%",className:v,wrapperProps:_={},beforeMount:w=y_,onMount:S=y_}){let[C,j]=y.useState(!1),[T,E]=y.useState(!0),N=y.useRef(null),R=y.useRef(null),$=y.useRef(null),U=y.useRef(S),H=y.useRef(w),B=y.useRef(!1);yte(()=>{let z=z4.init();return z.then(M=>(R.current=M)&&E(!1)).catch(M=>(M==null?void 0:M.type)!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>N.current?O():z.cancel()}),wc(()=>{if(N.current&&R.current){let z=N.current.getOriginalEditor(),M=cx(R.current,e||"",i||r||"text",a||"");M!==z.getModel()&&z.setModel(M)}},[a],C),wc(()=>{if(N.current&&R.current){let z=N.current.getModifiedEditor(),M=cx(R.current,n||"",s||r||"text",o||"");M!==z.getModel()&&z.setModel(M)}},[o],C),wc(()=>{let z=N.current.getModifiedEditor();z.getOption(R.current.editor.EditorOption.readOnly)?z.setValue(n||""):n!==z.getValue()&&(z.executeEdits("",[{range:z.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),z.pushUndoStop())},[n],C),wc(()=>{var z,M;(M=(z=N.current)==null?void 0:z.getModel())==null||M.original.setValue(e||"")},[e],C),wc(()=>{let{original:z,modified:M}=N.current.getModel();R.current.editor.setModelLanguage(z,i||r||"text"),R.current.editor.setModelLanguage(M,s||r||"text")},[r,i,s],C),wc(()=>{var z;(z=R.current)==null||z.editor.setTheme(d)},[d],C),wc(()=>{var z;(z=N.current)==null||z.updateOptions(f)},[f],C);let W=y.useCallback(()=>{var L;if(!R.current)return;H.current(R.current);let z=cx(R.current,e||"",i||r||"text",a||""),M=cx(R.current,n||"",s||r||"text",o||"");(L=N.current)==null||L.setModel({original:z,modified:M})},[r,n,s,e,i,a,o]),D=y.useCallback(()=>{var z;!B.current&&$.current&&(N.current=R.current.editor.createDiffEditor($.current,{automaticLayout:!0,...f}),W(),(z=R.current)==null||z.editor.setTheme(d),j(!0),B.current=!0)},[f,d,W]);y.useEffect(()=>{C&&U.current(N.current,R.current)},[C]),y.useEffect(()=>{!T&&!C&&D()},[T,C,D]);function O(){var M,L,I,G;let z=(M=N.current)==null?void 0:M.getModel();l||((L=z==null?void 0:z.original)==null||L.dispose()),u||((I=z==null?void 0:z.modified)==null||I.dispose()),(G=N.current)==null||G.dispose()}return Ht.createElement(gte,{width:x,height:m,isEditorReady:C,loading:h,_ref:$,className:v,wrapperProps:_})}var oIe=aIe,lIe=y.memo(oIe);function cIe(e){let n=y.useRef();return y.useEffect(()=>{n.current=e},[e]),n.current}var uIe=cIe,mC=new Map;function dIe({defaultValue:e,defaultLanguage:n,defaultPath:r,value:i,language:s,path:a,theme:o="light",line:l,loading:u="Loading...",options:d={},overrideServices:h={},saveViewState:f=!0,keepCurrentModel:m=!1,width:x="100%",height:v="100%",className:_,wrapperProps:w={},beforeMount:S=y_,onMount:C=y_,onChange:j,onValidate:T=y_}){let[E,N]=y.useState(!1),[R,$]=y.useState(!0),U=y.useRef(null),H=y.useRef(null),B=y.useRef(null),W=y.useRef(C),D=y.useRef(S),O=y.useRef(),z=y.useRef(i),M=uIe(a),L=y.useRef(!1),I=y.useRef(!1);yte(()=>{let F=z4.init();return F.then(X=>(U.current=X)&&$(!1)).catch(X=>(X==null?void 0:X.type)!=="cancelation"&&console.error("Monaco initialization: error:",X)),()=>H.current?q():F.cancel()}),wc(()=>{var X,V,ne,J;let F=cx(U.current,e||i||"",n||s||"",a||r||"");F!==((X=H.current)==null?void 0:X.getModel())&&(f&&mC.set(M,(V=H.current)==null?void 0:V.saveViewState()),(ne=H.current)==null||ne.setModel(F),f&&((J=H.current)==null||J.restoreViewState(mC.get(a))))},[a],E),wc(()=>{var F;(F=H.current)==null||F.updateOptions(d)},[d],E),wc(()=>{!H.current||i===void 0||(H.current.getOption(U.current.editor.EditorOption.readOnly)?H.current.setValue(i):i!==H.current.getValue()&&(I.current=!0,H.current.executeEdits("",[{range:H.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),H.current.pushUndoStop(),I.current=!1))},[i],E),wc(()=>{var X,V;let F=(X=H.current)==null?void 0:X.getModel();F&&s&&((V=U.current)==null||V.editor.setModelLanguage(F,s))},[s],E),wc(()=>{var F;l!==void 0&&((F=H.current)==null||F.revealLine(l))},[l],E),wc(()=>{var F;(F=U.current)==null||F.editor.setTheme(o)},[o],E);let G=y.useCallback(()=>{var F;if(!(!B.current||!U.current)&&!L.current){D.current(U.current);let X=a||r,V=cx(U.current,i||e||"",n||s||"",X||"");H.current=(F=U.current)==null?void 0:F.editor.create(B.current,{model:V,automaticLayout:!0,...d},h),f&&H.current.restoreViewState(mC.get(X)),U.current.editor.setTheme(o),l!==void 0&&H.current.revealLine(l),N(!0),L.current=!0}},[e,n,r,i,s,a,d,h,f,o,l]);y.useEffect(()=>{E&&W.current(H.current,U.current)},[E]),y.useEffect(()=>{!R&&!E&&G()},[R,E,G]),z.current=i,y.useEffect(()=>{var F,X;E&&j&&((F=O.current)==null||F.dispose(),O.current=(X=H.current)==null?void 0:X.onDidChangeModelContent(V=>{I.current||j(H.current.getValue(),V)}))},[E,j]),y.useEffect(()=>{if(E){let F=U.current.editor.onDidChangeMarkers(X=>{var ne;let V=(ne=H.current.getModel())==null?void 0:ne.uri;if(V&&X.find(J=>J.path===V.path)){let J=U.current.editor.getModelMarkers({resource:V});T==null||T(J)}});return()=>{F==null||F.dispose()}}return()=>{}},[E,T]);function q(){var F,X;(F=O.current)==null||F.dispose(),m?f&&mC.set(a,H.current.saveViewState()):(X=H.current.getModel())==null||X.dispose(),H.current.dispose()}return Ht.createElement(gte,{width:x,height:v,isEditorReady:E,loading:u,_ref:B,className:_,wrapperProps:w})}var hIe=dIe,fIe=y.memo(hIe),wS=fIe;const pIe=Nr();function mIe(){return If()}function gIe(e=!1){const n={};e&&(n["Content-Type"]="application/json");const r=mIe();return r&&(n.Authorization=`Bearer ${r}`),n}async function Hi(e,n){const r=await fetch(`${pIe}/api/git/${e}`,{method:"POST",headers:gIe(!0),body:JSON.stringify(n)});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error||`Git ${e} failed: ${r.statusText}`)}return r.json()}const Cs={status(e,n){return Hi("status",{cwd:e,...n?{branch:n}:{}})},listBranches(e){return Hi("branches",{cwd:e})},pull(e){return Hi("pull",{cwd:e})},sync(e){return Hi("sync",{cwd:e})},fetch(e,n=!1){return Hi("fetch",{cwd:e,all:n})},runStackedAction(e,n,r){return Hi("run-stacked-action",{cwd:e,action:n,...r!=null&&r.commitMessage?{commitMessage:r.commitMessage}:{},...r!=null&&r.featureBranch?{featureBranch:!0}:{},...r!=null&&r.baseBranch?{baseBranch:r.baseBranch}:{}})},checkout(e,n){return Hi("checkout",{cwd:e,branch:n})},createBranch(e,n,r){return Hi("create-branch",{cwd:e,branch:n,baseBranch:r})},discard(e,n){return Hi("discard",{cwd:e,paths:n})},stage(e,n){return Hi("stage",{cwd:e,paths:n})},unstage(e,n){return Hi("unstage",{cwd:e,paths:n})},init(e){return Hi("init",{cwd:e})},diff(e){return Hi("diff",{cwd:e})},diffStats(e,n,r){return Hi("diff-stats",{cwd:e,...n?{baseBranch:n}:{},...r?{branch:r}:{}})},fileDiffs(e,n,r){return Hi("file-diffs",{cwd:e,...n?{baseBranch:n}:{},...r?{branch:r}:{}}).then(i=>i.files)},createWorktree(e,n,r,i){return Hi("create-worktree",{cwd:e,baseBranch:n,newBranch:r,...i?{path:i}:{}})},removeWorktree(e,n,r=!1){return Hi("remove-worktree",{cwd:e,path:n,force:r})},ghStatus(e){return Hi("gh-status",{...e?{cwd:e}:{}})},ghAuth(e,n){return Hi("gh-auth",{token:e,...n?{cwd:n}:{}})},forgeStatus(e,n){return Hi("forge-status",{...e?{cwd:e}:{},...n?{remoteUrl:n}:{}})},forgeAuth(e,n,r){return Hi("forge-auth",{token:e,...n?{cwd:n}:{},...r?{remoteUrl:r}:{}})},forgePrChecks(e,n,r){return Hi("forge-pr-checks",{cwd:e,branch:n,...r?{remoteUrl:r}:{}})},identity(e){return Hi("identity",{cwd:e})},setIdentity(e,n,r){return Hi("identity",{cwd:e,name:n,email:r})},prChecks(e,n){return Hi("pr-checks",{cwd:e,branch:n})},generateCommitMessage(e,n,r){return Hi("generate-commit-message",{cwd:e,...n?{provider:n}:{},...r?{model:r}:{}})}};var vte=Object.defineProperty,Y=(e,n)=>vte(e,"name",{value:n,configurable:!0}),yIe=(e,n)=>{for(var r in n)vte(e,r,{get:n[r],enumerable:!0})},Nf={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},At={trace:Y((...e)=>{},"trace"),debug:Y((...e)=>{},"debug"),info:Y((...e)=>{},"info"),warn:Y((...e)=>{},"warn"),error:Y((...e)=>{},"error"),fatal:Y((...e)=>{},"fatal")},P9=Y(function(e="fatal"){let n=Nf.fatal;typeof e=="string"?e.toLowerCase()in Nf&&(n=Nf[e]):typeof e=="number"&&(n=e),At.trace=()=>{},At.debug=()=>{},At.info=()=>{},At.warn=()=>{},At.error=()=>{},At.fatal=()=>{},n<=Nf.fatal&&(At.fatal=console.error?console.error.bind(console,iu("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",iu("FATAL"))),n<=Nf.error&&(At.error=console.error?console.error.bind(console,iu("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",iu("ERROR"))),n<=Nf.warn&&(At.warn=console.warn?console.warn.bind(console,iu("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",iu("WARN"))),n<=Nf.info&&(At.info=console.info?console.info.bind(console,iu("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",iu("INFO"))),n<=Nf.debug&&(At.debug=console.debug?console.debug.bind(console,iu("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",iu("DEBUG"))),n<=Nf.trace&&(At.trace=console.debug?console.debug.bind(console,iu("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",iu("TRACE")))},"setLogLevel"),iu=Y(e=>`%c${MAe().format("ss.SSS")} : ${e} : `,"format");const w3={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const n=e/255;return e>.03928?Math.pow((n+.055)/1.055,2.4):n/12.92},hue2rgb:(e,n,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:n,l:r},i)=>{if(!n)return r*2.55;e/=360,n/=100,r/=100;const s=r<.5?r*(1+n):r+n-r*n,a=2*r-s;switch(i){case"r":return w3.hue2rgb(a,s,e+1/3)*255;case"g":return w3.hue2rgb(a,s,e)*255;case"b":return w3.hue2rgb(a,s,e-1/3)*255}},rgb2hsl:({r:e,g:n,b:r},i)=>{e/=255,n/=255,r/=255;const s=Math.max(e,n,r),a=Math.min(e,n,r),o=(s+a)/2;if(i==="l")return o*100;if(s===a)return 0;const l=s-a,u=o>.5?l/(2-s-a):l/(s+a);if(i==="s")return u*100;switch(s){case e:return((n-r)/l+(n<r?6:0))*60;case n:return((r-e)/l+2)*60;case r:return((e-n)/l+4)*60;default:return-1}}},xIe={clamp:(e,n,r)=>n>r?Math.min(n,Math.max(r,e)):Math.min(r,Math.max(n,e)),round:e=>Math.round(e*1e10)/1e10},vIe={dec2hex:e=>{const n=Math.round(e).toString(16);return n.length>1?n:`0${n}`}},gr={channel:w3,lang:xIe,unit:vIe},hm={};for(let e=0;e<=255;e++)hm[e]=gr.unit.dec2hex(e);const Oo={ALL:0,RGB:1,HSL:2};class bIe{constructor(){this.type=Oo.ALL}get(){return this.type}set(n){if(this.type&&this.type!==n)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=n}reset(){this.type=Oo.ALL}is(n){return this.type===n}}class _Ie{constructor(n,r){this.color=r,this.changed=!1,this.data=n,this.type=new bIe}set(n,r){return this.color=r,this.changed=!1,this.data=n,this.type.type=Oo.ALL,this}_ensureHSL(){const n=this.data,{h:r,s:i,l:s}=n;r===void 0&&(n.h=gr.channel.rgb2hsl(n,"h")),i===void 0&&(n.s=gr.channel.rgb2hsl(n,"s")),s===void 0&&(n.l=gr.channel.rgb2hsl(n,"l"))}_ensureRGB(){const n=this.data,{r,g:i,b:s}=n;r===void 0&&(n.r=gr.channel.hsl2rgb(n,"r")),i===void 0&&(n.g=gr.channel.hsl2rgb(n,"g")),s===void 0&&(n.b=gr.channel.hsl2rgb(n,"b"))}get r(){const n=this.data,r=n.r;return!this.type.is(Oo.HSL)&&r!==void 0?r:(this._ensureHSL(),gr.channel.hsl2rgb(n,"r"))}get g(){const n=this.data,r=n.g;return!this.type.is(Oo.HSL)&&r!==void 0?r:(this._ensureHSL(),gr.channel.hsl2rgb(n,"g"))}get b(){const n=this.data,r=n.b;return!this.type.is(Oo.HSL)&&r!==void 0?r:(this._ensureHSL(),gr.channel.hsl2rgb(n,"b"))}get h(){const n=this.data,r=n.h;return!this.type.is(Oo.RGB)&&r!==void 0?r:(this._ensureRGB(),gr.channel.rgb2hsl(n,"h"))}get s(){const n=this.data,r=n.s;return!this.type.is(Oo.RGB)&&r!==void 0?r:(this._ensureRGB(),gr.channel.rgb2hsl(n,"s"))}get l(){const n=this.data,r=n.l;return!this.type.is(Oo.RGB)&&r!==void 0?r:(this._ensureRGB(),gr.channel.rgb2hsl(n,"l"))}get a(){return this.data.a}set r(n){this.type.set(Oo.RGB),this.changed=!0,this.data.r=n}set g(n){this.type.set(Oo.RGB),this.changed=!0,this.data.g=n}set b(n){this.type.set(Oo.RGB),this.changed=!0,this.data.b=n}set h(n){this.type.set(Oo.HSL),this.changed=!0,this.data.h=n}set s(n){this.type.set(Oo.HSL),this.changed=!0,this.data.s=n}set l(n){this.type.set(Oo.HSL),this.changed=!0,this.data.l=n}set a(n){this.changed=!0,this.data.a=n}}const F4=new _Ie({r:0,g:0,b:0,a:0},"transparent"),kx={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const n=e.match(kx.re);if(!n)return;const r=n[1],i=parseInt(r,16),s=r.length,a=s%4===0,o=s>4,l=o?1:17,u=o?8:4,d=a?0:-1,h=o?255:15;return F4.set({r:(i>>u*(d+3)&h)*l,g:(i>>u*(d+2)&h)*l,b:(i>>u*(d+1)&h)*l,a:a?(i&h)*l/255:1},e)},stringify:e=>{const{r:n,g:r,b:i,a:s}=e;return s<1?`#${hm[Math.round(n)]}${hm[Math.round(r)]}${hm[Math.round(i)]}${hm[Math.round(s*255)]}`:`#${hm[Math.round(n)]}${hm[Math.round(r)]}${hm[Math.round(i)]}`}},t0={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const n=e.match(t0.hueRe);if(n){const[,r,i]=n;switch(i){case"grad":return gr.channel.clamp.h(parseFloat(r)*.9);case"rad":return gr.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return gr.channel.clamp.h(parseFloat(r)*360)}}return gr.channel.clamp.h(parseFloat(e))},parse:e=>{const n=e.charCodeAt(0);if(n!==104&&n!==72)return;const r=e.match(t0.re);if(!r)return;const[,i,s,a,o,l]=r;return F4.set({h:t0._hue2deg(i),s:gr.channel.clamp.s(parseFloat(s)),l:gr.channel.clamp.l(parseFloat(a)),a:o?gr.channel.clamp.a(l?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:n,s:r,l:i,a:s}=e;return s<1?`hsla(${gr.lang.round(n)}, ${gr.lang.round(r)}%, ${gr.lang.round(i)}%, ${s})`:`hsl(${gr.lang.round(n)}, ${gr.lang.round(r)}%, ${gr.lang.round(i)}%)`}},x_={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const n=x_.colors[e];if(n)return kx.parse(n)},stringify:e=>{const n=kx.stringify(e);for(const r in x_.colors)if(x_.colors[r]===n)return r}},Fb={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const n=e.charCodeAt(0);if(n!==114&&n!==82)return;const r=e.match(Fb.re);if(!r)return;const[,i,s,a,o,l,u,d,h]=r;return F4.set({r:gr.channel.clamp.r(s?parseFloat(i)*2.55:parseFloat(i)),g:gr.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:gr.channel.clamp.b(u?parseFloat(l)*2.55:parseFloat(l)),a:d?gr.channel.clamp.a(h?parseFloat(d)/100:parseFloat(d)):1},e)},stringify:e=>{const{r:n,g:r,b:i,a:s}=e;return s<1?`rgba(${gr.lang.round(n)}, ${gr.lang.round(r)}, ${gr.lang.round(i)}, ${gr.lang.round(s)})`:`rgb(${gr.lang.round(n)}, ${gr.lang.round(r)}, ${gr.lang.round(i)})`}},Rh={format:{keyword:x_,hex:kx,rgb:Fb,rgba:Fb,hsl:t0,hsla:t0},parse:e=>{if(typeof e!="string")return e;const n=kx.parse(e)||Fb.parse(e)||t0.parse(e)||x_.parse(e);if(n)return n;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Oo.HSL)||e.data.r===void 0?t0.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Fb.stringify(e):kx.stringify(e)},bte=(e,n)=>{const r=Rh.parse(e);for(const i in n)r[i]=gr.channel.clamp[i](n[i]);return Rh.stringify(r)},v_=(e,n,r=0,i=1)=>{if(typeof e!="number")return bte(e,{a:n});const s=F4.set({r:gr.channel.clamp.r(e),g:gr.channel.clamp.g(n),b:gr.channel.clamp.b(r),a:gr.channel.clamp.a(i)});return Rh.stringify(s)},wIe=e=>{const{r:n,g:r,b:i}=Rh.parse(e),s=.2126*gr.channel.toLinear(n)+.7152*gr.channel.toLinear(r)+.0722*gr.channel.toLinear(i);return gr.lang.round(s)},SIe=e=>wIe(e)>=.5,SS=e=>!SIe(e),_te=(e,n,r)=>{const i=Rh.parse(e),s=i[n],a=gr.channel.clamp[n](s+r);return s!==a&&(i[n]=a),Rh.stringify(i)},En=(e,n)=>_te(e,"l",n),Kn=(e,n)=>_te(e,"l",-n),Ie=(e,n)=>{const r=Rh.parse(e),i={};for(const s in n)n[s]&&(i[s]=r[s]+n[s]);return bte(e,i)},kIe=(e,n,r=50)=>{const{r:i,g:s,b:a,a:o}=Rh.parse(e),{r:l,g:u,b:d,a:h}=Rh.parse(n),f=r/100,m=f*2-1,x=o-h,_=((m*x===-1?m:(m+x)/(1+m*x))+1)/2,w=1-_,S=i*_+l*w,C=s*_+u*w,j=a*_+d*w,T=o*f+h*(1-f);return v_(S,C,j,T)},an=(e,n=100)=>{const r=Rh.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,kIe(r,e,n)};/*! @license DOMPurify 3.3.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.2/LICENSE */const{entries:wte,setPrototypeOf:AF,isFrozen:CIe,getPrototypeOf:jIe,getOwnPropertyDescriptor:NIe}=Object;let{freeze:dl,seal:Tu,create:S3}=Object,{apply:UA,construct:VA}=typeof Reflect<"u"&&Reflect;dl||(dl=function(n){return n});Tu||(Tu=function(n){return n});UA||(UA=function(n,r){for(var i=arguments.length,s=new Array(i>2?i-2:0),a=2;a<i;a++)s[a-2]=arguments[a];return n.apply(r,s)});VA||(VA=function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return new n(...i)});const gC=hl(Array.prototype.forEach),TIe=hl(Array.prototype.lastIndexOf),OF=hl(Array.prototype.pop),Yv=hl(Array.prototype.push),EIe=hl(Array.prototype.splice),k3=hl(String.prototype.toLowerCase),bE=hl(String.prototype.toString),_E=hl(String.prototype.match),Xv=hl(String.prototype.replace),AIe=hl(String.prototype.indexOf),OIe=hl(String.prototype.trim),xc=hl(Object.prototype.hasOwnProperty),Qo=hl(RegExp.prototype.test),Jv=RIe(TypeError);function hl(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return UA(e,n,i)}}function RIe(e){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return VA(e,r)}}function Ir(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k3;AF&&AF(e,null);let i=n.length;for(;i--;){let s=n[i];if(typeof s=="string"){const a=r(s);a!==s&&(CIe(n)||(n[i]=a),s=a)}e[s]=!0}return e}function MIe(e){for(let n=0;n<e.length;n++)xc(e,n)||(e[n]=null);return e}function ch(e){const n=S3(null);for(const[r,i]of wte(e))xc(e,r)&&(Array.isArray(i)?n[r]=MIe(i):i&&typeof i=="object"&&i.constructor===Object?n[r]=ch(i):n[r]=i);return n}function Zv(e,n){for(;e!==null;){const i=NIe(e,n);if(i){if(i.get)return hl(i.get);if(typeof i.value=="function")return hl(i.value)}e=jIe(e)}function r(){return null}return r}const RF=dl(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),wE=dl(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),SE=dl(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),PIe=dl(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),kE=dl(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),LIe=dl(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),MF=dl(["#text"]),PF=dl(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),CE=dl(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),LF=dl(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),yC=dl(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$Ie=Tu(/\{\{[\w\W]*|[\w\W]*\}\}/gm),DIe=Tu(/<%[\w\W]*|[\w\W]*%>/gm),IIe=Tu(/\$\{[\w\W]*/gm),BIe=Tu(/^data-[\-\w.\u00B7-\uFFFF]+$/),zIe=Tu(/^aria-[\-\w]+$/),Ste=Tu(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),FIe=Tu(/^(?:\w+script|data):/i),HIe=Tu(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),kte=Tu(/^html$/i),WIe=Tu(/^[a-z][.\w]*(-[.\w]+)+$/i);var $F=Object.freeze({__proto__:null,ARIA_ATTR:zIe,ATTR_WHITESPACE:HIe,CUSTOM_ELEMENT:WIe,DATA_ATTR:BIe,DOCTYPE_NAME:kte,ERB_EXPR:DIe,IS_ALLOWED_URI:Ste,IS_SCRIPT_OR_DATA:FIe,MUSTACHE_EXPR:$Ie,TMPLIT_EXPR:IIe});const Qv={element:1,text:3,progressingInstruction:7,comment:8,document:9},UIe=function(){return typeof window>"u"?null:window},VIe=function(n,r){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let i=null;const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(i=r.getAttribute(s));const a="dompurify"+(i?"#"+i:"");try{return n.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},DF=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Cte(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:UIe();const n=_t=>Cte(_t);if(n.version="3.3.2",n.removed=[],!e||!e.document||e.document.nodeType!==Qv.document||!e.Element)return n.isSupported=!1,n;let{document:r}=e;const i=r,s=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:l,Element:u,NodeFilter:d,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:x}=e,v=u.prototype,_=Zv(v,"cloneNode"),w=Zv(v,"remove"),S=Zv(v,"nextSibling"),C=Zv(v,"childNodes"),j=Zv(v,"parentNode");if(typeof o=="function"){const _t=r.createElement("template");_t.content&&_t.content.ownerDocument&&(r=_t.content.ownerDocument)}let T,E="";const{implementation:N,createNodeIterator:R,createDocumentFragment:$,getElementsByTagName:U}=r,{importNode:H}=i;let B=DF();n.isSupported=typeof wte=="function"&&typeof j=="function"&&N&&N.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:W,ERB_EXPR:D,TMPLIT_EXPR:O,DATA_ATTR:z,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:I,CUSTOM_ELEMENT:G}=$F;let{IS_ALLOWED_URI:q}=$F,F=null;const X=Ir({},[...RF,...wE,...SE,...kE,...MF]);let V=null;const ne=Ir({},[...PF,...CE,...LF,...yC]);let J=Object.seal(S3(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),te=null,re=null;const Q=Object.seal(S3(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ue=!0,ge=!0,se=!1,oe=!0,ve=!1,_e=!0,Ae=!1,Ke=!1,ot=!1,Nt=!1,$t=!1,en=!1,on=!0,Vt=!1;const Gt="user-content-";let Et=!0,_n=!1,xe={},pe=null;const ze=Ir({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ft=null;const Je=Ir({},["audio","video","img","source","image","track"]);let ht=null;const yt=Ir({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),St="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let lt=Fe,et=!1,Be=null;const ke=Ir({},[St,We,Fe],bE);let we=Ir({},["mi","mo","mn","ms","mtext"]),Ge=Ir({},["annotation-xml"]);const rt=Ir({},["title","style","font","a","script"]);let Ze=null;const Ye=["application/xhtml+xml","text/html"],ut="text/html";let xt=null,zt=null;const rn=r.createElement("form"),sn=function(ie){return ie instanceof RegExp||ie instanceof Function},dt=function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(zt&&zt===ie)){if((!ie||typeof ie!="object")&&(ie={}),ie=ch(ie),Ze=Ye.indexOf(ie.PARSER_MEDIA_TYPE)===-1?ut:ie.PARSER_MEDIA_TYPE,xt=Ze==="application/xhtml+xml"?bE:k3,F=xc(ie,"ALLOWED_TAGS")?Ir({},ie.ALLOWED_TAGS,xt):X,V=xc(ie,"ALLOWED_ATTR")?Ir({},ie.ALLOWED_ATTR,xt):ne,Be=xc(ie,"ALLOWED_NAMESPACES")?Ir({},ie.ALLOWED_NAMESPACES,bE):ke,ht=xc(ie,"ADD_URI_SAFE_ATTR")?Ir(ch(yt),ie.ADD_URI_SAFE_ATTR,xt):yt,ft=xc(ie,"ADD_DATA_URI_TAGS")?Ir(ch(Je),ie.ADD_DATA_URI_TAGS,xt):Je,pe=xc(ie,"FORBID_CONTENTS")?Ir({},ie.FORBID_CONTENTS,xt):ze,te=xc(ie,"FORBID_TAGS")?Ir({},ie.FORBID_TAGS,xt):ch({}),re=xc(ie,"FORBID_ATTR")?Ir({},ie.FORBID_ATTR,xt):ch({}),xe=xc(ie,"USE_PROFILES")?ie.USE_PROFILES:!1,ue=ie.ALLOW_ARIA_ATTR!==!1,ge=ie.ALLOW_DATA_ATTR!==!1,se=ie.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=ie.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ve=ie.SAFE_FOR_TEMPLATES||!1,_e=ie.SAFE_FOR_XML!==!1,Ae=ie.WHOLE_DOCUMENT||!1,Nt=ie.RETURN_DOM||!1,$t=ie.RETURN_DOM_FRAGMENT||!1,en=ie.RETURN_TRUSTED_TYPE||!1,ot=ie.FORCE_BODY||!1,on=ie.SANITIZE_DOM!==!1,Vt=ie.SANITIZE_NAMED_PROPS||!1,Et=ie.KEEP_CONTENT!==!1,_n=ie.IN_PLACE||!1,q=ie.ALLOWED_URI_REGEXP||Ste,lt=ie.NAMESPACE||Fe,we=ie.MATHML_TEXT_INTEGRATION_POINTS||we,Ge=ie.HTML_INTEGRATION_POINTS||Ge,J=ie.CUSTOM_ELEMENT_HANDLING||{},ie.CUSTOM_ELEMENT_HANDLING&&sn(ie.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(J.tagNameCheck=ie.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ie.CUSTOM_ELEMENT_HANDLING&&sn(ie.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(J.attributeNameCheck=ie.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ie.CUSTOM_ELEMENT_HANDLING&&typeof ie.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(J.allowCustomizedBuiltInElements=ie.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve&&(ge=!1),$t&&(Nt=!0),xe&&(F=Ir({},MF),V=S3(null),xe.html===!0&&(Ir(F,RF),Ir(V,PF)),xe.svg===!0&&(Ir(F,wE),Ir(V,CE),Ir(V,yC)),xe.svgFilters===!0&&(Ir(F,SE),Ir(V,CE),Ir(V,yC)),xe.mathMl===!0&&(Ir(F,kE),Ir(V,LF),Ir(V,yC))),xc(ie,"ADD_TAGS")||(Q.tagCheck=null),xc(ie,"ADD_ATTR")||(Q.attributeCheck=null),ie.ADD_TAGS&&(typeof ie.ADD_TAGS=="function"?Q.tagCheck=ie.ADD_TAGS:(F===X&&(F=ch(F)),Ir(F,ie.ADD_TAGS,xt))),ie.ADD_ATTR&&(typeof ie.ADD_ATTR=="function"?Q.attributeCheck=ie.ADD_ATTR:(V===ne&&(V=ch(V)),Ir(V,ie.ADD_ATTR,xt))),ie.ADD_URI_SAFE_ATTR&&Ir(ht,ie.ADD_URI_SAFE_ATTR,xt),ie.FORBID_CONTENTS&&(pe===ze&&(pe=ch(pe)),Ir(pe,ie.FORBID_CONTENTS,xt)),ie.ADD_FORBID_CONTENTS&&(pe===ze&&(pe=ch(pe)),Ir(pe,ie.ADD_FORBID_CONTENTS,xt)),Et&&(F["#text"]=!0),Ae&&Ir(F,["html","head","body"]),F.table&&(Ir(F,["tbody"]),delete te.tbody),ie.TRUSTED_TYPES_POLICY){if(typeof ie.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jv('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ie.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jv('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=ie.TRUSTED_TYPES_POLICY,E=T.createHTML("")}else T===void 0&&(T=VIe(x,s)),T!==null&&typeof E=="string"&&(E=T.createHTML(""));dl&&dl(ie),zt=ie}},Tt=Ir({},[...wE,...SE,...PIe]),Oe=Ir({},[...kE,...LIe]),pt=function(ie){let Se=j(ie);(!Se||!Se.tagName)&&(Se={namespaceURI:lt,tagName:"template"});const fe=k3(ie.tagName),$e=k3(Se.tagName);return Be[ie.namespaceURI]?ie.namespaceURI===We?Se.namespaceURI===Fe?fe==="svg":Se.namespaceURI===St?fe==="svg"&&($e==="annotation-xml"||we[$e]):!!Tt[fe]:ie.namespaceURI===St?Se.namespaceURI===Fe?fe==="math":Se.namespaceURI===We?fe==="math"&&Ge[$e]:!!Oe[fe]:ie.namespaceURI===Fe?Se.namespaceURI===We&&!Ge[$e]||Se.namespaceURI===St&&!we[$e]?!1:!Oe[fe]&&(rt[fe]||!Tt[fe]):!!(Ze==="application/xhtml+xml"&&Be[ie.namespaceURI]):!1},Ot=function(ie){Yv(n.removed,{element:ie});try{j(ie).removeChild(ie)}catch{w(ie)}},Pt=function(ie,Se){try{Yv(n.removed,{attribute:Se.getAttributeNode(ie),from:Se})}catch{Yv(n.removed,{attribute:null,from:Se})}if(Se.removeAttribute(ie),ie==="is")if(Nt||$t)try{Ot(Se)}catch{}else try{Se.setAttribute(ie,"")}catch{}},hn=function(ie){let Se=null,fe=null;if(ot)ie="<remove></remove>"+ie;else{const He=_E(ie,/^[\r\n\t ]+/);fe=He&&He[0]}Ze==="application/xhtml+xml"&<===Fe&&(ie='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ie+"</body></html>");const $e=T?T.createHTML(ie):ie;if(lt===Fe)try{Se=new m().parseFromString($e,Ze)}catch{}if(!Se||!Se.documentElement){Se=N.createDocument(lt,"template",null);try{Se.documentElement.innerHTML=et?E:$e}catch{}}const Ft=Se.body||Se.documentElement;return ie&&fe&&Ft.insertBefore(r.createTextNode(fe),Ft.childNodes[0]||null),lt===Fe?U.call(Se,Ae?"html":"body")[0]:Ae?Se.documentElement:Ft},un=function(ie){return R.call(ie.ownerDocument||ie,ie,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},dn=function(ie){return ie instanceof f&&(typeof ie.nodeName!="string"||typeof ie.textContent!="string"||typeof ie.removeChild!="function"||!(ie.attributes instanceof h)||typeof ie.removeAttribute!="function"||typeof ie.setAttribute!="function"||typeof ie.namespaceURI!="string"||typeof ie.insertBefore!="function"||typeof ie.hasChildNodes!="function")},pn=function(ie){return typeof l=="function"&&ie instanceof l};function Bt(_t,ie,Se){gC(_t,fe=>{fe.call(n,ie,Se,zt)})}const qn=function(ie){let Se=null;if(Bt(B.beforeSanitizeElements,ie,null),dn(ie))return Ot(ie),!0;const fe=xt(ie.nodeName);if(Bt(B.uponSanitizeElement,ie,{tagName:fe,allowedTags:F}),_e&&ie.hasChildNodes()&&!pn(ie.firstElementChild)&&Qo(/<[/\w!]/g,ie.innerHTML)&&Qo(/<[/\w!]/g,ie.textContent)||ie.nodeType===Qv.progressingInstruction||_e&&ie.nodeType===Qv.comment&&Qo(/<[/\w]/g,ie.data))return Ot(ie),!0;if(!(Q.tagCheck instanceof Function&&Q.tagCheck(fe))&&(!F[fe]||te[fe])){if(!te[fe]&>(fe)&&(J.tagNameCheck instanceof RegExp&&Qo(J.tagNameCheck,fe)||J.tagNameCheck instanceof Function&&J.tagNameCheck(fe)))return!1;if(Et&&!pe[fe]){const $e=j(ie)||ie.parentNode,Ft=C(ie)||ie.childNodes;if(Ft&&$e){const He=Ft.length;for(let It=He-1;It>=0;--It){const fn=_(Ft[It],!0);fn.__removalCount=(ie.__removalCount||0)+1,$e.insertBefore(fn,S(ie))}}}return Ot(ie),!0}return ie instanceof u&&!pt(ie)||(fe==="noscript"||fe==="noembed"||fe==="noframes")&&Qo(/<\/no(script|embed|frames)/i,ie.innerHTML)?(Ot(ie),!0):(ve&&ie.nodeType===Qv.text&&(Se=ie.textContent,gC([W,D,O],$e=>{Se=Xv(Se,$e," ")}),ie.textContent!==Se&&(Yv(n.removed,{element:ie.cloneNode()}),ie.textContent=Se)),Bt(B.afterSanitizeElements,ie,null),!1)},Ne=function(ie,Se,fe){if(re[Se]||on&&(Se==="id"||Se==="name")&&(fe in r||fe in rn))return!1;if(!(ge&&!re[Se]&&Qo(z,Se))){if(!(ue&&Qo(M,Se))){if(!(Q.attributeCheck instanceof Function&&Q.attributeCheck(Se,ie))){if(!V[Se]||re[Se]){if(!(gt(ie)&&(J.tagNameCheck instanceof RegExp&&Qo(J.tagNameCheck,ie)||J.tagNameCheck instanceof Function&&J.tagNameCheck(ie))&&(J.attributeNameCheck instanceof RegExp&&Qo(J.attributeNameCheck,Se)||J.attributeNameCheck instanceof Function&&J.attributeNameCheck(Se,ie))||Se==="is"&&J.allowCustomizedBuiltInElements&&(J.tagNameCheck instanceof RegExp&&Qo(J.tagNameCheck,fe)||J.tagNameCheck instanceof Function&&J.tagNameCheck(fe))))return!1}else if(!ht[Se]){if(!Qo(q,Xv(fe,I,""))){if(!((Se==="src"||Se==="xlink:href"||Se==="href")&&ie!=="script"&&AIe(fe,"data:")===0&&ft[ie])){if(!(se&&!Qo(L,Xv(fe,I,"")))){if(fe)return!1}}}}}}}return!0},gt=function(ie){return ie!=="annotation-xml"&&_E(ie,G)},Dt=function(ie){Bt(B.beforeSanitizeAttributes,ie,null);const{attributes:Se}=ie;if(!Se||dn(ie))return;const fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let $e=Se.length;for(;$e--;){const Ft=Se[$e],{name:He,namespaceURI:It,value:fn}=Ft,Kt=xt(He),sr=fn;let Tr=He==="value"?sr:OIe(sr);if(fe.attrName=Kt,fe.attrValue=Tr,fe.keepAttr=!0,fe.forceKeepAttr=void 0,Bt(B.uponSanitizeAttribute,ie,fe),Tr=fe.attrValue,Vt&&(Kt==="id"||Kt==="name")&&(Pt(He,ie),Tr=Gt+Tr),_e&&Qo(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Tr)){Pt(He,ie);continue}if(Kt==="attributename"&&_E(Tr,"href")){Pt(He,ie);continue}if(fe.forceKeepAttr)continue;if(!fe.keepAttr){Pt(He,ie);continue}if(!oe&&Qo(/\/>/i,Tr)){Pt(He,ie);continue}ve&&gC([W,D,O],hi=>{Tr=Xv(Tr,hi," ")});const cn=xt(ie.nodeName);if(!Ne(cn,Kt,Tr)){Pt(He,ie);continue}if(T&&typeof x=="object"&&typeof x.getAttributeType=="function"&&!It)switch(x.getAttributeType(cn,Kt)){case"TrustedHTML":{Tr=T.createHTML(Tr);break}case"TrustedScriptURL":{Tr=T.createScriptURL(Tr);break}}if(Tr!==sr)try{It?ie.setAttributeNS(It,He,Tr):ie.setAttribute(He,Tr),dn(ie)?Ot(ie):OF(n.removed)}catch{Pt(He,ie)}}Bt(B.afterSanitizeAttributes,ie,null)},kt=function _t(ie){let Se=null;const fe=un(ie);for(Bt(B.beforeSanitizeShadowDOM,ie,null);Se=fe.nextNode();)Bt(B.uponSanitizeShadowNode,Se,null),qn(Se),Dt(Se),Se.content instanceof a&&_t(Se.content);Bt(B.afterSanitizeShadowDOM,ie,null)};return n.sanitize=function(_t){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Se=null,fe=null,$e=null,Ft=null;if(et=!_t,et&&(_t="<!-->"),typeof _t!="string"&&!pn(_t))if(typeof _t.toString=="function"){if(_t=_t.toString(),typeof _t!="string")throw Jv("dirty is not a string, aborting")}else throw Jv("toString is not a function");if(!n.isSupported)return _t;if(Ke||dt(ie),n.removed=[],typeof _t=="string"&&(_n=!1),_n){if(_t.nodeName){const fn=xt(_t.nodeName);if(!F[fn]||te[fn])throw Jv("root node is forbidden and cannot be sanitized in-place")}}else if(_t instanceof l)Se=hn("<!---->"),fe=Se.ownerDocument.importNode(_t,!0),fe.nodeType===Qv.element&&fe.nodeName==="BODY"||fe.nodeName==="HTML"?Se=fe:Se.appendChild(fe);else{if(!Nt&&!ve&&!Ae&&_t.indexOf("<")===-1)return T&&en?T.createHTML(_t):_t;if(Se=hn(_t),!Se)return Nt?null:en?E:""}Se&&ot&&Ot(Se.firstChild);const He=un(_n?_t:Se);for(;$e=He.nextNode();)qn($e),Dt($e),$e.content instanceof a&&kt($e.content);if(_n)return _t;if(Nt){if($t)for(Ft=$.call(Se.ownerDocument);Se.firstChild;)Ft.appendChild(Se.firstChild);else Ft=Se;return(V.shadowroot||V.shadowrootmode)&&(Ft=H.call(i,Ft,!0)),Ft}let It=Ae?Se.outerHTML:Se.innerHTML;return Ae&&F["!doctype"]&&Se.ownerDocument&&Se.ownerDocument.doctype&&Se.ownerDocument.doctype.name&&Qo(kte,Se.ownerDocument.doctype.name)&&(It="<!DOCTYPE "+Se.ownerDocument.doctype.name+`>
|
|
@@ -1204,8 +1204,8 @@ Please report this to https://github.com/markedjs/marked.`,n){let s="<p>An error
|
|
|
1204
1204
|
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,s=e.y,a=Math.abs(i-r.x),o=e.width/2;let l=r.x<n.x?o-a:o+a;const u=e.height/2,d=Math.abs(n.y-r.y),h=Math.abs(n.x-r.x);if(Math.abs(s-n.y)*o>Math.abs(i-n.x)*u){let f=r.y<n.y?n.y-u-s:s-u-n.y;l=h*f/d;const m={x:r.x<n.x?r.x+l:r.x-h+l,y:r.y<n.y?r.y+d-f:r.y-d+f};return l===0&&(m.x=n.x,m.y=n.y),h===0&&(m.x=n.x),d===0&&(m.y=n.y),At.debug(`abc89 top/bottom calc, Q ${d}, q ${f}, R ${h}, r ${l}`,m),m}else{r.x<n.x?l=n.x-o-i:l=i-o-n.x;let f=d*l/h,m=r.x<n.x?r.x+h-l:r.x-h+l,x=r.y<n.y?r.y+f:r.y-f;return At.debug(`sides calc abc89, Q ${d}, q ${f}, R ${h}, r ${l}`,{_x:m,_y:x}),l===0&&(m=n.x,x=n.y),h===0&&(m=n.x),d===0&&(x=n.y),{x:m,y:x}}},"intersection"),sW=Y((e,n)=>{At.warn("abc88 cutPathAtIntersect",e,n);let r=[],i=e[0],s=!1;return e.forEach(a=>{if(At.info("abc88 checking point",a,n),!uXe(n,a)&&!s){const o=dXe(n,i,a);At.debug("abc88 inside",a,i,o),At.debug("abc88 intersection",o,n);let l=!1;r.forEach(u=>{l=l||u.x===o.x&&u.y===o.y}),r.some(u=>u.x===o.x&&u.y===o.y)?At.warn("abc88 no intersect",o,r):r.push(o),s=!0}else At.warn("abc88 outside",a,i),i=a,s||r.push(a)}),At.debug("returning points",r),r},"cutPathAtIntersect");function qae(e){const n=[],r=[];for(let i=1;i<e.length-1;i++){const s=e[i-1],a=e[i],o=e[i+1];(s.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-s.y)>5||s.y===a.y&&a.x===o.x&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-o.y)>5)&&(n.push(a),r.push(i))}return{cornerPoints:n,cornerPointPositions:r}}Y(qae,"extractCornerPoints");var aW=Y(function(e,n,r){const i=n.x-e.x,s=n.y-e.y,a=Math.sqrt(i*i+s*s),o=r/a;return{x:n.x-o*i,y:n.y-o*s}},"findAdjacentPoint"),hXe=Y(function(e){const{cornerPointPositions:n}=qae(e),r=[];for(let i=0;i<e.length;i++)if(n.includes(i)){const s=e[i-1],a=e[i+1],o=e[i],l=aW(s,o,5),u=aW(a,o,5),d=u.x-l.x,h=u.y-l.y;r.push(l);const f=Math.sqrt(2)*2;let m={x:o.x,y:o.y};if(Math.abs(a.x-s.x)>10&&Math.abs(a.y-s.y)>=10){At.debug("Corner point fixing",Math.abs(a.x-s.x),Math.abs(a.y-s.y));const x=5;o.x===l.x?m={x:d<0?l.x-x+f:l.x+x-f,y:h<0?l.y-f:l.y+f}:m={x:d<0?l.x-f:l.x+f,y:h<0?l.y-x+f:l.y+x-f}}else At.debug("Corner point skipping fixing",Math.abs(a.x-s.x),Math.abs(a.y-s.y));r.push(m,u)}else r.push(e[i]);return r},"fixCorners"),fXe=Y((e,n,r)=>{const i=e-n-r,s=2,a=2,o=s+a,l=Math.floor(i/o),u=Array(l).fill(`${s} ${a}`).join(" ");return`0 ${n} ${u} ${r}`},"generateDashArray"),pXe=Y(function(e,n,r,i,s,a,o,l=!1){var M;const{handDrawnSeed:u}=di();let d=n.points,h=!1;const f=s;var m=a;const x=[];for(const L in n.cssCompiledStyles)qie(L)||x.push(n.cssCompiledStyles[L]);At.debug("UIO intersect check",n.points,m.x,f.x),m.intersect&&f.intersect&&!l&&(d=d.slice(1,n.points.length-1),d.unshift(f.intersect(d[0])),At.debug("Last point UIO",n.start,"-->",n.end,d[d.length-1],m,m.intersect(d[d.length-1])),d.push(m.intersect(d[d.length-1])));const v=btoa(JSON.stringify(d));n.toCluster&&(At.info("to cluster abc88",r.get(n.toCluster)),d=sW(n.points,r.get(n.toCluster).node),h=!0),n.fromCluster&&(At.debug("from cluster abc88",r.get(n.fromCluster),JSON.stringify(d,null,2)),d=sW(d.reverse(),r.get(n.fromCluster).node).reverse(),h=!0);let _=d.filter(L=>!Number.isNaN(L.y));const w=oXe(n.curve);w!=="rounded"&&(_=hXe(_));let S=w_;switch(w){case"linear":S=w_;break;case"basis":S=oO;break;case"cardinal":S=jne;break;case"bumpX":S=_ne;break;case"bumpY":S=wne;break;case"catmullRom":S=Tne;break;case"monotoneX":S=Pne;break;case"monotoneY":S=Lne;break;case"natural":S=Dne;break;case"step":S=Ine;break;case"stepAfter":S=zne;break;case"stepBefore":S=Bne;break;case"rounded":S=w_;break;default:S=oO}const{x:C,y:j}=uVe(n),T=zWe().x(C).y(j).curve(S);let E;switch(n.thickness){case"normal":E="edge-thickness-normal";break;case"thick":E="edge-thickness-thick";break;case"invisible":E="edge-thickness-invisible";break;default:E="edge-thickness-normal"}switch(n.pattern){case"solid":E+=" edge-pattern-solid";break;case"dotted":E+=" edge-pattern-dotted";break;case"dashed":E+=" edge-pattern-dashed";break;default:E+=" edge-pattern-solid"}let N,R=w==="rounded"?Gae(Kae(_,n),5):T(_);const $=Array.isArray(n.style)?n.style:[n.style];let U=$.find(L=>L==null?void 0:L.startsWith("stroke:")),H="";n.animate&&(H="edge-animation-fast"),n.animation&&(H="edge-animation-"+n.animation);let B=!1;if(n.look==="handDrawn"){const L=Mn.svg(e);Object.assign([],_);const I=L.path(R,{roughness:.3,seed:u});E+=" transition",N=tr(I).select("path").attr("id",n.id).attr("class"," "+E+(n.classes?" "+n.classes:"")+(H?" "+H:"")).attr("style",$?$.reduce((q,F)=>q+";"+F,""):"");let G=N.attr("d");N.attr("d",G),e.node().appendChild(N.node())}else{const L=x.join(";"),I=$?$.reduce((ne,J)=>ne+J+";",""):"",G=(L?L+";"+I+";":I)+";"+($?$.reduce((ne,J)=>ne+";"+J,""):"");N=e.append("path").attr("d",R).attr("id",n.id).attr("class"," "+E+(n.classes?" "+n.classes:"")+(H?" "+H:"")).attr("style",G),U=(M=G.match(/stroke:([^;]+)/))==null?void 0:M[1],B=n.animate===!0||!!n.animation||L.includes("animation");const q=N.node(),F=typeof q.getTotalLength=="function"?q.getTotalLength():0,X=_H[n.arrowTypeStart]||0,V=_H[n.arrowTypeEnd]||0;if(n.look==="neo"&&!B){const J=`stroke-dasharray: ${n.pattern==="dotted"||n.pattern==="dashed"?fXe(F,X,V):`0 ${X} ${F-X-V} ${V}`}; stroke-dashoffset: 0;`;N.attr("style",J+N.attr("style"))}}N.attr("data-edge",!0),N.attr("data-et","edge"),N.attr("data-id",n.id),N.attr("data-points",v),n.showPoints&&_.forEach(L=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",L.x).attr("cy",L.y)});let W="";(di().flowchart.arrowMarkerAbsolute||di().state.arrowMarkerAbsolute)&&(W=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,W=W.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),At.info("arrowTypeStart",n.arrowTypeStart),At.info("arrowTypeEnd",n.arrowTypeEnd),sXe(N,n,W,o,i,U);const D=Math.floor(d.length/2),O=d[D];dd.isLabelCoordinateInPath(O,N.attr("d"))||(h=!0);let z={};return h&&(z.updatedPath=d),z.originalPath=n.points,z},"insertEdge");function Gae(e,n){if(e.length<2)return"";let r="";const i=e.length,s=1e-5;for(let a=0;a<i;a++){const o=e[a],l=e[a-1],u=e[a+1];if(a===0)r+=`M${o.x},${o.y}`;else if(a===i-1)r+=`L${o.x},${o.y}`;else{const d=o.x-l.x,h=o.y-l.y,f=u.x-o.x,m=u.y-o.y,x=Math.hypot(d,h),v=Math.hypot(f,m);if(x<s||v<s){r+=`L${o.x},${o.y}`;continue}const _=d/x,w=h/x,S=f/v,C=m/v,j=_*S+w*C,T=Math.max(-1,Math.min(1,j)),E=Math.acos(T);if(E<s||Math.abs(Math.PI-E)<s){r+=`L${o.x},${o.y}`;continue}const N=Math.min(n/Math.sin(E/2),x/2,v/2),R=o.x-_*N,$=o.y-w*N,U=o.x+S*N,H=o.y+C*N;r+=`L${R},${$}`,r+=`Q${o.x},${o.y} ${U},${H}`}}return r}Y(Gae,"generateRoundedPath");function LO(e,n){if(!e||!n)return{angle:0,deltaX:0,deltaY:0};const r=n.x-e.x,i=n.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}Y(LO,"calculateDeltaAndAngle");function Kae(e,n){const r=e.map(s=>({...s}));if(e.length>=2&&Ro[n.arrowTypeStart]){const s=Ro[n.arrowTypeStart],a=e[0],o=e[1],{angle:l}=LO(a,o),u=s*Math.cos(l),d=s*Math.sin(l);r[0].x=a.x+u,r[0].y=a.y+d}const i=e.length;if(i>=2&&Ro[n.arrowTypeEnd]){const s=Ro[n.arrowTypeEnd],a=e[i-1],o=e[i-2],{angle:l}=LO(o,a),u=s*Math.cos(l),d=s*Math.sin(l);r[i-1].x=a.x-u,r[i-1].y=a.y-d}return r}Y(Kae,"applyMarkerOffsetsToPoints");var mXe=Y((e,n,r,i)=>{n.forEach(s=>{OXe[s](e,r,i)})},"insertMarkers"),gXe=Y((e,n,r)=>{At.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+n+"-extensionStart").attr("class","marker extension "+n).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+n+"-extensionEnd").attr("class","marker extension "+n).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),yXe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-compositionStart").attr("class","marker composition "+n).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+n+"-compositionEnd").attr("class","marker composition "+n).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),xXe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-aggregationStart").attr("class","marker aggregation "+n).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+n+"-aggregationEnd").attr("class","marker aggregation "+n).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),vXe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-dependencyStart").attr("class","marker dependency "+n).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+n+"-dependencyEnd").attr("class","marker dependency "+n).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),bXe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-lollipopStart").attr("class","marker lollipop "+n).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+n+"-lollipopEnd").attr("class","marker lollipop "+n).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),_Xe=Y((e,n,r)=>{e.append("marker").attr("id",r+"_"+n+"-pointEnd").attr("class","marker "+n).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+n+"-pointStart").attr("class","marker "+n).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),wXe=Y((e,n,r)=>{e.append("marker").attr("id",r+"_"+n+"-circleEnd").attr("class","marker "+n).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+n+"-circleStart").attr("class","marker "+n).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),SXe=Y((e,n,r)=>{e.append("marker").attr("id",r+"_"+n+"-crossEnd").attr("class","marker cross "+n).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+n+"-crossStart").attr("class","marker cross "+n).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),kXe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),CXe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-onlyOneStart").attr("class","marker onlyOne "+n).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+n+"-onlyOneEnd").attr("class","marker onlyOne "+n).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),jXe=Y((e,n,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+n+"-zeroOrOneStart").attr("class","marker zeroOrOne "+n).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const s=e.append("defs").append("marker").attr("id",r+"_"+n+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+n).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),NXe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-oneOrMoreStart").attr("class","marker oneOrMore "+n).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+n+"-oneOrMoreEnd").attr("class","marker oneOrMore "+n).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),TXe=Y((e,n,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+n+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+n).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const s=e.append("defs").append("marker").attr("id",r+"_"+n+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+n).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),EXe=Y((e,n,r)=>{e.append("defs").append("marker").attr("id",r+"_"+n+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
1205
1205
|
L20,10
|
|
1206
1206
|
M20,10
|
|
1207
|
-
L0,20`)},"requirement_arrow"),AXe=Y((e,n,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+n+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),OXe={extension:gXe,composition:yXe,aggregation:xXe,dependency:vXe,lollipop:bXe,point:_Xe,circle:wXe,cross:SXe,barb:kXe,only_one:CXe,zero_or_one:jXe,one_or_more:NXe,zero_or_more:TXe,requirement_arrow:EXe,requirement_contains:AXe},RXe=mXe,MXe={common:CS,getConfig:Do,insertCluster:BYe,insertEdge:pXe,insertEdgeLabel:lXe,insertMarkers:RXe,insertNode:Vae,interpolateToCurve:pP,labelHelper:cr,log:At,positionEdgeLabel:cXe},p2={},Yae=Y(e=>{for(const n of e)p2[n.name]=n},"registerLayoutLoaders"),PXe=Y(()=>{Yae([{name:"dagre",loader:Y(async()=>await nt(()=>import("./dagre-KLK3FWXG-
|
|
1208
|
-
`);const i=nUe(n),s=i.append("g");i.attr("viewBox","0 0 2412 512"),Fte(i,100,512,!0),s.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),s.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),s.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),s.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),s.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),s.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),foe={draw:oZe},lZe=foe,cZe={db:{},renderer:foe,parser:{parse:Y(()=>{},"parse")}},uZe=cZe,poe="flowchart-elk",dZe=Y((e,n={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=n==null?void 0:n.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(n.layout="elk",!0):!1},"detector"),hZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-
|
|
1207
|
+
L0,20`)},"requirement_arrow"),AXe=Y((e,n,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+n+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),OXe={extension:gXe,composition:yXe,aggregation:xXe,dependency:vXe,lollipop:bXe,point:_Xe,circle:wXe,cross:SXe,barb:kXe,only_one:CXe,zero_or_one:jXe,one_or_more:NXe,zero_or_more:TXe,requirement_arrow:EXe,requirement_contains:AXe},RXe=mXe,MXe={common:CS,getConfig:Do,insertCluster:BYe,insertEdge:pXe,insertEdgeLabel:lXe,insertMarkers:RXe,insertNode:Vae,interpolateToCurve:pP,labelHelper:cr,log:At,positionEdgeLabel:cXe},p2={},Yae=Y(e=>{for(const n of e)p2[n.name]=n},"registerLayoutLoaders"),PXe=Y(()=>{Yae([{name:"dagre",loader:Y(async()=>await nt(()=>import("./dagre-KLK3FWXG-YWEoIbyh.js"),__vite__mapDeps([47,48,49,50,51,52]),import.meta.url),"loader")},{name:"cose-bilkent",loader:Y(async()=>await nt(()=>import("./cose-bilkent-S5V4N54A-CpCfCXFQ.js"),__vite__mapDeps([53,54]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");PXe();var nwt=Y(async(e,n)=>{if(!(e.layoutAlgorithm in p2))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=p2[e.layoutAlgorithm];return(await r.loader()).render(e,n,MXe,{algorithm:r.algorithm})},"render"),rwt=Y((e="",{fallback:n="dagre"}={})=>{if(e in p2)return e;if(n in p2)return At.warn(`Layout algorithm ${e} is not registered. Using ${n} as fallback.`),n;throw new Error(`Both layout algorithms ${e} and ${n} are not registered.`)},"getRegisteredLayoutAlgorithm"),LXe=Cie(Object.keys,Object),$Xe=Object.prototype,DXe=$Xe.hasOwnProperty;function IXe(e){if(!tN(e))return LXe(e);var n=[];for(var r in Object(e))DXe.call(e,r)&&r!="constructor"&&n.push(r);return n}var $O=ey(Md,"DataView"),DO=ey(Md,"Promise"),IO=ey(Md,"Set"),BO=ey(Md,"WeakMap"),oW="[object Map]",BXe="[object Object]",lW="[object Promise]",cW="[object Set]",uW="[object WeakMap]",dW="[object DataView]",zXe=Q0($O),FXe=Q0(h2),HXe=Q0(DO),WXe=Q0(IO),UXe=Q0(BO),Kg=Z0;($O&&Kg(new $O(new ArrayBuffer(1)))!=dW||h2&&Kg(new h2)!=oW||DO&&Kg(DO.resolve())!=lW||IO&&Kg(new IO)!=cW||BO&&Kg(new BO)!=uW)&&(Kg=function(e){var n=Z0(e),r=n==BXe?e.constructor:void 0,i=r?Q0(r):"";if(i)switch(i){case zXe:return dW;case FXe:return oW;case HXe:return lW;case WXe:return cW;case UXe:return uW}return n});var VXe="[object Map]",qXe="[object Set]",GXe=Object.prototype,KXe=GXe.hasOwnProperty;function hW(e){if(e==null)return!0;if(nN(e)&&(rj(e)||typeof e=="string"||typeof e.splice=="function"||hP(e)||fP(e)||nj(e)))return!e.length;var n=Kg(e);if(n==VXe||n==qXe)return!e.size;if(tN(e))return!IXe(e).length;for(var r in e)if(KXe.call(e,r))return!1;return!0}var Xae="c4",YXe=Y(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),XXe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./c4Diagram-IC4MRINW-Dwmxdl05.js");return{diagram:n}},__vite__mapDeps([55,56]),import.meta.url);return{id:Xae,diagram:e}},"loader"),JXe={id:Xae,detector:YXe,loader:XXe},ZXe=JXe,Jae="flowchart",QXe=Y((e,n)=>{var r,i;return((r=n==null?void 0:n.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=n==null?void 0:n.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),eJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-C5P6-hIC.js");return{diagram:n}},__vite__mapDeps([57,58,56,59,60,61]),import.meta.url);return{id:Jae,diagram:e}},"loader"),tJe={id:Jae,detector:QXe,loader:eJe},nJe=tJe,Zae="flowchart-v2",rJe=Y((e,n)=>{var r,i,s;return((r=n==null?void 0:n.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=n==null?void 0:n.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(n.layout="elk"),/^\s*graph/.test(e)&&((s=n==null?void 0:n.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),iJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-C5P6-hIC.js");return{diagram:n}},__vite__mapDeps([57,58,56,59,60,61]),import.meta.url);return{id:Zae,diagram:e}},"loader"),sJe={id:Zae,detector:rJe,loader:iJe},aJe=sJe,Qae="er",oJe=Y(e=>/^\s*erDiagram/.test(e),"detector"),lJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./erDiagram-INFDFZHY-C3STuDOs.js");return{diagram:n}},__vite__mapDeps([62,59,60,61]),import.meta.url);return{id:Qae,diagram:e}},"loader"),cJe={id:Qae,detector:oJe,loader:lJe},uJe=cJe,eoe="gitGraph",dJe=Y(e=>/^\s*gitGraph/.test(e),"detector"),hJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./gitGraphDiagram-K3NZZRJ6-D1Mc1xvP.js");return{diagram:n}},__vite__mapDeps([63,64,65,66,49,51,52]),import.meta.url);return{id:eoe,diagram:e}},"loader"),fJe={id:eoe,detector:dJe,loader:hJe},pJe=fJe,toe="gantt",mJe=Y(e=>/^\s*gantt/.test(e),"detector"),gJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./ganttDiagram-A5KZAMGK-sqi0bTwp.js");return{diagram:n}},__vite__mapDeps([67,68,69]),import.meta.url);return{id:toe,diagram:e}},"loader"),yJe={id:toe,detector:mJe,loader:gJe},xJe=yJe,noe="info",vJe=Y(e=>/^\s*info/.test(e),"detector"),bJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./infoDiagram-LFFYTUFH-B6JIOmV7.js");return{diagram:n}},__vite__mapDeps([70,66,49,51,52]),import.meta.url);return{id:noe,diagram:e}},"loader"),_Je={id:noe,detector:vJe,loader:bJe},roe="pie",wJe=Y(e=>/^\s*pie/.test(e),"detector"),SJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./pieDiagram-SKSYHLDU-ivCRpH6_.js");return{diagram:n}},__vite__mapDeps([71,64,66,49,51,52,72]),import.meta.url);return{id:roe,diagram:e}},"loader"),kJe={id:roe,detector:wJe,loader:SJe},ioe="quadrantChart",CJe=Y(e=>/^\s*quadrantChart/.test(e),"detector"),jJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./quadrantDiagram-337W2JSQ-RkATLRqb.js");return{diagram:n}},__vite__mapDeps([73,68,69]),import.meta.url);return{id:ioe,diagram:e}},"loader"),NJe={id:ioe,detector:CJe,loader:jJe},TJe=NJe,soe="xychart",EJe=Y(e=>/^\s*xychart(-beta)?/.test(e),"detector"),AJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./xychartDiagram-JWTSCODW-0OBw49fm.js");return{diagram:n}},__vite__mapDeps([74,68,69]),import.meta.url);return{id:soe,diagram:e}},"loader"),OJe={id:soe,detector:EJe,loader:AJe},RJe=OJe,aoe="requirement",MJe=Y(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),PJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./requirementDiagram-Z7DCOOCP-Dc6JNr9x.js");return{diagram:n}},__vite__mapDeps([75,59,60]),import.meta.url);return{id:aoe,diagram:e}},"loader"),LJe={id:aoe,detector:MJe,loader:PJe},$Je=LJe,ooe="sequence",DJe=Y(e=>/^\s*sequenceDiagram/.test(e),"detector"),IJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./sequenceDiagram-2WXFIKYE-CICgYMMy.js");return{diagram:n}},__vite__mapDeps([76,56,65]),import.meta.url);return{id:ooe,diagram:e}},"loader"),BJe={id:ooe,detector:DJe,loader:IJe},zJe=BJe,loe="class",FJe=Y((e,n)=>{var r;return((r=n==null?void 0:n.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),HJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./classDiagram-VBA2DB6C-Q8QOn0fN.js");return{diagram:n}},__vite__mapDeps([77,78,58,56,59,60]),import.meta.url);return{id:loe,diagram:e}},"loader"),WJe={id:loe,detector:FJe,loader:HJe},UJe=WJe,coe="classDiagram",VJe=Y((e,n)=>{var r;return/^\s*classDiagram/.test(e)&&((r=n==null?void 0:n.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),qJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./classDiagram-v2-RAHNMMFH-Q8QOn0fN.js");return{diagram:n}},__vite__mapDeps([79,78,58,56,59,60]),import.meta.url);return{id:coe,diagram:e}},"loader"),GJe={id:coe,detector:VJe,loader:qJe},KJe=GJe,uoe="state",YJe=Y((e,n)=>{var r;return((r=n==null?void 0:n.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),XJe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./stateDiagram-RAJIS63D-BGSwePVy.js");return{diagram:n}},__vite__mapDeps([80,81,59,60,48,49,50,51]),import.meta.url);return{id:uoe,diagram:e}},"loader"),JJe={id:uoe,detector:YJe,loader:XJe},ZJe=JJe,doe="stateDiagram",QJe=Y((e,n)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=n==null?void 0:n.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),eZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./stateDiagram-v2-FVOUBMTO-hx8mdJH3.js");return{diagram:n}},__vite__mapDeps([82,81,59,60]),import.meta.url);return{id:doe,diagram:e}},"loader"),tZe={id:doe,detector:QJe,loader:eZe},nZe=tZe,hoe="journey",rZe=Y(e=>/^\s*journey/.test(e),"detector"),iZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./journeyDiagram-4ABVD52K-BZOLlp_7.js");return{diagram:n}},__vite__mapDeps([83,58,56,72]),import.meta.url);return{id:hoe,diagram:e}},"loader"),sZe={id:hoe,detector:rZe,loader:iZe},aZe=sZe,oZe=Y((e,n,r)=>{At.debug(`rendering svg for syntax error
|
|
1208
|
+
`);const i=nUe(n),s=i.append("g");i.attr("viewBox","0 0 2412 512"),Fte(i,100,512,!0),s.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),s.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),s.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),s.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),s.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),s.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),foe={draw:oZe},lZe=foe,cZe={db:{},renderer:foe,parser:{parse:Y(()=>{},"parse")}},uZe=cZe,poe="flowchart-elk",dZe=Y((e,n={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=n==null?void 0:n.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(n.layout="elk",!0):!1},"detector"),hZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./flowDiagram-PKNHOUZH-C5P6-hIC.js");return{diagram:n}},__vite__mapDeps([57,58,56,59,60,61]),import.meta.url);return{id:poe,diagram:e}},"loader"),fZe={id:poe,detector:dZe,loader:hZe},pZe=fZe,moe="timeline",mZe=Y(e=>/^\s*timeline/.test(e),"detector"),gZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./timeline-definition-YZTLITO2-C0G9kF6G.js");return{diagram:n}},__vite__mapDeps([84,72]),import.meta.url);return{id:moe,diagram:e}},"loader"),yZe={id:moe,detector:mZe,loader:gZe},xZe=yZe,goe="mindmap",vZe=Y(e=>/^\s*mindmap/.test(e),"detector"),bZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./mindmap-definition-YRQLILUH-B_3-oeFh.js");return{diagram:n}},__vite__mapDeps([85,59,60]),import.meta.url);return{id:goe,diagram:e}},"loader"),_Ze={id:goe,detector:vZe,loader:bZe},wZe=_Ze,yoe="kanban",SZe=Y(e=>/^\s*kanban/.test(e),"detector"),kZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./kanban-definition-K7BYSVSG-CMVF7S_8.js");return{diagram:n}},__vite__mapDeps([86,58]),import.meta.url);return{id:yoe,diagram:e}},"loader"),CZe={id:yoe,detector:SZe,loader:kZe},jZe=CZe,xoe="sankey",NZe=Y(e=>/^\s*sankey(-beta)?/.test(e),"detector"),TZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./sankeyDiagram-WA2Y5GQK-A2d6syiM.js");return{diagram:n}},[],import.meta.url);return{id:xoe,diagram:e}},"loader"),EZe={id:xoe,detector:NZe,loader:TZe},AZe=EZe,voe="packet",OZe=Y(e=>/^\s*packet(-beta)?/.test(e),"detector"),RZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./diagram-P4PSJMXO-EeurGnq5.js");return{diagram:n}},__vite__mapDeps([87,64,66,49,51,52]),import.meta.url);return{id:voe,diagram:e}},"loader"),MZe={id:voe,detector:OZe,loader:RZe},boe="radar",PZe=Y(e=>/^\s*radar-beta/.test(e),"detector"),LZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./diagram-IFDJBPK2-ievVHR3w.js");return{diagram:n}},__vite__mapDeps([88,64,66,49,51,52]),import.meta.url);return{id:boe,diagram:e}},"loader"),$Ze={id:boe,detector:PZe,loader:LZe},_oe="block",DZe=Y(e=>/^\s*block(-beta)?/.test(e),"detector"),IZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./blockDiagram-WCTKOSBZ-BjUAURqL.js");return{diagram:n}},__vite__mapDeps([89,58,52,49,48,61]),import.meta.url);return{id:_oe,diagram:e}},"loader"),BZe={id:_oe,detector:DZe,loader:IZe},zZe=BZe,woe="architecture",FZe=Y(e=>/^\s*architecture/.test(e),"detector"),HZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./architectureDiagram-2XIMDMQ5-D4Kowk9Q.js");return{diagram:n}},__vite__mapDeps([90,64,66,49,51,52,54]),import.meta.url);return{id:woe,diagram:e}},"loader"),WZe={id:woe,detector:FZe,loader:HZe},UZe=WZe,Soe="ishikawa",VZe=Y(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),qZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./ishikawaDiagram-PHBUUO56-1IQ7Rv0G.js");return{diagram:n}},[],import.meta.url);return{id:Soe,diagram:e}},"loader"),GZe={id:Soe,detector:VZe,loader:qZe},koe="venn",KZe=Y(e=>/^\s*venn-beta/.test(e),"detector"),YZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./vennDiagram-LZ73GAT5-BG9_EnS7.js");return{diagram:n}},[],import.meta.url);return{id:koe,diagram:e}},"loader"),XZe={id:koe,detector:KZe,loader:YZe},JZe=XZe,Coe="treemap",ZZe=Y(e=>/^\s*treemap/.test(e),"detector"),QZe=Y(async()=>{const{diagram:e}=await nt(async()=>{const{diagram:n}=await import("./diagram-E7M64L7V-DB1CtiDV.js");return{diagram:n}},__vite__mapDeps([91,60,64,66,49,51,52,69]),import.meta.url);return{id:Coe,diagram:e}},"loader"),eQe={id:Coe,detector:ZZe,loader:QZe},fW=!1,uN=Y(()=>{fW||(fW=!0,I5("error",uZe,e=>e.toLowerCase().trim()==="error"),I5("---",{db:{clear:Y(()=>{},"clear")},styles:{},renderer:{draw:Y(()=>{},"draw")},parser:{parse:Y(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:Y(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),qA(pZe,wZe,UZe),qA(ZXe,jZe,KJe,UJe,uJe,xJe,_Je,kJe,$Je,zJe,aJe,nJe,xZe,pJe,nZe,ZJe,aZe,TJe,AZe,MZe,RJe,zZe,$Ze,GZe,eQe,JZe))},"addDiagrams"),tQe=Y(async()=>{At.debug("Loading registered diagrams");const n=(await Promise.allSettled(Object.entries(N0).map(async([r,{detector:i,loader:s}])=>{if(s)try{XA(r)}catch{try{const{diagram:a,id:o}=await s();I5(o,a,i)}catch(a){throw At.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete N0[r],a}}}))).filter(r=>r.status==="rejected");if(n.length>0){At.error(`Failed to load ${n.length} external diagrams`);for(const r of n)At.error(r);throw new Error(`Failed to load ${n.length} external diagrams`)}},"loadRegisteredDiagrams"),nQe="graphics-document document";function joe(e,n){e.attr("role",nQe),n!==""&&e.attr("aria-roledescription",n)}Y(joe,"setA11yDiagramInfo");function Noe(e,n,r,i){if(e.insert!==void 0){if(r){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(n){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(n)}}}Y(Noe,"addSVGa11yTitleDescription");var g0,zO=(g0=class{constructor(n,r,i,s,a){this.type=n,this.text=r,this.db=i,this.parser=s,this.renderer=a}static async fromText(n,r={}){var d,h;const i=Do(),s=L9(n,i);n=sKe(n)+`
|
|
1209
1209
|
`;try{XA(s)}catch{const f=GIe(s);if(!f)throw new Nte(`Diagram ${s} not found.`);const{id:m,diagram:x}=await f();I5(m,x)}const{db:a,parser:o,renderer:l,init:u}=XA(s);return o.parser&&(o.parser.yy=a),(d=a.clear)==null||d.call(a),u==null||u(i),r.title&&((h=a.setDiagramTitle)==null||h.call(a,r.title)),await o.parse(n),new g0(s,n,a,o,l)}async render(n,r){await this.renderer.draw(this.text,n,r,this)}getParser(){return this.parser}getType(){return this.type}},Y(g0,"Diagram"),g0),pW=[],rQe=Y(()=>{pW.forEach(e=>{e()}),pW=[]},"attachFunctions"),iQe=Y(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Toe(e){const n=e.match(jte);if(!n)return{text:e,metadata:{}};let r=cVe(n[1],{schema:lVe})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(n[0].length),metadata:i}}Y(Toe,"extractFrontMatter");var sQe=Y(e=>e.replace(/\r\n?/g,`
|
|
1210
1210
|
`).replace(/<(\w+)([^>]*)>/g,(n,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),aQe=Y(e=>{const{text:n,metadata:r}=Toe(e),{displayMode:i,title:s,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:s,config:a,text:n}},"processFrontmatter"),oQe=Y(e=>{const n=dd.detectInit(e)??{},r=dd.detectDirective(e,"wrap");return Array.isArray(r)?n.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(n.wrap=!0),{text:qGe(e),directive:n}},"processDirectives");function LP(e){const n=sQe(e),r=aQe(n),i=oQe(r.text),s=vP(r.config,i.directive);return e=iQe(i.text),{code:e,title:r.title,config:s}}Y(LP,"preprocessDiagram");function Eoe(e){const n=new TextEncoder().encode(e),r=Array.from(n,i=>String.fromCodePoint(i)).join("");return btoa(r)}Y(Eoe,"toBase64");var lQe=5e4,cQe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",uQe="sandbox",dQe="loose",hQe="http://www.w3.org/2000/svg",fQe="http://www.w3.org/1999/xlink",pQe="http://www.w3.org/1999/xhtml",mQe="100%",gQe="100%",yQe="border:0;margin:0;",xQe="margin:0",vQe="allow-top-navigation-by-user-activation allow-popups",bQe='The "iframe" tag is not supported by your browser.',_Qe=["foreignobject"],wQe=["dominant-baseline"];function $P(e){const n=LP(e);return $5(),cBe(n.config??{}),n}Y($P,"processAndSetConfigs");async function Aoe(e,n){uN();try{const{code:r,config:i}=$P(e);return{diagramType:(await Roe(r)).type,config:i}}catch(r){if(n!=null&&n.suppressErrors)return!1;throw r}}Y(Aoe,"parse");var mW=Y((e,n,r=[])=>`
|
|
1211
1211
|
.${e} ${n} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),SQe=Y((e,n=new Map)=>{let r="";if(e.themeCSS!==void 0&&(r+=`
|