@byteluck-fe/model-driven-engine 2.7.0-alpha.1 → 2.7.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +1 -1
- package/package.json +4 -4
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var s1=Object.defineProperty,c1=Object.defineProperties;var f1=Object.getOwnPropertyDescriptors;var Qi=Object.getOwnPropertySymbols,l1=Object.getPrototypeOf,h1=Object.prototype.hasOwnProperty,d1=Object.prototype.propertyIsEnumerable,p1=Reflect.get;var Sn=Math.pow,Yi=(Z,ee,re)=>ee in Z?s1(Z,ee,{enumerable:!0,configurable:!0,writable:!0,value:re}):Z[ee]=re,ne=(Z,ee)=>{for(var re in ee||(ee={}))h1.call(ee,re)&&Yi(Z,re,ee[re]);if(Qi)for(var re of Qi(ee))d1.call(ee,re)&&Yi(Z,re,ee[re]);return Z},Lr=(Z,ee)=>c1(Z,f1(ee));var eo=(Z,ee,re)=>p1(l1(Z),re,ee);var Ve=(Z,ee,re)=>new Promise((_n,zt)=>{var Mn=He=>{try{Mt(re.next(He))}catch(It){zt(It)}},In=He=>{try{Mt(re.throw(He))}catch(It){zt(It)}},Mt=He=>He.done?_n(He.value):Promise.resolve(He.value).then(Mn,In);Mt((re=re.apply(Z,ee)).next())});(function(Z,ee){typeof exports=="object"&&typeof module!="undefined"?ee(exports,require("crypto")):typeof define=="function"&&define.amd?define(["exports","crypto"],ee):(Z=typeof globalThis!="undefined"?globalThis:Z||self,ee(Z.modelDrivenEngine={},Z.require$$0))})(this,function(Z,ee){"use strict";function re(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var _n=re(ee),zt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Mn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",In="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Mt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",He="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",It="{caption}\u5FC5\u586B",to="\u8BF7\u8F93\u5165\u6807\u9898",no="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",ro="\u8BF7\u8F93\u5165\u884C\u6807\u9898",uo="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",io="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",oo="\u8BF7\u7ED1\u5B9A\u8868\u5355",ao="\u8BF7\u7ED1\u5B9A\u5217\u8868",so="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",co="\u8BF7\u8F93\u5165\u663E\u793A\u503C",fo="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",lo="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",ho="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",po="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Do="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",go="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",vo="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",mo="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",yo="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Eo="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Ao="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Co="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Fo="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",wo="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Bo="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",bo="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",So="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",_o="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Mo="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Io="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",No="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",xo="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Oo="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Ro="\u8BF7\u9009\u62E9\u7701",To="\u8BF7\u9009\u62E9\u5E02",$o="\u8BF7\u9009\u62E9\u533A",Po="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Lo="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",jo="\u8BF7\u8F93\u5165\u5217\u5BBD",ko="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",qo="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Uo="\u8BF7\u9009\u62E9\u63A7\u4EF6",Vo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Ho="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",zo="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Wo="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Zo="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Xo="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Go="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Jo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ko="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Qo="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Yo="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ea="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",ta="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",na="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ra="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",ua="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ia="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",oa="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",aa="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",sa="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",ca="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",fa={isNotNumber:zt,isNotString:Mn,isNotObject:In,isNotArray:Mt,isNotBoolean:He,runtimeRequired:It,pleaseEnterCaption:to,pleaseEnterCaptionTip:no,pleaseEnterRowCaption:ro,pleaseEnterPlaceholder:uo,pleaseEnterFieldCode:io,pleaseEnterForm:oo,pleaseEnterList:ao,pleaseEnterProcess:so,pleaseEnterLabel:co,pleaseEnterValue:fo,bizKeyNotBindFiled:lo,pleaseSelectOneField:ho,pleaseEnterNumberRange:po,pleaseEnterAValueGreaterThanMin:Do,pleaseEnterAValueLessThanMax:go,numberRangeSetError:vo,stringRangeError:mo,attachmentMaxSize:yo,pleaseEnterTotalScoreSetting:Eo,theTotalScoreMustNotBeLessThan1:Ao,scoreDefaultValueRange:Co,attachmentLimitError:Fo,PleaseReselectTheOptionalQuantity:wo,TheMaximumLengthIsGreaterThanTheMinimumLength:Bo,TheMinimumLengthIsGreaterThanTheMaximumLength:bo,PleaseSelectTheCorrectOptionSettings:So,optionIdIsRepeat:_o,optionIsRequired:Mo,pleaseEnterDataCode:Io,pleaseEnterValueFieldCode:No,pleaseEnterSvcCode:xo,pleaseBindAtLeastOneDisplayValue:Oo,pleaseSelectProvince:Ro,pleaseSelectCity:To,pleaseSelectDistrict:$o,limitRowsCannotBeLessThan0:Po,TheNumberOfRowsCannotBeLessThanMinRows:Lo,pleaseEnterColumnWidth:jo,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ko,pleaseCompleteAllRulesAndConditions:qo,pleaseSelectControl:Uo,pleaseSelectAtLeastOneColumn:Vo,pleaseSelectFillBackMode:Ho,pleaseSelectDashboard:zo,rootNodeIsRequired:Wo,theViewNameCannotBeEmpty:Zo,pleaseSelectOcrType:Xo,pleaseSelectAtLeastOneFieldToFillIn:Go,pleaseChooseAtLeastOne:Jo,pleaseEnterButtonContent:Ko,pleaseEnterDataCodeInDataSetting:Qo,pleaseEnterValueFieldCodeInDataSetting:Yo,pleaseEnterSvcCodeInDataSetting:ea,pleaseBindAtLeastOneDisplayValueInDataSetting:ta,rootNodeIsRequiredInDataSetting:na,pleaseEnterMaxHeight:ra,pleaseEnter:ua,pleaseEnterWatermark:ia,pleaseEnterFileName:oa,pleaseUploadAtLeastOnePrintTemplate:aa,pleaseAssignBusiness:sa,pleaseAssignExternal:ca},la="Please enter a number",ha="Please enter a string",da="Please enter an object",pa="Please enter an array",Da="Please enter a boolean",ga="{caption} Required",va="Please enter the title",ma="Please enter the bubble prompt",ya="Please enter the row title",Ea="Please enter the prompt text",Aa="Please bind data items",Ca="Please bind the form",Fa="Please bind the list",wa="Please bind the process",Ba="Please enter the displayed value",ba="Please enter the stored value",Sa="The document number is not bound to the data item",_a="Please select at least one display field",Ma="Please enter a value greater than or equal to {min} and less than or equal to {max}",Ia="Please enter a value greater than or equal to {min}",Na="Please enter a value less than or equal to {max}",xa="The value range is set incorrectly",Oa="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Ra="The attachment size must be between 0MB and 1000MB",Ta="Please fill in the total score setting",$a="The total score cannot be less than 1",Pa="The default value must be between {min} and {max}",La="The number of attachments uploaded must be between {min} and {max}",ja="Please re-select the optional quantity",ka="The maximum length of the control must be greater than the minimum length",qa="The minimum length of the control must be less than the maximum length",Ua="Please select the correct option setting",Va="Option ID cannot be repeated",Ha="Please enter at least one option",za="Please bind the data source",Wa="Please bind the stored value",Za="Please bind the service",Xa="At least one display value must be bound",Ga="Please select a province",Ja="Please select a city",Ka="Please select a district",Qa="The minimum number of lines to fill in cannot be less than 0",Ya="The number of rows cannot be less than {min} rows",es="Please enter the column width",ts="Please set the logical relationship of all rule conditions",ns="Please complete all rules and conditions",rs="please select control",us="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",is="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",os="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",as="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",ss="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",cs="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",fs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ls="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",hs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",ds="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ps="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Ds="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",gs="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",vs="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ms="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ys="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Es="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",As="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Cs={isNotNumber:la,isNotString:ha,isNotObject:da,isNotArray:pa,isNotBoolean:Da,runtimeRequired:ga,pleaseEnterCaption:va,pleaseEnterCaptionTip:ma,pleaseEnterRowCaption:ya,pleaseEnterPlaceholder:Ea,pleaseEnterFieldCode:Aa,pleaseEnterForm:Ca,pleaseEnterList:Fa,pleaseEnterProcess:wa,pleaseEnterLabel:Ba,pleaseEnterValue:ba,bizKeyNotBindFiled:Sa,pleaseSelectOneField:_a,pleaseEnterNumberRange:Ma,pleaseEnterAValueGreaterThanMin:Ia,pleaseEnterAValueLessThanMax:Na,numberRangeSetError:xa,stringRangeError:Oa,attachmentMaxSize:Ra,pleaseEnterTotalScoreSetting:Ta,theTotalScoreMustNotBeLessThan1:$a,scoreDefaultValueRange:Pa,attachmentLimitError:La,PleaseReselectTheOptionalQuantity:ja,TheMaximumLengthIsGreaterThanTheMinimumLength:ka,TheMinimumLengthIsGreaterThanTheMaximumLength:qa,PleaseSelectTheCorrectOptionSettings:Ua,optionIdIsRepeat:Va,optionIsRequired:Ha,pleaseEnterDataCode:za,pleaseEnterValueFieldCode:Wa,pleaseEnterSvcCode:Za,pleaseBindAtLeastOneDisplayValue:Xa,pleaseSelectProvince:Ga,pleaseSelectCity:Ja,pleaseSelectDistrict:Ka,limitRowsCannotBeLessThan0:Qa,TheNumberOfRowsCannotBeLessThanMinRows:Ya,pleaseEnterColumnWidth:es,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ts,pleaseCompleteAllRulesAndConditions:ns,pleaseSelectControl:rs,pleaseSelectDashboard:us,theViewNameCannotBeEmpty:is,pleaseSelectOcrType:os,pleaseSelectAtLeastOneFieldToFillIn:as,pleaseChooseAtLeastOne:ss,pleaseEnterButtonContent:cs,pleaseEnterDataCodeInDataSetting:fs,pleaseEnterValueFieldCodeInDataSetting:ls,pleaseEnterSvcCodeInDataSetting:hs,pleaseBindAtLeastOneDisplayValueInDataSetting:ds,rootNodeIsRequiredInDataSetting:ps,pleaseEnterMaxHeight:Ds,pleaseEnter:gs,pleaseEnterWatermark:vs,pleaseEnterFileName:ms,pleaseUploadAtLeastOnePrintTemplate:ys,pleaseAssignBusiness:Es,pleaseAssignExternal:As},Fs="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ws="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Bs="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",bs="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ss="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",_s="{caption}\u5FC5\u9808",Ms="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Is="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ns="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",xs="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Os="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Rs="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ts="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",$s="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ps="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ls="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",js="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",ks="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",qs="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Us="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Vs="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Hs="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",zs="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ws="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Zs="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Xs="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Gs="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Js="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ks="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Qs="\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",Ys="\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",ec="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",tc="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",nc="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",rc="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",uc="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ic="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",oc="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",ac="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",sc="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",cc="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",fc="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",lc="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",hc="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",dc="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",pc="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Dc="please select control",gc="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",vc="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",mc="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",yc="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Ec="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ac="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Cc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Fc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",wc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Bc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",bc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Sc="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",_c="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Mc="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Ic="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Nc="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",xc="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Oc="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Rc={isNotNumber:Fs,isNotString:ws,isNotObject:Bs,isNotArray:bs,isNotBoolean:Ss,runtimeRequired:_s,pleaseEnterCaption:Ms,pleaseEnterCaptionTip:Is,pleaseEnterRowCaption:Ns,pleaseEnterPlaceholder:xs,pleaseEnterFieldCode:Os,pleaseEnterForm:Rs,pleaseEnterList:Ts,pleaseEnterProcess:$s,pleaseEnterLabel:Ps,pleaseEnterValue:Ls,bizKeyNotBindFiled:js,pleaseSelectOneField:ks,pleaseEnterNumberRange:qs,pleaseEnterAValueGreaterThanMin:Us,pleaseEnterAValueLessThanMax:Vs,numberRangeSetError:Hs,stringRangeError:zs,attachmentMaxSize:Ws,pleaseEnterTotalScoreSetting:Zs,theTotalScoreMustNotBeLessThan1:Xs,scoreDefaultValueRange:Gs,attachmentLimitError:Js,PleaseReselectTheOptionalQuantity:Ks,TheMaximumLengthIsGreaterThanTheMinimumLength:Qs,TheMinimumLengthIsGreaterThanTheMaximumLength:Ys,PleaseSelectTheCorrectOptionSettings:ec,optionIdIsRepeat:tc,optionIsRequired:nc,pleaseEnterDataCode:rc,pleaseEnterValueFieldCode:uc,pleaseEnterSvcCode:ic,pleaseBindAtLeastOneDisplayValue:oc,pleaseSelectProvince:ac,pleaseSelectCity:sc,pleaseSelectDistrict:cc,limitRowsCannotBeLessThan0:fc,TheNumberOfRowsCannotBeLessThanMinRows:lc,pleaseEnterColumnWidth:hc,pleaseSetTheLogicalRelationshipOfAllRuleConditions:dc,pleaseCompleteAllRulesAndConditions:pc,pleaseSelectControl:Dc,pleaseSelectDashboard:gc,theViewNameCannotBeEmpty:vc,pleaseSelectOcrType:mc,pleaseSelectAtLeastOneFieldToFillIn:yc,pleaseChooseAtLeastOne:Ec,pleaseEnterButtonContent:Ac,pleaseEnterDataCodeInDataSetting:Cc,pleaseEnterValueFieldCodeInDataSetting:Fc,pleaseEnterSvcCodeInDataSetting:wc,pleaseBindAtLeastOneDisplayValueInDataSetting:Bc,rootNodeIsRequiredInDataSetting:bc,pleaseEnterMaxHeight:Sc,pleaseEnter:_c,pleaseEnterWatermark:Mc,pleaseEnterFileName:Ic,pleaseUploadAtLeastOnePrintTemplate:Nc,pleaseAssignBusiness:xc,pleaseAssignExternal:Oc},Tc={zhCN:fa,enUS:Cs,jaJP:Rc},Oe;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(Oe||(Oe={}));var lt;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(lt||(lt={}));var jr="zh-CN";function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(J||(J={}));var X;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.ORGANIZATION_SELECTION="organization-selection",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.Approval_Status_Column="approval-status-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.ACTION_BAR="action-bar",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2"})(X||(X={}));var H;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field"})(H||(H={}));var ge;ge={},Be(ge,H.ARRAY,X.ARRAY_COLUMN),Be(ge,H.AUTO_NUMBER,X.AUTO_NUMBER_COLUMN),Be(ge,H.DECIMAL,X.DECIMAL_COLUMN),Be(ge,H.DEPARTMENTS,X.DEPARTMENT_COLUMN),Be(ge,H.FILE,X.FILE_COLUMN),Be(ge,H.IMAGE,X.IMAGE_COLUMN),Be(ge,H.ADDRESS,X.LOCATION_COLUMN),Be(ge,H.EMPLOYEES,X.EMPLOYEE_COLUMN),Be(ge,H.TEXT,X.TEXT_COLUMN),Be(ge,H.TIMESCOPE,X.TIMESCOPE_COLUMN),Be(ge,H.TIMESTAMP,X.TIMESTAMP_COLUMN),Be(ge,H.VARCHAR,X.VARCHAR_COLUMN),Be(ge,H.RELATION,X.VARCHAR_COLUMN);var kr;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime"})(kr||(kr={}));var qr="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",$c=qr+"0123456789";function Nn(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?qr:$c,u=Math.random()*r.length;t+=r[parseInt(String(u),10)]}return t}function xn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pc(e){if(Array.isArray(e))return xn(e)}function Lc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Wt(e,t,n){return jc()?Wt=Reflect.construct:Wt=function(u,i,o){var s=[null];s.push.apply(s,i);var f=Function.bind.apply(u,s),l=new f;return o&&xt(l,o.prototype),l},Wt.apply(null,arguments)}function Nt(e){return Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Nt(e)}function Vr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xt(e,t)}function kc(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function qc(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uc(){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 Vc(e,t){return t&&(Hc(t)==="object"||typeof t=="function")?t:Lc(e)}function xt(e,t){return xt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},xt(e,t)}function Hr(e){return Pc(e)||qc(e)||zc(e)||Uc()}var Hc=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function zc(e,t){if(!!e){if(typeof e=="string")return xn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xn(e,t)}}function On(e){var t=typeof Map=="function"?new Map:void 0;return On=function(r){if(r===null||!kc(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return Wt(r,arguments,Nt(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),xt(u,r)},On(e)}function Wc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function zr(e){var t=Wc();return function(){var r=Nt(e),u;if(t){var i=Nt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Vc(this,u)}}var Rn=console;function Xe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=Rn).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(Hr(u)))}function Tn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=Rn).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(Hr(u)))}function Zc(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var $n=function(e){Vr(n,e);var t=zr(n);function n(r){Ur(this,n);var u;return u=t.call(this,r),u.name="\u{1F4A5} Driven Error",u.message=r?Zc(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return n}(On(Error)),Xc=function(e){Vr(n,e);var t=zr(n);function n(r){Ur(this,n);var u;return u=t.call(this,r),u.name="\u{1F6A8} Driven Reference Error",u}return n}($n);function ze(e){throw new $n(e)}function Wr(e){throw new Xc(e)}function Zt(e){Rn.error(new $n(e))}function it(e,t){Array.isArray(e)&&e.map(function(n){switch(n.controlType){case"layout":it(n==null?void 0:n.children,t);break;case"search":it(n==null?void 0:n.children,t);break;case"form":t(n)}})}var Gc=Object.prototype.toString;function Zr(e,t){return Gc.call(e)==="[object "+t+"]"}function Jc(e){return Zr(e,"String")}function Kc(e){return Zr(e,"Promise")}var Qc=function(){function e(t){var n,r;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((r=(n=t.messages)!==null&&n!==void 0?n:this.getPreImport(t.locale))!==null&&r!==void 0?r:{}),t.variableRegExp&&(this.variableRegExp=t.variableRegExp),this.setLocale(t.locale)}return e.prototype.setLocale=function(t){var n=this;this.locale=t,this._messageCache.clear();var r=this.getMessageData();Kc(r)?r.then(function(u){n._messageCache.clear(),n.messages[n.localeInMessageKey]=u}):this.messages[this.localeInMessageKey]=r},e.prototype.getMessageData=function(){var t=this._messages[this.localeInMessageKey];return typeof t=="function"?t():t},e.prototype.translate=function(t,n,r){var u=this.getMessage(t);return u?this.formatMessage(u,r):this.formatMessage(n,r)},e.prototype.getMessage=function(t){if(this._messageCache.has(t))return this._messageCache.get(t);var n=this.getPathArray(t),r=n.reduce(function(u,i,o,s){if(u!==void 0){var f=u[i];if(!(o===s.length-1&&!Jc(f)))return f}},this.message);return this._messageCache.set(t,r),r},e.prototype.formatMessage=function(t,n){return n?t.replace(this.variableRegExp,function(r,u){var i=n[u];return i!==void 0?String(i):r}):t},e.prototype.getPreImport=function(t){var n;if(window.okI18nPreImport){var r=this.getLocaleInMessageKey(t);return window.okI18nPreImport.hasOwnProperty(r)?window.okI18nPreImport:(n={},n[r]=window.okI18nPreImport,n)}},e.prototype.getPathArray=function(t){return t.split(".")},e.prototype.getLocaleInMessageKey=function(t){return t.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var t;return(t=this.messages[this.localeInMessageKey])!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e}();function Yc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Pn=function(){function e(){Yc(this,e)}return e.getMessage=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",r)},e.resetI18n=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jr;return new Qc({locale:n,messages:Tc})},e.setLocale=function(n){return this.$i18n.setLocale(n)},e}();Pn.$i18n=Pn.resetI18n();function Ln(e,t,n){var r=t.replace(/\[(\d)]/g,function(i,o){return"."+o}).split("."),u=!1;return r.reduce(function(i,o,s,f){var l=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,o)){Xe("Can not set ".concat(t,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),i,i);return}return s===f.length-1&&!Object.is(l[o],n)&&(l[o]=n,u=!0),l[o]}},e),u}var Ge=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jn={exports:{}};(function(e){(function(t){var n=function(g,E,b){if(!l(E)||a(E)||h(E)||d(E)||f(E))return E;var C,N=0,O=0;if(c(E))for(C=[],O=E.length;N<O;N++)C.push(n(g,E[N],b));else{C={};for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&(C[g(R,b)]=n(g,E[R],b))}return C},r=function(g,E){E=E||{};var b=E.separator||"_",C=E.split||/(?=[A-Z])/;return g.split(C).join(b)},u=function(g){return p(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(E,b){return b?b.toUpperCase():""}),g.substr(0,1).toLowerCase()+g.substr(1))},i=function(g){var E=u(g);return E.substr(0,1).toUpperCase()+E.substr(1)},o=function(g,E){return r(g,E).toLowerCase()},s=Object.prototype.toString,f=function(g){return typeof g=="function"},l=function(g){return g===Object(g)},c=function(g){return s.call(g)=="[object Array]"},a=function(g){return s.call(g)=="[object Date]"},h=function(g){return s.call(g)=="[object RegExp]"},d=function(g){return s.call(g)=="[object Boolean]"},p=function(g){return g=g-0,g===g},D=function(g,E){var b=E&&"process"in E?E.process:E;return typeof b!="function"?g:function(C,N){return b(C,g,N)}},v={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(g,E){return n(D(u,E),g)},decamelizeKeys:function(g,E){return n(D(o,E),g,E)},pascalizeKeys:function(g,E){return n(D(i,E),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=v:t.humps=v})(Ge)})(jn);var Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});function kn(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:kn(t));{const t={};for(const n in e){const r=e[n];t[n]=typeof r!="object"||r===null?r:kn(r)}return t}}var ef=Gr.default=kn;function ae(e){if(e!==void 0)return typeof e=="object"?ef(e):e}function Le(e){return Object.prototype.toString.call(e)==="[object Object]"}function tf(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function ht(e){return Array.isArray(e)}function be(e){return typeof e=="string"}function Xt(e){return typeof e=="number"}function Jr(e){return typeof e=="function"}function nf(e){return ht(e)&&e.every(function(t){return be(t)})}function rf(e){return ht(e)&&e.every(function(t){return Xt(t)||t===""})}function Kr(e){return/^\[.*?]$/.test(e)}function Gt(e){return/^{.*?}$/.test(e)}function qn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uf(e){if(Array.isArray(e))return qn(e)}function Qr(e,t,n,r,u,i,o){try{var s=e[i](o),f=s.value}catch(l){n(l);return}s.done?t(f):Promise.resolve(f).then(r,u)}function of(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(f){Qr(i,r,u,o,s,"next",f)}function s(f){Qr(i,r,u,o,s,"throw",f)}o(void 0)})}}function af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sf(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cf(){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 Un(e){return uf(e)||sf(e)||ff(e)||cf()}function ff(e,t){if(!!e){if(typeof e=="string")return qn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qn(e,t)}}var lf=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return f([l,c])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(c){l=[6,c],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Yr=function(){function e(){af(this,e),this._events=new Map,this.debug=!1}var t=e.prototype;return t.emit=function(r){for(var u=arguments.length,i=new Array(u>1?u-1:0),o=1;o<u;o++)i[o-1]=arguments[o];var s=this;return of(function(){var f,l,c,a,h,d,p,D,v,g,E,b;return lf(this,function(C){switch(C.label){case 0:if(f=s._events.get(r),l=[],!f)return[3,10];c=f.slice(),a=!0,h=!1,d=void 0,C.label=1;case 1:C.trys.push([1,8,9,10]),p=c[Symbol.iterator](),C.label=2;case 2:if(a=(D=p.next()).done)return[3,7];if(v=D.value,!f.includes(v))return[3,6];C.label=3;case 3:return C.trys.push([3,5,,6]),s.debug&&Tn.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(Un(i))),[4,v.apply(null,Un(i))];case 4:return g=C.sent(),s.debug&&Tn.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(Un(i),[g])),l.push(g),g===!1?[3,7]:[3,6];case 5:return E=C.sent(),Zt(String(E)+":"+String(E.stack)),[3,6];case 6:return a=!0,[3,2];case 7:return[3,10];case 8:return b=C.sent(),h=!0,d=b,[3,10];case 9:try{!a&&p.return!=null&&p.return()}finally{if(h)throw d}return[7];case 10:return[2,l]}})})()},t.on=function(r,u){if(this._events.has(r)){var i;(i=this._events.get(r))===null||i===void 0||i.push(u)}else this._events.set(r,[u])},t.off=function(r,u){if(this._events.has(r)){var i=this._events.get(r),o=i==null?void 0:i.indexOf(u);i==null||i.splice(o,1)}},t.delete=function(r){this._events.has(r)&&this._events.delete(r)},t.clear=function(){this._events=new Map},e}();function hf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var df=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_list_before_insert",name:"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",code:"list-before-insert"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"},{key:"on_change_tab",name:"\u6807\u7B7E\u9875\u5207\u6362\u65F6",code:"change-tab"},{key:"on_modal_ok",name:"\u5F39\u7A97\u786E\u8BA4\u65F6",code:"modal-ok"}],eu=function(){function e(){hf(this,e)}var t=e.prototype;return t.getEventsFromKeys=function(r){var u=typeof r=="string"?[r]:r;return e.events.filter(function(i){return u.includes(i.key)})},e}();eu.events=df;function pf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var tu=[],Jt=function(){function e(n){pf(this,e),this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=n,this._initControls(n)}var t=e.prototype;return t.registerControlConfig=function(r,u){return this.controlConfigMap.set(r,u),this},t.getControlConfig=function(r){return this.controlConfigMap.get(r)},t.getControls=function(){return this._controls},t.register=function(r){r.__is_control__||ze("".concat(r.name," is not a Control"));var u=this._controls.findIndex(function(i){return i.controlType===r.controlType});return u>-1&&(Xe("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(u,1)),this.registeredControlTypes.add(r.controlType),this._controls.push(r),this},t.isLayoutControl=function(r){return r.controlType===J.LAYOUT},t.isFormControl=function(r){return r.controlType===J.FORM},t.isListControl=function(r){return r.controlType===J.LIST},t.isColumnControl=function(r){return r.controlType===J.COLUMN},t.createControl=function(r,u){var i=this;if(Array.isArray(r))return r.map(function(c){return i.createControl(c,u)});r.children&&(r.children=r.children.map(function(c){return i.createControl(c,u)})),this.isListControl(r)&&r.props.headers&&(r.props.headers=r.props.headers.map(function(c){return i.createControl(c,u)}));var o=this.getControlFormType(r.type);if(o){var s=r;if(typeof u=="function"){var f=u(s);f&&(s=f)}var l=new o(s);return l}else ze("The constructor of ".concat(r.type," could not be found, please confirm that the constructor has been registered"))},t.createControlInstance=function(r,u){var i=this.getControlFormType(r);if(i)return new i(u)},t.getControlFormType=function(r){return this._controls.find(function(u){return u.controlType===r})},t._initControls=function(r){var u=this;this.constructor.staticControls.forEach(function(i){u.register(i[r])})},e.register=function(r){var u=r.Designer,i=r.Runtime;(!u||!i||!u.__is_control__||!i.__is_control__)&&ze("".concat(r," is can't register as a Control"));var o=this.staticControls.findIndex(function(s){return s.Designer.controlType===u.controlType});return o>-1&&(Xe("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(o,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(r),this},e}();Jt.staticControls=tu,Jt.staticRegisteredTypes=new Set(tu.map(function(e){return e.Designer.controlType})),Jt.staticRegisteredConfigs=new Map;function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Vn=function e(t){ot(this,e);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var u;this.fieldType=(u=t==null?void 0:t.fieldType)!==null&&u!==void 0?u:"",this.aliasCode=t==null?void 0:t.aliasCode},Je=function e(){ot(this,e)},Kt=function e(t){ot(this,e);var n;this.amount=(n=t==null?void 0:t.amount)!==null&&n!==void 0?n:"";var r;this.currency=(r=t==null?void 0:t.currency)!==null&&r!==void 0?r:Hn.CNY},Qt=function e(t){ot(this,e);var n;this.min=(n=t==null?void 0:t.min)!==null&&n!==void 0?n:"";var r;this.max=(r=t==null?void 0:t.max)!==null&&r!==void 0?r:""},Yt=function e(t){ot(this,e);var n;this.city=(n=t==null?void 0:t.city)!==null&&n!==void 0?n:"";var r;this.cityDisplay=(r=t==null?void 0:t.cityDisplay)!==null&&r!==void 0?r:"";var u;this.district=(u=t==null?void 0:t.district)!==null&&u!==void 0?u:"";var i;this.districtDisplay=(i=t==null?void 0:t.districtDisplay)!==null&&i!==void 0?i:"";var o;this.province=(o=t==null?void 0:t.province)!==null&&o!==void 0?o:"";var s;this.provinceDisplay=(s=t==null?void 0:t.provinceDisplay)!==null&&s!==void 0?s:""},en=function e(t){ot(this,e);var n;this.result=(n=t==null?void 0:t.result)!==null&&n!==void 0?n:0;var r;this.unit=(r=t==null?void 0:t.unit)!==null&&r!==void 0?r:""},Hn;(function(e){e.CNY="CNY",e.USD="USD",e.JPY="JPY",e.EUR="EUR",e.INR="INR",e.IDR="IDR",e.BRL="BRL",e.AED="AED",e.AUD="AUD",e.CAD="CAD",e.EGP="EGP",e.GBP="GBP",e.ZAR="ZAR",e.KRW="KRW",e.MAD="MAD",e.MXN="MXN",e.MYR="MYR",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SGD="SGD",e.THB="THB",e.TRY="TRY",e.TWD="TWD",e.VND="VND",e.HKD="HKD",e.IEP="IEP"})(Hn||(Hn={}));var nu;(function(e){e.DEFAULT_DISPLAY="defaultDisplay",e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.VIEW_FORM_MODEL_TYPE="viewFormModelType",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions"})(nu||(nu={}));var zn;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(zn||(zn={}));var Df=function e(t){ot(this,e);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var u;this.widthConfig=(u=t==null?void 0:t.widthConfig)!==null&&u!==void 0?u:"fill";var i;this.heightConfig=(i=t==null?void 0:t.heightConfig)!==null&&i!==void 0?i:"fill"};function gf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function tn(e,t,n){return vf()?tn=Reflect.construct:tn=function(u,i,o){var s=[null];s.push.apply(s,i);var f=Function.bind.apply(u,s),l=new f;return o&&Rt(l,o.prototype),l},tn.apply(null,arguments)}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ot(e)}function mf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rt(e,t)}function yf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ef(e,t){return t&&(Af(t)==="object"||typeof t=="function")?t:gf(e)}function Rt(e,t){return Rt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Rt(e,t)}var Af=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Zn(e){var t=typeof Map=="function"?new Map:void 0;return Zn=function(r){if(r===null||!yf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return tn(r,arguments,Ot(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Rt(u,r)},Zn(e)}function Cf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Ff(e){var t=Cf();return function(){var r=Ot(e),u;if(t){var i=Ot(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Ef(this,u)}}var wf=function e(t){Wn(this,e),this.isHide={type:"boolean"}},Bf=function(e){mf(n,e);var t=Ff(n);function n(r){return Wn(this,n),t.call(this)}return n}(Zn(Array)),dt=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Wn(this,e);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new Df(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};dt.Rules=wf,dt.RuntimeRules=Bf;function je(){return je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},je.apply(this,arguments)}function bf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Xn(e){return Xn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xn(e)}function nn(e,t){return nn=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},nn(e,t)}function Sf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function rn(e,t,n){return Sf()?rn=Reflect.construct:rn=function(u,i,o){var s=[null];s.push.apply(s,i);var f=Function.bind.apply(u,s),l=new f;return o&&nn(l,o.prototype),l},rn.apply(null,arguments)}function _f(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Gn(e){var t=typeof Map=="function"?new Map:void 0;return Gn=function(r){if(r===null||!_f(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return rn(r,arguments,Xn(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),nn(u,r)},Gn(e)}var Mf=/%[sdj%]/g,ru=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(ru=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function Jn(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,u=t[0],i=t.length;if(typeof u=="function")return u.apply(null,t.slice(1));if(typeof u=="string"){var o=String(u).replace(Mf,function(s){if(s==="%%")return"%";if(r>=i)return s;switch(s){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(f){return"[Circular]"}break;default:return s}});return o}return u}function If(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ue(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||If(t)&&typeof e=="string"&&!e)}function Nf(e,t,n){var r=[],u=0,i=e.length;function o(s){r.push.apply(r,s),u++,u===i&&n(r)}e.forEach(function(s){t(s,o)})}function uu(e,t,n){var r=0,u=e.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<u?t(e[s],i):n([])}i([])}function xf(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var iu=function(e){bf(t,e);function t(n,r){var u;return u=e.call(this,"Async Validation Error")||this,u.errors=n,u.fields=r,u}return t}(Gn(Error));function Of(e,t,n,r){if(t.first){var u=new Promise(function(a,h){var d=function(v){return r(v),v.length?h(new iu(v,Jn(v))):a()},p=xf(e);uu(p,n,d)});return u.catch(function(a){return a}),u}var i=t.firstFields||[];i===!0&&(i=Object.keys(e));var o=Object.keys(e),s=o.length,f=0,l=[],c=new Promise(function(a,h){var d=function(D){if(l.push.apply(l,D),f++,f===s)return r(l),l.length?h(new iu(l,Jn(l))):a()};o.length||(r(l),a()),o.forEach(function(p){var D=e[p];i.indexOf(p)!==-1?uu(D,n,d):Nf(D,n,d)})});return c.catch(function(a){return a}),c}function ou(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function au(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=je(je({},e[n]),r):e[n]=r}}return e}function su(e,t,n,r,u,i){e.required&&(!n.hasOwnProperty(e.field)||ue(t,i||e.type))&&r.push(Se(u.messages.required,e.fullField))}function Rf(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(Se(u.messages.whitespace,e.fullField))}var Kn={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},Tt={integer:function(t){return Tt.number(t)&&parseInt(t,10)===t},float:function(t){return Tt.number(t)&&!Tt.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Tt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(Kn.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(Kn.url)},hex:function(t){return typeof t=="string"&&!!t.match(Kn.hex)}};function Tf(e,t,n,r,u){if(e.required&&t===void 0){su(e,t,n,r,u);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;i.indexOf(o)>-1?Tt[o](t)||r.push(Se(u.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Se(u.messages.types[o],e.fullField,e.type))}function $f(e,t,n,r,u){var i=typeof e.len=="number",o=typeof e.min=="number",s=typeof e.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,c=null,a=typeof t=="number",h=typeof t=="string",d=Array.isArray(t);if(a?c="number":h?c="string":d&&(c="array"),!c)return!1;d&&(l=t.length),h&&(l=t.replace(f,"_").length),i?l!==e.len&&r.push(Se(u.messages[c].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(Se(u.messages[c].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(Se(u.messages[c].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(Se(u.messages[c].range,e.fullField,e.min,e.max))}var pt="enum";function Pf(e,t,n,r,u){e[pt]=Array.isArray(e[pt])?e[pt]:[],e[pt].indexOf(t)===-1&&r.push(Se(u.messages[pt],e.fullField,e[pt].join(", ")))}function Lf(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Se(u.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(t)||r.push(Se(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var V={required:su,whitespace:Rf,type:Tf,range:$f,enum:Pf,pattern:Lf};function jf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t,"string")&&!e.required)return n();V.required(e,t,r,i,u,"string"),ue(t,"string")||(V.type(e,t,r,i,u),V.range(e,t,r,i,u),V.pattern(e,t,r,i,u),e.whitespace===!0&&V.whitespace(e,t,r,i,u))}n(i)}function kf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}function qf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Uf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}function Vf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),ue(t)||V.type(e,t,r,i,u)}n(i)}function Hf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Wf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return n();V.required(e,t,r,i,u,"array"),t!=null&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}var Xf="enum";function Gf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V[Xf](e,t,r,i,u)}n(i)}function Jf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t,"string")&&!e.required)return n();V.required(e,t,r,i,u),ue(t,"string")||V.pattern(e,t,r,i,u)}n(i)}function Kf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t,"date")&&!e.required)return n();if(V.required(e,t,r,i,u),!ue(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),V.type(e,s,r,i,u),s&&V.range(e,s.getTime(),r,i,u)}}n(i)}function Qf(e,t,n,r,u){var i=[],o=Array.isArray(t)?"array":typeof t;V.required(e,t,r,i,u,o),n(i)}function Qn(e,t,n,r,u){var i=e.type,o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(ue(t,i)&&!e.required)return n();V.required(e,t,r,o,u,i),ue(t,i)||V.type(e,t,r,o,u)}n(o)}function Yf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u)}n(i)}var $t={string:jf,method:kf,number:qf,boolean:Uf,regexp:Vf,integer:Hf,float:zf,array:Wf,object:Zf,enum:Gf,pattern:Jf,date:Kf,url:Qn,hex:Qn,email:Qn,required:Qf,any:Yf};function Yn(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var er=Yn();function Ke(e){this.rules=null,this._messages=er,this.define(e)}Ke.prototype={messages:function(t){return t&&(this._messages=au(Yn(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var i=t,o=n,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function f(D){var v,g=[],E={};function b(C){if(Array.isArray(C)){var N;g=(N=g).concat.apply(N,C)}else g.push(C)}for(v=0;v<D.length;v++)b(D[v]);g.length?E=Jn(g):(g=null,E=null),s(g,E)}if(o.messages){var l=this.messages();l===er&&(l=Yn()),au(l,o.messages),o.messages=l}else o.messages=this.messages();var c,a,h={},d=o.keys||Object.keys(this.rules);d.forEach(function(D){c=u.rules[D],a=i[D],c.forEach(function(v){var g=v;typeof g.transform=="function"&&(i===t&&(i=je({},i)),a=i[D]=g.transform(a)),typeof g=="function"?g={validator:g}:g=je({},g),g.validator=u.getValidationMethod(g),g.field=D,g.fullField=g.fullField||D,g.type=u.getType(g),g.validator&&(h[D]=h[D]||[],h[D].push({rule:g,value:a,source:i,field:D}))})});var p={};return Of(h,o,function(D,v){var g=D.rule,E=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");E=E&&(g.required||!g.required&&D.value),g.field=D.field;function b(O,R){return je(je({},R),{},{fullField:g.fullField+"."+O})}function C(O){O===void 0&&(O=[]);var R=O;if(Array.isArray(R)||(R=[R]),!o.suppressWarning&&R.length&&Ke.warning("async-validator:",R),R.length&&g.message!==void 0&&(R=[].concat(g.message)),R=R.map(ou(g)),o.first&&R.length)return p[g.field]=1,v(R);if(!E)v(R);else{if(g.required&&!D.value)return g.message!==void 0?R=[].concat(g.message).map(ou(g)):o.error&&(R=[o.error(g,Se(o.messages.required,g.field))]),v(R);var S={};if(g.defaultField)for(var $ in D.value)D.value.hasOwnProperty($)&&(S[$]=g.defaultField);S=je(je({},S),D.rule.fields);for(var W in S)if(S.hasOwnProperty(W)){var q=Array.isArray(S[W])?S[W]:[S[W]];S[W]=q.map(b.bind(null,W))}var Q=new Ke(S);Q.messages(o.messages),D.rule.options&&(D.rule.options.messages=o.messages,D.rule.options.error=o.error),Q.validate(D.value,D.rule.options||o,function(K){var te=[];R&&R.length&&te.push.apply(te,R),K&&K.length&&te.push.apply(te,K),v(te.length?te:null)})}}var N;g.asyncValidator?N=g.asyncValidator(g,D.value,C,D.source,o):g.validator&&(N=g.validator(g,D.value,C,D.source,o),N===!0?C():N===!1?C(g.message||g.field+" fails"):N instanceof Array?C(N):N instanceof Error&&C(N.message)),N&&N.then&&N.then(function(){return C()},function(O){return C(O)})},function(D){f(D)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!$t.hasOwnProperty(t.type))throw new Error(Se("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?$t.required:$t[this.getType(t)]||!1}},Ke.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");$t[t]=n},Ke.warning=ru,Ke.messages=er,Ke.validators=$t;var el={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function tl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new Ke(e);return n.messages(Object.assign(el,t)),n}var nl=new Yr;function tr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rl(e){if(Array.isArray(e))return e}function ul(e){if(Array.isArray(e))return tr(e)}function cu(e,t,n,r,u,i,o){try{var s=e[i](o),f=s.value}catch(l){n(l);return}s.done?t(f):Promise.resolve(f).then(r,u)}function fu(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(f){cu(i,r,u,o,s,"next",f)}function s(f){cu(i,r,u,o,s,"throw",f)}o(void 0)})}}function il(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ol(e,t,n){return t&&lu(e.prototype,t),n&&lu(e,n),e}function al(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hu(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function du(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sl(){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 cl(){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 pu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){al(e,u,n[u])})}return e}function fl(e){return rl(e)||du(e)||Du(e)||sl()}function nr(e){return ul(e)||du(e)||Du(e)||cl()}function Du(e,t){if(!!e){if(typeof e=="string")return tr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tr(e,t)}}var gu=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return f([l,c])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(c){l=[6,c],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},ke=function(){function t(r){var u=this;il(this,t),this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=mu,this.removeSetting=vu,this._callControlHooks("preInstance",r);var i=hu(this,t)?this.constructor:void 0,o=i.controlName,s=i.controlIcon,f=i.controlType,l=i.controlFieldType,c=i.controlEventKeys,a=i.controlCustomEvents,h=i.name,d=i.setting;o&&s&&f||Wr("The ".concat(h," controlName,controlIcon,controlType is not define"));var p;this.id=(p=r==null?void 0:r.id)!==null&&p!==void 0?p:Nn(10),this.name=o,this.icon=s;var D;this.type=(D=r==null?void 0:r.type)!==null&&D!==void 0?D:f,this.props=new dt(r==null?void 0:r.props,(hu(this,t)?this.constructor:void 0).controlName);var v;this.controlType=(v=r==null?void 0:r.controlType)!==null&&v!==void 0?v:"base",this.setting=ae(d);var g;this.fieldType=(g=r==null?void 0:r.fieldType)!==null&&g!==void 0?g:l,this.eventKeys=ae(c),this.customEvents=ae(a),Promise.resolve().then(function(){u._callControlHooks("postInstance",r)})}var n=t.prototype;return n._callControlHooks=function(){for(var u=arguments.length,i=new Array(u),o=0;o<u;o++)i[o]=arguments[o];var s,f=fl(i),l=f[0],c=f.slice(1);return(s=nl).emit.apply(s,[l,this].concat(nr(c)))},n.preUpdate=function(u,i){this._callControlHooks("preUpdateProps",u,i)},n.postUpdate=function(u,i){this._callControlHooks("postUpdateProps",u,i)},n.updateProps=function(u,i){this.preUpdate(u,i),Ln(this.props,u,i),this.postUpdate(u,i)},n.preValidate=function(){var u=this;return fu(function(){var i,o,s;return gu(this,function(f){switch(f.label){case 0:return i=pu({},u.rules),[4,u._callControlHooks("preValidate",i)];case 1:return o=f.sent(),s=o[o.length-1],[2,s===!1?void 0:s]}})})()},n.validate=function(u,i){var o=this;return fu(function(){var s,f,l,c;return gu(this,function(a){switch(a.label){case 0:return[4,o.preValidate()];case 1:s=a.sent(),f=s!==void 0?s:pu({},o.rules),Array.isArray(i)&&i.forEach(function(h){f.hasOwnProperty(h)&&delete f[h]}),l=tl(f,u),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,l.validate(o.props)];case 3:return a.sent(),[2,!0];case 4:throw c=a.sent(),c.control||(c.control=o),c;case 5:return[2]}})})()},n.toDataBindModel=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,o=this.id,s=this.type,f=this.props,l=f.dataBind,c=f.datasourceBind,a=f.optionConfig,h=f.caption,d=f.required,p=f.maxLength,D=f.options,v=f.encrypted,g=f.encryptedMode;if(!(!i&&!l&&!c)){var E={parentId:u,fieldType:i,controlId:o,caption:h,type:s,props:{}};switch(l&&(E.dataBind=l),a){case"datasource":case void 0:c&&(E.datasourceBind=c);break;case"custom":E.props.options=D;break}return d!==void 0&&(E.required=d),p!==void 0&&(E.maxLength=p),v!==void 0&&(E.encrypted=v),g!==void 0&&(E.encryptedMode=g),E}},n.preToSchema=function(){this._callControlHooks("preToSchema",this)},n.toSchema=function(){return this.preToSchema(),{id:this.id,type:this.type,props:ae(this.props),fieldType:this.fieldType,controlType:this.controlType}},t.updateBasicControl=function(u,i){if(u==="setting"){if(i.add){var o;(o=this.setting).push.apply(o,nr(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}},ol(t,[{key:"rules",get:function(){var u=this.props.constructor.Rules;return u?new u(this.props):{}}}]),t}();ke.controlName="\u63A7\u4EF6",ke.controlIcon="icon",ke.controlType="control",ke.controlEventKeys=[],ke.controlCustomEvents=[],ke.setting=[],ke.__is_control__=!0,ke.removeSettingItem=vu,ke.updateSettingItem=mu;function vu(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u=typeof r!="string",i=t.setting.findIndex(function(f){return f.key===(u?r.key:r)});if(i!==-1){var o,s;u?t.setting[i].showItems=(o=t.setting[i].showItems)===null||o===void 0?void 0:o.filter(function(f){return!r.hideItems.includes(f)}):t.setting.splice(i,1),u&&!(!((s=t.setting[i].showItems)===null||s===void 0)&&s.length)&&t.setting.splice(i,1)}})}function mu(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var i=n.setting.find(function(l){return l.key===u});if(i){if(typeof t=="boolean")i.visible=t;else if(typeof t=="object"){var o,s=(o=t.type)!==null&&o!==void 0?o:"replace";if(s==="replace")i.showItems=t.showItems;else{var f;(f=i.showItems).push.apply(f,nr(t.showItems))}}}})}function ll(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hl(e,t,n){return t&&yu(e.prototype,t),n&&yu(e,n),e}function dl(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var un=function(){function t(n){ll(this,t),this.customEvents=[],this.parent=null;var r=dl(this,t)?this.constructor:void 0,u=r.controlType,i=r.controlFieldType,o=r.name,s=r.controlCustomEvents;u||Wr("The ".concat(o," controlType is not define"));var f;this.id=(f=n==null?void 0:n.id)!==null&&f!==void 0?f:Nn(10);var l;this.type=(l=n==null?void 0:n.type)!==null&&l!==void 0?l:u,this.props=new dt(n==null?void 0:n.props),this.customEvents=s;var c;this.controlType=(c=n==null?void 0:n.controlType)!==null&&c!==void 0?c:"base";var a;this.fieldType=(a=n==null?void 0:n.fieldType)!==null&&a!==void 0?a:i;var h;this.pageStatus=(h=n==null?void 0:n.pageStatus)!==null&&h!==void 0?h:zn.UNKNOWN}return hl(t,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var u=new r(this.props);return Array.from(u)}return[]}}]),t}();un.controlType="control",un.__is_control__=!0,un.controlCustomEvents=[];function pl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function on(e){return on=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},on(e)}function gl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rr(e,t)}function vl(e,t){return t&&(ml(t)==="object"||typeof t=="function")?t:pl(e)}function rr(e,t){return rr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},rr(e,t)}var ml=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function yl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function El(e){var t=yl();return function(){var r=on(e),u;if(t){var i=on(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return vl(this,u)}}var Al=function(e){gl(n,e);var t=El(n);function n(r){return Dl(this,n),t.call(this,r)}return n}(dt);function ur(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cl(e){if(Array.isArray(e))return ur(e)}function Fl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wl(){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 Eu(e){return Cl(e)||Fl(e)||Bl(e)||wl()}function Bl(e,t){if(!!e){if(typeof e=="string")return ur(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ur(e,t)}}function bl(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Au(e,t){e.parent=t,bl(e,"parent")}function Sl(e,t){e.forEach(function(n){Au(n,t)})}var Cu=Symbol("targetKey");function Fu(e){var t;return(t=e[Cu])!==null&&t!==void 0?t:e}function wu(e,t){return Sl(e,t),new Proxy(e,{get:function(r,u){for(var i=arguments.length,o=new Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];var f;return u===Cu?r:(f=Reflect).get.apply(f,[r,u].concat(Eu(o)))},set:function(r,u,i){for(var o=arguments.length,s=new Array(o>3?o-3:0),f=3;f<o;f++)s[f-3]=arguments[f];var l;if(ht(e)&&u==="length"&&i===e.length)return!0;var c=(l=Reflect).set.apply(l,[r,u,i].concat(Eu(s)));return Le(i)&&Au(i,t),c}})}function ir(e,t,n,r){var u=r!=null?r:e,i=wu(Fu(n!=null?n:[]),u);Object.defineProperty(e,t,{get:function(){return i},set:function(s){i=wu(Fu(s),u)},enumerable:!0})}function or(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _l(e){if(Array.isArray(e))return or(e)}function Bu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bu(e,t,n,r,u,i,o){try{var s=e[i](o),f=s.value}catch(l){n(l);return}s.done?t(f):Promise.resolve(f).then(r,u)}function Ml(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(f){bu(i,r,u,o,s,"next",f)}function s(f){bu(i,r,u,o,s,"throw",f)}o(void 0)})}}function Il(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dt(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?Dt=Reflect.get:Dt=function(u,i,o){var s=kl(u,i);if(!!s){var f=Object.getOwnPropertyDescriptor(s,i);return f.get?f.get.call(o):f.value}},Dt(e,t,n||e)}function Qe(e){return Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qe(e)}function xl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ar(e,t)}function Ol(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Rl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tl(){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 $l(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){Nl(e,u,n[u])})}return e}function Pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Ll(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Pl(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function jl(e,t){return t&&(ql(t)==="object"||typeof t=="function")?t:Bu(e)}function ar(e,t){return ar=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},ar(e,t)}function kl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Qe(e),e!==null););return e}function Su(e){return _l(e)||Rl(e)||Ul(e)||Tl()}var ql=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Ul(e,t){if(!!e){if(typeof e=="string")return or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return or(e,t)}}function Vl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Hl(e){var t=Vl();return function(){var r=Qe(e),u;if(t){var i=Qe(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return jl(this,u)}}var zl=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return f([l,c])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(c){l=[6,c],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Wl=1e4,_u=function(t){xl(r,t);var n=Hl(r);function r(i){Il(this,r);var o;o=n.call(this,i),o.controlType="layout";var s=Ol(this,r)?this.constructor:void 0,f=s.excludes,l=s.childrenMaxLength;return o.props=new Al(i==null?void 0:i.props),ir(Bu(o),"children",i==null?void 0:i.children),o.excludes=ae(f),o.childrenMaxLength=l,o}var u=r.prototype;return u.judgeExcludesChildren=function(o){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(o)},u.judgeJoinChildren=function(o){var s=this.judgeExcludesChildren(o);return s&&this.childrenMaxLength>this.children.length},u.validate=function(o,s){var f=this,l=this,c=function(){return Dt(Qe(r.prototype),"validate",f)};return Ml(function(){return zl(this,function(a){switch(a.label){case 0:return[4,c().call(l,o,s)];case 1:return a.sent(),[4,Promise.all(l.children.map(function(h){return h.validate(o,s)}))];case 2:return a.sent(),[2,!0]}})})()},u.toDataBindModel=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,s=Dt(Qe(r.prototype),"toDataBindModel",this).call(this),f=s?[s]:[];return this.children.reduce(function(l,c){var a=c.toDataBindModel(o);if(Array.isArray(a)){var h=a.filter(function(d){return!!d});return Su(l).concat(Su(h))}return a&&l.push(a),l},f)},u.toSchema=function(){var o=Dt(Qe(r.prototype),"toSchema",this).call(this),s=this.children.map(function(f){var l=f.toSchema();return l});return Ll($l({},o),{children:s})},r}(ke);_u.excludes=!1,_u.childrenMaxLength=Wl;function Mu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function an(e){return an=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},an(e)}function Xl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sr(e,t)}function Gl(e,t){return t&&(Jl(t)==="object"||typeof t=="function")?t:Mu(e)}function sr(e,t){return sr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},sr(e,t)}var Jl=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Kl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Ql(e){var t=Kl();return function(){var r=an(e),u;if(t){var i=an(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Gl(this,u)}}var Yl=function(e){Xl(n,e);var t=Ql(n);function n(r,u){Zl(this,n);var i;return i=t.call(this,u),ir(Mu(i),"headers",u==null?void 0:u.headers,r),i}return n}(dt);H.LIST;function cr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t0(e,t,n){return t&&Iu(e.prototype,t),n&&Iu(e,n),e}function sn(e){return sn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sn(e)}function n0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fr(e,t)}function r0(e,t){return t&&(u0(t)==="object"||typeof t=="function")?t:cr(e)}function fr(e,t){return fr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},fr(e,t)}var u0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function i0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function o0(e){var t=i0();return function(){var r=sn(e),u;if(t){var i=sn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return r0(this,u)}}var a0=function(e){n0(n,e);var t=o0(n);function n(r){e0(this,n);var u;return u=t.call(this,r),u.controlType="list",u.props=new Yl(cr(u),r==null?void 0:r.props),ir(cr(u),"children",r==null?void 0:r.children),u}return t0(n,[{key:"length",get:function(){return this.children.length}}]),n}(un);function cn(e){return e.controlType===J.LAYOUT||e.controlType===J.WRAP||e.controlType===J.LIST||e.controlType===J.SEARCH}function gt(e,t){Array.isArray(e)&&e.map(n=>{if(n.type===X.SUBTABLE){const r=n.getChildrenFormControl();t(n,r)}else cn(n)?gt(n==null?void 0:n.children,t):n.controlType===J.FORM&&t(n)})}function vt(e,t){Array.isArray(e)&&e.map(n=>{n.type===X.DATA_VIEW||n.type===X.SIMPLE_SEARCH?t(n):cn(n)&&vt(n==null?void 0:n.children,t)})}let Nu=0;function lr(e=""){const t=Date.now(),n=Math.floor(Math.random()*1e9);return Nu++,e+"_"+n+Nu+String(t)}class hr extends Jt{constructor(t){super("Runtime"),this._flatInstances=[],this._instanceMap={};const{schema:n}=t;this._schema=n,this._instance=this.createControl(n,t.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const t=[],n={};return xu(this._instance,r=>{r.type==="subtable-row"||r.type==="subtable-column"||(t.push(r),n[r.id]||(n[r.id]=[]),n[r.id].push(r))}),this._flatInstances=t,this._instanceMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get allRules(){let t={},n={};return vt(this._instance,r=>{n[r.id]=r.rules[0],t[r.id]=r.rules[0],gt(r.children,u=>{(u.controlType===J.FORM||u.controlType===J.LIST)&&(Ou(n[r.id].fields,u),Ru(t[r.id].fields,u))})}),{rules:n,antdRules:t}}get rules(){let t={};return vt(this._instance,n=>{t[n.id]=n.rules[0],gt(n.children,r=>{(r.controlType===J.FORM||r.controlType===J.LIST)&&Ou(t[n.id].fields,r)})}),t}get antdRules(){let t={};return vt(this._instance,n=>{t[n.id]=n.rules[0],gt(n.children,r=>{(r.controlType===J.FORM||r.controlType===J.LIST)&&Ru(t[n.id].fields,r)})}),t}}function xu(e,t){Array.isArray(e)?e.map(n=>{t(n),cn(n)&&xu(n.children,t)}):t(e)}function dr(e){return e.props.isHide?!0:e.parent===null?!1:dr(e.parent)}function Ou(e,t){if(!dr(t)){if(t.controlType===J.FORM)e[t.id]=t.rules;else if(t.type===X.SUBTABLE){e[t.id]=t.rules;const n={type:"array",fields:{}};t.children.forEach((r,u)=>{it(r.children,i=>{n.fields&&(n.fields[u]||(n.fields[u]={type:"object",required:!0,fields:{}}),n.fields[u].fields[i.id]=i.rules)})}),e[t.id].push(n)}}}function Ru(e,t){dr(t)||(t.controlType===J.FORM?e[t.id]=t.rules:t.type===X.SUBTABLE&&t.children.length&&(e[t.id]=[],t.children.forEach(n=>{let r={};it(n.children,u=>{r[u.id]=u.rules}),e[t.id].push(r)})))}class s0{constructor(t){const{state:n,emptyState:r,databindMapping:u,controlidMapping:i,defaultState:o}=c0(t.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=i,this.defaultState=o}setState(t,n,r){const u=this.controlIdMapping[t];u!==void 0?this.state[u.dataView][t]=n:r!==void 0?Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,s=this.controlIdMapping[i].children;s!==void 0&&Object.keys(s).map(f=>{f===t&&(this.state[o][i][r][t]=n)})}):this.state[t]=n}getState(t,n){if(this.state[t]!==void 0)return this.state[t];{const u=this.controlIdMapping[t];if(u!==void 0)return this.state[u.dataView][t];if(n!==void 0){let i;return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,f=this.controlIdMapping[o].children;f!==void 0&&Object.keys(f).map(l=>{var c;l===t&&(i=(c=this.state[s][o][n])==null?void 0:c[t])})}),i}else{let i=[];return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,f=this.controlIdMapping[o].children;f!==void 0&&Object.keys(f).map(l=>{l===t&&this.state[s][o].map(c=>{i.push(c[t])})})}),i}}}getEmptyState(t){if(this.emptyState[t]!==void 0)return this.emptyState[t];{const r=this.controlIdMapping[t];if(r!==void 0){const u=this.emptyState[r.dataView][t];return"children"in r&&Object.assign(u,{uid:"new:"+lr("uid")}),u}else{let u;return Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,s=this.controlIdMapping[i].children;s!==void 0&&Object.keys(s).map(f=>{f===t&&(u=this.emptyState[o][i][t])})}),u}}}getDataBind(t){let n=this.controlIdMapping[t];if(n)return n.dataBind;e:for(let r in this.controlIdMapping){const u=this.controlIdMapping[r];if(u.children){for(let i in u.children)if(i===t){n=u.children[i];break e}}}return n==null?void 0:n.dataBind}}function c0(e){let t={},n={},r={},u={},i={};return vt(e,o=>{const s=o.id,f={},l={};gt([o],(c,a)=>{f0(f,l,c),l0(r,s,c),h0(u,s,c)}),t[s]={},i[s]=f,n[s]=l}),{state:t,defaultState:i,emptyState:n,databindMapping:r,controlidMapping:u}}function f0(e,t,n){var r;if(n.controlType===J.FORM)e[n.id]=ae(n.props.defaultValue),t[n.id]=ae(n.props.defaultValue);else{const u={};it(n.props.headers,i=>{u[i.id]=ae(i.props.defaultValue)}),e[n.id]=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>ne({uid:"new:"+lr("uid")},ae(u))),t[n.id]=u}}function l0(e,t,n){var r,u;if(n.controlType===J.FORM)n.props.dataBind instanceof Je?Object.keys(n.props.dataBind).map(i=>{const o=n.props.dataBind,s=o[i].dataCode;s!==void 0&&(e[s]===void 0&&(e[s]={controlId:n.id,fields:[],dataViewId:t}),e[s].fields.push({fieldCode:o[i].fieldCode,controlId:n.id,dataBind:o,dataViewId:[t]}))}):((u=(r=n.props)==null?void 0:r.dataBind)==null?void 0:u.dataCode)===void 0||(e[n.props.dataBind.dataCode]===void 0&&(e[n.props.dataBind.dataCode]={controlId:t,fields:[],dataViewId:t}),e[n.props.dataBind.dataCode].fields.push({fieldCode:n.props.dataBind.fieldCode,controlId:n.id,dataBind:n.props.dataBind,dataViewId:[t]}));else{if(n.props.datasourceBind.dataCode===""){Xe(`datasourceBind.dataCode is empty! maybe in preview mode, control:${n.id} type:${n.type}`);return}e[n.props.datasourceBind.dataCode]={controlId:n.id,fields:[],dataViewId:t};const i=n.id;it(n.props.headers,o=>{o.props.dataBind instanceof Je?Object.keys(o.props.dataBind).map(s=>{const f=o.props.dataBind,l=f[s].dataCode;e[l].fields.push({fieldCode:f[s].fieldCode,controlId:o.id,dataBind:f,dataViewId:[t,i]})}):e[o.props.dataBind.dataCode].fields.push({fieldCode:o.props.dataBind.fieldCode,controlId:o.id,dataBind:o.props.dataBind,dataViewId:[t,i]})})}}function h0(e,t,n){n.controlType===J.FORM?e[n.id]={dataBind:n.props.dataBind,options:[],dataView:t}:n.type===X.SUBTABLE&&(e[n.id]={dataBind:new Vn({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:t,children:{},options:[]},it(n.props.headers,r=>{var u,i;Object.assign((i=(u=e[n.id])==null?void 0:u.children)!=null?i:{},{[r.id]:{dataBind:r.props.dataBind}})}))}const Tu=["splice","push","shift","pop","unshift","reverse"],pr=Symbol("__engineProxy__"),Dr=Symbol("__engineTarget__"),$u=Symbol("__engineArrayBeforeSetCallbackFlag__"),Pu=Symbol("__engineProxyThisKey__"),Re={type:"",args:[],callback:Lu};function Lu(){}v0();function d0(e,t,n,r,u){if(Re.type){Re.callback=u.bind(null,e,r);return}const i=Number(t);if(i>e.length){ze(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${Tu.join(",")} for array operations`);return}if(!(Number.isNaN(i)&&t!=="length"))if(t==="length"){const s=n,f=e.length;if(s>e.length){ze("Do not directly modify the length of the array data, please add new rows");return}return s===e.length?void 0:()=>u.call(null,e,r,"splice",[s,f-s])}else return i===e.length?()=>u.call(null,e,r,"push",[n]):()=>u.call(null,e,r,"splice",[i,1,n])}function p0(e,t,n){return{__engineProxy__:!0,get(r,u,i){return u===pr?!0:u===Dr?r:Array.isArray(r)&&u===$u?n:u===Pu?e:Reflect.get(r,u,i)},set(r,u,i,o){var h;let s=i;const f=r[u],l=e===""?u:e+"."+u;function c(d){if(typeof d=="object"&&d!==null)return d[pr]!==!0?fn(d,t,n,l):fn(d[Dr],t,n,l)}s=(h=c(i))!=null?h:s;let a;if(Array.isArray(r)){const d=d0(r,u,i,e,t);a=Reflect.set(r,u,s,o),d&&d()}else{try{let d=s;if(s=n.call(null,r,l,s,f),d!==s){const p=c(s);p!==void 0&&(s=p)}}catch(d){return Zt(`${l} set error ${d}`),!0}a=Reflect.set(r,u,s,o),t.call(null,r,l,i,f)}return a}}}function fn(e,t,n,r=""){if(Object.isFrozen(e))return e;for(let u in e){const i=r===""?u:r+"."+u,o=e[u];typeof o=="object"&&o!==null&&(e[u]=fn(o,t,n,i))}return new Proxy(e,p0(r,t,n))}function ju(e){const t=[];return e.forEach(n=>{t.push(n),n.controlType==="layout"&&t.push(...ju(n.children))}),t}function gr(e,t,n){if(t==="")return;const r=t.split(".");if(r.length===0)return;const u=r[0],i=r.slice(1),o=n[u]?n[u][0]:void 0;return i.length===0?o:i.reduce((s,f)=>{var a,h;const l=Number(f);if(Number.isNaN(l)&&s){const d=s!=null&&s.children?ju(s.children):void 0,p=d==null?void 0:d.find(D=>D.id===f);return p||(s.controlType===J.FORM?s:void 0)}else return(h=(a=s==null?void 0:s.children)==null?void 0:a[l])!=null?h:s},o)}function D0(e,t){return["push","unshift"].includes(e)?t:e==="splice"?t.slice(2):[]}function g0(e,t,n){if(["push","unshift"].includes(e))return n;if(e==="splice")return t.slice(0,2).concat(n)}function v0(){Tu.forEach(e=>{const t=Array.prototype[e];Array.prototype[e]=function(...n){var r;if(this[pr]){let u;const i=D0(e,n);if(i.length){const o=(r=this[$u])==null?void 0:r.call(this,this[Dr],this[Pu],i),s=g0(e,n,o);Re.type=e,Re.args=s,u=t.apply(this,s)}else Re.type=e,Re.args=n,u=t.apply(this,n);return typeof Re.callback=="function"&&Re.callback(e,n,u),Re.type="",Re.args=[],Re.callback=Lu,u}else return t.apply(this,n)}})}class m0{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(t,n,...r){return Ve(this,null,function*(){const u=this.actionMap.get(t);if(!!u)try{return yield u.func.call(null,n,...r)}catch(i){Zt(`${u.id} Exception during calling action: ${i}`)}})}addAction(t,n){this.actionMap.has(t)&&ze("duplicated action key");const r=new y0(t,n);this.actionMap.set(t,r)}}class y0{constructor(t,n){this.id="",this.id=t,this.func=n}}class E0{constructor(t){this._dataStore=new Map,this.executer=t}add(t,n){this._dataStore.set(t,n)}get(t){let n=this._dataStore.get(t);return ae(n)}remove(t){this._dataStore.delete(t)}getRemoteData(t){return Ve(this,null,function*(){return this.executer===void 0?(Zt("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(t)})}}class Ye{}class Pt extends Ye{validate(t){return be(t)}transform(t){if(t==null)return"";if(!Le(t)&&!Jr(t))return String(t);if(tf(t))return JSON.stringify(t);throw`${t} is not a string`}}class vr extends Ye{validate(t){return Xt(t)||t===""}transform(t){if(t==null)return"";const n=!Le(t)&&!Jr(t)?Number(t):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${t} is not a number`}}class A0 extends Ye{validate(t){return nf(t)}transform(t){if(t==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(ht(t))return n(t);if(be(t)&&Kr(t))try{const r=JSON.parse(t);if(Array.isArray(r))return n(r)}catch(r){}return[String(t)]}}class C0 extends Ye{validate(t){return rf(t)}transform(t){if(t==null)return[];function n(u){return u.map(i=>!i&&i!==0?"":Number(i)).filter(i=>i===""||!Number.isNaN(i))}if(ht(t))return n(t);if(be(t)&&Kr(t))try{const u=JSON.parse(t);if(ht(u))return n(u)}catch(u){}const r=Number(t);if(Number.isNaN(r))throw`${t} is not a number array`;return[r]}}class F0 extends Ye{validate(t){return t instanceof Kt||Le(t)&&"amount"in t&&Xt(t.amount)&&"currency"in t&&be(t.currency)}transform(t,n){if(t==null||t==="")return new Kt({currency:n==null?void 0:n.currency});let r;if(Le(t)&&(r=new Kt(ne(ne({},n),t))),be(t)&&Gt(t))try{const u=JSON.parse(t);r=new Kt(ne(ne({},n),u))}catch(u){}if(r){const u=new vr,i=new Pt;return u.validate(r.amount)||(r.amount=u.transform(r.amount)),i.validate(r.currency)||(r.currency=i.transform(r.currency)),r}throw`${t} is not a { amount: number, currency: string } object`}}class w0 extends Ye{validate(t){return t instanceof Qt||Le(t)&&"min"in t&&be(t.min)&&"max"in t&&be(t.max)}transform(t,n){if(t==null||t==="")return new Qt;let r;if(Le(t)&&(r=new Qt(ne(ne({},n),t))),be(t)&&Gt(t))try{const u=JSON.parse(t);r=new Qt(ne(ne({},n),u))}catch(u){}if(r){const u=new Pt;return u.validate(r.min)||(r.min=u.transform(r.min)),u.validate(r.max)||(r.max=u.transform(r.max)),r}throw`${t} is not a { min: string, max: string } object`}}class B0 extends Ye{validate(t){return t instanceof en||Le(t)&&"result"in t&&Xt(t.result)&&"unit"in t&&be(t.unit)}transform(t,n){if(t==null||t==="")return new en({unit:n==null?void 0:n.unit});let r;if(Le(t)&&(r=new en(ne(ne({},n),t))),be(t)&&Gt(t))try{const u=JSON.parse(t);r=new en(ne(ne({},n),u))}catch(u){}if(r){const u=new vr,i=new Pt;return u.validate(r.result)||(r.result=u.transform(r.result)),i.validate(r.unit)||(r.unit=i.transform(r.unit)),r}throw`${t} is not a { result: string, unit: string } object`}}class b0 extends Ye{validate(t){return t instanceof Yt}transform(t,n){if(t==null||t==="")return new Yt;let r;if(Le(t)&&(r=new Yt(ne(ne({},n),jn.exports.camelizeKeys(t)))),be(t)&&Gt(t))try{const u=JSON.parse(t);r=new Yt(ne(ne({},n),jn.exports.camelizeKeys(u)))}catch(u){}if(r){const u=new Pt;return u.validate(r.city)||(r.city=u.transform(r.city)),u.validate(r.district)||(r.district=u.transform(r.district)),u.validate(r.province)||(r.province=u.transform(r.province)),r}throw`${t} is not a { city: string, district: string, province: string } object`}}class S0{static getValueChecker(t){let n;switch(t){case H.VARCHAR:case H.TIMESTAMP:case H.TEXT:case H.RELATION:case H.AUTO_NUMBER:n=new Pt;break;case H.DECIMAL:n=new vr;break;case H.EMPLOYEES:case H.DEPARTMENTS:case H.IMAGE:case H.FILE:case H.ARRAY:n=new A0;break;case H.MONEY:n=new F0;break;case H.TIMESCOPE:n=new w0;break;case H.CALC:n=new B0;break;case H.DECIMAL_RANGE:n=new C0;break;case H.ADDRESS:n=new b0;break}return n}}function _0(e){if(["min","max","currency","unit"].includes(e))return H.VARCHAR;if(["result","amount"].includes(e))return H.DECIMAL}function ku(e,t,n,r){var o;let u=(o=_0(t))!=null?o:e,i=S0.getValueChecker(u);if(!i||i.validate(n))return n;try{const s=i.transform(n,r);return s!==void 0?s:n}catch(s){throw`${t} ${s}`}}function M0(e,t,n){return Object.entries(e).reduce((r,[u,i])=>{const o=t[u];return r[u]=ku(i,u,o,n[u]),r},Object.assign({},t))}typeof window!="undefined"&&(window.engines={});let mt=null,Lt="";class mr extends Yr{constructor(t){super(),this.rawStore={},this.isMounted=!1,this.id=Nn(8),this.__pluginsApplied=!1,this.actionManager=new m0,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(t);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:i,language:o=jr,debug:s=!1}=this.$options;Pn.setLocale(o),this.debug=s,this.runtime=new hr({schema:r,beforeCreateInstance:u}),this.externalParams=i,this.store=new s0({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...t){this.debug&&Tn(...t)}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}registerControl(...t){return this.runtime.register(...t),this}static register(...t){return hr.register(...t)}static judgeControlIsRegistered(t){return hr.staticRegisteredTypes.has(t.Runtime.controlType)}mount(){this.debugLog("engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528");const{plugins:t=[]}=this.$options;this._handlerProxyState(),this.__plugins=t,this.applyPlugins(),this.setStates(this.getState()),this.debugLog("engine\u7684mount\u65B9\u6CD5\u8C03\u7528\u7ED3\u675F"),this.debug&&typeof window!="undefined"&&(window.engines[this.id]=this)}destroy(){this.debug&&typeof window!="undefined"&&delete window.engines[this.id]}_handlerProxyState(){this.store.state=fn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(t,n,r,u){const i=gr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return r;if(this.assertInstance(i,X.SUBTABLE)){if(r===null)return[];const f=i.props.headers.reduce((c,a)=>{const h=a.children[0];return h&&h.controlType===J.FORM&&(c[h.id]=h.fieldType),c},{}),l=this.getEmptyState(i.id);return r==null?void 0:r.map(c=>M0(f,c,l))}const o=n.split("."),s=o[o.length-1];try{return ku(i.fieldType,s,r,u)}catch(f){throw Xe(`the id=${i.id}'s instance setState error, %o ${f}.`,r),f}}_proxyStateCallback(t,n,r,u,i){Array.isArray(t)?this._handlerArrayUpdate(t,n,r,u,i):this._handlerObjectUpdate(t,n,r,u)}_handlerArrayUpdate(t,n,r,u,i){const o=gr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!(o instanceof a0))return;const s=h=>{const d=[];for(let p=0;p<h;p++){const D=this.listControlCreateRow(o,"subtable-row");D&&d.push(D)}return d},f=mt;let l=[],c=[],a=[];if(r&&u){switch(r){case"push":case"unshift":const h=u.length;l=s(h),c=u,o.children[r](...l),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){const d=u.length-2,p=u.slice(2);l=s(d),c=p;const D=u[0],v=u[1];o.children[r](D,v,...l),this.runtime.getFlatInstances()}else o.children[r](...u),this.runtime.getFlatInstances();break;default:o.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?a=i:["pop","shift"].includes(r)&&(a=[i]),this.emit("list-change",{instance:o,value:this.getState(o.id),options:Object.assign({},f,{changed:l,data:c,deleted:a!=null?a:[],jsonValue:JSON.stringify(this.getState(o.id))})}),mt=null}}_handlerObjectUpdate(t,n,r,u){const i=gr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return;const o=this.getInstanceRowIndex(i),s=mt||{};if(i.controlType===J.LIST){i.children.length=0;const f=r;let l=[];for(let c=0;c<f.length;c++){const a=this.listControlCreateRow(i,"subtable-row");a&&l.push(a)}i.children.push(...l),this.runtime.getFlatInstances(),this.emit("list-change",{instance:i,value:r,options:Lr(ne({},s),{changed:l,data:f,deleted:u!=null?u:[]})})}else this.emit("change",{instance:i,value:this.getState(i.id,o),rowIndex:o,options:Lr(ne({},s),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{Lt=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this)}catch(r){ze(`${Lt} Plugin apply Error
|
|
1
|
+
var s1=Object.defineProperty,c1=Object.defineProperties;var f1=Object.getOwnPropertyDescriptors;var Qi=Object.getOwnPropertySymbols,l1=Object.getPrototypeOf,h1=Object.prototype.hasOwnProperty,d1=Object.prototype.propertyIsEnumerable,p1=Reflect.get;var Sn=Math.pow,Yi=(Z,ee,re)=>ee in Z?s1(Z,ee,{enumerable:!0,configurable:!0,writable:!0,value:re}):Z[ee]=re,ne=(Z,ee)=>{for(var re in ee||(ee={}))h1.call(ee,re)&&Yi(Z,re,ee[re]);if(Qi)for(var re of Qi(ee))d1.call(ee,re)&&Yi(Z,re,ee[re]);return Z},Lr=(Z,ee)=>c1(Z,f1(ee));var eo=(Z,ee,re)=>p1(l1(Z),re,ee);var Ve=(Z,ee,re)=>new Promise((_n,zt)=>{var Mn=He=>{try{Mt(re.next(He))}catch(It){zt(It)}},In=He=>{try{Mt(re.throw(He))}catch(It){zt(It)}},Mt=He=>He.done?_n(He.value):Promise.resolve(He.value).then(Mn,In);Mt((re=re.apply(Z,ee)).next())});(function(Z,ee){typeof exports=="object"&&typeof module!="undefined"?ee(exports,require("crypto")):typeof define=="function"&&define.amd?define(["exports","crypto"],ee):(Z=typeof globalThis!="undefined"?globalThis:Z||self,ee(Z.modelDrivenEngine={},Z.require$$0))})(this,function(Z,ee){"use strict";function re(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var _n=re(ee),zt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Mn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",In="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",Mt="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",He="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",It="{caption}\u5FC5\u586B",to="\u8BF7\u8F93\u5165\u6807\u9898",no="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",ro="\u8BF7\u8F93\u5165\u884C\u6807\u9898",uo="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",io="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",oo="\u8BF7\u7ED1\u5B9A\u8868\u5355",ao="\u8BF7\u7ED1\u5B9A\u5217\u8868",so="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",co="\u8BF7\u8F93\u5165\u663E\u793A\u503C",fo="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",lo="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",ho="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",po="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",Do="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",go="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",vo="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",mo="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",yo="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Eo="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",Ao="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Co="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Fo="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",wo="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Bo="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",bo="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",So="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",_o="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Mo="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",Io="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",No="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",xo="\u8BF7\u7ED1\u5B9A\u670D\u52A1",Oo="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Ro="\u8BF7\u9009\u62E9\u7701",To="\u8BF7\u9009\u62E9\u5E02",$o="\u8BF7\u9009\u62E9\u533A",Po="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",Lo="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",jo="\u8BF7\u8F93\u5165\u5217\u5BBD",ko="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",qo="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",Uo="\u8BF7\u9009\u62E9\u63A7\u4EF6",Vo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",Ho="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",zo="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Wo="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",Zo="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Xo="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Go="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Jo="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ko="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Qo="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Yo="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ea="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",ta="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",na="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",ra="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",ua="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",ia="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",oa="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",aa="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",sa="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",ca="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",fa={isNotNumber:zt,isNotString:Mn,isNotObject:In,isNotArray:Mt,isNotBoolean:He,runtimeRequired:It,pleaseEnterCaption:to,pleaseEnterCaptionTip:no,pleaseEnterRowCaption:ro,pleaseEnterPlaceholder:uo,pleaseEnterFieldCode:io,pleaseEnterForm:oo,pleaseEnterList:ao,pleaseEnterProcess:so,pleaseEnterLabel:co,pleaseEnterValue:fo,bizKeyNotBindFiled:lo,pleaseSelectOneField:ho,pleaseEnterNumberRange:po,pleaseEnterAValueGreaterThanMin:Do,pleaseEnterAValueLessThanMax:go,numberRangeSetError:vo,stringRangeError:mo,attachmentMaxSize:yo,pleaseEnterTotalScoreSetting:Eo,theTotalScoreMustNotBeLessThan1:Ao,scoreDefaultValueRange:Co,attachmentLimitError:Fo,PleaseReselectTheOptionalQuantity:wo,TheMaximumLengthIsGreaterThanTheMinimumLength:Bo,TheMinimumLengthIsGreaterThanTheMaximumLength:bo,PleaseSelectTheCorrectOptionSettings:So,optionIdIsRepeat:_o,optionIsRequired:Mo,pleaseEnterDataCode:Io,pleaseEnterValueFieldCode:No,pleaseEnterSvcCode:xo,pleaseBindAtLeastOneDisplayValue:Oo,pleaseSelectProvince:Ro,pleaseSelectCity:To,pleaseSelectDistrict:$o,limitRowsCannotBeLessThan0:Po,TheNumberOfRowsCannotBeLessThanMinRows:Lo,pleaseEnterColumnWidth:jo,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ko,pleaseCompleteAllRulesAndConditions:qo,pleaseSelectControl:Uo,pleaseSelectAtLeastOneColumn:Vo,pleaseSelectFillBackMode:Ho,pleaseSelectDashboard:zo,rootNodeIsRequired:Wo,theViewNameCannotBeEmpty:Zo,pleaseSelectOcrType:Xo,pleaseSelectAtLeastOneFieldToFillIn:Go,pleaseChooseAtLeastOne:Jo,pleaseEnterButtonContent:Ko,pleaseEnterDataCodeInDataSetting:Qo,pleaseEnterValueFieldCodeInDataSetting:Yo,pleaseEnterSvcCodeInDataSetting:ea,pleaseBindAtLeastOneDisplayValueInDataSetting:ta,rootNodeIsRequiredInDataSetting:na,pleaseEnterMaxHeight:ra,pleaseEnter:ua,pleaseEnterWatermark:ia,pleaseEnterFileName:oa,pleaseUploadAtLeastOnePrintTemplate:aa,pleaseAssignBusiness:sa,pleaseAssignExternal:ca},la="Please enter a number",ha="Please enter a string",da="Please enter an object",pa="Please enter an array",Da="Please enter a boolean",ga="{caption} Required",va="Please enter the title",ma="Please enter the bubble prompt",ya="Please enter the row title",Ea="Please enter the prompt text",Aa="Please bind data items",Ca="Please bind the form",Fa="Please bind the list",wa="Please bind the process",Ba="Please enter the displayed value",ba="Please enter the stored value",Sa="The document number is not bound to the data item",_a="Please select at least one display field",Ma="Please enter a value greater than or equal to {min} and less than or equal to {max}",Ia="Please enter a value greater than or equal to {min}",Na="Please enter a value less than or equal to {max}",xa="The value range is set incorrectly",Oa="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",Ra="The attachment size must be between 0MB and 1000MB",Ta="Please fill in the total score setting",$a="The total score cannot be less than 1",Pa="The default value must be between {min} and {max}",La="The number of attachments uploaded must be between {min} and {max}",ja="Please re-select the optional quantity",ka="The maximum length of the control must be greater than the minimum length",qa="The minimum length of the control must be less than the maximum length",Ua="Please select the correct option setting",Va="Option ID cannot be repeated",Ha="Please enter at least one option",za="Please bind the data source",Wa="Please bind the stored value",Za="Please bind the service",Xa="At least one display value must be bound",Ga="Please select a province",Ja="Please select a city",Ka="Please select a district",Qa="The minimum number of lines to fill in cannot be less than 0",Ya="The number of rows cannot be less than {min} rows",es="Please enter the column width",ts="Please set the logical relationship of all rule conditions",ns="Please complete all rules and conditions",rs="please select control",us="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",is="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",os="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",as="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",ss="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",cs="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",fs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ls="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",hs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",ds="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",ps="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Ds="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",gs="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",vs="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",ms="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ys="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Es="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",As="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Cs={isNotNumber:la,isNotString:ha,isNotObject:da,isNotArray:pa,isNotBoolean:Da,runtimeRequired:ga,pleaseEnterCaption:va,pleaseEnterCaptionTip:ma,pleaseEnterRowCaption:ya,pleaseEnterPlaceholder:Ea,pleaseEnterFieldCode:Aa,pleaseEnterForm:Ca,pleaseEnterList:Fa,pleaseEnterProcess:wa,pleaseEnterLabel:Ba,pleaseEnterValue:ba,bizKeyNotBindFiled:Sa,pleaseSelectOneField:_a,pleaseEnterNumberRange:Ma,pleaseEnterAValueGreaterThanMin:Ia,pleaseEnterAValueLessThanMax:Na,numberRangeSetError:xa,stringRangeError:Oa,attachmentMaxSize:Ra,pleaseEnterTotalScoreSetting:Ta,theTotalScoreMustNotBeLessThan1:$a,scoreDefaultValueRange:Pa,attachmentLimitError:La,PleaseReselectTheOptionalQuantity:ja,TheMaximumLengthIsGreaterThanTheMinimumLength:ka,TheMinimumLengthIsGreaterThanTheMaximumLength:qa,PleaseSelectTheCorrectOptionSettings:Ua,optionIdIsRepeat:Va,optionIsRequired:Ha,pleaseEnterDataCode:za,pleaseEnterValueFieldCode:Wa,pleaseEnterSvcCode:Za,pleaseBindAtLeastOneDisplayValue:Xa,pleaseSelectProvince:Ga,pleaseSelectCity:Ja,pleaseSelectDistrict:Ka,limitRowsCannotBeLessThan0:Qa,TheNumberOfRowsCannotBeLessThanMinRows:Ya,pleaseEnterColumnWidth:es,pleaseSetTheLogicalRelationshipOfAllRuleConditions:ts,pleaseCompleteAllRulesAndConditions:ns,pleaseSelectControl:rs,pleaseSelectDashboard:us,theViewNameCannotBeEmpty:is,pleaseSelectOcrType:os,pleaseSelectAtLeastOneFieldToFillIn:as,pleaseChooseAtLeastOne:ss,pleaseEnterButtonContent:cs,pleaseEnterDataCodeInDataSetting:fs,pleaseEnterValueFieldCodeInDataSetting:ls,pleaseEnterSvcCodeInDataSetting:hs,pleaseBindAtLeastOneDisplayValueInDataSetting:ds,rootNodeIsRequiredInDataSetting:ps,pleaseEnterMaxHeight:Ds,pleaseEnter:gs,pleaseEnterWatermark:vs,pleaseEnterFileName:ms,pleaseUploadAtLeastOnePrintTemplate:ys,pleaseAssignBusiness:Es,pleaseAssignExternal:As},Fs="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",ws="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Bs="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",bs="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ss="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",_s="{caption}\u5FC5\u9808",Ms="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Is="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ns="\u884C\u30D8\u30C3\u30C0\u30FC\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",xs="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Os="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Rs="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ts="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",$s="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Ps="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Ls="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",js="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",ks="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",qs="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Us="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Vs="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Hs="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",zs="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Ws="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Zs="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Xs="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Gs="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",Js="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ks="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Qs="\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",Ys="\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",ec="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",tc="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",nc="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",rc="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",uc="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",ic="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",oc="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",ac="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",sc="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",cc="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",fc="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",lc="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",hc="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",dc="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",pc="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",Dc="please select control",gc="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",vc="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",mc="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",yc="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Ec="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Ac="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Cc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Fc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",wc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Bc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",bc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Sc="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",_c="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Mc="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Ic="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Nc="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",xc="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Oc="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Rc={isNotNumber:Fs,isNotString:ws,isNotObject:Bs,isNotArray:bs,isNotBoolean:Ss,runtimeRequired:_s,pleaseEnterCaption:Ms,pleaseEnterCaptionTip:Is,pleaseEnterRowCaption:Ns,pleaseEnterPlaceholder:xs,pleaseEnterFieldCode:Os,pleaseEnterForm:Rs,pleaseEnterList:Ts,pleaseEnterProcess:$s,pleaseEnterLabel:Ps,pleaseEnterValue:Ls,bizKeyNotBindFiled:js,pleaseSelectOneField:ks,pleaseEnterNumberRange:qs,pleaseEnterAValueGreaterThanMin:Us,pleaseEnterAValueLessThanMax:Vs,numberRangeSetError:Hs,stringRangeError:zs,attachmentMaxSize:Ws,pleaseEnterTotalScoreSetting:Zs,theTotalScoreMustNotBeLessThan1:Xs,scoreDefaultValueRange:Gs,attachmentLimitError:Js,PleaseReselectTheOptionalQuantity:Ks,TheMaximumLengthIsGreaterThanTheMinimumLength:Qs,TheMinimumLengthIsGreaterThanTheMaximumLength:Ys,PleaseSelectTheCorrectOptionSettings:ec,optionIdIsRepeat:tc,optionIsRequired:nc,pleaseEnterDataCode:rc,pleaseEnterValueFieldCode:uc,pleaseEnterSvcCode:ic,pleaseBindAtLeastOneDisplayValue:oc,pleaseSelectProvince:ac,pleaseSelectCity:sc,pleaseSelectDistrict:cc,limitRowsCannotBeLessThan0:fc,TheNumberOfRowsCannotBeLessThanMinRows:lc,pleaseEnterColumnWidth:hc,pleaseSetTheLogicalRelationshipOfAllRuleConditions:dc,pleaseCompleteAllRulesAndConditions:pc,pleaseSelectControl:Dc,pleaseSelectDashboard:gc,theViewNameCannotBeEmpty:vc,pleaseSelectOcrType:mc,pleaseSelectAtLeastOneFieldToFillIn:yc,pleaseChooseAtLeastOne:Ec,pleaseEnterButtonContent:Ac,pleaseEnterDataCodeInDataSetting:Cc,pleaseEnterValueFieldCodeInDataSetting:Fc,pleaseEnterSvcCodeInDataSetting:wc,pleaseBindAtLeastOneDisplayValueInDataSetting:Bc,rootNodeIsRequiredInDataSetting:bc,pleaseEnterMaxHeight:Sc,pleaseEnter:_c,pleaseEnterWatermark:Mc,pleaseEnterFileName:Ic,pleaseUploadAtLeastOnePrintTemplate:Nc,pleaseAssignBusiness:xc,pleaseAssignExternal:Oc},Tc={zhCN:fa,enUS:Cs,jaJP:Rc},Oe;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(Oe||(Oe={}));var lt;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(lt||(lt={}));var jr="zh-CN";function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var J;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(J||(J={}));var X;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.ORGANIZATION_SELECTION="organization-selection",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.Approval_Status_Column="approval-status-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.GRID_LAYOUT_CONTAINER="grid-layout-container",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.ACTION_BAR="action-bar",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2"})(X||(X={}));var H;(function(e){e.VARCHAR="varchar",e.TEXT="text",e.ARRAY="array",e.ADDRESS="location",e.DECIMAL="decimal",e.DECIMAL_RANGE="decimal_range",e.TIMESTAMP="timestamp",e.EMPLOYEES="people",e.DEPARTMENTS="department",e.MONEY="money",e.TIMESCOPE="timescope",e.FILE="file",e.IMAGE="image",e.AUTO_NUMBER="auto_number",e.CALC="calc",e.RELATION="relation",e.LIST="list",e.RELATION_FIELD="relation-field",e.REFERENCE_FIELD="reference-field",e.CALC_FIELD="calc",e.JSON="json",e.BIGINT="bigint",e.ANY="ANY",e.ENCRYPTED_FIELD="encrypted_field"})(H||(H={}));var ge;ge={},Be(ge,H.ARRAY,X.ARRAY_COLUMN),Be(ge,H.AUTO_NUMBER,X.AUTO_NUMBER_COLUMN),Be(ge,H.DECIMAL,X.DECIMAL_COLUMN),Be(ge,H.DEPARTMENTS,X.DEPARTMENT_COLUMN),Be(ge,H.FILE,X.FILE_COLUMN),Be(ge,H.IMAGE,X.IMAGE_COLUMN),Be(ge,H.ADDRESS,X.LOCATION_COLUMN),Be(ge,H.EMPLOYEES,X.EMPLOYEE_COLUMN),Be(ge,H.TEXT,X.TEXT_COLUMN),Be(ge,H.TIMESCOPE,X.TIMESCOPE_COLUMN),Be(ge,H.TIMESTAMP,X.TIMESTAMP_COLUMN),Be(ge,H.VARCHAR,X.VARCHAR_COLUMN),Be(ge,H.RELATION,X.VARCHAR_COLUMN);var kr;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATEHOUR="datehour",e.DATEMIN="datemin",e.DATETIME="datetime"})(kr||(kr={}));var qr="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",$c=qr+"0123456789";function Nn(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?qr:$c,u=Math.random()*r.length;t+=r[parseInt(String(u),10)]}return t}function xn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pc(e){if(Array.isArray(e))return xn(e)}function Lc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Wt(e,t,n){return jc()?Wt=Reflect.construct:Wt=function(u,i,o){var s=[null];s.push.apply(s,i);var f=Function.bind.apply(u,s),l=new f;return o&&xt(l,o.prototype),l},Wt.apply(null,arguments)}function Nt(e){return Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Nt(e)}function Vr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xt(e,t)}function kc(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function qc(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uc(){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 Vc(e,t){return t&&(Hc(t)==="object"||typeof t=="function")?t:Lc(e)}function xt(e,t){return xt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},xt(e,t)}function Hr(e){return Pc(e)||qc(e)||zc(e)||Uc()}var Hc=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function zc(e,t){if(!!e){if(typeof e=="string")return xn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xn(e,t)}}function On(e){var t=typeof Map=="function"?new Map:void 0;return On=function(r){if(r===null||!kc(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return Wt(r,arguments,Nt(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),xt(u,r)},On(e)}function Wc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function zr(e){var t=Wc();return function(){var r=Nt(e),u;if(t){var i=Nt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Vc(this,u)}}var Rn=console;function Xe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=Rn).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(Hr(u)))}function Tn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,u=t.slice(1);(r=Rn).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(Hr(u)))}function Zc(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var $n=function(e){Vr(n,e);var t=zr(n);function n(r){Ur(this,n);var u;return u=t.call(this,r),u.name="\u{1F4A5} Driven Error",u.message=r?Zc(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return n}(On(Error)),Xc=function(e){Vr(n,e);var t=zr(n);function n(r){Ur(this,n);var u;return u=t.call(this,r),u.name="\u{1F6A8} Driven Reference Error",u}return n}($n);function ze(e){throw new $n(e)}function Wr(e){throw new Xc(e)}function Zt(e){Rn.error(new $n(e))}function it(e,t){Array.isArray(e)&&e.map(function(n){switch(n.controlType){case"layout":it(n==null?void 0:n.children,t);break;case"search":it(n==null?void 0:n.children,t);break;case"form":t(n)}})}var Gc=Object.prototype.toString;function Zr(e,t){return Gc.call(e)==="[object "+t+"]"}function Jc(e){return Zr(e,"String")}function Kc(e){return Zr(e,"Promise")}var Qc=function(){function e(t){var n,r;this._messageCache=new Map,this.messages={},this.variableRegExp=/\{([0-9a-zA-Z_]+)\}/g,this._messages=Object.freeze((r=(n=t.messages)!==null&&n!==void 0?n:this.getPreImport(t.locale))!==null&&r!==void 0?r:{}),t.variableRegExp&&(this.variableRegExp=t.variableRegExp),this.setLocale(t.locale)}return e.prototype.setLocale=function(t){var n=this;this.locale=t,this._messageCache.clear();var r=this.getMessageData();Kc(r)?r.then(function(u){n._messageCache.clear(),n.messages[n.localeInMessageKey]=u}):this.messages[this.localeInMessageKey]=r},e.prototype.getMessageData=function(){var t=this._messages[this.localeInMessageKey];return typeof t=="function"?t():t},e.prototype.translate=function(t,n,r){var u=this.getMessage(t);return u?this.formatMessage(u,r):this.formatMessage(n,r)},e.prototype.getMessage=function(t){if(this._messageCache.has(t))return this._messageCache.get(t);var n=this.getPathArray(t),r=n.reduce(function(u,i,o,s){if(u!==void 0){var f=u[i];if(!(o===s.length-1&&!Jc(f)))return f}},this.message);return this._messageCache.set(t,r),r},e.prototype.formatMessage=function(t,n){return n?t.replace(this.variableRegExp,function(r,u){var i=n[u];return i!==void 0?String(i):r}):t},e.prototype.getPreImport=function(t){var n;if(window.okI18nPreImport){var r=this.getLocaleInMessageKey(t);return window.okI18nPreImport.hasOwnProperty(r)?window.okI18nPreImport:(n={},n[r]=window.okI18nPreImport,n)}},e.prototype.getPathArray=function(t){return t.split(".")},e.prototype.getLocaleInMessageKey=function(t){return t.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var t;return(t=this.messages[this.localeInMessageKey])!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e}();function Yc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Pn=function(){function e(){Yc(this,e)}return e.getMessage=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.$i18n.$t(n,"",r)},e.resetI18n=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jr;return new Qc({locale:n,messages:Tc})},e.setLocale=function(n){return this.$i18n.setLocale(n)},e}();Pn.$i18n=Pn.resetI18n();function Ln(e,t,n){var r=t.replace(/\[(\d)]/g,function(i,o){return"."+o}).split("."),u=!1;return r.reduce(function(i,o,s,f){var l=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,o)){Xe("Can not set ".concat(t,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),i,i);return}return s===f.length-1&&!Object.is(l[o],n)&&(l[o]=n,u=!0),l[o]}},e),u}var Ge=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jn={exports:{}};(function(e){(function(t){var n=function(g,E,b){if(!l(E)||a(E)||h(E)||d(E)||f(E))return E;var C,N=0,O=0;if(c(E))for(C=[],O=E.length;N<O;N++)C.push(n(g,E[N],b));else{C={};for(var R in E)Object.prototype.hasOwnProperty.call(E,R)&&(C[g(R,b)]=n(g,E[R],b))}return C},r=function(g,E){E=E||{};var b=E.separator||"_",C=E.split||/(?=[A-Z])/;return g.split(C).join(b)},u=function(g){return p(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(E,b){return b?b.toUpperCase():""}),g.substr(0,1).toLowerCase()+g.substr(1))},i=function(g){var E=u(g);return E.substr(0,1).toUpperCase()+E.substr(1)},o=function(g,E){return r(g,E).toLowerCase()},s=Object.prototype.toString,f=function(g){return typeof g=="function"},l=function(g){return g===Object(g)},c=function(g){return s.call(g)=="[object Array]"},a=function(g){return s.call(g)=="[object Date]"},h=function(g){return s.call(g)=="[object RegExp]"},d=function(g){return s.call(g)=="[object Boolean]"},p=function(g){return g=g-0,g===g},D=function(g,E){var b=E&&"process"in E?E.process:E;return typeof b!="function"?g:function(C,N){return b(C,g,N)}},v={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(g,E){return n(D(u,E),g)},decamelizeKeys:function(g,E){return n(D(o,E),g,E)},pascalizeKeys:function(g,E){return n(D(i,E),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=v:t.humps=v})(Ge)})(jn);var Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});function kn(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(t=>typeof t!="object"||t===null?t:kn(t));{const t={};for(const n in e){const r=e[n];t[n]=typeof r!="object"||r===null?r:kn(r)}return t}}var ef=Gr.default=kn;function ae(e){if(e!==void 0)return typeof e=="object"?ef(e):e}function Le(e){return Object.prototype.toString.call(e)==="[object Object]"}function tf(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function ht(e){return Array.isArray(e)}function be(e){return typeof e=="string"}function Xt(e){return typeof e=="number"}function Jr(e){return typeof e=="function"}function nf(e){return ht(e)&&e.every(function(t){return be(t)})}function rf(e){return ht(e)&&e.every(function(t){return Xt(t)||t===""})}function Kr(e){return/^\[.*?]$/.test(e)}function Gt(e){return/^{.*?}$/.test(e)}function qn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uf(e){if(Array.isArray(e))return qn(e)}function Qr(e,t,n,r,u,i,o){try{var s=e[i](o),f=s.value}catch(l){n(l);return}s.done?t(f):Promise.resolve(f).then(r,u)}function of(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(f){Qr(i,r,u,o,s,"next",f)}function s(f){Qr(i,r,u,o,s,"throw",f)}o(void 0)})}}function af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sf(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cf(){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 Un(e){return uf(e)||sf(e)||ff(e)||cf()}function ff(e,t){if(!!e){if(typeof e=="string")return qn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qn(e,t)}}var lf=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return f([l,c])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(c){l=[6,c],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Yr=function(){function e(){af(this,e),this._events=new Map,this.debug=!1}var t=e.prototype;return t.emit=function(r){for(var u=arguments.length,i=new Array(u>1?u-1:0),o=1;o<u;o++)i[o-1]=arguments[o];var s=this;return of(function(){var f,l,c,a,h,d,p,D,v,g,E,b;return lf(this,function(C){switch(C.label){case 0:if(f=s._events.get(r),l=[],!f)return[3,10];c=f.slice(),a=!0,h=!1,d=void 0,C.label=1;case 1:C.trys.push([1,8,9,10]),p=c[Symbol.iterator](),C.label=2;case 2:if(a=(D=p.next()).done)return[3,7];if(v=D.value,!f.includes(v))return[3,6];C.label=3;case 3:return C.trys.push([3,5,,6]),s.debug&&Tn.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(Un(i))),[4,v.apply(null,Un(i))];case 4:return g=C.sent(),s.debug&&Tn.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(Un(i),[g])),l.push(g),g===!1?[3,7]:[3,6];case 5:return E=C.sent(),Zt(String(E)+":"+String(E.stack)),[3,6];case 6:return a=!0,[3,2];case 7:return[3,10];case 8:return b=C.sent(),h=!0,d=b,[3,10];case 9:try{!a&&p.return!=null&&p.return()}finally{if(h)throw d}return[7];case 10:return[2,l]}})})()},t.on=function(r,u){if(this._events.has(r)){var i;(i=this._events.get(r))===null||i===void 0||i.push(u)}else this._events.set(r,[u])},t.off=function(r,u){if(this._events.has(r)){var i=this._events.get(r),o=i==null?void 0:i.indexOf(u);i==null||i.splice(o,1)}},t.delete=function(r){this._events.has(r)&&this._events.delete(r)},t.clear=function(){this._events=new Map},e}();function hf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var df=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_list_before_insert",name:"\u5217\u8868\u6570\u636E\u63D2\u5165\u524D",code:"list-before-insert"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"},{key:"on_change_tab",name:"\u6807\u7B7E\u9875\u5207\u6362\u65F6",code:"change-tab"},{key:"on_modal_ok",name:"\u5F39\u7A97\u786E\u8BA4\u65F6",code:"modal-ok"}],eu=function(){function e(){hf(this,e)}var t=e.prototype;return t.getEventsFromKeys=function(r){var u=typeof r=="string"?[r]:r;return e.events.filter(function(i){return u.includes(i.key)})},e}();eu.events=df;function pf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var tu=[],Jt=function(){function e(n){pf(this,e),this.registeredControlTypes=new Set,this.controlConfigMap=new Map,this._controls=[],this._type=n,this._initControls(n)}var t=e.prototype;return t.registerControlConfig=function(r,u){return this.controlConfigMap.set(r,u),this},t.getControlConfig=function(r){return this.controlConfigMap.get(r)},t.getControls=function(){return this._controls},t.register=function(r){r.__is_control__||ze("".concat(r.name," is not a Control"));var u=this._controls.findIndex(function(i){return i.controlType===r.controlType});return u>-1&&(Xe("The ".concat(r.controlType," is repeat register, So it overwrites the one that was registered before.")),this._controls.splice(u,1)),this.registeredControlTypes.add(r.controlType),this._controls.push(r),this},t.isLayoutControl=function(r){return r.controlType===J.LAYOUT},t.isFormControl=function(r){return r.controlType===J.FORM},t.isListControl=function(r){return r.controlType===J.LIST},t.isColumnControl=function(r){return r.controlType===J.COLUMN},t.createControl=function(r,u){var i=this;if(Array.isArray(r))return r.map(function(c){return i.createControl(c,u)});r.children&&(r.children=r.children.map(function(c){return i.createControl(c,u)})),this.isListControl(r)&&r.props.headers&&(r.props.headers=r.props.headers.map(function(c){return i.createControl(c,u)}));var o=this.getControlFormType(r.type);if(o){var s=r;if(typeof u=="function"){var f=u(s);f&&(s=f)}var l=new o(s);return l}else ze("The constructor of ".concat(r.type," could not be found, please confirm that the constructor has been registered"))},t.createControlInstance=function(r,u){var i=this.getControlFormType(r);if(i)return new i(u)},t.getControlFormType=function(r){return this._controls.find(function(u){return u.controlType===r})},t._initControls=function(r){var u=this;this.constructor.staticControls.forEach(function(i){u.register(i[r])})},e.register=function(r){var u=r.Designer,i=r.Runtime;(!u||!i||!u.__is_control__||!i.__is_control__)&&ze("".concat(r," is can't register as a Control"));var o=this.staticControls.findIndex(function(s){return s.Designer.controlType===u.controlType});return o>-1&&(Xe("The ".concat(u.controlType," is repeat register, So it overwrites the one that was registered before.")),this.staticControls.splice(o,1)),this.staticRegisteredTypes.add(u.controlType),this.staticControls.push(r),this},e}();Jt.staticControls=tu,Jt.staticRegisteredTypes=new Set(tu.map(function(e){return e.Designer.controlType})),Jt.staticRegisteredConfigs=new Map;function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Vn=function e(t){ot(this,e);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var u;this.fieldType=(u=t==null?void 0:t.fieldType)!==null&&u!==void 0?u:"",this.aliasCode=t==null?void 0:t.aliasCode},Je=function e(){ot(this,e)},Kt=function e(t){ot(this,e);var n;this.amount=(n=t==null?void 0:t.amount)!==null&&n!==void 0?n:"";var r;this.currency=(r=t==null?void 0:t.currency)!==null&&r!==void 0?r:Hn.CNY},Qt=function e(t){ot(this,e);var n;this.min=(n=t==null?void 0:t.min)!==null&&n!==void 0?n:"";var r;this.max=(r=t==null?void 0:t.max)!==null&&r!==void 0?r:""},Yt=function e(t){ot(this,e);var n;this.city=(n=t==null?void 0:t.city)!==null&&n!==void 0?n:"";var r;this.cityDisplay=(r=t==null?void 0:t.cityDisplay)!==null&&r!==void 0?r:"";var u;this.district=(u=t==null?void 0:t.district)!==null&&u!==void 0?u:"";var i;this.districtDisplay=(i=t==null?void 0:t.districtDisplay)!==null&&i!==void 0?i:"";var o;this.province=(o=t==null?void 0:t.province)!==null&&o!==void 0?o:"";var s;this.provinceDisplay=(s=t==null?void 0:t.provinceDisplay)!==null&&s!==void 0?s:""},en=function e(t){ot(this,e);var n;this.result=(n=t==null?void 0:t.result)!==null&&n!==void 0?n:0;var r;this.unit=(r=t==null?void 0:t.unit)!==null&&r!==void 0?r:""},Hn;(function(e){e.CNY="CNY",e.USD="USD",e.JPY="JPY",e.EUR="EUR",e.INR="INR",e.IDR="IDR",e.BRL="BRL",e.AED="AED",e.AUD="AUD",e.CAD="CAD",e.EGP="EGP",e.GBP="GBP",e.ZAR="ZAR",e.KRW="KRW",e.MAD="MAD",e.MXN="MXN",e.MYR="MYR",e.PHP="PHP",e.PLN="PLN",e.RUB="RUB",e.SGD="SGD",e.THB="THB",e.TRY="TRY",e.TWD="TWD",e.VND="VND",e.HKD="HKD",e.IEP="IEP"})(Hn||(Hn={}));var nu;(function(e){e.DEFAULT_DISPLAY="defaultDisplay",e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.VIEW_FORM_MODEL_TYPE="viewFormModelType",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions"})(nu||(nu={}));var zn;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(zn||(zn={}));var Df=function e(t){ot(this,e);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var u;this.widthConfig=(u=t==null?void 0:t.widthConfig)!==null&&u!==void 0?u:"fill";var i;this.heightConfig=(i=t==null?void 0:t.heightConfig)!==null&&i!==void 0?i:"fill"};function gf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function tn(e,t,n){return vf()?tn=Reflect.construct:tn=function(u,i,o){var s=[null];s.push.apply(s,i);var f=Function.bind.apply(u,s),l=new f;return o&&Rt(l,o.prototype),l},tn.apply(null,arguments)}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ot(e)}function mf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rt(e,t)}function yf(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ef(e,t){return t&&(Af(t)==="object"||typeof t=="function")?t:gf(e)}function Rt(e,t){return Rt=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Rt(e,t)}var Af=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Zn(e){var t=typeof Map=="function"?new Map:void 0;return Zn=function(r){if(r===null||!yf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return tn(r,arguments,Ot(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Rt(u,r)},Zn(e)}function Cf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Ff(e){var t=Cf();return function(){var r=Ot(e),u;if(t){var i=Ot(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Ef(this,u)}}var wf=function e(t){Wn(this,e),this.isHide={type:"boolean"}},Bf=function(e){mf(n,e);var t=Ff(n);function n(r){return Wn(this,n),t.call(this)}return n}(Zn(Array)),dt=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Wn(this,e);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new Df(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};dt.Rules=wf,dt.RuntimeRules=Bf;function je(){return je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},je.apply(this,arguments)}function bf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Xn(e){return Xn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Xn(e)}function nn(e,t){return nn=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},nn(e,t)}function Sf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function rn(e,t,n){return Sf()?rn=Reflect.construct:rn=function(u,i,o){var s=[null];s.push.apply(s,i);var f=Function.bind.apply(u,s),l=new f;return o&&nn(l,o.prototype),l},rn.apply(null,arguments)}function _f(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Gn(e){var t=typeof Map=="function"?new Map:void 0;return Gn=function(r){if(r===null||!_f(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,u)}function u(){return rn(r,arguments,Xn(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),nn(u,r)},Gn(e)}var Mf=/%[sdj%]/g,ru=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(ru=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function Jn(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,u=t[0],i=t.length;if(typeof u=="function")return u.apply(null,t.slice(1));if(typeof u=="string"){var o=String(u).replace(Mf,function(s){if(s==="%%")return"%";if(r>=i)return s;switch(s){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(f){return"[Circular]"}break;default:return s}});return o}return u}function If(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ue(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||If(t)&&typeof e=="string"&&!e)}function Nf(e,t,n){var r=[],u=0,i=e.length;function o(s){r.push.apply(r,s),u++,u===i&&n(r)}e.forEach(function(s){t(s,o)})}function uu(e,t,n){var r=0,u=e.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<u?t(e[s],i):n([])}i([])}function xf(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var iu=function(e){bf(t,e);function t(n,r){var u;return u=e.call(this,"Async Validation Error")||this,u.errors=n,u.fields=r,u}return t}(Gn(Error));function Of(e,t,n,r){if(t.first){var u=new Promise(function(a,h){var d=function(v){return r(v),v.length?h(new iu(v,Jn(v))):a()},p=xf(e);uu(p,n,d)});return u.catch(function(a){return a}),u}var i=t.firstFields||[];i===!0&&(i=Object.keys(e));var o=Object.keys(e),s=o.length,f=0,l=[],c=new Promise(function(a,h){var d=function(D){if(l.push.apply(l,D),f++,f===s)return r(l),l.length?h(new iu(l,Jn(l))):a()};o.length||(r(l),a()),o.forEach(function(p){var D=e[p];i.indexOf(p)!==-1?uu(D,n,d):Nf(D,n,d)})});return c.catch(function(a){return a}),c}function ou(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:typeof t=="function"?t():t,field:t.field||e.fullField}}}function au(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=je(je({},e[n]),r):e[n]=r}}return e}function su(e,t,n,r,u,i){e.required&&(!n.hasOwnProperty(e.field)||ue(t,i||e.type))&&r.push(Se(u.messages.required,e.fullField))}function Rf(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(Se(u.messages.whitespace,e.fullField))}var Kn={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},Tt={integer:function(t){return Tt.number(t)&&parseInt(t,10)===t},float:function(t){return Tt.number(t)&&!Tt.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Tt.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(Kn.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(Kn.url)},hex:function(t){return typeof t=="string"&&!!t.match(Kn.hex)}};function Tf(e,t,n,r,u){if(e.required&&t===void 0){su(e,t,n,r,u);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;i.indexOf(o)>-1?Tt[o](t)||r.push(Se(u.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Se(u.messages.types[o],e.fullField,e.type))}function $f(e,t,n,r,u){var i=typeof e.len=="number",o=typeof e.min=="number",s=typeof e.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,c=null,a=typeof t=="number",h=typeof t=="string",d=Array.isArray(t);if(a?c="number":h?c="string":d&&(c="array"),!c)return!1;d&&(l=t.length),h&&(l=t.replace(f,"_").length),i?l!==e.len&&r.push(Se(u.messages[c].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(Se(u.messages[c].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(Se(u.messages[c].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(Se(u.messages[c].range,e.fullField,e.min,e.max))}var pt="enum";function Pf(e,t,n,r,u){e[pt]=Array.isArray(e[pt])?e[pt]:[],e[pt].indexOf(t)===-1&&r.push(Se(u.messages[pt],e.fullField,e[pt].join(", ")))}function Lf(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Se(u.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var i=new RegExp(e.pattern);i.test(t)||r.push(Se(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var V={required:su,whitespace:Rf,type:Tf,range:$f,enum:Pf,pattern:Lf};function jf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t,"string")&&!e.required)return n();V.required(e,t,r,i,u,"string"),ue(t,"string")||(V.type(e,t,r,i,u),V.range(e,t,r,i,u),V.pattern(e,t,r,i,u),e.whitespace===!0&&V.whitespace(e,t,r,i,u))}n(i)}function kf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}function qf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Uf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}function Vf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),ue(t)||V.type(e,t,r,i,u)}n(i)}function Hf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Wf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return n();V.required(e,t,r,i,u,"array"),t!=null&&(V.type(e,t,r,i,u),V.range(e,t,r,i,u))}n(i)}function Zf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V.type(e,t,r,i,u)}n(i)}var Xf="enum";function Gf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u),t!==void 0&&V[Xf](e,t,r,i,u)}n(i)}function Jf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t,"string")&&!e.required)return n();V.required(e,t,r,i,u),ue(t,"string")||V.pattern(e,t,r,i,u)}n(i)}function Kf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t,"date")&&!e.required)return n();if(V.required(e,t,r,i,u),!ue(t,"date")){var s;t instanceof Date?s=t:s=new Date(t),V.type(e,s,r,i,u),s&&V.range(e,s.getTime(),r,i,u)}}n(i)}function Qf(e,t,n,r,u){var i=[],o=Array.isArray(t)?"array":typeof t;V.required(e,t,r,i,u,o),n(i)}function Qn(e,t,n,r,u){var i=e.type,o=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(ue(t,i)&&!e.required)return n();V.required(e,t,r,o,u,i),ue(t,i)||V.type(e,t,r,o,u)}n(o)}function Yf(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(ue(t)&&!e.required)return n();V.required(e,t,r,i,u)}n(i)}var $t={string:jf,method:kf,number:qf,boolean:Uf,regexp:Vf,integer:Hf,float:zf,array:Wf,object:Zf,enum:Gf,pattern:Jf,date:Kf,url:Qn,hex:Qn,email:Qn,required:Qf,any:Yf};function Yn(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var er=Yn();function Ke(e){this.rules=null,this._messages=er,this.define(e)}Ke.prototype={messages:function(t){return t&&(this._messages=au(Yn(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var i=t,o=n,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function f(D){var v,g=[],E={};function b(C){if(Array.isArray(C)){var N;g=(N=g).concat.apply(N,C)}else g.push(C)}for(v=0;v<D.length;v++)b(D[v]);g.length?E=Jn(g):(g=null,E=null),s(g,E)}if(o.messages){var l=this.messages();l===er&&(l=Yn()),au(l,o.messages),o.messages=l}else o.messages=this.messages();var c,a,h={},d=o.keys||Object.keys(this.rules);d.forEach(function(D){c=u.rules[D],a=i[D],c.forEach(function(v){var g=v;typeof g.transform=="function"&&(i===t&&(i=je({},i)),a=i[D]=g.transform(a)),typeof g=="function"?g={validator:g}:g=je({},g),g.validator=u.getValidationMethod(g),g.field=D,g.fullField=g.fullField||D,g.type=u.getType(g),g.validator&&(h[D]=h[D]||[],h[D].push({rule:g,value:a,source:i,field:D}))})});var p={};return Of(h,o,function(D,v){var g=D.rule,E=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");E=E&&(g.required||!g.required&&D.value),g.field=D.field;function b(O,R){return je(je({},R),{},{fullField:g.fullField+"."+O})}function C(O){O===void 0&&(O=[]);var R=O;if(Array.isArray(R)||(R=[R]),!o.suppressWarning&&R.length&&Ke.warning("async-validator:",R),R.length&&g.message!==void 0&&(R=[].concat(g.message)),R=R.map(ou(g)),o.first&&R.length)return p[g.field]=1,v(R);if(!E)v(R);else{if(g.required&&!D.value)return g.message!==void 0?R=[].concat(g.message).map(ou(g)):o.error&&(R=[o.error(g,Se(o.messages.required,g.field))]),v(R);var S={};if(g.defaultField)for(var $ in D.value)D.value.hasOwnProperty($)&&(S[$]=g.defaultField);S=je(je({},S),D.rule.fields);for(var W in S)if(S.hasOwnProperty(W)){var q=Array.isArray(S[W])?S[W]:[S[W]];S[W]=q.map(b.bind(null,W))}var Q=new Ke(S);Q.messages(o.messages),D.rule.options&&(D.rule.options.messages=o.messages,D.rule.options.error=o.error),Q.validate(D.value,D.rule.options||o,function(K){var te=[];R&&R.length&&te.push.apply(te,R),K&&K.length&&te.push.apply(te,K),v(te.length?te:null)})}}var N;g.asyncValidator?N=g.asyncValidator(g,D.value,C,D.source,o):g.validator&&(N=g.validator(g,D.value,C,D.source,o),N===!0?C():N===!1?C(g.message||g.field+" fails"):N instanceof Array?C(N):N instanceof Error&&C(N.message)),N&&N.then&&N.then(function(){return C()},function(O){return C(O)})},function(D){f(D)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!$t.hasOwnProperty(t.type))throw new Error(Se("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?$t.required:$t[this.getType(t)]||!1}},Ke.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");$t[t]=n},Ke.warning=ru,Ke.messages=er,Ke.validators=$t;var el={required:"%s \u5FC5\u586B",maxLength:"%s \u8D85\u51FA\u6700\u5927\u957F\u5EA6\u9650\u5236",minLength:"%s \u5C0F\u4E8E\u6700\u5C0F\u957F\u5EA6\u9650\u5236",string:{range:"%s \u4E0D\u5728\u6307\u5B9A\u957F\u5EA6\u5185"}};function tl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new Ke(e);return n.messages(Object.assign(el,t)),n}var nl=new Yr;function tr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rl(e){if(Array.isArray(e))return e}function ul(e){if(Array.isArray(e))return tr(e)}function cu(e,t,n,r,u,i,o){try{var s=e[i](o),f=s.value}catch(l){n(l);return}s.done?t(f):Promise.resolve(f).then(r,u)}function fu(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(f){cu(i,r,u,o,s,"next",f)}function s(f){cu(i,r,u,o,s,"throw",f)}o(void 0)})}}function il(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ol(e,t,n){return t&&lu(e.prototype,t),n&&lu(e,n),e}function al(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hu(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function du(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sl(){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 cl(){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 pu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){al(e,u,n[u])})}return e}function fl(e){return rl(e)||du(e)||Du(e)||sl()}function nr(e){return ul(e)||du(e)||Du(e)||cl()}function Du(e,t){if(!!e){if(typeof e=="string")return tr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tr(e,t)}}var gu=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return f([l,c])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(c){l=[6,c],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},ke=function(){function t(r){var u=this;il(this,t),this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=mu,this.removeSetting=vu,this._callControlHooks("preInstance",r);var i=hu(this,t)?this.constructor:void 0,o=i.controlName,s=i.controlIcon,f=i.controlType,l=i.controlFieldType,c=i.controlEventKeys,a=i.controlCustomEvents,h=i.name,d=i.setting;o&&s&&f||Wr("The ".concat(h," controlName,controlIcon,controlType is not define"));var p;this.id=(p=r==null?void 0:r.id)!==null&&p!==void 0?p:Nn(10),this.name=o,this.icon=s;var D;this.type=(D=r==null?void 0:r.type)!==null&&D!==void 0?D:f,this.props=new dt(r==null?void 0:r.props,(hu(this,t)?this.constructor:void 0).controlName);var v;this.controlType=(v=r==null?void 0:r.controlType)!==null&&v!==void 0?v:"base",this.setting=ae(d);var g;this.fieldType=(g=r==null?void 0:r.fieldType)!==null&&g!==void 0?g:l,this.eventKeys=ae(c),this.customEvents=ae(a),Promise.resolve().then(function(){u._callControlHooks("postInstance",r)})}var n=t.prototype;return n._callControlHooks=function(){for(var u=arguments.length,i=new Array(u),o=0;o<u;o++)i[o]=arguments[o];var s,f=fl(i),l=f[0],c=f.slice(1);return(s=nl).emit.apply(s,[l,this].concat(nr(c)))},n.preUpdate=function(u,i){this._callControlHooks("preUpdateProps",u,i)},n.postUpdate=function(u,i){this._callControlHooks("postUpdateProps",u,i)},n.updateProps=function(u,i){this.preUpdate(u,i),Ln(this.props,u,i),this.postUpdate(u,i)},n.preValidate=function(){var u=this;return fu(function(){var i,o,s;return gu(this,function(f){switch(f.label){case 0:return i=pu({},u.rules),[4,u._callControlHooks("preValidate",i)];case 1:return o=f.sent(),s=o[o.length-1],[2,s===!1?void 0:s]}})})()},n.validate=function(u,i){var o=this;return fu(function(){var s,f,l,c;return gu(this,function(a){switch(a.label){case 0:return[4,o.preValidate()];case 1:s=a.sent(),f=s!==void 0?s:pu({},o.rules),Array.isArray(i)&&i.forEach(function(h){f.hasOwnProperty(h)&&delete f[h]}),l=tl(f,u),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,l.validate(o.props)];case 3:return a.sent(),[2,!0];case 4:throw c=a.sent(),c.control||(c.control=o),c;case 5:return[2]}})})()},n.toDataBindModel=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,o=this.id,s=this.type,f=this.props,l=f.dataBind,c=f.datasourceBind,a=f.optionConfig,h=f.caption,d=f.required,p=f.maxLength,D=f.options,v=f.encrypted,g=f.encryptedMode;if(!(!i&&!l&&!c)){var E={parentId:u,fieldType:i,controlId:o,caption:h,type:s,props:{}};switch(l&&(E.dataBind=l),a){case"datasource":case void 0:c&&(E.datasourceBind=c);break;case"custom":E.props.options=D;break}return d!==void 0&&(E.required=d),p!==void 0&&(E.maxLength=p),v!==void 0&&(E.encrypted=v),g!==void 0&&(E.encryptedMode=g),E}},n.preToSchema=function(){this._callControlHooks("preToSchema",this)},n.toSchema=function(){return this.preToSchema(),{id:this.id,type:this.type,props:ae(this.props),fieldType:this.fieldType,controlType:this.controlType}},t.updateBasicControl=function(u,i){if(u==="setting"){if(i.add){var o;(o=this.setting).push.apply(o,nr(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}},ol(t,[{key:"rules",get:function(){var u=this.props.constructor.Rules;return u?new u(this.props):{}}}]),t}();ke.controlName="\u63A7\u4EF6",ke.controlIcon="icon",ke.controlType="control",ke.controlEventKeys=[],ke.controlCustomEvents=[],ke.setting=[],ke.__is_control__=!0,ke.removeSettingItem=vu,ke.updateSettingItem=mu;function vu(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u,i=typeof r!="string";if(!!Array.isArray(t.setting)){var o=(u=t.setting)===null||u===void 0?void 0:u.findIndex(function(l){return l.key===(i?r.key:r)});if(o!==-1){var s,f;i?t.setting[o].showItems=(s=t.setting[o].showItems)===null||s===void 0?void 0:s.filter(function(l){return!r.hideItems.includes(l)}):t.setting.splice(o,1),i&&!(!((f=t.setting[o].showItems)===null||f===void 0)&&f.length)&&t.setting.splice(o,1)}}})}function mu(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var i=n.setting.find(function(l){return l.key===u});if(i){if(typeof t=="boolean")i.visible=t;else if(typeof t=="object"){var o,s=(o=t.type)!==null&&o!==void 0?o:"replace";if(s==="replace")i.showItems=t.showItems;else{var f;(f=i.showItems).push.apply(f,nr(t.showItems))}}}})}function ll(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hl(e,t,n){return t&&yu(e.prototype,t),n&&yu(e,n),e}function dl(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var un=function(){function t(n){ll(this,t),this.customEvents=[],this.parent=null;var r=dl(this,t)?this.constructor:void 0,u=r.controlType,i=r.controlFieldType,o=r.name,s=r.controlCustomEvents;u||Wr("The ".concat(o," controlType is not define"));var f;this.id=(f=n==null?void 0:n.id)!==null&&f!==void 0?f:Nn(10);var l;this.type=(l=n==null?void 0:n.type)!==null&&l!==void 0?l:u,this.props=new dt(n==null?void 0:n.props),this.customEvents=s;var c;this.controlType=(c=n==null?void 0:n.controlType)!==null&&c!==void 0?c:"base";var a;this.fieldType=(a=n==null?void 0:n.fieldType)!==null&&a!==void 0?a:i;var h;this.pageStatus=(h=n==null?void 0:n.pageStatus)!==null&&h!==void 0?h:zn.UNKNOWN}return hl(t,[{key:"rules",get:function(){var r=this.props.constructor.RuntimeRules;if(r){var u=new r(this.props);return Array.from(u)}return[]}}]),t}();un.controlType="control",un.__is_control__=!0,un.controlCustomEvents=[];function pl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function on(e){return on=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},on(e)}function gl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rr(e,t)}function vl(e,t){return t&&(ml(t)==="object"||typeof t=="function")?t:pl(e)}function rr(e,t){return rr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},rr(e,t)}var ml=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function yl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function El(e){var t=yl();return function(){var r=on(e),u;if(t){var i=on(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return vl(this,u)}}var Al=function(e){gl(n,e);var t=El(n);function n(r){return Dl(this,n),t.call(this,r)}return n}(dt);function ur(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cl(e){if(Array.isArray(e))return ur(e)}function Fl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wl(){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 Eu(e){return Cl(e)||Fl(e)||Bl(e)||wl()}function Bl(e,t){if(!!e){if(typeof e=="string")return ur(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ur(e,t)}}function bl(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Au(e,t){e.parent=t,bl(e,"parent")}function Sl(e,t){e.forEach(function(n){Au(n,t)})}var Cu=Symbol("targetKey");function Fu(e){var t;return(t=e[Cu])!==null&&t!==void 0?t:e}function wu(e,t){return Sl(e,t),new Proxy(e,{get:function(r,u){for(var i=arguments.length,o=new Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];var f;return u===Cu?r:(f=Reflect).get.apply(f,[r,u].concat(Eu(o)))},set:function(r,u,i){for(var o=arguments.length,s=new Array(o>3?o-3:0),f=3;f<o;f++)s[f-3]=arguments[f];var l;if(ht(e)&&u==="length"&&i===e.length)return!0;var c=(l=Reflect).set.apply(l,[r,u,i].concat(Eu(s)));return Le(i)&&Au(i,t),c}})}function ir(e,t,n,r){var u=r!=null?r:e,i=wu(Fu(n!=null?n:[]),u);Object.defineProperty(e,t,{get:function(){return i},set:function(s){i=wu(Fu(s),u)},enumerable:!0})}function or(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _l(e){if(Array.isArray(e))return or(e)}function Bu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bu(e,t,n,r,u,i,o){try{var s=e[i](o),f=s.value}catch(l){n(l);return}s.done?t(f):Promise.resolve(f).then(r,u)}function Ml(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(f){bu(i,r,u,o,s,"next",f)}function s(f){bu(i,r,u,o,s,"throw",f)}o(void 0)})}}function Il(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dt(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?Dt=Reflect.get:Dt=function(u,i,o){var s=kl(u,i);if(!!s){var f=Object.getOwnPropertyDescriptor(s,i);return f.get?f.get.call(o):f.value}},Dt(e,t,n||e)}function Qe(e){return Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Qe(e)}function xl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ar(e,t)}function Ol(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Rl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tl(){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 $l(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable}))),r.forEach(function(u){Nl(e,u,n[u])})}return e}function Pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Ll(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Pl(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function jl(e,t){return t&&(ql(t)==="object"||typeof t=="function")?t:Bu(e)}function ar(e,t){return ar=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},ar(e,t)}function kl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=Qe(e),e!==null););return e}function Su(e){return _l(e)||Rl(e)||Ul(e)||Tl()}var ql=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Ul(e,t){if(!!e){if(typeof e=="string")return or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return or(e,t)}}function Vl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Hl(e){var t=Vl();return function(){var r=Qe(e),u;if(t){var i=Qe(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return jl(this,u)}}var zl=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return f([l,c])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(c){l=[6,c],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Wl=1e4,_u=function(t){xl(r,t);var n=Hl(r);function r(i){Il(this,r);var o;o=n.call(this,i),o.controlType="layout";var s=Ol(this,r)?this.constructor:void 0,f=s.excludes,l=s.childrenMaxLength;return o.props=new Al(i==null?void 0:i.props),ir(Bu(o),"children",i==null?void 0:i.children),o.excludes=ae(f),o.childrenMaxLength=l,o}var u=r.prototype;return u.judgeExcludesChildren=function(o){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(o)},u.judgeJoinChildren=function(o){var s=this.judgeExcludesChildren(o);return s&&this.childrenMaxLength>this.children.length},u.validate=function(o,s){var f=this,l=this,c=function(){return Dt(Qe(r.prototype),"validate",f)};return Ml(function(){return zl(this,function(a){switch(a.label){case 0:return[4,c().call(l,o,s)];case 1:return a.sent(),[4,Promise.all(l.children.map(function(h){return h.validate(o,s)}))];case 2:return a.sent(),[2,!0]}})})()},u.toDataBindModel=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,s=Dt(Qe(r.prototype),"toDataBindModel",this).call(this),f=s?[s]:[];return this.children.reduce(function(l,c){var a=c.toDataBindModel(o);if(Array.isArray(a)){var h=a.filter(function(d){return!!d});return Su(l).concat(Su(h))}return a&&l.push(a),l},f)},u.toSchema=function(){var o=Dt(Qe(r.prototype),"toSchema",this).call(this),s=this.children.map(function(f){var l=f.toSchema();return l});return Ll($l({},o),{children:s})},r}(ke);_u.excludes=!1,_u.childrenMaxLength=Wl;function Mu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function an(e){return an=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},an(e)}function Xl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sr(e,t)}function Gl(e,t){return t&&(Jl(t)==="object"||typeof t=="function")?t:Mu(e)}function sr(e,t){return sr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},sr(e,t)}var Jl=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Kl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Ql(e){var t=Kl();return function(){var r=an(e),u;if(t){var i=an(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Gl(this,u)}}var Yl=function(e){Xl(n,e);var t=Ql(n);function n(r,u){Zl(this,n);var i;return i=t.call(this,u),ir(Mu(i),"headers",u==null?void 0:u.headers,r),i}return n}(dt);H.LIST;function cr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t0(e,t,n){return t&&Iu(e.prototype,t),n&&Iu(e,n),e}function sn(e){return sn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sn(e)}function n0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fr(e,t)}function r0(e,t){return t&&(u0(t)==="object"||typeof t=="function")?t:cr(e)}function fr(e,t){return fr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},fr(e,t)}var u0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function i0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function o0(e){var t=i0();return function(){var r=sn(e),u;if(t){var i=sn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return r0(this,u)}}var a0=function(e){n0(n,e);var t=o0(n);function n(r){e0(this,n);var u;return u=t.call(this,r),u.controlType="list",u.props=new Yl(cr(u),r==null?void 0:r.props),ir(cr(u),"children",r==null?void 0:r.children),u}return t0(n,[{key:"length",get:function(){return this.children.length}}]),n}(un);function cn(e){return e.controlType===J.LAYOUT||e.controlType===J.WRAP||e.controlType===J.LIST||e.controlType===J.SEARCH}function gt(e,t){Array.isArray(e)&&e.map(n=>{if(n.type===X.SUBTABLE){const r=n.getChildrenFormControl();t(n,r)}else cn(n)?gt(n==null?void 0:n.children,t):n.controlType===J.FORM&&t(n)})}function vt(e,t){Array.isArray(e)&&e.map(n=>{n.type===X.DATA_VIEW||n.type===X.SIMPLE_SEARCH?t(n):cn(n)&&vt(n==null?void 0:n.children,t)})}let Nu=0;function lr(e=""){const t=Date.now(),n=Math.floor(Math.random()*1e9);return Nu++,e+"_"+n+Nu+String(t)}class hr extends Jt{constructor(t){super("Runtime"),this._flatInstances=[],this._instanceMap={};const{schema:n}=t;this._schema=n,this._instance=this.createControl(n,t.beforeCreateInstance),this.getFlatInstances()}getFlatInstances(){const t=[],n={};return xu(this._instance,r=>{r.type==="subtable-row"||r.type==="subtable-column"||(t.push(r),n[r.id]||(n[r.id]=[]),n[r.id].push(r))}),this._flatInstances=t,this._instanceMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get allRules(){let t={},n={};return vt(this._instance,r=>{n[r.id]=r.rules[0],t[r.id]=r.rules[0],gt(r.children,u=>{(u.controlType===J.FORM||u.controlType===J.LIST)&&(Ou(n[r.id].fields,u),Ru(t[r.id].fields,u))})}),{rules:n,antdRules:t}}get rules(){let t={};return vt(this._instance,n=>{t[n.id]=n.rules[0],gt(n.children,r=>{(r.controlType===J.FORM||r.controlType===J.LIST)&&Ou(t[n.id].fields,r)})}),t}get antdRules(){let t={};return vt(this._instance,n=>{t[n.id]=n.rules[0],gt(n.children,r=>{(r.controlType===J.FORM||r.controlType===J.LIST)&&Ru(t[n.id].fields,r)})}),t}}function xu(e,t){Array.isArray(e)?e.map(n=>{t(n),cn(n)&&xu(n.children,t)}):t(e)}function dr(e){return e.props.isHide?!0:e.parent===null?!1:dr(e.parent)}function Ou(e,t){if(!dr(t)){if(t.controlType===J.FORM)e[t.id]=t.rules;else if(t.type===X.SUBTABLE){e[t.id]=t.rules;const n={type:"array",fields:{}};t.children.forEach((r,u)=>{it(r.children,i=>{n.fields&&(n.fields[u]||(n.fields[u]={type:"object",required:!0,fields:{}}),n.fields[u].fields[i.id]=i.rules)})}),e[t.id].push(n)}}}function Ru(e,t){dr(t)||(t.controlType===J.FORM?e[t.id]=t.rules:t.type===X.SUBTABLE&&t.children.length&&(e[t.id]=[],t.children.forEach(n=>{let r={};it(n.children,u=>{r[u.id]=u.rules}),e[t.id].push(r)})))}class s0{constructor(t){const{state:n,emptyState:r,databindMapping:u,controlidMapping:i,defaultState:o}=c0(t.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=i,this.defaultState=o}setState(t,n,r){const u=this.controlIdMapping[t];u!==void 0?this.state[u.dataView][t]=n:r!==void 0?Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,s=this.controlIdMapping[i].children;s!==void 0&&Object.keys(s).map(f=>{f===t&&(this.state[o][i][r][t]=n)})}):this.state[t]=n}getState(t,n){if(this.state[t]!==void 0)return this.state[t];{const u=this.controlIdMapping[t];if(u!==void 0)return this.state[u.dataView][t];if(n!==void 0){let i;return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,f=this.controlIdMapping[o].children;f!==void 0&&Object.keys(f).map(l=>{var c;l===t&&(i=(c=this.state[s][o][n])==null?void 0:c[t])})}),i}else{let i=[];return Object.keys(this.controlIdMapping).map(o=>{const s=this.controlIdMapping[o].dataView,f=this.controlIdMapping[o].children;f!==void 0&&Object.keys(f).map(l=>{l===t&&this.state[s][o].map(c=>{i.push(c[t])})})}),i}}}getEmptyState(t){if(this.emptyState[t]!==void 0)return this.emptyState[t];{const r=this.controlIdMapping[t];if(r!==void 0){const u=this.emptyState[r.dataView][t];return"children"in r&&Object.assign(u,{uid:"new:"+lr("uid")}),u}else{let u;return Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,s=this.controlIdMapping[i].children;s!==void 0&&Object.keys(s).map(f=>{f===t&&(u=this.emptyState[o][i][t])})}),u}}}getDataBind(t){let n=this.controlIdMapping[t];if(n)return n.dataBind;e:for(let r in this.controlIdMapping){const u=this.controlIdMapping[r];if(u.children){for(let i in u.children)if(i===t){n=u.children[i];break e}}}return n==null?void 0:n.dataBind}}function c0(e){let t={},n={},r={},u={},i={};return vt(e,o=>{const s=o.id,f={},l={};gt([o],(c,a)=>{f0(f,l,c),l0(r,s,c),h0(u,s,c)}),t[s]={},i[s]=f,n[s]=l}),{state:t,defaultState:i,emptyState:n,databindMapping:r,controlidMapping:u}}function f0(e,t,n){var r;if(n.controlType===J.FORM)e[n.id]=ae(n.props.defaultValue),t[n.id]=ae(n.props.defaultValue);else{const u={};it(n.props.headers,i=>{u[i.id]=ae(i.props.defaultValue)}),e[n.id]=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>ne({uid:"new:"+lr("uid")},ae(u))),t[n.id]=u}}function l0(e,t,n){var r,u;if(n.controlType===J.FORM)n.props.dataBind instanceof Je?Object.keys(n.props.dataBind).map(i=>{const o=n.props.dataBind,s=o[i].dataCode;s!==void 0&&(e[s]===void 0&&(e[s]={controlId:n.id,fields:[],dataViewId:t}),e[s].fields.push({fieldCode:o[i].fieldCode,controlId:n.id,dataBind:o,dataViewId:[t]}))}):((u=(r=n.props)==null?void 0:r.dataBind)==null?void 0:u.dataCode)===void 0||(e[n.props.dataBind.dataCode]===void 0&&(e[n.props.dataBind.dataCode]={controlId:t,fields:[],dataViewId:t}),e[n.props.dataBind.dataCode].fields.push({fieldCode:n.props.dataBind.fieldCode,controlId:n.id,dataBind:n.props.dataBind,dataViewId:[t]}));else{if(n.props.datasourceBind.dataCode===""){Xe(`datasourceBind.dataCode is empty! maybe in preview mode, control:${n.id} type:${n.type}`);return}e[n.props.datasourceBind.dataCode]={controlId:n.id,fields:[],dataViewId:t};const i=n.id;it(n.props.headers,o=>{o.props.dataBind instanceof Je?Object.keys(o.props.dataBind).map(s=>{const f=o.props.dataBind,l=f[s].dataCode;e[l].fields.push({fieldCode:f[s].fieldCode,controlId:o.id,dataBind:f,dataViewId:[t,i]})}):e[o.props.dataBind.dataCode].fields.push({fieldCode:o.props.dataBind.fieldCode,controlId:o.id,dataBind:o.props.dataBind,dataViewId:[t,i]})})}}function h0(e,t,n){n.controlType===J.FORM?e[n.id]={dataBind:n.props.dataBind,options:[],dataView:t}:n.type===X.SUBTABLE&&(e[n.id]={dataBind:new Vn({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:t,children:{},options:[]},it(n.props.headers,r=>{var u,i;Object.assign((i=(u=e[n.id])==null?void 0:u.children)!=null?i:{},{[r.id]:{dataBind:r.props.dataBind}})}))}const Tu=["splice","push","shift","pop","unshift","reverse"],pr=Symbol("__engineProxy__"),Dr=Symbol("__engineTarget__"),$u=Symbol("__engineArrayBeforeSetCallbackFlag__"),Pu=Symbol("__engineProxyThisKey__"),Re={type:"",args:[],callback:Lu};function Lu(){}v0();function d0(e,t,n,r,u){if(Re.type){Re.callback=u.bind(null,e,r);return}const i=Number(t);if(i>e.length){ze(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${Tu.join(",")} for array operations`);return}if(!(Number.isNaN(i)&&t!=="length"))if(t==="length"){const s=n,f=e.length;if(s>e.length){ze("Do not directly modify the length of the array data, please add new rows");return}return s===e.length?void 0:()=>u.call(null,e,r,"splice",[s,f-s])}else return i===e.length?()=>u.call(null,e,r,"push",[n]):()=>u.call(null,e,r,"splice",[i,1,n])}function p0(e,t,n){return{__engineProxy__:!0,get(r,u,i){return u===pr?!0:u===Dr?r:Array.isArray(r)&&u===$u?n:u===Pu?e:Reflect.get(r,u,i)},set(r,u,i,o){var h;let s=i;const f=r[u],l=e===""?u:e+"."+u;function c(d){if(typeof d=="object"&&d!==null)return d[pr]!==!0?fn(d,t,n,l):fn(d[Dr],t,n,l)}s=(h=c(i))!=null?h:s;let a;if(Array.isArray(r)){const d=d0(r,u,i,e,t);a=Reflect.set(r,u,s,o),d&&d()}else{try{let d=s;if(s=n.call(null,r,l,s,f),d!==s){const p=c(s);p!==void 0&&(s=p)}}catch(d){return Zt(`${l} set error ${d}`),!0}a=Reflect.set(r,u,s,o),t.call(null,r,l,i,f)}return a}}}function fn(e,t,n,r=""){if(Object.isFrozen(e))return e;for(let u in e){const i=r===""?u:r+"."+u,o=e[u];typeof o=="object"&&o!==null&&(e[u]=fn(o,t,n,i))}return new Proxy(e,p0(r,t,n))}function ju(e){const t=[];return e.forEach(n=>{t.push(n),n.controlType==="layout"&&t.push(...ju(n.children))}),t}function gr(e,t,n){if(t==="")return;const r=t.split(".");if(r.length===0)return;const u=r[0],i=r.slice(1),o=n[u]?n[u][0]:void 0;return i.length===0?o:i.reduce((s,f)=>{var a,h;const l=Number(f);if(Number.isNaN(l)&&s){const d=s!=null&&s.children?ju(s.children):void 0,p=d==null?void 0:d.find(D=>D.id===f);return p||(s.controlType===J.FORM?s:void 0)}else return(h=(a=s==null?void 0:s.children)==null?void 0:a[l])!=null?h:s},o)}function D0(e,t){return["push","unshift"].includes(e)?t:e==="splice"?t.slice(2):[]}function g0(e,t,n){if(["push","unshift"].includes(e))return n;if(e==="splice")return t.slice(0,2).concat(n)}function v0(){Tu.forEach(e=>{const t=Array.prototype[e];Array.prototype[e]=function(...n){var r;if(this[pr]){let u;const i=D0(e,n);if(i.length){const o=(r=this[$u])==null?void 0:r.call(this,this[Dr],this[Pu],i),s=g0(e,n,o);Re.type=e,Re.args=s,u=t.apply(this,s)}else Re.type=e,Re.args=n,u=t.apply(this,n);return typeof Re.callback=="function"&&Re.callback(e,n,u),Re.type="",Re.args=[],Re.callback=Lu,u}else return t.apply(this,n)}})}class m0{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(t,n,...r){return Ve(this,null,function*(){const u=this.actionMap.get(t);if(!!u)try{return yield u.func.call(null,n,...r)}catch(i){Zt(`${u.id} Exception during calling action: ${i}`)}})}addAction(t,n){this.actionMap.has(t)&&ze("duplicated action key");const r=new y0(t,n);this.actionMap.set(t,r)}}class y0{constructor(t,n){this.id="",this.id=t,this.func=n}}class E0{constructor(t){this._dataStore=new Map,this.executer=t}add(t,n){this._dataStore.set(t,n)}get(t){let n=this._dataStore.get(t);return ae(n)}remove(t){this._dataStore.delete(t)}getRemoteData(t){return Ve(this,null,function*(){return this.executer===void 0?(Zt("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(t)})}}class Ye{}class Pt extends Ye{validate(t){return be(t)}transform(t){if(t==null)return"";if(!Le(t)&&!Jr(t))return String(t);if(tf(t))return JSON.stringify(t);throw`${t} is not a string`}}class vr extends Ye{validate(t){return Xt(t)||t===""}transform(t){if(t==null)return"";const n=!Le(t)&&!Jr(t)?Number(t):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${t} is not a number`}}class A0 extends Ye{validate(t){return nf(t)}transform(t){if(t==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(ht(t))return n(t);if(be(t)&&Kr(t))try{const r=JSON.parse(t);if(Array.isArray(r))return n(r)}catch(r){}return[String(t)]}}class C0 extends Ye{validate(t){return rf(t)}transform(t){if(t==null)return[];function n(u){return u.map(i=>!i&&i!==0?"":Number(i)).filter(i=>i===""||!Number.isNaN(i))}if(ht(t))return n(t);if(be(t)&&Kr(t))try{const u=JSON.parse(t);if(ht(u))return n(u)}catch(u){}const r=Number(t);if(Number.isNaN(r))throw`${t} is not a number array`;return[r]}}class F0 extends Ye{validate(t){return t instanceof Kt||Le(t)&&"amount"in t&&Xt(t.amount)&&"currency"in t&&be(t.currency)}transform(t,n){if(t==null||t==="")return new Kt({currency:n==null?void 0:n.currency});let r;if(Le(t)&&(r=new Kt(ne(ne({},n),t))),be(t)&&Gt(t))try{const u=JSON.parse(t);r=new Kt(ne(ne({},n),u))}catch(u){}if(r){const u=new vr,i=new Pt;return u.validate(r.amount)||(r.amount=u.transform(r.amount)),i.validate(r.currency)||(r.currency=i.transform(r.currency)),r}throw`${t} is not a { amount: number, currency: string } object`}}class w0 extends Ye{validate(t){return t instanceof Qt||Le(t)&&"min"in t&&be(t.min)&&"max"in t&&be(t.max)}transform(t,n){if(t==null||t==="")return new Qt;let r;if(Le(t)&&(r=new Qt(ne(ne({},n),t))),be(t)&&Gt(t))try{const u=JSON.parse(t);r=new Qt(ne(ne({},n),u))}catch(u){}if(r){const u=new Pt;return u.validate(r.min)||(r.min=u.transform(r.min)),u.validate(r.max)||(r.max=u.transform(r.max)),r}throw`${t} is not a { min: string, max: string } object`}}class B0 extends Ye{validate(t){return t instanceof en||Le(t)&&"result"in t&&Xt(t.result)&&"unit"in t&&be(t.unit)}transform(t,n){if(t==null||t==="")return new en({unit:n==null?void 0:n.unit});let r;if(Le(t)&&(r=new en(ne(ne({},n),t))),be(t)&&Gt(t))try{const u=JSON.parse(t);r=new en(ne(ne({},n),u))}catch(u){}if(r){const u=new vr,i=new Pt;return u.validate(r.result)||(r.result=u.transform(r.result)),i.validate(r.unit)||(r.unit=i.transform(r.unit)),r}throw`${t} is not a { result: string, unit: string } object`}}class b0 extends Ye{validate(t){return t instanceof Yt}transform(t,n){if(t==null||t==="")return new Yt;let r;if(Le(t)&&(r=new Yt(ne(ne({},n),jn.exports.camelizeKeys(t)))),be(t)&&Gt(t))try{const u=JSON.parse(t);r=new Yt(ne(ne({},n),jn.exports.camelizeKeys(u)))}catch(u){}if(r){const u=new Pt;return u.validate(r.city)||(r.city=u.transform(r.city)),u.validate(r.district)||(r.district=u.transform(r.district)),u.validate(r.province)||(r.province=u.transform(r.province)),r}throw`${t} is not a { city: string, district: string, province: string } object`}}class S0{static getValueChecker(t){let n;switch(t){case H.VARCHAR:case H.TIMESTAMP:case H.TEXT:case H.RELATION:case H.AUTO_NUMBER:n=new Pt;break;case H.DECIMAL:n=new vr;break;case H.EMPLOYEES:case H.DEPARTMENTS:case H.IMAGE:case H.FILE:case H.ARRAY:n=new A0;break;case H.MONEY:n=new F0;break;case H.TIMESCOPE:n=new w0;break;case H.CALC:n=new B0;break;case H.DECIMAL_RANGE:n=new C0;break;case H.ADDRESS:n=new b0;break}return n}}function _0(e){if(["min","max","currency","unit"].includes(e))return H.VARCHAR;if(["result","amount"].includes(e))return H.DECIMAL}function ku(e,t,n,r){var o;let u=(o=_0(t))!=null?o:e,i=S0.getValueChecker(u);if(!i||i.validate(n))return n;try{const s=i.transform(n,r);return s!==void 0?s:n}catch(s){throw`${t} ${s}`}}function M0(e,t,n){return Object.entries(e).reduce((r,[u,i])=>{const o=t[u];return r[u]=ku(i,u,o,n[u]),r},Object.assign({},t))}typeof window!="undefined"&&(window.engines={});let mt=null,Lt="";class mr extends Yr{constructor(t){super(),this.rawStore={},this.isMounted=!1,this.id=Nn(8),this.__pluginsApplied=!1,this.actionManager=new m0,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(t);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:i,language:o=jr,debug:s=!1}=this.$options;Pn.setLocale(o),this.debug=s,this.runtime=new hr({schema:r,beforeCreateInstance:u}),this.externalParams=i,this.store=new s0({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...t){this.debug&&Tn(...t)}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}registerControl(...t){return this.runtime.register(...t),this}static register(...t){return hr.register(...t)}static judgeControlIsRegistered(t){return hr.staticRegisteredTypes.has(t.Runtime.controlType)}mount(){this.debugLog("engine\u7684mount\u65B9\u6CD5\u5F00\u59CB\u8C03\u7528");const{plugins:t=[]}=this.$options;this._handlerProxyState(),this.__plugins=t,this.applyPlugins(),this.setStates(this.getState()),this.debugLog("engine\u7684mount\u65B9\u6CD5\u8C03\u7528\u7ED3\u675F"),this.debug&&typeof window!="undefined"&&(window.engines[this.id]=this)}destroy(){this.debug&&typeof window!="undefined"&&delete window.engines[this.id]}_handlerProxyState(){this.store.state=fn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(t,n,r,u){const i=gr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return r;if(this.assertInstance(i,X.SUBTABLE)){if(r===null)return[];const f=i.props.headers.reduce((c,a)=>{const h=a.children[0];return h&&h.controlType===J.FORM&&(c[h.id]=h.fieldType),c},{}),l=this.getEmptyState(i.id);return r==null?void 0:r.map(c=>M0(f,c,l))}const o=n.split("."),s=o[o.length-1];try{return ku(i.fieldType,s,r,u)}catch(f){throw Xe(`the id=${i.id}'s instance setState error, %o ${f}.`,r),f}}_proxyStateCallback(t,n,r,u,i){Array.isArray(t)?this._handlerArrayUpdate(t,n,r,u,i):this._handlerObjectUpdate(t,n,r,u)}_handlerArrayUpdate(t,n,r,u,i){const o=gr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!(o instanceof a0))return;const s=h=>{const d=[];for(let p=0;p<h;p++){const D=this.listControlCreateRow(o,"subtable-row");D&&d.push(D)}return d},f=mt;let l=[],c=[],a=[];if(r&&u){switch(r){case"push":case"unshift":const h=u.length;l=s(h),c=u,o.children[r](...l),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){const d=u.length-2,p=u.slice(2);l=s(d),c=p;const D=u[0],v=u[1];o.children[r](D,v,...l),this.runtime.getFlatInstances()}else o.children[r](...u),this.runtime.getFlatInstances();break;default:o.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?a=i:["pop","shift"].includes(r)&&(a=[i]),this.emit("list-change",{instance:o,value:this.getState(o.id),options:Object.assign({},f,{changed:l,data:c,deleted:a!=null?a:[],jsonValue:JSON.stringify(this.getState(o.id))})}),mt=null}}_handlerObjectUpdate(t,n,r,u){const i=gr(this.runtime.flatInstances,n,this.runtime.instanceMap);if(!i)return;const o=this.getInstanceRowIndex(i),s=mt||{};if(i.controlType===J.LIST){i.children.length=0;const f=r;let l=[];for(let c=0;c<f.length;c++){const a=this.listControlCreateRow(i,"subtable-row");a&&l.push(a)}i.children.push(...l),this.runtime.getFlatInstances(),this.emit("list-change",{instance:i,value:r,options:Lr(ne({},s),{changed:l,data:f,deleted:u!=null?u:[]})})}else this.emit("change",{instance:i,value:this.getState(i.id,o),rowIndex:o,options:Lr(ne({},s),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{Lt=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this)}catch(r){ze(`${Lt} Plugin apply Error
|
|
2
2
|
${r}`)}finally{Lt=""}}),this.__pluginsApplied=!0)}listControlCreateRow(t,n){const r=this.runtime.createControlInstance(n);if(!!r){if(r.controlType===J.LAYOUT){const u=r,i=ae(t.props.headers),o=this.createControl(i);u.children.push(...o)}return r}}listControlAddRow(t,n="subtable-row"){const r=this.listControlCreateRow(t,n);!r||t.children.push(r)}emit(t,n){return Ve(this,null,function*(){if(t==="engine-mounted"){if(this.isMounted)return Xe("The engine-mounted life cycle can only be triggered once"),Promise.resolve([]);if(this._jobTasks.length){console.time("engine-mounted need wait");const o=[...this._jobTasks];yield Promise.all(o),console.timeEnd("engine-mounted need wait")}this.isMounted=!0}let r,u;this.isMounted||(u=new Promise(o=>{r=o}),this._jobTasks.push(u));const i=yield eo(mr.prototype,this,"emit").call(this,t,n);return r&&u&&(r(),this._jobTasks.splice(this._jobTasks.indexOf(u),1)),i})}on(t,n){return Lt&&(n.applyingPluginName=Lt),super.on(t,n)}createControl(...t){return this.runtime.createControl(...t)}createInstance(t,n){return this.runtime.createControlInstance(t,n)}schemaEvent(t,n){this.emit(t,n)}updateInstanceProps(t,n,r,u){return this.setInstance(t,n,r,u)}getAllRules(t){var r,u;const n=this.runtime.allRules;return t===void 0?n:{rules:(r=n.rules[t])==null?void 0:r.fields,antdRules:(u=n.antdRules[t])==null?void 0:u.fields}}getRules(t){var n;return t===void 0?this.runtime.rules:(n=this.runtime.rules[t])==null?void 0:n.fields}getAntdRules(t){var n;return t===void 0?this.runtime.antdRules:(n=this.runtime.antdRules[t])==null?void 0:n.fields}getState(t,n){return t===void 0?this.store.state:this.store.getState(t,n)}getEmptyState(t){return ae(t===void 0?this.store.emptyState:this.store.getEmptyState(t))}setPayloadOptions(t){mt=t}setState(t,n,r,u){mt=u,this.debugLog("[%o]: \u89E6\u53D1setState, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o, options=%o",t,n,r,u),this.store.setState(t,n,r),this.debugLog("[%o]: setState\u5B8C\u6210, \u4FEE\u6539\u7684\u503C\u4E3A%o, rowIndex=%o",t,n,r),mt=null}setStates(t,n,r){let u=t!=null?t:{};Object.keys(u).forEach(i=>{Object.entries(this.store.controlIdMapping).forEach(([o,s])=>{if(s.dataView===i){const f=u[i][o];f!==void 0&&this.setState(o,f,n,r)}else(o===i||s.children&&s.children[i])&&u[i]!==void 0&&this.setState(i,u[i],n,r)})})}getField(t,n,r){if(!n){const f=this.getDataBindMapping(t);if(f){const{controlId:l}=f;return this.getState(l)}return}const u=this.getDataBindMapping(t,n);if(!u)return;const{dataBind:i,controlId:o}=u,s=this.getState(o,r);return i instanceof Je?Object.entries(i).reduce((f,[l,c])=>c.fieldCode===n?f[l]:f,s):s}getData(t){var u,i,o,s,f,l,c,a;if(!t)return;let n=this.getDataBindMapping(t),r=this.getControlIdMapping();if(n){const{controlId:h}=n,d=this.getField(t);if(Array.isArray(d))return d.map(D=>{var g,E,b,C,N,O;let v={};for(let R in D){const S=(b=(E=(g=r[h])==null?void 0:g.children[R])==null?void 0:E.dataBind)==null?void 0:b.fieldCode;if(S!==""){if(S)v[S]=D[R];else if((C=r[h])!=null&&C.children[R])for(let $ in D[R])v[(O=(N=r[h])==null?void 0:N.children[R])==null?void 0:O.dataBind[$].fieldCode]=D[R][$]}}return v});{let p={};for(let D in d)if((i=(u=r[D])==null?void 0:u.dataBind)!=null&&i.fieldCode)p[(o=r[D])==null?void 0:o.dataBind.fieldCode]=d[D];else if((f=(s=r[D])==null?void 0:s.dataBind)!=null&&f.dataCode)p[(l=r[D])==null?void 0:l.dataBind.dataCode]=d[D].map(v=>{var E,b;let g={};for(let C in v){const N=(E=r[D].children[C])==null?void 0:E.dataBind.fieldCode;if(N!=="")if(N)g[N]=v[C];else for(let O in v[C])g[(b=r[D].children[C])==null?void 0:b.dataBind[O].fieldCode]=v[C][O]}return g});else if(r[D])for(let v in d[D])p[(a=(c=r[D])==null?void 0:c.dataBind[v])==null?void 0:a.fieldCode]=d[D][v];return p}}}setField(t,n,r,u,i){var l;const o=this.getDataBindMapping(t,n);if(!o)return;const{dataBind:s,controlId:f}=o;if(s instanceof Je){const c=(l=ae(this.getState(f,u)))!=null?l:this.getEmptyState(f),a=Object.entries(s).reduce((h,[d,p])=>(p.fieldCode===n&&(h[d]=r),h),c);this.setState(f,a,u,i)}else this.setState(f,r,u,i)}setFields(t,n,r,u){const i=this.getDataBindMapping(t);if(!i)return;let o=[];i.fields.forEach(s=>{var a;const{dataBind:f,controlId:l,fieldCode:c}=s;if(!o.includes(c)&&!!Object.hasOwnProperty.call(n,c))if(f instanceof Je){const h=(a=ae(this.getState(l,r)))!=null?a:this.getEmptyState(l),d=Object.entries(f).reduce((p,[D,v])=>{o.push(v.fieldCode);const g=n[v.fieldCode];return g!==void 0&&(p[D]=g),p},h);this.setState(s.controlId,d,r,u)}else this.setState(l,n[c],r,u)})}buildFields(t,n){const r=this.getDataBindMapping(t);if(!r)return;let u=[];const i={};return r.fields.forEach(o=>{const{dataBind:s,controlId:f,fieldCode:l}=o;if(!u.includes(l)&&!!Object.hasOwnProperty.call(n,l))if(s instanceof Je){const c=this.getEmptyState(f);i[o.controlId]=Object.entries(s).reduce((a,[h,d])=>{u.push(d.fieldCode);const p=n[d.fieldCode];return p!==void 0&&(a[h]=p),a},c)}else i[f]=n[l]}),i}setData(t,n){this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",t,n);let r=this.store.defaultState;Object.keys(t).map(u=>{var o,s,f;const i=t[u];if(Array.isArray(i)){const l=this.getDataBindMapping(u);if(!l)return;r[l.dataViewId]||(r[l.dataViewId]={}),r[l.dataViewId][l.controlId]=[],i.map(c=>{let a=ae(this.store.emptyState[l.dataViewId][l.controlId]),h=[];Object.keys(c).map(d=>{var D,v,g;if(h.includes(d))return;const p=(v=(D=this.store.dataBindMapping[u])==null?void 0:D.fields)==null?void 0:v.find(E=>E.fieldCode===d);if(p){if(p.dataBind instanceof Vn&&c[d]!==void 0)a[p.controlId]=c[d];else if(p.dataBind instanceof Je){let E=ae((g=this.getEmptyState(p.controlId))!=null?g:{});Object.keys(p.dataBind).map(b=>{const C=p.dataBind[b];c[C.fieldCode]!==void 0&&(E[b]=c[C.fieldCode]),h.push(C.fieldCode)}),a[p.controlId]=E}}}),r[l.dataViewId][l.controlId].push(a)})}else if(i){let l=[];const c=ae(this.store.emptyState);(o=Object.keys(i))!=null&&o.length&&Object.keys(i).map(h=>{var p;if(l.includes(h))return;const d=this.getDataBindMapping(u,h);if(d){if(r[d.dataViewId[0]]||(r[d.dataViewId[0]]={}),d.dataBind instanceof Vn&&i[h]!==void 0)r[d.dataViewId[0]][d.controlId]=i[h]!==void 0?i[h]:c[d.dataViewId[0]][d.controlId];else if(d.dataBind instanceof Je){let D=(p=this.getEmptyState(d.controlId))!=null?p:{};Object.keys(d.dataBind).map(v=>{const g=d.dataBind[v];i[g.fieldCode]!==void 0&&(D[v]=i[g.fieldCode]),l.push(g.fieldCode)}),r[d.dataViewId[0]][d.controlId]=D}}});const a=this.getDataBindMapping(u);if(a){const h=(s=a==null?void 0:a.fields)==null?void 0:s.map(D=>D==null?void 0:D.controlId),d=this.getEmptyState(a==null?void 0:a.controlId),p=Object.keys((f=r==null?void 0:r[a==null?void 0:a.controlId])!=null?f:{});h==null||h.forEach(D=>{!p.includes(D)&&D!=="uid"&&r[a==null?void 0:a.controlId]&&(Object.keys(r).length?Object.assign(r[a==null?void 0:a.controlId],{[D]:d[D]}):Object.assign(r,{[a.controlId]:{[D]:d[D]}}))}),this.debugLog("engine setData\u65B9\u6CD5\u9ED8\u8BA4\u503C\u53CA\u8868\u5355\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",r)}}}),this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",r),this.setStates(r,void 0,n),this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\u5B8C\u6210\u3002")}getDataBind(t){return this.store.getDataBind(t)}getInstance(t,n){const r=this.getInstances(t,n===-1);if(r.length>0)return n!==void 0?n===-1?r[0]:r[n]:r[0]}getInstances(t,n=!1){var u,i;if(t===void 0)return this.runtime.flatInstances;const r=Array.from(this.runtime.instanceMap[t]||[]);if(n)if(r.length){const o=r[0];if(this.inList(o.id)!==void 0){const s=this.getInstanceInSubtableHeader(o);s&&r.unshift(s)}}else{const o=(u=this.getControlIdMapping())!=null?u:{},[s]=(i=Object.entries(o).find(([f,l])=>l.children&&t in l.children))!=null?i:[];if(s){const l=this.getInstance(s).props.headers.find(c=>c.children.find(a=>a.id===t));if(l){const c=l.children.find(a=>a.id===t);c&&r.unshift(c)}}}return r}setInstance(t,n,r,u){try{if(typeof t=="string"&&u===-1)this.getInstances(t,u===-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,n,r),Ln(o.props,n,r),this.schemaEvent("schema-change",{instance:o,props:n,value:r,rowIndex:u}))});else{let i;if(typeof t=="string"?i=this.getInstance(t,u):i=t,!i)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",i.id,i,n,r),Ln(i.props,n,r),this.schemaEvent("schema-change",{instance:i,props:n,value:r,rowIndex:u})}}catch(i){throw i}}getControlIdMapping(){return this.store.controlIdMapping}getDataBindMapping(t,n){if(!t&&!n)return this.store.dataBindMapping;const r=this.store.dataBindMapping[t];if(!r){Xe(`No corresponding dataCode=${t} was found`);return}if(!n)return r;const u=r.fields.find(i=>i.fieldCode===n);if(!u){Xe(`No corresponding fieldCode=${n} was found`);return}return u}getAction(){return this.actionManager}initDataManager(t){this.dataManager=new E0(t)}getDataManager(){return this.dataManager}assertInstance(t,n){return be(n)?t.type===n:n.includes(t.type)}getInstanceRowIndex(t){if(!t.parent)return;let n;if(this.assertInstance(t.parent,X.SUBTABLE))if(this.assertInstance(t,X.SUBTABLE_COLUMN))n=-1;else{const r=t.parent.children.findIndex(u=>u===t);r>-1&&(n=r)}else n=this.getInstanceRowIndex(t.parent);return n}getInstanceParentControl(t,n){if(!!t.parent)return this.assertInstance(t.parent,n)?t.parent:this.getInstanceParentControl(t.parent,n)}getInstanceInSubtableHeader(t){const n=this.getInstanceRowIndex(t);if(n===void 0)return;if(n===-1)return t;const r=this.assertInstance(t,X.SUBTABLE_COLUMN)?t:this.getInstanceParentControl(t,X.SUBTABLE_COLUMN);if(!r)return;const i=this.getInstanceParentControl(t,X.SUBTABLE).props.headers.find(o=>o.id===r.id);if(!!i)return i.children.find(o=>o.id===t.id)}setControlConfig(...t){return this.runtime.registerControlConfig(...t)}getControlConfig(t){return this.runtime.getControlConfig(t)}inList(t){var u;const n=(u=this.store.controlIdMapping)!=null?u:{};let r;return Object.keys(n).some(i=>{var s,f;const o=(f=(s=n[i])==null?void 0:s.children)==null?void 0:f.hasOwnProperty(t);return o&&(r=i),o}),r}}class I0{}class N0{constructor(t,n){this.config=t,this.env=n}apply(t){this.engine=t;const n=this.config;if(!n)return;const r=qu(n,t,this.env);if(!r)return;const u=t.getAction();for(let[i,o]of Object.entries(r.funcMap))u.addAction(i,o)}}function qu(e,t,n){if(!e.module||!e.module.compiled)return;const r=e.module.compiled,u={exports:{ctx:t,utils:t.getAction().actionUtils,env:n}};try{new Function("module","exports",r).call(u,u,u.exports)}catch(s){ze(s.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&ze("fail to parse the module")}const i={},o={};for(const[s,f]of Object.entries(u.exports))typeof f=="function"?i[s]=f:o[s]=f;return{funcMap:i,variables:o}}const x0={"engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class O0{constructor(t){this.config=t}apply(t){this.engine=t,Object.entries(x0).forEach(([n,r])=>{t.on(n,u=>Ve(this,null,function*(){const i=yield this.callLifecycleEvent(r,u);return i.includes(!1)?!1:i}))})}callLifecycleEvent(t,n){return Ve(this,null,function*(){const r=this.config;return!r||!Array.isArray(r[t])?[]:yield Promise.all(r[t].map(i=>Ve(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})))})}}class R0{constructor(t){this.config=t}apply(t){this.engine=t,eu.events.forEach(n=>{n.code&&n.key&&this.engineAddEventListener(n.code,n.key)})}engineAddEventListener(t,n){this.engine.on(t,r=>Ve(this,null,function*(){if(!(t==="change"&&!this.engine.isMounted)&&r.instance!==void 0)return yield this.callControlEvent(n,r)}))}callControlEvent(t,n){return Ve(this,null,function*(){const r=this.config[n.instance.id];if(!r||!Array.isArray(r[t]))return[];const u=yield Promise.all(r[t].map(i=>Ve(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})));return u.includes(!1)?!1:u})}}function yr(){return yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yr.apply(this,arguments)}var Uu={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function ve(e){return typeof e=="number"}function et(e){return!e||typeof e!="object"||typeof e.constructor!="function"?!1:e.isBigNumber===!0&&typeof e.constructor.prototype=="object"&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal=="function"&&e.constructor.isDecimal(e)===!0}function Vu(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function Hu(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function zu(e){return e&&e.constructor.prototype.isUnit===!0||!1}function ln(e){return typeof e=="string"}var _e=Array.isArray;function jt(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function Er(e){return Array.isArray(e)||jt(e)}function T0(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function $0(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function P0(e){return e&&e.constructor.prototype.isRange===!0||!1}function Wu(e){return e&&e.constructor.prototype.isIndex===!0||!1}function L0(e){return typeof e=="boolean"}function j0(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function k0(e){return e&&e.constructor.prototype.isHelp===!0||!1}function q0(e){return typeof e=="function"}function U0(e){return e instanceof Date}function V0(e){return e instanceof RegExp}function H0(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!Vu(e)&&!Hu(e))}function z0(e){return e===null}function W0(e){return e===void 0}function Z0(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function X0(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function G0(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function J0(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function K0(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Q0(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Y0(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function eh(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function th(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function nh(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function rh(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function uh(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function ih(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function oh(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function ah(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function sh(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function ch(e){return e&&e.constructor.prototype.isChain===!0||!1}function Ar(e){var t=typeof e;return t==="object"?e===null?"null":et(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":t}function at(e){var t=typeof e;if(t==="number"||t==="string"||t==="boolean"||e===null||e===void 0)return e;if(typeof e.clone=="function")return e.clone();if(Array.isArray(e))return e.map(function(n){return at(n)});if(e instanceof Date)return new Date(e.valueOf());if(et(e))return e;if(e instanceof RegExp)throw new TypeError("Cannot clone "+e);return fh(e,at)}function fh(e,t){var n={};for(var r in e)hn(e,r)&&(n[r]=t(e[r]));return n}function Cr(e,t){var n,r,u;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(r=0,u=e.length;r<u;r++)if(!Cr(e[r],t[r]))return!1;return!0}else{if(typeof e=="function")return e===t;if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(n in e)if(!(n in t)||!Cr(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}else return e===t}}function hn(e,t){return e&&Object.hasOwnProperty.call(e,t)}function lh(e,t){for(var n={},r=0;r<t.length;r++){var u=t[r],i=e[u];i!==void 0&&(n[u]=i)}return n}var hh=["Matrix","Array"],dh=["number","BigNumber","Fraction"],Zu=function(t){if(t)throw new Error(`The global config is readonly.
|
|
3
3
|
Please create a mathjs instance if you want to change the default configuration.
|
|
4
4
|
Example:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-engine",
|
|
3
|
-
"version": "2.7.0-alpha.
|
|
3
|
+
"version": "2.7.0-alpha.2",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-core": "2.7.0-alpha.
|
|
30
|
-
"@byteluck-fe/model-driven-shared": "2.7.0-alpha.
|
|
29
|
+
"@byteluck-fe/model-driven-core": "2.7.0-alpha.2",
|
|
30
|
+
"@byteluck-fe/model-driven-shared": "2.7.0-alpha.2",
|
|
31
31
|
"@types/mathjs": "^9.4.2",
|
|
32
32
|
"mathjs": "^11.3.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "~18.0.6"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "23607484dc1f65494b32a6c2e9fff86f0ce8dc54"
|
|
38
38
|
}
|