@kontur.candy/generator 6.33.0-example.0 → 6.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +295 -1865
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -128131,8 +128131,7 @@ class XmlNode {
128131
128131
  if (childName == undefined) {
128132
128132
  return this.children[0];
128133
128133
  }
128134
- const arr = this.getChildren(childName);
128135
- return arr[0];
128134
+ return this.children.find(node => node.name === childName);
128136
128135
  }
128137
128136
  getRoot() {
128138
128137
  var _this$parent$getRoot, _this$parent;
@@ -128258,7 +128257,9 @@ class XmlNode {
128258
128257
  if (typeof attribute === "boolean") {
128259
128258
  return attribute;
128260
128259
  }
128261
- throw new SugarAttributeReadError(`Expected value to be on of ('true', 'false', 'True', 'False')`, this, attrName);
128260
+ throw new SugarAttributeReadError(
128261
+ // eslint-disable-next-line @typescript-eslint/no-base-to-string
128262
+ `Expected value to be on of ('true', 'false', 'True', 'False'), but received: ${attribute}`, this, attrName);
128262
128263
  }
128263
128264
  attrAsString(attrName, defaultValue) {
128264
128265
  const value = this.attributes[attrName];
@@ -128309,15 +128310,19 @@ class XmlNode {
128309
128310
  class ASTNode {
128310
128311
  constructor(node) {
128311
128312
  this.node = void 0;
128313
+ this.code = void 0;
128312
128314
  this.node = node;
128313
128315
  }
128314
128316
  toString() {
128315
- const result = (0,_babel_generator__WEBPACK_IMPORTED_MODULE_0__["default"])(this.node, {
128316
- jsescOption: {
128317
- minimal: true
128318
- }
128319
- }).code;
128320
- return result.slice(-1) === ";" ? result.slice(0, -1) : result;
128317
+ if (this.code === undefined) {
128318
+ const result = (0,_babel_generator__WEBPACK_IMPORTED_MODULE_0__["default"])(this.node, {
128319
+ jsescOption: {
128320
+ minimal: true
128321
+ }
128322
+ }).code;
128323
+ this.code = result.slice(-1) === ";" ? result.slice(0, -1) : result;
128324
+ }
128325
+ return this.code;
128321
128326
  }
128322
128327
  }
128323
128328
  class SugarReadingError extends _Common_Errors_ExtendedError__WEBPACK_IMPORTED_MODULE_3__.ExtendedError {}
@@ -128370,7 +128375,7 @@ function parseXml(xml, includes) {
128370
128375
  const ast = parseXmlToAst(xml);
128371
128376
  const context = new ConvertationContext(includes);
128372
128377
  context.pushCurrentFileSource(xml);
128373
- return new _XmlNode__WEBPACK_IMPORTED_MODULE_5__.XmlNode(convertNode(ast, context));
128378
+ return convertNode(ast, context);
128374
128379
  }
128375
128380
  class ConvertationContext {
128376
128381
  get parentNodeName() {
@@ -128426,7 +128431,7 @@ class ConvertationContext {
128426
128431
  }
128427
128432
  }
128428
128433
  function buildSource(loc, context) {
128429
- return loc != undefined ? {
128434
+ return loc && {
128430
128435
  currentDir: context.getCurrentDir(),
128431
128436
  sourceText: context.getCurrentFileSource(),
128432
128437
  location: {
@@ -128439,15 +128444,16 @@ function buildSource(loc, context) {
128439
128444
  column: loc.end.column
128440
128445
  }
128441
128446
  }
128442
- } : undefined;
128447
+ };
128443
128448
  }
128444
128449
  function convertNode(node, context) {
128450
+ var _node$loc;
128445
128451
  if (!_babel_types__WEBPACK_IMPORTED_MODULE_1__.isJSXElement(node)) {
128446
128452
  throw new Error("Root element is not a JSXElement");
128447
128453
  }
128448
128454
  if (context.useReferenceResolving) {
128449
128455
  if (node.openingElement.attributes.some(attr => _babel_types__WEBPACK_IMPORTED_MODULE_1__.isJSXAttribute(attr) && attr.name.name === "include")) {
128450
- const attr = node.openingElement.attributes[0];
128456
+ const attr = node.openingElement.attributes[0]; // неявно подразумевается, что у такой ноды лишь 1 аттрибут
128451
128457
  if (_babel_types__WEBPACK_IMPORTED_MODULE_1__.isJSXAttribute(attr) && attr.value && _babel_types__WEBPACK_IMPORTED_MODULE_1__.isStringLiteral(attr.value)) {
128452
128458
  const includeName = attr.value.value;
128453
128459
  const referencedSugarContent = context.getReferencedSugarContent(includeName);
@@ -128464,14 +128470,15 @@ function convertNode(node, context) {
128464
128470
  }
128465
128471
  }
128466
128472
  const nodeName = getNodeName(node);
128467
- const loc = node.loc;
128468
- return {
128473
+ const params = {
128469
128474
  name: context.parentNodeName === "tour" ? nodeName : nodeName.toLowerCase(),
128475
+ // wtf?!
128470
128476
  children: convertChildren(node, context),
128471
128477
  attributes: convertAttributes(node.openingElement.attributes),
128472
128478
  attributeSources: buildAttributeSources(node.openingElement.attributes, context),
128473
- source: buildSource(loc !== null && loc !== void 0 ? loc : null, context)
128479
+ source: buildSource((_node$loc = node.loc) !== null && _node$loc !== void 0 ? _node$loc : undefined, context)
128474
128480
  };
128481
+ return new _XmlNode__WEBPACK_IMPORTED_MODULE_5__.XmlNode(params);
128475
128482
  }
128476
128483
  function convertAttributes(nodeAttributes) {
128477
128484
  const result = {};
@@ -128493,11 +128500,11 @@ function buildAttributeSources(nodeAttributes, context) {
128493
128500
  if (_babel_types__WEBPACK_IMPORTED_MODULE_1__.isJSXSpreadAttribute(attr)) {
128494
128501
  // eslint-disable-next-line no-console
128495
128502
  console.error(attr);
128496
- throw new Error(`Spread attibutes don't support`);
128503
+ throw new Error(`Spread attributes don't support`);
128497
128504
  }
128498
128505
  if (attr.value != undefined) {
128499
128506
  var _attr$loc;
128500
- result[getAttributeName(attr)] = buildSource((_attr$loc = attr.loc) !== null && _attr$loc !== void 0 ? _attr$loc : null, context);
128507
+ result[getAttributeName(attr)] = buildSource((_attr$loc = attr.loc) !== null && _attr$loc !== void 0 ? _attr$loc : undefined, context);
128501
128508
  } else {
128502
128509
  result[getAttributeName(attr)] = undefined;
128503
128510
  }
@@ -128523,7 +128530,7 @@ function convertChildren(node, context) {
128523
128530
  } finally {
128524
128531
  context.popParentNodeName();
128525
128532
  }
128526
- return result.map(x => new _XmlNode__WEBPACK_IMPORTED_MODULE_5__.XmlNode(x));
128533
+ return result;
128527
128534
  }
128528
128535
  function convertChildNode(child, context) {
128529
128536
  if (_babel_types__WEBPACK_IMPORTED_MODULE_1__.isJSXElement(child)) {
@@ -128532,13 +128539,14 @@ function convertChildNode(child, context) {
128532
128539
  if (_babel_types__WEBPACK_IMPORTED_MODULE_1__.isJSXText(child)) {
128533
128540
  const value = child.value.trim();
128534
128541
  if (value.length > 0) {
128535
- return {
128542
+ const params = {
128536
128543
  name: "#innertext",
128537
128544
  attributes: {
128538
128545
  "#innertext": child.value
128539
128546
  },
128540
128547
  children: []
128541
128548
  };
128549
+ return new _XmlNode__WEBPACK_IMPORTED_MODULE_5__.XmlNode(params);
128542
128550
  }
128543
128551
  }
128544
128552
  if (_babel_types__WEBPACK_IMPORTED_MODULE_1__.isJSXExpressionContainer(child)) {
@@ -128546,13 +128554,14 @@ function convertChildNode(child, context) {
128546
128554
  if (_babel_types__WEBPACK_IMPORTED_MODULE_1__.isJSXEmptyExpression(child.expression)) {
128547
128555
  return undefined;
128548
128556
  }
128549
- return {
128557
+ const params = {
128550
128558
  name: "#innertext",
128551
128559
  attributes: {
128552
128560
  "#innertext": new _XmlNode__WEBPACK_IMPORTED_MODULE_5__.ASTNode(child.expression)
128553
128561
  },
128554
128562
  children: []
128555
128563
  };
128564
+ return new _XmlNode__WEBPACK_IMPORTED_MODULE_5__.XmlNode(params);
128556
128565
  }
128557
128566
  return undefined;
128558
128567
  }
@@ -132504,9 +132513,8 @@ __webpack_require__.r(__webpack_exports__);
132504
132513
 
132505
132514
 
132506
132515
  function getMarkupDocuments() {
132507
- const nodes = (0,_markupGenerator_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_2__.getAllSugarNodeClasses)();
132508
- const validationNodes = (0,_markupGenerator_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_2__.getAllSugarValidationNodeClasses)();
132509
- return nodes.concat(validationNodes).map(_SugarNodeDocumentationGenerator__WEBPACK_IMPORTED_MODULE_4__.buildSugarNodeDocumentation);
132516
+ const nodes = _markupGenerator_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_2__.allSugarNodeClasses.concat(_markupGenerator_SugarNodes_DefaultSugarSerializer__WEBPACK_IMPORTED_MODULE_2__.allSugarValidationNodeClasses);
132517
+ return nodes.map(_SugarNodeDocumentationGenerator__WEBPACK_IMPORTED_MODULE_4__.buildSugarNodeDocumentation);
132510
132518
  }
132511
132519
  function getDocuments(documentsDirPath) {
132512
132520
  const docsNames = (0,fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync)(documentsDirPath);
@@ -132733,7 +132741,7 @@ async function getPathImagesFromContext(documentationFilesContext) {
132733
132741
  function buildSugarNodeDocumentation(sugarNodeClass) {
132734
132742
  const metadata = (0,_markupGenerator_Serializer_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_5__.getSugarNodeMetadata)(sugarNodeClass);
132735
132743
  const propertySerializers = (0,_markupGenerator_Serializer_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_5__.getPropertyDeserializers)(sugarNodeClass);
132736
- const documentationFilesContext = metadata.documentationFilesContext;
132744
+ const documentationFilesContext = metadata.docFilesContext;
132737
132745
  const example = (0,_common_RequireContext_LoadDocumentationFileFormContext__WEBPACK_IMPORTED_MODULE_4__.loadDocumentationFileFormContext)(documentationFilesContext, "example.md");
132738
132746
  const markdownDescription = getMarkdownDescription(documentationFilesContext, metadata, sugarNodeClass);
132739
132747
  const {
@@ -150126,19 +150134,19 @@ class CrossfitTableConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODUL
150126
150134
  }
150127
150135
  return 0;
150128
150136
  }
150129
- const addedColumn = new _CrossfitTableNode__WEBPACK_IMPORTED_MODULE_14__.CrossfitTableColumnNode();
150130
- addedColumn.dataScope = new _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_7__.DataBindingScopeMixinNode();
150131
- addedColumn.parent = parent;
150132
- addedColumn.rowspan = rowspan;
150133
- addedColumn.width = "50";
150134
- addedColumn.children = [];
150135
- addedColumn.sourceXmlNode = new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_9__.XmlNode({
150137
+ const sourceXmlNode = new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_9__.XmlNode({
150136
150138
  name: "column",
150137
150139
  attributes: {
150138
150140
  rowspan: rowspan,
150139
150141
  width: "50"
150140
150142
  }
150141
150143
  });
150144
+ const addedColumn = new _CrossfitTableNode__WEBPACK_IMPORTED_MODULE_14__.CrossfitTableColumnNode(sourceXmlNode);
150145
+ addedColumn.dataScope = new _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_7__.DataBindingScopeMixinNode();
150146
+ addedColumn.parent = parent;
150147
+ addedColumn.rowspan = rowspan;
150148
+ addedColumn.width = "50";
150149
+ addedColumn.children = [];
150142
150150
  columns.splice(calcPositionToAdd(columns), 0, addedColumn);
150143
150151
  return columns;
150144
150152
  }
@@ -153465,19 +153473,19 @@ BindingPath: ${errorPath}`));
153465
153473
  }
153466
153474
  return 0;
153467
153475
  }
153468
- const addedColumn = new _StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableColumnNode();
153469
- addedColumn.parent = parent;
153470
- addedColumn.dataScope = new _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_12__.DataBindingScopeMixinNode();
153471
- addedColumn.rowspan = rowspan;
153472
- addedColumn.width = "50";
153473
- addedColumn.children = [];
153474
- addedColumn.sourceXmlNode = new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_5__.XmlNode({
153476
+ const sourceXmlNode = new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_5__.XmlNode({
153475
153477
  name: "column",
153476
153478
  attributes: {
153477
153479
  rowspan: rowspan,
153478
153480
  width: "50"
153479
153481
  }
153480
153482
  });
153483
+ const addedColumn = new _StickyTableNode__WEBPACK_IMPORTED_MODULE_17__.StickyTableColumnNode(sourceXmlNode);
153484
+ addedColumn.parent = parent;
153485
+ addedColumn.dataScope = new _CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_12__.DataBindingScopeMixinNode();
153486
+ addedColumn.rowspan = rowspan;
153487
+ addedColumn.width = "50";
153488
+ addedColumn.children = [];
153481
153489
  columns.splice(calcPositionToAdd(columns), 0, addedColumn);
153482
153490
  return columns;
153483
153491
  }
@@ -161143,17 +161151,18 @@ __webpack_require__.r(__webpack_exports__);
161143
161151
  /* harmony export */ SelectAllCheckboxConverter: () => (/* binding */ SelectAllCheckboxConverter)
161144
161152
  /* harmony export */ });
161145
161153
  /* harmony import */ var _Engine_src_Controls_FastSelectAllCheckboxesHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../../Engine/src/Controls/FastSelectAllCheckboxesHelper */ "./Engine/src/Controls/FastSelectAllCheckboxesHelper.ts");
161146
- /* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
161147
- /* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
161148
- /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
161149
- /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
161150
- /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
161151
- /* harmony import */ var _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/CheckStatement */ "./Generator/src/common/KCLang/CodeDom/CheckStatement.ts");
161152
- /* harmony import */ var _common_KCLang_CodeDom_FormulaStatement__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/FormulaStatement */ "./Generator/src/common/KCLang/CodeDom/FormulaStatement.ts");
161153
- /* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
161154
- /* harmony import */ var _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/ValueReferenceExpression */ "./Generator/src/common/KCLang/CodeDom/ValueReferenceExpression.ts");
161155
- /* harmony import */ var _Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/PathSplitHelper */ "./Common/ModelPath/PathSplitHelper.ts");
161156
- /* harmony import */ var _SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./SelectAllCheckboxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxNode.ts");
161154
+ /* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
161155
+ /* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
161156
+ /* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
161157
+ /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
161158
+ /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
161159
+ /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
161160
+ /* harmony import */ var _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/CheckStatement */ "./Generator/src/common/KCLang/CodeDom/CheckStatement.ts");
161161
+ /* harmony import */ var _common_KCLang_CodeDom_FormulaStatement__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/FormulaStatement */ "./Generator/src/common/KCLang/CodeDom/FormulaStatement.ts");
161162
+ /* harmony import */ var _common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/KCLangPath */ "./Generator/src/common/KCLang/CodeDom/KCLangPath.ts");
161163
+ /* harmony import */ var _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../common/KCLang/CodeDom/ValueReferenceExpression */ "./Generator/src/common/KCLang/CodeDom/ValueReferenceExpression.ts");
161164
+ /* harmony import */ var _Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/PathSplitHelper */ "./Common/ModelPath/PathSplitHelper.ts");
161165
+ /* harmony import */ var _SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./SelectAllCheckboxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox/SelectAllCheckboxNode.ts");
161157
161166
 
161158
161167
 
161159
161168
 
@@ -161166,37 +161175,36 @@ __webpack_require__.r(__webpack_exports__);
161166
161175
 
161167
161176
 
161168
161177
 
161169
- class SelectAllCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
161178
+
161179
+ class SelectAllCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_3__.SugarNodeConverterBase {
161170
161180
  static getAcceptNodeClass() {
161171
- return _SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_11__.SelectAllCheckboxNode;
161181
+ return _SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_12__.SelectAllCheckboxNode;
161172
161182
  }
161173
161183
  get nodePaths() {
161174
- const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_11__.SelectAllCheckboxNode);
161175
- return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node)];
161184
+ const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_12__.SelectAllCheckboxNode);
161185
+ return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node)];
161176
161186
  }
161177
161187
  doBuildDataDeclaration() {
161178
161188
  return {};
161179
161189
  }
161180
161190
  doBuildKCLangCalculations(_buildContext, _formSchemaRng, _prefixPath) {
161181
161191
  var _node$pathToChecked;
161182
- const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_11__.SelectAllCheckboxNode);
161192
+ const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_12__.SelectAllCheckboxNode);
161183
161193
  const pathToCheckedArray = (0,_Engine_src_Controls_FastSelectAllCheckboxesHelper__WEBPACK_IMPORTED_MODULE_0__.buildDirtyPathForMultiplicityAndCheckboxPath)(node.getFullPath(), (_node$pathToChecked = node.pathToChecked) !== null && _node$pathToChecked !== void 0 ? _node$pathToChecked : "checked");
161184
- const splitInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_10__.getMatchedAndDifferentModelPaths)(node.getFullPath(), pathToCheckedArray);
161185
- return node.dirtyModeInstancesCount != undefined ? [new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_6__.CheckStatement(new _common_KCLang_CodeDom_FormulaStatement__WEBPACK_IMPORTED_MODULE_7__.FormulaStatement(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__.KCLangPath.fromModelPath(splitInfo.differentPath, true), new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_9__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_8__.KCLangPath.fromModelPath((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createRelativeFromTokens)(["null"])))))] : [];
161194
+ const splitInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_11__.getMatchedAndDifferentModelPaths)(node.getFullPath(), pathToCheckedArray);
161195
+ return node.dirtyModeInstancesCount != undefined ? [new _common_KCLang_CodeDom_CheckStatement__WEBPACK_IMPORTED_MODULE_7__.CheckStatement(new _common_KCLang_CodeDom_FormulaStatement__WEBPACK_IMPORTED_MODULE_8__.FormulaStatement(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_9__.KCLangPath.fromModelPath(splitInfo.differentPath, true), new _common_KCLang_CodeDom_ValueReferenceExpression__WEBPACK_IMPORTED_MODULE_10__.ValueReferenceExpression(_common_KCLang_CodeDom_KCLangPath__WEBPACK_IMPORTED_MODULE_9__.KCLangPath.fromModelPath((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createRelativeFromTokens)(["null"])))))] : [];
161186
161196
  }
161187
- buildChildrenDataDeclaration(context) {
161188
- const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_11__.SelectAllCheckboxNode);
161189
- return context.processChildrenDataDeclaration(node.children);
161197
+ buildChildrenDataDeclaration() {
161198
+ return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_1__.emptyDataDeclarationCollection;
161190
161199
  }
161191
161200
  *doTraverseChildren() {
161192
- const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_11__.SelectAllCheckboxNode);
161193
- yield* node.children;
161201
+ // no children
161194
161202
  }
161195
- doConvert(context) {
161203
+ doConvert() {
161196
161204
  var _node$filteredUniqKey, _node$uncheckedValue, _node$checkedValue;
161197
- const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_11__.SelectAllCheckboxNode);
161198
- const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("SelectAllCheckbox");
161199
- markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node));
161205
+ const node = this.getCurrentNodeAs(_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_12__.SelectAllCheckboxNode);
161206
+ const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_2__.componentMarkupBuilder)("SelectAllCheckbox");
161207
+ markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_4__.getNewBindingPathExpression)(node));
161200
161208
  markupBuilder.prop(x => x.pathToChecked).set(node.getPathToChecked());
161201
161209
  markupBuilder.prop("data-tid").set(node.tid);
161202
161210
  markupBuilder.prop(x => x.filteredUniqKey).set((_node$filteredUniqKey = node.filteredUniqKey) !== null && _node$filteredUniqKey !== void 0 ? _node$filteredUniqKey : "default");
@@ -161204,12 +161212,11 @@ class SelectAllCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_M
161204
161212
  markupBuilder.prop(x => x.checkedValue).set((_node$checkedValue = node.checkedValue) !== null && _node$checkedValue !== void 0 ? _node$checkedValue : "true");
161205
161213
  markupBuilder.prop(x => x.dirtyModeInstancesCount).set(node.dirtyModeInstancesCount);
161206
161214
  if (node.disabled2 != undefined) {
161207
- markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__.buildExpressionPropValue)(node.disabled2));
161215
+ markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(node.disabled2));
161208
161216
  if (this.getLegacyNode().getParent() != undefined) {
161209
161217
  markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
161210
161218
  }
161211
161219
  }
161212
- markupBuilder.appendChild(context.convertChildNodes(node.children));
161213
161220
  return markupBuilder.buildConverterResult();
161214
161221
  }
161215
161222
  }
@@ -161241,14 +161248,14 @@ __webpack_require__.r(__webpack_exports__);
161241
161248
 
161242
161249
 
161243
161250
 
161244
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
161251
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
161245
161252
 
161246
161253
 
161247
161254
 
161248
161255
 
161249
161256
 
161250
161257
  let SelectAllCheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.sugarNode)("selectallcheckbox", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectAllCheckbox sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("path", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.bindingPath.required, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.bindingPathLink)} данного элемента. Должен указывать на множественный элемент, в котором проставляются галочки.`), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("pathToChecked", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.bindingPath, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.bindingPathLink)} относительного пути (от текущего значения в path) до поля с галочкой. По умолчанию значение 'checked'`), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_6__.FocusManagementNode), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_5__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_4__.TooltipSettingsNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("filteredUniqKey", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Уникальный ключ фильтрации multiline, используется, для фильтраций одних и тех же путей иннера
161251
- разными фильтрами. Задается произвольной строкой. Фильтры с одинаковым ключем фильтрации получают одинаковый результат фильтрации`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("dirtyModeInstancesCount", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Опция включает режим простановки галочек без фактического расчёта формул и валидаций, зависящих от них`), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("checkedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Значение, которое будет проставлено всем чекбоксам во включенном состоянии. По-умолчанию, "true"`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("uncheckedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Значение, которое будет проставлено всем чекбоксам в выключенном состоянии. По-умолчанию, "false"`), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.children)(undefined, undefined, ["type"]), _dec(_class = (_class2 = class SelectAllCheckboxNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
161258
+ разными фильтрами. Задается произвольной строкой. Фильтры с одинаковым ключем фильтрации получают одинаковый результат фильтрации`), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("dirtyModeInstancesCount", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.number, `Опция включает режим простановки галочек без фактического расчёта формул и валидаций, зависящих от них`), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("checkedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Значение, которое будет проставлено всем чекбоксам во включенном состоянии. По-умолчанию, "true"`), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attr)("uncheckedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.attrType.string, `Значение, которое будет проставлено всем чекбоксам в выключенном состоянии. По-умолчанию, "false"`), _dec(_class = (_class2 = class SelectAllCheckboxNode extends _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_3__.SugarNodeBase {
161252
161259
  constructor(...args) {
161253
161260
  super(...args);
161254
161261
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "path", _descriptor, this);
@@ -161261,7 +161268,6 @@ let SelectAllCheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPO
161261
161268
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dirtyModeInstancesCount", _descriptor8, this);
161262
161269
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "checkedValue", _descriptor9, this);
161263
161270
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "uncheckedValue", _descriptor10, this);
161264
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor11, this);
161265
161271
  }
161266
161272
  getOwnPath() {
161267
161273
  return this.path != undefined ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.createFromMask)(this.path, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_7__.PathTokens.each) : undefined;
@@ -161320,11 +161326,6 @@ let SelectAllCheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPO
161320
161326
  enumerable: true,
161321
161327
  writable: true,
161322
161328
  initializer: null
161323
- }), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec12], {
161324
- configurable: true,
161325
- enumerable: true,
161326
- writable: true,
161327
- initializer: null
161328
161329
  }), _class2)) || _class);
161329
161330
 
161330
161331
  /***/ }),
@@ -161340,13 +161341,15 @@ __webpack_require__.r(__webpack_exports__);
161340
161341
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
161341
161342
  /* harmony export */ SelectCheckboxConverter: () => (/* binding */ SelectCheckboxConverter)
161342
161343
  /* harmony export */ });
161343
- /* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
161344
- /* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
161345
- /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
161346
- /* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
161347
- /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
161348
- /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
161349
- /* harmony import */ var _SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SelectCheckboxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxNode.ts");
161344
+ /* harmony import */ var _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../DataDeclarationGenerator/DataDeclarationGenerationContext */ "./Generator/src/generators/DataDeclarationGenerator/DataDeclarationGenerationContext.ts");
161345
+ /* harmony import */ var _ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ComponentMarkupBuilder/ComponentMarkupBuilder */ "./Generator/src/generators/markupGenerator/ComponentMarkupBuilder/ComponentMarkupBuilder.ts");
161346
+ /* harmony import */ var _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../SugarNodeConverter */ "./Generator/src/generators/markupGenerator/SugarNodeConverter.ts");
161347
+ /* harmony import */ var _getBindingPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../getBindingPath */ "./Generator/src/generators/markupGenerator/getBindingPath.ts");
161348
+ /* harmony import */ var _CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps */ "./Generator/src/generators/markupGenerator/ElementProcessors/CommonNodeProperties/TooltipProperties/SetTooltipSettingsProps.ts");
161349
+ /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
161350
+ /* harmony import */ var _SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../SugarNodes/SugarNodeUtils */ "./Generator/src/generators/markupGenerator/SugarNodes/SugarNodeUtils.ts");
161351
+ /* harmony import */ var _SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./SelectCheckboxNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox/SelectCheckboxNode.ts");
161352
+
161350
161353
 
161351
161354
 
161352
161355
 
@@ -161354,18 +161357,18 @@ __webpack_require__.r(__webpack_exports__);
161354
161357
 
161355
161358
 
161356
161359
 
161357
- class SelectCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_1__.SugarNodeConverterBase {
161360
+ class SelectCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.SugarNodeConverterBase {
161358
161361
  static getAcceptNodeClass() {
161359
- return _SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode;
161362
+ return _SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_7__.SelectCheckboxNode;
161360
161363
  }
161361
161364
  get nodePaths() {
161362
- const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
161363
- return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node)];
161365
+ const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_7__.SelectCheckboxNode);
161366
+ return [(0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node)];
161364
161367
  }
161365
161368
  *doBuildKCLangValidations(buildContext, formSchemaRng, prefixPath) {
161366
- const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
161369
+ const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_7__.SelectCheckboxNode);
161367
161370
  const element = formSchemaRng.getElementByPath(node.getFullPath());
161368
- const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_4__.PathTokens.each);
161371
+ const targetPath = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.createAbsoluteFromMask)(this.getResolvedBindingPath(node), _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_5__.PathTokens.each);
161369
161372
  const typeNode = buildContext.getTypeNode(node.validationInfo);
161370
161373
  const schemaTypeNode = buildContext.getSchemaTypeInfo(targetPath);
161371
161374
  const ownPath = node.getOwnPathForKCLang();
@@ -161375,11 +161378,11 @@ class SelectCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
161375
161378
  yield* buildContext.buildBasicValidations(ownPath, targetPath, prefixPath, typeNode, schemaTypeNode, node.validationInfo.optional == undefined ? element === null || element === void 0 ? void 0 : element.isOptional() : node.validationInfo.optional, undefined, node.validationInfo.emptydescription);
161376
161379
  }
161377
161380
  doBuildNodeValidations(validationGenerator) {
161378
- const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
161381
+ const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_7__.SelectCheckboxNode);
161379
161382
  validationGenerator.processValidations(this.getResolvedBindingPath(node), node.validationInfo.optional, validationGenerator.getTypeNode(node.validationInfo), undefined, node.validationInfo.emptydescription, undefined);
161380
161383
  }
161381
161384
  doBuildDataDeclaration(context) {
161382
- const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
161385
+ const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_7__.SelectCheckboxNode);
161383
161386
  return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["value", context.initSequenceFactory.dataValue(node.dataBinding, false, this.getDefaultValue(node))]]), context.addSpecialFieldsEntry(node, {
161384
161387
  optional: node.dataBinding.optional
161385
161388
  }), context.addPathSectionDeclarationEntry(node, node.dataBinding.requisite), context.addVisibilityPathDeclEntryNew(node, node.dataBinding.requisite));
@@ -161398,20 +161401,18 @@ class SelectCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
161398
161401
  }
161399
161402
  return defaultValue;
161400
161403
  }
161401
- buildChildrenDataDeclaration(context) {
161402
- const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
161403
- return context.processChildrenDataDeclaration(node.children);
161404
+ buildChildrenDataDeclaration() {
161405
+ return _DataDeclarationGenerator_DataDeclarationGenerationContext__WEBPACK_IMPORTED_MODULE_0__.emptyDataDeclarationCollection;
161404
161406
  }
161405
161407
  *doTraverseChildren() {
161406
- const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
161407
- yield* node.children;
161408
+ // no children
161408
161409
  }
161409
161410
  doConvert(context) {
161410
161411
  var _node$checkedValue2, _node$uncheckedValue2;
161411
- const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_6__.SelectCheckboxNode);
161412
+ const node = this.getCurrentNodeAs(_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_7__.SelectCheckboxNode);
161412
161413
  this.ensurePathExists(node, node.dataBinding.path);
161413
- const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_0__.componentMarkupBuilder)("SelectCheckbox");
161414
- markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_2__.getNewBindingPathExpression)(node));
161414
+ const markupBuilder = (0,_ComponentMarkupBuilder_ComponentMarkupBuilder__WEBPACK_IMPORTED_MODULE_1__.componentMarkupBuilder)("SelectCheckbox");
161415
+ markupBuilder.prop(x => x.bindingPath).set((0,_getBindingPath__WEBPACK_IMPORTED_MODULE_3__.getNewBindingPathExpression)(node));
161415
161416
  markupBuilder.prop(x => x.checkedValue).set((_node$checkedValue2 = node.checkedValue) !== null && _node$checkedValue2 !== void 0 ? _node$checkedValue2 : "true");
161416
161417
  markupBuilder.prop("data-tid").set(node.tid);
161417
161418
  markupBuilder.prop(x => x.uncheckedValue).set((_node$uncheckedValue2 = node.uncheckedValue) !== null && _node$uncheckedValue2 !== void 0 ? _node$uncheckedValue2 : "false");
@@ -161419,13 +161420,12 @@ class SelectCheckboxConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
161419
161420
  markupBuilder.prop(x => x.callHelperOnChange).set(context.generateHelperFunctionExpression(node, "callHelperOnChange", node.callHelperOnChange));
161420
161421
  }
161421
161422
  if (node.disabled2 != undefined) {
161422
- markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_5__.buildExpressionPropValue)(node.disabled2));
161423
+ markupBuilder.prop(x => x.disabled2).set((0,_SugarNodes_SugarNodeUtils__WEBPACK_IMPORTED_MODULE_6__.buildExpressionPropValue)(node.disabled2));
161423
161424
  if (this.getLegacyNode().getParent() != undefined) {
161424
161425
  markupBuilder.prop(x => x.evaluatorsContextPath).set(this.getEvaluatorsContextPathExpression());
161425
161426
  }
161426
161427
  }
161427
- markupBuilder.appendChild(context.convertChildNodes(node.children));
161428
- (0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_3__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
161428
+ (0,_CommonNodeProperties_TooltipProperties_SetTooltipSettingsProps__WEBPACK_IMPORTED_MODULE_4__.setTooltipSettingsProps)(markupBuilder, node.tooltipSettings);
161429
161429
  return markupBuilder.buildConverterResult();
161430
161430
  }
161431
161431
  }
@@ -161460,7 +161460,7 @@ __webpack_require__.r(__webpack_exports__);
161460
161460
 
161461
161461
 
161462
161462
 
161463
- var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;
161463
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;
161464
161464
 
161465
161465
 
161466
161466
 
@@ -161469,7 +161469,7 @@ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11
161469
161469
 
161470
161470
 
161471
161471
 
161472
- let SelectCheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.sugarNode)("selectcheckbox", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_10__.FocusManagementNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.deprecatedAttr)("width", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_8__.TooltipSettingsNode), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("checkedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("uncheckedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("callHelperOnChange", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.helperFunctionName, "Вызов helper функции на onChange контролла"), _dec12 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.children)(undefined, undefined, ["type"]), _dec(_class = (_class2 = class SelectCheckboxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__.SugarNodeWithLegacyVisibility {
161472
+ let SelectCheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.sugarNode)("selectcheckbox", ``, __webpack_require__("./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/SelectCheckbox sync recursive .md$")), _dec2 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_DataBindingMixinNode__WEBPACK_IMPORTED_MODULE_3__.DataBindingMixinNode), _dec3 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_FocusManagementNode__WEBPACK_IMPORTED_MODULE_10__.FocusManagementNode), _dec4 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("disabled2", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.javascriptExpression, `${(0,_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.docLink)(_Commons_DocumentationLinks__WEBPACK_IMPORTED_MODULE_9__.javaScriptExpressionLink)} для условного задизейбливания контрола`), _dec5 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.deprecatedAttr)("width", _Serializer_DeprecationReason__WEBPACK_IMPORTED_MODULE_5__.DeprecationReason.InvalidUsage), _dec6 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("tid", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, "Возможность установки произвольных data-tid атрибутов, может пригодиться другим командам, или для идентификации элемента в тестах"), _dec7 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_ValidationInfoNode__WEBPACK_IMPORTED_MODULE_4__.ValidationInfoNode), _dec8 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrMixin)(_CommonNodeProperties_TooltipProperties_TooltipSettingsNode__WEBPACK_IMPORTED_MODULE_8__.TooltipSettingsNode), _dec9 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("checkedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec10 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("uncheckedValue", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.string, ``), _dec11 = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attr)("callHelperOnChange", _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_7__.attrType.helperFunctionName, "Вызов helper функции на onChange контролла"), _dec(_class = (_class2 = class SelectCheckboxNode extends _Serializer_SugarNodeWithLegacyVisibility__WEBPACK_IMPORTED_MODULE_6__.SugarNodeWithLegacyVisibility {
161473
161473
  constructor(...args) {
161474
161474
  super(...args);
161475
161475
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "dataBinding", _descriptor, this);
@@ -161482,7 +161482,6 @@ let SelectCheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
161482
161482
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "checkedValue", _descriptor8, this);
161483
161483
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "uncheckedValue", _descriptor9, this);
161484
161484
  _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "callHelperOnChange", _descriptor10, this);
161485
- _babel_runtime_helpers_initializerDefineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "children", _descriptor11, this);
161486
161485
  }
161487
161486
  getOwnPath() {
161488
161487
  return this.dataBinding.getOwnPath();
@@ -161537,11 +161536,6 @@ let SelectCheckboxNode = (_dec = (0,_Serializer_SugarSerializer__WEBPACK_IMPORTE
161537
161536
  enumerable: true,
161538
161537
  writable: true,
161539
161538
  initializer: null
161540
- }), _descriptor11 = _babel_runtime_helpers_applyDecoratedDescriptor__WEBPACK_IMPORTED_MODULE_1___default()(_class2.prototype, "children", [_dec12], {
161541
- configurable: true,
161542
- enumerable: true,
161543
- writable: true,
161544
- initializer: null
161545
161539
  }), _class2)) || _class);
161546
161540
 
161547
161541
  /***/ }),
@@ -164737,41 +164731,50 @@ __webpack_require__.r(__webpack_exports__);
164737
164731
  /* harmony export */ setPropertyDeserializer: () => (/* binding */ setPropertyDeserializer),
164738
164732
  /* harmony export */ setSugarNodeMetadata: () => (/* binding */ setSugarNodeMetadata)
164739
164733
  /* harmony export */ });
164740
- /* harmony import */ var reflect_metadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! reflect-metadata */ "./node_modules/reflect-metadata/Reflect.js");
164741
- /* harmony import */ var reflect_metadata__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(reflect_metadata__WEBPACK_IMPORTED_MODULE_0__);
164742
-
164743
- const metadataKey = "__METADATA__";
164734
+ const deserializersKey = Symbol("sugarNode:deserializers");
164735
+ const containerMetadataKey = Symbol("sugarNode:containerMetadata");
164744
164736
  function getPropertyDeserializers(targetClass) {
164745
- const result = [];
164746
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
164747
- const keys = Reflect.getMetadataKeys(targetClass.prototype, "deserializers");
164748
- for (const key of keys) {
164749
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
164750
- const propertyDeserializer = Reflect.getMetadata(key, targetClass.prototype, "deserializers");
164751
- result.push(propertyDeserializer);
164752
- }
164753
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
164754
- return result;
164737
+ const store = targetClass.prototype[deserializersKey];
164738
+ return store === undefined ? [] : Object.values(store);
164755
164739
  }
164740
+
164741
+ // NOTE: объявление поля `deserializersKey` происходит именно здесь,
164742
+ // т.к. при инициализации SugarNode первыми выполняются декораторы полей класса
164743
+ // => им нужно добавлять свои сериализаторы в коллекцию
164756
164744
  function setPropertyDeserializer(nodeClass, propertyKey, prop) {
164757
- Reflect.defineMetadata("x:" + propertyKey.toString(), prop, nodeClass, "deserializers");
164758
- }
164759
- function setSugarNodeMetadata(targetClass, metadata) {
164760
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
164761
- Reflect.defineMetadata(metadataKey, metadata, targetClass.prototype);
164762
- }
164763
- function getSugarNodeMetadata(targetClass) {
164764
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-return
164765
- return Reflect.getMetadata(metadataKey, targetClass.prototype);
164766
- }
164767
- function setPropertiesContainerMetadata(targetClass, metadata) {
164768
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
164769
- Reflect.defineMetadata(metadataKey, metadata, targetClass.prototype);
164770
- }
164771
- function getPropertiesContainerMetadata(targetClass) {
164772
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-unsafe-return
164773
- return Reflect.getMetadata(metadataKey, targetClass.prototype);
164745
+ ownDeserializersStore(nodeClass)[propertyKey.toString()] = prop;
164774
164746
  }
164747
+ const ownDeserializersStore = host => {
164748
+ if (!Object.hasOwn(host, deserializersKey)) {
164749
+ inheritAncestorDeserializers(host);
164750
+ }
164751
+ //@ts-expect-error проверка выше гарантирует наличие
164752
+ return host[deserializersKey];
164753
+ };
164754
+ const inheritAncestorDeserializers = host => {
164755
+ const ancestorDeserializers = host[deserializersKey];
164756
+ Object.defineProperty(host, deserializersKey, {
164757
+ value: {
164758
+ ...ancestorDeserializers
164759
+ },
164760
+ enumerable: false,
164761
+ configurable: true,
164762
+ writable: true
164763
+ });
164764
+ };
164765
+ const setContainerMetadata = (targetClass, metadata) => {
164766
+ Object.defineProperty(targetClass.prototype, containerMetadataKey, {
164767
+ value: metadata,
164768
+ enumerable: false,
164769
+ configurable: true,
164770
+ writable: true
164771
+ });
164772
+ };
164773
+ const getContainerMetadata = targetClass => targetClass.prototype[containerMetadataKey];
164774
+ const setSugarNodeMetadata = setContainerMetadata;
164775
+ const getSugarNodeMetadata = getContainerMetadata;
164776
+ const setPropertiesContainerMetadata = setContainerMetadata;
164777
+ const getPropertiesContainerMetadata = getContainerMetadata;
164775
164778
 
164776
164779
  /***/ }),
164777
164780
 
@@ -164812,23 +164815,6 @@ class SugarValueConstraintError extends Error {}
164812
164815
 
164813
164816
  /***/ }),
164814
164817
 
164815
- /***/ "./Generator/src/generators/markupGenerator/Serializer/Properties/DeserializeTracer.ts":
164816
- /*!*********************************************************************************************!*\
164817
- !*** ./Generator/src/generators/markupGenerator/Serializer/Properties/DeserializeTracer.ts ***!
164818
- \*********************************************************************************************/
164819
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
164820
-
164821
- "use strict";
164822
- __webpack_require__.r(__webpack_exports__);
164823
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
164824
- /* harmony export */ nullDeserializeTracer: () => (/* binding */ nullDeserializeTracer)
164825
- /* harmony export */ });
164826
- const nullDeserializeTracer = () => {
164827
- // noop
164828
- };
164829
-
164830
- /***/ }),
164831
-
164832
164818
  /***/ "./Generator/src/generators/markupGenerator/Serializer/Properties/MixinPropertyDeserializer.ts":
164833
164819
  /*!*****************************************************************************************************!*\
164834
164820
  !*** ./Generator/src/generators/markupGenerator/Serializer/Properties/MixinPropertyDeserializer.ts ***!
@@ -164860,10 +164846,8 @@ class MixinPropertyDeserializer {
164860
164846
  }
164861
164847
  fillFromSugarXmlNode(result, xmlNode, serializer, tracer) {
164862
164848
  const metadata = (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_0__.getPropertiesContainerMetadata)(this.nodeClass);
164863
- const propertyResult = new this.nodeClass();
164864
- propertyResult.sourceXmlNode = xmlNode;
164865
- metadata.fillFromSugarXmlNode(propertyResult, xmlNode, serializer, tracer);
164866
- // @ts-ignore
164849
+ const propertyResult = metadata.fillFromSugarXmlNode(xmlNode, serializer, tracer);
164850
+ // @ts-expect-error
164867
164851
  result[this.propertyName] = propertyResult;
164868
164852
  }
164869
164853
  }
@@ -164987,7 +164971,9 @@ class BooleanValueParser {
164987
164971
  if (typeof attribute === "boolean") {
164988
164972
  return attribute;
164989
164973
  }
164990
- throw new _Errors_SugarValueConstraintError__WEBPACK_IMPORTED_MODULE_0__.SugarValueConstraintError(`Expected value to be on of ('true', 'false', 'True', 'False')`);
164974
+ throw new _Errors_SugarValueConstraintError__WEBPACK_IMPORTED_MODULE_0__.SugarValueConstraintError(
164975
+ // eslint-disable-next-line @typescript-eslint/no-base-to-string
164976
+ `Expected value to be on of ('true', 'false', 'True', 'False'), but received: ${attribute}`);
164991
164977
  }
164992
164978
  }
164993
164979
 
@@ -165656,61 +165642,55 @@ __webpack_require__.r(__webpack_exports__);
165656
165642
  /* harmony import */ var _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/XmlParser/XmlNode */ "./Generator/src/common/XmlParser/XmlNode.ts");
165657
165643
 
165658
165644
  class PropertiesContainerMetadataBase {
165659
- constructor() {
165660
- this.propertyDeserializers = [];
165661
- }
165662
- addPropertyDeserializer(propertyDeserializer) {
165663
- this.propertyDeserializers.push(propertyDeserializer);
165645
+ constructor(args) {
165646
+ this.nodeClass = void 0;
165647
+ this.propertyDeserializers = void 0;
165648
+ this.propertyDeserializers = args.deserializers;
165649
+ this.nodeClass = args.nodeClass;
165664
165650
  }
165665
165651
  getPropertyDeserializers() {
165666
165652
  return this.propertyDeserializers;
165667
165653
  }
165668
- fillFromSugarXmlNode(targetNode, sourceXmlNode, serializer, tracer) {
165654
+ fillFromSugarXmlNode(sourceXmlNode, serializer, tracer) {
165655
+ const targetNode = new this.nodeClass(sourceXmlNode);
165669
165656
  for (const propertyDeserializer of this.propertyDeserializers) {
165670
165657
  propertyDeserializer.fillFromSugarXmlNode(targetNode, sourceXmlNode, serializer, tracer);
165671
165658
  }
165659
+ return targetNode;
165672
165660
  }
165673
165661
  }
165674
165662
  class SugarAttributesMixinMetadata extends PropertiesContainerMetadataBase {}
165675
165663
  class SugarNodeMetadata extends PropertiesContainerMetadataBase {
165676
165664
  get sugarNodeName() {
165677
- return this.nodeName || "";
165665
+ return this.nodeName;
165678
165666
  }
165679
- constructor(canDeserialize) {
165680
- super();
165681
- this.canDeserializeFunc = void 0;
165667
+ constructor(args) {
165668
+ super({
165669
+ nodeClass: args.nodeClass,
165670
+ deserializers: args.deserializers
165671
+ });
165682
165672
  this.nodeName = void 0;
165683
- this.documentationFilesRoot = void 0;
165684
- this.documentationFilesContext = void 0;
165685
165673
  this.description = void 0;
165686
165674
  this.docQualifier = void 0;
165687
- this.canDeserializeFunc = canDeserialize;
165675
+ this.docFilesContext = void 0;
165676
+ this.canDeserializeFunc = void 0;
165677
+ this.nodeName = args.nodeName;
165678
+ this.description = args.description;
165679
+ this.docQualifier = args.docQualifier;
165680
+ this.docFilesContext = args.docFilesContext;
165681
+ this.canDeserializeFunc = args.canDeserialize;
165688
165682
  }
165689
165683
  getNodeName() {
165690
165684
  return this.nodeName;
165691
165685
  }
165692
- setNodeName(nodeName) {
165693
- this.nodeName = nodeName;
165694
- }
165695
165686
  getDocQualifier() {
165696
165687
  return this.docQualifier;
165697
165688
  }
165698
- setDocQualifier(docQualifier) {
165699
- this.docQualifier = docQualifier;
165700
- }
165701
165689
  canDeserialize(sugarXmlNode) {
165702
- if (this.nodeName == undefined) {
165703
- throw new Error("Node defintion does not contains sugarNode attribute");
165704
- }
165705
- if (sugarXmlNode.name === this.nodeName) {
165706
- if (this.canDeserializeFunc != undefined) {
165707
- return this.canDeserializeFunc(sugarXmlNode);
165708
- }
165709
- return true;
165710
- }
165711
- return false;
165690
+ const sameName = sugarXmlNode.name === this.nodeName;
165691
+ return sameName && this.canDeserializeFunc(sugarXmlNode);
165712
165692
  }
165713
- fillFromSugarXmlNode(targetNode, sourceXmlNode, serializer) {
165693
+ fillFromSugarXmlNode(sourceXmlNode, serializer) {
165714
165694
  const usedAttributes = new Set();
165715
165695
  const usedChildren = new Set();
165716
165696
  const usedChildElementsTracer = childElement => {
@@ -165720,27 +165700,28 @@ class SugarNodeMetadata extends PropertiesContainerMetadataBase {
165720
165700
  usedChildren.add(childElement);
165721
165701
  }
165722
165702
  };
165723
- super.fillFromSugarXmlNode(targetNode, sourceXmlNode, serializer, usedChildElementsTracer);
165703
+ const filledNode = super.fillFromSugarXmlNode(sourceXmlNode, serializer, usedChildElementsTracer);
165724
165704
  for (const childElement of sourceXmlNode.getChildren()) {
165725
165705
  if (!usedChildren.has(childElement)) {
165726
165706
  if (serializer.options.unknownProperties === "error") {
165727
- throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__.SugarAttributeReadError(`Unknown child element ${sourceXmlNode.name}.${childElement.name} (class ${targetNode.constructor.name})`, childElement, "");
165707
+ throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__.SugarAttributeReadError(`Unknown child element ${sourceXmlNode.name}.${childElement.name} (class ${filledNode.constructor.name})`, childElement, "");
165728
165708
  } else if (serializer.options.unknownProperties === "warn") {
165729
165709
  // eslint-disable-next-line no-console
165730
- console.warn(`Unknown child element ${sourceXmlNode.name}.${childElement.name} (class ${targetNode.constructor.name})`);
165710
+ console.warn(`Unknown child element ${sourceXmlNode.name}.${childElement.name} (class ${filledNode.constructor.name})`);
165731
165711
  }
165732
165712
  }
165733
165713
  }
165734
165714
  for (const attributeName of sourceXmlNode.getAllAttributeNames()) {
165735
165715
  if (!usedAttributes.has(attributeName)) {
165736
165716
  if (serializer.options.unknownProperties === "error") {
165737
- throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__.SugarAttributeReadError(`Unknown attribute ${sourceXmlNode.name}.${attributeName} (class ${targetNode.constructor.name})`, sourceXmlNode, attributeName);
165717
+ throw new _common_XmlParser_XmlNode__WEBPACK_IMPORTED_MODULE_0__.SugarAttributeReadError(`Unknown attribute ${sourceXmlNode.name}.${attributeName} (class ${filledNode.constructor.name})`, sourceXmlNode, attributeName);
165738
165718
  } else if (serializer.options.unknownProperties === "warn") {
165739
165719
  // eslint-disable-next-line no-console
165740
- console.warn(`Unknown attribute ${sourceXmlNode.name}.${attributeName} (class ${targetNode.constructor.name})`);
165720
+ console.warn(`Unknown attribute ${sourceXmlNode.name}.${attributeName} (class ${filledNode.constructor.name})`);
165741
165721
  }
165742
165722
  }
165743
165723
  }
165724
+ return filledNode;
165744
165725
  }
165745
165726
  }
165746
165727
 
@@ -165856,26 +165837,24 @@ __webpack_require__.r(__webpack_exports__);
165856
165837
  /* harmony import */ var _Common_TypingUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../Common/TypingUtils */ "./Common/TypingUtils.ts");
165857
165838
  /* harmony import */ var _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../Common/ModelPath/ModelPath */ "./Common/ModelPath/ModelPath.ts");
165858
165839
  /* harmony import */ var _ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ClassMetadataAccess */ "./Generator/src/generators/markupGenerator/Serializer/ClassMetadataAccess.ts");
165859
- /* harmony import */ var _Properties_DeserializeTracer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Properties/DeserializeTracer */ "./Generator/src/generators/markupGenerator/Serializer/Properties/DeserializeTracer.ts");
165860
- /* harmony import */ var _Properties_MixinPropertyDeserializer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Properties/MixinPropertyDeserializer */ "./Generator/src/generators/markupGenerator/Serializer/Properties/MixinPropertyDeserializer.ts");
165861
- /* harmony import */ var _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Properties/SinglePropertyDeserializer */ "./Generator/src/generators/markupGenerator/Serializer/Properties/SinglePropertyDeserializer.ts");
165862
- /* harmony import */ var _Properties_ValuesParsers_ArrayValueParser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Properties/ValuesParsers/ArrayValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/ArrayValueParser.ts");
165863
- /* harmony import */ var _Properties_ValuesParsers_BooleanValueParser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Properties/ValuesParsers/BooleanValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/BooleanValueParser.ts");
165864
- /* harmony import */ var _Properties_ValuesParsers_DelimitedStringArrayValueParser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Properties/ValuesParsers/DelimitedStringArrayValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/DelimitedStringArrayValueParser.ts");
165865
- /* harmony import */ var _Properties_ValuesParsers_EnumValueParser__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Properties/ValuesParsers/EnumValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/EnumValueParser.ts");
165866
- /* harmony import */ var _Properties_ValuesParsers_InlineStyleValueParser__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Properties/ValuesParsers/InlineStyleValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/InlineStyleValueParser.ts");
165867
- /* harmony import */ var _Properties_ValuesParsers_LengthUnitValueParser__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Properties/ValuesParsers/LengthUnitValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/LengthUnitValueParser.ts");
165868
- /* harmony import */ var _Properties_ValuesParsers_LocalizedStringValueParser__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Properties/ValuesParsers/LocalizedStringValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/LocalizedStringValueParser.ts");
165869
- /* harmony import */ var _Properties_ValuesParsers_NumberValueParser__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Properties/ValuesParsers/NumberValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/NumberValueParser.ts");
165870
- /* harmony import */ var _Properties_ValuesParsers_ObjectValueParser__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Properties/ValuesParsers/ObjectValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/ObjectValueParser.ts");
165871
- /* harmony import */ var _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Properties/ValuesParsers/StringValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/StringValueParser.ts");
165872
- /* harmony import */ var _Properties_ValuesSources_AttributeValueSource__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Properties/ValuesSources/AttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/AttributeValueSource.ts");
165873
- /* harmony import */ var _Properties_ValuesSources_ChildrenNodesValueSource__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Properties/ValuesSources/ChildrenNodesValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/ChildrenNodesValueSource.ts");
165874
- /* harmony import */ var _Properties_ValuesSources_SingleChildValueSource__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Properties/ValuesSources/SingleChildValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/SingleChildValueSource.ts");
165875
- /* harmony import */ var _Properties_ValuesSources_SkipAttributeValueSource__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Properties/ValuesSources/SkipAttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/SkipAttributeValueSource.ts");
165876
- /* harmony import */ var _SugarNodeMetadata__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./SugarNodeMetadata */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeMetadata.ts");
165877
- /* harmony import */ var _Properties_ValuesSources_MarkupOrAttributeValueSource__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Properties/ValuesSources/MarkupOrAttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/MarkupOrAttributeValueSource.ts");
165878
-
165840
+ /* harmony import */ var _Properties_MixinPropertyDeserializer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Properties/MixinPropertyDeserializer */ "./Generator/src/generators/markupGenerator/Serializer/Properties/MixinPropertyDeserializer.ts");
165841
+ /* harmony import */ var _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Properties/SinglePropertyDeserializer */ "./Generator/src/generators/markupGenerator/Serializer/Properties/SinglePropertyDeserializer.ts");
165842
+ /* harmony import */ var _Properties_ValuesParsers_ArrayValueParser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Properties/ValuesParsers/ArrayValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/ArrayValueParser.ts");
165843
+ /* harmony import */ var _Properties_ValuesParsers_BooleanValueParser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Properties/ValuesParsers/BooleanValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/BooleanValueParser.ts");
165844
+ /* harmony import */ var _Properties_ValuesParsers_DelimitedStringArrayValueParser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Properties/ValuesParsers/DelimitedStringArrayValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/DelimitedStringArrayValueParser.ts");
165845
+ /* harmony import */ var _Properties_ValuesParsers_EnumValueParser__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Properties/ValuesParsers/EnumValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/EnumValueParser.ts");
165846
+ /* harmony import */ var _Properties_ValuesParsers_InlineStyleValueParser__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Properties/ValuesParsers/InlineStyleValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/InlineStyleValueParser.ts");
165847
+ /* harmony import */ var _Properties_ValuesParsers_LengthUnitValueParser__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Properties/ValuesParsers/LengthUnitValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/LengthUnitValueParser.ts");
165848
+ /* harmony import */ var _Properties_ValuesParsers_LocalizedStringValueParser__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Properties/ValuesParsers/LocalizedStringValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/LocalizedStringValueParser.ts");
165849
+ /* harmony import */ var _Properties_ValuesParsers_NumberValueParser__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Properties/ValuesParsers/NumberValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/NumberValueParser.ts");
165850
+ /* harmony import */ var _Properties_ValuesParsers_ObjectValueParser__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Properties/ValuesParsers/ObjectValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/ObjectValueParser.ts");
165851
+ /* harmony import */ var _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Properties/ValuesParsers/StringValueParser */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesParsers/StringValueParser.ts");
165852
+ /* harmony import */ var _Properties_ValuesSources_AttributeValueSource__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Properties/ValuesSources/AttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/AttributeValueSource.ts");
165853
+ /* harmony import */ var _Properties_ValuesSources_ChildrenNodesValueSource__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Properties/ValuesSources/ChildrenNodesValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/ChildrenNodesValueSource.ts");
165854
+ /* harmony import */ var _Properties_ValuesSources_SingleChildValueSource__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Properties/ValuesSources/SingleChildValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/SingleChildValueSource.ts");
165855
+ /* harmony import */ var _Properties_ValuesSources_SkipAttributeValueSource__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Properties/ValuesSources/SkipAttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/SkipAttributeValueSource.ts");
165856
+ /* harmony import */ var _SugarNodeMetadata__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./SugarNodeMetadata */ "./Generator/src/generators/markupGenerator/Serializer/SugarNodeMetadata.ts");
165857
+ /* harmony import */ var _Properties_ValuesSources_MarkupOrAttributeValueSource__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Properties/ValuesSources/MarkupOrAttributeValueSource */ "./Generator/src/generators/markupGenerator/Serializer/Properties/ValuesSources/MarkupOrAttributeValueSource.ts");
165879
165858
 
165880
165859
 
165881
165860
 
@@ -165899,84 +165878,85 @@ __webpack_require__.r(__webpack_exports__);
165899
165878
 
165900
165879
 
165901
165880
 
165902
- function sugarNode(nodeName, description, docFilesContext, canDeserialize, docQualifier) {
165881
+ function sugarNode(nodeName, description, docFilesContext, canDeserialize = () => true, docQualifier) {
165903
165882
  return target => {
165904
- const sugarNodeMetadata = new _SugarNodeMetadata__WEBPACK_IMPORTED_MODULE_22__.SugarNodeMetadata(canDeserialize);
165905
- sugarNodeMetadata.setNodeName(nodeName);
165906
- sugarNodeMetadata.setDocQualifier(docQualifier);
165907
- if (docFilesContext != undefined && typeof docFilesContext !== "string") {
165908
- sugarNodeMetadata.documentationFilesContext = docFilesContext;
165909
- }
165910
- sugarNodeMetadata.description = description;
165911
- for (const propertyDeserializer of (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.getPropertyDeserializers)(target)) {
165912
- sugarNodeMetadata.addPropertyDeserializer(propertyDeserializer);
165913
- }
165883
+ const deserializers = (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.getPropertyDeserializers)(target);
165884
+ const sugarNodeMetadata = new _SugarNodeMetadata__WEBPACK_IMPORTED_MODULE_21__.SugarNodeMetadata({
165885
+ nodeClass: target,
165886
+ nodeName: nodeName,
165887
+ description: description,
165888
+ deserializers: deserializers,
165889
+ docQualifier: docQualifier,
165890
+ docFilesContext: docFilesContext,
165891
+ canDeserialize: canDeserialize
165892
+ });
165914
165893
  (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setSugarNodeMetadata)(target, sugarNodeMetadata);
165915
165894
  };
165916
165895
  }
165917
165896
  function attrMixinNode() {
165918
165897
  return target => {
165919
- const sugarNodeMetadata = new _SugarNodeMetadata__WEBPACK_IMPORTED_MODULE_22__.SugarAttributesMixinMetadata();
165920
- for (const propertyDeserializer of (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.getPropertyDeserializers)(target)) {
165921
- sugarNodeMetadata.addPropertyDeserializer(propertyDeserializer);
165922
- }
165898
+ const deserializers = (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.getPropertyDeserializers)(target);
165899
+ const sugarNodeMetadata = new _SugarNodeMetadata__WEBPACK_IMPORTED_MODULE_21__.SugarAttributesMixinMetadata({
165900
+ nodeClass: target,
165901
+ deserializers: deserializers
165902
+ });
165923
165903
  (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertiesContainerMetadata)(target, sugarNodeMetadata);
165924
165904
  };
165925
165905
  }
165926
- function children(onlyTagName, nodeClasses = [], skipNodeNames = []) {
165906
+ function children(onlyTagName = [], nodeClasses = [], skipNodeNames = []) {
165927
165907
  return (targetClass, propName) => {
165928
- const onlyTagNames = onlyTagName == undefined || Array.isArray(onlyTagName) ? onlyTagName : [onlyTagName];
165929
- (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_ChildrenNodesValueSource__WEBPACK_IMPORTED_MODULE_19__.ChildrenNodesValueSource(onlyTagNames != undefined ? node => onlyTagNames.includes(node.name) && !skipNodeNames.includes(node.name) : node => !skipNodeNames.includes(node.name), nodeClasses)));
165908
+ const onlyTagNames = Array.isArray(onlyTagName) ? onlyTagName : [onlyTagName];
165909
+ (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_6__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_ChildrenNodesValueSource__WEBPACK_IMPORTED_MODULE_18__.ChildrenNodesValueSource(onlyTagNames.length ? node => onlyTagNames.includes(node.name) && !skipNodeNames.includes(node.name) : node => !skipNodeNames.includes(node.name), nodeClasses)));
165930
165910
  };
165931
165911
  }
165932
165912
  function singleChild(tagName, nodeClasses = [], dec) {
165933
165913
  return (targetClass, propName) => {
165934
- (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_SingleChildValueSource__WEBPACK_IMPORTED_MODULE_20__.SingleChildValueSource(tagName, nodeClasses), dec));
165914
+ (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_6__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_SingleChildValueSource__WEBPACK_IMPORTED_MODULE_19__.SingleChildValueSource(tagName, nodeClasses), dec));
165935
165915
  };
165936
165916
  }
165937
165917
  function attr(attrName, valueParser, dec) {
165938
165918
  return (targetClass, propName) => {
165939
- (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_AttributeValueSource__WEBPACK_IMPORTED_MODULE_18__.AttributeValueSource(attrName, valueParser), dec));
165919
+ (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_6__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_AttributeValueSource__WEBPACK_IMPORTED_MODULE_17__.AttributeValueSource(attrName, valueParser), dec));
165940
165920
  };
165941
165921
  }
165942
165922
  function markupAttr(attrName, valueParser, dec) {
165943
165923
  return (targetClass, propName) => {
165944
- (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_MarkupOrAttributeValueSource__WEBPACK_IMPORTED_MODULE_23__.MarkupOrAttributeValueSource(attrName, valueParser), dec));
165924
+ (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_6__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_MarkupOrAttributeValueSource__WEBPACK_IMPORTED_MODULE_22__.MarkupOrAttributeValueSource(attrName, valueParser), dec));
165945
165925
  };
165946
165926
  }
165947
165927
  function deprecatedAttr(attrName, reason) {
165948
165928
  return (targetClass, propName) => {
165949
- (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_7__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_SkipAttributeValueSource__WEBPACK_IMPORTED_MODULE_21__.SkipAttributeValueSource(attrName, reason), "DEPRECATED"));
165929
+ (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_SinglePropertyDeserializer__WEBPACK_IMPORTED_MODULE_6__.SinglePropertyDeserializer(propName.toString(), new _Properties_ValuesSources_SkipAttributeValueSource__WEBPACK_IMPORTED_MODULE_20__.SkipAttributeValueSource(attrName, reason), "DEPRECATED"));
165950
165930
  };
165951
165931
  }
165952
165932
  function attrMixin(nodeClass) {
165953
165933
  return (targetClass, propName) => {
165954
- (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_MixinPropertyDeserializer__WEBPACK_IMPORTED_MODULE_6__.MixinPropertyDeserializer(propName.toString(), nodeClass));
165934
+ (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.setPropertyDeserializer)(targetClass, propName, new _Properties_MixinPropertyDeserializer__WEBPACK_IMPORTED_MODULE_5__.MixinPropertyDeserializer(propName.toString(), nodeClass));
165955
165935
  };
165956
165936
  }
165957
165937
  const attrType = {
165958
- array: innerValue => new _Properties_ValuesParsers_ArrayValueParser__WEBPACK_IMPORTED_MODULE_8__.ArrayValueParser(innerValue),
165959
- stringArray: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringArrayValueParser(),
165960
- delimitedStringArray: new _Properties_ValuesParsers_DelimitedStringArrayValueParser__WEBPACK_IMPORTED_MODULE_10__.DelimitedStringArrayValueParser(),
165961
- string: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
165962
- typeName: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
165963
- bindingPath: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
165964
- customControl: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
165965
- javascriptExpression: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
165966
- pathToFile: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
165967
- helperFunctionName: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
165968
- picklistId: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
165969
- modelPath: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
165970
- inlineStyle: new _Properties_ValuesParsers_InlineStyleValueParser__WEBPACK_IMPORTED_MODULE_12__.InlineStyleValueParser(),
165971
- localizedString: new _Properties_ValuesParsers_LocalizedStringValueParser__WEBPACK_IMPORTED_MODULE_14__.LocalizedStringValueParser(),
165972
- lengthUnit: new _Properties_ValuesParsers_LengthUnitValueParser__WEBPACK_IMPORTED_MODULE_13__.LengthUnitValueParser(),
165973
- boolean: new _Properties_ValuesParsers_BooleanValueParser__WEBPACK_IMPORTED_MODULE_9__.BooleanValueParser(),
165974
- number: new _Properties_ValuesParsers_NumberValueParser__WEBPACK_IMPORTED_MODULE_15__.NumberValueParser(),
165975
- objectLiteral: () => new _Properties_ValuesParsers_NumberValueParser__WEBPACK_IMPORTED_MODULE_15__.AnyExpressionValueParser(),
165976
- arrayLiteral: () => new _Properties_ValuesParsers_NumberValueParser__WEBPACK_IMPORTED_MODULE_15__.AnyExpressionValueParser(),
165977
- color: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_17__.StringValueParser(),
165978
- enum: (...values) => new _Properties_ValuesParsers_EnumValueParser__WEBPACK_IMPORTED_MODULE_11__.EnumValueParser(values),
165979
- object: new _Properties_ValuesParsers_ObjectValueParser__WEBPACK_IMPORTED_MODULE_16__.ObjectValueParser()
165938
+ array: innerValue => new _Properties_ValuesParsers_ArrayValueParser__WEBPACK_IMPORTED_MODULE_7__.ArrayValueParser(innerValue),
165939
+ stringArray: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_16__.StringArrayValueParser(),
165940
+ delimitedStringArray: new _Properties_ValuesParsers_DelimitedStringArrayValueParser__WEBPACK_IMPORTED_MODULE_9__.DelimitedStringArrayValueParser(),
165941
+ string: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_16__.StringValueParser(),
165942
+ typeName: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_16__.StringValueParser(),
165943
+ bindingPath: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_16__.StringValueParser(),
165944
+ customControl: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_16__.StringValueParser(),
165945
+ javascriptExpression: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_16__.StringValueParser(),
165946
+ pathToFile: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_16__.StringValueParser(),
165947
+ helperFunctionName: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_16__.StringValueParser(),
165948
+ picklistId: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_16__.StringValueParser(),
165949
+ modelPath: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_16__.StringValueParser(),
165950
+ inlineStyle: new _Properties_ValuesParsers_InlineStyleValueParser__WEBPACK_IMPORTED_MODULE_11__.InlineStyleValueParser(),
165951
+ localizedString: new _Properties_ValuesParsers_LocalizedStringValueParser__WEBPACK_IMPORTED_MODULE_13__.LocalizedStringValueParser(),
165952
+ lengthUnit: new _Properties_ValuesParsers_LengthUnitValueParser__WEBPACK_IMPORTED_MODULE_12__.LengthUnitValueParser(),
165953
+ boolean: new _Properties_ValuesParsers_BooleanValueParser__WEBPACK_IMPORTED_MODULE_8__.BooleanValueParser(),
165954
+ number: new _Properties_ValuesParsers_NumberValueParser__WEBPACK_IMPORTED_MODULE_14__.NumberValueParser(),
165955
+ objectLiteral: () => new _Properties_ValuesParsers_NumberValueParser__WEBPACK_IMPORTED_MODULE_14__.AnyExpressionValueParser(),
165956
+ arrayLiteral: () => new _Properties_ValuesParsers_NumberValueParser__WEBPACK_IMPORTED_MODULE_14__.AnyExpressionValueParser(),
165957
+ color: new _Properties_ValuesParsers_StringValueParser__WEBPACK_IMPORTED_MODULE_16__.StringValueParser(),
165958
+ enum: (...values) => new _Properties_ValuesParsers_EnumValueParser__WEBPACK_IMPORTED_MODULE_10__.EnumValueParser(values),
165959
+ object: new _Properties_ValuesParsers_ObjectValueParser__WEBPACK_IMPORTED_MODULE_15__.ObjectValueParser()
165980
165960
  };
165981
165961
  function omitLocalization(param) {
165982
165962
  if (param == undefined) {
@@ -166005,9 +165985,12 @@ function localizedStringToJsx(str) {
166005
165985
  return `\{${str.expression}\}`;
166006
165986
  }
166007
165987
  class SugarNodeBase {
166008
- constructor() {
165988
+ constructor(node) {
166009
165989
  this.sourceXmlNode = void 0;
166010
165990
  this.parent = void 0;
165991
+ // временный хак, т.к. прокидывание sourceXmlNode
165992
+ // через конструктор требует массовых правок
165993
+ this.sourceXmlNode = node;
166011
165994
  }
166012
165995
  getOwnPathForKCLang() {
166013
165996
  return this.getOwnPath();
@@ -166057,7 +166040,8 @@ class SugarNodeBase {
166057
166040
  return false;
166058
166041
  }
166059
166042
  get xmlChildren() {
166060
- return this.sourceXmlNode.getChildren();
166043
+ var _this$sourceXmlNode$g, _this$sourceXmlNode;
166044
+ return (_this$sourceXmlNode$g = (_this$sourceXmlNode = this.sourceXmlNode) === null || _this$sourceXmlNode === void 0 ? void 0 : _this$sourceXmlNode.getChildren()) !== null && _this$sourceXmlNode$g !== void 0 ? _this$sourceXmlNode$g : [];
166061
166045
  }
166062
166046
  *getParentsRecursive() {
166063
166047
  if (this.parent != undefined) {
@@ -166067,31 +166051,38 @@ class SugarNodeBase {
166067
166051
  }
166068
166052
  }
166069
166053
  class UnknownSugarNode extends SugarNodeBase {
166070
- constructor(name) {
166071
- super();
166054
+ constructor(node) {
166055
+ super(node);
166072
166056
  this.name = void 0;
166073
- this.name = name;
166057
+ this.name = node.name;
166074
166058
  }
166075
166059
  get path() {
166076
- return this.sourceXmlNode.attrAsString("path");
166060
+ var _this$sourceXmlNode2;
166061
+ return (_this$sourceXmlNode2 = this.sourceXmlNode) === null || _this$sourceXmlNode2 === void 0 ? void 0 : _this$sourceXmlNode2.attrAsString("path");
166077
166062
  }
166078
166063
  get optional() {
166079
- return this.sourceXmlNode.attrAsBoolean("optional");
166064
+ var _this$sourceXmlNode3;
166065
+ return (_this$sourceXmlNode3 = this.sourceXmlNode) === null || _this$sourceXmlNode3 === void 0 ? void 0 : _this$sourceXmlNode3.attrAsBoolean("optional");
166080
166066
  }
166081
166067
  get fetchfn() {
166082
- return this.sourceXmlNode.attrAsString("fetchfn");
166068
+ var _this$sourceXmlNode4;
166069
+ return (_this$sourceXmlNode4 = this.sourceXmlNode) === null || _this$sourceXmlNode4 === void 0 ? void 0 : _this$sourceXmlNode4.attrAsString("fetchfn");
166083
166070
  }
166084
166071
  get defaultValue() {
166085
- return this.sourceXmlNode.attrAsString("defaultValue");
166072
+ var _this$sourceXmlNode5;
166073
+ return (_this$sourceXmlNode5 = this.sourceXmlNode) === null || _this$sourceXmlNode5 === void 0 ? void 0 : _this$sourceXmlNode5.attrAsString("defaultValue");
166086
166074
  }
166087
166075
  get requisite() {
166088
- return this.sourceXmlNode.attrAsBoolean("requisite");
166076
+ var _this$sourceXmlNode6;
166077
+ return (_this$sourceXmlNode6 = this.sourceXmlNode) === null || _this$sourceXmlNode6 === void 0 ? void 0 : _this$sourceXmlNode6.attrAsBoolean("requisite");
166089
166078
  }
166090
166079
  get settings() {
166091
- return this.sourceXmlNode.attrAsBoolean("settings");
166080
+ var _this$sourceXmlNode7;
166081
+ return (_this$sourceXmlNode7 = this.sourceXmlNode) === null || _this$sourceXmlNode7 === void 0 ? void 0 : _this$sourceXmlNode7.attrAsBoolean("settings");
166092
166082
  }
166093
166083
  get disabled() {
166094
- return this.sourceXmlNode.attrAsBoolean("disabled");
166084
+ var _this$sourceXmlNode8;
166085
+ return (_this$sourceXmlNode8 = this.sourceXmlNode) === null || _this$sourceXmlNode8 === void 0 ? void 0 : _this$sourceXmlNode8.attrAsBoolean("disabled");
166095
166086
  }
166096
166087
  getOwnPath() {
166097
166088
  return this.path != undefined ? (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.createFromMask)(this.path, "auto", _Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_3__.PathTokens.each) : undefined;
@@ -166104,6 +166095,7 @@ const warnOnceKeys = new Set();
166104
166095
  class SugarSerializer {
166105
166096
  constructor(options) {
166106
166097
  this.nodeClasses = [];
166098
+ this.metas = new Map();
166107
166099
  this.options = void 0;
166108
166100
  this.options = {
166109
166101
  ...defaultOptions,
@@ -166122,21 +166114,29 @@ class SugarSerializer {
166122
166114
  }
166123
166115
  registerNode(nodeClass) {
166124
166116
  this.nodeClasses.push(nodeClass);
166117
+ const metadata = (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.getSugarNodeMetadata)(nodeClass);
166118
+ const bucket = this.metas.get(metadata.sugarNodeName);
166119
+ if (bucket) {
166120
+ bucket.push(metadata);
166121
+ } else {
166122
+ this.metas.set(metadata.sugarNodeName, [metadata]);
166123
+ }
166125
166124
  }
166126
166125
  deserializeFromSugarXmlNode(xmlNode, customNodeClasses = []) {
166127
- const nodeClasses = [...customNodeClasses, ...this.nodeClasses];
166128
- for (const nodeClass of nodeClasses) {
166129
- const metadata = this.getNodeClassMetadata(nodeClass);
166130
- if (metadata.canDeserialize(xmlNode)) {
166131
- const result = new nodeClass();
166132
- result.sourceXmlNode = xmlNode;
166133
- metadata.fillFromSugarXmlNode(result, xmlNode, this, _Properties_DeserializeTracer__WEBPACK_IMPORTED_MODULE_5__.nullDeserializeTracer);
166134
- return result;
166126
+ var _this$metas$get;
166127
+ // customNodeClasses обрабатываются первыми, т.к. метод переиспользуется для сериализации KCXml
166128
+ // и между нодами сахара и KCXml возможны коллизии имен
166129
+ for (const node of customNodeClasses) {
166130
+ const meta = (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.getSugarNodeMetadata)(node);
166131
+ if (meta.canDeserialize(xmlNode)) {
166132
+ return meta.fillFromSugarXmlNode(xmlNode, this);
166135
166133
  }
166136
166134
  }
166137
- const unknownResult = new UnknownSugarNode(xmlNode.name);
166138
- unknownResult.sourceXmlNode = xmlNode;
166139
- return unknownResult;
166135
+ const defaultMeta = (_this$metas$get = this.metas.get(xmlNode.name)) === null || _this$metas$get === void 0 ? void 0 : _this$metas$get.find(m => m.canDeserialize(xmlNode));
166136
+ if (defaultMeta) {
166137
+ return defaultMeta.fillFromSugarXmlNode(xmlNode, this);
166138
+ }
166139
+ return new UnknownSugarNode(xmlNode);
166140
166140
  }
166141
166141
  warnOnce(key, message) {
166142
166142
  if (warnOnceKeys.has(key)) {
@@ -166146,9 +166146,6 @@ class SugarSerializer {
166146
166146
  // eslint-disable-next-line no-console
166147
166147
  console.warn(chalk__WEBPACK_IMPORTED_MODULE_0___default().yellow(message));
166148
166148
  }
166149
- getNodeClassMetadata(nodeClass) {
166150
- return (0,_ClassMetadataAccess__WEBPACK_IMPORTED_MODULE_4__.getSugarNodeMetadata)(nodeClass);
166151
- }
166152
166149
  }
166153
166150
  function getNodeClass(node) {
166154
166151
  // @ts-ignore
@@ -166524,10 +166521,10 @@ function getPathToParent(child, stopParent) {
166524
166521
  "use strict";
166525
166522
  __webpack_require__.r(__webpack_exports__);
166526
166523
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
166527
- /* harmony export */ createDefaultSugarSerializer: () => (/* binding */ createDefaultSugarSerializer),
166528
- /* harmony export */ getAllSchemaRngNodeClasses: () => (/* binding */ getAllSchemaRngNodeClasses),
166529
- /* harmony export */ getAllSugarNodeClasses: () => (/* binding */ getAllSugarNodeClasses),
166530
- /* harmony export */ getAllSugarValidationNodeClasses: () => (/* binding */ getAllSugarValidationNodeClasses)
166524
+ /* harmony export */ allSchemaRngNodeClasses: () => (/* binding */ allSchemaRngNodeClasses),
166525
+ /* harmony export */ allSugarNodeClasses: () => (/* binding */ allSugarNodeClasses),
166526
+ /* harmony export */ allSugarValidationNodeClasses: () => (/* binding */ allSugarValidationNodeClasses),
166527
+ /* harmony export */ createDefaultSugarSerializer: () => (/* binding */ createDefaultSugarSerializer)
166531
166528
  /* harmony export */ });
166532
166529
  /* harmony import */ var _ElementProcessors_ValueEditors_Fias_FiasNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ElementProcessors/ValueEditors/Fias/FiasNode */ "./Generator/src/generators/markupGenerator/ElementProcessors/ValueEditors/Fias/FiasNode.ts");
166533
166530
  /* harmony import */ var _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../validationGenerator/Nodes/TypeNode */ "./Generator/src/generators/validationGenerator/Nodes/TypeNode.ts");
@@ -166817,159 +166814,17 @@ __webpack_require__.r(__webpack_exports__);
166817
166814
 
166818
166815
 
166819
166816
 
166820
- function registerDefaultSugarNodes(result) {
166821
- result.registerNode(_ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_46__.FormNode);
166822
- result.registerNode(_ElementProcessors_FormParts_Form_Nodes_ControlsNode__WEBPACK_IMPORTED_MODULE_47__.ControlsNode);
166823
- result.registerNode(_ElementProcessors_FormParts_Form_Nodes_ControlNode__WEBPACK_IMPORTED_MODULE_48__.ControlNode);
166824
- result.registerNode(_ElementProcessors_ValueEditors_FileLoader_FileLoaderNode__WEBPACK_IMPORTED_MODULE_40__.FileLoaderNode);
166825
- result.registerNode(_ElementProcessors_Typography_Icon_IconNode__WEBPACK_IMPORTED_MODULE_60__.IconNode);
166826
- result.registerNode(_ElementProcessors_Layout_InnerText_InnertextNode__WEBPACK_IMPORTED_MODULE_9__.InnertextNode);
166827
- result.registerNode(_ElementProcessors_Layout_Flexbox_FlexboxNode__WEBPACK_IMPORTED_MODULE_45__.FlexboxNode);
166828
- result.registerNode(_ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_32__.ExpertNoteNode);
166829
- result.registerNode(_ElementProcessors_Layout_Spoiler_SpoilerNode__WEBPACK_IMPORTED_MODULE_90__.SpoilerNode);
166830
- result.registerNode(_ElementProcessors_Layout_Br_BrNode__WEBPACK_IMPORTED_MODULE_15__.BrNode);
166831
- result.registerNode(_ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_69__.LinkNode);
166832
- result.registerNode(_ElementProcessors_Action_ClipboardButton_ClipboardButtonNode__WEBPACK_IMPORTED_MODULE_141__.ClipboardButtonNode);
166833
- result.registerNode(_ElementProcessors_FormParts_Content_ContentNode__WEBPACK_IMPORTED_MODULE_24__.ContentNode);
166834
- result.registerNode(_ElementProcessors_FormParts_Caption_CaptionNode__WEBPACK_IMPORTED_MODULE_19__.CaptionNode);
166835
- result.registerNode(_ElementProcessors_FormParts_Header_HeaderNode__WEBPACK_IMPORTED_MODULE_54__.HeaderNode);
166836
- result.registerNode(_ElementProcessors_Helpers_Normativehelp_NormativeHelpNode__WEBPACK_IMPORTED_MODULE_80__.NormativeHelpNode);
166837
- result.registerNode(_ElementProcessors_ValueViewers_Text_TextNode__WEBPACK_IMPORTED_MODULE_101__.TextNode);
166838
- result.registerNode(_ElementProcessors_Typography_Gray_GrayNode__WEBPACK_IMPORTED_MODULE_51__.GrayNode);
166839
- result.registerNode(_ElementProcessors_ValueEditors_Input_InputNode__WEBPACK_IMPORTED_MODULE_64__.InputNode);
166840
- result.registerNode(_ElementProcessors_ValueEditors_Combobox_ComboBoxNode__WEBPACK_IMPORTED_MODULE_23__.ComboBoxNode);
166841
- result.registerNode(_ElementProcessors_Typography_Bold_BoldNode__WEBPACK_IMPORTED_MODULE_14__.BoldNode);
166842
- result.registerNode(_ElementProcessors_ValueEditors_RadioGroup_RadioGroupNode__WEBPACK_IMPORTED_MODULE_86__.RadioGroupNode);
166843
- result.registerNode(_ElementProcessors_ValueViewers_FIO_FIONode__WEBPACK_IMPORTED_MODULE_44__.FIONode);
166844
- result.registerNode(_ElementProcessors_Layout_GridRow_GridRowNode__WEBPACK_IMPORTED_MODULE_53__.GridRowNode);
166845
- result.registerNode(_ElementProcessors_MultiControls_CrossfitTable_CrossfitTableNode__WEBPACK_IMPORTED_MODULE_97__.CrossfitTableNode);
166846
- result.registerNode(_ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_99__.StickyTableNode);
166847
- result.registerNode(_ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_98__.SimpleTableNode);
166848
- result.registerNode(_ElementProcessors_Layout_Warning_WarningNode__WEBPACK_IMPORTED_MODULE_107__.WarningNode);
166849
- result.registerNode(_ElementProcessors_ControlFlow_Captions_Long_LongNode__WEBPACK_IMPORTED_MODULE_119__.LongNode);
166850
- result.registerNode(_ElementProcessors_ControlFlow_Captions_Short_ShortNode__WEBPACK_IMPORTED_MODULE_120__.ShortNode);
166851
- result.registerNode(_ElementProcessors_ControlFlow_Captions_FillHint_FillHintNode__WEBPACK_IMPORTED_MODULE_121__.FillHintNode);
166852
- result.registerNode(_ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.IfNode);
166853
- result.registerNode(_ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.ThenNode);
166854
- result.registerNode(_ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.ElseNode);
166855
- result.registerNode(_ElementProcessors_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_56__.HelpNode);
166856
- result.registerNode(_ElementProcessors_Layout_Block_BlockNode__WEBPACK_IMPORTED_MODULE_12__.BlockNode);
166857
- result.registerNode(_ElementProcessors_Layout_Minitour_MinitourNode__WEBPACK_IMPORTED_MODULE_13__.MinitourNode);
166858
- result.registerNode(_ElementProcessors_FormParts_Cross_CrossNode__WEBPACK_IMPORTED_MODULE_25__.CrossNode);
166859
- result.registerNode(_ElementProcessors_Typography_Italic_ItalicNode__WEBPACK_IMPORTED_MODULE_65__.ItalicNode);
166860
- result.registerNode(_ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_96__.SwitchNode);
166861
- result.registerNode(_ElementProcessors_FormParts_AddPageButton_AddPageButtonNode__WEBPACK_IMPORTED_MODULE_10__.AddPageButtonNode);
166862
- result.registerNode(_ElementProcessors_ValueEditors_Checkbox_CheckboxNode__WEBPACK_IMPORTED_MODULE_20__.CheckboxNode);
166863
- result.registerNode(_ElementProcessors_ValueEditors_Toggle_ToggleNode__WEBPACK_IMPORTED_MODULE_21__.ToggleNode);
166864
- result.registerNode(_ElementProcessors_ControlFlow_Choice_ChoiceNode__WEBPACK_IMPORTED_MODULE_22__.ChoiceNode);
166865
- result.registerNode(_ElementProcessors_ControlFlow_JoinBlock_JoinBlockNode__WEBPACK_IMPORTED_MODULE_133__.JoinBlockNode);
166866
- result.registerNode(_ElementProcessors_ControlFlow_JoinBlock_JoinItemNode__WEBPACK_IMPORTED_MODULE_134__.JoinItemNode);
166867
- result.registerNode(_ElementProcessors_Layout_Hr_HrNode__WEBPACK_IMPORTED_MODULE_59__.HrNode);
166868
- result.registerNode(_ElementProcessors_MultiControls_ColgroupButton_ColgroupButtonNode__WEBPACK_IMPORTED_MODULE_110__.ColgroupButtonNode);
166869
- result.registerNode(_ElementProcessors_ValueEditors_Picklist_PicklistNode__WEBPACK_IMPORTED_MODULE_84__.PicklistNode);
166870
- result.registerNode(_ElementProcessors_ValueEditors_TreePicklist_TreePicklistNode__WEBPACK_IMPORTED_MODULE_128__.TreePicklistNode);
166871
- result.registerNode(_ElementProcessors_ValueEditors_Date_DateNode__WEBPACK_IMPORTED_MODULE_26__.DateNode);
166872
- result.registerNode(_ElementProcessors_ValueEditors_INN_INNNode__WEBPACK_IMPORTED_MODULE_63__.INNNode);
166873
- result.registerNode(_ElementProcessors_MultiControls_HeaderMenu_HeaderMenuNode__WEBPACK_IMPORTED_MODULE_55__.HeaderMenuNode);
166874
- result.registerNode(_ElementProcessors_ValueViewers_Linetext_LineTextNode__WEBPACK_IMPORTED_MODULE_68__.LineTextNode);
166875
- result.registerNode(_ElementProcessors_ValueEditors_Select_SelectNode__WEBPACK_IMPORTED_MODULE_88__.SelectNode);
166876
- result.registerNode(_ElementProcessors_Layout_Subheader_SubheaderNode__WEBPACK_IMPORTED_MODULE_93__.SubheaderNode);
166877
- result.registerNode(_ElementProcessors_Typography_Sup_SupNode__WEBPACK_IMPORTED_MODULE_94__.SupNode);
166878
- result.registerNode(_ElementProcessors_Typography_Nobr_NobrNode__WEBPACK_IMPORTED_MODULE_95__.NobrNode);
166879
- result.registerNode(_ElementProcessors_Typography_Sub_SubNode__WEBPACK_IMPORTED_MODULE_92__.SubNode);
166880
- result.registerNode(_ElementProcessors_Layout_List_ListNode__WEBPACK_IMPORTED_MODULE_70__.ListNode);
166881
- result.registerNode(_ElementProcessors_Layout_ListItem_ListItemNode__WEBPACK_IMPORTED_MODULE_66__.ListItemNode);
166882
- result.registerNode(_ElementProcessors_FormParts_DefaultContent_DefaultContentNode__WEBPACK_IMPORTED_MODULE_27__.DefaultContentNode);
166883
- result.registerNode(_ElementProcessors_ValueEditors_Kladr_KladrNode__WEBPACK_IMPORTED_MODULE_67__.KladrNode);
166884
- result.registerNode(_ElementProcessors_Typography_Highlight_HighlightNode__WEBPACK_IMPORTED_MODULE_58__.HighlightNode);
166885
- result.registerNode(_ElementProcessors_ValueEditors_Textarea_TextAreaNode__WEBPACK_IMPORTED_MODULE_102__.TextAreaNode);
166886
- result.registerNode(_ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_109__.PopupTextAreaNode);
166887
- result.registerNode(_ElementProcessors_ValueEditors_CustomSuggestComboBox_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_28__.DiadocSuggestComboBoxNode);
166888
- result.registerNode(_ElementProcessors_ValueEditors_CustomSuggestComboBox_CustomSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_29__.CustomSuggestComboBoxNode);
166889
- result.registerNode(_ElementProcessors_ValueEditors_CustomSuggestComboBox_ContractorsSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_30__.ContractorsSuggestComboBoxNode);
166890
- result.registerNode(_ElementProcessors_ValueEditors_RelativesComboBox_RelativesComboBoxNode__WEBPACK_IMPORTED_MODULE_129__.RelativesComboBoxNode);
166891
- result.registerNode(_ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupNode__WEBPACK_IMPORTED_MODULE_89__.SortRadioGroupNode);
166892
- result.registerNode(_ElementProcessors_Typography_Entity_EntityNode__WEBPACK_IMPORTED_MODULE_31__.EntityNode);
166893
- result.registerNode(_ElementProcessors_ValueEditors_radio_RadioNode__WEBPACK_IMPORTED_MODULE_85__.RadioNode);
166894
- result.registerNode(_ElementProcessors_Typography_Strong_StrongNode__WEBPACK_IMPORTED_MODULE_91__.StrongNode);
166895
- result.registerNode(_ElementProcessors_MultiControls_FilterInput_FilterInputNode__WEBPACK_IMPORTED_MODULE_42__.FilterInputNode);
166896
- result.registerNode(_ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_41__.FilterDateRangeNode);
166897
- result.registerNode(_ElementProcessors_FormParts_FormInfo_FormInfoNode__WEBPACK_IMPORTED_MODULE_50__.FormInfoNode);
166898
- result.registerNode(_ElementProcessors_MultiControls_FilterList_FilterListNode__WEBPACK_IMPORTED_MODULE_43__.FilterListNode);
166899
- result.registerNode(_ElementProcessors_ValueViewers_ValueLength_ValueLengthNode__WEBPACK_IMPORTED_MODULE_105__.ValueLengthNode);
166900
- result.registerNode(_ElementProcessors_Helpers_Helpinfo_HelpInfoNode__WEBPACK_IMPORTED_MODULE_57__.HelpInfoNode);
166901
- result.registerNode(_ElementProcessors_FormParts_UnitItem_UnitItemNode__WEBPACK_IMPORTED_MODULE_103__.UnitItemNode);
166902
- result.registerNode(_ElementProcessors_Layout_Img_ImgNode__WEBPACK_IMPORTED_MODULE_62__.ImgNode);
166903
- result.registerNode(_ElementProcessors_Layout_Pencil_PencilNode__WEBPACK_IMPORTED_MODULE_83__.PencilNode);
166904
- result.registerNode(_ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockNode__WEBPACK_IMPORTED_MODULE_106__.VisibilityBlockNode);
166905
- result.registerNode(_ElementProcessors_FormParts_UnitList_UnitListNode__WEBPACK_IMPORTED_MODULE_104__.UnitListNode);
166906
- result.registerNode(_ElementProcessors_Modal_ErrorBlock_ErrorBlockNode__WEBPACK_IMPORTED_MODULE_72__.ErrorBlockNode);
166907
- result.registerNode(_ElementProcessors_Modal_ModalForm_ModalFormNode__WEBPACK_IMPORTED_MODULE_74__.ModalFormNode);
166908
- result.registerNode(_ElementProcessors_Modal_ModalFormCancel_ModalFormCancelNode__WEBPACK_IMPORTED_MODULE_75__.ModalFormCancelNode);
166909
- result.registerNode(_ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmNode__WEBPACK_IMPORTED_MODULE_76__.ModalFormConfirmNode);
166910
- result.registerNode(_ElementProcessors_Modal_ModalFormRemove_ModalFormRemoveNode__WEBPACK_IMPORTED_MODULE_78__.ModalFormRemoveNode);
166911
- result.registerNode(_ElementProcessors_Modal_ModalFormLabel_ModalFormLabelNode__WEBPACK_IMPORTED_MODULE_77__.ModalFormLabelNode);
166912
- result.registerNode(_ElementProcessors_Modal_Body_BodyNode__WEBPACK_IMPORTED_MODULE_71__.BodyNode);
166913
- result.registerNode(_ElementProcessors_MultiControls_Multilinefield_MultilineFieldNode__WEBPACK_IMPORTED_MODULE_79__.MultilineFieldNode);
166914
- result.registerNode(_ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonNode__WEBPACK_IMPORTED_MODULE_87__.RemoveRowButtonNode);
166915
- result.registerNode(_ElementProcessors_Action_Button_ButtonNode__WEBPACK_IMPORTED_MODULE_16__.ButtonNode);
166916
- result.registerNode(_ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonNode__WEBPACK_IMPORTED_MODULE_17__.DownloadExcelButtonNode);
166917
- result.registerNode(_ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelNode__WEBPACK_IMPORTED_MODULE_18__.DropDownButtonLoadExcelNode);
166918
- result.registerNode(_ElementProcessors_Modal_Footer_FooterNode__WEBPACK_IMPORTED_MODULE_73__.FooterNode);
166919
- result.registerNode(_ElementProcessors_FormParts_Form_Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_49__.PanelNode);
166920
- result.registerNode(_ElementProcessors_MultiControls_TableCell_TableCellNode__WEBPACK_IMPORTED_MODULE_100__.TableCellNode);
166921
- result.registerNode(_ElementProcessors_MultiControls_AddRowButton_AddRowButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonNode);
166922
- result.registerNode(_ElementProcessors_Layout_Stack_StackNode__WEBPACK_IMPORTED_MODULE_4__.StackNode);
166923
- result.registerNode(_ElementProcessors_Layout_Grid_GridNode__WEBPACK_IMPORTED_MODULE_3__.GridNode);
166924
- result.registerNode(_ElementProcessors_UnitParts_HeaderPanel_HeaderPanelNode__WEBPACK_IMPORTED_MODULE_8__.HeaderPanelNode);
166925
- result.registerNode(_ElementProcessors_Action_DropdownButton_DropdownButtonNode__WEBPACK_IMPORTED_MODULE_2__.DropdownButtonNode);
166926
- result.registerNode(_ElementProcessors_MultiControls_Tabs_TabsNode__WEBPACK_IMPORTED_MODULE_7__.TabsNode);
166927
- result.registerNode(_ElementProcessors_ValueEditors_Fias_FiasNode__WEBPACK_IMPORTED_MODULE_0__.FiasNode);
166928
- result.registerNode(_ElementProcessors_MultiControls_FilterSelect_FilterSelectNode__WEBPACK_IMPORTED_MODULE_5__.FilterSelectNode);
166929
- result.registerNode(_ElementProcessors_MultiControls_Table2_Table2Node__WEBPACK_IMPORTED_MODULE_6__.Table2Node);
166930
- result.registerNode(_ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_82__.PageNode);
166931
- result.registerNode(_ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_112__.FixedTabsNode);
166932
- result.registerNode(_ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_112__.FixedTabNode);
166933
- result.registerNode(_ElementProcessors_MultiControls_Multiple_MultipleNode__WEBPACK_IMPORTED_MODULE_113__.MultipleNode);
166934
- result.registerNode(_ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelNode__WEBPACK_IMPORTED_MODULE_114__.ExcelPastePanelNode);
166935
- result.registerNode(_ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_115__.ReferencedFieldsNode);
166936
- result.registerNode(_ElementProcessors_FormParts_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_116__.UserPicklistNode);
166937
- result.registerNode(_ElementProcessors_ValueEditors_TaxRebate_TaxRebateNode__WEBPACK_IMPORTED_MODULE_117__.TaxRebateNode);
166938
- result.registerNode(_ElementProcessors_FormParts_Banner_BannerNode__WEBPACK_IMPORTED_MODULE_118__.BannerNode);
166939
- result.registerNode(_ElementProcessors_ValueViewers_DateView_DateViewNode__WEBPACK_IMPORTED_MODULE_122__.DateViewNode);
166940
- result.registerNode(_ElementProcessors_Action_Kebab_KebabNode__WEBPACK_IMPORTED_MODULE_124__.KebabNode);
166941
- result.registerNode(_ElementProcessors_Helpers_Clue_InfoBlockNode__WEBPACK_IMPORTED_MODULE_125__.InfoBlockNode);
166942
- result.registerNode(_ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_126__.SelectAllCheckboxNode);
166943
- result.registerNode(_ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_130__.SelectCheckboxNode);
166944
- result.registerNode(_ElementProcessors_MultiControls_InstanceNumber_InstanceNumberNode__WEBPACK_IMPORTED_MODULE_131__.InstanceNumberNode);
166945
- result.registerNode(_ElementProcessors_Layout_OptionalBlock_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_132__.OptionalBlockNode);
166946
- result.registerNode(_ElementProcessors_FormParts_EmptyTemplate_EmptyTemplateNode__WEBPACK_IMPORTED_MODULE_135__.EmptyTemplateNode);
166947
- result.registerNode(_ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_136__.AggregationQueryNode);
166948
- result.registerNode(_ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_136__.AggregationQuerySelectNode);
166949
- result.registerNode(_ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_136__.AggregationQueryContentNode);
166950
- result.registerNode(_ElementProcessors_MultiControls_ContextVar_ExprEvalNode__WEBPACK_IMPORTED_MODULE_137__.ExprEvalNode);
166951
- result.registerNode(_ElementProcessors_ValueViewers_Pluralize_PluralizeNode__WEBPACK_IMPORTED_MODULE_138__.PluralizeNode);
166952
- result.registerNode(_ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextScopeNode);
166953
- result.registerNode(_ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextVarsNode);
166954
- result.registerNode(_ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextVarNode);
166955
- result.registerNode(_ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextScopeContentNode);
166956
- }
166957
166817
  function createDefaultSugarSerializer() {
166958
166818
  const result = new _Serializer_SugarSerializer__WEBPACK_IMPORTED_MODULE_111__.SugarSerializer({
166959
166819
  unknownProperties: "error"
166960
166820
  });
166961
- registerDefaultSugarNodes(result);
166821
+ defaultSugarNodes.forEach(n => result.registerNode(n));
166962
166822
  return result;
166963
166823
  }
166964
- function getAllSugarValidationNodeClasses() {
166965
- return [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.TypeNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.CustomValidationTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.PatternTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.EnumerationTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.AttachmentsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.LengthTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MinlengthTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MaxlengthTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.TotaldigitsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.IntegerdigitsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.FractiondigitsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.ValueEqlAutoValueTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.DigestcheckTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MininclusiveTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MaxinclusiveTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MinExclusiveTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MaxExclusiveTypeCheckNode];
166966
- }
166967
- function getAllSugarNodeClasses() {
166968
- return [_ElementProcessors_ValueViewers_Text_TextNode__WEBPACK_IMPORTED_MODULE_101__.TextNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_96__.SwitchNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_96__.SwitchDefaultNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_96__.SwitchCaseNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddButtonNode__WEBPACK_IMPORTED_MODULE_33__.AddButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddLineNode__WEBPACK_IMPORTED_MODULE_34__.AddLineNode, _ElementProcessors_FormParts_AddPageButton_AddPageButtonNode__WEBPACK_IMPORTED_MODULE_10__.AddPageButtonNode, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonNode, _ElementProcessors_Layout_Block_BlockNode__WEBPACK_IMPORTED_MODULE_12__.BlockNode, _ElementProcessors_Layout_Minitour_MinitourNode__WEBPACK_IMPORTED_MODULE_13__.MinitourNode, _ElementProcessors_Modal_Body_BodyNode__WEBPACK_IMPORTED_MODULE_71__.BodyNode, _ElementProcessors_Typography_Bold_BoldNode__WEBPACK_IMPORTED_MODULE_14__.BoldNode, _ElementProcessors_Layout_Br_BrNode__WEBPACK_IMPORTED_MODULE_15__.BrNode, _ElementProcessors_Action_Button_ButtonNode__WEBPACK_IMPORTED_MODULE_16__.ButtonNode, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonNode__WEBPACK_IMPORTED_MODULE_17__.DownloadExcelButtonNode, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelNode__WEBPACK_IMPORTED_MODULE_18__.DropDownButtonLoadExcelNode, _ElementProcessors_FormParts_Caption_CaptionNode__WEBPACK_IMPORTED_MODULE_19__.CaptionNode, _ElementProcessors_ValueEditors_Checkbox_CheckboxNode__WEBPACK_IMPORTED_MODULE_20__.CheckboxNode, _ElementProcessors_ValueEditors_Toggle_ToggleNode__WEBPACK_IMPORTED_MODULE_21__.ToggleNode, _ElementProcessors_ControlFlow_Choice_ChoiceNode__WEBPACK_IMPORTED_MODULE_22__.ChoiceNode, _ElementProcessors_ControlFlow_JoinBlock_JoinBlockNode__WEBPACK_IMPORTED_MODULE_133__.JoinBlockNode, _ElementProcessors_ControlFlow_JoinBlock_JoinItemNode__WEBPACK_IMPORTED_MODULE_134__.JoinItemNode, _ElementProcessors_ValueEditors_Combobox_ComboBoxNode__WEBPACK_IMPORTED_MODULE_23__.ComboBoxNode, _ElementProcessors_FormParts_Content_ContentNode__WEBPACK_IMPORTED_MODULE_24__.ContentNode, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableNode__WEBPACK_IMPORTED_MODULE_97__.CrossfitTableNode, _ElementProcessors_FormParts_Cross_CrossNode__WEBPACK_IMPORTED_MODULE_25__.CrossNode, _ElementProcessors_ValueEditors_Date_DateNode__WEBPACK_IMPORTED_MODULE_26__.DateNode, _ElementProcessors_ValueEditors_CustomSuggestComboBox_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_28__.DiadocSuggestComboBoxNode, _ElementProcessors_ValueEditors_CustomSuggestComboBox_CustomSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_29__.CustomSuggestComboBoxNode, _ElementProcessors_ValueEditors_CustomSuggestComboBox_ContractorsSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_30__.ContractorsSuggestComboBoxNode, _ElementProcessors_Typography_Entity_EntityNode__WEBPACK_IMPORTED_MODULE_31__.EntityNode, _ElementProcessors_ValueEditors_FileLoader_FileLoaderNode__WEBPACK_IMPORTED_MODULE_40__.FileLoaderNode, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_41__.FilterDateRangeNode, _ElementProcessors_MultiControls_FilterInput_FilterInputNode__WEBPACK_IMPORTED_MODULE_42__.FilterInputNode, _ElementProcessors_MultiControls_FilterList_FilterListNode__WEBPACK_IMPORTED_MODULE_43__.FilterListNode, _ElementProcessors_ValueViewers_FIO_FIONode__WEBPACK_IMPORTED_MODULE_44__.FIONode, _ElementProcessors_Layout_Flexbox_FlexboxNode__WEBPACK_IMPORTED_MODULE_45__.FlexboxNode, _ElementProcessors_Modal_Footer_FooterNode__WEBPACK_IMPORTED_MODULE_73__.FooterNode, _ElementProcessors_FormParts_FormInfo_FormInfoNode__WEBPACK_IMPORTED_MODULE_50__.FormInfoNode, _ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_46__.FormNode, _ElementProcessors_Typography_Gray_GrayNode__WEBPACK_IMPORTED_MODULE_51__.GrayNode, _ElementProcessors_Layout_GridCol_GridColNode__WEBPACK_IMPORTED_MODULE_52__.GridColNode, _ElementProcessors_Layout_GridRow_GridRowNode__WEBPACK_IMPORTED_MODULE_53__.GridRowNode, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuNode__WEBPACK_IMPORTED_MODULE_55__.HeaderMenuNode, _ElementProcessors_FormParts_Header_HeaderNode__WEBPACK_IMPORTED_MODULE_54__.HeaderNode, _ElementProcessors_Helpers_Helpinfo_HelpInfoNode__WEBPACK_IMPORTED_MODULE_57__.HelpInfoNode, _ElementProcessors_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_56__.HelpNode, _ElementProcessors_Typography_Highlight_HighlightNode__WEBPACK_IMPORTED_MODULE_58__.HighlightNode, _ElementProcessors_Layout_Hr_HrNode__WEBPACK_IMPORTED_MODULE_59__.HrNode, _ElementProcessors_Typography_Icon_IconNode__WEBPACK_IMPORTED_MODULE_60__.IconNode, _ElementProcessors_Layout_Img_ImgNode__WEBPACK_IMPORTED_MODULE_62__.ImgNode, _ElementProcessors_Layout_InnerText_InnertextNode__WEBPACK_IMPORTED_MODULE_9__.InnertextNode, _ElementProcessors_ValueEditors_INN_INNNode__WEBPACK_IMPORTED_MODULE_63__.INNNode, _ElementProcessors_ValueEditors_Input_InputNode__WEBPACK_IMPORTED_MODULE_64__.InputNode, _ElementProcessors_Typography_Italic_ItalicNode__WEBPACK_IMPORTED_MODULE_65__.ItalicNode, _ElementProcessors_ValueEditors_Kladr_KladrNode__WEBPACK_IMPORTED_MODULE_67__.KladrNode, _ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_69__.LinkNode, _ElementProcessors_Action_ClipboardButton_ClipboardButtonNode__WEBPACK_IMPORTED_MODULE_141__.ClipboardButtonNode, _ElementProcessors_Layout_ListItem_ListItemNode__WEBPACK_IMPORTED_MODULE_66__.ListItemNode, _ElementProcessors_Layout_List_ListNode__WEBPACK_IMPORTED_MODULE_70__.ListNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_MenuNode__WEBPACK_IMPORTED_MODULE_35__.MenuNode, _ElementProcessors_Modal_ErrorBlock_ErrorBlockNode__WEBPACK_IMPORTED_MODULE_72__.ErrorBlockNode, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelNode__WEBPACK_IMPORTED_MODULE_75__.ModalFormCancelNode, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmNode__WEBPACK_IMPORTED_MODULE_76__.ModalFormConfirmNode, _ElementProcessors_Modal_ModalFormRemove_ModalFormRemoveNode__WEBPACK_IMPORTED_MODULE_78__.ModalFormRemoveNode, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelNode__WEBPACK_IMPORTED_MODULE_77__.ModalFormLabelNode, _ElementProcessors_Modal_ModalForm_ModalFormNode__WEBPACK_IMPORTED_MODULE_74__.ModalFormNode, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldNode__WEBPACK_IMPORTED_MODULE_79__.MultilineFieldNode, _ElementProcessors_Helpers_Normativehelp_NormativeHelpNode__WEBPACK_IMPORTED_MODULE_80__.NormativeHelpNode, _ElementProcessors_ControlFlow_Otherwise_OtherwiseNode__WEBPACK_IMPORTED_MODULE_81__.OtherwiseNode, _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_82__.PageNode, _ElementProcessors_FormParts_Form_Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_49__.PanelNode, _ElementProcessors_Layout_Pencil_PencilNode__WEBPACK_IMPORTED_MODULE_83__.PencilNode, _ElementProcessors_ValueEditors_Picklist_PicklistNode__WEBPACK_IMPORTED_MODULE_84__.PicklistNode, _ElementProcessors_ValueEditors_TreePicklist_TreePicklistNode__WEBPACK_IMPORTED_MODULE_128__.TreePicklistNode, _ElementProcessors_ValueEditors_radio_RadioNode__WEBPACK_IMPORTED_MODULE_85__.RadioNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_RemoveButtonNode__WEBPACK_IMPORTED_MODULE_36__.RemoveButtonNode, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonNode__WEBPACK_IMPORTED_MODULE_87__.RemoveRowButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceButtonNode__WEBPACK_IMPORTED_MODULE_37__.ReplaceButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceLineNode__WEBPACK_IMPORTED_MODULE_38__.ReplaceLineNode, _ElementProcessors_ValueEditors_Select_SelectNode__WEBPACK_IMPORTED_MODULE_88__.SelectNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_98__.SimpleTableNode, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupNode__WEBPACK_IMPORTED_MODULE_89__.SortRadioGroupNode, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupNode__WEBPACK_IMPORTED_MODULE_86__.RadioGroupNode, _ElementProcessors_Layout_Spoiler_SpoilerNode__WEBPACK_IMPORTED_MODULE_90__.SpoilerNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_99__.StickyTableNode, _ElementProcessors_Typography_Strong_StrongNode__WEBPACK_IMPORTED_MODULE_91__.StrongNode, _ElementProcessors_Layout_Subheader_SubheaderNode__WEBPACK_IMPORTED_MODULE_93__.SubheaderNode, _ElementProcessors_Typography_Sub_SubNode__WEBPACK_IMPORTED_MODULE_92__.SubNode, _ElementProcessors_Typography_Sup_SupNode__WEBPACK_IMPORTED_MODULE_94__.SupNode, _ElementProcessors_Typography_Nobr_NobrNode__WEBPACK_IMPORTED_MODULE_95__.NobrNode, _ElementProcessors_ValueEditors_Textarea_TextAreaNode__WEBPACK_IMPORTED_MODULE_102__.TextAreaNode, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_109__.PopupTextAreaNode, _ElementProcessors_FormParts_UnitItem_UnitItemNode__WEBPACK_IMPORTED_MODULE_103__.UnitItemNode, _ElementProcessors_FormParts_UnitList_UnitListNode__WEBPACK_IMPORTED_MODULE_104__.UnitListNode, _ElementProcessors_ValueViewers_ValueLength_ValueLengthNode__WEBPACK_IMPORTED_MODULE_105__.ValueLengthNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ViewFileNode__WEBPACK_IMPORTED_MODULE_39__.ViewFileNode, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockNode__WEBPACK_IMPORTED_MODULE_106__.VisibilityBlockNode, _ElementProcessors_Layout_Warning_WarningNode__WEBPACK_IMPORTED_MODULE_107__.WarningNode, _ElementProcessors_ControlFlow_When_WhenNode__WEBPACK_IMPORTED_MODULE_108__.WhenNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_32__.ExpertNoteNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_32__.MessageBoxNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_32__.NameNode, _ElementProcessors_ValueViewers_Linetext_LineTextNode__WEBPACK_IMPORTED_MODULE_68__.LineTextNode, _ElementProcessors_ControlFlow_Captions_Short_ShortNode__WEBPACK_IMPORTED_MODULE_120__.ShortNode, _ElementProcessors_ControlFlow_Captions_Long_LongNode__WEBPACK_IMPORTED_MODULE_119__.LongNode, _ElementProcessors_ControlFlow_Captions_FillHint_FillHintNode__WEBPACK_IMPORTED_MODULE_121__.FillHintNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.IfNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.ElseNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.ThenNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_98__.SimpleTableRowNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_98__.SimpleTableColumnNode, _ElementProcessors_Layout_Stack_StackNode__WEBPACK_IMPORTED_MODULE_4__.StackNode, _ElementProcessors_Layout_Grid_GridNode__WEBPACK_IMPORTED_MODULE_3__.GridNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_99__.StickyTableMultilineNode, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelNode__WEBPACK_IMPORTED_MODULE_8__.HeaderPanelNode, _ElementProcessors_Action_DropdownButton_DropdownButtonNode__WEBPACK_IMPORTED_MODULE_2__.DropdownButtonNode, _ElementProcessors_Action_Common_ActionNode__WEBPACK_IMPORTED_MODULE_123__.ActionNode, _ElementProcessors_MultiControls_Tabs_TabsNode__WEBPACK_IMPORTED_MODULE_7__.TabsNode, _ElementProcessors_MultiControls_Tabs_TabsNode__WEBPACK_IMPORTED_MODULE_7__.TabContent, _ElementProcessors_MultiControls_Tabs_TabsNode__WEBPACK_IMPORTED_MODULE_7__.TabTitle, _ElementProcessors_ValueEditors_Fias_FiasNode__WEBPACK_IMPORTED_MODULE_0__.FiasNode, _ElementProcessors_MultiControls_FilterSelect_FilterSelectNode__WEBPACK_IMPORTED_MODULE_5__.FilterSelectNode, _ElementProcessors_MultiControls_Table2_Table2Node__WEBPACK_IMPORTED_MODULE_6__.Table2Node, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_112__.FixedTabsNode, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_112__.FixedTabNode, _ElementProcessors_MultiControls_Multiple_MultipleNode__WEBPACK_IMPORTED_MODULE_113__.MultipleNode, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelNode__WEBPACK_IMPORTED_MODULE_114__.ExcelPastePanelNode, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_115__.ReferencedFieldsNode, _ElementProcessors_FormParts_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_116__.UserPicklistNode, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateNode__WEBPACK_IMPORTED_MODULE_117__.TaxRebateNode, _ElementProcessors_FormParts_Banner_BannerNode__WEBPACK_IMPORTED_MODULE_118__.BannerNode, _ElementProcessors_ValueViewers_DateView_DateViewNode__WEBPACK_IMPORTED_MODULE_122__.DateViewNode, _ElementProcessors_Action_Kebab_KebabNode__WEBPACK_IMPORTED_MODULE_124__.KebabNode, _ElementProcessors_Helpers_Clue_InfoBlockNode__WEBPACK_IMPORTED_MODULE_125__.InfoBlockNode, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_126__.SelectAllCheckboxNode, _ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_130__.SelectCheckboxNode, _ElementProcessors_MultiControls_InstanceNumber_InstanceNumberNode__WEBPACK_IMPORTED_MODULE_131__.InstanceNumberNode, _ElementProcessors_Layout_OptionalBlock_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_132__.OptionalBlockNode, _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_136__.AggregationQueryNode, _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_136__.AggregationQuerySelectNode, _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_136__.AggregationQueryContentNode, _ElementProcessors_MultiControls_ContextVar_ExprEvalNode__WEBPACK_IMPORTED_MODULE_137__.ExprEvalNode, _ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextScopeNode, _ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextScopeContentNode, _ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextVarsNode, _ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextVarNode, _Nodes_ImportNode__WEBPACK_IMPORTED_MODULE_143__.ImportNode, _ElementProcessors_FormParts_Form_Nodes_ControlsNode__WEBPACK_IMPORTED_MODULE_47__.ControlsNode, _ElementProcessors_FormParts_Form_Nodes_ControlNode__WEBPACK_IMPORTED_MODULE_48__.ControlNode, _Nodes_ImportNode__WEBPACK_IMPORTED_MODULE_143__.ValidationsNode, _Nodes_ImportNode__WEBPACK_IMPORTED_MODULE_143__.AutocalculationsImportNode, _ElementProcessors_FormParts_Form_TypeListNode__WEBPACK_IMPORTED_MODULE_139__.TypeListNode, _ElementProcessors_FormParts_Tour_TourNode__WEBPACK_IMPORTED_MODULE_140__.TourNode];
166969
- }
166970
- function getAllSchemaRngNodeClasses() {
166971
- return [_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.SchemaRngElement, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.SchemaRngElementChoiceElement, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.SchemaRngInnerText, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.SchemaRngAttribute, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.SchemaRngType, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.MaxinclusiveTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.MininclusiveTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.MaxExclusiveTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.MinExclusiveTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.FractiondigitsTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.IntegerdigitsTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.TotaldigitsTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.MaxlengthTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.MinlengthTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.LengthTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.EnumerationTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.PatternTypeCheck];
166972
- }
166824
+ const defaultSugarNodes = [_ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_46__.FormNode, _ElementProcessors_FormParts_Form_Nodes_ControlsNode__WEBPACK_IMPORTED_MODULE_47__.ControlsNode, _ElementProcessors_FormParts_Form_Nodes_ControlNode__WEBPACK_IMPORTED_MODULE_48__.ControlNode, _ElementProcessors_ValueEditors_FileLoader_FileLoaderNode__WEBPACK_IMPORTED_MODULE_40__.FileLoaderNode, _ElementProcessors_Typography_Icon_IconNode__WEBPACK_IMPORTED_MODULE_60__.IconNode, _ElementProcessors_Layout_InnerText_InnertextNode__WEBPACK_IMPORTED_MODULE_9__.InnertextNode, _ElementProcessors_Layout_Flexbox_FlexboxNode__WEBPACK_IMPORTED_MODULE_45__.FlexboxNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_32__.ExpertNoteNode, _ElementProcessors_Layout_Spoiler_SpoilerNode__WEBPACK_IMPORTED_MODULE_90__.SpoilerNode, _ElementProcessors_Layout_Br_BrNode__WEBPACK_IMPORTED_MODULE_15__.BrNode, _ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_69__.LinkNode, _ElementProcessors_Action_ClipboardButton_ClipboardButtonNode__WEBPACK_IMPORTED_MODULE_141__.ClipboardButtonNode, _ElementProcessors_FormParts_Content_ContentNode__WEBPACK_IMPORTED_MODULE_24__.ContentNode, _ElementProcessors_FormParts_Caption_CaptionNode__WEBPACK_IMPORTED_MODULE_19__.CaptionNode, _ElementProcessors_FormParts_Header_HeaderNode__WEBPACK_IMPORTED_MODULE_54__.HeaderNode, _ElementProcessors_Helpers_Normativehelp_NormativeHelpNode__WEBPACK_IMPORTED_MODULE_80__.NormativeHelpNode, _ElementProcessors_ValueViewers_Text_TextNode__WEBPACK_IMPORTED_MODULE_101__.TextNode, _ElementProcessors_Typography_Gray_GrayNode__WEBPACK_IMPORTED_MODULE_51__.GrayNode, _ElementProcessors_ValueEditors_Input_InputNode__WEBPACK_IMPORTED_MODULE_64__.InputNode, _ElementProcessors_ValueEditors_Combobox_ComboBoxNode__WEBPACK_IMPORTED_MODULE_23__.ComboBoxNode, _ElementProcessors_Typography_Bold_BoldNode__WEBPACK_IMPORTED_MODULE_14__.BoldNode, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupNode__WEBPACK_IMPORTED_MODULE_86__.RadioGroupNode, _ElementProcessors_ValueViewers_FIO_FIONode__WEBPACK_IMPORTED_MODULE_44__.FIONode, _ElementProcessors_Layout_GridRow_GridRowNode__WEBPACK_IMPORTED_MODULE_53__.GridRowNode, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableNode__WEBPACK_IMPORTED_MODULE_97__.CrossfitTableNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_99__.StickyTableNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_98__.SimpleTableNode, _ElementProcessors_Layout_Warning_WarningNode__WEBPACK_IMPORTED_MODULE_107__.WarningNode, _ElementProcessors_ControlFlow_Captions_Long_LongNode__WEBPACK_IMPORTED_MODULE_119__.LongNode, _ElementProcessors_ControlFlow_Captions_Short_ShortNode__WEBPACK_IMPORTED_MODULE_120__.ShortNode, _ElementProcessors_ControlFlow_Captions_FillHint_FillHintNode__WEBPACK_IMPORTED_MODULE_121__.FillHintNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.IfNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.ThenNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.ElseNode, _ElementProcessors_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_56__.HelpNode, _ElementProcessors_Layout_Block_BlockNode__WEBPACK_IMPORTED_MODULE_12__.BlockNode, _ElementProcessors_Layout_Minitour_MinitourNode__WEBPACK_IMPORTED_MODULE_13__.MinitourNode, _ElementProcessors_FormParts_Cross_CrossNode__WEBPACK_IMPORTED_MODULE_25__.CrossNode, _ElementProcessors_Typography_Italic_ItalicNode__WEBPACK_IMPORTED_MODULE_65__.ItalicNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_96__.SwitchNode, _ElementProcessors_FormParts_AddPageButton_AddPageButtonNode__WEBPACK_IMPORTED_MODULE_10__.AddPageButtonNode, _ElementProcessors_ValueEditors_Checkbox_CheckboxNode__WEBPACK_IMPORTED_MODULE_20__.CheckboxNode, _ElementProcessors_ValueEditors_Toggle_ToggleNode__WEBPACK_IMPORTED_MODULE_21__.ToggleNode, _ElementProcessors_ControlFlow_Choice_ChoiceNode__WEBPACK_IMPORTED_MODULE_22__.ChoiceNode, _ElementProcessors_ControlFlow_JoinBlock_JoinBlockNode__WEBPACK_IMPORTED_MODULE_133__.JoinBlockNode, _ElementProcessors_ControlFlow_JoinBlock_JoinItemNode__WEBPACK_IMPORTED_MODULE_134__.JoinItemNode, _ElementProcessors_Layout_Hr_HrNode__WEBPACK_IMPORTED_MODULE_59__.HrNode, _ElementProcessors_MultiControls_ColgroupButton_ColgroupButtonNode__WEBPACK_IMPORTED_MODULE_110__.ColgroupButtonNode, _ElementProcessors_ValueEditors_Picklist_PicklistNode__WEBPACK_IMPORTED_MODULE_84__.PicklistNode, _ElementProcessors_ValueEditors_TreePicklist_TreePicklistNode__WEBPACK_IMPORTED_MODULE_128__.TreePicklistNode, _ElementProcessors_ValueEditors_Date_DateNode__WEBPACK_IMPORTED_MODULE_26__.DateNode, _ElementProcessors_ValueEditors_INN_INNNode__WEBPACK_IMPORTED_MODULE_63__.INNNode, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuNode__WEBPACK_IMPORTED_MODULE_55__.HeaderMenuNode, _ElementProcessors_ValueViewers_Linetext_LineTextNode__WEBPACK_IMPORTED_MODULE_68__.LineTextNode, _ElementProcessors_ValueEditors_Select_SelectNode__WEBPACK_IMPORTED_MODULE_88__.SelectNode, _ElementProcessors_Layout_Subheader_SubheaderNode__WEBPACK_IMPORTED_MODULE_93__.SubheaderNode, _ElementProcessors_Typography_Sup_SupNode__WEBPACK_IMPORTED_MODULE_94__.SupNode, _ElementProcessors_Typography_Nobr_NobrNode__WEBPACK_IMPORTED_MODULE_95__.NobrNode, _ElementProcessors_Typography_Sub_SubNode__WEBPACK_IMPORTED_MODULE_92__.SubNode, _ElementProcessors_Layout_List_ListNode__WEBPACK_IMPORTED_MODULE_70__.ListNode, _ElementProcessors_Layout_ListItem_ListItemNode__WEBPACK_IMPORTED_MODULE_66__.ListItemNode, _ElementProcessors_FormParts_DefaultContent_DefaultContentNode__WEBPACK_IMPORTED_MODULE_27__.DefaultContentNode, _ElementProcessors_ValueEditors_Kladr_KladrNode__WEBPACK_IMPORTED_MODULE_67__.KladrNode, _ElementProcessors_Typography_Highlight_HighlightNode__WEBPACK_IMPORTED_MODULE_58__.HighlightNode, _ElementProcessors_ValueEditors_Textarea_TextAreaNode__WEBPACK_IMPORTED_MODULE_102__.TextAreaNode, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_109__.PopupTextAreaNode, _ElementProcessors_ValueEditors_CustomSuggestComboBox_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_28__.DiadocSuggestComboBoxNode, _ElementProcessors_ValueEditors_CustomSuggestComboBox_CustomSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_29__.CustomSuggestComboBoxNode, _ElementProcessors_ValueEditors_CustomSuggestComboBox_ContractorsSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_30__.ContractorsSuggestComboBoxNode, _ElementProcessors_ValueEditors_RelativesComboBox_RelativesComboBoxNode__WEBPACK_IMPORTED_MODULE_129__.RelativesComboBoxNode, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupNode__WEBPACK_IMPORTED_MODULE_89__.SortRadioGroupNode, _ElementProcessors_Typography_Entity_EntityNode__WEBPACK_IMPORTED_MODULE_31__.EntityNode, _ElementProcessors_ValueEditors_radio_RadioNode__WEBPACK_IMPORTED_MODULE_85__.RadioNode, _ElementProcessors_Typography_Strong_StrongNode__WEBPACK_IMPORTED_MODULE_91__.StrongNode, _ElementProcessors_MultiControls_FilterInput_FilterInputNode__WEBPACK_IMPORTED_MODULE_42__.FilterInputNode, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_41__.FilterDateRangeNode, _ElementProcessors_FormParts_FormInfo_FormInfoNode__WEBPACK_IMPORTED_MODULE_50__.FormInfoNode, _ElementProcessors_MultiControls_FilterList_FilterListNode__WEBPACK_IMPORTED_MODULE_43__.FilterListNode, _ElementProcessors_ValueViewers_ValueLength_ValueLengthNode__WEBPACK_IMPORTED_MODULE_105__.ValueLengthNode, _ElementProcessors_Helpers_Helpinfo_HelpInfoNode__WEBPACK_IMPORTED_MODULE_57__.HelpInfoNode, _ElementProcessors_FormParts_UnitItem_UnitItemNode__WEBPACK_IMPORTED_MODULE_103__.UnitItemNode, _ElementProcessors_Layout_Img_ImgNode__WEBPACK_IMPORTED_MODULE_62__.ImgNode, _ElementProcessors_Layout_Pencil_PencilNode__WEBPACK_IMPORTED_MODULE_83__.PencilNode, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockNode__WEBPACK_IMPORTED_MODULE_106__.VisibilityBlockNode, _ElementProcessors_FormParts_UnitList_UnitListNode__WEBPACK_IMPORTED_MODULE_104__.UnitListNode, _ElementProcessors_Modal_ErrorBlock_ErrorBlockNode__WEBPACK_IMPORTED_MODULE_72__.ErrorBlockNode, _ElementProcessors_Modal_ModalForm_ModalFormNode__WEBPACK_IMPORTED_MODULE_74__.ModalFormNode, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelNode__WEBPACK_IMPORTED_MODULE_75__.ModalFormCancelNode, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmNode__WEBPACK_IMPORTED_MODULE_76__.ModalFormConfirmNode, _ElementProcessors_Modal_ModalFormRemove_ModalFormRemoveNode__WEBPACK_IMPORTED_MODULE_78__.ModalFormRemoveNode, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelNode__WEBPACK_IMPORTED_MODULE_77__.ModalFormLabelNode, _ElementProcessors_Modal_Body_BodyNode__WEBPACK_IMPORTED_MODULE_71__.BodyNode, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldNode__WEBPACK_IMPORTED_MODULE_79__.MultilineFieldNode, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonNode__WEBPACK_IMPORTED_MODULE_87__.RemoveRowButtonNode, _ElementProcessors_Action_Button_ButtonNode__WEBPACK_IMPORTED_MODULE_16__.ButtonNode, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonNode__WEBPACK_IMPORTED_MODULE_17__.DownloadExcelButtonNode, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelNode__WEBPACK_IMPORTED_MODULE_18__.DropDownButtonLoadExcelNode, _ElementProcessors_Modal_Footer_FooterNode__WEBPACK_IMPORTED_MODULE_73__.FooterNode, _ElementProcessors_FormParts_Form_Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_49__.PanelNode, _ElementProcessors_MultiControls_TableCell_TableCellNode__WEBPACK_IMPORTED_MODULE_100__.TableCellNode, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonNode, _ElementProcessors_Layout_Stack_StackNode__WEBPACK_IMPORTED_MODULE_4__.StackNode, _ElementProcessors_Layout_Grid_GridNode__WEBPACK_IMPORTED_MODULE_3__.GridNode, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelNode__WEBPACK_IMPORTED_MODULE_8__.HeaderPanelNode, _ElementProcessors_Action_DropdownButton_DropdownButtonNode__WEBPACK_IMPORTED_MODULE_2__.DropdownButtonNode, _ElementProcessors_MultiControls_Tabs_TabsNode__WEBPACK_IMPORTED_MODULE_7__.TabsNode, _ElementProcessors_ValueEditors_Fias_FiasNode__WEBPACK_IMPORTED_MODULE_0__.FiasNode, _ElementProcessors_MultiControls_FilterSelect_FilterSelectNode__WEBPACK_IMPORTED_MODULE_5__.FilterSelectNode, _ElementProcessors_MultiControls_Table2_Table2Node__WEBPACK_IMPORTED_MODULE_6__.Table2Node, _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_82__.PageNode, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_112__.FixedTabsNode, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_112__.FixedTabNode, _ElementProcessors_MultiControls_Multiple_MultipleNode__WEBPACK_IMPORTED_MODULE_113__.MultipleNode, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelNode__WEBPACK_IMPORTED_MODULE_114__.ExcelPastePanelNode, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_115__.ReferencedFieldsNode, _ElementProcessors_FormParts_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_116__.UserPicklistNode, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateNode__WEBPACK_IMPORTED_MODULE_117__.TaxRebateNode, _ElementProcessors_FormParts_Banner_BannerNode__WEBPACK_IMPORTED_MODULE_118__.BannerNode, _ElementProcessors_ValueViewers_DateView_DateViewNode__WEBPACK_IMPORTED_MODULE_122__.DateViewNode, _ElementProcessors_Action_Kebab_KebabNode__WEBPACK_IMPORTED_MODULE_124__.KebabNode, _ElementProcessors_Helpers_Clue_InfoBlockNode__WEBPACK_IMPORTED_MODULE_125__.InfoBlockNode, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_126__.SelectAllCheckboxNode, _ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_130__.SelectCheckboxNode, _ElementProcessors_MultiControls_InstanceNumber_InstanceNumberNode__WEBPACK_IMPORTED_MODULE_131__.InstanceNumberNode, _ElementProcessors_Layout_OptionalBlock_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_132__.OptionalBlockNode, _ElementProcessors_FormParts_EmptyTemplate_EmptyTemplateNode__WEBPACK_IMPORTED_MODULE_135__.EmptyTemplateNode, _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_136__.AggregationQueryNode, _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_136__.AggregationQuerySelectNode, _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_136__.AggregationQueryContentNode, _ElementProcessors_MultiControls_ContextVar_ExprEvalNode__WEBPACK_IMPORTED_MODULE_137__.ExprEvalNode, _ElementProcessors_ValueViewers_Pluralize_PluralizeNode__WEBPACK_IMPORTED_MODULE_138__.PluralizeNode, _ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextScopeNode, _ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextVarsNode, _ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextVarNode, _ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextScopeContentNode];
166825
+ const allSugarNodeClasses = [_ElementProcessors_ValueViewers_Text_TextNode__WEBPACK_IMPORTED_MODULE_101__.TextNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_96__.SwitchNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_96__.SwitchDefaultNode, _ElementProcessors_ControlFlow_Switch_SwitchNode__WEBPACK_IMPORTED_MODULE_96__.SwitchCaseNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddButtonNode__WEBPACK_IMPORTED_MODULE_33__.AddButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_AddLineNode__WEBPACK_IMPORTED_MODULE_34__.AddLineNode, _ElementProcessors_FormParts_AddPageButton_AddPageButtonNode__WEBPACK_IMPORTED_MODULE_10__.AddPageButtonNode, _ElementProcessors_MultiControls_AddRowButton_AddRowButtonNode__WEBPACK_IMPORTED_MODULE_11__.AddRowButtonNode, _ElementProcessors_Layout_Block_BlockNode__WEBPACK_IMPORTED_MODULE_12__.BlockNode, _ElementProcessors_Layout_Minitour_MinitourNode__WEBPACK_IMPORTED_MODULE_13__.MinitourNode, _ElementProcessors_Modal_Body_BodyNode__WEBPACK_IMPORTED_MODULE_71__.BodyNode, _ElementProcessors_Typography_Bold_BoldNode__WEBPACK_IMPORTED_MODULE_14__.BoldNode, _ElementProcessors_Layout_Br_BrNode__WEBPACK_IMPORTED_MODULE_15__.BrNode, _ElementProcessors_Action_Button_ButtonNode__WEBPACK_IMPORTED_MODULE_16__.ButtonNode, _ElementProcessors_Action_DownloadExcelButton_DownloadExcelButtonNode__WEBPACK_IMPORTED_MODULE_17__.DownloadExcelButtonNode, _ElementProcessors_Action_DropDownButtonLoadExcel_DropDownButtonLoadExcelNode__WEBPACK_IMPORTED_MODULE_18__.DropDownButtonLoadExcelNode, _ElementProcessors_FormParts_Caption_CaptionNode__WEBPACK_IMPORTED_MODULE_19__.CaptionNode, _ElementProcessors_ValueEditors_Checkbox_CheckboxNode__WEBPACK_IMPORTED_MODULE_20__.CheckboxNode, _ElementProcessors_ValueEditors_Toggle_ToggleNode__WEBPACK_IMPORTED_MODULE_21__.ToggleNode, _ElementProcessors_ControlFlow_Choice_ChoiceNode__WEBPACK_IMPORTED_MODULE_22__.ChoiceNode, _ElementProcessors_ControlFlow_JoinBlock_JoinBlockNode__WEBPACK_IMPORTED_MODULE_133__.JoinBlockNode, _ElementProcessors_ControlFlow_JoinBlock_JoinItemNode__WEBPACK_IMPORTED_MODULE_134__.JoinItemNode, _ElementProcessors_ValueEditors_Combobox_ComboBoxNode__WEBPACK_IMPORTED_MODULE_23__.ComboBoxNode, _ElementProcessors_FormParts_Content_ContentNode__WEBPACK_IMPORTED_MODULE_24__.ContentNode, _ElementProcessors_MultiControls_CrossfitTable_CrossfitTableNode__WEBPACK_IMPORTED_MODULE_97__.CrossfitTableNode, _ElementProcessors_FormParts_Cross_CrossNode__WEBPACK_IMPORTED_MODULE_25__.CrossNode, _ElementProcessors_ValueEditors_Date_DateNode__WEBPACK_IMPORTED_MODULE_26__.DateNode, _ElementProcessors_ValueEditors_CustomSuggestComboBox_DiadocSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_28__.DiadocSuggestComboBoxNode, _ElementProcessors_ValueEditors_CustomSuggestComboBox_CustomSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_29__.CustomSuggestComboBoxNode, _ElementProcessors_ValueEditors_CustomSuggestComboBox_ContractorsSuggestComboBoxNode__WEBPACK_IMPORTED_MODULE_30__.ContractorsSuggestComboBoxNode, _ElementProcessors_Typography_Entity_EntityNode__WEBPACK_IMPORTED_MODULE_31__.EntityNode, _ElementProcessors_ValueEditors_FileLoader_FileLoaderNode__WEBPACK_IMPORTED_MODULE_40__.FileLoaderNode, _ElementProcessors_MultiControls_FilterDateRange_FilterDateRangeNode__WEBPACK_IMPORTED_MODULE_41__.FilterDateRangeNode, _ElementProcessors_MultiControls_FilterInput_FilterInputNode__WEBPACK_IMPORTED_MODULE_42__.FilterInputNode, _ElementProcessors_MultiControls_FilterList_FilterListNode__WEBPACK_IMPORTED_MODULE_43__.FilterListNode, _ElementProcessors_ValueViewers_FIO_FIONode__WEBPACK_IMPORTED_MODULE_44__.FIONode, _ElementProcessors_Layout_Flexbox_FlexboxNode__WEBPACK_IMPORTED_MODULE_45__.FlexboxNode, _ElementProcessors_Modal_Footer_FooterNode__WEBPACK_IMPORTED_MODULE_73__.FooterNode, _ElementProcessors_FormParts_FormInfo_FormInfoNode__WEBPACK_IMPORTED_MODULE_50__.FormInfoNode, _ElementProcessors_FormParts_Form_FormNode__WEBPACK_IMPORTED_MODULE_46__.FormNode, _ElementProcessors_Typography_Gray_GrayNode__WEBPACK_IMPORTED_MODULE_51__.GrayNode, _ElementProcessors_Layout_GridCol_GridColNode__WEBPACK_IMPORTED_MODULE_52__.GridColNode, _ElementProcessors_Layout_GridRow_GridRowNode__WEBPACK_IMPORTED_MODULE_53__.GridRowNode, _ElementProcessors_MultiControls_HeaderMenu_HeaderMenuNode__WEBPACK_IMPORTED_MODULE_55__.HeaderMenuNode, _ElementProcessors_FormParts_Header_HeaderNode__WEBPACK_IMPORTED_MODULE_54__.HeaderNode, _ElementProcessors_Helpers_Helpinfo_HelpInfoNode__WEBPACK_IMPORTED_MODULE_57__.HelpInfoNode, _ElementProcessors_Helpers_Help_HelpNode__WEBPACK_IMPORTED_MODULE_56__.HelpNode, _ElementProcessors_Typography_Highlight_HighlightNode__WEBPACK_IMPORTED_MODULE_58__.HighlightNode, _ElementProcessors_Layout_Hr_HrNode__WEBPACK_IMPORTED_MODULE_59__.HrNode, _ElementProcessors_Typography_Icon_IconNode__WEBPACK_IMPORTED_MODULE_60__.IconNode, _ElementProcessors_Layout_Img_ImgNode__WEBPACK_IMPORTED_MODULE_62__.ImgNode, _ElementProcessors_Layout_InnerText_InnertextNode__WEBPACK_IMPORTED_MODULE_9__.InnertextNode, _ElementProcessors_ValueEditors_INN_INNNode__WEBPACK_IMPORTED_MODULE_63__.INNNode, _ElementProcessors_ValueEditors_Input_InputNode__WEBPACK_IMPORTED_MODULE_64__.InputNode, _ElementProcessors_Typography_Italic_ItalicNode__WEBPACK_IMPORTED_MODULE_65__.ItalicNode, _ElementProcessors_ValueEditors_Kladr_KladrNode__WEBPACK_IMPORTED_MODULE_67__.KladrNode, _ElementProcessors_Action_Link_LinkNode__WEBPACK_IMPORTED_MODULE_69__.LinkNode, _ElementProcessors_Action_ClipboardButton_ClipboardButtonNode__WEBPACK_IMPORTED_MODULE_141__.ClipboardButtonNode, _ElementProcessors_Layout_ListItem_ListItemNode__WEBPACK_IMPORTED_MODULE_66__.ListItemNode, _ElementProcessors_Layout_List_ListNode__WEBPACK_IMPORTED_MODULE_70__.ListNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_MenuNode__WEBPACK_IMPORTED_MODULE_35__.MenuNode, _ElementProcessors_Modal_ErrorBlock_ErrorBlockNode__WEBPACK_IMPORTED_MODULE_72__.ErrorBlockNode, _ElementProcessors_Modal_ModalFormCancel_ModalFormCancelNode__WEBPACK_IMPORTED_MODULE_75__.ModalFormCancelNode, _ElementProcessors_Modal_ModalFormConfirm_ModalFormConfirmNode__WEBPACK_IMPORTED_MODULE_76__.ModalFormConfirmNode, _ElementProcessors_Modal_ModalFormRemove_ModalFormRemoveNode__WEBPACK_IMPORTED_MODULE_78__.ModalFormRemoveNode, _ElementProcessors_Modal_ModalFormLabel_ModalFormLabelNode__WEBPACK_IMPORTED_MODULE_77__.ModalFormLabelNode, _ElementProcessors_Modal_ModalForm_ModalFormNode__WEBPACK_IMPORTED_MODULE_74__.ModalFormNode, _ElementProcessors_MultiControls_Multilinefield_MultilineFieldNode__WEBPACK_IMPORTED_MODULE_79__.MultilineFieldNode, _ElementProcessors_Helpers_Normativehelp_NormativeHelpNode__WEBPACK_IMPORTED_MODULE_80__.NormativeHelpNode, _ElementProcessors_ControlFlow_Otherwise_OtherwiseNode__WEBPACK_IMPORTED_MODULE_81__.OtherwiseNode, _ElementProcessors_FormParts_Page_PageNode__WEBPACK_IMPORTED_MODULE_82__.PageNode, _ElementProcessors_FormParts_Form_Nodes_PanelNode__WEBPACK_IMPORTED_MODULE_49__.PanelNode, _ElementProcessors_Layout_Pencil_PencilNode__WEBPACK_IMPORTED_MODULE_83__.PencilNode, _ElementProcessors_ValueEditors_Picklist_PicklistNode__WEBPACK_IMPORTED_MODULE_84__.PicklistNode, _ElementProcessors_ValueEditors_TreePicklist_TreePicklistNode__WEBPACK_IMPORTED_MODULE_128__.TreePicklistNode, _ElementProcessors_ValueEditors_radio_RadioNode__WEBPACK_IMPORTED_MODULE_85__.RadioNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_RemoveButtonNode__WEBPACK_IMPORTED_MODULE_36__.RemoveButtonNode, _ElementProcessors_MultiControls_RemoveRowButton_RemoveRowButtonNode__WEBPACK_IMPORTED_MODULE_87__.RemoveRowButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceButtonNode__WEBPACK_IMPORTED_MODULE_37__.ReplaceButtonNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ReplaceLineNode__WEBPACK_IMPORTED_MODULE_38__.ReplaceLineNode, _ElementProcessors_ValueEditors_Select_SelectNode__WEBPACK_IMPORTED_MODULE_88__.SelectNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_98__.SimpleTableNode, _ElementProcessors_MultiControls_SortRadioGroup_SortRadioGroupNode__WEBPACK_IMPORTED_MODULE_89__.SortRadioGroupNode, _ElementProcessors_ValueEditors_RadioGroup_RadioGroupNode__WEBPACK_IMPORTED_MODULE_86__.RadioGroupNode, _ElementProcessors_Layout_Spoiler_SpoilerNode__WEBPACK_IMPORTED_MODULE_90__.SpoilerNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_99__.StickyTableNode, _ElementProcessors_Typography_Strong_StrongNode__WEBPACK_IMPORTED_MODULE_91__.StrongNode, _ElementProcessors_Layout_Subheader_SubheaderNode__WEBPACK_IMPORTED_MODULE_93__.SubheaderNode, _ElementProcessors_Typography_Sub_SubNode__WEBPACK_IMPORTED_MODULE_92__.SubNode, _ElementProcessors_Typography_Sup_SupNode__WEBPACK_IMPORTED_MODULE_94__.SupNode, _ElementProcessors_Typography_Nobr_NobrNode__WEBPACK_IMPORTED_MODULE_95__.NobrNode, _ElementProcessors_ValueEditors_Textarea_TextAreaNode__WEBPACK_IMPORTED_MODULE_102__.TextAreaNode, _ElementProcessors_ValueEditors_popupTextArea_PopupTextAreaNode__WEBPACK_IMPORTED_MODULE_109__.PopupTextAreaNode, _ElementProcessors_FormParts_UnitItem_UnitItemNode__WEBPACK_IMPORTED_MODULE_103__.UnitItemNode, _ElementProcessors_FormParts_UnitList_UnitListNode__WEBPACK_IMPORTED_MODULE_104__.UnitListNode, _ElementProcessors_ValueViewers_ValueLength_ValueLengthNode__WEBPACK_IMPORTED_MODULE_105__.ValueLengthNode, _ElementProcessors_ValueEditors_FileLoader_FileLoader_ViewFileNode__WEBPACK_IMPORTED_MODULE_39__.ViewFileNode, _ElementProcessors_ControlFlow_VisibilityBlock_VisibilityBlockNode__WEBPACK_IMPORTED_MODULE_106__.VisibilityBlockNode, _ElementProcessors_Layout_Warning_WarningNode__WEBPACK_IMPORTED_MODULE_107__.WarningNode, _ElementProcessors_ControlFlow_When_WhenNode__WEBPACK_IMPORTED_MODULE_108__.WhenNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_32__.ExpertNoteNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_32__.MessageBoxNode, _ElementProcessors_ValueEditors_ExpertNote_ExpertNoteNode__WEBPACK_IMPORTED_MODULE_32__.NameNode, _ElementProcessors_ValueViewers_Linetext_LineTextNode__WEBPACK_IMPORTED_MODULE_68__.LineTextNode, _ElementProcessors_ControlFlow_Captions_Short_ShortNode__WEBPACK_IMPORTED_MODULE_120__.ShortNode, _ElementProcessors_ControlFlow_Captions_Long_LongNode__WEBPACK_IMPORTED_MODULE_119__.LongNode, _ElementProcessors_ControlFlow_Captions_FillHint_FillHintNode__WEBPACK_IMPORTED_MODULE_121__.FillHintNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.IfNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.ElseNode, _ElementProcessors_ControlFlow_If_IfNode__WEBPACK_IMPORTED_MODULE_61__.ThenNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_98__.SimpleTableRowNode, _ElementProcessors_Layout_SimpleTable_SimpleTableNode__WEBPACK_IMPORTED_MODULE_98__.SimpleTableColumnNode, _ElementProcessors_Layout_Stack_StackNode__WEBPACK_IMPORTED_MODULE_4__.StackNode, _ElementProcessors_Layout_Grid_GridNode__WEBPACK_IMPORTED_MODULE_3__.GridNode, _ElementProcessors_MultiControls_StickyTable_StickyTableNode__WEBPACK_IMPORTED_MODULE_99__.StickyTableMultilineNode, _ElementProcessors_UnitParts_HeaderPanel_HeaderPanelNode__WEBPACK_IMPORTED_MODULE_8__.HeaderPanelNode, _ElementProcessors_Action_DropdownButton_DropdownButtonNode__WEBPACK_IMPORTED_MODULE_2__.DropdownButtonNode, _ElementProcessors_Action_Common_ActionNode__WEBPACK_IMPORTED_MODULE_123__.ActionNode, _ElementProcessors_MultiControls_Tabs_TabsNode__WEBPACK_IMPORTED_MODULE_7__.TabsNode, _ElementProcessors_MultiControls_Tabs_TabsNode__WEBPACK_IMPORTED_MODULE_7__.TabContent, _ElementProcessors_MultiControls_Tabs_TabsNode__WEBPACK_IMPORTED_MODULE_7__.TabTitle, _ElementProcessors_ValueEditors_Fias_FiasNode__WEBPACK_IMPORTED_MODULE_0__.FiasNode, _ElementProcessors_MultiControls_FilterSelect_FilterSelectNode__WEBPACK_IMPORTED_MODULE_5__.FilterSelectNode, _ElementProcessors_MultiControls_Table2_Table2Node__WEBPACK_IMPORTED_MODULE_6__.Table2Node, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_112__.FixedTabsNode, _ElementProcessors_Layout_FixedTabs_FixedTabsNode__WEBPACK_IMPORTED_MODULE_112__.FixedTabNode, _ElementProcessors_MultiControls_Multiple_MultipleNode__WEBPACK_IMPORTED_MODULE_113__.MultipleNode, _ElementProcessors_Action_ExcelPastePanel_ExcelPastePanelNode__WEBPACK_IMPORTED_MODULE_114__.ExcelPastePanelNode, _ElementProcessors_ValueEditors_ReferencedFields_ReferencedFieldsNode__WEBPACK_IMPORTED_MODULE_115__.ReferencedFieldsNode, _ElementProcessors_FormParts_UserPicklist_UserPicklistNode__WEBPACK_IMPORTED_MODULE_116__.UserPicklistNode, _ElementProcessors_ValueEditors_TaxRebate_TaxRebateNode__WEBPACK_IMPORTED_MODULE_117__.TaxRebateNode, _ElementProcessors_FormParts_Banner_BannerNode__WEBPACK_IMPORTED_MODULE_118__.BannerNode, _ElementProcessors_ValueViewers_DateView_DateViewNode__WEBPACK_IMPORTED_MODULE_122__.DateViewNode, _ElementProcessors_Action_Kebab_KebabNode__WEBPACK_IMPORTED_MODULE_124__.KebabNode, _ElementProcessors_Helpers_Clue_InfoBlockNode__WEBPACK_IMPORTED_MODULE_125__.InfoBlockNode, _ElementProcessors_ValueEditors_SelectAllCheckbox_SelectAllCheckboxNode__WEBPACK_IMPORTED_MODULE_126__.SelectAllCheckboxNode, _ElementProcessors_ValueEditors_SelectCheckbox_SelectCheckboxNode__WEBPACK_IMPORTED_MODULE_130__.SelectCheckboxNode, _ElementProcessors_MultiControls_InstanceNumber_InstanceNumberNode__WEBPACK_IMPORTED_MODULE_131__.InstanceNumberNode, _ElementProcessors_Layout_OptionalBlock_OptionalBlockNode__WEBPACK_IMPORTED_MODULE_132__.OptionalBlockNode, _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_136__.AggregationQueryNode, _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_136__.AggregationQuerySelectNode, _ElementProcessors_MultiControls_AggregationQuery_AggregationQueryNode__WEBPACK_IMPORTED_MODULE_136__.AggregationQueryContentNode, _ElementProcessors_MultiControls_ContextVar_ExprEvalNode__WEBPACK_IMPORTED_MODULE_137__.ExprEvalNode, _ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextScopeNode, _ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextVarsNode, _ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextVarNode, _ElementProcessors_MultiControls_ContextVar_ContextScopeNode__WEBPACK_IMPORTED_MODULE_142__.ContextScopeContentNode, _Nodes_ImportNode__WEBPACK_IMPORTED_MODULE_143__.ImportNode, _ElementProcessors_FormParts_Form_Nodes_ControlsNode__WEBPACK_IMPORTED_MODULE_47__.ControlsNode, _ElementProcessors_FormParts_Form_Nodes_ControlNode__WEBPACK_IMPORTED_MODULE_48__.ControlNode, _Nodes_ImportNode__WEBPACK_IMPORTED_MODULE_143__.ValidationsNode, _Nodes_ImportNode__WEBPACK_IMPORTED_MODULE_143__.AutocalculationsImportNode, _ElementProcessors_FormParts_Form_TypeListNode__WEBPACK_IMPORTED_MODULE_139__.TypeListNode, _ElementProcessors_FormParts_Tour_TourNode__WEBPACK_IMPORTED_MODULE_140__.TourNode];
166826
+ const allSugarValidationNodeClasses = [_validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.TypeNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.CustomValidationTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.PatternTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.EnumerationTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.AttachmentsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.LengthTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MinlengthTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MaxlengthTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.TotaldigitsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.IntegerdigitsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.FractiondigitsTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.ValueEqlAutoValueTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.DigestcheckTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MininclusiveTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MaxinclusiveTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MinExclusiveTypeCheckNode, _validationGenerator_Nodes_TypeNode__WEBPACK_IMPORTED_MODULE_1__.MaxExclusiveTypeCheckNode];
166827
+ const allSchemaRngNodeClasses = [_common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.SchemaRngElement, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.SchemaRngElementChoiceElement, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.SchemaRngInnerText, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.SchemaRngAttribute, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.SchemaRngType, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.MaxinclusiveTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.MininclusiveTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.MaxExclusiveTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.MinExclusiveTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.FractiondigitsTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.IntegerdigitsTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.TotaldigitsTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.MaxlengthTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.MinlengthTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.LengthTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.EnumerationTypeCheck, _common_SchemaRng_Nodes_SchemaRngRoot__WEBPACK_IMPORTED_MODULE_127__.PatternTypeCheck];
166973
166828
 
166974
166829
  /***/ }),
166975
166830
 
@@ -347694,1431 +347549,6 @@ __webpack_require__(/*! ../modules/web.url-search-params.size */ "./node_modules
347694
347549
  module.exports = __webpack_require__(/*! ../internals/path */ "./node_modules/core-js/internals/path.js");
347695
347550
 
347696
347551
 
347697
- /***/ }),
347698
-
347699
- /***/ "./node_modules/reflect-metadata/Reflect.js":
347700
- /*!**************************************************!*\
347701
- !*** ./node_modules/reflect-metadata/Reflect.js ***!
347702
- \**************************************************/
347703
- /***/ (() => {
347704
-
347705
- /*! *****************************************************************************
347706
- Copyright (C) Microsoft. All rights reserved.
347707
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
347708
- this file except in compliance with the License. You may obtain a copy of the
347709
- License at http://www.apache.org/licenses/LICENSE-2.0
347710
-
347711
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
347712
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
347713
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
347714
- MERCHANTABLITY OR NON-INFRINGEMENT.
347715
-
347716
- See the Apache Version 2.0 License for specific language governing permissions
347717
- and limitations under the License.
347718
- ***************************************************************************** */
347719
- var Reflect;
347720
- (function (Reflect) {
347721
- // Metadata Proposal
347722
- // https://rbuckton.github.io/reflect-metadata/
347723
- (function (factory) {
347724
- var root = typeof globalThis === "object" ? globalThis :
347725
- typeof global === "object" ? global :
347726
- typeof self === "object" ? self :
347727
- typeof this === "object" ? this :
347728
- sloppyModeThis();
347729
- var exporter = makeExporter(Reflect);
347730
- if (typeof root.Reflect !== "undefined") {
347731
- exporter = makeExporter(root.Reflect, exporter);
347732
- }
347733
- factory(exporter, root);
347734
- if (typeof root.Reflect === "undefined") {
347735
- root.Reflect = Reflect;
347736
- }
347737
- function makeExporter(target, previous) {
347738
- return function (key, value) {
347739
- Object.defineProperty(target, key, { configurable: true, writable: true, value: value });
347740
- if (previous)
347741
- previous(key, value);
347742
- };
347743
- }
347744
- function functionThis() {
347745
- try {
347746
- return Function("return this;")();
347747
- }
347748
- catch (_) { }
347749
- }
347750
- function indirectEvalThis() {
347751
- try {
347752
- return (void 0, eval)("(function() { return this; })()");
347753
- }
347754
- catch (_) { }
347755
- }
347756
- function sloppyModeThis() {
347757
- return functionThis() || indirectEvalThis();
347758
- }
347759
- })(function (exporter, root) {
347760
- var hasOwn = Object.prototype.hasOwnProperty;
347761
- // feature test for Symbol support
347762
- var supportsSymbol = typeof Symbol === "function";
347763
- var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== "undefined" ? Symbol.toPrimitive : "@@toPrimitive";
347764
- var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== "undefined" ? Symbol.iterator : "@@iterator";
347765
- var supportsCreate = typeof Object.create === "function"; // feature test for Object.create support
347766
- var supportsProto = { __proto__: [] } instanceof Array; // feature test for __proto__ support
347767
- var downLevel = !supportsCreate && !supportsProto;
347768
- var HashMap = {
347769
- // create an object in dictionary mode (a.k.a. "slow" mode in v8)
347770
- create: supportsCreate
347771
- ? function () { return MakeDictionary(Object.create(null)); }
347772
- : supportsProto
347773
- ? function () { return MakeDictionary({ __proto__: null }); }
347774
- : function () { return MakeDictionary({}); },
347775
- has: downLevel
347776
- ? function (map, key) { return hasOwn.call(map, key); }
347777
- : function (map, key) { return key in map; },
347778
- get: downLevel
347779
- ? function (map, key) { return hasOwn.call(map, key) ? map[key] : undefined; }
347780
- : function (map, key) { return map[key]; },
347781
- };
347782
- // Load global or shim versions of Map, Set, and WeakMap
347783
- var functionPrototype = Object.getPrototypeOf(Function);
347784
- var _Map = typeof Map === "function" && typeof Map.prototype.entries === "function" ? Map : CreateMapPolyfill();
347785
- var _Set = typeof Set === "function" && typeof Set.prototype.entries === "function" ? Set : CreateSetPolyfill();
347786
- var _WeakMap = typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();
347787
- var registrySymbol = supportsSymbol ? Symbol.for("@reflect-metadata:registry") : undefined;
347788
- var metadataRegistry = GetOrCreateMetadataRegistry();
347789
- var metadataProvider = CreateMetadataProvider(metadataRegistry);
347790
- /**
347791
- * Applies a set of decorators to a property of a target object.
347792
- * @param decorators An array of decorators.
347793
- * @param target The target object.
347794
- * @param propertyKey (Optional) The property key to decorate.
347795
- * @param attributes (Optional) The property descriptor for the target key.
347796
- * @remarks Decorators are applied in reverse order.
347797
- * @example
347798
- *
347799
- * class Example {
347800
- * // property declarations are not part of ES6, though they are valid in TypeScript:
347801
- * // static staticProperty;
347802
- * // property;
347803
- *
347804
- * constructor(p) { }
347805
- * static staticMethod(p) { }
347806
- * method(p) { }
347807
- * }
347808
- *
347809
- * // constructor
347810
- * Example = Reflect.decorate(decoratorsArray, Example);
347811
- *
347812
- * // property (on constructor)
347813
- * Reflect.decorate(decoratorsArray, Example, "staticProperty");
347814
- *
347815
- * // property (on prototype)
347816
- * Reflect.decorate(decoratorsArray, Example.prototype, "property");
347817
- *
347818
- * // method (on constructor)
347819
- * Object.defineProperty(Example, "staticMethod",
347820
- * Reflect.decorate(decoratorsArray, Example, "staticMethod",
347821
- * Object.getOwnPropertyDescriptor(Example, "staticMethod")));
347822
- *
347823
- * // method (on prototype)
347824
- * Object.defineProperty(Example.prototype, "method",
347825
- * Reflect.decorate(decoratorsArray, Example.prototype, "method",
347826
- * Object.getOwnPropertyDescriptor(Example.prototype, "method")));
347827
- *
347828
- */
347829
- function decorate(decorators, target, propertyKey, attributes) {
347830
- if (!IsUndefined(propertyKey)) {
347831
- if (!IsArray(decorators))
347832
- throw new TypeError();
347833
- if (!IsObject(target))
347834
- throw new TypeError();
347835
- if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))
347836
- throw new TypeError();
347837
- if (IsNull(attributes))
347838
- attributes = undefined;
347839
- propertyKey = ToPropertyKey(propertyKey);
347840
- return DecorateProperty(decorators, target, propertyKey, attributes);
347841
- }
347842
- else {
347843
- if (!IsArray(decorators))
347844
- throw new TypeError();
347845
- if (!IsConstructor(target))
347846
- throw new TypeError();
347847
- return DecorateConstructor(decorators, target);
347848
- }
347849
- }
347850
- exporter("decorate", decorate);
347851
- // 4.1.2 Reflect.metadata(metadataKey, metadataValue)
347852
- // https://rbuckton.github.io/reflect-metadata/#reflect.metadata
347853
- /**
347854
- * A default metadata decorator factory that can be used on a class, class member, or parameter.
347855
- * @param metadataKey The key for the metadata entry.
347856
- * @param metadataValue The value for the metadata entry.
347857
- * @returns A decorator function.
347858
- * @remarks
347859
- * If `metadataKey` is already defined for the target and target key, the
347860
- * metadataValue for that key will be overwritten.
347861
- * @example
347862
- *
347863
- * // constructor
347864
- * @Reflect.metadata(key, value)
347865
- * class Example {
347866
- * }
347867
- *
347868
- * // property (on constructor, TypeScript only)
347869
- * class Example {
347870
- * @Reflect.metadata(key, value)
347871
- * static staticProperty;
347872
- * }
347873
- *
347874
- * // property (on prototype, TypeScript only)
347875
- * class Example {
347876
- * @Reflect.metadata(key, value)
347877
- * property;
347878
- * }
347879
- *
347880
- * // method (on constructor)
347881
- * class Example {
347882
- * @Reflect.metadata(key, value)
347883
- * static staticMethod() { }
347884
- * }
347885
- *
347886
- * // method (on prototype)
347887
- * class Example {
347888
- * @Reflect.metadata(key, value)
347889
- * method() { }
347890
- * }
347891
- *
347892
- */
347893
- function metadata(metadataKey, metadataValue) {
347894
- function decorator(target, propertyKey) {
347895
- if (!IsObject(target))
347896
- throw new TypeError();
347897
- if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))
347898
- throw new TypeError();
347899
- OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
347900
- }
347901
- return decorator;
347902
- }
347903
- exporter("metadata", metadata);
347904
- /**
347905
- * Define a unique metadata entry on the target.
347906
- * @param metadataKey A key used to store and retrieve metadata.
347907
- * @param metadataValue A value that contains attached metadata.
347908
- * @param target The target object on which to define metadata.
347909
- * @param propertyKey (Optional) The property key for the target.
347910
- * @example
347911
- *
347912
- * class Example {
347913
- * // property declarations are not part of ES6, though they are valid in TypeScript:
347914
- * // static staticProperty;
347915
- * // property;
347916
- *
347917
- * constructor(p) { }
347918
- * static staticMethod(p) { }
347919
- * method(p) { }
347920
- * }
347921
- *
347922
- * // constructor
347923
- * Reflect.defineMetadata("custom:annotation", options, Example);
347924
- *
347925
- * // property (on constructor)
347926
- * Reflect.defineMetadata("custom:annotation", options, Example, "staticProperty");
347927
- *
347928
- * // property (on prototype)
347929
- * Reflect.defineMetadata("custom:annotation", options, Example.prototype, "property");
347930
- *
347931
- * // method (on constructor)
347932
- * Reflect.defineMetadata("custom:annotation", options, Example, "staticMethod");
347933
- *
347934
- * // method (on prototype)
347935
- * Reflect.defineMetadata("custom:annotation", options, Example.prototype, "method");
347936
- *
347937
- * // decorator factory as metadata-producing annotation.
347938
- * function MyAnnotation(options): Decorator {
347939
- * return (target, key?) => Reflect.defineMetadata("custom:annotation", options, target, key);
347940
- * }
347941
- *
347942
- */
347943
- function defineMetadata(metadataKey, metadataValue, target, propertyKey) {
347944
- if (!IsObject(target))
347945
- throw new TypeError();
347946
- if (!IsUndefined(propertyKey))
347947
- propertyKey = ToPropertyKey(propertyKey);
347948
- return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);
347949
- }
347950
- exporter("defineMetadata", defineMetadata);
347951
- /**
347952
- * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.
347953
- * @param metadataKey A key used to store and retrieve metadata.
347954
- * @param target The target object on which the metadata is defined.
347955
- * @param propertyKey (Optional) The property key for the target.
347956
- * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.
347957
- * @example
347958
- *
347959
- * class Example {
347960
- * // property declarations are not part of ES6, though they are valid in TypeScript:
347961
- * // static staticProperty;
347962
- * // property;
347963
- *
347964
- * constructor(p) { }
347965
- * static staticMethod(p) { }
347966
- * method(p) { }
347967
- * }
347968
- *
347969
- * // constructor
347970
- * result = Reflect.hasMetadata("custom:annotation", Example);
347971
- *
347972
- * // property (on constructor)
347973
- * result = Reflect.hasMetadata("custom:annotation", Example, "staticProperty");
347974
- *
347975
- * // property (on prototype)
347976
- * result = Reflect.hasMetadata("custom:annotation", Example.prototype, "property");
347977
- *
347978
- * // method (on constructor)
347979
- * result = Reflect.hasMetadata("custom:annotation", Example, "staticMethod");
347980
- *
347981
- * // method (on prototype)
347982
- * result = Reflect.hasMetadata("custom:annotation", Example.prototype, "method");
347983
- *
347984
- */
347985
- function hasMetadata(metadataKey, target, propertyKey) {
347986
- if (!IsObject(target))
347987
- throw new TypeError();
347988
- if (!IsUndefined(propertyKey))
347989
- propertyKey = ToPropertyKey(propertyKey);
347990
- return OrdinaryHasMetadata(metadataKey, target, propertyKey);
347991
- }
347992
- exporter("hasMetadata", hasMetadata);
347993
- /**
347994
- * Gets a value indicating whether the target object has the provided metadata key defined.
347995
- * @param metadataKey A key used to store and retrieve metadata.
347996
- * @param target The target object on which the metadata is defined.
347997
- * @param propertyKey (Optional) The property key for the target.
347998
- * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.
347999
- * @example
348000
- *
348001
- * class Example {
348002
- * // property declarations are not part of ES6, though they are valid in TypeScript:
348003
- * // static staticProperty;
348004
- * // property;
348005
- *
348006
- * constructor(p) { }
348007
- * static staticMethod(p) { }
348008
- * method(p) { }
348009
- * }
348010
- *
348011
- * // constructor
348012
- * result = Reflect.hasOwnMetadata("custom:annotation", Example);
348013
- *
348014
- * // property (on constructor)
348015
- * result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticProperty");
348016
- *
348017
- * // property (on prototype)
348018
- * result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "property");
348019
- *
348020
- * // method (on constructor)
348021
- * result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticMethod");
348022
- *
348023
- * // method (on prototype)
348024
- * result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "method");
348025
- *
348026
- */
348027
- function hasOwnMetadata(metadataKey, target, propertyKey) {
348028
- if (!IsObject(target))
348029
- throw new TypeError();
348030
- if (!IsUndefined(propertyKey))
348031
- propertyKey = ToPropertyKey(propertyKey);
348032
- return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);
348033
- }
348034
- exporter("hasOwnMetadata", hasOwnMetadata);
348035
- /**
348036
- * Gets the metadata value for the provided metadata key on the target object or its prototype chain.
348037
- * @param metadataKey A key used to store and retrieve metadata.
348038
- * @param target The target object on which the metadata is defined.
348039
- * @param propertyKey (Optional) The property key for the target.
348040
- * @returns The metadata value for the metadata key if found; otherwise, `undefined`.
348041
- * @example
348042
- *
348043
- * class Example {
348044
- * // property declarations are not part of ES6, though they are valid in TypeScript:
348045
- * // static staticProperty;
348046
- * // property;
348047
- *
348048
- * constructor(p) { }
348049
- * static staticMethod(p) { }
348050
- * method(p) { }
348051
- * }
348052
- *
348053
- * // constructor
348054
- * result = Reflect.getMetadata("custom:annotation", Example);
348055
- *
348056
- * // property (on constructor)
348057
- * result = Reflect.getMetadata("custom:annotation", Example, "staticProperty");
348058
- *
348059
- * // property (on prototype)
348060
- * result = Reflect.getMetadata("custom:annotation", Example.prototype, "property");
348061
- *
348062
- * // method (on constructor)
348063
- * result = Reflect.getMetadata("custom:annotation", Example, "staticMethod");
348064
- *
348065
- * // method (on prototype)
348066
- * result = Reflect.getMetadata("custom:annotation", Example.prototype, "method");
348067
- *
348068
- */
348069
- function getMetadata(metadataKey, target, propertyKey) {
348070
- if (!IsObject(target))
348071
- throw new TypeError();
348072
- if (!IsUndefined(propertyKey))
348073
- propertyKey = ToPropertyKey(propertyKey);
348074
- return OrdinaryGetMetadata(metadataKey, target, propertyKey);
348075
- }
348076
- exporter("getMetadata", getMetadata);
348077
- /**
348078
- * Gets the metadata value for the provided metadata key on the target object.
348079
- * @param metadataKey A key used to store and retrieve metadata.
348080
- * @param target The target object on which the metadata is defined.
348081
- * @param propertyKey (Optional) The property key for the target.
348082
- * @returns The metadata value for the metadata key if found; otherwise, `undefined`.
348083
- * @example
348084
- *
348085
- * class Example {
348086
- * // property declarations are not part of ES6, though they are valid in TypeScript:
348087
- * // static staticProperty;
348088
- * // property;
348089
- *
348090
- * constructor(p) { }
348091
- * static staticMethod(p) { }
348092
- * method(p) { }
348093
- * }
348094
- *
348095
- * // constructor
348096
- * result = Reflect.getOwnMetadata("custom:annotation", Example);
348097
- *
348098
- * // property (on constructor)
348099
- * result = Reflect.getOwnMetadata("custom:annotation", Example, "staticProperty");
348100
- *
348101
- * // property (on prototype)
348102
- * result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "property");
348103
- *
348104
- * // method (on constructor)
348105
- * result = Reflect.getOwnMetadata("custom:annotation", Example, "staticMethod");
348106
- *
348107
- * // method (on prototype)
348108
- * result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "method");
348109
- *
348110
- */
348111
- function getOwnMetadata(metadataKey, target, propertyKey) {
348112
- if (!IsObject(target))
348113
- throw new TypeError();
348114
- if (!IsUndefined(propertyKey))
348115
- propertyKey = ToPropertyKey(propertyKey);
348116
- return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);
348117
- }
348118
- exporter("getOwnMetadata", getOwnMetadata);
348119
- /**
348120
- * Gets the metadata keys defined on the target object or its prototype chain.
348121
- * @param target The target object on which the metadata is defined.
348122
- * @param propertyKey (Optional) The property key for the target.
348123
- * @returns An array of unique metadata keys.
348124
- * @example
348125
- *
348126
- * class Example {
348127
- * // property declarations are not part of ES6, though they are valid in TypeScript:
348128
- * // static staticProperty;
348129
- * // property;
348130
- *
348131
- * constructor(p) { }
348132
- * static staticMethod(p) { }
348133
- * method(p) { }
348134
- * }
348135
- *
348136
- * // constructor
348137
- * result = Reflect.getMetadataKeys(Example);
348138
- *
348139
- * // property (on constructor)
348140
- * result = Reflect.getMetadataKeys(Example, "staticProperty");
348141
- *
348142
- * // property (on prototype)
348143
- * result = Reflect.getMetadataKeys(Example.prototype, "property");
348144
- *
348145
- * // method (on constructor)
348146
- * result = Reflect.getMetadataKeys(Example, "staticMethod");
348147
- *
348148
- * // method (on prototype)
348149
- * result = Reflect.getMetadataKeys(Example.prototype, "method");
348150
- *
348151
- */
348152
- function getMetadataKeys(target, propertyKey) {
348153
- if (!IsObject(target))
348154
- throw new TypeError();
348155
- if (!IsUndefined(propertyKey))
348156
- propertyKey = ToPropertyKey(propertyKey);
348157
- return OrdinaryMetadataKeys(target, propertyKey);
348158
- }
348159
- exporter("getMetadataKeys", getMetadataKeys);
348160
- /**
348161
- * Gets the unique metadata keys defined on the target object.
348162
- * @param target The target object on which the metadata is defined.
348163
- * @param propertyKey (Optional) The property key for the target.
348164
- * @returns An array of unique metadata keys.
348165
- * @example
348166
- *
348167
- * class Example {
348168
- * // property declarations are not part of ES6, though they are valid in TypeScript:
348169
- * // static staticProperty;
348170
- * // property;
348171
- *
348172
- * constructor(p) { }
348173
- * static staticMethod(p) { }
348174
- * method(p) { }
348175
- * }
348176
- *
348177
- * // constructor
348178
- * result = Reflect.getOwnMetadataKeys(Example);
348179
- *
348180
- * // property (on constructor)
348181
- * result = Reflect.getOwnMetadataKeys(Example, "staticProperty");
348182
- *
348183
- * // property (on prototype)
348184
- * result = Reflect.getOwnMetadataKeys(Example.prototype, "property");
348185
- *
348186
- * // method (on constructor)
348187
- * result = Reflect.getOwnMetadataKeys(Example, "staticMethod");
348188
- *
348189
- * // method (on prototype)
348190
- * result = Reflect.getOwnMetadataKeys(Example.prototype, "method");
348191
- *
348192
- */
348193
- function getOwnMetadataKeys(target, propertyKey) {
348194
- if (!IsObject(target))
348195
- throw new TypeError();
348196
- if (!IsUndefined(propertyKey))
348197
- propertyKey = ToPropertyKey(propertyKey);
348198
- return OrdinaryOwnMetadataKeys(target, propertyKey);
348199
- }
348200
- exporter("getOwnMetadataKeys", getOwnMetadataKeys);
348201
- /**
348202
- * Deletes the metadata entry from the target object with the provided key.
348203
- * @param metadataKey A key used to store and retrieve metadata.
348204
- * @param target The target object on which the metadata is defined.
348205
- * @param propertyKey (Optional) The property key for the target.
348206
- * @returns `true` if the metadata entry was found and deleted; otherwise, false.
348207
- * @example
348208
- *
348209
- * class Example {
348210
- * // property declarations are not part of ES6, though they are valid in TypeScript:
348211
- * // static staticProperty;
348212
- * // property;
348213
- *
348214
- * constructor(p) { }
348215
- * static staticMethod(p) { }
348216
- * method(p) { }
348217
- * }
348218
- *
348219
- * // constructor
348220
- * result = Reflect.deleteMetadata("custom:annotation", Example);
348221
- *
348222
- * // property (on constructor)
348223
- * result = Reflect.deleteMetadata("custom:annotation", Example, "staticProperty");
348224
- *
348225
- * // property (on prototype)
348226
- * result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "property");
348227
- *
348228
- * // method (on constructor)
348229
- * result = Reflect.deleteMetadata("custom:annotation", Example, "staticMethod");
348230
- *
348231
- * // method (on prototype)
348232
- * result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "method");
348233
- *
348234
- */
348235
- function deleteMetadata(metadataKey, target, propertyKey) {
348236
- if (!IsObject(target))
348237
- throw new TypeError();
348238
- if (!IsUndefined(propertyKey))
348239
- propertyKey = ToPropertyKey(propertyKey);
348240
- if (!IsObject(target))
348241
- throw new TypeError();
348242
- if (!IsUndefined(propertyKey))
348243
- propertyKey = ToPropertyKey(propertyKey);
348244
- var provider = GetMetadataProvider(target, propertyKey, /*Create*/ false);
348245
- if (IsUndefined(provider))
348246
- return false;
348247
- return provider.OrdinaryDeleteMetadata(metadataKey, target, propertyKey);
348248
- }
348249
- exporter("deleteMetadata", deleteMetadata);
348250
- function DecorateConstructor(decorators, target) {
348251
- for (var i = decorators.length - 1; i >= 0; --i) {
348252
- var decorator = decorators[i];
348253
- var decorated = decorator(target);
348254
- if (!IsUndefined(decorated) && !IsNull(decorated)) {
348255
- if (!IsConstructor(decorated))
348256
- throw new TypeError();
348257
- target = decorated;
348258
- }
348259
- }
348260
- return target;
348261
- }
348262
- function DecorateProperty(decorators, target, propertyKey, descriptor) {
348263
- for (var i = decorators.length - 1; i >= 0; --i) {
348264
- var decorator = decorators[i];
348265
- var decorated = decorator(target, propertyKey, descriptor);
348266
- if (!IsUndefined(decorated) && !IsNull(decorated)) {
348267
- if (!IsObject(decorated))
348268
- throw new TypeError();
348269
- descriptor = decorated;
348270
- }
348271
- }
348272
- return descriptor;
348273
- }
348274
- // 3.1.1.1 OrdinaryHasMetadata(MetadataKey, O, P)
348275
- // https://rbuckton.github.io/reflect-metadata/#ordinaryhasmetadata
348276
- function OrdinaryHasMetadata(MetadataKey, O, P) {
348277
- var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
348278
- if (hasOwn)
348279
- return true;
348280
- var parent = OrdinaryGetPrototypeOf(O);
348281
- if (!IsNull(parent))
348282
- return OrdinaryHasMetadata(MetadataKey, parent, P);
348283
- return false;
348284
- }
348285
- // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)
348286
- // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata
348287
- function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
348288
- var provider = GetMetadataProvider(O, P, /*Create*/ false);
348289
- if (IsUndefined(provider))
348290
- return false;
348291
- return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P));
348292
- }
348293
- // 3.1.3.1 OrdinaryGetMetadata(MetadataKey, O, P)
348294
- // https://rbuckton.github.io/reflect-metadata/#ordinarygetmetadata
348295
- function OrdinaryGetMetadata(MetadataKey, O, P) {
348296
- var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
348297
- if (hasOwn)
348298
- return OrdinaryGetOwnMetadata(MetadataKey, O, P);
348299
- var parent = OrdinaryGetPrototypeOf(O);
348300
- if (!IsNull(parent))
348301
- return OrdinaryGetMetadata(MetadataKey, parent, P);
348302
- return undefined;
348303
- }
348304
- // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)
348305
- // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata
348306
- function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
348307
- var provider = GetMetadataProvider(O, P, /*Create*/ false);
348308
- if (IsUndefined(provider))
348309
- return;
348310
- return provider.OrdinaryGetOwnMetadata(MetadataKey, O, P);
348311
- }
348312
- // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)
348313
- // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata
348314
- function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
348315
- var provider = GetMetadataProvider(O, P, /*Create*/ true);
348316
- provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P);
348317
- }
348318
- // 3.1.6.1 OrdinaryMetadataKeys(O, P)
348319
- // https://rbuckton.github.io/reflect-metadata/#ordinarymetadatakeys
348320
- function OrdinaryMetadataKeys(O, P) {
348321
- var ownKeys = OrdinaryOwnMetadataKeys(O, P);
348322
- var parent = OrdinaryGetPrototypeOf(O);
348323
- if (parent === null)
348324
- return ownKeys;
348325
- var parentKeys = OrdinaryMetadataKeys(parent, P);
348326
- if (parentKeys.length <= 0)
348327
- return ownKeys;
348328
- if (ownKeys.length <= 0)
348329
- return parentKeys;
348330
- var set = new _Set();
348331
- var keys = [];
348332
- for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {
348333
- var key = ownKeys_1[_i];
348334
- var hasKey = set.has(key);
348335
- if (!hasKey) {
348336
- set.add(key);
348337
- keys.push(key);
348338
- }
348339
- }
348340
- for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) {
348341
- var key = parentKeys_1[_a];
348342
- var hasKey = set.has(key);
348343
- if (!hasKey) {
348344
- set.add(key);
348345
- keys.push(key);
348346
- }
348347
- }
348348
- return keys;
348349
- }
348350
- // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)
348351
- // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys
348352
- function OrdinaryOwnMetadataKeys(O, P) {
348353
- var provider = GetMetadataProvider(O, P, /*create*/ false);
348354
- if (!provider) {
348355
- return [];
348356
- }
348357
- return provider.OrdinaryOwnMetadataKeys(O, P);
348358
- }
348359
- // 6 ECMAScript Data Types and Values
348360
- // https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values
348361
- function Type(x) {
348362
- if (x === null)
348363
- return 1 /* Null */;
348364
- switch (typeof x) {
348365
- case "undefined": return 0 /* Undefined */;
348366
- case "boolean": return 2 /* Boolean */;
348367
- case "string": return 3 /* String */;
348368
- case "symbol": return 4 /* Symbol */;
348369
- case "number": return 5 /* Number */;
348370
- case "object": return x === null ? 1 /* Null */ : 6 /* Object */;
348371
- default: return 6 /* Object */;
348372
- }
348373
- }
348374
- // 6.1.1 The Undefined Type
348375
- // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-undefined-type
348376
- function IsUndefined(x) {
348377
- return x === undefined;
348378
- }
348379
- // 6.1.2 The Null Type
348380
- // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-null-type
348381
- function IsNull(x) {
348382
- return x === null;
348383
- }
348384
- // 6.1.5 The Symbol Type
348385
- // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-symbol-type
348386
- function IsSymbol(x) {
348387
- return typeof x === "symbol";
348388
- }
348389
- // 6.1.7 The Object Type
348390
- // https://tc39.github.io/ecma262/#sec-object-type
348391
- function IsObject(x) {
348392
- return typeof x === "object" ? x !== null : typeof x === "function";
348393
- }
348394
- // 7.1 Type Conversion
348395
- // https://tc39.github.io/ecma262/#sec-type-conversion
348396
- // 7.1.1 ToPrimitive(input [, PreferredType])
348397
- // https://tc39.github.io/ecma262/#sec-toprimitive
348398
- function ToPrimitive(input, PreferredType) {
348399
- switch (Type(input)) {
348400
- case 0 /* Undefined */: return input;
348401
- case 1 /* Null */: return input;
348402
- case 2 /* Boolean */: return input;
348403
- case 3 /* String */: return input;
348404
- case 4 /* Symbol */: return input;
348405
- case 5 /* Number */: return input;
348406
- }
348407
- var hint = PreferredType === 3 /* String */ ? "string" : PreferredType === 5 /* Number */ ? "number" : "default";
348408
- var exoticToPrim = GetMethod(input, toPrimitiveSymbol);
348409
- if (exoticToPrim !== undefined) {
348410
- var result = exoticToPrim.call(input, hint);
348411
- if (IsObject(result))
348412
- throw new TypeError();
348413
- return result;
348414
- }
348415
- return OrdinaryToPrimitive(input, hint === "default" ? "number" : hint);
348416
- }
348417
- // 7.1.1.1 OrdinaryToPrimitive(O, hint)
348418
- // https://tc39.github.io/ecma262/#sec-ordinarytoprimitive
348419
- function OrdinaryToPrimitive(O, hint) {
348420
- if (hint === "string") {
348421
- var toString_1 = O.toString;
348422
- if (IsCallable(toString_1)) {
348423
- var result = toString_1.call(O);
348424
- if (!IsObject(result))
348425
- return result;
348426
- }
348427
- var valueOf = O.valueOf;
348428
- if (IsCallable(valueOf)) {
348429
- var result = valueOf.call(O);
348430
- if (!IsObject(result))
348431
- return result;
348432
- }
348433
- }
348434
- else {
348435
- var valueOf = O.valueOf;
348436
- if (IsCallable(valueOf)) {
348437
- var result = valueOf.call(O);
348438
- if (!IsObject(result))
348439
- return result;
348440
- }
348441
- var toString_2 = O.toString;
348442
- if (IsCallable(toString_2)) {
348443
- var result = toString_2.call(O);
348444
- if (!IsObject(result))
348445
- return result;
348446
- }
348447
- }
348448
- throw new TypeError();
348449
- }
348450
- // 7.1.2 ToBoolean(argument)
348451
- // https://tc39.github.io/ecma262/2016/#sec-toboolean
348452
- function ToBoolean(argument) {
348453
- return !!argument;
348454
- }
348455
- // 7.1.12 ToString(argument)
348456
- // https://tc39.github.io/ecma262/#sec-tostring
348457
- function ToString(argument) {
348458
- return "" + argument;
348459
- }
348460
- // 7.1.14 ToPropertyKey(argument)
348461
- // https://tc39.github.io/ecma262/#sec-topropertykey
348462
- function ToPropertyKey(argument) {
348463
- var key = ToPrimitive(argument, 3 /* String */);
348464
- if (IsSymbol(key))
348465
- return key;
348466
- return ToString(key);
348467
- }
348468
- // 7.2 Testing and Comparison Operations
348469
- // https://tc39.github.io/ecma262/#sec-testing-and-comparison-operations
348470
- // 7.2.2 IsArray(argument)
348471
- // https://tc39.github.io/ecma262/#sec-isarray
348472
- function IsArray(argument) {
348473
- return Array.isArray
348474
- ? Array.isArray(argument)
348475
- : argument instanceof Object
348476
- ? argument instanceof Array
348477
- : Object.prototype.toString.call(argument) === "[object Array]";
348478
- }
348479
- // 7.2.3 IsCallable(argument)
348480
- // https://tc39.github.io/ecma262/#sec-iscallable
348481
- function IsCallable(argument) {
348482
- // NOTE: This is an approximation as we cannot check for [[Call]] internal method.
348483
- return typeof argument === "function";
348484
- }
348485
- // 7.2.4 IsConstructor(argument)
348486
- // https://tc39.github.io/ecma262/#sec-isconstructor
348487
- function IsConstructor(argument) {
348488
- // NOTE: This is an approximation as we cannot check for [[Construct]] internal method.
348489
- return typeof argument === "function";
348490
- }
348491
- // 7.2.7 IsPropertyKey(argument)
348492
- // https://tc39.github.io/ecma262/#sec-ispropertykey
348493
- function IsPropertyKey(argument) {
348494
- switch (Type(argument)) {
348495
- case 3 /* String */: return true;
348496
- case 4 /* Symbol */: return true;
348497
- default: return false;
348498
- }
348499
- }
348500
- function SameValueZero(x, y) {
348501
- return x === y || x !== x && y !== y;
348502
- }
348503
- // 7.3 Operations on Objects
348504
- // https://tc39.github.io/ecma262/#sec-operations-on-objects
348505
- // 7.3.9 GetMethod(V, P)
348506
- // https://tc39.github.io/ecma262/#sec-getmethod
348507
- function GetMethod(V, P) {
348508
- var func = V[P];
348509
- if (func === undefined || func === null)
348510
- return undefined;
348511
- if (!IsCallable(func))
348512
- throw new TypeError();
348513
- return func;
348514
- }
348515
- // 7.4 Operations on Iterator Objects
348516
- // https://tc39.github.io/ecma262/#sec-operations-on-iterator-objects
348517
- function GetIterator(obj) {
348518
- var method = GetMethod(obj, iteratorSymbol);
348519
- if (!IsCallable(method))
348520
- throw new TypeError(); // from Call
348521
- var iterator = method.call(obj);
348522
- if (!IsObject(iterator))
348523
- throw new TypeError();
348524
- return iterator;
348525
- }
348526
- // 7.4.4 IteratorValue(iterResult)
348527
- // https://tc39.github.io/ecma262/2016/#sec-iteratorvalue
348528
- function IteratorValue(iterResult) {
348529
- return iterResult.value;
348530
- }
348531
- // 7.4.5 IteratorStep(iterator)
348532
- // https://tc39.github.io/ecma262/#sec-iteratorstep
348533
- function IteratorStep(iterator) {
348534
- var result = iterator.next();
348535
- return result.done ? false : result;
348536
- }
348537
- // 7.4.6 IteratorClose(iterator, completion)
348538
- // https://tc39.github.io/ecma262/#sec-iteratorclose
348539
- function IteratorClose(iterator) {
348540
- var f = iterator["return"];
348541
- if (f)
348542
- f.call(iterator);
348543
- }
348544
- // 9.1 Ordinary Object Internal Methods and Internal Slots
348545
- // https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots
348546
- // 9.1.1.1 OrdinaryGetPrototypeOf(O)
348547
- // https://tc39.github.io/ecma262/#sec-ordinarygetprototypeof
348548
- function OrdinaryGetPrototypeOf(O) {
348549
- var proto = Object.getPrototypeOf(O);
348550
- if (typeof O !== "function" || O === functionPrototype)
348551
- return proto;
348552
- // TypeScript doesn't set __proto__ in ES5, as it's non-standard.
348553
- // Try to determine the superclass constructor. Compatible implementations
348554
- // must either set __proto__ on a subclass constructor to the superclass constructor,
348555
- // or ensure each class has a valid `constructor` property on its prototype that
348556
- // points back to the constructor.
348557
- // If this is not the same as Function.[[Prototype]], then this is definately inherited.
348558
- // This is the case when in ES6 or when using __proto__ in a compatible browser.
348559
- if (proto !== functionPrototype)
348560
- return proto;
348561
- // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.
348562
- var prototype = O.prototype;
348563
- var prototypeProto = prototype && Object.getPrototypeOf(prototype);
348564
- if (prototypeProto == null || prototypeProto === Object.prototype)
348565
- return proto;
348566
- // If the constructor was not a function, then we cannot determine the heritage.
348567
- var constructor = prototypeProto.constructor;
348568
- if (typeof constructor !== "function")
348569
- return proto;
348570
- // If we have some kind of self-reference, then we cannot determine the heritage.
348571
- if (constructor === O)
348572
- return proto;
348573
- // we have a pretty good guess at the heritage.
348574
- return constructor;
348575
- }
348576
- // Global metadata registry
348577
- // - Allows `import "reflect-metadata"` and `import "reflect-metadata/no-conflict"` to interoperate.
348578
- // - Uses isolated metadata if `Reflect` is frozen before the registry can be installed.
348579
- /**
348580
- * Creates a registry used to allow multiple `reflect-metadata` providers.
348581
- */
348582
- function CreateMetadataRegistry() {
348583
- var fallback;
348584
- if (!IsUndefined(registrySymbol) &&
348585
- typeof root.Reflect !== "undefined" &&
348586
- !(registrySymbol in root.Reflect) &&
348587
- typeof root.Reflect.defineMetadata === "function") {
348588
- // interoperate with older version of `reflect-metadata` that did not support a registry.
348589
- fallback = CreateFallbackProvider(root.Reflect);
348590
- }
348591
- var first;
348592
- var second;
348593
- var rest;
348594
- var targetProviderMap = new _WeakMap();
348595
- var registry = {
348596
- registerProvider: registerProvider,
348597
- getProvider: getProvider,
348598
- setProvider: setProvider,
348599
- };
348600
- return registry;
348601
- function registerProvider(provider) {
348602
- if (!Object.isExtensible(registry)) {
348603
- throw new Error("Cannot add provider to a frozen registry.");
348604
- }
348605
- switch (true) {
348606
- case fallback === provider: break;
348607
- case IsUndefined(first):
348608
- first = provider;
348609
- break;
348610
- case first === provider: break;
348611
- case IsUndefined(second):
348612
- second = provider;
348613
- break;
348614
- case second === provider: break;
348615
- default:
348616
- if (rest === undefined)
348617
- rest = new _Set();
348618
- rest.add(provider);
348619
- break;
348620
- }
348621
- }
348622
- function getProviderNoCache(O, P) {
348623
- if (!IsUndefined(first)) {
348624
- if (first.isProviderFor(O, P))
348625
- return first;
348626
- if (!IsUndefined(second)) {
348627
- if (second.isProviderFor(O, P))
348628
- return first;
348629
- if (!IsUndefined(rest)) {
348630
- var iterator = GetIterator(rest);
348631
- while (true) {
348632
- var next = IteratorStep(iterator);
348633
- if (!next) {
348634
- return undefined;
348635
- }
348636
- var provider = IteratorValue(next);
348637
- if (provider.isProviderFor(O, P)) {
348638
- IteratorClose(iterator);
348639
- return provider;
348640
- }
348641
- }
348642
- }
348643
- }
348644
- }
348645
- if (!IsUndefined(fallback) && fallback.isProviderFor(O, P)) {
348646
- return fallback;
348647
- }
348648
- return undefined;
348649
- }
348650
- function getProvider(O, P) {
348651
- var providerMap = targetProviderMap.get(O);
348652
- var provider;
348653
- if (!IsUndefined(providerMap)) {
348654
- provider = providerMap.get(P);
348655
- }
348656
- if (!IsUndefined(provider)) {
348657
- return provider;
348658
- }
348659
- provider = getProviderNoCache(O, P);
348660
- if (!IsUndefined(provider)) {
348661
- if (IsUndefined(providerMap)) {
348662
- providerMap = new _Map();
348663
- targetProviderMap.set(O, providerMap);
348664
- }
348665
- providerMap.set(P, provider);
348666
- }
348667
- return provider;
348668
- }
348669
- function hasProvider(provider) {
348670
- if (IsUndefined(provider))
348671
- throw new TypeError();
348672
- return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider);
348673
- }
348674
- function setProvider(O, P, provider) {
348675
- if (!hasProvider(provider)) {
348676
- throw new Error("Metadata provider not registered.");
348677
- }
348678
- var existingProvider = getProvider(O, P);
348679
- if (existingProvider !== provider) {
348680
- if (!IsUndefined(existingProvider)) {
348681
- return false;
348682
- }
348683
- var providerMap = targetProviderMap.get(O);
348684
- if (IsUndefined(providerMap)) {
348685
- providerMap = new _Map();
348686
- targetProviderMap.set(O, providerMap);
348687
- }
348688
- providerMap.set(P, provider);
348689
- }
348690
- return true;
348691
- }
348692
- }
348693
- /**
348694
- * Gets or creates the shared registry of metadata providers.
348695
- */
348696
- function GetOrCreateMetadataRegistry() {
348697
- var metadataRegistry;
348698
- if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {
348699
- metadataRegistry = root.Reflect[registrySymbol];
348700
- }
348701
- if (IsUndefined(metadataRegistry)) {
348702
- metadataRegistry = CreateMetadataRegistry();
348703
- }
348704
- if (!IsUndefined(registrySymbol) && IsObject(root.Reflect) && Object.isExtensible(root.Reflect)) {
348705
- Object.defineProperty(root.Reflect, registrySymbol, {
348706
- enumerable: false,
348707
- configurable: false,
348708
- writable: false,
348709
- value: metadataRegistry
348710
- });
348711
- }
348712
- return metadataRegistry;
348713
- }
348714
- function CreateMetadataProvider(registry) {
348715
- // [[Metadata]] internal slot
348716
- // https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots
348717
- var metadata = new _WeakMap();
348718
- var provider = {
348719
- isProviderFor: function (O, P) {
348720
- var targetMetadata = metadata.get(O);
348721
- if (IsUndefined(targetMetadata))
348722
- return false;
348723
- return targetMetadata.has(P);
348724
- },
348725
- OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata,
348726
- OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata,
348727
- OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata,
348728
- OrdinaryOwnMetadataKeys: OrdinaryOwnMetadataKeys,
348729
- OrdinaryDeleteMetadata: OrdinaryDeleteMetadata,
348730
- };
348731
- metadataRegistry.registerProvider(provider);
348732
- return provider;
348733
- function GetOrCreateMetadataMap(O, P, Create) {
348734
- var targetMetadata = metadata.get(O);
348735
- var createdTargetMetadata = false;
348736
- if (IsUndefined(targetMetadata)) {
348737
- if (!Create)
348738
- return undefined;
348739
- targetMetadata = new _Map();
348740
- metadata.set(O, targetMetadata);
348741
- createdTargetMetadata = true;
348742
- }
348743
- var metadataMap = targetMetadata.get(P);
348744
- if (IsUndefined(metadataMap)) {
348745
- if (!Create)
348746
- return undefined;
348747
- metadataMap = new _Map();
348748
- targetMetadata.set(P, metadataMap);
348749
- if (!registry.setProvider(O, P, provider)) {
348750
- targetMetadata.delete(P);
348751
- if (createdTargetMetadata) {
348752
- metadata.delete(O);
348753
- }
348754
- throw new Error("Wrong provider for target.");
348755
- }
348756
- }
348757
- return metadataMap;
348758
- }
348759
- // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)
348760
- // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata
348761
- function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
348762
- var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);
348763
- if (IsUndefined(metadataMap))
348764
- return false;
348765
- return ToBoolean(metadataMap.has(MetadataKey));
348766
- }
348767
- // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)
348768
- // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata
348769
- function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
348770
- var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);
348771
- if (IsUndefined(metadataMap))
348772
- return undefined;
348773
- return metadataMap.get(MetadataKey);
348774
- }
348775
- // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)
348776
- // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata
348777
- function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
348778
- var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ true);
348779
- metadataMap.set(MetadataKey, MetadataValue);
348780
- }
348781
- // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)
348782
- // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys
348783
- function OrdinaryOwnMetadataKeys(O, P) {
348784
- var keys = [];
348785
- var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);
348786
- if (IsUndefined(metadataMap))
348787
- return keys;
348788
- var keysObj = metadataMap.keys();
348789
- var iterator = GetIterator(keysObj);
348790
- var k = 0;
348791
- while (true) {
348792
- var next = IteratorStep(iterator);
348793
- if (!next) {
348794
- keys.length = k;
348795
- return keys;
348796
- }
348797
- var nextValue = IteratorValue(next);
348798
- try {
348799
- keys[k] = nextValue;
348800
- }
348801
- catch (e) {
348802
- try {
348803
- IteratorClose(iterator);
348804
- }
348805
- finally {
348806
- throw e;
348807
- }
348808
- }
348809
- k++;
348810
- }
348811
- }
348812
- function OrdinaryDeleteMetadata(MetadataKey, O, P) {
348813
- var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);
348814
- if (IsUndefined(metadataMap))
348815
- return false;
348816
- if (!metadataMap.delete(MetadataKey))
348817
- return false;
348818
- if (metadataMap.size === 0) {
348819
- var targetMetadata = metadata.get(O);
348820
- if (!IsUndefined(targetMetadata)) {
348821
- targetMetadata.delete(P);
348822
- if (targetMetadata.size === 0) {
348823
- metadata.delete(targetMetadata);
348824
- }
348825
- }
348826
- }
348827
- return true;
348828
- }
348829
- }
348830
- function CreateFallbackProvider(reflect) {
348831
- var defineMetadata = reflect.defineMetadata, hasOwnMetadata = reflect.hasOwnMetadata, getOwnMetadata = reflect.getOwnMetadata, getOwnMetadataKeys = reflect.getOwnMetadataKeys, deleteMetadata = reflect.deleteMetadata;
348832
- var metadataOwner = new _WeakMap();
348833
- var provider = {
348834
- isProviderFor: function (O, P) {
348835
- var metadataPropertySet = metadataOwner.get(O);
348836
- if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) {
348837
- return true;
348838
- }
348839
- if (getOwnMetadataKeys(O, P).length) {
348840
- if (IsUndefined(metadataPropertySet)) {
348841
- metadataPropertySet = new _Set();
348842
- metadataOwner.set(O, metadataPropertySet);
348843
- }
348844
- metadataPropertySet.add(P);
348845
- return true;
348846
- }
348847
- return false;
348848
- },
348849
- OrdinaryDefineOwnMetadata: defineMetadata,
348850
- OrdinaryHasOwnMetadata: hasOwnMetadata,
348851
- OrdinaryGetOwnMetadata: getOwnMetadata,
348852
- OrdinaryOwnMetadataKeys: getOwnMetadataKeys,
348853
- OrdinaryDeleteMetadata: deleteMetadata,
348854
- };
348855
- return provider;
348856
- }
348857
- /**
348858
- * Gets the metadata provider for an object. If the object has no metadata provider and this is for a create operation,
348859
- * then this module's metadata provider is assigned to the object.
348860
- */
348861
- function GetMetadataProvider(O, P, Create) {
348862
- var registeredProvider = metadataRegistry.getProvider(O, P);
348863
- if (!IsUndefined(registeredProvider)) {
348864
- return registeredProvider;
348865
- }
348866
- if (Create) {
348867
- if (metadataRegistry.setProvider(O, P, metadataProvider)) {
348868
- return metadataProvider;
348869
- }
348870
- throw new Error("Illegal state.");
348871
- }
348872
- return undefined;
348873
- }
348874
- // naive Map shim
348875
- function CreateMapPolyfill() {
348876
- var cacheSentinel = {};
348877
- var arraySentinel = [];
348878
- var MapIterator = /** @class */ (function () {
348879
- function MapIterator(keys, values, selector) {
348880
- this._index = 0;
348881
- this._keys = keys;
348882
- this._values = values;
348883
- this._selector = selector;
348884
- }
348885
- MapIterator.prototype["@@iterator"] = function () { return this; };
348886
- MapIterator.prototype[iteratorSymbol] = function () { return this; };
348887
- MapIterator.prototype.next = function () {
348888
- var index = this._index;
348889
- if (index >= 0 && index < this._keys.length) {
348890
- var result = this._selector(this._keys[index], this._values[index]);
348891
- if (index + 1 >= this._keys.length) {
348892
- this._index = -1;
348893
- this._keys = arraySentinel;
348894
- this._values = arraySentinel;
348895
- }
348896
- else {
348897
- this._index++;
348898
- }
348899
- return { value: result, done: false };
348900
- }
348901
- return { value: undefined, done: true };
348902
- };
348903
- MapIterator.prototype.throw = function (error) {
348904
- if (this._index >= 0) {
348905
- this._index = -1;
348906
- this._keys = arraySentinel;
348907
- this._values = arraySentinel;
348908
- }
348909
- throw error;
348910
- };
348911
- MapIterator.prototype.return = function (value) {
348912
- if (this._index >= 0) {
348913
- this._index = -1;
348914
- this._keys = arraySentinel;
348915
- this._values = arraySentinel;
348916
- }
348917
- return { value: value, done: true };
348918
- };
348919
- return MapIterator;
348920
- }());
348921
- var Map = /** @class */ (function () {
348922
- function Map() {
348923
- this._keys = [];
348924
- this._values = [];
348925
- this._cacheKey = cacheSentinel;
348926
- this._cacheIndex = -2;
348927
- }
348928
- Object.defineProperty(Map.prototype, "size", {
348929
- get: function () { return this._keys.length; },
348930
- enumerable: true,
348931
- configurable: true
348932
- });
348933
- Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; };
348934
- Map.prototype.get = function (key) {
348935
- var index = this._find(key, /*insert*/ false);
348936
- return index >= 0 ? this._values[index] : undefined;
348937
- };
348938
- Map.prototype.set = function (key, value) {
348939
- var index = this._find(key, /*insert*/ true);
348940
- this._values[index] = value;
348941
- return this;
348942
- };
348943
- Map.prototype.delete = function (key) {
348944
- var index = this._find(key, /*insert*/ false);
348945
- if (index >= 0) {
348946
- var size = this._keys.length;
348947
- for (var i = index + 1; i < size; i++) {
348948
- this._keys[i - 1] = this._keys[i];
348949
- this._values[i - 1] = this._values[i];
348950
- }
348951
- this._keys.length--;
348952
- this._values.length--;
348953
- if (SameValueZero(key, this._cacheKey)) {
348954
- this._cacheKey = cacheSentinel;
348955
- this._cacheIndex = -2;
348956
- }
348957
- return true;
348958
- }
348959
- return false;
348960
- };
348961
- Map.prototype.clear = function () {
348962
- this._keys.length = 0;
348963
- this._values.length = 0;
348964
- this._cacheKey = cacheSentinel;
348965
- this._cacheIndex = -2;
348966
- };
348967
- Map.prototype.keys = function () { return new MapIterator(this._keys, this._values, getKey); };
348968
- Map.prototype.values = function () { return new MapIterator(this._keys, this._values, getValue); };
348969
- Map.prototype.entries = function () { return new MapIterator(this._keys, this._values, getEntry); };
348970
- Map.prototype["@@iterator"] = function () { return this.entries(); };
348971
- Map.prototype[iteratorSymbol] = function () { return this.entries(); };
348972
- Map.prototype._find = function (key, insert) {
348973
- if (!SameValueZero(this._cacheKey, key)) {
348974
- this._cacheIndex = -1;
348975
- for (var i = 0; i < this._keys.length; i++) {
348976
- if (SameValueZero(this._keys[i], key)) {
348977
- this._cacheIndex = i;
348978
- break;
348979
- }
348980
- }
348981
- }
348982
- if (this._cacheIndex < 0 && insert) {
348983
- this._cacheIndex = this._keys.length;
348984
- this._keys.push(key);
348985
- this._values.push(undefined);
348986
- }
348987
- return this._cacheIndex;
348988
- };
348989
- return Map;
348990
- }());
348991
- return Map;
348992
- function getKey(key, _) {
348993
- return key;
348994
- }
348995
- function getValue(_, value) {
348996
- return value;
348997
- }
348998
- function getEntry(key, value) {
348999
- return [key, value];
349000
- }
349001
- }
349002
- // naive Set shim
349003
- function CreateSetPolyfill() {
349004
- var Set = /** @class */ (function () {
349005
- function Set() {
349006
- this._map = new _Map();
349007
- }
349008
- Object.defineProperty(Set.prototype, "size", {
349009
- get: function () { return this._map.size; },
349010
- enumerable: true,
349011
- configurable: true
349012
- });
349013
- Set.prototype.has = function (value) { return this._map.has(value); };
349014
- Set.prototype.add = function (value) { return this._map.set(value, value), this; };
349015
- Set.prototype.delete = function (value) { return this._map.delete(value); };
349016
- Set.prototype.clear = function () { this._map.clear(); };
349017
- Set.prototype.keys = function () { return this._map.keys(); };
349018
- Set.prototype.values = function () { return this._map.keys(); };
349019
- Set.prototype.entries = function () { return this._map.entries(); };
349020
- Set.prototype["@@iterator"] = function () { return this.keys(); };
349021
- Set.prototype[iteratorSymbol] = function () { return this.keys(); };
349022
- return Set;
349023
- }());
349024
- return Set;
349025
- }
349026
- // naive WeakMap shim
349027
- function CreateWeakMapPolyfill() {
349028
- var UUID_SIZE = 16;
349029
- var keys = HashMap.create();
349030
- var rootKey = CreateUniqueKey();
349031
- return /** @class */ (function () {
349032
- function WeakMap() {
349033
- this._key = CreateUniqueKey();
349034
- }
349035
- WeakMap.prototype.has = function (target) {
349036
- var table = GetOrCreateWeakMapTable(target, /*create*/ false);
349037
- return table !== undefined ? HashMap.has(table, this._key) : false;
349038
- };
349039
- WeakMap.prototype.get = function (target) {
349040
- var table = GetOrCreateWeakMapTable(target, /*create*/ false);
349041
- return table !== undefined ? HashMap.get(table, this._key) : undefined;
349042
- };
349043
- WeakMap.prototype.set = function (target, value) {
349044
- var table = GetOrCreateWeakMapTable(target, /*create*/ true);
349045
- table[this._key] = value;
349046
- return this;
349047
- };
349048
- WeakMap.prototype.delete = function (target) {
349049
- var table = GetOrCreateWeakMapTable(target, /*create*/ false);
349050
- return table !== undefined ? delete table[this._key] : false;
349051
- };
349052
- WeakMap.prototype.clear = function () {
349053
- // NOTE: not a real clear, just makes the previous data unreachable
349054
- this._key = CreateUniqueKey();
349055
- };
349056
- return WeakMap;
349057
- }());
349058
- function CreateUniqueKey() {
349059
- var key;
349060
- do
349061
- key = "@@WeakMap@@" + CreateUUID();
349062
- while (HashMap.has(keys, key));
349063
- keys[key] = true;
349064
- return key;
349065
- }
349066
- function GetOrCreateWeakMapTable(target, create) {
349067
- if (!hasOwn.call(target, rootKey)) {
349068
- if (!create)
349069
- return undefined;
349070
- Object.defineProperty(target, rootKey, { value: HashMap.create() });
349071
- }
349072
- return target[rootKey];
349073
- }
349074
- function FillRandomBytes(buffer, size) {
349075
- for (var i = 0; i < size; ++i)
349076
- buffer[i] = Math.random() * 0xff | 0;
349077
- return buffer;
349078
- }
349079
- function GenRandomBytes(size) {
349080
- if (typeof Uint8Array === "function") {
349081
- var array = new Uint8Array(size);
349082
- if (typeof crypto !== "undefined") {
349083
- crypto.getRandomValues(array);
349084
- }
349085
- else if (typeof msCrypto !== "undefined") {
349086
- msCrypto.getRandomValues(array);
349087
- }
349088
- else {
349089
- FillRandomBytes(array, size);
349090
- }
349091
- return array;
349092
- }
349093
- return FillRandomBytes(new Array(size), size);
349094
- }
349095
- function CreateUUID() {
349096
- var data = GenRandomBytes(UUID_SIZE);
349097
- // mark as random - RFC 4122 § 4.4
349098
- data[6] = data[6] & 0x4f | 0x40;
349099
- data[8] = data[8] & 0xbf | 0x80;
349100
- var result = "";
349101
- for (var offset = 0; offset < UUID_SIZE; ++offset) {
349102
- var byte = data[offset];
349103
- if (offset === 4 || offset === 6 || offset === 8)
349104
- result += "-";
349105
- if (byte < 16)
349106
- result += "0";
349107
- result += byte.toString(16).toLowerCase();
349108
- }
349109
- return result;
349110
- }
349111
- }
349112
- // uses a heuristic used by v8 and chakra to force an object into dictionary mode.
349113
- function MakeDictionary(obj) {
349114
- obj.__ = undefined;
349115
- delete obj.__;
349116
- return obj;
349117
- }
349118
- });
349119
- })(Reflect || (Reflect = {}));
349120
-
349121
-
349122
347552
  /***/ }),
349123
347553
 
349124
347554
  /***/ "./node_modules/big.js/big.mjs":