@byteluck-fe/model-driven-engine 6.2.0-beta.17 → 6.2.0-beta.18

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.
@@ -1377,10 +1377,13 @@ var Engine = /*#__PURE__*/ function(Watcher) {
1377
1377
  newState[mapping.dataViewId[0]][mapping.controlId] = objValue;
1378
1378
  }
1379
1379
  } else {
1380
- /* 若存在dataView内 则认为是没绑定字段的默认值*/ var isInDataView = fieldCode in emptyState;
1381
- var mapping1 = _this.getDataBindMapping(dataCode);
1382
- if (isInDataView && (mapping1 === null || mapping1 === void 0 ? void 0 : mapping1.dataViewId) && entity[dataCode] !== undefined) {
1383
- newState[mapping1 === null || mapping1 === void 0 ? void 0 : mapping1.dataViewId][fieldCode] = entity[fieldCode];
1380
+ /* 若存在dataView内 则认为是没绑定字段的默认值*/ var mapping1 = _this.getDataBindMapping(dataCode);
1381
+ if ((mapping1 === null || mapping1 === void 0 ? void 0 : mapping1.dataViewId) && entity[dataCode] !== undefined) {
1382
+ var dataViweId = mapping1 === null || mapping1 === void 0 ? void 0 : mapping1.dataViewId;
1383
+ var isInDataView = fieldCode in (emptyState[dataViweId] || {});
1384
+ if (isInDataView) {
1385
+ newState[dataViweId][fieldCode] = entity[fieldCode];
1386
+ }
1384
1387
  }
1385
1388
  }
1386
1389
  });
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  var l2=Object.defineProperty,c2=Object.defineProperties;var f2=Object.getOwnPropertyDescriptors;var Hi=Object.getOwnPropertySymbols,h2=Object.getPrototypeOf,gf=Object.prototype.hasOwnProperty,vf=Object.prototype.propertyIsEnumerable,d2=Reflect.get;var Qi=Math.pow,pf=(ie,Fe,Oe)=>Fe in ie?l2(ie,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ie[Fe]=Oe,me=(ie,Fe)=>{for(var Oe in Fe||(Fe={}))gf.call(Fe,Oe)&&pf(ie,Oe,Fe[Oe]);if(Hi)for(var Oe of Hi(Fe))vf.call(Fe,Oe)&&pf(ie,Oe,Fe[Oe]);return ie},Er=(ie,Fe)=>c2(ie,f2(Fe));var cs=(ie,Fe)=>{var Oe={};for(var ut in ie)gf.call(ie,ut)&&Fe.indexOf(ut)<0&&(Oe[ut]=ie[ut]);if(ie!=null&&Hi)for(var ut of Hi(ie))Fe.indexOf(ut)<0&&vf.call(ie,ut)&&(Oe[ut]=ie[ut]);return Oe};var mf=(ie,Fe,Oe)=>d2(h2(ie),Oe,Fe);var It=(ie,Fe,Oe)=>new Promise((ut,Cn)=>{var Ji=bt=>{try{zr(Oe.next(bt))}catch(wr){Cn(wr)}},ar=bt=>{try{zr(Oe.throw(bt))}catch(wr){Cn(wr)}},zr=bt=>bt.done?ut(bt.value):Promise.resolve(bt.value).then(Ji,ar);zr((Oe=Oe.apply(ie,Fe)).next())});(function(ie,Fe){typeof exports=="object"&&typeof module!="undefined"?Fe(exports,require("crypto"),require("path"),require("url"),require("fs"),require("util")):typeof define=="function"&&define.amd?define(["exports","crypto","path","url","fs","util"],Fe):(ie=typeof globalThis!="undefined"?globalThis:ie||self,Fe(ie.modelDrivenEngine={},ie.require$$0,ie.require$$1,ie.require$$3,ie.require$$0$1,ie.require$$0$2))})(this,function(ie,Fe,Oe,ut,Cn,Ji){"use strict";function ar(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var zr=ar(Fe),bt=ar(Oe),wr=ar(ut),yf=ar(Cn),Df=ar(Ji);const ue=(t,e,r)=>{if(!t)return console.error("getLocaleText\u7684key\u4E0D\u80FD\u4E3A\u7A7A"),"";const n=t.split(".");let i;const u=(window.baitedaWorkers||{}).languageMessages||{};n.forEach((a,s)=>{s===0?i=u[a]:i&&(i=i[a])});let o="";return i&&(o=i),e&&Object.keys(e).forEach(a=>{const s=e[a];o=o.replace(new RegExp(`\\{\\s*${a}\\s*\\}`,"g"),s)}),o||(r?o=r:o=t),o};var Ef="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",wf="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Cf="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Af="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",bf="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",Ff="{caption}\u5FC5\u586B",_f="\u8BF7\u8F93\u5165\u6807\u9898",Bf="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Sf="\u8BF7\u8F93\u5165\u884C\u6807\u9898",Of="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",Mf="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",xf="\u8BF7\u7ED1\u5B9A\u8868\u5355",Tf="\u8BF7\u7ED1\u5B9A\u5217\u8868",If="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Pf="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Nf="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",$f="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",Rf="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",Lf="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",kf="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",qf="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",jf="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Uf="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Vf="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",zf="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Wf="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Gf="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Hf="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u8D85\u8FC7\u4E86\u9650\u5236",Qf="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Jf="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Zf="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Xf="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Kf="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Yf="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",eh="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",th="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",rh="\u8BF7\u7ED1\u5B9A\u670D\u52A1",nh="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ih="\u8BF7\u9009\u62E9\u7701",uh="\u8BF7\u9009\u62E9\u5E02",oh="\u8BF7\u9009\u62E9\u533A",sh="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",ah="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",lh="\u8BF7\u8F93\u5165\u5217\u5BBD",ch="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",fh="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",hh="\u8BF7\u9009\u62E9\u63A7\u4EF6",dh="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",ph="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",gh="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",vh="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",mh="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",yh="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Dh="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Eh="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",wh="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Ch="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Ah="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",bh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Fh="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",_h="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Bh="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Sh="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Oh="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Mh="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",xh="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Th="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Ih="\u8BF7\u8F93\u5165\u5B50\u8868\u522B\u540D",Ph="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u4E1A\u52A1\u6A21\u578B",Nh="\u8BF7\u9009\u62E9\u5173\u8054\u8868\u8BBE\u7F6E\u7ED1\u5B9A\u670D\u52A1",$h="\u8BF7\u9009\u62E9\u5173\u8054\u5B50\u8868\u5B57\u6BB5",Rh="\u8BF7\u9009\u62E9\u5173\u8054\u4E3B\u8868\u5B57\u6BB5",Lh="\u8BF7\u9009\u62E9\u6392\u5E8F\u5B57\u6BB5",kh="\u6279\u91CF\u5220\u9664",qh="\u6279\u91CF\u6253\u5370",jh="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",Uh="\u6309\u94AE",Vh="\u521B\u5EFA\u5355\u636E",zh="\u4EEA\u8868\u76D8",Wh="\u5206\u5272\u7EBF",Gh="\u5BFC\u51FA",Hh="\u8868\u5355\u64CD\u4F5C",Qh="\u5BFC\u5165",Jh="\u53D1\u7968\u8BC6\u522B",Zh="\u94FE\u63A5",Xh="\u5217\u8868\u9009\u62E9",Kh="\u5217\u8868\u89C6\u56FE",Yh="\u64CD\u4F5C\u6309\u94AE",e0="\u5206\u9875",t0="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",r0="\u8BF4\u660E\u6587\u5B57",n0="\u6587\u5B57\u8BC6\u522B",i0="\u6807\u9898\u7EC4\u4EF6",u0="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",o0="\u6570\u7EC4",s0="\u81EA\u52A8\u7F16\u53F7",a0="\u81EA\u5B9A\u4E49",l0="\u6570\u503C",c0="\u90E8\u95E8",f0="\u4EBA\u5458",h0="\u9644\u4EF6",d0="\u56FE\u7247",p0="\u5730\u5740",g0="\u64CD\u4F5C",v0="\u5E8F\u53F7",m0="\u4EBA\u5458",y0="\u957F\u6587\u672C",D0="\u65E5\u671F\u533A\u95F4",E0="\u65E5\u671F",w0="\u77ED\u6587\u672C",C0="\u6362\u884C\u5BB9\u5668Wrap",A0="\u8868\u683C",b0="\u660E\u7EC6\u5B50\u8868",F0="\u5730\u5740",_0="\u91D1\u989D",B0="\u8BA1\u7B97\u516C\u5F0F",S0="\u591A\u9009",O0="\u7535\u5B50\u7B7E\u7AE0",M0="\u5355\u884C\u6587\u672C",x0="\u6570\u5B57",T0="\u4E1A\u52A1\u7EC4\u7EC7",I0="\u5355\u9009",P0="\u5BCC\u6587\u672C",N0="\u8BC4\u5206",$0="\u6570\u5B57\u533A\u95F4",R0="\u4E0B\u62C9\u5355\u9009",L0="\u4E0B\u62C9\u591A\u9009",k0="\u5173\u8054\u5355\u9009",q0="\u591A\u884C\u6587\u672C",j0="\u6811",U0="Vue\u5BB9\u5668",V0="Vue\u9875\u9762",z0="\u5728\u7EBF\u6587\u6863",W0="\u6309\u94AE\u64CD\u4F5C\u680F",G0="\u9AD8\u7EA7\u5BB9\u5668",H0="\u5206\u7EC4",Q0="\u6805\u683C\u5217",J0="\u6570\u636E\u5BB9\u5668",Z0="\u753B\u5E03",X0="\u6362\u884C\u5BB9\u5668",K0="\u6805\u683C\u7B49\u5206\u884C",Y0="\u5217\u8868\u5BB9\u5668",ed="\u81EA\u7531\u9875\u9762",td="\u5B9A\u4F4D\u5B50\u5BB9\u5668",rd="\u5B9A\u4F4D\u5BB9\u5668",nd="\u6805\u683C\u5E03\u5C40",id="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",ud="\u660E\u7EC6\u5B50\u8868\u884C",od="\u6807\u7B7E\u9875",sd="\u6807\u7B7E\u5355\u5143",ad="\u5DE5\u5177\u680F",ld="\u6279\u91CF\u63D0\u4EA4",cd="\u5BFC\u51FA\u8BB0\u5F55",fd="\u5217\u8868\u89C6\u56FE",hd="\u7ED3\u675F\u65F6\u95F4",dd="\u5F00\u59CB\u65F6\u95F4",pd="\u5355\u4F4D",gd="\u7ED3\u679C",vd="\u5E01\u79CD",md="\u7ED3\u675F\u65E5\u671F",yd="\u5F00\u59CB\u65E5\u671F",Dd="\u8BF7\u9009\u62E9\u516C\u53F8\u540D\u79F0",Ed="\u8BF7\u9009\u62E9\u624B\u673A\u53F7/\u90AE\u7BB1",wd="\u8BF7\u9009\u62E9\u7B7E\u7AE0\u7C7B\u578B",Cd="\u8BF7\u9009\u62E9\u7B7E\u7F72\u4EBA",Ad="\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u7B7E\u7F72\u4EBA",bd="\u8BF7\u9009\u62E9\u7B7E\u7F72\u6587\u4EF6",Fd="\u8BF7\u9009\u62E9",_d="\u8BF7\u9009\u62E9\u7EC4\u7EC7",Bd="\u8BF7\u9009\u62E9\u90E8\u95E8",Sd="\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",Od="\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",Md="\u8BF7\u9009\u62E9\u5730\u5740",xd="\u5F39\u7A97\u786E\u8BA4\u65F6",Td="\u6807\u7B7E\u9875\u5207\u6362\u65F6",Id="\u884C\u9009\u4E2D\u65F6",Pd="\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",Nd="\u884C\u5220\u9664\u524D",$d="\u884C\u70B9\u51FB\u65F6",Rd="\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",Ld="\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",kd="\u91CD\u547D\u540D\u65F6",qd="\u4FDD\u5B58\u6587\u4EF6\u65F6",jd="\u6253\u5F00\u6587\u4EF6\u65F6",Ud="\u83B7\u53D6\u7126\u70B9\u65F6",Vd="\u5931\u53BB\u7126\u70B9\u65F6",zd="\u7528\u6237\u8F93\u5165\u65F6",Wd="\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",Gd="\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",Hd="\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",Qd="\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",Jd="\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",Zd="\u641C\u7D22\u65F6",Xd="\u503C\u53D1\u751F\u53D8\u5316\u65F6",Kd="\u6267\u884C\u5B8C\u6210\u65F6",Yd="\u70B9\u51FB\u65F6",ep="\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u6216\u90AE\u7BB1",tp="\u8BF7\u8F93\u5165\u65E5\u671F",rp="\u8BF7\u8F93\u5165\u81EA\u52A8\u7F16\u53F7",np="\u8BF7\u8F93\u5165",ip="\u9ED8\u8BA4\u6A21\u7248",up="\u5DE6\u53F3\u5E03\u5C40",op="\u4E0A\u4E0B\u5E03\u5C40",sp="\u53EA\u8BFB",ap="\u5FC5\u586B",lp="\u63D0\u793A\u6587\u5B57",cp="\u9690\u85CF\u6807\u9898",fp="\u6807\u9898\u5FC5\u586B",hp="\u7EC4\u7EC7\u5F62\u6001",dp="\u4E1A\u52A1\u7C7B\u578B",pp="\u786E\u5B9A\u8981\u5220\u9664\u6B64\u6761\u6570\u636E\u5417\uFF1F",gp="\u9690\u85CF",vp="\u6D41\u7A0B\u72B6\u6001",mp="\u5BA1\u6279\u901A\u8FC7\u5355\u636E",yp="\u5220\u9664",Dp="\u7F16\u8F91",Ep="\u67E5\u770B",wp="\u52A0\u8F7D\u81EA\u5B9A\u4E49\u63A7\u4EF6\u5F02\u5E38\uFF0C\u4F1A\u5F71\u54CD\u5230\u7684\u63A7\u4EF6\uFF1A{id}",Cp="\u5185\u7F6E\u7EC4\u4EF6\u52A0\u8F7D\u9519\u8BEF",Ap="\u5145\u6EE1\u6574\u884C",bp="\u6700\u5C0F\u503C",Fp="\u6700\u5927\u503C",_p="\u65B0\u5EFA\u6587\u6863",Bp="\u91CD\u7F6E",Sp="\u67E5\u8BE2",Op="\u660E\u7EC6",Mp="\u6253\u5370",xp="\u4FDD\u5B58\u8349\u7A3F",Tp="\u4FDD\u5B58",Ip="\u53D6\u6D88",Pp="\u4E0A\u4F20\u56FE\u7247",Np="\u53D1\u8D77\u7B7E\u7F72",$p="\u4E0A\u4F20\u9644\u4EF6",Rp="\u6211\u662F\u4E00\u4E2A\u94FE\u63A5",Lp="\u5F15\u7528\u5217\u8868",kp="\u9009\u9879\u4E00",qp="\u9009\u9879\u4E8C",jp="\u9009\u9879\u4E09",Up={isNotNumber:Ef,isNotString:wf,isNotObject:Cf,isNotArray:Af,isNotBoolean:bf,runtimeRequired:Ff,pleaseEnterCaption:_f,pleaseEnterCaptionTip:Bf,pleaseEnterRowCaption:Sf,pleaseEnterPlaceholder:Of,pleaseEnterFieldCode:Mf,pleaseEnterForm:xf,pleaseEnterList:Tf,pleaseEnterProcess:If,pleaseEnterLabel:Pf,pleaseEnterValue:Nf,bizKeyNotBindFiled:$f,pleaseSelectOneField:Rf,pleaseEnterNumberRange:Lf,pleaseEnterAValueGreaterThanMin:kf,pleaseEnterAValueLessThanMax:qf,numberRangeSetError:jf,stringRangeError:Uf,attachmentMaxSize:Vf,pleaseEnterTotalScoreSetting:zf,theTotalScoreMustNotBeLessThan1:Wf,scoreDefaultValueRange:Gf,attachmentLimitError:Hf,PleaseReselectTheOptionalQuantity:Qf,TheMaximumLengthIsGreaterThanTheMinimumLength:Jf,TheMinimumLengthIsGreaterThanTheMaximumLength:Zf,PleaseSelectTheCorrectOptionSettings:Xf,optionIdIsRepeat:Kf,optionIsRequired:Yf,pleaseEnterDataCode:eh,pleaseEnterValueFieldCode:th,pleaseEnterSvcCode:rh,pleaseBindAtLeastOneDisplayValue:nh,pleaseSelectProvince:ih,pleaseSelectCity:uh,pleaseSelectDistrict:oh,limitRowsCannotBeLessThan0:sh,TheNumberOfRowsCannotBeLessThanMinRows:ah,pleaseEnterColumnWidth:lh,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ch,pleaseCompleteAllRulesAndConditions:fh,pleaseSelectControl:hh,pleaseSelectAtLeastOneColumn:dh,pleaseSelectFillBackMode:ph,pleaseSelectDashboard:gh,rootNodeIsRequired:vh,theViewNameCannotBeEmpty:mh,pleaseSelectOcrType:yh,pleaseSelectAtLeastOneFieldToFillIn:Dh,pleaseChooseAtLeastOne:Eh,pleaseEnterButtonContent:wh,pleaseEnterDataCodeInDataSetting:Ch,pleaseEnterValueFieldCodeInDataSetting:Ah,pleaseEnterSvcCodeInDataSetting:bh,pleaseBindAtLeastOneDisplayValueInDataSetting:Fh,rootNodeIsRequiredInDataSetting:_h,pleaseEnterMaxHeight:Bh,pleaseEnterWatermark:Sh,pleaseEnterFileName:Oh,pleaseUploadAtLeastOnePrintTemplate:Mh,pleaseAssignBusiness:xh,pleaseAssignExternal:Th,pleaseEnterAliasCode:Ih,pleaseSelectDataCode:Ph,pleaseSelectSvcCode:Nh,pleaseSelectJoinFieldCode:$h,pleaseSelectMainFieldCode:Rh,pleaseSelectSortFieldCode:Lh,batchDeleteButton:kh,batchPrintListButton:qh,batchPrintRecordList:jh,button:Uh,createFormListButton:Vh,dashboard:zh,divider:Wh,exportListButton:Gh,formSelectButton:Hh,importRecordListButton:Qh,invoiceCheckButton:Jh,link:Zh,listSelectButton:Xh,ListViewSelect:Kh,operationButton:Yh,pagination:e0,submissionRecordListButton:t0,text:r0,textOcrButton:n0,title:i0,approvalStatusColumn:u0,array:o0,autoNumber:s0,custom:a0,decimal:l0,department:c0,employee:f0,file:h0,image:d0,location:p0,operation:g0,order:v0,people:m0,long:y0,timescope:D0,timestamp:E0,varchar:w0,gridLayoutWrap:C0,gridTable:A0,subTable:b0,address:F0,amount:_0,calc:B0,checkBox:S0,electronicSignature:O0,input:M0,number:x0,organizationSelection:T0,radio:I0,richText:P0,score:N0,searchNumberRange:$0,select:R0,selectMultiple:L0,selectRelation:k0,textarea:q0,tree:j0,vueFormItem:U0,vuePage:V0,WPS:z0,actionBar:W0,advancedContainer:G0,cardGroup:H0,col:Q0,dataView:J0,grid:Z0,gridLayoutContainer:X0,gridRow:K0,listView:Y0,page:ed,position:td,positioningContainer:rd,row:nd,subtableColumn:id,subtableRow:ud,tab:od,tabPane:sd,toolbox:ad,batchSubmissionListButton:ld,exportRecordListButton:cd,listViewSelect:fd,endTime:hd,startTime:dd,unit:pd,result:gd,currency:vd,endDate:md,startDate:yd,pleaseSelectCompanyName:Dd,pleaseSelectPhoneOrEmail:Ed,pleaseSelectSignType:wd,pleaseSelectSigner:Cd,pleaseSelectOnlyOne:Ad,pleaseSelectSignFile:bd,pleaseSelect:Fd,pleaseSelectOrg:_d,pleaseSelectDept:Bd,pleaseSelectEndDate:Sd,pleaseSelectStartDate:Od,pleaseChooseAddress:Md,modalConfirm:xd,tabChange:Td,rowSelected:Id,listDataImport:Pd,rowDelete:Nd,rowClick:$d,cellRender:Rd,onClickBtn:Ld,rename:kd,onSaveFile:qd,onOpenFile:jd,onFocus:Ud,onBlur:Vd,onInput:zd,listDataAdd:Wd,listDataDelete:Gd,listDataBack:Hd,listDataCreate:Qd,listDataChange:Jd,search:Zd,valueChange:Xd,finished:Kd,click:Yd,pleaseEnterNameorEmail:ep,pleaseEnterDate:tp,pleaseEnterAutonumber:rp,pleaseEnter:np,defaultTemplate:ip,left:up,top:op,default:"\u666E\u901A",readonly:sp,required:ap,textTip:lp,hideCaption:cp,titleRequired:fp,organizationalForm:hp,businessType:dp,deleteConfirm:pp,hide:gp,processStatus:vp,approvedDocuments:mp,delete:yp,edit:Dp,view:Ep,loadCtrlErrorTip:wp,loadCtrlError:Cp,fullLine:Ap,min:bp,max:Fp,createWPS:_p,reset:Bp,query:Sp,detailed:Op,print:Mp,draft:xp,save:Tp,cancel:Ip,uploadImg:Pp,signature:Np,uploadFile:$p,linkContent:Rp,referenceList:Lp,optionOne:kp,optionTwo:qp,optionThird:jp},Vp="Please enter a number",zp="Please enter a string",Wp="Please enter an object",Gp="Please enter an array",Hp="Please enter a boolean",Qp="{caption} Required",Jp="Please enter the title",Zp="Please enter the bubble prompt",Xp="Please enter the row title",Kp="Please enter the prompt text",Yp="Please bind data items",eg="Please bind the form",tg="Please bind the list",rg="Please bind the process",ng="Please enter the displayed value",ig="Please enter the stored value",ug="The document number is not bound to the data item",og="Please select at least one display field",sg="Please enter a value greater than or equal to {min} and less than or equal to {max}",ag="Please enter a value greater than or equal to {min}",lg="Please enter a value less than or equal to {max}",cg="The value range is set incorrectly",fg="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",hg="The attachment size must be between 0MB and 1000MB",dg="Please fill in the total score setting",pg="The total score cannot be less than 1",gg="The default value must be between {min} and {max}",vg="The number of attachment uploads exceeds the limit",mg="Please re-select the optional quantity",yg="The maximum length of the control must be greater than the minimum length",Dg="The minimum length of the control must be less than the maximum length",Eg="Please select the correct option setting",wg="Option ID cannot be repeated",Cg="Please enter at least one option",Ag="Please bind the data source",bg="Please bind the stored value",Fg="Please bind the service",_g="At least one display value must be bound",Bg="Please select a province",Sg="Please select a city",Og="Please select a district",Mg="The minimum number of lines to fill in cannot be less than 0",xg="The number of rows cannot be less than {min} rows",Tg="Please enter the column width",Ig="Please set the logical relationship of all rule conditions",Pg="Please complete all rules and conditions",Ng="please select control",$g="Please select the dashboard",Rg="View name cannot be empty",Lg="Please select recognition type",kg="Please select at least one field to fill in",qg="Please select at least one",jg="Please enter the button title",Ug="Please bind the business model in the data settings",Vg="Please bind storage values in data settings",zg="Please bind the service in the data settings",Wg="Please bind at least one display value in the data settings",Gg="Please select the root node in the data settings",Hg="Please enter the maximum height",Qg="The input content cannot be empty",Jg="Watermark cannot be empty",Zg="File name cannot be empty",Xg="Please upload at least one printing template!\uFF01",Kg="Please select a specific business department",Yg="Please select a specified external organization",ev="Please enter a sub table alias",tv="Please select the associated table to set the business model",rv="Please select the association table to set the binding service",nv="Select associated sub table fields",iv="Please select the associated main table field",uv="Please select the sort field",ov="\u6279\u91CF\u5220\u9664",sv="\u6279\u91CF\u6253\u5370",av="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",lv="\u6309\u94AE",cv="\u521B\u5EFA\u5355\u636E",fv="\u4EEA\u8868\u76D8",hv="\u5206\u5272\u7EBF",dv="\u5BFC\u51FA",pv="\u8868\u5355\u64CD\u4F5C",gv="\u5BFC\u5165",vv="\u53D1\u7968\u8BC6\u522B",mv="\u94FE\u63A5",yv="\u5217\u8868\u9009\u62E9",Dv="\u5217\u8868\u89C6\u56FE",Ev="\u64CD\u4F5C\u6309\u94AE",wv="\u5206\u9875",Cv="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",Av="\u8BF4\u660E\u6587\u5B57",bv="\u6587\u5B57\u8BC6\u522B",Fv="\u6807\u9898\u7EC4\u4EF6",_v="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",Bv="\u6570\u7EC4",Sv="\u81EA\u52A8\u7F16\u53F7",Ov="\u81EA\u5B9A\u4E49",Mv="\u6570\u503C",xv="\u90E8\u95E8",Tv="\u4EBA\u5458",Iv="\u9644\u4EF6",Pv="\u56FE\u7247",Nv="\u5730\u5740",$v="\u64CD\u4F5C",Rv="\u5E8F\u53F7",Lv="\u4EBA\u5458",kv="\u957F\u6587\u672C",qv="\u65E5\u671F\u533A\u95F4",jv="\u65E5\u671F",Uv="\u77ED\u6587\u672C",Vv="\u6362\u884C\u5BB9\u5668Wrap",zv="\u8868\u683C",Wv="\u660E\u7EC6\u5B50\u8868",Gv="\u5730\u5740",Hv="\u91D1\u989D",Qv="\u8BA1\u7B97\u516C\u5F0F",Jv="\u591A\u9009",Zv="\u7535\u5B50\u7B7E\u7AE0",Xv="\u5355\u884C\u6587\u672C",Kv="\u6570\u5B57",Yv="\u4E1A\u52A1\u7EC4\u7EC7",em="\u5355\u9009",tm="\u5BCC\u6587\u672C",rm="\u8BC4\u5206",nm="\u6570\u5B57\u533A\u95F4",im="\u4E0B\u62C9\u5355\u9009",um="\u4E0B\u62C9\u591A\u9009",om="\u5173\u8054\u5355\u9009",sm="\u591A\u884C\u6587\u672C",am="\u6811",lm="Vue\u5BB9\u5668",cm="Vue\u9875\u9762",fm="\u5728\u7EBF\u6587\u6863",hm="\u6309\u94AE\u64CD\u4F5C\u680F",dm="\u9AD8\u7EA7\u5BB9\u5668",pm="\u5206\u7EC4",gm="\u6805\u683C\u5217",vm="\u6570\u636E\u5BB9\u5668",mm="\u753B\u5E03",ym="\u6362\u884C\u5BB9\u5668",Dm="\u6805\u683C\u7B49\u5206\u884C",Em="\u5217\u8868\u5BB9\u5668",wm="\u81EA\u7531\u9875\u9762",Cm="\u5B9A\u4F4D\u5B50\u5BB9\u5668",Am="\u5B9A\u4F4D\u5BB9\u5668",bm="\u6805\u683C\u5E03\u5C40",Fm="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",_m="\u660E\u7EC6\u5B50\u8868\u884C",Bm="\u6807\u7B7E\u9875",Sm="\u6807\u7B7E\u5355\u5143",Om="\u5DE5\u5177\u680F",Mm="\u6279\u91CF\u63D0\u4EA4",xm="\u5BFC\u51FA\u8BB0\u5F55",Tm="\u5217\u8868\u89C6\u56FE",Im="\u5F15\u7528\u5217\u8868",Pm="\u9009\u9879\u4E00",Nm="\u9009\u9879\u4E8C",$m="\u9009\u9879\u4E09",Rm={isNotNumber:Vp,isNotString:zp,isNotObject:Wp,isNotArray:Gp,isNotBoolean:Hp,runtimeRequired:Qp,pleaseEnterCaption:Jp,pleaseEnterCaptionTip:Zp,pleaseEnterRowCaption:Xp,pleaseEnterPlaceholder:Kp,pleaseEnterFieldCode:Yp,pleaseEnterForm:eg,pleaseEnterList:tg,pleaseEnterProcess:rg,pleaseEnterLabel:ng,pleaseEnterValue:ig,bizKeyNotBindFiled:ug,pleaseSelectOneField:og,pleaseEnterNumberRange:sg,pleaseEnterAValueGreaterThanMin:ag,pleaseEnterAValueLessThanMax:lg,numberRangeSetError:cg,stringRangeError:fg,attachmentMaxSize:hg,pleaseEnterTotalScoreSetting:dg,theTotalScoreMustNotBeLessThan1:pg,scoreDefaultValueRange:gg,attachmentLimitError:vg,PleaseReselectTheOptionalQuantity:mg,TheMaximumLengthIsGreaterThanTheMinimumLength:yg,TheMinimumLengthIsGreaterThanTheMaximumLength:Dg,PleaseSelectTheCorrectOptionSettings:Eg,optionIdIsRepeat:wg,optionIsRequired:Cg,pleaseEnterDataCode:Ag,pleaseEnterValueFieldCode:bg,pleaseEnterSvcCode:Fg,pleaseBindAtLeastOneDisplayValue:_g,pleaseSelectProvince:Bg,pleaseSelectCity:Sg,pleaseSelectDistrict:Og,limitRowsCannotBeLessThan0:Mg,TheNumberOfRowsCannotBeLessThanMinRows:xg,pleaseEnterColumnWidth:Tg,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Ig,pleaseCompleteAllRulesAndConditions:Pg,pleaseSelectControl:Ng,pleaseSelectDashboard:$g,theViewNameCannotBeEmpty:Rg,pleaseSelectOcrType:Lg,pleaseSelectAtLeastOneFieldToFillIn:kg,pleaseChooseAtLeastOne:qg,pleaseEnterButtonContent:jg,pleaseEnterDataCodeInDataSetting:Ug,pleaseEnterValueFieldCodeInDataSetting:Vg,pleaseEnterSvcCodeInDataSetting:zg,pleaseBindAtLeastOneDisplayValueInDataSetting:Wg,rootNodeIsRequiredInDataSetting:Gg,pleaseEnterMaxHeight:Hg,pleaseEnter:Qg,pleaseEnterWatermark:Jg,pleaseEnterFileName:Zg,pleaseUploadAtLeastOnePrintTemplate:Xg,pleaseAssignBusiness:Kg,pleaseAssignExternal:Yg,pleaseEnterAliasCode:ev,pleaseSelectDataCode:tv,pleaseSelectSvcCode:rv,pleaseSelectJoinFieldCode:nv,pleaseSelectMainFieldCode:iv,pleaseSelectSortFieldCode:uv,batchDeleteButton:ov,batchPrintListButton:sv,batchPrintRecordList:av,button:lv,createFormListButton:cv,dashboard:fv,divider:hv,exportListButton:dv,formSelectButton:pv,importRecordListButton:gv,invoiceCheckButton:vv,link:mv,listSelectButton:yv,ListViewSelect:Dv,operationButton:Ev,pagination:wv,submissionRecordListButton:Cv,text:Av,textOcrButton:bv,title:Fv,approvalStatusColumn:_v,array:Bv,autoNumber:Sv,custom:Ov,decimal:Mv,department:xv,employee:Tv,file:Iv,image:Pv,location:Nv,operation:$v,order:Rv,people:Lv,long:kv,timescope:qv,timestamp:jv,varchar:Uv,gridLayoutWrap:Vv,gridTable:zv,subTable:Wv,address:Gv,amount:Hv,calc:Qv,checkBox:Jv,electronicSignature:Zv,input:Xv,number:Kv,organizationSelection:Yv,radio:em,richText:tm,score:rm,searchNumberRange:nm,select:im,selectMultiple:um,selectRelation:om,textarea:sm,tree:am,vueFormItem:lm,vuePage:cm,WPS:fm,actionBar:hm,advancedContainer:dm,cardGroup:pm,col:gm,dataView:vm,grid:mm,gridLayoutContainer:ym,gridRow:Dm,listView:Em,page:wm,position:Cm,positioningContainer:Am,row:bm,subtableColumn:Fm,subtableRow:_m,tab:Bm,tabPane:Sm,toolbox:Om,batchSubmissionListButton:Mm,exportRecordListButton:xm,listViewSelect:Tm,referenceList:Im,optionOne:Pm,optionTwo:Nm,optionThird:$m},Lm="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",km="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",qm="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",jm="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Um="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Vm="{caption}\u5FC5\u9808",zm="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Wm="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Gm="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Hm="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Qm="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Jm="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Zm="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Xm="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Km="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ym="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",e1="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",t1="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",r1="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",n1="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",i1="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",u1="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",o1="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",s1="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",a1="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",l1="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",c1="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",f1="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u6570\u304C\u5236\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059",h1="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",d1="\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",p1="\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",g1="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",v1="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",m1="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",y1="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",D1="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",E1="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",w1="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",C1="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",A1="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",b1="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",F1="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",_1="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",B1="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",S1="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",O1="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",M1="please select control",x1="\u30C0\u30C3\u30B7\u30E5\u30DC\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",T1="\u30D3\u30E5\u30FC\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",I1="\u8B58\u5225\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",P1="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",N1="\u5C11\u306A\u304F\u3068\u30821\u3064\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",$1="\u30DC\u30BF\u30F3\u306E\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",R1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",L1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u683C\u7D0D\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",k1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30B5\u30FC\u30D3\u30B9\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",q1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u306B\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u5024\u3092\u30D0\u30A4\u30F3\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",j1="\u30C7\u30FC\u30BF\u8A2D\u5B9A\u3067\u30EB\u30FC\u30C8\u30CE\u30FC\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",U1="\u6700\u5927\u9AD8\u3055\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",V1="\u5165\u529B\u5185\u5BB9\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",z1="\u900F\u304B\u3057\u3092\u7A7A\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",W1="\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u7A7A\u767D\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",G1="\u5370\u5237\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u5C11\u306A\u304F\u3068\u30821\u3064\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044\uFF01\uFF01",H1="\u6307\u5B9A\u3055\u308C\u305F\u30D3\u30B8\u30CD\u30B9\u90E8\u9580\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",Q1="\u5916\u90E8\u7D44\u7E54\u306E\u6307\u5B9A\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",J1="\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u5225\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Z1="\u95A2\u9023\u8868\u3092\u9078\u629E\u3057\u3066\u30D3\u30B8\u30CD\u30B9\u30E2\u30C7\u30EB\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044",X1="\u95A2\u9023\u30C6\u30FC\u30D6\u30EB\u8A2D\u5B9A\u30D0\u30A4\u30F3\u30C9\u30B5\u30FC\u30D3\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",K1="\u95A2\u9023\u30B5\u30D6\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u9078\u629E",Y1="\u95A2\u9023\u30DE\u30B9\u30BF\u30FC\u30C6\u30FC\u30D6\u30EB\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ey="\u30BD\u30FC\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ty="\u6279\u91CF\u5220\u9664",ry="\u6279\u91CF\u6253\u5370",ny="\u6279\u91CF\u6253\u5370\u8BB0\u5F55",iy="\u6309\u94AE",uy="\u521B\u5EFA\u5355\u636E",oy="\u4EEA\u8868\u76D8",sy="\u5206\u5272\u7EBF",ay="\u5BFC\u51FA",ly="\u8868\u5355\u64CD\u4F5C",cy="\u5BFC\u5165",fy="\u53D1\u7968\u8BC6\u522B",hy="\u94FE\u63A5",dy="\u5217\u8868\u9009\u62E9",py="\u5217\u8868\u89C6\u56FE",gy="\u64CD\u4F5C\u6309\u94AE",vy="\u5206\u9875",my="\u6279\u91CF\u63D0\u4EA4\u8BB0\u5F55",yy="\u8BF4\u660E\u6587\u5B57",Dy="\u6587\u5B57\u8BC6\u522B",Ey="\u6807\u9898\u7EC4\u4EF6",wy="\u5F53\u524D\u5BA1\u6279\u72B6\u6001",Cy="\u6570\u7EC4",Ay="\u81EA\u52A8\u7F16\u53F7",by="\u81EA\u5B9A\u4E49",Fy="\u6570\u503C",_y="\u90E8\u95E8",By="\u4EBA\u5458",Sy="\u9644\u4EF6",Oy="\u56FE\u7247",My="\u5730\u5740",xy="\u64CD\u4F5C",Ty="\u5E8F\u53F7",Iy="\u4EBA\u5458",Py="\u957F\u6587\u672C",Ny="\u65E5\u671F\u533A\u95F4",$y="\u65E5\u671F",Ry="\u77ED\u6587\u672C",Ly="\u6362\u884C\u5BB9\u5668Wrap",ky="\u8868\u683C",qy="\u660E\u7EC6\u5B50\u8868",jy="\u5730\u5740",Uy="\u91D1\u989D",Vy="\u8BA1\u7B97\u516C\u5F0F",zy="\u591A\u9009",Wy="\u7535\u5B50\u7B7E\u7AE0",Gy="\u5355\u884C\u6587\u672C",Hy="\u6570\u5B57",Qy="\u4E1A\u52A1\u7EC4\u7EC7",Jy="\u5355\u9009",Zy="\u5BCC\u6587\u672C",Xy="\u8BC4\u5206",Ky="\u6570\u5B57\u533A\u95F4",Yy="\u4E0B\u62C9\u5355\u9009",eD="\u4E0B\u62C9\u591A\u9009",tD="\u5173\u8054\u5355\u9009",rD="\u591A\u884C\u6587\u672C",nD="\u6811",iD="Vue\u5BB9\u5668",uD="Vue\u9875\u9762",oD="\u5728\u7EBF\u6587\u6863",sD="\u6309\u94AE\u64CD\u4F5C\u680F",aD="\u9AD8\u7EA7\u5BB9\u5668",lD="\u5206\u7EC4",cD="\u6805\u683C\u5217",fD="\u6570\u636E\u5BB9\u5668",hD="\u753B\u5E03",dD="\u6362\u884C\u5BB9\u5668",pD="\u6805\u683C\u7B49\u5206\u884C",gD="\u5217\u8868\u5BB9\u5668",vD="\u81EA\u7531\u9875\u9762",mD="\u5B9A\u4F4D\u5B50\u5BB9\u5668",yD="\u5B9A\u4F4D\u5BB9\u5668",DD="\u6805\u683C\u5E03\u5C40",ED="\u660E\u7EC6\u5B50\u8868\u5355\u5143\u683C",wD="\u660E\u7EC6\u5B50\u8868\u884C",CD="\u6807\u7B7E\u9875",AD="\u6807\u7B7E\u5355\u5143",bD="\u5DE5\u5177\u680F",FD="\u6279\u91CF\u63D0\u4EA4",_D="\u5BFC\u51FA\u8BB0\u5F55",BD="\u5217\u8868\u89C6\u56FE",SD="\u5F15\u7528\u5217\u8868",OD="\u9009\u9879\u4E00",MD="\u9009\u9879\u4E8C",xD="\u9009\u9879\u4E09",TD={isNotNumber:Lm,isNotString:km,isNotObject:qm,isNotArray:jm,isNotBoolean:Um,runtimeRequired:Vm,pleaseEnterCaption:zm,pleaseEnterCaptionTip:Wm,pleaseEnterRowCaption:Gm,pleaseEnterPlaceholder:Hm,pleaseEnterFieldCode:Qm,pleaseEnterForm:Jm,pleaseEnterList:Zm,pleaseEnterProcess:Xm,pleaseEnterLabel:Km,pleaseEnterValue:Ym,bizKeyNotBindFiled:e1,pleaseSelectOneField:t1,pleaseEnterNumberRange:r1,pleaseEnterAValueGreaterThanMin:n1,pleaseEnterAValueLessThanMax:i1,numberRangeSetError:u1,stringRangeError:o1,attachmentMaxSize:s1,pleaseEnterTotalScoreSetting:a1,theTotalScoreMustNotBeLessThan1:l1,scoreDefaultValueRange:c1,attachmentLimitError:f1,PleaseReselectTheOptionalQuantity:h1,TheMaximumLengthIsGreaterThanTheMinimumLength:d1,TheMinimumLengthIsGreaterThanTheMaximumLength:p1,PleaseSelectTheCorrectOptionSettings:g1,optionIdIsRepeat:v1,optionIsRequired:m1,pleaseEnterDataCode:y1,pleaseEnterValueFieldCode:D1,pleaseEnterSvcCode:E1,pleaseBindAtLeastOneDisplayValue:w1,pleaseSelectProvince:C1,pleaseSelectCity:A1,pleaseSelectDistrict:b1,limitRowsCannotBeLessThan0:F1,TheNumberOfRowsCannotBeLessThanMinRows:_1,pleaseEnterColumnWidth:B1,pleaseSetTheLogicalRelationshipOfAllRuleConditions:S1,pleaseCompleteAllRulesAndConditions:O1,pleaseSelectControl:M1,pleaseSelectDashboard:x1,theViewNameCannotBeEmpty:T1,pleaseSelectOcrType:I1,pleaseSelectAtLeastOneFieldToFillIn:P1,pleaseChooseAtLeastOne:N1,pleaseEnterButtonContent:$1,pleaseEnterDataCodeInDataSetting:R1,pleaseEnterValueFieldCodeInDataSetting:L1,pleaseEnterSvcCodeInDataSetting:k1,pleaseBindAtLeastOneDisplayValueInDataSetting:q1,rootNodeIsRequiredInDataSetting:j1,pleaseEnterMaxHeight:U1,pleaseEnter:V1,pleaseEnterWatermark:z1,pleaseEnterFileName:W1,pleaseUploadAtLeastOnePrintTemplate:G1,pleaseAssignBusiness:H1,pleaseAssignExternal:Q1,pleaseEnterAliasCode:J1,pleaseSelectDataCode:Z1,pleaseSelectSvcCode:X1,pleaseSelectJoinFieldCode:K1,pleaseSelectMainFieldCode:Y1,pleaseSelectSortFieldCode:ey,batchDeleteButton:ty,batchPrintListButton:ry,batchPrintRecordList:ny,button:iy,createFormListButton:uy,dashboard:oy,divider:sy,exportListButton:ay,formSelectButton:ly,importRecordListButton:cy,invoiceCheckButton:fy,link:hy,listSelectButton:dy,ListViewSelect:py,operationButton:gy,pagination:vy,submissionRecordListButton:my,text:yy,textOcrButton:Dy,title:Ey,approvalStatusColumn:wy,array:Cy,autoNumber:Ay,custom:by,decimal:Fy,department:_y,employee:By,file:Sy,image:Oy,location:My,operation:xy,order:Ty,people:Iy,long:Py,timescope:Ny,timestamp:$y,varchar:Ry,gridLayoutWrap:Ly,gridTable:ky,subTable:qy,address:jy,amount:Uy,calc:Vy,checkBox:zy,electronicSignature:Wy,input:Gy,number:Hy,organizationSelection:Qy,radio:Jy,richText:Zy,score:Xy,searchNumberRange:Ky,select:Yy,selectMultiple:eD,selectRelation:tD,textarea:rD,tree:nD,vueFormItem:iD,vuePage:uD,WPS:oD,actionBar:sD,advancedContainer:aD,cardGroup:lD,col:cD,dataView:fD,grid:hD,gridLayoutContainer:dD,gridRow:pD,listView:gD,page:vD,position:mD,positioningContainer:yD,row:DD,subtableColumn:ED,subtableRow:wD,tab:CD,tabPane:AD,toolbox:bD,batchSubmissionListButton:FD,exportRecordListButton:_D,listViewSelect:BD,referenceList:SD,optionOne:OD,optionTwo:MD,optionThird:xD},Zi={zhCN:Up,enUS:Rm,jaJP:TD},qt=function(t){return t.Number="Number",t.Operator="Operator",t.VariableInMainTable="VariableInMainTable",t.VariableInCurrentSubTable="VariableInCurrentSubTable",t.VariableInOtherSubTable="VariableInOtherSubTable",t.UndefinedVariable="UndefinedVariable",t}({}),An=function(t){return t.SUM="SUM",t.AVG="AVG",t.MAX="MAX",t.MIN="MIN",t}({}),Xi,fs=(Xi=window.localStorage.getItem("locale"))!==null&&Xi!==void 0?Xi:"zh-CN",he=function(t){return t.BASE="base",t.FORM="form",t.LAYOUT="layout",t.WRAP="wrap",t.COLUMN="column",t.LIST="list",t.SEARCH="search",t}({}),Te=function(t){return t.TITLE="title",t.LINK="link",t.BUTTON="button",t.DIVIDER="divider",t.TEXT="text",t.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",t.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",t.BATCH_DELETE_LIST_BUTTON="list-page-btn-batch-delete",t.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",t.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",t.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",t.EXPORT_LIST_BUTTON="list-page-btn-export-list",t.LIST_SELECT_BUTTON="list-select-button",t.ORGANIZATION_SELECTION="organization-selection",t.FORM_SELECT_BUTTON="form-select-button",t.LIST_VIEW_SELECT="list-view-select",t.TEXT_OCR_BUTTON="text-ocr-button",t.INVOICE_CHECK_BUTTON="invoice-check-button",t.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",t.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",t.COMMENT="comment",t.VARCHAR_COLUMN="varchar-column",t.TEXT_COLUMN="text-column",t.DECIMAL_COLUMN="decimal-column",t.TIMESCOPE_COLUMN="timescope-column",t.TIMESTAMP_COLUMN="timestamp-column",t.ARRAY_COLUMN="array-column",t.DEPARTMENT_COLUMN="department-column",t.AUTO_NUMBER_COLUMN="auto-number-column",t.FILE_COLUMN="file-column",t.IMAGE_COLUMN="image-column",t.PEOPLE_COLUMN="people-column",t.LOCATION_COLUMN="location-column",t.CUSTOM_COLUMN="custom-column",t.ORDER_COLUMN="order-column",t.OPERATION_COLUMN="operation-column",t.OPERATION_BUTTON="operation-button",t.EMPLOYEE_COLUMN="employee-column",t.Approval_Status_Column="approval-status-column",t.GROUP_COLUMN="group-column",t.ADDRESS="address",t.AMOUNT="amount",t.ATTACHMENT="attachment",t.AUTO_NUMBER="auto-number",t.CALC="calc",t.CHECKBOX="checkbox",t.DATE_PICKER="date-picker",t.DATE_RANGE="date-range",t.DEPARTMENT="department",t.EMPLOYEE="employee",t.IMAGE="image",t.INPUT="input",t.NUMBER="number",t.RADIO="radio",t.RICH_TEXT="rich-text",t.SCORE="score",t.SEARCH_DATE_RANGE="search-date-range",t.SEARCH_NUMBER_RANGE="search-number-range",t.SEARCH_INPUT="search-input",t.SELECT="select",t.SELECT_MULTIPLE="select-multiple",t.SELECT_RELATION="select-relation",t.VUE_FORM_ITEM="vue-form-item",t.TEXTAREA="textarea",t.EMAIL="email",t.FOOTER="footer",t.HEADER="header",t.ID_CARD="id-card",t.MOBILE="mobile",t.PHONE="phone",t.RADIO_IMAGE="radio-image",t.ELECTRONIC_SIGNATURE="electronic-signature",t.WPS="wps",t.CARD_GROUP="card-group",t.COL="col",t.GRID="grid",t.GRID_ROW="grid-row",t.GRID_TABLE_COLUMN="grid-table-column",t.GRID_LAYOUT_CONTAINER="grid-layout-container",t.ROW="row",t.TWO_COLUMNS="two-columns",t.SUBTABLE_COLUMN="subtable-column",t.SUBTABLE_ROW="subtable-row",t.TAB="tab",t.TAB_PANE="tab-pane",t.TOOLBOX="toolbox",t.DATA_VIEW="data-view",t.LIST_VIEW="list-view",t.ACTION_BAR="action-bar",t.TABLE_LAYOUT="table-layout",t.TABLE_LAYOUT_ROW="table-layout-row",t.TABLE_LAYOUT_COL="table-layout-col",t.TABLE_LAYOUT_WRAPPER="table-layout-wrapper",t.SUBTABLE="subtable",t.GRID_TABLE="grid-table",t.SIMPLE_SEARCH="simple-search",t.PAGINATION="pagination",t.CHECKBOX_IMAGE="checkbox-image",t.DASHBOARD="dashboard",t.TREE="tree",t.EMPLOYEE2="employee2",t.DEPARTMENT2="department2",t.GRID_LAYOUT_WRAP="grid-layout-wrap",t.VUE_PAGE="vue-page",t.REFERENCE_LIST="reference-list",t.STEP="step",t.STEP_PANE="step-pane",t}({}),qe=function(t){return t.VARCHAR="varchar",t.TEXT="text",t.ARRAY="array",t.ADDRESS="location",t.DECIMAL="decimal",t.DECIMAL_RANGE="decimal_range",t.TIMESTAMP="timestamp",t.EMPLOYEES="people",t.DEPARTMENTS="department",t.MONEY="money",t.TIMESCOPE="timescope",t.FILE="file",t.IMAGE="image",t.AUTO_NUMBER="auto_number",t.CALC="calc",t.LIST="list",t.JSON="json",t.ANY="ANY",t}({}),hs="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",ID=hs+"0123456789";function bn(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,e="",r=0;r<t;r++){var n=r===0?hs:ID,i=Math.random()*n.length;e+=n[parseInt(String(i),10)]}return e}function Ki(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function PD(t){if(Array.isArray(t))return Ki(t)}function ND(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ds(t,e,r){return e=Wr(e),kD(t,eu()?Reflect.construct(e,r||[],Wr(t).constructor):e.apply(t,r))}function ps(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fn(t,e,r){return eu()?Fn=Reflect.construct:Fn=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),l=new s;return o&&Gr(l,o.prototype),l},Fn.apply(null,arguments)}function Wr(t){return Wr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Wr(t)}function gs(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gr(t,e)}function $D(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function RD(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function LD(){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 kD(t,e){return e&&(qD(e)==="object"||typeof e=="function")?e:ND(t)}function Gr(t,e){return Gr=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Gr(t,e)}function vs(t){return PD(t)||RD(t)||jD(t)||LD()}function qD(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function jD(t,e){if(!!t){if(typeof t=="string")return Ki(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ki(t,e)}}function Yi(t){var e=typeof Map=="function"?new Map:void 0;return Yi=function(n){if(n===null||!$D(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Fn(n,arguments,Wr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Gr(i,n)},Yi(t)}function eu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(eu=function(){return!!t})()}var tu=console;function Cr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=e.slice(1);(n=tu).warn.apply(n,["\u{1F9D0} Driven Warning:"+e[0]].concat(vs(i)))}function ru(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=e.slice(1);(n=tu).log.apply(n,["\u{1F680} Driven Log:"+e[0]].concat(vs(i)))}function UD(t){return t+" \u{1F41B}\u{1F41B}\u{1F41B}"}var nu=function(t){gs(e,t);function e(r){ps(this,e);var n;return n=ds(this,e,[r]),n.name="\u{1F4A5} Driven Error",n.message=r?UD(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",n}return e}(Yi(Error)),VD=function(t){gs(e,t);function e(r){ps(this,e);var n;return n=ds(this,e,[r]),n.name="\u{1F6A8} Driven Reference Error",n}return e}(nu);function jt(t){throw new nu(t)}function ms(t){throw new VD(t)}function _n(t){tu.error(new nu(t))}function Ut(t,e){Array.isArray(t)&&t.map(function(r){switch(r.controlType){case"layout":Ut(r==null?void 0:r.children,e);break;case"wrap":Ut(r==null?void 0:r.children,e);break;case"search":Ut(r==null?void 0:r.children,e);break;case"form":e(r)}})}function zD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ys(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function WD(t,e,r){return e&&ys(t.prototype,e),r&&ys(t,r),t}function GD(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ds=function(){function t(){zD(this,t)}return WD(t,null,[{key:"getMessage",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i;return ue("CMD."+r,n,Zi==null||(i=Zi[fs.split("-").join("")])===null||i===void 0?void 0:i[r])}},{key:"resetI18n",value:function(){}},{key:"setLocale",value:function(r,n){}}]),t}();GD(Ds,"$i18n",Ds.resetI18n());function iu(t,e,r){var n=e.replace(/\[(\d)]/g,function(u,o){return"."+o}).split("."),i=!1;return n.reduce(function(u,o,a,s){var l=u;if(!!u){if(!Object.prototype.hasOwnProperty.call(u,o)){Cr("Can not set ".concat(e,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),u,u);return}return a===s.length-1&&!Object.is(l[o],r)&&(l[o]=r,i=!0),l[o]}},t),i}var Zt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function HD(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var uu={exports:{}};(function(t){(function(e){var r=function(p,y,D){if(!l(y)||f(y)||h(y)||g(y)||s(y))return y;var E,w=0,_=0;if(c(y))for(E=[],_=y.length;w<_;w++)E.push(r(p,y[w],D));else{E={};for(var O in y)Object.prototype.hasOwnProperty.call(y,O)&&(E[p(O,D)]=r(p,y[O],D))}return E},n=function(p,y){y=y||{};var D=y.separator||"_",E=y.split||/(?=[A-Z])/;return p.split(E).join(D)},i=function(p){return v(p)?p:(p=p.replace(/[\-_\s]+(.)?/g,function(y,D){return D?D.toUpperCase():""}),p.substr(0,1).toLowerCase()+p.substr(1))},u=function(p){var y=i(p);return y.substr(0,1).toUpperCase()+y.substr(1)},o=function(p,y){return n(p,y).toLowerCase()},a=Object.prototype.toString,s=function(p){return typeof p=="function"},l=function(p){return p===Object(p)},c=function(p){return a.call(p)=="[object Array]"},f=function(p){return a.call(p)=="[object Date]"},h=function(p){return a.call(p)=="[object RegExp]"},g=function(p){return a.call(p)=="[object Boolean]"},v=function(p){return p=p-0,p===p},d=function(p,y){var D=y&&"process"in y?y.process:y;return typeof D!="function"?p:function(E,w){return D(E,p,w)}},m={camelize:i,decamelize:o,pascalize:u,depascalize:o,camelizeKeys:function(p,y){return r(d(i,y),p)},decamelizeKeys:function(p,y){return r(d(o,y),p,y)},pascalizeKeys:function(p,y){return r(d(u,y),p)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=m:e.humps=m})(Zt)})(uu);var Es={};Object.defineProperty(Es,"__esModule",{value:!0});function ou(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(e=>typeof e!="object"||e===null?e:ou(e));{const e={};for(const r in t){const n=t[r];e[r]=typeof n!="object"||n===null?n:ou(n)}return e}}var QD=Es.default=ou;function Bn(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function ye(t){if(t!==void 0)return(typeof t=="undefined"?"undefined":Bn(t))==="object"?QD(t):t}function Ft(t){return Object.prototype.toString.call(t)==="[object Object]"}function JD(t){return t!=null&&(typeof t=="undefined"?"undefined":Bn(t))==="object"&&Array.isArray(t)===!1}function lr(t){return Array.isArray(t)}function Ke(t){return typeof t=="string"}function Sn(t){return typeof t=="number"}function ws(t){return typeof t=="function"}function ZD(t){return lr(t)&&t.every(function(e){return Ke(e)})}function Cs(t){return t===null||(typeof t=="undefined"?"undefined":Bn(t))!=="object"?t:(Object.keys(t).forEach(function(e){var r=t[e];r&&(typeof r=="undefined"?"undefined":Bn(r))==="object"&&!Object.isFrozen(r)&&Cs(r)}),Object.freeze(t))}function XD(t){return lr(t)&&t.every(function(e){return Sn(e)||e===""})}function As(t){return/^\[.*?]$/.test(t)}function On(t){return/^{.*?}$/.test(t)}function KD(t){return Object.values(Te).includes(t)}function su(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function YD(t){if(Array.isArray(t))return su(t)}function bs(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(l){r(l);return}a.done?e(s):Promise.resolve(s).then(n,i)}function eE(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){bs(u,n,i,o,a,"next",s)}function a(s){bs(u,n,i,o,a,"throw",s)}o(void 0)})}}function tE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function rE(t,e,r){return e&&Fs(t.prototype,e),r&&Fs(t,r),t}function _s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nE(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function iE(){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 au(t){return YD(t)||nE(t)||uE(t)||iE()}function uE(t,e){if(!!t){if(typeof t=="string")return su(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return su(t,e)}}function oE(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(c){return s([l,c])}}function s(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(c){l=[6,c],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var Bs=function(){function t(){tE(this,t),_s(this,"_events",new Map),_s(this,"debug",!1)}return rE(t,[{key:"emit",value:function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),u=1;u<n;u++)i[u-1]=arguments[u];return eE(function(){var o,a,s,l,c,f,h,g,v,d,m,p;return oE(this,function(y){switch(y.label){case 0:if(o=this._events.get(r),a=[],!o)return[3,10];s=o.slice(),l=!0,c=!1,f=void 0,y.label=1;case 1:y.trys.push([1,8,9,10]),h=s[Symbol.iterator](),y.label=2;case 2:if(l=(g=h.next()).done)return[3,7];if(v=g.value,!o.includes(v))return[3,6];y.label=3;case 3:return y.trys.push([3,5,,6]),this.debug&&ru.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(au(i))),[4,v.apply(null,au(i))];case 4:return d=y.sent(),this.debug&&ru.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(au(i),[d])),a.push(d),d===!1?[3,7]:[3,6];case 5:return m=y.sent(),_n(String(m)+":"+String(m.stack)),[3,6];case 6:return l=!0,[3,2];case 7:return[3,10];case 8:return p=y.sent(),c=!0,f=p,[3,10];case 9:try{!l&&h.return!=null&&h.return()}finally{if(c)throw f}return[7];case 10:return[2,a]}})}).call(this)}},{key:"on",value:function(r,n){if(this._events.has(r)){var i;(i=this._events.get(r))===null||i===void 0||i.push(n)}else this._events.set(r,[n])}},{key:"off",value:function(r,n){if(this._events.has(r)){var i=this._events.get(r),u=i==null?void 0:i.indexOf(n);i==null||i.splice(u,1)}}},{key:"delete",value:function(r){this._events.has(r)&&this._events.delete(r)}},{key:"clear",value:function(){this._events=new Map}}]),t}();function sE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ss(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function aE(t,e,r){return e&&Ss(t.prototype,e),r&&Ss(t,r),t}function lE(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var cE=[{key:"on_click",name:ue("CMD.click",null,"\u70B9\u51FB\u65F6"),code:"click"},{key:"on_click_finish",name:ue("CMD.finished",null,"\u6267\u884C\u5B8C\u6210\u65F6"),code:"click-finish"},{key:"on_change",name:ue("CMD.valueChange",null,"\u503C\u53D1\u751F\u53D8\u5316\u65F6"),code:"change"},{key:"on_search",name:ue("CMD.search",null,"\u641C\u7D22\u65F6"),code:"search"},{key:"on_file_actions",name:ue("CMD.onClickFileBtn",null,"\u70B9\u51FB\u6587\u4EF6\u6309\u94AE\u65F6"),code:"file-actions"},{key:"on_tree_search",name:ue("CMD.treeDataCreate",null,"\u6811\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6"),code:"tree-search"},{key:"on_list_change",name:ue("CMD.listDataChange",null,"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6"),code:"list-change"},{key:"on_list_search",name:ue("CMD.listDataCreate",null,"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6"),code:"list-search"},{key:"on_list_mounted",name:ue("CMD.listDataBack",null,"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6"),code:"list-mounted"},{key:"on_list_delete",name:ue("CMD.listDataDelete",null,"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6"),code:"list-delete"},{key:"on_list_before_insert",name:ue("CMD.listDataAdd",null,"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D"),code:"list-before-insert"},{key:"on_input",name:ue("CMD.onInput",null,"\u7528\u6237\u8F93\u5165\u65F6"),code:"input"},{key:"on_blur",name:ue("CMD.onBlur",null,"\u5931\u53BB\u7126\u70B9\u65F6"),code:"blur"},{key:"on_focus",name:ue("CMD.onFocus",null,"\u83B7\u53D6\u7126\u70B9\u65F6"),code:"focus"},{key:"on_wps_open",name:ue("CMD.onOpenFile",null,"\u6253\u5F00\u6587\u4EF6\u65F6"),code:"wps-open"},{key:"on_wps_save",name:ue("CMD.onSaveFile",null,"\u4FDD\u5B58\u6587\u4EF6\u65F6"),code:"wps-save"},{key:"on_wps_rename",name:ue("CMD.rename",null,"\u91CD\u547D\u540D\u65F6"),code:"wps-rename"},{key:"on_list_actions",name:ue("CMD.onClickBtn",null,"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6"),code:"list-actions"},{key:"on_list_render_operation",name:ue("CMD.cellRender",null,"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6"),code:"list-render-operation"},{key:"on_list_rowclick",name:ue("CMD.rowClick",null,"\u884C\u70B9\u51FB\u65F6"),code:"list-rowclick"},{key:"on_list_before_rowdelete",name:ue("CMD.rowDelete",null,"\u884C\u5220\u9664\u524D"),code:"list-before-rowdelete"},{key:"on_list_before_import",name:ue("CMD.listDataImport",null,"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D"),code:"list-before-import"},{key:"on_list_rows_checked",name:ue("CMD.rowSelected",null,"\u884C\u9009\u4E2D\u65F6"),code:"list-rows-checked"},{key:"on_change_tab",name:ue("CMD.tabChange",null,"\u6807\u7B7E\u9875\u5207\u6362\u65F6"),code:"change-tab"},{key:"on_modal_ok",name:ue("CMD.modalConfirm",null,"\u5F39\u7A97\u786E\u8BA4\u65F6"),code:"modal-ok"},{key:"on_change_steps",name:ue("CMD.stepsChange",null,"\u6B65\u9AA4\u5207\u6362\u65F6"),code:"change-steps"},{key:"on_option_selected",name:ue("CMD.optionSelected",null,"DOM\u70B9\u51FBoption\u4E8B\u4EF6"),code:"option_selected"}],Os=function(){function t(){sE(this,t)}return aE(t,null,[{key:"getEventsFromKeys",value:function(r){var n=typeof r=="string"?[r]:r;return t.events.filter(function(i){return n.includes(i.key)})}},{key:"getEventsFromControl",value:function(r){var n=[],i=r.eventKeys;n=n.concat(t.events.filter(function(o){return i.includes(o.key)}));var u=r.customEvents.map(function(o){var a=o.key;return o.namespace!==void 0&&o.namespace!==null&&o.namespace!==""&&(a=o.namespace+":"+o.key),{key:a,code:o.key,name:o.name}});return n=n.concat(u),n}}]),t}();lE(Os,"events",cE);function lu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fE(t){if(Array.isArray(t))return lu(t)}function hE(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dE(){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 Ms(t){return fE(t)||hE(t)||pE(t)||dE()}function pE(t,e){if(!!t){if(typeof t=="string")return lu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lu(t,e)}}function cu(t,e){var r;!((r=Object.getOwnPropertyDescriptors(t)[e])===null||r===void 0)&&r.enumerable&&Object.defineProperty(t,e,{enumerable:!1})}function xs(t,e,r){r!=="Runtime"&&(t.parent=e,cu(t,"parent"))}function gE(t,e,r){t.forEach(function(n){xs(n,e,r)})}var Ts=Symbol("targetKey");function Is(t){var e;return(e=t[Ts])!==null&&e!==void 0?e:t}function Ps(t,e,r){return gE(t,e,r),new Proxy(t,{get:function(i,u){for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];var l;return u===Ts?i:(l=Reflect).get.apply(l,[i,u].concat(Ms(a)))},set:function(i,u,o){for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];var c;if(lr(t)&&u==="length"&&o===t.length)return!0;var f=(c=Reflect).set.apply(c,[i,u,o].concat(Ms(s)));return Ft(o)&&xs(o,e,r),f}})}function fu(t,e,r,n,i){var u=n!=null?n:t,o=Ps(Is(r!=null?r:[]),u,i);Object.defineProperty(t,e,{get:function(){return o},set:function(s){o=Ps(Is(s),u,i)},enumerable:!0})}function vE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ns(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function mE(t,e,r){return e&&Ns(t.prototype,e),r&&Ns(t,r),t}function Xt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $s=[],Hr=function(){function t(e){vE(this,t),Xt(this,"registeredControlTypes",new Set),Xt(this,"controlConfigMap",new Map),Xt(this,"_controls",[]),Xt(this,"_type",void 0),this._type=e,this._initControls(e)}return mE(t,[{key:"registerControlConfig",value:function(r,n){return this.controlConfigMap.set(r,n),this}},{key:"getControlConfig",value:function(r){return this.controlConfigMap.get(r)}},{key:"getControls",value:function(){return this._controls}},{key:"register",value:function(r){r.__is_control__||jt("".concat(r.name," is not a Control"));var n=this._controls.findIndex(function(i){return i.controlType===r.controlType});return n>-1&&(Cr("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(n,1)),this.registeredControlTypes.add(r.controlType),this._controls.push(r),this}},{key:"isLayoutControl",value:function(r){return r.controlType===he.LAYOUT}},{key:"isFormControl",value:function(r){return r.controlType===he.FORM}},{key:"isListControl",value:function(r){return r.controlType===he.LIST}},{key:"isColumnControl",value:function(r){return r.controlType===he.COLUMN}},{key:"createControl",value:function(r,n){var i=this;if(Array.isArray(r))return r.map(function(c){return i.createControl(c,n)});if(r.children&&(r.children=r.children.map(function(c){return i.createControl(c,n)})),this.isListControl(r)){var u=r.props;u.headers&&(u.headers=u.headers.map(function(c){return i.createControl(c,n)}))}var o=this.getControlFormType(r.type);if(o){var a=r;if(typeof n=="function"){var s=n(a);s&&(a=s)}var l;return o.mode==="Runtime"?(l=a,l.fieldType=o.controlFieldType,this._setParentPrototypeToSchema(l,this)):l=new o(a),l}else jt("The constructor of ".concat(r.type," could not be found, please confirm that the constructor has been registered"))}},{key:"resetInstanceParent",value:function(r,n){delete r.parent,Object.defineProperty(r,"parent",{configurable:!0,get:function(){return n}}),cu(r,"parent")}},{key:"_setParentPrototypeToSchema",value:function(r,n){n._type==="Runtime"&&(Object.defineProperty(r,"parent",{configurable:!0,get:function(){var u=r.id,o=n._controlParentIdMap,a=n.instanceMap;if(!(!o||!a)){var s=o[u],l=a[u];if(!(!s&&!l)){var c=l.findIndex(function(g){return g==r}),f=a[s]||[],h;return f.length!==l.length?h=f[0]:h=f[c],h}}}}),cu(r,"parent"))}},{key:"createControlInstance",value:function(r,n){var i=this.getControlFormType(r);if(i)return new i(n)}},{key:"getControlFormType",value:function(r){return this._controls.find(function(n){return n.controlType===r})}},{key:"_initControls",value:function(r){var n=this;this.constructor.staticControls.forEach(function(i){n.register(i[r]),t.staticControlsRuntimeRules.set(i.Runtime.controlType,i.Property.RuntimeRules),i.Property.mode=r})}}],[{key:"staticGetRules",value:function(r,n){var i=t.staticControlsRuntimeRules.get(r),u=[];if(i){var o=new i(n);u=Array.from(o)}return u}},{key:"register",value:function(r,n){var i=r.Designer,u=r.Runtime,o=r.Property;(!i||!u||!i.__is_control__||!u.__is_control__)&&jt("".concat(r," is can't register as a Control"));var a=this.staticControls.findIndex(function(s){return s.Designer.controlType===i.controlType});return a>-1&&(Cr("The ".concat(i.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(a,1)),this.staticRegisteredTypes.add(i.controlType),this.staticControls.push(r),o.mode=n,this}}]),t}();Xt(Hr,"staticControlsRuntimeRules",new Map),Xt(Hr,"staticControls",$s),Xt(Hr,"staticRegisteredTypes",new Set($s.map(function(t){return t.Designer.controlType}))),Xt(Hr,"staticRegisteredConfigs",new Map);function cr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Me(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hu=function t(e){cr(this,t),Me(this,"dataCode",void 0),Me(this,"fieldCode",void 0),Me(this,"fieldType",void 0),Me(this,"aliasCode",void 0);var r;this.dataCode=(r=e==null?void 0:e.dataCode)!==null&&r!==void 0?r:"";var n;this.fieldCode=(n=e==null?void 0:e.fieldCode)!==null&&n!==void 0?n:"";var i;this.fieldType=(i=e==null?void 0:e.fieldType)!==null&&i!==void 0?i:"",this.aliasCode=e==null?void 0:e.aliasCode},yE=function t(e){cr(this,t),Me(this,"minWidth",void 0),Me(this,"maxWidth",void 0),Me(this,"flex",void 0);var r;this.minWidth=(r=e==null?void 0:e.minWidth)!==null&&r!==void 0?r:150,this.maxWidth=e==null?void 0:e.maxWidth;var n;this.flex=(n=e==null?void 0:e.flex)!==null&&n!==void 0?n:1},du=function t(e){cr(this,t),Me(this,"amount",void 0),Me(this,"currency",void 0);var r;this.amount=(r=e==null?void 0:e.amount)!==null&&r!==void 0?r:"";var n;this.currency=(n=e==null?void 0:e.currency)!==null&&n!==void 0?n:"CNY"},pu=function t(e){cr(this,t),Me(this,"min",void 0),Me(this,"max",void 0);var r;this.min=(r=e==null?void 0:e.min)!==null&&r!==void 0?r:"";var n;this.max=(n=e==null?void 0:e.max)!==null&&n!==void 0?n:""},gu=function t(e){cr(this,t),Me(this,"city",void 0),Me(this,"cityDisplay",void 0),Me(this,"district",void 0),Me(this,"districtDisplay",void 0),Me(this,"province",void 0),Me(this,"provinceDisplay",void 0);var r;this.city=(r=e==null?void 0:e.city)!==null&&r!==void 0?r:"";var n;this.cityDisplay=(n=e==null?void 0:e.cityDisplay)!==null&&n!==void 0?n:"";var i;this.district=(i=e==null?void 0:e.district)!==null&&i!==void 0?i:"";var u;this.districtDisplay=(u=e==null?void 0:e.districtDisplay)!==null&&u!==void 0?u:"";var o;this.province=(o=e==null?void 0:e.province)!==null&&o!==void 0?o:"";var a;this.provinceDisplay=(a=e==null?void 0:e.provinceDisplay)!==null&&a!==void 0?a:""},vu=function t(e){cr(this,t),Me(this,"result",void 0),Me(this,"unit",void 0);var r;this.result=(r=e==null?void 0:e.result)!==null&&r!==void 0?r:0;var n;this.unit=(n=e==null?void 0:e.unit)!==null&&n!==void 0?n:""},DE=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.READONLY=1]="READONLY",t[t.EDITABLE=2]="EDITABLE",t[t.PRINT=5]="PRINT",t}({}),EE=function t(e){cr(this,t),Me(this,"width",void 0),Me(this,"height",void 0),Me(this,"widthConfig",void 0),Me(this,"heightConfig",void 0);var r;this.width=(r=e==null?void 0:e.width)!==null&&r!==void 0?r:"";var n;this.height=(n=e==null?void 0:e.height)!==null&&n!==void 0?n:"";var i;this.widthConfig=(i=e==null?void 0:e.widthConfig)!==null&&i!==void 0?i:"fill";var u;this.heightConfig=(u=e==null?void 0:e.heightConfig)!==null&&u!==void 0?u:"fill"};function wE(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function CE(t,e,r){return e=Qr(e),FE(t,Du()?Reflect.construct(e,r||[],Qr(t).constructor):e.apply(t,r))}function mu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mn(t,e,r){return Du()?Mn=Reflect.construct:Mn=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),l=new s;return o&&Jr(l,o.prototype),l},Mn.apply(null,arguments)}function Vt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qr(t){return Qr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Qr(t)}function AE(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jr(t,e)}function bE(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function FE(t,e){return e&&(_E(e)==="object"||typeof e=="function")?e:wE(t)}function Jr(t,e){return Jr=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Jr(t,e)}function _E(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function yu(t){var e=typeof Map=="function"?new Map:void 0;return yu=function(n){if(n===null||!bE(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Mn(n,arguments,Qr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Jr(i,n)},yu(t)}function Du(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Du=function(){return!!t})()}var Eu=function t(e){mu(this,t),Vt(this,"isHide",{type:"boolean"})},Rs=function(t){AE(e,t);function e(r){return mu(this,e),CE(this,e)}return e}(yu(Array)),zt=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";mu(this,t),Vt(this,"isHide",void 0),Vt(this,"className",void 0),Vt(this,"style",void 0),Vt(this,"caption",void 0),Vt(this,"defaultState",void 0);var n;this.isHide=(n=e==null?void 0:e.isHide)!==null&&n!==void 0?n:!1,this.style=new EE(e==null?void 0:e.style);var i;this.caption=(i=e==null?void 0:e.caption)!==null&&i!==void 0?i:r};Vt(zt,"mode",void 0),Vt(zt,"Rules",Eu),Vt(zt,"RuntimeRules",Rs);function Pt(){return Pt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Pt.apply(this,arguments)}function BE(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function wu(t){return wu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},wu(t)}function xn(t,e){return xn=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xn(t,e)}function SE(){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(t){return!1}}function Tn(t,e,r){return SE()?Tn=Reflect.construct:Tn=function(i,u,o){var a=[null];a.push.apply(a,u);var s=Function.bind.apply(i,a),l=new s;return o&&xn(l,o.prototype),l},Tn.apply(null,arguments)}function OE(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Cu(t){var e=typeof Map=="function"?new Map:void 0;return Cu=function(n){if(n===null||!OE(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Tn(n,arguments,wu(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),xn(i,n)},Cu(t)}var ME=/%[sdj%]/g,Ls=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Ls=function(e,r){typeof console!="undefined"&&console.warn&&r.every(function(n){return typeof n=="string"})&&console.warn(e,r)});function Au(t){if(!t||!t.length)return null;var e={};return t.forEach(function(r){var n=r.field;e[n]=e[n]||[],e[n].push(r)}),e}function ot(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=1,i=e[0],u=e.length;if(typeof i=="function")return i.apply(null,e.slice(1));if(typeof i=="string"){var o=String(i).replace(ME,function(a){if(a==="%%")return"%";if(n>=u)return a;switch(a){case"%s":return String(e[n++]);case"%d":return Number(e[n++]);case"%j":try{return JSON.stringify(e[n++])}catch(s){return"[Circular]"}break;default:return a}});return o}return i}function xE(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function Re(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||xE(e)&&typeof t=="string"&&!t)}function TE(t,e,r){var n=[],i=0,u=t.length;function o(a){n.push.apply(n,a),i++,i===u&&r(n)}t.forEach(function(a){e(a,o)})}function ks(t,e,r){var n=0,i=t.length;function u(o){if(o&&o.length){r(o);return}var a=n;n=n+1,a<i?e(t[a],u):r([])}u([])}function IE(t){var e=[];return Object.keys(t).forEach(function(r){e.push.apply(e,t[r])}),e}var qs=function(t){BE(e,t);function e(r,n){var i;return i=t.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return e}(Cu(Error));function PE(t,e,r,n){if(e.first){var i=new Promise(function(f,h){var g=function(m){return n(m),m.length?h(new qs(m,Au(m))):f()},v=IE(t);ks(v,r,g)});return i.catch(function(f){return f}),i}var u=e.firstFields||[];u===!0&&(u=Object.keys(t));var o=Object.keys(t),a=o.length,s=0,l=[],c=new Promise(function(f,h){var g=function(d){if(l.push.apply(l,d),s++,s===a)return n(l),l.length?h(new qs(l,Au(l))):f()};o.length||(n(l),f()),o.forEach(function(v){var d=t[v];u.indexOf(v)!==-1?ks(d,r,g):TE(d,r,g)})});return c.catch(function(f){return f}),c}function js(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:typeof e=="function"?e():e,field:e.field||t.fullField}}}function Us(t,e){if(e){for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];typeof n=="object"&&typeof t[r]=="object"?t[r]=Pt(Pt({},t[r]),n):t[r]=n}}return t}function Vs(t,e,r,n,i,u){t.required&&(!r.hasOwnProperty(t.field)||Re(e,u||t.type))&&n.push(ot(i.messages.required,t.fullField))}function NE(t,e,r,n,i){(/^\s+$/.test(e)||e==="")&&n.push(ot(i.messages.whitespace,t.fullField))}var bu={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},Zr={integer:function(e){return Zr.number(e)&&parseInt(e,10)===e},float:function(e){return Zr.number(e)&&!Zr.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(r){return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Zr.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(bu.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(bu.url)},hex:function(e){return typeof e=="string"&&!!e.match(bu.hex)}};function $E(t,e,r,n,i){if(t.required&&e===void 0){Vs(t,e,r,n,i);return}var u=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;u.indexOf(o)>-1?Zr[o](e)||n.push(ot(i.messages.types[o],t.fullField,t.type)):o&&typeof e!==t.type&&n.push(ot(i.messages.types[o],t.fullField,t.type))}function RE(t,e,r,n,i){var u=typeof t.len=="number",o=typeof t.min=="number",a=typeof t.max=="number",s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=e,c=null,f=typeof e=="number",h=typeof e=="string",g=Array.isArray(e);if(f?c="number":h?c="string":g&&(c="array"),!c)return!1;g&&(l=e.length),h&&(l=e.replace(s,"_").length),u?l!==t.len&&n.push(ot(i.messages[c].len,t.fullField,t.len)):o&&!a&&l<t.min?n.push(ot(i.messages[c].min,t.fullField,t.min)):a&&!o&&l>t.max?n.push(ot(i.messages[c].max,t.fullField,t.max)):o&&a&&(l<t.min||l>t.max)&&n.push(ot(i.messages[c].range,t.fullField,t.min,t.max))}var Ar="enum";function LE(t,e,r,n,i){t[Ar]=Array.isArray(t[Ar])?t[Ar]:[],t[Ar].indexOf(e)===-1&&n.push(ot(i.messages[Ar],t.fullField,t[Ar].join(", ")))}function kE(t,e,r,n,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||n.push(ot(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var u=new RegExp(t.pattern);u.test(e)||n.push(ot(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}}var ce={required:Vs,whitespace:NE,type:$E,range:RE,enum:LE,pattern:kE};function qE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"string")&&!t.required)return r();ce.required(t,e,n,u,i,"string"),Re(e,"string")||(ce.type(t,e,n,u,i),ce.range(t,e,n,u,i),ce.pattern(t,e,n,u,i),t.whitespace===!0&&ce.whitespace(t,e,n,u,i))}r(u)}function jE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();ce.required(t,e,n,u,i),e!==void 0&&ce.type(t,e,n,u,i)}r(u)}function UE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(e===""&&(e=void 0),Re(e)&&!t.required)return r();ce.required(t,e,n,u,i),e!==void 0&&(ce.type(t,e,n,u,i),ce.range(t,e,n,u,i))}r(u)}function VE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();ce.required(t,e,n,u,i),e!==void 0&&ce.type(t,e,n,u,i)}r(u)}function zE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();ce.required(t,e,n,u,i),Re(e)||ce.type(t,e,n,u,i)}r(u)}function WE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();ce.required(t,e,n,u,i),e!==void 0&&(ce.type(t,e,n,u,i),ce.range(t,e,n,u,i))}r(u)}function GE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();ce.required(t,e,n,u,i),e!==void 0&&(ce.type(t,e,n,u,i),ce.range(t,e,n,u,i))}r(u)}function HE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(e==null&&!t.required)return r();ce.required(t,e,n,u,i,"array"),e!=null&&(ce.type(t,e,n,u,i),ce.range(t,e,n,u,i))}r(u)}function QE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();ce.required(t,e,n,u,i),e!==void 0&&ce.type(t,e,n,u,i)}r(u)}var JE="enum";function ZE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();ce.required(t,e,n,u,i),e!==void 0&&ce[JE](t,e,n,u,i)}r(u)}function XE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"string")&&!t.required)return r();ce.required(t,e,n,u,i),Re(e,"string")||ce.pattern(t,e,n,u,i)}r(u)}function KE(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e,"date")&&!t.required)return r();if(ce.required(t,e,n,u,i),!Re(e,"date")){var a;e instanceof Date?a=e:a=new Date(e),ce.type(t,a,n,u,i),a&&ce.range(t,a.getTime(),n,u,i)}}r(u)}function YE(t,e,r,n,i){var u=[],o=Array.isArray(e)?"array":typeof e;ce.required(t,e,n,u,i,o),r(u)}function Fu(t,e,r,n,i){var u=t.type,o=[],a=t.required||!t.required&&n.hasOwnProperty(t.field);if(a){if(Re(e,u)&&!t.required)return r();ce.required(t,e,n,o,i,u),Re(e,u)||ce.type(t,e,n,o,i)}r(o)}function ew(t,e,r,n,i){var u=[],o=t.required||!t.required&&n.hasOwnProperty(t.field);if(o){if(Re(e)&&!t.required)return r();ce.required(t,e,n,u,i)}r(u)}var Xr={string:qE,method:jE,number:UE,boolean:VE,regexp:zE,integer:WE,float:GE,array:HE,object:QE,enum:ZE,pattern:XE,date:KE,url:Fu,hex:Fu,email:Fu,required:YE,any:ew};function _u(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Bu=_u();function Kt(t){this.rules=null,this._messages=Bu,this.define(t)}Kt.prototype={messages:function(e){return e&&(this._messages=Us(_u(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var r,n;for(r in e)e.hasOwnProperty(r)&&(n=e[r],this.rules[r]=Array.isArray(n)?n:[n])},validate:function(e,r,n){var i=this;r===void 0&&(r={}),n===void 0&&(n=function(){});var u=e,o=r,a=n;if(typeof o=="function"&&(a=o,o={}),!this.rules||Object.keys(this.rules).length===0)return a&&a(),Promise.resolve();function s(d){var m,p=[],y={};function D(E){if(Array.isArray(E)){var w;p=(w=p).concat.apply(w,E)}else p.push(E)}for(m=0;m<d.length;m++)D(d[m]);p.length?y=Au(p):(p=null,y=null),a(p,y)}if(o.messages){var l=this.messages();l===Bu&&(l=_u()),Us(l,o.messages),o.messages=l}else o.messages=this.messages();var c,f,h={},g=o.keys||Object.keys(this.rules);g.forEach(function(d){c=i.rules[d],f=u[d],c.forEach(function(m){var p=m;typeof p.transform=="function"&&(u===e&&(u=Pt({},u)),f=u[d]=p.transform(f)),typeof p=="function"?p={validator:p}:p=Pt({},p),p.validator=i.getValidationMethod(p),p.field=d,p.fullField=p.fullField||d,p.type=i.getType(p),p.validator&&(h[d]=h[d]||[],h[d].push({rule:p,value:f,source:u,field:d}))})});var v={};return PE(h,o,function(d,m){var p=d.rule,y=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");y=y&&(p.required||!p.required&&d.value),p.field=d.field;function D(_,O){return Pt(Pt({},O),{},{fullField:p.fullField+"."+_})}function E(_){_===void 0&&(_=[]);var O=_;if(Array.isArray(O)||(O=[O]),!o.suppressWarning&&O.length&&Kt.warning("async-validator:",O),O.length&&p.message!==void 0&&(O=[].concat(p.message)),O=O.map(js(p)),o.first&&O.length)return v[p.field]=1,m(O);if(!y)m(O);else{if(p.required&&!d.value)return p.message!==void 0?O=[].concat(p.message).map(js(p)):o.error&&(O=[o.error(p,ot(o.messages.required,p.field))]),m(O);var C={};if(p.defaultField)for(var b in d.value)d.value.hasOwnProperty(b)&&(C[b]=p.defaultField);C=Pt(Pt({},C),d.rule.fields);for(var S in C)if(C.hasOwnProperty(S)){var F=Array.isArray(C[S])?C[S]:[C[S]];C[S]=F.map(D.bind(null,S))}var R=new Kt(C);R.messages(o.messages),d.rule.options&&(d.rule.options.messages=o.messages,d.rule.options.error=o.error),R.validate(d.value,d.rule.options||o,function(X){var Y=[];O&&O.length&&Y.push.apply(Y,O),X&&X.length&&Y.push.apply(Y,X),m(Y.length?Y:null)})}}var w;p.asyncValidator?w=p.asyncValidator(p,d.value,E,d.source,o):p.validator&&(w=p.validator(p,d.value,E,d.source,o),w===!0?E():w===!1?E(p.message||p.field+" fails"):w instanceof Array?E(w):w instanceof Error&&E(w.message)),w&&w.then&&w.then(function(){return E()},function(_){return E(_)})},function(d){s(d)})},getType:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!Xr.hasOwnProperty(e.type))throw new Error(ot("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if(typeof e.validator=="function")return e.validator;var r=Object.keys(e),n=r.indexOf("message");return n!==-1&&r.splice(n,1),r.length===1&&r[0]==="required"?Xr.required:Xr[this.getType(e)]||!1}},Kt.register=function(e,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Xr[e]=r},Kt.warning=Ls,Kt.messages=Bu,Kt.validators=Xr;var tw={required:ue("CMD.aad41751712156995"),maxLength:ue("CMD.890d1751712141808"),minLength:ue("CMD.bb9b1751712143625"),string:{range:ue("CMD.f7131751712147855")}};function rw(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Kt(t);return r.messages(Object.assign(tw,e)),r}var nw=new Bs;function Su(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function iw(t){if(Array.isArray(t))return t}function uw(t){if(Array.isArray(t))return Su(t)}function zs(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(l){r(l);return}a.done?e(s):Promise.resolve(s).then(n,i)}function Ws(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){zs(u,n,i,o,a,"next",s)}function a(s){zs(u,n,i,o,a,"throw",s)}o(void 0)})}}function ow(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function sw(t,e,r){return e&&Gs(t.prototype,e),r&&Gs(t,r),t}function pe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hs(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Qs(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function aw(){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 lw(){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 Js(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){pe(t,i,r[i])})}return t}function cw(t){return iw(t)||Qs(t)||Zs(t)||aw()}function Ou(t){return uw(t)||Qs(t)||Zs(t)||lw()}function fw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Zs(t,e){if(!!t){if(typeof t=="string")return Su(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Su(t,e)}}function Xs(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(c){return s([l,c])}}function s(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(c){l=[6,c],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var ze=function(){function e(r){var n=this;ow(this,e),pe(this,"id",void 0),pe(this,"name",void 0),pe(this,"icon",void 0),pe(this,"type",void 0),pe(this,"controlType",void 0),pe(this,"props",void 0),pe(this,"setting",[]),pe(this,"fieldType",void 0),pe(this,"eventKeys",[]),pe(this,"customEvents",[]),pe(this,"parent",null),pe(this,"slots",void 0),pe(this,"slotPosition",void 0),pe(this,"updateSetting",Ys),pe(this,"removeSetting",Ks),this._callControlHooks("preInstance",r);var i=Hs(this,e)?this.constructor:void 0,u=i.controlName,o=i.controlIcon,a=i.controlType,s=i.controlFieldType,l=i.controlEventKeys,c=i.controlCustomEvents,f=i.name,h=i.setting,g=i.slots,v=i.slotPosition;u&&o&&a||ms("The ".concat(f," controlName,controlIcon,controlType is not define"));var d;this.id=(d=r==null?void 0:r.id)!==null&&d!==void 0?d:bn(10),this.name=u,this.icon=o;var m;this.type=(m=r==null?void 0:r.type)!==null&&m!==void 0?m:a,this.props=new zt(r==null?void 0:r.props,(Hs(this,e)?this.constructor:void 0).controlName);var p;this.controlType=(p=r==null?void 0:r.controlType)!==null&&p!==void 0?p:"base",this.setting=ye(h);var y;this.fieldType=(y=r==null?void 0:r.fieldType)!==null&&y!==void 0?y:s,this.eventKeys=ye(l),this.customEvents=ye(c),this.slots=ye(g),this.slotPosition=ye(v),Promise.resolve().then(function(){n._callControlHooks("postInstance",r)})}return sw(e,[{key:"rules",get:function(){var n=this.props.constructor.Rules;return n?new n(this.props):{}}},{key:"_callControlHooks",value:function(){for(var n=arguments.length,i=new Array(n),u=0;u<n;u++)i[u]=arguments[u];var o,a=cw(i),s=a[0],l=a.slice(1);return(o=nw).emit.apply(o,[s,this].concat(Ou(l)))}},{key:"preUpdate",value:function(n,i){this._callControlHooks("preUpdateProps",n,i)}},{key:"postUpdate",value:function(n,i){this._callControlHooks("postUpdateProps",n,i)}},{key:"updateProps",value:function(n,i){this.preUpdate(n,i),iu(this.props,n,i),this.postUpdate(n,i)}},{key:"preValidate",value:function(){return Ws(function(){var n,i,u;return Xs(this,function(o){switch(o.label){case 0:return n=Js({},this.rules),[4,this._callControlHooks("preValidate",n)];case 1:return i=o.sent(),u=i[i.length-1],[2,u===!1?void 0:u]}})}).call(this)}},{key:"validate",value:function(n,i){return Ws(function(){var u,o,a,s;return Xs(this,function(l){switch(l.label){case 0:return[4,this.preValidate()];case 1:u=l.sent(),o=u!==void 0?u:Js({},this.rules),Array.isArray(i)&&i.forEach(function(c){o.hasOwnProperty(c)&&delete o[c]}),a=rw(o,n),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,a.validate(this.props)];case 3:return l.sent(),[2,!0];case 4:throw s=l.sent(),s.control||(s.control=this),s;case 5:return[2]}})}).call(this)}},{key:"toDataBindModel",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,u=this.id,o=this.type,a=this.props,s=a.dataBind,l=a.datasourceBind,c=a.optionConfig,f=a.caption,h=a.required,g=a.maxLength,v=a.options,d=a.encrypted,m=a.encryptedMode;if(!(!i&&!s&&!l)){var p={parentId:n,fieldType:i,controlId:u,caption:f,type:o,props:{}};switch(s&&(p.dataBind=s),c){case"datasource":case void 0:l&&(p.datasourceBind=l);break;case"custom":p.props.options=v;break}return h!==void 0&&(p.required=h),g!==void 0&&(p.maxLength=g),d!==void 0&&(p.encrypted=d),m!==void 0&&(p.encryptedMode=m),p}}},{key:"preToSchema",value:function(){this._callControlHooks("preToSchema",this)}},{key:"toSchema",value:function(){return this.preToSchema(),{id:this.id,type:this.type,props:ye(this.props),fieldType:this.fieldType,controlType:this.controlType}}}],[{key:"updateBasicControl",value:function(n,i){if(n==="setting"){if(i.add){var u;(u=this.setting).push.apply(u,Ou(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}}}]),e}();pe(ze,"mode","Designer"),pe(ze,"slots",void 0),pe(ze,"slotPosition",void 0),pe(ze,"controlName",ue("CMD.7baf1751712168384")),pe(ze,"controlIcon","icon"),pe(ze,"controlType","control"),pe(ze,"controlFieldType",void 0),pe(ze,"controlEventKeys",[]),pe(ze,"controlCustomEvents",[]),pe(ze,"setting",[]),pe(ze,"__is_control__",!0),pe(ze,"removeSettingItem",Ks),pe(ze,"updateSettingItem",Ys);function Ks(t){var e=this,r=Array.isArray(t)?t:[t];r.forEach(function(n){var i,u=typeof n!="string",o=(i=e.setting)===null||i===void 0?void 0:i.findIndex(function(l){return l.key===(u?n.key:n)});if(o!==-1){var a,s;u?e.setting[o].showItems=(a=e.setting[o].showItems)===null||a===void 0?void 0:a.filter(function(l){return!n.hideItems.includes(l)}):e.setting.splice(o,1),u&&!(!((s=e.setting[o].showItems)===null||s===void 0)&&s.length)&&e.setting.splice(o,1)}})}function Ys(t,e){var r=this,n=typeof t=="string"?[t]:t;n.forEach(function(i){var u=r.setting.find(function(l){return l.key===i});if(u){if(typeof e=="boolean")u.visible=e;else if((typeof e=="undefined"?"undefined":fw(e))==="object"){var o,a=(o=e.type)!==null&&o!==void 0?o:"replace";if(a==="replace")u.showItems=e.showItems;else{var s;(s=u.showItems).push.apply(s,Ou(e.showItems))}}}})}function hw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ea(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function dw(t,e,r){return e&&ea(t.prototype,e),r&&ea(t,r),t}function st(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pw(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var Kr=function(){function e(r){hw(this,e),st(this,"id",void 0),st(this,"type",void 0),st(this,"controlType",void 0),st(this,"props",void 0),st(this,"fieldType",void 0),st(this,"customEvents",[]),st(this,"pageStatus",void 0),st(this,"parent",null);var n=pw(this,e)?this.constructor:void 0,i=n.controlType,u=n.controlFieldType,o=n.name,a=n.controlCustomEvents;i||ms("The ".concat(o," controlType is not define"));var s;this.id=(s=r==null?void 0:r.id)!==null&&s!==void 0?s:bn(10);var l;this.type=(l=r==null?void 0:r.type)!==null&&l!==void 0?l:i,this.props=new zt(r==null?void 0:r.props),this.customEvents=a;var c;this.controlType=(c=r==null?void 0:r.controlType)!==null&&c!==void 0?c:"base";var f;this.fieldType=(f=r==null?void 0:r.fieldType)!==null&&f!==void 0?f:u;var h;this.pageStatus=(h=r==null?void 0:r.pageStatus)!==null&&h!==void 0?h:DE.UNKNOWN}return dw(e,[{key:"rules",get:function(){var n=this.props.constructor.RuntimeRules;if(n){var i=new n(this.props);return Array.from(i)}return[]}}]),e}();st(Kr,"mode","Runtime"),st(Kr,"controlType","control"),st(Kr,"controlFieldType",void 0),st(Kr,"__is_control__",!0),st(Kr,"controlCustomEvents",[]);function at(t){return(t==null?void 0:t.dataCode)!==void 0&&(t==null?void 0:t.fieldCode)!==void 0}function gw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mu(t,e,r){return e=In(e),vw(t,ta()?Reflect.construct(e,r||[],In(t).constructor):e.apply(t,r))}function xu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function In(t){return In=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},In(t)}function Tu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Iu(t,e)}function vw(t,e){return e&&(mw(e)==="object"||typeof e=="function")?e:gw(t)}function Iu(t,e){return Iu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Iu(t,e)}function mw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function ta(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ta=function(){return!!t})()}var yw=function(t){Tu(e,t);function e(r){xu(this,e);var n;n=Mu(this,e,[r]),xe(n,"dataBind",{}),xe(n,"caption",{type:"string",required:!0,message:ue("CMD.pleaseEnterCaption",null,"\u8BF7\u8F93\u5165\u6807\u9898")}),xe(n,"isHideCaption",{type:"boolean"}),xe(n,"labelPosition",{type:"enum",enum:["top","left"]}),xe(n,"defaultState",{type:"enum",enum:["default","readonly"]}),xe(n,"required",{type:"boolean"}),xe(n,"captionTip",{type:"string",required:!1,message:ue("CMD.pleaseEnterCaptionTip",null,"\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED")});var i={fieldCode:{type:"string",required:!0,message:ue("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")},dataCode:{type:"string",required:!0,message:ue("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")}};if(at(r.dataBind))n.dataBind={type:"object",required:!0,fields:ye(i),message:ue("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")};else{var u={type:"object",required:!0,fields:{},message:ue("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")};Object.keys(r.dataBind).forEach(function(o){u.fields[o]={type:"object",required:!0,fields:ye(i),message:ue("CMD.pleaseEnterFieldCode",null,"\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879")}}),n.dataBind=u}return r.isShowCaptionTip&&(n.captionTip.required=!0),n}return e}(Eu),Dw=function(t){Tu(e,t);function e(r){xu(this,e);var n;n=Mu(this,e,[r]);var i=r.isHide?!1:r.required;return i&&n.push({type:"string",required:i,message:r.requiredMessage!==""?r.requiredMessage:ue("CMD.runtimeRequired",{caption:r.caption},"{caption}\u5FC5\u586B")}),n}return e}(Rs),Pu=function(t){Tu(e,t);function e(r){xu(this,e);var n;n=Mu(this,e,[r]),xe(n,"caption",void 0),xe(n,"captionSize",void 0),xe(n,"captionColor",void 0),xe(n,"isCaptionItalic",void 0),xe(n,"isHideCaption",void 0),xe(n,"isShowCaptionTip",void 0),xe(n,"captionTip",void 0),xe(n,"labelPosition",void 0),xe(n,"dataBind",void 0),xe(n,"defaultValue",void 0),xe(n,"placeholder",void 0),xe(n,"defaultState",void 0),xe(n,"required",void 0),xe(n,"requiredMessage",void 0);var i;n.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"";var u;n.captionSize=(u=r==null?void 0:r.captionSize)!==null&&u!==void 0?u:"";var o;n.captionColor=(o=r==null?void 0:r.captionColor)!==null&&o!==void 0?o:"";var a;n.isCaptionItalic=(a=r==null?void 0:r.isCaptionItalic)!==null&&a!==void 0?a:!1;var s;n.isHideCaption=(s=r==null?void 0:r.isHideCaption)!==null&&s!==void 0?s:!1;var l;n.isShowCaptionTip=(l=r==null?void 0:r.isShowCaptionTip)!==null&&l!==void 0?l:!1;var c;n.captionTip=(c=r==null?void 0:r.captionTip)!==null&&c!==void 0?c:"";var f;n.defaultState=(f=r==null?void 0:r.defaultState)!==null&&f!==void 0?f:"default";var h;n.labelPosition=(h=r==null?void 0:r.labelPosition)!==null&&h!==void 0?h:"top";var g;n.placeholder=(g=r==null?void 0:r.placeholder)!==null&&g!==void 0?g:"";var v;n.required=(v=r==null?void 0:r.required)!==null&&v!==void 0?v:!1;var d;n.requiredMessage=(d=r==null?void 0:r.requiredMessage)!==null&&d!==void 0?d:"",n.dataBind=new hu(r==null?void 0:r.dataBind);var m;return n.defaultValue=(m=r==null?void 0:r.defaultValue)!==null&&m!==void 0?m:"",n}return e}(zt);xe(Pu,"Rules",yw),xe(Pu,"RuntimeRules",Dw);function Ew(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ww(t,e,r){return e=Nn(e),bw(t,ra()?Reflect.construct(e,r||[],Nn(t).constructor):e.apply(t,r))}function Cw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nn(t){return Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Nn(t)}function Aw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nu(t,e)}function bw(t,e){return e&&(Fw(e)==="object"||typeof e=="function")?e:Ew(t)}function Nu(t,e){return Nu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Nu(t,e)}function Fw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function ra(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ra=function(){return!!t})()}var na=function(t){Aw(e,t);function e(r){Cw(this,e);var n;return n=ww(this,e,[r]),Pn(n,"controlType","form"),Pn(n,"props",void 0),n.props=new Pu(r==null?void 0:r.props),n}return e}(ze);Pn(na,"controlEventKeys",["on_change","on_focus","on_blur"]),Pn(na,"controlCustomAttributes",void 0);function _w(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bw(t,e,r){return e=$n(e),Mw(t,ia()?Reflect.construct(e,r||[],$n(t).constructor):e.apply(t,r))}function Sw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $n(t){return $n=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},$n(t)}function Ow(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$u(t,e)}function Mw(t,e){return e&&(xw(e)==="object"||typeof e=="function")?e:_w(t)}function $u(t,e){return $u=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$u(t,e)}function xw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function ia(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ia=function(){return!!t})()}var Tw=function(t){Ow(e,t);function e(r){return Sw(this,e),Bw(this,e,[r])}return e}(zt);function Ru(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Iw(t){if(Array.isArray(t))return Ru(t)}function Pw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ua(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(l){r(l);return}a.done?e(s):Promise.resolve(s).then(n,i)}function Nw(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){ua(u,n,i,o,a,"next",s)}function a(s){ua(u,n,i,o,a,"throw",s)}o(void 0)})}}function $w(t,e,r){return e=er(e),Gw(t,aa()?Reflect.construct(e,r||[],er(t).constructor):e.apply(t,r))}function Rw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oa(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Lw(t,e,r){return e&&oa(t.prototype,e),r&&oa(t,r),t}function Yt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function br(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?br=Reflect.get:br=function(i,u,o){var a=Hw(i,u);if(!!a){var s=Object.getOwnPropertyDescriptor(a,u);return s.get?s.get.call(o||i):s.value}},br(t,e,r||t)}function er(t){return er=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},er(t)}function kw(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lu(t,e)}function qw(t,e){return e!=null&&typeof Symbol!="undefined"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function jw(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Uw(){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 Vw(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Yt(t,i,r[i])})}return t}function zw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ww(t,e){return e=e!=null?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):zw(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function Gw(t,e){return e&&(Qw(e)==="object"||typeof e=="function")?e:Pw(t)}function Lu(t,e){return Lu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Lu(t,e)}function Hw(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=er(t),t!==null););return t}function sa(t){return Iw(t)||jw(t)||Jw(t)||Uw()}function Qw(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Jw(t,e){if(!!t){if(typeof t=="string")return Ru(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ru(t,e)}}function aa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(aa=function(){return!!t})()}function Zw(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(c){return s([l,c])}}function s(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(c){l=[6,c],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var Xw=1e4,la=function(e){kw(r,e);function r(n){Rw(this,r);var i;i=$w(this,r,[n]),Yt(i,"controlType","layout"),Yt(i,"children",void 0),Yt(i,"excludes",void 0),Yt(i,"childrenMaxLength",void 0),Yt(i,"props",void 0);var u=qw(this,r)?this.constructor:void 0,o=u.excludes,a=u.childrenMaxLength;return i.props=new Tw(n==null?void 0:n.props),fu(i,"children",n==null?void 0:n.children,void 0,"Designer"),i.excludes=ye(o),i.childrenMaxLength=a,i}return Lw(r,[{key:"judgeExcludesChildren",value:function(i){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(i)}},{key:"judgeJoinChildren",value:function(i){var u=this.judgeExcludesChildren(i);return u&&this.childrenMaxLength>this.children.length}},{key:"validate",value:function(i,u){var o=this,a=this,s=function(){return br(er(r.prototype),"validate",o)};return Nw(function(){return Zw(this,function(l){switch(l.label){case 0:return[4,s().call(a,i,u)];case 1:return l.sent(),[4,Promise.all(this.children.map(function(c){return c.validate(i,u)}))];case 2:return l.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,u=br(er(r.prototype),"toDataBindModel",this).call(this),o=u?[u]:[];return this.children.reduce(function(a,s){var l=s.toDataBindModel(i);if(Array.isArray(l)){var c=l.filter(function(f){return!!f});return sa(a).concat(sa(c))}return l&&a.push(l),a},o)}},{key:"toSchema",value:function(){var i=br(er(r.prototype),"toSchema",this).call(this),u=this.children.map(function(o){var a=o.toSchema();return a});return Ww(Vw({},i),{children:u})}}]),r}(ze);Yt(la,"excludes",!1),Yt(la,"childrenMaxLength",Xw);function Kw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yw(t,e,r){return e=Rn(e),rC(t,ca()?Reflect.construct(e,r||[],Rn(t).constructor):e.apply(t,r))}function eC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rn(t){return Rn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Rn(t)}function tC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ku(t,e)}function rC(t,e){return e&&(nC(e)==="object"||typeof e=="function")?e:Kw(t)}function ku(t,e){return ku=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ku(t,e)}function nC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function ca(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ca=function(){return!!t})()}var iC=function(t){tC(e,t);function e(r,n,i){eC(this,e);var u;u=Yw(this,e,[n]),Fr(u,"headers",void 0),Fr(u,"footers",void 0),Fr(u,"pageIndex",void 0),Fr(u,"pageSize",void 0),Fr(u,"pageSizeOptions",void 0),Fr(u,"totalCount",void 0),fu(u,"headers",n==null?void 0:n.headers,r,i),fu(u,"footers",n==null?void 0:n.footers,r);var o;u.pageIndex=(o=n==null?void 0:n.pageIndex)!==null&&o!==void 0?o:1;var a;u.pageSize=(a=n==null?void 0:n.pageSize)!==null&&a!==void 0?a:20;var s;u.pageSizeOptions=(s=n==null?void 0:n.pageSizeOptions)!==null&&s!==void 0?s:[20];var l;return u.totalCount=(l=n==null?void 0:n.totalCount)!==null&&l!==void 0?l:0,u}return e}(zt);function qu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function uC(t){if(Array.isArray(t))return qu(t)}function oC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fa(t,e,r,n,i,u,o){try{var a=t[u](o),s=a.value}catch(l){r(l);return}a.done?e(s):Promise.resolve(s).then(n,i)}function sC(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function o(s){fa(u,n,i,o,a,"next",s)}function a(s){fa(u,n,i,o,a,"throw",s)}o(void 0)})}}function aC(t,e,r){return e=tr(e),gC(t,va()?Reflect.construct(e,r||[],tr(t).constructor):e.apply(t,r))}function lC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ha(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function cC(t,e,r){return e&&ha(t.prototype,e),r&&ha(t,r),t}function Ln(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _r(t,e,r){return typeof Reflect!="undefined"&&Reflect.get?_r=Reflect.get:_r=function(i,u,o){var a=vC(i,u);if(!!a){var s=Object.getOwnPropertyDescriptor(a,u);return s.get?s.get.call(o||i):s.value}},_r(t,e,r||t)}function tr(t){return tr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},tr(t)}function fC(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ju(t,e)}function hC(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dC(){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 da(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ln(t,i,r[i])})}return t}function pC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function pa(t,e){return e=e!=null?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):pC(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function gC(t,e){return e&&(mC(e)==="object"||typeof e=="function")?e:oC(t)}function ju(t,e){return ju=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ju(t,e)}function vC(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=tr(t),t!==null););return t}function ga(t){return uC(t)||hC(t)||yC(t)||dC()}function mC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function yC(t,e){if(!!t){if(typeof t=="string")return qu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qu(t,e)}}function va(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(va=function(){return!!t})()}function DC(t,e){var r,n,i,u={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(c){return s([l,c])}}function s(l){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(u=0)),u;)try{if(r=1,n&&(i=l[0]&2?n.return:l[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;switch(n=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){u=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){u.label=l[1];break}if(l[0]===6&&u.label<i[1]){u.label=i[1],i=l;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(l);break}i[2]&&u.ops.pop(),u.trys.pop();continue}l=e.call(t,u)}catch(c){l=[6,c],n=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var EC=function(t){fC(e,t);function e(r){lC(this,e);var n;return n=aC(this,e,[r]),Ln(n,"controlType","list"),Ln(n,"props",void 0),n.props=new iC(n,r==null?void 0:r.props,"Designer"),n}return cC(e,[{key:"validate",value:function(n,i){var u=this,o=this,a=function(){return _r(tr(e.prototype),"validate",u)};return sC(function(){return DC(this,function(s){switch(s.label){case 0:return[4,a().call(o,n)];case 1:return s.sent(),[4,Promise.all(this.props.headers.map(function(l){return l.validate(n,i)}))];case 2:return s.sent(),[2,!0]}})}).call(this)}},{key:"toDataBindModel",value:function(){var n=_r(tr(e.prototype),"toDataBindModel",this).call(this),i=n?[n]:[],u=this.id;return this.props.headers.reduce(function(o,a){var s=a.toDataBindModel(u);if(Array.isArray(s)){var l=s.filter(function(c){return!!c});return ga(o).concat(ga(l))}return s&&o.push(s),o},i)}},{key:"toSchema",value:function(){var n=_r(tr(e.prototype),"toSchema",this).call(this),i=this.props.headers.map(function(u){return u.toSchema()});return pa(da({},n),{props:pa(da({},this.props),{headers:i})})}}]),e}(ze);Ln(EC,"controlFieldType",qe.LIST);function wC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ma(t,e,r){return e=kn(e),CC(t,Ea()?Reflect.construct(e,r||[],kn(t).constructor):e.apply(t,r))}function ya(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ye(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kn(t){return kn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},kn(t)}function Da(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Uu(t,e)}function CC(t,e){return e&&(AC(e)==="object"||typeof e=="function")?e:wC(t)}function Uu(t,e){return Uu=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Uu(t,e)}function AC(t){return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Ea(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ea=function(){return!!t})()}var bC=function(t){Da(e,t);function e(r){ya(this,e);var n;return n=ma(this,e,[r]),Ye(n,"caption",{type:"string",required:!0,message:ue("CMD.pleaseEnterCaption",null,"\u8BF7\u8F93\u5165\u6807\u9898")}),Ye(n,"width",{type:"number",required:!1,message:ue("CMD.pleaseEnterColumnWidth",null,"\u8BF7\u8F93\u5165\u5217\u5BBD")}),n.width.required=r.widthType==="px",n}return e}(Eu),FC=function(t){Da(e,t);function e(r){ya(this,e);var n;n=ma(this,e,[r]),Ye(n,"widthType",void 0),Ye(n,"width",void 0),Ye(n,"caption",void 0),Ye(n,"dataBind",void 0),Ye(n,"autoWidth",void 0),Ye(n,"fixed",void 0),Ye(n,"sort",void 0),Ye(n,"align",void 0),Ye(n,"colSpan",void 0),Ye(n,"autoHeight",void 0),Ye(n,"children",void 0);var i;n.width=(i=r==null?void 0:r.width)!==null&&i!==void 0?i:150,n.widthType=(r==null?void 0:r.widthType)||"auto";var u;n.caption=(u=r==null?void 0:r.caption)!==null&&u!==void 0?u:"";var o;n.fixed=(o=r==null?void 0:r.fixed)!==null&&o!==void 0?o:"none",n.autoWidth=new yE(r==null?void 0:r.autoWidth),n.dataBind=new hu(r==null?void 0:r.dataBind);var a;n.sort=(a=r==null?void 0:r.sort)!==null&&a!==void 0?a:!0,n.align=r==null?void 0:r.align,n.colSpan=r==null?void 0:r.colSpan;var s;return n.autoHeight=(s=r==null?void 0:r.autoHeight)!==null&&s!==void 0?s:!1,n}return e}(zt);Ye(FC,"Rules",bC);function qn(t){return t.controlType===he.LAYOUT||t.controlType===he.WRAP||t.controlType===he.LIST||t.controlType===he.SEARCH||t.controlType===he.COLUMN&&t.type!==Te.OPERATION_COLUMN}function fr(t,e){Array.isArray(t)&&t.map(r=>{r.controlType===he.LIST?e(r,[]):qn(r)?fr(r==null?void 0:r.children,e):r.controlType===he.FORM&&e(r)})}function hr(t,e){Array.isArray(t)&&t.map(r=>{r.type===Te.DATA_VIEW||r.type===Te.SIMPLE_SEARCH?e(r):qn(r)&&hr(r==null?void 0:r.children,e)})}let wa=0;function Yr(t=""){const e=Date.now(),r=Math.floor(Math.random()*1e9);return wa++,t+"_"+r+wa+String(e)}class Je extends Hr{constructor(e){super("Runtime"),this._flatInstances=[],this._instanceMap={},this._controlParentIdMap={};const{schema:r}=e;this._schema=r,this._instance=this.createControl(r,e.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const e=[],r={},n={};return Vu(this._instance,"",(i,u)=>{var o;u&&(n[i.id]=u),r[i.id]||(r[i.id]=[]),!(i.type==="subtable-column"&&r[i.id].length>0)&&(e.push(i),!(((o=i.parent)==null?void 0:o.type)===Te.SUBTABLE_COLUMN&&i.parent.parent===void 0)&&r[i.id].push(i))}),this._flatInstances=e,this._instanceMap=r,this._controlParentIdMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get allRules(){let e={},r={},n={};return hr(this._instance,i=>{let u=Je.staticGetRules(i.type,i.props);r[i.id]=ye(u[0]),e[i.id]=ye(u[0]),n[i.id]=ye(u[0]),fr(i.children,o=>{(o.controlType===he.FORM||o.controlType===he.LIST)&&(Ca(r[i.id].fields,o,!0),Fa(e[i.id].fields,o,!0),Aa(n[i.id].fields,o,!0))})}),{rules:this.rules,antdRules:this.antdRules,fieldCodeRules:this.fieldCodeRules,defaultAntdRules:e,defaultRule:r,defaultFieldRules:n}}get rules(){let e={};return hr(this._instance,r=>{let n=Je.staticGetRules(r.type,r.props);e[r.id]=n[0],fr(r.children,i=>{(i.controlType===he.FORM||i.controlType===he.LIST)&&Ca(e[r.id].fields,i)})}),e}get fieldCodeRules(){let e={};return hr(this._instance,r=>{let n=Je.staticGetRules(r.type,r.props);e[r.id]=n[0],fr(r.children,i=>{(i.controlType===he.FORM||i.controlType===he.LIST)&&Aa(e[r.id].fields,i)})}),e}get antdRules(){let e={};return hr(this._instance,r=>{let n=Je.staticGetRules(r.type,r.props);e[r.id]=n[0],fr(r.children,i=>{(i.controlType===he.FORM||i.controlType===he.LIST)&&Fa(e[r.id].fields,i)})}),e}}function Vu(t,e,r){(Array.isArray(t)?t:[t]).map(i=>{if(r(i,e),qn(i)){const u=i;u.children||(u.children=[]),Vu(u.children,u.id,r)}_C(i,"headers")&&Vu(i.props.headers,i.id,r)})}function _C(t,e){return e in t.props&&lr(t.props[e])}function jn(t){return t.props.isHide?!0:t.parent===null||t.parent===void 0?!1:jn(t.parent)}function Ca(t,e,r=!1){if(jn(e))return;let n=Je.staticGetRules(e.type,e.props);if(e.controlType===he.FORM)t[e.id]=n;else if(e.type===Te.SUBTABLE){t[e.id]=n;const i={type:"array",fields:{}};(r===!0?[{children:e.props.headers}]:e.children).forEach((u,o)=>{Ut(u.children,a=>{if(i.fields){i.fields[o]||(i.fields[o]={type:"object",required:!0,fields:{}});let s=Je.staticGetRules(a.type,a.props);i.fields[o].fields[a.id]=s}})}),t[e.id].push(i)}}function Aa(t,e,r=!1){var i,u,o,a,s,l,c;if(jn(e))return;let n=Je.staticGetRules(e.type,e.props);if(e.controlType===he.FORM)if(at(e.props.dataBind))((i=e.props.dataBind)==null?void 0:i.fieldCode)!=""&&(t[(u=e.props.dataBind)==null?void 0:u.fieldCode]=n);else for(const f in e.props.dataBind)((o=e.props.dataBind[f])==null?void 0:o.fieldCode)!=""&&(t[(a=e.props.dataBind[f])==null?void 0:a.fieldCode]=((s=ba(n))==null?void 0:s[f])||[]);else if(e.type===Te.SUBTABLE){t[(l=e.props.datasourceBind)==null?void 0:l.dataCode]=n;const f={type:"array",fields:{}};(r===!0?[{children:e.props.headers}]:e.children).forEach((h,g)=>{Ut(h.children,v=>{var d,m,p,y;if(f.fields){f.fields[g]||(f.fields[g]={type:"object",required:!0,fields:{}});let D=Je.staticGetRules(v.type,v.props);if(at(v.props.dataBind))((p=v.props.dataBind)==null?void 0:p.fieldCode)!=""&&(f.fields[g].fields[(y=v.props.dataBind)==null?void 0:y.fieldCode]=D);else for(const E in v.props.dataBind)((d=v.props.dataBind[E])==null?void 0:d.fieldCode)!=""&&(f.fields[g].fields[v.props.dataBind[E].fieldCode]=((m=ba(D))==null?void 0:m[E])||[])}})}),t[(c=e.props.datasourceBind)==null?void 0:c.dataCode].push(f)}}function ba(t){let e={};return t.map(r=>{r.fields&&(e=r)}),e==null?void 0:e.fields}function Fa(t,e,r=!1){if(jn(e))return;let n=Je.staticGetRules(e.type,e.props);e.controlType===he.FORM?t[e.id]=n:e.type===Te.SUBTABLE&&e.children.length&&(t[e.id]=[],(r===!0?[{children:e.props.headers}]:e.children).forEach(i=>{let u={};Ut(i.children,o=>{let a=Je.staticGetRules(o.type,o.props);u[o.id]=a}),t[e.id].push(u)}))}class BC{constructor(e){const{state:r,emptyState:n,databindMapping:i,controlidMapping:u,defaultState:o,subtableHeadersControlIdMapping:a}=SC(e.instance);this.emptyState=n,this.state=r,this.dataBindMapping=i,this.controlIdMapping=u,this.defaultState=o,this.subtableHeadersControlIdMapping=a}setState(e,r,n){const i=this.controlIdMapping[e],u=ye(r);i!==void 0?(i.children&&r.forEach(o=>{o.uid||Object.assign(o,{uid:"new:"+Yr("uid")})}),this.state[i.dataView][e]=u):n!==void 0?Object.keys(this.controlIdMapping).map(o=>{const a=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(l=>{l===e&&this.state[a][o][n]&&(this.state[a][o][n][e]=u)})}):this.state[e]=u}getState(e,r){var i;if(this.state[e]!==void 0)return this.state[e];{const u=this.controlIdMapping[e];if(u!==void 0){const o=this.state[u.dataView][e];return r!==void 0&&Object.keys((i=u==null?void 0:u.children)!=null?i:{}).length>0?o[r]:o}else if(r!==void 0){let o;return Object.keys(this.controlIdMapping).map(a=>{const s=this.controlIdMapping[a].dataView,l=this.controlIdMapping[a].children;l!==void 0&&Object.keys(l).map(c=>{var f;c===e&&(o=(f=this.state[s][a][r])==null?void 0:f[e])})}),o}else{let o=[];return Object.keys(this.controlIdMapping).map(a=>{const s=this.controlIdMapping[a].dataView,l=this.controlIdMapping[a].children;l!==void 0&&Object.keys(l).map(c=>{c===e&&this.state[s][a].map(f=>{o.push(f[e])})})}),o}}}getEmptyState(e){if(this.emptyState[e]!==void 0)return this.emptyState[e];{const n=this.controlIdMapping[e];if(n!==void 0){const i=this.emptyState[n.dataView][e];return"children"in n&&Object.assign(i,{uid:"new:"+Yr("uid")}),i}else{let i;return Object.keys(this.controlIdMapping).map(u=>{const o=this.controlIdMapping[u].dataView,a=this.controlIdMapping[u].children;a!==void 0&&Object.keys(a).map(s=>{s===e&&(i=this.emptyState[o][u][e])})}),i}}}getDataBind(e){let r=this.controlIdMapping[e];if(r)return r.dataBind;e:for(let n in this.controlIdMapping){const i=this.controlIdMapping[n];if(i.children){for(let u in i.children)if(u===e){r=i.children[u];break e}}}return r==null?void 0:r.dataBind}}function SC(t){let e={},r={},n={},i={},u={},o={};return hr(t,a=>{const s=a.id,l={},c={};fr([a],(f,h)=>{OC(l,c,f),MC(n,s,f),xC(i,s,f),TC(u,f)}),e[s]={},o[s]=l,r[s]=c}),{state:e,defaultState:o,subtableHeadersControlIdMapping:u,emptyState:r,databindMapping:n,controlidMapping:i}}function OC(t,e,r){var n,i;if(r.controlType===he.FORM)t[r.id]=ye(r.props.defaultValue),e[r.id]=ye(r.props.defaultValue);else{const u={};Ut(r.props.headers,o=>{u[o.id]=ye(o.props.defaultValue)}),t[r.id]=(i=new Array((n=r.props.defaultRows)!=null?n:1).fill(0).map(()=>me({uid:"new:"+Yr("uid")},ye(u))))!=null?i:[],e[r.id]=u}}function MC(t,e,r){var n,i;if(r.controlType===he.FORM)at(r.props.dataBind)?((i=(n=r.props)==null?void 0:n.dataBind)==null?void 0:i.dataCode)===void 0||(t[r.props.dataBind.dataCode]===void 0&&(t[r.props.dataBind.dataCode]={controlId:e,fields:[],dataViewId:e}),t[r.props.dataBind.dataCode].fields.push({fieldCode:r.props.dataBind.fieldCode,controlId:r.id,dataBind:r.props.dataBind,dataViewId:[e]})):Object.keys(r.props.dataBind).map(u=>{const o=r.props.dataBind,a=o[u].dataCode;a!==void 0&&(t[a]===void 0&&(t[a]={controlId:r.id,fields:[],dataViewId:e}),t[a].fields.push({fieldCode:o[u].fieldCode,controlId:r.id,dataBind:o,dataViewId:[e]}))});else{if(r.props.datasourceBind.dataCode===""){Cr(`datasourceBind.dataCode is empty! maybe in preview mode, control:${r.id} type:${r.type}`);return}t[r.props.datasourceBind.dataCode]={controlId:r.id,fields:[],dataViewId:e};const u=r.id;Ut(r.props.headers,o=>{at(o.props.dataBind)?(t[o.props.dataBind.dataCode]===void 0&&(t[o.props.dataBind.dataCode]={controlId:e,fields:[],dataViewId:e}),t[o.props.dataBind.dataCode].fields.push({fieldCode:o.props.dataBind.fieldCode,controlId:o.id,dataBind:o.props.dataBind,dataViewId:[e,u]})):Object.keys(o.props.dataBind).map(a=>{const s=o.props.dataBind,l=s[a].dataCode;s[a].fieldCode!==""&&t[l].fields.push({fieldCode:s[a].fieldCode,controlId:o.id,dataBind:s,dataViewId:[e,u]})})})}}function xC(t,e,r){r.controlType===he.FORM?t[r.id]={dataBind:r.props.dataBind,options:[],dataView:e}:r.type===Te.SUBTABLE&&(t[r.id]={dataBind:new hu({dataCode:r.props.datasourceBind.dataCode,fieldCode:""}),dataView:e,children:{},options:[]},Ut(r.props.headers,n=>{var i,u;Object.assign((u=(i=t[r.id])==null?void 0:i.children)!=null?u:{},{[n.id]:{dataBind:n.props.dataBind}})}))}function TC(t,e){if(e.type===Te.SUBTABLE){const r={};e.props.headers.map(n=>{n.children.map(i=>{Object.assign(r,{[i.id]:i})})}),Object.assign(t,{[e.id]:r})}}const _a=["splice","push","shift","pop","unshift","reverse"],zu=Symbol("__engineProxy__"),Wu=Symbol("__engineTarget__"),Ba=Symbol("__engineArrayBeforeSetCallbackFlag__"),Sa=Symbol("__engineProxyThisKey__"),_t={type:"",args:[],callback:Oa};function Oa(){}RC();function IC(t,e,r,n,i){if(_t.type){_t.callback=i.bind(null,t,n);return}const u=Number(e);if(u>t.length){jt(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${_a.join(",")} for array operations`);return}if(!(Number.isNaN(u)&&e!=="length"))if(e==="length"){const a=r,s=t.length;if(a>t.length){jt("Do not directly modify the length of the array data, please add new rows");return}return a===t.length?void 0:()=>i.call(null,t,n,"splice",[a,s-a])}else return u===t.length?()=>i.call(null,t,n,"push",[r]):()=>i.call(null,t,n,"splice",[u,1,r])}function PC(t,e,r){return{__engineProxy__:!0,get(n,i,u){return i===zu?!0:i===Wu?n:Array.isArray(n)&&i===Ba?r:i===Sa?t:Reflect.get(n,i,u)},set(n,i,u,o){var h;let a=ye(u);const s=n[i],l=t===""?i:t+"."+i;function c(g){if(typeof g=="object"&&g!==null)return g[zu]!==!0?Un(g,e,r,l):Un(g[Wu],e,r,l)}a=(h=c(a))!=null?h:a;let f;if(Array.isArray(n)){const g=IC(n,i,a,t,e);f=Reflect.set(n,i,a,o),g&&g()}else{try{let g=a;if(a=r.call(null,n,l,a,s),g!==a){const v=c(a);v!==void 0&&(a=v)}}catch(g){return _n(`${l} set error ${g}`),!0}f=Reflect.set(n,i,a,o),e.call(null,n,l,a,s)}return f||!0}}}function Un(t,e,r,n=""){if(Object.isFrozen(t))return t;for(let i in t){const u=n===""?i:n+"."+i,o=t[i];typeof o=="object"&&o!==null&&(t[i]=Un(o,e,r,u))}return new Proxy(t,PC(n,e,r))}function Ma(t){const e=[];return t.forEach(r=>{e.push(r),(r.controlType==="layout"||r.controlType==="wrap")&&e.push(...Ma(r.children))}),e}function Gu(t,e,r){if(e==="")return;const n=e.split(".");if(n.length===0)return;const i=n[0],u=n.slice(1),o=r[i]?r[i][0]:void 0;return u.length===0?o:u.reduce((a,s)=>{var f,h;const l=Number(s);if(Number.isNaN(l)&&a){const g=a!=null&&a.children?Ma(a.children):void 0,v=g==null?void 0:g.find(d=>d.id===s);return v||(a.controlType===he.FORM?a:void 0)}else return(h=(f=a==null?void 0:a.children)==null?void 0:f[l])!=null?h:a},o)}function NC(t,e){return["push","unshift"].includes(t)?e:t==="splice"?e.slice(2):[]}function $C(t,e,r){if(["push","unshift"].includes(t))return r;if(t==="splice")return e.slice(0,2).concat(r)}function RC(){_a.forEach(t=>{const e=Array.prototype[t];Array.prototype[t]=function(...r){var n;if(this[zu]){let i;const u=NC(t,r);if(u.length){const o=(n=this[Ba])==null?void 0:n.call(this,this[Wu],this[Sa],u),a=$C(t,r,o);_t.type=t,_t.args=a,i=e.apply(this,a)}else _t.type=t,_t.args=r,i=e.apply(this,r);return typeof _t.callback=="function"&&_t.callback(t,r,i),_t.type="",_t.args=[],_t.callback=Oa,i}else return e.apply(this,r)}})}class LC{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(e,r,...n){return It(this,null,function*(){const i=this.actionMap.get(e);if(!!i)try{return yield i.func.call(null,r,...n)}catch(u){return _n(`${i.id} Exception during calling action: ${u}`),!1}})}addAction(e,r){this.actionMap.has(e)&&jt("duplicated action key");const n=new kC(e,r);this.actionMap.set(e,n)}}class kC{constructor(e,r){this.id="",this.id=e,this.func=r}}class qC{constructor(e){this._dataStore=new Map,this.executer=e}add(e,r){this._dataStore.set(e,r)}get(e){let r=this._dataStore.get(e);return ye(r)}remove(e){this._dataStore.delete(e)}getRemoteData(e){return It(this,null,function*(){return this.executer===void 0?(_n("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(e)})}}class rr{}class en extends rr{validate(e){return Ke(e)}transform(e){if(e==null)return"";if(!Ft(e)&&!ws(e))return String(e);if(JD(e))return JSON.stringify(e);throw`${e} is not a string`}}class Hu extends rr{validate(e){return Sn(e)||e===""}transform(e){if(e==null)return"";const r=!Ft(e)&&!ws(e)?Number(e):void 0;if(!Number.isNaN(r)&&r!==void 0)return r;throw`${e} is not a number`}}class jC extends rr{validate(e){return ZD(e)}transform(e){if(e==null)return[];function r(n){return n.map(i=>i?String(i):"")}if(lr(e))return r(e);if(Ke(e)&&As(e))try{const n=JSON.parse(e);if(Array.isArray(n))return r(n)}catch(n){}return[String(e)]}}class UC extends rr{validate(e){return XD(e)}transform(e){if(e==null)return[];function r(i){return i.map(u=>!u&&u!==0?"":Number(u)).filter(u=>u===""||!Number.isNaN(u))}if(lr(e))return r(e);if(Ke(e)&&As(e))try{const i=JSON.parse(e);if(lr(i))return r(i)}catch(i){}const n=Number(e);if(Number.isNaN(n))throw`${e} is not a number array`;return[n]}}class VC extends rr{validate(e){return Ft(e)&&"amount"in e&&Sn(e.amount)&&"currency"in e&&Ke(e.currency)}transform(e,r){if(e==null||e==="")return new du({currency:r==null?void 0:r.currency});let n;if(Ft(e)&&(n=new du(me(me({},r),e))),Ke(e)&&On(e))try{const i=JSON.parse(e);n=new du(me(me({},r),i))}catch(i){}if(n){const i=new Hu,u=new en;return i.validate(n.amount)||(n.amount=i.transform(n.amount)),u.validate(n.currency)||(n.currency=u.transform(n.currency)),n}throw`${e} is not a { amount: number, currency: string } object`}}class zC extends rr{validate(e){return Ft(e)&&"min"in e&&Ke(e.min)&&"max"in e&&Ke(e.max)}transform(e,r){if(e==null||e==="")return new pu;let n;if(Ft(e)&&(n=new pu(me(me({},r),e))),Ke(e)&&On(e))try{const i=JSON.parse(e);n=new pu(me(me({},r),i))}catch(i){}if(n){const i=new en;return i.validate(n.min)||(n.min=i.transform(n.min)),i.validate(n.max)||(n.max=i.transform(n.max)),n}throw`${e} is not a { min: string, max: string } object`}}class WC extends rr{validate(e){return Ft(e)&&"result"in e&&Sn(e.result)&&"unit"in e&&Ke(e.unit)}transform(e,r){if(e==null||e==="")return new vu({unit:r==null?void 0:r.unit});let n;if(Ft(e)&&(n=new vu(me(me({},r),e))),Ke(e)&&On(e))try{const i=JSON.parse(e);n=new vu(me(me({},r),i))}catch(i){}if(n){const i=new Hu,u=new en;return i.validate(n.result)||(n.result=i.transform(n.result)),u.validate(n.unit)||(n.unit=u.transform(n.unit)),n}throw`${e} is not a { result: string, unit: string } object`}}class GC extends rr{validate(e){return!!Ft(e)}transform(e,r){if(e==null||e==="")return new gu;let n;if(Ft(e)&&(n=new gu(me(me({},r),uu.exports.camelizeKeys(e)))),Ke(e)&&On(e))try{const i=JSON.parse(e);n=new gu(me(me({},r),uu.exports.camelizeKeys(i)))}catch(i){}if(n){const i=new en;return i.validate(n.city)||(n.city=i.transform(n.city)),i.validate(n.district)||(n.district=i.transform(n.district)),i.validate(n.province)||(n.province=i.transform(n.province)),n}throw`${e} is not a { city: string, district: string, province: string } object`}}class HC{static getValueChecker(e){let r;switch(e){case qe.VARCHAR:case qe.TIMESTAMP:case qe.TEXT:case qe.AUTO_NUMBER:r=new en;break;case qe.DECIMAL:r=new Hu;break;case qe.EMPLOYEES:case qe.DEPARTMENTS:case qe.IMAGE:case qe.FILE:case qe.ARRAY:r=new jC;break;case qe.MONEY:r=new VC;break;case qe.TIMESCOPE:r=new zC;break;case qe.CALC:r=new WC;break;case qe.DECIMAL_RANGE:r=new UC;break;case qe.ADDRESS:r=new GC;break}return r}}function QC(t){if(["min","max","currency","unit"].includes(t))return qe.VARCHAR;if(["result","amount"].includes(t))return qe.DECIMAL}function xa(t,e,r,n){var o;let i=(o=QC(e))!=null?o:t,u=HC.getValueChecker(i);if(!u||u.validate(r))return r;try{const a=u.transform(r,n);return a!==void 0?a:r}catch(a){throw`${e} ${a}`}}function JC(t,e,r){return Object.entries(t).reduce((n,[i,u])=>{const o=e[i];return n[i]=xa(u,i,o,r[i]),n},Object.assign({},e))}typeof window!="undefined"&&(window.engines={});let Br=null,tn="";class Qu extends Bs{constructor(e){super(),this.rawStore={},this.isMounted=!1,this.id=bn(8),this.__pluginsApplied=!1,this.actionManager=new LC,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(e);const{autoMount:r=!0,schema:n,beforeCreateInstance:i,externalParams:u,language:o=fs,debug:a=!1,messagesI18n:s,children:l}=this.$options;this.debug=a,this.runtime=new Je({schema:n,beforeCreateInstance:i}),this.externalParams=u,this.children=l,this.store=new BC({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),r&&this.mount()}debugLog(...e){this.debug&&ru(...e)}use(e){return this.__pluginsApplied||this.__plugins.push(e),this}registerControl(...e){return this.runtime.register(...e),this}static register(e){return Je.register(e,"Runtime")}static judgeControlIsRegistered(e){return Je.staticRegisteredTypes.has(e.Runtime.controlType)}mount(){this.debugLog("engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528");const{plugins:e=[]}=this.$options;this._handlerProxyState(),this.__plugins=e,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=Un(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(e,r,n,i){const u=Gu(this.runtime.flatInstances,r,this.runtime.instanceMap);if(!u)return n;if(this.assertInstance(u,Te.SUBTABLE)){if(n===null)return[];const s=u.props.headers.reduce((c,f)=>{const h=f.children[0];return h&&h.controlType===he.FORM&&(c[h.id]=h.fieldType),c},{}),l=this.getEmptyState(u.id);return n==null?void 0:n.map(c=>JC(s,c,l))}const o=r.split("."),a=o[o.length-1];try{return xa(u.fieldType,a,n,i)}catch(s){throw Cr(`the id=${u.id}'s instance setState error, %o ${s}.`,n),s}}_proxyStateCallback(e,r,n,i,u){Array.isArray(e)?this._handlerArrayUpdate(e,r,n,i,u):this._handlerObjectUpdate(e,r,n,i)}_handlerArrayUpdate(e,r,n,i,u){const o=Gu(this.runtime.flatInstances,r,this.runtime.instanceMap);if((o==null?void 0:o.controlType)!==he.LIST)return;const a=g=>{const v=[];for(let d=0;d<g;d++){const m=this.listControlCreateRow(o,"subtable-row");m&&v.push(m)}return v},s=Br;let l=[],c=[],f=[],h=!1;if(n&&i){switch(n){case"push":case"unshift":const d=i.length;l=a(d),c=i,o.children[n](...l);break;case"splice":if(i.length>2){const m=i.length-2,p=i.slice(2);l=a(m),c=p;const y=i[0],D=i[1];o.children[n](y,D,...l)}else{const m=i[0],p=i[1];m+p===o.children.length-1&&(h=!0),o.children[n](...i)}break;default:o.children[n](...i);break}n==="splice"?f=u:["pop","shift"].includes(n)&&(f=[u]);const g=this.getState(o.id);this._handlerSubtableUpdateUid(g),this.runtime.getFlatInstances();const v=l.map(d=>{var p,y;const m=(y=(p=d==null?void 0:d.children)==null?void 0:p[0])==null?void 0:y.children[0];return this.getInstanceRowIndex(m)});this.emit("list-change",{instance:o,value:g,options:Object.assign({},s,{changed:l,data:c,rowIndexs:v,deleted:f!=null?f:[],jsonValue:JSON.stringify(g),isDeleteLastOne:h,type:n,args:i})}),Br=null}}_handlerSubtableUpdateUid(e){e.forEach(r=>{r.uid||Object.assign(r,{uid:"new:"+Yr("uid")})})}_handlerObjectUpdate(e,r,n,i){const u=Gu(this.runtime.flatInstances,r,this.runtime.instanceMap);if(!u)return;const o=this.getInstanceRowIndex(u),a=Br||{};if(u.controlType===he.LIST&&u.type===Te.SUBTABLE){u.children.length=0;const s=n;let l=[];for(let h=0;h<s.length;h++){const g=this.listControlCreateRow(u,"subtable-row");g&&l.push(g)}u.children.push(...l);let c=i!=null?i:[];(a==null?void 0:a.setData)===!0&&(c=[]),this.runtime.getFlatInstances(),this._handlerSubtableUpdateUid(s);const f=l.map(h=>{var v,d;const g=(d=(v=h==null?void 0:h.children)==null?void 0:v[0])==null?void 0:d.children[0];return this.getInstanceRowIndex(g)});this.emit("list-change",{instance:u,value:n,options:Er(me({},a),{changed:l,data:s,rowIndexs:f,deleted:c,type:"push",jsonValue:JSON.stringify(s)})})}else this.emit("change",{instance:u,value:this.getState(u.id,o),rowIndex:o,options:Er(me({},a),{oldValue:i})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(e=>{var r;try{tn=(r=e.pluginName)!=null?r:e.constructor.name,e.apply(this)}catch(n){jt(`${tn} Plugin apply Error
2
- ${n}`)}finally{tn=""}}),this.__pluginsApplied=!0)}listControlCreateRow(e,r){let n;if(r==="subtable-row"?n={children:[],controlType:he.LAYOUT,id:bn(),type:"subtable-row",props:{caption:"",isHide:!1,style:{height:"",heightConfig:"fill",width:"",widthConfig:"fill"}},fieldType:void 0,customEvents:[],pageStatus:0,rules:[],parent:void 0}:n=this.runtime.createControlInstance(r),!!n){if(n.controlType===he.LAYOUT){const i=n,u=ye(e.props.headers),o=this.createControl(u);for(let a of o)a.parent||this.runtime.resetInstanceParent(a,i);i.children.push(...o)}return n.parent=e,n}}listControlAddRow(e,r="subtable-row"){const n=this.listControlCreateRow(e,r);!n||e.children.push(n)}emit(e,r){return It(this,null,function*(){if(e==="engine-mounted"){if(this.isMounted)return Cr("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 n,i;this.isMounted||(i=new Promise(o=>{n=o}),this._jobTasks.push(i));const u=yield mf(Qu.prototype,this,"emit").call(this,e,r);return n&&i&&(n(),this._jobTasks.splice(this._jobTasks.indexOf(i),1)),u})}on(e,r){return tn&&(r.applyingPluginName=tn),super.on(e,r)}createControl(...e){return this.runtime.createControl(...e)}createInstance(e,r){return this.runtime.createControlInstance(e,r)}schemaEvent(e,r){this.emit(e,r)}updateInstanceProps(e,r,n,i){return this.setInstance(e,r,n,i)}getRule(e,r){return Je.staticGetRules(e,r)}getAllRules(e){var n,i;const r=this.runtime.allRules;return e===void 0?r:{rules:(n=r.rules[e])==null?void 0:n.fields,antdRules:(i=r.antdRules[e])==null?void 0:i.fields}}getRules(e,r=!1){var a,s,l,c,f,h,g;const n=this.runtime.rules,i=this.runtime.fieldCodeRules,u=this.store.controlIdMapping,o=r?i:n;if(e===void 0)return r?i:o;{if(e=r?(a=u[e])!=null&&a.children?(s=u[e].dataBind)==null?void 0:s.dataCode:((l=u[e].dataBind)==null?void 0:l.fieldCode)||e:e,e in o)return(c=o[e])==null?void 0:c.fields;let v;for(const d in o)if(e in(((f=o[d])==null?void 0:f.fields)||{})){v=(g=(h=o[d])==null?void 0:h.fields)==null?void 0:g[e];break}return v}}getAntdRules(e){var r;return e===void 0?this.runtime.antdRules:(r=this.runtime.antdRules[e])==null?void 0:r.fields}getState(e,r){return e===void 0?this.store.state:this.store.getState(e,r)}getEmptyState(e){return ye(e===void 0?this.store.emptyState:this.store.getEmptyState(e))}setPayloadOptions(e){Br=e}setState(e,r,n,i){Br=i,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",e,r,n,i),this.store.setState(e,r,n),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",e,r,n),Br=null}setStates(e,r,n){let i=e!=null?e:{};Object.keys(i).forEach(u=>{Object.entries(this.store.controlIdMapping).forEach(([o,a])=>{if(a.dataView===u){const s=i[u][o];s!==void 0&&this.setState(o,s,r,n)}else(o===u||a.children&&a.children[u])&&i[u]!==void 0&&this.setState(u,i[u],r,n)})})}getField(e,r,n){if(!r){const s=this.getDataBindMapping(e);if(s){const{controlId:l}=s;return this.getState(l)}return}const i=this.getDataBindMapping(e,r);if(!i)return;const{dataBind:u,controlId:o}=i,a=this.getState(o,n);return at(u)?a:Object.entries(u).reduce((s,[l,c])=>c.fieldCode===r?s[l]:s,a)}getData(e){var i,u,o,a,s,l,c,f,h;if(!e)return;let r=this.getDataBindMapping(e),n=this.getControlIdMapping();if(r){const{controlId:g}=r,v=this.getField(e);if(Array.isArray(v))return v.map(m=>{var y,D,E,w,_,O;let p={};for(let C in m){const b=(E=(D=(y=n[g])==null?void 0:y.children[C])==null?void 0:D.dataBind)==null?void 0:E.fieldCode;if(b!==""){if(b)p[b]=m[C];else if((w=n[g])!=null&&w.children[C])for(let S in m[C])p[(O=(_=n[g])==null?void 0:_.children[C])==null?void 0:O.dataBind[S].fieldCode]=m[C][S]}}return p});{let d={};for(let m in v)if((u=(i=n[m])==null?void 0:i.dataBind)!=null&&u.fieldCode)d[(o=n[m])==null?void 0:o.dataBind.fieldCode]=v[m];else if((s=(a=n[m])==null?void 0:a.dataBind)!=null&&s.dataCode)Array.isArray(v[m])&&(d[(l=n[m])==null?void 0:l.dataBind.dataCode]=(c=v[m])==null?void 0:c.map(p=>{var D,E;let y={};for(let w in p){const _=(D=n[m].children[w])==null?void 0:D.dataBind.fieldCode;if(_!=="")if(_)y[_]=p[w];else for(let O in p[w])y[(E=n[m].children[w])==null?void 0:E.dataBind[O].fieldCode]=p[w][O]}return y}));else if(n[m])for(let p in v[m])d[(h=(f=n[m])==null?void 0:f.dataBind[p])==null?void 0:h.fieldCode]=v[m][p];return d}}}setField(e,r,n,i,u){var l;const o=this.getDataBindMapping(e,r);if(!o)return;const{dataBind:a,controlId:s}=o;if(at(a))this.setState(s,n,i,u);else{const c=(l=ye(this.getState(s,i)))!=null?l:this.getEmptyState(s),f=Object.entries(a).reduce((h,[g,v])=>(v.fieldCode===r&&(h[g]=n),h),c);this.setState(s,f,i,u)}}setFields(e,r,n,i){const u=this.getDataBindMapping(e);if(!u)return;let o=[];u.fields.forEach(a=>{var f;const{dataBind:s,controlId:l,fieldCode:c}=a;if(!o.includes(c)&&!!Object.hasOwnProperty.call(r,c))if(at(s))this.setState(l,r[c],n,i);else{const h=(f=ye(this.getState(l,n)))!=null?f:this.getEmptyState(l),g=Object.entries(s).reduce((v,[d,m])=>{o.push(m.fieldCode);const p=r[m.fieldCode];return p!==void 0&&(v[d]=p),v},h);this.setState(a.controlId,g,n,i)}})}buildFields(e,r){const n=this.getDataBindMapping(e);if(!n||!n.fields)return;let i=[];const u={};return n.fields.forEach(o=>{const{dataBind:a,controlId:s,fieldCode:l}=o;if(!i.includes(l)&&!!Object.hasOwnProperty.call(r,l))if(at(a))u[s]=r[l];else{const c=this.getEmptyState(s);u[o.controlId]=Object.entries(a).reduce((f,[h,g])=>{i.push(g.fieldCode);const v=r[g.fieldCode];return v!==void 0&&(f[h]=v),f},c)}}),u}setData(e,r){this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",e,r);const n=r==null?void 0:r.onlySetData;let i=this.store.defaultState;n===!0&&(i={}),Object.keys(e).map(u=>{var a,s,l,c;const o=e[u];if(Array.isArray(o)){const f=this.getDataBindMapping(u);if(!f)return;i[f.dataViewId]||(i[f.dataViewId]={}),o.length?i[f.dataViewId][f.controlId]=[]:i[f.dataViewId][f.controlId]=(a=i[f.dataViewId][f.controlId])!=null?a:[];let h={},g={};o.map(v=>{let d=ye(this.store.emptyState[f.dataViewId][f.controlId]),m=[];Object.keys(v).map(p=>{var E,w,_,O,C;if(((w=(E=this.store.dataBindMapping[u])==null?void 0:E.fields)==null?void 0:w.some(b=>b.fieldCode===p))||p in d&&v[p]!==void 0&&(d[p]=v[p]),m.includes(p))return;g.hasOwnProperty(p)===!1&&(g[p]=(O=(_=this.store.dataBindMapping[u])==null?void 0:_.fields)==null?void 0:O.find(b=>b.fieldCode===p));const D=g[p];if(D){if(at(D.dataBind)&&v[p]!==void 0)d[D.controlId]=v[p];else if(!at(D.dataBind)){h.hasOwnProperty(D.controlId)===!1&&(h[D.controlId]=ye((C=this.getEmptyState(D.controlId))!=null?C:{}));let b=ye(h[D.controlId]);Object.keys(D.dataBind).map(S=>{const F=D.dataBind[S];v[F.fieldCode]!==void 0&&(b[S]=v[F.fieldCode]),m.push(F.fieldCode)}),d[D.controlId]=b}}else p==="uid"&&v.uid!==void 0?d.uid=v.uid:p==="virtualStore"&&v.virtualStore!==void 0&&(d.virtualStore=Object.freeze(v.virtualStore))}),i[f.dataViewId][f.controlId].push(d)})}else if(o){let f=[];const h=ye(this.store.emptyState);(s=Object.keys(o))!=null&&s.length&&Object.keys(o).map(v=>{var m;if(f.includes(v))return;const d=this.getDataBindMapping(u,v);if(d){if(i[d.dataViewId[0]]||(i[d.dataViewId[0]]={}),at(d.dataBind)&&o[v]!==void 0)i[d.dataViewId[0]][d.controlId]=o[v]!==void 0?o[v]:h[d.dataViewId[0]][d.controlId];else if(!at(d.dataBind)){let p=(m=this.getEmptyState(d.controlId))!=null?m:{};Object.keys(d.dataBind).map(y=>{const D=d.dataBind[y];if(e[D.dataCode]){const E=e[D.dataCode];E[D.fieldCode]!==void 0&&(p[y]=E[D.fieldCode])}f.push(D.fieldCode)}),i[d.dataViewId[0]][d.controlId]=p}}else{const p=v in h,y=this.getDataBindMapping(u);p&&(y==null?void 0:y.dataViewId)&&o[u]!==void 0&&(i[y==null?void 0:y.dataViewId][v]=o[v])}});const g=this.getDataBindMapping(u);if(g){const v=(l=g==null?void 0:g.fields)==null?void 0:l.map(p=>p==null?void 0:p.controlId),d=this.getEmptyState(g==null?void 0:g.controlId),m=Object.keys((c=i==null?void 0:i[g==null?void 0:g.controlId])!=null?c:{});v==null||v.forEach(p=>{!m.includes(p)&&p!=="uid"&&i[g==null?void 0:g.controlId]&&(Object.keys(i).length?Object.assign(i[g==null?void 0:g.controlId],{[p]:d[p]}):Object.assign(i,{[g.controlId]:{[p]:d[p]}}))}),this.debugLog("engine setData\u65B9\u6CD5\u9ED8\u8BA4\u503C\u53CA\u8868\u5355\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",i)}}}),this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",i),this.setStates(i,void 0,me({setData:!0},r)),this.runtime.getFlatInstances(),this.debugLog(ue("CMD.b44b1751969061759"))}getDataBind(e){return this.store.getDataBind(e)}getInstance(e,r){const n=this.getInstances(e,r===-1);if(n.length>0)return r!==void 0?r===-1?n[0]:n[r]:n[0]}getInstances(e,r=!1){if(e===void 0)return this.runtime.flatInstances;const n=Array.from(this.runtime.instanceMap[e]||[]);if(r){const i=this.findSubtableHeadersControl(e);i!==void 0&&n.unshift(i)}return n}setInstance(e,r,n,i){try{if(typeof e=="string"&&i===-1)this.getInstances(e,i===-1).map(o=>{o&&(this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",o.id,o,r,n),iu(o.props,r,n),this.schemaEvent("schema-change",{instance:o,props:r,value:n,rowIndex:i}))});else{let u;if(typeof e=="string"?u=this.getInstance(e,i):u=e,!u)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",u.id,u,r,n),iu(u.props,r,n),this.schemaEvent("schema-change",{instance:u,props:r,value:n,rowIndex:i})}}catch(u){throw u}}getControlIdMapping(){return this.store.controlIdMapping}getFieldInstance(e,r,n){const i=this.getDataBindMapping(e,r);if(i)return this.getInstance(i.controlId,n)}setFieldInstance(e,r,n,i,u){const o=this.getDataBindMapping(e,r);if(o){const a=this.getInstance(o.controlId,u);return this.debugLog("\u8C03\u7528\u4E86setFieldInstance[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",a.id,a,n,i),this.setInstance(a.id,n,i,u),Cs(a)}}getDataBindMapping(e,r){if(!e&&!r)return this.store.dataBindMapping;const n=this.store.dataBindMapping[e];if(!n)return;if(!r)return n;const i=n.fields.find(u=>u.fieldCode===r);if(!!i)return i}getAction(){return this.actionManager}initDataManager(e){this.dataManager=new qC(e)}getDataManager(){return this.dataManager}assertInstance(e,r){return Ke(r)?e.type===r:r.includes(e.type)}assertInstanceIsCustomControl(e){return!KD(Ke(e)?e:e.type)}getInstanceRowIndex(e){if(!e.parent)return;let r;if(this.assertInstance(e.parent,Te.SUBTABLE_COLUMN)&&this.assertInstance(e.parent.parent,Te.SUBTABLE))r=-1;else if(this.getInstanceParentControl(e,Te.SUBTABLE_COLUMN)){const u=this.runtime.instanceMap[e.id];if(Object.prototype.toString.call(u)==="[object Array]"){const o=u.findIndex(a=>a===e);o>-1&&(r=o)}}return r}getInstanceParentControl(e,r){if(!!e.parent)return this.assertInstance(e.parent,r)?e.parent:this.getInstanceParentControl(e.parent,r)}getInstanceInSubtableHeader(e){const r=this.getInstanceRowIndex(e);if(r===void 0)return;if(r===-1)return e;const n=this.assertInstance(e,Te.SUBTABLE_COLUMN)?e:this.getInstanceParentControl(e,Te.SUBTABLE_COLUMN);if(!n)return;const u=this.getInstanceParentControl(e,Te.SUBTABLE).props.headers.find(o=>o.id===n.id);if(!!u)return u.children.find(o=>o.id===e.id)}setControlConfig(...e){return this.runtime.registerControlConfig(...e)}getControlConfig(e){return this.runtime.getControlConfig(e)}inList(e){const r=this.store.subtableHeadersControlIdMapping;let n;for(const i in r)if(e in r[i]){n=i;break}return n}findSubtableHeadersControl(e){const r=this.store.subtableHeadersControlIdMapping;let n;for(const i in r)if(e in r[i]){n=r[i][e];break}return n}}class ZC{}class XC{constructor(e,r,n){this.config=e,this.env=r,this.eventJs=n}apply(e){this.engine=e;const r=this.config;if(!r)return;const n=e.getAction();if(this.eventJs){this.eventJs.exportsFun({ctx:e,utils:n.actionUtils});for(let[i,u]of Object.entries(this.eventJs))n.addAction(i,u)}else{const i=Ta(r,e,this.env);if(!i)return;for(let[u,o]of Object.entries(i.funcMap))n.addAction(u,o)}}}function Ta(t,e,r){if(!t.module||!t.module.compiled)return;const n=t.module.compiled,i={exports:{ctx:e,utils:e.getAction().actionUtils,env:r}};try{new Function("module","exports",n).call(i,i,i.exports)}catch(a){jt(a.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&jt("fail to parse the module")}const u={},o={};for(const[a,s]of Object.entries(i.exports))typeof s=="function"?u[a]=s:o[a]=s;return{funcMap:u,variables:o}}const KC={"engine-initialized":"did_init","engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class YC{constructor(e){this.config=e}apply(e){this.engine=e,Object.entries(KC).forEach(([r,n])=>{e.on(r,i=>It(this,null,function*(){const u=yield this.callLifecycleEvent(n,i);return u.includes(!1)?!1:u}))})}callLifecycleEvent(e,r){return It(this,null,function*(){const n=this.config;return!n||!Array.isArray(n[e])?[]:yield Promise.all(n[e].map(u=>It(this,null,function*(){return yield this.engine.getAction().execAction(u,r)})))})}}class e5{constructor(e,r){this.config=e,this.customEvents=r}apply(e){this.engine=e,Os.events.forEach(r=>{r.code&&r.key&&this.engineAddEventListener(r.code,r.key)}),this.customEvents.map(r=>{let n=r.key;r.namespace!==void 0&&r.namespace!==null&&r.namespace!==""&&(n=r.namespace+":"+r.key),this.engineAddEventListener(n,n)})}engineAddEventListener(e,r){this.engine.on(e,n=>It(this,null,function*(){if(!((e==="change"||e==="list-change")&&!this.engine.isMounted)&&n.instance!==void 0)return yield this.callControlEvent(r,n)}))}callControlEvent(e,r){return It(this,null,function*(){const n=this.config[r.instance.id];if(!n||!Array.isArray(n[e]))return[];const i=yield Promise.all(n[e].map(u=>It(this,null,function*(){return yield this.engine.getAction().execAction(u,r)})));return i.includes(!1)?!1:i})}}function Vn(){return Vn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Vn.apply(null,arguments)}var Ia={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function We(t){return typeof t=="number"}function Wt(t){return!t||typeof t!="object"||typeof t.constructor!="function"?!1:t.isBigNumber===!0&&typeof t.constructor.prototype=="object"&&t.constructor.prototype.isBigNumber===!0||typeof t.constructor.isDecimal=="function"&&t.constructor.isDecimal(t)===!0}function Pa(t){return t&&typeof t=="object"&&Object.getPrototypeOf(t).isComplex===!0||!1}function Na(t){return t&&typeof t=="object"&&Object.getPrototypeOf(t).isFraction===!0||!1}function $a(t){return t&&t.constructor.prototype.isUnit===!0||!1}function zn(t){return typeof t=="string"}var lt=Array.isArray;function Sr(t){return t&&t.constructor.prototype.isMatrix===!0||!1}function Ju(t){return Array.isArray(t)||Sr(t)}function t5(t){return t&&t.isDenseMatrix&&t.constructor.prototype.isMatrix===!0||!1}function r5(t){return t&&t.isSparseMatrix&&t.constructor.prototype.isMatrix===!0||!1}function n5(t){return t&&t.constructor.prototype.isRange===!0||!1}function Ra(t){return t&&t.constructor.prototype.isIndex===!0||!1}function i5(t){return typeof t=="boolean"}function u5(t){return t&&t.constructor.prototype.isResultSet===!0||!1}function o5(t){return t&&t.constructor.prototype.isHelp===!0||!1}function s5(t){return typeof t=="function"}function a5(t){return t instanceof Date}function l5(t){return t instanceof RegExp}function La(t){return!!(t&&typeof t=="object"&&t.constructor===Object&&!Pa(t)&&!Na(t))}function c5(t){return t===null}function f5(t){return t===void 0}function h5(t){return t&&t.isAccessorNode===!0&&t.constructor.prototype.isNode===!0||!1}function d5(t){return t&&t.isArrayNode===!0&&t.constructor.prototype.isNode===!0||!1}function p5(t){return t&&t.isAssignmentNode===!0&&t.constructor.prototype.isNode===!0||!1}function g5(t){return t&&t.isBlockNode===!0&&t.constructor.prototype.isNode===!0||!1}function v5(t){return t&&t.isConditionalNode===!0&&t.constructor.prototype.isNode===!0||!1}function m5(t){return t&&t.isConstantNode===!0&&t.constructor.prototype.isNode===!0||!1}function y5(t){return t&&t.isFunctionAssignmentNode===!0&&t.constructor.prototype.isNode===!0||!1}function D5(t){return t&&t.isFunctionNode===!0&&t.constructor.prototype.isNode===!0||!1}function E5(t){return t&&t.isIndexNode===!0&&t.constructor.prototype.isNode===!0||!1}function w5(t){return t&&t.isNode===!0&&t.constructor.prototype.isNode===!0||!1}function C5(t){return t&&t.isObjectNode===!0&&t.constructor.prototype.isNode===!0||!1}function A5(t){return t&&t.isOperatorNode===!0&&t.constructor.prototype.isNode===!0||!1}function b5(t){return t&&t.isParenthesisNode===!0&&t.constructor.prototype.isNode===!0||!1}function F5(t){return t&&t.isRangeNode===!0&&t.constructor.prototype.isNode===!0||!1}function _5(t){return t&&t.isRelationalNode===!0&&t.constructor.prototype.isNode===!0||!1}function B5(t){return t&&t.isSymbolNode===!0&&t.constructor.prototype.isNode===!0||!1}function S5(t){return t&&t.constructor.prototype.isChain===!0||!1}function Zu(t){var e=typeof t;return e==="object"?t===null?"null":Wt(t)?"BigNumber":t.constructor&&t.constructor.name?t.constructor.name:"Object":e}function dr(t){var e=typeof t;if(e==="number"||e==="string"||e==="boolean"||t===null||t===void 0)return t;if(typeof t.clone=="function")return t.clone();if(Array.isArray(t))return t.map(function(r){return dr(r)});if(t instanceof Date)return new Date(t.valueOf());if(Wt(t))return t;if(La(t))return O5(t,dr);throw new TypeError("Cannot clone: unknown type of value (value: ".concat(t,")"))}function O5(t,e){var r={};for(var n in t)Wn(t,n)&&(r[n]=e(t[n]));return r}function rn(t,e){var r,n,i;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;n++)if(!rn(t[n],e[n]))return!1;return!0}else{if(typeof t=="function")return t===e;if(t instanceof Object){if(Array.isArray(e)||!(e instanceof Object))return!1;for(r in t)if(!(r in e)||!rn(t[r],e[r]))return!1;for(r in e)if(!(r in t))return!1;return!0}else return t===e}}function Wn(t,e){return t&&Object.hasOwnProperty.call(t,e)}function M5(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n],u=t[i];u!==void 0&&(r[i]=u)}return r}var x5=["Matrix","Array"],T5=["number","BigNumber","Fraction"],ka=function(e){if(e)throw new Error(`The global config is readonly.
2
+ ${n}`)}finally{tn=""}}),this.__pluginsApplied=!0)}listControlCreateRow(e,r){let n;if(r==="subtable-row"?n={children:[],controlType:he.LAYOUT,id:bn(),type:"subtable-row",props:{caption:"",isHide:!1,style:{height:"",heightConfig:"fill",width:"",widthConfig:"fill"}},fieldType:void 0,customEvents:[],pageStatus:0,rules:[],parent:void 0}:n=this.runtime.createControlInstance(r),!!n){if(n.controlType===he.LAYOUT){const i=n,u=ye(e.props.headers),o=this.createControl(u);for(let a of o)a.parent||this.runtime.resetInstanceParent(a,i);i.children.push(...o)}return n.parent=e,n}}listControlAddRow(e,r="subtable-row"){const n=this.listControlCreateRow(e,r);!n||e.children.push(n)}emit(e,r){return It(this,null,function*(){if(e==="engine-mounted"){if(this.isMounted)return Cr("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 n,i;this.isMounted||(i=new Promise(o=>{n=o}),this._jobTasks.push(i));const u=yield mf(Qu.prototype,this,"emit").call(this,e,r);return n&&i&&(n(),this._jobTasks.splice(this._jobTasks.indexOf(i),1)),u})}on(e,r){return tn&&(r.applyingPluginName=tn),super.on(e,r)}createControl(...e){return this.runtime.createControl(...e)}createInstance(e,r){return this.runtime.createControlInstance(e,r)}schemaEvent(e,r){this.emit(e,r)}updateInstanceProps(e,r,n,i){return this.setInstance(e,r,n,i)}getRule(e,r){return Je.staticGetRules(e,r)}getAllRules(e){var n,i;const r=this.runtime.allRules;return e===void 0?r:{rules:(n=r.rules[e])==null?void 0:n.fields,antdRules:(i=r.antdRules[e])==null?void 0:i.fields}}getRules(e,r=!1){var a,s,l,c,f,h,g;const n=this.runtime.rules,i=this.runtime.fieldCodeRules,u=this.store.controlIdMapping,o=r?i:n;if(e===void 0)return r?i:o;{if(e=r?(a=u[e])!=null&&a.children?(s=u[e].dataBind)==null?void 0:s.dataCode:((l=u[e].dataBind)==null?void 0:l.fieldCode)||e:e,e in o)return(c=o[e])==null?void 0:c.fields;let v;for(const d in o)if(e in(((f=o[d])==null?void 0:f.fields)||{})){v=(g=(h=o[d])==null?void 0:h.fields)==null?void 0:g[e];break}return v}}getAntdRules(e){var r;return e===void 0?this.runtime.antdRules:(r=this.runtime.antdRules[e])==null?void 0:r.fields}getState(e,r){return e===void 0?this.store.state:this.store.getState(e,r)}getEmptyState(e){return ye(e===void 0?this.store.emptyState:this.store.getEmptyState(e))}setPayloadOptions(e){Br=e}setState(e,r,n,i){Br=i,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",e,r,n,i),this.store.setState(e,r,n),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",e,r,n),Br=null}setStates(e,r,n){let i=e!=null?e:{};Object.keys(i).forEach(u=>{Object.entries(this.store.controlIdMapping).forEach(([o,a])=>{if(a.dataView===u){const s=i[u][o];s!==void 0&&this.setState(o,s,r,n)}else(o===u||a.children&&a.children[u])&&i[u]!==void 0&&this.setState(u,i[u],r,n)})})}getField(e,r,n){if(!r){const s=this.getDataBindMapping(e);if(s){const{controlId:l}=s;return this.getState(l)}return}const i=this.getDataBindMapping(e,r);if(!i)return;const{dataBind:u,controlId:o}=i,a=this.getState(o,n);return at(u)?a:Object.entries(u).reduce((s,[l,c])=>c.fieldCode===r?s[l]:s,a)}getData(e){var i,u,o,a,s,l,c,f,h;if(!e)return;let r=this.getDataBindMapping(e),n=this.getControlIdMapping();if(r){const{controlId:g}=r,v=this.getField(e);if(Array.isArray(v))return v.map(m=>{var y,D,E,w,_,O;let p={};for(let C in m){const b=(E=(D=(y=n[g])==null?void 0:y.children[C])==null?void 0:D.dataBind)==null?void 0:E.fieldCode;if(b!==""){if(b)p[b]=m[C];else if((w=n[g])!=null&&w.children[C])for(let S in m[C])p[(O=(_=n[g])==null?void 0:_.children[C])==null?void 0:O.dataBind[S].fieldCode]=m[C][S]}}return p});{let d={};for(let m in v)if((u=(i=n[m])==null?void 0:i.dataBind)!=null&&u.fieldCode)d[(o=n[m])==null?void 0:o.dataBind.fieldCode]=v[m];else if((s=(a=n[m])==null?void 0:a.dataBind)!=null&&s.dataCode)Array.isArray(v[m])&&(d[(l=n[m])==null?void 0:l.dataBind.dataCode]=(c=v[m])==null?void 0:c.map(p=>{var D,E;let y={};for(let w in p){const _=(D=n[m].children[w])==null?void 0:D.dataBind.fieldCode;if(_!=="")if(_)y[_]=p[w];else for(let O in p[w])y[(E=n[m].children[w])==null?void 0:E.dataBind[O].fieldCode]=p[w][O]}return y}));else if(n[m])for(let p in v[m])d[(h=(f=n[m])==null?void 0:f.dataBind[p])==null?void 0:h.fieldCode]=v[m][p];return d}}}setField(e,r,n,i,u){var l;const o=this.getDataBindMapping(e,r);if(!o)return;const{dataBind:a,controlId:s}=o;if(at(a))this.setState(s,n,i,u);else{const c=(l=ye(this.getState(s,i)))!=null?l:this.getEmptyState(s),f=Object.entries(a).reduce((h,[g,v])=>(v.fieldCode===r&&(h[g]=n),h),c);this.setState(s,f,i,u)}}setFields(e,r,n,i){const u=this.getDataBindMapping(e);if(!u)return;let o=[];u.fields.forEach(a=>{var f;const{dataBind:s,controlId:l,fieldCode:c}=a;if(!o.includes(c)&&!!Object.hasOwnProperty.call(r,c))if(at(s))this.setState(l,r[c],n,i);else{const h=(f=ye(this.getState(l,n)))!=null?f:this.getEmptyState(l),g=Object.entries(s).reduce((v,[d,m])=>{o.push(m.fieldCode);const p=r[m.fieldCode];return p!==void 0&&(v[d]=p),v},h);this.setState(a.controlId,g,n,i)}})}buildFields(e,r){const n=this.getDataBindMapping(e);if(!n||!n.fields)return;let i=[];const u={};return n.fields.forEach(o=>{const{dataBind:a,controlId:s,fieldCode:l}=o;if(!i.includes(l)&&!!Object.hasOwnProperty.call(r,l))if(at(a))u[s]=r[l];else{const c=this.getEmptyState(s);u[o.controlId]=Object.entries(a).reduce((f,[h,g])=>{i.push(g.fieldCode);const v=r[g.fieldCode];return v!==void 0&&(f[h]=v),f},c)}}),u}setData(e,r){this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",e,r);const n=r==null?void 0:r.onlySetData;let i=this.store.defaultState;n===!0&&(i={}),Object.keys(e).map(u=>{var a,s,l,c;const o=e[u];if(Array.isArray(o)){const f=this.getDataBindMapping(u);if(!f)return;i[f.dataViewId]||(i[f.dataViewId]={}),o.length?i[f.dataViewId][f.controlId]=[]:i[f.dataViewId][f.controlId]=(a=i[f.dataViewId][f.controlId])!=null?a:[];let h={},g={};o.map(v=>{let d=ye(this.store.emptyState[f.dataViewId][f.controlId]),m=[];Object.keys(v).map(p=>{var E,w,_,O,C;if(((w=(E=this.store.dataBindMapping[u])==null?void 0:E.fields)==null?void 0:w.some(b=>b.fieldCode===p))||p in d&&v[p]!==void 0&&(d[p]=v[p]),m.includes(p))return;g.hasOwnProperty(p)===!1&&(g[p]=(O=(_=this.store.dataBindMapping[u])==null?void 0:_.fields)==null?void 0:O.find(b=>b.fieldCode===p));const D=g[p];if(D){if(at(D.dataBind)&&v[p]!==void 0)d[D.controlId]=v[p];else if(!at(D.dataBind)){h.hasOwnProperty(D.controlId)===!1&&(h[D.controlId]=ye((C=this.getEmptyState(D.controlId))!=null?C:{}));let b=ye(h[D.controlId]);Object.keys(D.dataBind).map(S=>{const F=D.dataBind[S];v[F.fieldCode]!==void 0&&(b[S]=v[F.fieldCode]),m.push(F.fieldCode)}),d[D.controlId]=b}}else p==="uid"&&v.uid!==void 0?d.uid=v.uid:p==="virtualStore"&&v.virtualStore!==void 0&&(d.virtualStore=Object.freeze(v.virtualStore))}),i[f.dataViewId][f.controlId].push(d)})}else if(o){let f=[];const h=ye(this.store.emptyState);(s=Object.keys(o))!=null&&s.length&&Object.keys(o).map(v=>{var m;if(f.includes(v))return;const d=this.getDataBindMapping(u,v);if(d){if(i[d.dataViewId[0]]||(i[d.dataViewId[0]]={}),at(d.dataBind)&&o[v]!==void 0)i[d.dataViewId[0]][d.controlId]=o[v]!==void 0?o[v]:h[d.dataViewId[0]][d.controlId];else if(!at(d.dataBind)){let p=(m=this.getEmptyState(d.controlId))!=null?m:{};Object.keys(d.dataBind).map(y=>{const D=d.dataBind[y];if(e[D.dataCode]){const E=e[D.dataCode];E[D.fieldCode]!==void 0&&(p[y]=E[D.fieldCode])}f.push(D.fieldCode)}),i[d.dataViewId[0]][d.controlId]=p}}else{const p=this.getDataBindMapping(u);if((p==null?void 0:p.dataViewId)&&o[u]!==void 0){const y=p==null?void 0:p.dataViewId;v in(h[y]||{})&&(i[y][v]=o[v])}}});const g=this.getDataBindMapping(u);if(g){const v=(l=g==null?void 0:g.fields)==null?void 0:l.map(p=>p==null?void 0:p.controlId),d=this.getEmptyState(g==null?void 0:g.controlId),m=Object.keys((c=i==null?void 0:i[g==null?void 0:g.controlId])!=null?c:{});v==null||v.forEach(p=>{!m.includes(p)&&p!=="uid"&&i[g==null?void 0:g.controlId]&&(Object.keys(i).length?Object.assign(i[g==null?void 0:g.controlId],{[p]:d[p]}):Object.assign(i,{[g.controlId]:{[p]:d[p]}}))}),this.debugLog("engine setData\u65B9\u6CD5\u9ED8\u8BA4\u503C\u53CA\u8868\u5355\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",i)}}}),this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",i),this.setStates(i,void 0,me({setData:!0},r)),this.runtime.getFlatInstances(),this.debugLog(ue("CMD.b44b1751969061759"))}getDataBind(e){return this.store.getDataBind(e)}getInstance(e,r){const n=this.getInstances(e,r===-1);if(n.length>0)return r!==void 0?r===-1?n[0]:n[r]:n[0]}getInstances(e,r=!1){if(e===void 0)return this.runtime.flatInstances;const n=Array.from(this.runtime.instanceMap[e]||[]);if(r){const i=this.findSubtableHeadersControl(e);i!==void 0&&n.unshift(i)}return n}setInstance(e,r,n,i){try{if(typeof e=="string"&&i===-1)this.getInstances(e,i===-1).map(o=>{o&&(this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",o.id,o,r,n),iu(o.props,r,n),this.schemaEvent("schema-change",{instance:o,props:r,value:n,rowIndex:i}))});else{let u;if(typeof e=="string"?u=this.getInstance(e,i):u=e,!u)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",u.id,u,r,n),iu(u.props,r,n),this.schemaEvent("schema-change",{instance:u,props:r,value:n,rowIndex:i})}}catch(u){throw u}}getControlIdMapping(){return this.store.controlIdMapping}getFieldInstance(e,r,n){const i=this.getDataBindMapping(e,r);if(i)return this.getInstance(i.controlId,n)}setFieldInstance(e,r,n,i,u){const o=this.getDataBindMapping(e,r);if(o){const a=this.getInstance(o.controlId,u);return this.debugLog("\u8C03\u7528\u4E86setFieldInstance[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",a.id,a,n,i),this.setInstance(a.id,n,i,u),Cs(a)}}getDataBindMapping(e,r){if(!e&&!r)return this.store.dataBindMapping;const n=this.store.dataBindMapping[e];if(!n)return;if(!r)return n;const i=n.fields.find(u=>u.fieldCode===r);if(!!i)return i}getAction(){return this.actionManager}initDataManager(e){this.dataManager=new qC(e)}getDataManager(){return this.dataManager}assertInstance(e,r){return Ke(r)?e.type===r:r.includes(e.type)}assertInstanceIsCustomControl(e){return!KD(Ke(e)?e:e.type)}getInstanceRowIndex(e){if(!e.parent)return;let r;if(this.assertInstance(e.parent,Te.SUBTABLE_COLUMN)&&this.assertInstance(e.parent.parent,Te.SUBTABLE))r=-1;else if(this.getInstanceParentControl(e,Te.SUBTABLE_COLUMN)){const u=this.runtime.instanceMap[e.id];if(Object.prototype.toString.call(u)==="[object Array]"){const o=u.findIndex(a=>a===e);o>-1&&(r=o)}}return r}getInstanceParentControl(e,r){if(!!e.parent)return this.assertInstance(e.parent,r)?e.parent:this.getInstanceParentControl(e.parent,r)}getInstanceInSubtableHeader(e){const r=this.getInstanceRowIndex(e);if(r===void 0)return;if(r===-1)return e;const n=this.assertInstance(e,Te.SUBTABLE_COLUMN)?e:this.getInstanceParentControl(e,Te.SUBTABLE_COLUMN);if(!n)return;const u=this.getInstanceParentControl(e,Te.SUBTABLE).props.headers.find(o=>o.id===n.id);if(!!u)return u.children.find(o=>o.id===e.id)}setControlConfig(...e){return this.runtime.registerControlConfig(...e)}getControlConfig(e){return this.runtime.getControlConfig(e)}inList(e){const r=this.store.subtableHeadersControlIdMapping;let n;for(const i in r)if(e in r[i]){n=i;break}return n}findSubtableHeadersControl(e){const r=this.store.subtableHeadersControlIdMapping;let n;for(const i in r)if(e in r[i]){n=r[i][e];break}return n}}class ZC{}class XC{constructor(e,r,n){this.config=e,this.env=r,this.eventJs=n}apply(e){this.engine=e;const r=this.config;if(!r)return;const n=e.getAction();if(this.eventJs){this.eventJs.exportsFun({ctx:e,utils:n.actionUtils});for(let[i,u]of Object.entries(this.eventJs))n.addAction(i,u)}else{const i=Ta(r,e,this.env);if(!i)return;for(let[u,o]of Object.entries(i.funcMap))n.addAction(u,o)}}}function Ta(t,e,r){if(!t.module||!t.module.compiled)return;const n=t.module.compiled,i={exports:{ctx:e,utils:e.getAction().actionUtils,env:r}};try{new Function("module","exports",n).call(i,i,i.exports)}catch(a){jt(a.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&jt("fail to parse the module")}const u={},o={};for(const[a,s]of Object.entries(i.exports))typeof s=="function"?u[a]=s:o[a]=s;return{funcMap:u,variables:o}}const KC={"engine-initialized":"did_init","engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class YC{constructor(e){this.config=e}apply(e){this.engine=e,Object.entries(KC).forEach(([r,n])=>{e.on(r,i=>It(this,null,function*(){const u=yield this.callLifecycleEvent(n,i);return u.includes(!1)?!1:u}))})}callLifecycleEvent(e,r){return It(this,null,function*(){const n=this.config;return!n||!Array.isArray(n[e])?[]:yield Promise.all(n[e].map(u=>It(this,null,function*(){return yield this.engine.getAction().execAction(u,r)})))})}}class e5{constructor(e,r){this.config=e,this.customEvents=r}apply(e){this.engine=e,Os.events.forEach(r=>{r.code&&r.key&&this.engineAddEventListener(r.code,r.key)}),this.customEvents.map(r=>{let n=r.key;r.namespace!==void 0&&r.namespace!==null&&r.namespace!==""&&(n=r.namespace+":"+r.key),this.engineAddEventListener(n,n)})}engineAddEventListener(e,r){this.engine.on(e,n=>It(this,null,function*(){if(!((e==="change"||e==="list-change")&&!this.engine.isMounted)&&n.instance!==void 0)return yield this.callControlEvent(r,n)}))}callControlEvent(e,r){return It(this,null,function*(){const n=this.config[r.instance.id];if(!n||!Array.isArray(n[e]))return[];const i=yield Promise.all(n[e].map(u=>It(this,null,function*(){return yield this.engine.getAction().execAction(u,r)})));return i.includes(!1)?!1:i})}}function Vn(){return Vn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Vn.apply(null,arguments)}var Ia={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function We(t){return typeof t=="number"}function Wt(t){return!t||typeof t!="object"||typeof t.constructor!="function"?!1:t.isBigNumber===!0&&typeof t.constructor.prototype=="object"&&t.constructor.prototype.isBigNumber===!0||typeof t.constructor.isDecimal=="function"&&t.constructor.isDecimal(t)===!0}function Pa(t){return t&&typeof t=="object"&&Object.getPrototypeOf(t).isComplex===!0||!1}function Na(t){return t&&typeof t=="object"&&Object.getPrototypeOf(t).isFraction===!0||!1}function $a(t){return t&&t.constructor.prototype.isUnit===!0||!1}function zn(t){return typeof t=="string"}var lt=Array.isArray;function Sr(t){return t&&t.constructor.prototype.isMatrix===!0||!1}function Ju(t){return Array.isArray(t)||Sr(t)}function t5(t){return t&&t.isDenseMatrix&&t.constructor.prototype.isMatrix===!0||!1}function r5(t){return t&&t.isSparseMatrix&&t.constructor.prototype.isMatrix===!0||!1}function n5(t){return t&&t.constructor.prototype.isRange===!0||!1}function Ra(t){return t&&t.constructor.prototype.isIndex===!0||!1}function i5(t){return typeof t=="boolean"}function u5(t){return t&&t.constructor.prototype.isResultSet===!0||!1}function o5(t){return t&&t.constructor.prototype.isHelp===!0||!1}function s5(t){return typeof t=="function"}function a5(t){return t instanceof Date}function l5(t){return t instanceof RegExp}function La(t){return!!(t&&typeof t=="object"&&t.constructor===Object&&!Pa(t)&&!Na(t))}function c5(t){return t===null}function f5(t){return t===void 0}function h5(t){return t&&t.isAccessorNode===!0&&t.constructor.prototype.isNode===!0||!1}function d5(t){return t&&t.isArrayNode===!0&&t.constructor.prototype.isNode===!0||!1}function p5(t){return t&&t.isAssignmentNode===!0&&t.constructor.prototype.isNode===!0||!1}function g5(t){return t&&t.isBlockNode===!0&&t.constructor.prototype.isNode===!0||!1}function v5(t){return t&&t.isConditionalNode===!0&&t.constructor.prototype.isNode===!0||!1}function m5(t){return t&&t.isConstantNode===!0&&t.constructor.prototype.isNode===!0||!1}function y5(t){return t&&t.isFunctionAssignmentNode===!0&&t.constructor.prototype.isNode===!0||!1}function D5(t){return t&&t.isFunctionNode===!0&&t.constructor.prototype.isNode===!0||!1}function E5(t){return t&&t.isIndexNode===!0&&t.constructor.prototype.isNode===!0||!1}function w5(t){return t&&t.isNode===!0&&t.constructor.prototype.isNode===!0||!1}function C5(t){return t&&t.isObjectNode===!0&&t.constructor.prototype.isNode===!0||!1}function A5(t){return t&&t.isOperatorNode===!0&&t.constructor.prototype.isNode===!0||!1}function b5(t){return t&&t.isParenthesisNode===!0&&t.constructor.prototype.isNode===!0||!1}function F5(t){return t&&t.isRangeNode===!0&&t.constructor.prototype.isNode===!0||!1}function _5(t){return t&&t.isRelationalNode===!0&&t.constructor.prototype.isNode===!0||!1}function B5(t){return t&&t.isSymbolNode===!0&&t.constructor.prototype.isNode===!0||!1}function S5(t){return t&&t.constructor.prototype.isChain===!0||!1}function Zu(t){var e=typeof t;return e==="object"?t===null?"null":Wt(t)?"BigNumber":t.constructor&&t.constructor.name?t.constructor.name:"Object":e}function dr(t){var e=typeof t;if(e==="number"||e==="string"||e==="boolean"||t===null||t===void 0)return t;if(typeof t.clone=="function")return t.clone();if(Array.isArray(t))return t.map(function(r){return dr(r)});if(t instanceof Date)return new Date(t.valueOf());if(Wt(t))return t;if(La(t))return O5(t,dr);throw new TypeError("Cannot clone: unknown type of value (value: ".concat(t,")"))}function O5(t,e){var r={};for(var n in t)Wn(t,n)&&(r[n]=e(t[n]));return r}function rn(t,e){var r,n,i;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;n++)if(!rn(t[n],e[n]))return!1;return!0}else{if(typeof t=="function")return t===e;if(t instanceof Object){if(Array.isArray(e)||!(e instanceof Object))return!1;for(r in t)if(!(r in e)||!rn(t[r],e[r]))return!1;for(r in e)if(!(r in t))return!1;return!0}else return t===e}}function Wn(t,e){return t&&Object.hasOwnProperty.call(t,e)}function M5(t,e){for(var r={},n=0;n<e.length;n++){var i=e[n],u=t[i];u!==void 0&&(r[i]=u)}return r}var x5=["Matrix","Array"],T5=["number","BigNumber","Fraction"],ka=function(e){if(e)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": "6.2.0-beta.17",
3
+ "version": "6.2.0-beta.18",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -38,5 +38,5 @@
38
38
  "@types/postcss-prefix-selector": "^1.16.3",
39
39
  "postcss-nested": "^7.0.2"
40
40
  },
41
- "gitHead": "5e547ab523adbecb1767f95a66765f416d7b1e29"
41
+ "gitHead": "d4b398136d5b594d02f3963f027c28036543cca1"
42
42
  }