@artel/artc 0.6.26036 → 0.6.26038

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.
@@ -270,6 +270,22 @@ var Query = class _Query {
270
270
  }
271
271
  return minElement;
272
272
  }
273
+ static single(source, fn) {
274
+ let result;
275
+ let hasValue = false;
276
+ for (const e of source) {
277
+ if (fn === void 0 || fn(e)) {
278
+ if (!hasValue) {
279
+ result = e;
280
+ hasValue = true;
281
+ } else {
282
+ result = void 0;
283
+ break;
284
+ }
285
+ }
286
+ }
287
+ return result;
288
+ }
273
289
  map(fn) {
274
290
  return new MapQuery(this, fn);
275
291
  }
@@ -764,7 +780,7 @@ var UniqueWithComparatorQuery = class extends Query {
764
780
  };
765
781
 
766
782
  // source/common/Constants.ts
767
- var ArtelVersion = true ? "0.6.26036" : "";
783
+ var ArtelVersion = true ? "0.6.26038" : "";
768
784
  var ArtelSourceFileExtensions = [".\u0430\u0440\u0442", ".\u0430\u0440\u0442\u0435\u043B\u044C", ".art", ".artel", ".\u0430\u0440\u0442\u043C", ".\u0430\u0440\u0442\u0435\u043B\u044C\u043C", ".artm", ".artelm"];
769
785
  var ArtelSourceFileExtensionSet = new Set(ArtelSourceFileExtensions);
770
786
  var ArtelSourceAndConfigurationFileExtensionSet = new Set(ArtelSourceFileExtensionSet).add(".json");
@@ -12256,6 +12272,10 @@ var DiagnosticCode = /* @__PURE__ */ ((DiagnosticCode2) => {
12256
12272
  DiagnosticCode2[DiagnosticCode2["CannotAssignValueBecauseWriteFunctionIsHidden"] = 2244] = "CannotAssignValueBecauseWriteFunctionIsHidden";
12257
12273
  DiagnosticCode2[DiagnosticCode2["ReadFunctionMustHaveTheSameTypeAsWriteFunction"] = 2245] = "ReadFunctionMustHaveTheSameTypeAsWriteFunction";
12258
12274
  DiagnosticCode2[DiagnosticCode2["AspectHasAlreadyBeenExtendedWithDifferentTypeArguments0"] = 2246] = "AspectHasAlreadyBeenExtendedWithDifferentTypeArguments0";
12275
+ DiagnosticCode2[DiagnosticCode2["ObjectCannotBeAccessedBeforeOwnOrBaseConstructorCall"] = 2247] = "ObjectCannotBeAccessedBeforeOwnOrBaseConstructorCall";
12276
+ DiagnosticCode2[DiagnosticCode2["BaseCannotBeAccessedBeforeOwnOrBaseConstructorCall"] = 2248] = "BaseCannotBeAccessedBeforeOwnOrBaseConstructorCall";
12277
+ DiagnosticCode2[DiagnosticCode2["InstanceMemberCannotBeAccessedBeforeOwnOrBaseConstructorCall"] = 2249] = "InstanceMemberCannotBeAccessedBeforeOwnOrBaseConstructorCall";
12278
+ DiagnosticCode2[DiagnosticCode2["Type0CannotBeExtendedBecauseItDoesNotHaveAccessibleConstructors"] = 2250] = "Type0CannotBeExtendedBecauseItDoesNotHaveAccessibleConstructors";
12259
12279
  DiagnosticCode2[DiagnosticCode2["CannotFindTsLibDirectoryBaseSearchPaths0"] = 3e3] = "CannotFindTsLibDirectoryBaseSearchPaths0";
12260
12280
  DiagnosticCode2[DiagnosticCode2["SourceFile0IsNotPartOfThePackageAndWontBeLoaded"] = 3001] = "SourceFile0IsNotPartOfThePackageAndWontBeLoaded";
12261
12281
  DiagnosticCode2[DiagnosticCode2["ProgramWithoutMainPackageCannotBeCompiled"] = 3002] = "ProgramWithoutMainPackageCannotBeCompiled";
@@ -12602,6 +12622,10 @@ var englishErrorMessages = {
12602
12622
  [2244 /* CannotAssignValueBecauseWriteFunctionIsHidden */]: "Cannot assign value because write function is hidden.",
12603
12623
  [2245 /* ReadFunctionMustHaveTheSameTypeAsWriteFunction */]: "Read function must have the same type as write function.",
12604
12624
  [2246 /* AspectHasAlreadyBeenExtendedWithDifferentTypeArguments0 */]: "Aspect has already been extended with different type arguments: '{0}'.",
12625
+ [2247 /* ObjectCannotBeAccessedBeforeOwnOrBaseConstructorCall */]: "'object' cannot be accessed before own or base constructor call.",
12626
+ [2248 /* BaseCannotBeAccessedBeforeOwnOrBaseConstructorCall */]: "'base' cannot be accessed before own or base constructor call.",
12627
+ [2249 /* InstanceMemberCannotBeAccessedBeforeOwnOrBaseConstructorCall */]: "Instance member cannot be accessed before own or base constructor call.",
12628
+ [2250 /* Type0CannotBeExtendedBecauseItDoesNotHaveAccessibleConstructors */]: "Type '{0}' cannot be extended because it does not have accessible constructors.",
12605
12629
  [3e3 /* CannotFindTsLibDirectoryBaseSearchPaths0 */]: "Can not find directory with TypeScript library. Base search paths: {0}.",
12606
12630
  [3001 /* SourceFile0IsNotPartOfThePackageAndWontBeLoaded */]: "Source file '{0}' is not part of the package and won't be loaded.",
12607
12631
  [3002 /* ProgramWithoutMainPackageCannotBeCompiled */]: "Program without main package cannot be compiled.",
@@ -12758,7 +12782,7 @@ var russianErrorMessages = {
12758
12782
  [2101 /* CorrespondingBasicReadFunctionNotFound */]: "\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0430\u044F \u0431\u0430\u0437\u043E\u0432\u0430\u044F \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u0447\u0442\u0435\u043D\u0438\u044F.",
12759
12783
  [2102 /* CorrespondingBasicWriteFunctionNotFound */]: "\u041D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0430\u044F \u0431\u0430\u0437\u043E\u0432\u0430\u044F \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u0437\u0430\u043F\u0438\u0441\u0438.",
12760
12784
  [2103 /* BasicVariableDoesNotHaveAWriteFunctionBecauseItIsAConstant */]: "\u0423 \u0431\u0430\u0437\u043E\u0432\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043D\u0435\u0442 \u0444\u0443\u043D\u043A\u0446\u0438\u0438 \u0437\u0430\u043F\u0438\u0441\u0438, \u043F\u043E\u0441\u043A\u043E\u043B\u044C\u043A\u0443 \u043E\u043D\u0430 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043A\u043E\u043D\u0441\u0442\u0430\u043D\u0442\u043E\u0439.",
12761
- [2104 /* AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier */]: "\u0410\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u0430\u044F \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0432\u044B\u0437\u0432\u0430\u043D\u0430 \u0442\u043E\u043B\u044C\u043A\u043E \u0438\u0437 \u0444\u0443\u043D\u043A\u0446\u0438\u0438, \u043F\u043E\u043C\u0435\u0447\u0435\u043D\u043D\u043E\u0439 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C '\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u043E'.",
12785
+ [2104 /* AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier */]: "\u0410\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u0430\u044F \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0432\u044B\u0437\u0432\u0430\u043D\u0430 \u0442\u043E\u043B\u044C\u043A\u043E \u0438\u0437 \u0444\u0443\u043D\u043A\u0446\u0438\u0438, \u043F\u043E\u043C\u0435\u0447\u0435\u043D\u043D\u043E\u0439 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u043C '\u0430\u0441\u0438\u043D\u0445\u0440\u043E\u043D\u043D\u0430\u044F'.",
12762
12786
  [1123 /* TagNameExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u0442\u0435\u0433\u0430.",
12763
12787
  [2105 /* TagNotFound */]: "\u0422\u0435\u0433 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D.",
12764
12788
  [2106 /* TypeOrFunctionNameExpected */]: "\u041E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043C\u044F \u0442\u0438\u043F\u0430 \u0438\u043B\u0438 \u0444\u0443\u043D\u043A\u0446\u0438\u0438.",
@@ -12902,6 +12926,10 @@ var russianErrorMessages = {
12902
12926
  [2244 /* CannotAssignValueBecauseWriteFunctionIsHidden */]: "\u041D\u0435\u043B\u044C\u0437\u044F \u043F\u0440\u0438\u0441\u0432\u043E\u0438\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435, \u043F\u043E\u0441\u043A\u043E\u043B\u044C\u043A\u0443 \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u0437\u0430\u043F\u0438\u0441\u0438 \u0441\u043A\u0440\u044B\u0442\u0430.",
12903
12927
  [2245 /* ReadFunctionMustHaveTheSameTypeAsWriteFunction */]: "\u0424\u0443\u043D\u043A\u0446\u0438\u044F \u0447\u0442\u0435\u043D\u0438\u044F \u0434\u043E\u043B\u0436\u043D\u0430 \u0438\u043C\u0435\u0442\u044C \u0442\u0430\u043A\u043E\u0439 \u0436\u0435 \u0442\u0438\u043F, \u043A\u0430\u043A \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u0437\u0430\u043F\u0438\u0441\u0438.",
12904
12928
  [2246 /* AspectHasAlreadyBeenExtendedWithDifferentTypeArguments0 */]: "\u0410\u0441\u043F\u0435\u043A\u0442 \u0443\u0436\u0435 \u0431\u044B\u043B \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D \u0441 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442\u0430\u043C\u0438 \u0442\u0438\u043F\u0430: '{0}'.",
12929
+ [2247 /* ObjectCannotBeAccessedBeforeOwnOrBaseConstructorCall */]: "\u041A \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 '\u043E\u0431\u044A\u0435\u043A\u0442' \u043D\u0435\u043B\u044C\u0437\u044F \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0434\u043E \u0432\u044B\u0437\u043E\u0432\u0430 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0438\u043B\u0438 \u0431\u0430\u0437\u043E\u0432\u043E\u0433\u043E \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430.",
12930
+ [2248 /* BaseCannotBeAccessedBeforeOwnOrBaseConstructorCall */]: "\u041A \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 '\u043E\u0441\u043D\u043E\u0432\u0430' \u043D\u0435\u043B\u044C\u0437\u044F \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0434\u043E \u0432\u044B\u0437\u043E\u0432\u0430 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0438\u043B\u0438 \u0431\u0430\u0437\u043E\u0432\u043E\u0433\u043E \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430.",
12931
+ [2249 /* InstanceMemberCannotBeAccessedBeforeOwnOrBaseConstructorCall */]: "\u041A \u0447\u043B\u0435\u043D\u0443 \u044D\u043A\u0437\u0435\u043C\u043F\u043B\u044F\u0440\u0430 \u043D\u0435\u043B\u044C\u0437\u044F \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0434\u043E \u0432\u044B\u0437\u043E\u0432\u0430 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0438\u043B\u0438 \u0431\u0430\u0437\u043E\u0432\u043E\u0433\u043E \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u0430.",
12932
+ [2250 /* Type0CannotBeExtendedBecauseItDoesNotHaveAccessibleConstructors */]: "\u0422\u0438\u043F '{0}' \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D, \u043F\u043E\u0441\u043A\u043E\u043B\u044C\u043A\u0443 \u0443 \u043D\u0435\u0433\u043E \u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u043E\u0432.",
12905
12933
  [3e3 /* CannotFindTsLibDirectoryBaseSearchPaths0 */]: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0439\u0442\u0438 \u043F\u0430\u043F\u043A\u0443 \u0441\u043E \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u043E\u0439 \u0431\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u043E\u0439 TypeScript. \u041F\u0443\u0442\u0438, \u043E\u0442\u043D\u043E\u0441\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u043E\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043B\u044F\u043B\u0441\u044F \u043F\u043E\u0438\u0441\u043A: {0}.",
12906
12934
  [3001 /* SourceFile0IsNotPartOfThePackageAndWontBeLoaded */]: "\u0418\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u0444\u0430\u0439\u043B '{0}' \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0447\u0430\u0441\u0442\u044C\u044E \u043F\u0430\u043A\u0435\u0442\u0430 \u0438 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D.",
12907
12935
  [3002 /* ProgramWithoutMainPackageCannotBeCompiled */]: "\u041F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430 \u0431\u0435\u0437 \u0433\u043B\u0430\u0432\u043D\u043E\u0433\u043E \u043F\u0430\u043A\u0435\u0442\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0441\u043A\u043E\u043C\u043F\u0438\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0430.",
@@ -20963,6 +20991,7 @@ var TypeMemberKindFlags = /* @__PURE__ */ ((TypeMemberKindFlags6) => {
20963
20991
  TypeMemberKindFlags6[TypeMemberKindFlags6["FieldOrOrdinaryMethod"] = 3] = "FieldOrOrdinaryMethod";
20964
20992
  TypeMemberKindFlags6[TypeMemberKindFlags6["NamedA"] = 19] = "NamedA";
20965
20993
  TypeMemberKindFlags6[TypeMemberKindFlags6["NamedM"] = 15] = "NamedM";
20994
+ TypeMemberKindFlags6[TypeMemberKindFlags6["CanOverrideOrShadow"] = 243] = "CanOverrideOrShadow";
20966
20995
  return TypeMemberKindFlags6;
20967
20996
  })(TypeMemberKindFlags || {});
20968
20997
 
@@ -24016,7 +24045,7 @@ function createPackageNameBasedOnUri(uri) {
24016
24045
  var PackageConfigurationRu_exports = {};
24017
24046
  __export(PackageConfigurationRu_exports, {
24018
24047
  \u0414\u0438\u0430\u043B\u0435\u043A\u0442: () => \u0414\u0438\u0430\u043B\u0435\u043A\u0442,
24019
- \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044FJavaScript: () => \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044FJavaScript,
24048
+ \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442: () => \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442,
24020
24049
  \u042F\u0437\u044B\u043A: () => \u042F\u0437\u044B\u043A
24021
24050
  });
24022
24051
  var \u042F\u0437\u044B\u043A = /* @__PURE__ */ ((\u042F\u0437\u044B\u043A2) => {
@@ -24029,11 +24058,11 @@ var \u0414\u0438\u0430\u043B\u0435\u043A\u0442 = /* @__PURE__ */ ((\u0414\u0438\
24029
24058
  \u0414\u0438\u0430\u043B\u0435\u043A\u04422["\u0410\u0440\u0442\u0435\u043B\u044C\u041C"] = "\u0410\u0440\u0442\u0435\u043B\u044C-\u041C";
24030
24059
  return \u0414\u0438\u0430\u043B\u0435\u043A\u04422;
24031
24060
  })(\u0414\u0438\u0430\u043B\u0435\u043A\u0442 || {});
24032
- var \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044FJavaScript = /* @__PURE__ */ ((\u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044FJavaScript2) => {
24033
- \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044FJavaScript2["Esm"] = "esm";
24034
- \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044FJavaScript2["Cjs"] = "cjs";
24035
- return \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044FJavaScript2;
24036
- })(\u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044FJavaScript || {});
24061
+ var \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442 = /* @__PURE__ */ ((\u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u04422) => {
24062
+ \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u04422["Esm"] = "esm";
24063
+ \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u04422["Cjs"] = "cjs";
24064
+ return \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u04422;
24065
+ })(\u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442 || {});
24037
24066
 
24038
24067
  // source/project/configuration/ConfigurationFileParser.ts
24039
24068
  import * as jsoncParser from "jsonc-parser";
@@ -24638,30 +24667,30 @@ var config_ru_schema_default = {
24638
24667
  \u0426\u0435\u043B\u0435\u0432\u0430\u044F\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430: {
24639
24668
  anyOf: [
24640
24669
  {
24641
- $ref: "#/definitions/\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430JavaScript"
24670
+ $ref: "#/definitions/\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24642
24671
  },
24643
24672
  {
24644
- $ref: "#/definitions/\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430DotNet"
24673
+ $ref: "#/definitions/\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430\u0414\u043E\u0442\u041D\u0435\u0442"
24645
24674
  },
24646
24675
  {
24647
24676
  $ref: "#/definitions/\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430\u041B\u044E\u0431\u0430\u044F"
24648
24677
  }
24649
24678
  ]
24650
24679
  },
24651
- \u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430JavaScript: {
24680
+ \u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442: {
24652
24681
  type: "object",
24653
24682
  properties: {
24654
24683
  \u0442\u0438\u043F: {
24655
24684
  type: "string",
24656
- const: "\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430JavaScript"
24685
+ const: "\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24657
24686
  },
24658
24687
  \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u0433\u043E\u041F\u0430\u043A\u0435\u0442\u0430: {
24659
- $ref: "#/definitions/\u0420\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u0433\u043E\u041F\u0430\u043A\u0435\u0442\u0430\u041D\u0430JavaScript"
24688
+ $ref: "#/definitions/\u0420\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u0433\u043E\u041F\u0430\u043A\u0435\u0442\u0430\u041D\u0430\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24660
24689
  },
24661
- \u043F\u0430\u043A\u0435\u0442\u044B\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043C\u044B\u0435\u0418\u0437Dts: {
24690
+ \u043F\u0430\u043A\u0435\u0442\u044B\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043C\u044B\u0435\u0418\u0437\u0424\u0430\u0439\u043B\u043E\u0432Dts: {
24662
24691
  type: "array",
24663
24692
  items: {
24664
- $ref: "#/definitions/\u041F\u0430\u043A\u0435\u0442\u0418\u0437Dts"
24693
+ $ref: "#/definitions/\u041F\u0430\u043A\u0435\u0442\u0418\u0437\u0424\u0430\u0439\u043B\u043E\u0432Dts"
24665
24694
  }
24666
24695
  }
24667
24696
  },
@@ -24670,18 +24699,18 @@ var config_ru_schema_default = {
24670
24699
  ],
24671
24700
  additionalProperties: false
24672
24701
  },
24673
- \u0420\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u0433\u043E\u041F\u0430\u043A\u0435\u0442\u0430\u041D\u0430JavaScript: {
24702
+ \u0420\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u0433\u043E\u041F\u0430\u043A\u0435\u0442\u0430\u041D\u0430\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442: {
24674
24703
  anyOf: [
24675
24704
  {
24676
24705
  type: "object",
24677
24706
  additionalProperties: false,
24678
24707
  properties: {
24679
- \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C\u0418\u0437Dts: {
24708
+ \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C\u0418\u0437\u0424\u0430\u0439\u043B\u043E\u0432Dts: {
24680
24709
  $ref: "#/definitions/\u0414\u0430\u041D\u0435\u0442"
24681
24710
  },
24682
24711
  \u0442\u0438\u043F: {
24683
24712
  type: "string",
24684
- const: "\u041C\u043E\u0434\u0443\u043B\u044CJavaScript"
24713
+ const: "\u041C\u043E\u0434\u0443\u043B\u044C\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24685
24714
  },
24686
24715
  \u0438\u043C\u044F\u041C\u043E\u0434\u0443\u043B\u044F: {
24687
24716
  type: "string"
@@ -24690,7 +24719,7 @@ var config_ru_schema_default = {
24690
24719
  type: "string"
24691
24720
  },
24692
24721
  \u0444\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F: {
24693
- $ref: "#/definitions/\u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044FJavaScript"
24722
+ $ref: "#/definitions/\u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24694
24723
  }
24695
24724
  },
24696
24725
  required: [
@@ -24704,12 +24733,12 @@ var config_ru_schema_default = {
24704
24733
  type: "object",
24705
24734
  additionalProperties: false,
24706
24735
  properties: {
24707
- \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C\u0418\u0437Dts: {
24736
+ \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C\u0418\u0437\u0424\u0430\u0439\u043B\u043E\u0432Dts: {
24708
24737
  $ref: "#/definitions/\u0414\u0430\u041D\u0435\u0442"
24709
24738
  },
24710
24739
  \u0442\u0438\u043F: {
24711
24740
  type: "string",
24712
- const: "\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044FJavaScript"
24741
+ const: "\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24713
24742
  },
24714
24743
  \u0438\u043C\u044F\u041F\u0430\u043A\u0435\u0442\u0430Npm: {
24715
24744
  type: "string"
@@ -24730,18 +24759,18 @@ var config_ru_schema_default = {
24730
24759
  type: "object",
24731
24760
  additionalProperties: false,
24732
24761
  properties: {
24733
- \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C\u0418\u0437Dts: {
24762
+ \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C\u0418\u0437\u0424\u0430\u0439\u043B\u043E\u0432Dts: {
24734
24763
  $ref: "#/definitions/\u0414\u0430\u041D\u0435\u0442"
24735
24764
  },
24736
24765
  \u0442\u0438\u043F: {
24737
24766
  type: "string",
24738
- const: "\u041E\u0431\u043B\u0430\u0441\u0442\u044C\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439\u041C\u043E\u0434\u0443\u043B\u044CJavaScript"
24767
+ const: "\u041E\u0431\u043B\u0430\u0441\u0442\u044C\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439\u041C\u043E\u0434\u0443\u043B\u044C\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24739
24768
  },
24740
24769
  \u043E\u0431\u043B\u0430\u0441\u0442\u044C\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439\u041C\u043E\u0434\u0443\u043B\u044C: {
24741
24770
  type: "string"
24742
24771
  },
24743
24772
  \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u0412\u043B\u0430\u0434\u0435\u043B\u044C\u0446\u0430: {
24744
- $ref: "#/definitions/\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446\u041E\u0431\u043B\u0430\u0441\u0442\u0438\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u043E\u0433\u043E\u041C\u043E\u0434\u0443\u043B\u044FJavaScript"
24773
+ $ref: "#/definitions/\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446\u041E\u0431\u043B\u0430\u0441\u0442\u0438\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u043E\u0433\u043E\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24745
24774
  }
24746
24775
  },
24747
24776
  required: [
@@ -24759,29 +24788,29 @@ var config_ru_schema_default = {
24759
24788
  "\u043D\u0435\u0442"
24760
24789
  ]
24761
24790
  },
24762
- \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044FJavaScript: {
24791
+ \u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442: {
24763
24792
  type: "string",
24764
24793
  enum: [
24765
24794
  "esm",
24766
24795
  "cjs"
24767
24796
  ]
24768
24797
  },
24769
- \u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446\u041E\u0431\u043B\u0430\u0441\u0442\u0438\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u043E\u0433\u043E\u041C\u043E\u0434\u0443\u043B\u044FJavaScript: {
24798
+ \u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446\u041E\u0431\u043B\u0430\u0441\u0442\u0438\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u043E\u0433\u043E\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442: {
24770
24799
  anyOf: [
24771
24800
  {
24772
- $ref: "#/definitions/\u041C\u043E\u0434\u0443\u043B\u044CJavaScript"
24801
+ $ref: "#/definitions/\u041C\u043E\u0434\u0443\u043B\u044C\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24773
24802
  },
24774
24803
  {
24775
- $ref: "#/definitions/\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044FJavaScript"
24804
+ $ref: "#/definitions/\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24776
24805
  }
24777
24806
  ]
24778
24807
  },
24779
- \u041C\u043E\u0434\u0443\u043B\u044CJavaScript: {
24808
+ \u041C\u043E\u0434\u0443\u043B\u044C\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442: {
24780
24809
  type: "object",
24781
24810
  properties: {
24782
24811
  \u0442\u0438\u043F: {
24783
24812
  type: "string",
24784
- const: "\u041C\u043E\u0434\u0443\u043B\u044CJavaScript"
24813
+ const: "\u041C\u043E\u0434\u0443\u043B\u044C\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24785
24814
  },
24786
24815
  \u0438\u043C\u044F\u041C\u043E\u0434\u0443\u043B\u044F: {
24787
24816
  type: "string"
@@ -24790,7 +24819,7 @@ var config_ru_schema_default = {
24790
24819
  type: "string"
24791
24820
  },
24792
24821
  \u0444\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F: {
24793
- $ref: "#/definitions/\u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044FJavaScript"
24822
+ $ref: "#/definitions/\u0424\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24794
24823
  }
24795
24824
  },
24796
24825
  required: [
@@ -24801,12 +24830,12 @@ var config_ru_schema_default = {
24801
24830
  ],
24802
24831
  additionalProperties: false
24803
24832
  },
24804
- \u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044FJavaScript: {
24833
+ \u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442: {
24805
24834
  type: "object",
24806
24835
  properties: {
24807
24836
  \u0442\u0438\u043F: {
24808
24837
  type: "string",
24809
- const: "\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044FJavaScript"
24838
+ const: "\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24810
24839
  },
24811
24840
  \u0438\u043C\u044F\u041F\u0430\u043A\u0435\u0442\u0430Npm: {
24812
24841
  type: "string"
@@ -24824,14 +24853,14 @@ var config_ru_schema_default = {
24824
24853
  ],
24825
24854
  additionalProperties: false
24826
24855
  },
24827
- \u041F\u0430\u043A\u0435\u0442\u0418\u0437Dts: {
24856
+ \u041F\u0430\u043A\u0435\u0442\u0418\u0437\u0424\u0430\u0439\u043B\u043E\u0432Dts: {
24828
24857
  type: "object",
24829
24858
  properties: {
24830
24859
  \u0438\u043C\u044F\u041F\u0430\u043A\u0435\u0442\u0430\u0410\u0440\u0442\u0435\u043B\u044C: {
24831
24860
  type: "string"
24832
24861
  },
24833
24862
  \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F: {
24834
- $ref: "#/definitions/\u0420\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u041D\u0430JavaScript"
24863
+ $ref: "#/definitions/\u0420\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u041D\u0430\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24835
24864
  }
24836
24865
  },
24837
24866
  required: [
@@ -24840,31 +24869,31 @@ var config_ru_schema_default = {
24840
24869
  ],
24841
24870
  additionalProperties: false
24842
24871
  },
24843
- \u0420\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u041D\u0430JavaScript: {
24872
+ \u0420\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u041D\u0430\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442: {
24844
24873
  anyOf: [
24845
24874
  {
24846
- $ref: "#/definitions/\u041C\u043E\u0434\u0443\u043B\u044CJavaScript"
24875
+ $ref: "#/definitions/\u041C\u043E\u0434\u0443\u043B\u044C\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24847
24876
  },
24848
24877
  {
24849
- $ref: "#/definitions/\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044FJavaScript"
24878
+ $ref: "#/definitions/\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24850
24879
  },
24851
24880
  {
24852
- $ref: "#/definitions/\u041E\u0431\u043B\u0430\u0441\u0442\u044C\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439\u041C\u043E\u0434\u0443\u043B\u044CJavaScript"
24881
+ $ref: "#/definitions/\u041E\u0431\u043B\u0430\u0441\u0442\u044C\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439\u041C\u043E\u0434\u0443\u043B\u044C\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24853
24882
  }
24854
24883
  ]
24855
24884
  },
24856
- \u041E\u0431\u043B\u0430\u0441\u0442\u044C\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439\u041C\u043E\u0434\u0443\u043B\u044CJavaScript: {
24885
+ \u041E\u0431\u043B\u0430\u0441\u0442\u044C\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439\u041C\u043E\u0434\u0443\u043B\u044C\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442: {
24857
24886
  type: "object",
24858
24887
  properties: {
24859
24888
  \u0442\u0438\u043F: {
24860
24889
  type: "string",
24861
- const: "\u041E\u0431\u043B\u0430\u0441\u0442\u044C\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439\u041C\u043E\u0434\u0443\u043B\u044CJavaScript"
24890
+ const: "\u041E\u0431\u043B\u0430\u0441\u0442\u044C\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439\u041C\u043E\u0434\u0443\u043B\u044C\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24862
24891
  },
24863
24892
  \u043E\u0431\u043B\u0430\u0441\u0442\u044C\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439\u041C\u043E\u0434\u0443\u043B\u044C: {
24864
24893
  type: "string"
24865
24894
  },
24866
24895
  \u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u0412\u043B\u0430\u0434\u0435\u043B\u044C\u0446\u0430: {
24867
- $ref: "#/definitions/\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446\u041E\u0431\u043B\u0430\u0441\u0442\u0438\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u043E\u0433\u043E\u041C\u043E\u0434\u0443\u043B\u044FJavaScript"
24896
+ $ref: "#/definitions/\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446\u041E\u0431\u043B\u0430\u0441\u0442\u0438\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u043E\u0433\u043E\u041C\u043E\u0434\u0443\u043B\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442"
24868
24897
  }
24869
24898
  },
24870
24899
  required: [
@@ -24874,12 +24903,12 @@ var config_ru_schema_default = {
24874
24903
  ],
24875
24904
  additionalProperties: false
24876
24905
  },
24877
- \u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430DotNet: {
24906
+ \u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430\u0414\u043E\u0442\u041D\u0435\u0442: {
24878
24907
  type: "object",
24879
24908
  properties: {
24880
24909
  \u0442\u0438\u043F: {
24881
24910
  type: "string",
24882
- const: "\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430DotNet"
24911
+ const: "\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430\u0414\u043E\u0442\u041D\u0435\u0442"
24883
24912
  }
24884
24913
  },
24885
24914
  required: [
@@ -25190,16 +25219,16 @@ var RussianConfigurationTranslator = class {
25190
25219
  }
25191
25220
  static translateTargetPlatform(value) {
25192
25221
  switch (value.\u0442\u0438\u043F) {
25193
- case "\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430JavaScript":
25222
+ case "\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442":
25194
25223
  return {
25195
25224
  type: "JavaScriptPlatform",
25196
25225
  interfacePackageImplementation: value.\u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u0433\u043E\u041F\u0430\u043A\u0435\u0442\u0430 !== void 0 ? {
25197
25226
  ...this.translateJavascriptImplementation(value.\u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u0433\u043E\u041F\u0430\u043A\u0435\u0442\u0430),
25198
- loadFromDts: this.translateYesNo(value.\u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u0433\u043E\u041F\u0430\u043A\u0435\u0442\u0430.\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C\u0418\u0437Dts)
25227
+ loadFromDts: this.translateYesNo(value.\u0440\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043D\u043E\u0433\u043E\u041F\u0430\u043A\u0435\u0442\u0430.\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C\u0418\u0437\u0424\u0430\u0439\u043B\u043E\u0432Dts)
25199
25228
  } : void 0,
25200
- packagesLoadedFromDts: value.\u043F\u0430\u043A\u0435\u0442\u044B\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043C\u044B\u0435\u0418\u0437Dts !== void 0 ? value.\u043F\u0430\u043A\u0435\u0442\u044B\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043C\u044B\u0435\u0418\u0437Dts.map((v) => this.translatePackageFromDts(v)) : void 0
25229
+ packagesLoadedFromDts: value.\u043F\u0430\u043A\u0435\u0442\u044B\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043C\u044B\u0435\u0418\u0437\u0424\u0430\u0439\u043B\u043E\u0432Dts !== void 0 ? value.\u043F\u0430\u043A\u0435\u0442\u044B\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043C\u044B\u0435\u0418\u0437\u0424\u0430\u0439\u043B\u043E\u0432Dts.map((v) => this.translatePackageFromDts(v)) : void 0
25201
25230
  };
25202
- case "\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430DotNet":
25231
+ case "\u041F\u043B\u0430\u0442\u0444\u043E\u0440\u043C\u0430\u0414\u043E\u0442\u041D\u0435\u0442":
25203
25232
  return {
25204
25233
  type: "DotNetPlatform"
25205
25234
  };
@@ -25214,20 +25243,20 @@ var RussianConfigurationTranslator = class {
25214
25243
  }
25215
25244
  static translateJavascriptImplementation(value) {
25216
25245
  switch (value.\u0442\u0438\u043F) {
25217
- case "\u041C\u043E\u0434\u0443\u043B\u044CJavaScript":
25246
+ case "\u041C\u043E\u0434\u0443\u043B\u044C\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442":
25218
25247
  return {
25219
25248
  type: "JavaScriptModule",
25220
25249
  moduleName: value.\u0438\u043C\u044F\u041C\u043E\u0434\u0443\u043B\u044F,
25221
25250
  npmPackageName: value.\u0438\u043C\u044F\u041F\u0430\u043A\u0435\u0442\u0430Npm,
25222
25251
  moduleFormat: this.translateJavaScriptModuleFormat(value.\u0444\u043E\u0440\u043C\u0430\u0442\u041C\u043E\u0434\u0443\u043B\u044F)
25223
25252
  };
25224
- case "\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044FJavaScript":
25253
+ case "\u0413\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0435\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442":
25225
25254
  return {
25226
25255
  type: "JavaScriptGlobals",
25227
25256
  npmPackageName: value.\u0438\u043C\u044F\u041F\u0430\u043A\u0435\u0442\u0430Npm,
25228
25257
  standardLibraryFiles: value.\u0444\u0430\u0439\u043B\u044B\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u043E\u0439\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0438
25229
25258
  };
25230
- case "\u041E\u0431\u043B\u0430\u0441\u0442\u044C\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439\u041C\u043E\u0434\u0443\u043B\u044CJavaScript":
25259
+ case "\u041E\u0431\u043B\u0430\u0441\u0442\u044C\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439\u041C\u043E\u0434\u0443\u043B\u044C\u0414\u0436\u0430\u0432\u0430\u0421\u043A\u0440\u0438\u043F\u0442":
25231
25260
  return {
25232
25261
  type: "JavaScriptNamespaceOrSubModule",
25233
25262
  namespaceOrSubModule: value.\u043E\u0431\u043B\u0430\u0441\u0442\u044C\u0418\u043C\u0451\u043D\u0418\u043B\u0438\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439\u041C\u043E\u0434\u0443\u043B\u044C,
@@ -33294,6 +33323,29 @@ var GeneralLoweringContext = class {
33294
33323
  sourceLocation
33295
33324
  );
33296
33325
  }
33326
+ moveAssignmentOfDefaultParameterValuesToBody(parameters, body) {
33327
+ if (parameters.every((p) => p.defaultValue === void 0)) {
33328
+ return;
33329
+ }
33330
+ const statements = new Array();
33331
+ for (const parameter of parameters) {
33332
+ if (parameter.defaultValue === void 0) {
33333
+ continue;
33334
+ }
33335
+ const defaultValue = parameter.defaultValue;
33336
+ parameter.defaultValue = void 0;
33337
+ const isEmptyCheck = binaryExpression(
33338
+ this.ectx,
33339
+ variableGetAccess(parameter.entity),
33340
+ 4 /* Equals */,
33341
+ nullLiteral()
33342
+ );
33343
+ const assignmentStatement2 = assignmentStatement(variableSetAccess(parameter.entity), defaultValue);
33344
+ const ifStatement3 = ifStatement(isEmptyCheck, blockStatement([assignmentStatement2]), void 0);
33345
+ statements.push(ifStatement3);
33346
+ }
33347
+ body.statements = statements.concat(body.statements.concat());
33348
+ }
33297
33349
  isExpressionThatDoesNotNeedToBeCached(node) {
33298
33350
  switch (node.kind) {
33299
33351
  case 60 /* ThisExpression */:
@@ -34674,7 +34726,7 @@ var OverloadedConstructorsLowering = class {
34674
34726
  );
34675
34727
  this.lowerOwnConstructorCalls(constructorDeclarations);
34676
34728
  for (const constructor of constructorDeclarations) {
34677
- this.lowerParametersWithDefaultValue(constructor);
34729
+ this.ctx.moveAssignmentOfDefaultParameterValuesToBody(constructor.parameters, constructor.body);
34678
34730
  }
34679
34731
  const mergedConstructor = this.mergeOverloadedConstructors(constructorDeclarations, constructorGroup);
34680
34732
  const members = declaration.members.filter((m) => m.kind !== 50 /* ConstructorDeclaration */);
@@ -34730,29 +34782,6 @@ var OverloadedConstructorsLowering = class {
34730
34782
  }
34731
34783
  }
34732
34784
  }
34733
- lowerParametersWithDefaultValue(declaration) {
34734
- if (declaration.parameters.every((p) => p.defaultValue === void 0)) {
34735
- return;
34736
- }
34737
- const statements = new Array();
34738
- for (const parameter of declaration.parameters) {
34739
- if (parameter.defaultValue === void 0) {
34740
- continue;
34741
- }
34742
- const defaultValue = parameter.defaultValue;
34743
- parameter.defaultValue = void 0;
34744
- const isEmptyCheck = binaryExpression(
34745
- this.ctx.ectx,
34746
- variableGetAccess(parameter.entity),
34747
- 4 /* Equals */,
34748
- nullLiteral()
34749
- );
34750
- const assignmentStatement2 = assignmentStatement(variableSetAccess(parameter.entity), defaultValue);
34751
- const ifStatement3 = ifStatement(isEmptyCheck, blockStatement([assignmentStatement2]), void 0);
34752
- statements.push(ifStatement3);
34753
- }
34754
- declaration.body.statements = statements.concat(declaration.body.statements.concat());
34755
- }
34756
34785
  mergeOverloadedConstructors(constructorDeclarations, constructorGroup) {
34757
34786
  const constructorEntity = constructorGroup.mergedConstructor;
34758
34787
  const constructorParameters = constructorEntity.parameters;
@@ -35509,12 +35538,17 @@ var UsagesLowering = class _UsagesLowering extends ExecutableCodeLowering {
35509
35538
  }
35510
35539
  return replaceExpression(expression);
35511
35540
  },
35541
+ transformConstructorDeclaration: (node) => {
35542
+ this.ctx.moveAssignmentOfDefaultParameterValuesToBody(node.parameters, node.body);
35543
+ return preserveTypeMember();
35544
+ },
35512
35545
  transformMethodDeclaration: (node) => {
35513
35546
  const nameKeySymbolDeclaration = this.getSymbolOfComputedNameForMemberDeclaration(node.entity);
35514
35547
  if (nameKeySymbolDeclaration !== void 0) {
35515
35548
  node.ifComputedThenKey = this.ctx.createKeyForComputedNameWithSymbolKey(nameKeySymbolDeclaration);
35516
35549
  }
35517
35550
  this.objectParameterLowering.tryRemoveObjectParameterFromMethod(node);
35551
+ this.ctx.moveAssignmentOfDefaultParameterValuesToBody(node.parameters, node.body);
35518
35552
  return preserveTypeMember();
35519
35553
  },
35520
35554
  transformFieldDeclaration: (node) => {
@@ -35664,14 +35698,17 @@ var UsagesLowering = class _UsagesLowering extends ExecutableCodeLowering {
35664
35698
  if (result !== void 0) {
35665
35699
  return result;
35666
35700
  }
35701
+ this.ctx.moveAssignmentOfDefaultParameterValuesToBody(node.parameters, node.body);
35667
35702
  return preserveExpression();
35668
35703
  },
35669
35704
  transformPackageFunctionDeclaration: (node) => {
35670
35705
  this.objectParameterLowering.tryRemoveObjectParameterFromPackageFunction(node);
35706
+ this.ctx.moveAssignmentOfDefaultParameterValuesToBody(node.parameters, node.body);
35671
35707
  return preservePackageMember();
35672
35708
  },
35673
35709
  transformNestedFunctionDeclaration: (node) => {
35674
35710
  this.objectParameterLowering.tryRemoveObjectParameterFromNestedFunction(node);
35711
+ this.ctx.moveAssignmentOfDefaultParameterValuesToBody(node.parameters, node.body);
35675
35712
  return preserveNode();
35676
35713
  },
35677
35714
  transformNestedFunctionDeclarationStatement: (node) => {
@@ -35682,8 +35719,13 @@ var UsagesLowering = class _UsagesLowering extends ExecutableCodeLowering {
35682
35719
  },
35683
35720
  transformFunctionJsObjectLiteralProperty: (node) => {
35684
35721
  this.objectParameterLowering.tryRemoveObjectParameterFromFunctionJsObjectLiteralProperty(node);
35722
+ this.ctx.moveAssignmentOfDefaultParameterValuesToBody(node.parameters, node.body);
35685
35723
  return preserveNode();
35686
35724
  },
35725
+ transformJsFunctionLiteral: (node) => {
35726
+ this.ctx.moveAssignmentOfDefaultParameterValuesToBody(node.parameters, node.body);
35727
+ return preserveExpression();
35728
+ },
35687
35729
  transformBlockStatement: (node) => {
35688
35730
  this.moveNestedFunctionsToTheBeginningOfTheBlock(node);
35689
35731
  return preserveStatement();
@@ -37271,22 +37313,16 @@ var IrBuilderA = class {
37271
37313
  const decorators = this.buildDecorators(declaration.tagList);
37272
37314
  const parameters = this.buildParameterList(declaration.parameterClause.parameterList);
37273
37315
  const body = this.buildFunctionBlockOfFunctionWithoutResult(declaration.block);
37274
- const firstStatement = body.statements[0];
37275
- if (!(firstStatement === void 0 || firstStatement.kind === 19 /* ExpressionStatement */ && (firstStatement.expression.kind === 92 /* OwnConstructorCallExpression */ || firstStatement.expression.kind === 77 /* BaseConstructorCallExpression */))) {
37276
- const containingDeclaration = TypeMemberQuery.getContainingDeclaration(declaration);
37277
- if (isTypeDeclaration(containingDeclaration)) {
37278
- const baseConstructorCalls = this.analyzer.getOwnAndBaseConstructorCallsCheckResult(containingDeclaration).baseConstructorCalls;
37279
- const calledBaseConstructor = baseConstructorCalls.get(originalEntity);
37280
- if (calledBaseConstructor !== void 0) {
37281
- Debug.assert(
37282
- calledBaseConstructor.getParameters().length === 0,
37283
- "\u0411\u0430\u0437\u043E\u0432\u044B\u0439 \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440, \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u043C\u044B\u0439 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E, \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u043C\u0435\u0442\u044C \u043A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440\u043E\u0432."
37284
- );
37285
- const calledBaseConstructorEntity = this.entityMap.getNamedFunctionEntity(calledBaseConstructor.getEntity());
37286
- Debug.assertNotNull(calledBaseConstructorEntity.ifTypeMemberThenContainingType);
37287
- const baseConstructorCall = baseConstructorCallExpression(calledBaseConstructorEntity, []);
37288
- body.statements = [expressionStatement(baseConstructorCall), ...body.statements];
37289
- }
37316
+ const containingDeclaration = TypeMemberQuery.getContainingDeclaration(declaration);
37317
+ if (isTypeDeclaration(containingDeclaration)) {
37318
+ const checkResults = this.analyzer.getOwnAndBaseConstructorCallsCheckResult(containingDeclaration);
37319
+ const ownOrBaseConstructorCallInfo = checkResults.ownOrBaseConstructorCallInfos.get(declaration);
37320
+ if (ownOrBaseConstructorCallInfo !== void 0 && ownOrBaseConstructorCallInfo.node === void 0) {
37321
+ const calledBaseConstructorEntity = this.entityMap.getNamedFunctionEntity(
37322
+ ownOrBaseConstructorCallInfo.constructor_.getEntity()
37323
+ );
37324
+ const baseConstructorCall = baseConstructorCallExpression(calledBaseConstructorEntity, []);
37325
+ body.statements = [expressionStatement(baseConstructorCall), ...body.statements];
37290
37326
  }
37291
37327
  }
37292
37328
  return constructorDeclaration(entity, parameters, body, this.getSourceLocation(declaration)).withDecorators(decorators);
@@ -47065,6 +47101,11 @@ var TypeMemberLookup = class _TypeMemberLookup {
47065
47101
  const lookup = new NamedTypeMemberLookup(this.analyzer, this.typeOrExtension, context, kinds);
47066
47102
  return lookup.getMembersByName(name, this.typeOrExtension, options);
47067
47103
  }
47104
+ getMatchingNamedMembersByName(name, memberToMatch, context, options = 0 /* None */) {
47105
+ const flagOfMemberToMatch = memberToMatch.kindFlag;
47106
+ const kinds = (flagOfMemberToMatch & 3 /* FieldOrOrdinaryMethod */) !== 0 ? 3 /* FieldOrOrdinaryMethod */ : flagOfMemberToMatch;
47107
+ return this.getNamedMembersByName(name, context, kinds, options);
47108
+ }
47068
47109
  getConstructors(context, options = 0 /* None */) {
47069
47110
  const lookup = new ConstructorLookup(this.analyzer, this.typeOrExtension, context);
47070
47111
  return lookup.getConstructors(this.typeOrExtension, options);
@@ -47112,6 +47153,9 @@ var BoundTypeMemberLookup = class _BoundTypeMemberLookup {
47112
47153
  getNamedMembersByName(name) {
47113
47154
  return this.lookup.getNamedMembersByName(name, this.context, this.kinds, this.options);
47114
47155
  }
47156
+ getMatchingNamedMembersByName(name, memberToMatch) {
47157
+ return this.lookup.getMatchingNamedMembersByName(name, memberToMatch, this.context, this.options);
47158
+ }
47115
47159
  getConstructors() {
47116
47160
  return this.lookup.getConstructors(this.context);
47117
47161
  }
@@ -47145,7 +47189,7 @@ var TypeMemberLookupOptions = /* @__PURE__ */ ((TypeMemberLookupOptions2) => {
47145
47189
  TypeMemberLookupOptions2[TypeMemberLookupOptions2["CheckAccessibilityIgnoringReceiverType"] = 8] = "CheckAccessibilityIgnoringReceiverType";
47146
47190
  TypeMemberLookupOptions2[TypeMemberLookupOptions2["NoBaseTypeMembers"] = 16] = "NoBaseTypeMembers";
47147
47191
  TypeMemberLookupOptions2[TypeMemberLookupOptions2["OnlyInstanceOrOnlyStaticMembers"] = 3] = "OnlyInstanceOrOnlyStaticMembers";
47148
- TypeMemberLookupOptions2[TypeMemberLookupOptions2["OnlyOwnMembers"] = 20] = "OnlyOwnMembers";
47192
+ TypeMemberLookupOptions2[TypeMemberLookupOptions2["NoBaseTypeAndExtensionMembers"] = 20] = "NoBaseTypeAndExtensionMembers";
47149
47193
  return TypeMemberLookupOptions2;
47150
47194
  })(TypeMemberLookupOptions || {});
47151
47195
  var TypeMemberLookupBase = class {
@@ -58045,7 +58089,20 @@ var TsPackageSymbols;
58045
58089
  }
58046
58090
  getItems() {
58047
58091
  return this.items.getOrInsertWith(() => {
58048
- return Query.from(this.sourceFiles).flatMap((f) => f.locals?.values() ?? []).map((s) => new SymbolFromTs(this.tsctx.tsChecker.getMergedSymbol(s), false)).unique((s) => s.value).toArray();
58092
+ return Query.from(this.sourceFiles).flatMap((f) => {
58093
+ let result;
58094
+ if (!ts6.isExternalOrCommonJsModule(f) && f.locals !== void 0) {
58095
+ result = Query.from(f.locals.values());
58096
+ }
58097
+ for (const augmentation of f.moduleAugmentations) {
58098
+ const moduleAugmentation = augmentation.parent;
58099
+ if (ts6.isModuleDeclaration(moduleAugmentation) && ts6.isGlobalScopeAugmentation(moduleAugmentation) && moduleAugmentation.symbol.exports !== void 0) {
58100
+ result ??= Query.empty();
58101
+ result = result.chain(moduleAugmentation.symbol.exports.values());
58102
+ }
58103
+ }
58104
+ return result ?? [];
58105
+ }).map((s) => new SymbolFromTs(this.tsctx.tsChecker.getMergedSymbol(s), false)).unique((s) => s.value).toArray();
58049
58106
  });
58050
58107
  }
58051
58108
  }
@@ -60574,6 +60631,9 @@ var TypeMemberLookupA = class _TypeMemberLookupA {
60574
60631
  getNamedMembersByName(name, context, options = 0 /* None */) {
60575
60632
  return this.typeMemberLookup.getNamedMembersByName(name, context, 19 /* NamedA */, options);
60576
60633
  }
60634
+ getMatchingNamedMembersByName(name, memberToMatch, context, options = 0 /* None */) {
60635
+ return this.typeMemberLookup.getMatchingNamedMembersByName(name, memberToMatch, context, options);
60636
+ }
60577
60637
  getConstructors(context, options = 0 /* None */) {
60578
60638
  return this.typeMemberLookup.getConstructors(context, options);
60579
60639
  }
@@ -60627,6 +60687,9 @@ var BoundTypeMemberLookupA = class _BoundTypeMemberLookupA {
60627
60687
  getNamedMembersByName(name) {
60628
60688
  return this.typeMemberLookup.getNamedMembersByName(name);
60629
60689
  }
60690
+ getMatchingNamedMembersByName(name, memberToMatch) {
60691
+ return this.typeMemberLookup.getMatchingNamedMembersByName(name, memberToMatch);
60692
+ }
60630
60693
  getConstructors() {
60631
60694
  return this.typeMemberLookup.getConstructors();
60632
60695
  }
@@ -61168,6 +61231,7 @@ var SourceFileAnalyzer = class {
61168
61231
  this.analyzer.semanticContext.ofTypeDeclarationTypeParameters(node, node.typeParameterClause).validateNameConflicts(this.diagnosticAcceptor);
61169
61232
  }
61170
61233
  const entity = this.analyzer.entity.ofPackageVariantDeclaration(node);
61234
+ this.checkBaseObjectTypeHasAccessibleConstructors(entity, node, node.extendsClause?.baseTypeList, node.name);
61171
61235
  if (node.extendsClause !== void 0) {
61172
61236
  this.checkAspectsHaveNotBeenExtendedWithDifferentTypeArguments(entity, node.extendsClause.baseTypeList, node.name);
61173
61237
  }
@@ -61205,6 +61269,7 @@ var SourceFileAnalyzer = class {
61205
61269
  if (node.typeParameterClause !== void 0) {
61206
61270
  this.analyzer.semanticContext.ofTypeDeclarationTypeParameters(node, node.typeParameterClause).validateNameConflicts(this.diagnosticAcceptor);
61207
61271
  }
61272
+ this.checkBaseObjectTypeHasAccessibleConstructors(entity, node, node.extendsClause?.baseTypeList, node.name);
61208
61273
  if (node.extendsClause !== void 0) {
61209
61274
  this.checkAspectsHaveNotBeenExtendedWithDifferentTypeArguments(entity, node.extendsClause.baseTypeList, node.name);
61210
61275
  }
@@ -61396,7 +61461,7 @@ var SourceFileAnalyzer = class {
61396
61461
  const typeMemberLookup = TypeMemberLookupA.ofType(this.analyzer, fieldType);
61397
61462
  const namedMembers = typeMemberLookup.getNamedMembers(
61398
61463
  void 0,
61399
- 20 /* OnlyOwnMembers */ | 1 /* OnlyInstanceMembers */
61464
+ 20 /* NoBaseTypeAndExtensionMembers */ | 1 /* OnlyInstanceMembers */
61400
61465
  );
61401
61466
  for (const namedMember of namedMembers) {
61402
61467
  if (namedMember.kind === "field" && !isVariableEntityWithExplicitAccessors(namedMember.getEntity())) {
@@ -61447,6 +61512,31 @@ var SourceFileAnalyzer = class {
61447
61512
  return result;
61448
61513
  });
61449
61514
  }
61515
+ checkBaseObjectTypeHasAccessibleConstructors(entity, typeDeclaration, baseTypeList, fallbackDiagnosticLocation) {
61516
+ const baseType = this.analyzer.typeUtils.getPossiblyAliasedBaseObjectTypeOfEntity(entity);
61517
+ if (baseType === void 0) {
61518
+ return;
61519
+ }
61520
+ const unaliasedBaseType = baseType.unalias();
61521
+ if (unaliasedBaseType.getEntity()?.getOriginalEntity() === this.analyzer.originalWellKnownDeclarations.object) {
61522
+ return;
61523
+ }
61524
+ const semanticContext = this.analyzer.semanticContext.outermostSemanticContextOfTypeDeclaration(typeDeclaration);
61525
+ const typeMemberLookup = TypeMemberLookup.ofType(this.analyzer, baseType);
61526
+ const typeMemberLookupContext = semanticContext.getTypeMemberLookupContext();
61527
+ const constructors = typeMemberLookup.getConstructors(
61528
+ typeMemberLookupContext,
61529
+ 4 /* NoTypeExtensionMembers */
61530
+ );
61531
+ if (constructors.length === 0) {
61532
+ const diagnosticLocation = baseTypeList?.baseTypes.first((n) => this.analyzer.type.ofTypeSpecifier(n).equals(baseType)) ?? fallbackDiagnosticLocation;
61533
+ this.createAndAddDiagnostic(
61534
+ 2250 /* Type0CannotBeExtendedBecauseItDoesNotHaveAccessibleConstructors */,
61535
+ diagnosticLocation,
61536
+ [this.diagnosticArgumentFactory.createDisplayableType(baseType)]
61537
+ );
61538
+ }
61539
+ }
61450
61540
  checkAspectsHaveNotBeenExtendedWithDifferentTypeArguments(entity, baseTypeList, fallbackDiagnosticLocation) {
61451
61541
  const type = this.analyzer.instantiateTypeByIdentitySubstitution(entity);
61452
61542
  const baseAspectTypes = this.analyzer.typeUtils.getPossiblyAliasedBaseAspectTypes(type);
@@ -61921,6 +62011,7 @@ var SourceFileAnalyzer = class {
61921
62011
  }
61922
62012
  checkAnonymousClassDeclaration(node) {
61923
62013
  const entity = this.analyzer.entity.ofAnonymousStructuredTypeDeclaration(node);
62014
+ this.checkBaseObjectTypeHasAccessibleConstructors(entity, node, node.extendsClause?.baseTypeList, node.classKeyword);
61924
62015
  if (node.extendsClause !== void 0) {
61925
62016
  this.checkAspectsHaveNotBeenExtendedWithDifferentTypeArguments(
61926
62017
  entity,
@@ -62123,8 +62214,24 @@ var SourceFileAnalyzer = class {
62123
62214
  if (parent.kind === 60 /* AsExpression */) {
62124
62215
  parent = parent.getParentSkippingParenthesizedExpressions();
62125
62216
  }
62217
+ let hasReportedDiagnostic = false;
62126
62218
  if (!(parent.kind === 73 /* MemberAccessExpression */ || parent.kind === 67 /* IndexedAccessExpression */ || parent.kind === 75 /* DereferenceExpression */)) {
62127
62219
  this.createAndAddDiagnostic(2059 /* BaseCannotBeUsedAsAnExpressionInItself */, node);
62220
+ hasReportedDiagnostic = true;
62221
+ }
62222
+ if (!hasReportedDiagnostic) {
62223
+ const containingSubprogram = this.analyzer.semanticContext.containing(node).getContainingSubprogram();
62224
+ if (containingSubprogram?.kind === "constructor") {
62225
+ const constructorDeclaration2 = containingSubprogram.getNode();
62226
+ const declarationContainingConstructor = TypeMemberQuery.getContainingDeclaration(constructorDeclaration2);
62227
+ if (isTypeDeclaration(declarationContainingConstructor)) {
62228
+ const checkResults = this.analyzer.getOwnAndBaseConstructorCallsCheckResult(declarationContainingConstructor);
62229
+ const callInfo = checkResults.ownOrBaseConstructorCallInfos.get(constructorDeclaration2);
62230
+ if (callInfo?.node !== void 0 && !(node.rangeWithoutTrivia.start >= callInfo.node.rangeWithoutTrivia.end)) {
62231
+ this.createAndAddDiagnostic(2248 /* BaseCannotBeAccessedBeforeOwnOrBaseConstructorCall */, node);
62232
+ }
62233
+ }
62234
+ }
62128
62235
  }
62129
62236
  } else if (meaning.kind === "overridden-method-access" && meaning.method.kind === "substituted-function") {
62130
62237
  const typeArgumentClause = getParentGenericSpecializationExpression(node)?.typeArgumentClause;
@@ -62138,6 +62245,18 @@ var SourceFileAnalyzer = class {
62138
62245
  }
62139
62246
  checkObjectExpression(node) {
62140
62247
  this.analyzer.resolveObjectExpression(node);
62248
+ const containingSubprogram = this.analyzer.semanticContext.containing(node).getContainingSubprogram();
62249
+ if (containingSubprogram?.kind === "constructor") {
62250
+ const constructorDeclaration2 = containingSubprogram.getNode();
62251
+ const declarationContainingConstructor = TypeMemberQuery.getContainingDeclaration(constructorDeclaration2);
62252
+ if (isTypeDeclaration(declarationContainingConstructor)) {
62253
+ const checkResults = this.analyzer.getOwnAndBaseConstructorCallsCheckResult(declarationContainingConstructor);
62254
+ const callInfo = checkResults.ownOrBaseConstructorCallInfos.get(constructorDeclaration2);
62255
+ if (callInfo?.node !== void 0 && !(node.rangeWithoutTrivia.start >= callInfo.node.rangeWithoutTrivia.end)) {
62256
+ this.createAndAddDiagnostic(2247 /* ObjectCannotBeAccessedBeforeOwnOrBaseConstructorCall */, node);
62257
+ }
62258
+ }
62259
+ }
62141
62260
  }
62142
62261
  checkAssignmentStatement(node) {
62143
62262
  if (this.checkAssignmentIsValid(node)) {
@@ -62529,14 +62648,20 @@ var SourceFileAnalyzer = class {
62529
62648
  }
62530
62649
  case "function-access": {
62531
62650
  const func = meaning.suitableOrSingleFunction;
62532
- if (func !== void 0 && func.kind === "substituted-function") {
62533
- const typeArgumentClause = getParentGenericSpecializationExpression(node);
62534
- this.checkTypeArgumentTypesAreAssignableToConstraints(
62535
- func.getTypeParameters(),
62536
- func.value.getSubstitutions(),
62537
- func.value.getOuterSubstitutions(),
62538
- typeArgumentClause ?? node
62539
- );
62651
+ if (func !== void 0) {
62652
+ if (func.kind === "substituted-function") {
62653
+ const typeArgumentClause = getParentGenericSpecializationExpression(node);
62654
+ this.checkTypeArgumentTypesAreAssignableToConstraints(
62655
+ func.getTypeParameters(),
62656
+ func.value.getSubstitutions(),
62657
+ func.value.getOuterSubstitutions(),
62658
+ typeArgumentClause ?? node
62659
+ );
62660
+ }
62661
+ const entity = func.getEntity();
62662
+ if (entity.subkind === "method") {
62663
+ this.checkMethodAccessWithImplicitReceiver(func, meaning.objectParameterContainingFunctions, node);
62664
+ }
62540
62665
  }
62541
62666
  break;
62542
62667
  }
@@ -62557,6 +62682,13 @@ var SourceFileAnalyzer = class {
62557
62682
  } else if ((meaning.access.kind === 0 /* Get */ || meaning.access.kind === 2 /* GetSet */) && this.checkLocalVariableIsUsedBeforeBeingAssigned(node, entity)) {
62558
62683
  this.createAndAddDiagnostic(2128 /* VariableMayNotHasBeenAssignedBeforeUsage */, node);
62559
62684
  }
62685
+ } else if (meaning.variable.kind === "type-member") {
62686
+ this.checkFieldAccessWithImplicitReceiver(
62687
+ meaning.variable.value,
62688
+ meaning.access,
62689
+ meaning.objectParameterContainingVariable,
62690
+ node
62691
+ );
62560
62692
  }
62561
62693
  break;
62562
62694
  }
@@ -62568,6 +62700,85 @@ var SourceFileAnalyzer = class {
62568
62700
  Debug.never(meaning);
62569
62701
  }
62570
62702
  }
62703
+ checkFieldAccessWithImplicitReceiver(field, access, objectParameterContainingVariable, node) {
62704
+ if (!field.isStatic() && objectParameterContainingVariable === void 0) {
62705
+ const containingSubprogram = this.analyzer.semanticContext.containing(node).getContainingSubprogram();
62706
+ if (containingSubprogram?.kind === "constructor") {
62707
+ const constructorDeclaration2 = containingSubprogram.getNode();
62708
+ const declarationContainingConstructor = TypeMemberQuery.getContainingDeclaration(constructorDeclaration2);
62709
+ if (isTypeDeclaration(declarationContainingConstructor)) {
62710
+ let hasReportedDiagnostic = false;
62711
+ const checkResults = this.analyzer.getOwnAndBaseConstructorCallsCheckResult(declarationContainingConstructor);
62712
+ const callInfo = checkResults.ownOrBaseConstructorCallInfos.get(constructorDeclaration2);
62713
+ if (callInfo?.node !== void 0) {
62714
+ if (!(node.rangeWithoutTrivia.start >= callInfo.node.rangeWithoutTrivia.end)) {
62715
+ this.createAndAddDiagnostic(
62716
+ 2249 /* InstanceMemberCannotBeAccessedBeforeOwnOrBaseConstructorCall */,
62717
+ node
62718
+ );
62719
+ hasReportedDiagnostic = true;
62720
+ }
62721
+ }
62722
+ if (!hasReportedDiagnostic) {
62723
+ if (this.analyzer.entity.ofTypeWithMembersDeclaration(declarationContainingConstructor) === field.getEntity().getContainingEntity().getOriginalEntity() && (access.kind === 0 /* Get */ || access.kind === 2 /* GetSet */) && this.checkOwnFieldAccessedInConstructorIsUsedBeforeBeingAssigned(node, field.getEntity())) {
62724
+ this.createAndAddDiagnostic(2128 /* VariableMayNotHasBeenAssignedBeforeUsage */, node);
62725
+ }
62726
+ }
62727
+ }
62728
+ }
62729
+ }
62730
+ }
62731
+ checkMethodAccessWithImplicitReceiver(method, objectParameterContainingVariable, node) {
62732
+ const entity = method.getEntity();
62733
+ if (!(entity.subkind === "method" && entity.isStatic()) && objectParameterContainingVariable === void 0) {
62734
+ const containingSubprogram = this.analyzer.semanticContext.containing(node).getContainingSubprogram();
62735
+ if (containingSubprogram?.kind === "constructor") {
62736
+ const constructorDeclaration2 = containingSubprogram.getNode();
62737
+ const declarationContainingConstructor = TypeMemberQuery.getContainingDeclaration(constructorDeclaration2);
62738
+ if (isTypeDeclaration(declarationContainingConstructor)) {
62739
+ const checkResults = this.analyzer.getOwnAndBaseConstructorCallsCheckResult(declarationContainingConstructor);
62740
+ const callInfo = checkResults.ownOrBaseConstructorCallInfos.get(constructorDeclaration2);
62741
+ if (callInfo?.node !== void 0) {
62742
+ if (!(node.rangeWithoutTrivia.start >= callInfo.node.rangeWithoutTrivia.end)) {
62743
+ this.createAndAddDiagnostic(
62744
+ 2249 /* InstanceMemberCannotBeAccessedBeforeOwnOrBaseConstructorCall */,
62745
+ node
62746
+ );
62747
+ }
62748
+ }
62749
+ }
62750
+ }
62751
+ }
62752
+ }
62753
+ checkOwnFieldAccessedInConstructorIsUsedBeforeBeingAssigned(usage, entity) {
62754
+ if (isVariableEntityWithExplicitAccessors(entity)) {
62755
+ return false;
62756
+ }
62757
+ if (this.isStoredFieldConsideredInitializedAtDeclaration(entity)) {
62758
+ return false;
62759
+ }
62760
+ const controlFlowNode = this.analyzer.getControlFlowGraph(this.sourceFile).controlFlowNodeByReference.get(usage);
62761
+ if (controlFlowNode === void 0) {
62762
+ return false;
62763
+ }
62764
+ const reference = new NarrowableReference.InstanceField(
62765
+ this.analyzer,
62766
+ entity,
62767
+ new NarrowableReference.ObjectAutoVariable()
62768
+ );
62769
+ const assignmentChecker = new VariableIsAssignedChecker(this.analyzer, reference, controlFlowNode);
62770
+ return !assignmentChecker.checkVariableIsAssigned();
62771
+ }
62772
+ isStoredFieldConsideredInitializedAtDeclaration(entity) {
62773
+ const definition = entity.getDefinition();
62774
+ if (definition.kind !== 0 /* Source */) {
62775
+ return false;
62776
+ }
62777
+ if (!(definition.value.kind === "single" && definition.value.node.kind === 49 /* FieldDeclaration */)) {
62778
+ return true;
62779
+ }
62780
+ return definition.value.node.initializer !== void 0;
62781
+ }
62571
62782
  checkLocalVariableUsedBeforeDeclaration(usage, entity) {
62572
62783
  const entityDefinition = entity.getDefinition();
62573
62784
  if (!(entityDefinition.kind === 0 /* Source */ && entityDefinition.value.kind === "single" && entityDefinition.value.node.kind === 54 /* LocalVariableDeclaration */)) {
@@ -62681,6 +62892,18 @@ var SourceFileAnalyzer = class {
62681
62892
  if (this.isReceiverBaseAutoVariableAccess(node.expression) && TypeMemberEntity.isAbstract(entity)) {
62682
62893
  this.createAndAddDiagnostic(2169 /* CannotAccessAbstractMemberOfBaseType */, node.memberName);
62683
62894
  }
62895
+ if ((meaning.access.kind === 0 /* Get */ || meaning.access.kind === 2 /* GetSet */) && node.expression.unwrapParenthesizedExpressions().kind === 84 /* ObjectExpression */) {
62896
+ const containingSubprogram = this.analyzer.semanticContext.containing(node).getContainingSubprogram();
62897
+ if (containingSubprogram?.kind === "constructor") {
62898
+ const constructorDeclaration2 = containingSubprogram.getNode();
62899
+ const declarationContainingConstructor = TypeMemberQuery.getContainingDeclaration(constructorDeclaration2);
62900
+ if (isTypeDeclaration(declarationContainingConstructor) && this.analyzer.entity.ofTypeWithMembersDeclaration(declarationContainingConstructor) === meaning.field.getEntity().getContainingEntity().getOriginalEntity()) {
62901
+ if (this.checkOwnFieldAccessedInConstructorIsUsedBeforeBeingAssigned(node, meaning.field.getEntity())) {
62902
+ this.createAndAddDiagnostic(2128 /* VariableMayNotHasBeenAssignedBeforeUsage */, node.memberName);
62903
+ }
62904
+ }
62905
+ }
62906
+ }
62684
62907
  break;
62685
62908
  }
62686
62909
  case "package-variable-access":
@@ -63219,6 +63442,9 @@ var BoundTypeMemberLookupM = class _BoundTypeMemberLookupM {
63219
63442
  getNamedMembersByName(name) {
63220
63443
  return this.typeMemberLookup.getNamedMembersByName(name);
63221
63444
  }
63445
+ getMatchingNamedMembersByName(name, memberToMatch) {
63446
+ return this.typeMemberLookup.getMatchingNamedMembersByName(name, memberToMatch);
63447
+ }
63222
63448
  getConstructors() {
63223
63449
  return this.typeMemberLookup.getConstructors();
63224
63450
  }
@@ -64304,27 +64530,7 @@ var TypeMemberImplementationChecker = class {
64304
64530
  );
64305
64531
  }
64306
64532
  isTypeMemberThatCanBeImplicitlyImplemented(member) {
64307
- switch (member.kind) {
64308
- case "field":
64309
- case "indexer":
64310
- case "dereference-operator":
64311
- return true;
64312
- case "method": {
64313
- switch (member.methodKind) {
64314
- case 0 /* Ordinary */:
64315
- case 3 /* Operator */:
64316
- case 4 /* Accessor */:
64317
- return true;
64318
- case 1 /* Constructor */:
64319
- case 2 /* Destructor */:
64320
- return false;
64321
- default:
64322
- Debug.never(member.methodKind);
64323
- }
64324
- }
64325
- default:
64326
- Debug.never(member);
64327
- }
64533
+ return (member.getEntity().kindFlag & 243 /* CanOverrideOrShadow */) !== 0;
64328
64534
  }
64329
64535
  };
64330
64536
  var TypeMemberImplementationCheckResult = class {
@@ -64386,9 +64592,9 @@ var ImplicitImplementationUtils = class {
64386
64592
  );
64387
64593
  switch (member.kind) {
64388
64594
  case "field":
64389
- return typeMemberLookup.getNamedMembersByName(member.getSpecialNameOrName()).filter((m) => m.kind === "field");
64595
+ return typeMemberLookup.getMatchingNamedMembersByName(member.getSpecialNameOrName(), member.getEntity()).filter((m) => m.kind === "field");
64390
64596
  case "method":
64391
- return typeMemberLookup.getNamedMembersByName(member.getSpecialNameOrName()).filter((m) => m.kind === "method" && this.areMatchingMembers(member, m));
64597
+ return typeMemberLookup.getMatchingNamedMembersByName(member.getSpecialNameOrName(), member.getEntity()).filter((m) => m.kind === "method" && this.areMatchingMembers(member, m));
64392
64598
  case "indexer":
64393
64599
  return typeMemberLookup.getIndexers().filter((m) => this.areMatchingMembers(member, m));
64394
64600
  case "dereference-operator":
@@ -66032,7 +66238,7 @@ var OverriddenMember = class _OverriddenMember {
66032
66238
  }
66033
66239
  }
66034
66240
  findOverriddenOrShadowedNamedMembersInType(member, typeMemberLookup) {
66035
- return typeMemberLookup.getNamedMembersByName(member.getSpecialNameOrName()).filter((m) => {
66241
+ return typeMemberLookup.getMatchingNamedMembersByName(member.getSpecialNameOrName(), member.getEntity()).filter((m) => {
66036
66242
  if (member.kind === "method" && m.kind === "method") {
66037
66243
  return this.checkMethodOverridesOrShadowsMethod(member, m);
66038
66244
  }
@@ -66114,11 +66320,14 @@ var OverriddenMember = class _OverriddenMember {
66114
66320
  }
66115
66321
  }
66116
66322
  entityCanOverrideOrShadow(entity) {
66117
- if (entity.isStatic()) {
66118
- return false;
66323
+ let result;
66324
+ if (entity.isStatic() || (entity.kindFlag & 243 /* CanOverrideOrShadow */) === 0) {
66325
+ result = false;
66326
+ } else {
66327
+ const container = entity.getContainingEntity();
66328
+ result = container.kind === 2 /* Type */;
66119
66329
  }
66120
- const container = entity.getContainingEntity();
66121
- return container.kind === 2 /* Type */;
66330
+ return result;
66122
66331
  }
66123
66332
  };
66124
66333
  var OverriddenAndShadowedMembers = class {
@@ -66813,6 +67022,22 @@ var TypeUtils2 = class {
66813
67022
  Debug.never(type);
66814
67023
  }
66815
67024
  }
67025
+ getPossiblyAliasedBaseObjectTypeOfEntity(type) {
67026
+ switch (type.typeEntityKind) {
67027
+ case 1 /* Structured */:
67028
+ return type.getBaseObjectType().cycleFree;
67029
+ case 0 /* Function */:
67030
+ return type.getBaseObjectType().cycleFree;
67031
+ case 3 /* Variant */:
67032
+ return type.getBaseObjectType().cycleFree;
67033
+ case 2 /* Parameter */:
67034
+ case 4 /* Alias */:
67035
+ case 5 /* Reduced */:
67036
+ return void 0;
67037
+ default:
67038
+ Debug.never(type);
67039
+ }
67040
+ }
66816
67041
  getPossiblyAliasedBaseAspectTypes(type) {
66817
67042
  switch (type.kind) {
66818
67043
  case "function":
@@ -71549,6 +71774,7 @@ var FirstStageResolver = class {
71549
71774
  this.diagnostics?.addDiagnostic(this.invalidContextDiagnostic());
71550
71775
  return new Meaning_unresolved2();
71551
71776
  }
71777
+ const unaliasedBaseType = baseType.unalias();
71552
71778
  if (containingTypeOrExtension.value.typeEntityKind !== 4 /* Alias */) {
71553
71779
  if (!(node.parent.kind === 104 /* ExpressionStatement */ && node.parent.parent.parent.kind === 93 /* FunctionBlock */ && node.parent.parent.statements.first() === node.parent)) {
71554
71780
  this.diagnostics?.addDiagnostic(this.analyzer.createDiagnostic(
@@ -71558,8 +71784,11 @@ var FirstStageResolver = class {
71558
71784
  }
71559
71785
  }
71560
71786
  const typeMemberLookupContext = semanticContext.getTypeMemberLookupContext();
71561
- const typeMemberLookup = TypeMemberLookupA.ofType(this.analyzer, baseType);
71562
- const constructors = typeMemberLookup.getConstructors(typeMemberLookupContext);
71787
+ const typeMemberLookup = TypeMemberLookupA.ofType(this.analyzer, unaliasedBaseType);
71788
+ const constructors = typeMemberLookup.getConstructors(
71789
+ typeMemberLookupContext,
71790
+ 4 /* NoTypeExtensionMembers */
71791
+ );
71563
71792
  if (constructors.length === 0) {
71564
71793
  this.diagnostics?.addDiagnostic(this.analyzer.createDiagnostic(
71565
71794
  2006 /* ConstructorNotFound */,
@@ -73977,8 +74206,8 @@ var OwnAndBaseConstructorCallsChecker = class {
73977
74206
  this.semanticContext = semanticContext;
73978
74207
  }
73979
74208
  check() {
74209
+ const callInfos = /* @__PURE__ */ new Map();
73980
74210
  const ownConstructorCalls = /* @__PURE__ */ new Map();
73981
- const baseConstructorCalls = /* @__PURE__ */ new Map();
73982
74211
  const diagnostics = new Array();
73983
74212
  const baseType = this.getUnaliasedBaseObjectType(this.typeEntity);
73984
74213
  let baseConstructorWithoutParameters;
@@ -74009,6 +74238,12 @@ var OwnAndBaseConstructorCallsChecker = class {
74009
74238
  firstStatement,
74010
74239
  diagnostics
74011
74240
  );
74241
+ const callInfo = new OwnOrBaseConstructorCallInfo(
74242
+ true,
74243
+ this.analyzer.instantiateTypeMemberByIdentitySubstitution(entity),
74244
+ expression
74245
+ );
74246
+ callInfos.set(constructorDeclaration2, callInfo);
74012
74247
  }
74013
74248
  }
74014
74249
  if (!isFirstStatementOwnOrBaseConstructorCall) {
@@ -74018,8 +74253,12 @@ var OwnAndBaseConstructorCallsChecker = class {
74018
74253
  isFirstStatementOwnOrBaseConstructorCall = true;
74019
74254
  const meaning = this.analyzer.resolveBaseExpression(callee);
74020
74255
  if (meaning.kind === "base-constructor-access" && meaning.suitableOrSingleConstructor !== void 0) {
74021
- const entity = this.analyzer.entity.ofConstructorDeclaration(constructorDeclaration2);
74022
- baseConstructorCalls.set(entity, meaning.suitableOrSingleConstructor);
74256
+ const callInfo = new OwnOrBaseConstructorCallInfo(
74257
+ false,
74258
+ meaning.suitableOrSingleConstructor,
74259
+ expression
74260
+ );
74261
+ callInfos.set(constructorDeclaration2, callInfo);
74023
74262
  }
74024
74263
  }
74025
74264
  }
@@ -74027,8 +74266,12 @@ var OwnAndBaseConstructorCallsChecker = class {
74027
74266
  }
74028
74267
  if (!isFirstStatementOwnOrBaseConstructorCall) {
74029
74268
  if (baseConstructorWithoutParameters !== void 0) {
74030
- const entity = this.analyzer.entity.ofConstructorDeclaration(constructorDeclaration2);
74031
- baseConstructorCalls.set(entity, baseConstructorWithoutParameters);
74269
+ const callInfo = new OwnOrBaseConstructorCallInfo(
74270
+ false,
74271
+ baseConstructorWithoutParameters,
74272
+ void 0
74273
+ );
74274
+ callInfos.set(constructorDeclaration2, callInfo);
74032
74275
  } else if (baseTypeHasAccessibleConstructors) {
74033
74276
  diagnostics.push(this.analyzer.createDiagnostic(
74034
74277
  2172 /* TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall */,
@@ -74037,7 +74280,12 @@ var OwnAndBaseConstructorCallsChecker = class {
74037
74280
  }
74038
74281
  }
74039
74282
  }
74040
- return new OwnAndBaseConstructorCallsCheckResult(ownConstructorCalls, baseConstructorCalls, diagnostics);
74283
+ const typeRequiresExplicitOwnOrBaseConstructorCalls = baseTypeHasAccessibleConstructors && baseConstructorWithoutParameters === void 0;
74284
+ return new OwnAndBaseConstructorCallsCheckResult(
74285
+ typeRequiresExplicitOwnOrBaseConstructorCalls,
74286
+ callInfos,
74287
+ diagnostics
74288
+ );
74041
74289
  }
74042
74290
  addOwnConstructorCallOrReportCycleDiagnostic(constructorContainingCall, calledConstructor, ownConstructorCalls, diagnosticLocation, diagnostics) {
74043
74291
  if (calledConstructor.getOriginalEntity() === constructorContainingCall.getOriginalEntity()) {
@@ -74063,56 +74311,37 @@ var OwnAndBaseConstructorCallsChecker = class {
74063
74311
  }
74064
74312
  }
74065
74313
  getUnaliasedBaseObjectType(entity) {
74066
- let result;
74067
- switch (entity.typeEntityKind) {
74068
- case 0 /* Function */:
74069
- result = entity.getBaseObjectType().cycleFree;
74070
- break;
74071
- case 1 /* Structured */:
74072
- result = entity.getBaseObjectType().cycleFree;
74073
- break;
74074
- case 3 /* Variant */:
74075
- result = entity.getBaseObjectType().cycleFree;
74076
- break;
74077
- case 4 /* Alias */:
74078
- case 5 /* Reduced */:
74079
- result = void 0;
74080
- break;
74081
- default:
74082
- Debug.never(entity);
74083
- }
74084
- result = result?.unalias();
74314
+ const result = this.analyzer.typeUtils.getPossiblyAliasedBaseObjectTypeOfEntity(entity)?.unalias();
74085
74315
  return result?.kind === "structured" ? result : void 0;
74086
74316
  }
74087
74317
  findAccessibleConstructorWithoutParameters(type) {
74088
- let constructorWithoutParameters;
74089
- let hasAccessibleConstructors = false;
74090
74318
  const lookupContext = this.semanticContext.getTypeMemberLookupContext();
74091
- for (const constructor of type.getEntity().getMembers().getConstructors()) {
74092
- if (AccessibilityCheck.isTypeMemberAccessible(constructor, lookupContext, void 0, true)) {
74093
- hasAccessibleConstructors ||= true;
74094
- if (constructor.getParameters().length === 0) {
74095
- if (constructorWithoutParameters === void 0) {
74096
- constructorWithoutParameters = new Method(
74097
- this.analyzer,
74098
- constructor,
74099
- type.getSubstitutions()
74100
- );
74101
- break;
74102
- }
74103
- }
74104
- }
74319
+ const lookup = TypeMemberLookup.ofType(this.analyzer, type);
74320
+ const constructors = lookup.getConstructors(lookupContext, 4 /* NoTypeExtensionMembers */);
74321
+ if (constructors.length === 0) {
74322
+ return { constructor: void 0, hasAccessibleConstructors: false };
74323
+ }
74324
+ let constructor = constructors.find((c) => c.getParameters().length === 0);
74325
+ if (constructor === void 0) {
74326
+ constructor = Query.single(constructors, (c) => c.getParameters().every((p) => p.isOptional()));
74105
74327
  }
74106
- return { constructor: constructorWithoutParameters, hasAccessibleConstructors };
74328
+ return { constructor, hasAccessibleConstructors: true };
74107
74329
  }
74108
74330
  };
74109
74331
  var OwnAndBaseConstructorCallsCheckResult = class {
74110
- constructor(ownConstructorCalls, baseConstructorCalls, diagnostics) {
74111
- this.ownConstructorCalls = ownConstructorCalls;
74112
- this.baseConstructorCalls = baseConstructorCalls;
74332
+ constructor(typeRequiresExplicitOwnOrBaseConstructorCalls, ownOrBaseConstructorCallInfos, diagnostics) {
74333
+ this.typeRequiresExplicitOwnOrBaseConstructorCalls = typeRequiresExplicitOwnOrBaseConstructorCalls;
74334
+ this.ownOrBaseConstructorCallInfos = ownOrBaseConstructorCallInfos;
74113
74335
  this.diagnostics = diagnostics;
74114
74336
  }
74115
74337
  };
74338
+ var OwnOrBaseConstructorCallInfo = class {
74339
+ constructor(isOwnConstructorCall, constructor_, node) {
74340
+ this.isOwnConstructorCall = isOwnConstructorCall;
74341
+ this.constructor_ = constructor_;
74342
+ this.node = node;
74343
+ }
74344
+ };
74116
74345
 
74117
74346
  // source/analysis/a/OwnConstructorCallExpressionMeaning.ts
74118
74347
  var Resolver9 = class {
@@ -74151,7 +74380,10 @@ var Resolver9 = class {
74151
74380
  const type = this.analyzer.instantiateTypeByIdentitySubstitution(typeEntity);
74152
74381
  const typeMemberLookupContext = semanticContext.getTypeMemberLookupContext();
74153
74382
  const typeMemberLookup = TypeMemberLookupA.ofType(this.analyzer, type);
74154
- const constructors = typeMemberLookup.getConstructors(typeMemberLookupContext);
74383
+ const constructors = typeMemberLookup.getConstructors(
74384
+ typeMemberLookupContext,
74385
+ 4 /* NoTypeExtensionMembers */
74386
+ );
74155
74387
  if (constructors.length === 0) {
74156
74388
  this.diagnostics?.addDiagnostic(this.analyzer.createDiagnostic(
74157
74389
  2006 /* ConstructorNotFound */,
@@ -76317,7 +76549,7 @@ var Analyzer3 = class extends Analyzer {
76317
76549
  let result = this.ownAndBaseConstructorCallsCheckResults.get(node);
76318
76550
  if (result === void 0) {
76319
76551
  if (node.kind === 19 /* PackageAliasTypeDeclaration */) {
76320
- result = new OwnAndBaseConstructorCallsCheckResult(/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map(), []);
76552
+ result = new OwnAndBaseConstructorCallsCheckResult(false, /* @__PURE__ */ new Map(), []);
76321
76553
  } else {
76322
76554
  const checker = new OwnAndBaseConstructorCallsChecker(
76323
76555
  this,