@byteluck-fe/model-driven-engine 2.1.0-sourcemap.4 → 2.1.0-sourcemap.6

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.
@@ -430,7 +430,6 @@ var Engine = /*#__PURE__*/ function(Watcher) {
430
430
  this.store.state = proxyState(this.store.state, this._proxyStateCallback.bind(this), this._proxyStateBeforeSetCallback.bind(this));
431
431
  };
432
432
  _proto._proxyStateBeforeSetCallback = function _proxyStateBeforeSetCallback(state, key, newValue, oldValue) {
433
- var _this = this;
434
433
  var instance = findItem(this.runtime.flatInstances, key, this.runtime.instanceMap);
435
434
  // 找不到控件说明不是改动控件上的字段,直接通过
436
435
  if (!instance) {
@@ -438,6 +437,9 @@ var Engine = /*#__PURE__*/ function(Watcher) {
438
437
  }
439
438
  // @ts-ignore
440
439
  if (this.assertInstance(instance, CONTROL_TYPE.SUBTABLE)) {
440
+ if (newValue === null) {
441
+ return [];
442
+ }
441
443
  // @ts-ignore
442
444
  var fieldTypeMap = instance.props.headers.reduce(function(result, column) {
443
445
  var formInstance = column.children[0];
@@ -446,12 +448,11 @@ var Engine = /*#__PURE__*/ function(Watcher) {
446
448
  }
447
449
  return result;
448
450
  }, {});
449
- if (newValue === null) {
450
- return [];
451
- }
451
+ // @ts-ignore
452
+ var emptyState = this.getEmptyState(instance.id);
452
453
  return newValue.map(function(row) {
453
454
  return(// @ts-ignore
454
- checkerSubtableValue(fieldTypeMap, row, _this.getEmptyState(instance.id)));
455
+ checkerSubtableValue(fieldTypeMap, row, emptyState));
455
456
  });
456
457
  }
457
458
  var keys = key.split(".");
@@ -1130,7 +1131,11 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1130
1131
  * @param header 明细表内是否获取表头的控件
1131
1132
  */ _proto.getInstances = function getInstances(controlId) {
1132
1133
  var header = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
1134
+ var cc = console;
1135
+ var label = "\uD83D\uDC11 genInstances " + controlId + " " + Date.now();
1136
+ cc.time(label);
1133
1137
  if (controlId === undefined) {
1138
+ cc.timeEnd(label);
1134
1139
  return this.runtime.flatInstances;
1135
1140
  }
1136
1141
  var instances = this.runtime.flatInstances.filter(// @ts-ignore
@@ -1173,6 +1178,7 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1173
1178
  }
1174
1179
  }
1175
1180
  }
1181
+ cc.timeEnd(label);
1176
1182
  return instances;
1177
1183
  };
1178
1184
  _proto.setInstance = function setInstance(instance, props, value, rowIndex) {
@@ -114,6 +114,10 @@ export var Runtime = /*#__PURE__*/ function(RegisterControls) {
114
114
  var instances = [];
115
115
  var instanceMap = {};
116
116
  loop(this._instance, function(item) {
117
+ // 3.4.1 避免将subtable-row 放到 _flatInstances 中
118
+ if (item.type === "subtable-row") {
119
+ return;
120
+ }
117
121
  instances.push(item);
118
122
  if (!instanceMap[item.id]) {
119
123
  instanceMap[item.id] = [];
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- var R1=Object.defineProperty,$1=Object.defineProperties;var P1=Object.getOwnPropertyDescriptors;var co=Object.getOwnPropertySymbols,T1=Object.getPrototypeOf,L1=Object.prototype.hasOwnProperty,j1=Object.prototype.propertyIsEnumerable,k1=Reflect.get;var Pn=Math.pow,fo=(Z,Y,ne)=>Y in Z?R1(Z,Y,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Z[Y]=ne,oe=(Z,Y)=>{for(var ne in Y||(Y={}))L1.call(Y,ne)&&fo(Z,ne,Y[ne]);if(co)for(var ne of co(Y))j1.call(Y,ne)&&fo(Z,ne,Y[ne]);return Z},Xr=(Z,Y)=>$1(Z,P1(Y));var lo=(Z,Y,ne)=>k1(T1(Z),ne,Y);var ze=(Z,Y,ne)=>new Promise((Tn,Jt)=>{var Ln=We=>{try{Nt(ne.next(We))}catch(xt){Jt(xt)}},jn=We=>{try{Nt(ne.throw(We))}catch(xt){Jt(xt)}},Nt=We=>We.done?Tn(We.value):Promise.resolve(We.value).then(Ln,jn);Nt((ne=ne.apply(Z,Y)).next())});(function(Z,Y){typeof exports=="object"&&typeof module!="undefined"?Y(exports,require("crypto")):typeof define=="function"&&define.amd?define(["exports","crypto"],Y):(Z=typeof globalThis!="undefined"?globalThis:Z||self,Y(Z.modelDrivenEngine={},Z.require$$0))})(this,function(Z,Y){"use strict";function ne(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Tn=ne(Y),Jt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Ln="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",jn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Nt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",We="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",xt="{caption}\u5FC5\u586B",ho="\u8BF7\u8F93\u5165\u6807\u9898",po="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Do="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",go="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",vo="\u8BF7\u7ED1\u5B9A\u8868\u5355",mo="\u8BF7\u7ED1\u5B9A\u5217\u8868",yo="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Eo="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Ao="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Co="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Fo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",wo="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Bo="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",bo="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",So="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",_o="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Mo="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Io="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",No="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",xo="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Oo="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Ro="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",$o="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Po="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",To="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Lo="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",jo="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",ko="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",qo="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Vo="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Uo="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Ho="\u8BF7\u9009\u62E9\u7701",zo="\u8BF7\u9009\u62E9\u5E02",Wo="\u8BF7\u9009\u62E9\u533A",Zo="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Xo="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Go="\u8BF7\u8F93\u5165\u5217\u5BBD",Jo="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Ko="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Qo="\u8BF7\u9009\u62E9\u63A7\u4EF6",Yo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",ea="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",ta="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",na="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",ra="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ua="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ia="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",oa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",aa="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",sa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ca="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",fa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",la="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ha="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",da="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",pa="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Da="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ga="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",va="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ma="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",ya="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Ea={isNotNumber:Jt,isNotString:Ln,isNotObject:jn,isNotArray:Nt,isNotBoolean:We,runtimeRequired:xt,pleaseEnterCaption:ho,pleaseEnterCaptionTip:po,pleaseEnterPlaceholder:Do,pleaseEnterFieldCode:go,pleaseEnterForm:vo,pleaseEnterList:mo,pleaseEnterProcess:yo,pleaseEnterLabel:Eo,pleaseEnterValue:Ao,bizKeyNotBindFiled:Co,pleaseSelectOneField:Fo,pleaseEnterNumberRange:wo,pleaseEnterAValueGreaterThanMin:Bo,pleaseEnterAValueLessThanMax:bo,numberRangeSetError:So,stringRangeError:_o,attachmentMaxSize:Mo,pleaseEnterTotalScoreSetting:Io,theTotalScoreMustNotBeLessThan1:No,scoreDefaultValueRange:xo,attachmentLimitError:Oo,PleaseReselectTheOptionalQuantity:Ro,TheMaximumLengthIsGreaterThanTheMinimumLength:$o,TheMinimumLengthIsGreaterThanTheMaximumLength:Po,PleaseSelectTheCorrectOptionSettings:To,optionIdIsRepeat:Lo,optionIsRequired:jo,pleaseEnterDataCode:ko,pleaseEnterValueFieldCode:qo,pleaseEnterSvcCode:Vo,pleaseBindAtLeastOneDisplayValue:Uo,pleaseSelectProvince:Ho,pleaseSelectCity:zo,pleaseSelectDistrict:Wo,limitRowsCannotBeLessThan0:Zo,TheNumberOfRowsCannotBeLessThanMinRows:Xo,pleaseEnterColumnWidth:Go,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Jo,pleaseCompleteAllRulesAndConditions:Ko,pleaseSelectControl:Qo,pleaseSelectAtLeastOneColumn:Yo,pleaseSelectFillBackMode:ea,pleaseSelectDashboard:ta,rootNodeIsRequired:na,theViewNameCannotBeEmpty:ra,pleaseSelectOcrType:ua,pleaseSelectAtLeastOneFieldToFillIn:ia,pleaseChooseAtLeastOne:oa,pleaseEnterButtonContent:aa,pleaseEnterDataCodeInDataSetting:sa,pleaseEnterValueFieldCodeInDataSetting:ca,pleaseEnterSvcCodeInDataSetting:fa,pleaseBindAtLeastOneDisplayValueInDataSetting:la,rootNodeIsRequiredInDataSetting:ha,pleaseEnterMaxHeight:da,pleaseEnter:pa,pleaseEnterWatermark:Da,pleaseEnterFileName:ga,pleaseUploadAtLeastOnePrintTemplate:va,pleaseAssignBusiness:ma,pleaseAssignExternal:ya},Aa="Please enter a number",Ca="Please enter a string",Fa="Please enter an object",wa="Please enter an array",Ba="Please enter a boolean",ba="{caption} Required",Sa="Please enter the title",_a="Please enter the bubble prompt",Ma="Please enter the prompt text",Ia="Please bind data items",Na="Please bind the form",xa="Please bind the list",Oa="Please bind the process",Ra="Please enter the displayed value",$a="Please enter the stored value",Pa="The document number is not bound to the data item",Ta="Please select at least one display field",La="Please enter a value greater than or equal to {min} and less than or equal to {max}",ja="Please enter a value greater than or equal to {min}",ka="Please enter a value less than or equal to {max}",qa="The value range is set incorrectly",Va="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Ua="The attachment size must be between 0MB and 1000MB",Ha="Please fill in the total score setting",za="The total score cannot be less than 1",Wa="The default value must be between {min} and {max}",Za="The number of attachments uploaded must be between {min} and {max}",Xa="Please re-select the optional quantity",Ga="The maximum length of the control must be greater than the minimum length",Ja="The minimum length of the control must be less than the maximum length",Ka="Please select the correct option setting",Qa="Option ID cannot be repeated",Ya="Please enter at least one option",es="Please bind the data source",ts="Please bind the stored value",ns="Please bind the service",rs="At least one display value must be bound",us="Please select a province",is="Please select a city",os="Please select a district",as="The minimum number of lines to fill in cannot be less than 0",ss="The number of rows cannot be less than {min} rows",cs="Please enter the column width",fs="Please set the logical relationship of all rule conditions",ls="Please complete all rules and conditions",hs="please select control",ds="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ps="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ds="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",gs="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",vs="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ms="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",ys="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Es="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",As="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Cs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Fs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ws="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Bs="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",bs="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Ss="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",_s="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Ms="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Is="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Ns={isNotNumber:Aa,isNotString:Ca,isNotObject:Fa,isNotArray:wa,isNotBoolean:Ba,runtimeRequired:ba,pleaseEnterCaption:Sa,pleaseEnterCaptionTip:_a,pleaseEnterPlaceholder:Ma,pleaseEnterFieldCode:Ia,pleaseEnterForm:Na,pleaseEnterList:xa,pleaseEnterProcess:Oa,pleaseEnterLabel:Ra,pleaseEnterValue:$a,bizKeyNotBindFiled:Pa,pleaseSelectOneField:Ta,pleaseEnterNumberRange:La,pleaseEnterAValueGreaterThanMin:ja,pleaseEnterAValueLessThanMax:ka,numberRangeSetError:qa,stringRangeError:Va,attachmentMaxSize:Ua,pleaseEnterTotalScoreSetting:Ha,theTotalScoreMustNotBeLessThan1:za,scoreDefaultValueRange:Wa,attachmentLimitError:Za,PleaseReselectTheOptionalQuantity:Xa,TheMaximumLengthIsGreaterThanTheMinimumLength:Ga,TheMinimumLengthIsGreaterThanTheMaximumLength:Ja,PleaseSelectTheCorrectOptionSettings:Ka,optionIdIsRepeat:Qa,optionIsRequired:Ya,pleaseEnterDataCode:es,pleaseEnterValueFieldCode:ts,pleaseEnterSvcCode:ns,pleaseBindAtLeastOneDisplayValue:rs,pleaseSelectProvince:us,pleaseSelectCity:is,pleaseSelectDistrict:os,limitRowsCannotBeLessThan0:as,TheNumberOfRowsCannotBeLessThanMinRows:ss,pleaseEnterColumnWidth:cs,pleaseSetTheLogicalRelationshipOfAllRuleConditions:fs,pleaseCompleteAllRulesAndConditions:ls,pleaseSelectControl:hs,pleaseSelectDashboard:ds,theViewNameCannotBeEmpty:ps,pleaseSelectOcrType:Ds,pleaseSelectAtLeastOneFieldToFillIn:gs,pleaseChooseAtLeastOne:vs,pleaseEnterButtonContent:ms,pleaseEnterDataCodeInDataSetting:ys,pleaseEnterValueFieldCodeInDataSetting:Es,pleaseEnterSvcCodeInDataSetting:As,pleaseBindAtLeastOneDisplayValueInDataSetting:Cs,rootNodeIsRequiredInDataSetting:Fs,pleaseEnterMaxHeight:ws,pleaseEnter:Bs,pleaseEnterWatermark:bs,pleaseEnterFileName:Ss,pleaseUploadAtLeastOnePrintTemplate:_s,pleaseAssignBusiness:Ms,pleaseAssignExternal:Is},xs="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Os="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Rs="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",$s="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ps="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ts="{caption}\u5FC5\u9808",Ls="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",js="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ks="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",qs="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Vs="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Us="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Hs="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",zs="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ws="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Zs="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Xs="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Gs="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Js="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ks="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Qs="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Ys="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ec="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",tc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",nc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",rc="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",uc="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",ic="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",oc="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ac="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5C0F\u5024\u306F\u6700\u5927\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",sc="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",cc="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",fc="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",lc="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",hc="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",dc="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",pc="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Dc="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",gc="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",vc="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",mc="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",yc="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ec="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ac="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Cc="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Fc="please select control",wc="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Bc="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",bc="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Sc="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",_c="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Mc="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ic="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Nc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",xc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Oc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Rc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",$c="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Pc="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Tc="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Lc="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",jc="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",kc="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",qc="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Vc={isNotNumber:xs,isNotString:Os,isNotObject:Rs,isNotArray:$s,isNotBoolean:Ps,runtimeRequired:Ts,pleaseEnterCaption:Ls,pleaseEnterCaptionTip:js,pleaseEnterPlaceholder:ks,pleaseEnterFieldCode:qs,pleaseEnterForm:Vs,pleaseEnterList:Us,pleaseEnterProcess:Hs,pleaseEnterLabel:zs,pleaseEnterValue:Ws,bizKeyNotBindFiled:Zs,pleaseSelectOneField:Xs,pleaseEnterNumberRange:Gs,pleaseEnterAValueGreaterThanMin:Js,pleaseEnterAValueLessThanMax:Ks,numberRangeSetError:Qs,stringRangeError:Ys,attachmentMaxSize:ec,pleaseEnterTotalScoreSetting:tc,theTotalScoreMustNotBeLessThan1:nc,scoreDefaultValueRange:rc,attachmentLimitError:uc,PleaseReselectTheOptionalQuantity:ic,TheMaximumLengthIsGreaterThanTheMinimumLength:oc,TheMinimumLengthIsGreaterThanTheMaximumLength:ac,PleaseSelectTheCorrectOptionSettings:sc,optionIdIsRepeat:cc,optionIsRequired:fc,pleaseEnterDataCode:lc,pleaseEnterValueFieldCode:hc,pleaseEnterSvcCode:dc,pleaseBindAtLeastOneDisplayValue:pc,pleaseSelectProvince:Dc,pleaseSelectCity:gc,pleaseSelectDistrict:vc,limitRowsCannotBeLessThan0:mc,TheNumberOfRowsCannotBeLessThanMinRows:yc,pleaseEnterColumnWidth:Ec,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ac,pleaseCompleteAllRulesAndConditions:Cc,pleaseSelectControl:Fc,pleaseSelectDashboard:wc,theViewNameCannotBeEmpty:Bc,pleaseSelectOcrType:bc,pleaseSelectAtLeastOneFieldToFillIn:Sc,pleaseChooseAtLeastOne:_c,pleaseEnterButtonContent:Mc,pleaseEnterDataCodeInDataSetting:Ic,pleaseEnterValueFieldCodeInDataSetting:Nc,pleaseEnterSvcCodeInDataSetting:xc,pleaseBindAtLeastOneDisplayValueInDataSetting:Oc,rootNodeIsRequiredInDataSetting:Rc,pleaseEnterMaxHeight:$c,pleaseEnter:Pc,pleaseEnterWatermark:Tc,pleaseEnterFileName:Lc,pleaseUploadAtLeastOnePrintTemplate:jc,pleaseAssignBusiness:kc,pleaseAssignExternal:qc},Uc={zhCN:Ea,enUS:Ns,jaJP:Vc},xe;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(xe||(xe={}));var pt;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(pt||(pt={}));var Gr="zh-CN";function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(Le||(Le={}));var X;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2"})(X||(X={}));var H;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field"})(H||(H={}));var De;De={},we(De,H.ARRAY,X.ARRAY_COLUMN),we(De,H.AUTO_NUMBER,X.AUTO_NUMBER_COLUMN),we(De,H.DECIMAL,X.DECIMAL_COLUMN),we(De,H.DEPARTMENTS,X.DEPARTMENT_COLUMN),we(De,H.FILE,X.FILE_COLUMN),we(De,H.IMAGE,X.IMAGE_COLUMN),we(De,H.ADDRESS,X.LOCATION_COLUMN),we(De,H.EMPLOYEES,X.EMPLOYEE_COLUMN),we(De,H.TEXT,X.TEXT_COLUMN),we(De,H.TIMESCOPE,X.TIMESCOPE_COLUMN),we(De,H.TIMESTAMP,X.TIMESTAMP_COLUMN),we(De,H.VARCHAR,X.VARCHAR_COLUMN),we(De,H.RELATION,X.VARCHAR_COLUMN);var Jr;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATETIME="datetime"})(Jr||(Jr={}));var Kr="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Hc=Kr+"0123456789";function kn(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?Kr:Hc,u=Math.random()*r.length;t+=r[parseInt(String(u),10)]}return t}function qn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zc(e){if(Array.isArray(e))return qn(e)}function Wc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Kt(e,t,n){return Zc()?Kt=Reflect.construct:Kt=function(u,i,o){var c=[null];c.push.apply(c,i);var s=Function.bind.apply(u,c),l=new s;return o&&Rt(l,o.prototype),l},Kt.apply(null,arguments)}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ot(e)}function Yr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rt(e,t)}function Xc(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Gc(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Kc(e,t){return t&&(Qc(t)==="object"||typeof t=="function")?t:Wc(e)}function Rt(e,t){return Rt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Rt(e,t)}function eu(e){return zc(e)||Gc(e)||Yc(e)||Jc()}var Qc=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Yc(e,t){if(!!e){if(typeof e=="string")return qn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qn(e,t)}}function Vn(e){var t=typeof Map=="function"?new Map:void 0;return Vn=function(r){if(r===null||!Xc(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return Kt(r,arguments,Ot(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Rt(u,r)},Vn(e)}function ef(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function tu(e){var t=ef();return function(){var r=Ot(e),u;if(t){var i=Ot(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Kc(this,u)}}var Un=console;function Je(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=Un).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(eu(u)))}function Hn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=Un).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(eu(u)))}function tf(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var zn=function(e){Yr(n,e);var t=tu(n);function n(r){Qr(this,n);var u;return u=t.call(this,r),u.name="\u{1F4A5} Driven Error",u.message=r?tf(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return n}(Vn(Error)),nf=function(e){Yr(n,e);var t=tu(n);function n(r){Qr(this,n);var u;return u=t.call(this,r),u.name="\u{1F6A8} Driven Reference Error",u}return n}(zn);function Ze(e){throw new zn(e)}function nu(e){throw new nf(e)}function Qt(e){Un.error(new zn(e))}function at(e,t){Array.isArray(e)&&e.map(function(n){switch(n.controlType){case"layout":at(n==null?void 0:n.children,t);break;case"search":at(n==null?void 0:n.children,t);break;case"form":t(n)}})}var rf=Object.prototype.toString;function ru(e,t){return rf.call(e)==="[object "+t+"]"}function uf(e){return ru(e,"String")}function of(e){return ru(e,"Promise")}var af=function(){function e(t){var n,r;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((r=(n=t.messages)!==null&&n!==void 0?n:this.getPreImport(t.locale))!==null&&r!==void 0?r:{}),t.variableRegExp&&(this.variableRegExp=t.variableRegExp),this.setLocale(t.locale)}return e.prototype.setLocale=function(t){var n=this;this.locale=t,this._messageCache.clear();var r=this.getMessageData();of(r)?r.then(function(u){n._messageCache.clear(),n.messages[n.localeInMessageKey]=u}):this.messages[this.localeInMessageKey]=r},e.prototype.getMessageData=function(){var t=this._messages[this.localeInMessageKey];return typeof t=="function"?t():t},e.prototype.translate=function(t,n,r){var u=this.getMessage(t);return u?this.formatMessage(u,r):this.formatMessage(n,r)},e.prototype.getMessage=function(t){if(this._messageCache.has(t))return this._messageCache.get(t);var n=this.getPathArray(t),r=n.reduce(function(u,i,o,c){if(u!==void 0){var s=u[i];if(!(o===c.length-1&&!uf(s)))return s}},this.message);return this._messageCache.set(t,r),r},e.prototype.formatMessage=function(t,n){return n?t.replace(this.variableRegExp,function(r,u){var i=n[u];return i!==void 0?String(i):r}):t},e.prototype.getPreImport=function(t){var n;if(window.okI18nPreImport){var r=this.getLocaleInMessageKey(t);return window.okI18nPreImport.hasOwnProperty(r)?window.okI18nPreImport:(n={},n[r]=window.okI18nPreImport,n)}},e.prototype.getPathArray=function(t){return t.split(".")},e.prototype.getLocaleInMessageKey=function(t){return t.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var t;return(t=this.messages[this.localeInMessageKey])!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e}();function sf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Oe=function(){function e(){sf(this,e)}return e.getMessage=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",r)},e.resetI18n=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gr;return new af({locale:n,messages:Uc})},e.setLocale=function(n){return this.$i18n.setLocale(n)},e}();Oe.$i18n=Oe.resetI18n();function uu(e,t,n){var r=t.replace(/\[(\d)]/g,function(i,o){return"."+o}).split("."),u=!1;return r.reduce(function(i,o,c,s){var l=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,o)){Je("Can not set ".concat(t,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),i,i);return}return c===s.length-1&&!Object.is(l[o],n)&&(l[o]=n,u=!0),l[o]}},e),u}var Ke=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function iu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wn={exports:{}};(function(e){(function(t){var n=function(g,E,b){if(!l(E)||a(E)||h(E)||d(E)||s(E))return E;var C,M=0,O=0;if(f(E))for(C=[],O=E.length;M<O;M++)C.push(n(g,E[M],b));else{C={};for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(C[g(P,b)]=n(g,E[P],b))}return C},r=function(g,E){E=E||{};var b=E.separator||"_",C=E.split||/(?=[A-Z])/;return g.split(C).join(b)},u=function(g){return p(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(E,b){return b?b.toUpperCase():""}),g.substr(0,1).toLowerCase()+g.substr(1))},i=function(g){var E=u(g);return E.substr(0,1).toUpperCase()+E.substr(1)},o=function(g,E){return r(g,E).toLowerCase()},c=Object.prototype.toString,s=function(g){return typeof g=="function"},l=function(g){return g===Object(g)},f=function(g){return c.call(g)=="[object Array]"},a=function(g){return c.call(g)=="[object Date]"},h=function(g){return c.call(g)=="[object RegExp]"},d=function(g){return c.call(g)=="[object Boolean]"},p=function(g){return g=g-0,g===g},D=function(g,E){var b=E&&"process"in E?E.process:E;return typeof b!="function"?g:function(C,M){return b(C,g,M)}},v={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(g,E){return n(D(u,E),g)},decamelizeKeys:function(g,E){return n(D(o,E),g,E)},pascalizeKeys:function(g,E){return n(D(i,E),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=v:t.humps=v})(Ke)})(Wn);function te(e){if(e!==void 0)return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function je(e){return Object.prototype.toString.call(e)==="[object Object]"}function cf(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function Dt(e){return Array.isArray(e)}function Be(e){return typeof e=="string"}function Yt(e){return typeof e=="number"}function ou(e){return typeof e=="function"}function ff(e){return Dt(e)&&e.every(function(t){return Be(t)})}function lf(e){return Dt(e)&&e.every(function(t){return Yt(t)||t===""})}function au(e){return/^\[.*?]$/.test(e)}function en(e){return/^{.*?}$/.test(e)}function Zn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hf(e){if(Array.isArray(e))return Zn(e)}function su(e,t,n,r,u,i,o){try{var c=e[i](o),s=c.value}catch(l){n(l);return}c.done?t(s):Promise.resolve(s).then(r,u)}function df(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){su(i,r,u,o,c,"next",s)}function c(s){su(i,r,u,o,c,"throw",s)}o(void 0)})}}function pf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Df(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gf(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xn(e){return hf(e)||Df(e)||vf(e)||gf()}function vf(e,t){if(!!e){if(typeof e=="string")return Zn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zn(e,t)}}var mf=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(f){return s([l,f])}}function s(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},cu=function(){function e(){pf(this,e),this._events=new Map,this.debug=!1}var t=e.prototype;return t.emit=function(r){for(var u=arguments.length,i=new Array(u>1?u-1:0),o=1;o<u;o++)i[o-1]=arguments[o];var c=this;return df(function(){var s,l,f,a,h,d,p,D,v,g,E,b;return mf(this,function(C){switch(C.label){case 0:if(s=c._events.get(r),l=[],!s)return[3,10];f=s.slice(),a=!0,h=!1,d=void 0,C.label=1;case 1:C.trys.push([1,8,9,10]),p=f[Symbol.iterator](),C.label=2;case 2:if(a=(D=p.next()).done)return[3,7];if(v=D.value,!s.includes(v))return[3,6];C.label=3;case 3:return C.trys.push([3,5,,6]),c.debug&&Hn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(v.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+v.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"\u3002")].concat(Xn(i))),[4,v.apply(null,Xn(i))];case 4:return g=C.sent(),c.debug&&Hn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(v.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+v.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(Xn(i),[g])),l.push(g),g===!1?[3,7]:[3,6];case 5:return E=C.sent(),Qt(String(E)),[3,6];case 6:return a=!0,[3,2];case 7:return[3,10];case 8:return b=C.sent(),h=!0,d=b,[3,10];case 9:try{!a&&p.return!=null&&p.return()}finally{if(h)throw d}return[7];case 10:return[2,l]}})})()},t.on=function(r,u){if(this._events.has(r)){var i;(i=this._events.get(r))===null||i===void 0||i.push(u)}else this._events.set(r,[u])},t.off=function(r,u){if(this._events.has(r)){var i=this._events.get(r),o=i==null?void 0:i.indexOf(u);i==null||i.splice(o,1)}},t.delete=function(r){this._events.has(r)&&this._events.delete(r)},t.clear=function(){this._events=new Map},e}();function yf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ef=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"}],fu=function(){function e(){yf(this,e)}var t=e.prototype;return t.getEventsFromKeys=function(r){var u=typeof r=="string"?[r]:r;return e.events.filter(function(i){return u.includes(i.key)})},e}();fu.events=Ef;function Af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var lu=[],tn=function(){function e(n){Af(this,e),this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=n,this._initControls(n)}var t=e.prototype;return t.registerControlConfig=function(r,u){return this.controlConfigMap.set(r,u),this},t.getControlConfig=function(r){return this.controlConfigMap.get(r)},t.getControls=function(){return this._controls},t.register=function(r){r.__is_control__||Ze("".concat(r.name," is not a Control"));var u=this._controls.findIndex(function(i){return i.controlType===r.controlType});return u>-1&&(Je("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(u,1)),this.registeredControlTypes.add(r.controlType),this._controls.push(r),this},t.isLayoutControl=function(r){return r.controlType===Le.LAYOUT},t.isFormControl=function(r){return r.controlType===Le.FORM},t.isListControl=function(r){return r.controlType===Le.LIST},t.isColumnControl=function(r){return r.controlType===Le.COLUMN},t.createControl=function(r,u){var i=this;if(Array.isArray(r))return r.map(function(f){return i.createControl(f,u)});r.children&&(r.children=r.children.map(function(f){return i.createControl(f,u)})),this.isListControl(r)&&r.props.headers&&(r.props.headers=r.props.headers.map(function(f){return i.createControl(f,u)}));var o=this.getControlFormType(r.type);if(o){var c=r;if(typeof u=="function"){var s=u(c);s&&(c=s)}var l=new o(c);return l}else Ze("The constructor of ".concat(r.type," could not be found, please confirm that the constructor has been registered"))},t.createControlInstance=function(r,u){var i=this.getControlFormType(r);if(i)return new i(u)},t.getControlFormType=function(r){return this._controls.find(function(u){return u.controlType===r})},t._initControls=function(r){var u=this;this.constructor.staticControls.forEach(function(i){u.register(i[r])})},e.register=function(r){var u=r.Designer,i=r.Runtime;(!u||!i||!u.__is_control__||!i.__is_control__)&&Ze("".concat(r," is can't register as a Control"));var o=this.staticControls.findIndex(function(c){return c.Designer.controlType===u.controlType});return o>-1&&(Je("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(o,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(r),this},e}();tn.staticControls=lu,tn.staticRegisteredTypes=new Set(lu.map(function(e){return e.Designer.controlType})),tn.staticRegisteredConfigs=new Map;function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var $t=function e(t){st(this,e);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var u;this.fieldType=(u=t==null?void 0:t.fieldType)!==null&&u!==void 0?u:""},Qe=function e(){st(this,e)},nn=function e(t){st(this,e);var n;this.amount=(n=t==null?void 0:t.amount)!==null&&n!==void 0?n:"";var r;this.currency=(r=t==null?void 0:t.currency)!==null&&r!==void 0?r:Gn.CNY},rn=function e(t){st(this,e);var n;this.min=(n=t==null?void 0:t.min)!==null&&n!==void 0?n:"";var r;this.max=(r=t==null?void 0:t.max)!==null&&r!==void 0?r:""},un=function e(t){st(this,e);var n;this.city=(n=t==null?void 0:t.city)!==null&&n!==void 0?n:"";var r;this.cityDisplay=(r=t==null?void 0:t.cityDisplay)!==null&&r!==void 0?r:"";var u;this.district=(u=t==null?void 0:t.district)!==null&&u!==void 0?u:"";var i;this.districtDisplay=(i=t==null?void 0:t.districtDisplay)!==null&&i!==void 0?i:"";var o;this.province=(o=t==null?void 0:t.province)!==null&&o!==void 0?o:"";var c;this.provinceDisplay=(c=t==null?void 0:t.provinceDisplay)!==null&&c!==void 0?c:""},on=function e(t){st(this,e);var n;this.result=(n=t==null?void 0:t.result)!==null&&n!==void 0?n:0;var r;this.unit=(r=t==null?void 0:t.unit)!==null&&r!==void 0?r:""},Gn;(function(e){e.CNY="CNY",e.USD="USD",e.JPY="JPY",e.EUR="EUR",e.INR="INR",e.IDR="IDR",e.BRL="BRL",e.AED="AED",e.AUD="AUD",e.CAD="CAD",e.EGP="EGP",e.GBP="GBP",e.ZAR="ZAR",e.KRW="KRW",e.MAD="MAD",e.MXN="MXN",e.MYR="MYR",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SGD="SGD",e.THB="THB",e.TRY="TRY",e.TWD="TWD",e.VND="VND",e.HKD="HKD",e.IEP="IEP"})(Gn||(Gn={}));var hu;(function(e){e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions"})(hu||(hu={}));var Jn;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(Jn||(Jn={}));var Cf=function e(t){st(this,e);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var u;this.widthConfig=(u=t==null?void 0:t.widthConfig)!==null&&u!==void 0?u:"fill";var i;this.heightConfig=(i=t==null?void 0:t.heightConfig)!==null&&i!==void 0?i:"fill"};function Ff(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function an(e,t,n){return wf()?an=Reflect.construct:an=function(u,i,o){var c=[null];c.push.apply(c,i);var s=Function.bind.apply(u,c),l=new s;return o&&Tt(l,o.prototype),l},an.apply(null,arguments)}function Pt(e){return Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pt(e)}function Bf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tt(e,t)}function bf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Sf(e,t){return t&&(_f(t)==="object"||typeof t=="function")?t:Ff(e)}function Tt(e,t){return Tt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Tt(e,t)}var _f=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Qn(e){var t=typeof Map=="function"?new Map:void 0;return Qn=function(r){if(r===null||!bf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return an(r,arguments,Pt(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Tt(u,r)},Qn(e)}function Mf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function If(e){var t=Mf();return function(){var r=Pt(e),u;if(t){var i=Pt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Sf(this,u)}}var du=function e(t){Kn(this,e),this.isHide={type:"boolean"}},pu=function(e){Bf(n,e);var t=If(n);function n(r){return Kn(this,n),t.call(this)}return n}(Qn(Array)),ct=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Kn(this,e);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new Cf(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};ct.Rules=du,ct.RuntimeRules=pu;function ke(){return ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(this,arguments)}function Nf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Yn(e)}function sn(e,t){return sn=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},sn(e,t)}function xf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function cn(e,t,n){return xf()?cn=Reflect.construct:cn=function(u,i,o){var c=[null];c.push.apply(c,i);var s=Function.bind.apply(u,c),l=new s;return o&&sn(l,o.prototype),l},cn.apply(null,arguments)}function Of(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function er(e){var t=typeof Map=="function"?new Map:void 0;return er=function(r){if(r===null||!Of(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return cn(r,arguments,Yn(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),sn(u,r)},er(e)}var Rf=/%[sdj%]/g,Du=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Du=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function tr(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,u=t[0],i=t.length;if(typeof u=="function")return u.apply(null,t.slice(1));if(typeof u=="string"){var o=String(u).replace(Rf,function(c){if(c==="%%")return"%";if(r>=i)return c;switch(c){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(s){return"[Circular]"}break;default:return c}});return o}return u}function $f(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function re(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||$f(t)&&typeof e=="string"&&!e)}function Pf(e,t,n){var r=[],u=0,i=e.length;function o(c){r.push.apply(r,c),u++,u===i&&n(r)}e.forEach(function(c){t(c,o)})}function gu(e,t,n){var r=0,u=e.length;function i(o){if(o&&o.length){n(o);return}var c=r;r=r+1,c<u?t(e[c],i):n([])}i([])}function Tf(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var vu=function(e){Nf(t,e);function t(n,r){var u;return u=e.call(this,"Async Validation Error")||this,u.errors=n,u.fields=r,u}return t}(er(Error));function Lf(e,t,n,r){if(t.first){var u=new Promise(function(a,h){var d=function(v){return r(v),v.length?h(new vu(v,tr(v))):a()},p=Tf(e);gu(p,n,d)});return u.catch(function(a){return a}),u}var i=t.firstFields||[];i===!0&&(i=Object.keys(e));var o=Object.keys(e),c=o.length,s=0,l=[],f=new Promise(function(a,h){var d=function(D){if(l.push.apply(l,D),s++,s===c)return r(l),l.length?h(new vu(l,tr(l))):a()};o.length||(r(l),a()),o.forEach(function(p){var D=e[p];i.indexOf(p)!==-1?gu(D,n,d):Pf(D,n,d)})});return f.catch(function(a){return a}),f}function mu(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function yu(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=ke(ke({},e[n]),r):e[n]=r}}return e}function Eu(e,t,n,r,u,i){e.required&&(!n.hasOwnProperty(e.field)||re(t,i||e.type))&&r.push(be(u.messages.required,e.fullField))}function jf(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(be(u.messages.whitespace,e.fullField))}var nr={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Lt={integer:function(t){return Lt.number(t)&&parseInt(t,10)===t},float:function(t){return Lt.number(t)&&!Lt.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Lt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(nr.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(nr.url)},hex:function(t){return typeof t=="string"&&!!t.match(nr.hex)}};function kf(e,t,n,r,u){if(e.required&&t===void 0){Eu(e,t,n,r,u);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;i.indexOf(o)>-1?Lt[o](t)||r.push(be(u.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(be(u.messages.types[o],e.fullField,e.type))}function qf(e,t,n,r,u){var i=typeof e.len=="number",o=typeof e.min=="number",c=typeof e.max=="number",s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,f=null,a=typeof t=="number",h=typeof t=="string",d=Array.isArray(t);if(a?f="number":h?f="string":d&&(f="array"),!f)return!1;d&&(l=t.length),h&&(l=t.replace(s,"_").length),i?l!==e.len&&r.push(be(u.messages[f].len,e.fullField,e.len)):o&&!c&&l<e.min?r.push(be(u.messages[f].min,e.fullField,e.min)):c&&!o&&l>e.max?r.push(be(u.messages[f].max,e.fullField,e.max)):o&&c&&(l<e.min||l>e.max)&&r.push(be(u.messages[f].range,e.fullField,e.min,e.max))}var gt="enum";function Vf(e,t,n,r,u){e[gt]=Array.isArray(e[gt])?e[gt]:[],e[gt].indexOf(t)===-1&&r.push(be(u.messages[gt],e.fullField,e[gt].join(", ")))}function Uf(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(be(u.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(t)||r.push(be(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var U={required:Eu,whitespace:jf,type:kf,range:qf,enum:Vf,pattern:Uf};function Hf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t,"string")&&!e.required)return n();U.required(e,t,r,i,u,"string"),re(t,"string")||(U.type(e,t,r,i,u),U.range(e,t,r,i,u),U.pattern(e,t,r,i,u),e.whitespace===!0&&U.whitespace(e,t,r,i,u))}n(i)}function zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&U.type(e,t,r,i,u)}n(i)}function Wf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&(U.type(e,t,r,i,u),U.range(e,t,r,i,u))}n(i)}function Zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&U.type(e,t,r,i,u)}n(i)}function Xf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),re(t)||U.type(e,t,r,i,u)}n(i)}function Gf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&(U.type(e,t,r,i,u),U.range(e,t,r,i,u))}n(i)}function Jf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&(U.type(e,t,r,i,u),U.range(e,t,r,i,u))}n(i)}function Kf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return n();U.required(e,t,r,i,u,"array"),t!=null&&(U.type(e,t,r,i,u),U.range(e,t,r,i,u))}n(i)}function Qf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&U.type(e,t,r,i,u)}n(i)}var Yf="enum";function el(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&U[Yf](e,t,r,i,u)}n(i)}function tl(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t,"string")&&!e.required)return n();U.required(e,t,r,i,u),re(t,"string")||U.pattern(e,t,r,i,u)}n(i)}function nl(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t,"date")&&!e.required)return n();if(U.required(e,t,r,i,u),!re(t,"date")){var c;t instanceof Date?c=t:c=new Date(t),U.type(e,c,r,i,u),c&&U.range(e,c.getTime(),r,i,u)}}n(i)}function rl(e,t,n,r,u){var i=[],o=Array.isArray(t)?"array":typeof t;U.required(e,t,r,i,u,o),n(i)}function rr(e,t,n,r,u){var i=e.type,o=[],c=e.required||!e.required&&r.hasOwnProperty(e.field);if(c){if(re(t,i)&&!e.required)return n();U.required(e,t,r,o,u,i),re(t,i)||U.type(e,t,r,o,u)}n(o)}function ul(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u)}n(i)}var jt={string:Hf,method:zf,number:Wf,boolean:Zf,regexp:Xf,integer:Gf,float:Jf,array:Kf,object:Qf,enum:el,pattern:tl,date:nl,url:rr,hex:rr,email:rr,required:rl,any:ul};function ur(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ir=ur();function Ye(e){this.rules=null,this._messages=ir,this.define(e)}Ye.prototype={messages:function(t){return t&&(this._messages=yu(ur(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var i=t,o=n,c=r;if(typeof o=="function"&&(c=o,o={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(),Promise.resolve();function s(D){var v,g=[],E={};function b(C){if(Array.isArray(C)){var M;g=(M=g).concat.apply(M,C)}else g.push(C)}for(v=0;v<D.length;v++)b(D[v]);g.length?E=tr(g):(g=null,E=null),c(g,E)}if(o.messages){var l=this.messages();l===ir&&(l=ur()),yu(l,o.messages),o.messages=l}else o.messages=this.messages();var f,a,h={},d=o.keys||Object.keys(this.rules);d.forEach(function(D){f=u.rules[D],a=i[D],f.forEach(function(v){var g=v;typeof g.transform=="function"&&(i===t&&(i=ke({},i)),a=i[D]=g.transform(a)),typeof g=="function"?g={validator:g}:g=ke({},g),g.validator=u.getValidationMethod(g),g.field=D,g.fullField=g.fullField||D,g.type=u.getType(g),g.validator&&(h[D]=h[D]||[],h[D].push({rule:g,value:a,source:i,field:D}))})});var p={};return Lf(h,o,function(D,v){var g=D.rule,E=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");E=E&&(g.required||!g.required&&D.value),g.field=D.field;function b(O,P){return ke(ke({},P),{},{fullField:g.fullField+"."+O})}function C(O){O===void 0&&(O=[]);var P=O;if(Array.isArray(P)||(P=[P]),!o.suppressWarning&&P.length&&Ye.warning("async-validator:",P),P.length&&g.message!==void 0&&(P=[].concat(g.message)),P=P.map(mu(g)),o.first&&P.length)return p[g.field]=1,v(P);if(!E)v(P);else{if(g.required&&!D.value)return g.message!==void 0?P=[].concat(g.message).map(mu(g)):o.error&&(P=[o.error(g,be(o.messages.required,g.field))]),v(P);var S={};if(g.defaultField)for(var $ in D.value)D.value.hasOwnProperty($)&&(S[$]=g.defaultField);S=ke(ke({},S),D.rule.fields);for(var W in S)if(S.hasOwnProperty(W)){var q=Array.isArray(S[W])?S[W]:[S[W]];S[W]=q.map(b.bind(null,W))}var K=new Ye(S);K.messages(o.messages),D.rule.options&&(D.rule.options.messages=o.messages,D.rule.options.error=o.error),K.validate(D.value,D.rule.options||o,function(J){var ee=[];P&&P.length&&ee.push.apply(ee,P),J&&J.length&&ee.push.apply(ee,J),v(ee.length?ee:null)})}}var M;g.asyncValidator?M=g.asyncValidator(g,D.value,C,D.source,o):g.validator&&(M=g.validator(g,D.value,C,D.source,o),M===!0?C():M===!1?C(g.message||g.field+" fails"):M instanceof Array?C(M):M instanceof Error&&C(M.message)),M&&M.then&&M.then(function(){return C()},function(O){return C(O)})},function(D){s(D)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!jt.hasOwnProperty(t.type))throw new Error(be("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?jt.required:jt[this.getType(t)]||!1}},Ye.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");jt[t]=n},Ye.warning=Du,Ye.messages=ir,Ye.validators=jt;var il={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function ol(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new Ye(e);return n.messages(Object.assign(il,t)),n}var al=new cu;function or(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sl(e){if(Array.isArray(e))return e}function cl(e){if(Array.isArray(e))return or(e)}function Au(e,t,n,r,u,i,o){try{var c=e[i](o),s=c.value}catch(l){n(l);return}c.done?t(s):Promise.resolve(s).then(r,u)}function Cu(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){Au(i,r,u,o,c,"next",s)}function c(s){Au(i,r,u,o,c,"throw",s)}o(void 0)})}}function fl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ll(e,t,n){return t&&Fu(e.prototype,t),n&&Fu(e,n),e}function hl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wu(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Bu(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dl(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pl(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){hl(e,u,n[u])})}return e}function Dl(e){return sl(e)||Bu(e)||Su(e)||dl()}function ar(e){return cl(e)||Bu(e)||Su(e)||pl()}function Su(e,t){if(!!e){if(typeof e=="string")return or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return or(e,t)}}var _u=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(f){return s([l,f])}}function s(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},qe=function(){function t(r){var u=this;fl(this,t),this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Iu,this.removeSetting=Mu,this._callControlHooks("preInstance",r);var i=wu(this,t)?this.constructor:void 0,o=i.controlName,c=i.controlIcon,s=i.controlType,l=i.controlFieldType,f=i.controlEventKeys,a=i.controlCustomEvents,h=i.name,d=i.setting;o&&c&&s||nu("The ".concat(h," controlName,controlIcon,controlType is not define"));var p;this.id=(p=r==null?void 0:r.id)!==null&&p!==void 0?p:kn(10),this.name=o,this.icon=c;var D;this.type=(D=r==null?void 0:r.type)!==null&&D!==void 0?D:s,this.props=new ct(r==null?void 0:r.props,(wu(this,t)?this.constructor:void 0).controlName);var v;this.controlType=(v=r==null?void 0:r.controlType)!==null&&v!==void 0?v:"base",this.setting=te(d);var g;this.fieldType=(g=r==null?void 0:r.fieldType)!==null&&g!==void 0?g:l,this.eventKeys=te(f),this.customEvents=te(a),Promise.resolve().then(function(){u._callControlHooks("postInstance",r)})}var n=t.prototype;return n._callControlHooks=function(){for(var u=arguments.length,i=new Array(u),o=0;o<u;o++)i[o]=arguments[o];var c,s=Dl(i),l=s[0],f=s.slice(1);return(c=al).emit.apply(c,[l,this].concat(ar(f)))},n.preUpdate=function(u,i){this._callControlHooks("preUpdateProps",u,i)},n.postUpdate=function(u,i){this._callControlHooks("postUpdateProps",u,i)},n.updateProps=function(u,i){this.preUpdate(u,i),uu(this.props,u,i),this.postUpdate(u,i)},n.preValidate=function(){var u=this;return Cu(function(){var i,o,c;return _u(this,function(s){switch(s.label){case 0:return i=bu({},u.rules),[4,u._callControlHooks("preValidate",i)];case 1:return o=s.sent(),c=o[o.length-1],[2,c===!1?void 0:c]}})})()},n.validate=function(u,i){var o=this;return Cu(function(){var c,s,l,f;return _u(this,function(a){switch(a.label){case 0:return[4,o.preValidate()];case 1:c=a.sent(),s=c!==void 0?c:bu({},o.rules),Array.isArray(i)&&i.forEach(function(h){s.hasOwnProperty(h)&&delete s[h]}),l=ol(s,u),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,l.validate(o.props)];case 3:return a.sent(),[2,!0];case 4:throw f=a.sent(),f.control||(f.control=o),f;case 5:return[2]}})})()},n.toDataBindModel=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,o=this.id,c=this.type,s=this.props,l=s.dataBind,f=s.datasourceBind,a=s.optionConfig,h=s.caption,d=s.required,p=s.maxLength,D=s.options,v=s.encrypted,g=s.encryptedMode;if(!(!i&&!l&&!f)){var E={parentId:u,fieldType:i,controlId:o,caption:h,type:c,props:{}};switch(l&&(E.dataBind=l),a){case"datasource":case void 0:f&&(E.datasourceBind=f);break;case"custom":E.props.options=D;break}return d!==void 0&&(E.required=d),p!==void 0&&(E.maxLength=p),v!==void 0&&(E.encrypted=v),g!==void 0&&(E.encryptedMode=g),E}},n.preToSchema=function(){this._callControlHooks("preToSchema",this)},n.toSchema=function(){return this.preToSchema(),{id:this.id,type:this.type,props:te(this.props),fieldType:this.fieldType,controlType:this.controlType}},t.updateBasicControl=function(u,i){if(u==="setting"){if(i.add){var o;(o=this.setting).push.apply(o,ar(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}},ll(t,[{key:"rules",get:function(){var u=this.props.constructor.Rules;return u?new u(this.props):{}}}]),t}();qe.controlName="\u63A7\u4EF6",qe.controlIcon="icon",qe.controlType="control",qe.controlEventKeys=[],qe.controlCustomEvents=[],qe.setting=[],qe.__is_control__=!0,qe.removeSettingItem=Mu,qe.updateSettingItem=Iu;function Mu(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u=typeof r!="string",i=t.setting.findIndex(function(s){return s.key===(u?r.key:r)});if(i!==-1){var o,c;u?t.setting[i].showItems=(o=t.setting[i].showItems)===null||o===void 0?void 0:o.filter(function(s){return!r.hideItems.includes(s)}):t.setting.splice(i,1),u&&!(!((c=t.setting[i].showItems)===null||c===void 0)&&c.length)&&t.setting.splice(i,1)}})}function Iu(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var i=n.setting.find(function(l){return l.key===u});if(i){if(typeof t=="boolean")i.visible=t;else if(typeof t=="object"){var o,c=(o=t.type)!==null&&o!==void 0?o:"replace";if(c==="replace")i.showItems=t.showItems;else{var s;(s=i.showItems).push.apply(s,ar(t.showItems))}}}})}function gl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vl(e,t,n){return t&&Nu(e.prototype,t),n&&Nu(e,n),e}function ml(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var vt=function(){function t(n){gl(this,t),this.customEvents=[],this.parent=null;var r=ml(this,t)?this.constructor:void 0,u=r.controlType,i=r.controlFieldType,o=r.name,c=r.controlCustomEvents;u||nu("The ".concat(o," controlType is not define"));var s;this.id=(s=n==null?void 0:n.id)!==null&&s!==void 0?s:kn(10);var l;this.type=(l=n==null?void 0:n.type)!==null&&l!==void 0?l:u,this.props=new ct(n==null?void 0:n.props),this.customEvents=c;var f;this.controlType=(f=n==null?void 0:n.controlType)!==null&&f!==void 0?f:"base";var a;this.fieldType=(a=n==null?void 0:n.fieldType)!==null&&a!==void 0?a:i;var h;this.pageStatus=(h=n==null?void 0:n.pageStatus)!==null&&h!==void 0?h:Jn.UNKNOWN}return vl(t,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var u=new r(this.props);return Array.from(u)}return[]}}]),t}();vt.controlType="control",vt.__is_control__=!0,vt.controlCustomEvents=[];function yl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fn(e){return fn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fn(e)}function cr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fr(e,t)}function El(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Al(e,t){return t&&(Cl(t)==="object"||typeof t=="function")?t:yl(e)}function fr(e,t){return fr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},fr(e,t)}var Cl=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Fl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function lr(e){var t=Fl();return function(){var r=fn(e),u;if(t){var i=fn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Al(this,u)}}var wl=function(e){cr(n,e);var t=lr(n);function n(r){sr(this,n);var u;u=t.call(this,r),u.dataBind={},u.caption={type:"string",required:!0,message:Oe.getMessage("pleaseEnterCaption")},u.isHideCaption={type:"boolean"},u.labelPosition={type:"enum",enum:["top","left"]},u.defaultState={type:"enum",enum:["default","readonly"]},u.required={type:"boolean"},u.captionTip={type:"string",required:!1,message:Oe.getMessage("pleaseEnterCaptionTip")};var i={fieldCode:{type:"string",required:!0,message:Oe.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:Oe.getMessage("pleaseEnterFieldCode")}};if(El(r.dataBind,$t))u.dataBind={type:"object",required:!0,fields:te(i),message:Oe.getMessage("pleaseEnterFieldCode")};else{var o={type:"object",required:!0,fields:{},message:Oe.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(c){o.fields[c]={type:"object",required:!0,fields:te(i),message:Oe.getMessage("pleaseEnterFieldCode")}}),u.dataBind=o}return r.isShowCaptionTip&&(u.captionTip.required=!0),u}return n}(du),Bl=function(e){cr(n,e);var t=lr(n);function n(r){sr(this,n);var u;return u=t.call(this,r),u.push({type:"string",required:r.isHide?!1:r.required,message:r.requiredMessage!==""?r.requiredMessage:Oe.getMessage("runtimeRequired",{caption:r.caption})}),u}return n}(pu),hr=function(e){cr(n,e);var t=lr(n);function n(r){sr(this,n);var u;u=t.call(this,r);var i;u.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"";var o;u.isHideCaption=(o=r==null?void 0:r.isHideCaption)!==null&&o!==void 0?o:!1;var c;u.isShowCaptionTip=(c=r==null?void 0:r.isShowCaptionTip)!==null&&c!==void 0?c:!1;var s;u.captionTip=(s=r==null?void 0:r.captionTip)!==null&&s!==void 0?s:"";var l;u.defaultState=(l=r==null?void 0:r.defaultState)!==null&&l!==void 0?l:"default";var f;u.labelPosition=(f=r==null?void 0:r.labelPosition)!==null&&f!==void 0?f:"top";var a;u.placeholder=(a=r==null?void 0:r.placeholder)!==null&&a!==void 0?a:"";var h;u.required=(h=r==null?void 0:r.required)!==null&&h!==void 0?h:!1;var d;u.requiredMessage=(d=r==null?void 0:r.requiredMessage)!==null&&d!==void 0?d:"",u.dataBind=new $t(r==null?void 0:r.dataBind);var p;return u.defaultValue=(p=r==null?void 0:r.defaultValue)!==null&&p!==void 0?p:"",u}return n}(ct);hr.Rules=wl,hr.RuntimeRules=Bl;function bl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ln(e)}function _l(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dr(e,t)}function Ml(e,t){return t&&(Il(t)==="object"||typeof t=="function")?t:bl(e)}function dr(e,t){return dr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},dr(e,t)}var Il=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Nl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function xl(e){var t=Nl();return function(){var r=ln(e),u;if(t){var i=ln(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Ml(this,u)}}var Ve=function(e){_l(n,e);var t=xl(n);function n(r){Sl(this,n);var u;return u=t.call(this,r),u.controlType="form",u.props=new hr(r==null?void 0:r.props),u}return n}(vt);function Ol(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hn(e)}function $l(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pr(e,t)}function Pl(e,t){return t&&(Tl(t)==="object"||typeof t=="function")?t:Ol(e)}function pr(e,t){return pr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},pr(e,t)}var Tl=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Ll(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function jl(e){var t=Ll();return function(){var r=hn(e),u;if(t){var i=hn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Pl(this,u)}}var xu=function(e){$l(n,e);var t=jl(n);function n(r){return Rl(this,n),t.call(this,r)}return n}(ct);function Dr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kl(e){if(Array.isArray(e))return Dr(e)}function ql(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vl(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ou(e){return kl(e)||ql(e)||Ul(e)||Vl()}function Ul(e,t){if(!!e){if(typeof e=="string")return Dr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dr(e,t)}}function Hl(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Ru(e,t){e.parent=t,Hl(e,"parent")}function zl(e,t){e.forEach(function(n){Ru(n,t)})}var $u=Symbol("targetKey");function Pu(e){var t;return(t=e[$u])!==null&&t!==void 0?t:e}function Tu(e,t){return zl(e,t),new Proxy(e,{get:function(r,u){for(var i=arguments.length,o=new Array(i>2?i-2:0),c=2;c<i;c++)o[c-2]=arguments[c];var s;return u===$u?r:(s=Reflect).get.apply(s,[r,u].concat(Ou(o)))},set:function(r,u,i){for(var o=arguments.length,c=new Array(o>3?o-3:0),s=3;s<o;s++)c[s-3]=arguments[s];var l;if(Dt(e)&&u==="length"&&i===e.length)return!0;var f=(l=Reflect).set.apply(l,[r,u,i].concat(Ou(c)));return je(i)&&Ru(i,t),f}})}function dn(e,t,n,r){var u=r!=null?r:e,i=Tu(Pu(n!=null?n:[]),u);Object.defineProperty(e,t,{get:function(){return i},set:function(c){i=Tu(Pu(c),u)},enumerable:!0})}function gr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wl(e){if(Array.isArray(e))return gr(e)}function Lu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ju(e,t,n,r,u,i,o){try{var c=e[i](o),s=c.value}catch(l){n(l);return}c.done?t(s):Promise.resolve(s).then(r,u)}function Zl(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){ju(i,r,u,o,c,"next",s)}function c(s){ju(i,r,u,o,c,"throw",s)}o(void 0)})}}function Xl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mt(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?mt=Reflect.get:mt=function(u,i,o){var c=u0(u,i);if(!!c){var s=Object.getOwnPropertyDescriptor(c,i);return s.get?s.get.call(o):s.value}},mt(e,t,n||e)}function et(e){return et=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},et(e)}function Jl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vr(e,t)}function Kl(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Ql(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yl(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){Gl(e,u,n[u])})}return e}function t0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function n0(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):t0(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function r0(e,t){return t&&(i0(t)==="object"||typeof t=="function")?t:Lu(e)}function vr(e,t){return vr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},vr(e,t)}function u0(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=et(e),e!==null););return e}function ku(e){return Wl(e)||Ql(e)||o0(e)||Yl()}var i0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function o0(e,t){if(!!e){if(typeof e=="string")return gr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gr(e,t)}}function a0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function s0(e){var t=a0();return function(){var r=et(e),u;if(t){var i=et(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return r0(this,u)}}var c0=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(f){return s([l,f])}}function s(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},f0=1e4,qu=function(t){Jl(r,t);var n=s0(r);function r(i){Xl(this,r);var o;o=n.call(this,i),o.controlType="layout";var c=Kl(this,r)?this.constructor:void 0,s=c.excludes,l=c.childrenMaxLength;return o.props=new xu(i==null?void 0:i.props),dn(Lu(o),"children",i==null?void 0:i.children),o.excludes=te(s),o.childrenMaxLength=l,o}var u=r.prototype;return u.judgeExcludesChildren=function(o){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(o)},u.judgeJoinChildren=function(o){var c=this.judgeExcludesChildren(o);return c&&this.childrenMaxLength>this.children.length},u.validate=function(o,c){var s=this,l=this,f=function(){return mt(et(r.prototype),"validate",s)};return Zl(function(){return c0(this,function(a){switch(a.label){case 0:return[4,f().call(l,o,c)];case 1:return a.sent(),[4,Promise.all(l.children.map(function(h){return h.validate(o,c)}))];case 2:return a.sent(),[2,!0]}})})()},u.toDataBindModel=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,c=mt(et(r.prototype),"toDataBindModel",this).call(this),s=c?[c]:[];return this.children.reduce(function(l,f){var a=f.toDataBindModel(o);if(Array.isArray(a)){var h=a.filter(function(d){return!!d});return ku(l).concat(ku(h))}return a&&l.push(a),l},s)},u.toSchema=function(){var o=mt(et(r.prototype),"toSchema",this).call(this),c=this.children.map(function(s){var l=s.toSchema();return l});return n0(e0({},o),{children:c})},r}(qe);qu.excludes=!1,qu.childrenMaxLength=f0;function Vu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pn(e){return pn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pn(e)}function h0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mr(e,t)}function d0(e,t){return t&&(p0(t)==="object"||typeof t=="function")?t:Vu(e)}function mr(e,t){return mr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},mr(e,t)}var p0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function D0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function g0(e){var t=D0();return function(){var r=pn(e),u;if(t){var i=pn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return d0(this,u)}}var v0=function(e){h0(n,e);var t=g0(n);function n(r){l0(this,n);var u;return u=t.call(this,r),u.controlType="layout",u.props=new xu(r==null?void 0:r.props),dn(Vu(u),"children",r==null?void 0:r.children),u}return n}(vt);function Uu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dn(e){return Dn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dn(e)}function y0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yr(e,t)}function E0(e,t){return t&&(A0(t)==="object"||typeof t=="function")?t:Uu(e)}function yr(e,t){return yr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},yr(e,t)}var A0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function C0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function F0(e){var t=C0();return function(){var r=Dn(e),u;if(t){var i=Dn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return E0(this,u)}}var w0=function(e){y0(n,e);var t=F0(n);function n(r,u){m0(this,n);var i;return i=t.call(this,u),dn(Uu(i),"headers",u==null?void 0:u.headers,r),i}return n}(ct);H.LIST;function Er(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b0(e,t,n){return t&&Hu(e.prototype,t),n&&Hu(e,n),e}function gn(e){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gn(e)}function S0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ar(e,t)}function _0(e,t){return t&&(M0(t)==="object"||typeof t=="function")?t:Er(e)}function Ar(e,t){return Ar=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Ar(e,t)}var M0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function I0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function N0(e){var t=I0();return function(){var r=gn(e),u;if(t){var i=gn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return _0(this,u)}}var vn=function(e){S0(n,e);var t=N0(n);function n(r){B0(this,n);var u;return u=t.call(this,r),u.controlType="list",u.props=new w0(Er(u),r==null?void 0:r.props),dn(Er(u),"children",r==null?void 0:r.children),u}return b0(n,[{key:"length",get:function(){return this.children.length}}]),n}(vt);console.log("sourcemap 4");function mn(e){return e.controlType===Le.LAYOUT||e.controlType===Le.WRAP||e.controlType===Le.LIST||e.controlType===Le.SEARCH}function kt(e,t){Array.isArray(e)&&e.map(n=>{if(n.type===X.SUBTABLE){const r=n.getChildrenFormControl();t(n,r)}else mn(n)?kt(n==null?void 0:n.children,t):n instanceof Ve&&t(n)})}function qt(e,t){Array.isArray(e)&&e.map(n=>{n.type===X.DATA_VIEW||n.type===X.SIMPLE_SEARCH?t(n):mn(n)&&qt(n==null?void 0:n.children,t)})}class Cr extends tn{constructor(t){super("Runtime"),this._flatInstances=[],this._instanceMap={};const{schema:n}=t;this._schema=n,this._instance=this.createControl(n,t.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const t=[],n={};return zu(this._instance,r=>{t.push(r),n[r.id]||(n[r.id]=[]),n[r.id].push(r)}),this._flatInstances=t,this._instanceMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get rules(){let t={};return qt(this._instance,n=>{t[n.id]=n.rules[0],kt(n.children,r=>{(r instanceof Ve||r instanceof vn)&&x0(t[n.id].fields,r)})}),t}get antdRules(){let t={};return qt(this._instance,n=>{t[n.id]=n.rules[0],kt(n.children,r=>{(r instanceof Ve||r instanceof vn)&&O0(t[n.id].fields,r)})}),t}}function zu(e,t){Array.isArray(e)?e.map(n=>{t(n),mn(n)&&zu(n.children,t)}):t(e)}function Fr(e){return e.props.isHide?!0:e.parent===null?!1:Fr(e.parent)}function x0(e,t){if(!Fr(t)){if(t instanceof Ve)e[t.id]=t.rules;else if(t.type===X.SUBTABLE){e[t.id]=t.rules;const n={type:"array",fields:{}};t.children.forEach((r,u)=>{at(r.children,i=>{n.fields&&(n.fields[u]||(n.fields[u]={type:"object",required:!0,fields:{}}),n.fields[u].fields[i.id]=i.rules)})}),e[t.id].push(n)}}}function O0(e,t){Fr(t)||(t instanceof Ve?e[t.id]=t.rules:t.type===X.SUBTABLE&&t.children.length&&(e[t.id]=[],t.children.forEach(n=>{let r={};at(n.children,u=>{r[u.id]=u.rules}),e[t.id].push(r)})))}class R0{constructor(t){const{state:n,emptyState:r,databindMapping:u,controlidMapping:i}=$0(t.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=i}setState(t,n,r){const u=this.controlIdMapping[t];u!==void 0?this.state[u.dataView][t]=n:r!==void 0?Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,c=this.controlIdMapping[i].children;c!==void 0&&Object.keys(c).map(s=>{s===t&&(this.state[o][i][r][t]=n)})}):this.state[t]=n}getState(t,n){if(this.state[t]!==void 0)return this.state[t];{const u=this.controlIdMapping[t];if(u!==void 0)return this.state[u.dataView][t];if(n!==void 0){let i;return Object.keys(this.controlIdMapping).map(o=>{const c=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(l=>{var f;l===t&&(i=(f=this.state[c][o][n])==null?void 0:f[t])})}),i}else{let i=[];return Object.keys(this.controlIdMapping).map(o=>{const c=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(l=>{l===t&&this.state[c][o].map(f=>{i.push(f[t])})})}),i}}}getEmptyState(t){if(this.emptyState[t]!==void 0)return this.emptyState[t];{const r=this.controlIdMapping[t];if(r!==void 0)return this.emptyState[r.dataView][t];{let u;return Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,c=this.controlIdMapping[i].children;c!==void 0&&Object.keys(c).map(s=>{s===t&&(u=this.emptyState[o][i][t])})}),u}}}getDataBind(t){let n=this.controlIdMapping[t];if(n)return n.dataBind;e:for(let r in this.controlIdMapping){const u=this.controlIdMapping[r];if(u.children){for(let i in u.children)if(i===t){n=u.children[i];break e}}}return n==null?void 0:n.dataBind}}function $0(e){let t={},n={},r={},u={};return qt(e,i=>{const o=i.id,c={},s={};kt([i],(l,f)=>{P0(c,s,l),T0(r,o,l),L0(u,o,l)}),t[o]=c,n[o]=s}),{state:t,emptyState:n,databindMapping:r,controlidMapping:u}}function P0(e,t,n){var r;if(n instanceof Ve)e[n.id]=te(n.props.defaultValue),t[n.id]=te(n.props.defaultValue);else{const u={};at(n.props.headers,i=>{u[i.id]=te(i.props.defaultValue)}),e[n.id]=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>te(u)),t[n.id]=u}}function T0(e,t,n){if(n instanceof Ve)n.props.dataBind instanceof Qe?Object.keys(n.props.dataBind).map(r=>{const u=n.props.dataBind,i=u[r].dataCode;i!==void 0&&(e[i]===void 0&&(e[i]={controlId:n.id,fields:[],dataViewId:t}),e[i].fields.push({fieldCode:u[r].fieldCode,controlId:n.id,dataBind:u,dataViewId:[t]}))}):(e[n.props.dataBind.dataCode]===void 0&&(e[n.props.dataBind.dataCode]={controlId:t,fields:[],dataViewId:t}),e[n.props.dataBind.dataCode].fields.push({fieldCode:n.props.dataBind.fieldCode,controlId:n.id,dataBind:n.props.dataBind,dataViewId:[t]}));else{if(n.props.datasourceBind.dataCode===""){Je(`datasourceBind.dataCode is empty! maybe in preview mode, control:${n.id} type:${n.type}`);return}e[n.props.datasourceBind.dataCode]={controlId:n.id,fields:[],dataViewId:t};const r=n.id;at(n.props.headers,u=>{u.props.dataBind instanceof Qe?Object.keys(u.props.dataBind).map(i=>{const o=u.props.dataBind,c=o[i].dataCode;e[c].fields.push({fieldCode:o[i].fieldCode,controlId:u.id,dataBind:o,dataViewId:[t,r]})}):e[u.props.dataBind.dataCode].fields.push({fieldCode:u.props.dataBind.fieldCode,controlId:u.id,dataBind:u.props.dataBind,dataViewId:[t,r]})})}}function L0(e,t,n){n instanceof Ve?e[n.id]={dataBind:n.props.dataBind,options:[],dataView:t}:n.type===X.SUBTABLE&&(e[n.id]={dataBind:new $t({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:t,children:{},options:[]},at(n.props.headers,r=>{var u,i;Object.assign((i=(u=e[n.id])==null?void 0:u.children)!=null?i:{},{[r.id]:{dataBind:r.props.dataBind}})}))}const yt=console,Wu=["splice","push","shift","pop","unshift","reverse"],wr=Symbol("__engineProxy__"),Br=Symbol("__engineTarget__"),Zu=Symbol("__engineArrayBeforeSetCallbackFlag__"),Xu=Symbol("__engineProxyThisKey__"),Re={type:"",args:[],callback:Gu};function Gu(){}U0();function j0(e,t,n,r,u){if(Re.type){Re.callback=u.bind(null,e,r);return}const i=Number(t);if(i>e.length){Ze(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${Wu.join(",")} for array operations`);return}if(!(Number.isNaN(i)&&t!=="length"))if(t==="length"){const c=n,s=e.length;if(c>e.length){Ze("Do not directly modify the length of the array data, please add new rows");return}return c===e.length?void 0:()=>u.call(null,e,r,"splice",[c,s-c])}else return i===e.length?()=>u.call(null,e,r,"push",[n]):()=>u.call(null,e,r,"splice",[i,1,n])}function k0(e,t,n){return{__engineProxy__:!0,get(r,u,i){return u===wr?!0:u===Br?r:Array.isArray(r)&&u===Zu?n:u===Xu?e:Reflect.get(r,u,i)},set(r,u,i,o){var h;let c=i;const s=r[u],l=e===""?u:e+"."+u;function f(d){if(typeof d=="object"&&d!==null)return d[wr]!==!0?yn(d,t,n,l):yn(d[Br],t,n,l)}c=(h=f(i))!=null?h:c;let a;if(Array.isArray(r)){const d=j0(r,u,i,e,t);a=Reflect.set(r,u,c,o),d&&d()}else{try{let d=c;if(c=n.call(null,r,l,c,s),d!==c){const p=f(c);p!==void 0&&(c=p)}}catch(d){return Qt(`${l} set error ${d}`),!0}a=Reflect.set(r,u,c,o),t.call(null,r,l,i,s)}return a}}}function yn(e,t,n,r=""){if(Object.isFrozen(e))return e;for(let u in e){const i=r===""?u:r+"."+u,o=e[u];typeof o=="object"&&o!==null&&(e[u]=yn(o,t,n,i))}return new Proxy(e,k0(r,t,n))}function Ju(e){const t=[];return e.forEach(n=>{t.push(n),n.controlType==="layout"&&t.push(...Ju(n.children))}),t}function br(e,t,n){if(t==="")return;const r=t.split(".");if(r.length===0)return;const u=r[0],i=r.slice(1);yt.time("findItem flatInstance find");const o=e.find(s=>s.id===u);yt.log("\u{1F3E0} findItem flatInstance find result",o),yt.timeEnd("findItem flatInstance find"),yt.time("findItem instanceMap match");const c=n[u];return yt.log("\u{1F3E0} findItem instanceMap match result",c),yt.timeEnd("findItem instanceMap match"),i.length===0?o:i.reduce((s,l)=>{var h,d;const f=Number(l);if(Number.isNaN(f)){const p=s!=null&&s.children?Ju(s.children):void 0,D=p==null?void 0:p.find(v=>v.id===l);return D||(s instanceof Ve?s:void 0)}else return(d=(h=s==null?void 0:s.children)==null?void 0:h[f])!=null?d:s},o)}function q0(e,t){return["push","unshift"].includes(e)?t:e==="splice"?t.slice(2):[]}function V0(e,t,n){if(["push","unshift"].includes(e))return n;if(e==="splice")return t.slice(0,2).concat(n)}function U0(){Wu.forEach(e=>{const t=Array.prototype[e];Array.prototype[e]=function(...n){var r;if(this[wr]){let u;const i=q0(e,n);if(i.length){const o=(r=this[Zu])==null?void 0:r.call(this,this[Br],this[Xu],i),c=V0(e,n,o);Re.type=e,Re.args=c,u=t.apply(this,c)}else Re.type=e,Re.args=n,u=t.apply(this,n);return typeof Re.callback=="function"&&Re.callback(e,n,u),Re.type="",Re.args=[],Re.callback=Gu,u}else return t.apply(this,n)}})}class H0{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(t,n,...r){return ze(this,null,function*(){const u=this.actionMap.get(t);if(!!u)try{return yield u.func.call(null,n,...r)}catch(i){Qt(`${u.id} Exception during calling action: ${i}`)}})}addAction(t,n){this.actionMap.has(t)&&Ze("duplicated action key");const r=new z0(t,n);this.actionMap.set(t,r)}}class z0{constructor(t,n){this.id="",this.id=t,this.func=n}}class W0{constructor(t){this._dataStore=new Map,this.executer=t}add(t,n){this._dataStore.set(t,n)}get(t){let n=this._dataStore.get(t);return te(n)}remove(t){this._dataStore.delete(t)}getRemoteData(t){return ze(this,null,function*(){return this.executer===void 0?(Qt("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(t)})}}class tt{}class Vt extends tt{validate(t){return Be(t)}transform(t){if(t==null)return"";if(!je(t)&&!ou(t))return String(t);if(cf(t))return JSON.stringify(t);throw`${t} is not a string`}}class Sr extends tt{validate(t){return Yt(t)||t===""}transform(t){if(t==null)return"";const n=!je(t)&&!ou(t)?Number(t):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${t} is not a number`}}class Z0 extends tt{validate(t){return ff(t)}transform(t){if(t==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(Dt(t))return n(t);if(Be(t)&&au(t))try{const r=JSON.parse(t);if(Array.isArray(r))return n(r)}catch(r){}return[String(t)]}}class X0 extends tt{validate(t){return lf(t)}transform(t){if(t==null)return[];function n(u){return u.map(i=>!i&&i!==0?"":Number(i)).filter(i=>i===""||!Number.isNaN(i))}if(Dt(t))return n(t);if(Be(t)&&au(t))try{const u=JSON.parse(t);if(Dt(u))return n(u)}catch(u){}const r=Number(t);if(Number.isNaN(r))throw`${t} is not a number array`;return[r]}}class G0 extends tt{validate(t){return t instanceof nn||je(t)&&"amount"in t&&Yt(t.amount)&&"currency"in t&&Be(t.currency)}transform(t,n){if(t==null||t==="")return new nn({currency:n==null?void 0:n.currency});let r;if(je(t)&&(r=new nn(oe(oe({},n),t))),Be(t)&&en(t))try{const u=JSON.parse(t);r=new nn(oe(oe({},n),u))}catch(u){}if(r){const u=new Sr,i=new Vt;return u.validate(r.amount)||(r.amount=u.transform(r.amount)),i.validate(r.currency)||(r.currency=i.transform(r.currency)),r}throw`${t} is not a { amount: number, currency: string } object`}}class J0 extends tt{validate(t){return t instanceof rn||je(t)&&"min"in t&&Be(t.min)&&"max"in t&&Be(t.max)}transform(t,n){if(t==null||t==="")return new rn;let r;if(je(t)&&(r=new rn(oe(oe({},n),t))),Be(t)&&en(t))try{const u=JSON.parse(t);r=new rn(oe(oe({},n),u))}catch(u){}if(r){const u=new Vt;return u.validate(r.min)||(r.min=u.transform(r.min)),u.validate(r.max)||(r.max=u.transform(r.max)),r}throw`${t} is not a { min: string, max: string } object`}}class K0 extends tt{validate(t){return t instanceof on||je(t)&&"result"in t&&Yt(t.result)&&"unit"in t&&Be(t.unit)}transform(t,n){if(t==null||t==="")return new on({unit:n==null?void 0:n.unit});let r;if(je(t)&&(r=new on(oe(oe({},n),t))),Be(t)&&en(t))try{const u=JSON.parse(t);r=new on(oe(oe({},n),u))}catch(u){}if(r){const u=new Sr,i=new Vt;return u.validate(r.result)||(r.result=u.transform(r.result)),i.validate(r.unit)||(r.unit=i.transform(r.unit)),r}throw`${t} is not a { result: string, unit: string } object`}}class Q0 extends tt{validate(t){return t instanceof un}transform(t,n){if(t==null||t==="")return new un;let r;if(je(t)&&(r=new un(oe(oe({},n),Wn.exports.camelizeKeys(t)))),Be(t)&&en(t))try{const u=JSON.parse(t);r=new un(oe(oe({},n),Wn.exports.camelizeKeys(u)))}catch(u){}if(r){const u=new Vt;return u.validate(r.city)||(r.city=u.transform(r.city)),u.validate(r.district)||(r.district=u.transform(r.district)),u.validate(r.province)||(r.province=u.transform(r.province)),r}throw`${t} is not a { city: string, district: string, province: string } object`}}class Y0{static getValueChecker(t){let n;switch(t){case H.VARCHAR:case H.TIMESTAMP:case H.TEXT:case H.RELATION:case H.AUTO_NUMBER:n=new Vt;break;case H.DECIMAL:n=new Sr;break;case H.EMPLOYEES:case H.DEPARTMENTS:case H.IMAGE:case H.FILE:case H.ARRAY:n=new Z0;break;case H.MONEY:n=new G0;break;case H.TIMESCOPE:n=new J0;break;case H.CALC:n=new K0;break;case H.DECIMAL_RANGE:n=new X0;break;case H.ADDRESS:n=new Q0;break}return n}}function eh(e){if(["min","max","currency","unit"].includes(e))return H.VARCHAR;if(["result","amount"].includes(e))return H.DECIMAL}function Ku(e,t,n,r){var o;let u=(o=eh(t))!=null?o:e,i=Y0.getValueChecker(u);if(!i||i.validate(n))return n;try{const c=i.transform(n,r);return c!==void 0?c:n}catch(c){throw`${t} ${c}`}}function th(e,t,n){return Object.entries(e).reduce((r,[u,i])=>{const o=t[u];return r[u]=Ku(i,u,o,n[u]),r},Object.assign({},t))}typeof window!="undefined"&&(window.engines={});let Et=null,Ut="";class _r extends cu{constructor(t){super(),this.isMounted=!1,this.id=kn(8),this.__pluginsApplied=!1,this.actionManager=new H0,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(t);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:i,language:o=Gr,debug:c=!1}=this.$options;Oe.setLocale(o),this.debug=c,this.runtime=new Cr({schema:r,beforeCreateInstance:u}),this.externalParams=i,this.store=new R0({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...t){this.debug&&Hn(...t)}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}registerControl(...t){return this.runtime.register(...t),this}static register(...t){return Cr.register(...t)}static judgeControlIsRegistered(t){return Cr.staticRegisteredTypes.has(t.Runtime.controlType)}mount(){this.debugLog("engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528");const{plugins:t=[]}=this.$options;this._handlerProxyState(),this.__plugins=t,this.applyPlugins(),this.setStates(this.getState()),this.debugLog("engine\u7684mount\u65B9\u6CD5\u8C03\u7528\u7ED3\u675F"),this.debug&&typeof window!="undefined"&&(window.engines[this.id]=this)}destroy(){this.debug&&typeof window!="undefined"&&delete window.engines[this.id]}_handlerProxyState(){this.store.state=yn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(t,n,r,u){const i=br(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return r;if(this.assertInstance(i,X.SUBTABLE)){const s=i.props.headers.reduce((l,f)=>{const a=f.children[0];return a&&a instanceof Ve&&(l[a.id]=a.fieldType),l},{});return r===null?[]:r.map(l=>th(s,l,this.getEmptyState(i.id)))}const o=n.split("."),c=o[o.length-1];try{return Ku(i.fieldType,c,r,u)}catch(s){throw Je(`the id=${i.id}'s instance setState error, %o ${s}.`,r),s}}_proxyStateCallback(t,n,r,u,i){Array.isArray(t)?this._handlerArrayUpdate(t,n,r,u,i):this._handlerObjectUpdate(t,n,r,u)}_handlerArrayUpdate(t,n,r,u,i){const o=br(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!(o instanceof vn))return;const c=h=>{const d=[];for(let p=0;p<h;p++){const D=this.listControlCreateRow(o,"subtable-row");D&&d.push(D)}return d},s=Et;let l=[],f=[],a=[];if(r&&u){switch(r){case"push":case"unshift":const h=u.length;l=c(h),f=u,o.children[r](...l),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){const d=u.length-2,p=u.slice(2);l=c(d),f=p;const D=u[0],v=u[1];o.children[r](D,v,...l),this.runtime.getFlatInstances()}else o.children[r](...u),this.runtime.getFlatInstances();break;default:o.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?a=i:["pop","shift"].includes(r)&&(a=[i]),this.emit("list-change",{instance:o,value:this.getState(o.id),options:Object.assign({},s,{changed:l,data:f,deleted:a!=null?a:[]})}),Et=null}}_handlerObjectUpdate(t,n,r,u){const i=br(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return;const o=this.getInstanceRowIndex(i),c=Et||{};if(i instanceof vn){i.children.length=0;const s=r;let l=[];for(let f=0;f<s.length;f++){const a=this.listControlCreateRow(i,"subtable-row");a&&l.push(a)}i.children.push(...l),this.runtime.getFlatInstances(),this.emit("list-change",{instance:i,value:r,options:Xr(oe({},c),{changed:l,data:s,deleted:u!=null?u:[]})})}else this.emit("change",{instance:i,value:this.getState(i.id,o),rowIndex:o,options:Xr(oe({},c),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{Ut=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this)}catch(r){Ze(`${Ut} Plugin apply Error
2
- ${r}`)}finally{Ut=""}}),this.__pluginsApplied=!0)}listControlCreateRow(t,n){const r=this.runtime.createControlInstance(n);if(!!r){if(r instanceof v0){const u=te(t.props.headers),i=this.createControl(u);r.children.push(...i)}return r}}listControlAddRow(t,n="subtable-row"){const r=this.listControlCreateRow(t,n);!r||t.children.push(r)}emit(t,n){return ze(this,null,function*(){if(t==="engine-mounted"){if(this.isMounted)return Je("The engine-mounted life cycle can only be triggered once"),Promise.resolve([]);if(this._jobTasks.length){console.time("engine-mounted need wait");const o=[...this._jobTasks];yield Promise.all(o),console.timeEnd("engine-mounted need wait")}this.isMounted=!0}let r,u;this.isMounted||(u=new Promise(o=>{r=o}),this._jobTasks.push(u));const i=yield lo(_r.prototype,this,"emit").call(this,t,n);return r&&u&&(r(),this._jobTasks.splice(this._jobTasks.indexOf(u),1)),i})}on(t,n){return Ut&&(n.applyingPluginName=Ut),super.on(t,n)}createControl(...t){return this.runtime.createControl(...t)}createInstance(t,n){return this.runtime.createControlInstance(t,n)}schemaEvent(t,n){this.emit(t,n)}updateInstanceProps(t,n,r,u){return this.setInstance(t,n,r,u)}getRules(t){var n;return t===void 0?this.runtime.rules:(n=this.runtime.rules[t])==null?void 0:n.fields}getAntdRules(t){var n;return t===void 0?this.runtime.antdRules:(n=this.runtime.antdRules[t])==null?void 0:n.fields}getState(t,n){return t===void 0?this.store.state:this.store.getState(t,n)}getEmptyState(t){return te(t===void 0?this.store.emptyState:this.store.getEmptyState(t))}setPayloadOptions(t){Et=t}setState(t,n,r,u){Et=u,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",t,n,r,u),this.store.setState(t,n,r),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",t,n,r),Et=null}setStates(t,n,r){let u=t;Object.keys(u).forEach(i=>{Object.entries(this.store.controlIdMapping).forEach(([o,c])=>{if(c.dataView===i){const s=u[i][o];s!==void 0&&this.setState(o,s,n,r)}else(o===i||c.children&&c.children[i])&&u[i]!==void 0&&this.setState(i,u[i],n,r)})})}getField(t,n,r){if(!n){const s=this.getDataBindMapping(t);if(s){const{controlId:l}=s;return this.getState(l)}return}const u=this.getDataBindMapping(t,n);if(!u)return;const{dataBind:i,controlId:o}=u,c=this.getState(o,r);return i instanceof Qe?Object.entries(i).reduce((s,[l,f])=>f.fieldCode===n?s[l]:s,c):c}getData(t){var u,i,o,c,s,l,f,a;if(!t)return;let n=this.getDataBindMapping(t),r=this.getControlIdMapping();if(n){const{controlId:h}=n,d=this.getField(t);if(Array.isArray(d))return d.map(D=>{var g,E,b,C,M,O,P;let v={};for(let S in D)if((b=(E=(g=r[h])==null?void 0:g.children[S])==null?void 0:E.dataBind)!=null&&b.fieldCode)v[(C=r[h].children[S])==null?void 0:C.dataBind.fieldCode]=D[S];else if((M=r[h])!=null&&M.children[S])for(let $ in D[S])v[(P=(O=r[h])==null?void 0:O.children[S])==null?void 0:P.dataBind[$].fieldCode]=D[S][$];return v});{let p={};for(let D in d)if((i=(u=r[D])==null?void 0:u.dataBind)!=null&&i.fieldCode)p[(o=r[D])==null?void 0:o.dataBind.fieldCode]=d[D];else if((s=(c=r[D])==null?void 0:c.dataBind)!=null&&s.dataCode)p[(l=r[D])==null?void 0:l.dataBind.dataCode]=d[D].map(v=>{var E,b,C;let g={};for(let M in v)if((E=r[D].children[M])!=null&&E.dataBind.fieldCode)g[(b=r[D].children[M])==null?void 0:b.dataBind.fieldCode]=v[M];else for(let O in v[M])g[(C=r[D].children[M])==null?void 0:C.dataBind[O].fieldCode]=v[M][O];return g});else if(r[D])for(let v in d[D])p[(a=(f=r[D])==null?void 0:f.dataBind[v])==null?void 0:a.fieldCode]=d[D][v];return p}}}setField(t,n,r,u,i){var l;const o=this.getDataBindMapping(t,n);if(!o)return;const{dataBind:c,controlId:s}=o;if(c instanceof Qe){const f=(l=te(this.getState(s,u)))!=null?l:this.getEmptyState(s),a=Object.entries(c).reduce((h,[d,p])=>(p.fieldCode===n&&(h[d]=r),h),f);this.setState(s,a,u,i)}else this.setState(s,r,u,i)}setFields(t,n,r,u){const i=this.getDataBindMapping(t);if(!i)return;let o=[];i.fields.forEach(c=>{var a;const{dataBind:s,controlId:l,fieldCode:f}=c;if(!o.includes(f)&&!!Object.hasOwnProperty.call(n,f))if(s instanceof Qe){const h=(a=te(this.getState(l,r)))!=null?a:this.getEmptyState(l),d=Object.entries(s).reduce((p,[D,v])=>{o.push(v.fieldCode);const g=n[v.fieldCode];return g!==void 0&&(p[D]=g),p},h);this.setState(c.controlId,d,r,u)}else this.setState(l,n[f],r,u)})}buildFields(t,n){const r=this.getDataBindMapping(t);if(!r)return;let u=[];const i={};return r.fields.forEach(o=>{const{dataBind:c,controlId:s,fieldCode:l}=o;if(!u.includes(l)&&!!Object.hasOwnProperty.call(n,l))if(c instanceof Qe){const f=this.getEmptyState(s);i[o.controlId]=Object.entries(c).reduce((a,[h,d])=>{u.push(d.fieldCode);const p=n[d.fieldCode];return p!==void 0&&(a[h]=p),a},f)}else i[s]=n[l]}),i}setData(t,n){this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",t,n);let r={};Object.keys(t).map(u=>{const i=t[u];if(Array.isArray(i))i.map(o=>{const c=this.getDataBindMapping(u);if(!c)return;let s=te(this.store.emptyState[c.dataViewId][c.controlId]),l=[];Object.keys(o).map(f=>{var h,d,p;if(l.includes(f))return;const a=(d=(h=this.store.dataBindMapping[u])==null?void 0:h.fields)==null?void 0:d.find(D=>D.fieldCode===f);if(a){if(a.dataBind instanceof $t&&o[f]!==void 0)s[a.controlId]=o[f];else if(a.dataBind instanceof Qe){let D=te((p=this.getEmptyState(a.controlId))!=null?p:{});Object.keys(a.dataBind).map(v=>{const g=a.dataBind[v];o[g.fieldCode]!==void 0&&(D[v]=o[g.fieldCode]),l.push(g.fieldCode)}),s[a.controlId]=D}}}),r[c.dataViewId]||(r[c.dataViewId]={}),r[c.dataViewId][c.controlId]||(r[c.dataViewId][c.controlId]=[]),r[c.dataViewId][c.controlId].push(s)});else if(i){let o=[];Object.keys(i).map(c=>{var l;if(o.includes(c))return;const s=this.getDataBindMapping(u,c);if(s){if(r[s.dataViewId[0]]||(r[s.dataViewId[0]]={}),s.dataBind instanceof $t&&i[c]!==void 0)r[s.dataViewId[0]][s.controlId]=i[c];else if(s.dataBind instanceof Qe){let f=te((l=this.getEmptyState(s.controlId))!=null?l:{});Object.keys(s.dataBind).map(a=>{const h=s.dataBind[a];i[h.fieldCode]!==void 0&&(f[a]=i[h.fieldCode]),o.push(h.fieldCode)}),r[s.dataViewId[0]][s.controlId]=f}}})}}),this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",r),this.setStates(r,void 0,n),this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\u5B8C\u6210\u3002")}getDataBind(t){return this.store.getDataBind(t)}getInstance(t,n){const r=this.getInstances(t,n===-1);if(r.length>0)return n!==void 0?n===-1?r[0]:r[n]:r[0]}getInstances(t,n=!1){var u;if(t===void 0)return this.runtime.flatInstances;const r=this.runtime.flatInstances.filter(i=>i.id===t);if(n)if(r.length){const i=r[0];if(this.getInstanceRowIndex(i)!==void 0){const o=this.getInstanceInSubtableHeader(i);o&&r.unshift(o)}}else{const i=this.getControlIdMapping(),[o]=(u=Object.entries(i).find(([c,s])=>s.children&&t in s.children))!=null?u:[];if(o){const s=this.getInstance(o).props.headers.find(l=>l.children.find(f=>f.id===t));if(s){const l=s.children.find(f=>f.id===t);l&&r.unshift(l)}}}return r}setInstance(t,n,r,u){try{let i;if(typeof t=="string"?i=this.getInstance(t,u):i=t,!i)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",i.id,i,n,r),uu(i.props,n,r),this.schemaEvent("schema-change",{instance:i,props:n,value:r})}catch(i){throw i}}getControlIdMapping(){return this.store.controlIdMapping}getDataBindMapping(t,n){if(!t&&!n)return this.store.dataBindMapping;const r=this.store.dataBindMapping[t];if(!r){Je(`No corresponding dataCode=${t} was found`);return}if(!n)return r;const u=r.fields.find(i=>i.fieldCode===n);if(!u){Je(`No corresponding fieldCode=${n} was found`);return}return u}getAction(){return this.actionManager}initDataManager(t){this.dataManager=new W0(t)}getDataManager(){return this.dataManager}assertInstance(t,n){return Be(n)?t.type===n:n.includes(t.type)}getInstanceRowIndex(t){if(!t.parent)return;let n;if(this.assertInstance(t.parent,X.SUBTABLE))if(this.assertInstance(t,X.SUBTABLE_COLUMN))n=-1;else{const r=t.parent.children.findIndex(u=>u===t);r>-1&&(n=r)}else n=this.getInstanceRowIndex(t.parent);return n}getInstanceParentControl(t,n){if(!!t.parent)return this.assertInstance(t.parent,n)?t.parent:this.getInstanceParentControl(t.parent,n)}getInstanceInSubtableHeader(t){const n=this.getInstanceRowIndex(t);if(n===void 0)return;if(n===-1)return t;const r=this.assertInstance(t,X.SUBTABLE_COLUMN)?t:this.getInstanceParentControl(t,X.SUBTABLE_COLUMN);if(!r)return;const i=this.getInstanceParentControl(t,X.SUBTABLE).props.headers.find(o=>o.id===r.id);if(!!i)return i.children.find(o=>o.id===t.id)}setControlConfig(...t){return this.runtime.registerControlConfig(...t)}getControlConfig(t){return this.runtime.getControlConfig(t)}}console.log("a");class nh{}class rh{constructor(t,n){this.config=t,this.env=n}apply(t){this.engine=t;const n=this.config;if(!n)return;const r=Qu(n,t,this.env);if(!r)return;const u=t.getAction();for(let[i,o]of Object.entries(r.funcMap))u.addAction(i,o)}}function Qu(e,t,n){if(!e.module||!e.module.compiled)return;const r=e.module.compiled,u={exports:{ctx:t,utils:t.getAction().actionUtils,env:n}};try{new Function("module","exports",r).call(u,u,u.exports)}catch(c){Ze(c.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&Ze("fail to parse the module")}const i={},o={};for(const[c,s]of Object.entries(u.exports))typeof s=="function"?i[c]=s:o[c]=s;return{funcMap:i,variables:o}}const uh={"engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class ih{constructor(t){this.config=t}apply(t){this.engine=t,Object.entries(uh).forEach(([n,r])=>{t.on(n,u=>ze(this,null,function*(){const i=yield this.callLifecycleEvent(r,u);return i.includes(!1)?!1:i}))})}callLifecycleEvent(t,n){return ze(this,null,function*(){const r=this.config;return!r||!Array.isArray(r[t])?[]:yield Promise.all(r[t].map(i=>ze(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})))})}}class oh{constructor(t){this.config=t}apply(t){this.engine=t,fu.events.forEach(n=>{n.code&&n.key&&this.engineAddEventListener(n.code,n.key)})}engineAddEventListener(t,n){this.engine.on(t,r=>ze(this,null,function*(){if(!(t==="change"&&!this.engine.isMounted)&&r.instance!==void 0)return yield this.callControlEvent(n,r)}))}callControlEvent(t,n){return ze(this,null,function*(){const r=this.config[n.instance.id];if(!r||!Array.isArray(r[t]))return[];const u=yield Promise.all(r[t].map(i=>ze(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})));return u.includes(!1)?!1:u})}}function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mr.apply(this,arguments)}var Yu={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function ge(e){return typeof e=="number"}function nt(e){return!e||typeof e!="object"||typeof e.constructor!="function"?!1:e.isBigNumber===!0&&typeof e.constructor.prototype=="object"&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal=="function"&&e.constructor.isDecimal(e)===!0}function ei(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function ti(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function ni(e){return e&&e.constructor.prototype.isUnit===!0||!1}function En(e){return typeof e=="string"}var Se=Array.isArray;function Ht(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function Ir(e){return Array.isArray(e)||Ht(e)}function ah(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function sh(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function ch(e){return e&&e.constructor.prototype.isRange===!0||!1}function ri(e){return e&&e.constructor.prototype.isIndex===!0||!1}function fh(e){return typeof e=="boolean"}function lh(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function hh(e){return e&&e.constructor.prototype.isHelp===!0||!1}function dh(e){return typeof e=="function"}function ph(e){return e instanceof Date}function Dh(e){return e instanceof RegExp}function gh(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!ei(e)&&!ti(e))}function vh(e){return e===null}function mh(e){return e===void 0}function yh(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Eh(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ah(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ch(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function Fh(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function wh(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Bh(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function bh(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function Sh(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function _h(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function Mh(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ih(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Nh(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function xh(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function Oh(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Rh(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function $h(e){return e&&e.constructor.prototype.isChain===!0||!1}function Nr(e){var t=typeof e;return t==="object"?e===null?"null":nt(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":t}function ft(e){var t=typeof e;if(t==="number"||t==="string"||t==="boolean"||e===null||e===void 0)return e;if(typeof e.clone=="function")return e.clone();if(Array.isArray(e))return e.map(function(n){return ft(n)});if(e instanceof Date)return new Date(e.valueOf());if(nt(e))return e;if(e instanceof RegExp)throw new TypeError("Cannot clone "+e);return Ph(e,ft)}function Ph(e,t){var n={};for(var r in e)An(e,r)&&(n[r]=t(e[r]));return n}function xr(e,t){var n,r,u;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(r=0,u=e.length;r<u;r++)if(!xr(e[r],t[r]))return!1;return!0}else{if(typeof e=="function")return e===t;if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(n in e)if(!(n in t)||!xr(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}else return e===t}}function An(e,t){return e&&Object.hasOwnProperty.call(e,t)}function Th(e,t){for(var n={},r=0;r<t.length;r++){var u=t[r],i=e[u];i!==void 0&&(n[u]=i)}return n}var Lh=["Matrix","Array"],jh=["number","BigNumber","Fraction"],ui=function(t){if(t)throw new Error(`The global config is readonly.
1
+ var R1=Object.defineProperty,$1=Object.defineProperties;var P1=Object.getOwnPropertyDescriptors;var co=Object.getOwnPropertySymbols,T1=Object.getPrototypeOf,L1=Object.prototype.hasOwnProperty,j1=Object.prototype.propertyIsEnumerable,k1=Reflect.get;var Pn=Math.pow,fo=(Z,Y,ne)=>Y in Z?R1(Z,Y,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Z[Y]=ne,oe=(Z,Y)=>{for(var ne in Y||(Y={}))L1.call(Y,ne)&&fo(Z,ne,Y[ne]);if(co)for(var ne of co(Y))j1.call(Y,ne)&&fo(Z,ne,Y[ne]);return Z},Xr=(Z,Y)=>$1(Z,P1(Y));var lo=(Z,Y,ne)=>k1(T1(Z),ne,Y);var ze=(Z,Y,ne)=>new Promise((Tn,Jt)=>{var Ln=We=>{try{Nt(ne.next(We))}catch(xt){Jt(xt)}},jn=We=>{try{Nt(ne.throw(We))}catch(xt){Jt(xt)}},Nt=We=>We.done?Tn(We.value):Promise.resolve(We.value).then(Ln,jn);Nt((ne=ne.apply(Z,Y)).next())});(function(Z,Y){typeof exports=="object"&&typeof module!="undefined"?Y(exports,require("crypto")):typeof define=="function"&&define.amd?define(["exports","crypto"],Y):(Z=typeof globalThis!="undefined"?globalThis:Z||self,Y(Z.modelDrivenEngine={},Z.require$$0))})(this,function(Z,Y){"use strict";function ne(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Tn=ne(Y),Jt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Ln="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",jn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Nt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",We="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",xt="{caption}\u5FC5\u586B",ho="\u8BF7\u8F93\u5165\u6807\u9898",po="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Do="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",go="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",vo="\u8BF7\u7ED1\u5B9A\u8868\u5355",mo="\u8BF7\u7ED1\u5B9A\u5217\u8868",yo="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Eo="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Ao="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Co="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Fo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",wo="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Bo="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",bo="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",So="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",_o="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Mo="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Io="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",No="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",xo="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Oo="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Ro="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",$o="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Po="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",To="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Lo="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",jo="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",ko="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",qo="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",Vo="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Uo="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Ho="\u8BF7\u9009\u62E9\u7701",zo="\u8BF7\u9009\u62E9\u5E02",Wo="\u8BF7\u9009\u62E9\u533A",Zo="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Xo="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",Go="\u8BF7\u8F93\u5165\u5217\u5BBD",Jo="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",Ko="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Qo="\u8BF7\u9009\u62E9\u63A7\u4EF6",Yo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",ea="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",ta="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",na="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",ra="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ua="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ia="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",oa="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",aa="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",sa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ca="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",fa="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",la="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ha="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",da="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",pa="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Da="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ga="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",va="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",ma="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",ya="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Ea={isNotNumber:Jt,isNotString:Ln,isNotObject:jn,isNotArray:Nt,isNotBoolean:We,runtimeRequired:xt,pleaseEnterCaption:ho,pleaseEnterCaptionTip:po,pleaseEnterPlaceholder:Do,pleaseEnterFieldCode:go,pleaseEnterForm:vo,pleaseEnterList:mo,pleaseEnterProcess:yo,pleaseEnterLabel:Eo,pleaseEnterValue:Ao,bizKeyNotBindFiled:Co,pleaseSelectOneField:Fo,pleaseEnterNumberRange:wo,pleaseEnterAValueGreaterThanMin:Bo,pleaseEnterAValueLessThanMax:bo,numberRangeSetError:So,stringRangeError:_o,attachmentMaxSize:Mo,pleaseEnterTotalScoreSetting:Io,theTotalScoreMustNotBeLessThan1:No,scoreDefaultValueRange:xo,attachmentLimitError:Oo,PleaseReselectTheOptionalQuantity:Ro,TheMaximumLengthIsGreaterThanTheMinimumLength:$o,TheMinimumLengthIsGreaterThanTheMaximumLength:Po,PleaseSelectTheCorrectOptionSettings:To,optionIdIsRepeat:Lo,optionIsRequired:jo,pleaseEnterDataCode:ko,pleaseEnterValueFieldCode:qo,pleaseEnterSvcCode:Vo,pleaseBindAtLeastOneDisplayValue:Uo,pleaseSelectProvince:Ho,pleaseSelectCity:zo,pleaseSelectDistrict:Wo,limitRowsCannotBeLessThan0:Zo,TheNumberOfRowsCannotBeLessThanMinRows:Xo,pleaseEnterColumnWidth:Go,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Jo,pleaseCompleteAllRulesAndConditions:Ko,pleaseSelectControl:Qo,pleaseSelectAtLeastOneColumn:Yo,pleaseSelectFillBackMode:ea,pleaseSelectDashboard:ta,rootNodeIsRequired:na,theViewNameCannotBeEmpty:ra,pleaseSelectOcrType:ua,pleaseSelectAtLeastOneFieldToFillIn:ia,pleaseChooseAtLeastOne:oa,pleaseEnterButtonContent:aa,pleaseEnterDataCodeInDataSetting:sa,pleaseEnterValueFieldCodeInDataSetting:ca,pleaseEnterSvcCodeInDataSetting:fa,pleaseBindAtLeastOneDisplayValueInDataSetting:la,rootNodeIsRequiredInDataSetting:ha,pleaseEnterMaxHeight:da,pleaseEnter:pa,pleaseEnterWatermark:Da,pleaseEnterFileName:ga,pleaseUploadAtLeastOnePrintTemplate:va,pleaseAssignBusiness:ma,pleaseAssignExternal:ya},Aa="Please enter a number",Ca="Please enter a string",Fa="Please enter an object",wa="Please enter an array",Ba="Please enter a boolean",ba="{caption} Required",Sa="Please enter the title",_a="Please enter the bubble prompt",Ma="Please enter the prompt text",Ia="Please bind data items",Na="Please bind the form",xa="Please bind the list",Oa="Please bind the process",Ra="Please enter the displayed value",$a="Please enter the stored value",Pa="The document number is not bound to the data item",Ta="Please select at least one display field",La="Please enter a value greater than or equal to {min} and less than or equal to {max}",ja="Please enter a value greater than or equal to {min}",ka="Please enter a value less than or equal to {max}",qa="The value range is set incorrectly",Va="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Ua="The attachment size must be between 0MB and 1000MB",Ha="Please fill in the total score setting",za="The total score cannot be less than 1",Wa="The default value must be between {min} and {max}",Za="The number of attachments uploaded must be between {min} and {max}",Xa="Please re-select the optional quantity",Ga="The maximum length of the control must be greater than the minimum length",Ja="The minimum length of the control must be less than the maximum length",Ka="Please select the correct option setting",Qa="Option ID cannot be repeated",Ya="Please enter at least one option",es="Please bind the data source",ts="Please bind the stored value",ns="Please bind the service",rs="At least one display value must be bound",us="Please select a province",is="Please select a city",os="Please select a district",as="The minimum number of lines to fill in cannot be less than 0",ss="The number of rows cannot be less than {min} rows",cs="Please enter the column width",fs="Please set the logical relationship of all rule conditions",ls="Please complete all rules and conditions",hs="please select control",ds="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",ps="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ds="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",gs="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",vs="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",ms="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",ys="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Es="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",As="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Cs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Fs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ws="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Bs="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",bs="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Ss="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",_s="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Ms="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Is="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Ns={isNotNumber:Aa,isNotString:Ca,isNotObject:Fa,isNotArray:wa,isNotBoolean:Ba,runtimeRequired:ba,pleaseEnterCaption:Sa,pleaseEnterCaptionTip:_a,pleaseEnterPlaceholder:Ma,pleaseEnterFieldCode:Ia,pleaseEnterForm:Na,pleaseEnterList:xa,pleaseEnterProcess:Oa,pleaseEnterLabel:Ra,pleaseEnterValue:$a,bizKeyNotBindFiled:Pa,pleaseSelectOneField:Ta,pleaseEnterNumberRange:La,pleaseEnterAValueGreaterThanMin:ja,pleaseEnterAValueLessThanMax:ka,numberRangeSetError:qa,stringRangeError:Va,attachmentMaxSize:Ua,pleaseEnterTotalScoreSetting:Ha,theTotalScoreMustNotBeLessThan1:za,scoreDefaultValueRange:Wa,attachmentLimitError:Za,PleaseReselectTheOptionalQuantity:Xa,TheMaximumLengthIsGreaterThanTheMinimumLength:Ga,TheMinimumLengthIsGreaterThanTheMaximumLength:Ja,PleaseSelectTheCorrectOptionSettings:Ka,optionIdIsRepeat:Qa,optionIsRequired:Ya,pleaseEnterDataCode:es,pleaseEnterValueFieldCode:ts,pleaseEnterSvcCode:ns,pleaseBindAtLeastOneDisplayValue:rs,pleaseSelectProvince:us,pleaseSelectCity:is,pleaseSelectDistrict:os,limitRowsCannotBeLessThan0:as,TheNumberOfRowsCannotBeLessThanMinRows:ss,pleaseEnterColumnWidth:cs,pleaseSetTheLogicalRelationshipOfAllRuleConditions:fs,pleaseCompleteAllRulesAndConditions:ls,pleaseSelectControl:hs,pleaseSelectDashboard:ds,theViewNameCannotBeEmpty:ps,pleaseSelectOcrType:Ds,pleaseSelectAtLeastOneFieldToFillIn:gs,pleaseChooseAtLeastOne:vs,pleaseEnterButtonContent:ms,pleaseEnterDataCodeInDataSetting:ys,pleaseEnterValueFieldCodeInDataSetting:Es,pleaseEnterSvcCodeInDataSetting:As,pleaseBindAtLeastOneDisplayValueInDataSetting:Cs,rootNodeIsRequiredInDataSetting:Fs,pleaseEnterMaxHeight:ws,pleaseEnter:Bs,pleaseEnterWatermark:bs,pleaseEnterFileName:Ss,pleaseUploadAtLeastOnePrintTemplate:_s,pleaseAssignBusiness:Ms,pleaseAssignExternal:Is},xs="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Os="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Rs="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",$s="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ps="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ts="{caption}\u5FC5\u9808",Ls="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",js="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ks="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",qs="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Vs="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Us="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Hs="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",zs="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ws="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Zs="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",Xs="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Gs="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Js="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ks="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Qs="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",Ys="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ec="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",tc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",nc="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",rc="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",uc="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",ic="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",oc="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5927\u5024\u306F\u6700\u5C0F\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",ac="\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u6700\u5C0F\u5024\u306F\u6700\u5927\u5024\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",sc="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",cc="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",fc="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",lc="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",hc="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",dc="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",pc="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",Dc="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",gc="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",vc="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",mc="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",yc="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ec="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ac="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Cc="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Fc="please select control",wc="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Bc="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",bc="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Sc="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",_c="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Mc="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ic="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Nc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",xc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Oc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Rc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",$c="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Pc="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Tc="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Lc="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",jc="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",kc="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",qc="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Vc={isNotNumber:xs,isNotString:Os,isNotObject:Rs,isNotArray:$s,isNotBoolean:Ps,runtimeRequired:Ts,pleaseEnterCaption:Ls,pleaseEnterCaptionTip:js,pleaseEnterPlaceholder:ks,pleaseEnterFieldCode:qs,pleaseEnterForm:Vs,pleaseEnterList:Us,pleaseEnterProcess:Hs,pleaseEnterLabel:zs,pleaseEnterValue:Ws,bizKeyNotBindFiled:Zs,pleaseSelectOneField:Xs,pleaseEnterNumberRange:Gs,pleaseEnterAValueGreaterThanMin:Js,pleaseEnterAValueLessThanMax:Ks,numberRangeSetError:Qs,stringRangeError:Ys,attachmentMaxSize:ec,pleaseEnterTotalScoreSetting:tc,theTotalScoreMustNotBeLessThan1:nc,scoreDefaultValueRange:rc,attachmentLimitError:uc,PleaseReselectTheOptionalQuantity:ic,TheMaximumLengthIsGreaterThanTheMinimumLength:oc,TheMinimumLengthIsGreaterThanTheMaximumLength:ac,PleaseSelectTheCorrectOptionSettings:sc,optionIdIsRepeat:cc,optionIsRequired:fc,pleaseEnterDataCode:lc,pleaseEnterValueFieldCode:hc,pleaseEnterSvcCode:dc,pleaseBindAtLeastOneDisplayValue:pc,pleaseSelectProvince:Dc,pleaseSelectCity:gc,pleaseSelectDistrict:vc,limitRowsCannotBeLessThan0:mc,TheNumberOfRowsCannotBeLessThanMinRows:yc,pleaseEnterColumnWidth:Ec,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ac,pleaseCompleteAllRulesAndConditions:Cc,pleaseSelectControl:Fc,pleaseSelectDashboard:wc,theViewNameCannotBeEmpty:Bc,pleaseSelectOcrType:bc,pleaseSelectAtLeastOneFieldToFillIn:Sc,pleaseChooseAtLeastOne:_c,pleaseEnterButtonContent:Mc,pleaseEnterDataCodeInDataSetting:Ic,pleaseEnterValueFieldCodeInDataSetting:Nc,pleaseEnterSvcCodeInDataSetting:xc,pleaseBindAtLeastOneDisplayValueInDataSetting:Oc,rootNodeIsRequiredInDataSetting:Rc,pleaseEnterMaxHeight:$c,pleaseEnter:Pc,pleaseEnterWatermark:Tc,pleaseEnterFileName:Lc,pleaseUploadAtLeastOnePrintTemplate:jc,pleaseAssignBusiness:kc,pleaseAssignExternal:qc},Uc={zhCN:Ea,enUS:Ns,jaJP:Vc},xe;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(xe||(xe={}));var pt;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(pt||(pt={}));var Gr="zh-CN";function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(Le||(Le={}));var X;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2"})(X||(X={}));var H;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field"})(H||(H={}));var De;De={},we(De,H.ARRAY,X.ARRAY_COLUMN),we(De,H.AUTO_NUMBER,X.AUTO_NUMBER_COLUMN),we(De,H.DECIMAL,X.DECIMAL_COLUMN),we(De,H.DEPARTMENTS,X.DEPARTMENT_COLUMN),we(De,H.FILE,X.FILE_COLUMN),we(De,H.IMAGE,X.IMAGE_COLUMN),we(De,H.ADDRESS,X.LOCATION_COLUMN),we(De,H.EMPLOYEES,X.EMPLOYEE_COLUMN),we(De,H.TEXT,X.TEXT_COLUMN),we(De,H.TIMESCOPE,X.TIMESCOPE_COLUMN),we(De,H.TIMESTAMP,X.TIMESTAMP_COLUMN),we(De,H.VARCHAR,X.VARCHAR_COLUMN),we(De,H.RELATION,X.VARCHAR_COLUMN);var Jr;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATETIME="datetime"})(Jr||(Jr={}));var Kr="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Hc=Kr+"0123456789";function kn(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?Kr:Hc,u=Math.random()*r.length;t+=r[parseInt(String(u),10)]}return t}function qn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zc(e){if(Array.isArray(e))return qn(e)}function Wc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Kt(e,t,n){return Zc()?Kt=Reflect.construct:Kt=function(u,i,o){var c=[null];c.push.apply(c,i);var s=Function.bind.apply(u,c),l=new s;return o&&Rt(l,o.prototype),l},Kt.apply(null,arguments)}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ot(e)}function Yr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rt(e,t)}function Xc(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Gc(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Kc(e,t){return t&&(Qc(t)==="object"||typeof t=="function")?t:Wc(e)}function Rt(e,t){return Rt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Rt(e,t)}function eu(e){return zc(e)||Gc(e)||Yc(e)||Jc()}var Qc=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Yc(e,t){if(!!e){if(typeof e=="string")return qn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qn(e,t)}}function Vn(e){var t=typeof Map=="function"?new Map:void 0;return Vn=function(r){if(r===null||!Xc(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return Kt(r,arguments,Ot(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Rt(u,r)},Vn(e)}function ef(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function tu(e){var t=ef();return function(){var r=Ot(e),u;if(t){var i=Ot(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Kc(this,u)}}var Un=console;function Je(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=Un).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(eu(u)))}function Hn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=Un).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(eu(u)))}function tf(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var zn=function(e){Yr(n,e);var t=tu(n);function n(r){Qr(this,n);var u;return u=t.call(this,r),u.name="\u{1F4A5} Driven Error",u.message=r?tf(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return n}(Vn(Error)),nf=function(e){Yr(n,e);var t=tu(n);function n(r){Qr(this,n);var u;return u=t.call(this,r),u.name="\u{1F6A8} Driven Reference Error",u}return n}(zn);function Ze(e){throw new zn(e)}function nu(e){throw new nf(e)}function Qt(e){Un.error(new zn(e))}function at(e,t){Array.isArray(e)&&e.map(function(n){switch(n.controlType){case"layout":at(n==null?void 0:n.children,t);break;case"search":at(n==null?void 0:n.children,t);break;case"form":t(n)}})}var rf=Object.prototype.toString;function ru(e,t){return rf.call(e)==="[object "+t+"]"}function uf(e){return ru(e,"String")}function of(e){return ru(e,"Promise")}var af=function(){function e(t){var n,r;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((r=(n=t.messages)!==null&&n!==void 0?n:this.getPreImport(t.locale))!==null&&r!==void 0?r:{}),t.variableRegExp&&(this.variableRegExp=t.variableRegExp),this.setLocale(t.locale)}return e.prototype.setLocale=function(t){var n=this;this.locale=t,this._messageCache.clear();var r=this.getMessageData();of(r)?r.then(function(u){n._messageCache.clear(),n.messages[n.localeInMessageKey]=u}):this.messages[this.localeInMessageKey]=r},e.prototype.getMessageData=function(){var t=this._messages[this.localeInMessageKey];return typeof t=="function"?t():t},e.prototype.translate=function(t,n,r){var u=this.getMessage(t);return u?this.formatMessage(u,r):this.formatMessage(n,r)},e.prototype.getMessage=function(t){if(this._messageCache.has(t))return this._messageCache.get(t);var n=this.getPathArray(t),r=n.reduce(function(u,i,o,c){if(u!==void 0){var s=u[i];if(!(o===c.length-1&&!uf(s)))return s}},this.message);return this._messageCache.set(t,r),r},e.prototype.formatMessage=function(t,n){return n?t.replace(this.variableRegExp,function(r,u){var i=n[u];return i!==void 0?String(i):r}):t},e.prototype.getPreImport=function(t){var n;if(window.okI18nPreImport){var r=this.getLocaleInMessageKey(t);return window.okI18nPreImport.hasOwnProperty(r)?window.okI18nPreImport:(n={},n[r]=window.okI18nPreImport,n)}},e.prototype.getPathArray=function(t){return t.split(".")},e.prototype.getLocaleInMessageKey=function(t){return t.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var t;return(t=this.messages[this.localeInMessageKey])!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e}();function sf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Oe=function(){function e(){sf(this,e)}return e.getMessage=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",r)},e.resetI18n=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gr;return new af({locale:n,messages:Uc})},e.setLocale=function(n){return this.$i18n.setLocale(n)},e}();Oe.$i18n=Oe.resetI18n();function uu(e,t,n){var r=t.replace(/\[(\d)]/g,function(i,o){return"."+o}).split("."),u=!1;return r.reduce(function(i,o,c,s){var l=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,o)){Je("Can not set ".concat(t,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),i,i);return}return c===s.length-1&&!Object.is(l[o],n)&&(l[o]=n,u=!0),l[o]}},e),u}var Ke=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function iu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wn={exports:{}};(function(e){(function(t){var n=function(g,E,b){if(!l(E)||a(E)||h(E)||d(E)||s(E))return E;var C,M=0,O=0;if(f(E))for(C=[],O=E.length;M<O;M++)C.push(n(g,E[M],b));else{C={};for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(C[g(P,b)]=n(g,E[P],b))}return C},r=function(g,E){E=E||{};var b=E.separator||"_",C=E.split||/(?=[A-Z])/;return g.split(C).join(b)},u=function(g){return p(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(E,b){return b?b.toUpperCase():""}),g.substr(0,1).toLowerCase()+g.substr(1))},i=function(g){var E=u(g);return E.substr(0,1).toUpperCase()+E.substr(1)},o=function(g,E){return r(g,E).toLowerCase()},c=Object.prototype.toString,s=function(g){return typeof g=="function"},l=function(g){return g===Object(g)},f=function(g){return c.call(g)=="[object Array]"},a=function(g){return c.call(g)=="[object Date]"},h=function(g){return c.call(g)=="[object RegExp]"},d=function(g){return c.call(g)=="[object Boolean]"},p=function(g){return g=g-0,g===g},D=function(g,E){var b=E&&"process"in E?E.process:E;return typeof b!="function"?g:function(C,M){return b(C,g,M)}},v={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(g,E){return n(D(u,E),g)},decamelizeKeys:function(g,E){return n(D(o,E),g,E)},pascalizeKeys:function(g,E){return n(D(i,E),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=v:t.humps=v})(Ke)})(Wn);function te(e){if(e!==void 0)return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function je(e){return Object.prototype.toString.call(e)==="[object Object]"}function cf(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function Dt(e){return Array.isArray(e)}function Be(e){return typeof e=="string"}function Yt(e){return typeof e=="number"}function ou(e){return typeof e=="function"}function ff(e){return Dt(e)&&e.every(function(t){return Be(t)})}function lf(e){return Dt(e)&&e.every(function(t){return Yt(t)||t===""})}function au(e){return/^\[.*?]$/.test(e)}function en(e){return/^{.*?}$/.test(e)}function Zn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hf(e){if(Array.isArray(e))return Zn(e)}function su(e,t,n,r,u,i,o){try{var c=e[i](o),s=c.value}catch(l){n(l);return}c.done?t(s):Promise.resolve(s).then(r,u)}function df(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){su(i,r,u,o,c,"next",s)}function c(s){su(i,r,u,o,c,"throw",s)}o(void 0)})}}function pf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Df(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gf(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xn(e){return hf(e)||Df(e)||vf(e)||gf()}function vf(e,t){if(!!e){if(typeof e=="string")return Zn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zn(e,t)}}var mf=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(f){return s([l,f])}}function s(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},cu=function(){function e(){pf(this,e),this._events=new Map,this.debug=!1}var t=e.prototype;return t.emit=function(r){for(var u=arguments.length,i=new Array(u>1?u-1:0),o=1;o<u;o++)i[o-1]=arguments[o];var c=this;return df(function(){var s,l,f,a,h,d,p,D,v,g,E,b;return mf(this,function(C){switch(C.label){case 0:if(s=c._events.get(r),l=[],!s)return[3,10];f=s.slice(),a=!0,h=!1,d=void 0,C.label=1;case 1:C.trys.push([1,8,9,10]),p=f[Symbol.iterator](),C.label=2;case 2:if(a=(D=p.next()).done)return[3,7];if(v=D.value,!s.includes(v))return[3,6];C.label=3;case 3:return C.trys.push([3,5,,6]),c.debug&&Hn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(v.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+v.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"\u3002")].concat(Xn(i))),[4,v.apply(null,Xn(i))];case 4:return g=C.sent(),c.debug&&Hn.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(v.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+v.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"; \u51FD\u6570\u7684\u8FD4\u56DE\u7ED3\u679C\u4E3A%o")].concat(Xn(i),[g])),l.push(g),g===!1?[3,7]:[3,6];case 5:return E=C.sent(),Qt(String(E)),[3,6];case 6:return a=!0,[3,2];case 7:return[3,10];case 8:return b=C.sent(),h=!0,d=b,[3,10];case 9:try{!a&&p.return!=null&&p.return()}finally{if(h)throw d}return[7];case 10:return[2,l]}})})()},t.on=function(r,u){if(this._events.has(r)){var i;(i=this._events.get(r))===null||i===void 0||i.push(u)}else this._events.set(r,[u])},t.off=function(r,u){if(this._events.has(r)){var i=this._events.get(r),o=i==null?void 0:i.indexOf(u);i==null||i.splice(o,1)}},t.delete=function(r){this._events.has(r)&&this._events.delete(r)},t.clear=function(){this._events=new Map},e}();function yf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ef=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"}],fu=function(){function e(){yf(this,e)}var t=e.prototype;return t.getEventsFromKeys=function(r){var u=typeof r=="string"?[r]:r;return e.events.filter(function(i){return u.includes(i.key)})},e}();fu.events=Ef;function Af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var lu=[],tn=function(){function e(n){Af(this,e),this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=n,this._initControls(n)}var t=e.prototype;return t.registerControlConfig=function(r,u){return this.controlConfigMap.set(r,u),this},t.getControlConfig=function(r){return this.controlConfigMap.get(r)},t.getControls=function(){return this._controls},t.register=function(r){r.__is_control__||Ze("".concat(r.name," is not a Control"));var u=this._controls.findIndex(function(i){return i.controlType===r.controlType});return u>-1&&(Je("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(u,1)),this.registeredControlTypes.add(r.controlType),this._controls.push(r),this},t.isLayoutControl=function(r){return r.controlType===Le.LAYOUT},t.isFormControl=function(r){return r.controlType===Le.FORM},t.isListControl=function(r){return r.controlType===Le.LIST},t.isColumnControl=function(r){return r.controlType===Le.COLUMN},t.createControl=function(r,u){var i=this;if(Array.isArray(r))return r.map(function(f){return i.createControl(f,u)});r.children&&(r.children=r.children.map(function(f){return i.createControl(f,u)})),this.isListControl(r)&&r.props.headers&&(r.props.headers=r.props.headers.map(function(f){return i.createControl(f,u)}));var o=this.getControlFormType(r.type);if(o){var c=r;if(typeof u=="function"){var s=u(c);s&&(c=s)}var l=new o(c);return l}else Ze("The constructor of ".concat(r.type," could not be found, please confirm that the constructor has been registered"))},t.createControlInstance=function(r,u){var i=this.getControlFormType(r);if(i)return new i(u)},t.getControlFormType=function(r){return this._controls.find(function(u){return u.controlType===r})},t._initControls=function(r){var u=this;this.constructor.staticControls.forEach(function(i){u.register(i[r])})},e.register=function(r){var u=r.Designer,i=r.Runtime;(!u||!i||!u.__is_control__||!i.__is_control__)&&Ze("".concat(r," is can't register as a Control"));var o=this.staticControls.findIndex(function(c){return c.Designer.controlType===u.controlType});return o>-1&&(Je("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(o,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(r),this},e}();tn.staticControls=lu,tn.staticRegisteredTypes=new Set(lu.map(function(e){return e.Designer.controlType})),tn.staticRegisteredConfigs=new Map;function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var $t=function e(t){st(this,e);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var u;this.fieldType=(u=t==null?void 0:t.fieldType)!==null&&u!==void 0?u:""},Qe=function e(){st(this,e)},nn=function e(t){st(this,e);var n;this.amount=(n=t==null?void 0:t.amount)!==null&&n!==void 0?n:"";var r;this.currency=(r=t==null?void 0:t.currency)!==null&&r!==void 0?r:Gn.CNY},rn=function e(t){st(this,e);var n;this.min=(n=t==null?void 0:t.min)!==null&&n!==void 0?n:"";var r;this.max=(r=t==null?void 0:t.max)!==null&&r!==void 0?r:""},un=function e(t){st(this,e);var n;this.city=(n=t==null?void 0:t.city)!==null&&n!==void 0?n:"";var r;this.cityDisplay=(r=t==null?void 0:t.cityDisplay)!==null&&r!==void 0?r:"";var u;this.district=(u=t==null?void 0:t.district)!==null&&u!==void 0?u:"";var i;this.districtDisplay=(i=t==null?void 0:t.districtDisplay)!==null&&i!==void 0?i:"";var o;this.province=(o=t==null?void 0:t.province)!==null&&o!==void 0?o:"";var c;this.provinceDisplay=(c=t==null?void 0:t.provinceDisplay)!==null&&c!==void 0?c:""},on=function e(t){st(this,e);var n;this.result=(n=t==null?void 0:t.result)!==null&&n!==void 0?n:0;var r;this.unit=(r=t==null?void 0:t.unit)!==null&&r!==void 0?r:""},Gn;(function(e){e.CNY="CNY",e.USD="USD",e.JPY="JPY",e.EUR="EUR",e.INR="INR",e.IDR="IDR",e.BRL="BRL",e.AED="AED",e.AUD="AUD",e.CAD="CAD",e.EGP="EGP",e.GBP="GBP",e.ZAR="ZAR",e.KRW="KRW",e.MAD="MAD",e.MXN="MXN",e.MYR="MYR",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SGD="SGD",e.THB="THB",e.TRY="TRY",e.TWD="TWD",e.VND="VND",e.HKD="HKD",e.IEP="IEP"})(Gn||(Gn={}));var hu;(function(e){e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions"})(hu||(hu={}));var Jn;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(Jn||(Jn={}));var Cf=function e(t){st(this,e);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var u;this.widthConfig=(u=t==null?void 0:t.widthConfig)!==null&&u!==void 0?u:"fill";var i;this.heightConfig=(i=t==null?void 0:t.heightConfig)!==null&&i!==void 0?i:"fill"};function Ff(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function an(e,t,n){return wf()?an=Reflect.construct:an=function(u,i,o){var c=[null];c.push.apply(c,i);var s=Function.bind.apply(u,c),l=new s;return o&&Tt(l,o.prototype),l},an.apply(null,arguments)}function Pt(e){return Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pt(e)}function Bf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tt(e,t)}function bf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Sf(e,t){return t&&(_f(t)==="object"||typeof t=="function")?t:Ff(e)}function Tt(e,t){return Tt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Tt(e,t)}var _f=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Qn(e){var t=typeof Map=="function"?new Map:void 0;return Qn=function(r){if(r===null||!bf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return an(r,arguments,Pt(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Tt(u,r)},Qn(e)}function Mf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function If(e){var t=Mf();return function(){var r=Pt(e),u;if(t){var i=Pt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Sf(this,u)}}var du=function e(t){Kn(this,e),this.isHide={type:"boolean"}},pu=function(e){Bf(n,e);var t=If(n);function n(r){return Kn(this,n),t.call(this)}return n}(Qn(Array)),ct=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Kn(this,e);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new Cf(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};ct.Rules=du,ct.RuntimeRules=pu;function ke(){return ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(this,arguments)}function Nf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Yn(e)}function sn(e,t){return sn=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},sn(e,t)}function xf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function cn(e,t,n){return xf()?cn=Reflect.construct:cn=function(u,i,o){var c=[null];c.push.apply(c,i);var s=Function.bind.apply(u,c),l=new s;return o&&sn(l,o.prototype),l},cn.apply(null,arguments)}function Of(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function er(e){var t=typeof Map=="function"?new Map:void 0;return er=function(r){if(r===null||!Of(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return cn(r,arguments,Yn(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),sn(u,r)},er(e)}var Rf=/%[sdj%]/g,Du=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Du=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function tr(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,u=t[0],i=t.length;if(typeof u=="function")return u.apply(null,t.slice(1));if(typeof u=="string"){var o=String(u).replace(Rf,function(c){if(c==="%%")return"%";if(r>=i)return c;switch(c){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(s){return"[Circular]"}break;default:return c}});return o}return u}function $f(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function re(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||$f(t)&&typeof e=="string"&&!e)}function Pf(e,t,n){var r=[],u=0,i=e.length;function o(c){r.push.apply(r,c),u++,u===i&&n(r)}e.forEach(function(c){t(c,o)})}function gu(e,t,n){var r=0,u=e.length;function i(o){if(o&&o.length){n(o);return}var c=r;r=r+1,c<u?t(e[c],i):n([])}i([])}function Tf(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var vu=function(e){Nf(t,e);function t(n,r){var u;return u=e.call(this,"Async Validation Error")||this,u.errors=n,u.fields=r,u}return t}(er(Error));function Lf(e,t,n,r){if(t.first){var u=new Promise(function(a,h){var d=function(v){return r(v),v.length?h(new vu(v,tr(v))):a()},p=Tf(e);gu(p,n,d)});return u.catch(function(a){return a}),u}var i=t.firstFields||[];i===!0&&(i=Object.keys(e));var o=Object.keys(e),c=o.length,s=0,l=[],f=new Promise(function(a,h){var d=function(D){if(l.push.apply(l,D),s++,s===c)return r(l),l.length?h(new vu(l,tr(l))):a()};o.length||(r(l),a()),o.forEach(function(p){var D=e[p];i.indexOf(p)!==-1?gu(D,n,d):Pf(D,n,d)})});return f.catch(function(a){return a}),f}function mu(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function yu(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=ke(ke({},e[n]),r):e[n]=r}}return e}function Eu(e,t,n,r,u,i){e.required&&(!n.hasOwnProperty(e.field)||re(t,i||e.type))&&r.push(be(u.messages.required,e.fullField))}function jf(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(be(u.messages.whitespace,e.fullField))}var nr={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Lt={integer:function(t){return Lt.number(t)&&parseInt(t,10)===t},float:function(t){return Lt.number(t)&&!Lt.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Lt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(nr.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(nr.url)},hex:function(t){return typeof t=="string"&&!!t.match(nr.hex)}};function kf(e,t,n,r,u){if(e.required&&t===void 0){Eu(e,t,n,r,u);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;i.indexOf(o)>-1?Lt[o](t)||r.push(be(u.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(be(u.messages.types[o],e.fullField,e.type))}function qf(e,t,n,r,u){var i=typeof e.len=="number",o=typeof e.min=="number",c=typeof e.max=="number",s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,f=null,a=typeof t=="number",h=typeof t=="string",d=Array.isArray(t);if(a?f="number":h?f="string":d&&(f="array"),!f)return!1;d&&(l=t.length),h&&(l=t.replace(s,"_").length),i?l!==e.len&&r.push(be(u.messages[f].len,e.fullField,e.len)):o&&!c&&l<e.min?r.push(be(u.messages[f].min,e.fullField,e.min)):c&&!o&&l>e.max?r.push(be(u.messages[f].max,e.fullField,e.max)):o&&c&&(l<e.min||l>e.max)&&r.push(be(u.messages[f].range,e.fullField,e.min,e.max))}var gt="enum";function Vf(e,t,n,r,u){e[gt]=Array.isArray(e[gt])?e[gt]:[],e[gt].indexOf(t)===-1&&r.push(be(u.messages[gt],e.fullField,e[gt].join(", ")))}function Uf(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(be(u.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(t)||r.push(be(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var U={required:Eu,whitespace:jf,type:kf,range:qf,enum:Vf,pattern:Uf};function Hf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t,"string")&&!e.required)return n();U.required(e,t,r,i,u,"string"),re(t,"string")||(U.type(e,t,r,i,u),U.range(e,t,r,i,u),U.pattern(e,t,r,i,u),e.whitespace===!0&&U.whitespace(e,t,r,i,u))}n(i)}function zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&U.type(e,t,r,i,u)}n(i)}function Wf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&(U.type(e,t,r,i,u),U.range(e,t,r,i,u))}n(i)}function Zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&U.type(e,t,r,i,u)}n(i)}function Xf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),re(t)||U.type(e,t,r,i,u)}n(i)}function Gf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&(U.type(e,t,r,i,u),U.range(e,t,r,i,u))}n(i)}function Jf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&(U.type(e,t,r,i,u),U.range(e,t,r,i,u))}n(i)}function Kf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return n();U.required(e,t,r,i,u,"array"),t!=null&&(U.type(e,t,r,i,u),U.range(e,t,r,i,u))}n(i)}function Qf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&U.type(e,t,r,i,u)}n(i)}var Yf="enum";function el(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u),t!==void 0&&U[Yf](e,t,r,i,u)}n(i)}function tl(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t,"string")&&!e.required)return n();U.required(e,t,r,i,u),re(t,"string")||U.pattern(e,t,r,i,u)}n(i)}function nl(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t,"date")&&!e.required)return n();if(U.required(e,t,r,i,u),!re(t,"date")){var c;t instanceof Date?c=t:c=new Date(t),U.type(e,c,r,i,u),c&&U.range(e,c.getTime(),r,i,u)}}n(i)}function rl(e,t,n,r,u){var i=[],o=Array.isArray(t)?"array":typeof t;U.required(e,t,r,i,u,o),n(i)}function rr(e,t,n,r,u){var i=e.type,o=[],c=e.required||!e.required&&r.hasOwnProperty(e.field);if(c){if(re(t,i)&&!e.required)return n();U.required(e,t,r,o,u,i),re(t,i)||U.type(e,t,r,o,u)}n(o)}function ul(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(re(t)&&!e.required)return n();U.required(e,t,r,i,u)}n(i)}var jt={string:Hf,method:zf,number:Wf,boolean:Zf,regexp:Xf,integer:Gf,float:Jf,array:Kf,object:Qf,enum:el,pattern:tl,date:nl,url:rr,hex:rr,email:rr,required:rl,any:ul};function ur(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ir=ur();function Ye(e){this.rules=null,this._messages=ir,this.define(e)}Ye.prototype={messages:function(t){return t&&(this._messages=yu(ur(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var i=t,o=n,c=r;if(typeof o=="function"&&(c=o,o={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(),Promise.resolve();function s(D){var v,g=[],E={};function b(C){if(Array.isArray(C)){var M;g=(M=g).concat.apply(M,C)}else g.push(C)}for(v=0;v<D.length;v++)b(D[v]);g.length?E=tr(g):(g=null,E=null),c(g,E)}if(o.messages){var l=this.messages();l===ir&&(l=ur()),yu(l,o.messages),o.messages=l}else o.messages=this.messages();var f,a,h={},d=o.keys||Object.keys(this.rules);d.forEach(function(D){f=u.rules[D],a=i[D],f.forEach(function(v){var g=v;typeof g.transform=="function"&&(i===t&&(i=ke({},i)),a=i[D]=g.transform(a)),typeof g=="function"?g={validator:g}:g=ke({},g),g.validator=u.getValidationMethod(g),g.field=D,g.fullField=g.fullField||D,g.type=u.getType(g),g.validator&&(h[D]=h[D]||[],h[D].push({rule:g,value:a,source:i,field:D}))})});var p={};return Lf(h,o,function(D,v){var g=D.rule,E=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");E=E&&(g.required||!g.required&&D.value),g.field=D.field;function b(O,P){return ke(ke({},P),{},{fullField:g.fullField+"."+O})}function C(O){O===void 0&&(O=[]);var P=O;if(Array.isArray(P)||(P=[P]),!o.suppressWarning&&P.length&&Ye.warning("async-validator:",P),P.length&&g.message!==void 0&&(P=[].concat(g.message)),P=P.map(mu(g)),o.first&&P.length)return p[g.field]=1,v(P);if(!E)v(P);else{if(g.required&&!D.value)return g.message!==void 0?P=[].concat(g.message).map(mu(g)):o.error&&(P=[o.error(g,be(o.messages.required,g.field))]),v(P);var S={};if(g.defaultField)for(var $ in D.value)D.value.hasOwnProperty($)&&(S[$]=g.defaultField);S=ke(ke({},S),D.rule.fields);for(var W in S)if(S.hasOwnProperty(W)){var q=Array.isArray(S[W])?S[W]:[S[W]];S[W]=q.map(b.bind(null,W))}var K=new Ye(S);K.messages(o.messages),D.rule.options&&(D.rule.options.messages=o.messages,D.rule.options.error=o.error),K.validate(D.value,D.rule.options||o,function(J){var ee=[];P&&P.length&&ee.push.apply(ee,P),J&&J.length&&ee.push.apply(ee,J),v(ee.length?ee:null)})}}var M;g.asyncValidator?M=g.asyncValidator(g,D.value,C,D.source,o):g.validator&&(M=g.validator(g,D.value,C,D.source,o),M===!0?C():M===!1?C(g.message||g.field+" fails"):M instanceof Array?C(M):M instanceof Error&&C(M.message)),M&&M.then&&M.then(function(){return C()},function(O){return C(O)})},function(D){s(D)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!jt.hasOwnProperty(t.type))throw new Error(be("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?jt.required:jt[this.getType(t)]||!1}},Ye.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");jt[t]=n},Ye.warning=Du,Ye.messages=ir,Ye.validators=jt;var il={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function ol(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new Ye(e);return n.messages(Object.assign(il,t)),n}var al=new cu;function or(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sl(e){if(Array.isArray(e))return e}function cl(e){if(Array.isArray(e))return or(e)}function Au(e,t,n,r,u,i,o){try{var c=e[i](o),s=c.value}catch(l){n(l);return}c.done?t(s):Promise.resolve(s).then(r,u)}function Cu(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){Au(i,r,u,o,c,"next",s)}function c(s){Au(i,r,u,o,c,"throw",s)}o(void 0)})}}function fl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ll(e,t,n){return t&&Fu(e.prototype,t),n&&Fu(e,n),e}function hl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wu(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Bu(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dl(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pl(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){hl(e,u,n[u])})}return e}function Dl(e){return sl(e)||Bu(e)||Su(e)||dl()}function ar(e){return cl(e)||Bu(e)||Su(e)||pl()}function Su(e,t){if(!!e){if(typeof e=="string")return or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return or(e,t)}}var _u=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(f){return s([l,f])}}function s(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},qe=function(){function t(r){var u=this;fl(this,t),this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Iu,this.removeSetting=Mu,this._callControlHooks("preInstance",r);var i=wu(this,t)?this.constructor:void 0,o=i.controlName,c=i.controlIcon,s=i.controlType,l=i.controlFieldType,f=i.controlEventKeys,a=i.controlCustomEvents,h=i.name,d=i.setting;o&&c&&s||nu("The ".concat(h," controlName,controlIcon,controlType is not define"));var p;this.id=(p=r==null?void 0:r.id)!==null&&p!==void 0?p:kn(10),this.name=o,this.icon=c;var D;this.type=(D=r==null?void 0:r.type)!==null&&D!==void 0?D:s,this.props=new ct(r==null?void 0:r.props,(wu(this,t)?this.constructor:void 0).controlName);var v;this.controlType=(v=r==null?void 0:r.controlType)!==null&&v!==void 0?v:"base",this.setting=te(d);var g;this.fieldType=(g=r==null?void 0:r.fieldType)!==null&&g!==void 0?g:l,this.eventKeys=te(f),this.customEvents=te(a),Promise.resolve().then(function(){u._callControlHooks("postInstance",r)})}var n=t.prototype;return n._callControlHooks=function(){for(var u=arguments.length,i=new Array(u),o=0;o<u;o++)i[o]=arguments[o];var c,s=Dl(i),l=s[0],f=s.slice(1);return(c=al).emit.apply(c,[l,this].concat(ar(f)))},n.preUpdate=function(u,i){this._callControlHooks("preUpdateProps",u,i)},n.postUpdate=function(u,i){this._callControlHooks("postUpdateProps",u,i)},n.updateProps=function(u,i){this.preUpdate(u,i),uu(this.props,u,i),this.postUpdate(u,i)},n.preValidate=function(){var u=this;return Cu(function(){var i,o,c;return _u(this,function(s){switch(s.label){case 0:return i=bu({},u.rules),[4,u._callControlHooks("preValidate",i)];case 1:return o=s.sent(),c=o[o.length-1],[2,c===!1?void 0:c]}})})()},n.validate=function(u,i){var o=this;return Cu(function(){var c,s,l,f;return _u(this,function(a){switch(a.label){case 0:return[4,o.preValidate()];case 1:c=a.sent(),s=c!==void 0?c:bu({},o.rules),Array.isArray(i)&&i.forEach(function(h){s.hasOwnProperty(h)&&delete s[h]}),l=ol(s,u),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,l.validate(o.props)];case 3:return a.sent(),[2,!0];case 4:throw f=a.sent(),f.control||(f.control=o),f;case 5:return[2]}})})()},n.toDataBindModel=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,o=this.id,c=this.type,s=this.props,l=s.dataBind,f=s.datasourceBind,a=s.optionConfig,h=s.caption,d=s.required,p=s.maxLength,D=s.options,v=s.encrypted,g=s.encryptedMode;if(!(!i&&!l&&!f)){var E={parentId:u,fieldType:i,controlId:o,caption:h,type:c,props:{}};switch(l&&(E.dataBind=l),a){case"datasource":case void 0:f&&(E.datasourceBind=f);break;case"custom":E.props.options=D;break}return d!==void 0&&(E.required=d),p!==void 0&&(E.maxLength=p),v!==void 0&&(E.encrypted=v),g!==void 0&&(E.encryptedMode=g),E}},n.preToSchema=function(){this._callControlHooks("preToSchema",this)},n.toSchema=function(){return this.preToSchema(),{id:this.id,type:this.type,props:te(this.props),fieldType:this.fieldType,controlType:this.controlType}},t.updateBasicControl=function(u,i){if(u==="setting"){if(i.add){var o;(o=this.setting).push.apply(o,ar(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}},ll(t,[{key:"rules",get:function(){var u=this.props.constructor.Rules;return u?new u(this.props):{}}}]),t}();qe.controlName="\u63A7\u4EF6",qe.controlIcon="icon",qe.controlType="control",qe.controlEventKeys=[],qe.controlCustomEvents=[],qe.setting=[],qe.__is_control__=!0,qe.removeSettingItem=Mu,qe.updateSettingItem=Iu;function Mu(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u=typeof r!="string",i=t.setting.findIndex(function(s){return s.key===(u?r.key:r)});if(i!==-1){var o,c;u?t.setting[i].showItems=(o=t.setting[i].showItems)===null||o===void 0?void 0:o.filter(function(s){return!r.hideItems.includes(s)}):t.setting.splice(i,1),u&&!(!((c=t.setting[i].showItems)===null||c===void 0)&&c.length)&&t.setting.splice(i,1)}})}function Iu(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var i=n.setting.find(function(l){return l.key===u});if(i){if(typeof t=="boolean")i.visible=t;else if(typeof t=="object"){var o,c=(o=t.type)!==null&&o!==void 0?o:"replace";if(c==="replace")i.showItems=t.showItems;else{var s;(s=i.showItems).push.apply(s,ar(t.showItems))}}}})}function gl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vl(e,t,n){return t&&Nu(e.prototype,t),n&&Nu(e,n),e}function ml(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var vt=function(){function t(n){gl(this,t),this.customEvents=[],this.parent=null;var r=ml(this,t)?this.constructor:void 0,u=r.controlType,i=r.controlFieldType,o=r.name,c=r.controlCustomEvents;u||nu("The ".concat(o," controlType is not define"));var s;this.id=(s=n==null?void 0:n.id)!==null&&s!==void 0?s:kn(10);var l;this.type=(l=n==null?void 0:n.type)!==null&&l!==void 0?l:u,this.props=new ct(n==null?void 0:n.props),this.customEvents=c;var f;this.controlType=(f=n==null?void 0:n.controlType)!==null&&f!==void 0?f:"base";var a;this.fieldType=(a=n==null?void 0:n.fieldType)!==null&&a!==void 0?a:i;var h;this.pageStatus=(h=n==null?void 0:n.pageStatus)!==null&&h!==void 0?h:Jn.UNKNOWN}return vl(t,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var u=new r(this.props);return Array.from(u)}return[]}}]),t}();vt.controlType="control",vt.__is_control__=!0,vt.controlCustomEvents=[];function yl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fn(e){return fn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fn(e)}function cr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fr(e,t)}function El(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Al(e,t){return t&&(Cl(t)==="object"||typeof t=="function")?t:yl(e)}function fr(e,t){return fr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},fr(e,t)}var Cl=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Fl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function lr(e){var t=Fl();return function(){var r=fn(e),u;if(t){var i=fn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Al(this,u)}}var wl=function(e){cr(n,e);var t=lr(n);function n(r){sr(this,n);var u;u=t.call(this,r),u.dataBind={},u.caption={type:"string",required:!0,message:Oe.getMessage("pleaseEnterCaption")},u.isHideCaption={type:"boolean"},u.labelPosition={type:"enum",enum:["top","left"]},u.defaultState={type:"enum",enum:["default","readonly"]},u.required={type:"boolean"},u.captionTip={type:"string",required:!1,message:Oe.getMessage("pleaseEnterCaptionTip")};var i={fieldCode:{type:"string",required:!0,message:Oe.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:Oe.getMessage("pleaseEnterFieldCode")}};if(El(r.dataBind,$t))u.dataBind={type:"object",required:!0,fields:te(i),message:Oe.getMessage("pleaseEnterFieldCode")};else{var o={type:"object",required:!0,fields:{},message:Oe.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(c){o.fields[c]={type:"object",required:!0,fields:te(i),message:Oe.getMessage("pleaseEnterFieldCode")}}),u.dataBind=o}return r.isShowCaptionTip&&(u.captionTip.required=!0),u}return n}(du),Bl=function(e){cr(n,e);var t=lr(n);function n(r){sr(this,n);var u;return u=t.call(this,r),u.push({type:"string",required:r.isHide?!1:r.required,message:r.requiredMessage!==""?r.requiredMessage:Oe.getMessage("runtimeRequired",{caption:r.caption})}),u}return n}(pu),hr=function(e){cr(n,e);var t=lr(n);function n(r){sr(this,n);var u;u=t.call(this,r);var i;u.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"";var o;u.isHideCaption=(o=r==null?void 0:r.isHideCaption)!==null&&o!==void 0?o:!1;var c;u.isShowCaptionTip=(c=r==null?void 0:r.isShowCaptionTip)!==null&&c!==void 0?c:!1;var s;u.captionTip=(s=r==null?void 0:r.captionTip)!==null&&s!==void 0?s:"";var l;u.defaultState=(l=r==null?void 0:r.defaultState)!==null&&l!==void 0?l:"default";var f;u.labelPosition=(f=r==null?void 0:r.labelPosition)!==null&&f!==void 0?f:"top";var a;u.placeholder=(a=r==null?void 0:r.placeholder)!==null&&a!==void 0?a:"";var h;u.required=(h=r==null?void 0:r.required)!==null&&h!==void 0?h:!1;var d;u.requiredMessage=(d=r==null?void 0:r.requiredMessage)!==null&&d!==void 0?d:"",u.dataBind=new $t(r==null?void 0:r.dataBind);var p;return u.defaultValue=(p=r==null?void 0:r.defaultValue)!==null&&p!==void 0?p:"",u}return n}(ct);hr.Rules=wl,hr.RuntimeRules=Bl;function bl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ln(e){return ln=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ln(e)}function _l(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dr(e,t)}function Ml(e,t){return t&&(Il(t)==="object"||typeof t=="function")?t:bl(e)}function dr(e,t){return dr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},dr(e,t)}var Il=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Nl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function xl(e){var t=Nl();return function(){var r=ln(e),u;if(t){var i=ln(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Ml(this,u)}}var Ve=function(e){_l(n,e);var t=xl(n);function n(r){Sl(this,n);var u;return u=t.call(this,r),u.controlType="form",u.props=new hr(r==null?void 0:r.props),u}return n}(vt);function Ol(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hn(e)}function $l(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pr(e,t)}function Pl(e,t){return t&&(Tl(t)==="object"||typeof t=="function")?t:Ol(e)}function pr(e,t){return pr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},pr(e,t)}var Tl=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Ll(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function jl(e){var t=Ll();return function(){var r=hn(e),u;if(t){var i=hn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Pl(this,u)}}var xu=function(e){$l(n,e);var t=jl(n);function n(r){return Rl(this,n),t.call(this,r)}return n}(ct);function Dr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kl(e){if(Array.isArray(e))return Dr(e)}function ql(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vl(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ou(e){return kl(e)||ql(e)||Ul(e)||Vl()}function Ul(e,t){if(!!e){if(typeof e=="string")return Dr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dr(e,t)}}function Hl(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Ru(e,t){e.parent=t,Hl(e,"parent")}function zl(e,t){e.forEach(function(n){Ru(n,t)})}var $u=Symbol("targetKey");function Pu(e){var t;return(t=e[$u])!==null&&t!==void 0?t:e}function Tu(e,t){return zl(e,t),new Proxy(e,{get:function(r,u){for(var i=arguments.length,o=new Array(i>2?i-2:0),c=2;c<i;c++)o[c-2]=arguments[c];var s;return u===$u?r:(s=Reflect).get.apply(s,[r,u].concat(Ou(o)))},set:function(r,u,i){for(var o=arguments.length,c=new Array(o>3?o-3:0),s=3;s<o;s++)c[s-3]=arguments[s];var l;if(Dt(e)&&u==="length"&&i===e.length)return!0;var f=(l=Reflect).set.apply(l,[r,u,i].concat(Ou(c)));return je(i)&&Ru(i,t),f}})}function dn(e,t,n,r){var u=r!=null?r:e,i=Tu(Pu(n!=null?n:[]),u);Object.defineProperty(e,t,{get:function(){return i},set:function(c){i=Tu(Pu(c),u)},enumerable:!0})}function gr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wl(e){if(Array.isArray(e))return gr(e)}function Lu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ju(e,t,n,r,u,i,o){try{var c=e[i](o),s=c.value}catch(l){n(l);return}c.done?t(s):Promise.resolve(s).then(r,u)}function Zl(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){ju(i,r,u,o,c,"next",s)}function c(s){ju(i,r,u,o,c,"throw",s)}o(void 0)})}}function Xl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mt(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?mt=Reflect.get:mt=function(u,i,o){var c=u0(u,i);if(!!c){var s=Object.getOwnPropertyDescriptor(c,i);return s.get?s.get.call(o):s.value}},mt(e,t,n||e)}function et(e){return et=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},et(e)}function Jl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vr(e,t)}function Kl(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Ql(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yl(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){Gl(e,u,n[u])})}return e}function t0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function n0(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):t0(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function r0(e,t){return t&&(i0(t)==="object"||typeof t=="function")?t:Lu(e)}function vr(e,t){return vr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},vr(e,t)}function u0(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=et(e),e!==null););return e}function ku(e){return Wl(e)||Ql(e)||o0(e)||Yl()}var i0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function o0(e,t){if(!!e){if(typeof e=="string")return gr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gr(e,t)}}function a0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function s0(e){var t=a0();return function(){var r=et(e),u;if(t){var i=et(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return r0(this,u)}}var c0=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(f){return s([l,f])}}function s(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},f0=1e4,qu=function(t){Jl(r,t);var n=s0(r);function r(i){Xl(this,r);var o;o=n.call(this,i),o.controlType="layout";var c=Kl(this,r)?this.constructor:void 0,s=c.excludes,l=c.childrenMaxLength;return o.props=new xu(i==null?void 0:i.props),dn(Lu(o),"children",i==null?void 0:i.children),o.excludes=te(s),o.childrenMaxLength=l,o}var u=r.prototype;return u.judgeExcludesChildren=function(o){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(o)},u.judgeJoinChildren=function(o){var c=this.judgeExcludesChildren(o);return c&&this.childrenMaxLength>this.children.length},u.validate=function(o,c){var s=this,l=this,f=function(){return mt(et(r.prototype),"validate",s)};return Zl(function(){return c0(this,function(a){switch(a.label){case 0:return[4,f().call(l,o,c)];case 1:return a.sent(),[4,Promise.all(l.children.map(function(h){return h.validate(o,c)}))];case 2:return a.sent(),[2,!0]}})})()},u.toDataBindModel=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,c=mt(et(r.prototype),"toDataBindModel",this).call(this),s=c?[c]:[];return this.children.reduce(function(l,f){var a=f.toDataBindModel(o);if(Array.isArray(a)){var h=a.filter(function(d){return!!d});return ku(l).concat(ku(h))}return a&&l.push(a),l},s)},u.toSchema=function(){var o=mt(et(r.prototype),"toSchema",this).call(this),c=this.children.map(function(s){var l=s.toSchema();return l});return n0(e0({},o),{children:c})},r}(qe);qu.excludes=!1,qu.childrenMaxLength=f0;function Vu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pn(e){return pn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pn(e)}function h0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mr(e,t)}function d0(e,t){return t&&(p0(t)==="object"||typeof t=="function")?t:Vu(e)}function mr(e,t){return mr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},mr(e,t)}var p0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function D0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function g0(e){var t=D0();return function(){var r=pn(e),u;if(t){var i=pn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return d0(this,u)}}var v0=function(e){h0(n,e);var t=g0(n);function n(r){l0(this,n);var u;return u=t.call(this,r),u.controlType="layout",u.props=new xu(r==null?void 0:r.props),dn(Vu(u),"children",r==null?void 0:r.children),u}return n}(vt);function Uu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dn(e){return Dn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Dn(e)}function y0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yr(e,t)}function E0(e,t){return t&&(A0(t)==="object"||typeof t=="function")?t:Uu(e)}function yr(e,t){return yr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},yr(e,t)}var A0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function C0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function F0(e){var t=C0();return function(){var r=Dn(e),u;if(t){var i=Dn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return E0(this,u)}}var w0=function(e){y0(n,e);var t=F0(n);function n(r,u){m0(this,n);var i;return i=t.call(this,u),dn(Uu(i),"headers",u==null?void 0:u.headers,r),i}return n}(ct);H.LIST;function Er(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b0(e,t,n){return t&&Hu(e.prototype,t),n&&Hu(e,n),e}function gn(e){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gn(e)}function S0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ar(e,t)}function _0(e,t){return t&&(M0(t)==="object"||typeof t=="function")?t:Er(e)}function Ar(e,t){return Ar=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Ar(e,t)}var M0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function I0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function N0(e){var t=I0();return function(){var r=gn(e),u;if(t){var i=gn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return _0(this,u)}}var vn=function(e){S0(n,e);var t=N0(n);function n(r){B0(this,n);var u;return u=t.call(this,r),u.controlType="list",u.props=new w0(Er(u),r==null?void 0:r.props),dn(Er(u),"children",r==null?void 0:r.children),u}return b0(n,[{key:"length",get:function(){return this.children.length}}]),n}(vt);console.log("sourcemap 4");function mn(e){return e.controlType===Le.LAYOUT||e.controlType===Le.WRAP||e.controlType===Le.LIST||e.controlType===Le.SEARCH}function kt(e,t){Array.isArray(e)&&e.map(n=>{if(n.type===X.SUBTABLE){const r=n.getChildrenFormControl();t(n,r)}else mn(n)?kt(n==null?void 0:n.children,t):n instanceof Ve&&t(n)})}function qt(e,t){Array.isArray(e)&&e.map(n=>{n.type===X.DATA_VIEW||n.type===X.SIMPLE_SEARCH?t(n):mn(n)&&qt(n==null?void 0:n.children,t)})}class Cr extends tn{constructor(t){super("Runtime"),this._flatInstances=[],this._instanceMap={};const{schema:n}=t;this._schema=n,this._instance=this.createControl(n,t.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const t=[],n={};return zu(this._instance,r=>{r.type!=="subtable-row"&&(t.push(r),n[r.id]||(n[r.id]=[]),n[r.id].push(r))}),this._flatInstances=t,this._instanceMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get rules(){let t={};return qt(this._instance,n=>{t[n.id]=n.rules[0],kt(n.children,r=>{(r instanceof Ve||r instanceof vn)&&x0(t[n.id].fields,r)})}),t}get antdRules(){let t={};return qt(this._instance,n=>{t[n.id]=n.rules[0],kt(n.children,r=>{(r instanceof Ve||r instanceof vn)&&O0(t[n.id].fields,r)})}),t}}function zu(e,t){Array.isArray(e)?e.map(n=>{t(n),mn(n)&&zu(n.children,t)}):t(e)}function Fr(e){return e.props.isHide?!0:e.parent===null?!1:Fr(e.parent)}function x0(e,t){if(!Fr(t)){if(t instanceof Ve)e[t.id]=t.rules;else if(t.type===X.SUBTABLE){e[t.id]=t.rules;const n={type:"array",fields:{}};t.children.forEach((r,u)=>{at(r.children,i=>{n.fields&&(n.fields[u]||(n.fields[u]={type:"object",required:!0,fields:{}}),n.fields[u].fields[i.id]=i.rules)})}),e[t.id].push(n)}}}function O0(e,t){Fr(t)||(t instanceof Ve?e[t.id]=t.rules:t.type===X.SUBTABLE&&t.children.length&&(e[t.id]=[],t.children.forEach(n=>{let r={};at(n.children,u=>{r[u.id]=u.rules}),e[t.id].push(r)})))}class R0{constructor(t){const{state:n,emptyState:r,databindMapping:u,controlidMapping:i}=$0(t.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=i}setState(t,n,r){const u=this.controlIdMapping[t];u!==void 0?this.state[u.dataView][t]=n:r!==void 0?Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,c=this.controlIdMapping[i].children;c!==void 0&&Object.keys(c).map(s=>{s===t&&(this.state[o][i][r][t]=n)})}):this.state[t]=n}getState(t,n){if(this.state[t]!==void 0)return this.state[t];{const u=this.controlIdMapping[t];if(u!==void 0)return this.state[u.dataView][t];if(n!==void 0){let i;return Object.keys(this.controlIdMapping).map(o=>{const c=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(l=>{var f;l===t&&(i=(f=this.state[c][o][n])==null?void 0:f[t])})}),i}else{let i=[];return Object.keys(this.controlIdMapping).map(o=>{const c=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(l=>{l===t&&this.state[c][o].map(f=>{i.push(f[t])})})}),i}}}getEmptyState(t){if(this.emptyState[t]!==void 0)return this.emptyState[t];{const r=this.controlIdMapping[t];if(r!==void 0)return this.emptyState[r.dataView][t];{let u;return Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,c=this.controlIdMapping[i].children;c!==void 0&&Object.keys(c).map(s=>{s===t&&(u=this.emptyState[o][i][t])})}),u}}}getDataBind(t){let n=this.controlIdMapping[t];if(n)return n.dataBind;e:for(let r in this.controlIdMapping){const u=this.controlIdMapping[r];if(u.children){for(let i in u.children)if(i===t){n=u.children[i];break e}}}return n==null?void 0:n.dataBind}}function $0(e){let t={},n={},r={},u={};return qt(e,i=>{const o=i.id,c={},s={};kt([i],(l,f)=>{P0(c,s,l),T0(r,o,l),L0(u,o,l)}),t[o]=c,n[o]=s}),{state:t,emptyState:n,databindMapping:r,controlidMapping:u}}function P0(e,t,n){var r;if(n instanceof Ve)e[n.id]=te(n.props.defaultValue),t[n.id]=te(n.props.defaultValue);else{const u={};at(n.props.headers,i=>{u[i.id]=te(i.props.defaultValue)}),e[n.id]=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>te(u)),t[n.id]=u}}function T0(e,t,n){if(n instanceof Ve)n.props.dataBind instanceof Qe?Object.keys(n.props.dataBind).map(r=>{const u=n.props.dataBind,i=u[r].dataCode;i!==void 0&&(e[i]===void 0&&(e[i]={controlId:n.id,fields:[],dataViewId:t}),e[i].fields.push({fieldCode:u[r].fieldCode,controlId:n.id,dataBind:u,dataViewId:[t]}))}):(e[n.props.dataBind.dataCode]===void 0&&(e[n.props.dataBind.dataCode]={controlId:t,fields:[],dataViewId:t}),e[n.props.dataBind.dataCode].fields.push({fieldCode:n.props.dataBind.fieldCode,controlId:n.id,dataBind:n.props.dataBind,dataViewId:[t]}));else{if(n.props.datasourceBind.dataCode===""){Je(`datasourceBind.dataCode is empty! maybe in preview mode, control:${n.id} type:${n.type}`);return}e[n.props.datasourceBind.dataCode]={controlId:n.id,fields:[],dataViewId:t};const r=n.id;at(n.props.headers,u=>{u.props.dataBind instanceof Qe?Object.keys(u.props.dataBind).map(i=>{const o=u.props.dataBind,c=o[i].dataCode;e[c].fields.push({fieldCode:o[i].fieldCode,controlId:u.id,dataBind:o,dataViewId:[t,r]})}):e[u.props.dataBind.dataCode].fields.push({fieldCode:u.props.dataBind.fieldCode,controlId:u.id,dataBind:u.props.dataBind,dataViewId:[t,r]})})}}function L0(e,t,n){n instanceof Ve?e[n.id]={dataBind:n.props.dataBind,options:[],dataView:t}:n.type===X.SUBTABLE&&(e[n.id]={dataBind:new $t({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:t,children:{},options:[]},at(n.props.headers,r=>{var u,i;Object.assign((i=(u=e[n.id])==null?void 0:u.children)!=null?i:{},{[r.id]:{dataBind:r.props.dataBind}})}))}const yt=console,Wu=["splice","push","shift","pop","unshift","reverse"],wr=Symbol("__engineProxy__"),Br=Symbol("__engineTarget__"),Zu=Symbol("__engineArrayBeforeSetCallbackFlag__"),Xu=Symbol("__engineProxyThisKey__"),Re={type:"",args:[],callback:Gu};function Gu(){}U0();function j0(e,t,n,r,u){if(Re.type){Re.callback=u.bind(null,e,r);return}const i=Number(t);if(i>e.length){Ze(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${Wu.join(",")} for array operations`);return}if(!(Number.isNaN(i)&&t!=="length"))if(t==="length"){const c=n,s=e.length;if(c>e.length){Ze("Do not directly modify the length of the array data, please add new rows");return}return c===e.length?void 0:()=>u.call(null,e,r,"splice",[c,s-c])}else return i===e.length?()=>u.call(null,e,r,"push",[n]):()=>u.call(null,e,r,"splice",[i,1,n])}function k0(e,t,n){return{__engineProxy__:!0,get(r,u,i){return u===wr?!0:u===Br?r:Array.isArray(r)&&u===Zu?n:u===Xu?e:Reflect.get(r,u,i)},set(r,u,i,o){var h;let c=i;const s=r[u],l=e===""?u:e+"."+u;function f(d){if(typeof d=="object"&&d!==null)return d[wr]!==!0?yn(d,t,n,l):yn(d[Br],t,n,l)}c=(h=f(i))!=null?h:c;let a;if(Array.isArray(r)){const d=j0(r,u,i,e,t);a=Reflect.set(r,u,c,o),d&&d()}else{try{let d=c;if(c=n.call(null,r,l,c,s),d!==c){const p=f(c);p!==void 0&&(c=p)}}catch(d){return Qt(`${l} set error ${d}`),!0}a=Reflect.set(r,u,c,o),t.call(null,r,l,i,s)}return a}}}function yn(e,t,n,r=""){if(Object.isFrozen(e))return e;for(let u in e){const i=r===""?u:r+"."+u,o=e[u];typeof o=="object"&&o!==null&&(e[u]=yn(o,t,n,i))}return new Proxy(e,k0(r,t,n))}function Ju(e){const t=[];return e.forEach(n=>{t.push(n),n.controlType==="layout"&&t.push(...Ju(n.children))}),t}function br(e,t,n){if(t==="")return;const r=t.split(".");if(r.length===0)return;const u=r[0],i=r.slice(1);yt.time("findItem flatInstance find");const o=e.find(s=>s.id===u);yt.log("\u{1F3E0} findItem flatInstance find result",o),yt.timeEnd("findItem flatInstance find"),yt.time("findItem instanceMap match");const c=n[u];return yt.log("\u{1F3E0} findItem instanceMap match result",c),yt.timeEnd("findItem instanceMap match"),i.length===0?o:i.reduce((s,l)=>{var h,d;const f=Number(l);if(Number.isNaN(f)){const p=s!=null&&s.children?Ju(s.children):void 0,D=p==null?void 0:p.find(v=>v.id===l);return D||(s instanceof Ve?s:void 0)}else return(d=(h=s==null?void 0:s.children)==null?void 0:h[f])!=null?d:s},o)}function q0(e,t){return["push","unshift"].includes(e)?t:e==="splice"?t.slice(2):[]}function V0(e,t,n){if(["push","unshift"].includes(e))return n;if(e==="splice")return t.slice(0,2).concat(n)}function U0(){Wu.forEach(e=>{const t=Array.prototype[e];Array.prototype[e]=function(...n){var r;if(this[wr]){let u;const i=q0(e,n);if(i.length){const o=(r=this[Zu])==null?void 0:r.call(this,this[Br],this[Xu],i),c=V0(e,n,o);Re.type=e,Re.args=c,u=t.apply(this,c)}else Re.type=e,Re.args=n,u=t.apply(this,n);return typeof Re.callback=="function"&&Re.callback(e,n,u),Re.type="",Re.args=[],Re.callback=Gu,u}else return t.apply(this,n)}})}class H0{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(t,n,...r){return ze(this,null,function*(){const u=this.actionMap.get(t);if(!!u)try{return yield u.func.call(null,n,...r)}catch(i){Qt(`${u.id} Exception during calling action: ${i}`)}})}addAction(t,n){this.actionMap.has(t)&&Ze("duplicated action key");const r=new z0(t,n);this.actionMap.set(t,r)}}class z0{constructor(t,n){this.id="",this.id=t,this.func=n}}class W0{constructor(t){this._dataStore=new Map,this.executer=t}add(t,n){this._dataStore.set(t,n)}get(t){let n=this._dataStore.get(t);return te(n)}remove(t){this._dataStore.delete(t)}getRemoteData(t){return ze(this,null,function*(){return this.executer===void 0?(Qt("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(t)})}}class tt{}class Vt extends tt{validate(t){return Be(t)}transform(t){if(t==null)return"";if(!je(t)&&!ou(t))return String(t);if(cf(t))return JSON.stringify(t);throw`${t} is not a string`}}class Sr extends tt{validate(t){return Yt(t)||t===""}transform(t){if(t==null)return"";const n=!je(t)&&!ou(t)?Number(t):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${t} is not a number`}}class Z0 extends tt{validate(t){return ff(t)}transform(t){if(t==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(Dt(t))return n(t);if(Be(t)&&au(t))try{const r=JSON.parse(t);if(Array.isArray(r))return n(r)}catch(r){}return[String(t)]}}class X0 extends tt{validate(t){return lf(t)}transform(t){if(t==null)return[];function n(u){return u.map(i=>!i&&i!==0?"":Number(i)).filter(i=>i===""||!Number.isNaN(i))}if(Dt(t))return n(t);if(Be(t)&&au(t))try{const u=JSON.parse(t);if(Dt(u))return n(u)}catch(u){}const r=Number(t);if(Number.isNaN(r))throw`${t} is not a number array`;return[r]}}class G0 extends tt{validate(t){return t instanceof nn||je(t)&&"amount"in t&&Yt(t.amount)&&"currency"in t&&Be(t.currency)}transform(t,n){if(t==null||t==="")return new nn({currency:n==null?void 0:n.currency});let r;if(je(t)&&(r=new nn(oe(oe({},n),t))),Be(t)&&en(t))try{const u=JSON.parse(t);r=new nn(oe(oe({},n),u))}catch(u){}if(r){const u=new Sr,i=new Vt;return u.validate(r.amount)||(r.amount=u.transform(r.amount)),i.validate(r.currency)||(r.currency=i.transform(r.currency)),r}throw`${t} is not a { amount: number, currency: string } object`}}class J0 extends tt{validate(t){return t instanceof rn||je(t)&&"min"in t&&Be(t.min)&&"max"in t&&Be(t.max)}transform(t,n){if(t==null||t==="")return new rn;let r;if(je(t)&&(r=new rn(oe(oe({},n),t))),Be(t)&&en(t))try{const u=JSON.parse(t);r=new rn(oe(oe({},n),u))}catch(u){}if(r){const u=new Vt;return u.validate(r.min)||(r.min=u.transform(r.min)),u.validate(r.max)||(r.max=u.transform(r.max)),r}throw`${t} is not a { min: string, max: string } object`}}class K0 extends tt{validate(t){return t instanceof on||je(t)&&"result"in t&&Yt(t.result)&&"unit"in t&&Be(t.unit)}transform(t,n){if(t==null||t==="")return new on({unit:n==null?void 0:n.unit});let r;if(je(t)&&(r=new on(oe(oe({},n),t))),Be(t)&&en(t))try{const u=JSON.parse(t);r=new on(oe(oe({},n),u))}catch(u){}if(r){const u=new Sr,i=new Vt;return u.validate(r.result)||(r.result=u.transform(r.result)),i.validate(r.unit)||(r.unit=i.transform(r.unit)),r}throw`${t} is not a { result: string, unit: string } object`}}class Q0 extends tt{validate(t){return t instanceof un}transform(t,n){if(t==null||t==="")return new un;let r;if(je(t)&&(r=new un(oe(oe({},n),Wn.exports.camelizeKeys(t)))),Be(t)&&en(t))try{const u=JSON.parse(t);r=new un(oe(oe({},n),Wn.exports.camelizeKeys(u)))}catch(u){}if(r){const u=new Vt;return u.validate(r.city)||(r.city=u.transform(r.city)),u.validate(r.district)||(r.district=u.transform(r.district)),u.validate(r.province)||(r.province=u.transform(r.province)),r}throw`${t} is not a { city: string, district: string, province: string } object`}}class Y0{static getValueChecker(t){let n;switch(t){case H.VARCHAR:case H.TIMESTAMP:case H.TEXT:case H.RELATION:case H.AUTO_NUMBER:n=new Vt;break;case H.DECIMAL:n=new Sr;break;case H.EMPLOYEES:case H.DEPARTMENTS:case H.IMAGE:case H.FILE:case H.ARRAY:n=new Z0;break;case H.MONEY:n=new G0;break;case H.TIMESCOPE:n=new J0;break;case H.CALC:n=new K0;break;case H.DECIMAL_RANGE:n=new X0;break;case H.ADDRESS:n=new Q0;break}return n}}function eh(e){if(["min","max","currency","unit"].includes(e))return H.VARCHAR;if(["result","amount"].includes(e))return H.DECIMAL}function Ku(e,t,n,r){var o;let u=(o=eh(t))!=null?o:e,i=Y0.getValueChecker(u);if(!i||i.validate(n))return n;try{const c=i.transform(n,r);return c!==void 0?c:n}catch(c){throw`${t} ${c}`}}function th(e,t,n){return Object.entries(e).reduce((r,[u,i])=>{const o=t[u];return r[u]=Ku(i,u,o,n[u]),r},Object.assign({},t))}typeof window!="undefined"&&(window.engines={});let Et=null,Ut="";class _r extends cu{constructor(t){super(),this.isMounted=!1,this.id=kn(8),this.__pluginsApplied=!1,this.actionManager=new H0,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(t);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:i,language:o=Gr,debug:c=!1}=this.$options;Oe.setLocale(o),this.debug=c,this.runtime=new Cr({schema:r,beforeCreateInstance:u}),this.externalParams=i,this.store=new R0({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...t){this.debug&&Hn(...t)}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}registerControl(...t){return this.runtime.register(...t),this}static register(...t){return Cr.register(...t)}static judgeControlIsRegistered(t){return Cr.staticRegisteredTypes.has(t.Runtime.controlType)}mount(){this.debugLog("engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528");const{plugins:t=[]}=this.$options;this._handlerProxyState(),this.__plugins=t,this.applyPlugins(),this.setStates(this.getState()),this.debugLog("engine\u7684mount\u65B9\u6CD5\u8C03\u7528\u7ED3\u675F"),this.debug&&typeof window!="undefined"&&(window.engines[this.id]=this)}destroy(){this.debug&&typeof window!="undefined"&&delete window.engines[this.id]}_handlerProxyState(){this.store.state=yn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(t,n,r,u){const i=br(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return r;if(this.assertInstance(i,X.SUBTABLE)){if(r===null)return[];const s=i.props.headers.reduce((f,a)=>{const h=a.children[0];return h&&h instanceof Ve&&(f[h.id]=h.fieldType),f},{}),l=this.getEmptyState(i.id);return r.map(f=>th(s,f,l))}const o=n.split("."),c=o[o.length-1];try{return Ku(i.fieldType,c,r,u)}catch(s){throw Je(`the id=${i.id}'s instance setState error, %o ${s}.`,r),s}}_proxyStateCallback(t,n,r,u,i){Array.isArray(t)?this._handlerArrayUpdate(t,n,r,u,i):this._handlerObjectUpdate(t,n,r,u)}_handlerArrayUpdate(t,n,r,u,i){const o=br(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!(o instanceof vn))return;const c=h=>{const d=[];for(let p=0;p<h;p++){const D=this.listControlCreateRow(o,"subtable-row");D&&d.push(D)}return d},s=Et;let l=[],f=[],a=[];if(r&&u){switch(r){case"push":case"unshift":const h=u.length;l=c(h),f=u,o.children[r](...l),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){const d=u.length-2,p=u.slice(2);l=c(d),f=p;const D=u[0],v=u[1];o.children[r](D,v,...l),this.runtime.getFlatInstances()}else o.children[r](...u),this.runtime.getFlatInstances();break;default:o.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?a=i:["pop","shift"].includes(r)&&(a=[i]),this.emit("list-change",{instance:o,value:this.getState(o.id),options:Object.assign({},s,{changed:l,data:f,deleted:a!=null?a:[]})}),Et=null}}_handlerObjectUpdate(t,n,r,u){const i=br(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return;const o=this.getInstanceRowIndex(i),c=Et||{};if(i instanceof vn){i.children.length=0;const s=r;let l=[];for(let f=0;f<s.length;f++){const a=this.listControlCreateRow(i,"subtable-row");a&&l.push(a)}i.children.push(...l),this.runtime.getFlatInstances(),this.emit("list-change",{instance:i,value:r,options:Xr(oe({},c),{changed:l,data:s,deleted:u!=null?u:[]})})}else this.emit("change",{instance:i,value:this.getState(i.id,o),rowIndex:o,options:Xr(oe({},c),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{Ut=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this)}catch(r){Ze(`${Ut} Plugin apply Error
2
+ ${r}`)}finally{Ut=""}}),this.__pluginsApplied=!0)}listControlCreateRow(t,n){const r=this.runtime.createControlInstance(n);if(!!r){if(r instanceof v0){const u=te(t.props.headers),i=this.createControl(u);r.children.push(...i)}return r}}listControlAddRow(t,n="subtable-row"){const r=this.listControlCreateRow(t,n);!r||t.children.push(r)}emit(t,n){return ze(this,null,function*(){if(t==="engine-mounted"){if(this.isMounted)return Je("The engine-mounted life cycle can only be triggered once"),Promise.resolve([]);if(this._jobTasks.length){console.time("engine-mounted need wait");const o=[...this._jobTasks];yield Promise.all(o),console.timeEnd("engine-mounted need wait")}this.isMounted=!0}let r,u;this.isMounted||(u=new Promise(o=>{r=o}),this._jobTasks.push(u));const i=yield lo(_r.prototype,this,"emit").call(this,t,n);return r&&u&&(r(),this._jobTasks.splice(this._jobTasks.indexOf(u),1)),i})}on(t,n){return Ut&&(n.applyingPluginName=Ut),super.on(t,n)}createControl(...t){return this.runtime.createControl(...t)}createInstance(t,n){return this.runtime.createControlInstance(t,n)}schemaEvent(t,n){this.emit(t,n)}updateInstanceProps(t,n,r,u){return this.setInstance(t,n,r,u)}getRules(t){var n;return t===void 0?this.runtime.rules:(n=this.runtime.rules[t])==null?void 0:n.fields}getAntdRules(t){var n;return t===void 0?this.runtime.antdRules:(n=this.runtime.antdRules[t])==null?void 0:n.fields}getState(t,n){return t===void 0?this.store.state:this.store.getState(t,n)}getEmptyState(t){return te(t===void 0?this.store.emptyState:this.store.getEmptyState(t))}setPayloadOptions(t){Et=t}setState(t,n,r,u){Et=u,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",t,n,r,u),this.store.setState(t,n,r),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",t,n,r),Et=null}setStates(t,n,r){let u=t;Object.keys(u).forEach(i=>{Object.entries(this.store.controlIdMapping).forEach(([o,c])=>{if(c.dataView===i){const s=u[i][o];s!==void 0&&this.setState(o,s,n,r)}else(o===i||c.children&&c.children[i])&&u[i]!==void 0&&this.setState(i,u[i],n,r)})})}getField(t,n,r){if(!n){const s=this.getDataBindMapping(t);if(s){const{controlId:l}=s;return this.getState(l)}return}const u=this.getDataBindMapping(t,n);if(!u)return;const{dataBind:i,controlId:o}=u,c=this.getState(o,r);return i instanceof Qe?Object.entries(i).reduce((s,[l,f])=>f.fieldCode===n?s[l]:s,c):c}getData(t){var u,i,o,c,s,l,f,a;if(!t)return;let n=this.getDataBindMapping(t),r=this.getControlIdMapping();if(n){const{controlId:h}=n,d=this.getField(t);if(Array.isArray(d))return d.map(D=>{var g,E,b,C,M,O,P;let v={};for(let S in D)if((b=(E=(g=r[h])==null?void 0:g.children[S])==null?void 0:E.dataBind)!=null&&b.fieldCode)v[(C=r[h].children[S])==null?void 0:C.dataBind.fieldCode]=D[S];else if((M=r[h])!=null&&M.children[S])for(let $ in D[S])v[(P=(O=r[h])==null?void 0:O.children[S])==null?void 0:P.dataBind[$].fieldCode]=D[S][$];return v});{let p={};for(let D in d)if((i=(u=r[D])==null?void 0:u.dataBind)!=null&&i.fieldCode)p[(o=r[D])==null?void 0:o.dataBind.fieldCode]=d[D];else if((s=(c=r[D])==null?void 0:c.dataBind)!=null&&s.dataCode)p[(l=r[D])==null?void 0:l.dataBind.dataCode]=d[D].map(v=>{var E,b,C;let g={};for(let M in v)if((E=r[D].children[M])!=null&&E.dataBind.fieldCode)g[(b=r[D].children[M])==null?void 0:b.dataBind.fieldCode]=v[M];else for(let O in v[M])g[(C=r[D].children[M])==null?void 0:C.dataBind[O].fieldCode]=v[M][O];return g});else if(r[D])for(let v in d[D])p[(a=(f=r[D])==null?void 0:f.dataBind[v])==null?void 0:a.fieldCode]=d[D][v];return p}}}setField(t,n,r,u,i){var l;const o=this.getDataBindMapping(t,n);if(!o)return;const{dataBind:c,controlId:s}=o;if(c instanceof Qe){const f=(l=te(this.getState(s,u)))!=null?l:this.getEmptyState(s),a=Object.entries(c).reduce((h,[d,p])=>(p.fieldCode===n&&(h[d]=r),h),f);this.setState(s,a,u,i)}else this.setState(s,r,u,i)}setFields(t,n,r,u){const i=this.getDataBindMapping(t);if(!i)return;let o=[];i.fields.forEach(c=>{var a;const{dataBind:s,controlId:l,fieldCode:f}=c;if(!o.includes(f)&&!!Object.hasOwnProperty.call(n,f))if(s instanceof Qe){const h=(a=te(this.getState(l,r)))!=null?a:this.getEmptyState(l),d=Object.entries(s).reduce((p,[D,v])=>{o.push(v.fieldCode);const g=n[v.fieldCode];return g!==void 0&&(p[D]=g),p},h);this.setState(c.controlId,d,r,u)}else this.setState(l,n[f],r,u)})}buildFields(t,n){const r=this.getDataBindMapping(t);if(!r)return;let u=[];const i={};return r.fields.forEach(o=>{const{dataBind:c,controlId:s,fieldCode:l}=o;if(!u.includes(l)&&!!Object.hasOwnProperty.call(n,l))if(c instanceof Qe){const f=this.getEmptyState(s);i[o.controlId]=Object.entries(c).reduce((a,[h,d])=>{u.push(d.fieldCode);const p=n[d.fieldCode];return p!==void 0&&(a[h]=p),a},f)}else i[s]=n[l]}),i}setData(t,n){this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",t,n);let r={};Object.keys(t).map(u=>{const i=t[u];if(Array.isArray(i))i.map(o=>{const c=this.getDataBindMapping(u);if(!c)return;let s=te(this.store.emptyState[c.dataViewId][c.controlId]),l=[];Object.keys(o).map(f=>{var h,d,p;if(l.includes(f))return;const a=(d=(h=this.store.dataBindMapping[u])==null?void 0:h.fields)==null?void 0:d.find(D=>D.fieldCode===f);if(a){if(a.dataBind instanceof $t&&o[f]!==void 0)s[a.controlId]=o[f];else if(a.dataBind instanceof Qe){let D=te((p=this.getEmptyState(a.controlId))!=null?p:{});Object.keys(a.dataBind).map(v=>{const g=a.dataBind[v];o[g.fieldCode]!==void 0&&(D[v]=o[g.fieldCode]),l.push(g.fieldCode)}),s[a.controlId]=D}}}),r[c.dataViewId]||(r[c.dataViewId]={}),r[c.dataViewId][c.controlId]||(r[c.dataViewId][c.controlId]=[]),r[c.dataViewId][c.controlId].push(s)});else if(i){let o=[];Object.keys(i).map(c=>{var l;if(o.includes(c))return;const s=this.getDataBindMapping(u,c);if(s){if(r[s.dataViewId[0]]||(r[s.dataViewId[0]]={}),s.dataBind instanceof $t&&i[c]!==void 0)r[s.dataViewId[0]][s.controlId]=i[c];else if(s.dataBind instanceof Qe){let f=te((l=this.getEmptyState(s.controlId))!=null?l:{});Object.keys(s.dataBind).map(a=>{const h=s.dataBind[a];i[h.fieldCode]!==void 0&&(f[a]=i[h.fieldCode]),o.push(h.fieldCode)}),r[s.dataViewId[0]][s.controlId]=f}}})}}),this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",r),this.setStates(r,void 0,n),this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\u5B8C\u6210\u3002")}getDataBind(t){return this.store.getDataBind(t)}getInstance(t,n){const r=this.getInstances(t,n===-1);if(r.length>0)return n!==void 0?n===-1?r[0]:r[n]:r[0]}getInstances(t,n=!1){var o;const r=console,u="\u{1F411} genInstances "+t+" "+Date.now();if(r.time(u),t===void 0)return r.timeEnd(u),this.runtime.flatInstances;const i=this.runtime.flatInstances.filter(c=>c.id===t);if(n)if(i.length){const c=i[0];if(this.getInstanceRowIndex(c)!==void 0){const s=this.getInstanceInSubtableHeader(c);s&&i.unshift(s)}}else{const c=this.getControlIdMapping(),[s]=(o=Object.entries(c).find(([l,f])=>f.children&&t in f.children))!=null?o:[];if(s){const f=this.getInstance(s).props.headers.find(a=>a.children.find(h=>h.id===t));if(f){const a=f.children.find(h=>h.id===t);a&&i.unshift(a)}}}return r.timeEnd(u),i}setInstance(t,n,r,u){try{let i;if(typeof t=="string"?i=this.getInstance(t,u):i=t,!i)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",i.id,i,n,r),uu(i.props,n,r),this.schemaEvent("schema-change",{instance:i,props:n,value:r})}catch(i){throw i}}getControlIdMapping(){return this.store.controlIdMapping}getDataBindMapping(t,n){if(!t&&!n)return this.store.dataBindMapping;const r=this.store.dataBindMapping[t];if(!r){Je(`No corresponding dataCode=${t} was found`);return}if(!n)return r;const u=r.fields.find(i=>i.fieldCode===n);if(!u){Je(`No corresponding fieldCode=${n} was found`);return}return u}getAction(){return this.actionManager}initDataManager(t){this.dataManager=new W0(t)}getDataManager(){return this.dataManager}assertInstance(t,n){return Be(n)?t.type===n:n.includes(t.type)}getInstanceRowIndex(t){if(!t.parent)return;let n;if(this.assertInstance(t.parent,X.SUBTABLE))if(this.assertInstance(t,X.SUBTABLE_COLUMN))n=-1;else{const r=t.parent.children.findIndex(u=>u===t);r>-1&&(n=r)}else n=this.getInstanceRowIndex(t.parent);return n}getInstanceParentControl(t,n){if(!!t.parent)return this.assertInstance(t.parent,n)?t.parent:this.getInstanceParentControl(t.parent,n)}getInstanceInSubtableHeader(t){const n=this.getInstanceRowIndex(t);if(n===void 0)return;if(n===-1)return t;const r=this.assertInstance(t,X.SUBTABLE_COLUMN)?t:this.getInstanceParentControl(t,X.SUBTABLE_COLUMN);if(!r)return;const i=this.getInstanceParentControl(t,X.SUBTABLE).props.headers.find(o=>o.id===r.id);if(!!i)return i.children.find(o=>o.id===t.id)}setControlConfig(...t){return this.runtime.registerControlConfig(...t)}getControlConfig(t){return this.runtime.getControlConfig(t)}}console.log("a");class nh{}class rh{constructor(t,n){this.config=t,this.env=n}apply(t){this.engine=t;const n=this.config;if(!n)return;const r=Qu(n,t,this.env);if(!r)return;const u=t.getAction();for(let[i,o]of Object.entries(r.funcMap))u.addAction(i,o)}}function Qu(e,t,n){if(!e.module||!e.module.compiled)return;const r=e.module.compiled,u={exports:{ctx:t,utils:t.getAction().actionUtils,env:n}};try{new Function("module","exports",r).call(u,u,u.exports)}catch(c){Ze(c.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&Ze("fail to parse the module")}const i={},o={};for(const[c,s]of Object.entries(u.exports))typeof s=="function"?i[c]=s:o[c]=s;return{funcMap:i,variables:o}}const uh={"engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class ih{constructor(t){this.config=t}apply(t){this.engine=t,Object.entries(uh).forEach(([n,r])=>{t.on(n,u=>ze(this,null,function*(){const i=yield this.callLifecycleEvent(r,u);return i.includes(!1)?!1:i}))})}callLifecycleEvent(t,n){return ze(this,null,function*(){const r=this.config;return!r||!Array.isArray(r[t])?[]:yield Promise.all(r[t].map(i=>ze(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})))})}}class oh{constructor(t){this.config=t}apply(t){this.engine=t,fu.events.forEach(n=>{n.code&&n.key&&this.engineAddEventListener(n.code,n.key)})}engineAddEventListener(t,n){this.engine.on(t,r=>ze(this,null,function*(){if(!(t==="change"&&!this.engine.isMounted)&&r.instance!==void 0)return yield this.callControlEvent(n,r)}))}callControlEvent(t,n){return ze(this,null,function*(){const r=this.config[n.instance.id];if(!r||!Array.isArray(r[t]))return[];const u=yield Promise.all(r[t].map(i=>ze(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})));return u.includes(!1)?!1:u})}}function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mr.apply(this,arguments)}var Yu={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function ge(e){return typeof e=="number"}function nt(e){return!e||typeof e!="object"||typeof e.constructor!="function"?!1:e.isBigNumber===!0&&typeof e.constructor.prototype=="object"&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal=="function"&&e.constructor.isDecimal(e)===!0}function ei(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function ti(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function ni(e){return e&&e.constructor.prototype.isUnit===!0||!1}function En(e){return typeof e=="string"}var Se=Array.isArray;function Ht(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function Ir(e){return Array.isArray(e)||Ht(e)}function ah(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function sh(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function ch(e){return e&&e.constructor.prototype.isRange===!0||!1}function ri(e){return e&&e.constructor.prototype.isIndex===!0||!1}function fh(e){return typeof e=="boolean"}function lh(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function hh(e){return e&&e.constructor.prototype.isHelp===!0||!1}function dh(e){return typeof e=="function"}function ph(e){return e instanceof Date}function Dh(e){return e instanceof RegExp}function gh(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!ei(e)&&!ti(e))}function vh(e){return e===null}function mh(e){return e===void 0}function yh(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Eh(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ah(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ch(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function Fh(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function wh(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Bh(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function bh(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function Sh(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function _h(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function Mh(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ih(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Nh(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function xh(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function Oh(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Rh(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function $h(e){return e&&e.constructor.prototype.isChain===!0||!1}function Nr(e){var t=typeof e;return t==="object"?e===null?"null":nt(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":t}function ft(e){var t=typeof e;if(t==="number"||t==="string"||t==="boolean"||e===null||e===void 0)return e;if(typeof e.clone=="function")return e.clone();if(Array.isArray(e))return e.map(function(n){return ft(n)});if(e instanceof Date)return new Date(e.valueOf());if(nt(e))return e;if(e instanceof RegExp)throw new TypeError("Cannot clone "+e);return Ph(e,ft)}function Ph(e,t){var n={};for(var r in e)An(e,r)&&(n[r]=t(e[r]));return n}function xr(e,t){var n,r,u;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(r=0,u=e.length;r<u;r++)if(!xr(e[r],t[r]))return!1;return!0}else{if(typeof e=="function")return e===t;if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(n in e)if(!(n in t)||!xr(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}else return e===t}}function An(e,t){return e&&Object.hasOwnProperty.call(e,t)}function Th(e,t){for(var n={},r=0;r<t.length;r++){var u=t[r],i=e[u];i!==void 0&&(n[u]=i)}return n}var Lh=["Matrix","Array"],jh=["number","BigNumber","Fraction"],ui=function(t){if(t)throw new Error(`The global config is readonly.
3
3
  Please create a mathjs instance if you want to change the default configuration.
4
4
  Example:
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-engine",
3
- "version": "2.1.0-sourcemap.4",
3
+ "version": "2.1.0-sourcemap.6",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -29,5 +29,5 @@
29
29
  "devDependencies": {
30
30
  "@types/node": "~18.0.3"
31
31
  },
32
- "gitHead": "255c3e58e310854a03a1e7ce6c5eeb21420410d0"
32
+ "gitHead": "9937fa4cfca18160b54877e47b8e2510327b3e39"
33
33
  }