@microsoft/managed-apps-cli 0.21.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/AddConfig-GZO2UMFR.js +12 -0
- package/dist/AddConnector-HJCCENAM.js +23 -0
- package/dist/{AuthStatus-ZZIP3LBD.js → AuthStatus-WCICFN6O.js} +2 -2
- package/dist/{AuthSwitch-HK7JU2FR.js → AuthSwitch-5PKHCTM2.js} +2 -2
- package/dist/Bin.js +1 -1
- package/dist/BuildMaafApp-Q74EFM3Q.js +11 -0
- package/dist/Cli-7EVTIORX.js +54 -0
- package/dist/CloneMaafApp-EKHHLMWD.js +11 -0
- package/dist/CreateMaafApp-L3XX2UVT.js +20 -0
- package/dist/DeleteMaafApp-YCDKWFRG.js +11 -0
- package/dist/DeployMaafApp-HF67BQRZ.js +14 -0
- package/dist/{Dev-SHIA5S7X.js → Dev-BTJUJGP5.js} +2 -2
- package/dist/{EnvironmentVariableAuthenticationProvider-5YTMRAE4.js → EnvironmentVariableAuthenticationProvider-VNN4AG2E.js} +2 -2
- package/dist/GetMaafBuildStatus-7B6ZNSEA.js +11 -0
- package/dist/{GetSettings-NM6H2U5F.js → GetSettings-GJWIPK2T.js} +2 -2
- package/dist/InfoMaafApp-WGNDYYGN.js +13 -0
- package/dist/Init-TJOSV5DE.js +11 -0
- package/dist/ListConnectorActions-HTD6YSCY.js +11 -0
- package/dist/ListConnectors-OET7STMW.js +11 -0
- package/dist/{ListMaafApps-RT3PGZSJ.js → ListMaafApps-KRXJMAEU.js} +2 -2
- package/dist/{Login-HG5S7LBC.js → Login-5TFNB24B.js} +2 -2
- package/dist/{Logout-BUPHLOAH.js → Logout-35U4J627.js} +2 -2
- package/dist/{MockFetch-4CYTSNJ7.js → MockFetch-XSZECQYX.js} +2 -2
- package/dist/{NodeMsalAuthenticationProvider-HTH3V3G2.js → NodeMsalAuthenticationProvider-OUL57BVL.js} +2 -2
- package/dist/Pack-S7P4MIT6.js +8 -0
- package/dist/PlayMaafApp-D4KLJKLT.js +12 -0
- package/dist/RefreshDataSource-N5CEH23S.js +11 -0
- package/dist/{RefreshGitAuth-5A3SX2HC.js → RefreshGitAuth-2VL6VBLU.js} +2 -2
- package/dist/{RemoveDataSource-57JJLK5I.js → RemoveDataSource-XR5Q4O3F.js} +2 -2
- package/dist/{ServicePrincipalAuthenticationProvider-SVKDZG6X.js → ServicePrincipalAuthenticationProvider-H3PTPXYY.js} +2 -2
- package/dist/{SetSetting-RB3F7IXG.js → SetSetting-HXY4YSKC.js} +2 -2
- package/dist/{ShareLinkCreate-7BCDPWY6.js → ShareLinkCreate-YG3DACP2.js} +2 -2
- package/dist/{ShareLinkList-4BI3WMNN.js → ShareLinkList-XF6BIB3M.js} +2 -2
- package/dist/ShareLinkRevoke-4USAQKLB.js +11 -0
- package/dist/ShareList-6QI7ZAMZ.js +11 -0
- package/dist/{ShareMaafApp-QFRXLYUD.js → ShareMaafApp-PZI5MCBA.js} +2 -2
- package/dist/{TelemetrySettings-A474HALH.js → TelemetrySettings-WWVPRF7T.js} +2 -2
- package/dist/{UnshareMaafApp-423RNXCN.js → UnshareMaafApp-MHBIV5OR.js} +2 -2
- package/dist/chunk-2FNWZUPW.js +15 -0
- package/dist/chunk-2HSJ2XAQ.js +13 -0
- package/dist/{chunk-U36HMOQW.js → chunk-3FP37TPE.js} +10 -10
- package/dist/chunk-5XRK3F43.js +11 -0
- package/dist/{chunk-EV3TTTOT.js → chunk-7PH2NK5K.js} +2 -2
- package/dist/chunk-DAG6RPOF.js +11 -0
- package/dist/{chunk-5AUOEXAR.js → chunk-DD7E4ADI.js} +2 -2
- package/dist/chunk-F3HGM3IU.js +106 -0
- package/dist/chunk-FMJDKXNM.js +12 -0
- package/dist/chunk-HCPTQP7J.js +11 -0
- package/dist/chunk-I22E6YZT.js +11 -0
- package/dist/chunk-LDP2SHPJ.js +11 -0
- package/dist/{chunk-3BRAT6NP.js → chunk-PKDXP7CL.js} +2 -2
- package/dist/chunk-SBVJ4SMO.js +20 -0
- package/dist/chunk-SCJXITCN.js +12 -0
- package/dist/chunk-TZRZFNLH.js +38 -0
- package/dist/{chunk-G33Q5FWT.js → chunk-UIW77LMA.js} +234 -234
- package/dist/chunk-WQKDXHGX.js +11 -0
- package/dist/{chunk-MFPX2RFH.js → chunk-X5O77GZS.js} +2 -2
- package/dist/{chunk-7NXJAIJX.js → chunk-Y7TZZLPW.js} +2 -2
- package/dist/chunk-ZIONKKAV.js +44 -0
- package/package.json +4 -4
- package/dist/AddConnector-4AMM746J.js +0 -41
- package/dist/BuildMaafApp-MOTZOLJZ.js +0 -11
- package/dist/Cli-6CCXMCPX.js +0 -54
- package/dist/CreateMaafApp-TUO72CW7.js +0 -20
- package/dist/DeleteMaafApp-MZVGIAX3.js +0 -11
- package/dist/DeployMaafApp-KXATM3E3.js +0 -14
- package/dist/GetMaafApp-ELB5KMHW.js +0 -11
- package/dist/GetMaafBuildStatus-3W7LI5TJ.js +0 -11
- package/dist/Init-CH5DUQWA.js +0 -11
- package/dist/ListConnectorActions-7SIFGPYR.js +0 -11
- package/dist/ListConnectors-TRKIWRVQ.js +0 -11
- package/dist/Pack-AHKC2MYF.js +0 -8
- package/dist/PlayMaafApp-LWKJU2IN.js +0 -12
- package/dist/RefreshDataSource-ZFZJXJ5L.js +0 -11
- package/dist/ShareLinkRevoke-EEJVCRCY.js +0 -11
- package/dist/ShareList-LJDAEGI3.js +0 -11
- package/dist/ShowMaafApp-3KK6NUG2.js +0 -11
- package/dist/chunk-6FFQN2SO.js +0 -13
- package/dist/chunk-6MXOK2LG.js +0 -11
- package/dist/chunk-DREO7EYO.js +0 -20
- package/dist/chunk-NP2KJOYC.js +0 -12
- package/dist/chunk-QAFCXGBD.js +0 -11
- package/dist/chunk-QSB5P4RM.js +0 -38
- package/dist/chunk-S5HEU7XK.js +0 -11
- package/dist/chunk-UBTSW22U.js +0 -11
- package/dist/chunk-VFSTQAZ2.js +0 -12
- package/dist/chunk-VNEZZ3RI.js +0 -11
- package/dist/chunk-W7EWOZPO.js +0 -104
- package/dist/chunk-YIKNM523.js +0 -15
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __pathDirname(__filename);
|
|
7
|
+
import{Ha as l}from"./chunk-UIW77LMA.js";import{b as i,d as f}from"./chunk-RBG2H562.js";import{l as p,m}from"./chunk-3FP37TPE.js";import*as a from"node:fs";import*as r from"node:path";function N(){let{fileConfig:o,appConfig:t}=l(),e=r.resolve(o.appConfigPath);if(!a.existsSync(e))throw new i("No Managed app configuration was found. Run this command from an app directory.");let n=t;if(!n)try{n=JSON.parse(a.readFileSync(e,"utf8"))}catch(s){let g=s instanceof Error?s.message:String(s);throw new f(`'${e}' is not a valid app configuration: ${g}`)}if(n===null||typeof n!="object"||Array.isArray(n))throw new f(`'${e}' is not a valid app configuration: the file must contain a JSON object.`);return{appRoot:r.dirname(e),fileName:r.basename(e),filePath:e,config:n}}var d="prod",c=/^[a-z0-9][a-z0-9-]{0,63}$/,h=["prod","dev"];function v(o,t="--deployment"){let e=o?.trim();if(!e)throw new i(`${t} is required.`);if(!c.test(e))throw new i(`'${e}' is not a valid deployment name. Use 1-64 lowercase letters, numbers, or hyphens, starting with a letter or number.`);if(e!==d&&h.some(n=>e.startsWith(n)))throw new i(`'${e}' is a reserved deployment name. Names starting with 'prod' or 'dev' are reserved for future use; use 'prod' itself for the default deployment.`);return e}function u(o,t){if(p.includes(t))throw new i(`'${o}' is a reserved deployment name because its config file would be named '${t}', which is a base app config filename. Choose a different deployment name.`)}function C(o,t){let e=m(t,o.fileName);return u(t,e),r.join(o.appRoot,e)}export{N as a,d as b,v as c,u as d,C as e};
|
|
8
|
+
/*!
|
|
9
|
+
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
|
+
*/
|
|
11
|
+
//# sourceMappingURL=chunk-5XRK3F43.js.map
|
|
@@ -4,5 +4,5 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
|
-
var t={name:"@microsoft/managed-apps-cli",version:"0.
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
7
|
+
var t={name:"@microsoft/managed-apps-cli",version:"0.23.0",type:"module",description:"Command-line interface for building and managing Microsoft Managed Apps",license:"MIT",bin:{ms:"./dist/Bin.js"},files:["dist","!dist/*.map","LICENSE","README.md","THIRD-PARTY-NOTICES.txt"],scripts:{build:"bun scripts/build.ts","generate:cgmanifest":"bun scripts/generate-cgmanifest.ts","benchmark:startup":"bun scripts/benchmark-startup.ts",dev:"tsc -p tsconfig.json --watch","check-types":"tsc --noEmit",lint:"eslint src/",test:"bun test --isolate src/","test:e2e":"bun test src/__tests__/e2e/",clean:"bun ../../scripts/clean.ts dist .turbo tsconfig.tsbuildinfo THIRD-PARTY-NOTICES.txt"},dependencies:{"@azure/msal-node-extensions":"5.2.2",esbuild:"catalog:build",open:"11.0.0"},engines:{node:">=24.11.0",git:">=2.27.0"},devDependencies:{"@microsoft/managed-apps-actions":"workspace:*","@microsoft/managed-apps-codegen":"workspace:*","@microsoft/managed-apps-common":"workspace:*","@azure/msal-node":"5.2.2","@clack/prompts":"1.4.0","@microsoft/1ds-core-js":"4.3.11","@microsoft/1ds-post-js":"4.3.11","@repo/repo-config":"workspace:*","@rnx-kit/third-party-notices":"3.0.0","@types/archiver":"6.0.3","@types/bun":"1.3.13","@types/node":"catalog:","@types/semver":"7.7.1",archiver:"7.0.1",commander:"10.0.1",json5:"2.2.3",memfs:"^4.57.2",semver:"7.7.4","tsc-esm-fix":"catalog:build",typescript:"5.9.3"}};export{t as a};
|
|
8
|
+
//# sourceMappingURL=chunk-7PH2NK5K.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __pathDirname(__filename);
|
|
7
|
+
var p={Account:{name:"account"},DeviceCode:{name:"device-code",camelName:"deviceCode"}},o={Help:{name:"help",alias:"h"},Connector:{name:"connector",promptMessage:"Please provide the connector (e.g. shared_office365):",envVar:"CONNECTOR"},ConnectionId:{name:"connection-id",alias:"c",promptMessage:"Please provide the Connection ID:",envVar:"CONNECTION_ID"},Dataset:{name:"dataset",alias:"d",promptMessage:"Please provide the dataset:",envVar:"DATASET"},Search:{name:"search",alias:"s",promptMessage:"Please provide a search term:",envVar:"SEARCH_TERM"}},t={SkipCodegen:{name:"skip-codegen",env:"SKIP_CODEGEN"},UseV1Codegen:{name:"use-v1-codegen",env:"USE_V1_CODEGEN"}},r={Table:{name:"table",alias:"t",promptMessage:"Please provide the table name:",envVar:"TABLE_NAME"},...t},m={As:{name:"as",promptMessage:"Add as table or action?",envVar:"ADD_CONNECTOR_AS"},Table:r.Table,DataverseEnvironmentId:{name:"dataverse-environment-id",promptMessage:"Please provide the Dataverse environment ID:",envVar:"DATAVERSE_ENVIRONMENT_ID"},UseSso:{name:"use-sso",env:"USE_SSO"},...t},i={Deployment:{name:"deployment"},For:{name:"for"}},c={Deployment:{name:"deployment",promptMessage:"Select the deployment:"}},A={DataSourceName:{name:"name",alias:"n",promptMessage:"Please provide the data source or table name:",envVar:"DATA_SOURCE_NAME"}},l={DataSourceName:{name:"name",alias:"n",promptMessage:"Please provide the data source name to regenerate:",envVar:"DATA_SOURCE_NAME"},Offline:{name:"offline",env:"OFFLINE"}},d={Cloud:{name:"cloud",promptMessage:"Please select the cloud instance:",envVar:"CLOUD_INSTANCE"}},v={Port:{name:"port",alias:"p",promptMessage:"Please provide the port number:",envVar:"PORT",initialValue:"8080"},LocalAppUrl:{name:"local-app-url",alias:"l",promptMessage:"Please provide the local app URL:",envVar:"LOCAL_APP_URL",initialValue:"http://localhost:3000"},ConfigOnly:{name:"config-only",alias:"C",envVar:"CONFIG_ONLY"}},M={Search:{...o.Search,promptMessage:"Please provide a search term to filter connectors by name or ID:",envVar:"CONNECTOR_SEARCH"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"},OnlyAllowed:{name:"only-allowed",camelName:"onlyAllowed"}},P={EnvironmentId:{name:"environment-id",camelName:"environmentId",alias:"e",promptMessage:"Please provide the environment ID to filter by:",envVar:"LIST_ENVIRONMENT_ID"},Permission:{name:"permission",alias:"p",promptMessage:"Please provide the permission filter (edit or play):",envVar:"LIST_PERMISSION"}},N={Search:{...o.Search,promptMessage:"Please provide a search term to filter actions by summary or action ID:",envVar:"CONNECTOR_ACTION_SEARCH"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"}};var s={EnvironmentId:{name:"environment-id",alias:"e",promptMessage:"Please provide the environment ID:",envVar:"ENVIRONMENT_ID"},DisplayName:{name:"display-name",alias:"n",promptMessage:"Please provide the display name for the app:",envVar:"APP_DISPLAY_NAME"},Description:{name:"description",alias:"d",promptMessage:"Please provide a description for the app (optional):",envVar:"APP_DESCRIPTION"},BuildPath:{name:"build-path",alias:"b",promptMessage:"Please provide the build output path:",envVar:"BUILD_PATH",initialValue:"./dist"},BuildCommand:{name:"build-command",alias:"S",promptMessage:"Please provide the full command used to build your app:",envVar:"BUILD_COMMAND",initialValue:"npm run build"},BuildEntryPoint:{name:"build-entry-point",promptMessage:"Please provide the entry point HTML file:",envVar:"BUILD_ENTRY_POINT",initialValue:"index.html"},IconPath:{name:"icon-path",camelName:"iconPath",envVar:"APP_ICON_PATH"},LocalAppUrl:{name:"local-app-url",camelName:"localAppUrl",envVar:"LOCAL_APP_URL"}},e={name:"force-reauth",camelName:"forceReauth"},_={...s,AppId:{name:"app-id",alias:"i",promptMessage:"Please provide an app ID (letters, numbers, and underscores only, 1-64 chars):",envVar:"APP_ID"},Template:{name:"template",alias:"t",promptMessage:"Please provide the template name:",envVar:"APP_TEMPLATE"},RepositoryId:{name:"repository-id",alias:"r",promptMessage:"Please provide the repository ID:",envVar:"APP_REPOSITORY_ID"},ProjectId:{name:"project-id",camelName:"projectId",envVar:"APP_PROJECT_ID"},Repo:{name:"repo",envVar:"APP_REPO"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},ForceReauth:e},g={App:{name:"app",promptMessage:"Please provide the app ID:"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"},Directory:"[directory]"},u={App:{name:"app",promptMessage:"Please provide the app name or app ID:",envVar:"MAAF_APP_NAME"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"}},E={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},CommitSha:{name:"commit",alias:"c",envVar:"MAAF_COMMIT_SHA"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},NoWait:{name:"no-wait",camelName:"wait"},ForceReauth:e},h={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},CommitSha:{name:"commit",alias:"c",envVar:"MAAF_COMMIT_SHA"},ShowLog:{name:"show-log"}},I={AppName:{name:"app",envVar:"MAAF_APP_NAME"},Mode:{name:"mode",alias:"m",envVar:"MAAF_PLAY_MODE",defaultValue:"live"},CommitSha:{name:"commit",alias:"c",envVar:"MAAF_COMMIT_SHA"},Branch:{name:"branch"},NoBrowser:{name:"no-browser",camelName:"browser"}},V={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},CommitSha:{name:"commit",alias:"c",envVar:"MAAF_COMMIT_SHA"},Artifact:{name:"artifact",envVar:"MAAF_DEPLOY_ARTIFACT"},Deployment:{name:"deployment",envVar:"MAAF_DEPLOYMENT"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},Force:{name:"force"},NoWait:{name:"no-wait",camelName:"wait"},ForceReauth:e},C={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"}},D={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},Access:{name:"access",envVar:"MAAF_APP_ACCESS",defaultValue:"play"}},O={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},Access:{name:"access",envVar:"MAAF_APP_ACCESS",defaultValue:"play"}},S={Repo:{name:"repo",alias:"r",promptMessage:"Please provide the GitHub repository URL (e.g. https://contoso.ghe.com/owner/repo or https://github.com/owner/repo):",envVar:"MAAF_GITHUB_REPO"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"}},a={name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},n={name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"},T={AppName:a,EnvironmentId:n},R={AppName:a,EnvironmentId:n},f={AppName:a,EnvironmentId:n,Access:{name:"access",envVar:"MAAF_APP_ACCESS"}},L={AppName:a,EnvironmentId:n,LinkId:{name:"link-id",alias:"l",promptMessage:"Please provide the share link ID:",envVar:"MAAF_SHARE_LINK_ID"},Force:{name:"force",alias:"f"}},y={...s,Repo:{name:"repo",envVar:"APP_REPO"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},ForceReauth:e};export{p as a,o as b,m as c,i as d,c as e,A as f,l as g,d as h,v as i,M as j,P as k,N as l,_ as m,g as n,u as o,E as p,h as q,I as r,V as s,C as t,D as u,O as v,S as w,T as x,R as y,f as z,L as A,y as B};
|
|
8
|
+
/*!
|
|
9
|
+
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
|
+
*/
|
|
11
|
+
//# sourceMappingURL=chunk-DAG6RPOF.js.map
|
|
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import{
|
|
7
|
+
import{Ha as Z}from"./chunk-UIW77LMA.js";import{b as j}from"./chunk-RBG2H562.js";import{i as k}from"./chunk-PVAIJSAI.js";import{a as G}from"./chunk-3FP37TPE.js";import{b as Gt,d as mt}from"./chunk-UT667QSU.js";var it=Gt((Ee,Tt)=>{"use strict";var st={to(t,e){return e?`\x1B[${e+1};${t+1}H`:`\x1B[${t+1}G`},move(t,e){let s="";return t<0?s+=`\x1B[${-t}D`:t>0&&(s+=`\x1B[${t}C`),e<0?s+=`\x1B[${-e}A`:e>0&&(s+=`\x1B[${e}B`),s},up:(t=1)=>`\x1B[${t}A`,down:(t=1)=>`\x1B[${t}B`,forward:(t=1)=>`\x1B[${t}C`,backward:(t=1)=>`\x1B[${t}D`,nextLine:(t=1)=>"\x1B[E".repeat(t),prevLine:(t=1)=>"\x1B[F".repeat(t),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},Qt={up:(t=1)=>"\x1B[S".repeat(t),down:(t=1)=>"\x1B[T".repeat(t)},te={screen:"\x1B[2J",up:(t=1)=>"\x1B[1J".repeat(t),down:(t=1)=>"\x1B[J".repeat(t),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(t){let e="";for(let s=0;s<t;s++)e+=this.line+(s<t-1?st.up():"");return t&&(e+=st.left),e}};Tt.exports={cursor:st,scroll:Qt,erase:te,beep:"\x07"}});import{styleText as ee}from"node:util";import{stdout as At,stdin as se}from"node:process";import ie from"node:readline";var gt=(()=>{let t=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return e=>{let s=0;for(t.lastIndex=0;t.test(e);)s+=1;return e.length-s}})(),ft=t=>t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510,$t=t=>t===8987||t===9001||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t>=131072&&t<=196605||t>=196608&&t<=262141;var kt=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,jt=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,yt=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,Wt=/\t{1,1000}/y,vt=new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*","yu"),Ut=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,Bt=new RegExp("\\p{M}+","gu"),Kt={limit:1/0,ellipsis:""},wt=(t,e={},s={})=>{let i=e.limit??1/0,r=e.ellipsis??"",n=e?.ellipsisWidth??(r?wt(r,Kt,s).width:0),o=0,a=s.controlWidth??0,l=s.tabWidth??8,h=s.emojiWidth??2,m=2,c=s.regularWidth??1,d=s.wideWidth??m,y=[[Ut,c],[kt,o],[jt,a],[Wt,l],[vt,h],[yt,d]],g=0,f=0,b=t.length,E=0,A=!1,V=b,F=Math.max(0,i-n),v=0,I=0,w=0,_=0;t:for(;;){if(I>v||f>=b&&f>g){let S=t.slice(v,I)||t.slice(g,f);E=0;for(let O of S.replaceAll(Bt,"")){let x=O.codePointAt(0)||0;if(ft(x)?_=m:$t(x)?_=d:_=c,w+_>F&&(V=Math.min(V,Math.max(v,g)+E)),w+_>i){A=!0;break t}E+=O.length,w+=_}v=I=0}if(f>=b)break t;for(let S=0,O=y.length;S<O;S++){let[x,dt]=y[S];if(x.lastIndex=f,x.test(t)){if(E=x===yt?gt(t.slice(f,x.lastIndex)):x===vt?1:x.lastIndex-f,_=E*dt,w+_>F&&(V=Math.min(V,f+Math.floor((F-w)/dt))),w+_>i){A=!0;break t}w+=_,v=g,I=f,f=g=x.lastIndex;continue t}}f+=1}return{width:A?F:w,index:A?V:b,truncated:A,ellipsed:A&&i>=n}},It=wt;var Ht={limit:1/0,ellipsis:"",ellipsisWidth:0},qt=(t,e={})=>It(t,Ht,e).width,T=qt;var W="\x1B",Ct="\x9B",Jt=39,tt="\x07",Et="[",Yt="]",Mt="m",et=`${Yt}8;;`,bt=new RegExp(`(?:\\${Et}(?<code>\\d+)m|\\${et}(?<uri>.*)${tt})`,"y"),_t=t=>{if(t>=30&&t<=37||t>=90&&t<=97)return 39;if(t>=40&&t<=47||t>=100&&t<=107)return 49;if(t===1||t===2)return 22;if(t===3)return 23;if(t===4)return 24;if(t===7)return 27;if(t===8)return 28;if(t===9)return 29;if(t===0)return 0},St=t=>`${W}${Et}${t}${Mt}`,xt=t=>`${W}${et}${t}${tt}`,Q=(t,e,s)=>{let i=e[Symbol.iterator](),r=!1,n=!1,o=t.at(-1),a=o===void 0?0:T(o),l=i.next(),h=i.next(),m=0;for(;!l.done;){let c=l.value,d=T(c);a+d<=s?t[t.length-1]+=c:(t.push(c),a=0),(c===W||c===Ct)&&(r=!0,n=e.startsWith(et,m+1)),r?n?c===tt&&(r=!1,n=!1):c===Mt&&(r=!1):(a+=d,a===s&&!h.done&&(t.push(""),a=0)),l=h,h=i.next(),m+=c.length}o=t.at(-1),!a&&o!==void 0&&o.length&&t.length>1&&(t[t.length-2]+=t.pop())},zt=t=>{let e=t.split(" "),s=e.length;for(;s&&!T(e[s-1]);)s--;return s===e.length?t:e.slice(0,s).join(" ")+e.slice(s).join("")},Xt=(t,e,s={})=>{if(s.trim!==!1&&t.trim()==="")return"";let i="",r,n,o=t.split(" "),a=[""],l=0;for(let c=0;c<o.length;c++){let d=o[c];if(s.trim!==!1){let g=a.at(-1)??"",f=g.trimStart();g.length!==f.length&&(a[a.length-1]=f,l=T(f))}c!==0&&(l>=e&&(s.wordWrap===!1||s.trim===!1)&&(a.push(""),l=0),(l||s.trim===!1)&&(a[a.length-1]+=" ",l++));let y=T(d);if(s.hard&&y>e){let g=e-l,f=1+Math.floor((y-g-1)/e);Math.floor((y-1)/e)<f&&a.push(""),Q(a,d,e),l=T(a.at(-1)??"");continue}if(l+y>e&&l&&y){if(s.wordWrap===!1&&l<e){Q(a,d,e),l=T(a.at(-1)??"");continue}a.push(""),l=0}if(l+y>e&&s.wordWrap===!1){Q(a,d,e),l=T(a.at(-1)??"");continue}a[a.length-1]+=d,l+=y}s.trim!==!1&&(a=a.map(c=>zt(c)));let h=a.join(`
|
|
8
8
|
`),m=!1;for(let c=0;c<h.length;c++){let d=h[c];if(i+=d,m)m=!1;else if(m=d>="\uD800"&&d<="\uDBFF",m)continue;if(d===W||d===Ct){bt.lastIndex=c+1;let g=bt.exec(h)?.groups;if(g?.code!==void 0){let f=Number.parseFloat(g.code);r=f===Jt?void 0:f}else g?.uri!==void 0&&(n=g.uri.length===0?void 0:g.uri)}if(h[c+1]===`
|
|
9
9
|
`){n&&(i+=xt(""));let y=r?_t(r):void 0;r&&y&&(i+=St(y))}else d===`
|
|
10
10
|
`&&(r&&_t(r)&&(i+=St(r)),n&&(i+=xt(n)))}return i},Zt=/\r?\n/;function R(t,e,s){return String(t).normalize().split(Zt).map(i=>Xt(i,e,s)).join(`
|
|
@@ -47,4 +47,4 @@ ${a}
|
|
|
47
47
|
/*!
|
|
48
48
|
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
49
49
|
*/
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
50
|
+
//# sourceMappingURL=chunk-DD7E4ADI.js.map
|