@oneworks/client 0.1.0-beta.0 → 0.1.0-beta.2
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/dist/assets/{ActionSearchToolbar-8q-bk3mu.js → ActionSearchToolbar-DEGf2jhC.js} +1 -1
- package/dist/assets/{AgentRoomRoute-DfSI_dFH.js → AgentRoomRoute-q3zS46Sd.js} +1 -1
- package/dist/assets/{AgentRoomSessionRoute-DH9PdjZm.js → AgentRoomSessionRoute-DjPxv7X5.js} +1 -1
- package/dist/assets/{ArchiveRoute-E9-htB4H.js → ArchiveRoute-CLIn3VrK.js} +1 -1
- package/dist/assets/{AuthenticatedApp-CgBrvMuc.js → AuthenticatedApp-CjqSg3Fe.js} +192 -192
- package/dist/assets/{AutomationRoute-Bw2xw5bx.js → AutomationRoute-BUkrePKH.js} +1 -1
- package/dist/assets/{BenchmarkRoute-3VS17jHr.js → BenchmarkRoute-CuO0hJBU.js} +1 -1
- package/dist/assets/{ChatRoute-CBQ3j4Je.js → ChatRoute-Du5zkaQU.js} +1 -1
- package/dist/assets/{Collapse-B-oCiEx4.js → Collapse-v6rPK_Og.js} +1 -1
- package/dist/assets/{ComposerLanding-SZn_zRGX.js → ComposerLanding-Yr0ydPHI.js} +1 -1
- package/dist/assets/{ConfigRoute-Dv-7BRGG.js → ConfigRoute-C3uzNXG_.js} +1 -1
- package/dist/assets/{InteractionStructureRoute-FDl9jRvT.js → InteractionStructureRoute-Db6Csunn.js} +1 -1
- package/dist/assets/{KnowledgeRoute-C5em_VSL.js → KnowledgeRoute-qqkXU5WL.js} +1 -1
- package/dist/assets/{LauncherApp-olYmK_zO.js → LauncherApp-Qvdl-Yj8.js} +2 -2
- package/dist/assets/{LauncherRoute-Qt8dQkIk.js → LauncherRoute-DZWkoiJw.js} +1 -1
- package/dist/assets/{MobileAwareSelect-BmK6WApn.js → MobileAwareSelect-C3a67aGF.js} +1 -1
- package/dist/assets/{ModuleManagementRoute-B1I_8JKc.js → ModuleManagementRoute-Cy4wuohf.js} +1 -1
- package/dist/assets/{NotFoundRoute-Bj6_YY3I.js → NotFoundRoute-ChcyVvqJ.js} +1 -1
- package/dist/assets/{PluginStoreRoute-B847PAZ5.js → PluginStoreRoute-DdiK4aa2.js} +1 -1
- package/dist/assets/{RouteContainerPanelTabs-BnIptVwq.js → RouteContainerPanelTabs-jxh2d8jI.js} +1 -1
- package/dist/assets/{SchemaObjectEditor-B9fPfDyT.js → SchemaObjectEditor-COAQ7p3E.js} +1 -1
- package/dist/assets/{StandaloneMobileDebugRoute-BR4w_LeM.js → StandaloneMobileDebugRoute-CB3AJiyj.js} +1 -1
- package/dist/assets/StandaloneMobileDebugRoute-Cz0tNyI6.css +1 -0
- package/dist/assets/{WorkspaceApp-BNmtIdn4.js → WorkspaceApp-CokR7Tpr.js} +3 -3
- package/dist/assets/{agent-room-session-paths-Dca8S6NN.js → agent-room-session-paths-CDJw-DoF.js} +3 -3
- package/dist/assets/{arc-JBUpUV6M.js → arc-f6ab2s7J.js} +1 -1
- package/dist/assets/{blockDiagram-c4efeb88-DKhNwgEQ.js → blockDiagram-c4efeb88-DuND8Id_.js} +1 -1
- package/dist/assets/{c4Diagram-c83219d4-CWODEGms.js → c4Diagram-c83219d4-CrENVa9z.js} +1 -1
- package/dist/assets/channel-CE7hI28G.js +1 -0
- package/dist/assets/{classDiagram-beda092f-DlghsOqF.js → classDiagram-beda092f-DLPG6RB7.js} +1 -1
- package/dist/assets/{classDiagram-v2-2358418a-CrSR8gWz.js → classDiagram-v2-2358418a-BKv3EDtT.js} +1 -1
- package/dist/assets/client-build-info-tgdsIlyX.js +1 -0
- package/dist/assets/clone-Ddl6jS9o.js +1 -0
- package/dist/assets/{createText-1719965b-CLlPr73k.js → createText-1719965b-NwleWdyg.js} +1 -1
- package/dist/assets/{cssMode-Bt_74RVV.js → cssMode-ww9pyNNv.js} +1 -1
- package/dist/assets/{dockPanelConstants-BWuu_DJp.js → dockPanelConstants-CW3M3t4v.js} +1 -1
- package/dist/assets/{edges-96097737-L_gy1fky.js → edges-96097737-D8fX9hn5.js} +1 -1
- package/dist/assets/{erDiagram-0228fc6a-X1QMD6me.js → erDiagram-0228fc6a-HDOuPZk2.js} +1 -1
- package/dist/assets/{flowDb-c6c81e3f-DNdWK0Po.js → flowDb-c6c81e3f-CnExuc5d.js} +1 -1
- package/dist/assets/{flowDiagram-50d868cf-C2khStgw.js → flowDiagram-50d868cf-DZV01cOD.js} +1 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-Tygi-b2q.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-C89sxd2D.js → flowchart-elk-definition-6af322e1-rMtb8Q3Q.js} +1 -1
- package/dist/assets/{freemarker2-DZ1XIuHj.js → freemarker2-CtQwsBbf.js} +1 -1
- package/dist/assets/{ganttDiagram-a2739b55-Ba3rPNKd.js → ganttDiagram-a2739b55-BPZWVVUB.js} +1 -1
- package/dist/assets/{gitGraphDiagram-82fe8481-DTEFHHtN.js → gitGraphDiagram-82fe8481-DF7pLuMJ.js} +1 -1
- package/dist/assets/{graph-BPujwFoF.js → graph-DKmOtEDg.js} +1 -1
- package/dist/assets/{handlebars-lOgsnnQw.js → handlebars-nX8yIw3l.js} +1 -1
- package/dist/assets/{html-DLHadu9L.js → html-CbuZuRXh.js} +1 -1
- package/dist/assets/{htmlMode-VeiQ-IsQ.js → htmlMode-CJH80z5n.js} +1 -1
- package/dist/assets/{index-5325376f-Cx2RM6pk.js → index-5325376f-DEHuhQF_.js} +1 -1
- package/dist/assets/{index-DBUG8CzV.js → index-CPxqxItX.js} +1 -1
- package/dist/assets/{index-sFqkb8xv.js → index-CqhgNUy-.js} +1 -1
- package/dist/assets/{index-CJEVYkL9.js → index-DOj3DlsY.js} +1 -1
- package/dist/assets/{index-Cp4GfHnF.js → index-DgZk1SFp.js} +27 -27
- package/dist/assets/{index-CBFCjoHv.js → index-DnQoX9ZY.js} +1 -1
- package/dist/assets/{index-D4eelxQF.js → index-JwN0oF3c.js} +1 -1
- package/dist/assets/{index-CWmEuVWV.js → index-aZ1QdVqZ.js} +1 -1
- package/dist/assets/{infoDiagram-8eee0895-Bj9hWnDg.js → infoDiagram-8eee0895-CZD8lkRQ.js} +1 -1
- package/dist/assets/interaction-panel-mobile-debug-pages-Bu5Kh4-Z.css +1 -0
- package/dist/assets/interaction-panel-mobile-debug-pages-CT5eb8Gd.js +171 -0
- package/dist/assets/{javascript-CXJw-bvU.js → javascript-CxKLYDBQ.js} +1 -1
- package/dist/assets/{journeyDiagram-c64418c1-BXAycrrn.js → journeyDiagram-c64418c1-BMaEeakR.js} +1 -1
- package/dist/assets/{jsonMode-DmUNJfpX.js → jsonMode-DIC-5Lwr.js} +1 -1
- package/dist/assets/{layout-Bp8GVMnq.js → layout-Q0dn6j1W.js} +1 -1
- package/dist/assets/{line-olpPNgnh.js → line-BqB1JWak.js} +1 -1
- package/dist/assets/{linear-flh_7ux_.js → linear-VTwyGoCc.js} +1 -1
- package/dist/assets/{liquid-BiVpRgBP.js → liquid-DNvVNW0k.js} +1 -1
- package/dist/assets/{lspLanguageFeatures-olWF83eX.js → lspLanguageFeatures-DeOzllRF.js} +1 -1
- package/dist/assets/{mdx-B5dr7YB-.js → mdx-C98MqvlS.js} +1 -1
- package/dist/assets/{mermaid.core-NVIiXnRA.js → mermaid.core-DBYO3wup.js} +4 -4
- package/dist/assets/{mindmap-definition-8da855dc-BOCh8K8K.js → mindmap-definition-8da855dc-D9C_cL3R.js} +1 -1
- package/dist/assets/{pieDiagram-a8764435-CCitKBQK.js → pieDiagram-a8764435-FVnh07ga.js} +1 -1
- package/dist/assets/{project-file-tree-icons-DqqhgvoI.js → project-file-tree-icons-Iz30jDs3.js} +1 -1
- package/dist/assets/{python-BkEOPIle.js → python-Emg9kCcG.js} +1 -1
- package/dist/assets/{quadrantDiagram-1e28029f-C_FvcHzZ.js → quadrantDiagram-1e28029f-DKEnlnQE.js} +1 -1
- package/dist/assets/{razor-BCMQgdis.js → razor-BebYpuFx.js} +1 -1
- package/dist/assets/{requirementDiagram-08caed73-B001ugYd.js → requirementDiagram-08caed73-BHVdwyn8.js} +1 -1
- package/dist/assets/{route-plugin-chrome-B-Goj3vG.js → route-plugin-chrome-DI32l8cC.js} +1 -1
- package/dist/assets/{sankeyDiagram-a04cb91d-BnkC9YW5.js → sankeyDiagram-a04cb91d-COhhpvg5.js} +1 -1
- package/dist/assets/{sequenceDiagram-c5b8d532-BGiFCs5z.js → sequenceDiagram-c5b8d532-CfjihR0y.js} +1 -1
- package/dist/assets/{shortcutUtils-20iqPDwh.js → shortcutUtils-HFKOHIG8.js} +1 -1
- package/dist/assets/{stateDiagram-1ecb1508-Uk4XxTkP.js → stateDiagram-1ecb1508-BjgwBAXi.js} +1 -1
- package/dist/assets/{stateDiagram-v2-c2b004d7-Db6Ouywh.js → stateDiagram-v2-c2b004d7-D3w7Spww.js} +1 -1
- package/dist/assets/{styles-b4e223ce-CfG45yIm.js → styles-b4e223ce-BOAkdyMQ.js} +1 -1
- package/dist/assets/{styles-ca3715f6-BGGbMvKc.js → styles-ca3715f6-CcZFkBde.js} +1 -1
- package/dist/assets/{styles-d45a18b0-mHteeqS2.js → styles-d45a18b0-HXDBEoho.js} +1 -1
- package/dist/assets/{svgDrawCommon-b86b1483-BAMR2PsF.js → svgDrawCommon-b86b1483-CyvFXNjU.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-DLBoPuJD.js → timeline-definition-faaaa080-CKFw-bXV.js} +1 -1
- package/dist/assets/{tsMode-BTzZ8Zos.js → tsMode-B7ZLt3D7.js} +1 -1
- package/dist/assets/{typescript-_rLmAd51.js → typescript-BI4b07nJ.js} +1 -1
- package/dist/assets/{use-app-preferences-gyulV-hA.js → use-app-preferences-BZCemhY7.js} +1 -1
- package/dist/assets/{use-chat-session-actions-DDZ5KCua.js → use-chat-session-actions-BNmm_R8s.js} +1 -1
- package/dist/assets/{vendor-state-BYwEPTaO.js → vendor-state-Djj0Jjxr.js} +1 -1
- package/dist/assets/{workspace-file-openers-BwZ5cSeq.js → workspace-file-openers-yFyhcWXX.js} +1 -1
- package/dist/assets/{xml-BAU8TJ-c.js → xml--qVpqb-2.js} +1 -1
- package/dist/assets/{xychartDiagram-f5964ef8-CNfcxTsi.js → xychartDiagram-f5964ef8-v75Tkx5A.js} +1 -1
- package/dist/assets/{yaml-_cphTIn0.js → yaml-CkA7Z41y.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +17 -17
- package/dist/assets/StandaloneMobileDebugRoute-DuOLjUb9.css +0 -1
- package/dist/assets/channel-BsuHYNQO.js +0 -1
- package/dist/assets/client-build-info-bcijLdfD.js +0 -1
- package/dist/assets/clone-BKV6leIk.js +0 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-DW5hyUju.js +0 -1
- package/dist/assets/interaction-panel-mobile-debug-pages-1Gdivksn.js +0 -113
- package/dist/assets/interaction-panel-mobile-debug-pages-8AAd4Csf.css +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-D4QpJJKB.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/latex-B4uzh10-.js","assets/tex-CvyZ59Mk.js","assets/liquid-DYVedYrR.js","assets/marko-DZsq8hO1.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-C1TweQQi.js","assets/csharp-K5feNrxe.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-zxCyuUbr.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-DN_0RTcg.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-CQOfvN7w.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Jt=Object.defineProperty;var Qt=(i,e,t)=>e in i?Jt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var _=(i,e,t)=>Qt(i,typeof e!="symbol"?e+"":e,t);import{_ as c}from"./index-Cp4GfHnF.js";import{cb as je,cc as ft,cd as Yt,ce as Xt,cf as Zt,cg as Ye,ch as er}from"./AuthenticatedApp-CgBrvMuc.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-BYwEPTaO.js";import"./MobileAwareSelect-BmK6WApn.js";import"./use-app-preferences-gyulV-hA.js";import"./route-plugin-chrome-B-Goj3vG.js";import"./shortcutUtils-20iqPDwh.js";import"./project-file-tree-icons-DqqhgvoI.js";import"./WorkspaceApp-BNmtIdn4.js";import"./index-CWmEuVWV.js";import"./client-build-info-bcijLdfD.js";const Xe={}.hasOwnProperty;function tr(i,e){const t=e||{};function r(n,...s){let o=r.invalid;const l=r.handlers;if(n&&Xe.call(n,i)){const a=String(n[i]);o=Xe.call(l,a)?l[a]:r.unknown}if(o)return o.call(this,n,...s)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}let P=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function rr(i){return $e(i)}function $e(i){return Array.isArray(i)?ir(i):i instanceof RegExp?i:typeof i=="object"?nr(i):i}function ir(i){let e=[];for(let t=0,r=i.length;t<r;t++)e[t]=$e(i[t]);return e}function nr(i){let e={};for(let t in i)e[t]=$e(i[t]);return e}function gt(i,...e){return e.forEach(t=>{for(let r in t)i[r]=t[r]}),i}function Et(i){const e=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return e===0?i:~e===i.length-1?Et(i.substring(0,i.length-1)):i.substr(~e+1)}var be=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ne=class{static hasCaptures(i){return i===null?!1:(be.lastIndex=0,be.test(i))}static replaceCaptures(i,e,t){return i.replace(be,(r,n,s,o)=>{let l=t[parseInt(n||s,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return r})}};function yt(i,e){return i<e?-1:i>e?1:0}function vt(i,e){if(i===null&&e===null)return 0;if(!i)return-1;if(!e)return 1;let t=i.length,r=e.length;if(t===r){for(let n=0;n<t;n++){let s=yt(i[n],e[n]);if(s!==0)return s}return 0}return t-r}function Ze(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function Rt(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var At=class{constructor(i){_(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const e=this.fn(i);return this.cache.set(i,e),e}},ue=class{constructor(i,e,t){_(this,"_cachedMatchRoot",new At(i=>this._root.match(i)));this._colorMap=i,this._defaults=e,this._root=t}static createFromRawTheme(i,e){return this.createFromParsedTheme(ar(i),e)}static createFromParsedTheme(i,e){return lr(i,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const e=i.scopeName,r=this._cachedMatchRoot.get(e).find(n=>sr(i.parent,n.parentScopes));return r?new Tt(r.fontStyle,r.foreground,r.background):null}},Pe=class ce{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new ce(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new ce(t,e[r]);return t}push(e){return new ce(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function sr(i,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],n=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],n=!0}for(;i&&!or(i.scopeName,r);){if(n)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function or(i,e){return e===i||i.startsWith(e)&&i[e.length]==="."}var Tt=class{constructor(i,e,t){this.fontStyle=i,this.foregroundId=e,this.backgroundId=t}};function ar(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let e=i.settings,t=[],r=0;for(let n=0,s=e.length;n<s;n++){let o=e[n];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let m=o.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),l=m.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let m=o.settings.fontStyle.split(" ");for(let h=0,p=m.length;h<p;h++)switch(m[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof o.settings.foreground=="string"&&Ze(o.settings.foreground)&&(u=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&Ze(o.settings.background)&&(d=o.settings.background);for(let m=0,h=l.length;m<h;m++){let f=l[m].trim().split(" "),v=f[f.length-1],R=null;f.length>1&&(R=f.slice(0,f.length-1),R.reverse()),t[r++]=new cr(v,R,n,a,u,d)}}return t}var cr=class{constructor(i,e,t,r,n,s){this.scope=i,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=n,this.background=s}},C=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(C||{});function lr(i,e){i.sort((a,u)=>{let d=yt(a.scope,u.scope);return d!==0||(d=vt(a.parentScopes,u.parentScopes),d!==0)?d:a.index-u.index});let t=0,r="#000000",n="#ffffff";for(;i.length>=1&&i[0].scope==="";){let a=i.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(n=a.background)}let s=new ur(e),o=new Tt(t,s.getId(r),s.getId(n)),l=new dr(new ke(0,null,-1,0,0),[]);for(let a=0,u=i.length;a<u;a++){let d=i[a];l.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new ue(s,o,l)}var ur=class{constructor(i){_(this,"_isFrozen");_(this,"_lastColorId");_(this,"_id2color");_(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(i)){this._isFrozen=!0;for(let e=0,t=i.length;e<t;e++)this._color2id[i[e]]=e,this._id2color[e]=i[e]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let e=this._color2id[i];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return e=++this._lastColorId,this._color2id[i]=e,this._id2color[e]=i,e}getColorMap(){return this._id2color.slice(0)}},mr=Object.freeze([]),ke=class Lt{constructor(e,t,r,n,s){_(this,"scopeDepth");_(this,"parentScopes");_(this,"fontStyle");_(this,"foreground");_(this,"background");this.scopeDepth=e,this.parentScopes=t||mr,this.fontStyle=r,this.foreground=n,this.background=s}clone(){return new Lt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),n!==0&&(this.background=n)}},dr=class De{constructor(e,t=[],r={}){_(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[n]===">"&&n++,!(r>=e.parentScopes.length||n>=t.parentScopes.length);){const s=t.parentScopes[n].length-e.parentScopes[r].length;if(s!==0)return s;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),n,s;if(r===-1?(n=e,s=""):(n=e.substring(0,r),s=e.substring(r+1)),this._children.hasOwnProperty(n))return this._children[n].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(De._cmpBySpecificity),t}insert(e,t,r,n,s,o){if(t===""){this._doInsertHere(e,r,n,s,o);return}let l=t.indexOf("."),a,u;l===-1?(a=t,u=""):(a=t.substring(0,l),u=t.substring(l+1));let d;this._children.hasOwnProperty(a)?d=this._children[a]:(d=new De(this._mainRule.clone(),ke.cloneArr(this._rulesWithParentScopes)),this._children[a]=d),d.insert(e+1,u,r,n,s,o)}_doInsertHere(e,t,r,n,s){if(t===null){this._mainRule.acceptOverwrite(e,r,n,s);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let a=this._rulesWithParentScopes[o];if(vt(a.parentScopes,t)===0){a.acceptOverwrite(e,r,n,s);return}}r===-1&&(r=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new ke(e,t,r,n,s))}},K=class D{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=D.getLanguageId(e),r=D.getTokenType(e),n=D.getFontStyle(e),s=D.getForeground(e),o=D.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:n,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,n,s,o,l){let a=D.getLanguageId(e),u=D.getTokenType(e),d=D.containsBalancedBrackets(e)?1:0,m=D.getFontStyle(e),h=D.getForeground(e),p=D.getBackground(e);return t!==0&&(a=t),r!==8&&(u=r),n!==null&&(d=n?1:0),s!==-1&&(m=s),o!==0&&(h=o),l!==0&&(p=l),(a<<0|u<<8|d<<10|m<<11|h<<15|p<<24)>>>0}};function me(i,e){const t=[],r=hr(i);let n=r.next();for(;n!==null;){let a=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=r.next()}let u=o();if(t.push({matcher:u,priority:a}),n!==",")break;n=r.next()}return t;function s(){if(n==="-"){n=r.next();const a=s();return u=>!!a&&!a(u)}if(n==="("){n=r.next();const a=l();return n===")"&&(n=r.next()),a}if(et(n)){const a=[];do a.push(n),n=r.next();while(et(n));return u=>e(a,u)}return null}function o(){const a=[];let u=s();for(;u;)a.push(u),u=s();return d=>a.every(m=>m(d))}function l(){const a=[];let u=o();for(;u&&(a.push(u),n==="|"||n===",");){do n=r.next();while(n==="|"||n===",");u=o()}return d=>a.some(m=>m(d))}}function et(i){return!!i&&!!i.match(/[\w\.:]+/)}function hr(i){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(i);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(i),r}}}function bt(i){typeof i.dispose=="function"&&i.dispose()}var Z=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},pr=class{constructor(i,e){this.scopeName=i,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},_r=class{constructor(){_(this,"_references",[]);_(this,"_seenReferenceKeys",new Set);_(this,"visitedRule",new Set)}get references(){return this._references}add(i){const e=i.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(i))}},fr=class{constructor(i,e){_(this,"seenFullScopeRequests",new Set);_(this,"seenPartialScopeRequests",new Set);_(this,"Q");this.repo=i,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Z(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const e=new _r;for(const t of i)gr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Z){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function gr(i,e,t,r){const n=t.lookup(i.scopeName);if(!n){if(i.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);i instanceof Z?le({baseGrammar:s,selfGrammar:n},r):Ne(i.ruleName,{baseGrammar:s,selfGrammar:n,repository:n.repository},r);const o=t.injections(i.scopeName);if(o)for(const l of o)r.add(new Z(l))}function Ne(i,e,t){if(e.repository&&e.repository[i]){const r=e.repository[i];de([r],e,t)}}function le(i,e){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&de(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},e),i.selfGrammar.injections&&de(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},e)}function de(i,e,t){for(const r of i){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const n=r.repository?gt({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&de(r.patterns,{...e,repository:n},t);const s=r.include;if(!s)continue;const o=Pt(s);switch(o.kind){case 0:le({...e,selfGrammar:e.baseGrammar},t);break;case 1:le(e,t);break;case 2:Ne(o.ruleName,{...e,repository:n},t);break;case 3:case 4:const l=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:n};o.kind===4?Ne(o.ruleName,a,t):le(a,t)}else o.kind===4?t.add(new pr(o.scopeName,o.ruleName)):t.add(new Z(o.scopeName));break}}}var Er=class{constructor(){_(this,"kind",0)}},yr=class{constructor(){_(this,"kind",1)}},vr=class{constructor(i){_(this,"kind",2);this.ruleName=i}},Rr=class{constructor(i){_(this,"kind",3);this.scopeName=i}},Ar=class{constructor(i,e){_(this,"kind",4);this.scopeName=i,this.ruleName=e}};function Pt(i){if(i==="$base")return new Er;if(i==="$self")return new yr;const e=i.indexOf("#");if(e===-1)return new Rr(i);if(e===0)return new vr(i.substring(1));{const t=i.substring(0,e),r=i.substring(e+1);return new Ar(t,r)}}var Tr=/\\(\d+)/,tt=/\\(\d+)/g,Lr=-1,It=-2;var ie=class{constructor(i,e,t,r){_(this,"$location");_(this,"id");_(this,"_nameIsCapturing");_(this,"_name");_(this,"_contentNameIsCapturing");_(this,"_contentName");this.$location=i,this.id=e,this._name=t||null,this._nameIsCapturing=ne.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ne.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${Et(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,e){return!this._nameIsCapturing||this._name===null||i===null||e===null?this._name:ne.replaceCaptures(this._name,i,e)}getContentName(i,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ne.replaceCaptures(this._contentName,i,e)}},br=class extends ie{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,n){throw new Error("Not supported!")}},Pr=class extends ie{constructor(e,t,r,n,s){super(e,t,r,null);_(this,"_match");_(this,"captures");_(this,"_cachedCompiledPatterns");this._match=new ee(n,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new te,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rt=class extends ie{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new te,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ve=class extends ie{constructor(e,t,r,n,s,o,l,a,u,d){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"_end");_(this,"endHasBackReferences");_(this,"endCaptures");_(this,"applyEndPatternLast");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this._begin=new ee(s,this.id),this.beginCaptures=o,this._end=new ee(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=u||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new te;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},he=class extends ie{constructor(e,t,r,n,s,o,l,a,u){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"whileCaptures");_(this,"_while");_(this,"whileHasBackReferences");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");_(this,"_cachedCompiledWhilePatterns");this._begin=new ee(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new ee(l,It),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new te;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new te,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},St=class w{static createCaptureRule(e,t,r,n,s){return e.registerRule(o=>new br(t,o,r,n,s))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new Pr(e.$vscodeTextmateLocation,e.id,e.name,e.match,w._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=gt({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,w._compilePatterns(s,t,r))}return e.while?new he(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,w._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,w._compileCaptures(e.whileCaptures||e.captures,t,r),w._compilePatterns(e.patterns,t,r)):new Ve(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,w._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,w._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,w._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let n=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>s&&(s=l)}for(let o=0;o<=s;o++)n[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let a=0;e[o].patterns&&(a=w.getCompiledRuleId(e[o],t,r)),n[l]=w.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return n}static _compilePatterns(e,t,r){let n=[];if(e)for(let s=0,o=e.length;s<o;s++){const l=e[s];let a=-1;if(l.include){const u=Pt(l.include);switch(u.kind){case 0:case 1:a=w.getCompiledRuleId(r[l.include],t,r);break;case 2:let d=r[u.ruleName];d&&(a=w.getCompiledRuleId(d,t,r));break;case 3:case 4:const m=u.scopeName,h=u.kind===4?u.ruleName:null,p=t.getExternalGrammar(m,r);if(p)if(h){let f=p.repository[h];f&&(a=w.getCompiledRuleId(f,t,p.repository))}else a=w.getCompiledRuleId(p.repository.$self,t,p.repository);break}}else a=w.getCompiledRuleId(l,t,r);if(a!==-1){const u=t.getRule(a);let d=!1;if((u instanceof rt||u instanceof Ve||u instanceof he)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;n.push(a)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},ee=class Ot{constructor(e,t){_(this,"source");_(this,"ruleId");_(this,"hasAnchor");_(this,"hasBackReferences");_(this,"_anchorCache");if(e&&typeof e=="string"){const r=e.length;let n=0,s=[],o=!1;for(let l=0;l<r;l++)if(e.charAt(l)==="\\"&&l+1<r){const u=e.charAt(l+1);u==="z"?(s.push(e.substring(n,l)),s.push("$(?!\\n)(?<!\\n)"),n=l+2):(u==="A"||u==="G")&&(o=!0),l++}this.hasAnchor=o,n===0?this.source=e:(s.push(e.substring(n,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Tr.test(this.source):this.hasBackReferences=!1}clone(){return new Ot(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=t.map(n=>e.substring(n.start,n.end));return tt.lastIndex=0,this.source.replace(tt,(n,s)=>Rt(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],r=[],n=[],s,o,l,a;for(s=0,o=this.source.length;s<o;s++)l=this.source.charAt(s),e[s]=l,t[s]=l,r[s]=l,n[s]=l,l==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="",t[s+1]="",r[s+1]="A",n[s+1]="A"):a==="G"?(e[s+1]="",t[s+1]="G",r[s+1]="",n[s+1]="G"):(e[s+1]=a,t[s+1]=a,r[s+1]=a,n[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},te=class{constructor(){_(this,"_items");_(this,"_hasAnchors");_(this,"_cached");_(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,e){this._items[i].source!==e&&(this._disposeCaches(),this._items[i].setSource(e))}compile(i){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new it(i,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(i,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,e,t){let r=this._items.map(n=>n.resolveAnchors(e,t));return new it(i,r,this._items.map(n=>n.ruleId))}},it=class{constructor(i,e,t){_(this,"scanner");this.regExps=e,this.rules=t,this.scanner=i.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let e=0,t=this.rules.length;e<t;e++)i.push(" - "+this.rules[e]+": "+this.regExps[e]);return i.join(`
|
|
2
|
+
var Jt=Object.defineProperty;var Qt=(i,e,t)=>e in i?Jt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var _=(i,e,t)=>Qt(i,typeof e!="symbol"?e+"":e,t);import{_ as c}from"./index-DgZk1SFp.js";import{cb as je,cc as ft,cd as Yt,ce as Xt,cf as Zt,cg as Ye,ch as er}from"./AuthenticatedApp-CjqSg3Fe.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-Djj0Jjxr.js";import"./MobileAwareSelect-C3a67aGF.js";import"./use-app-preferences-BZCemhY7.js";import"./route-plugin-chrome-DI32l8cC.js";import"./shortcutUtils-HFKOHIG8.js";import"./project-file-tree-icons-Iz30jDs3.js";import"./WorkspaceApp-CokR7Tpr.js";import"./index-aZ1QdVqZ.js";import"./client-build-info-tgdsIlyX.js";const Xe={}.hasOwnProperty;function tr(i,e){const t=e||{};function r(n,...s){let o=r.invalid;const l=r.handlers;if(n&&Xe.call(n,i)){const a=String(n[i]);o=Xe.call(l,a)?l[a]:r.unknown}if(o)return o.call(this,n,...s)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}let P=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function rr(i){return $e(i)}function $e(i){return Array.isArray(i)?ir(i):i instanceof RegExp?i:typeof i=="object"?nr(i):i}function ir(i){let e=[];for(let t=0,r=i.length;t<r;t++)e[t]=$e(i[t]);return e}function nr(i){let e={};for(let t in i)e[t]=$e(i[t]);return e}function gt(i,...e){return e.forEach(t=>{for(let r in t)i[r]=t[r]}),i}function Et(i){const e=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return e===0?i:~e===i.length-1?Et(i.substring(0,i.length-1)):i.substr(~e+1)}var be=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ne=class{static hasCaptures(i){return i===null?!1:(be.lastIndex=0,be.test(i))}static replaceCaptures(i,e,t){return i.replace(be,(r,n,s,o)=>{let l=t[parseInt(n||s,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return r})}};function yt(i,e){return i<e?-1:i>e?1:0}function vt(i,e){if(i===null&&e===null)return 0;if(!i)return-1;if(!e)return 1;let t=i.length,r=e.length;if(t===r){for(let n=0;n<t;n++){let s=yt(i[n],e[n]);if(s!==0)return s}return 0}return t-r}function Ze(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function Rt(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var At=class{constructor(i){_(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const e=this.fn(i);return this.cache.set(i,e),e}},ue=class{constructor(i,e,t){_(this,"_cachedMatchRoot",new At(i=>this._root.match(i)));this._colorMap=i,this._defaults=e,this._root=t}static createFromRawTheme(i,e){return this.createFromParsedTheme(ar(i),e)}static createFromParsedTheme(i,e){return lr(i,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const e=i.scopeName,r=this._cachedMatchRoot.get(e).find(n=>sr(i.parent,n.parentScopes));return r?new Tt(r.fontStyle,r.foreground,r.background):null}},Pe=class ce{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new ce(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new ce(t,e[r]);return t}push(e){return new ce(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function sr(i,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],n=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],n=!0}for(;i&&!or(i.scopeName,r);){if(n)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function or(i,e){return e===i||i.startsWith(e)&&i[e.length]==="."}var Tt=class{constructor(i,e,t){this.fontStyle=i,this.foregroundId=e,this.backgroundId=t}};function ar(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let e=i.settings,t=[],r=0;for(let n=0,s=e.length;n<s;n++){let o=e[n];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let m=o.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),l=m.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let m=o.settings.fontStyle.split(" ");for(let h=0,p=m.length;h<p;h++)switch(m[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof o.settings.foreground=="string"&&Ze(o.settings.foreground)&&(u=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&Ze(o.settings.background)&&(d=o.settings.background);for(let m=0,h=l.length;m<h;m++){let f=l[m].trim().split(" "),v=f[f.length-1],R=null;f.length>1&&(R=f.slice(0,f.length-1),R.reverse()),t[r++]=new cr(v,R,n,a,u,d)}}return t}var cr=class{constructor(i,e,t,r,n,s){this.scope=i,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=n,this.background=s}},C=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(C||{});function lr(i,e){i.sort((a,u)=>{let d=yt(a.scope,u.scope);return d!==0||(d=vt(a.parentScopes,u.parentScopes),d!==0)?d:a.index-u.index});let t=0,r="#000000",n="#ffffff";for(;i.length>=1&&i[0].scope==="";){let a=i.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(n=a.background)}let s=new ur(e),o=new Tt(t,s.getId(r),s.getId(n)),l=new dr(new ke(0,null,-1,0,0),[]);for(let a=0,u=i.length;a<u;a++){let d=i[a];l.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new ue(s,o,l)}var ur=class{constructor(i){_(this,"_isFrozen");_(this,"_lastColorId");_(this,"_id2color");_(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(i)){this._isFrozen=!0;for(let e=0,t=i.length;e<t;e++)this._color2id[i[e]]=e,this._id2color[e]=i[e]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let e=this._color2id[i];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return e=++this._lastColorId,this._color2id[i]=e,this._id2color[e]=i,e}getColorMap(){return this._id2color.slice(0)}},mr=Object.freeze([]),ke=class Lt{constructor(e,t,r,n,s){_(this,"scopeDepth");_(this,"parentScopes");_(this,"fontStyle");_(this,"foreground");_(this,"background");this.scopeDepth=e,this.parentScopes=t||mr,this.fontStyle=r,this.foreground=n,this.background=s}clone(){return new Lt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),n!==0&&(this.background=n)}},dr=class De{constructor(e,t=[],r={}){_(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[n]===">"&&n++,!(r>=e.parentScopes.length||n>=t.parentScopes.length);){const s=t.parentScopes[n].length-e.parentScopes[r].length;if(s!==0)return s;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),n,s;if(r===-1?(n=e,s=""):(n=e.substring(0,r),s=e.substring(r+1)),this._children.hasOwnProperty(n))return this._children[n].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(De._cmpBySpecificity),t}insert(e,t,r,n,s,o){if(t===""){this._doInsertHere(e,r,n,s,o);return}let l=t.indexOf("."),a,u;l===-1?(a=t,u=""):(a=t.substring(0,l),u=t.substring(l+1));let d;this._children.hasOwnProperty(a)?d=this._children[a]:(d=new De(this._mainRule.clone(),ke.cloneArr(this._rulesWithParentScopes)),this._children[a]=d),d.insert(e+1,u,r,n,s,o)}_doInsertHere(e,t,r,n,s){if(t===null){this._mainRule.acceptOverwrite(e,r,n,s);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let a=this._rulesWithParentScopes[o];if(vt(a.parentScopes,t)===0){a.acceptOverwrite(e,r,n,s);return}}r===-1&&(r=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new ke(e,t,r,n,s))}},K=class D{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=D.getLanguageId(e),r=D.getTokenType(e),n=D.getFontStyle(e),s=D.getForeground(e),o=D.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:n,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,n,s,o,l){let a=D.getLanguageId(e),u=D.getTokenType(e),d=D.containsBalancedBrackets(e)?1:0,m=D.getFontStyle(e),h=D.getForeground(e),p=D.getBackground(e);return t!==0&&(a=t),r!==8&&(u=r),n!==null&&(d=n?1:0),s!==-1&&(m=s),o!==0&&(h=o),l!==0&&(p=l),(a<<0|u<<8|d<<10|m<<11|h<<15|p<<24)>>>0}};function me(i,e){const t=[],r=hr(i);let n=r.next();for(;n!==null;){let a=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=r.next()}let u=o();if(t.push({matcher:u,priority:a}),n!==",")break;n=r.next()}return t;function s(){if(n==="-"){n=r.next();const a=s();return u=>!!a&&!a(u)}if(n==="("){n=r.next();const a=l();return n===")"&&(n=r.next()),a}if(et(n)){const a=[];do a.push(n),n=r.next();while(et(n));return u=>e(a,u)}return null}function o(){const a=[];let u=s();for(;u;)a.push(u),u=s();return d=>a.every(m=>m(d))}function l(){const a=[];let u=o();for(;u&&(a.push(u),n==="|"||n===",");){do n=r.next();while(n==="|"||n===",");u=o()}return d=>a.some(m=>m(d))}}function et(i){return!!i&&!!i.match(/[\w\.:]+/)}function hr(i){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(i);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(i),r}}}function bt(i){typeof i.dispose=="function"&&i.dispose()}var Z=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},pr=class{constructor(i,e){this.scopeName=i,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},_r=class{constructor(){_(this,"_references",[]);_(this,"_seenReferenceKeys",new Set);_(this,"visitedRule",new Set)}get references(){return this._references}add(i){const e=i.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(i))}},fr=class{constructor(i,e){_(this,"seenFullScopeRequests",new Set);_(this,"seenPartialScopeRequests",new Set);_(this,"Q");this.repo=i,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Z(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const e=new _r;for(const t of i)gr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Z){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function gr(i,e,t,r){const n=t.lookup(i.scopeName);if(!n){if(i.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);i instanceof Z?le({baseGrammar:s,selfGrammar:n},r):Ne(i.ruleName,{baseGrammar:s,selfGrammar:n,repository:n.repository},r);const o=t.injections(i.scopeName);if(o)for(const l of o)r.add(new Z(l))}function Ne(i,e,t){if(e.repository&&e.repository[i]){const r=e.repository[i];de([r],e,t)}}function le(i,e){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&de(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},e),i.selfGrammar.injections&&de(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},e)}function de(i,e,t){for(const r of i){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const n=r.repository?gt({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&de(r.patterns,{...e,repository:n},t);const s=r.include;if(!s)continue;const o=Pt(s);switch(o.kind){case 0:le({...e,selfGrammar:e.baseGrammar},t);break;case 1:le(e,t);break;case 2:Ne(o.ruleName,{...e,repository:n},t);break;case 3:case 4:const l=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:n};o.kind===4?Ne(o.ruleName,a,t):le(a,t)}else o.kind===4?t.add(new pr(o.scopeName,o.ruleName)):t.add(new Z(o.scopeName));break}}}var Er=class{constructor(){_(this,"kind",0)}},yr=class{constructor(){_(this,"kind",1)}},vr=class{constructor(i){_(this,"kind",2);this.ruleName=i}},Rr=class{constructor(i){_(this,"kind",3);this.scopeName=i}},Ar=class{constructor(i,e){_(this,"kind",4);this.scopeName=i,this.ruleName=e}};function Pt(i){if(i==="$base")return new Er;if(i==="$self")return new yr;const e=i.indexOf("#");if(e===-1)return new Rr(i);if(e===0)return new vr(i.substring(1));{const t=i.substring(0,e),r=i.substring(e+1);return new Ar(t,r)}}var Tr=/\\(\d+)/,tt=/\\(\d+)/g,Lr=-1,It=-2;var ie=class{constructor(i,e,t,r){_(this,"$location");_(this,"id");_(this,"_nameIsCapturing");_(this,"_name");_(this,"_contentNameIsCapturing");_(this,"_contentName");this.$location=i,this.id=e,this._name=t||null,this._nameIsCapturing=ne.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ne.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${Et(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,e){return!this._nameIsCapturing||this._name===null||i===null||e===null?this._name:ne.replaceCaptures(this._name,i,e)}getContentName(i,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ne.replaceCaptures(this._contentName,i,e)}},br=class extends ie{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,n){throw new Error("Not supported!")}},Pr=class extends ie{constructor(e,t,r,n,s){super(e,t,r,null);_(this,"_match");_(this,"captures");_(this,"_cachedCompiledPatterns");this._match=new ee(n,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new te,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rt=class extends ie{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new te,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ve=class extends ie{constructor(e,t,r,n,s,o,l,a,u,d){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"_end");_(this,"endHasBackReferences");_(this,"endCaptures");_(this,"applyEndPatternLast");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this._begin=new ee(s,this.id),this.beginCaptures=o,this._end=new ee(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=u||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new te;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},he=class extends ie{constructor(e,t,r,n,s,o,l,a,u){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"whileCaptures");_(this,"_while");_(this,"whileHasBackReferences");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");_(this,"_cachedCompiledWhilePatterns");this._begin=new ee(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new ee(l,It),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new te;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new te,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},St=class w{static createCaptureRule(e,t,r,n,s){return e.registerRule(o=>new br(t,o,r,n,s))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new Pr(e.$vscodeTextmateLocation,e.id,e.name,e.match,w._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=gt({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,w._compilePatterns(s,t,r))}return e.while?new he(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,w._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,w._compileCaptures(e.whileCaptures||e.captures,t,r),w._compilePatterns(e.patterns,t,r)):new Ve(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,w._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,w._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,w._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let n=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>s&&(s=l)}for(let o=0;o<=s;o++)n[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let a=0;e[o].patterns&&(a=w.getCompiledRuleId(e[o],t,r)),n[l]=w.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return n}static _compilePatterns(e,t,r){let n=[];if(e)for(let s=0,o=e.length;s<o;s++){const l=e[s];let a=-1;if(l.include){const u=Pt(l.include);switch(u.kind){case 0:case 1:a=w.getCompiledRuleId(r[l.include],t,r);break;case 2:let d=r[u.ruleName];d&&(a=w.getCompiledRuleId(d,t,r));break;case 3:case 4:const m=u.scopeName,h=u.kind===4?u.ruleName:null,p=t.getExternalGrammar(m,r);if(p)if(h){let f=p.repository[h];f&&(a=w.getCompiledRuleId(f,t,p.repository))}else a=w.getCompiledRuleId(p.repository.$self,t,p.repository);break}}else a=w.getCompiledRuleId(l,t,r);if(a!==-1){const u=t.getRule(a);let d=!1;if((u instanceof rt||u instanceof Ve||u instanceof he)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;n.push(a)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},ee=class Ot{constructor(e,t){_(this,"source");_(this,"ruleId");_(this,"hasAnchor");_(this,"hasBackReferences");_(this,"_anchorCache");if(e&&typeof e=="string"){const r=e.length;let n=0,s=[],o=!1;for(let l=0;l<r;l++)if(e.charAt(l)==="\\"&&l+1<r){const u=e.charAt(l+1);u==="z"?(s.push(e.substring(n,l)),s.push("$(?!\\n)(?<!\\n)"),n=l+2):(u==="A"||u==="G")&&(o=!0),l++}this.hasAnchor=o,n===0?this.source=e:(s.push(e.substring(n,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Tr.test(this.source):this.hasBackReferences=!1}clone(){return new Ot(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=t.map(n=>e.substring(n.start,n.end));return tt.lastIndex=0,this.source.replace(tt,(n,s)=>Rt(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],r=[],n=[],s,o,l,a;for(s=0,o=this.source.length;s<o;s++)l=this.source.charAt(s),e[s]=l,t[s]=l,r[s]=l,n[s]=l,l==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="",t[s+1]="",r[s+1]="A",n[s+1]="A"):a==="G"?(e[s+1]="",t[s+1]="G",r[s+1]="",n[s+1]="G"):(e[s+1]=a,t[s+1]=a,r[s+1]=a,n[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},te=class{constructor(){_(this,"_items");_(this,"_hasAnchors");_(this,"_cached");_(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,e){this._items[i].source!==e&&(this._disposeCaches(),this._items[i].setSource(e))}compile(i){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new it(i,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(i,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,e,t){let r=this._items.map(n=>n.resolveAnchors(e,t));return new it(i,r,this._items.map(n=>n.ruleId))}},it=class{constructor(i,e,t){_(this,"scanner");this.regExps=e,this.rules=t,this.scanner=i.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let e=0,t=this.rules.length;e<t;e++)i.push(" - "+this.rules[e]+": "+this.regExps[e]);return i.join(`
|
|
3
3
|
`)}findNextMatchSync(i,e,t){const r=this.scanner.findNextMatchSync(i,e,t);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Ie=class{constructor(i,e){this.languageId=i,this.tokenType=e}},M,Ir=(M=class{constructor(e,t){_(this,"_defaultAttributes");_(this,"_embeddedLanguagesMatcher");_(this,"_getBasicScopeAttributes",new At(e=>{const t=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new Ie(t,r)}));this._defaultAttributes=new Ie(e,8),this._embeddedLanguagesMatcher=new Sr(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?M._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(M.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},_(M,"_NULL_SCOPE_METADATA",new Ie(0,0)),_(M,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),M),Sr=class{constructor(i){_(this,"values");_(this,"scopesRegExp");if(i.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(i);const e=i.map(([t,r])=>Rt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(i){if(!this.scopesRegExp)return;const e=i.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},nt=class{constructor(i,e){this.stack=i,this.stoppedEarly=e}};function wt(i,e,t,r,n,s,o,l){const a=e.content.length;let u=!1,d=-1;if(o){const p=Or(i,e,t,r,n,s);n=p.stack,r=p.linePos,t=p.isFirstLine,d=p.anchorPosition}const m=Date.now();for(;!u;){if(l!==0&&Date.now()-m>l)return new nt(n,!0);h()}return new nt(n,!1);function h(){const p=wr(i,e,t,r,n,d);if(!p){s.produce(n,a),u=!0;return}const f=p.captureIndices,v=p.matchedRuleId,R=f&&f.length>0?f[0].end>r:!1;if(v===Lr){const E=n.getRule(i);s.produce(n,f[0].start),n=n.withContentNameScopesList(n.nameScopesList),Y(i,e,t,n,s,E.endCaptures,f),s.produce(n,f[0].end);const y=n;if(n=n.parent,d=y.getAnchorPos(),!R&&y.getEnterPos()===r){n=y,s.produce(n,a),u=!0;return}}else{const E=i.getRule(v);s.produce(n,f[0].start);const y=n,g=E.getName(e.content,f),A=n.contentNameScopesList.pushAttributed(g,i);if(n=n.push(v,r,d,f[0].end===a,null,A,A),E instanceof Ve){const T=E;Y(i,e,t,n,s,T.beginCaptures,f),s.produce(n,f[0].end),d=f[0].end;const b=T.getContentName(e.content,f),L=A.pushAttributed(b,i);if(n=n.withContentNameScopesList(L),T.endHasBackReferences&&(n=n.withEndRule(T.getEndWithResolvedBackReferences(e.content,f))),!R&&y.hasSameRuleAs(n)){n=n.pop(),s.produce(n,a),u=!0;return}}else if(E instanceof he){const T=E;Y(i,e,t,n,s,T.beginCaptures,f),s.produce(n,f[0].end),d=f[0].end;const b=T.getContentName(e.content,f),L=A.pushAttributed(b,i);if(n=n.withContentNameScopesList(L),T.whileHasBackReferences&&(n=n.withEndRule(T.getWhileWithResolvedBackReferences(e.content,f))),!R&&y.hasSameRuleAs(n)){n=n.pop(),s.produce(n,a),u=!0;return}}else if(Y(i,e,t,n,s,E.captures,f),s.produce(n,f[0].end),n=n.pop(),!R){n=n.safePop(),s.produce(n,a),u=!0;return}}f[0].end>r&&(r=f[0].end,t=!1)}}function Or(i,e,t,r,n,s){let o=n.beginRuleCapturedEOL?0:-1;const l=[];for(let a=n;a;a=a.pop()){const u=a.getRule(i);u instanceof he&&l.push({rule:u,stack:a})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:u,findOptions:d}=Dr(a.rule,i,a.stack.endRule,t,r===o),m=u.findNextMatchSync(e,r,d);if(m){if(m.ruleId!==It){n=a.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(s.produce(a.stack,m.captureIndices[0].start),Y(i,e,t,a.stack,s,a.rule.whileCaptures,m.captureIndices),s.produce(a.stack,m.captureIndices[0].end),o=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,t=!1))}else{n=a.stack.pop();break}}return{stack:n,linePos:r,anchorPosition:o,isFirstLine:t}}function wr(i,e,t,r,n,s){const o=Cr(i,e,t,r,n,s),l=i.getInjections();if(l.length===0)return o;const a=kr(l,i,e,t,r,n,s);if(!a)return o;if(!o)return a;const u=o.captureIndices[0].start,d=a.captureIndices[0].start;return d<u||a.priorityMatch&&d===u?a:o}function Cr(i,e,t,r,n,s){const o=n.getRule(i),{ruleScanner:l,findOptions:a}=Ct(o,i,n.endRule,t,r===s),u=l.findNextMatchSync(e,r,a);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function kr(i,e,t,r,n,s,o){let l=Number.MAX_VALUE,a=null,u,d=0;const m=s.contentNameScopesList.getScopeNames();for(let h=0,p=i.length;h<p;h++){const f=i[h];if(!f.matcher(m))continue;const v=e.getRule(f.ruleId),{ruleScanner:R,findOptions:E}=Ct(v,e,null,r,n===o),y=R.findNextMatchSync(t,n,E);if(!y)continue;const g=y.captureIndices[0].start;if(!(g>=l)&&(l=g,a=y.captureIndices,u=y.ruleId,d=f.priority,l===n))break}return a?{priorityMatch:d===-1,captureIndices:a,matchedRuleId:u}:null}function Ct(i,e,t,r,n){return{ruleScanner:i.compileAG(e,t,r,n),findOptions:0}}function Dr(i,e,t,r,n){return{ruleScanner:i.compileWhileAG(e,t,r,n),findOptions:0}}function Y(i,e,t,r,n,s,o){if(s.length===0)return;const l=e.content,a=Math.min(s.length,o.length),u=[],d=o[0].end;for(let m=0;m<a;m++){const h=s[m];if(h===null)continue;const p=o[m];if(p.length===0)continue;if(p.start>d)break;for(;u.length>0&&u[u.length-1].endPos<=p.start;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?n.produceFromScopes(u[u.length-1].scopes,p.start):n.produce(r,p.start),h.retokenizeCapturedWithRuleId){const v=h.getName(l,o),R=r.contentNameScopesList.pushAttributed(v,i),E=h.getContentName(l,o),y=R.pushAttributed(E,i),g=r.push(h.retokenizeCapturedWithRuleId,p.start,-1,!1,null,R,y),A=i.createOnigString(l.substring(0,p.end));wt(i,A,t&&p.start===0,p.start,g,n,!1,0),bt(A);continue}const f=h.getName(l,o);if(f!==null){const R=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(f,i);u.push(new Nr(R,p.end))}}for(;u.length>0;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var Nr=class{constructor(i,e){_(this,"scopes");_(this,"endPos");this.scopes=i,this.endPos=e}};function Vr(i,e,t,r,n,s,o,l){return new Gr(i,e,t,r,n,s,o,l)}function st(i,e,t,r,n){const s=me(e,pe),o=St.getCompiledRuleId(t,r,n.repository);for(const l of s)i.push({debugSelector:e,matcher:l.matcher,ruleId:o,grammar:n,priority:l.priority})}function pe(i,e){if(e.length<i.length)return!1;let t=0;return i.every(r=>{for(let n=t;n<e.length;n++)if(xr(e[n],r))return t=n+1,!0;return!1})}function xr(i,e){if(!i)return!1;if(i===e)return!0;const t=e.length;return i.length>t&&i.substr(0,t)===e&&i[t]==="."}var Gr=class{constructor(i,e,t,r,n,s,o,l){_(this,"_rootId");_(this,"_lastRuleId");_(this,"_ruleId2desc");_(this,"_includedGrammars");_(this,"_grammarRepository");_(this,"_grammar");_(this,"_injections");_(this,"_basicScopeAttributesProvider");_(this,"_tokenTypeMatchers");if(this._rootScopeName=i,this.balancedBracketSelectors=s,this._onigLib=l,this._basicScopeAttributesProvider=new Ir(t,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=ot(e,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const a of Object.keys(n)){const u=me(a,pe);for(const d of u)this._tokenTypeMatchers.push({matcher:d.matcher,type:n[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const i of this._ruleId2desc)i&&i.dispose()}createOnigScanner(i){return this._onigLib.createOnigScanner(i)}createOnigString(i){return this._onigLib.createOnigString(i)}getMetadataForScope(i){return this._basicScopeAttributesProvider.getBasicScopeAttributes(i)}_collectInjections(){const i={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},e=[],t=this._rootScopeName,r=i.lookup(t);if(r){const n=r.injections;if(n)for(let o in n)st(e,o,n[o],this,r);const s=this._grammarRepository.injections(t);s&&s.forEach(o=>{const l=this.getExternalGrammar(o);if(l){const a=l.injectionSelector;a&&st(e,a,l,this,l)}})}return e.sort((n,s)=>n.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(i){const e=++this._lastRuleId,t=i(e);return this._ruleId2desc[e]=t,t}getRule(i){return this._ruleId2desc[i]}getExternalGrammar(i,e){if(this._includedGrammars[i])return this._includedGrammars[i];if(this._grammarRepository){const t=this._grammarRepository.lookup(i);if(t)return this._includedGrammars[i]=ot(t,e&&e.$base),this._includedGrammars[i]}}tokenizeLine(i,e,t=0){const r=this._tokenize(i,e,!1,t);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(i,e,t=0){const r=this._tokenize(i,e,!0,t);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(i,e,t,r){this._rootId===-1&&(this._rootId=St.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!e||e===xe.NULL){n=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),m=K.set(0,u.languageId,u.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),h=this.getRule(this._rootId).getName(null,null);let p;h?p=X.createRootAndLookUpScopeName(h,m,this):p=X.createRoot("unknown",m),e=new xe(null,this._rootId,-1,-1,!1,null,p,p)}else n=!1,e.reset();i=i+`
|
|
4
4
|
`;const s=this.createOnigString(i),o=s.content.length,l=new Br(t,i,this._tokenTypeMatchers,this.balancedBracketSelectors),a=wt(this,s,n,0,e,l,!0,r);return bt(s),{lineLength:o,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function ot(i,e){return i=rr(i),i.repository=i.repository||{},i.repository.$self={$vscodeTextmateLocation:i.$vscodeTextmateLocation,patterns:i.patterns,name:i.scopeName},i.repository.$base=e||i.repository.$self,i}var X=class V{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(e,t){let r=e,n=(e==null?void 0:e.scopePath)??null;for(const s of t)n=Pe.push(n,s.scopeNames),r=new V(r,n,s.encodedTokenAttributes);return r}static createRoot(e,t){return new V(null,new Pe(null,e),t)}static createRootAndLookUpScopeName(e,t,r){const n=r.getMetadataForScope(e),s=new Pe(null,e),o=r.themeProvider.themeMatch(s),l=V.mergeAttributes(t,n,o);return new V(null,s,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return V.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,r){let n=-1,s=0,o=0;return r!==null&&(n=r.fontStyle,s=r.foregroundId,o=r.backgroundId),K.set(e,t.languageId,t.tokenType,null,n,s,o)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return V._pushAttributed(this,e,t);const r=e.split(/ /g);let n=this;for(const s of r)n=V._pushAttributed(n,s,t);return n}static _pushAttributed(e,t,r){const n=r.getMetadataForScope(t),s=e.scopePath.push(t),o=r.themeProvider.themeMatch(s),l=V.mergeAttributes(e.tokenAttributes,n,o);return new V(e,s,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var n;const t=[];let r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((n=r.parent)==null?void 0:n.scopePath)??null)}),r=r.parent;return r===e?t.reverse():void 0}},N,xe=(N=class{constructor(e,t,r,n,s,o,l,a){_(this,"_stackElementBrand");_(this,"_enterPos");_(this,"_anchorPos");_(this,"depth");this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=l,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}equals(e){return e===null?!1:N._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?X.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){N._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,r,n,s,o,l){return new N(this,e,t,r,n,s,o,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var r,n;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(n=this.contentNameScopesList)==null?void 0:n.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new N(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const r=X.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new N(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,r,X.fromExtension(r,t.contentNameScopesList))}},_(N,"NULL",new N(null,0,0,0,!1,null,null,null)),N),Mr=class{constructor(i,e){_(this,"balancedBracketScopes");_(this,"unbalancedBracketScopes");_(this,"allowAny",!1);this.balancedBracketScopes=i.flatMap(t=>t==="*"?(this.allowAny=!0,[]):me(t,pe).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>me(t,pe).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(i){for(const e of this.unbalancedBracketScopes)if(e(i))return!1;for(const e of this.balancedBracketScopes)if(e(i))return!0;return this.allowAny}},Br=class{constructor(i,e,t,r){_(this,"_emitBinaryTokens");_(this,"_lineText");_(this,"_tokens");_(this,"_binaryTokens");_(this,"_lastTokenEndIndex");_(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=i,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(i,e){this.produceFromScopes(i.contentNameScopesList,e)}produceFromScopes(i,e){var r;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=(i==null?void 0:i.tokenAttributes)??0,s=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=(i==null?void 0:i.getScopeNames())??[];for(const l of this._tokenTypeOverrides)l.matcher(o)&&(n=K.set(n,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(n=K.set(n,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const t=(i==null?void 0:i.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(i,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(i,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let r=0,n=this._binaryTokens.length;r<n;r++)t[r]=this._binaryTokens[r];return t}},jr=class{constructor(i,e){_(this,"_grammars",new Map);_(this,"_rawGrammars",new Map);_(this,"_injectionGrammars",new Map);_(this,"_theme");this._onigLib=e,this._theme=i}dispose(){for(const i of this._grammars.values())i.dispose()}setTheme(i){this._theme=i}getColorMap(){return this._theme.getColorMap()}addGrammar(i,e){this._rawGrammars.set(i.scopeName,i),e&&this._injectionGrammars.set(i.scopeName,e)}lookup(i){return this._rawGrammars.get(i)}injections(i){return this._injectionGrammars.get(i)}getDefaults(){return this._theme.getDefaults()}themeMatch(i){return this._theme.match(i)}grammarForScopeName(i,e,t,r,n){if(!this._grammars.has(i)){let s=this._rawGrammars.get(i);if(!s)return null;this._grammars.set(i,Vr(i,s,e,t,r,n,this,this._onigLib))}return this._grammars.get(i)}},$r=class{constructor(e){_(this,"_options");_(this,"_syncRegistry");_(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new jr(ue.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(ue.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new Mr(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,s){const o=new fr(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(l=>this._loadSingleGrammar(l.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,r,n,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,s)}},Ge=xe.NULL;const Wr=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ur=/["&'<>`]/g,Hr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,qr=/[|\\{}()[\]^$+*?.]/g,at=new WeakMap;function zr(i,e){if(i=i.replace(e.subset?Kr(e.subset):Ur,r),e.subset||e.escapeOnly)return i;return i.replace(Hr,t).replace(Fr,r);function t(n,s,o){return e.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function r(n,s,o){return e.format(n.charCodeAt(0),o.charCodeAt(s+1),e)}}function Kr(i){let e=at.get(i);return e||(e=Jr(i),at.set(i,e)),e}function Jr(i){const e=[];let t=-1;for(;++t<i.length;)e.push(i[t].replace(qr,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Qr=/[\dA-Fa-f]/;function Yr(i,e,t){const r="&#x"+i.toString(16).toUpperCase();return t&&e&&!Qr.test(String.fromCharCode(e))?r:r+";"}const Xr=/\d/;function Zr(i,e,t){const r="&#"+String(i);return t&&e&&!Xr.test(String.fromCharCode(e))?r:r+";"}const ei=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Se={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},ti=["cent","copy","divide","gt","lt","not","para","times"],kt={}.hasOwnProperty,Me={};let se;for(se in Se)kt.call(Se,se)&&(Me[Se[se]]=se);const ri=/[^\dA-Za-z]/;function ii(i,e,t,r){const n=String.fromCharCode(i);if(kt.call(Me,n)){const s=Me[n],o="&"+s;return t&&ei.includes(s)&&!ti.includes(s)&&(!r||e&&e!==61&&ri.test(String.fromCharCode(e)))?o:o+";"}return""}function ni(i,e,t){let r=Yr(i,e,t.omitOptionalSemicolons),n;if((t.useNamedReferences||t.useShortestReferences)&&(n=ii(i,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!n)&&t.useShortestReferences){const s=Zr(i,e,t.omitOptionalSemicolons);s.length<r.length&&(r=s)}return n&&(!t.useShortestReferences||n.length<r.length)?n:r}function z(i,e){return zr(i,Object.assign({format:ni},e))}const si=/^>|^->|<!--|-->|--!>|<!-$/g,oi=[">"],ai=["<",">"];function ci(i,e,t,r){return r.settings.bogusComments?"<?"+z(i.value,Object.assign({},r.settings.characterReferences,{subset:oi}))+">":"<!--"+i.value.replace(si,n)+"-->";function n(s){return z(s,Object.assign({},r.settings.characterReferences,{subset:ai}))}}function li(i,e,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const S=Nt(1),Dt=Nt(-1),ui=[];function Nt(i){return e;function e(t,r,n){const s=t?t.children:ui;let o=(r||0)+i,l=s[o];if(!n)for(;l&&je(l);)o+=i,l=s[o];return l}}const mi={}.hasOwnProperty;function Vt(i){return e;function e(t,r,n){return mi.call(i,t.tagName)&&i[t.tagName](t,r,n)}}const We=Vt({body:hi,caption:Oe,colgroup:Oe,dd:gi,dt:fi,head:Oe,html:di,li:_i,optgroup:Ei,option:yi,p:pi,rp:ct,rt:ct,tbody:Ri,td:lt,tfoot:Ai,th:lt,thead:vi,tr:Ti});function Oe(i,e,t){const r=S(t,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&je(r.value.charAt(0)))}function di(i,e,t){const r=S(t,e);return!r||r.type!=="comment"}function hi(i,e,t){const r=S(t,e);return!r||r.type!=="comment"}function pi(i,e,t){const r=S(t,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function _i(i,e,t){const r=S(t,e);return!r||r.type==="element"&&r.tagName==="li"}function fi(i,e,t){const r=S(t,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function gi(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function ct(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Ei(i,e,t){const r=S(t,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function yi(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function vi(i,e,t){const r=S(t,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Ri(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Ai(i,e,t){return!S(t,e)}function Ti(i,e,t){const r=S(t,e);return!r||r.type==="element"&&r.tagName==="tr"}function lt(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Li=Vt({body:Ii,colgroup:Si,head:Pi,html:bi,tbody:Oi});function bi(i){const e=S(i,-1);return!e||e.type!=="comment"}function Pi(i){const e=new Set;for(const r of i.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const t=i.children[0];return!t||t.type==="element"}function Ii(i){const e=S(i,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&je(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Si(i,e,t){const r=Dt(t,e),n=S(i,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&We(r,t.children.indexOf(r),t)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function Oi(i,e,t){const r=Dt(t,e),n=S(i,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&We(r,t.children.indexOf(r),t)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}const oe={name:[[`
|
|
5
5
|
\f\r &/=>`.split(""),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,c as jt,R as Pe}from"./vendor-react-CnooHTJc.js";import{aV as pt,Y as rt,aY as K,j as fe,aX as Se,bi as W,aW as ie,e as _t,b6 as Qe,w as we,b2 as Lt,cn as At,bp as Ct,Q as qt,O as Ge,l as It,m as zt,r as Wt,o as ue,bt as St,E as Xt,A as Yt}from"./index-Cp4GfHnF.js";import{u as Ut,T as Gt}from"./MobileAwareSelect-BmK6WApn.js";function at(e,t,o){return(e-t)/(o-t)}function nt(e,t,o,n){var i=at(t,o,n),u={};switch(e){case"rtl":u.right="".concat(i*100,"%"),u.transform="translateX(50%)";break;case"btt":u.bottom="".concat(i*100,"%"),u.transform="translateY(50%)";break;case"ttb":u.top="".concat(i*100,"%"),u.transform="translateY(-50%)";break;default:u.left="".concat(i*100,"%"),u.transform="translateX(-50%)";break}return u}function Le(e,t){return Array.isArray(e)?e[t]:e}var Ae=a.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Kt=a.createContext({}),Vt=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],yt=a.forwardRef(function(e,t){var o=e.prefixCls,n=e.value,i=e.valueIndex,u=e.onStartMove,g=e.onDelete,c=e.style,$=e.render,f=e.dragging,v=e.draggingDelete,S=e.onOffsetChange,y=e.onChangeComplete,b=e.onFocus,m=e.onMouseEnter,s=pt(e,Vt),r=a.useContext(Ae),d=r.min,l=r.max,C=r.direction,M=r.disabled,R=r.keyboard,B=r.range,j=r.tabIndex,q=r.ariaLabelForHandle,D=r.ariaLabelledByForHandle,p=r.ariaRequired,k=r.ariaValueTextFormatterForHandle,E=r.styles,I=r.classNames,X="".concat(o,"-handle"),_=function(w){M||u(w,i)},V=function(w){b==null||b(w,i)},F=function(w){m(w,i)},ye=function(w){if(!M&&R){var x=null;switch(w.which||w.keyCode){case W.LEFT:x=C==="ltr"||C==="btt"?-1:1;break;case W.RIGHT:x=C==="ltr"||C==="btt"?1:-1;break;case W.UP:x=C!=="ttb"?1:-1;break;case W.DOWN:x=C!=="ttb"?-1:1;break;case W.HOME:x="min";break;case W.END:x="max";break;case W.PAGE_UP:x=2;break;case W.PAGE_DOWN:x=-2;break;case W.BACKSPACE:case W.DELETE:g==null||g(i);break}x!==null&&(w.preventDefault(),S(x,i))}},te=function(w){switch(w.which||w.keyCode){case W.LEFT:case W.RIGHT:case W.UP:case W.DOWN:case W.HOME:case W.END:case W.PAGE_UP:case W.PAGE_DOWN:y==null||y();break}},ge=nt(C,n,d,l),de={};if(i!==null){var re;de={tabIndex:M?null:Le(j,i),role:"slider","aria-valuemin":d,"aria-valuemax":l,"aria-valuenow":n,"aria-disabled":M,"aria-label":Le(q,i),"aria-labelledby":Le(D,i),"aria-required":Le(p,i),"aria-valuetext":(re=Le(k,i))===null||re===void 0?void 0:re(n),"aria-orientation":C==="ltr"||C==="rtl"?"horizontal":"vertical",onMouseDown:_,onTouchStart:_,onFocus:V,onMouseEnter:F,onKeyDown:ye,onKeyUp:te}}var ke=a.createElement("div",rt({ref:t,className:fe(X,Se(Se(Se({},"".concat(X,"-").concat(i+1),i!==null&&B),"".concat(X,"-dragging"),f),"".concat(X,"-dragging-delete"),v),I.handle),style:K(K(K({},ge),c),E.handle)},de,s));return $&&(ke=$(ke,{index:i,prefixCls:o,value:n,dragging:f,draggingDelete:v})),ke}),Qt=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Jt=a.forwardRef(function(e,t){var o=e.prefixCls,n=e.style,i=e.onStartMove,u=e.onOffsetChange,g=e.values,c=e.handleRender,$=e.activeHandleRender,f=e.draggingIndex,v=e.draggingDelete,S=e.onFocus,y=pt(e,Qt),b=a.useRef({}),m=a.useState(!1),s=ie(m,2),r=s[0],d=s[1],l=a.useState(-1),C=ie(l,2),M=C[0],R=C[1],B=function(k){R(k),d(!0)},j=function(k,E){B(E),S==null||S(k)},q=function(k,E){B(E)};a.useImperativeHandle(t,function(){return{focus:function(k){var E;(E=b.current[k])===null||E===void 0||E.focus()},hideHelp:function(){jt.flushSync(function(){d(!1)})}}});var D=K({prefixCls:o,onStartMove:i,onOffsetChange:u,render:c,onFocus:j,onMouseEnter:q},y);return a.createElement(a.Fragment,null,g.map(function(p,k){var E=f===k;return a.createElement(yt,rt({ref:function(X){X?b.current[k]=X:delete b.current[k]},dragging:E,draggingDelete:E&&v,style:Le(n,k),key:k,value:p,valueIndex:k},D))}),$&&r&&a.createElement(yt,rt({key:"a11y"},D,{value:g[M],valueIndex:null,dragging:f!==-1,draggingDelete:v,render:$,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Zt=function(t){var o=t.prefixCls,n=t.style,i=t.children,u=t.value,g=t.onClick,c=a.useContext(Ae),$=c.min,f=c.max,v=c.direction,S=c.includedStart,y=c.includedEnd,b=c.included,m="".concat(o,"-text"),s=nt(v,u,$,f);return a.createElement("span",{className:fe(m,Se({},"".concat(m,"-active"),b&&S<=u&&u<=y)),style:K(K({},s),n),onMouseDown:function(d){d.stopPropagation()},onClick:function(){g(u)}},i)},er=function(t){var o=t.prefixCls,n=t.marks,i=t.onClick,u="".concat(o,"-mark");return n.length?a.createElement("div",{className:u},n.map(function(g){var c=g.value,$=g.style,f=g.label;return a.createElement(Zt,{key:c,prefixCls:u,style:$,value:c,onClick:i},f)})):null},tr=function(t){var o=t.prefixCls,n=t.value,i=t.style,u=t.activeStyle,g=a.useContext(Ae),c=g.min,$=g.max,f=g.direction,v=g.included,S=g.includedStart,y=g.includedEnd,b="".concat(o,"-dot"),m=v&&S<=n&&n<=y,s=K(K({},nt(f,n,c,$)),typeof i=="function"?i(n):i);return m&&(s=K(K({},s),typeof u=="function"?u(n):u)),a.createElement("span",{className:fe(b,Se({},"".concat(b,"-active"),m)),style:s})},rr=function(t){var o=t.prefixCls,n=t.marks,i=t.dots,u=t.style,g=t.activeStyle,c=a.useContext(Ae),$=c.min,f=c.max,v=c.step,S=a.useMemo(function(){var y=new Set;if(n.forEach(function(m){y.add(m.value)}),i&&v!==null)for(var b=$;b<=f;)y.add(b),b+=v;return Array.from(y)},[$,f,v,i,n]);return a.createElement("div",{className:"".concat(o,"-step")},S.map(function(y){return a.createElement(tr,{prefixCls:o,key:y,value:y,style:u,activeStyle:g})}))},kt=function(t){var o=t.prefixCls,n=t.style,i=t.start,u=t.end,g=t.index,c=t.onStartMove,$=t.replaceCls,f=a.useContext(Ae),v=f.direction,S=f.min,y=f.max,b=f.disabled,m=f.range,s=f.classNames,r="".concat(o,"-track"),d=at(i,S,y),l=at(u,S,y),C=function(j){!b&&c&&c(j,-1)},M={};switch(v){case"rtl":M.right="".concat(d*100,"%"),M.width="".concat(l*100-d*100,"%");break;case"btt":M.bottom="".concat(d*100,"%"),M.height="".concat(l*100-d*100,"%");break;case"ttb":M.top="".concat(d*100,"%"),M.height="".concat(l*100-d*100,"%");break;default:M.left="".concat(d*100,"%"),M.width="".concat(l*100-d*100,"%")}var R=$||fe(r,Se(Se({},"".concat(r,"-").concat(g+1),g!==null&&m),"".concat(o,"-track-draggable"),c),s.track);return a.createElement("div",{className:R,style:K(K({},M),n),onMouseDown:C,onTouchStart:C})},ar=function(t){var o=t.prefixCls,n=t.style,i=t.values,u=t.startPoint,g=t.onStartMove,c=a.useContext(Ae),$=c.included,f=c.range,v=c.min,S=c.styles,y=c.classNames,b=a.useMemo(function(){if(!f){if(i.length===0)return[];var s=u??v,r=i[0];return[{start:Math.min(s,r),end:Math.max(s,r)}]}for(var d=[],l=0;l<i.length-1;l+=1)d.push({start:i[l],end:i[l+1]});return d},[i,f,u,v]);if(!$)return null;var m=b!=null&&b.length&&(y.tracks||S.tracks)?a.createElement(kt,{index:null,prefixCls:o,start:b[0].start,end:b[b.length-1].end,replaceCls:fe(y.tracks,"".concat(o,"-tracks")),style:S.tracks}):null;return a.createElement(a.Fragment,null,m,b.map(function(s,r){var d=s.start,l=s.end;return a.createElement(kt,{index:r,prefixCls:o,style:K(K({},Le(n,r)),S.track),start:d,end:l,key:r,onStartMove:g})}))},nr=130;function $t(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function or(e,t,o,n,i,u,g,c,$,f,v){var S=a.useState(null),y=ie(S,2),b=y[0],m=y[1],s=a.useState(-1),r=ie(s,2),d=r[0],l=r[1],C=a.useState(!1),M=ie(C,2),R=M[0],B=M[1],j=a.useState(o),q=ie(j,2),D=q[0],p=q[1],k=a.useState(o),E=ie(k,2),I=E[0],X=E[1],_=a.useRef(null),V=a.useRef(null),F=a.useRef(null),ye=a.useContext(Kt),te=ye.onDragStart,ge=ye.onDragChange;_t(function(){d===-1&&p(o)},[o,d]),a.useEffect(function(){return function(){document.removeEventListener("mousemove",_.current),document.removeEventListener("mouseup",V.current),F.current&&(F.current.removeEventListener("touchmove",_.current),F.current.removeEventListener("touchend",V.current))}},[]);var de=function(x,L,A){L!==void 0&&m(L),p(x);var J=x;A&&(J=x.filter(function(N,Y){return Y!==d})),g(J),ge&&ge({rawValues:x,deleteIndex:A?d:-1,draggingIndex:d,draggingValue:L})},re=Qe(function(w,x,L){if(w===-1){var A=I[0],J=I[I.length-1],N=n-A,Y=i-J,ae=x*(i-n);ae=Math.max(ae,N),ae=Math.min(ae,Y);var se=u(A+ae);ae=se-A;var me=I.map(function(ve){return ve+ae});de(me)}else{var he=(i-n)*x,be=we(D);be[w]=I[w];var $e=$(be,he,w,"dist");de($e.values,$e.value,L)}}),ke=function(x,L,A){x.stopPropagation();var J=A||o,N=J[L];l(L),m(N),X(J),p(J),B(!1);var Y=$t(x),ae=Y.pageX,se=Y.pageY,me=!1;te&&te({rawValues:J,draggingIndex:L,draggingValue:N});var he=function(ve){ve.preventDefault();var ne=$t(ve),He=ne.pageX,Be=ne.pageY,pe=He-ae,ce=Be-se,H=e.current.getBoundingClientRect(),U=H.width,Ee=H.height,Ce,oe;switch(t){case"btt":Ce=-ce/Ee,oe=pe;break;case"ttb":Ce=ce/Ee,oe=pe;break;case"rtl":Ce=-pe/U,oe=ce;break;default:Ce=pe/U,oe=ce}me=f?Math.abs(oe)>nr&&v<D.length:!1,B(me),re(L,Ce,me)},be=function $e(ve){ve.preventDefault(),document.removeEventListener("mouseup",$e),document.removeEventListener("mousemove",he),F.current&&(F.current.removeEventListener("touchmove",_.current),F.current.removeEventListener("touchend",V.current)),_.current=null,V.current=null,F.current=null,c(me),l(-1),B(!1)};document.addEventListener("mouseup",be),document.addEventListener("mousemove",he),x.currentTarget.addEventListener("touchend",be),x.currentTarget.addEventListener("touchmove",he),_.current=he,V.current=be,F.current=x.currentTarget},Q=a.useMemo(function(){var w=we(o).sort(function(N,Y){return N-Y}),x=we(D).sort(function(N,Y){return N-Y}),L={};x.forEach(function(N){L[N]=(L[N]||0)+1}),w.forEach(function(N){L[N]=(L[N]||0)-1});var A=f?1:0,J=Object.values(L).reduce(function(N,Y){return N+Math.abs(Y)},0);return J<=A?D:o},[o,D,f]);return[d,b,R,Q,ke]}function lr(e,t,o,n,i,u){var g=a.useCallback(function(b){return Math.max(e,Math.min(t,b))},[e,t]),c=a.useCallback(function(b){if(o!==null){var m=e+Math.round((g(b)-e)/o)*o,s=function(C){return(String(C).split(".")[1]||"").length},r=Math.max(s(o),s(t),s(e)),d=Number(m.toFixed(r));return e<=d&&d<=t?d:null}return null},[o,e,t,g]),$=a.useCallback(function(b){var m=g(b),s=n.map(function(l){return l.value});o!==null&&s.push(c(b)),s.push(e,t);var r=s[0],d=t-e;return s.forEach(function(l){var C=Math.abs(m-l);C<=d&&(r=l,d=C)}),r},[e,t,n,o,g,c]),f=function b(m,s,r){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof s=="number"){var l,C=m[r],M=C+s,R=[];n.forEach(function(p){R.push(p.value)}),R.push(e,t),R.push(c(C));var B=s>0?1:-1;d==="unit"?R.push(c(C+B*o)):R.push(c(M)),R=R.filter(function(p){return p!==null}).filter(function(p){return s<0?p<=C:p>=C}),d==="unit"&&(R=R.filter(function(p){return p!==C}));var j=d==="unit"?C:M;l=R[0];var q=Math.abs(l-j);if(R.forEach(function(p){var k=Math.abs(p-j);k<q&&(l=p,q=k)}),l===void 0)return s<0?e:t;if(d==="dist")return l;if(Math.abs(s)>1){var D=we(m);return D[r]=l,b(D,s-B,r,d)}return l}else{if(s==="min")return e;if(s==="max")return t}},v=function(m,s,r){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",l=m[r],C=f(m,s,r,d);return{value:C,changed:C!==l}},S=function(m){return u===null&&m===0||typeof u=="number"&&m<u},y=function(m,s,r){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",l=m.map($),C=l[r],M=f(l,s,r,d);if(l[r]=M,i===!1){var R=u||0;r>0&&l[r-1]!==C&&(l[r]=Math.max(l[r],l[r-1]+R)),r<l.length-1&&l[r+1]!==C&&(l[r]=Math.min(l[r],l[r+1]-R))}else if(typeof u=="number"||u===null){for(var B=r+1;B<l.length;B+=1)for(var j=!0;S(l[B]-l[B-1])&&j;){var q=v(l,1,B);l[B]=q.value,j=q.changed}for(var D=r;D>0;D-=1)for(var p=!0;S(l[D]-l[D-1])&&p;){var k=v(l,-1,D-1);l[D-1]=k.value,p=k.changed}for(var E=l.length-1;E>0;E-=1)for(var I=!0;S(l[E]-l[E-1])&&I;){var X=v(l,-1,E-1);l[E-1]=X.value,I=X.changed}for(var _=0;_<l.length-1;_+=1)for(var V=!0;S(l[_+1]-l[_])&&V;){var F=v(l,1,_+1);l[_+1]=F.value,V=F.changed}}return{value:l[r],values:l}};return[$,y]}function ir(e){return a.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,o=e.draggableTrack,n=e.minCount,i=e.maxCount;return[!0,t,!t&&o,n||0,i]},[e])}var sr=a.forwardRef(function(e,t){var o=e.prefixCls,n=o===void 0?"rc-slider":o,i=e.className,u=e.style,g=e.classNames,c=e.styles,$=e.id,f=e.disabled,v=f===void 0?!1:f,S=e.keyboard,y=S===void 0?!0:S,b=e.autoFocus,m=e.onFocus,s=e.onBlur,r=e.min,d=r===void 0?0:r,l=e.max,C=l===void 0?100:l,M=e.step,R=M===void 0?1:M,B=e.value,j=e.defaultValue,q=e.range,D=e.count,p=e.onChange,k=e.onBeforeChange,E=e.onAfterChange,I=e.onChangeComplete,X=e.allowCross,_=X===void 0?!0:X,V=e.pushable,F=V===void 0?!1:V,ye=e.reverse,te=e.vertical,ge=e.included,de=ge===void 0?!0:ge,re=e.startPoint,ke=e.trackStyle,Q=e.handleStyle,w=e.railStyle,x=e.dotStyle,L=e.activeDotStyle,A=e.marks,J=e.dots,N=e.handleRender,Y=e.activeHandleRender,ae=e.track,se=e.tabIndex,me=se===void 0?0:se,he=e.ariaLabelForHandle,be=e.ariaLabelledByForHandle,$e=e.ariaRequired,ve=e.ariaValueTextFormatterForHandle,ne=a.useRef(null),He=a.useRef(null),Be=a.useMemo(function(){return te?ye?"ttb":"btt":ye?"rtl":"ltr"},[ye,te]),pe=ir(q),ce=ie(pe,5),H=ce[0],U=ce[1],Ee=ce[2],Ce=ce[3],oe=ce[4],le=a.useMemo(function(){return isFinite(d)?d:0},[d]),xe=a.useMemo(function(){return isFinite(C)?C:100},[C]),Me=a.useMemo(function(){return R!==null&&R<=0?1:R},[R]),G=a.useMemo(function(){return typeof F=="boolean"?F?Me:!1:F>=0?F:!1},[F,Me]),Z=a.useMemo(function(){return Object.keys(A||{}).map(function(O){var h=A[O],P={value:Number(O)};return h&&Lt(h)==="object"&&!a.isValidElement(h)&&("label"in h||"style"in h)?(P.style=h.style,P.label=h.label):P.label=h,P}).filter(function(O){var h=O.label;return h||typeof h=="number"}).sort(function(O,h){return O.value-h.value})},[A]),Je=lr(le,xe,Me,Z,_,G),ze=ie(Je,2),Te=ze[0],We=ze[1],Xe=Ut(j,{value:B}),ot=ie(Xe,2),Fe=ot[0],Mt=ot[1],ee=a.useMemo(function(){var O=Fe==null?[]:Array.isArray(Fe)?Fe:[Fe],h=ie(O,1),P=h[0],T=P===void 0?le:P,z=Fe===null?[]:[T];if(H){if(z=we(O),D||Fe===void 0){var Ne=D>=0?D+1:2;for(z=z.slice(0,Ne);z.length<Ne;){var Re;z.push((Re=z[z.length-1])!==null&&Re!==void 0?Re:le)}}z.sort(function(De,Oe){return De-Oe})}return z.forEach(function(De,Oe){z[Oe]=Te(De)}),z},[Fe,H,le,D,Te]),qe=function(h){return H?h:h[0]},Ke=Qe(function(O){var h=we(O).sort(function(P,T){return P-T});p&&!At(h,ee,!0)&&p(qe(h)),Mt(h)}),lt=Qe(function(O){O&&ne.current.hideHelp();var h=qe(ee);E==null||E(h),Ct(!E,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),I==null||I(h)}),Rt=function(h){if(!(v||!U||ee.length<=Ce)){var P=we(ee);P.splice(h,1),k==null||k(qe(P)),Ke(P);var T=Math.max(0,h-1);ne.current.hideHelp(),ne.current.focus(T)}},Dt=or(He,Be,ee,le,xe,Te,Ke,lt,We,U,Ce),Ye=ie(Dt,5),it=Ye[0],Ot=Ye[1],Pt=Ye[2],Ze=Ye[3],st=Ye[4],ct=function(h,P){if(!v){var T=we(ee),z=0,Ne=0,Re=xe-le;ee.forEach(function(je,Ve){var bt=Math.abs(h-je);bt<=Re&&(Re=bt,z=Ve),je<h&&(Ne=Ve)});var De=z;U&&Re!==0&&(!oe||ee.length<oe)?(T.splice(Ne+1,0,h),De=Ne+1):T[z]=h,H&&!ee.length&&D===void 0&&T.push(h);var Oe=qe(T);if(k==null||k(Oe),Ke(T),P){var _e,Ie;(_e=document.activeElement)===null||_e===void 0||(Ie=_e.blur)===null||Ie===void 0||Ie.call(_e),ne.current.focus(De),st(P,De,T)}else E==null||E(Oe),Ct(!E,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),I==null||I(Oe)}},wt=function(h){h.preventDefault();var P=He.current.getBoundingClientRect(),T=P.width,z=P.height,Ne=P.left,Re=P.top,De=P.bottom,Oe=P.right,_e=h.clientX,Ie=h.clientY,je;switch(Be){case"btt":je=(De-Ie)/z;break;case"ttb":je=(Ie-Re)/z;break;case"rtl":je=(Oe-_e)/T;break;default:je=(_e-Ne)/T}var Ve=le+je*(xe-le);ct(Te(Ve),h)},Ht=a.useState(null),ut=ie(Ht,2),et=ut[0],dt=ut[1],Bt=function(h,P){if(!v){var T=We(ee,h,P);k==null||k(qe(ee)),Ke(T.values),dt(T.value)}};a.useEffect(function(){if(et!==null){var O=ee.indexOf(et);O>=0&&ne.current.focus(O)}dt(null)},[et]);var Tt=a.useMemo(function(){return Ee&&Me===null?!1:Ee},[Ee,Me]),vt=Qe(function(O,h){st(O,h),k==null||k(qe(ee))}),ft=it!==-1;a.useEffect(function(){if(!ft){var O=ee.lastIndexOf(Ot);ne.current.focus(O)}},[ft]);var Ue=a.useMemo(function(){return we(Ze).sort(function(O,h){return O-h})},[Ze]),Ft=a.useMemo(function(){return H?[Ue[0],Ue[Ue.length-1]]:[le,Ue[0]]},[Ue,H,le]),gt=ie(Ft,2),mt=gt[0],ht=gt[1];a.useImperativeHandle(t,function(){return{focus:function(){ne.current.focus(0)},blur:function(){var h,P=document,T=P.activeElement;(h=He.current)!==null&&h!==void 0&&h.contains(T)&&(T==null||T.blur())}}}),a.useEffect(function(){b&&ne.current.focus(0)},[]);var Nt=a.useMemo(function(){return{min:le,max:xe,direction:Be,disabled:v,keyboard:y,step:Me,included:de,includedStart:mt,includedEnd:ht,range:H,tabIndex:me,ariaLabelForHandle:he,ariaLabelledByForHandle:be,ariaRequired:$e,ariaValueTextFormatterForHandle:ve,styles:c||{},classNames:g||{}}},[le,xe,Be,v,y,Me,de,mt,ht,H,me,he,be,$e,ve,c,g]);return a.createElement(Ae.Provider,{value:Nt},a.createElement("div",{ref:He,className:fe(n,i,Se(Se(Se(Se({},"".concat(n,"-disabled"),v),"".concat(n,"-vertical"),te),"".concat(n,"-horizontal"),!te),"".concat(n,"-with-marks"),Z.length)),style:u,onMouseDown:wt,id:$},a.createElement("div",{className:fe("".concat(n,"-rail"),g==null?void 0:g.rail),style:K(K({},w),c==null?void 0:c.rail)}),ae!==!1&&a.createElement(ar,{prefixCls:n,style:ke,values:ee,startPoint:re,onStartMove:Tt?vt:void 0}),a.createElement(rr,{prefixCls:n,marks:Z,dots:J,style:x,activeStyle:L}),a.createElement(Jt,{ref:ne,prefixCls:n,style:Q,values:Ze,draggingIndex:it,draggingDelete:Pt,onStartMove:vt,onOffsetChange:Bt,onFocus:m,onBlur:s,handleRender:N,activeHandleRender:Y,onChangeComplete:lt,onDelete:U?Rt:void 0}),a.createElement(er,{prefixCls:n,marks:Z,onClick:ct})))});const cr=a.createContext({}),Et=a.forwardRef((e,t)=>{const{open:o,draggingDelete:n,value:i}=e,u=a.useRef(null),g=o&&!n,c=a.useRef(null);function $(){Ge.cancel(c.current),c.current=null}function f(){c.current=Ge(()=>{var v;(v=u.current)===null||v===void 0||v.forceAlign(),c.current=null})}return a.useEffect(()=>(g?f():$(),$),[g,e.title,i]),a.createElement(Gt,Object.assign({ref:qt(u,t)},e,{open:g}))}),ur=e=>{const{componentCls:t,antCls:o,controlSize:n,dotSize:i,marginFull:u,marginPart:g,colorFillContentHover:c,handleColorDisabled:$,calc:f,handleSize:v,handleSizeHover:S,handleActiveColor:y,handleActiveOutlineColor:b,handleLineWidth:m,handleLineWidthHover:s,motionDurationMid:r}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{position:"relative",height:n,margin:`${ue(g)} ${ue(u)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ue(u)} ${ue(g)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${r}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${r}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:c},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ue(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:v,height:v,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:f(m).mul(-1).equal(),insetBlockStart:f(m).mul(-1).equal(),width:f(v).add(f(m).mul(2)).equal(),height:f(v).add(f(m).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:v,height:v,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ue(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
1
|
+
import{r as a,c as jt,R as Pe}from"./vendor-react-CnooHTJc.js";import{aV as pt,Y as rt,aY as K,j as fe,aX as Se,bi as W,aW as ie,e as _t,b6 as Qe,w as we,b2 as Lt,cn as At,bp as Ct,Q as qt,O as Ge,l as It,m as zt,r as Wt,o as ue,bt as St,E as Xt,A as Yt}from"./index-DgZk1SFp.js";import{u as Ut,T as Gt}from"./MobileAwareSelect-C3a67aGF.js";function at(e,t,o){return(e-t)/(o-t)}function nt(e,t,o,n){var i=at(t,o,n),u={};switch(e){case"rtl":u.right="".concat(i*100,"%"),u.transform="translateX(50%)";break;case"btt":u.bottom="".concat(i*100,"%"),u.transform="translateY(50%)";break;case"ttb":u.top="".concat(i*100,"%"),u.transform="translateY(-50%)";break;default:u.left="".concat(i*100,"%"),u.transform="translateX(-50%)";break}return u}function Le(e,t){return Array.isArray(e)?e[t]:e}var Ae=a.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Kt=a.createContext({}),Vt=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],yt=a.forwardRef(function(e,t){var o=e.prefixCls,n=e.value,i=e.valueIndex,u=e.onStartMove,g=e.onDelete,c=e.style,$=e.render,f=e.dragging,v=e.draggingDelete,S=e.onOffsetChange,y=e.onChangeComplete,b=e.onFocus,m=e.onMouseEnter,s=pt(e,Vt),r=a.useContext(Ae),d=r.min,l=r.max,C=r.direction,M=r.disabled,R=r.keyboard,B=r.range,j=r.tabIndex,q=r.ariaLabelForHandle,D=r.ariaLabelledByForHandle,p=r.ariaRequired,k=r.ariaValueTextFormatterForHandle,E=r.styles,I=r.classNames,X="".concat(o,"-handle"),_=function(w){M||u(w,i)},V=function(w){b==null||b(w,i)},F=function(w){m(w,i)},ye=function(w){if(!M&&R){var x=null;switch(w.which||w.keyCode){case W.LEFT:x=C==="ltr"||C==="btt"?-1:1;break;case W.RIGHT:x=C==="ltr"||C==="btt"?1:-1;break;case W.UP:x=C!=="ttb"?1:-1;break;case W.DOWN:x=C!=="ttb"?-1:1;break;case W.HOME:x="min";break;case W.END:x="max";break;case W.PAGE_UP:x=2;break;case W.PAGE_DOWN:x=-2;break;case W.BACKSPACE:case W.DELETE:g==null||g(i);break}x!==null&&(w.preventDefault(),S(x,i))}},te=function(w){switch(w.which||w.keyCode){case W.LEFT:case W.RIGHT:case W.UP:case W.DOWN:case W.HOME:case W.END:case W.PAGE_UP:case W.PAGE_DOWN:y==null||y();break}},ge=nt(C,n,d,l),de={};if(i!==null){var re;de={tabIndex:M?null:Le(j,i),role:"slider","aria-valuemin":d,"aria-valuemax":l,"aria-valuenow":n,"aria-disabled":M,"aria-label":Le(q,i),"aria-labelledby":Le(D,i),"aria-required":Le(p,i),"aria-valuetext":(re=Le(k,i))===null||re===void 0?void 0:re(n),"aria-orientation":C==="ltr"||C==="rtl"?"horizontal":"vertical",onMouseDown:_,onTouchStart:_,onFocus:V,onMouseEnter:F,onKeyDown:ye,onKeyUp:te}}var ke=a.createElement("div",rt({ref:t,className:fe(X,Se(Se(Se({},"".concat(X,"-").concat(i+1),i!==null&&B),"".concat(X,"-dragging"),f),"".concat(X,"-dragging-delete"),v),I.handle),style:K(K(K({},ge),c),E.handle)},de,s));return $&&(ke=$(ke,{index:i,prefixCls:o,value:n,dragging:f,draggingDelete:v})),ke}),Qt=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Jt=a.forwardRef(function(e,t){var o=e.prefixCls,n=e.style,i=e.onStartMove,u=e.onOffsetChange,g=e.values,c=e.handleRender,$=e.activeHandleRender,f=e.draggingIndex,v=e.draggingDelete,S=e.onFocus,y=pt(e,Qt),b=a.useRef({}),m=a.useState(!1),s=ie(m,2),r=s[0],d=s[1],l=a.useState(-1),C=ie(l,2),M=C[0],R=C[1],B=function(k){R(k),d(!0)},j=function(k,E){B(E),S==null||S(k)},q=function(k,E){B(E)};a.useImperativeHandle(t,function(){return{focus:function(k){var E;(E=b.current[k])===null||E===void 0||E.focus()},hideHelp:function(){jt.flushSync(function(){d(!1)})}}});var D=K({prefixCls:o,onStartMove:i,onOffsetChange:u,render:c,onFocus:j,onMouseEnter:q},y);return a.createElement(a.Fragment,null,g.map(function(p,k){var E=f===k;return a.createElement(yt,rt({ref:function(X){X?b.current[k]=X:delete b.current[k]},dragging:E,draggingDelete:E&&v,style:Le(n,k),key:k,value:p,valueIndex:k},D))}),$&&r&&a.createElement(yt,rt({key:"a11y"},D,{value:g[M],valueIndex:null,dragging:f!==-1,draggingDelete:v,render:$,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Zt=function(t){var o=t.prefixCls,n=t.style,i=t.children,u=t.value,g=t.onClick,c=a.useContext(Ae),$=c.min,f=c.max,v=c.direction,S=c.includedStart,y=c.includedEnd,b=c.included,m="".concat(o,"-text"),s=nt(v,u,$,f);return a.createElement("span",{className:fe(m,Se({},"".concat(m,"-active"),b&&S<=u&&u<=y)),style:K(K({},s),n),onMouseDown:function(d){d.stopPropagation()},onClick:function(){g(u)}},i)},er=function(t){var o=t.prefixCls,n=t.marks,i=t.onClick,u="".concat(o,"-mark");return n.length?a.createElement("div",{className:u},n.map(function(g){var c=g.value,$=g.style,f=g.label;return a.createElement(Zt,{key:c,prefixCls:u,style:$,value:c,onClick:i},f)})):null},tr=function(t){var o=t.prefixCls,n=t.value,i=t.style,u=t.activeStyle,g=a.useContext(Ae),c=g.min,$=g.max,f=g.direction,v=g.included,S=g.includedStart,y=g.includedEnd,b="".concat(o,"-dot"),m=v&&S<=n&&n<=y,s=K(K({},nt(f,n,c,$)),typeof i=="function"?i(n):i);return m&&(s=K(K({},s),typeof u=="function"?u(n):u)),a.createElement("span",{className:fe(b,Se({},"".concat(b,"-active"),m)),style:s})},rr=function(t){var o=t.prefixCls,n=t.marks,i=t.dots,u=t.style,g=t.activeStyle,c=a.useContext(Ae),$=c.min,f=c.max,v=c.step,S=a.useMemo(function(){var y=new Set;if(n.forEach(function(m){y.add(m.value)}),i&&v!==null)for(var b=$;b<=f;)y.add(b),b+=v;return Array.from(y)},[$,f,v,i,n]);return a.createElement("div",{className:"".concat(o,"-step")},S.map(function(y){return a.createElement(tr,{prefixCls:o,key:y,value:y,style:u,activeStyle:g})}))},kt=function(t){var o=t.prefixCls,n=t.style,i=t.start,u=t.end,g=t.index,c=t.onStartMove,$=t.replaceCls,f=a.useContext(Ae),v=f.direction,S=f.min,y=f.max,b=f.disabled,m=f.range,s=f.classNames,r="".concat(o,"-track"),d=at(i,S,y),l=at(u,S,y),C=function(j){!b&&c&&c(j,-1)},M={};switch(v){case"rtl":M.right="".concat(d*100,"%"),M.width="".concat(l*100-d*100,"%");break;case"btt":M.bottom="".concat(d*100,"%"),M.height="".concat(l*100-d*100,"%");break;case"ttb":M.top="".concat(d*100,"%"),M.height="".concat(l*100-d*100,"%");break;default:M.left="".concat(d*100,"%"),M.width="".concat(l*100-d*100,"%")}var R=$||fe(r,Se(Se({},"".concat(r,"-").concat(g+1),g!==null&&m),"".concat(o,"-track-draggable"),c),s.track);return a.createElement("div",{className:R,style:K(K({},M),n),onMouseDown:C,onTouchStart:C})},ar=function(t){var o=t.prefixCls,n=t.style,i=t.values,u=t.startPoint,g=t.onStartMove,c=a.useContext(Ae),$=c.included,f=c.range,v=c.min,S=c.styles,y=c.classNames,b=a.useMemo(function(){if(!f){if(i.length===0)return[];var s=u??v,r=i[0];return[{start:Math.min(s,r),end:Math.max(s,r)}]}for(var d=[],l=0;l<i.length-1;l+=1)d.push({start:i[l],end:i[l+1]});return d},[i,f,u,v]);if(!$)return null;var m=b!=null&&b.length&&(y.tracks||S.tracks)?a.createElement(kt,{index:null,prefixCls:o,start:b[0].start,end:b[b.length-1].end,replaceCls:fe(y.tracks,"".concat(o,"-tracks")),style:S.tracks}):null;return a.createElement(a.Fragment,null,m,b.map(function(s,r){var d=s.start,l=s.end;return a.createElement(kt,{index:r,prefixCls:o,style:K(K({},Le(n,r)),S.track),start:d,end:l,key:r,onStartMove:g})}))},nr=130;function $t(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function or(e,t,o,n,i,u,g,c,$,f,v){var S=a.useState(null),y=ie(S,2),b=y[0],m=y[1],s=a.useState(-1),r=ie(s,2),d=r[0],l=r[1],C=a.useState(!1),M=ie(C,2),R=M[0],B=M[1],j=a.useState(o),q=ie(j,2),D=q[0],p=q[1],k=a.useState(o),E=ie(k,2),I=E[0],X=E[1],_=a.useRef(null),V=a.useRef(null),F=a.useRef(null),ye=a.useContext(Kt),te=ye.onDragStart,ge=ye.onDragChange;_t(function(){d===-1&&p(o)},[o,d]),a.useEffect(function(){return function(){document.removeEventListener("mousemove",_.current),document.removeEventListener("mouseup",V.current),F.current&&(F.current.removeEventListener("touchmove",_.current),F.current.removeEventListener("touchend",V.current))}},[]);var de=function(x,L,A){L!==void 0&&m(L),p(x);var J=x;A&&(J=x.filter(function(N,Y){return Y!==d})),g(J),ge&&ge({rawValues:x,deleteIndex:A?d:-1,draggingIndex:d,draggingValue:L})},re=Qe(function(w,x,L){if(w===-1){var A=I[0],J=I[I.length-1],N=n-A,Y=i-J,ae=x*(i-n);ae=Math.max(ae,N),ae=Math.min(ae,Y);var se=u(A+ae);ae=se-A;var me=I.map(function(ve){return ve+ae});de(me)}else{var he=(i-n)*x,be=we(D);be[w]=I[w];var $e=$(be,he,w,"dist");de($e.values,$e.value,L)}}),ke=function(x,L,A){x.stopPropagation();var J=A||o,N=J[L];l(L),m(N),X(J),p(J),B(!1);var Y=$t(x),ae=Y.pageX,se=Y.pageY,me=!1;te&&te({rawValues:J,draggingIndex:L,draggingValue:N});var he=function(ve){ve.preventDefault();var ne=$t(ve),He=ne.pageX,Be=ne.pageY,pe=He-ae,ce=Be-se,H=e.current.getBoundingClientRect(),U=H.width,Ee=H.height,Ce,oe;switch(t){case"btt":Ce=-ce/Ee,oe=pe;break;case"ttb":Ce=ce/Ee,oe=pe;break;case"rtl":Ce=-pe/U,oe=ce;break;default:Ce=pe/U,oe=ce}me=f?Math.abs(oe)>nr&&v<D.length:!1,B(me),re(L,Ce,me)},be=function $e(ve){ve.preventDefault(),document.removeEventListener("mouseup",$e),document.removeEventListener("mousemove",he),F.current&&(F.current.removeEventListener("touchmove",_.current),F.current.removeEventListener("touchend",V.current)),_.current=null,V.current=null,F.current=null,c(me),l(-1),B(!1)};document.addEventListener("mouseup",be),document.addEventListener("mousemove",he),x.currentTarget.addEventListener("touchend",be),x.currentTarget.addEventListener("touchmove",he),_.current=he,V.current=be,F.current=x.currentTarget},Q=a.useMemo(function(){var w=we(o).sort(function(N,Y){return N-Y}),x=we(D).sort(function(N,Y){return N-Y}),L={};x.forEach(function(N){L[N]=(L[N]||0)+1}),w.forEach(function(N){L[N]=(L[N]||0)-1});var A=f?1:0,J=Object.values(L).reduce(function(N,Y){return N+Math.abs(Y)},0);return J<=A?D:o},[o,D,f]);return[d,b,R,Q,ke]}function lr(e,t,o,n,i,u){var g=a.useCallback(function(b){return Math.max(e,Math.min(t,b))},[e,t]),c=a.useCallback(function(b){if(o!==null){var m=e+Math.round((g(b)-e)/o)*o,s=function(C){return(String(C).split(".")[1]||"").length},r=Math.max(s(o),s(t),s(e)),d=Number(m.toFixed(r));return e<=d&&d<=t?d:null}return null},[o,e,t,g]),$=a.useCallback(function(b){var m=g(b),s=n.map(function(l){return l.value});o!==null&&s.push(c(b)),s.push(e,t);var r=s[0],d=t-e;return s.forEach(function(l){var C=Math.abs(m-l);C<=d&&(r=l,d=C)}),r},[e,t,n,o,g,c]),f=function b(m,s,r){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof s=="number"){var l,C=m[r],M=C+s,R=[];n.forEach(function(p){R.push(p.value)}),R.push(e,t),R.push(c(C));var B=s>0?1:-1;d==="unit"?R.push(c(C+B*o)):R.push(c(M)),R=R.filter(function(p){return p!==null}).filter(function(p){return s<0?p<=C:p>=C}),d==="unit"&&(R=R.filter(function(p){return p!==C}));var j=d==="unit"?C:M;l=R[0];var q=Math.abs(l-j);if(R.forEach(function(p){var k=Math.abs(p-j);k<q&&(l=p,q=k)}),l===void 0)return s<0?e:t;if(d==="dist")return l;if(Math.abs(s)>1){var D=we(m);return D[r]=l,b(D,s-B,r,d)}return l}else{if(s==="min")return e;if(s==="max")return t}},v=function(m,s,r){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",l=m[r],C=f(m,s,r,d);return{value:C,changed:C!==l}},S=function(m){return u===null&&m===0||typeof u=="number"&&m<u},y=function(m,s,r){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",l=m.map($),C=l[r],M=f(l,s,r,d);if(l[r]=M,i===!1){var R=u||0;r>0&&l[r-1]!==C&&(l[r]=Math.max(l[r],l[r-1]+R)),r<l.length-1&&l[r+1]!==C&&(l[r]=Math.min(l[r],l[r+1]-R))}else if(typeof u=="number"||u===null){for(var B=r+1;B<l.length;B+=1)for(var j=!0;S(l[B]-l[B-1])&&j;){var q=v(l,1,B);l[B]=q.value,j=q.changed}for(var D=r;D>0;D-=1)for(var p=!0;S(l[D]-l[D-1])&&p;){var k=v(l,-1,D-1);l[D-1]=k.value,p=k.changed}for(var E=l.length-1;E>0;E-=1)for(var I=!0;S(l[E]-l[E-1])&&I;){var X=v(l,-1,E-1);l[E-1]=X.value,I=X.changed}for(var _=0;_<l.length-1;_+=1)for(var V=!0;S(l[_+1]-l[_])&&V;){var F=v(l,1,_+1);l[_+1]=F.value,V=F.changed}}return{value:l[r],values:l}};return[$,y]}function ir(e){return a.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,o=e.draggableTrack,n=e.minCount,i=e.maxCount;return[!0,t,!t&&o,n||0,i]},[e])}var sr=a.forwardRef(function(e,t){var o=e.prefixCls,n=o===void 0?"rc-slider":o,i=e.className,u=e.style,g=e.classNames,c=e.styles,$=e.id,f=e.disabled,v=f===void 0?!1:f,S=e.keyboard,y=S===void 0?!0:S,b=e.autoFocus,m=e.onFocus,s=e.onBlur,r=e.min,d=r===void 0?0:r,l=e.max,C=l===void 0?100:l,M=e.step,R=M===void 0?1:M,B=e.value,j=e.defaultValue,q=e.range,D=e.count,p=e.onChange,k=e.onBeforeChange,E=e.onAfterChange,I=e.onChangeComplete,X=e.allowCross,_=X===void 0?!0:X,V=e.pushable,F=V===void 0?!1:V,ye=e.reverse,te=e.vertical,ge=e.included,de=ge===void 0?!0:ge,re=e.startPoint,ke=e.trackStyle,Q=e.handleStyle,w=e.railStyle,x=e.dotStyle,L=e.activeDotStyle,A=e.marks,J=e.dots,N=e.handleRender,Y=e.activeHandleRender,ae=e.track,se=e.tabIndex,me=se===void 0?0:se,he=e.ariaLabelForHandle,be=e.ariaLabelledByForHandle,$e=e.ariaRequired,ve=e.ariaValueTextFormatterForHandle,ne=a.useRef(null),He=a.useRef(null),Be=a.useMemo(function(){return te?ye?"ttb":"btt":ye?"rtl":"ltr"},[ye,te]),pe=ir(q),ce=ie(pe,5),H=ce[0],U=ce[1],Ee=ce[2],Ce=ce[3],oe=ce[4],le=a.useMemo(function(){return isFinite(d)?d:0},[d]),xe=a.useMemo(function(){return isFinite(C)?C:100},[C]),Me=a.useMemo(function(){return R!==null&&R<=0?1:R},[R]),G=a.useMemo(function(){return typeof F=="boolean"?F?Me:!1:F>=0?F:!1},[F,Me]),Z=a.useMemo(function(){return Object.keys(A||{}).map(function(O){var h=A[O],P={value:Number(O)};return h&&Lt(h)==="object"&&!a.isValidElement(h)&&("label"in h||"style"in h)?(P.style=h.style,P.label=h.label):P.label=h,P}).filter(function(O){var h=O.label;return h||typeof h=="number"}).sort(function(O,h){return O.value-h.value})},[A]),Je=lr(le,xe,Me,Z,_,G),ze=ie(Je,2),Te=ze[0],We=ze[1],Xe=Ut(j,{value:B}),ot=ie(Xe,2),Fe=ot[0],Mt=ot[1],ee=a.useMemo(function(){var O=Fe==null?[]:Array.isArray(Fe)?Fe:[Fe],h=ie(O,1),P=h[0],T=P===void 0?le:P,z=Fe===null?[]:[T];if(H){if(z=we(O),D||Fe===void 0){var Ne=D>=0?D+1:2;for(z=z.slice(0,Ne);z.length<Ne;){var Re;z.push((Re=z[z.length-1])!==null&&Re!==void 0?Re:le)}}z.sort(function(De,Oe){return De-Oe})}return z.forEach(function(De,Oe){z[Oe]=Te(De)}),z},[Fe,H,le,D,Te]),qe=function(h){return H?h:h[0]},Ke=Qe(function(O){var h=we(O).sort(function(P,T){return P-T});p&&!At(h,ee,!0)&&p(qe(h)),Mt(h)}),lt=Qe(function(O){O&&ne.current.hideHelp();var h=qe(ee);E==null||E(h),Ct(!E,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),I==null||I(h)}),Rt=function(h){if(!(v||!U||ee.length<=Ce)){var P=we(ee);P.splice(h,1),k==null||k(qe(P)),Ke(P);var T=Math.max(0,h-1);ne.current.hideHelp(),ne.current.focus(T)}},Dt=or(He,Be,ee,le,xe,Te,Ke,lt,We,U,Ce),Ye=ie(Dt,5),it=Ye[0],Ot=Ye[1],Pt=Ye[2],Ze=Ye[3],st=Ye[4],ct=function(h,P){if(!v){var T=we(ee),z=0,Ne=0,Re=xe-le;ee.forEach(function(je,Ve){var bt=Math.abs(h-je);bt<=Re&&(Re=bt,z=Ve),je<h&&(Ne=Ve)});var De=z;U&&Re!==0&&(!oe||ee.length<oe)?(T.splice(Ne+1,0,h),De=Ne+1):T[z]=h,H&&!ee.length&&D===void 0&&T.push(h);var Oe=qe(T);if(k==null||k(Oe),Ke(T),P){var _e,Ie;(_e=document.activeElement)===null||_e===void 0||(Ie=_e.blur)===null||Ie===void 0||Ie.call(_e),ne.current.focus(De),st(P,De,T)}else E==null||E(Oe),Ct(!E,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),I==null||I(Oe)}},wt=function(h){h.preventDefault();var P=He.current.getBoundingClientRect(),T=P.width,z=P.height,Ne=P.left,Re=P.top,De=P.bottom,Oe=P.right,_e=h.clientX,Ie=h.clientY,je;switch(Be){case"btt":je=(De-Ie)/z;break;case"ttb":je=(Ie-Re)/z;break;case"rtl":je=(Oe-_e)/T;break;default:je=(_e-Ne)/T}var Ve=le+je*(xe-le);ct(Te(Ve),h)},Ht=a.useState(null),ut=ie(Ht,2),et=ut[0],dt=ut[1],Bt=function(h,P){if(!v){var T=We(ee,h,P);k==null||k(qe(ee)),Ke(T.values),dt(T.value)}};a.useEffect(function(){if(et!==null){var O=ee.indexOf(et);O>=0&&ne.current.focus(O)}dt(null)},[et]);var Tt=a.useMemo(function(){return Ee&&Me===null?!1:Ee},[Ee,Me]),vt=Qe(function(O,h){st(O,h),k==null||k(qe(ee))}),ft=it!==-1;a.useEffect(function(){if(!ft){var O=ee.lastIndexOf(Ot);ne.current.focus(O)}},[ft]);var Ue=a.useMemo(function(){return we(Ze).sort(function(O,h){return O-h})},[Ze]),Ft=a.useMemo(function(){return H?[Ue[0],Ue[Ue.length-1]]:[le,Ue[0]]},[Ue,H,le]),gt=ie(Ft,2),mt=gt[0],ht=gt[1];a.useImperativeHandle(t,function(){return{focus:function(){ne.current.focus(0)},blur:function(){var h,P=document,T=P.activeElement;(h=He.current)!==null&&h!==void 0&&h.contains(T)&&(T==null||T.blur())}}}),a.useEffect(function(){b&&ne.current.focus(0)},[]);var Nt=a.useMemo(function(){return{min:le,max:xe,direction:Be,disabled:v,keyboard:y,step:Me,included:de,includedStart:mt,includedEnd:ht,range:H,tabIndex:me,ariaLabelForHandle:he,ariaLabelledByForHandle:be,ariaRequired:$e,ariaValueTextFormatterForHandle:ve,styles:c||{},classNames:g||{}}},[le,xe,Be,v,y,Me,de,mt,ht,H,me,he,be,$e,ve,c,g]);return a.createElement(Ae.Provider,{value:Nt},a.createElement("div",{ref:He,className:fe(n,i,Se(Se(Se(Se({},"".concat(n,"-disabled"),v),"".concat(n,"-vertical"),te),"".concat(n,"-horizontal"),!te),"".concat(n,"-with-marks"),Z.length)),style:u,onMouseDown:wt,id:$},a.createElement("div",{className:fe("".concat(n,"-rail"),g==null?void 0:g.rail),style:K(K({},w),c==null?void 0:c.rail)}),ae!==!1&&a.createElement(ar,{prefixCls:n,style:ke,values:ee,startPoint:re,onStartMove:Tt?vt:void 0}),a.createElement(rr,{prefixCls:n,marks:Z,dots:J,style:x,activeStyle:L}),a.createElement(Jt,{ref:ne,prefixCls:n,style:Q,values:Ze,draggingIndex:it,draggingDelete:Pt,onStartMove:vt,onOffsetChange:Bt,onFocus:m,onBlur:s,handleRender:N,activeHandleRender:Y,onChangeComplete:lt,onDelete:U?Rt:void 0}),a.createElement(er,{prefixCls:n,marks:Z,onClick:ct})))});const cr=a.createContext({}),Et=a.forwardRef((e,t)=>{const{open:o,draggingDelete:n,value:i}=e,u=a.useRef(null),g=o&&!n,c=a.useRef(null);function $(){Ge.cancel(c.current),c.current=null}function f(){c.current=Ge(()=>{var v;(v=u.current)===null||v===void 0||v.forceAlign(),c.current=null})}return a.useEffect(()=>(g?f():$(),$),[g,e.title,i]),a.createElement(Gt,Object.assign({ref:qt(u,t)},e,{open:g}))}),ur=e=>{const{componentCls:t,antCls:o,controlSize:n,dotSize:i,marginFull:u,marginPart:g,colorFillContentHover:c,handleColorDisabled:$,calc:f,handleSize:v,handleSizeHover:S,handleActiveColor:y,handleActiveOutlineColor:b,handleLineWidth:m,handleLineWidthHover:s,motionDurationMid:r}=e;return{[t]:Object.assign(Object.assign({},Wt(e)),{position:"relative",height:n,margin:`${ue(g)} ${ue(u)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ue(u)} ${ue(g)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${r}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${r}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:c},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ue(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:v,height:v,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:f(m).mul(-1).equal(),insetBlockStart:f(m).mul(-1).equal(),width:f(v).add(f(m).mul(2)).equal(),height:f(v).add(f(m).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:v,height:v,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ue(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
2
2
|
inset-inline-start ${r},
|
|
3
3
|
inset-block-start ${r},
|
|
4
4
|
width ${r},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,R as M}from"./vendor-react-CnooHTJc.js";import{aV as ze,aW as fe,j as W,aX as le,Y as he,aY as ae,O as Oe,m as ye,o as Z,l as Be,aZ as Nt,r as Re,a_ as At,a$ as Tt,h as we,M as Se,A as _e,Q as Fe,q as Me,b0 as _t,b1 as Ft,a5 as Qe,w as Ie,b2 as Ze,a1 as Mt,E as ut,b3 as Je,G as We,b4 as tt,X as ft,b5 as Wt,b6 as rt,ad as nt,B as Dt,e as ot}from"./index-Cp4GfHnF.js";import{u as De,a as pt,b as Ye,c as ke,R as Ht,d as Lt}from"./MobileAwareSelect-BmK6WApn.js";var Vt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Gt=a.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,s=e.style,l=e.checked,i=e.disabled,$=e.defaultChecked,v=$===void 0?!1:$,c=e.type,S=c===void 0?"checkbox":c,I=e.title,h=e.onChange,E=ze(e,Vt),N=a.useRef(null),w=a.useRef(null),d=De(v,{value:l}),R=fe(d,2),_=R[0],H=R[1];a.useImperativeHandle(t,function(){return{focus:function(m){var z;(z=N.current)===null||z===void 0||z.focus(m)},blur:function(){var m;(m=N.current)===null||m===void 0||m.blur()},input:N.current,nativeElement:w.current}});var g=W(r,o,le(le({},"".concat(r,"-checked"),_),"".concat(r,"-disabled"),i)),x=function(m){i||("checked"in e||H(m.target.checked),h==null||h({target:ae(ae({},e),{},{type:S,checked:m.target.checked}),stopPropagation:function(){m.stopPropagation()},preventDefault:function(){m.preventDefault()},nativeEvent:m.nativeEvent}))};return a.createElement("span",{className:g,title:I,style:s,ref:w},a.createElement("input",he({},E,{className:"".concat(r,"-input"),ref:N,onChange:x,disabled:i,checked:!!_,type:S})),a.createElement("span",{className:"".concat(r,"-inner")}))});function qt(e){const t=M.useRef(null),n=()=>{Oe.cancel(t.current),t.current=null};return[()=>{n(),t.current=Oe(()=>{t.current=null})},s=>{t.current&&(s.stopPropagation(),n()),e==null||e(s)}]}function He(e){return ye(e,{inputAffixPadding:e.paddingXXS})}const Le=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:s,controlHeightLG:l,fontSizeLG:i,lineHeightLG:$,paddingSM:v,controlPaddingHorizontalSM:c,controlPaddingHorizontal:S,colorFillAlter:I,colorPrimaryHover:h,colorPrimary:E,controlOutlineWidth:N,controlOutline:w,colorErrorOutline:d,colorWarningOutline:R,colorBgContainer:_,inputFontSize:H,inputFontSizeLG:g,inputFontSizeSM:x}=e,u=H||n,m=x||u,z=g||i,B=Math.round((t-u*r)/2*10)/10-o,F=Math.round((s-m*r)/2*10)/10-o,D=Math.ceil((l-z*$)/2*10)/10-o;return{paddingBlock:Math.max(B,0),paddingBlockSM:Math.max(F,0),paddingBlockLG:Math.max(D,0),paddingInline:v-o,paddingInlineSM:c-o,paddingInlineLG:S-o,addonBg:I,activeBorderColor:E,hoverBorderColor:h,activeShadow:`0 0 0 ${N}px ${w}`,errorActiveShadow:`0 0 0 ${N}px ${d}`,warningActiveShadow:`0 0 0 ${N}px ${R}`,hoverBg:_,activeBg:_,inputFontSize:u,inputFontSizeLG:z,inputFontSizeSM:m}},Kt=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),et=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Kt(ye(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),gt=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),at=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},gt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Xt=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},et(e))}),at(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),at(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),lt=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ut=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},lt(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),lt(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},et(e))}})}),Yt=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},vt=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},it=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},vt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Qt=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vt(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},et(e))}),it(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),it(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),st=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Zt=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},st(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),st(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),mt=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Z(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),ct=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},mt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Jt=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),ct(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ct(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),kt=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),bt=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Z(t)} ${Z(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},ht=e=>({padding:`${Z(e.paddingBlockSM)} ${Z(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Ct=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Z(e.paddingBlock)} ${Z(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},kt(e.colorTextPlaceholder)),{"&-lg":Object.assign({},bt(e)),"&-sm":Object.assign({},ht(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),er=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},bt(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ht(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Z(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Z(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},At()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
1
|
+
import{r as a,R as M}from"./vendor-react-CnooHTJc.js";import{aV as ze,aW as fe,j as W,aX as le,Y as he,aY as ae,O as Oe,m as ye,o as Z,l as Be,aZ as Nt,r as Re,a_ as At,a$ as Tt,h as we,M as Se,A as _e,Q as Fe,q as Me,b0 as _t,b1 as Ft,a5 as Qe,w as Ie,b2 as Ze,a1 as Mt,E as ut,b3 as Je,G as We,b4 as tt,X as ft,b5 as Wt,b6 as rt,ad as nt,B as Dt,e as ot}from"./index-DgZk1SFp.js";import{u as De,a as pt,b as Ye,c as ke,R as Ht,d as Lt}from"./MobileAwareSelect-C3a67aGF.js";var Vt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Gt=a.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,s=e.style,l=e.checked,i=e.disabled,$=e.defaultChecked,v=$===void 0?!1:$,c=e.type,S=c===void 0?"checkbox":c,I=e.title,h=e.onChange,E=ze(e,Vt),N=a.useRef(null),w=a.useRef(null),d=De(v,{value:l}),R=fe(d,2),_=R[0],H=R[1];a.useImperativeHandle(t,function(){return{focus:function(m){var z;(z=N.current)===null||z===void 0||z.focus(m)},blur:function(){var m;(m=N.current)===null||m===void 0||m.blur()},input:N.current,nativeElement:w.current}});var g=W(r,o,le(le({},"".concat(r,"-checked"),_),"".concat(r,"-disabled"),i)),x=function(m){i||("checked"in e||H(m.target.checked),h==null||h({target:ae(ae({},e),{},{type:S,checked:m.target.checked}),stopPropagation:function(){m.stopPropagation()},preventDefault:function(){m.preventDefault()},nativeEvent:m.nativeEvent}))};return a.createElement("span",{className:g,title:I,style:s,ref:w},a.createElement("input",he({},E,{className:"".concat(r,"-input"),ref:N,onChange:x,disabled:i,checked:!!_,type:S})),a.createElement("span",{className:"".concat(r,"-inner")}))});function qt(e){const t=M.useRef(null),n=()=>{Oe.cancel(t.current),t.current=null};return[()=>{n(),t.current=Oe(()=>{t.current=null})},s=>{t.current&&(s.stopPropagation(),n()),e==null||e(s)}]}function He(e){return ye(e,{inputAffixPadding:e.paddingXXS})}const Le=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:s,controlHeightLG:l,fontSizeLG:i,lineHeightLG:$,paddingSM:v,controlPaddingHorizontalSM:c,controlPaddingHorizontal:S,colorFillAlter:I,colorPrimaryHover:h,colorPrimary:E,controlOutlineWidth:N,controlOutline:w,colorErrorOutline:d,colorWarningOutline:R,colorBgContainer:_,inputFontSize:H,inputFontSizeLG:g,inputFontSizeSM:x}=e,u=H||n,m=x||u,z=g||i,B=Math.round((t-u*r)/2*10)/10-o,F=Math.round((s-m*r)/2*10)/10-o,D=Math.ceil((l-z*$)/2*10)/10-o;return{paddingBlock:Math.max(B,0),paddingBlockSM:Math.max(F,0),paddingBlockLG:Math.max(D,0),paddingInline:v-o,paddingInlineSM:c-o,paddingInlineLG:S-o,addonBg:I,activeBorderColor:E,hoverBorderColor:h,activeShadow:`0 0 0 ${N}px ${w}`,errorActiveShadow:`0 0 0 ${N}px ${d}`,warningActiveShadow:`0 0 0 ${N}px ${R}`,hoverBg:_,activeBg:_,inputFontSize:u,inputFontSizeLG:z,inputFontSizeSM:m}},Kt=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),et=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Kt(ye(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),gt=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),at=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},gt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Xt=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},et(e))}),at(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),at(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),lt=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ut=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},lt(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),lt(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},et(e))}})}),Yt=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},vt=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},it=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},vt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Qt=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vt(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},et(e))}),it(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),it(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),st=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Zt=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},st(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),st(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),mt=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Z(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),ct=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},mt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Jt=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),ct(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ct(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),kt=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),bt=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Z(t)} ${Z(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},ht=e=>({padding:`${Z(e.paddingBlockSM)} ${Z(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Ct=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Z(e.paddingBlock)} ${Z(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},kt(e.colorTextPlaceholder)),{"&-lg":Object.assign({},bt(e)),"&-sm":Object.assign({},ht(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),er=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},bt(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ht(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Z(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Z(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},At()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
2
2
|
& > ${t}-affix-wrapper,
|
|
3
3
|
& > ${t}-number-affix-wrapper,
|
|
4
4
|
& > ${n}-picker-range
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{l as Y,aH as D,e as M}from"./mermaid.core-
|
|
1
|
+
import{l as Y,aH as D,e as M}from"./mermaid.core-DBYO3wup.js";import"./AuthenticatedApp-CjqSg3Fe.js";import"./index-DgZk1SFp.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-Djj0Jjxr.js";import"./MobileAwareSelect-C3a67aGF.js";import"./use-app-preferences-BZCemhY7.js";import"./route-plugin-chrome-DI32l8cC.js";import"./shortcutUtils-HFKOHIG8.js";import"./project-file-tree-icons-Iz30jDs3.js";import"./WorkspaceApp-CokR7Tpr.js";import"./index-aZ1QdVqZ.js";import"./client-build-info-tgdsIlyX.js";var O=function(){var a=function(u,t,e,i){for(e=e||{},i=u.length;i--;e[u[i]]=t);return e},f=[6,9,10],_={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,i,s,r,n,d){switch(n.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=e,i}},parse:function(t){var e=this,i=[0],s=[],r=[null],n=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=n.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;n.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,m={},b,c,F,S;;){if(g=i[i.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
|
|
2
2
|
`+o.showPosition()+`
|
|
3
3
|
Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:i.push(l),r.push(o.yytext),n.push(o.yylloc),i.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],m.$=r[r.length-c],m._$={first_line:n[n.length-(c||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(c||1)].first_column,last_column:n[n.length-1].last_column},z&&(m._$.range=[n[n.length-(c||1)].range[0],n[n.length-1].range[1]]),w=this.performAction.apply(m,[P,L,v,p.yy,h[1],r,n].concat(R)),typeof w<"u")return w;c&&(i=i.slice(0,-1*c*2),r=r.slice(0,-1*c),n=n.slice(0,-1*c)),i.push(this.productions_[h[1]][0]),r.push(m.$),n.push(m._$),F=d[i[i.length-2]][i[i.length-1]],i.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,i){if(this.yy.parser)this.yy.parser.parseError(e,i);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|