paas-component-library 0.9.1 → 0.9.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/{cssMode-Dq-93-kK.js → cssMode-D5rfDUb5.js} +1 -1
- package/dist/{freemarker2-u24BWqHb.js → freemarker2-BrPaLvgN.js} +1 -1
- package/dist/{handlebars-eqiE6_9R.js → handlebars-SBw30QYL.js} +1 -1
- package/dist/{html-zhzT-nT_.js → html-A1-3G0ur.js} +1 -1
- package/dist/{htmlMode-BTmMM579.js → htmlMode-DSu_jgDJ.js} +1 -1
- package/dist/{index-BAUSCgYl.js → index-BtqyFJxS.js} +25 -25
- package/dist/{javascript-BUn0JtSU.js → javascript-CHHKuzFI.js} +1 -1
- package/dist/{jsonMode-Bn92PRc5.js → jsonMode-qB-dU2tn.js} +1 -1
- package/dist/{liquid-DFaxeKKI.js → liquid-D14wNu6v.js} +1 -1
- package/dist/{mdx-C_zRp5L3.js → mdx-B_dtYE33.js} +1 -1
- package/dist/paas-ui.js +1 -1
- package/dist/paas-ui.umd.cjs +2 -2
- package/dist/{python-W2Q4d54Y.js → python-BvWxGxWC.js} +1 -1
- package/dist/{razor-B4I4u_w9.js → razor-Cd5wBGPI.js} +1 -1
- package/dist/{tsMode-BxthFNux.js → tsMode-CpktiwY2.js} +1 -1
- package/dist/{typescript-B_vmB8Vs.js → typescript-BOhq3nvk.js} +1 -1
- package/dist/{xml-Z09PjZuI.js → xml-BqLVzlA4.js} +1 -1
- package/dist/{yaml-BtiK4SgL.js → yaml-C2I0t9kO.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as et } from "./index-
|
|
1
|
+
import { m as et } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as f } from "./index-
|
|
1
|
+
import { m as f } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as l } from "./index-
|
|
1
|
+
import { m as l } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as s } from "./index-
|
|
1
|
+
import { m as s } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as lt } from "./index-
|
|
1
|
+
import { m as lt } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
@@ -77290,37 +77290,37 @@ et({
|
|
|
77290
77290
|
id: "freemarker2",
|
|
77291
77291
|
extensions: [".ftl", ".ftlh", ".ftlx"],
|
|
77292
77292
|
aliases: ["FreeMarker2", "Apache FreeMarker2"],
|
|
77293
|
-
loader: () => import("./freemarker2-
|
|
77293
|
+
loader: () => import("./freemarker2-BrPaLvgN.js").then((i) => i.TagAutoInterpolationDollar)
|
|
77294
77294
|
});
|
|
77295
77295
|
et({
|
|
77296
77296
|
id: "freemarker2.tag-angle.interpolation-dollar",
|
|
77297
77297
|
aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
|
|
77298
|
-
loader: () => import("./freemarker2-
|
|
77298
|
+
loader: () => import("./freemarker2-BrPaLvgN.js").then((i) => i.TagAngleInterpolationDollar)
|
|
77299
77299
|
});
|
|
77300
77300
|
et({
|
|
77301
77301
|
id: "freemarker2.tag-bracket.interpolation-dollar",
|
|
77302
77302
|
aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
|
|
77303
|
-
loader: () => import("./freemarker2-
|
|
77303
|
+
loader: () => import("./freemarker2-BrPaLvgN.js").then((i) => i.TagBracketInterpolationDollar)
|
|
77304
77304
|
});
|
|
77305
77305
|
et({
|
|
77306
77306
|
id: "freemarker2.tag-angle.interpolation-bracket",
|
|
77307
77307
|
aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
|
|
77308
|
-
loader: () => import("./freemarker2-
|
|
77308
|
+
loader: () => import("./freemarker2-BrPaLvgN.js").then((i) => i.TagAngleInterpolationBracket)
|
|
77309
77309
|
});
|
|
77310
77310
|
et({
|
|
77311
77311
|
id: "freemarker2.tag-bracket.interpolation-bracket",
|
|
77312
77312
|
aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
|
|
77313
|
-
loader: () => import("./freemarker2-
|
|
77313
|
+
loader: () => import("./freemarker2-BrPaLvgN.js").then((i) => i.TagBracketInterpolationBracket)
|
|
77314
77314
|
});
|
|
77315
77315
|
et({
|
|
77316
77316
|
id: "freemarker2.tag-auto.interpolation-dollar",
|
|
77317
77317
|
aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
|
|
77318
|
-
loader: () => import("./freemarker2-
|
|
77318
|
+
loader: () => import("./freemarker2-BrPaLvgN.js").then((i) => i.TagAutoInterpolationDollar)
|
|
77319
77319
|
});
|
|
77320
77320
|
et({
|
|
77321
77321
|
id: "freemarker2.tag-auto.interpolation-bracket",
|
|
77322
77322
|
aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
|
|
77323
|
-
loader: () => import("./freemarker2-
|
|
77323
|
+
loader: () => import("./freemarker2-BrPaLvgN.js").then((i) => i.TagAutoInterpolationBracket)
|
|
77324
77324
|
});
|
|
77325
77325
|
/*!-----------------------------------------------------------------------------
|
|
77326
77326
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -77358,7 +77358,7 @@ et({
|
|
|
77358
77358
|
extensions: [".handlebars", ".hbs"],
|
|
77359
77359
|
aliases: ["Handlebars", "handlebars", "hbs"],
|
|
77360
77360
|
mimetypes: ["text/x-handlebars-template"],
|
|
77361
|
-
loader: () => import("./handlebars-
|
|
77361
|
+
loader: () => import("./handlebars-SBw30QYL.js")
|
|
77362
77362
|
});
|
|
77363
77363
|
/*!-----------------------------------------------------------------------------
|
|
77364
77364
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -77383,7 +77383,7 @@ et({
|
|
|
77383
77383
|
extensions: [".html", ".htm", ".shtml", ".xhtml", ".mdoc", ".jsp", ".asp", ".aspx", ".jshtm"],
|
|
77384
77384
|
aliases: ["HTML", "htm", "html", "xhtml"],
|
|
77385
77385
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
77386
|
-
loader: () => import("./html-
|
|
77386
|
+
loader: () => import("./html-A1-3G0ur.js")
|
|
77387
77387
|
});
|
|
77388
77388
|
/*!-----------------------------------------------------------------------------
|
|
77389
77389
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -77424,7 +77424,7 @@ et({
|
|
|
77424
77424
|
filenames: ["jakefile"],
|
|
77425
77425
|
aliases: ["JavaScript", "javascript", "js"],
|
|
77426
77426
|
mimetypes: ["text/javascript"],
|
|
77427
|
-
loader: () => import("./javascript-
|
|
77427
|
+
loader: () => import("./javascript-CHHKuzFI.js")
|
|
77428
77428
|
});
|
|
77429
77429
|
/*!-----------------------------------------------------------------------------
|
|
77430
77430
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -77499,7 +77499,7 @@ et({
|
|
|
77499
77499
|
extensions: [".liquid", ".html.liquid"],
|
|
77500
77500
|
aliases: ["Liquid", "liquid"],
|
|
77501
77501
|
mimetypes: ["application/liquid"],
|
|
77502
|
-
loader: () => import("./liquid-
|
|
77502
|
+
loader: () => import("./liquid-D14wNu6v.js")
|
|
77503
77503
|
});
|
|
77504
77504
|
/*!-----------------------------------------------------------------------------
|
|
77505
77505
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -77535,7 +77535,7 @@ et({
|
|
|
77535
77535
|
id: "mdx",
|
|
77536
77536
|
extensions: [".mdx"],
|
|
77537
77537
|
aliases: ["MDX", "mdx"],
|
|
77538
|
-
loader: () => import("./mdx-
|
|
77538
|
+
loader: () => import("./mdx-B_dtYE33.js")
|
|
77539
77539
|
});
|
|
77540
77540
|
/*!-----------------------------------------------------------------------------
|
|
77541
77541
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -77730,7 +77730,7 @@ et({
|
|
|
77730
77730
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
77731
77731
|
aliases: ["Python", "py"],
|
|
77732
77732
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
77733
|
-
loader: () => import("./python-
|
|
77733
|
+
loader: () => import("./python-BvWxGxWC.js")
|
|
77734
77734
|
});
|
|
77735
77735
|
/*!-----------------------------------------------------------------------------
|
|
77736
77736
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -77767,7 +77767,7 @@ et({
|
|
|
77767
77767
|
extensions: [".cshtml"],
|
|
77768
77768
|
aliases: ["Razor", "razor"],
|
|
77769
77769
|
mimetypes: ["text/x-cshtml"],
|
|
77770
|
-
loader: () => import("./razor-
|
|
77770
|
+
loader: () => import("./razor-Cd5wBGPI.js")
|
|
77771
77771
|
});
|
|
77772
77772
|
/*!-----------------------------------------------------------------------------
|
|
77773
77773
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -78019,7 +78019,7 @@ et({
|
|
|
78019
78019
|
extensions: [".ts", ".tsx", ".cts", ".mts"],
|
|
78020
78020
|
aliases: ["TypeScript", "ts", "typescript"],
|
|
78021
78021
|
mimetypes: ["text/typescript"],
|
|
78022
|
-
loader: () => import("./typescript-
|
|
78022
|
+
loader: () => import("./typescript-BOhq3nvk.js")
|
|
78023
78023
|
});
|
|
78024
78024
|
/*!-----------------------------------------------------------------------------
|
|
78025
78025
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -78087,7 +78087,7 @@ et({
|
|
|
78087
78087
|
firstLine: "(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",
|
|
78088
78088
|
aliases: ["XML", "xml"],
|
|
78089
78089
|
mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
|
|
78090
|
-
loader: () => import("./xml-
|
|
78090
|
+
loader: () => import("./xml-BqLVzlA4.js")
|
|
78091
78091
|
});
|
|
78092
78092
|
/*!-----------------------------------------------------------------------------
|
|
78093
78093
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -78100,7 +78100,7 @@ et({
|
|
|
78100
78100
|
extensions: [".yaml", ".yml"],
|
|
78101
78101
|
aliases: ["YAML", "yaml", "YML", "yml"],
|
|
78102
78102
|
mimetypes: ["application/x-yaml", "text/x-yaml"],
|
|
78103
|
-
loader: () => import("./yaml-
|
|
78103
|
+
loader: () => import("./yaml-C2I0t9kO.js")
|
|
78104
78104
|
});
|
|
78105
78105
|
/*!-----------------------------------------------------------------------------
|
|
78106
78106
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -78203,7 +78203,7 @@ var dF = class {
|
|
|
78203
78203
|
);
|
|
78204
78204
|
T2.languages.css = { cssDefaults: v_e, lessDefaults: y_e, scssDefaults: __e };
|
|
78205
78205
|
function gF() {
|
|
78206
|
-
return import("./cssMode-
|
|
78206
|
+
return import("./cssMode-D5rfDUb5.js");
|
|
78207
78207
|
}
|
|
78208
78208
|
T2.languages.onLanguage("less", () => {
|
|
78209
78209
|
gF().then((i) => i.setupMode(y_e));
|
|
@@ -78309,7 +78309,7 @@ jS.languages.html = {
|
|
|
78309
78309
|
registerHTMLLanguageService: US
|
|
78310
78310
|
};
|
|
78311
78311
|
function J$e() {
|
|
78312
|
-
return import("./htmlMode-
|
|
78312
|
+
return import("./htmlMode-DSu_jgDJ.js");
|
|
78313
78313
|
}
|
|
78314
78314
|
function US(i, e = WS, t = $S(i)) {
|
|
78315
78315
|
const n = new G$e(i, e, t);
|
|
@@ -78386,7 +78386,7 @@ var sUe = class {
|
|
|
78386
78386
|
), lUe = () => L_e().then((i) => i.getWorker());
|
|
78387
78387
|
dv.languages.json = { jsonDefaults: O_e, getWorker: lUe };
|
|
78388
78388
|
function L_e() {
|
|
78389
|
-
return import("./jsonMode-
|
|
78389
|
+
return import("./jsonMode-qB-dU2tn.js");
|
|
78390
78390
|
}
|
|
78391
78391
|
dv.languages.register({
|
|
78392
78392
|
id: "json",
|
|
@@ -78550,7 +78550,7 @@ q4.languages.typescript = {
|
|
|
78550
78550
|
getJavaScriptWorker: vUe
|
|
78551
78551
|
};
|
|
78552
78552
|
function qS() {
|
|
78553
|
-
return import("./tsMode-
|
|
78553
|
+
return import("./tsMode-CpktiwY2.js");
|
|
78554
78554
|
}
|
|
78555
78555
|
q4.languages.onLanguage("typescript", () => qS().then((i) => i.setupTypeScript(I_e)));
|
|
78556
78556
|
q4.languages.onLanguage("javascript", () => qS().then((i) => i.setupJavaScript(M_e)));
|
|
@@ -145424,9 +145424,6 @@ const uLt = /* @__PURE__ */ br(tLt, [["render", cLt], ["__scopeId", "data-v-676b
|
|
|
145424
145424
|
};
|
|
145425
145425
|
}
|
|
145426
145426
|
}), fLt = [
|
|
145427
|
-
hLt,
|
|
145428
|
-
hOt,
|
|
145429
|
-
cOt,
|
|
145430
145427
|
Cnt,
|
|
145431
145428
|
Lnt,
|
|
145432
145429
|
uLt,
|
|
@@ -145445,7 +145442,10 @@ const uLt = /* @__PURE__ */ br(tLt, [["render", cLt], ["__scopeId", "data-v-676b
|
|
|
145445
145442
|
DSt,
|
|
145446
145443
|
HSt,
|
|
145447
145444
|
iOt,
|
|
145448
|
-
oOt
|
|
145445
|
+
oOt,
|
|
145446
|
+
hLt,
|
|
145447
|
+
hOt,
|
|
145448
|
+
cOt
|
|
145449
145449
|
], QDt = {
|
|
145450
145450
|
install(i) {
|
|
145451
145451
|
fLt.forEach((e) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { conf as t, language as e } from "./typescript-
|
|
1
|
+
import { conf as t, language as e } from "./typescript-BOhq3nvk.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as Et } from "./index-
|
|
1
|
+
import { m as Et } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as l } from "./index-
|
|
1
|
+
import { m as l } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as s } from "./index-
|
|
1
|
+
import { m as s } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
package/dist/paas-ui.js
CHANGED
package/dist/paas-ui.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(C,Qn){typeof exports=="object"&&typeof module<"u"?module.exports=Qn(require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["vue","ant-design-vue"],Qn):(C=typeof globalThis<"u"?globalThis:C||self,C["pass-ui"]=Qn(C.Vue,C.antDesignVue))})(this,function(C,Qn){"use strict";var AHt=Object.defineProperty;var MHt=(C,Qn,us)=>Qn in C?AHt(C,Qn,{enumerable:!0,configurable:!0,writable:!0,value:us}):C[Qn]=us;var Wi=(C,Qn,us)=>MHt(C,typeof Qn!="symbol"?Qn+"":Qn,us);var kLe,ELe,TLe,lh,PLe,Ko,dh,hh,Gu,fi,Dp,Wc,Ip,Ap,Mp,Rp,Fp,i3,tg,Hp,a3,Bp,zp,mh,$p,rg,jp,Wp,Up,bh,sg,l3,og,ag,lg,u3,qp,Gp,cg,ug,dg,Zp,Yp,Xp,Qp,Kp,_h,Jp,em,tm,nm,im,rm,sm,om,h3,f3,Ku,fg,am,lm,Uc,gg,cm,um,pg,dm,hm,pm,g3,p3,mg,_g,mm,bm,vg,_m,vm,ul,ym,wm,Sm,Cm,xm,v3,yg,y3,Om,Lm,w3,S3,wg,km,Em,Tm,Pm,qc,ed,Gc,ni;function us(i,e=0){return i[i.length-(1+e)]}function FLe(i){if(i.length===0)throw new Error("Invalid tail call");return[i.slice(0,i.length-1),i[i.length-1]]}function Kn(i,e,t=(n,r)=>n===r){if(i===e)return!0;if(!i||!e||i.length!==e.length)return!1;for(let n=0,r=i.length;n<r;n++)if(!t(i[n],e[n]))return!1;return!0}function VLe(i,e){const t=i.length-1;e<t&&(i[e]=i[t]),i.pop()}function k3(i,e,t){return HLe(i.length,n=>t(i[n],e))}function HLe(i,e){let t=0,n=i-1;for(;t<=n;){const r=(t+n)/2|0,s=e(r);if(s<0)t=r+1;else if(s>0)n=r-1;else return r}return-(t+1)}function zO(i,e,t){if(i=i|0,i>=e.length)throw new TypeError("invalid index");const n=e[Math.floor(e.length*Math.random())],r=[],s=[],o=[];for(const a of e){const l=t(a,n);l<0?r.push(a):l>0?s.push(a):o.push(a)}return i<r.length?zO(i,r,t):i<r.length+o.length?o[0]:zO(i-(r.length+o.length),s,t)}function Tte(i,e){const t=[];let n;for(const r of i.slice(0).sort(e))!n||e(n[0],r)!==0?(n=[r],t.push(n)):n.push(r);return t}function*$O(i,e){let t,n;for(const r of i)n!==void 0&&e(n,r)?t.push(r):(t&&(yield t),t=[r]),n=r;t&&(yield t)}function Pte(i,e){for(let t=0;t<=i.length;t++)e(t===0?void 0:i[t-1],t===i.length?void 0:i[t])}function BLe(i,e){for(let t=0;t<i.length;t++)e(t===0?void 0:i[t-1],i[t],t+1===i.length?void 0:i[t+1])}function pl(i){return i.filter(e=>!!e)}function Nte(i){let e=0;for(let t=0;t<i.length;t++)i[t]&&(i[e]=i[t],e+=1);i.length=e}function Dte(i){return!Array.isArray(i)||i.length===0}function ds(i){return Array.isArray(i)&&i.length>0}function nd(i,e=t=>t){const t=new Set;return i.filter(n=>{const r=e(n);return t.has(r)?!1:(t.add(r),!0)})}function jO(i,e){return i.length>0?i[0]:e}function Js(i,e){let t=typeof e=="number"?i:0;typeof e=="number"?t=i:(t=0,e=i);const n=[];if(t<=e)for(let r=t;r<e;r++)n.push(r);else for(let r=t;r>e;r--)n.push(r);return n}function Ov(i,e,t){const n=i.slice(0,e),r=i.slice(e);return n.concat(t,r)}function WO(i,e){const t=i.indexOf(e);t>-1&&(i.splice(t,1),i.unshift(e))}function Lv(i,e){const t=i.indexOf(e);t>-1&&(i.splice(t,1),i.push(e))}function UO(i,e){for(const t of e)i.push(t)}function qO(i){return Array.isArray(i)?i:[i]}function zLe(i,e,t){const n=Ate(i,e),r=i.length,s=t.length;i.length=r+s;for(let o=r-1;o>=n;o--)i[o+s]=i[o];for(let o=0;o<s;o++)i[o+n]=t[o]}function Ite(i,e,t,n){const r=Ate(i,e);let s=i.splice(r,t);return s===void 0&&(s=[]),zLe(i,r,n),s}function Ate(i,e){return e<0?Math.max(e+i.length,0):Math.min(e,i.length)}var E3;(function(i){function e(s){return s<0}i.isLessThan=e;function t(s){return s<=0}i.isLessThanOrEqual=t;function n(s){return s>0}i.isGreaterThan=n;function r(s){return s===0}i.isNeitherLessOrGreaterThan=r,i.greaterThan=1,i.lessThan=-1,i.neitherLessOrGreaterThan=0})(E3||(E3={}));function ks(i,e){return(t,n)=>e(i(t),i(n))}function $Le(...i){return(e,t)=>{for(const n of i){const r=n(e,t);if(!E3.isNeitherLessOrGreaterThan(r))return r}return E3.neitherLessOrGreaterThan}}const ml=(i,e)=>i-e,jLe=(i,e)=>ml(i?1:0,e?1:0);function Mte(i){return(e,t)=>-i(e,t)}class id{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}const Y2=class Y2{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Y2(t=>this.iterate(n=>e(n)?t(n):!0))}map(e){return new Y2(t=>this.iterate(n=>t(e(n))))}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||E3.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}};Y2.empty=new Y2(e=>{});let Eg=Y2;class kv{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const n=Array.from(e.keys()).sort((r,s)=>t(e[r],e[s]));return new kv(n)}apply(e){return e.map((t,n)=>e[this._indexMap[n]])}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new kv(e)}}function eo(i){return typeof i=="string"}function ar(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)&&!(i instanceof RegExp)&&!(i instanceof Date)}function WLe(i){const e=Object.getPrototypeOf(Uint8Array);return typeof i=="object"&&i instanceof e}function xh(i){return typeof i=="number"&&!isNaN(i)}function Rte(i){return!!i&&typeof i[Symbol.iterator]=="function"}function Fte(i){return i===!0||i===!1}function hs(i){return typeof i>"u"}function Qc(i){return!na(i)}function na(i){return hs(i)||i===null}function Xt(i,e){if(!i)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Oh(i){if(na(i))throw new Error("Assertion Failed: argument is undefined or null");return i}function T3(i){return typeof i=="function"}function ULe(i,e){const t=Math.min(i.length,e.length);for(let n=0;n<t;n++)qLe(i[n],e[n])}function qLe(i,e){if(eo(e)){if(typeof i!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(T3(e)){try{if(i instanceof e)return}catch{}if(!na(i)&&i.constructor===e||e.length===1&&e.call(void 0,i)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function rd(i){if(!i||typeof i!="object"||i instanceof RegExp)return i;const e=Array.isArray(i)?[]:{};return Object.entries(i).forEach(([t,n])=>{e[t]=n&&typeof n=="object"?rd(n):n}),e}function GLe(i){if(!i||typeof i!="object")return i;const e=[i];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const n in t)if(Vte.call(t,n)){const r=t[n];typeof r=="object"&&!Object.isFrozen(r)&&!WLe(r)&&e.push(r)}}return i}const Vte=Object.prototype.hasOwnProperty;function Hte(i,e){return GO(i,e,new Set)}function GO(i,e,t){if(na(i))return i;const n=e(i);if(typeof n<"u")return n;if(Array.isArray(i)){const r=[];for(const s of i)r.push(GO(s,e,t));return r}if(ar(i)){if(t.has(i))throw new Error("Cannot clone recursive data-structure");t.add(i);const r={};for(const s in i)Vte.call(i,s)&&(r[s]=GO(i[s],e,t));return t.delete(i),r}return i}function Ev(i,e,t=!0){return ar(i)?(ar(e)&&Object.keys(e).forEach(n=>{n in i?t&&(ar(i[n])&&ar(e[n])?Ev(i[n],e[n],t):i[n]=e[n]):i[n]=e[n]}),i):e}function Oo(i,e){if(i===e)return!0;if(i==null||e===null||e===void 0||typeof i!=typeof e||typeof i!="object"||Array.isArray(i)!==Array.isArray(e))return!1;let t,n;if(Array.isArray(i)){if(i.length!==e.length)return!1;for(t=0;t<i.length;t++)if(!Oo(i[t],e[t]))return!1}else{const r=[];for(n in i)r.push(n);r.sort();const s=[];for(n in e)s.push(n);if(s.sort(),!Oo(r,s))return!1;for(t=0;t<r.length;t++)if(!Oo(i[r[t]],e[r[t]]))return!1}return!0}function ZLe(i){let e=[];for(;Object.prototype!==i;)e=e.concat(Object.getOwnPropertyNames(i)),i=Object.getPrototypeOf(i);return e}function ZO(i){const e=[];for(const t of ZLe(i))typeof i[t]=="function"&&e.push(t);return e}function YLe(i,e){const t=r=>function(){const s=Array.prototype.slice.call(arguments,0);return e(r,s)},n={};for(const r of i)n[r]=t(r);return n}function Bte(){return globalThis._VSCODE_NLS_MESSAGES}function YO(){return globalThis._VSCODE_NLS_LANGUAGE}const XLe=YO()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Tv(i,e){let t;return e.length===0?t=i:t=i.replace(/\{(\d+)\}/g,(n,r)=>{const s=r[0],o=e[s];let a=n;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),XLe&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function b(i,e,...t){return Tv(typeof i=="number"?zte(i,e):e,t)}function zte(i,e){var n;const t=(n=Bte())==null?void 0:n[i];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${i} !!!`)}return t}function ut(i,e,...t){let n;typeof i=="number"?n=zte(i,e):n=e;const r=Tv(n,t);return{value:r,original:e===n?r:Tv(e,t)}}const Rm="en";let Pv=!1,Nv=!1,Dv=!1,$te=!1,XO=!1,QO=!1,jte=!1,Iv,Av=Rm,Wte=Rm,QLe,Zl;const sd=globalThis;let Es;typeof sd.vscode<"u"&&typeof sd.vscode.process<"u"?Es=sd.vscode.process:typeof process<"u"&&typeof((kLe=process==null?void 0:process.versions)==null?void 0:kLe.node)=="string"&&(Es=process);const KLe=typeof((ELe=Es==null?void 0:Es.versions)==null?void 0:ELe.electron)=="string"&&(Es==null?void 0:Es.type)==="renderer";if(typeof Es=="object"){Pv=Es.platform==="win32",Nv=Es.platform==="darwin",Dv=Es.platform==="linux",Dv&&Es.env.SNAP&&Es.env.SNAP_REVISION,Es.env.CI||Es.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Iv=Rm,Av=Rm;const i=Es.env.VSCODE_NLS_CONFIG;if(i)try{const e=JSON.parse(i);Iv=e.userLocale,Wte=e.osLocale,Av=e.resolvedLanguage||Rm,QLe=(TLe=e.languagePack)==null?void 0:TLe.translationsConfigFile}catch{}$te=!0}else typeof navigator=="object"&&!KLe?(Zl=navigator.userAgent,Pv=Zl.indexOf("Windows")>=0,Nv=Zl.indexOf("Macintosh")>=0,QO=(Zl.indexOf("Macintosh")>=0||Zl.indexOf("iPad")>=0||Zl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Dv=Zl.indexOf("Linux")>=0,jte=(Zl==null?void 0:Zl.indexOf("Mobi"))>=0,XO=!0,Av=YO()||Rm,Iv=navigator.language.toLowerCase(),Wte=Iv):console.error("Unable to resolve platform.");const Er=Pv,At=Nv,Ts=Dv,Yl=$te,Tg=XO,JLe=XO&&typeof sd.importScripts=="function"?sd.origin:void 0,Xl=QO,Ute=jte,Kc=Zl,eke=Av,tke=typeof sd.postMessage=="function"&&!sd.importScripts,qte=(()=>{if(tke){const i=[];sd.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=i.length;n<r;n++){const s=i[n];if(s.id===t.data.vscodeScheduleAsyncWork){i.splice(n,1),s.callback();return}}});let e=0;return t=>{const n=++e;i.push({id:n,callback:t}),sd.postMessage({vscodeScheduleAsyncWork:n},"*")}}return i=>setTimeout(i)})(),Lo=Nv||QO?2:Pv?1:3;let Gte=!0,Zte=!1;function Yte(){if(!Zte){Zte=!0;const i=new Uint8Array(2);i[0]=1,i[1]=2,Gte=new Uint16Array(i.buffer)[0]===513}return Gte}const Xte=!!(Kc&&Kc.indexOf("Chrome")>=0),nke=!!(Kc&&Kc.indexOf("Firefox")>=0),ike=!!(!Xte&&Kc&&Kc.indexOf("Safari")>=0),rke=!!(Kc&&Kc.indexOf("Edg/")>=0),ske=!!(Kc&&Kc.indexOf("Android")>=0),Yr={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var jt;(function(i){function e(y){return y&&typeof y=="object"&&typeof y[Symbol.iterator]=="function"}i.is=e;const t=Object.freeze([]);function n(){return t}i.empty=n;function*r(y){yield y}i.single=r;function s(y){return e(y)?y:r(y)}i.wrap=s;function o(y){return y||t}i.from=o;function*a(y){for(let S=y.length-1;S>=0;S--)yield y[S]}i.reverse=a;function l(y){return!y||y[Symbol.iterator]().next().done===!0}i.isEmpty=l;function c(y){return y[Symbol.iterator]().next().value}i.first=c;function u(y,S){let x=0;for(const O of y)if(S(O,x++))return!0;return!1}i.some=u;function d(y,S){for(const x of y)if(S(x))return x}i.find=d;function*h(y,S){for(const x of y)S(x)&&(yield x)}i.filter=h;function*f(y,S){let x=0;for(const O of y)yield S(O,x++)}i.map=f;function*g(y,S){let x=0;for(const O of y)yield*S(O,x++)}i.flatMap=g;function*p(...y){for(const S of y)yield*S}i.concat=p;function m(y,S,x){let O=x;for(const L of y)O=S(O,L);return O}i.reduce=m;function*_(y,S,x=y.length){for(S<0&&(S+=y.length),x<0?x+=y.length:x>y.length&&(x=y.length);S<x;S++)yield y[S]}i.slice=_;function v(y,S=Number.POSITIVE_INFINITY){const x=[];if(S===0)return[x,y];const O=y[Symbol.iterator]();for(let L=0;L<S;L++){const T=O.next();if(T.done)return[x,i.empty()];x.push(T.value)}return[x,{[Symbol.iterator](){return O}}]}i.consume=v;async function w(y){const S=[];for await(const x of y)S.push(x);return Promise.resolve(S)}i.asyncToArray=w})(jt||(jt={}));let Qi=(lh=class{constructor(e){this.element=e,this.next=lh.Undefined,this.prev=lh.Undefined}},lh.Undefined=new lh(void 0),lh);class Ps{constructor(){this._first=Qi.Undefined,this._last=Qi.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Qi.Undefined}clear(){let e=this._first;for(;e!==Qi.Undefined;){const t=e.next;e.prev=Qi.Undefined,e.next=Qi.Undefined,e=t}this._first=Qi.Undefined,this._last=Qi.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new Qi(e);if(this._first===Qi.Undefined)this._first=n,this._last=n;else if(t){const s=this._last;this._last=n,n.prev=s,s.next=n}else{const s=this._first;this._first=n,n.next=s,s.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==Qi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Qi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Qi.Undefined&&e.next!==Qi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Qi.Undefined&&e.next===Qi.Undefined?(this._first=Qi.Undefined,this._last=Qi.Undefined):e.next===Qi.Undefined?(this._last=this._last.prev,this._last.next=Qi.Undefined):e.prev===Qi.Undefined&&(this._first=this._first.next,this._first.prev=Qi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Qi.Undefined;)yield e.element,e=e.next}}const Mv="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function oke(i=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of Mv)i.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const KO=oke();function JO(i){let e=KO;if(i&&i instanceof RegExp)if(i.global)e=i;else{let t="g";i.ignoreCase&&(t+="i"),i.multiline&&(t+="m"),i.unicode&&(t+="u"),e=new RegExp(i.source,t)}return e.lastIndex=0,e}const Qte=new Ps;Qte.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function P3(i,e,t,n,r){if(e=JO(e),r||(r=jt.first(Qte)),t.length>r.maxLen){let c=i-r.maxLen/2;return c<0?c=0:n+=c,t=t.substring(c,i+r.maxLen/2),P3(i,e,t,n,r)}const s=Date.now(),o=i-1-n;let a=-1,l=null;for(let c=1;!(Date.now()-s>=r.timeBudget);c++){const u=o-r.windowSize*c;e.lastIndex=Math.max(0,u);const d=ake(e,t,o,a);if(!d&&l||(l=d,u<=0))break;a=u}if(l){const c={word:l[0],startColumn:n+1+l.index,endColumn:n+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function ake(i,e,t,n){let r;for(;r=i.exec(e);){const s=r.index||0;if(s<=t&&i.lastIndex>=t)return r;if(n>0&&s>n)return null}return null}const Jc=8;class Kte{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class Jte{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class jn{constructor(e,t,n,r){this.id=e,this.name=t,this.defaultValue=n,this.schema=r}applyUpdate(e,t){return Rv(e,t)}compute(e,t,n){return n}}class N3{constructor(e,t){this.newValue=e,this.didChange=t}}function Rv(i,e){if(typeof i!="object"||typeof e!="object"||!i||!e)return new N3(e,i!==e);if(Array.isArray(i)||Array.isArray(e)){const n=Array.isArray(i)&&Array.isArray(e)&&Kn(i,e);return new N3(e,!n)}let t=!1;for(const n in e)if(e.hasOwnProperty(n)){const r=Rv(i[n],e[n]);r.didChange&&(i[n]=r.newValue,t=!0)}return new N3(i,t)}class D3{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return Rv(e,t)}validate(e){return this.defaultValue}}class Fm{constructor(e,t,n,r){this.id=e,this.name=t,this.defaultValue=n,this.schema=r}applyUpdate(e,t){return Rv(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,n){return n}}function Xe(i,e){return typeof i>"u"?e:i==="false"?!1:!!i}class Qt extends Fm{constructor(e,t,n,r=void 0){typeof r<"u"&&(r.type="boolean",r.default=n),super(e,t,n,r)}validate(e){return Xe(e,this.defaultValue)}}function Pg(i,e,t,n){if(typeof i>"u")return e;let r=parseInt(i,10);return isNaN(r)?e:(r=Math.max(t,r),r=Math.min(n,r),r|0)}class Ln extends Fm{static clampedInt(e,t,n,r){return Pg(e,t,n,r)}constructor(e,t,n,r,s,o=void 0){typeof o<"u"&&(o.type="integer",o.default=n,o.minimum=r,o.maximum=s),super(e,t,n,o),this.minimum=r,this.maximum=s}validate(e){return Ln.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function lke(i,e,t,n){if(typeof i>"u")return e;const r=ia.float(i,e);return ia.clamp(r,t,n)}class ia extends Fm{static clamp(e,t,n){return e<t?t:e>n?n:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const n=parseFloat(e);return isNaN(n)?t:n}constructor(e,t,n,r,s){typeof s<"u"&&(s.type="number",s.default=n),super(e,t,n,s),this.validationFn=r}validate(e){return this.validationFn(ia.float(e,this.defaultValue))}}class fs extends Fm{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,n,r=void 0){typeof r<"u"&&(r.type="string",r.default=n),super(e,t,n,r)}validate(e){return fs.string(e,this.defaultValue)}}function bi(i,e,t,n){return typeof i!="string"?e:n&&i in n?n[i]:t.indexOf(i)===-1?e:i}class _i extends Fm{constructor(e,t,n,r,s=void 0){typeof s<"u"&&(s.type="string",s.enum=r,s.default=n),super(e,t,n,s),this._allowedValues=r}validate(e){return bi(e,this.defaultValue,this._allowedValues)}}class Fv extends jn{constructor(e,t,n,r,s,o,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=r),super(e,t,n,a),this._allowedValues=s,this._convert=o}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function cke(i){switch(i){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class uke extends jn{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[b("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),b("accessibilitySupport.on","Optimize for usage with a Screen Reader."),b("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:b("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,n){return n===0?e.accessibilitySupport:n}}class dke extends jn{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:b("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:b("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Xe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Xe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function hke(i){switch(i){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var mr;(function(i){i[i.Line=1]="Line",i[i.Block=2]="Block",i[i.Underline=3]="Underline",i[i.LineThin=4]="LineThin",i[i.BlockOutline=5]="BlockOutline",i[i.UnderlineThin=6]="UnderlineThin"})(mr||(mr={}));function fke(i){switch(i){case"line":return mr.Line;case"block":return mr.Block;case"underline":return mr.Underline;case"line-thin":return mr.LineThin;case"block-outline":return mr.BlockOutline;case"underline-thin":return mr.UnderlineThin}}class gke extends D3{constructor(){super(143)}compute(e,t,n){const r=["monaco-editor"];return t.get(39)&&r.push(t.get(39)),e.extraEditorClassName&&r.push(e.extraEditorClassName),t.get(74)==="default"?r.push("mouse-default"):t.get(74)==="copy"&&r.push("mouse-copy"),t.get(112)&&r.push("showUnused"),t.get(141)&&r.push("showDeprecated"),r.join(" ")}}class pke extends Qt{constructor(){super(37,"emptySelectionClipboard",!0,{description:b("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,n){return n&&e.emptySelectionClipboard}}class mke extends jn{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:b("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[b("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),b("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),b("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:b("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[b("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),b("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),b("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:b("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:b("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:At},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:b("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:b("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Xe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":bi(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":bi(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Xe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Xe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Xe(t.loop,this.defaultValue.loop)}}}const ch=class ch extends jn{constructor(){super(51,"fontLigatures",ch.OFF,{anyOf:[{type:"boolean",description:b("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:b("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:b("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?ch.OFF:e==="true"?ch.ON:e:e?ch.ON:ch.OFF}};ch.OFF='"liga" off, "calt" off',ch.ON='"liga" on, "calt" on';let Lh=ch;const uh=class uh extends jn{constructor(){super(54,"fontVariations",uh.OFF,{anyOf:[{type:"boolean",description:b("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:b("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:b("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?uh.OFF:e==="true"?uh.TRANSLATE:e:e?uh.TRANSLATE:uh.OFF}compute(e,t,n){return e.fontInfo.fontVariationSettings}};uh.OFF="normal",uh.TRANSLATE="translate";let I3=uh;class bke extends D3{constructor(){super(50)}compute(e,t,n){return e.fontInfo}}class _ke extends Fm{constructor(){super(52,"fontSize",Ns.fontSize,{type:"number",minimum:6,maximum:100,default:Ns.fontSize,description:b("fontSize","Controls the font size in pixels.")})}validate(e){const t=ia.float(e,this.defaultValue);return t===0?Ns.fontSize:ia.clamp(t,6,100)}compute(e,t,n){return e.fontInfo.fontSize}}const Uu=class Uu extends jn{constructor(){super(53,"fontWeight",Ns.fontWeight,{anyOf:[{type:"number",minimum:Uu.MINIMUM_VALUE,maximum:Uu.MAXIMUM_VALUE,errorMessage:b("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Uu.SUGGESTION_VALUES}],default:Ns.fontWeight,description:b("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Ln.clampedInt(e,Ns.fontWeight,Uu.MINIMUM_VALUE,Uu.MAXIMUM_VALUE))}};Uu.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],Uu.MINIMUM_VALUE=1,Uu.MAXIMUM_VALUE=1e3;let eL=Uu;class vke extends jn{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[b("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),b("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),b("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},n=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:b("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:b("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:b("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:b("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:b("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:b("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:n,description:b("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:n,description:b("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:n,description:b("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:n,description:b("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:n,description:b("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{multiple:bi(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??bi(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??bi(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??bi(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??bi(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??bi(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??bi(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:fs.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:fs.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:fs.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:fs.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:fs.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:fs.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}class yke extends jn{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:b("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:b("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:b("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:b("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:b("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Xe(t.enabled,this.defaultValue.enabled),delay:Ln.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Xe(t.sticky,this.defaultValue.sticky),hidingDelay:Ln.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:Xe(t.above,this.defaultValue.above)}}}class Vm extends D3{constructor(){super(146)}compute(e,t,n){return Vm.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,n=Math.floor(e.paddingTop/e.lineHeight);let r=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(r=Math.max(r,t-1));const s=(n+e.viewLineCount+r)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:n,extraLinesBeyondLastLine:r,desiredRatio:s,minimapLineCount:o}}static _computeMinimapLayout(e,t){const n=e.outerWidth,r=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*r),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:r};const o=t.stableMinimapLayoutInput,a=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,u=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let h=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,p=e.minimap.side,m=e.verticalScrollbarWidth,_=e.viewLineCount,v=e.remainingWidth,w=e.isViewportWrapping,y=d?2:3;let S=Math.floor(s*r);const x=S/s;let O=!1,L=!1,T=y*h,N=h/s,E=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:de,extraLinesBeforeFirstLine:X,extraLinesBeyondLastLine:U,desiredRatio:H,minimapLineCount:J}=Vm.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:u,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:r,lineHeight:l,pixelRatio:s});if(_/J>1)O=!0,L=!0,h=1,T=1,N=h/s;else{let ue=!1,oe=h+1;if(g==="fit"){const K=Math.ceil((X+_+U)*T);w&&a&&v<=t.stableFitRemainingWidth?(ue=!0,oe=t.stableFitMaxMinimapScale):ue=K>S}if(g==="fill"||ue){O=!0;const K=h;T=Math.min(l*s,Math.max(1,Math.floor(1/H))),w&&a&&v<=t.stableFitRemainingWidth&&(oe=t.stableFitMaxMinimapScale),h=Math.min(oe,Math.max(1,Math.floor(T/y))),h>K&&(E=Math.min(2,h/K)),N=h/s/E,S=Math.ceil(Math.max(de,X+_+U)*T),w?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const P=Math.floor(f*N),I=Math.min(P,Math.max(0,Math.floor((v-m-2)*N/(c+N)))+Jc);let R=Math.floor(s*I);const V=R/s;R=Math.floor(R*E);const Q=d?1:2,ne=p==="left"?0:n-I-m;return{renderMinimap:Q,minimapLeft:ne,minimapWidth:I,minimapHeightIsEditorHeight:O,minimapIsSampling:L,minimapScale:h,minimapLineHeight:T,minimapCanvasInnerWidth:R,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:V,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const n=t.outerWidth|0,r=t.outerHeight|0,s=t.lineHeight|0,o=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,u=t.viewLineCount,d=e.get(138),h=d==="inherit"?e.get(137):d,f=h==="inherit"?e.get(133):h,g=e.get(136),p=t.isDominatedByLongLines,m=e.get(57),_=e.get(68).renderType!==0,v=e.get(69),w=e.get(106),y=e.get(84),S=e.get(73),x=e.get(104),O=x.verticalScrollbarSize,L=x.verticalHasArrows,T=x.arrowSize,N=x.horizontalScrollbarSize,E=e.get(43),P=e.get(111)!=="never";let I=e.get(66);E&&P&&(I+=16);let R=0;if(_){const ve=Math.max(o,v);R=Math.round(ve*l)}let V=0;m&&(V=s*t.glyphMarginDecorationLaneCount);let Q=0,ne=Q+V,de=ne+R,X=de+I;const U=n-V-R-I;let H=!1,J=!1,G=-1;h==="inherit"&&p?(H=!0,J=!0):f==="on"||f==="bounded"?J=!0:f==="wordWrapColumn"&&(G=g);const ue=Vm._computeMinimapLayout({outerWidth:n,outerHeight:r,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:w,paddingTop:y.top,paddingBottom:y.bottom,minimap:S,verticalScrollbarWidth:O,viewLineCount:u,remainingWidth:U,isViewportWrapping:J},t.memory||new Jte);ue.renderMinimap!==0&&ue.minimapLeft===0&&(Q+=ue.minimapWidth,ne+=ue.minimapWidth,de+=ue.minimapWidth,X+=ue.minimapWidth);const oe=U-ue.minimapWidth,K=Math.max(1,Math.floor((oe-O-2)/a)),ce=L?T:0;return J&&(G=Math.max(1,K),f==="bounded"&&(G=Math.min(G,g))),{width:n,height:r,glyphMarginLeft:Q,glyphMarginWidth:V,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:ne,lineNumbersWidth:R,decorationsLeft:de,decorationsWidth:I,contentLeft:X,contentWidth:oe,minimap:ue,viewportColumn:K,isWordWrapMinified:H,isViewportWrapping:J,wrappingColumn:G,verticalScrollbarWidth:O,horizontalScrollbarHeight:N,overviewRuler:{top:ce,width:O,height:r-2*ce,right:0}}}}class wke extends jn{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[b("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),b("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:b("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return bi(e,"simple",["simple","advanced"])}compute(e,t,n){return t.get(2)===2?"advanced":n}}var bl;(function(i){i.Off="off",i.OnCode="onCode",i.On="on"})(bl||(bl={}));class Ske extends jn{constructor(){const e={enabled:bl.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[bl.Off,bl.OnCode,bl.On],default:e.enabled,enumDescriptions:[b("editor.lightbulb.enabled.off","Disable the code action menu."),b("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),b("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:b("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:bi(e.enabled,this.defaultValue.enabled,[bl.Off,bl.OnCode,bl.On])}}}class Cke extends jn{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:b("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:b("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:b("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:b("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Xe(t.enabled,this.defaultValue.enabled),maxLineCount:Ln.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:bi(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:Xe(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class xke extends jn{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:b("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[b("editor.inlayHints.on","Inlay hints are enabled"),b("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",At?"Ctrl+Option":"Ctrl+Alt"),b("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",At?"Ctrl+Option":"Ctrl+Alt"),b("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:b("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:b("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:b("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:bi(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Ln.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:fs.string(t.fontFamily,this.defaultValue.fontFamily),padding:Xe(t.padding,this.defaultValue.padding)}}}class Oke extends jn{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Ln.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,n){return n<0?Ln.clampedInt(-n*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):n}}class Lke extends ia{constructor(){super(67,"lineHeight",Ns.lineHeight,e=>ia.clamp(e,0,150),{markdownDescription:b("lineHeight",`Controls the line height.
|
|
1
|
+
(function(C,Qn){typeof exports=="object"&&typeof module<"u"?module.exports=Qn(require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["vue","ant-design-vue"],Qn):(C=typeof globalThis<"u"?globalThis:C||self,C["pass-ui"]=Qn(C.Vue,C.AntDesignVue))})(this,function(C,Qn){"use strict";var AHt=Object.defineProperty;var MHt=(C,Qn,us)=>Qn in C?AHt(C,Qn,{enumerable:!0,configurable:!0,writable:!0,value:us}):C[Qn]=us;var Wi=(C,Qn,us)=>MHt(C,typeof Qn!="symbol"?Qn+"":Qn,us);var kLe,ELe,TLe,lh,PLe,Ko,dh,hh,Gu,fi,Dp,Wc,Ip,Ap,Mp,Rp,Fp,i3,tg,Hp,a3,Bp,zp,mh,$p,rg,jp,Wp,Up,bh,sg,l3,og,ag,lg,u3,qp,Gp,cg,ug,dg,Zp,Yp,Xp,Qp,Kp,_h,Jp,em,tm,nm,im,rm,sm,om,h3,f3,Ku,fg,am,lm,Uc,gg,cm,um,pg,dm,hm,pm,g3,p3,mg,_g,mm,bm,vg,_m,vm,ul,ym,wm,Sm,Cm,xm,v3,yg,y3,Om,Lm,w3,S3,wg,km,Em,Tm,Pm,qc,ed,Gc,ni;function us(i,e=0){return i[i.length-(1+e)]}function FLe(i){if(i.length===0)throw new Error("Invalid tail call");return[i.slice(0,i.length-1),i[i.length-1]]}function Kn(i,e,t=(n,r)=>n===r){if(i===e)return!0;if(!i||!e||i.length!==e.length)return!1;for(let n=0,r=i.length;n<r;n++)if(!t(i[n],e[n]))return!1;return!0}function VLe(i,e){const t=i.length-1;e<t&&(i[e]=i[t]),i.pop()}function k3(i,e,t){return HLe(i.length,n=>t(i[n],e))}function HLe(i,e){let t=0,n=i-1;for(;t<=n;){const r=(t+n)/2|0,s=e(r);if(s<0)t=r+1;else if(s>0)n=r-1;else return r}return-(t+1)}function zO(i,e,t){if(i=i|0,i>=e.length)throw new TypeError("invalid index");const n=e[Math.floor(e.length*Math.random())],r=[],s=[],o=[];for(const a of e){const l=t(a,n);l<0?r.push(a):l>0?s.push(a):o.push(a)}return i<r.length?zO(i,r,t):i<r.length+o.length?o[0]:zO(i-(r.length+o.length),s,t)}function Tte(i,e){const t=[];let n;for(const r of i.slice(0).sort(e))!n||e(n[0],r)!==0?(n=[r],t.push(n)):n.push(r);return t}function*$O(i,e){let t,n;for(const r of i)n!==void 0&&e(n,r)?t.push(r):(t&&(yield t),t=[r]),n=r;t&&(yield t)}function Pte(i,e){for(let t=0;t<=i.length;t++)e(t===0?void 0:i[t-1],t===i.length?void 0:i[t])}function BLe(i,e){for(let t=0;t<i.length;t++)e(t===0?void 0:i[t-1],i[t],t+1===i.length?void 0:i[t+1])}function pl(i){return i.filter(e=>!!e)}function Nte(i){let e=0;for(let t=0;t<i.length;t++)i[t]&&(i[e]=i[t],e+=1);i.length=e}function Dte(i){return!Array.isArray(i)||i.length===0}function ds(i){return Array.isArray(i)&&i.length>0}function nd(i,e=t=>t){const t=new Set;return i.filter(n=>{const r=e(n);return t.has(r)?!1:(t.add(r),!0)})}function jO(i,e){return i.length>0?i[0]:e}function Js(i,e){let t=typeof e=="number"?i:0;typeof e=="number"?t=i:(t=0,e=i);const n=[];if(t<=e)for(let r=t;r<e;r++)n.push(r);else for(let r=t;r>e;r--)n.push(r);return n}function Ov(i,e,t){const n=i.slice(0,e),r=i.slice(e);return n.concat(t,r)}function WO(i,e){const t=i.indexOf(e);t>-1&&(i.splice(t,1),i.unshift(e))}function Lv(i,e){const t=i.indexOf(e);t>-1&&(i.splice(t,1),i.push(e))}function UO(i,e){for(const t of e)i.push(t)}function qO(i){return Array.isArray(i)?i:[i]}function zLe(i,e,t){const n=Ate(i,e),r=i.length,s=t.length;i.length=r+s;for(let o=r-1;o>=n;o--)i[o+s]=i[o];for(let o=0;o<s;o++)i[o+n]=t[o]}function Ite(i,e,t,n){const r=Ate(i,e);let s=i.splice(r,t);return s===void 0&&(s=[]),zLe(i,r,n),s}function Ate(i,e){return e<0?Math.max(e+i.length,0):Math.min(e,i.length)}var E3;(function(i){function e(s){return s<0}i.isLessThan=e;function t(s){return s<=0}i.isLessThanOrEqual=t;function n(s){return s>0}i.isGreaterThan=n;function r(s){return s===0}i.isNeitherLessOrGreaterThan=r,i.greaterThan=1,i.lessThan=-1,i.neitherLessOrGreaterThan=0})(E3||(E3={}));function ks(i,e){return(t,n)=>e(i(t),i(n))}function $Le(...i){return(e,t)=>{for(const n of i){const r=n(e,t);if(!E3.isNeitherLessOrGreaterThan(r))return r}return E3.neitherLessOrGreaterThan}}const ml=(i,e)=>i-e,jLe=(i,e)=>ml(i?1:0,e?1:0);function Mte(i){return(e,t)=>-i(e,t)}class id{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}const Y2=class Y2{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Y2(t=>this.iterate(n=>e(n)?t(n):!0))}map(e){return new Y2(t=>this.iterate(n=>t(e(n))))}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||E3.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}};Y2.empty=new Y2(e=>{});let Eg=Y2;class kv{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const n=Array.from(e.keys()).sort((r,s)=>t(e[r],e[s]));return new kv(n)}apply(e){return e.map((t,n)=>e[this._indexMap[n]])}inverse(){const e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new kv(e)}}function eo(i){return typeof i=="string"}function ar(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)&&!(i instanceof RegExp)&&!(i instanceof Date)}function WLe(i){const e=Object.getPrototypeOf(Uint8Array);return typeof i=="object"&&i instanceof e}function xh(i){return typeof i=="number"&&!isNaN(i)}function Rte(i){return!!i&&typeof i[Symbol.iterator]=="function"}function Fte(i){return i===!0||i===!1}function hs(i){return typeof i>"u"}function Qc(i){return!na(i)}function na(i){return hs(i)||i===null}function Xt(i,e){if(!i)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Oh(i){if(na(i))throw new Error("Assertion Failed: argument is undefined or null");return i}function T3(i){return typeof i=="function"}function ULe(i,e){const t=Math.min(i.length,e.length);for(let n=0;n<t;n++)qLe(i[n],e[n])}function qLe(i,e){if(eo(e)){if(typeof i!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(T3(e)){try{if(i instanceof e)return}catch{}if(!na(i)&&i.constructor===e||e.length===1&&e.call(void 0,i)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function rd(i){if(!i||typeof i!="object"||i instanceof RegExp)return i;const e=Array.isArray(i)?[]:{};return Object.entries(i).forEach(([t,n])=>{e[t]=n&&typeof n=="object"?rd(n):n}),e}function GLe(i){if(!i||typeof i!="object")return i;const e=[i];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const n in t)if(Vte.call(t,n)){const r=t[n];typeof r=="object"&&!Object.isFrozen(r)&&!WLe(r)&&e.push(r)}}return i}const Vte=Object.prototype.hasOwnProperty;function Hte(i,e){return GO(i,e,new Set)}function GO(i,e,t){if(na(i))return i;const n=e(i);if(typeof n<"u")return n;if(Array.isArray(i)){const r=[];for(const s of i)r.push(GO(s,e,t));return r}if(ar(i)){if(t.has(i))throw new Error("Cannot clone recursive data-structure");t.add(i);const r={};for(const s in i)Vte.call(i,s)&&(r[s]=GO(i[s],e,t));return t.delete(i),r}return i}function Ev(i,e,t=!0){return ar(i)?(ar(e)&&Object.keys(e).forEach(n=>{n in i?t&&(ar(i[n])&&ar(e[n])?Ev(i[n],e[n],t):i[n]=e[n]):i[n]=e[n]}),i):e}function Oo(i,e){if(i===e)return!0;if(i==null||e===null||e===void 0||typeof i!=typeof e||typeof i!="object"||Array.isArray(i)!==Array.isArray(e))return!1;let t,n;if(Array.isArray(i)){if(i.length!==e.length)return!1;for(t=0;t<i.length;t++)if(!Oo(i[t],e[t]))return!1}else{const r=[];for(n in i)r.push(n);r.sort();const s=[];for(n in e)s.push(n);if(s.sort(),!Oo(r,s))return!1;for(t=0;t<r.length;t++)if(!Oo(i[r[t]],e[r[t]]))return!1}return!0}function ZLe(i){let e=[];for(;Object.prototype!==i;)e=e.concat(Object.getOwnPropertyNames(i)),i=Object.getPrototypeOf(i);return e}function ZO(i){const e=[];for(const t of ZLe(i))typeof i[t]=="function"&&e.push(t);return e}function YLe(i,e){const t=r=>function(){const s=Array.prototype.slice.call(arguments,0);return e(r,s)},n={};for(const r of i)n[r]=t(r);return n}function Bte(){return globalThis._VSCODE_NLS_MESSAGES}function YO(){return globalThis._VSCODE_NLS_LANGUAGE}const XLe=YO()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Tv(i,e){let t;return e.length===0?t=i:t=i.replace(/\{(\d+)\}/g,(n,r)=>{const s=r[0],o=e[s];let a=n;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),XLe&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function b(i,e,...t){return Tv(typeof i=="number"?zte(i,e):e,t)}function zte(i,e){var n;const t=(n=Bte())==null?void 0:n[i];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${i} !!!`)}return t}function ut(i,e,...t){let n;typeof i=="number"?n=zte(i,e):n=e;const r=Tv(n,t);return{value:r,original:e===n?r:Tv(e,t)}}const Rm="en";let Pv=!1,Nv=!1,Dv=!1,$te=!1,XO=!1,QO=!1,jte=!1,Iv,Av=Rm,Wte=Rm,QLe,Zl;const sd=globalThis;let Es;typeof sd.vscode<"u"&&typeof sd.vscode.process<"u"?Es=sd.vscode.process:typeof process<"u"&&typeof((kLe=process==null?void 0:process.versions)==null?void 0:kLe.node)=="string"&&(Es=process);const KLe=typeof((ELe=Es==null?void 0:Es.versions)==null?void 0:ELe.electron)=="string"&&(Es==null?void 0:Es.type)==="renderer";if(typeof Es=="object"){Pv=Es.platform==="win32",Nv=Es.platform==="darwin",Dv=Es.platform==="linux",Dv&&Es.env.SNAP&&Es.env.SNAP_REVISION,Es.env.CI||Es.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Iv=Rm,Av=Rm;const i=Es.env.VSCODE_NLS_CONFIG;if(i)try{const e=JSON.parse(i);Iv=e.userLocale,Wte=e.osLocale,Av=e.resolvedLanguage||Rm,QLe=(TLe=e.languagePack)==null?void 0:TLe.translationsConfigFile}catch{}$te=!0}else typeof navigator=="object"&&!KLe?(Zl=navigator.userAgent,Pv=Zl.indexOf("Windows")>=0,Nv=Zl.indexOf("Macintosh")>=0,QO=(Zl.indexOf("Macintosh")>=0||Zl.indexOf("iPad")>=0||Zl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Dv=Zl.indexOf("Linux")>=0,jte=(Zl==null?void 0:Zl.indexOf("Mobi"))>=0,XO=!0,Av=YO()||Rm,Iv=navigator.language.toLowerCase(),Wte=Iv):console.error("Unable to resolve platform.");const Er=Pv,At=Nv,Ts=Dv,Yl=$te,Tg=XO,JLe=XO&&typeof sd.importScripts=="function"?sd.origin:void 0,Xl=QO,Ute=jte,Kc=Zl,eke=Av,tke=typeof sd.postMessage=="function"&&!sd.importScripts,qte=(()=>{if(tke){const i=[];sd.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=i.length;n<r;n++){const s=i[n];if(s.id===t.data.vscodeScheduleAsyncWork){i.splice(n,1),s.callback();return}}});let e=0;return t=>{const n=++e;i.push({id:n,callback:t}),sd.postMessage({vscodeScheduleAsyncWork:n},"*")}}return i=>setTimeout(i)})(),Lo=Nv||QO?2:Pv?1:3;let Gte=!0,Zte=!1;function Yte(){if(!Zte){Zte=!0;const i=new Uint8Array(2);i[0]=1,i[1]=2,Gte=new Uint16Array(i.buffer)[0]===513}return Gte}const Xte=!!(Kc&&Kc.indexOf("Chrome")>=0),nke=!!(Kc&&Kc.indexOf("Firefox")>=0),ike=!!(!Xte&&Kc&&Kc.indexOf("Safari")>=0),rke=!!(Kc&&Kc.indexOf("Edg/")>=0),ske=!!(Kc&&Kc.indexOf("Android")>=0),Yr={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var jt;(function(i){function e(y){return y&&typeof y=="object"&&typeof y[Symbol.iterator]=="function"}i.is=e;const t=Object.freeze([]);function n(){return t}i.empty=n;function*r(y){yield y}i.single=r;function s(y){return e(y)?y:r(y)}i.wrap=s;function o(y){return y||t}i.from=o;function*a(y){for(let S=y.length-1;S>=0;S--)yield y[S]}i.reverse=a;function l(y){return!y||y[Symbol.iterator]().next().done===!0}i.isEmpty=l;function c(y){return y[Symbol.iterator]().next().value}i.first=c;function u(y,S){let x=0;for(const O of y)if(S(O,x++))return!0;return!1}i.some=u;function d(y,S){for(const x of y)if(S(x))return x}i.find=d;function*h(y,S){for(const x of y)S(x)&&(yield x)}i.filter=h;function*f(y,S){let x=0;for(const O of y)yield S(O,x++)}i.map=f;function*g(y,S){let x=0;for(const O of y)yield*S(O,x++)}i.flatMap=g;function*p(...y){for(const S of y)yield*S}i.concat=p;function m(y,S,x){let O=x;for(const L of y)O=S(O,L);return O}i.reduce=m;function*_(y,S,x=y.length){for(S<0&&(S+=y.length),x<0?x+=y.length:x>y.length&&(x=y.length);S<x;S++)yield y[S]}i.slice=_;function v(y,S=Number.POSITIVE_INFINITY){const x=[];if(S===0)return[x,y];const O=y[Symbol.iterator]();for(let L=0;L<S;L++){const T=O.next();if(T.done)return[x,i.empty()];x.push(T.value)}return[x,{[Symbol.iterator](){return O}}]}i.consume=v;async function w(y){const S=[];for await(const x of y)S.push(x);return Promise.resolve(S)}i.asyncToArray=w})(jt||(jt={}));let Qi=(lh=class{constructor(e){this.element=e,this.next=lh.Undefined,this.prev=lh.Undefined}},lh.Undefined=new lh(void 0),lh);class Ps{constructor(){this._first=Qi.Undefined,this._last=Qi.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Qi.Undefined}clear(){let e=this._first;for(;e!==Qi.Undefined;){const t=e.next;e.prev=Qi.Undefined,e.next=Qi.Undefined,e=t}this._first=Qi.Undefined,this._last=Qi.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new Qi(e);if(this._first===Qi.Undefined)this._first=n,this._last=n;else if(t){const s=this._last;this._last=n,n.prev=s,s.next=n}else{const s=this._first;this._first=n,n.next=s,s.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==Qi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Qi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Qi.Undefined&&e.next!==Qi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Qi.Undefined&&e.next===Qi.Undefined?(this._first=Qi.Undefined,this._last=Qi.Undefined):e.next===Qi.Undefined?(this._last=this._last.prev,this._last.next=Qi.Undefined):e.prev===Qi.Undefined&&(this._first=this._first.next,this._first.prev=Qi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Qi.Undefined;)yield e.element,e=e.next}}const Mv="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function oke(i=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of Mv)i.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const KO=oke();function JO(i){let e=KO;if(i&&i instanceof RegExp)if(i.global)e=i;else{let t="g";i.ignoreCase&&(t+="i"),i.multiline&&(t+="m"),i.unicode&&(t+="u"),e=new RegExp(i.source,t)}return e.lastIndex=0,e}const Qte=new Ps;Qte.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function P3(i,e,t,n,r){if(e=JO(e),r||(r=jt.first(Qte)),t.length>r.maxLen){let c=i-r.maxLen/2;return c<0?c=0:n+=c,t=t.substring(c,i+r.maxLen/2),P3(i,e,t,n,r)}const s=Date.now(),o=i-1-n;let a=-1,l=null;for(let c=1;!(Date.now()-s>=r.timeBudget);c++){const u=o-r.windowSize*c;e.lastIndex=Math.max(0,u);const d=ake(e,t,o,a);if(!d&&l||(l=d,u<=0))break;a=u}if(l){const c={word:l[0],startColumn:n+1+l.index,endColumn:n+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function ake(i,e,t,n){let r;for(;r=i.exec(e);){const s=r.index||0;if(s<=t&&i.lastIndex>=t)return r;if(n>0&&s>n)return null}return null}const Jc=8;class Kte{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class Jte{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class jn{constructor(e,t,n,r){this.id=e,this.name=t,this.defaultValue=n,this.schema=r}applyUpdate(e,t){return Rv(e,t)}compute(e,t,n){return n}}class N3{constructor(e,t){this.newValue=e,this.didChange=t}}function Rv(i,e){if(typeof i!="object"||typeof e!="object"||!i||!e)return new N3(e,i!==e);if(Array.isArray(i)||Array.isArray(e)){const n=Array.isArray(i)&&Array.isArray(e)&&Kn(i,e);return new N3(e,!n)}let t=!1;for(const n in e)if(e.hasOwnProperty(n)){const r=Rv(i[n],e[n]);r.didChange&&(i[n]=r.newValue,t=!0)}return new N3(i,t)}class D3{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return Rv(e,t)}validate(e){return this.defaultValue}}class Fm{constructor(e,t,n,r){this.id=e,this.name=t,this.defaultValue=n,this.schema=r}applyUpdate(e,t){return Rv(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,n){return n}}function Xe(i,e){return typeof i>"u"?e:i==="false"?!1:!!i}class Qt extends Fm{constructor(e,t,n,r=void 0){typeof r<"u"&&(r.type="boolean",r.default=n),super(e,t,n,r)}validate(e){return Xe(e,this.defaultValue)}}function Pg(i,e,t,n){if(typeof i>"u")return e;let r=parseInt(i,10);return isNaN(r)?e:(r=Math.max(t,r),r=Math.min(n,r),r|0)}class Ln extends Fm{static clampedInt(e,t,n,r){return Pg(e,t,n,r)}constructor(e,t,n,r,s,o=void 0){typeof o<"u"&&(o.type="integer",o.default=n,o.minimum=r,o.maximum=s),super(e,t,n,o),this.minimum=r,this.maximum=s}validate(e){return Ln.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function lke(i,e,t,n){if(typeof i>"u")return e;const r=ia.float(i,e);return ia.clamp(r,t,n)}class ia extends Fm{static clamp(e,t,n){return e<t?t:e>n?n:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const n=parseFloat(e);return isNaN(n)?t:n}constructor(e,t,n,r,s){typeof s<"u"&&(s.type="number",s.default=n),super(e,t,n,s),this.validationFn=r}validate(e){return this.validationFn(ia.float(e,this.defaultValue))}}class fs extends Fm{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,n,r=void 0){typeof r<"u"&&(r.type="string",r.default=n),super(e,t,n,r)}validate(e){return fs.string(e,this.defaultValue)}}function bi(i,e,t,n){return typeof i!="string"?e:n&&i in n?n[i]:t.indexOf(i)===-1?e:i}class _i extends Fm{constructor(e,t,n,r,s=void 0){typeof s<"u"&&(s.type="string",s.enum=r,s.default=n),super(e,t,n,s),this._allowedValues=r}validate(e){return bi(e,this.defaultValue,this._allowedValues)}}class Fv extends jn{constructor(e,t,n,r,s,o,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=r),super(e,t,n,a),this._allowedValues=s,this._convert=o}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function cke(i){switch(i){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class uke extends jn{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[b("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),b("accessibilitySupport.on","Optimize for usage with a Screen Reader."),b("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:b("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,n){return n===0?e.accessibilitySupport:n}}class dke extends jn{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:b("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:b("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:Xe(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Xe(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function hke(i){switch(i){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var mr;(function(i){i[i.Line=1]="Line",i[i.Block=2]="Block",i[i.Underline=3]="Underline",i[i.LineThin=4]="LineThin",i[i.BlockOutline=5]="BlockOutline",i[i.UnderlineThin=6]="UnderlineThin"})(mr||(mr={}));function fke(i){switch(i){case"line":return mr.Line;case"block":return mr.Block;case"underline":return mr.Underline;case"line-thin":return mr.LineThin;case"block-outline":return mr.BlockOutline;case"underline-thin":return mr.UnderlineThin}}class gke extends D3{constructor(){super(143)}compute(e,t,n){const r=["monaco-editor"];return t.get(39)&&r.push(t.get(39)),e.extraEditorClassName&&r.push(e.extraEditorClassName),t.get(74)==="default"?r.push("mouse-default"):t.get(74)==="copy"&&r.push("mouse-copy"),t.get(112)&&r.push("showUnused"),t.get(141)&&r.push("showDeprecated"),r.join(" ")}}class pke extends Qt{constructor(){super(37,"emptySelectionClipboard",!0,{description:b("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,n){return n&&e.emptySelectionClipboard}}class mke extends jn{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:b("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[b("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),b("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),b("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:b("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[b("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),b("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),b("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:b("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:b("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:At},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:b("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:b("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:Xe(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":bi(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":bi(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Xe(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Xe(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Xe(t.loop,this.defaultValue.loop)}}}const ch=class ch extends jn{constructor(){super(51,"fontLigatures",ch.OFF,{anyOf:[{type:"boolean",description:b("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:b("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:b("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?ch.OFF:e==="true"?ch.ON:e:e?ch.ON:ch.OFF}};ch.OFF='"liga" off, "calt" off',ch.ON='"liga" on, "calt" on';let Lh=ch;const uh=class uh extends jn{constructor(){super(54,"fontVariations",uh.OFF,{anyOf:[{type:"boolean",description:b("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:b("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:b("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?uh.OFF:e==="true"?uh.TRANSLATE:e:e?uh.TRANSLATE:uh.OFF}compute(e,t,n){return e.fontInfo.fontVariationSettings}};uh.OFF="normal",uh.TRANSLATE="translate";let I3=uh;class bke extends D3{constructor(){super(50)}compute(e,t,n){return e.fontInfo}}class _ke extends Fm{constructor(){super(52,"fontSize",Ns.fontSize,{type:"number",minimum:6,maximum:100,default:Ns.fontSize,description:b("fontSize","Controls the font size in pixels.")})}validate(e){const t=ia.float(e,this.defaultValue);return t===0?Ns.fontSize:ia.clamp(t,6,100)}compute(e,t,n){return e.fontInfo.fontSize}}const Uu=class Uu extends jn{constructor(){super(53,"fontWeight",Ns.fontWeight,{anyOf:[{type:"number",minimum:Uu.MINIMUM_VALUE,maximum:Uu.MAXIMUM_VALUE,errorMessage:b("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Uu.SUGGESTION_VALUES}],default:Ns.fontWeight,description:b("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Ln.clampedInt(e,Ns.fontWeight,Uu.MINIMUM_VALUE,Uu.MAXIMUM_VALUE))}};Uu.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],Uu.MINIMUM_VALUE=1,Uu.MAXIMUM_VALUE=1e3;let eL=Uu;class vke extends jn{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[b("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),b("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),b("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},n=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:b("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:b("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:b("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:b("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:b("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:b("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:n,description:b("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:n,description:b("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:n,description:b("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:n,description:b("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:n,description:b("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{multiple:bi(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??bi(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??bi(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??bi(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??bi(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??bi(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??bi(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:fs.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:fs.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:fs.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:fs.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:fs.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:fs.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}class yke extends jn{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:b("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:b("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:b("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:b("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:b("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Xe(t.enabled,this.defaultValue.enabled),delay:Ln.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:Xe(t.sticky,this.defaultValue.sticky),hidingDelay:Ln.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:Xe(t.above,this.defaultValue.above)}}}class Vm extends D3{constructor(){super(146)}compute(e,t,n){return Vm.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,n=Math.floor(e.paddingTop/e.lineHeight);let r=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(r=Math.max(r,t-1));const s=(n+e.viewLineCount+r)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:n,extraLinesBeyondLastLine:r,desiredRatio:s,minimapLineCount:o}}static _computeMinimapLayout(e,t){const n=e.outerWidth,r=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*r),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:r};const o=t.stableMinimapLayoutInput,a=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.paddingTop===o.paddingTop&&e.paddingBottom===o.paddingBottom&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,u=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let h=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,p=e.minimap.side,m=e.verticalScrollbarWidth,_=e.viewLineCount,v=e.remainingWidth,w=e.isViewportWrapping,y=d?2:3;let S=Math.floor(s*r);const x=S/s;let O=!1,L=!1,T=y*h,N=h/s,E=1;if(g==="fill"||g==="fit"){const{typicalViewportLineCount:de,extraLinesBeforeFirstLine:X,extraLinesBeyondLastLine:U,desiredRatio:H,minimapLineCount:J}=Vm.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:u,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:r,lineHeight:l,pixelRatio:s});if(_/J>1)O=!0,L=!0,h=1,T=1,N=h/s;else{let ue=!1,oe=h+1;if(g==="fit"){const K=Math.ceil((X+_+U)*T);w&&a&&v<=t.stableFitRemainingWidth?(ue=!0,oe=t.stableFitMaxMinimapScale):ue=K>S}if(g==="fill"||ue){O=!0;const K=h;T=Math.min(l*s,Math.max(1,Math.floor(1/H))),w&&a&&v<=t.stableFitRemainingWidth&&(oe=t.stableFitMaxMinimapScale),h=Math.min(oe,Math.max(1,Math.floor(T/y))),h>K&&(E=Math.min(2,h/K)),N=h/s/E,S=Math.ceil(Math.max(de,X+_+U)*T),w?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const P=Math.floor(f*N),I=Math.min(P,Math.max(0,Math.floor((v-m-2)*N/(c+N)))+Jc);let R=Math.floor(s*I);const V=R/s;R=Math.floor(R*E);const Q=d?1:2,ne=p==="left"?0:n-I-m;return{renderMinimap:Q,minimapLeft:ne,minimapWidth:I,minimapHeightIsEditorHeight:O,minimapIsSampling:L,minimapScale:h,minimapLineHeight:T,minimapCanvasInnerWidth:R,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:V,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const n=t.outerWidth|0,r=t.outerHeight|0,s=t.lineHeight|0,o=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,u=t.viewLineCount,d=e.get(138),h=d==="inherit"?e.get(137):d,f=h==="inherit"?e.get(133):h,g=e.get(136),p=t.isDominatedByLongLines,m=e.get(57),_=e.get(68).renderType!==0,v=e.get(69),w=e.get(106),y=e.get(84),S=e.get(73),x=e.get(104),O=x.verticalScrollbarSize,L=x.verticalHasArrows,T=x.arrowSize,N=x.horizontalScrollbarSize,E=e.get(43),P=e.get(111)!=="never";let I=e.get(66);E&&P&&(I+=16);let R=0;if(_){const ve=Math.max(o,v);R=Math.round(ve*l)}let V=0;m&&(V=s*t.glyphMarginDecorationLaneCount);let Q=0,ne=Q+V,de=ne+R,X=de+I;const U=n-V-R-I;let H=!1,J=!1,G=-1;h==="inherit"&&p?(H=!0,J=!0):f==="on"||f==="bounded"?J=!0:f==="wordWrapColumn"&&(G=g);const ue=Vm._computeMinimapLayout({outerWidth:n,outerHeight:r,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:w,paddingTop:y.top,paddingBottom:y.bottom,minimap:S,verticalScrollbarWidth:O,viewLineCount:u,remainingWidth:U,isViewportWrapping:J},t.memory||new Jte);ue.renderMinimap!==0&&ue.minimapLeft===0&&(Q+=ue.minimapWidth,ne+=ue.minimapWidth,de+=ue.minimapWidth,X+=ue.minimapWidth);const oe=U-ue.minimapWidth,K=Math.max(1,Math.floor((oe-O-2)/a)),ce=L?T:0;return J&&(G=Math.max(1,K),f==="bounded"&&(G=Math.min(G,g))),{width:n,height:r,glyphMarginLeft:Q,glyphMarginWidth:V,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:ne,lineNumbersWidth:R,decorationsLeft:de,decorationsWidth:I,contentLeft:X,contentWidth:oe,minimap:ue,viewportColumn:K,isWordWrapMinified:H,isViewportWrapping:J,wrappingColumn:G,verticalScrollbarWidth:O,horizontalScrollbarHeight:N,overviewRuler:{top:ce,width:O,height:r-2*ce,right:0}}}}class wke extends jn{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[b("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),b("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:b("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return bi(e,"simple",["simple","advanced"])}compute(e,t,n){return t.get(2)===2?"advanced":n}}var bl;(function(i){i.Off="off",i.OnCode="onCode",i.On="on"})(bl||(bl={}));class Ske extends jn{constructor(){const e={enabled:bl.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[bl.Off,bl.OnCode,bl.On],default:e.enabled,enumDescriptions:[b("editor.lightbulb.enabled.off","Disable the code action menu."),b("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),b("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:b("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:bi(e.enabled,this.defaultValue.enabled,[bl.Off,bl.OnCode,bl.On])}}}class Cke extends jn{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:b("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:b("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:b("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:b("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Xe(t.enabled,this.defaultValue.enabled),maxLineCount:Ln.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:bi(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:Xe(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class xke extends jn{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:b("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[b("editor.inlayHints.on","Inlay hints are enabled"),b("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",At?"Ctrl+Option":"Ctrl+Alt"),b("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",At?"Ctrl+Option":"Ctrl+Alt"),b("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:b("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:b("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:b("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:bi(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Ln.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:fs.string(t.fontFamily,this.defaultValue.fontFamily),padding:Xe(t.padding,this.defaultValue.padding)}}}class Oke extends jn{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Ln.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,n){return n<0?Ln.clampedInt(-n*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):n}}class Lke extends ia{constructor(){super(67,"lineHeight",Ns.lineHeight,e=>ia.clamp(e,0,150),{markdownDescription:b("lineHeight",`Controls the line height.
|
|
2
2
|
- Use 0 to automatically compute the line height from the font size.
|
|
3
3
|
- Values between 0 and 8 will be used as a multiplier with the font size.
|
|
4
4
|
- Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,n){return e.fontInfo.lineHeight}}class kke extends jn{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:b("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:b("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[b("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),b("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),b("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:b("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:b("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:b("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:b("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:b("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:b("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:b("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:b("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:b("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:b("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Xe(t.enabled,this.defaultValue.enabled),autohide:Xe(t.autohide,this.defaultValue.autohide),size:bi(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:bi(t.side,this.defaultValue.side,["right","left"]),showSlider:bi(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Xe(t.renderCharacters,this.defaultValue.renderCharacters),scale:Ln.clampedInt(t.scale,1,1,3),maxColumn:Ln.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:Xe(t.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:Xe(t.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:ia.clamp(t.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:ia.clamp(t.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}function Eke(i){return i==="ctrlCmd"?At?"metaKey":"ctrlKey":"altKey"}class Tke extends jn{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:b("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:b("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Ln.clampedInt(t.top,0,0,1e3),bottom:Ln.clampedInt(t.bottom,0,0,1e3)}}}class Pke extends jn{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:b("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:b("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Xe(t.enabled,this.defaultValue.enabled),cycle:Xe(t.cycle,this.defaultValue.cycle)}}}class Nke extends D3{constructor(){super(144)}compute(e,t,n){return e.pixelRatio}}class Dke extends jn{constructor(){super(88,"placeholder",void 0)}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e:this.defaultValue}}class Ike extends jn{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[b("on","Quick suggestions show inside the suggest widget"),b("inline","Quick suggestions show as ghost text"),b("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:b("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:b("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:b("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:b("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:n,strings:r}=e,s=["on","inline","off"];let o,a,l;return typeof t=="boolean"?o=t?"on":"off":o=bi(t,this.defaultValue.other,s),typeof n=="boolean"?a=n?"on":"off":a=bi(n,this.defaultValue.comments,s),typeof r=="boolean"?l=r?"on":"off":l=bi(r,this.defaultValue.strings,s),{other:o,comments:a,strings:l}}}class Ake extends jn{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[b("lineNumbers.off","Line numbers are not rendered."),b("lineNumbers.on","Line numbers are rendered as absolute number."),b("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),b("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:b("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,n=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:n}}}function Vv(i){const e=i.get(99);return e==="editable"?i.get(92):e!=="on"}class Mke extends jn{constructor(){const e=[],t={type:"number",description:b("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:b("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:b("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const n of e)if(typeof n=="number")t.push({column:Ln.clampedInt(n,0,0,1e4),color:null});else if(n&&typeof n=="object"){const r=n;t.push({column:Ln.clampedInt(r.column,0,0,1e4),color:r.color})}return t.sort((n,r)=>n.column-r.column),t}return this.defaultValue}}class Rke extends jn{constructor(){super(93,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function ene(i,e){if(typeof i!="string")return e;switch(i){case"hidden":return 2;case"visible":return 3;default:return 1}}let Fke=class extends jn{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(104,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[b("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),b("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),b("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:b("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[b("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),b("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),b("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:b("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:b("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:b("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:b("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:b("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,n=Ln.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),r=Ln.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Ln.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:ene(t.vertical,this.defaultValue.vertical),horizontal:ene(t.horizontal,this.defaultValue.horizontal),useShadows:Xe(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:Xe(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Xe(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Xe(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Xe(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:Ln.clampedInt(t.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:r,verticalSliderSize:Ln.clampedInt(t.verticalSliderSize,r,0,1e3),scrollByPage:Xe(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:Xe(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}};const ra="inUntrustedWorkspace",to={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class Vke extends jn{constructor(){const e={nonBasicASCII:ra,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:ra,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",e,{[to.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,ra],default:e.nonBasicASCII,description:b("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[to.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:b("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[to.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:b("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[to.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,ra],default:e.includeComments,description:b("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[to.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,ra],default:e.includeStrings,description:b("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[to.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:b("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[to.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:b("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let n=!1;t.allowedCharacters&&e&&(Oo(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},n=!0)),t.allowedLocales&&e&&(Oo(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},n=!0));const r=super.applyUpdate(e,t);return n?new N3(r.newValue,!0):r}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:Hm(t.nonBasicASCII,ra,[!0,!1,ra]),invisibleCharacters:Xe(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Xe(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Hm(t.includeComments,ra,[!0,!1,ra]),includeStrings:Hm(t.includeStrings,ra,[!0,!1,ra]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const n={};for(const[r,s]of Object.entries(e))s===!0&&(n[r]=!0);return n}}class Hke extends jn{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:b("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[b("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),b("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),b("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:b("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:b("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:b("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Xe(t.enabled,this.defaultValue.enabled),mode:bi(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:bi(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:Xe(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:Xe(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:fs.string(t.fontFamily,this.defaultValue.fontFamily)}}}class Bke extends jn{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:b("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[b("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),b("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),b("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:b("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:b("inlineEdit.fontFamily","Controls the font family of the inline edit.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Xe(t.enabled,this.defaultValue.enabled),showToolbar:bi(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:fs.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:Xe(t.keepOnBlur,this.defaultValue.keepOnBlur)}}}class zke extends jn{constructor(){const e={enabled:Yr.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:Yr.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:b("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:b("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Xe(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Xe(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class $ke extends jn{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[b("editor.guides.bracketPairs.true","Enables bracket pair guides."),b("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),b("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:b("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[b("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),b("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),b("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:b("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:b("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:b("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[b("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),b("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),b("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:b("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:Hm(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Hm(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Xe(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Xe(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Hm(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Hm(i,e,t){const n=t.indexOf(i);return n===-1?e:t[n]}class jke extends jn{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(119,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[b("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),b("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:b("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:b("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:b("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:b("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[b("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),b("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),b("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),b("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:b("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:b("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:b("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:b("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:b("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:b("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:b("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:b("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:b("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:bi(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Xe(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Xe(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Xe(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Xe(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:bi(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Xe(t.showIcons,this.defaultValue.showIcons),showStatusBar:Xe(t.showStatusBar,this.defaultValue.showStatusBar),preview:Xe(t.preview,this.defaultValue.preview),previewMode:bi(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Xe(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Xe(t.showMethods,this.defaultValue.showMethods),showFunctions:Xe(t.showFunctions,this.defaultValue.showFunctions),showConstructors:Xe(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:Xe(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Xe(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Xe(t.showFields,this.defaultValue.showFields),showVariables:Xe(t.showVariables,this.defaultValue.showVariables),showClasses:Xe(t.showClasses,this.defaultValue.showClasses),showStructs:Xe(t.showStructs,this.defaultValue.showStructs),showInterfaces:Xe(t.showInterfaces,this.defaultValue.showInterfaces),showModules:Xe(t.showModules,this.defaultValue.showModules),showProperties:Xe(t.showProperties,this.defaultValue.showProperties),showEvents:Xe(t.showEvents,this.defaultValue.showEvents),showOperators:Xe(t.showOperators,this.defaultValue.showOperators),showUnits:Xe(t.showUnits,this.defaultValue.showUnits),showValues:Xe(t.showValues,this.defaultValue.showValues),showConstants:Xe(t.showConstants,this.defaultValue.showConstants),showEnums:Xe(t.showEnums,this.defaultValue.showEnums),showEnumMembers:Xe(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Xe(t.showKeywords,this.defaultValue.showKeywords),showWords:Xe(t.showWords,this.defaultValue.showWords),showColors:Xe(t.showColors,this.defaultValue.showColors),showFiles:Xe(t.showFiles,this.defaultValue.showFiles),showReferences:Xe(t.showReferences,this.defaultValue.showReferences),showFolders:Xe(t.showFolders,this.defaultValue.showFolders),showTypeParameters:Xe(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Xe(t.showSnippets,this.defaultValue.showSnippets),showUsers:Xe(t.showUsers,this.defaultValue.showUsers),showIssues:Xe(t.showIssues,this.defaultValue.showIssues)}}}class Wke extends jn{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:b("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:b("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Xe(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:Xe(e.selectSubwords,this.defaultValue.selectSubwords)}}}class Uke extends jn{constructor(){const e=[];super(131,"wordSegmenterLocales",e,{anyOf:[{description:b("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:b("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const t=[];for(const n of e)if(typeof n=="string")try{Intl.Segmenter.supportedLocalesOf(n).length>0&&t.push(n)}catch{}return t}return this.defaultValue}}class qke extends jn{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[b("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),b("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),b("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),b("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:b("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,n){return t.get(2)===2?0:n}}class Gke extends D3{constructor(){super(147)}compute(e,t,n){const r=t.get(146);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:r.isWordWrapMinified,isViewportWrapping:r.isViewportWrapping,wrappingColumn:r.wrappingColumn}}}class Zke extends jn{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:b("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:b("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[b("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),b("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Xe(t.enabled,this.defaultValue.enabled),showDropSelector:bi(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class Yke extends jn{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:b("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:b("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[b("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),b("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:Xe(t.enabled,this.defaultValue.enabled),showPasteSelector:bi(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const Ns={fontFamily:At?"Menlo, Monaco, 'Courier New', monospace":Ts?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:At?12:14,lineHeight:0,letterSpacing:0},Bm=[];function Te(i){return Bm[i.id]=i,i}const Ql={acceptSuggestionOnCommitCharacter:Te(new Qt(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:b("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:Te(new _i(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",b("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:b("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Te(new uke),accessibilityPageSize:Te(new Ln(3,"accessibilityPageSize",10,1,1073741824,{description:b("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:Te(new fs(4,"ariaLabel",b("editorViewAccessibleLabel","Editor content"))),ariaRequired:Te(new Qt(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:Te(new Qt(8,"screenReaderAnnounceInlineSuggestion",!0,{description:b("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:Te(new _i(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",b("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),b("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:b("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:Te(new _i(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",b("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),b("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:b("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:Te(new _i(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",b("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:b("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Te(new _i(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",b("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:b("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Te(new _i(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",b("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),b("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:b("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Te(new Fv(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],cke,{enumDescriptions:[b("editor.autoIndent.none","The editor will not insert indentation automatically."),b("editor.autoIndent.keep","The editor will keep the current line's indentation."),b("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),b("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),b("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:b("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Te(new Qt(13,"automaticLayout",!1)),autoSurround:Te(new _i(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[b("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),b("editor.autoSurround.quotes","Surround with quotes but not brackets."),b("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:b("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Te(new zke),bracketPairGuides:Te(new $ke),stickyTabStops:Te(new Qt(117,"stickyTabStops",!1,{description:b("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Te(new Qt(17,"codeLens",!0,{description:b("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Te(new fs(18,"codeLensFontFamily","",{description:b("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:Te(new Ln(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:b("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:Te(new Qt(20,"colorDecorators",!0,{description:b("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:Te(new _i(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[b("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),b("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),b("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:b("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:Te(new Ln(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:b("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:Te(new Qt(22,"columnSelection",!1,{description:b("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:Te(new dke),contextmenu:Te(new Qt(24,"contextmenu",!0)),copyWithSyntaxHighlighting:Te(new Qt(25,"copyWithSyntaxHighlighting",!0,{description:b("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Te(new Fv(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],hke,{description:b("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:Te(new _i(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[b("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),b("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),b("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:b("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Te(new Fv(28,"cursorStyle",mr.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],fke,{description:b("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:Te(new Ln(29,"cursorSurroundingLines",0,0,1073741824,{description:b("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Te(new _i(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[b("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),b("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:b("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:Te(new Ln(31,"cursorWidth",0,0,1073741824,{markdownDescription:b("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Te(new Qt(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:Te(new Qt(33,"disableMonospaceOptimizations",!1)),domReadOnly:Te(new Qt(34,"domReadOnly",!1)),dragAndDrop:Te(new Qt(35,"dragAndDrop",!0,{description:b("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Te(new pke),dropIntoEditor:Te(new Zke),stickyScroll:Te(new Cke),experimentalWhitespaceRendering:Te(new _i(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[b("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),b("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),b("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:b("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:Te(new fs(39,"extraEditorClassName","")),fastScrollSensitivity:Te(new ia(40,"fastScrollSensitivity",5,i=>i<=0?5:i,{markdownDescription:b("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:Te(new mke),fixedOverflowWidgets:Te(new Qt(42,"fixedOverflowWidgets",!1)),folding:Te(new Qt(43,"folding",!0,{description:b("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:Te(new _i(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[b("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),b("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:b("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:Te(new Qt(45,"foldingHighlight",!0,{description:b("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Te(new Qt(46,"foldingImportsByDefault",!1,{description:b("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:Te(new Ln(47,"foldingMaximumRegions",5e3,10,65e3,{description:b("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:Te(new Qt(48,"unfoldOnClickAfterEndOfLine",!1,{description:b("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Te(new fs(49,"fontFamily",Ns.fontFamily,{description:b("fontFamily","Controls the font family.")})),fontInfo:Te(new bke),fontLigatures2:Te(new Lh),fontSize:Te(new _ke),fontWeight:Te(new eL),fontVariations:Te(new I3),formatOnPaste:Te(new Qt(55,"formatOnPaste",!1,{description:b("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:Te(new Qt(56,"formatOnType",!1,{description:b("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Te(new Qt(57,"glyphMargin",!0,{description:b("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Te(new vke),hideCursorInOverviewRuler:Te(new Qt(59,"hideCursorInOverviewRuler",!1,{description:b("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:Te(new yke),inDiffEditor:Te(new Qt(61,"inDiffEditor",!1)),letterSpacing:Te(new ia(64,"letterSpacing",Ns.letterSpacing,i=>ia.clamp(i,-5,20),{description:b("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:Te(new Ske),lineDecorationsWidth:Te(new Oke),lineHeight:Te(new Lke),lineNumbers:Te(new Ake),lineNumbersMinChars:Te(new Ln(69,"lineNumbersMinChars",5,1,300)),linkedEditing:Te(new Qt(70,"linkedEditing",!1,{description:b("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:Te(new Qt(71,"links",!0,{description:b("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Te(new _i(72,"matchBrackets","always",["always","near","never"],{description:b("matchBrackets","Highlight matching brackets.")})),minimap:Te(new kke),mouseStyle:Te(new _i(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Te(new ia(75,"mouseWheelScrollSensitivity",1,i=>i===0?1:i,{markdownDescription:b("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Te(new Qt(76,"mouseWheelZoom",!1,{markdownDescription:At?b("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):b("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Te(new Qt(77,"multiCursorMergeOverlapping",!0,{description:b("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Te(new Fv(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],Eke,{markdownEnumDescriptions:[b("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),b("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:b({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:Te(new _i(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[b("multiCursorPaste.spread","Each cursor pastes a single line of the text."),b("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:b("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:Te(new Ln(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:b("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:Te(new _i(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[b("occurrencesHighlight.off","Does not highlight occurrences."),b("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),b("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:b("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:Te(new Qt(82,"overviewRulerBorder",!0,{description:b("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Te(new Ln(83,"overviewRulerLanes",3,0,3)),padding:Te(new Tke),pasteAs:Te(new Yke),parameterHints:Te(new Pke),peekWidgetDefaultFocus:Te(new _i(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[b("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),b("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:b("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:Te(new Dke),definitionLinkOpensInPeek:Te(new Qt(89,"definitionLinkOpensInPeek",!1,{description:b("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Te(new Ike),quickSuggestionsDelay:Te(new Ln(91,"quickSuggestionsDelay",10,0,1073741824,{description:b("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Te(new Qt(92,"readOnly",!1)),readOnlyMessage:Te(new Rke),renameOnType:Te(new Qt(94,"renameOnType",!1,{description:b("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:b("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Te(new Qt(95,"renderControlCharacters",!0,{description:b("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Te(new _i(96,"renderFinalNewline",Ts?"dimmed":"on",["off","on","dimmed"],{description:b("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:Te(new _i(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",b("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:b("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Te(new Qt(98,"renderLineHighlightOnlyWhenFocus",!1,{description:b("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Te(new _i(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Te(new _i(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",b("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),b("renderWhitespace.selection","Render whitespace characters only on selected text."),b("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:b("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Te(new Ln(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:Te(new Qt(102,"roundedSelection",!0,{description:b("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:Te(new Mke),scrollbar:Te(new Fke),scrollBeyondLastColumn:Te(new Ln(105,"scrollBeyondLastColumn",4,0,1073741824,{description:b("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Te(new Qt(106,"scrollBeyondLastLine",!0,{description:b("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Te(new Qt(107,"scrollPredominantAxis",!0,{description:b("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:Te(new Qt(108,"selectionClipboard",!0,{description:b("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Ts})),selectionHighlight:Te(new Qt(109,"selectionHighlight",!0,{description:b("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Te(new Qt(110,"selectOnLineNumbers",!0)),showFoldingControls:Te(new _i(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[b("showFoldingControls.always","Always show the folding controls."),b("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),b("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:b("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:Te(new Qt(112,"showUnused",!0,{description:b("showUnused","Controls fading out of unused code.")})),showDeprecated:Te(new Qt(141,"showDeprecated",!0,{description:b("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:Te(new xke),snippetSuggestions:Te(new _i(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[b("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),b("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),b("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),b("snippetSuggestions.none","Do not show snippet suggestions.")],description:b("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Te(new Wke),smoothScrolling:Te(new Qt(115,"smoothScrolling",!1,{description:b("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Te(new Ln(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Te(new jke),inlineSuggest:Te(new Hke),inlineEdit:Te(new Bke),inlineCompletionsAccessibilityVerbose:Te(new Qt(150,"inlineCompletionsAccessibilityVerbose",!1,{description:b("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:Te(new Ln(120,"suggestFontSize",0,0,1e3,{markdownDescription:b("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:Te(new Ln(121,"suggestLineHeight",0,0,1e3,{markdownDescription:b("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:Te(new Qt(122,"suggestOnTriggerCharacters",!0,{description:b("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Te(new _i(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[b("suggestSelection.first","Always select the first suggestion."),b("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),b("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:b("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Te(new _i(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[b("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),b("tabCompletion.off","Disable tab completions."),b("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:b("tabCompletion","Enables tab completions.")})),tabIndex:Te(new Ln(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:Te(new Vke),unusualLineTerminators:Te(new _i(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[b("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),b("unusualLineTerminators.off","Unusual line terminators are ignored."),b("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:b("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:Te(new Qt(128,"useShadowDOM",!0)),useTabStops:Te(new Qt(129,"useTabStops",!0,{description:b("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:Te(new _i(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[b("wordBreak.normal","Use the default line break rule."),b("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:b("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:Te(new Uke),wordSeparators:Te(new fs(132,"wordSeparators",Mv,{description:b("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Te(new _i(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[b("wordWrap.off","Lines will never wrap."),b("wordWrap.on","Lines will wrap at the viewport width."),b({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),b({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:b({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Te(new fs(134,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:Te(new fs(135,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:Te(new Ln(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:b({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Te(new _i(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Te(new _i(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:Te(new gke),defaultColorDecorators:Te(new Qt(148,"defaultColorDecorators",!1,{markdownDescription:b("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:Te(new Nke),tabFocusMode:Te(new Qt(145,"tabFocusMode",!1,{markdownDescription:b("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:Te(new Vm),wrappingInfo:Te(new Gke),wrappingIndent:Te(new qke),wrappingStrategy:Te(new wke)};class Xke{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?zm.isErrorNoTelemetry(e)?new zm(e.message+`
|
|
@@ -1261,7 +1261,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1261
1261
|
* Date: 2023-05-12T08:44:03.742Z
|
|
1262
1262
|
*/const $Se={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},CPt={name:"PaasEditor",components:{QuillEditor:C.defineComponent({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:i=>["delta","html","text"].includes(i)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:i=>["snow","bubble",""].includes(i)},toolbar:{type:[String,Array,Object],required:!1,validator:i=>typeof i=="string"&&i!==""?i.charAt(0)==="#"?!0:Object.keys($Se).indexOf(i)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(i,e)=>{C.onMounted(()=>{s()}),C.onBeforeUnmount(()=>{t=null});let t,n;const r=C.ref(),s=()=>{var E;if(r.value){if(n=o(),i.modules)if(Array.isArray(i.modules))for(const P of i.modules)GJ.register(`modules/${P.name}`,P.module);else GJ.register(`modules/${i.modules.name}`,i.modules.module);t=new GJ(r.value,n),w(i.content),t.on("text-change",d),t.on("selection-change",f),t.on("editor-change",g),i.theme!=="bubble"&&r.value.classList.remove("ql-bubble"),i.theme!=="snow"&&r.value.classList.remove("ql-snow"),(E=t.getModule("toolbar"))===null||E===void 0||E.container.addEventListener("mousedown",P=>{P.preventDefault()}),e.emit("ready",t)}},o=()=>{const E={};if(i.theme!==""&&(E.theme=i.theme),i.readOnly&&(E.readOnly=i.readOnly),i.placeholder&&(E.placeholder=i.placeholder),i.toolbar&&i.toolbar!==""&&(E.modules={toolbar:(()=>{if(typeof i.toolbar=="object")return i.toolbar;if(typeof i.toolbar=="string")return i.toolbar.charAt(0)==="#"?i.toolbar:$Se[i.toolbar]})()}),i.modules){const P=(()=>{var I,R;const V={};if(Array.isArray(i.modules))for(const Q of i.modules)V[Q.name]=(I=Q.options)!==null&&I!==void 0?I:{};else V[i.modules.name]=(R=i.modules.options)!==null&&R!==void 0?R:{};return V})();E.modules=Object.assign({},E.modules,P)}return Object.assign({},i.globalOptions,i.options,E)},a=E=>typeof E=="object"&&E?E.slice():E,l=E=>Object.values(E.ops).some(P=>!P.retain||Object.keys(P).length!==1);let c;const u=E=>{if(typeof c==typeof E){if(E===c)return!0;if(typeof E=="object"&&E&&typeof c=="object"&&c)return!l(c.diff(E))}return!1},d=(E,P,I)=>{c=a(v()),u(i.content)||e.emit("update:content",c),e.emit("textChange",{delta:E,oldContents:P,source:I})},h=C.ref(),f=(E,P,I)=>{h.value=!!(t!=null&&t.hasFocus()),e.emit("selectionChange",{range:E,oldRange:P,source:I})};C.watch(h,E=>{E?e.emit("focus",r):e.emit("blur",r)});const g=(...E)=>{E[0]==="text-change"&&e.emit("editorChange",{name:E[0],delta:E[1],oldContents:E[2],source:E[3]}),E[0]==="selection-change"&&e.emit("editorChange",{name:E[0],range:E[1],oldRange:E[2],source:E[3]})},p=()=>r.value,m=()=>{var E;return(E=t==null?void 0:t.getModule("toolbar"))===null||E===void 0?void 0:E.container},_=()=>{if(t)return t;throw`The quill editor hasn't been instantiated yet,
|
|
1263
1263
|
make sure to call this method when the editor ready
|
|
1264
|
-
or use v-on:ready="onReady(quill)" event instead.`},v=(E,P)=>i.contentType==="html"?x():i.contentType==="text"?y(E,P):t==null?void 0:t.getContents(E,P),w=(E,P="api")=>{const I=E||(i.contentType==="delta"?new SPt:"");i.contentType==="html"?O(I):i.contentType==="text"?S(I,P):t==null||t.setContents(I,P),c=a(I)},y=(E,P)=>{var I;return(I=t==null?void 0:t.getText(E,P))!==null&&I!==void 0?I:""},S=(E,P="api")=>{t==null||t.setText(E,P)},x=()=>{var E;return(E=t==null?void 0:t.root.innerHTML)!==null&&E!==void 0?E:""},O=E=>{t&&(t.root.innerHTML=E)},L=(E,P="api")=>{const I=t==null?void 0:t.clipboard.convert(E);I&&(t==null||t.setContents(I,P))},T=()=>{t==null||t.focus()},N=()=>{C.nextTick(()=>{var E;!e.slots.toolbar&&t&&((E=t.getModule("toolbar"))===null||E===void 0||E.container.remove()),s()})};return C.watch(()=>i.content,E=>{if(!t||!E||u(E))return;const P=t.getSelection();P&&C.nextTick(()=>t==null?void 0:t.setSelection(P)),w(E)},{deep:!0}),C.watch(()=>i.enable,E=>{t&&t.enable(E)}),{editor:r,getEditor:p,getToolbar:m,getQuill:_,getContents:v,setContents:w,getHTML:x,setHTML:O,pasteHTML:L,focus:T,getText:y,setText:S,reinit:N}},render(){var i,e;return[(e=(i=this.$slots).toolbar)===null||e===void 0?void 0:e.call(i),C.h("div",{ref:"editor",...this.$attrs})]}})},props:{modelValue:String,height:{default:350},readonly:{default:!1}},watch:{modelValue:{handler(i){this.htmlValue=i}}},computed:{see(){return this.$store.forms.see}},data(){return{htmlValue:this.modelValue,editorOption:{modules:{toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["image","video","link","table"]],syntax:{highlight:i=>hljs.highlightAuto(i).value},history:{delay:1e3,maxStack:50,userOnly:!0}},theme:"snow",language:"zh-CN"}}},methods:{getContent(){return this.quill.root.innerHTML.trim()},updateValue(i){this.$emit("update:modelValue",i)}}};function xPt(i,e,t,n,r,s){const o=C.resolveComponent("quill-editor");return C.openBlock(),C.createBlock(o,{ref:"editor",content:r.htmlValue,"onUpdate:content":[e[0]||(e[0]=a=>r.htmlValue=a),e[1]||(e[1]=a=>s.updateValue(a))],options:r.editorOption,contentType:"html",style:C.normalizeStyle("height: "+this.height+"px;"),readOnly:s.see||t.readonly},null,8,["content","options","style","readOnly"])}const OPt=Cr(CPt,[["render",xPt],["__scopeId","data-v-31e00fde"]]),LPt={name:"PaasTreePanel",props:{multiple:{default:!1},fieldNames:{type:Object,default:{children:"children",title:"label",key:"value"}},disabled:{default:!1},open:{type:Boolean,default:!0},params:{},url:"",checkable:{type:Boolean,default:!1},modelValue:{},height:{type:Number,default:600},listToTree:{type:Boolean,default:!0}},data(){return{value:null,datas:[]}},computed:{see(){return this.$store.forms.see}},watch:{modelValue(i){i==null&&(i="");let e=new Array;Array.isArray(i)?(i.forEach(t=>{t!=""&&e.push(String(t))}),this.value=e):i instanceof String&&(i!=null&&i.includes(","))?(i.spit(",").forEach(t=>{t!=""&&e.push(String(t))}),this.value=e):this.multiple&&i?this.value=[String(i)]:this.value=String(i),this.$emit("update:modelValue",this.value)}},mounted(){this.getTreeData()},methods:{getTreeData(){this.$post(this.url,{page:{current:1,size:1e6},...this.params}).then(i=>{this.listToTree?this.datas=this.$listToTree(i.data.data.rows):this.datas=i.data.data.rows})}}};function kPt(i,e,t,n,r,s){const o=C.resolveComponent("a-tree");return C.openBlock(),C.createBlock(o,{"tree-data":r.datas,selectedKeys:r.value,"onUpdate:selectedKeys":e[0]||(e[0]=a=>r.value=a),fieldNames:t.fieldNames,checkable:t.checkable,showLine:"",height:t.height,disabled:s.see||t.disabled,"tree-default-expand-all":t.open},null,8,["tree-data","selectedKeys","fieldNames","checkable","height","disabled","tree-default-expand-all"])}const EPt=Cr(LPt,[["render",kPt]]),TPt={name:"PaasQueryBar",props:{showMore:{type:Number,default:-1},model:{type:Object,required:!0}},setup(i,{emit:e}){const t=C.getCurrentInstance(),n=C.ref(i.showMore),r=C.computed({get:()=>i.model,set:l=>e("update:model",l)});return C.watch(()=>i.showMore,l=>{n.value=l}),{toggleMore:()=>{n.value=n.value===1?0:1,e("update:showMore",n.value)},query:()=>{t.appContext.config.globalProperties.$store.setQueryData(JSON.parse(JSON.stringify(r.value))),t.appContext.config.globalProperties.$bus.emit("loadData")},resetData:()=>{const l=c=>{for(let u in c)if(typeof c[u]=="object"&&c[u]!==null)c[u]=Array.isArray(c[u])?[]:{},l(c[u]);else switch(typeof c[u]){case"string":c[u]=null;break;case"number":c[u]=null;break;case"boolean":c[u]=!1;break}};l(r.value),e("update:model",{...r.value})},internalShowMore:n,model:r}}};function PPt(i,e,t,n,r,s){const o=C.resolveComponent("SearchOutlined"),a=C.resolveComponent("a-button"),l=C.resolveComponent("ClearOutlined"),c=C.resolveComponent("a-flex");return C.openBlock(),C.createBlock(c,{gap:"small",wrap:"wrap"},{default:C.withCtx(()=>[C.createVNode(a,{type:"primary",onClick:n.query,ghost:""},{icon:C.withCtx(()=>[C.createVNode(o)]),default:C.withCtx(()=>[e[0]||(e[0]=C.createTextVNode(" 查询 "))]),_:1},8,["onClick"]),C.createVNode(a,{type:"default",onClick:n.resetData},{icon:C.withCtx(()=>[C.createVNode(l)]),default:C.withCtx(()=>[e[1]||(e[1]=C.createTextVNode(" 重置 "))]),_:1},8,["onClick"]),t.showMore!==-1?(C.openBlock(),C.createBlock(a,{key:0,type:"link",onClick:n.toggleMore},{default:C.withCtx(()=>[C.createTextVNode(C.toDisplayString(n.internalShowMore===1?"收起":"更多"),1)]),_:1},8,["onClick"])):C.createCommentVNode("",!0)]),_:1})}const NPt=Cr(TPt,[["render",PPt]]),DPt=C.defineComponent({name:"PaasIcon",props:{icon:{type:String,required:!0}},setup(i){const e=C.ref(null);return C.watch(()=>i.icon,t=>{e.value=HTt[t]},{immediate:!0}),{iconComponent:e}}});function IPt(i,e,t,n,r,s){return i.iconComponent?(C.openBlock(),C.createBlock(C.resolveDynamicComponent(i.iconComponent),C.normalizeProps(C.mergeProps({key:0},i.$attrs)),null,16)):C.createCommentVNode("",!0)}const APt=Cr(DPt,[["render",IPt]]);var jSe={exports:{}};(function(i,e){(function(){var t,n=0xdeadbeefcafe,r=(n&16777215)==15715070;function s(F,$,Z){F!=null&&(typeof F=="number"?this.fromNumber(F,$,Z):$==null&&typeof F!="string"?this.fromString(F,256):this.fromString(F,$))}function o(){return new s(null)}function a(F,$,Z,me,$e,qe){for(;--qe>=0;){var ht=$*this[F++]+Z[me]+$e;$e=Math.floor(ht/67108864),Z[me++]=ht&67108863}return $e}function l(F,$,Z,me,$e,qe){for(var ht=$&32767,mt=$>>15;--qe>=0;){var wn=this[F]&32767,or=this[F++]>>15,Qs=mt*wn+or*ht;wn=ht*wn+((Qs&32767)<<15)+Z[me]+($e&1073741823),$e=(wn>>>30)+(Qs>>>15)+mt*or+($e>>>30),Z[me++]=wn&1073741823}return $e}function c(F,$,Z,me,$e,qe){for(var ht=$&16383,mt=$>>14;--qe>=0;){var wn=this[F]&16383,or=this[F++]>>14,Qs=mt*wn+or*ht;wn=ht*wn+((Qs&16383)<<14)+Z[me]+$e,$e=(wn>>28)+(Qs>>14)+mt*or,Z[me++]=wn&268435455}return $e}var u=typeof navigator<"u";u&&r&&navigator.appName=="Microsoft Internet Explorer"?(s.prototype.am=l,t=30):u&&r&&navigator.appName!="Netscape"?(s.prototype.am=a,t=26):(s.prototype.am=c,t=28),s.prototype.DB=t,s.prototype.DM=(1<<t)-1,s.prototype.DV=1<<t;var d=52;s.prototype.FV=Math.pow(2,d),s.prototype.F1=d-t,s.prototype.F2=2*t-d;var h="0123456789abcdefghijklmnopqrstuvwxyz",f=new Array,g,p;for(g=48,p=0;p<=9;++p)f[g++]=p;for(g=97,p=10;p<36;++p)f[g++]=p;for(g=65,p=10;p<36;++p)f[g++]=p;function m(F){return h.charAt(F)}function _(F,$){var Z=f[F.charCodeAt($)];return Z??-1}function v(F){for(var $=this.t-1;$>=0;--$)F[$]=this[$];F.t=this.t,F.s=this.s}function w(F){this.t=1,this.s=F<0?-1:0,F>0?this[0]=F:F<-1?this[0]=F+this.DV:this.t=0}function y(F){var $=o();return $.fromInt(F),$}function S(F,$){var Z;if($==16)Z=4;else if($==8)Z=3;else if($==256)Z=8;else if($==2)Z=1;else if($==32)Z=5;else if($==4)Z=2;else{this.fromRadix(F,$);return}this.t=0,this.s=0;for(var me=F.length,$e=!1,qe=0;--me>=0;){var ht=Z==8?F[me]&255:_(F,me);if(ht<0){F.charAt(me)=="-"&&($e=!0);continue}$e=!1,qe==0?this[this.t++]=ht:qe+Z>this.DB?(this[this.t-1]|=(ht&(1<<this.DB-qe)-1)<<qe,this[this.t++]=ht>>this.DB-qe):this[this.t-1]|=ht<<qe,qe+=Z,qe>=this.DB&&(qe-=this.DB)}Z==8&&F[0]&128&&(this.s=-1,qe>0&&(this[this.t-1]|=(1<<this.DB-qe)-1<<qe)),this.clamp(),$e&&s.ZERO.subTo(this,this)}function x(){for(var F=this.s&this.DM;this.t>0&&this[this.t-1]==F;)--this.t}function O(F){if(this.s<0)return"-"+this.negate().toString(F);var $;if(F==16)$=4;else if(F==8)$=3;else if(F==2)$=1;else if(F==32)$=5;else if(F==4)$=2;else return this.toRadix(F);var Z=(1<<$)-1,me,$e=!1,qe="",ht=this.t,mt=this.DB-ht*this.DB%$;if(ht-- >0)for(mt<this.DB&&(me=this[ht]>>mt)>0&&($e=!0,qe=m(me));ht>=0;)mt<$?(me=(this[ht]&(1<<mt)-1)<<$-mt,me|=this[--ht]>>(mt+=this.DB-$)):(me=this[ht]>>(mt-=$)&Z,mt<=0&&(mt+=this.DB,--ht)),me>0&&($e=!0),$e&&(qe+=m(me));return $e?qe:"0"}function L(){var F=o();return s.ZERO.subTo(this,F),F}function T(){return this.s<0?this.negate():this}function N(F){var $=this.s-F.s;if($!=0)return $;var Z=this.t;if($=Z-F.t,$!=0)return this.s<0?-$:$;for(;--Z>=0;)if(($=this[Z]-F[Z])!=0)return $;return 0}function E(F){var $=1,Z;return(Z=F>>>16)!=0&&(F=Z,$+=16),(Z=F>>8)!=0&&(F=Z,$+=8),(Z=F>>4)!=0&&(F=Z,$+=4),(Z=F>>2)!=0&&(F=Z,$+=2),(Z=F>>1)!=0&&(F=Z,$+=1),$}function P(){return this.t<=0?0:this.DB*(this.t-1)+E(this[this.t-1]^this.s&this.DM)}function I(F,$){var Z;for(Z=this.t-1;Z>=0;--Z)$[Z+F]=this[Z];for(Z=F-1;Z>=0;--Z)$[Z]=0;$.t=this.t+F,$.s=this.s}function R(F,$){for(var Z=F;Z<this.t;++Z)$[Z-F]=this[Z];$.t=Math.max(this.t-F,0),$.s=this.s}function V(F,$){var Z=F%this.DB,me=this.DB-Z,$e=(1<<me)-1,qe=Math.floor(F/this.DB),ht=this.s<<Z&this.DM,mt;for(mt=this.t-1;mt>=0;--mt)$[mt+qe+1]=this[mt]>>me|ht,ht=(this[mt]&$e)<<Z;for(mt=qe-1;mt>=0;--mt)$[mt]=0;$[qe]=ht,$.t=this.t+qe+1,$.s=this.s,$.clamp()}function Q(F,$){$.s=this.s;var Z=Math.floor(F/this.DB);if(Z>=this.t){$.t=0;return}var me=F%this.DB,$e=this.DB-me,qe=(1<<me)-1;$[0]=this[Z]>>me;for(var ht=Z+1;ht<this.t;++ht)$[ht-Z-1]|=(this[ht]&qe)<<$e,$[ht-Z]=this[ht]>>me;me>0&&($[this.t-Z-1]|=(this.s&qe)<<$e),$.t=this.t-Z,$.clamp()}function ne(F,$){for(var Z=0,me=0,$e=Math.min(F.t,this.t);Z<$e;)me+=this[Z]-F[Z],$[Z++]=me&this.DM,me>>=this.DB;if(F.t<this.t){for(me-=F.s;Z<this.t;)me+=this[Z],$[Z++]=me&this.DM,me>>=this.DB;me+=this.s}else{for(me+=this.s;Z<F.t;)me-=F[Z],$[Z++]=me&this.DM,me>>=this.DB;me-=F.s}$.s=me<0?-1:0,me<-1?$[Z++]=this.DV+me:me>0&&($[Z++]=me),$.t=Z,$.clamp()}function de(F,$){var Z=this.abs(),me=F.abs(),$e=Z.t;for($.t=$e+me.t;--$e>=0;)$[$e]=0;for($e=0;$e<me.t;++$e)$[$e+Z.t]=Z.am(0,me[$e],$,$e,0,Z.t);$.s=0,$.clamp(),this.s!=F.s&&s.ZERO.subTo($,$)}function X(F){for(var $=this.abs(),Z=F.t=2*$.t;--Z>=0;)F[Z]=0;for(Z=0;Z<$.t-1;++Z){var me=$.am(Z,$[Z],F,2*Z,0,1);(F[Z+$.t]+=$.am(Z+1,2*$[Z],F,2*Z+1,me,$.t-Z-1))>=$.DV&&(F[Z+$.t]-=$.DV,F[Z+$.t+1]=1)}F.t>0&&(F[F.t-1]+=$.am(Z,$[Z],F,2*Z,0,1)),F.s=0,F.clamp()}function U(F,$,Z){var me=F.abs();if(!(me.t<=0)){var $e=this.abs();if($e.t<me.t){$!=null&&$.fromInt(0),Z!=null&&this.copyTo(Z);return}Z==null&&(Z=o());var qe=o(),ht=this.s,mt=F.s,wn=this.DB-E(me[me.t-1]);wn>0?(me.lShiftTo(wn,qe),$e.lShiftTo(wn,Z)):(me.copyTo(qe),$e.copyTo(Z));var or=qe.t,Qs=qe[or-1];if(Qs!=0){var Gr=Qs*(1<<this.F1)+(or>1?qe[or-2]>>this.F2:0),ea=this.FV/Gr,Xc=(1<<this.F1)/Gr,ta=1<<this.F2,So=Z.t,td=So-or,gl=$??o();for(qe.dlShiftTo(td,gl),Z.compareTo(gl)>=0&&(Z[Z.t++]=1,Z.subTo(gl,Z)),s.ONE.dlShiftTo(or,gl),gl.subTo(qe,qe);qe.t<or;)qe[qe.t++]=0;for(;--td>=0;){var Fa=Z[--So]==Qs?this.DM:Math.floor(Z[So]*ea+(Z[So-1]+ta)*Xc);if((Z[So]+=qe.am(0,Fa,Z,td,0,or))<Fa)for(qe.dlShiftTo(td,gl),Z.subTo(gl,Z);Z[So]<--Fa;)Z.subTo(gl,Z)}$!=null&&(Z.drShiftTo(or,$),ht!=mt&&s.ZERO.subTo($,$)),Z.t=or,Z.clamp(),wn>0&&Z.rShiftTo(wn,Z),ht<0&&s.ZERO.subTo(Z,Z)}}}function H(F){var $=o();return this.abs().divRemTo(F,null,$),this.s<0&&$.compareTo(s.ZERO)>0&&F.subTo($,$),$}function J(F){this.m=F}function G(F){return F.s<0||F.compareTo(this.m)>=0?F.mod(this.m):F}function ue(F){return F}function oe(F){F.divRemTo(this.m,null,F)}function K(F,$,Z){F.multiplyTo($,Z),this.reduce(Z)}function ce(F,$){F.squareTo($),this.reduce($)}J.prototype.convert=G,J.prototype.revert=ue,J.prototype.reduce=oe,J.prototype.mulTo=K,J.prototype.sqrTo=ce;function ve(){if(this.t<1)return 0;var F=this[0];if(!(F&1))return 0;var $=F&3;return $=$*(2-(F&15)*$)&15,$=$*(2-(F&255)*$)&255,$=$*(2-((F&65535)*$&65535))&65535,$=$*(2-F*$%this.DV)%this.DV,$>0?this.DV-$:-$}function ye(F){this.m=F,this.mp=F.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<F.DB-15)-1,this.mt2=2*F.t}function Me(F){var $=o();return F.abs().dlShiftTo(this.m.t,$),$.divRemTo(this.m,null,$),F.s<0&&$.compareTo(s.ZERO)>0&&this.m.subTo($,$),$}function st(F){var $=o();return F.copyTo($),this.reduce($),$}function ft(F){for(;F.t<=this.mt2;)F[F.t++]=0;for(var $=0;$<this.m.t;++$){var Z=F[$]&32767,me=Z*this.mpl+((Z*this.mph+(F[$]>>15)*this.mpl&this.um)<<15)&F.DM;for(Z=$+this.m.t,F[Z]+=this.m.am(0,me,F,$,0,this.m.t);F[Z]>=F.DV;)F[Z]-=F.DV,F[++Z]++}F.clamp(),F.drShiftTo(this.m.t,F),F.compareTo(this.m)>=0&&F.subTo(this.m,F)}function Ot(F,$){F.squareTo($),this.reduce($)}function Zt(F,$,Z){F.multiplyTo($,Z),this.reduce(Z)}ye.prototype.convert=Me,ye.prototype.revert=st,ye.prototype.reduce=ft,ye.prototype.mulTo=Zt,ye.prototype.sqrTo=Ot;function fn(){return(this.t>0?this[0]&1:this.s)==0}function Ei(F,$){if(F>4294967295||F<1)return s.ONE;var Z=o(),me=o(),$e=$.convert(this),qe=E(F)-1;for($e.copyTo(Z);--qe>=0;)if($.sqrTo(Z,me),(F&1<<qe)>0)$.mulTo(me,$e,Z);else{var ht=Z;Z=me,me=ht}return $.revert(Z)}function mi(F,$){var Z;return F<256||$.isEven()?Z=new J($):Z=new ye($),this.exp(F,Z)}s.prototype.copyTo=v,s.prototype.fromInt=w,s.prototype.fromString=S,s.prototype.clamp=x,s.prototype.dlShiftTo=I,s.prototype.drShiftTo=R,s.prototype.lShiftTo=V,s.prototype.rShiftTo=Q,s.prototype.subTo=ne,s.prototype.multiplyTo=de,s.prototype.squareTo=X,s.prototype.divRemTo=U,s.prototype.invDigit=ve,s.prototype.isEven=fn,s.prototype.exp=Ei,s.prototype.toString=O,s.prototype.negate=L,s.prototype.abs=T,s.prototype.compareTo=N,s.prototype.bitLength=P,s.prototype.mod=H,s.prototype.modPowInt=mi,s.ZERO=y(0),s.ONE=y(1);function Ie(){var F=o();return this.copyTo(F),F}function He(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function Je(){return this.t==0?this.s:this[0]<<24>>24}function at(){return this.t==0?this.s:this[0]<<16>>16}function ze(F){return Math.floor(Math.LN2*this.DB/Math.log(F))}function Bt(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Ft(F){if(F==null&&(F=10),this.signum()==0||F<2||F>36)return"0";var $=this.chunkSize(F),Z=Math.pow(F,$),me=y(Z),$e=o(),qe=o(),ht="";for(this.divRemTo(me,$e,qe);$e.signum()>0;)ht=(Z+qe.intValue()).toString(F).substr(1)+ht,$e.divRemTo(me,$e,qe);return qe.intValue().toString(F)+ht}function Ut(F,$){this.fromInt(0),$==null&&($=10);for(var Z=this.chunkSize($),me=Math.pow($,Z),$e=!1,qe=0,ht=0,mt=0;mt<F.length;++mt){var wn=_(F,mt);if(wn<0){F.charAt(mt)=="-"&&this.signum()==0&&($e=!0);continue}ht=$*ht+wn,++qe>=Z&&(this.dMultiply(me),this.dAddOffset(ht,0),qe=0,ht=0)}qe>0&&(this.dMultiply(Math.pow($,qe)),this.dAddOffset(ht,0)),$e&&s.ZERO.subTo(this,this)}function sr(F,$,Z){if(typeof $=="number")if(F<2)this.fromInt(1);else for(this.fromNumber(F,Z),this.testBit(F-1)||this.bitwiseTo(s.ONE.shiftLeft(F-1),qi,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime($);)this.dAddOffset(2,0),this.bitLength()>F&&this.subTo(s.ONE.shiftLeft(F-1),this);else{var me=new Array,$e=F&7;me.length=(F>>3)+1,$.nextBytes(me),$e>0?me[0]&=(1<<$e)-1:me[0]=0,this.fromString(me,256)}}function Hi(){var F=this.t,$=new Array;$[0]=this.s;var Z=this.DB-F*this.DB%8,me,$e=0;if(F-- >0)for(Z<this.DB&&(me=this[F]>>Z)!=(this.s&this.DM)>>Z&&($[$e++]=me|this.s<<this.DB-Z);F>=0;)Z<8?(me=(this[F]&(1<<Z)-1)<<8-Z,me|=this[--F]>>(Z+=this.DB-8)):(me=this[F]>>(Z-=8)&255,Z<=0&&(Z+=this.DB,--F)),me&128&&(me|=-256),$e==0&&(this.s&128)!=(me&128)&&++$e,($e>0||me!=this.s)&&($[$e++]=me);return $}function Tn(F){return this.compareTo(F)==0}function os(F){return this.compareTo(F)<0?this:F}function sn(F){return this.compareTo(F)>0?this:F}function Pn(F,$,Z){var me,$e,qe=Math.min(F.t,this.t);for(me=0;me<qe;++me)Z[me]=$(this[me],F[me]);if(F.t<this.t){for($e=F.s&this.DM,me=qe;me<this.t;++me)Z[me]=$(this[me],$e);Z.t=this.t}else{for($e=this.s&this.DM,me=qe;me<F.t;++me)Z[me]=$($e,F[me]);Z.t=F.t}Z.s=$(this.s,F.s),Z.clamp()}function as(F,$){return F&$}function Aa(F){var $=o();return this.bitwiseTo(F,as,$),$}function qi(F,$){return F|$}function Ys(F){var $=o();return this.bitwiseTo(F,qi,$),$}function Os(F,$){return F^$}function Ls(F){var $=o();return this.bitwiseTo(F,Os,$),$}function gn(F,$){return F&~$}function Yn(F){var $=o();return this.bitwiseTo(F,gn,$),$}function Xs(){for(var F=o(),$=0;$<this.t;++$)F[$]=this.DM&~this[$];return F.t=this.t,F.s=~this.s,F}function Zc(F){var $=o();return F<0?this.rShiftTo(-F,$):this.lShiftTo(F,$),$}function Ma(F){var $=o();return F<0?this.lShiftTo(-F,$):this.rShiftTo(F,$),$}function dl(F){if(F==0)return-1;var $=0;return F&65535||(F>>=16,$+=16),F&255||(F>>=8,$+=8),F&15||(F>>=4,$+=4),F&3||(F>>=2,$+=2),F&1||++$,$}function Ra(){for(var F=0;F<this.t;++F)if(this[F]!=0)return F*this.DB+dl(this[F]);return this.s<0?this.t*this.DB:-1}function Ul(F){for(var $=0;F!=0;)F&=F-1,++$;return $}function Yc(){for(var F=0,$=this.s&this.DM,Z=0;Z<this.t;++Z)F+=Ul(this[Z]^$);return F}function Nt(F){var $=Math.floor(F/this.DB);return $>=this.t?this.s!=0:(this[$]&1<<F%this.DB)!=0}function W(F,$){var Z=s.ONE.shiftLeft(F);return this.bitwiseTo(Z,$,Z),Z}function Y(F){return this.changeBit(F,qi)}function ee(F){return this.changeBit(F,gn)}function se(F){return this.changeBit(F,Os)}function he(F,$){for(var Z=0,me=0,$e=Math.min(F.t,this.t);Z<$e;)me+=this[Z]+F[Z],$[Z++]=me&this.DM,me>>=this.DB;if(F.t<this.t){for(me+=F.s;Z<this.t;)me+=this[Z],$[Z++]=me&this.DM,me>>=this.DB;me+=this.s}else{for(me+=this.s;Z<F.t;)me+=F[Z],$[Z++]=me&this.DM,me>>=this.DB;me+=F.s}$.s=me<0?-1:0,me>0?$[Z++]=me:me<-1&&($[Z++]=this.DV+me),$.t=Z,$.clamp()}function Oe(F){var $=o();return this.addTo(F,$),$}function Ne(F){var $=o();return this.subTo(F,$),$}function Ye(F){var $=o();return this.multiplyTo(F,$),$}function Ue(){var F=o();return this.squareTo(F),F}function It(F){var $=o();return this.divRemTo(F,$,null),$}function cn(F){var $=o();return this.divRemTo(F,null,$),$}function zn(F){var $=o(),Z=o();return this.divRemTo(F,$,Z),new Array($,Z)}function Xn(F){this[this.t]=this.am(0,F-1,this,0,0,this.t),++this.t,this.clamp()}function ii(F,$){if(F!=0){for(;this.t<=$;)this[this.t++]=0;for(this[$]+=F;this[$]>=this.DV;)this[$]-=this.DV,++$>=this.t&&(this[this.t++]=0),++this[$]}}function et(){}function fe(F){return F}function Ge(F,$,Z){F.multiplyTo($,Z)}function ct(F,$){F.squareTo($)}et.prototype.convert=fe,et.prototype.revert=fe,et.prototype.mulTo=Ge,et.prototype.sqrTo=ct;function Nn(F){return this.exp(F,new et)}function Bi(F,$,Z){var me=Math.min(this.t+F.t,$);for(Z.s=0,Z.t=me;me>0;)Z[--me]=0;var $e;for($e=Z.t-this.t;me<$e;++me)Z[me+this.t]=this.am(0,F[me],Z,me,0,this.t);for($e=Math.min(F.t,$);me<$e;++me)this.am(0,F[me],Z,me,0,$-me);Z.clamp()}function ri(F,$,Z){--$;var me=Z.t=this.t+F.t-$;for(Z.s=0;--me>=0;)Z[me]=0;for(me=Math.max($-this.t,0);me<F.t;++me)Z[this.t+me-$]=this.am($-me,F[me],Z,0,0,this.t+me-$);Z.clamp(),Z.drShiftTo(1,Z)}function $n(F){this.r2=o(),this.q3=o(),s.ONE.dlShiftTo(2*F.t,this.r2),this.mu=this.r2.divide(F),this.m=F}function yo(F){if(F.s<0||F.t>2*this.m.t)return F.mod(this.m);if(F.compareTo(this.m)<0)return F;var $=o();return F.copyTo($),this.reduce($),$}function vh(F){return F}function Sg(F){for(F.drShiftTo(this.m.t-1,this.r2),F.t>this.m.t+1&&(F.t=this.m.t+1,F.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);F.compareTo(this.r2)<0;)F.dAddOffset(1,this.m.t+1);for(F.subTo(this.r2,F);F.compareTo(this.m)>=0;)F.subTo(this.m,F)}function C3(F,$){F.squareTo($),this.reduce($)}function Cg(F,$,Z){F.multiplyTo($,Z),this.reduce(Z)}$n.prototype.convert=yo,$n.prototype.revert=vh,$n.prototype.reduce=Sg,$n.prototype.mulTo=Cg,$n.prototype.sqrTo=C3;function x3(F,$){var Z=F.bitLength(),me,$e=y(1),qe;if(Z<=0)return $e;Z<18?me=1:Z<48?me=3:Z<144?me=4:Z<768?me=5:me=6,Z<8?qe=new J($):$.isEven()?qe=new $n($):qe=new ye($);var ht=new Array,mt=3,wn=me-1,or=(1<<me)-1;if(ht[1]=qe.convert(this),me>1){var Qs=o();for(qe.sqrTo(ht[1],Qs);mt<=or;)ht[mt]=o(),qe.mulTo(Qs,ht[mt-2],ht[mt]),mt+=2}var Gr=F.t-1,ea,Xc=!0,ta=o(),So;for(Z=E(F[Gr])-1;Gr>=0;){for(Z>=wn?ea=F[Gr]>>Z-wn&or:(ea=(F[Gr]&(1<<Z+1)-1)<<wn-Z,Gr>0&&(ea|=F[Gr-1]>>this.DB+Z-wn)),mt=me;!(ea&1);)ea>>=1,--mt;if((Z-=mt)<0&&(Z+=this.DB,--Gr),Xc)ht[ea].copyTo($e),Xc=!1;else{for(;mt>1;)qe.sqrTo($e,ta),qe.sqrTo(ta,$e),mt-=2;mt>0?qe.sqrTo($e,ta):(So=$e,$e=ta,ta=So),qe.mulTo(ta,ht[ea],$e)}for(;Gr>=0&&!(F[Gr]&1<<Z);)qe.sqrTo($e,ta),So=$e,$e=ta,ta=So,--Z<0&&(Z=this.DB-1,--Gr)}return qe.revert($e)}function xg(F){var $=this.s<0?this.negate():this.clone(),Z=F.s<0?F.negate():F.clone();if($.compareTo(Z)<0){var me=$;$=Z,Z=me}var $e=$.getLowestSetBit(),qe=Z.getLowestSetBit();if(qe<0)return $;for($e<qe&&(qe=$e),qe>0&&($.rShiftTo(qe,$),Z.rShiftTo(qe,Z));$.signum()>0;)($e=$.getLowestSetBit())>0&&$.rShiftTo($e,$),($e=Z.getLowestSetBit())>0&&Z.rShiftTo($e,Z),$.compareTo(Z)>=0?($.subTo(Z,$),$.rShiftTo(1,$)):(Z.subTo($,Z),Z.rShiftTo(1,Z));return qe>0&&Z.lShiftTo(qe,Z),Z}function ql(F){if(F<=0)return 0;var $=this.DV%F,Z=this.s<0?F-1:0;if(this.t>0)if($==0)Z=this[0]%F;else for(var me=this.t-1;me>=0;--me)Z=($*Z+this[me])%F;return Z}function Nm(F){var $=F.isEven();if(this.isEven()&&$||F.signum()==0)return s.ZERO;for(var Z=F.clone(),me=this.clone(),$e=y(1),qe=y(0),ht=y(0),mt=y(1);Z.signum()!=0;){for(;Z.isEven();)Z.rShiftTo(1,Z),$?((!$e.isEven()||!qe.isEven())&&($e.addTo(this,$e),qe.subTo(F,qe)),$e.rShiftTo(1,$e)):qe.isEven()||qe.subTo(F,qe),qe.rShiftTo(1,qe);for(;me.isEven();)me.rShiftTo(1,me),$?((!ht.isEven()||!mt.isEven())&&(ht.addTo(this,ht),mt.subTo(F,mt)),ht.rShiftTo(1,ht)):mt.isEven()||mt.subTo(F,mt),mt.rShiftTo(1,mt);Z.compareTo(me)>=0?(Z.subTo(me,Z),$&&$e.subTo(ht,$e),qe.subTo(mt,qe)):(me.subTo(Z,me),$&&ht.subTo($e,ht),mt.subTo(qe,mt))}if(me.compareTo(s.ONE)!=0)return s.ZERO;if(mt.compareTo(F)>=0)return mt.subtract(F);if(mt.signum()<0)mt.addTo(F,mt);else return mt;return mt.signum()<0?mt.add(F):mt}var ls=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],_v=(1<<26)/ls[ls.length-1];function vv(F){var $,Z=this.abs();if(Z.t==1&&Z[0]<=ls[ls.length-1]){for($=0;$<ls.length;++$)if(Z[0]==ls[$])return!0;return!1}if(Z.isEven())return!1;for($=1;$<ls.length;){for(var me=ls[$],$e=$+1;$e<ls.length&&me<_v;)me*=ls[$e++];for(me=Z.modInt(me);$<$e;)if(me%ls[$++]==0)return!1}return Z.millerRabin(F)}function yv(F){var $=this.subtract(s.ONE),Z=$.getLowestSetBit();if(Z<=0)return!1;var me=$.shiftRight(Z);F=F+1>>1,F>ls.length&&(F=ls.length);for(var $e=o(),qe=0;qe<F;++qe){$e.fromInt(ls[Math.floor(Math.random()*ls.length)]);var ht=$e.modPow(me,this);if(ht.compareTo(s.ONE)!=0&&ht.compareTo($)!=0){for(var mt=1;mt++<Z&&ht.compareTo($)!=0;)if(ht=ht.modPowInt(2,this),ht.compareTo(s.ONE)==0)return!1;if(ht.compareTo($)!=0)return!1}}return!0}s.prototype.chunkSize=ze,s.prototype.toRadix=Ft,s.prototype.fromRadix=Ut,s.prototype.fromNumber=sr,s.prototype.bitwiseTo=Pn,s.prototype.changeBit=W,s.prototype.addTo=he,s.prototype.dMultiply=Xn,s.prototype.dAddOffset=ii,s.prototype.multiplyLowerTo=Bi,s.prototype.multiplyUpperTo=ri,s.prototype.modInt=ql,s.prototype.millerRabin=yv,s.prototype.clone=Ie,s.prototype.intValue=He,s.prototype.byteValue=Je,s.prototype.shortValue=at,s.prototype.signum=Bt,s.prototype.toByteArray=Hi,s.prototype.equals=Tn,s.prototype.min=os,s.prototype.max=sn,s.prototype.and=Aa,s.prototype.or=Ys,s.prototype.xor=Ls,s.prototype.andNot=Yn,s.prototype.not=Xs,s.prototype.shiftLeft=Zc,s.prototype.shiftRight=Ma,s.prototype.getLowestSetBit=Ra,s.prototype.bitCount=Yc,s.prototype.testBit=Nt,s.prototype.setBit=Y,s.prototype.clearBit=ee,s.prototype.flipBit=se,s.prototype.add=Oe,s.prototype.subtract=Ne,s.prototype.multiply=Ye,s.prototype.divide=It,s.prototype.remainder=cn,s.prototype.divideAndRemainder=zn,s.prototype.modPow=x3,s.prototype.modInverse=Nm,s.prototype.pow=Nn,s.prototype.gcd=xg,s.prototype.isProbablePrime=vv,s.prototype.square=Ue,s.prototype.Barrett=$n;var Og,qr,Xi;function yh(F){qr[Xi++]^=F&255,qr[Xi++]^=F>>8&255,qr[Xi++]^=F>>16&255,qr[Xi++]^=F>>24&255,Xi>=fl&&(Xi-=fl)}function Dm(){yh(new Date().getTime())}if(qr==null){qr=new Array,Xi=0;var wo;if(typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var O3=new Uint8Array(32);for(window.crypto.getRandomValues(O3),wo=0;wo<32;++wo)qr[Xi++]=O3[wo]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var L3=window.crypto.random(32);for(wo=0;wo<L3.length;++wo)qr[Xi++]=L3.charCodeAt(wo)&255}}for(;Xi<fl;)wo=Math.floor(65536*Math.random()),qr[Xi++]=wo>>>8,qr[Xi++]=wo&255;Xi=0,Dm()}function wv(){if(Og==null){for(Dm(),Og=hl(),Og.init(qr),Xi=0;Xi<qr.length;++Xi)qr[Xi]=0;Xi=0}return Og.next()}function Sv(F){var $;for($=0;$<F.length;++$)F[$]=wv()}function Lg(){}Lg.prototype.nextBytes=Sv;function Im(){this.i=0,this.j=0,this.S=new Array}function Cv(F){var $,Z,me;for($=0;$<256;++$)this.S[$]=$;for(Z=0,$=0;$<256;++$)Z=Z+this.S[$]+F[$%F.length]&255,me=this.S[$],this.S[$]=this.S[Z],this.S[Z]=me;this.i=0,this.j=0}function wh(){var F;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,F=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=F,this.S[F+this.S[this.i]&255]}Im.prototype.init=Cv,Im.prototype.next=wh;function hl(){return new Im}var fl=256;i.exports={default:s,BigInteger:s,SecureRandom:Lg}}).call(Cs)})(jSe);var TC=jSe.exports;const{BigInteger:L2}=TC;function MPt(i){let e=i.toString(16);if(e[0]!=="-")e.length%2===1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{e=e.substr(1);let t=e.length;t%2===1?t+=1:e.match(/^[0-7]/)||(t+=2);let n="";for(let r=0;r<t;r++)n+="f";n=new L2(n,16),e=n.xor(i).add(L2.ONE),e=e.toString(16).replace(/^-/,"")}return e}class WSe{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const e=this.v.length/2;let t=e.toString(16);return t.length%2===1&&(t="0"+t),e<128?t:(128+t.length/2).toString(16)+t}getValue(){return""}}class USe extends WSe{constructor(e){super(),this.t="02",e&&(this.v=MPt(e))}getValue(){return this.v}}class RPt extends WSe{constructor(e){super(),this.t="30",this.asn1Array=e}getValue(){return this.v=this.asn1Array.map(e=>e.getEncodedHex()).join(""),this.v}}function qSe(i,e){return+i[e+2]<8?1:+i.substr(e+2,2)&128}function GSe(i,e){const t=qSe(i,e),n=i.substr(e+2,t*2);return n?(+n[0]<8?new L2(n,16):new L2(n.substr(2),16)).intValue():-1}function eee(i,e){const t=qSe(i,e);return e+(t+1)*2}var FPt={encodeDer(i,e){const t=new USe(i),n=new USe(e);return new RPt([t,n]).getEncodedHex()},decodeDer(i){const e=eee(i,0),t=eee(i,e),n=GSe(i,e),r=i.substr(t,n*2),s=t+r.length,o=eee(i,s),a=GSe(i,s),l=i.substr(o,a*2),c=new L2(r,16),u=new L2(l,16);return{r:c,s:u}}};const{BigInteger:Xo}=TC,ZSe=new Xo("2"),YSe=new Xo("3");class qf{constructor(e,t){this.x=t,this.q=e}equals(e){return e===this?!0:this.q.equals(e.q)&&this.x.equals(e.x)}toBigInteger(){return this.x}negate(){return new qf(this.q,this.x.negate().mod(this.q))}add(e){return new qf(this.q,this.x.add(e.toBigInteger()).mod(this.q))}subtract(e){return new qf(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}multiply(e){return new qf(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}divide(e){return new qf(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new qf(this.q,this.x.square().mod(this.q))}}class Gf{constructor(e,t,n,r){this.curve=e,this.x=t,this.y=n,this.z=r??Xo.ONE,this.zinv=null}getX(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}getY(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}equals(e){return e===this?!0:this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(Xo.ZERO)?e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(Xo.ZERO):!1}isInfinity(){return this.x===null&&this.y===null?!0:this.z.equals(Xo.ZERO)&&!this.y.toBigInteger().equals(Xo.ZERO)}negate(){return new Gf(this.curve,this.x,this.y.negate(),this.z)}add(e){if(this.isInfinity())return e;if(e.isInfinity())return this;const t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=this.z,s=e.x.toBigInteger(),o=e.y.toBigInteger(),a=e.z,l=this.curve.q,c=t.multiply(a).mod(l),u=s.multiply(r).mod(l),d=c.subtract(u),h=n.multiply(a).mod(l),f=o.multiply(r).mod(l),g=h.subtract(f);if(Xo.ZERO.equals(d))return Xo.ZERO.equals(g)?this.twice():this.curve.infinity;const p=c.add(u),m=r.multiply(a).mod(l),_=d.square().mod(l),v=d.multiply(_).mod(l),w=m.multiply(g.square()).subtract(p.multiply(_)).mod(l),y=d.multiply(w).mod(l),S=g.multiply(_.multiply(c).subtract(w)).subtract(h.multiply(v)).mod(l),x=v.multiply(m).mod(l);return new Gf(this.curve,this.curve.fromBigInteger(y),this.curve.fromBigInteger(S),x)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const e=this.x.toBigInteger(),t=this.y.toBigInteger(),n=this.z,r=this.curve.q,s=this.curve.a.toBigInteger(),o=e.square().multiply(YSe).add(s.multiply(n.square())).mod(r),a=t.shiftLeft(1).multiply(n).mod(r),l=t.square().mod(r),c=l.multiply(e).multiply(n).mod(r),u=a.square().mod(r),d=o.square().subtract(c.shiftLeft(3)).mod(r),h=a.multiply(d).mod(r),f=o.multiply(c.shiftLeft(2).subtract(d)).subtract(u.shiftLeft(1).multiply(l)).mod(r),g=a.multiply(u).mod(r);return new Gf(this.curve,this.curve.fromBigInteger(h),this.curve.fromBigInteger(f),g)}multiply(e){if(this.isInfinity())return this;if(!e.signum())return this.curve.infinity;const t=e.multiply(YSe),n=this.negate();let r=this;for(let s=t.bitLength()-2;s>0;s--){r=r.twice();const o=t.testBit(s),a=e.testBit(s);o!==a&&(r=r.add(o?this:n))}return r}}var VPt={ECPointFp:Gf,ECCurveFp:class{constructor(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new Gf(this,null,null)}equals(e){return e===this?!0:this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}fromBigInteger(e){return new qf(this.q,e)}decodePointHex(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const t=this.fromBigInteger(new Xo(e.substr(2),16));let n=this.fromBigInteger(t.multiply(t.square()).add(t.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new Xo("4")).add(Xo.ONE),this.q));return n.toBigInteger().mod(ZSe).equals(new Xo(e.substr(0,2),16).subtract(ZSe))||(n=n.negate()),new Gf(this,t,n);case 4:case 6:case 7:const r=(e.length-2)/2,s=e.substr(2,r),o=e.substr(r+2,r);return new Gf(this,this.fromBigInteger(new Xo(s,16)),this.fromBigInteger(new Xo(o,16)));default:return null}}}};const{BigInteger:Vc,SecureRandom:HPt}=TC,{ECCurveFp:BPt}=VPt,zPt=new HPt,{curve:k2,G:$Pt,n:XSe}=QSe();function jPt(){return k2}function QSe(){const i=new Vc("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),e=new Vc("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),t=new Vc("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),n=new BPt(i,e,t),o=n.decodePointHex("04"+"32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7"+"BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"),a=new Vc("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16);return{curve:n,G:o,n:a}}function WPt(i,e,t){const r=(i?new Vc(i,e,t):new Vc(XSe.bitLength(),zPt)).mod(XSe.subtract(Vc.ONE)).add(Vc.ONE),s=F_(r.toString(16),64),o=$Pt.multiply(r),a=F_(o.getX().toBigInteger().toString(16),64),l=F_(o.getY().toBigInteger().toString(16),64),c="04"+a+l;return{privateKey:s,publicKey:c}}function UPt(i){if(i.length!==130)throw new Error("Invalid public key to compress");const e=(i.length-2)/2,t=i.substr(2,e),n=new Vc(i.substr(e+2,e),16);let r="03";return n.mod(new Vc("2")).equals(Vc.ZERO)&&(r="02"),r+t}function qPt(i){i=unescape(encodeURIComponent(i));const e=i.length,t=[];for(let r=0;r<e;r++)t[r>>>2]|=(i.charCodeAt(r)&255)<<24-r%4*8;const n=[];for(let r=0;r<e;r++){const s=t[r>>>2]>>>24-r%4*8&255;n.push((s>>>4).toString(16)),n.push((s&15).toString(16))}return n.join("")}function F_(i,e){return i.length>=e?i:new Array(e-i.length+1).join("0")+i}function GPt(i){return i.map(e=>(e=e.toString(16),e.length===1?"0"+e:e)).join("")}function ZPt(i){const e=[];let t=0;for(let n=0;n<i.length*2;n+=2)e[n>>>3]|=parseInt(i[t],10)<<24-n%8*4,t++;try{const n=[];for(let r=0;r<i.length;r++){const s=e[r>>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(s))}return decodeURIComponent(escape(n.join("")))}catch{throw new Error("Malformed UTF-8 data")}}function YPt(i){const e=[];let t=i.length;t%2!==0&&(i=F_(i,t+1)),t=i.length;for(let n=0;n<t;n+=2)e.push(parseInt(i.substr(n,2),16));return e}function XPt(i){const e=k2.decodePointHex(i);if(!e)return!1;const t=e.getX();return e.getY().square().equals(t.multiply(t.square()).add(t.multiply(k2.a)).add(k2.b))}function QPt(i,e){const t=k2.decodePointHex(i);if(!t)return!1;const n=k2.decodePointHex(e);return n?t.equals(n):!1}var KPt={getGlobalCurve:jPt,generateEcparam:QSe,generateKeyPairHex:WPt,compressPublicKeyHex:UPt,utf8ToHex:qPt,leftPad:F_,arrayToHex:GPt,arrayToUtf8:ZPt,hexToArray:YPt,verifyPublicKey:XPt,comparePublicKeyHex:QPt};const Hc=new Uint32Array(68),tee=new Uint32Array(64);function Hl(i,e){const t=e&31;return i<<t|i>>>32-t}function KSe(i,e){const t=[];for(let n=i.length-1;n>=0;n--)t[n]=(i[n]^e[n])&255;return t}function JPt(i){return i^Hl(i,9)^Hl(i,17)}function eNt(i){return i^Hl(i,15)^Hl(i,23)}function PC(i){let e=i.length*8,t=e%512;t=t>=448?512-t%448-1:448-t-1;const n=new Array((t-7)/8),r=new Array(8);for(let u=0,d=n.length;u<d;u++)n[u]=0;for(let u=0,d=r.length;u<d;u++)r[u]=0;e=e.toString(2);for(let u=7;u>=0;u--)if(e.length>8){const d=e.length-8;r[u]=parseInt(e.substr(d),2),e=e.substr(0,d)}else e.length>0&&(r[u]=parseInt(e,2),e="");const s=new Uint8Array([...i,128,...n,...r]),o=new DataView(s.buffer,0),a=s.length/64,l=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let u=0;u<a;u++){Hc.fill(0),tee.fill(0);const d=16*u;for(let E=0;E<16;E++)Hc[E]=o.getUint32((d+E)*4,!1);for(let E=16;E<68;E++)Hc[E]=eNt(Hc[E-16]^Hc[E-9]^Hl(Hc[E-3],15))^Hl(Hc[E-13],7)^Hc[E-6];for(let E=0;E<64;E++)tee[E]=Hc[E]^Hc[E+4];const h=2043430169,f=2055708042;let g=l[0],p=l[1],m=l[2],_=l[3],v=l[4],w=l[5],y=l[6],S=l[7],x,O,L,T,N;for(let E=0;E<64;E++)N=E>=0&&E<=15?h:f,x=Hl(Hl(g,12)+v+Hl(N,E),7),O=x^Hl(g,12),L=(E>=0&&E<=15?g^p^m:g&p|g&m|p&m)+_+O+tee[E],T=(E>=0&&E<=15?v^w^y:v&w|~v&y)+S+x+Hc[E],_=m,m=Hl(p,9),p=g,g=L,S=y,y=Hl(w,19),w=v,v=JPt(T);l[0]^=g,l[1]^=p,l[2]^=m,l[3]^=_,l[4]^=v,l[5]^=w,l[6]^=y,l[7]^=S}const c=[];for(let u=0,d=l.length;u<d;u++){const h=l[u];c.push((h&4278190080)>>>24,(h&16711680)>>>16,(h&65280)>>>8,h&255)}return c}const V_=64,JSe=new Uint8Array(V_),e9e=new Uint8Array(V_);for(let i=0;i<V_;i++)JSe[i]=54,e9e[i]=92;function tNt(i,e){for(e.length>V_&&(e=PC(e));e.length<V_;)e.push(0);const t=KSe(e,JSe),n=KSe(e,e9e),r=PC([...t,...i]);return PC([...n,...r])}var t9e={sm3:PC,hmac:tNt};const{BigInteger:al}=TC,{encodeDer:nNt,decodeDer:iNt}=FPt,mn=KPt,E2=t9e.sm3,{G:Cp,curve:n9e,n:T2}=mn.generateEcparam(),i9e=0;function rNt(i,e,t=1){i=typeof i=="string"?mn.hexToArray(mn.utf8ToHex(i)):Array.prototype.slice.call(i),e=mn.getGlobalCurve().decodePointHex(e);const n=mn.generateKeyPairHex(),r=new al(n.privateKey,16);let s=n.publicKey;s.length>128&&(s=s.substr(s.length-128));const o=e.multiply(r),a=mn.hexToArray(mn.leftPad(o.getX().toBigInteger().toRadix(16),64)),l=mn.hexToArray(mn.leftPad(o.getY().toBigInteger().toRadix(16),64)),c=mn.arrayToHex(E2([].concat(a,i,l)));let u=1,d=0,h=[];const f=[].concat(a,l),g=()=>{h=E2([...f,u>>24&255,u>>16&255,u>>8&255,u&255]),u++,d=0};g();for(let m=0,_=i.length;m<_;m++)d===h.length&&g(),i[m]^=h[d++]&255;const p=mn.arrayToHex(i);return t===i9e?s+p+c:s+c+p}function sNt(i,e,t=1,{output:n="string"}={}){e=new al(e,16);let r=i.substr(128,64),s=i.substr(192);t===i9e&&(r=i.substr(i.length-64),s=i.substr(128,i.length-128-64));const o=mn.hexToArray(s),l=mn.getGlobalCurve().decodePointHex("04"+i.substr(0,128)).multiply(e),c=mn.hexToArray(mn.leftPad(l.getX().toBigInteger().toRadix(16),64)),u=mn.hexToArray(mn.leftPad(l.getY().toBigInteger().toRadix(16),64));let d=1,h=0,f=[];const g=[].concat(c,u),p=()=>{f=E2([...g,d>>24&255,d>>16&255,d>>8&255,d&255]),d++,h=0};p();for(let _=0,v=o.length;_<v;_++)h===f.length&&p(),o[_]^=f[h++]&255;return mn.arrayToHex(E2([].concat(c,o,u)))===r.toLowerCase()?n==="array"?o:mn.arrayToUtf8(o):n==="array"?[]:""}function oNt(i,e,{pointPool:t,der:n,hash:r,publicKey:s,userId:o}={}){let a=typeof i=="string"?mn.utf8ToHex(i):mn.arrayToHex(i);r&&(s=s||s9e(e),a=r9e(a,s,o));const l=new al(e,16),c=new al(a,16);let u=null,d=null,h=null;do{do{let f;t&&t.length?f=t.pop():f=o9e(),u=f.k,d=c.add(f.x1).mod(T2)}while(d.equals(al.ZERO)||d.add(u).equals(T2));h=l.add(al.ONE).modInverse(T2).multiply(u.subtract(d.multiply(l))).mod(T2)}while(h.equals(al.ZERO));return n?nNt(d,h):mn.leftPad(d.toString(16),64)+mn.leftPad(h.toString(16),64)}function aNt(i,e,t,{der:n,hash:r,userId:s}={}){let o=typeof i=="string"?mn.utf8ToHex(i):mn.arrayToHex(i);r&&(o=r9e(o,t,s));let a,l;if(n){const g=iNt(e);a=g.r,l=g.s}else a=new al(e.substring(0,64),16),l=new al(e.substring(64),16);const c=n9e.decodePointHex(t),u=new al(o,16),d=a.add(l).mod(T2);if(d.equals(al.ZERO))return!1;const h=Cp.multiply(l).add(c.multiply(d)),f=u.add(h.getX().toBigInteger()).mod(T2);return a.equals(f)}function r9e(i,e,t="1234567812345678"){t=mn.utf8ToHex(t);const n=mn.leftPad(Cp.curve.a.toBigInteger().toRadix(16),64),r=mn.leftPad(Cp.curve.b.toBigInteger().toRadix(16),64),s=mn.leftPad(Cp.getX().toBigInteger().toRadix(16),64),o=mn.leftPad(Cp.getY().toBigInteger().toRadix(16),64);let a,l;if(e.length===128)a=e.substr(0,64),l=e.substr(64,64);else{const h=Cp.curve.decodePointHex(e);a=mn.leftPad(h.getX().toBigInteger().toRadix(16),64),l=mn.leftPad(h.getY().toBigInteger().toRadix(16),64)}const c=mn.hexToArray(t+n+r+s+o+a+l),u=t.length*4;c.unshift(u&255),c.unshift(u>>8&255);const d=E2(c);return mn.arrayToHex(E2(d.concat(mn.hexToArray(i))))}function s9e(i){const e=Cp.multiply(new al(i,16)),t=mn.leftPad(e.getX().toBigInteger().toString(16),64),n=mn.leftPad(e.getY().toBigInteger().toString(16),64);return"04"+t+n}function o9e(){const i=mn.generateKeyPairHex(),e=n9e.decodePointHex(i.publicKey);return i.k=new al(i.privateKey,16),i.x1=e.getX().toBigInteger(),i}var lNt={generateKeyPairHex:mn.generateKeyPairHex,compressPublicKeyHex:mn.compressPublicKeyHex,comparePublicKeyHex:mn.comparePublicKeyHex,doEncrypt:rNt,doDecrypt:sNt,doSignature:oNt,doVerifySignature:aNt,getPublicKeyFromPrivateKey:s9e,getPoint:o9e,verifyPublicKey:mn.verifyPublicKey};const{sm3:cNt,hmac:uNt}=t9e;function dNt(i,e){return i.length>=e?i:new Array(e-i.length+1).join("0")+i}function a9e(i){return i.map(e=>(e=e.toString(16),e.length===1?"0"+e:e)).join("")}function hNt(i){const e=[];let t=i.length;t%2!==0&&(i=dNt(i,t+1)),t=i.length;for(let n=0;n<t;n+=2)e.push(parseInt(i.substr(n,2),16));return e}function fNt(i){const e=[];for(let t=0,n=i.length;t<n;t++){const r=i.codePointAt(t);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>>6),e.push(128|r&63);else if(r<=55295||r>=57344&&r<=65535)e.push(224|r>>>12),e.push(128|r>>>6&63),e.push(128|r&63);else if(r>=65536&&r<=1114111)t++,e.push(240|r>>>18&28),e.push(128|r>>>12&63),e.push(128|r>>>6&63),e.push(128|r&63);else throw e.push(r),new Error("input is not supported")}return e}var gNt=function(i,e){if(i=typeof i=="string"?fNt(i):Array.prototype.slice.call(i),e){if((e.mode||"hmac")!=="hmac")throw new Error("invalid mode");let n=e.key;if(!n)throw new Error("invalid key");return n=typeof n=="string"?hNt(n):Array.prototype.slice.call(n),a9e(uNt(i,n))}return a9e(cNt(i))};const Zf=0,pNt=32,xp=16,NC=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],DC=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function nee(i){const e=[];for(let t=0,n=i.length;t<n;t+=2)e.push(parseInt(i.substr(t,2),16));return e}function mNt(i){return i.map(e=>(e=e.toString(16),e.length===1?"0"+e:e)).join("")}function bNt(i){const e=[];for(let t=0,n=i.length;t<n;t++){const r=i.codePointAt(t);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>>6),e.push(128|r&63);else if(r<=55295||r>=57344&&r<=65535)e.push(224|r>>>12),e.push(128|r>>>6&63),e.push(128|r&63);else if(r>=65536&&r<=1114111)t++,e.push(240|r>>>18&28),e.push(128|r>>>12&63),e.push(128|r>>>6&63),e.push(128|r&63);else throw e.push(r),new Error("input is not supported")}return e}function _Nt(i){const e=[];for(let t=0,n=i.length;t<n;t++)i[t]>=240&&i[t]<=247?(e.push(String.fromCodePoint(((i[t]&7)<<18)+((i[t+1]&63)<<12)+((i[t+2]&63)<<6)+(i[t+3]&63))),t+=3):i[t]>=224&&i[t]<=239?(e.push(String.fromCodePoint(((i[t]&15)<<12)+((i[t+1]&63)<<6)+(i[t+2]&63))),t+=2):i[t]>=192&&i[t]<=223?(e.push(String.fromCodePoint(((i[t]&31)<<6)+(i[t+1]&63))),t++):e.push(String.fromCodePoint(i[t]));return e.join("")}function P2(i,e){const t=e&31;return i<<t|i>>>32-t}function Yf(i){return(NC[i>>>24&255]&255)<<24|(NC[i>>>16&255]&255)<<16|(NC[i>>>8&255]&255)<<8|NC[i&255]&255}function IC(i){return i^P2(i,2)^P2(i,10)^P2(i,18)^P2(i,24)}function AC(i){return i^P2(i,13)^P2(i,23)}function vNt(i,e,t){const n=new Array(4),r=new Array(4);for(let s=0;s<4;s++)r[0]=i[4*s]&255,r[1]=i[4*s+1]&255,r[2]=i[4*s+2]&255,r[3]=i[4*s+3]&255,n[s]=r[0]<<24|r[1]<<16|r[2]<<8|r[3];for(let s=0,o;s<32;s+=4)o=n[1]^n[2]^n[3]^t[s+0],n[0]^=IC(Yf(o)),o=n[2]^n[3]^n[0]^t[s+1],n[1]^=IC(Yf(o)),o=n[3]^n[0]^n[1]^t[s+2],n[2]^=IC(Yf(o)),o=n[0]^n[1]^n[2]^t[s+3],n[3]^=IC(Yf(o));for(let s=0;s<16;s+=4)e[s]=n[3-s/4]>>>24&255,e[s+1]=n[3-s/4]>>>16&255,e[s+2]=n[3-s/4]>>>8&255,e[s+3]=n[3-s/4]&255}function yNt(i,e,t){const n=new Array(4),r=new Array(4);for(let s=0;s<4;s++)r[0]=i[0+4*s]&255,r[1]=i[1+4*s]&255,r[2]=i[2+4*s]&255,r[3]=i[3+4*s]&255,n[s]=r[0]<<24|r[1]<<16|r[2]<<8|r[3];n[0]^=2746333894,n[1]^=1453994832,n[2]^=1736282519,n[3]^=2993693404;for(let s=0,o;s<32;s+=4)o=n[1]^n[2]^n[3]^DC[s+0],e[s+0]=n[0]^=AC(Yf(o)),o=n[2]^n[3]^n[0]^DC[s+1],e[s+1]=n[1]^=AC(Yf(o)),o=n[3]^n[0]^n[1]^DC[s+2],e[s+2]=n[2]^=AC(Yf(o)),o=n[0]^n[1]^n[2]^DC[s+3],e[s+3]=n[3]^=AC(Yf(o));if(t===Zf)for(let s=0,o;s<16;s++)o=e[s],e[s]=e[31-s],e[31-s]=o}function l9e(i,e,t,{padding:n="pkcs#7",mode:r,iv:s=[],output:o="string"}={}){if(r==="cbc"&&(typeof s=="string"&&(s=nee(s)),s.length!==128/8))throw new Error("iv is invalid");if(typeof e=="string"&&(e=nee(e)),e.length!==128/8)throw new Error("key is invalid");if(typeof i=="string"?t!==Zf?i=bNt(i):i=nee(i):i=[...i],(n==="pkcs#5"||n==="pkcs#7")&&t!==Zf){const h=xp-i.length%xp;for(let f=0;f<h;f++)i.push(h)}const a=new Array(pNt);yNt(e,a,t);const l=[];let c=s,u=i.length,d=0;for(;u>=xp;){const h=i.slice(d,d+16),f=new Array(16);if(r==="cbc")for(let g=0;g<xp;g++)t!==Zf&&(h[g]^=c[g]);vNt(h,f,a);for(let g=0;g<xp;g++)r==="cbc"&&t===Zf&&(f[g]^=c[g]),l[d+g]=f[g];r==="cbc"&&(t!==Zf?c=f:c=h),u-=xp,d+=xp}if((n==="pkcs#5"||n==="pkcs#7")&&t===Zf){const h=l.length,f=l[h-1];for(let g=1;g<=f;g++)if(l[h-g]!==f)throw new Error("padding is invalid");l.splice(h-f,f)}return o!=="array"?t!==Zf?mNt(l):_Nt(l):l}var wNt={encrypt(i,e,t){return l9e(i,e,1,t)},decrypt(i,e,t){return l9e(i,e,0,t)}},iee={sm2:lNt,sm3:gNt,sm4:wNt};const SNt={name:"PaasHeader",mounted(){this.$store.loginFlag&&this.systems.length==0&&this.$get("/system/sysdevices/findByDeviceType",{deviceType:"1"}).then(i=>{this.$store.setSystems(i.data.data),this.$store.setCurrentSystem(this.systems[0]),this.selectedCard=this.selectedCard===0})},computed:{system(){return this.$store.header.system},systems(){return this.$store.header.systems}},data(){return{isLoading:!1,selectedCard:null,opend:!1,form:{},rules:{password:[{required:!0,message:"请输入原密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"}]}}},methods:{handleClick(i,e){console.log(i),this.$store.setCurrentSystem(i),this.selectedCard=this.selectedCard===e?null:e},handleOk(){const i=iee.sm3(this.form.newPassword).toUpperCase(),e=iee.sm3(this.form.confirmPassword).toUpperCase(),t=iee.sm3(this.form.password).toUpperCase();if(i!=e){Qn.message.warn("新密码与确认密码不正确!",2.5);return}this.$post("/system/sysusers/updatePassword",{newPassword:i,password:t}).then(n=>{let r=n.data;r.code==this.$success?(Qn.message.success("密码修改成功!",2.5),this.opend=!1,this.submitLogout()):Qn.message.error(r.msg,2.5)})},handleCancel(i){Qn.message.warn(i.errorFields[0].errors,2.5)},logout(){let i=this;Qn.Modal.confirm({title:"确定退出登录?",okText:"确定",cancelText:"取消",onOk(){i.submitLogout()},onCancel(){}})},submitLogout(){this.$store.setCurrentSystem({}),this.$store.setSystems([]),this.$store.setIsIframe(!1),this.$store.setIframeUrl(""),this.$store.setMenuData([]),this.$delete("/system/logout",{}).then(i=>{i.data.code==this.$success&&(this.$store.setLoginFlag(!1),this.$store.setLoginInfo({}),location.href="/")})}}},CNt={style:{color:"white"}},xNt={class:"card-grid"},ONt=["onClick"],LNt={class:"card-content"},kNt={class:"card-image"},ENt=["src"],TNt={class:"card-text"};function PNt(i,e,t,n,r,s){const o=C.resolveComponent("a-flex"),a=C.resolveComponent("a-col"),l=C.resolveComponent("MenuOutlined"),c=C.resolveComponent("a-popover"),u=C.resolveComponent("PoweroffOutlined"),d=C.resolveComponent("a-menu-item"),h=C.resolveComponent("a-menu-divider"),f=C.resolveComponent("a-menu"),g=C.resolveComponent("a-dropdown"),p=C.resolveComponent("a-row"),m=C.resolveComponent("a-layout-header"),_=C.resolveComponent("a-input"),v=C.resolveComponent("a-form-item"),w=C.resolveComponent("a-form"),y=C.resolveComponent("a-modal");return C.openBlock(),C.createElementBlock(C.Fragment,null,[C.createVNode(m,{class:"header-style"},{default:C.withCtx(()=>[C.createVNode(p,null,{default:C.withCtx(()=>[C.createVNode(a,{span:12},{default:C.withCtx(()=>[C.createVNode(o,{justify:"flex-start",align:"center"},{default:C.withCtx(()=>[C.createElementVNode("h3",CNt,[C.createElementVNode("b",null,C.toDisplayString(s.system.deviceName)+"【"+C.toDisplayString(this.$store.loginInfo.loginName)+"】",1)])]),_:1})]),_:1}),C.createVNode(a,{span:12},{default:C.withCtx(()=>[C.createVNode(o,{justify:"flex-end",align:"center"},{default:C.withCtx(()=>[C.createVNode(c,{placement:"bottomRight"},{content:C.withCtx(()=>[C.createElementVNode("div",xNt,[(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(s.systems,(S,x)=>(C.openBlock(),C.createElementBlock("div",{class:C.normalizeClass(["card-container",{selected:r.selectedCard===x}]),key:x,onClick:O=>s.handleClick(S,x)},[C.createElementVNode("div",LNt,[C.createElementVNode("div",kNt,[C.createElementVNode("img",{src:S.logo||"https://aliyuncdn.antdv.com/logo.png",alt:"logo"},null,8,ENt)]),C.createElementVNode("div",TNt,C.toDisplayString(S.deviceName),1)])],10,ONt))),128))])]),title:C.withCtx(()=>e[6]||(e[6]=[C.createElementVNode("span",null,"应用中心",-1)])),default:C.withCtx(()=>[C.createVNode(l,{class:"icon-button"})]),_:1}),C.createVNode(g,null,{overlay:C.withCtx(()=>[C.createVNode(f,null,{default:C.withCtx(()=>[C.createVNode(d,null,{default:C.withCtx(()=>[C.createElementVNode("a",{onClick:e[0]||(e[0]=S=>r.opend=!0)},"修改密码")]),_:1}),C.createVNode(h),C.createVNode(d,null,{default:C.withCtx(()=>[C.createElementVNode("a",{onClick:e[1]||(e[1]=(...S)=>s.logout&&s.logout(...S))},"退出登录")]),_:1})]),_:1})]),default:C.withCtx(()=>[C.createVNode(u,{class:"icon-button"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),C.createVNode(y,{open:r.opend,"onUpdate:open":e[5]||(e[5]=S=>r.opend=S),title:"修改密码",onOk:s.handleOk,onCancel:s.handleCancel,"confirm-loading":r.isLoading},{default:C.withCtx(()=>[C.createVNode(w,{model:r.form,rules:r.rules,"label-col":{span:4},"wrapper-col":{span:20}},{default:C.withCtx(()=>[C.createVNode(v,{label:"原始密码",name:"password"},{default:C.withCtx(()=>[C.createVNode(_,{value:r.form.password,"onUpdate:value":e[2]||(e[2]=S=>r.form.password=S),type:"password",placeholder:"请输入原密码"},null,8,["value"])]),_:1}),C.createVNode(v,{label:"新密码",name:"newPassword"},{default:C.withCtx(()=>[C.createVNode(_,{value:r.form.newPassword,"onUpdate:value":e[3]||(e[3]=S=>r.form.newPassword=S),type:"password",placeholder:"请输入新密码"},null,8,["value"])]),_:1}),C.createVNode(v,{label:"确认密码",name:"confirmPassword"},{default:C.withCtx(()=>[C.createVNode(_,{value:r.form.confirmPassword,"onUpdate:value":e[4]||(e[4]=S=>r.form.confirmPassword=S),type:"password",placeholder:"请再次输入新密码"},null,8,["value"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["open","onOk","onCancel","confirm-loading"])],64)}const NNt=[Object.assign({inject:{parentMethods:{from:"parentMethods",default:()=>{}}},name:"PaasForm",props:{refName:{default:"form"},id:{default:"id"},autoPk:{default:!0},model:{type:Object,required:!0},vRules:{type:Object},labelWidth:{default:3},size:{default:24},formatData:{type:Function,default:i=>i},closeGo:{default:-1,type:Number}},created(){this.add?this.addUrl=this.add:this.addUrl=this.$store.menus.current,this.edit?this.editUrl=this.edit:this.editUrl=this.$store.menus.current+"/edit"},data(){return{addUrl:"",editUrl:"",confirmFlag:!1}},computed:{see(){return this.$store.forms.see},action(){return this.$store.forms.action}},methods:{onFinishFailed(i){Qn.message.warn(i.errorFields[0].errors,2.5)},submitForm(i){if(this.confirmFlag)return;this.confirmFlag=!0,setTimeout(()=>{this.confirmFlag=!this.confirmFlag},2e3);var e=this.$parent.submitForm;if(e||(e=this.parentMethods&&this.parentMethods.submitForm),e&&e instanceof Function){e(this.model);return}let t=this.formatData(this.model);this.action=="add"?this.addClick(t):this.action=="edit"&&this.editClick(t)},addClick(i){this.autoPk&&(i.id=""),this.$post(this.addUrl,i).then(e=>{let t=e.data;this.callback?this.callback(t):this.$dyAlert(t,!0)})},editClick(i){this.$put(this.editUrl,i).then(e=>{let t=e.data;this.callback?this.callback(t):this.$dyAlert(t,!0)})},close(){this.$router.go(this.closeGo)}}},{setup(i){return(e,t)=>{const n=C.resolveComponent("a-row"),r=C.resolveComponent("a-divider"),s=C.resolveComponent("a-button"),o=C.resolveComponent("a-flex"),a=C.resolveComponent("a-form");return C.openBlock(),C.createBlock(a,{ref:i.refName,model:i.model,rules:i.vRules,onFinish:e.submitForm,onFinishFailed:e.onFinishFailed,"label-col":{span:i.labelWidth},"wrapper-col":{span:24-i.labelWidth}},{default:C.withCtx(()=>[C.createVNode(n,{gutter:16},{default:C.withCtx(()=>[C.renderSlot(e.$slots,"form-content")]),_:3}),C.createVNode(r,{style:{"margin-top":"16px","margin-bottom":"8px"}}),C.createVNode(o,{gap:"small",wrap:"wrap",justify:"flex-end",align:"center"},{default:C.withCtx(()=>[C.createVNode(s,{type:"default",onClick:e.close},{icon:C.withCtx(()=>[C.createVNode(C.unref(bC))]),default:C.withCtx(()=>[t[0]||(t[0]=C.createTextVNode(" 关闭 "))]),_:1},8,["onClick"]),e.see?C.createCommentVNode("",!0):(C.openBlock(),C.createBlock(s,{key:0,type:"primary","html-type":"submit"},{icon:C.withCtx(()=>[C.createVNode(C.unref(mC))]),default:C.withCtx(()=>[t[1]||(t[1]=C.createTextVNode(" 确认 "))]),_:1}))]),_:1})]),_:3},8,["model","rules","onFinish","onFinishFailed","label-col","wrapper-col"])}}}),APt,NPt,Glt,Xlt,Cr(SNt,[["render",PNt],["__scopeId","data-v-676bc32b"]]),Jlt,ict,oct,cct,hct,pct,_ct,wct,$Tt,UTt,ZTt,ePt,QTt,aPt,OPt,EPt],DNt={install(i){NNt.forEach(e=>{i.component(e.name,e)})}};/*!-----------------------------------------------------------------------------
|
|
1264
|
+
or use v-on:ready="onReady(quill)" event instead.`},v=(E,P)=>i.contentType==="html"?x():i.contentType==="text"?y(E,P):t==null?void 0:t.getContents(E,P),w=(E,P="api")=>{const I=E||(i.contentType==="delta"?new SPt:"");i.contentType==="html"?O(I):i.contentType==="text"?S(I,P):t==null||t.setContents(I,P),c=a(I)},y=(E,P)=>{var I;return(I=t==null?void 0:t.getText(E,P))!==null&&I!==void 0?I:""},S=(E,P="api")=>{t==null||t.setText(E,P)},x=()=>{var E;return(E=t==null?void 0:t.root.innerHTML)!==null&&E!==void 0?E:""},O=E=>{t&&(t.root.innerHTML=E)},L=(E,P="api")=>{const I=t==null?void 0:t.clipboard.convert(E);I&&(t==null||t.setContents(I,P))},T=()=>{t==null||t.focus()},N=()=>{C.nextTick(()=>{var E;!e.slots.toolbar&&t&&((E=t.getModule("toolbar"))===null||E===void 0||E.container.remove()),s()})};return C.watch(()=>i.content,E=>{if(!t||!E||u(E))return;const P=t.getSelection();P&&C.nextTick(()=>t==null?void 0:t.setSelection(P)),w(E)},{deep:!0}),C.watch(()=>i.enable,E=>{t&&t.enable(E)}),{editor:r,getEditor:p,getToolbar:m,getQuill:_,getContents:v,setContents:w,getHTML:x,setHTML:O,pasteHTML:L,focus:T,getText:y,setText:S,reinit:N}},render(){var i,e;return[(e=(i=this.$slots).toolbar)===null||e===void 0?void 0:e.call(i),C.h("div",{ref:"editor",...this.$attrs})]}})},props:{modelValue:String,height:{default:350},readonly:{default:!1}},watch:{modelValue:{handler(i){this.htmlValue=i}}},computed:{see(){return this.$store.forms.see}},data(){return{htmlValue:this.modelValue,editorOption:{modules:{toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["image","video","link","table"]],syntax:{highlight:i=>hljs.highlightAuto(i).value},history:{delay:1e3,maxStack:50,userOnly:!0}},theme:"snow",language:"zh-CN"}}},methods:{getContent(){return this.quill.root.innerHTML.trim()},updateValue(i){this.$emit("update:modelValue",i)}}};function xPt(i,e,t,n,r,s){const o=C.resolveComponent("quill-editor");return C.openBlock(),C.createBlock(o,{ref:"editor",content:r.htmlValue,"onUpdate:content":[e[0]||(e[0]=a=>r.htmlValue=a),e[1]||(e[1]=a=>s.updateValue(a))],options:r.editorOption,contentType:"html",style:C.normalizeStyle("height: "+this.height+"px;"),readOnly:s.see||t.readonly},null,8,["content","options","style","readOnly"])}const OPt=Cr(CPt,[["render",xPt],["__scopeId","data-v-31e00fde"]]),LPt={name:"PaasTreePanel",props:{multiple:{default:!1},fieldNames:{type:Object,default:{children:"children",title:"label",key:"value"}},disabled:{default:!1},open:{type:Boolean,default:!0},params:{},url:"",checkable:{type:Boolean,default:!1},modelValue:{},height:{type:Number,default:600},listToTree:{type:Boolean,default:!0}},data(){return{value:null,datas:[]}},computed:{see(){return this.$store.forms.see}},watch:{modelValue(i){i==null&&(i="");let e=new Array;Array.isArray(i)?(i.forEach(t=>{t!=""&&e.push(String(t))}),this.value=e):i instanceof String&&(i!=null&&i.includes(","))?(i.spit(",").forEach(t=>{t!=""&&e.push(String(t))}),this.value=e):this.multiple&&i?this.value=[String(i)]:this.value=String(i),this.$emit("update:modelValue",this.value)}},mounted(){this.getTreeData()},methods:{getTreeData(){this.$post(this.url,{page:{current:1,size:1e6},...this.params}).then(i=>{this.listToTree?this.datas=this.$listToTree(i.data.data.rows):this.datas=i.data.data.rows})}}};function kPt(i,e,t,n,r,s){const o=C.resolveComponent("a-tree");return C.openBlock(),C.createBlock(o,{"tree-data":r.datas,selectedKeys:r.value,"onUpdate:selectedKeys":e[0]||(e[0]=a=>r.value=a),fieldNames:t.fieldNames,checkable:t.checkable,showLine:"",height:t.height,disabled:s.see||t.disabled,"tree-default-expand-all":t.open},null,8,["tree-data","selectedKeys","fieldNames","checkable","height","disabled","tree-default-expand-all"])}const EPt=Cr(LPt,[["render",kPt]]),TPt={name:"PaasQueryBar",props:{showMore:{type:Number,default:-1},model:{type:Object,required:!0}},setup(i,{emit:e}){const t=C.getCurrentInstance(),n=C.ref(i.showMore),r=C.computed({get:()=>i.model,set:l=>e("update:model",l)});return C.watch(()=>i.showMore,l=>{n.value=l}),{toggleMore:()=>{n.value=n.value===1?0:1,e("update:showMore",n.value)},query:()=>{t.appContext.config.globalProperties.$store.setQueryData(JSON.parse(JSON.stringify(r.value))),t.appContext.config.globalProperties.$bus.emit("loadData")},resetData:()=>{const l=c=>{for(let u in c)if(typeof c[u]=="object"&&c[u]!==null)c[u]=Array.isArray(c[u])?[]:{},l(c[u]);else switch(typeof c[u]){case"string":c[u]=null;break;case"number":c[u]=null;break;case"boolean":c[u]=!1;break}};l(r.value),e("update:model",{...r.value})},internalShowMore:n,model:r}}};function PPt(i,e,t,n,r,s){const o=C.resolveComponent("SearchOutlined"),a=C.resolveComponent("a-button"),l=C.resolveComponent("ClearOutlined"),c=C.resolveComponent("a-flex");return C.openBlock(),C.createBlock(c,{gap:"small",wrap:"wrap"},{default:C.withCtx(()=>[C.createVNode(a,{type:"primary",onClick:n.query,ghost:""},{icon:C.withCtx(()=>[C.createVNode(o)]),default:C.withCtx(()=>[e[0]||(e[0]=C.createTextVNode(" 查询 "))]),_:1},8,["onClick"]),C.createVNode(a,{type:"default",onClick:n.resetData},{icon:C.withCtx(()=>[C.createVNode(l)]),default:C.withCtx(()=>[e[1]||(e[1]=C.createTextVNode(" 重置 "))]),_:1},8,["onClick"]),t.showMore!==-1?(C.openBlock(),C.createBlock(a,{key:0,type:"link",onClick:n.toggleMore},{default:C.withCtx(()=>[C.createTextVNode(C.toDisplayString(n.internalShowMore===1?"收起":"更多"),1)]),_:1},8,["onClick"])):C.createCommentVNode("",!0)]),_:1})}const NPt=Cr(TPt,[["render",PPt]]),DPt=C.defineComponent({name:"PaasIcon",props:{icon:{type:String,required:!0}},setup(i){const e=C.ref(null);return C.watch(()=>i.icon,t=>{e.value=HTt[t]},{immediate:!0}),{iconComponent:e}}});function IPt(i,e,t,n,r,s){return i.iconComponent?(C.openBlock(),C.createBlock(C.resolveDynamicComponent(i.iconComponent),C.normalizeProps(C.mergeProps({key:0},i.$attrs)),null,16)):C.createCommentVNode("",!0)}const APt=Cr(DPt,[["render",IPt]]);var jSe={exports:{}};(function(i,e){(function(){var t,n=0xdeadbeefcafe,r=(n&16777215)==15715070;function s(F,$,Z){F!=null&&(typeof F=="number"?this.fromNumber(F,$,Z):$==null&&typeof F!="string"?this.fromString(F,256):this.fromString(F,$))}function o(){return new s(null)}function a(F,$,Z,me,$e,qe){for(;--qe>=0;){var ht=$*this[F++]+Z[me]+$e;$e=Math.floor(ht/67108864),Z[me++]=ht&67108863}return $e}function l(F,$,Z,me,$e,qe){for(var ht=$&32767,mt=$>>15;--qe>=0;){var wn=this[F]&32767,or=this[F++]>>15,Qs=mt*wn+or*ht;wn=ht*wn+((Qs&32767)<<15)+Z[me]+($e&1073741823),$e=(wn>>>30)+(Qs>>>15)+mt*or+($e>>>30),Z[me++]=wn&1073741823}return $e}function c(F,$,Z,me,$e,qe){for(var ht=$&16383,mt=$>>14;--qe>=0;){var wn=this[F]&16383,or=this[F++]>>14,Qs=mt*wn+or*ht;wn=ht*wn+((Qs&16383)<<14)+Z[me]+$e,$e=(wn>>28)+(Qs>>14)+mt*or,Z[me++]=wn&268435455}return $e}var u=typeof navigator<"u";u&&r&&navigator.appName=="Microsoft Internet Explorer"?(s.prototype.am=l,t=30):u&&r&&navigator.appName!="Netscape"?(s.prototype.am=a,t=26):(s.prototype.am=c,t=28),s.prototype.DB=t,s.prototype.DM=(1<<t)-1,s.prototype.DV=1<<t;var d=52;s.prototype.FV=Math.pow(2,d),s.prototype.F1=d-t,s.prototype.F2=2*t-d;var h="0123456789abcdefghijklmnopqrstuvwxyz",f=new Array,g,p;for(g=48,p=0;p<=9;++p)f[g++]=p;for(g=97,p=10;p<36;++p)f[g++]=p;for(g=65,p=10;p<36;++p)f[g++]=p;function m(F){return h.charAt(F)}function _(F,$){var Z=f[F.charCodeAt($)];return Z??-1}function v(F){for(var $=this.t-1;$>=0;--$)F[$]=this[$];F.t=this.t,F.s=this.s}function w(F){this.t=1,this.s=F<0?-1:0,F>0?this[0]=F:F<-1?this[0]=F+this.DV:this.t=0}function y(F){var $=o();return $.fromInt(F),$}function S(F,$){var Z;if($==16)Z=4;else if($==8)Z=3;else if($==256)Z=8;else if($==2)Z=1;else if($==32)Z=5;else if($==4)Z=2;else{this.fromRadix(F,$);return}this.t=0,this.s=0;for(var me=F.length,$e=!1,qe=0;--me>=0;){var ht=Z==8?F[me]&255:_(F,me);if(ht<0){F.charAt(me)=="-"&&($e=!0);continue}$e=!1,qe==0?this[this.t++]=ht:qe+Z>this.DB?(this[this.t-1]|=(ht&(1<<this.DB-qe)-1)<<qe,this[this.t++]=ht>>this.DB-qe):this[this.t-1]|=ht<<qe,qe+=Z,qe>=this.DB&&(qe-=this.DB)}Z==8&&F[0]&128&&(this.s=-1,qe>0&&(this[this.t-1]|=(1<<this.DB-qe)-1<<qe)),this.clamp(),$e&&s.ZERO.subTo(this,this)}function x(){for(var F=this.s&this.DM;this.t>0&&this[this.t-1]==F;)--this.t}function O(F){if(this.s<0)return"-"+this.negate().toString(F);var $;if(F==16)$=4;else if(F==8)$=3;else if(F==2)$=1;else if(F==32)$=5;else if(F==4)$=2;else return this.toRadix(F);var Z=(1<<$)-1,me,$e=!1,qe="",ht=this.t,mt=this.DB-ht*this.DB%$;if(ht-- >0)for(mt<this.DB&&(me=this[ht]>>mt)>0&&($e=!0,qe=m(me));ht>=0;)mt<$?(me=(this[ht]&(1<<mt)-1)<<$-mt,me|=this[--ht]>>(mt+=this.DB-$)):(me=this[ht]>>(mt-=$)&Z,mt<=0&&(mt+=this.DB,--ht)),me>0&&($e=!0),$e&&(qe+=m(me));return $e?qe:"0"}function L(){var F=o();return s.ZERO.subTo(this,F),F}function T(){return this.s<0?this.negate():this}function N(F){var $=this.s-F.s;if($!=0)return $;var Z=this.t;if($=Z-F.t,$!=0)return this.s<0?-$:$;for(;--Z>=0;)if(($=this[Z]-F[Z])!=0)return $;return 0}function E(F){var $=1,Z;return(Z=F>>>16)!=0&&(F=Z,$+=16),(Z=F>>8)!=0&&(F=Z,$+=8),(Z=F>>4)!=0&&(F=Z,$+=4),(Z=F>>2)!=0&&(F=Z,$+=2),(Z=F>>1)!=0&&(F=Z,$+=1),$}function P(){return this.t<=0?0:this.DB*(this.t-1)+E(this[this.t-1]^this.s&this.DM)}function I(F,$){var Z;for(Z=this.t-1;Z>=0;--Z)$[Z+F]=this[Z];for(Z=F-1;Z>=0;--Z)$[Z]=0;$.t=this.t+F,$.s=this.s}function R(F,$){for(var Z=F;Z<this.t;++Z)$[Z-F]=this[Z];$.t=Math.max(this.t-F,0),$.s=this.s}function V(F,$){var Z=F%this.DB,me=this.DB-Z,$e=(1<<me)-1,qe=Math.floor(F/this.DB),ht=this.s<<Z&this.DM,mt;for(mt=this.t-1;mt>=0;--mt)$[mt+qe+1]=this[mt]>>me|ht,ht=(this[mt]&$e)<<Z;for(mt=qe-1;mt>=0;--mt)$[mt]=0;$[qe]=ht,$.t=this.t+qe+1,$.s=this.s,$.clamp()}function Q(F,$){$.s=this.s;var Z=Math.floor(F/this.DB);if(Z>=this.t){$.t=0;return}var me=F%this.DB,$e=this.DB-me,qe=(1<<me)-1;$[0]=this[Z]>>me;for(var ht=Z+1;ht<this.t;++ht)$[ht-Z-1]|=(this[ht]&qe)<<$e,$[ht-Z]=this[ht]>>me;me>0&&($[this.t-Z-1]|=(this.s&qe)<<$e),$.t=this.t-Z,$.clamp()}function ne(F,$){for(var Z=0,me=0,$e=Math.min(F.t,this.t);Z<$e;)me+=this[Z]-F[Z],$[Z++]=me&this.DM,me>>=this.DB;if(F.t<this.t){for(me-=F.s;Z<this.t;)me+=this[Z],$[Z++]=me&this.DM,me>>=this.DB;me+=this.s}else{for(me+=this.s;Z<F.t;)me-=F[Z],$[Z++]=me&this.DM,me>>=this.DB;me-=F.s}$.s=me<0?-1:0,me<-1?$[Z++]=this.DV+me:me>0&&($[Z++]=me),$.t=Z,$.clamp()}function de(F,$){var Z=this.abs(),me=F.abs(),$e=Z.t;for($.t=$e+me.t;--$e>=0;)$[$e]=0;for($e=0;$e<me.t;++$e)$[$e+Z.t]=Z.am(0,me[$e],$,$e,0,Z.t);$.s=0,$.clamp(),this.s!=F.s&&s.ZERO.subTo($,$)}function X(F){for(var $=this.abs(),Z=F.t=2*$.t;--Z>=0;)F[Z]=0;for(Z=0;Z<$.t-1;++Z){var me=$.am(Z,$[Z],F,2*Z,0,1);(F[Z+$.t]+=$.am(Z+1,2*$[Z],F,2*Z+1,me,$.t-Z-1))>=$.DV&&(F[Z+$.t]-=$.DV,F[Z+$.t+1]=1)}F.t>0&&(F[F.t-1]+=$.am(Z,$[Z],F,2*Z,0,1)),F.s=0,F.clamp()}function U(F,$,Z){var me=F.abs();if(!(me.t<=0)){var $e=this.abs();if($e.t<me.t){$!=null&&$.fromInt(0),Z!=null&&this.copyTo(Z);return}Z==null&&(Z=o());var qe=o(),ht=this.s,mt=F.s,wn=this.DB-E(me[me.t-1]);wn>0?(me.lShiftTo(wn,qe),$e.lShiftTo(wn,Z)):(me.copyTo(qe),$e.copyTo(Z));var or=qe.t,Qs=qe[or-1];if(Qs!=0){var Gr=Qs*(1<<this.F1)+(or>1?qe[or-2]>>this.F2:0),ea=this.FV/Gr,Xc=(1<<this.F1)/Gr,ta=1<<this.F2,So=Z.t,td=So-or,gl=$??o();for(qe.dlShiftTo(td,gl),Z.compareTo(gl)>=0&&(Z[Z.t++]=1,Z.subTo(gl,Z)),s.ONE.dlShiftTo(or,gl),gl.subTo(qe,qe);qe.t<or;)qe[qe.t++]=0;for(;--td>=0;){var Fa=Z[--So]==Qs?this.DM:Math.floor(Z[So]*ea+(Z[So-1]+ta)*Xc);if((Z[So]+=qe.am(0,Fa,Z,td,0,or))<Fa)for(qe.dlShiftTo(td,gl),Z.subTo(gl,Z);Z[So]<--Fa;)Z.subTo(gl,Z)}$!=null&&(Z.drShiftTo(or,$),ht!=mt&&s.ZERO.subTo($,$)),Z.t=or,Z.clamp(),wn>0&&Z.rShiftTo(wn,Z),ht<0&&s.ZERO.subTo(Z,Z)}}}function H(F){var $=o();return this.abs().divRemTo(F,null,$),this.s<0&&$.compareTo(s.ZERO)>0&&F.subTo($,$),$}function J(F){this.m=F}function G(F){return F.s<0||F.compareTo(this.m)>=0?F.mod(this.m):F}function ue(F){return F}function oe(F){F.divRemTo(this.m,null,F)}function K(F,$,Z){F.multiplyTo($,Z),this.reduce(Z)}function ce(F,$){F.squareTo($),this.reduce($)}J.prototype.convert=G,J.prototype.revert=ue,J.prototype.reduce=oe,J.prototype.mulTo=K,J.prototype.sqrTo=ce;function ve(){if(this.t<1)return 0;var F=this[0];if(!(F&1))return 0;var $=F&3;return $=$*(2-(F&15)*$)&15,$=$*(2-(F&255)*$)&255,$=$*(2-((F&65535)*$&65535))&65535,$=$*(2-F*$%this.DV)%this.DV,$>0?this.DV-$:-$}function ye(F){this.m=F,this.mp=F.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<F.DB-15)-1,this.mt2=2*F.t}function Me(F){var $=o();return F.abs().dlShiftTo(this.m.t,$),$.divRemTo(this.m,null,$),F.s<0&&$.compareTo(s.ZERO)>0&&this.m.subTo($,$),$}function st(F){var $=o();return F.copyTo($),this.reduce($),$}function ft(F){for(;F.t<=this.mt2;)F[F.t++]=0;for(var $=0;$<this.m.t;++$){var Z=F[$]&32767,me=Z*this.mpl+((Z*this.mph+(F[$]>>15)*this.mpl&this.um)<<15)&F.DM;for(Z=$+this.m.t,F[Z]+=this.m.am(0,me,F,$,0,this.m.t);F[Z]>=F.DV;)F[Z]-=F.DV,F[++Z]++}F.clamp(),F.drShiftTo(this.m.t,F),F.compareTo(this.m)>=0&&F.subTo(this.m,F)}function Ot(F,$){F.squareTo($),this.reduce($)}function Zt(F,$,Z){F.multiplyTo($,Z),this.reduce(Z)}ye.prototype.convert=Me,ye.prototype.revert=st,ye.prototype.reduce=ft,ye.prototype.mulTo=Zt,ye.prototype.sqrTo=Ot;function fn(){return(this.t>0?this[0]&1:this.s)==0}function Ei(F,$){if(F>4294967295||F<1)return s.ONE;var Z=o(),me=o(),$e=$.convert(this),qe=E(F)-1;for($e.copyTo(Z);--qe>=0;)if($.sqrTo(Z,me),(F&1<<qe)>0)$.mulTo(me,$e,Z);else{var ht=Z;Z=me,me=ht}return $.revert(Z)}function mi(F,$){var Z;return F<256||$.isEven()?Z=new J($):Z=new ye($),this.exp(F,Z)}s.prototype.copyTo=v,s.prototype.fromInt=w,s.prototype.fromString=S,s.prototype.clamp=x,s.prototype.dlShiftTo=I,s.prototype.drShiftTo=R,s.prototype.lShiftTo=V,s.prototype.rShiftTo=Q,s.prototype.subTo=ne,s.prototype.multiplyTo=de,s.prototype.squareTo=X,s.prototype.divRemTo=U,s.prototype.invDigit=ve,s.prototype.isEven=fn,s.prototype.exp=Ei,s.prototype.toString=O,s.prototype.negate=L,s.prototype.abs=T,s.prototype.compareTo=N,s.prototype.bitLength=P,s.prototype.mod=H,s.prototype.modPowInt=mi,s.ZERO=y(0),s.ONE=y(1);function Ie(){var F=o();return this.copyTo(F),F}function He(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function Je(){return this.t==0?this.s:this[0]<<24>>24}function at(){return this.t==0?this.s:this[0]<<16>>16}function ze(F){return Math.floor(Math.LN2*this.DB/Math.log(F))}function Bt(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Ft(F){if(F==null&&(F=10),this.signum()==0||F<2||F>36)return"0";var $=this.chunkSize(F),Z=Math.pow(F,$),me=y(Z),$e=o(),qe=o(),ht="";for(this.divRemTo(me,$e,qe);$e.signum()>0;)ht=(Z+qe.intValue()).toString(F).substr(1)+ht,$e.divRemTo(me,$e,qe);return qe.intValue().toString(F)+ht}function Ut(F,$){this.fromInt(0),$==null&&($=10);for(var Z=this.chunkSize($),me=Math.pow($,Z),$e=!1,qe=0,ht=0,mt=0;mt<F.length;++mt){var wn=_(F,mt);if(wn<0){F.charAt(mt)=="-"&&this.signum()==0&&($e=!0);continue}ht=$*ht+wn,++qe>=Z&&(this.dMultiply(me),this.dAddOffset(ht,0),qe=0,ht=0)}qe>0&&(this.dMultiply(Math.pow($,qe)),this.dAddOffset(ht,0)),$e&&s.ZERO.subTo(this,this)}function sr(F,$,Z){if(typeof $=="number")if(F<2)this.fromInt(1);else for(this.fromNumber(F,Z),this.testBit(F-1)||this.bitwiseTo(s.ONE.shiftLeft(F-1),qi,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime($);)this.dAddOffset(2,0),this.bitLength()>F&&this.subTo(s.ONE.shiftLeft(F-1),this);else{var me=new Array,$e=F&7;me.length=(F>>3)+1,$.nextBytes(me),$e>0?me[0]&=(1<<$e)-1:me[0]=0,this.fromString(me,256)}}function Hi(){var F=this.t,$=new Array;$[0]=this.s;var Z=this.DB-F*this.DB%8,me,$e=0;if(F-- >0)for(Z<this.DB&&(me=this[F]>>Z)!=(this.s&this.DM)>>Z&&($[$e++]=me|this.s<<this.DB-Z);F>=0;)Z<8?(me=(this[F]&(1<<Z)-1)<<8-Z,me|=this[--F]>>(Z+=this.DB-8)):(me=this[F]>>(Z-=8)&255,Z<=0&&(Z+=this.DB,--F)),me&128&&(me|=-256),$e==0&&(this.s&128)!=(me&128)&&++$e,($e>0||me!=this.s)&&($[$e++]=me);return $}function Tn(F){return this.compareTo(F)==0}function os(F){return this.compareTo(F)<0?this:F}function sn(F){return this.compareTo(F)>0?this:F}function Pn(F,$,Z){var me,$e,qe=Math.min(F.t,this.t);for(me=0;me<qe;++me)Z[me]=$(this[me],F[me]);if(F.t<this.t){for($e=F.s&this.DM,me=qe;me<this.t;++me)Z[me]=$(this[me],$e);Z.t=this.t}else{for($e=this.s&this.DM,me=qe;me<F.t;++me)Z[me]=$($e,F[me]);Z.t=F.t}Z.s=$(this.s,F.s),Z.clamp()}function as(F,$){return F&$}function Aa(F){var $=o();return this.bitwiseTo(F,as,$),$}function qi(F,$){return F|$}function Ys(F){var $=o();return this.bitwiseTo(F,qi,$),$}function Os(F,$){return F^$}function Ls(F){var $=o();return this.bitwiseTo(F,Os,$),$}function gn(F,$){return F&~$}function Yn(F){var $=o();return this.bitwiseTo(F,gn,$),$}function Xs(){for(var F=o(),$=0;$<this.t;++$)F[$]=this.DM&~this[$];return F.t=this.t,F.s=~this.s,F}function Zc(F){var $=o();return F<0?this.rShiftTo(-F,$):this.lShiftTo(F,$),$}function Ma(F){var $=o();return F<0?this.lShiftTo(-F,$):this.rShiftTo(F,$),$}function dl(F){if(F==0)return-1;var $=0;return F&65535||(F>>=16,$+=16),F&255||(F>>=8,$+=8),F&15||(F>>=4,$+=4),F&3||(F>>=2,$+=2),F&1||++$,$}function Ra(){for(var F=0;F<this.t;++F)if(this[F]!=0)return F*this.DB+dl(this[F]);return this.s<0?this.t*this.DB:-1}function Ul(F){for(var $=0;F!=0;)F&=F-1,++$;return $}function Yc(){for(var F=0,$=this.s&this.DM,Z=0;Z<this.t;++Z)F+=Ul(this[Z]^$);return F}function Nt(F){var $=Math.floor(F/this.DB);return $>=this.t?this.s!=0:(this[$]&1<<F%this.DB)!=0}function W(F,$){var Z=s.ONE.shiftLeft(F);return this.bitwiseTo(Z,$,Z),Z}function Y(F){return this.changeBit(F,qi)}function ee(F){return this.changeBit(F,gn)}function se(F){return this.changeBit(F,Os)}function he(F,$){for(var Z=0,me=0,$e=Math.min(F.t,this.t);Z<$e;)me+=this[Z]+F[Z],$[Z++]=me&this.DM,me>>=this.DB;if(F.t<this.t){for(me+=F.s;Z<this.t;)me+=this[Z],$[Z++]=me&this.DM,me>>=this.DB;me+=this.s}else{for(me+=this.s;Z<F.t;)me+=F[Z],$[Z++]=me&this.DM,me>>=this.DB;me+=F.s}$.s=me<0?-1:0,me>0?$[Z++]=me:me<-1&&($[Z++]=this.DV+me),$.t=Z,$.clamp()}function Oe(F){var $=o();return this.addTo(F,$),$}function Ne(F){var $=o();return this.subTo(F,$),$}function Ye(F){var $=o();return this.multiplyTo(F,$),$}function Ue(){var F=o();return this.squareTo(F),F}function It(F){var $=o();return this.divRemTo(F,$,null),$}function cn(F){var $=o();return this.divRemTo(F,null,$),$}function zn(F){var $=o(),Z=o();return this.divRemTo(F,$,Z),new Array($,Z)}function Xn(F){this[this.t]=this.am(0,F-1,this,0,0,this.t),++this.t,this.clamp()}function ii(F,$){if(F!=0){for(;this.t<=$;)this[this.t++]=0;for(this[$]+=F;this[$]>=this.DV;)this[$]-=this.DV,++$>=this.t&&(this[this.t++]=0),++this[$]}}function et(){}function fe(F){return F}function Ge(F,$,Z){F.multiplyTo($,Z)}function ct(F,$){F.squareTo($)}et.prototype.convert=fe,et.prototype.revert=fe,et.prototype.mulTo=Ge,et.prototype.sqrTo=ct;function Nn(F){return this.exp(F,new et)}function Bi(F,$,Z){var me=Math.min(this.t+F.t,$);for(Z.s=0,Z.t=me;me>0;)Z[--me]=0;var $e;for($e=Z.t-this.t;me<$e;++me)Z[me+this.t]=this.am(0,F[me],Z,me,0,this.t);for($e=Math.min(F.t,$);me<$e;++me)this.am(0,F[me],Z,me,0,$-me);Z.clamp()}function ri(F,$,Z){--$;var me=Z.t=this.t+F.t-$;for(Z.s=0;--me>=0;)Z[me]=0;for(me=Math.max($-this.t,0);me<F.t;++me)Z[this.t+me-$]=this.am($-me,F[me],Z,0,0,this.t+me-$);Z.clamp(),Z.drShiftTo(1,Z)}function $n(F){this.r2=o(),this.q3=o(),s.ONE.dlShiftTo(2*F.t,this.r2),this.mu=this.r2.divide(F),this.m=F}function yo(F){if(F.s<0||F.t>2*this.m.t)return F.mod(this.m);if(F.compareTo(this.m)<0)return F;var $=o();return F.copyTo($),this.reduce($),$}function vh(F){return F}function Sg(F){for(F.drShiftTo(this.m.t-1,this.r2),F.t>this.m.t+1&&(F.t=this.m.t+1,F.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);F.compareTo(this.r2)<0;)F.dAddOffset(1,this.m.t+1);for(F.subTo(this.r2,F);F.compareTo(this.m)>=0;)F.subTo(this.m,F)}function C3(F,$){F.squareTo($),this.reduce($)}function Cg(F,$,Z){F.multiplyTo($,Z),this.reduce(Z)}$n.prototype.convert=yo,$n.prototype.revert=vh,$n.prototype.reduce=Sg,$n.prototype.mulTo=Cg,$n.prototype.sqrTo=C3;function x3(F,$){var Z=F.bitLength(),me,$e=y(1),qe;if(Z<=0)return $e;Z<18?me=1:Z<48?me=3:Z<144?me=4:Z<768?me=5:me=6,Z<8?qe=new J($):$.isEven()?qe=new $n($):qe=new ye($);var ht=new Array,mt=3,wn=me-1,or=(1<<me)-1;if(ht[1]=qe.convert(this),me>1){var Qs=o();for(qe.sqrTo(ht[1],Qs);mt<=or;)ht[mt]=o(),qe.mulTo(Qs,ht[mt-2],ht[mt]),mt+=2}var Gr=F.t-1,ea,Xc=!0,ta=o(),So;for(Z=E(F[Gr])-1;Gr>=0;){for(Z>=wn?ea=F[Gr]>>Z-wn&or:(ea=(F[Gr]&(1<<Z+1)-1)<<wn-Z,Gr>0&&(ea|=F[Gr-1]>>this.DB+Z-wn)),mt=me;!(ea&1);)ea>>=1,--mt;if((Z-=mt)<0&&(Z+=this.DB,--Gr),Xc)ht[ea].copyTo($e),Xc=!1;else{for(;mt>1;)qe.sqrTo($e,ta),qe.sqrTo(ta,$e),mt-=2;mt>0?qe.sqrTo($e,ta):(So=$e,$e=ta,ta=So),qe.mulTo(ta,ht[ea],$e)}for(;Gr>=0&&!(F[Gr]&1<<Z);)qe.sqrTo($e,ta),So=$e,$e=ta,ta=So,--Z<0&&(Z=this.DB-1,--Gr)}return qe.revert($e)}function xg(F){var $=this.s<0?this.negate():this.clone(),Z=F.s<0?F.negate():F.clone();if($.compareTo(Z)<0){var me=$;$=Z,Z=me}var $e=$.getLowestSetBit(),qe=Z.getLowestSetBit();if(qe<0)return $;for($e<qe&&(qe=$e),qe>0&&($.rShiftTo(qe,$),Z.rShiftTo(qe,Z));$.signum()>0;)($e=$.getLowestSetBit())>0&&$.rShiftTo($e,$),($e=Z.getLowestSetBit())>0&&Z.rShiftTo($e,Z),$.compareTo(Z)>=0?($.subTo(Z,$),$.rShiftTo(1,$)):(Z.subTo($,Z),Z.rShiftTo(1,Z));return qe>0&&Z.lShiftTo(qe,Z),Z}function ql(F){if(F<=0)return 0;var $=this.DV%F,Z=this.s<0?F-1:0;if(this.t>0)if($==0)Z=this[0]%F;else for(var me=this.t-1;me>=0;--me)Z=($*Z+this[me])%F;return Z}function Nm(F){var $=F.isEven();if(this.isEven()&&$||F.signum()==0)return s.ZERO;for(var Z=F.clone(),me=this.clone(),$e=y(1),qe=y(0),ht=y(0),mt=y(1);Z.signum()!=0;){for(;Z.isEven();)Z.rShiftTo(1,Z),$?((!$e.isEven()||!qe.isEven())&&($e.addTo(this,$e),qe.subTo(F,qe)),$e.rShiftTo(1,$e)):qe.isEven()||qe.subTo(F,qe),qe.rShiftTo(1,qe);for(;me.isEven();)me.rShiftTo(1,me),$?((!ht.isEven()||!mt.isEven())&&(ht.addTo(this,ht),mt.subTo(F,mt)),ht.rShiftTo(1,ht)):mt.isEven()||mt.subTo(F,mt),mt.rShiftTo(1,mt);Z.compareTo(me)>=0?(Z.subTo(me,Z),$&&$e.subTo(ht,$e),qe.subTo(mt,qe)):(me.subTo(Z,me),$&&ht.subTo($e,ht),mt.subTo(qe,mt))}if(me.compareTo(s.ONE)!=0)return s.ZERO;if(mt.compareTo(F)>=0)return mt.subtract(F);if(mt.signum()<0)mt.addTo(F,mt);else return mt;return mt.signum()<0?mt.add(F):mt}var ls=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],_v=(1<<26)/ls[ls.length-1];function vv(F){var $,Z=this.abs();if(Z.t==1&&Z[0]<=ls[ls.length-1]){for($=0;$<ls.length;++$)if(Z[0]==ls[$])return!0;return!1}if(Z.isEven())return!1;for($=1;$<ls.length;){for(var me=ls[$],$e=$+1;$e<ls.length&&me<_v;)me*=ls[$e++];for(me=Z.modInt(me);$<$e;)if(me%ls[$++]==0)return!1}return Z.millerRabin(F)}function yv(F){var $=this.subtract(s.ONE),Z=$.getLowestSetBit();if(Z<=0)return!1;var me=$.shiftRight(Z);F=F+1>>1,F>ls.length&&(F=ls.length);for(var $e=o(),qe=0;qe<F;++qe){$e.fromInt(ls[Math.floor(Math.random()*ls.length)]);var ht=$e.modPow(me,this);if(ht.compareTo(s.ONE)!=0&&ht.compareTo($)!=0){for(var mt=1;mt++<Z&&ht.compareTo($)!=0;)if(ht=ht.modPowInt(2,this),ht.compareTo(s.ONE)==0)return!1;if(ht.compareTo($)!=0)return!1}}return!0}s.prototype.chunkSize=ze,s.prototype.toRadix=Ft,s.prototype.fromRadix=Ut,s.prototype.fromNumber=sr,s.prototype.bitwiseTo=Pn,s.prototype.changeBit=W,s.prototype.addTo=he,s.prototype.dMultiply=Xn,s.prototype.dAddOffset=ii,s.prototype.multiplyLowerTo=Bi,s.prototype.multiplyUpperTo=ri,s.prototype.modInt=ql,s.prototype.millerRabin=yv,s.prototype.clone=Ie,s.prototype.intValue=He,s.prototype.byteValue=Je,s.prototype.shortValue=at,s.prototype.signum=Bt,s.prototype.toByteArray=Hi,s.prototype.equals=Tn,s.prototype.min=os,s.prototype.max=sn,s.prototype.and=Aa,s.prototype.or=Ys,s.prototype.xor=Ls,s.prototype.andNot=Yn,s.prototype.not=Xs,s.prototype.shiftLeft=Zc,s.prototype.shiftRight=Ma,s.prototype.getLowestSetBit=Ra,s.prototype.bitCount=Yc,s.prototype.testBit=Nt,s.prototype.setBit=Y,s.prototype.clearBit=ee,s.prototype.flipBit=se,s.prototype.add=Oe,s.prototype.subtract=Ne,s.prototype.multiply=Ye,s.prototype.divide=It,s.prototype.remainder=cn,s.prototype.divideAndRemainder=zn,s.prototype.modPow=x3,s.prototype.modInverse=Nm,s.prototype.pow=Nn,s.prototype.gcd=xg,s.prototype.isProbablePrime=vv,s.prototype.square=Ue,s.prototype.Barrett=$n;var Og,qr,Xi;function yh(F){qr[Xi++]^=F&255,qr[Xi++]^=F>>8&255,qr[Xi++]^=F>>16&255,qr[Xi++]^=F>>24&255,Xi>=fl&&(Xi-=fl)}function Dm(){yh(new Date().getTime())}if(qr==null){qr=new Array,Xi=0;var wo;if(typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var O3=new Uint8Array(32);for(window.crypto.getRandomValues(O3),wo=0;wo<32;++wo)qr[Xi++]=O3[wo]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var L3=window.crypto.random(32);for(wo=0;wo<L3.length;++wo)qr[Xi++]=L3.charCodeAt(wo)&255}}for(;Xi<fl;)wo=Math.floor(65536*Math.random()),qr[Xi++]=wo>>>8,qr[Xi++]=wo&255;Xi=0,Dm()}function wv(){if(Og==null){for(Dm(),Og=hl(),Og.init(qr),Xi=0;Xi<qr.length;++Xi)qr[Xi]=0;Xi=0}return Og.next()}function Sv(F){var $;for($=0;$<F.length;++$)F[$]=wv()}function Lg(){}Lg.prototype.nextBytes=Sv;function Im(){this.i=0,this.j=0,this.S=new Array}function Cv(F){var $,Z,me;for($=0;$<256;++$)this.S[$]=$;for(Z=0,$=0;$<256;++$)Z=Z+this.S[$]+F[$%F.length]&255,me=this.S[$],this.S[$]=this.S[Z],this.S[Z]=me;this.i=0,this.j=0}function wh(){var F;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,F=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=F,this.S[F+this.S[this.i]&255]}Im.prototype.init=Cv,Im.prototype.next=wh;function hl(){return new Im}var fl=256;i.exports={default:s,BigInteger:s,SecureRandom:Lg}}).call(Cs)})(jSe);var TC=jSe.exports;const{BigInteger:L2}=TC;function MPt(i){let e=i.toString(16);if(e[0]!=="-")e.length%2===1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{e=e.substr(1);let t=e.length;t%2===1?t+=1:e.match(/^[0-7]/)||(t+=2);let n="";for(let r=0;r<t;r++)n+="f";n=new L2(n,16),e=n.xor(i).add(L2.ONE),e=e.toString(16).replace(/^-/,"")}return e}class WSe{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const e=this.v.length/2;let t=e.toString(16);return t.length%2===1&&(t="0"+t),e<128?t:(128+t.length/2).toString(16)+t}getValue(){return""}}class USe extends WSe{constructor(e){super(),this.t="02",e&&(this.v=MPt(e))}getValue(){return this.v}}class RPt extends WSe{constructor(e){super(),this.t="30",this.asn1Array=e}getValue(){return this.v=this.asn1Array.map(e=>e.getEncodedHex()).join(""),this.v}}function qSe(i,e){return+i[e+2]<8?1:+i.substr(e+2,2)&128}function GSe(i,e){const t=qSe(i,e),n=i.substr(e+2,t*2);return n?(+n[0]<8?new L2(n,16):new L2(n.substr(2),16)).intValue():-1}function eee(i,e){const t=qSe(i,e);return e+(t+1)*2}var FPt={encodeDer(i,e){const t=new USe(i),n=new USe(e);return new RPt([t,n]).getEncodedHex()},decodeDer(i){const e=eee(i,0),t=eee(i,e),n=GSe(i,e),r=i.substr(t,n*2),s=t+r.length,o=eee(i,s),a=GSe(i,s),l=i.substr(o,a*2),c=new L2(r,16),u=new L2(l,16);return{r:c,s:u}}};const{BigInteger:Xo}=TC,ZSe=new Xo("2"),YSe=new Xo("3");class qf{constructor(e,t){this.x=t,this.q=e}equals(e){return e===this?!0:this.q.equals(e.q)&&this.x.equals(e.x)}toBigInteger(){return this.x}negate(){return new qf(this.q,this.x.negate().mod(this.q))}add(e){return new qf(this.q,this.x.add(e.toBigInteger()).mod(this.q))}subtract(e){return new qf(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}multiply(e){return new qf(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}divide(e){return new qf(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new qf(this.q,this.x.square().mod(this.q))}}class Gf{constructor(e,t,n,r){this.curve=e,this.x=t,this.y=n,this.z=r??Xo.ONE,this.zinv=null}getX(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}getY(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}equals(e){return e===this?!0:this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(Xo.ZERO)?e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(Xo.ZERO):!1}isInfinity(){return this.x===null&&this.y===null?!0:this.z.equals(Xo.ZERO)&&!this.y.toBigInteger().equals(Xo.ZERO)}negate(){return new Gf(this.curve,this.x,this.y.negate(),this.z)}add(e){if(this.isInfinity())return e;if(e.isInfinity())return this;const t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=this.z,s=e.x.toBigInteger(),o=e.y.toBigInteger(),a=e.z,l=this.curve.q,c=t.multiply(a).mod(l),u=s.multiply(r).mod(l),d=c.subtract(u),h=n.multiply(a).mod(l),f=o.multiply(r).mod(l),g=h.subtract(f);if(Xo.ZERO.equals(d))return Xo.ZERO.equals(g)?this.twice():this.curve.infinity;const p=c.add(u),m=r.multiply(a).mod(l),_=d.square().mod(l),v=d.multiply(_).mod(l),w=m.multiply(g.square()).subtract(p.multiply(_)).mod(l),y=d.multiply(w).mod(l),S=g.multiply(_.multiply(c).subtract(w)).subtract(h.multiply(v)).mod(l),x=v.multiply(m).mod(l);return new Gf(this.curve,this.curve.fromBigInteger(y),this.curve.fromBigInteger(S),x)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const e=this.x.toBigInteger(),t=this.y.toBigInteger(),n=this.z,r=this.curve.q,s=this.curve.a.toBigInteger(),o=e.square().multiply(YSe).add(s.multiply(n.square())).mod(r),a=t.shiftLeft(1).multiply(n).mod(r),l=t.square().mod(r),c=l.multiply(e).multiply(n).mod(r),u=a.square().mod(r),d=o.square().subtract(c.shiftLeft(3)).mod(r),h=a.multiply(d).mod(r),f=o.multiply(c.shiftLeft(2).subtract(d)).subtract(u.shiftLeft(1).multiply(l)).mod(r),g=a.multiply(u).mod(r);return new Gf(this.curve,this.curve.fromBigInteger(h),this.curve.fromBigInteger(f),g)}multiply(e){if(this.isInfinity())return this;if(!e.signum())return this.curve.infinity;const t=e.multiply(YSe),n=this.negate();let r=this;for(let s=t.bitLength()-2;s>0;s--){r=r.twice();const o=t.testBit(s),a=e.testBit(s);o!==a&&(r=r.add(o?this:n))}return r}}var VPt={ECPointFp:Gf,ECCurveFp:class{constructor(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new Gf(this,null,null)}equals(e){return e===this?!0:this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}fromBigInteger(e){return new qf(this.q,e)}decodePointHex(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const t=this.fromBigInteger(new Xo(e.substr(2),16));let n=this.fromBigInteger(t.multiply(t.square()).add(t.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new Xo("4")).add(Xo.ONE),this.q));return n.toBigInteger().mod(ZSe).equals(new Xo(e.substr(0,2),16).subtract(ZSe))||(n=n.negate()),new Gf(this,t,n);case 4:case 6:case 7:const r=(e.length-2)/2,s=e.substr(2,r),o=e.substr(r+2,r);return new Gf(this,this.fromBigInteger(new Xo(s,16)),this.fromBigInteger(new Xo(o,16)));default:return null}}}};const{BigInteger:Vc,SecureRandom:HPt}=TC,{ECCurveFp:BPt}=VPt,zPt=new HPt,{curve:k2,G:$Pt,n:XSe}=QSe();function jPt(){return k2}function QSe(){const i=new Vc("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),e=new Vc("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),t=new Vc("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),n=new BPt(i,e,t),o=n.decodePointHex("04"+"32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7"+"BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0"),a=new Vc("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16);return{curve:n,G:o,n:a}}function WPt(i,e,t){const r=(i?new Vc(i,e,t):new Vc(XSe.bitLength(),zPt)).mod(XSe.subtract(Vc.ONE)).add(Vc.ONE),s=F_(r.toString(16),64),o=$Pt.multiply(r),a=F_(o.getX().toBigInteger().toString(16),64),l=F_(o.getY().toBigInteger().toString(16),64),c="04"+a+l;return{privateKey:s,publicKey:c}}function UPt(i){if(i.length!==130)throw new Error("Invalid public key to compress");const e=(i.length-2)/2,t=i.substr(2,e),n=new Vc(i.substr(e+2,e),16);let r="03";return n.mod(new Vc("2")).equals(Vc.ZERO)&&(r="02"),r+t}function qPt(i){i=unescape(encodeURIComponent(i));const e=i.length,t=[];for(let r=0;r<e;r++)t[r>>>2]|=(i.charCodeAt(r)&255)<<24-r%4*8;const n=[];for(let r=0;r<e;r++){const s=t[r>>>2]>>>24-r%4*8&255;n.push((s>>>4).toString(16)),n.push((s&15).toString(16))}return n.join("")}function F_(i,e){return i.length>=e?i:new Array(e-i.length+1).join("0")+i}function GPt(i){return i.map(e=>(e=e.toString(16),e.length===1?"0"+e:e)).join("")}function ZPt(i){const e=[];let t=0;for(let n=0;n<i.length*2;n+=2)e[n>>>3]|=parseInt(i[t],10)<<24-n%8*4,t++;try{const n=[];for(let r=0;r<i.length;r++){const s=e[r>>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(s))}return decodeURIComponent(escape(n.join("")))}catch{throw new Error("Malformed UTF-8 data")}}function YPt(i){const e=[];let t=i.length;t%2!==0&&(i=F_(i,t+1)),t=i.length;for(let n=0;n<t;n+=2)e.push(parseInt(i.substr(n,2),16));return e}function XPt(i){const e=k2.decodePointHex(i);if(!e)return!1;const t=e.getX();return e.getY().square().equals(t.multiply(t.square()).add(t.multiply(k2.a)).add(k2.b))}function QPt(i,e){const t=k2.decodePointHex(i);if(!t)return!1;const n=k2.decodePointHex(e);return n?t.equals(n):!1}var KPt={getGlobalCurve:jPt,generateEcparam:QSe,generateKeyPairHex:WPt,compressPublicKeyHex:UPt,utf8ToHex:qPt,leftPad:F_,arrayToHex:GPt,arrayToUtf8:ZPt,hexToArray:YPt,verifyPublicKey:XPt,comparePublicKeyHex:QPt};const Hc=new Uint32Array(68),tee=new Uint32Array(64);function Hl(i,e){const t=e&31;return i<<t|i>>>32-t}function KSe(i,e){const t=[];for(let n=i.length-1;n>=0;n--)t[n]=(i[n]^e[n])&255;return t}function JPt(i){return i^Hl(i,9)^Hl(i,17)}function eNt(i){return i^Hl(i,15)^Hl(i,23)}function PC(i){let e=i.length*8,t=e%512;t=t>=448?512-t%448-1:448-t-1;const n=new Array((t-7)/8),r=new Array(8);for(let u=0,d=n.length;u<d;u++)n[u]=0;for(let u=0,d=r.length;u<d;u++)r[u]=0;e=e.toString(2);for(let u=7;u>=0;u--)if(e.length>8){const d=e.length-8;r[u]=parseInt(e.substr(d),2),e=e.substr(0,d)}else e.length>0&&(r[u]=parseInt(e,2),e="");const s=new Uint8Array([...i,128,...n,...r]),o=new DataView(s.buffer,0),a=s.length/64,l=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let u=0;u<a;u++){Hc.fill(0),tee.fill(0);const d=16*u;for(let E=0;E<16;E++)Hc[E]=o.getUint32((d+E)*4,!1);for(let E=16;E<68;E++)Hc[E]=eNt(Hc[E-16]^Hc[E-9]^Hl(Hc[E-3],15))^Hl(Hc[E-13],7)^Hc[E-6];for(let E=0;E<64;E++)tee[E]=Hc[E]^Hc[E+4];const h=2043430169,f=2055708042;let g=l[0],p=l[1],m=l[2],_=l[3],v=l[4],w=l[5],y=l[6],S=l[7],x,O,L,T,N;for(let E=0;E<64;E++)N=E>=0&&E<=15?h:f,x=Hl(Hl(g,12)+v+Hl(N,E),7),O=x^Hl(g,12),L=(E>=0&&E<=15?g^p^m:g&p|g&m|p&m)+_+O+tee[E],T=(E>=0&&E<=15?v^w^y:v&w|~v&y)+S+x+Hc[E],_=m,m=Hl(p,9),p=g,g=L,S=y,y=Hl(w,19),w=v,v=JPt(T);l[0]^=g,l[1]^=p,l[2]^=m,l[3]^=_,l[4]^=v,l[5]^=w,l[6]^=y,l[7]^=S}const c=[];for(let u=0,d=l.length;u<d;u++){const h=l[u];c.push((h&4278190080)>>>24,(h&16711680)>>>16,(h&65280)>>>8,h&255)}return c}const V_=64,JSe=new Uint8Array(V_),e9e=new Uint8Array(V_);for(let i=0;i<V_;i++)JSe[i]=54,e9e[i]=92;function tNt(i,e){for(e.length>V_&&(e=PC(e));e.length<V_;)e.push(0);const t=KSe(e,JSe),n=KSe(e,e9e),r=PC([...t,...i]);return PC([...n,...r])}var t9e={sm3:PC,hmac:tNt};const{BigInteger:al}=TC,{encodeDer:nNt,decodeDer:iNt}=FPt,mn=KPt,E2=t9e.sm3,{G:Cp,curve:n9e,n:T2}=mn.generateEcparam(),i9e=0;function rNt(i,e,t=1){i=typeof i=="string"?mn.hexToArray(mn.utf8ToHex(i)):Array.prototype.slice.call(i),e=mn.getGlobalCurve().decodePointHex(e);const n=mn.generateKeyPairHex(),r=new al(n.privateKey,16);let s=n.publicKey;s.length>128&&(s=s.substr(s.length-128));const o=e.multiply(r),a=mn.hexToArray(mn.leftPad(o.getX().toBigInteger().toRadix(16),64)),l=mn.hexToArray(mn.leftPad(o.getY().toBigInteger().toRadix(16),64)),c=mn.arrayToHex(E2([].concat(a,i,l)));let u=1,d=0,h=[];const f=[].concat(a,l),g=()=>{h=E2([...f,u>>24&255,u>>16&255,u>>8&255,u&255]),u++,d=0};g();for(let m=0,_=i.length;m<_;m++)d===h.length&&g(),i[m]^=h[d++]&255;const p=mn.arrayToHex(i);return t===i9e?s+p+c:s+c+p}function sNt(i,e,t=1,{output:n="string"}={}){e=new al(e,16);let r=i.substr(128,64),s=i.substr(192);t===i9e&&(r=i.substr(i.length-64),s=i.substr(128,i.length-128-64));const o=mn.hexToArray(s),l=mn.getGlobalCurve().decodePointHex("04"+i.substr(0,128)).multiply(e),c=mn.hexToArray(mn.leftPad(l.getX().toBigInteger().toRadix(16),64)),u=mn.hexToArray(mn.leftPad(l.getY().toBigInteger().toRadix(16),64));let d=1,h=0,f=[];const g=[].concat(c,u),p=()=>{f=E2([...g,d>>24&255,d>>16&255,d>>8&255,d&255]),d++,h=0};p();for(let _=0,v=o.length;_<v;_++)h===f.length&&p(),o[_]^=f[h++]&255;return mn.arrayToHex(E2([].concat(c,o,u)))===r.toLowerCase()?n==="array"?o:mn.arrayToUtf8(o):n==="array"?[]:""}function oNt(i,e,{pointPool:t,der:n,hash:r,publicKey:s,userId:o}={}){let a=typeof i=="string"?mn.utf8ToHex(i):mn.arrayToHex(i);r&&(s=s||s9e(e),a=r9e(a,s,o));const l=new al(e,16),c=new al(a,16);let u=null,d=null,h=null;do{do{let f;t&&t.length?f=t.pop():f=o9e(),u=f.k,d=c.add(f.x1).mod(T2)}while(d.equals(al.ZERO)||d.add(u).equals(T2));h=l.add(al.ONE).modInverse(T2).multiply(u.subtract(d.multiply(l))).mod(T2)}while(h.equals(al.ZERO));return n?nNt(d,h):mn.leftPad(d.toString(16),64)+mn.leftPad(h.toString(16),64)}function aNt(i,e,t,{der:n,hash:r,userId:s}={}){let o=typeof i=="string"?mn.utf8ToHex(i):mn.arrayToHex(i);r&&(o=r9e(o,t,s));let a,l;if(n){const g=iNt(e);a=g.r,l=g.s}else a=new al(e.substring(0,64),16),l=new al(e.substring(64),16);const c=n9e.decodePointHex(t),u=new al(o,16),d=a.add(l).mod(T2);if(d.equals(al.ZERO))return!1;const h=Cp.multiply(l).add(c.multiply(d)),f=u.add(h.getX().toBigInteger()).mod(T2);return a.equals(f)}function r9e(i,e,t="1234567812345678"){t=mn.utf8ToHex(t);const n=mn.leftPad(Cp.curve.a.toBigInteger().toRadix(16),64),r=mn.leftPad(Cp.curve.b.toBigInteger().toRadix(16),64),s=mn.leftPad(Cp.getX().toBigInteger().toRadix(16),64),o=mn.leftPad(Cp.getY().toBigInteger().toRadix(16),64);let a,l;if(e.length===128)a=e.substr(0,64),l=e.substr(64,64);else{const h=Cp.curve.decodePointHex(e);a=mn.leftPad(h.getX().toBigInteger().toRadix(16),64),l=mn.leftPad(h.getY().toBigInteger().toRadix(16),64)}const c=mn.hexToArray(t+n+r+s+o+a+l),u=t.length*4;c.unshift(u&255),c.unshift(u>>8&255);const d=E2(c);return mn.arrayToHex(E2(d.concat(mn.hexToArray(i))))}function s9e(i){const e=Cp.multiply(new al(i,16)),t=mn.leftPad(e.getX().toBigInteger().toString(16),64),n=mn.leftPad(e.getY().toBigInteger().toString(16),64);return"04"+t+n}function o9e(){const i=mn.generateKeyPairHex(),e=n9e.decodePointHex(i.publicKey);return i.k=new al(i.privateKey,16),i.x1=e.getX().toBigInteger(),i}var lNt={generateKeyPairHex:mn.generateKeyPairHex,compressPublicKeyHex:mn.compressPublicKeyHex,comparePublicKeyHex:mn.comparePublicKeyHex,doEncrypt:rNt,doDecrypt:sNt,doSignature:oNt,doVerifySignature:aNt,getPublicKeyFromPrivateKey:s9e,getPoint:o9e,verifyPublicKey:mn.verifyPublicKey};const{sm3:cNt,hmac:uNt}=t9e;function dNt(i,e){return i.length>=e?i:new Array(e-i.length+1).join("0")+i}function a9e(i){return i.map(e=>(e=e.toString(16),e.length===1?"0"+e:e)).join("")}function hNt(i){const e=[];let t=i.length;t%2!==0&&(i=dNt(i,t+1)),t=i.length;for(let n=0;n<t;n+=2)e.push(parseInt(i.substr(n,2),16));return e}function fNt(i){const e=[];for(let t=0,n=i.length;t<n;t++){const r=i.codePointAt(t);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>>6),e.push(128|r&63);else if(r<=55295||r>=57344&&r<=65535)e.push(224|r>>>12),e.push(128|r>>>6&63),e.push(128|r&63);else if(r>=65536&&r<=1114111)t++,e.push(240|r>>>18&28),e.push(128|r>>>12&63),e.push(128|r>>>6&63),e.push(128|r&63);else throw e.push(r),new Error("input is not supported")}return e}var gNt=function(i,e){if(i=typeof i=="string"?fNt(i):Array.prototype.slice.call(i),e){if((e.mode||"hmac")!=="hmac")throw new Error("invalid mode");let n=e.key;if(!n)throw new Error("invalid key");return n=typeof n=="string"?hNt(n):Array.prototype.slice.call(n),a9e(uNt(i,n))}return a9e(cNt(i))};const Zf=0,pNt=32,xp=16,NC=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],DC=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function nee(i){const e=[];for(let t=0,n=i.length;t<n;t+=2)e.push(parseInt(i.substr(t,2),16));return e}function mNt(i){return i.map(e=>(e=e.toString(16),e.length===1?"0"+e:e)).join("")}function bNt(i){const e=[];for(let t=0,n=i.length;t<n;t++){const r=i.codePointAt(t);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>>6),e.push(128|r&63);else if(r<=55295||r>=57344&&r<=65535)e.push(224|r>>>12),e.push(128|r>>>6&63),e.push(128|r&63);else if(r>=65536&&r<=1114111)t++,e.push(240|r>>>18&28),e.push(128|r>>>12&63),e.push(128|r>>>6&63),e.push(128|r&63);else throw e.push(r),new Error("input is not supported")}return e}function _Nt(i){const e=[];for(let t=0,n=i.length;t<n;t++)i[t]>=240&&i[t]<=247?(e.push(String.fromCodePoint(((i[t]&7)<<18)+((i[t+1]&63)<<12)+((i[t+2]&63)<<6)+(i[t+3]&63))),t+=3):i[t]>=224&&i[t]<=239?(e.push(String.fromCodePoint(((i[t]&15)<<12)+((i[t+1]&63)<<6)+(i[t+2]&63))),t+=2):i[t]>=192&&i[t]<=223?(e.push(String.fromCodePoint(((i[t]&31)<<6)+(i[t+1]&63))),t++):e.push(String.fromCodePoint(i[t]));return e.join("")}function P2(i,e){const t=e&31;return i<<t|i>>>32-t}function Yf(i){return(NC[i>>>24&255]&255)<<24|(NC[i>>>16&255]&255)<<16|(NC[i>>>8&255]&255)<<8|NC[i&255]&255}function IC(i){return i^P2(i,2)^P2(i,10)^P2(i,18)^P2(i,24)}function AC(i){return i^P2(i,13)^P2(i,23)}function vNt(i,e,t){const n=new Array(4),r=new Array(4);for(let s=0;s<4;s++)r[0]=i[4*s]&255,r[1]=i[4*s+1]&255,r[2]=i[4*s+2]&255,r[3]=i[4*s+3]&255,n[s]=r[0]<<24|r[1]<<16|r[2]<<8|r[3];for(let s=0,o;s<32;s+=4)o=n[1]^n[2]^n[3]^t[s+0],n[0]^=IC(Yf(o)),o=n[2]^n[3]^n[0]^t[s+1],n[1]^=IC(Yf(o)),o=n[3]^n[0]^n[1]^t[s+2],n[2]^=IC(Yf(o)),o=n[0]^n[1]^n[2]^t[s+3],n[3]^=IC(Yf(o));for(let s=0;s<16;s+=4)e[s]=n[3-s/4]>>>24&255,e[s+1]=n[3-s/4]>>>16&255,e[s+2]=n[3-s/4]>>>8&255,e[s+3]=n[3-s/4]&255}function yNt(i,e,t){const n=new Array(4),r=new Array(4);for(let s=0;s<4;s++)r[0]=i[0+4*s]&255,r[1]=i[1+4*s]&255,r[2]=i[2+4*s]&255,r[3]=i[3+4*s]&255,n[s]=r[0]<<24|r[1]<<16|r[2]<<8|r[3];n[0]^=2746333894,n[1]^=1453994832,n[2]^=1736282519,n[3]^=2993693404;for(let s=0,o;s<32;s+=4)o=n[1]^n[2]^n[3]^DC[s+0],e[s+0]=n[0]^=AC(Yf(o)),o=n[2]^n[3]^n[0]^DC[s+1],e[s+1]=n[1]^=AC(Yf(o)),o=n[3]^n[0]^n[1]^DC[s+2],e[s+2]=n[2]^=AC(Yf(o)),o=n[0]^n[1]^n[2]^DC[s+3],e[s+3]=n[3]^=AC(Yf(o));if(t===Zf)for(let s=0,o;s<16;s++)o=e[s],e[s]=e[31-s],e[31-s]=o}function l9e(i,e,t,{padding:n="pkcs#7",mode:r,iv:s=[],output:o="string"}={}){if(r==="cbc"&&(typeof s=="string"&&(s=nee(s)),s.length!==128/8))throw new Error("iv is invalid");if(typeof e=="string"&&(e=nee(e)),e.length!==128/8)throw new Error("key is invalid");if(typeof i=="string"?t!==Zf?i=bNt(i):i=nee(i):i=[...i],(n==="pkcs#5"||n==="pkcs#7")&&t!==Zf){const h=xp-i.length%xp;for(let f=0;f<h;f++)i.push(h)}const a=new Array(pNt);yNt(e,a,t);const l=[];let c=s,u=i.length,d=0;for(;u>=xp;){const h=i.slice(d,d+16),f=new Array(16);if(r==="cbc")for(let g=0;g<xp;g++)t!==Zf&&(h[g]^=c[g]);vNt(h,f,a);for(let g=0;g<xp;g++)r==="cbc"&&t===Zf&&(f[g]^=c[g]),l[d+g]=f[g];r==="cbc"&&(t!==Zf?c=f:c=h),u-=xp,d+=xp}if((n==="pkcs#5"||n==="pkcs#7")&&t===Zf){const h=l.length,f=l[h-1];for(let g=1;g<=f;g++)if(l[h-g]!==f)throw new Error("padding is invalid");l.splice(h-f,f)}return o!=="array"?t!==Zf?mNt(l):_Nt(l):l}var wNt={encrypt(i,e,t){return l9e(i,e,1,t)},decrypt(i,e,t){return l9e(i,e,0,t)}},iee={sm2:lNt,sm3:gNt,sm4:wNt};const SNt={name:"PaasHeader",mounted(){this.$store.loginFlag&&this.systems.length==0&&this.$get("/system/sysdevices/findByDeviceType",{deviceType:"1"}).then(i=>{this.$store.setSystems(i.data.data),this.$store.setCurrentSystem(this.systems[0]),this.selectedCard=this.selectedCard===0})},computed:{system(){return this.$store.header.system},systems(){return this.$store.header.systems}},data(){return{isLoading:!1,selectedCard:null,opend:!1,form:{},rules:{password:[{required:!0,message:"请输入原密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"}],confirmPassword:[{required:!0,message:"请确认新密码",trigger:"blur"}]}}},methods:{handleClick(i,e){console.log(i),this.$store.setCurrentSystem(i),this.selectedCard=this.selectedCard===e?null:e},handleOk(){const i=iee.sm3(this.form.newPassword).toUpperCase(),e=iee.sm3(this.form.confirmPassword).toUpperCase(),t=iee.sm3(this.form.password).toUpperCase();if(i!=e){Qn.message.warn("新密码与确认密码不正确!",2.5);return}this.$post("/system/sysusers/updatePassword",{newPassword:i,password:t}).then(n=>{let r=n.data;r.code==this.$success?(Qn.message.success("密码修改成功!",2.5),this.opend=!1,this.submitLogout()):Qn.message.error(r.msg,2.5)})},handleCancel(i){Qn.message.warn(i.errorFields[0].errors,2.5)},logout(){let i=this;Qn.Modal.confirm({title:"确定退出登录?",okText:"确定",cancelText:"取消",onOk(){i.submitLogout()},onCancel(){}})},submitLogout(){this.$store.setCurrentSystem({}),this.$store.setSystems([]),this.$store.setIsIframe(!1),this.$store.setIframeUrl(""),this.$store.setMenuData([]),this.$delete("/system/logout",{}).then(i=>{i.data.code==this.$success&&(this.$store.setLoginFlag(!1),this.$store.setLoginInfo({}),location.href="/")})}}},CNt={style:{color:"white"}},xNt={class:"card-grid"},ONt=["onClick"],LNt={class:"card-content"},kNt={class:"card-image"},ENt=["src"],TNt={class:"card-text"};function PNt(i,e,t,n,r,s){const o=C.resolveComponent("a-flex"),a=C.resolveComponent("a-col"),l=C.resolveComponent("MenuOutlined"),c=C.resolveComponent("a-popover"),u=C.resolveComponent("PoweroffOutlined"),d=C.resolveComponent("a-menu-item"),h=C.resolveComponent("a-menu-divider"),f=C.resolveComponent("a-menu"),g=C.resolveComponent("a-dropdown"),p=C.resolveComponent("a-row"),m=C.resolveComponent("a-layout-header"),_=C.resolveComponent("a-input"),v=C.resolveComponent("a-form-item"),w=C.resolveComponent("a-form"),y=C.resolveComponent("a-modal");return C.openBlock(),C.createElementBlock(C.Fragment,null,[C.createVNode(m,{class:"header-style"},{default:C.withCtx(()=>[C.createVNode(p,null,{default:C.withCtx(()=>[C.createVNode(a,{span:12},{default:C.withCtx(()=>[C.createVNode(o,{justify:"flex-start",align:"center"},{default:C.withCtx(()=>[C.createElementVNode("h3",CNt,[C.createElementVNode("b",null,C.toDisplayString(s.system.deviceName)+"【"+C.toDisplayString(this.$store.loginInfo.loginName)+"】",1)])]),_:1})]),_:1}),C.createVNode(a,{span:12},{default:C.withCtx(()=>[C.createVNode(o,{justify:"flex-end",align:"center"},{default:C.withCtx(()=>[C.createVNode(c,{placement:"bottomRight"},{content:C.withCtx(()=>[C.createElementVNode("div",xNt,[(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(s.systems,(S,x)=>(C.openBlock(),C.createElementBlock("div",{class:C.normalizeClass(["card-container",{selected:r.selectedCard===x}]),key:x,onClick:O=>s.handleClick(S,x)},[C.createElementVNode("div",LNt,[C.createElementVNode("div",kNt,[C.createElementVNode("img",{src:S.logo||"https://aliyuncdn.antdv.com/logo.png",alt:"logo"},null,8,ENt)]),C.createElementVNode("div",TNt,C.toDisplayString(S.deviceName),1)])],10,ONt))),128))])]),title:C.withCtx(()=>e[6]||(e[6]=[C.createElementVNode("span",null,"应用中心",-1)])),default:C.withCtx(()=>[C.createVNode(l,{class:"icon-button"})]),_:1}),C.createVNode(g,null,{overlay:C.withCtx(()=>[C.createVNode(f,null,{default:C.withCtx(()=>[C.createVNode(d,null,{default:C.withCtx(()=>[C.createElementVNode("a",{onClick:e[0]||(e[0]=S=>r.opend=!0)},"修改密码")]),_:1}),C.createVNode(h),C.createVNode(d,null,{default:C.withCtx(()=>[C.createElementVNode("a",{onClick:e[1]||(e[1]=(...S)=>s.logout&&s.logout(...S))},"退出登录")]),_:1})]),_:1})]),default:C.withCtx(()=>[C.createVNode(u,{class:"icon-button"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),C.createVNode(y,{open:r.opend,"onUpdate:open":e[5]||(e[5]=S=>r.opend=S),title:"修改密码",onOk:s.handleOk,onCancel:s.handleCancel,"confirm-loading":r.isLoading},{default:C.withCtx(()=>[C.createVNode(w,{model:r.form,rules:r.rules,"label-col":{span:4},"wrapper-col":{span:20}},{default:C.withCtx(()=>[C.createVNode(v,{label:"原始密码",name:"password"},{default:C.withCtx(()=>[C.createVNode(_,{value:r.form.password,"onUpdate:value":e[2]||(e[2]=S=>r.form.password=S),type:"password",placeholder:"请输入原密码"},null,8,["value"])]),_:1}),C.createVNode(v,{label:"新密码",name:"newPassword"},{default:C.withCtx(()=>[C.createVNode(_,{value:r.form.newPassword,"onUpdate:value":e[3]||(e[3]=S=>r.form.newPassword=S),type:"password",placeholder:"请输入新密码"},null,8,["value"])]),_:1}),C.createVNode(v,{label:"确认密码",name:"confirmPassword"},{default:C.withCtx(()=>[C.createVNode(_,{value:r.form.confirmPassword,"onUpdate:value":e[4]||(e[4]=S=>r.form.confirmPassword=S),type:"password",placeholder:"请再次输入新密码"},null,8,["value"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["open","onOk","onCancel","confirm-loading"])],64)}const NNt=[Glt,Xlt,Cr(SNt,[["render",PNt],["__scopeId","data-v-676bc32b"]]),Jlt,ict,oct,cct,hct,pct,_ct,wct,$Tt,UTt,ZTt,ePt,QTt,aPt,OPt,EPt,Object.assign({inject:{parentMethods:{from:"parentMethods",default:()=>{}}},name:"PaasForm",props:{refName:{default:"form"},id:{default:"id"},autoPk:{default:!0},model:{type:Object,required:!0},vRules:{type:Object},labelWidth:{default:3},size:{default:24},formatData:{type:Function,default:i=>i},closeGo:{default:-1,type:Number}},created(){this.add?this.addUrl=this.add:this.addUrl=this.$store.menus.current,this.edit?this.editUrl=this.edit:this.editUrl=this.$store.menus.current+"/edit"},data(){return{addUrl:"",editUrl:"",confirmFlag:!1}},computed:{see(){return this.$store.forms.see},action(){return this.$store.forms.action}},methods:{onFinishFailed(i){Qn.message.warn(i.errorFields[0].errors,2.5)},submitForm(i){if(this.confirmFlag)return;this.confirmFlag=!0,setTimeout(()=>{this.confirmFlag=!this.confirmFlag},2e3);var e=this.$parent.submitForm;if(e||(e=this.parentMethods&&this.parentMethods.submitForm),e&&e instanceof Function){e(this.model);return}let t=this.formatData(this.model);this.action=="add"?this.addClick(t):this.action=="edit"&&this.editClick(t)},addClick(i){this.autoPk&&(i.id=""),this.$post(this.addUrl,i).then(e=>{let t=e.data;this.callback?this.callback(t):this.$dyAlert(t,!0)})},editClick(i){this.$put(this.editUrl,i).then(e=>{let t=e.data;this.callback?this.callback(t):this.$dyAlert(t,!0)})},close(){this.$router.go(this.closeGo)}}},{setup(i){return(e,t)=>{const n=C.resolveComponent("a-row"),r=C.resolveComponent("a-divider"),s=C.resolveComponent("a-button"),o=C.resolveComponent("a-flex"),a=C.resolveComponent("a-form");return C.openBlock(),C.createBlock(a,{ref:i.refName,model:i.model,rules:i.vRules,onFinish:e.submitForm,onFinishFailed:e.onFinishFailed,"label-col":{span:i.labelWidth},"wrapper-col":{span:24-i.labelWidth}},{default:C.withCtx(()=>[C.createVNode(n,{gutter:16},{default:C.withCtx(()=>[C.renderSlot(e.$slots,"form-content")]),_:3}),C.createVNode(r,{style:{"margin-top":"16px","margin-bottom":"8px"}}),C.createVNode(o,{gap:"small",wrap:"wrap",justify:"flex-end",align:"center"},{default:C.withCtx(()=>[C.createVNode(s,{type:"default",onClick:e.close},{icon:C.withCtx(()=>[C.createVNode(C.unref(bC))]),default:C.withCtx(()=>[t[0]||(t[0]=C.createTextVNode(" 关闭 "))]),_:1},8,["onClick"]),e.see?C.createCommentVNode("",!0):(C.openBlock(),C.createBlock(s,{key:0,type:"primary","html-type":"submit"},{icon:C.withCtx(()=>[C.createVNode(C.unref(mC))]),default:C.withCtx(()=>[t[1]||(t[1]=C.createTextVNode(" 确认 "))]),_:1}))]),_:1})]),_:3},8,["model","rules","onFinish","onFinishFailed","label-col","wrapper-col"])}}}),APt,NPt],DNt={install(i){NNt.forEach(e=>{i.component(e.name,e)})}};/*!-----------------------------------------------------------------------------
|
|
1265
1265
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
1266
1266
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
1267
1267
|
* Released under the MIT license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as o } from "./index-
|
|
1
|
+
import { m as o } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m } from "./index-
|
|
1
|
+
import { m } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as O, m as I } from "./index-
|
|
1
|
+
import { t as O, m as I } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as s } from "./index-
|
|
1
|
+
import { m as s } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as r } from "./index-
|
|
1
|
+
import { m as r } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as l } from "./index-
|
|
1
|
+
import { m as l } from "./index-BtqyFJxS.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.0(f6dc0eb8fce67e57f6036f4769d92c1666cdf546)
|