@byteluck-fe/model-driven-engine 2.1.0-beta.0 → 2.1.0-beta.1

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 CHANGED
@@ -1,4 +1,4 @@
1
- var wD=Object.defineProperty,bD=Object.defineProperties;var BD=Object.getOwnPropertyDescriptors;var wa=Object.getOwnPropertySymbols,_D=Object.getPrototypeOf,SD=Object.prototype.hasOwnProperty,MD=Object.prototype.propertyIsEnumerable,ID=Reflect.get;var yr=Math.pow,ba=(J,oe,le)=>oe in J?wD(J,oe,{enumerable:!0,configurable:!0,writable:!0,value:le}):J[oe]=le,ge=(J,oe)=>{for(var le in oe||(oe={}))SD.call(oe,le)&&ba(J,le,oe[le]);if(wa)for(var le of wa(oe))MD.call(oe,le)&&ba(J,le,oe[le]);return J},fi=(J,oe)=>bD(J,BD(oe));var Ba=(J,oe,le)=>ID(_D(J),le,oe);var it=(J,oe,le)=>new Promise((Er,bn)=>{var Ar=ot=>{try{tn(le.next(ot))}catch(nn){bn(nn)}},Cr=ot=>{try{tn(le.throw(ot))}catch(nn){bn(nn)}},tn=ot=>ot.done?Er(ot.value):Promise.resolve(ot.value).then(Ar,Cr);tn((le=le.apply(J,oe)).next())});(function(J,oe){typeof exports=="object"&&typeof module!="undefined"?oe(exports,require("crypto")):typeof define=="function"&&define.amd?define(["exports","crypto"],oe):(J=typeof globalThis!="undefined"?globalThis:J||self,oe(J.modelDrivenEngine={},J.require$$0))})(this,function(J,oe){"use strict";function le(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Er=le(oe),bn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Ar="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Cr="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",tn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",ot="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",nn="{caption}\u5FC5\u586B",_a="\u8BF7\u8F93\u5165\u6807\u9898",Sa="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Ma="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",Ia="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",Na="\u8BF7\u7ED1\u5B9A\u8868\u5355",xa="\u8BF7\u7ED1\u5B9A\u5217\u8868",Oa="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Ra="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Ta="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Pa="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",$a="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",ja="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",La="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",qa="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",ka="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Va="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Ua="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Ha="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",za="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Wa="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Za="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Ga="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Xa="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Ka="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Ja="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Qa="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Ya="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",es="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ts="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",ns="\u8BF7\u7ED1\u5B9A\u670D\u52A1",rs="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",us="\u8BF7\u9009\u62E9\u7701",is="\u8BF7\u9009\u62E9\u5E02",os="\u8BF7\u9009\u62E9\u533A",as="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",ss="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",cs="\u8BF7\u8F93\u5165\u5217\u5BBD",fs="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",ls="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",hs="\u8BF7\u9009\u62E9\u63A7\u4EF6",ds="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",ps="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Ds="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",gs="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",vs="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ms="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ys="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Es="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",As="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Cs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Fs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ws="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",bs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Bs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",_s="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Ss="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Ms="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Is="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ns="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",xs="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Os="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Rs={isNotNumber:bn,isNotString:Ar,isNotObject:Cr,isNotArray:tn,isNotBoolean:ot,runtimeRequired:nn,pleaseEnterCaption:_a,pleaseEnterCaptionTip:Sa,pleaseEnterPlaceholder:Ma,pleaseEnterFieldCode:Ia,pleaseEnterForm:Na,pleaseEnterList:xa,pleaseEnterProcess:Oa,pleaseEnterLabel:Ra,pleaseEnterValue:Ta,bizKeyNotBindFiled:Pa,pleaseSelectOneField:$a,pleaseEnterNumberRange:ja,pleaseEnterAValueGreaterThanMin:La,pleaseEnterAValueLessThanMax:qa,numberRangeSetError:ka,stringRangeError:Va,attachmentMaxSize:Ua,pleaseEnterTotalScoreSetting:Ha,theTotalScoreMustNotBeLessThan1:za,scoreDefaultValueRange:Wa,attachmentLimitError:Za,PleaseReselectTheOptionalQuantity:Ga,TheMaximumLengthIsGreaterThanTheMinimumLength:Xa,TheMinimumLengthIsGreaterThanTheMaximumLength:Ka,PleaseSelectTheCorrectOptionSettings:Ja,optionIdIsRepeat:Qa,optionIsRequired:Ya,pleaseEnterDataCode:es,pleaseEnterValueFieldCode:ts,pleaseEnterSvcCode:ns,pleaseBindAtLeastOneDisplayValue:rs,pleaseSelectProvince:us,pleaseSelectCity:is,pleaseSelectDistrict:os,limitRowsCannotBeLessThan0:as,TheNumberOfRowsCannotBeLessThanMinRows:ss,pleaseEnterColumnWidth:cs,pleaseSetTheLogicalRelationshipOfAllRuleConditions:fs,pleaseCompleteAllRulesAndConditions:ls,pleaseSelectControl:hs,pleaseSelectAtLeastOneColumn:ds,pleaseSelectFillBackMode:ps,pleaseSelectDashboard:Ds,rootNodeIsRequired:gs,theViewNameCannotBeEmpty:vs,pleaseSelectOcrType:ms,pleaseSelectAtLeastOneFieldToFillIn:ys,pleaseChooseAtLeastOne:Es,pleaseEnterButtonContent:As,pleaseEnterDataCodeInDataSetting:Cs,pleaseEnterValueFieldCodeInDataSetting:Fs,pleaseEnterSvcCodeInDataSetting:ws,pleaseBindAtLeastOneDisplayValueInDataSetting:bs,rootNodeIsRequiredInDataSetting:Bs,pleaseEnterMaxHeight:_s,pleaseEnter:Ss,pleaseEnterWatermark:Ms,pleaseEnterFileName:Is,pleaseUploadAtLeastOnePrintTemplate:Ns,pleaseAssignBusiness:xs,pleaseAssignExternal:Os},Ts="Please enter a number",Ps="Please enter a string",$s="Please enter an object",js="Please enter an array",Ls="Please enter a boolean",qs="{caption} Required",ks="Please enter the title",Vs="Please enter the bubble prompt",Us="Please enter the prompt text",Hs="Please bind data items",zs="Please bind the form",Ws="Please bind the list",Zs="Please bind the process",Gs="Please enter the displayed value",Xs="Please enter the stored value",Ks="The document number is not bound to the data item",Js="Please select at least one display field",Qs="Please enter a value greater than or equal to {min} and less than or equal to {max}",Ys="Please enter a value greater than or equal to {min}",ec="Please enter a value less than or equal to {max}",tc="The value range is set incorrectly",nc="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",rc="The attachment size must be between 0MB and 1000MB",uc="Please fill in the total score setting",ic="The total score cannot be less than 1",oc="The default value must be between {min} and {max}",ac="The number of attachments uploaded must be between {min} and {max}",sc="Please re-select the optional quantity",cc="The maximum length of the control must be greater than the minimum length",fc="The minimum length of the control must be less than the maximum length",lc="Please select the correct option setting",hc="Option ID cannot be repeated",dc="Please enter at least one option",pc="Please bind the data source",Dc="Please bind the stored value",gc="Please bind the service",vc="At least one display value must be bound",mc="Please select a province",yc="Please select a city",Ec="Please select a district",Ac="The minimum number of lines to fill in cannot be less than 0",Cc="The number of rows cannot be less than {min} rows",Fc="Please enter the column width",wc="Please set the logical relationship of all rule conditions",bc="Please complete all rules and conditions",Bc="please select control",_c="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Sc="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Mc="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Ic="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Nc="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",xc="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Oc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Rc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Tc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Pc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",$c="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",jc="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Lc="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",qc="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",kc="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Vc="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Uc="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Hc="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",zc={isNotNumber:Ts,isNotString:Ps,isNotObject:$s,isNotArray:js,isNotBoolean:Ls,runtimeRequired:qs,pleaseEnterCaption:ks,pleaseEnterCaptionTip:Vs,pleaseEnterPlaceholder:Us,pleaseEnterFieldCode:Hs,pleaseEnterForm:zs,pleaseEnterList:Ws,pleaseEnterProcess:Zs,pleaseEnterLabel:Gs,pleaseEnterValue:Xs,bizKeyNotBindFiled:Ks,pleaseSelectOneField:Js,pleaseEnterNumberRange:Qs,pleaseEnterAValueGreaterThanMin:Ys,pleaseEnterAValueLessThanMax:ec,numberRangeSetError:tc,stringRangeError:nc,attachmentMaxSize:rc,pleaseEnterTotalScoreSetting:uc,theTotalScoreMustNotBeLessThan1:ic,scoreDefaultValueRange:oc,attachmentLimitError:ac,PleaseReselectTheOptionalQuantity:sc,TheMaximumLengthIsGreaterThanTheMinimumLength:cc,TheMinimumLengthIsGreaterThanTheMaximumLength:fc,PleaseSelectTheCorrectOptionSettings:lc,optionIdIsRepeat:hc,optionIsRequired:dc,pleaseEnterDataCode:pc,pleaseEnterValueFieldCode:Dc,pleaseEnterSvcCode:gc,pleaseBindAtLeastOneDisplayValue:vc,pleaseSelectProvince:mc,pleaseSelectCity:yc,pleaseSelectDistrict:Ec,limitRowsCannotBeLessThan0:Ac,TheNumberOfRowsCannotBeLessThanMinRows:Cc,pleaseEnterColumnWidth:Fc,pleaseSetTheLogicalRelationshipOfAllRuleConditions:wc,pleaseCompleteAllRulesAndConditions:bc,pleaseSelectControl:Bc,pleaseSelectDashboard:_c,theViewNameCannotBeEmpty:Sc,pleaseSelectOcrType:Mc,pleaseSelectAtLeastOneFieldToFillIn:Ic,pleaseChooseAtLeastOne:Nc,pleaseEnterButtonContent:xc,pleaseEnterDataCodeInDataSetting:Oc,pleaseEnterValueFieldCodeInDataSetting:Rc,pleaseEnterSvcCodeInDataSetting:Tc,pleaseBindAtLeastOneDisplayValueInDataSetting:Pc,rootNodeIsRequiredInDataSetting:$c,pleaseEnterMaxHeight:jc,pleaseEnter:Lc,pleaseEnterWatermark:qc,pleaseEnterFileName:kc,pleaseUploadAtLeastOnePrintTemplate:Vc,pleaseAssignBusiness:Uc,pleaseAssignExternal:Hc},Wc="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Zc="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Gc="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Xc="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Kc="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Jc="{caption}\u5FC5\u9808",Qc="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Yc="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ef="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",tf="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",nf="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",rf="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",uf="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",of="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",af="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",sf="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",cf="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ff="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",lf="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",hf="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",df="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",pf="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Df="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",gf="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",vf="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",mf="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",yf="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ef="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Af="\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",Cf="\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",Ff="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",wf="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",bf="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Bf="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",_f="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Sf="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Mf="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",If="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Nf="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",xf="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Of="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Rf="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Tf="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Pf="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",$f="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",jf="please select control",Lf="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",qf="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",kf="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Vf="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Uf="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Hf="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",zf="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Wf="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Zf="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Gf="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Xf="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Kf="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Jf="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Qf="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Yf="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",el="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",tl="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",nl="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",rl={isNotNumber:Wc,isNotString:Zc,isNotObject:Gc,isNotArray:Xc,isNotBoolean:Kc,runtimeRequired:Jc,pleaseEnterCaption:Qc,pleaseEnterCaptionTip:Yc,pleaseEnterPlaceholder:ef,pleaseEnterFieldCode:tf,pleaseEnterForm:nf,pleaseEnterList:rf,pleaseEnterProcess:uf,pleaseEnterLabel:of,pleaseEnterValue:af,bizKeyNotBindFiled:sf,pleaseSelectOneField:cf,pleaseEnterNumberRange:ff,pleaseEnterAValueGreaterThanMin:lf,pleaseEnterAValueLessThanMax:hf,numberRangeSetError:df,stringRangeError:pf,attachmentMaxSize:Df,pleaseEnterTotalScoreSetting:gf,theTotalScoreMustNotBeLessThan1:vf,scoreDefaultValueRange:mf,attachmentLimitError:yf,PleaseReselectTheOptionalQuantity:Ef,TheMaximumLengthIsGreaterThanTheMinimumLength:Af,TheMinimumLengthIsGreaterThanTheMaximumLength:Cf,PleaseSelectTheCorrectOptionSettings:Ff,optionIdIsRepeat:wf,optionIsRequired:bf,pleaseEnterDataCode:Bf,pleaseEnterValueFieldCode:_f,pleaseEnterSvcCode:Sf,pleaseBindAtLeastOneDisplayValue:Mf,pleaseSelectProvince:If,pleaseSelectCity:Nf,pleaseSelectDistrict:xf,limitRowsCannotBeLessThan0:Of,TheNumberOfRowsCannotBeLessThanMinRows:Rf,pleaseEnterColumnWidth:Tf,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Pf,pleaseCompleteAllRulesAndConditions:$f,pleaseSelectControl:jf,pleaseSelectDashboard:Lf,theViewNameCannotBeEmpty:qf,pleaseSelectOcrType:kf,pleaseSelectAtLeastOneFieldToFillIn:Vf,pleaseChooseAtLeastOne:Uf,pleaseEnterButtonContent:Hf,pleaseEnterDataCodeInDataSetting:zf,pleaseEnterValueFieldCodeInDataSetting:Wf,pleaseEnterSvcCodeInDataSetting:Zf,pleaseBindAtLeastOneDisplayValueInDataSetting:Gf,rootNodeIsRequiredInDataSetting:Xf,pleaseEnterMaxHeight:Kf,pleaseEnter:Jf,pleaseEnterWatermark:Qf,pleaseEnterFileName:Yf,pleaseUploadAtLeastOnePrintTemplate:el,pleaseAssignBusiness:tl,pleaseAssignExternal:nl},ul={zhCN:Rs,enUS:zc,jaJP:rl},Ve;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(Ve||(Ve={}));var Tt;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(Tt||(Tt={}));var li="zh-CN";function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ke;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(Ke||(Ke={}));var Q;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2"})(Q||(Q={}));var K;(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"})(K||(K={}));var _e;_e={},Re(_e,K.ARRAY,Q.ARRAY_COLUMN),Re(_e,K.AUTO_NUMBER,Q.AUTO_NUMBER_COLUMN),Re(_e,K.DECIMAL,Q.DECIMAL_COLUMN),Re(_e,K.DEPARTMENTS,Q.DEPARTMENT_COLUMN),Re(_e,K.FILE,Q.FILE_COLUMN),Re(_e,K.IMAGE,Q.IMAGE_COLUMN),Re(_e,K.ADDRESS,Q.LOCATION_COLUMN),Re(_e,K.EMPLOYEES,Q.EMPLOYEE_COLUMN),Re(_e,K.TEXT,Q.TEXT_COLUMN),Re(_e,K.TIMESCOPE,Q.TIMESCOPE_COLUMN),Re(_e,K.TIMESTAMP,Q.TIMESTAMP_COLUMN),Re(_e,K.VARCHAR,Q.VARCHAR_COLUMN),Re(_e,K.RELATION,Q.VARCHAR_COLUMN);var hi;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATETIME="datetime"})(hi||(hi={}));var di="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",il=di+"0123456789";function Fr(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?di:il,u=Math.random()*r.length;t+=r[parseInt(String(u),10)]}return t}function wr(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 ol(e){if(Array.isArray(e))return wr(e)}function al(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sl(){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 Bn(e,t,n){return sl()?Bn=Reflect.construct:Bn=function(u,i,o){var c=[null];c.push.apply(c,i);var s=Function.bind.apply(u,c),l=new s;return o&&un(l,o.prototype),l},Bn.apply(null,arguments)}function rn(e){return rn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rn(e)}function Di(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&&un(e,t)}function cl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function fl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ll(){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 hl(e,t){return t&&(dl(t)==="object"||typeof t=="function")?t:al(e)}function un(e,t){return un=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},un(e,t)}function gi(e){return ol(e)||fl(e)||pl(e)||ll()}var dl=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function pl(e,t){if(!!e){if(typeof e=="string")return wr(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 wr(e,t)}}function br(e){var t=typeof Map=="function"?new Map:void 0;return br=function(r){if(r===null||!cl(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 Bn(r,arguments,rn(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),un(u,r)},br(e)}function Dl(){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 vi(e){var t=Dl();return function(){var r=rn(e),u;if(t){var i=rn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return hl(this,u)}}var Br=console;function dt(){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=Br).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(gi(u)))}function _r(){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=Br).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(gi(u)))}function gl(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Sr=function(e){Di(n,e);var t=vi(n);function n(r){pi(this,n);var u;return u=t.call(this,r),u.name="\u{1F4A5} Driven Error",u.message=r?gl(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return n}(br(Error)),vl=function(e){Di(n,e);var t=vi(n);function n(r){pi(this,n);var u;return u=t.call(this,r),u.name="\u{1F6A8} Driven Reference Error",u}return n}(Sr);function at(e){throw new Sr(e)}function mi(e){throw new vl(e)}function _n(e){Br.error(new Sr(e))}function _t(e,t){Array.isArray(e)&&e.map(function(n){switch(n.controlType){case"layout":_t(n==null?void 0:n.children,t);break;case"search":_t(n==null?void 0:n.children,t);break;case"form":t(n)}})}var ml=Object.prototype.toString;function yi(e,t){return ml.call(e)==="[object "+t+"]"}function yl(e){return yi(e,"String")}function El(e){return yi(e,"Promise")}var Al=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();El(r)?r.then(function(u){n._messageCache.clear(),n.messages[n.localeInMessageKey]=u}):this.messages[this.localeInMessageKey]=r},e.prototype.getMessageData=function(){var t=this._messages[this.localeInMessageKey];return typeof t=="function"?t():t},e.prototype.translate=function(t,n,r){var u=this.getMessage(t);return u?this.formatMessage(u,r):this.formatMessage(n,r)},e.prototype.getMessage=function(t){if(this._messageCache.has(t))return this._messageCache.get(t);var n=this.getPathArray(t),r=n.reduce(function(u,i,o,c){if(u!==void 0){var s=u[i];if(!(o===c.length-1&&!yl(s)))return s}},this.message);return this._messageCache.set(t,r),r},e.prototype.formatMessage=function(t,n){return n?t.replace(this.variableRegExp,function(r,u){var i=n[u];return i!==void 0?String(i):r}):t},e.prototype.getPreImport=function(t){var n;if(window.okI18nPreImport){var r=this.getLocaleInMessageKey(t);return window.okI18nPreImport.hasOwnProperty(r)?window.okI18nPreImport:(n={},n[r]=window.okI18nPreImport,n)}},e.prototype.getPathArray=function(t){return t.split(".")},e.prototype.getLocaleInMessageKey=function(t){return t.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var t;return(t=this.messages[this.localeInMessageKey])!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e}();function Cl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ue=function(){function e(){Cl(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]:li;return new Al({locale:n,messages:ul})},e.setLocale=function(n){return this.$i18n.setLocale(n)},e}();Ue.$i18n=Ue.resetI18n();function Ei(e,t,n){var r=t.replace(/\[(\d)]/g,function(i,o){return"."+o}).split("."),u=!1;return r.reduce(function(i,o,c,s){var l=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,o)){dt("Can not set ".concat(t,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),i,i);return}return c===s.length-1&&!Object.is(l[o],n)&&(l[o]=n,u=!0),l[o]}},e),u}var je=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ai(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mr={exports:{}};(function(e){(function(t){var n=function(g,A,M){if(!l(A)||a(A)||h(A)||d(A)||s(A))return A;var w,x=0,P=0;if(f(A))for(w=[],P=A.length;x<P;x++)w.push(n(g,A[x],M));else{w={};for(var L in A)Object.prototype.hasOwnProperty.call(A,L)&&(w[g(L,M)]=n(g,A[L],M))}return w},r=function(g,A){A=A||{};var M=A.separator||"_",w=A.split||/(?=[A-Z])/;return g.split(w).join(M)},u=function(g){return p(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(A,M){return M?M.toUpperCase():""}),g.substr(0,1).toLowerCase()+g.substr(1))},i=function(g){var A=u(g);return A.substr(0,1).toUpperCase()+A.substr(1)},o=function(g,A){return r(g,A).toLowerCase()},c=Object.prototype.toString,s=function(g){return typeof g=="function"},l=function(g){return g===Object(g)},f=function(g){return c.call(g)=="[object Array]"},a=function(g){return c.call(g)=="[object Date]"},h=function(g){return c.call(g)=="[object RegExp]"},d=function(g){return c.call(g)=="[object Boolean]"},p=function(g){return g=g-0,g===g},D=function(g,A){var M=A&&"process"in A?A.process:A;return typeof M!="function"?g:function(w,x){return M(w,g,x)}},m={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(g,A){return n(D(u,A),g)},decamelizeKeys:function(g,A){return n(D(o,A),g,A)},pascalizeKeys:function(g,A){return n(D(i,A),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(je)})(Mr);function he(e){if(e!==void 0)return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function Je(e){return Object.prototype.toString.call(e)==="[object Object]"}function Fl(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function Pt(e){return Array.isArray(e)}function Te(e){return typeof e=="string"}function Sn(e){return typeof e=="number"}function Ci(e){return typeof e=="function"}function wl(e){return Pt(e)&&e.every(function(t){return Te(t)})}function bl(e){return Pt(e)&&e.every(function(t){return Sn(t)||t===""})}function Fi(e){return/^\[.*?]$/.test(e)}function Mn(e){return/^{.*?}$/.test(e)}function Ir(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 Bl(e){if(Array.isArray(e))return Ir(e)}function wi(e,t,n,r,u,i,o){try{var c=e[i](o),s=c.value}catch(l){n(l);return}c.done?t(s):Promise.resolve(s).then(r,u)}function _l(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){wi(i,r,u,o,c,"next",s)}function c(s){wi(i,r,u,o,c,"throw",s)}o(void 0)})}}function Sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ml(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Il(){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 Nr(e){return Bl(e)||Ml(e)||Nl(e)||Il()}function Nl(e,t){if(!!e){if(typeof e=="string")return Ir(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 Ir(e,t)}}var xl=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(f){return s([l,f])}}function s(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},bi=function(){function e(){Sl(this,e),this._events=new Map,this.debug=!1}var t=e.prototype;return t.emit=function(r){for(var u=arguments.length,i=new Array(u>1?u-1:0),o=1;o<u;o++)i[o-1]=arguments[o];var c=this;return _l(function(){var s,l,f,a,h,d,p,D,m,g,A,M;return xl(this,function(w){switch(w.label){case 0:if(s=c._events.get(r),l=[],!s)return[3,10];f=s.slice(),a=!0,h=!1,d=void 0,w.label=1;case 1:w.trys.push([1,8,9,10]),p=f[Symbol.iterator](),w.label=2;case 2:if(a=(D=p.next()).done)return[3,7];if(m=D.value,!s.includes(m))return[3,6];w.label=3;case 3:return w.trys.push([3,5,,6]),c.debug&&_r.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(m.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+m.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"\u3002")].concat(Nr(i))),[4,m.apply(null,Nr(i))];case 4:return g=w.sent(),c.debug&&_r.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(m.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+m.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(Nr(i),[g])),l.push(g),g===!1?[3,7]:[3,6];case 5:return A=w.sent(),_n(String(A)),[3,6];case 6:return a=!0,[3,2];case 7:return[3,10];case 8:return M=w.sent(),h=!0,d=M,[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 Ol(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Rl=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"}],Bi=function(){function e(){Ol(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}();Bi.events=Rl;function Tl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _i=[],In=function(){function e(n){Tl(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__||at("".concat(r.name," is not a Control"));var u=this._controls.findIndex(function(i){return i.controlType===r.controlType});return u>-1&&(dt("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===Ke.LAYOUT},t.isFormControl=function(r){return r.controlType===Ke.FORM},t.isListControl=function(r){return r.controlType===Ke.LIST},t.isColumnControl=function(r){return r.controlType===Ke.COLUMN},t.createControl=function(r,u){var i=this;if(Array.isArray(r))return r.map(function(f){return i.createControl(f,u)});r.children&&(r.children=r.children.map(function(f){return i.createControl(f,u)})),this.isListControl(r)&&r.props.headers&&(r.props.headers=r.props.headers.map(function(f){return i.createControl(f,u)}));var o=this.getControlFormType(r.type);if(o){var c=r;if(typeof u=="function"){var s=u(c);s&&(c=s)}var l=new o(c);return l}else at("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__)&&at("".concat(r," is can't register as a Control"));var o=this.staticControls.findIndex(function(c){return c.Designer.controlType===u.controlType});return o>-1&&(dt("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}();In.staticControls=_i,In.staticRegisteredTypes=new Set(_i.map(function(e){return e.Designer.controlType})),In.staticRegisteredConfigs=new Map;function St(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var on=function e(t){St(this,e);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var u;this.fieldType=(u=t==null?void 0:t.fieldType)!==null&&u!==void 0?u:""},pt=function e(){St(this,e)},Nn=function e(t){St(this,e);var n;this.amount=(n=t==null?void 0:t.amount)!==null&&n!==void 0?n:"";var r;this.currency=(r=t==null?void 0:t.currency)!==null&&r!==void 0?r:xr.CNY},xn=function e(t){St(this,e);var n;this.min=(n=t==null?void 0:t.min)!==null&&n!==void 0?n:"";var r;this.max=(r=t==null?void 0:t.max)!==null&&r!==void 0?r:""},On=function e(t){St(this,e);var n;this.city=(n=t==null?void 0:t.city)!==null&&n!==void 0?n:"";var r;this.cityDisplay=(r=t==null?void 0:t.cityDisplay)!==null&&r!==void 0?r:"";var u;this.district=(u=t==null?void 0:t.district)!==null&&u!==void 0?u:"";var i;this.districtDisplay=(i=t==null?void 0:t.districtDisplay)!==null&&i!==void 0?i:"";var o;this.province=(o=t==null?void 0:t.province)!==null&&o!==void 0?o:"";var c;this.provinceDisplay=(c=t==null?void 0:t.provinceDisplay)!==null&&c!==void 0?c:""},Rn=function e(t){St(this,e);var n;this.result=(n=t==null?void 0:t.result)!==null&&n!==void 0?n:0;var r;this.unit=(r=t==null?void 0:t.unit)!==null&&r!==void 0?r:""},xr;(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"})(xr||(xr={}));var Si;(function(e){e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions"})(Si||(Si={}));var Or;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(Or||(Or={}));var Pl=function e(t){St(this,e);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var u;this.widthConfig=(u=t==null?void 0:t.widthConfig)!==null&&u!==void 0?u:"fill";var i;this.heightConfig=(i=t==null?void 0:t.heightConfig)!==null&&i!==void 0?i:"fill"};function $l(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jl(){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 jl()?Tn=Reflect.construct:Tn=function(u,i,o){var c=[null];c.push.apply(c,i);var s=Function.bind.apply(u,c),l=new s;return o&&sn(l,o.prototype),l},Tn.apply(null,arguments)}function an(e){return an=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},an(e)}function Ll(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&&sn(e,t)}function ql(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function kl(e,t){return t&&(Vl(t)==="object"||typeof t=="function")?t:$l(e)}function sn(e,t){return sn=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},sn(e,t)}var Vl=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Tr(e){var t=typeof Map=="function"?new Map:void 0;return Tr=function(r){if(r===null||!ql(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,an(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),sn(u,r)},Tr(e)}function Ul(){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=Ul();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 kl(this,u)}}var Mi=function e(t){Rr(this,e),this.isHide={type:"boolean"}},Ii=function(e){Ll(n,e);var t=Hl(n);function n(r){return Rr(this,n),t.call(this)}return n}(Tr(Array)),Mt=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Rr(this,e);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new Pl(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};Mt.Rules=Mi,Mt.RuntimeRules=Ii;function Qe(){return Qe=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},Qe.apply(this,arguments)}function zl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Pr(e){return Pr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pr(e)}function Pn(e,t){return Pn=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Pn(e,t)}function Wl(){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 $n(e,t,n){return Wl()?$n=Reflect.construct:$n=function(u,i,o){var c=[null];c.push.apply(c,i);var s=Function.bind.apply(u,c),l=new s;return o&&Pn(l,o.prototype),l},$n.apply(null,arguments)}function Zl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function $r(e){var t=typeof Map=="function"?new Map:void 0;return $r=function(r){if(r===null||!Zl(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 $n(r,arguments,Pr(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Pn(u,r)},$r(e)}var Gl=/%[sdj%]/g,Ni=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Ni=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function jr(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 Pe(){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(Gl,function(c){if(c==="%%")return"%";if(r>=i)return c;switch(c){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(s){return"[Circular]"}break;default:return c}});return o}return u}function Xl(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function de(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Xl(t)&&typeof e=="string"&&!e)}function Kl(e,t,n){var r=[],u=0,i=e.length;function o(c){r.push.apply(r,c),u++,u===i&&n(r)}e.forEach(function(c){t(c,o)})}function xi(e,t,n){var r=0,u=e.length;function i(o){if(o&&o.length){n(o);return}var c=r;r=r+1,c<u?t(e[c],i):n([])}i([])}function Jl(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var Oi=function(e){zl(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}($r(Error));function Ql(e,t,n,r){if(t.first){var u=new Promise(function(a,h){var d=function(m){return r(m),m.length?h(new Oi(m,jr(m))):a()},p=Jl(e);xi(p,n,d)});return u.catch(function(a){return a}),u}var i=t.firstFields||[];i===!0&&(i=Object.keys(e));var o=Object.keys(e),c=o.length,s=0,l=[],f=new Promise(function(a,h){var d=function(D){if(l.push.apply(l,D),s++,s===c)return r(l),l.length?h(new Oi(l,jr(l))):a()};o.length||(r(l),a()),o.forEach(function(p){var D=e[p];i.indexOf(p)!==-1?xi(D,n,d):Kl(D,n,d)})});return f.catch(function(a){return a}),f}function Ri(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 Ti(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]=Qe(Qe({},e[n]),r):e[n]=r}}return e}function Pi(e,t,n,r,u,i){e.required&&(!n.hasOwnProperty(e.field)||de(t,i||e.type))&&r.push(Pe(u.messages.required,e.fullField))}function Yl(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(Pe(u.messages.whitespace,e.fullField))}var Lr={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},cn={integer:function(t){return cn.number(t)&&parseInt(t,10)===t},float:function(t){return cn.number(t)&&!cn.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"&&!cn.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(Lr.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(Lr.url)},hex:function(t){return typeof t=="string"&&!!t.match(Lr.hex)}};function e0(e,t,n,r,u){if(e.required&&t===void 0){Pi(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?cn[o](t)||r.push(Pe(u.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Pe(u.messages.types[o],e.fullField,e.type))}function t0(e,t,n,r,u){var i=typeof e.len=="number",o=typeof e.min=="number",c=typeof e.max=="number",s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,f=null,a=typeof t=="number",h=typeof t=="string",d=Array.isArray(t);if(a?f="number":h?f="string":d&&(f="array"),!f)return!1;d&&(l=t.length),h&&(l=t.replace(s,"_").length),i?l!==e.len&&r.push(Pe(u.messages[f].len,e.fullField,e.len)):o&&!c&&l<e.min?r.push(Pe(u.messages[f].min,e.fullField,e.min)):c&&!o&&l>e.max?r.push(Pe(u.messages[f].max,e.fullField,e.max)):o&&c&&(l<e.min||l>e.max)&&r.push(Pe(u.messages[f].range,e.fullField,e.min,e.max))}var $t="enum";function n0(e,t,n,r,u){e[$t]=Array.isArray(e[$t])?e[$t]:[],e[$t].indexOf(t)===-1&&r.push(Pe(u.messages[$t],e.fullField,e[$t].join(", ")))}function r0(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Pe(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(Pe(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var Z={required:Pi,whitespace:Yl,type:e0,range:t0,enum:n0,pattern:r0};function u0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t,"string")&&!e.required)return n();Z.required(e,t,r,i,u,"string"),de(t,"string")||(Z.type(e,t,r,i,u),Z.range(e,t,r,i,u),Z.pattern(e,t,r,i,u),e.whitespace===!0&&Z.whitespace(e,t,r,i,u))}n(i)}function i0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&Z.type(e,t,r,i,u)}n(i)}function o0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&(Z.type(e,t,r,i,u),Z.range(e,t,r,i,u))}n(i)}function a0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&Z.type(e,t,r,i,u)}n(i)}function s0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),de(t)||Z.type(e,t,r,i,u)}n(i)}function c0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&(Z.type(e,t,r,i,u),Z.range(e,t,r,i,u))}n(i)}function f0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&(Z.type(e,t,r,i,u),Z.range(e,t,r,i,u))}n(i)}function l0(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();Z.required(e,t,r,i,u,"array"),t!=null&&(Z.type(e,t,r,i,u),Z.range(e,t,r,i,u))}n(i)}function h0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&Z.type(e,t,r,i,u)}n(i)}var d0="enum";function p0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&Z[d0](e,t,r,i,u)}n(i)}function D0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t,"string")&&!e.required)return n();Z.required(e,t,r,i,u),de(t,"string")||Z.pattern(e,t,r,i,u)}n(i)}function g0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t,"date")&&!e.required)return n();if(Z.required(e,t,r,i,u),!de(t,"date")){var c;t instanceof Date?c=t:c=new Date(t),Z.type(e,c,r,i,u),c&&Z.range(e,c.getTime(),r,i,u)}}n(i)}function v0(e,t,n,r,u){var i=[],o=Array.isArray(t)?"array":typeof t;Z.required(e,t,r,i,u,o),n(i)}function qr(e,t,n,r,u){var i=e.type,o=[],c=e.required||!e.required&&r.hasOwnProperty(e.field);if(c){if(de(t,i)&&!e.required)return n();Z.required(e,t,r,o,u,i),de(t,i)||Z.type(e,t,r,o,u)}n(o)}function m0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u)}n(i)}var fn={string:u0,method:i0,number:o0,boolean:a0,regexp:s0,integer:c0,float:f0,array:l0,object:h0,enum:p0,pattern:D0,date:g0,url:qr,hex:qr,email:qr,required:v0,any:m0};function kr(){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 Vr=kr();function Dt(e){this.rules=null,this._messages=Vr,this.define(e)}Dt.prototype={messages:function(t){return t&&(this._messages=Ti(kr(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var i=t,o=n,c=r;if(typeof o=="function"&&(c=o,o={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(),Promise.resolve();function s(D){var m,g=[],A={};function M(w){if(Array.isArray(w)){var x;g=(x=g).concat.apply(x,w)}else g.push(w)}for(m=0;m<D.length;m++)M(D[m]);g.length?A=jr(g):(g=null,A=null),c(g,A)}if(o.messages){var l=this.messages();l===Vr&&(l=kr()),Ti(l,o.messages),o.messages=l}else o.messages=this.messages();var f,a,h={},d=o.keys||Object.keys(this.rules);d.forEach(function(D){f=u.rules[D],a=i[D],f.forEach(function(m){var g=m;typeof g.transform=="function"&&(i===t&&(i=Qe({},i)),a=i[D]=g.transform(a)),typeof g=="function"?g={validator:g}:g=Qe({},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 Ql(h,o,function(D,m){var g=D.rule,A=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");A=A&&(g.required||!g.required&&D.value),g.field=D.field;function M(P,L){return Qe(Qe({},L),{},{fullField:g.fullField+"."+P})}function w(P){P===void 0&&(P=[]);var L=P;if(Array.isArray(L)||(L=[L]),!o.suppressWarning&&L.length&&Dt.warning("async-validator:",L),L.length&&g.message!==void 0&&(L=[].concat(g.message)),L=L.map(Ri(g)),o.first&&L.length)return p[g.field]=1,m(L);if(!A)m(L);else{if(g.required&&!D.value)return g.message!==void 0?L=[].concat(g.message).map(Ri(g)):o.error&&(L=[o.error(g,Pe(o.messages.required,g.field))]),m(L);var I={};if(g.defaultField)for(var j in D.value)D.value.hasOwnProperty(j)&&(I[j]=g.defaultField);I=Qe(Qe({},I),D.rule.fields);for(var G in I)if(I.hasOwnProperty(G)){var z=Array.isArray(I[G])?I[G]:[I[G]];I[G]=z.map(M.bind(null,G))}var ee=new Dt(I);ee.messages(o.messages),D.rule.options&&(D.rule.options.messages=o.messages,D.rule.options.error=o.error),ee.validate(D.value,D.rule.options||o,function(Y){var ue=[];L&&L.length&&ue.push.apply(ue,L),Y&&Y.length&&ue.push.apply(ue,Y),m(ue.length?ue:null)})}}var x;g.asyncValidator?x=g.asyncValidator(g,D.value,w,D.source,o):g.validator&&(x=g.validator(g,D.value,w,D.source,o),x===!0?w():x===!1?w(g.message||g.field+" fails"):x instanceof Array?w(x):x instanceof Error&&w(x.message)),x&&x.then&&x.then(function(){return w()},function(P){return w(P)})},function(D){s(D)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!fn.hasOwnProperty(t.type))throw new Error(Pe("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"?fn.required:fn[this.getType(t)]||!1}},Dt.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");fn[t]=n},Dt.warning=Ni,Dt.messages=Vr,Dt.validators=fn;var y0={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 E0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new Dt(e);return n.messages(Object.assign(y0,t)),n}var A0=new bi;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 C0(e){if(Array.isArray(e))return e}function F0(e){if(Array.isArray(e))return Ur(e)}function $i(e,t,n,r,u,i,o){try{var c=e[i](o),s=c.value}catch(l){n(l);return}c.done?t(s):Promise.resolve(s).then(r,u)}function ji(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){$i(i,r,u,o,c,"next",s)}function c(s){$i(i,r,u,o,c,"throw",s)}o(void 0)})}}function w0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Li(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b0(e,t,n){return t&&Li(e.prototype,t),n&&Li(e,n),e}function B0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qi(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function ki(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _0(){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 S0(){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 Vi(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){B0(e,u,n[u])})}return e}function M0(e){return C0(e)||ki(e)||Ui(e)||_0()}function Hr(e){return F0(e)||ki(e)||Ui(e)||S0()}function Ui(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)}}var Hi=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(f){return s([l,f])}}function s(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Ye=function(){function t(r){var u=this;w0(this,t),this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Wi,this.removeSetting=zi,this._callControlHooks("preInstance",r);var i=qi(this,t)?this.constructor:void 0,o=i.controlName,c=i.controlIcon,s=i.controlType,l=i.controlFieldType,f=i.controlEventKeys,a=i.controlCustomEvents,h=i.name,d=i.setting;o&&c&&s||mi("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:Fr(10),this.name=o,this.icon=c;var D;this.type=(D=r==null?void 0:r.type)!==null&&D!==void 0?D:s,this.props=new Mt(r==null?void 0:r.props,(qi(this,t)?this.constructor:void 0).controlName);var m;this.controlType=(m=r==null?void 0:r.controlType)!==null&&m!==void 0?m:"base",this.setting=he(d);var g;this.fieldType=(g=r==null?void 0:r.fieldType)!==null&&g!==void 0?g:l,this.eventKeys=he(f),this.customEvents=he(a),Promise.resolve().then(function(){u._callControlHooks("postInstance",r)})}var n=t.prototype;return n._callControlHooks=function(){for(var u=arguments.length,i=new Array(u),o=0;o<u;o++)i[o]=arguments[o];var c,s=M0(i),l=s[0],f=s.slice(1);return(c=A0).emit.apply(c,[l,this].concat(Hr(f)))},n.preUpdate=function(u,i){this._callControlHooks("preUpdateProps",u,i)},n.postUpdate=function(u,i){this._callControlHooks("postUpdateProps",u,i)},n.updateProps=function(u,i){this.preUpdate(u,i),Ei(this.props,u,i),this.postUpdate(u,i)},n.preValidate=function(){var u=this;return ji(function(){var i,o,c;return Hi(this,function(s){switch(s.label){case 0:return i=Vi({},u.rules),[4,u._callControlHooks("preValidate",i)];case 1:return o=s.sent(),c=o[o.length-1],[2,c===!1?void 0:c]}})})()},n.validate=function(u,i){var o=this;return ji(function(){var c,s,l,f;return Hi(this,function(a){switch(a.label){case 0:return[4,o.preValidate()];case 1:c=a.sent(),s=c!==void 0?c:Vi({},o.rules),Array.isArray(i)&&i.forEach(function(h){s.hasOwnProperty(h)&&delete s[h]}),l=E0(s,u),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,l.validate(o.props)];case 3:return a.sent(),[2,!0];case 4:throw f=a.sent(),f.control||(f.control=o),f;case 5:return[2]}})})()},n.toDataBindModel=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,o=this.id,c=this.type,s=this.props,l=s.dataBind,f=s.datasourceBind,a=s.optionConfig,h=s.caption,d=s.required,p=s.maxLength,D=s.options,m=s.encrypted,g=s.encryptedMode;if(!(!i&&!l&&!f)){var A={parentId:u,fieldType:i,controlId:o,caption:h,type:c,props:{}};switch(l&&(A.dataBind=l),a){case"datasource":case void 0:f&&(A.datasourceBind=f);break;case"custom":A.props.options=D;break}return d!==void 0&&(A.required=d),p!==void 0&&(A.maxLength=p),m!==void 0&&(A.encrypted=m),g!==void 0&&(A.encryptedMode=g),A}},n.preToSchema=function(){this._callControlHooks("preToSchema",this)},n.toSchema=function(){return this.preToSchema(),{id:this.id,type:this.type,props:he(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,Hr(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}},b0(t,[{key:"rules",get:function(){var u=this.props.constructor.Rules;return u?new u(this.props):{}}}]),t}();Ye.controlName="\u63A7\u4EF6",Ye.controlIcon="icon",Ye.controlType="control",Ye.controlEventKeys=[],Ye.controlCustomEvents=[],Ye.setting=[],Ye.__is_control__=!0,Ye.removeSettingItem=zi,Ye.updateSettingItem=Wi;function zi(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u=typeof r!="string",i=t.setting.findIndex(function(s){return s.key===(u?r.key:r)});if(i!==-1){var o,c;u?t.setting[i].showItems=(o=t.setting[i].showItems)===null||o===void 0?void 0:o.filter(function(s){return!r.hideItems.includes(s)}):t.setting.splice(i,1),u&&!(!((c=t.setting[i].showItems)===null||c===void 0)&&c.length)&&t.setting.splice(i,1)}})}function Wi(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var i=n.setting.find(function(l){return l.key===u});if(i){if(typeof t=="boolean")i.visible=t;else if(typeof t=="object"){var o,c=(o=t.type)!==null&&o!==void 0?o:"replace";if(c==="replace")i.showItems=t.showItems;else{var s;(s=i.showItems).push.apply(s,Hr(t.showItems))}}}})}function I0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zi(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 N0(e,t,n){return t&&Zi(e.prototype,t),n&&Zi(e,n),e}function x0(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var ln=function(){function t(n){I0(this,t),this.customEvents=[],this.parent=null;var r=x0(this,t)?this.constructor:void 0,u=r.controlType,i=r.controlFieldType,o=r.name,c=r.controlCustomEvents;u||mi("The ".concat(o," controlType is not define"));var s;this.id=(s=n==null?void 0:n.id)!==null&&s!==void 0?s:Fr(10);var l;this.type=(l=n==null?void 0:n.type)!==null&&l!==void 0?l:u,this.props=new Mt(n==null?void 0:n.props),this.customEvents=c;var f;this.controlType=(f=n==null?void 0:n.controlType)!==null&&f!==void 0?f:"base";var a;this.fieldType=(a=n==null?void 0:n.fieldType)!==null&&a!==void 0?a:i;var h;this.pageStatus=(h=n==null?void 0:n.pageStatus)!==null&&h!==void 0?h:Or.UNKNOWN}return N0(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}();ln.controlType="control",ln.__is_control__=!0,ln.controlCustomEvents=[];function O0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jn(e){return jn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jn(e)}function Wr(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&&Zr(e,t)}function R0(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function T0(e,t){return t&&(P0(t)==="object"||typeof t=="function")?t:O0(e)}function Zr(e,t){return Zr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Zr(e,t)}var P0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function $0(){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 Gr(e){var t=$0();return function(){var r=jn(e),u;if(t){var i=jn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return T0(this,u)}}var j0=function(e){Wr(n,e);var t=Gr(n);function n(r){zr(this,n);var u;u=t.call(this,r),u.dataBind={},u.caption={type:"string",required:!0,message:Ue.getMessage("pleaseEnterCaption")},u.isHideCaption={type:"boolean"},u.labelPosition={type:"enum",enum:["top","left"]},u.defaultState={type:"enum",enum:["default","readonly"]},u.required={type:"boolean"},u.captionTip={type:"string",required:!1,message:Ue.getMessage("pleaseEnterCaptionTip")};var i={fieldCode:{type:"string",required:!0,message:Ue.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:Ue.getMessage("pleaseEnterFieldCode")}};if(R0(r.dataBind,on))u.dataBind={type:"object",required:!0,fields:he(i),message:Ue.getMessage("pleaseEnterFieldCode")};else{var o={type:"object",required:!0,fields:{},message:Ue.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(c){o.fields[c]={type:"object",required:!0,fields:he(i),message:Ue.getMessage("pleaseEnterFieldCode")}}),u.dataBind=o}return r.isShowCaptionTip&&(u.captionTip.required=!0),u}return n}(Mi),L0=function(e){Wr(n,e);var t=Gr(n);function n(r){zr(this,n);var u;return u=t.call(this,r),u.push({type:"string",required:r.isHide?!1:r.required,message:r.requiredMessage!==""?r.requiredMessage:Ue.getMessage("runtimeRequired",{caption:r.caption})}),u}return n}(Ii),Xr=function(e){Wr(n,e);var t=Gr(n);function n(r){zr(this,n);var u;u=t.call(this,r);var i;u.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"";var o;u.isHideCaption=(o=r==null?void 0:r.isHideCaption)!==null&&o!==void 0?o:!1;var c;u.isShowCaptionTip=(c=r==null?void 0:r.isShowCaptionTip)!==null&&c!==void 0?c:!1;var s;u.captionTip=(s=r==null?void 0:r.captionTip)!==null&&s!==void 0?s:"";var l;u.defaultState=(l=r==null?void 0:r.defaultState)!==null&&l!==void 0?l:"default";var f;u.labelPosition=(f=r==null?void 0:r.labelPosition)!==null&&f!==void 0?f:"top";var a;u.placeholder=(a=r==null?void 0:r.placeholder)!==null&&a!==void 0?a:"";var h;u.required=(h=r==null?void 0:r.required)!==null&&h!==void 0?h:!1;var d;u.requiredMessage=(d=r==null?void 0:r.requiredMessage)!==null&&d!==void 0?d:"",u.dataBind=new on(r==null?void 0:r.dataBind);var p;return u.defaultValue=(p=r==null?void 0:r.defaultValue)!==null&&p!==void 0?p:"",u}return n}(Mt);Xr.Rules=j0,Xr.RuntimeRules=L0;function q0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ln(e){return Ln=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ln(e)}function V0(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&&Kr(e,t)}function U0(e,t){return t&&(H0(t)==="object"||typeof t=="function")?t:q0(e)}function Kr(e,t){return Kr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Kr(e,t)}var H0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function z0(){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 W0(e){var t=z0();return function(){var r=Ln(e),u;if(t){var i=Ln(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return U0(this,u)}}var et=function(e){V0(n,e);var t=W0(n);function n(r){k0(this,n);var u;return u=t.call(this,r),u.controlType="form",u.props=new Xr(r==null?void 0:r.props),u}return n}(ln);function Z0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qn(e){return qn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qn(e)}function X0(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&&Jr(e,t)}function K0(e,t){return t&&(J0(t)==="object"||typeof t=="function")?t:Z0(e)}function Jr(e,t){return Jr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Jr(e,t)}var J0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Q0(){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 Y0(e){var t=Q0();return function(){var r=qn(e),u;if(t){var i=qn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return K0(this,u)}}var eh=function(e){X0(n,e);var t=Y0(n);function n(r){return G0(this,n),t.call(this,r)}return n}(Mt);function Qr(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 th(e){if(Array.isArray(e))return Qr(e)}function nh(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rh(){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 Gi(e){return th(e)||nh(e)||uh(e)||rh()}function uh(e,t){if(!!e){if(typeof e=="string")return Qr(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 Qr(e,t)}}function ih(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Xi(e,t){e.parent=t,ih(e,"parent")}function oh(e,t){e.forEach(function(n){Xi(n,t)})}var Ki=Symbol("targetKey");function Ji(e){var t;return(t=e[Ki])!==null&&t!==void 0?t:e}function Qi(e,t){return oh(e,t),new Proxy(e,{get:function(r,u){for(var i=arguments.length,o=new Array(i>2?i-2:0),c=2;c<i;c++)o[c-2]=arguments[c];var s;return u===Ki?r:(s=Reflect).get.apply(s,[r,u].concat(Gi(o)))},set:function(r,u,i){for(var o=arguments.length,c=new Array(o>3?o-3:0),s=3;s<o;s++)c[s-3]=arguments[s];var l;if(Pt(e)&&u==="length"&&i===e.length)return!0;var f=(l=Reflect).set.apply(l,[r,u,i].concat(Gi(c)));return Je(i)&&Xi(i,t),f}})}function Yr(e,t,n,r){var u=r!=null?r:e,i=Qi(Ji(n!=null?n:[]),u);Object.defineProperty(e,t,{get:function(){return i},set:function(c){i=Qi(Ji(c),u)},enumerable:!0})}function eu(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 ah(e){if(Array.isArray(e))return eu(e)}function Yi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eo(e,t,n,r,u,i,o){try{var c=e[i](o),s=c.value}catch(l){n(l);return}c.done?t(s):Promise.resolve(s).then(r,u)}function sh(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){eo(i,r,u,o,c,"next",s)}function c(s){eo(i,r,u,o,c,"throw",s)}o(void 0)})}}function ch(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?jt=Reflect.get:jt=function(u,i,o){var c=yh(u,i);if(!!c){var s=Object.getOwnPropertyDescriptor(c,i);return s.get?s.get.call(o):s.value}},jt(e,t,n||e)}function gt(e){return gt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gt(e)}function lh(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&&tu(e,t)}function hh(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function dh(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ph(){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 Dh(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){fh(e,u,n[u])})}return e}function gh(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 vh(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):gh(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function mh(e,t){return t&&(Eh(t)==="object"||typeof t=="function")?t:Yi(e)}function tu(e,t){return tu=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},tu(e,t)}function yh(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=gt(e),e!==null););return e}function to(e){return ah(e)||dh(e)||Ah(e)||ph()}var Eh=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Ah(e,t){if(!!e){if(typeof e=="string")return eu(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 eu(e,t)}}function Ch(){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 Fh(e){var t=Ch();return function(){var r=gt(e),u;if(t){var i=gt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return mh(this,u)}}var wh=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(f){return s([l,f])}}function s(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},bh=1e4,no=function(t){lh(r,t);var n=Fh(r);function r(i){ch(this,r);var o;o=n.call(this,i),o.controlType="layout";var c=hh(this,r)?this.constructor:void 0,s=c.excludes,l=c.childrenMaxLength;return o.props=new eh(i==null?void 0:i.props),Yr(Yi(o),"children",i==null?void 0:i.children),o.excludes=he(s),o.childrenMaxLength=l,o}var u=r.prototype;return u.judgeExcludesChildren=function(o){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(o)},u.judgeJoinChildren=function(o){var c=this.judgeExcludesChildren(o);return c&&this.childrenMaxLength>this.children.length},u.validate=function(o,c){var s=this,l=this,f=function(){return jt(gt(r.prototype),"validate",s)};return sh(function(){return wh(this,function(a){switch(a.label){case 0:return[4,f().call(l,o,c)];case 1:return a.sent(),[4,Promise.all(l.children.map(function(h){return h.validate(o,c)}))];case 2:return a.sent(),[2,!0]}})})()},u.toDataBindModel=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,c=jt(gt(r.prototype),"toDataBindModel",this).call(this),s=c?[c]:[];return this.children.reduce(function(l,f){var a=f.toDataBindModel(o);if(Array.isArray(a)){var h=a.filter(function(d){return!!d});return to(l).concat(to(h))}return a&&l.push(a),l},s)},u.toSchema=function(){var o=jt(gt(r.prototype),"toSchema",this).call(this),c=this.children.map(function(s){var l=s.toSchema();return l});return vh(Dh({},o),{children:c})},r}(Ye);no.excludes=!1,no.childrenMaxLength=bh;function ro(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kn(e){return kn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kn(e)}function _h(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&&nu(e,t)}function Sh(e,t){return t&&(Mh(t)==="object"||typeof t=="function")?t:ro(e)}function nu(e,t){return nu=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},nu(e,t)}var Mh=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Ih(){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 Nh(e){var t=Ih();return function(){var r=kn(e),u;if(t){var i=kn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Sh(this,u)}}var xh=function(e){_h(n,e);var t=Nh(n);function n(r,u){Bh(this,n);var i;return i=t.call(this,u),Yr(ro(i),"headers",u==null?void 0:u.headers,r),i}return n}(Mt);K.LIST;function ru(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uo(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 Rh(e,t,n){return t&&uo(e.prototype,t),n&&uo(e,n),e}function Vn(e){return Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vn(e)}function Th(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&&uu(e,t)}function Ph(e,t){return t&&($h(t)==="object"||typeof t=="function")?t:ru(e)}function uu(e,t){return uu=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},uu(e,t)}var $h=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function jh(){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 Lh(e){var t=jh();return function(){var r=Vn(e),u;if(t){var i=Vn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Ph(this,u)}}var Un=function(e){Th(n,e);var t=Lh(n);function n(u){Oh(this,n);var i;return i=t.call(this,u),i.controlType="list",i.rowProps={},i.props=new xh(ru(i),u==null?void 0:u.props),Yr(ru(i),"children",u==null?void 0:u.children),i}var r=n.prototype;return r.setRowProps=function(i){this.rowProps=i},Rh(n,[{key:"length",get:function(){return this.children.length}}]),n}(ln);function Hn(e){return e.controlType===Ke.LAYOUT||e.controlType===Ke.WRAP||e.controlType===Ke.LIST||e.controlType===Ke.SEARCH}function hn(e,t){Array.isArray(e)&&e.map(n=>{if(n.type===Q.SUBTABLE){const r=n.getChildrenFormControl();t(n,r)}else Hn(n)?hn(n==null?void 0:n.children,t):n instanceof et&&t(n)})}function dn(e,t){Array.isArray(e)&&e.map(n=>{n.type===Q.DATA_VIEW||n.type===Q.SIMPLE_SEARCH?t(n):Hn(n)&&dn(n==null?void 0:n.children,t)})}class iu extends In{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 io(this._instance,r=>{t.push(r),n[r.id]||(n[r.id]=[]),n[r.id].push(r)}),this._flatInstances=t,this._instanceMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get rules(){let t={};return dn(this._instance,n=>{t[n.id]=n.rules[0],hn(n.children,r=>{(r instanceof et||r instanceof Un)&&qh(t[n.id].fields,r)})}),t}get antdRules(){let t={};return dn(this._instance,n=>{t[n.id]=n.rules[0],hn(n.children,r=>{(r instanceof et||r instanceof Un)&&kh(t[n.id].fields,r)})}),t}}function io(e,t){Array.isArray(e)?e.map(n=>{t(n),Hn(n)&&io(n.children,t)}):t(e)}function ou(e){return e.props.isHide?!0:e.parent===null?!1:ou(e.parent)}function qh(e,t){if(!ou(t)){if(t instanceof et)e[t.id]=t.rules;else if(t.type===Q.SUBTABLE){e[t.id]=t.rules;const n={type:"array",fields:{}};t.children.forEach((r,u)=>{_t(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 kh(e,t){ou(t)||(t instanceof et?e[t.id]=t.rules:t.type===Q.SUBTABLE&&t.children.length&&(e[t.id]=[],t.children.forEach(n=>{let r={};_t(n.children,u=>{r[u.id]=u.rules}),e[t.id].push(r)})))}class Vh{constructor(t){const{state:n,emptyState:r,databindMapping:u,controlidMapping:i}=Uh(t.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=i}setState(t,n,r){const u=this.controlIdMapping[t];u!==void 0?this.state[u.dataView][t]=n:r!==void 0?Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,c=this.controlIdMapping[i].children;c!==void 0&&Object.keys(c).map(s=>{s===t&&(this.state[o][i][r][t]=n)})}):this.state[t]=n}getState(t,n){if(this.state[t]!==void 0)return this.state[t];{const u=this.controlIdMapping[t];if(u!==void 0)return this.state[u.dataView][t];if(n!==void 0){let i;return Object.keys(this.controlIdMapping).map(o=>{const c=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(l=>{var f;l===t&&(i=(f=this.state[c][o][n])==null?void 0:f[t])})}),i}else{let i=[];return Object.keys(this.controlIdMapping).map(o=>{const c=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(l=>{l===t&&this.state[c][o].map(f=>{i.push(f[t])})})}),i}}}getEmptyState(t){if(this.emptyState[t]!==void 0)return this.emptyState[t];{const r=this.controlIdMapping[t];if(r!==void 0)return this.emptyState[r.dataView][t];{let u;return Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,c=this.controlIdMapping[i].children;c!==void 0&&Object.keys(c).map(s=>{s===t&&(u=this.emptyState[o][i][t])})}),u}}}getDataBind(t){let n=this.controlIdMapping[t];if(n)return n.dataBind;e:for(let r in this.controlIdMapping){const u=this.controlIdMapping[r];if(u.children){for(let i in u.children)if(i===t){n=u.children[i];break e}}}return n==null?void 0:n.dataBind}}function Uh(e){let t={},n={},r={},u={};return dn(e,i=>{const o=i.id,c={},s={};hn([i],(l,f)=>{Hh(c,s,l),zh(r,o,l),Wh(u,o,l)}),t[o]=c,n[o]=s}),{state:t,emptyState:n,databindMapping:r,controlidMapping:u}}function Hh(e,t,n){var r;if(n instanceof et)e[n.id]=he(n.props.defaultValue),t[n.id]=he(n.props.defaultValue);else{const u={};_t(n.props.headers,i=>{u[i.id]=he(i.props.defaultValue)}),e[n.id]=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>he(u)),t[n.id]=u}}function zh(e,t,n){if(n instanceof et)n.props.dataBind instanceof pt?Object.keys(n.props.dataBind).map(r=>{const u=n.props.dataBind,i=u[r].dataCode;i!==void 0&&(e[i]===void 0&&(e[i]={controlId:n.id,fields:[],dataViewId:t}),e[i].fields.push({fieldCode:u[r].fieldCode,controlId:n.id,dataBind:u,dataViewId:[t]}))}):(e[n.props.dataBind.dataCode]===void 0&&(e[n.props.dataBind.dataCode]={controlId:t,fields:[],dataViewId:t}),e[n.props.dataBind.dataCode].fields.push({fieldCode:n.props.dataBind.fieldCode,controlId:n.id,dataBind:n.props.dataBind,dataViewId:[t]}));else{if(n.props.datasourceBind.dataCode===""){dt(`datasourceBind.dataCode is empty! maybe in preview mode, control:${n.id} type:${n.type}`);return}e[n.props.datasourceBind.dataCode]={controlId:n.id,fields:[],dataViewId:t};const r=n.id;_t(n.props.headers,u=>{u.props.dataBind instanceof pt?Object.keys(u.props.dataBind).map(i=>{const o=u.props.dataBind,c=o[i].dataCode;e[c].fields.push({fieldCode:o[i].fieldCode,controlId:u.id,dataBind:o,dataViewId:[t,r]})}):e[u.props.dataBind.dataCode].fields.push({fieldCode:u.props.dataBind.fieldCode,controlId:u.id,dataBind:u.props.dataBind,dataViewId:[t,r]})})}}function Wh(e,t,n){n instanceof et?e[n.id]={dataBind:n.props.dataBind,options:[],dataView:t}:n.type===Q.SUBTABLE&&(e[n.id]={dataBind:new on({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:t,children:{},options:[]},_t(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 oo=["splice","push","shift","pop","unshift","reverse"],au=Symbol("__engineProxy__"),su=Symbol("__engineTarget__"),ao=Symbol("__engineArrayBeforeSetCallbackFlag__"),so=Symbol("__engineProxyThisKey__"),He={type:"",args:[],callback:co};function co(){}Jh();function Zh(e,t,n,r,u){if(He.type){He.callback=u.bind(null,e,r);return}const i=Number(t);if(i>e.length){at(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${oo.join(",")} for array operations`);return}if(!(Number.isNaN(i)&&t!=="length"))if(t==="length"){const c=n,s=e.length;if(c>e.length){at("Do not directly modify the length of the array data, please add new rows");return}return c===e.length?void 0:()=>u.call(null,e,r,"splice",[c,s-c])}else return i===e.length?()=>u.call(null,e,r,"push",[n]):()=>u.call(null,e,r,"splice",[i,1,n])}function Gh(e,t,n){return{__engineProxy__:!0,get(r,u,i){return u===au?!0:u===su?r:Array.isArray(r)&&u===ao?n:u===so?e:Reflect.get(r,u,i)},set(r,u,i,o){var h;let c=i;const s=r[u],l=e===""?u:e+"."+u;function f(d){if(typeof d=="object"&&d!==null)return d[au]!==!0?zn(d,t,n,l):zn(d[su],t,n,l)}c=(h=f(i))!=null?h:c;let a;if(Array.isArray(r)){const d=Zh(r,u,i,e,t);a=Reflect.set(r,u,c,o),d&&d()}else{try{let d=c;if(c=n.call(null,r,l,c,s),d!==c){const p=f(c);p!==void 0&&(c=p)}}catch(d){return _n(`${l} set error ${d}`),!0}a=Reflect.set(r,u,c,o),t.call(null,r,l,i,s)}return a}}}function zn(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]=zn(o,t,n,i))}return new Proxy(e,Gh(r,t,n))}function fo(e){const t=[];return e.forEach(n=>{t.push(n),n.controlType==="layout"&&t.push(...fo(n.children))}),t}function cu(e,t){if(t==="")return;const n=t.split(".");if(n.length===0)return;const r=n[0],u=n.slice(1),i=e.find(o=>o.id===r);return u.length===0?i:u.reduce((o,c)=>{var f,a;const s=Number(c);if(Number.isNaN(s)){const h=o!=null&&o.children?fo(o.children):void 0,d=h==null?void 0:h.find(p=>p.id===c);return d||(o instanceof et?o:void 0)}else return(a=(f=o==null?void 0:o.children)==null?void 0:f[s])!=null?a:o},i)}function Xh(e,t){return["push","unshift"].includes(e)?t:e==="splice"?t.slice(2):[]}function Kh(e,t,n){if(["push","unshift"].includes(e))return n;if(e==="splice")return t.slice(0,2).concat(n)}function Jh(){oo.forEach(e=>{const t=Array.prototype[e];Array.prototype[e]=function(...n){var r;if(this[au]){let u;const i=Xh(e,n);if(i.length){const o=(r=this[ao])==null?void 0:r.call(this,this[su],this[so],i),c=Kh(e,n,o);He.type=e,He.args=c,u=t.apply(this,c)}else He.type=e,He.args=n,u=t.apply(this,n);return typeof He.callback=="function"&&He.callback(e,n,u),He.type="",He.args=[],He.callback=co,u}else return t.apply(this,n)}})}class Qh{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(t,n,...r){return it(this,null,function*(){const u=this.actionMap.get(t);if(!!u)try{return yield u.func.call(null,n,...r)}catch(i){_n(`${u.id} Exception during calling action: ${i}`)}})}addAction(t,n){this.actionMap.has(t)&&at("duplicated action key");const r=new Yh(t,n);this.actionMap.set(t,r)}}class Yh{constructor(t,n){this.id="",this.id=t,this.func=n}}class ed{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 he(n)}remove(t){this._dataStore.delete(t)}getRemoteData(t){return it(this,null,function*(){return this.executer===void 0?(_n("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(t)})}}class vt{}class pn extends vt{validate(t){return Te(t)}transform(t){if(t==null)return"";if(!Je(t)&&!Ci(t))return String(t);if(Fl(t))return JSON.stringify(t);throw`${t} is not a string`}}class fu extends vt{validate(t){return Sn(t)||t===""}transform(t){if(t==null)return"";const n=!Je(t)&&!Ci(t)?Number(t):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${t} is not a number`}}class td extends vt{validate(t){return wl(t)}transform(t){if(t==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(Pt(t))return n(t);if(Te(t)&&Fi(t))try{const r=JSON.parse(t);if(Array.isArray(r))return n(r)}catch(r){}return[String(t)]}}class nd extends vt{validate(t){return bl(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(Pt(t))return n(t);if(Te(t)&&Fi(t))try{const u=JSON.parse(t);if(Pt(u))return n(u)}catch(u){}const r=Number(t);if(Number.isNaN(r))throw`${t} is not a number array`;return[r]}}class rd extends vt{validate(t){return t instanceof Nn||Je(t)&&"amount"in t&&Sn(t.amount)&&"currency"in t&&Te(t.currency)}transform(t,n){if(t==null||t==="")return new Nn({currency:n==null?void 0:n.currency});let r;if(Je(t)&&(r=new Nn(ge(ge({},n),t))),Te(t)&&Mn(t))try{const u=JSON.parse(t);r=new Nn(ge(ge({},n),u))}catch(u){}if(r){const u=new fu,i=new pn;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 ud extends vt{validate(t){return t instanceof xn||Je(t)&&"min"in t&&Te(t.min)&&"max"in t&&Te(t.max)}transform(t,n){if(t==null||t==="")return new xn;let r;if(Je(t)&&(r=new xn(ge(ge({},n),t))),Te(t)&&Mn(t))try{const u=JSON.parse(t);r=new xn(ge(ge({},n),u))}catch(u){}if(r){const u=new pn;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 id extends vt{validate(t){return t instanceof Rn||Je(t)&&"result"in t&&Sn(t.result)&&"unit"in t&&Te(t.unit)}transform(t,n){if(t==null||t==="")return new Rn({unit:n==null?void 0:n.unit});let r;if(Je(t)&&(r=new Rn(ge(ge({},n),t))),Te(t)&&Mn(t))try{const u=JSON.parse(t);r=new Rn(ge(ge({},n),u))}catch(u){}if(r){const u=new fu,i=new pn;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 od extends vt{validate(t){return t instanceof On}transform(t,n){if(t==null||t==="")return new On;let r;if(Je(t)&&(r=new On(ge(ge({},n),Mr.exports.camelizeKeys(t)))),Te(t)&&Mn(t))try{const u=JSON.parse(t);r=new On(ge(ge({},n),Mr.exports.camelizeKeys(u)))}catch(u){}if(r){const u=new pn;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 ad{static getValueChecker(t){let n;switch(t){case K.VARCHAR:case K.TIMESTAMP:case K.TEXT:case K.RELATION:case K.AUTO_NUMBER:n=new pn;break;case K.DECIMAL:n=new fu;break;case K.EMPLOYEES:case K.DEPARTMENTS:case K.IMAGE:case K.FILE:case K.ARRAY:n=new td;break;case K.MONEY:n=new rd;break;case K.TIMESCOPE:n=new ud;break;case K.CALC:n=new id;break;case K.DECIMAL_RANGE:n=new nd;break;case K.ADDRESS:n=new od;break}return n}}function sd(e){if(["min","max","currency","unit"].includes(e))return K.VARCHAR;if(["result","amount"].includes(e))return K.DECIMAL}function lo(e,t,n,r){var o;let u=(o=sd(t))!=null?o:e,i=ad.getValueChecker(u);if(!i||i.validate(n))return n;try{const c=i.transform(n,r);return c!==void 0?c:n}catch(c){throw`${t} ${c}`}}function cd(e,t,n){return Object.entries(e).reduce((r,[u,i])=>{const o=t[u];return r[u]=lo(i,u,o,n[u]),r},Object.assign({},t))}var lu={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",u=9007199254740991,i="[object Arguments]",o="[object Array]",c="[object Boolean]",s="[object Date]",l="[object Error]",f="[object Function]",a="[object GeneratorFunction]",h="[object Map]",d="[object Number]",p="[object Object]",D="[object Promise]",m="[object RegExp]",g="[object Set]",A="[object String]",M="[object Symbol]",w="[object WeakMap]",x="[object ArrayBuffer]",P="[object DataView]",L="[object Float32Array]",I="[object Float64Array]",j="[object Int8Array]",G="[object Int16Array]",z="[object Int32Array]",ee="[object Uint8Array]",Y="[object Uint8ClampedArray]",ue="[object Uint16Array]",re="[object Uint32Array]",X=/[\\^$.*+?()[\]{}|]/g,Nu=/\w*$/,xu=/^\[object .+?Constructor\]$/,Ou=/^(?:0|[1-9]\d*)$/,te={};te[i]=te[o]=te[x]=te[P]=te[c]=te[s]=te[L]=te[I]=te[j]=te[G]=te[z]=te[h]=te[d]=te[p]=te[m]=te[g]=te[A]=te[M]=te[ee]=te[Y]=te[ue]=te[re]=!0,te[l]=te[f]=te[w]=!1;var Ru=typeof je=="object"&&je&&je.Object===Object&&je,Tu=typeof self=="object"&&self&&self.Object===Object&&self,Ge=Ru||Tu||Function("return this")(),ir=t&&!t.nodeType&&t,or=ir&&!0&&e&&!e.nodeType&&e,Pu=or&&or.exports===ir;function ar(v,C){return v.set(C[0],C[1]),v}function sr(v,C){return v.add(C),v}function Ft(v,C){for(var b=-1,q=v?v.length:0;++b<q&&C(v[b],b,v)!==!1;);return v}function yn(v,C){for(var b=-1,q=C.length,ye=v.length;++b<q;)v[ye+b]=C[b];return v}function cr(v,C,b,q){var ye=-1,Ie=v?v.length:0;for(q&&Ie&&(b=v[++ye]);++ye<Ie;)b=C(b,v[ye],ye,v);return b}function $u(v,C){for(var b=-1,q=Array(v);++b<v;)q[b]=C(b);return q}function ju(v,C){return v==null?void 0:v[C]}function En(v){var C=!1;if(v!=null&&typeof v.toString!="function")try{C=!!(v+"")}catch(b){}return C}function An(v){var C=-1,b=Array(v.size);return v.forEach(function(q,ye){b[++C]=[ye,q]}),b}function Gt(v,C){return function(b){return v(C(b))}}function Cn(v){var C=-1,b=Array(v.size);return v.forEach(function(q){b[++C]=q}),b}var fr=Array.prototype,Lu=Function.prototype,Xt=Object.prototype,Fn=Ge["__core-js_shared__"],wn=function(){var v=/[^.]+$/.exec(Fn&&Fn.keys&&Fn.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),y=Lu.toString,E=Xt.hasOwnProperty,F=Xt.toString,B=RegExp("^"+y.call(E).replace(X,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=Pu?Ge.Buffer:void 0,O=Ge.Symbol,T=Ge.Uint8Array,_=Gt(Object.getPrototypeOf,Object),R=Object.create,V=Xt.propertyIsEnumerable,W=fr.splice,$=Object.getOwnPropertySymbols,Ce=N?N.isBuffer:void 0,De=Gt(Object.keys,Object),fe=Yt(Ge,"DataView"),ie=Yt(Ge,"Map"),me=Yt(Ge,"Promise"),ae=Yt(Ge,"Set"),be=Yt(Ge,"WeakMap"),se=Yt(Object,"create"),Fe=Rt(fe),ft=Rt(ie),Be=Rt(me),lt=Rt(ae),Kt=Rt(be),wt=O?O.prototype:void 0,lr=wt?wt.valueOf:void 0;function ht(v){var C=-1,b=v?v.length:0;for(this.clear();++C<b;){var q=v[C];this.set(q[0],q[1])}}function qu(){this.__data__=se?se(null):{}}function ku(v){return this.has(v)&&delete this.__data__[v]}function Vu(v){var C=this.__data__;if(se){var b=C[v];return b===r?void 0:b}return E.call(C,v)?C[v]:void 0}function Uu(v){var C=this.__data__;return se?C[v]!==void 0:E.call(C,v)}function Hu(v,C){var b=this.__data__;return b[v]=se&&C===void 0?r:C,this}ht.prototype.clear=qu,ht.prototype.delete=ku,ht.prototype.get=Vu,ht.prototype.has=Uu,ht.prototype.set=Hu;function Xe(v){var C=-1,b=v?v.length:0;for(this.clear();++C<b;){var q=v[C];this.set(q[0],q[1])}}function zu(){this.__data__=[]}function xt(v){var C=this.__data__,b=rt(C,v);if(b<0)return!1;var q=C.length-1;return b==q?C.pop():W.call(C,b,1),!0}function Wu(v){var C=this.__data__,b=rt(C,v);return b<0?void 0:C[b][1]}function Zu(v){return rt(this.__data__,v)>-1}function Gu(v,C){var b=this.__data__,q=rt(b,v);return q<0?b.push([v,C]):b[q][1]=C,this}Xe.prototype.clear=zu,Xe.prototype.delete=xt,Xe.prototype.get=Wu,Xe.prototype.has=Zu,Xe.prototype.set=Gu;function bt(v){var C=-1,b=v?v.length:0;for(this.clear();++C<b;){var q=v[C];this.set(q[0],q[1])}}function Xu(){this.__data__={hash:new ht,map:new(ie||Xe),string:new ht}}function Ku(v){return gr(this,v).delete(v)}function Ju(v){return gr(this,v).get(v)}function Qu(v){return gr(this,v).has(v)}function Yu(v,C){return gr(this,v).set(v,C),this}bt.prototype.clear=Xu,bt.prototype.delete=Ku,bt.prototype.get=Ju,bt.prototype.has=Qu,bt.prototype.set=Yu;function Bt(v){this.__data__=new Xe(v)}function ei(){this.__data__=new Xe}function ti(v){return this.__data__.delete(v)}function ni(v){return this.__data__.get(v)}function ri(v){return this.__data__.has(v)}function ui(v,C){var b=this.__data__;if(b instanceof Xe){var q=b.__data__;if(!ie||q.length<n-1)return q.push([v,C]),this;b=this.__data__=new bt(q)}return b.set(v,C),this}Bt.prototype.clear=ei,Bt.prototype.delete=ti,Bt.prototype.get=ni,Bt.prototype.has=ri,Bt.prototype.set=ui;function ii(v,C){var b=ai(v)||vD(v)?$u(v.length,String):[],q=b.length,ye=!!q;for(var Ie in v)(C||E.call(v,Ie))&&!(ye&&(Ie=="length"||dD(Ie,q)))&&b.push(Ie);return b}function hr(v,C,b){var q=v[C];(!(E.call(v,C)&&va(q,b))||b===void 0&&!(C in v))&&(v[C]=b)}function rt(v,C){for(var b=v.length;b--;)if(va(v[b][0],C))return b;return-1}function Me(v,C){return v&&pa(C,si(C),v)}function ce(v,C,b,q,ye,Ie,ke){var Oe;if(q&&(Oe=Ie?q(v,ye,Ie,ke):q(v)),Oe!==void 0)return Oe;if(!vr(v))return v;var Ea=ai(v);if(Ea){if(Oe=fD(v),!C)return aD(v,Oe)}else{var en=Ot(v),Aa=en==f||en==a;if(yD(v))return Dr(v,C);if(en==p||en==i||Aa&&!Ie){if(En(v))return Ie?v:{};if(Oe=lD(Aa?{}:v),!C)return sD(v,Me(Oe,v))}else{if(!te[en])return Ie?v:{};Oe=hD(v,en,ce,C)}}ke||(ke=new Bt);var Ca=ke.get(v);if(Ca)return Ca;if(ke.set(v,Oe),!Ea)var Fa=b?cD(v):si(v);return Ft(Fa||v,function(ci,mr){Fa&&(mr=ci,ci=v[mr]),hr(Oe,mr,ce(ci,C,b,q,mr,v,ke))}),Oe}function dr(v){return vr(v)?R(v):{}}function oi(v,C,b){var q=C(v);return ai(v)?q:yn(q,b(v))}function Jt(v){return F.call(v)}function Qt(v){if(!vr(v)||DD(v))return!1;var C=ya(v)||En(v)?B:xu;return C.test(Rt(v))}function pr(v){if(!ga(v))return De(v);var C=[];for(var b in Object(v))E.call(v,b)&&b!="constructor"&&C.push(b);return C}function Dr(v,C){if(C)return v.slice();var b=new v.constructor(v.length);return v.copy(b),b}function ut(v){var C=new v.constructor(v.byteLength);return new T(C).set(new T(v)),C}function tD(v,C){var b=C?ut(v.buffer):v.buffer;return new v.constructor(b,v.byteOffset,v.byteLength)}function nD(v,C,b){var q=C?b(An(v),!0):An(v);return cr(q,ar,new v.constructor)}function rD(v){var C=new v.constructor(v.source,Nu.exec(v));return C.lastIndex=v.lastIndex,C}function uD(v,C,b){var q=C?b(Cn(v),!0):Cn(v);return cr(q,sr,new v.constructor)}function iD(v){return lr?Object(lr.call(v)):{}}function oD(v,C){var b=C?ut(v.buffer):v.buffer;return new v.constructor(b,v.byteOffset,v.length)}function aD(v,C){var b=-1,q=v.length;for(C||(C=Array(q));++b<q;)C[b]=v[b];return C}function pa(v,C,b,q){b||(b={});for(var ye=-1,Ie=C.length;++ye<Ie;){var ke=C[ye],Oe=q?q(b[ke],v[ke],ke,b,v):void 0;hr(b,ke,Oe===void 0?v[ke]:Oe)}return b}function sD(v,C){return pa(v,Da(v),C)}function cD(v){return oi(v,si,Da)}function gr(v,C){var b=v.__data__;return pD(C)?b[typeof C=="string"?"string":"hash"]:b.map}function Yt(v,C){var b=ju(v,C);return Qt(b)?b:void 0}var Da=$?Gt($,Object):CD,Ot=Jt;(fe&&Ot(new fe(new ArrayBuffer(1)))!=P||ie&&Ot(new ie)!=h||me&&Ot(me.resolve())!=D||ae&&Ot(new ae)!=g||be&&Ot(new be)!=w)&&(Ot=function(v){var C=F.call(v),b=C==p?v.constructor:void 0,q=b?Rt(b):void 0;if(q)switch(q){case Fe:return P;case ft:return h;case Be:return D;case lt:return g;case Kt:return w}return C});function fD(v){var C=v.length,b=v.constructor(C);return C&&typeof v[0]=="string"&&E.call(v,"index")&&(b.index=v.index,b.input=v.input),b}function lD(v){return typeof v.constructor=="function"&&!ga(v)?dr(_(v)):{}}function hD(v,C,b,q){var ye=v.constructor;switch(C){case x:return ut(v);case c:case s:return new ye(+v);case P:return tD(v,q);case L:case I:case j:case G:case z:case ee:case Y:case ue:case re:return oD(v,q);case h:return nD(v,q,b);case d:case A:return new ye(v);case m:return rD(v);case g:return uD(v,q,b);case M:return iD(v)}}function dD(v,C){return C=C==null?u:C,!!C&&(typeof v=="number"||Ou.test(v))&&v>-1&&v%1==0&&v<C}function pD(v){var C=typeof v;return C=="string"||C=="number"||C=="symbol"||C=="boolean"?v!=="__proto__":v===null}function DD(v){return!!wn&&wn in v}function ga(v){var C=v&&v.constructor,b=typeof C=="function"&&C.prototype||Xt;return v===b}function Rt(v){if(v!=null){try{return y.call(v)}catch(C){}try{return v+""}catch(C){}}return""}function gD(v){return ce(v,!0,!0)}function va(v,C){return v===C||v!==v&&C!==C}function vD(v){return mD(v)&&E.call(v,"callee")&&(!V.call(v,"callee")||F.call(v)==i)}var ai=Array.isArray;function ma(v){return v!=null&&ED(v.length)&&!ya(v)}function mD(v){return AD(v)&&ma(v)}var yD=Ce||FD;function ya(v){var C=vr(v)?F.call(v):"";return C==f||C==a}function ED(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=u}function vr(v){var C=typeof v;return!!v&&(C=="object"||C=="function")}function AD(v){return!!v&&typeof v=="object"}function si(v){return ma(v)?ii(v):pr(v)}function CD(){return[]}function FD(){return!1}e.exports=gD})(lu,lu.exports);var fd=lu.exports;function ho(e){return e.reduce((n,r)=>{const{children:u}=r;return u.forEach(i=>{n[i.id]=ld(i)}),n},{})}function ld(e){return fd(e.props)}typeof window!="undefined"&&(window.engines={});let Lt=null,Dn="";class hu extends bi{constructor(t){super(),this.isMounted=!1,this.id=Fr(8),this.__pluginsApplied=!1,this.actionManager=new Qh,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(t);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:i,language:o=li,debug:c=!1}=this.$options;Ue.setLocale(o),this.debug=c,this.runtime=new iu({schema:r,beforeCreateInstance:u}),this.externalParams=i,this.store=new Vh({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...t){this.debug&&_r(...t)}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}registerControl(...t){return this.runtime.register(...t),this}static register(...t){return iu.register(...t)}static judgeControlIsRegistered(t){return iu.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=zn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(t,n,r,u){const i=cu(this.runtime.flatInstances,n);if(!i)return r;if(this.assertInstance(i,Q.SUBTABLE)){if(r===null)return[];const s=i.props.headers.reduce((f,a)=>{const h=a.children[0];return h&&h instanceof et&&(f[h.id]=h.fieldType),f},{}),l=this.getEmptyState(i.id);return r.map(f=>cd(s,f,l))}const o=n.split("."),c=o[o.length-1];try{return lo(i.fieldType,c,r,u)}catch(s){throw dt(`the id=${i.id}'s instance setState error, %o ${s}.`,r),s}}_proxyStateCallback(t,n,r,u,i){Array.isArray(t)?this._handlerArrayUpdate(t,n,r,u,i):this._handlerObjectUpdate(t,n,r,u)}_handlerArrayUpdate(t,n,r,u,i){const o=cu(this.runtime.flatInstances,n);if(!(o instanceof Un))return;const c=h=>[],s=Lt;let l=[],f=[],a=[];if(r&&u){switch(r){case"push":case"unshift":u.length,l=c(),f=u,o.children[r](...l),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){u.length-2;const h=u.slice(2);l=c(),f=h;const d=u[0],p=u[1];o.children[r](d,p,...l),this.runtime.getFlatInstances()}else o.children[r](...u),this.runtime.getFlatInstances();break;default:o.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?a=i:["pop","shift"].includes(r)&&(a=[i]),this.emit("list-change",{instance:o,value:this.getState(o.id),options:Object.assign({},s,{changed:l,data:f,deleted:a!=null?a:[]})}),Lt=null}}_handlerObjectUpdate(t,n,r,u){const i=cu(this.runtime.flatInstances,n);if(!i)return;const o=this.getInstanceRowIndex(i),c=Lt||{};if(i instanceof Un){i.children.length=0;const s=r;let l=[];this.emit("list-change",{instance:i,value:r,options:fi(ge({},c),{changed:l,data:s,deleted:u!=null?u:[]})})}else this.emit("change",{instance:i,value:this.getState(i.id,o),rowIndex:o,options:fi(ge({},c),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{Dn=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this)}catch(r){at(`${Dn} Plugin apply Error
1
+ var wD=Object.defineProperty,bD=Object.defineProperties;var BD=Object.getOwnPropertyDescriptors;var wa=Object.getOwnPropertySymbols,_D=Object.getPrototypeOf,SD=Object.prototype.hasOwnProperty,MD=Object.prototype.propertyIsEnumerable,ID=Reflect.get;var yr=Math.pow,ba=(J,oe,le)=>oe in J?wD(J,oe,{enumerable:!0,configurable:!0,writable:!0,value:le}):J[oe]=le,ge=(J,oe)=>{for(var le in oe||(oe={}))SD.call(oe,le)&&ba(J,le,oe[le]);if(wa)for(var le of wa(oe))MD.call(oe,le)&&ba(J,le,oe[le]);return J},fi=(J,oe)=>bD(J,BD(oe));var Ba=(J,oe,le)=>ID(_D(J),le,oe);var it=(J,oe,le)=>new Promise((Er,bn)=>{var Ar=ot=>{try{tn(le.next(ot))}catch(nn){bn(nn)}},Cr=ot=>{try{tn(le.throw(ot))}catch(nn){bn(nn)}},tn=ot=>ot.done?Er(ot.value):Promise.resolve(ot.value).then(Ar,Cr);tn((le=le.apply(J,oe)).next())});(function(J,oe){typeof exports=="object"&&typeof module!="undefined"?oe(exports,require("crypto")):typeof define=="function"&&define.amd?define(["exports","crypto"],oe):(J=typeof globalThis!="undefined"?globalThis:J||self,oe(J.modelDrivenEngine={},J.require$$0))})(this,function(J,oe){"use strict";function le(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Er=le(oe),bn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u5B57",Ar="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5B57\u7B26\u4E32",Cr="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5BF9\u8C61",tn="\u8BF7\u8F93\u5165\u4E00\u4E2A\u6570\u7EC4",ot="\u8BF7\u8F93\u5165\u4E00\u4E2A\u5E03\u5C14",nn="{caption}\u5FC5\u586B",_a="\u8BF7\u8F93\u5165\u6807\u9898",Sa="\u8BF7\u8F93\u5165\u6C14\u6CE1\u63D0\u793A\u8BED",Ma="\u8BF7\u8F93\u5165\u63D0\u793A\u6587\u5B57",Ia="\u8BF7\u7ED1\u5B9A\u6570\u636E\u9879",Na="\u8BF7\u7ED1\u5B9A\u8868\u5355",xa="\u8BF7\u7ED1\u5B9A\u5217\u8868",Oa="\u8BF7\u7ED1\u5B9A\u6D41\u7A0B",Ra="\u8BF7\u8F93\u5165\u663E\u793A\u503C",Ta="\u8BF7\u8F93\u5165\u5B58\u50A8\u503C",Pa="\u5355\u636E\u7F16\u53F7\u672A\u7ED1\u5B9A\u6570\u636E\u9879",$a="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5\uFF01",ja="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",La="\u8BF7\u8F93\u5165\u5927\u4E8E\u7B49\u4E8E{min}\u7684\u6570\u503C",qa="\u8BF7\u8F93\u5165\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u6570\u503C",ka="\u6570\u503C\u8303\u56F4\u8BBE\u7F6E\u6709\u8BEF",Va="\u8BF7\u8F93\u5165\u957F\u5EA6\u5927\u4E8E\u7B49\u4E8E{min}\u4E14\u5C0F\u4E8E\u7B49\u4E8E{max}\u7684\u503C",Ua="\u9644\u4EF6\u5927\u5C0F\u5FC5\u987B\u57280MB\u81F31000MB\u4E4B\u95F4",Ha="\u8BF7\u586B\u5199\u603B\u5206\u8BBE\u7F6E",za="\u603B\u5206\u4E0D\u80FD\u5C0F\u4E8E1",Wa="\u9ED8\u8BA4\u503C\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Za="\u9644\u4EF6\u4E0A\u4F20\u7684\u6570\u91CF\u5FC5\u987B\u5728{min}\u548C{max}\u4E4B\u95F4",Ga="\u8BF7\u91CD\u65B0\u9009\u62E9\u53EF\u9009\u6570\u91CF",Xa="\u8BE5\u63A7\u4EF6\u6700\u5927\u957F\u5EA6\u9700\u5927\u4E8E\u6700\u5C0F\u957F\u5EA6",Ka="\u8BE5\u63A7\u4EF6\u6700\u5C0F\u957F\u5EA6\u9700\u5C0F\u4E8E\u6700\u5927\u957F\u5EA6",Ja="\u8BF7\u9009\u62E9\u6B63\u786E\u7684\u9009\u9879\u8BBE\u7F6E",Qa="\u9009\u9879ID\u4E0D\u80FD\u91CD\u590D",Ya="\u8BF7\u8F93\u5165\u81F3\u5C11\u4E00\u6761\u9009\u9879",es="\u8BF7\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",ts="\u8BF7\u7ED1\u5B9A\u5B58\u50A8\u503C",ns="\u8BF7\u7ED1\u5B9A\u670D\u52A1",rs="\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",us="\u8BF7\u9009\u62E9\u7701",is="\u8BF7\u9009\u62E9\u5E02",os="\u8BF7\u9009\u62E9\u533A",as="\u6700\u5C11\u586B\u5199\u884C\u6570\u4E0D\u80FD\u5C0F\u4E8E0",ss="\u884C\u6570\u91CF\u4E0D\u80FD\u5C0F\u4E8E{min}\u884C",cs="\u8BF7\u8F93\u5165\u5217\u5BBD",fs="\u8BF7\u8BBE\u7F6E\u6240\u6709\u89C4\u5219\u6761\u4EF6\u7684\u903B\u8F91\u5173\u7CFB",ls="\u8BF7\u5C06\u6240\u6709\u89C4\u5219\u6761\u4EF6\u586B\u5199\u5B8C\u6574",hs="\u8BF7\u9009\u62E9\u63A7\u4EF6",ds="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u663E\u793A\u5B57\u6BB5",ps="\u8BF7\u9009\u62E9\u56DE\u586B\u8BBE\u7F6E",Ds="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",gs="\u8BF7\u9009\u62E9\u6839\u8282\u70B9",vs="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",ms="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",ys="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Es="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",As="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Cs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Fs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",ws="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",bs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Bs="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",_s="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Ss="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Ms="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Is="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Ns="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",xs="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Os="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",Rs={isNotNumber:bn,isNotString:Ar,isNotObject:Cr,isNotArray:tn,isNotBoolean:ot,runtimeRequired:nn,pleaseEnterCaption:_a,pleaseEnterCaptionTip:Sa,pleaseEnterPlaceholder:Ma,pleaseEnterFieldCode:Ia,pleaseEnterForm:Na,pleaseEnterList:xa,pleaseEnterProcess:Oa,pleaseEnterLabel:Ra,pleaseEnterValue:Ta,bizKeyNotBindFiled:Pa,pleaseSelectOneField:$a,pleaseEnterNumberRange:ja,pleaseEnterAValueGreaterThanMin:La,pleaseEnterAValueLessThanMax:qa,numberRangeSetError:ka,stringRangeError:Va,attachmentMaxSize:Ua,pleaseEnterTotalScoreSetting:Ha,theTotalScoreMustNotBeLessThan1:za,scoreDefaultValueRange:Wa,attachmentLimitError:Za,PleaseReselectTheOptionalQuantity:Ga,TheMaximumLengthIsGreaterThanTheMinimumLength:Xa,TheMinimumLengthIsGreaterThanTheMaximumLength:Ka,PleaseSelectTheCorrectOptionSettings:Ja,optionIdIsRepeat:Qa,optionIsRequired:Ya,pleaseEnterDataCode:es,pleaseEnterValueFieldCode:ts,pleaseEnterSvcCode:ns,pleaseBindAtLeastOneDisplayValue:rs,pleaseSelectProvince:us,pleaseSelectCity:is,pleaseSelectDistrict:os,limitRowsCannotBeLessThan0:as,TheNumberOfRowsCannotBeLessThanMinRows:ss,pleaseEnterColumnWidth:cs,pleaseSetTheLogicalRelationshipOfAllRuleConditions:fs,pleaseCompleteAllRulesAndConditions:ls,pleaseSelectControl:hs,pleaseSelectAtLeastOneColumn:ds,pleaseSelectFillBackMode:ps,pleaseSelectDashboard:Ds,rootNodeIsRequired:gs,theViewNameCannotBeEmpty:vs,pleaseSelectOcrType:ms,pleaseSelectAtLeastOneFieldToFillIn:ys,pleaseChooseAtLeastOne:Es,pleaseEnterButtonContent:As,pleaseEnterDataCodeInDataSetting:Cs,pleaseEnterValueFieldCodeInDataSetting:Fs,pleaseEnterSvcCodeInDataSetting:ws,pleaseBindAtLeastOneDisplayValueInDataSetting:bs,rootNodeIsRequiredInDataSetting:Bs,pleaseEnterMaxHeight:_s,pleaseEnter:Ss,pleaseEnterWatermark:Ms,pleaseEnterFileName:Is,pleaseUploadAtLeastOnePrintTemplate:Ns,pleaseAssignBusiness:xs,pleaseAssignExternal:Os},Ts="Please enter a number",Ps="Please enter a string",$s="Please enter an object",js="Please enter an array",Ls="Please enter a boolean",qs="{caption} Required",ks="Please enter the title",Vs="Please enter the bubble prompt",Us="Please enter the prompt text",Hs="Please bind data items",zs="Please bind the form",Ws="Please bind the list",Zs="Please bind the process",Gs="Please enter the displayed value",Xs="Please enter the stored value",Ks="The document number is not bound to the data item",Js="Please select at least one display field",Qs="Please enter a value greater than or equal to {min} and less than or equal to {max}",Ys="Please enter a value greater than or equal to {min}",ec="Please enter a value less than or equal to {max}",tc="The value range is set incorrectly",nc="Please enter a value with a length greater than or equal to {min} and less than or equal to {max}",rc="The attachment size must be between 0MB and 1000MB",uc="Please fill in the total score setting",ic="The total score cannot be less than 1",oc="The default value must be between {min} and {max}",ac="The number of attachments uploaded must be between {min} and {max}",sc="Please re-select the optional quantity",cc="The maximum length of the control must be greater than the minimum length",fc="The minimum length of the control must be less than the maximum length",lc="Please select the correct option setting",hc="Option ID cannot be repeated",dc="Please enter at least one option",pc="Please bind the data source",Dc="Please bind the stored value",gc="Please bind the service",vc="At least one display value must be bound",mc="Please select a province",yc="Please select a city",Ec="Please select a district",Ac="The minimum number of lines to fill in cannot be less than 0",Cc="The number of rows cannot be less than {min} rows",Fc="Please enter the column width",wc="Please set the logical relationship of all rule conditions",bc="Please complete all rules and conditions",Bc="please select control",_c="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",Sc="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Mc="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Ic="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Nc="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",xc="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",Oc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Rc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Tc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Pc="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",$c="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",jc="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Lc="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",qc="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",kc="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",Vc="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",Uc="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",Hc="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",zc={isNotNumber:Ts,isNotString:Ps,isNotObject:$s,isNotArray:js,isNotBoolean:Ls,runtimeRequired:qs,pleaseEnterCaption:ks,pleaseEnterCaptionTip:Vs,pleaseEnterPlaceholder:Us,pleaseEnterFieldCode:Hs,pleaseEnterForm:zs,pleaseEnterList:Ws,pleaseEnterProcess:Zs,pleaseEnterLabel:Gs,pleaseEnterValue:Xs,bizKeyNotBindFiled:Ks,pleaseSelectOneField:Js,pleaseEnterNumberRange:Qs,pleaseEnterAValueGreaterThanMin:Ys,pleaseEnterAValueLessThanMax:ec,numberRangeSetError:tc,stringRangeError:nc,attachmentMaxSize:rc,pleaseEnterTotalScoreSetting:uc,theTotalScoreMustNotBeLessThan1:ic,scoreDefaultValueRange:oc,attachmentLimitError:ac,PleaseReselectTheOptionalQuantity:sc,TheMaximumLengthIsGreaterThanTheMinimumLength:cc,TheMinimumLengthIsGreaterThanTheMaximumLength:fc,PleaseSelectTheCorrectOptionSettings:lc,optionIdIsRepeat:hc,optionIsRequired:dc,pleaseEnterDataCode:pc,pleaseEnterValueFieldCode:Dc,pleaseEnterSvcCode:gc,pleaseBindAtLeastOneDisplayValue:vc,pleaseSelectProvince:mc,pleaseSelectCity:yc,pleaseSelectDistrict:Ec,limitRowsCannotBeLessThan0:Ac,TheNumberOfRowsCannotBeLessThanMinRows:Cc,pleaseEnterColumnWidth:Fc,pleaseSetTheLogicalRelationshipOfAllRuleConditions:wc,pleaseCompleteAllRulesAndConditions:bc,pleaseSelectControl:Bc,pleaseSelectDashboard:_c,theViewNameCannotBeEmpty:Sc,pleaseSelectOcrType:Mc,pleaseSelectAtLeastOneFieldToFillIn:Ic,pleaseChooseAtLeastOne:Nc,pleaseEnterButtonContent:xc,pleaseEnterDataCodeInDataSetting:Oc,pleaseEnterValueFieldCodeInDataSetting:Rc,pleaseEnterSvcCodeInDataSetting:Tc,pleaseBindAtLeastOneDisplayValueInDataSetting:Pc,rootNodeIsRequiredInDataSetting:$c,pleaseEnterMaxHeight:jc,pleaseEnter:Lc,pleaseEnterWatermark:qc,pleaseEnterFileName:kc,pleaseUploadAtLeastOnePrintTemplate:Vc,pleaseAssignBusiness:Uc,pleaseAssignExternal:Hc},Wc="\u6570\u5B57\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Zc="\u6587\u5B57\u5217\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Gc="\u5BFE\u8C61\u7269\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Xc="\u6570\u5B57\u7D44\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Kc="\u30D6\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Jc="{caption}\u5FC5\u9808",Qc="\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Yc="\u6C17\u6CE1\u306E\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",ef="\u30D2\u30F3\u30C8\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",tf="\u30C7\u30FC\u30BF\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",nf="\u30B7\u30FC\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",rf="\u30EA\u30B9\u30C8\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",uf="\u30D5\u30ED\u30FC\u3092\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",of="\u8868\u793A\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",af="\u4FDD\u5B58\u5024\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",sf="\u30B7\u30FC\u30C8\u756A\u53F7\u304C\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",cf="\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u8868\u793A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",ff="{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",lf="{min}\u4EE5\u4E0A\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",hf="{max}\u672A\u6E80\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",df="\u6570\u5024\u7BC4\u56F2\u8A2D\u5B9A\u30A8\u30E9\u30FC",pf="\u9577\u3055\u304C{min}\u4EE5\u4E0A{max}\u4EE5\u4E0B\u306E\u5024\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",Df="\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F0MB\u304B\u30891000MB\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",gf="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",vf="\u30C8\u30FC\u30BF\u30EB\u70B9\u6570\u306F\uFF11\u4EE5\u4E0A\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",mf="\u57FA\u672C\u8A2D\u5B9A\u5024\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059\u3002",yf="\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u4EF6\u6570\u306F{min}\u304B\u3089{max}\u306E\u9593\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Ef="\u6570\u91CF\u3092\u518D\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Af="\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",Cf="\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",Ff="\u6B63\u78BA\u306A\u8A2D\u5B9A\u5024\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",wf="ID\u306F\u91CD\u8907\u3057\u306A\u3044\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",bf="\u6700\u4F4E\uFF11\u70B9\u3092\u9078\u3076\u3088\u3046\u306B\u304A\u9858\u3044\u3057\u307E\u3059",Bf="\u5143\u30C7\u30FC\u30BF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",_f="\u4FDD\u5B58\u5024\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Sf="\u30B5\u30FC\u30D3\u30B9\u306B\u30EA\u30F3\u30AF\u3057\u3066\u4E0B\u3055\u3044",Mf="\u8868\u793A\u5024\u3092\u30EA\u30F3\u30AF\u3057\u76F4\u3057\u3057\u3066\u4E0B\u3055\u3044",If="\u7701\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Nf="\u5E02\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",xf="\u533A\u3092\u9078\u629E\u3057\u3066\u4E0B\u3055\u3044",Of="\u6700\u5C0F\u5024\u306F\uFF10\u3088\u308A\u5927\u304D\u304F\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",Rf="\u6700\u4F4E\u884C\u6570\u306F{min}\u884C\u3067\u304A\u9858\u3044\u3057\u307E\u3059",Tf="\u5217\u5E45\u3092\u5165\u529B\u3057\u3066\u4E0B\u3055\u3044",Pf="\u5168\u3066\u306E\u6761\u4EF6\u306E\u30ED\u30B8\u30C3\u30AF\u3092\u8A2D\u5B9A\u3057\u3066\u4E0B\u3055\u3044",$f="\u5168\u3066\u306E\u6761\u4EF6\u3092\u5B8C\u6210\u3055\u305B\u3066\u4E0B\u3055\u3044",jf="please select control",Lf="\u8BF7\u9009\u62E9\u4EEA\u8868\u76D8",qf="\u89C6\u56FE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",kf="\u8BF7\u9009\u62E9\u8BC6\u522B\u7C7B\u578B",Vf="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B57\u6BB5\u8FDB\u884C\u586B\u5145",Uf="\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A",Hf="\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u9898",zf="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u4E1A\u52A1\u6A21\u578B",Wf="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u5B58\u50A8\u503C",Zf="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u7ED1\u5B9A\u670D\u52A1",Gf="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u81F3\u5C11\u7ED1\u5B9A\u4E00\u4E2A\u663E\u793A\u503C",Xf="\u8BF7\u5728\u6570\u636E\u8BBE\u7F6E\u4E2D\u9009\u62E9\u6839\u8282\u70B9",Kf="\u8BF7\u8F93\u5165\u6700\u5927\u9AD8\u5EA6",Jf="\u8F93\u5165\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A",Qf="\u6C34\u5370\u4E0D\u80FD\u4E3A\u7A7A",Yf="\u6587\u4EF6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",el="\u8BF7\u81F3\u5C11\u4E0A\u4F20\u4E00\u4E2A\u6253\u5370\u6A21\u7248\uFF01",tl="\u8BF7\u9009\u62E9\u6307\u5B9A\u4E1A\u52A1\u90E8\u95E8",nl="\u8BF7\u9009\u62E9\u6307\u5B9A\u5916\u90E8\u7EC4\u7EC7",rl={isNotNumber:Wc,isNotString:Zc,isNotObject:Gc,isNotArray:Xc,isNotBoolean:Kc,runtimeRequired:Jc,pleaseEnterCaption:Qc,pleaseEnterCaptionTip:Yc,pleaseEnterPlaceholder:ef,pleaseEnterFieldCode:tf,pleaseEnterForm:nf,pleaseEnterList:rf,pleaseEnterProcess:uf,pleaseEnterLabel:of,pleaseEnterValue:af,bizKeyNotBindFiled:sf,pleaseSelectOneField:cf,pleaseEnterNumberRange:ff,pleaseEnterAValueGreaterThanMin:lf,pleaseEnterAValueLessThanMax:hf,numberRangeSetError:df,stringRangeError:pf,attachmentMaxSize:Df,pleaseEnterTotalScoreSetting:gf,theTotalScoreMustNotBeLessThan1:vf,scoreDefaultValueRange:mf,attachmentLimitError:yf,PleaseReselectTheOptionalQuantity:Ef,TheMaximumLengthIsGreaterThanTheMinimumLength:Af,TheMinimumLengthIsGreaterThanTheMaximumLength:Cf,PleaseSelectTheCorrectOptionSettings:Ff,optionIdIsRepeat:wf,optionIsRequired:bf,pleaseEnterDataCode:Bf,pleaseEnterValueFieldCode:_f,pleaseEnterSvcCode:Sf,pleaseBindAtLeastOneDisplayValue:Mf,pleaseSelectProvince:If,pleaseSelectCity:Nf,pleaseSelectDistrict:xf,limitRowsCannotBeLessThan0:Of,TheNumberOfRowsCannotBeLessThanMinRows:Rf,pleaseEnterColumnWidth:Tf,pleaseSetTheLogicalRelationshipOfAllRuleConditions:Pf,pleaseCompleteAllRulesAndConditions:$f,pleaseSelectControl:jf,pleaseSelectDashboard:Lf,theViewNameCannotBeEmpty:qf,pleaseSelectOcrType:kf,pleaseSelectAtLeastOneFieldToFillIn:Vf,pleaseChooseAtLeastOne:Uf,pleaseEnterButtonContent:Hf,pleaseEnterDataCodeInDataSetting:zf,pleaseEnterValueFieldCodeInDataSetting:Wf,pleaseEnterSvcCodeInDataSetting:Zf,pleaseBindAtLeastOneDisplayValueInDataSetting:Gf,rootNodeIsRequiredInDataSetting:Xf,pleaseEnterMaxHeight:Kf,pleaseEnter:Jf,pleaseEnterWatermark:Qf,pleaseEnterFileName:Yf,pleaseUploadAtLeastOnePrintTemplate:el,pleaseAssignBusiness:tl,pleaseAssignExternal:nl},ul={zhCN:Rs,enUS:zc,jaJP:rl},Ve;(function(e){e.Number="Number",e.Operator="Operator",e.VariableInMainTable="VariableInMainTable",e.VariableInCurrentSubTable="VariableInCurrentSubTable",e.VariableInOtherSubTable="VariableInOtherSubTable",e.UndefinedVariable="UndefinedVariable"})(Ve||(Ve={}));var Tt;(function(e){e.SUM="SUM",e.AVG="AVG",e.MAX="MAX",e.MIN="MIN"})(Tt||(Tt={}));var li="zh-CN";function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ke;(function(e){e.BASE="base",e.FORM="form",e.LAYOUT="layout",e.WRAP="wrap",e.COLUMN="column",e.LIST="list",e.SEARCH="search"})(Ke||(Ke={}));var Q;(function(e){e.TITLE="title",e.LINK="link",e.BUTTON="button",e.DIVIDER="divider",e.TEXT="text",e.CREATE_FORM_LIST_BUTTON="list-page-btn-create-form",e.BATCH_SUBMISSION_LIST_BUTTON="list-page-btn-batch-submission",e.SUBMISSION_RECORD_LIST_BUTTON="list-page-btn-submission-record",e.IMPORT_RECORD_LIST_BUTTON="list-page-btn-import-record",e.EXPORT_RECORD_LIST_BUTTON="list-page-btn-export-record",e.EXPORT_LIST_BUTTON="list-page-btn-export-list",e.LIST_SELECT_BUTTON="list-select-button",e.FORM_SELECT_BUTTON="form-select-button",e.LIST_VIEW_SELECT="list-view-select",e.TEXT_OCR_BUTTON="text-ocr-button",e.INVOICE_CHECK_BUTTON="invoice-check-button",e.LIST_PAGE_BTN_BATCH_PRINT="list-page-btn-batch-print",e.LIST_PAGE_BTN_BATCH_PRINT_RECORD="list-page-btn-batch-print-record",e.VARCHAR_COLUMN="varchar-column",e.TEXT_COLUMN="text-column",e.DECIMAL_COLUMN="decimal-column",e.TIMESCOPE_COLUMN="timescope-column",e.TIMESTAMP_COLUMN="timestamp-column",e.ARRAY_COLUMN="array-column",e.DEPARTMENT_COLUMN="department-column",e.AUTO_NUMBER_COLUMN="auto-number-column",e.FILE_COLUMN="file-column",e.IMAGE_COLUMN="image-column",e.PEOPLE_COLUMN="people-column",e.LOCATION_COLUMN="location-column",e.CUSTOM_COLUMN="custom-column",e.ORDER_COLUMN="order-column",e.OPERATION_COLUMN="operation-column",e.EMPLOYEE_COLUMN="employee-column",e.ADDRESS="address",e.AMOUNT="amount",e.ATTACHMENT="attachment",e.AUTO_NUMBER="auto-number",e.CALC="calc",e.CHECKBOX="checkbox",e.DATE_PICKER="date-picker",e.DATE_RANGE="date-range",e.DEPARTMENT="department",e.EMPLOYEE="employee",e.IMAGE="image",e.INPUT="input",e.NUMBER="number",e.RADIO="radio",e.RICH_TEXT="rich-text",e.SCORE="score",e.SEARCH_DATE_RANGE="search-date-range",e.SEARCH_NUMBER_RANGE="search-number-range",e.SEARCH_INPUT="search-input",e.SELECT="select",e.SELECT_MULTIPLE="select-multiple",e.SELECT_RELATION="select-relation",e.VUE_FORM_ITEM="vue-form-item",e.TEXTAREA="textarea",e.EMAIL="email",e.FOOTER="footer",e.HEADER="header",e.ID_CARD="id-card",e.MOBILE="mobile",e.PHONE="phone",e.RADIO_IMAGE="radio-image",e.ELECTRONIC_SIGNATURE="electronic-signature",e.WPS="wps",e.CARD_GROUP="card-group",e.COL="col",e.GRID="grid",e.GRID_ROW="grid-row",e.GRID_TABLE_COLUMN="grid-table-column",e.ROW="row",e.TWO_COLUMNS="two-columns",e.SUBTABLE_COLUMN="subtable-column",e.SUBTABLE_ROW="subtable-row",e.TAB="tab",e.TAB_PANE="tab-pane",e.TOOLBOX="toolbox",e.DATA_VIEW="data-view",e.LIST_VIEW="list-view",e.SUBTABLE="subtable",e.GRID_TABLE="grid-table",e.SIMPLE_SEARCH="simple-search",e.PAGINATION="pagination",e.CHECKBOX_IMAGE="checkbox-image",e.DASHBOARD="dashboard",e.TREE="tree",e.EMPLOYEE2="employee2",e.DEPARTMENT2="department2"})(Q||(Q={}));var K;(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"})(K||(K={}));var _e;_e={},Re(_e,K.ARRAY,Q.ARRAY_COLUMN),Re(_e,K.AUTO_NUMBER,Q.AUTO_NUMBER_COLUMN),Re(_e,K.DECIMAL,Q.DECIMAL_COLUMN),Re(_e,K.DEPARTMENTS,Q.DEPARTMENT_COLUMN),Re(_e,K.FILE,Q.FILE_COLUMN),Re(_e,K.IMAGE,Q.IMAGE_COLUMN),Re(_e,K.ADDRESS,Q.LOCATION_COLUMN),Re(_e,K.EMPLOYEES,Q.EMPLOYEE_COLUMN),Re(_e,K.TEXT,Q.TEXT_COLUMN),Re(_e,K.TIMESCOPE,Q.TIMESCOPE_COLUMN),Re(_e,K.TIMESTAMP,Q.TIMESTAMP_COLUMN),Re(_e,K.VARCHAR,Q.VARCHAR_COLUMN),Re(_e,K.RELATION,Q.VARCHAR_COLUMN);var hi;(function(e){e.YEAR="year",e.MONTH="month",e.DATE="date",e.DATETIME="datetime"})(hi||(hi={}));var di="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",il=di+"0123456789";function Fr(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:15,t="",n=0;n<e;n++){var r=n===0?di:il,u=Math.random()*r.length;t+=r[parseInt(String(u),10)]}return t}function wr(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 ol(e){if(Array.isArray(e))return wr(e)}function al(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sl(){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 Bn(e,t,n){return sl()?Bn=Reflect.construct:Bn=function(u,i,o){var c=[null];c.push.apply(c,i);var s=Function.bind.apply(u,c),l=new s;return o&&un(l,o.prototype),l},Bn.apply(null,arguments)}function rn(e){return rn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},rn(e)}function Di(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&&un(e,t)}function cl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function fl(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ll(){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 hl(e,t){return t&&(dl(t)==="object"||typeof t=="function")?t:al(e)}function un(e,t){return un=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},un(e,t)}function gi(e){return ol(e)||fl(e)||pl(e)||ll()}var dl=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function pl(e,t){if(!!e){if(typeof e=="string")return wr(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 wr(e,t)}}function br(e){var t=typeof Map=="function"?new Map:void 0;return br=function(r){if(r===null||!cl(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 Bn(r,arguments,rn(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),un(u,r)},br(e)}function Dl(){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 vi(e){var t=Dl();return function(){var r=rn(e),u;if(t){var i=rn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return hl(this,u)}}var Br=console;function dt(){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=Br).warn.apply(r,["\u{1F9D0} Driven Warning:"+t[0]].concat(gi(u)))}function _r(){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=Br).log.apply(r,["\u{1F680} Driven Log:"+t[0]].concat(gi(u)))}function gl(e){return e+" \u{1F41B}\u{1F41B}\u{1F41B}"}var Sr=function(e){Di(n,e);var t=vi(n);function n(r){pi(this,n);var u;return u=t.call(this,r),u.name="\u{1F4A5} Driven Error",u.message=r?gl(r):"An unknown error occurred in the Driven, please contact the person in charge \u{1F691}\u{1F691}\u{1F691}",u}return n}(br(Error)),vl=function(e){Di(n,e);var t=vi(n);function n(r){pi(this,n);var u;return u=t.call(this,r),u.name="\u{1F6A8} Driven Reference Error",u}return n}(Sr);function at(e){throw new Sr(e)}function mi(e){throw new vl(e)}function _n(e){Br.error(new Sr(e))}function _t(e,t){Array.isArray(e)&&e.map(function(n){switch(n.controlType){case"layout":_t(n==null?void 0:n.children,t);break;case"search":_t(n==null?void 0:n.children,t);break;case"form":t(n)}})}var ml=Object.prototype.toString;function yi(e,t){return ml.call(e)==="[object "+t+"]"}function yl(e){return yi(e,"String")}function El(e){return yi(e,"Promise")}var Al=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();El(r)?r.then(function(u){n._messageCache.clear(),n.messages[n.localeInMessageKey]=u}):this.messages[this.localeInMessageKey]=r},e.prototype.getMessageData=function(){var t=this._messages[this.localeInMessageKey];return typeof t=="function"?t():t},e.prototype.translate=function(t,n,r){var u=this.getMessage(t);return u?this.formatMessage(u,r):this.formatMessage(n,r)},e.prototype.getMessage=function(t){if(this._messageCache.has(t))return this._messageCache.get(t);var n=this.getPathArray(t),r=n.reduce(function(u,i,o,c){if(u!==void 0){var s=u[i];if(!(o===c.length-1&&!yl(s)))return s}},this.message);return this._messageCache.set(t,r),r},e.prototype.formatMessage=function(t,n){return n?t.replace(this.variableRegExp,function(r,u){var i=n[u];return i!==void 0?String(i):r}):t},e.prototype.getPreImport=function(t){var n;if(window.okI18nPreImport){var r=this.getLocaleInMessageKey(t);return window.okI18nPreImport.hasOwnProperty(r)?window.okI18nPreImport:(n={},n[r]=window.okI18nPreImport,n)}},e.prototype.getPathArray=function(t){return t.split(".")},e.prototype.getLocaleInMessageKey=function(t){return t.replace(/-/g,"")},Object.defineProperty(e.prototype,"$t",{get:function(){return this.translate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localeInMessageKey",{get:function(){return this.getLocaleInMessageKey(this.locale)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){var t;return(t=this.messages[this.localeInMessageKey])!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e}();function Cl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ue=function(){function e(){Cl(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]:li;return new Al({locale:n,messages:ul})},e.setLocale=function(n){return this.$i18n.setLocale(n)},e}();Ue.$i18n=Ue.resetI18n();function Ei(e,t,n){var r=t.replace(/\[(\d)]/g,function(i,o){return"."+o}).split("."),u=!1;return r.reduce(function(i,o,c,s){var l=i;if(!!i){if(!Object.prototype.hasOwnProperty.call(i,o)){dt("Can not set ".concat(t,"'s ").concat(o," property in current %o, Because there is no ").concat(o," property on the %o"),i,i);return}return c===s.length-1&&!Object.is(l[o],n)&&(l[o]=n,u=!0),l[o]}},e),u}var je=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ai(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mr={exports:{}};(function(e){(function(t){var n=function(g,A,M){if(!l(A)||a(A)||h(A)||d(A)||s(A))return A;var w,x=0,P=0;if(f(A))for(w=[],P=A.length;x<P;x++)w.push(n(g,A[x],M));else{w={};for(var L in A)Object.prototype.hasOwnProperty.call(A,L)&&(w[g(L,M)]=n(g,A[L],M))}return w},r=function(g,A){A=A||{};var M=A.separator||"_",w=A.split||/(?=[A-Z])/;return g.split(w).join(M)},u=function(g){return p(g)?g:(g=g.replace(/[\-_\s]+(.)?/g,function(A,M){return M?M.toUpperCase():""}),g.substr(0,1).toLowerCase()+g.substr(1))},i=function(g){var A=u(g);return A.substr(0,1).toUpperCase()+A.substr(1)},o=function(g,A){return r(g,A).toLowerCase()},c=Object.prototype.toString,s=function(g){return typeof g=="function"},l=function(g){return g===Object(g)},f=function(g){return c.call(g)=="[object Array]"},a=function(g){return c.call(g)=="[object Date]"},h=function(g){return c.call(g)=="[object RegExp]"},d=function(g){return c.call(g)=="[object Boolean]"},p=function(g){return g=g-0,g===g},D=function(g,A){var M=A&&"process"in A?A.process:A;return typeof M!="function"?g:function(w,x){return M(w,g,x)}},m={camelize:u,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(g,A){return n(D(u,A),g)},decamelizeKeys:function(g,A){return n(D(o,A),g,A)},pascalizeKeys:function(g,A){return n(D(i,A),g)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=m:t.humps=m})(je)})(Mr);function he(e){if(e!==void 0)return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function Je(e){return Object.prototype.toString.call(e)==="[object Object]"}function Fl(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}function Pt(e){return Array.isArray(e)}function Te(e){return typeof e=="string"}function Sn(e){return typeof e=="number"}function Ci(e){return typeof e=="function"}function wl(e){return Pt(e)&&e.every(function(t){return Te(t)})}function bl(e){return Pt(e)&&e.every(function(t){return Sn(t)||t===""})}function Fi(e){return/^\[.*?]$/.test(e)}function Mn(e){return/^{.*?}$/.test(e)}function Ir(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 Bl(e){if(Array.isArray(e))return Ir(e)}function wi(e,t,n,r,u,i,o){try{var c=e[i](o),s=c.value}catch(l){n(l);return}c.done?t(s):Promise.resolve(s).then(r,u)}function _l(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){wi(i,r,u,o,c,"next",s)}function c(s){wi(i,r,u,o,c,"throw",s)}o(void 0)})}}function Sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ml(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Il(){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 Nr(e){return Bl(e)||Ml(e)||Nl(e)||Il()}function Nl(e,t){if(!!e){if(typeof e=="string")return Ir(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 Ir(e,t)}}var xl=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(f){return s([l,f])}}function s(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},bi=function(){function e(){Sl(this,e),this._events=new Map,this.debug=!1}var t=e.prototype;return t.emit=function(r){for(var u=arguments.length,i=new Array(u>1?u-1:0),o=1;o<u;o++)i[o-1]=arguments[o];var c=this;return _l(function(){var s,l,f,a,h,d,p,D,m,g,A,M;return xl(this,function(w){switch(w.label){case 0:if(s=c._events.get(r),l=[],!s)return[3,10];f=s.slice(),a=!0,h=!1,d=void 0,w.label=1;case 1:w.trys.push([1,8,9,10]),p=f[Symbol.iterator](),w.label=2;case 2:if(a=(D=p.next()).done)return[3,7];if(m=D.value,!s.includes(m))return[3,6];w.label=3;case 3:return w.trys.push([3,5,,6]),c.debug&&_r.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(m.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+m.applyingPluginName:"",", \u5F53\u524D\u6267\u884C\u51FD\u6570\u7684\u53C2\u6570\u4E3A").concat(i.map(function(){return"%o"}).join(","),"\u3002")].concat(Nr(i))),[4,m.apply(null,Nr(i))];case 4:return g=w.sent(),c.debug&&_r.apply(void 0,["\u6B63\u5728\u6267\u884C ".concat(r," \u4E8B\u4EF6: ").concat(m.applyingPluginName?"\u5F53\u524D\u6267\u884C\u7684\u63D2\u4EF6\u4E3A:"+m.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(Nr(i),[g])),l.push(g),g===!1?[3,7]:[3,6];case 5:return A=w.sent(),_n(String(A)),[3,6];case 6:return a=!0,[3,2];case 7:return[3,10];case 8:return M=w.sent(),h=!0,d=M,[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 Ol(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Rl=[{key:"on_click",name:"\u70B9\u51FB\u65F6",code:"click"},{key:"on_click_finish",name:"\u6267\u884C\u5B8C\u6210\u65F6",code:"click-finish"},{key:"on_change",name:"\u503C\u53D1\u751F\u53D8\u5316\u65F6",code:"change"},{key:"on_search",name:"\u641C\u7D22\u65F6",code:"search"},{key:"on_list_change",name:"\u5217\u8868\u6570\u636E\u53D8\u5316\u65F6",code:"list-change"},{key:"on_list_search",name:"\u5217\u8868\u6570\u636E\u67E5\u8BE2\u6784\u5EFA\u65F6",code:"list-search"},{key:"on_list_mounted",name:"\u5217\u8868\u6570\u636E\u8FD4\u56DE\u65F6",code:"list-mounted"},{key:"on_list_delete",name:"\u5217\u8868\u6570\u636E\u5220\u9664\u65F6",code:"list-delete"},{key:"on_input",name:"\u7528\u6237\u8F93\u5165\u65F6",code:"input"},{key:"on_blur",name:"\u5931\u53BB\u7126\u70B9\u65F6",code:"blur"},{key:"on_focus",name:"\u83B7\u53D6\u7126\u70B9\u65F6",code:"focus"},{key:"on_wps_open",name:"\u6253\u5F00\u6587\u4EF6\u65F6",code:"wps-open"},{key:"on_wps_save",name:"\u4FDD\u5B58\u6587\u4EF6\u65F6",code:"wps-save"},{key:"on_wps_rename",name:"\u91CD\u547D\u540D\u65F6",code:"wps-rename"},{key:"on_list_actions",name:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6",code:"list-actions"},{key:"on_list_render_operation",name:"\u64CD\u4F5C\u5217\u6E32\u67D3\u65F6",code:"list-render-operation"},{key:"on_list_rowclick",name:"\u884C\u70B9\u51FB\u65F6",code:"list-rowclick"},{key:"on_list_before_rowdelete",name:"\u884C\u5220\u9664\u524D",code:"list-before-rowdelete"},{key:"on_list_before_import",name:"\u5217\u8868\u6570\u636E\u5BFC\u5165\u524D",code:"list-before-import"},{key:"on_list_rows_checked",name:"\u884C\u9009\u4E2D\u65F6",code:"list-rows-checked"}],Bi=function(){function e(){Ol(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}();Bi.events=Rl;function Tl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _i=[],In=function(){function e(n){Tl(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__||at("".concat(r.name," is not a Control"));var u=this._controls.findIndex(function(i){return i.controlType===r.controlType});return u>-1&&(dt("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===Ke.LAYOUT},t.isFormControl=function(r){return r.controlType===Ke.FORM},t.isListControl=function(r){return r.controlType===Ke.LIST},t.isColumnControl=function(r){return r.controlType===Ke.COLUMN},t.createControl=function(r,u){var i=this;if(Array.isArray(r))return r.map(function(f){return i.createControl(f,u)});r.children&&(r.children=r.children.map(function(f){return i.createControl(f,u)})),this.isListControl(r)&&r.props.headers&&(r.props.headers=r.props.headers.map(function(f){return i.createControl(f,u)}));var o=this.getControlFormType(r.type);if(o){var c=r;if(typeof u=="function"){var s=u(c);s&&(c=s)}var l=new o(c);return l}else at("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__)&&at("".concat(r," is can't register as a Control"));var o=this.staticControls.findIndex(function(c){return c.Designer.controlType===u.controlType});return o>-1&&(dt("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}();In.staticControls=_i,In.staticRegisteredTypes=new Set(_i.map(function(e){return e.Designer.controlType})),In.staticRegisteredConfigs=new Map;function St(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var on=function e(t){St(this,e);var n;this.dataCode=(n=t==null?void 0:t.dataCode)!==null&&n!==void 0?n:"";var r;this.fieldCode=(r=t==null?void 0:t.fieldCode)!==null&&r!==void 0?r:"";var u;this.fieldType=(u=t==null?void 0:t.fieldType)!==null&&u!==void 0?u:""},pt=function e(){St(this,e)},Nn=function e(t){St(this,e);var n;this.amount=(n=t==null?void 0:t.amount)!==null&&n!==void 0?n:"";var r;this.currency=(r=t==null?void 0:t.currency)!==null&&r!==void 0?r:xr.CNY},xn=function e(t){St(this,e);var n;this.min=(n=t==null?void 0:t.min)!==null&&n!==void 0?n:"";var r;this.max=(r=t==null?void 0:t.max)!==null&&r!==void 0?r:""},On=function e(t){St(this,e);var n;this.city=(n=t==null?void 0:t.city)!==null&&n!==void 0?n:"";var r;this.cityDisplay=(r=t==null?void 0:t.cityDisplay)!==null&&r!==void 0?r:"";var u;this.district=(u=t==null?void 0:t.district)!==null&&u!==void 0?u:"";var i;this.districtDisplay=(i=t==null?void 0:t.districtDisplay)!==null&&i!==void 0?i:"";var o;this.province=(o=t==null?void 0:t.province)!==null&&o!==void 0?o:"";var c;this.provinceDisplay=(c=t==null?void 0:t.provinceDisplay)!==null&&c!==void 0?c:""},Rn=function e(t){St(this,e);var n;this.result=(n=t==null?void 0:t.result)!==null&&n!==void 0?n:0;var r;this.unit=(r=t==null?void 0:t.unit)!==null&&r!==void 0?r:""},xr;(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"})(xr||(xr={}));var Si;(function(e){e.REQUIRED="required",e.IS_HIDE="isHide",e.IS_SHOW_UNIT="isShowUnit",e.IMD_SEARCH="immediatelySearch",e.MULTIPLE="multiple",e.SUBMIT_SELECT_CURRENCY="submitSelectCurrency",e.CAPTION="caption",e.IS_HIDE_CAPTION="isHideCaption",e.DEFAULT_SHOW_OPTIONS="defaultShowOptions",e.CAN_SEARCH="canSearch",e.CAN_CHECK="canCheck",e.CAN_EDIT="canEdit",e.CAN_DELETE="canDelete",e.SHOW_UPPER_CASE="showUpperCase",e.MICROMETER="micrometer",e.PRECISION="precision",e.PERCENTAGE="percentage",e.OPTIONAL_LEVEL="optionalLevel",e.CONTAINS_SUB_NODE="containsSubNode",e.DEFAULT_COLLAPSE="defaultCollapse",e.CAN_VIEW_FORM="canViewForm",e.SERVER_PAGINATION="serverPagination",e.IS_SHOW_CAPTION_TIP="isShowCaptionTip",e.ENCRYPTED="encrypted",e.IS_INLINE_EDIT="isInlineEdit",e.REVISIONS_MODE="revisionsMode",e.ALLOW_COPY_OPTIONS="allowCopyOptions"})(Si||(Si={}));var Or;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.READONLY=1]="READONLY",e[e.EDITABLE=2]="EDITABLE",e[e.PRINT=5]="PRINT"})(Or||(Or={}));var Pl=function e(t){St(this,e);var n;this.width=(n=t==null?void 0:t.width)!==null&&n!==void 0?n:"";var r;this.height=(r=t==null?void 0:t.height)!==null&&r!==void 0?r:"";var u;this.widthConfig=(u=t==null?void 0:t.widthConfig)!==null&&u!==void 0?u:"fill";var i;this.heightConfig=(i=t==null?void 0:t.heightConfig)!==null&&i!==void 0?i:"fill"};function $l(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jl(){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 jl()?Tn=Reflect.construct:Tn=function(u,i,o){var c=[null];c.push.apply(c,i);var s=Function.bind.apply(u,c),l=new s;return o&&sn(l,o.prototype),l},Tn.apply(null,arguments)}function an(e){return an=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},an(e)}function Ll(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&&sn(e,t)}function ql(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function kl(e,t){return t&&(Vl(t)==="object"||typeof t=="function")?t:$l(e)}function sn(e,t){return sn=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},sn(e,t)}var Vl=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Tr(e){var t=typeof Map=="function"?new Map:void 0;return Tr=function(r){if(r===null||!ql(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,an(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),sn(u,r)},Tr(e)}function Ul(){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=Ul();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 kl(this,u)}}var Mi=function e(t){Rr(this,e),this.isHide={type:"boolean"}},Ii=function(e){Ll(n,e);var t=Hl(n);function n(r){return Rr(this,n),t.call(this)}return n}(Tr(Array)),Mt=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Rr(this,e);var r;this.isHide=(r=t==null?void 0:t.isHide)!==null&&r!==void 0?r:!1,this.style=new Pl(t==null?void 0:t.style);var u;this.caption=(u=t==null?void 0:t.caption)!==null&&u!==void 0?u:n};Mt.Rules=Mi,Mt.RuntimeRules=Ii;function Qe(){return Qe=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},Qe.apply(this,arguments)}function zl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Pr(e){return Pr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pr(e)}function Pn(e,t){return Pn=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Pn(e,t)}function Wl(){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 $n(e,t,n){return Wl()?$n=Reflect.construct:$n=function(u,i,o){var c=[null];c.push.apply(c,i);var s=Function.bind.apply(u,c),l=new s;return o&&Pn(l,o.prototype),l},$n.apply(null,arguments)}function Zl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function $r(e){var t=typeof Map=="function"?new Map:void 0;return $r=function(r){if(r===null||!Zl(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 $n(r,arguments,Pr(this).constructor)}return u.prototype=Object.create(r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),Pn(u,r)},$r(e)}var Gl=/%[sdj%]/g,Ni=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(Ni=function(t,n){typeof console!="undefined"&&console.warn&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function jr(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 Pe(){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(Gl,function(c){if(c==="%%")return"%";if(r>=i)return c;switch(c){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(s){return"[Circular]"}break;default:return c}});return o}return u}function Xl(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function de(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Xl(t)&&typeof e=="string"&&!e)}function Kl(e,t,n){var r=[],u=0,i=e.length;function o(c){r.push.apply(r,c),u++,u===i&&n(r)}e.forEach(function(c){t(c,o)})}function xi(e,t,n){var r=0,u=e.length;function i(o){if(o&&o.length){n(o);return}var c=r;r=r+1,c<u?t(e[c],i):n([])}i([])}function Jl(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n])}),t}var Oi=function(e){zl(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}($r(Error));function Ql(e,t,n,r){if(t.first){var u=new Promise(function(a,h){var d=function(m){return r(m),m.length?h(new Oi(m,jr(m))):a()},p=Jl(e);xi(p,n,d)});return u.catch(function(a){return a}),u}var i=t.firstFields||[];i===!0&&(i=Object.keys(e));var o=Object.keys(e),c=o.length,s=0,l=[],f=new Promise(function(a,h){var d=function(D){if(l.push.apply(l,D),s++,s===c)return r(l),l.length?h(new Oi(l,jr(l))):a()};o.length||(r(l),a()),o.forEach(function(p){var D=e[p];i.indexOf(p)!==-1?xi(D,n,d):Kl(D,n,d)})});return f.catch(function(a){return a}),f}function Ri(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 Ti(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]=Qe(Qe({},e[n]),r):e[n]=r}}return e}function Pi(e,t,n,r,u,i){e.required&&(!n.hasOwnProperty(e.field)||de(t,i||e.type))&&r.push(Pe(u.messages.required,e.fullField))}function Yl(e,t,n,r,u){(/^\s+$/.test(t)||t==="")&&r.push(Pe(u.messages.whitespace,e.fullField))}var Lr={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},cn={integer:function(t){return cn.number(t)&&parseInt(t,10)===t},float:function(t){return cn.number(t)&&!cn.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"&&!cn.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&!!t.match(Lr.email)&&t.length<255},url:function(t){return typeof t=="string"&&!!t.match(Lr.url)},hex:function(t){return typeof t=="string"&&!!t.match(Lr.hex)}};function e0(e,t,n,r,u){if(e.required&&t===void 0){Pi(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?cn[o](t)||r.push(Pe(u.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Pe(u.messages.types[o],e.fullField,e.type))}function t0(e,t,n,r,u){var i=typeof e.len=="number",o=typeof e.min=="number",c=typeof e.max=="number",s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,f=null,a=typeof t=="number",h=typeof t=="string",d=Array.isArray(t);if(a?f="number":h?f="string":d&&(f="array"),!f)return!1;d&&(l=t.length),h&&(l=t.replace(s,"_").length),i?l!==e.len&&r.push(Pe(u.messages[f].len,e.fullField,e.len)):o&&!c&&l<e.min?r.push(Pe(u.messages[f].min,e.fullField,e.min)):c&&!o&&l>e.max?r.push(Pe(u.messages[f].max,e.fullField,e.max)):o&&c&&(l<e.min||l>e.max)&&r.push(Pe(u.messages[f].range,e.fullField,e.min,e.max))}var $t="enum";function n0(e,t,n,r,u){e[$t]=Array.isArray(e[$t])?e[$t]:[],e[$t].indexOf(t)===-1&&r.push(Pe(u.messages[$t],e.fullField,e[$t].join(", ")))}function r0(e,t,n,r,u){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Pe(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(Pe(u.messages.pattern.mismatch,e.fullField,t,e.pattern))}}}var Z={required:Pi,whitespace:Yl,type:e0,range:t0,enum:n0,pattern:r0};function u0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t,"string")&&!e.required)return n();Z.required(e,t,r,i,u,"string"),de(t,"string")||(Z.type(e,t,r,i,u),Z.range(e,t,r,i,u),Z.pattern(e,t,r,i,u),e.whitespace===!0&&Z.whitespace(e,t,r,i,u))}n(i)}function i0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&Z.type(e,t,r,i,u)}n(i)}function o0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&(Z.type(e,t,r,i,u),Z.range(e,t,r,i,u))}n(i)}function a0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&Z.type(e,t,r,i,u)}n(i)}function s0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),de(t)||Z.type(e,t,r,i,u)}n(i)}function c0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&(Z.type(e,t,r,i,u),Z.range(e,t,r,i,u))}n(i)}function f0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&(Z.type(e,t,r,i,u),Z.range(e,t,r,i,u))}n(i)}function l0(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();Z.required(e,t,r,i,u,"array"),t!=null&&(Z.type(e,t,r,i,u),Z.range(e,t,r,i,u))}n(i)}function h0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&Z.type(e,t,r,i,u)}n(i)}var d0="enum";function p0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u),t!==void 0&&Z[d0](e,t,r,i,u)}n(i)}function D0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t,"string")&&!e.required)return n();Z.required(e,t,r,i,u),de(t,"string")||Z.pattern(e,t,r,i,u)}n(i)}function g0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t,"date")&&!e.required)return n();if(Z.required(e,t,r,i,u),!de(t,"date")){var c;t instanceof Date?c=t:c=new Date(t),Z.type(e,c,r,i,u),c&&Z.range(e,c.getTime(),r,i,u)}}n(i)}function v0(e,t,n,r,u){var i=[],o=Array.isArray(t)?"array":typeof t;Z.required(e,t,r,i,u,o),n(i)}function qr(e,t,n,r,u){var i=e.type,o=[],c=e.required||!e.required&&r.hasOwnProperty(e.field);if(c){if(de(t,i)&&!e.required)return n();Z.required(e,t,r,o,u,i),de(t,i)||Z.type(e,t,r,o,u)}n(o)}function m0(e,t,n,r,u){var i=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(de(t)&&!e.required)return n();Z.required(e,t,r,i,u)}n(i)}var fn={string:u0,method:i0,number:o0,boolean:a0,regexp:s0,integer:c0,float:f0,array:l0,object:h0,enum:p0,pattern:D0,date:g0,url:qr,hex:qr,email:qr,required:v0,any:m0};function kr(){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 Vr=kr();function Dt(e){this.rules=null,this._messages=Vr,this.define(e)}Dt.prototype={messages:function(t){return t&&(this._messages=Ti(kr(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var n,r;for(n in t)t.hasOwnProperty(n)&&(r=t[n],this.rules[n]=Array.isArray(r)?r:[r])},validate:function(t,n,r){var u=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var i=t,o=n,c=r;if(typeof o=="function"&&(c=o,o={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(),Promise.resolve();function s(D){var m,g=[],A={};function M(w){if(Array.isArray(w)){var x;g=(x=g).concat.apply(x,w)}else g.push(w)}for(m=0;m<D.length;m++)M(D[m]);g.length?A=jr(g):(g=null,A=null),c(g,A)}if(o.messages){var l=this.messages();l===Vr&&(l=kr()),Ti(l,o.messages),o.messages=l}else o.messages=this.messages();var f,a,h={},d=o.keys||Object.keys(this.rules);d.forEach(function(D){f=u.rules[D],a=i[D],f.forEach(function(m){var g=m;typeof g.transform=="function"&&(i===t&&(i=Qe({},i)),a=i[D]=g.transform(a)),typeof g=="function"?g={validator:g}:g=Qe({},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 Ql(h,o,function(D,m){var g=D.rule,A=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");A=A&&(g.required||!g.required&&D.value),g.field=D.field;function M(P,L){return Qe(Qe({},L),{},{fullField:g.fullField+"."+P})}function w(P){P===void 0&&(P=[]);var L=P;if(Array.isArray(L)||(L=[L]),!o.suppressWarning&&L.length&&Dt.warning("async-validator:",L),L.length&&g.message!==void 0&&(L=[].concat(g.message)),L=L.map(Ri(g)),o.first&&L.length)return p[g.field]=1,m(L);if(!A)m(L);else{if(g.required&&!D.value)return g.message!==void 0?L=[].concat(g.message).map(Ri(g)):o.error&&(L=[o.error(g,Pe(o.messages.required,g.field))]),m(L);var I={};if(g.defaultField)for(var j in D.value)D.value.hasOwnProperty(j)&&(I[j]=g.defaultField);I=Qe(Qe({},I),D.rule.fields);for(var G in I)if(I.hasOwnProperty(G)){var z=Array.isArray(I[G])?I[G]:[I[G]];I[G]=z.map(M.bind(null,G))}var ee=new Dt(I);ee.messages(o.messages),D.rule.options&&(D.rule.options.messages=o.messages,D.rule.options.error=o.error),ee.validate(D.value,D.rule.options||o,function(Y){var ue=[];L&&L.length&&ue.push.apply(ue,L),Y&&Y.length&&ue.push.apply(ue,Y),m(ue.length?ue:null)})}}var x;g.asyncValidator?x=g.asyncValidator(g,D.value,w,D.source,o):g.validator&&(x=g.validator(g,D.value,w,D.source,o),x===!0?w():x===!1?w(g.message||g.field+" fails"):x instanceof Array?w(x):x instanceof Error&&w(x.message)),x&&x.then&&x.then(function(){return w()},function(P){return w(P)})},function(D){s(D)})},getType:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!fn.hasOwnProperty(t.type))throw new Error(Pe("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"?fn.required:fn[this.getType(t)]||!1}},Dt.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");fn[t]=n},Dt.warning=Ni,Dt.messages=Vr,Dt.validators=fn;var y0={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 E0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new Dt(e);return n.messages(Object.assign(y0,t)),n}var A0=new bi;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 C0(e){if(Array.isArray(e))return e}function F0(e){if(Array.isArray(e))return Ur(e)}function $i(e,t,n,r,u,i,o){try{var c=e[i](o),s=c.value}catch(l){n(l);return}c.done?t(s):Promise.resolve(s).then(r,u)}function ji(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){$i(i,r,u,o,c,"next",s)}function c(s){$i(i,r,u,o,c,"throw",s)}o(void 0)})}}function w0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Li(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b0(e,t,n){return t&&Li(e.prototype,t),n&&Li(e,n),e}function B0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qi(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function ki(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _0(){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 S0(){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 Vi(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){B0(e,u,n[u])})}return e}function M0(e){return C0(e)||ki(e)||Ui(e)||_0()}function Hr(e){return F0(e)||ki(e)||Ui(e)||S0()}function Ui(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)}}var Hi=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(f){return s([l,f])}}function s(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Ye=function(){function t(r){var u=this;w0(this,t),this.setting=[],this.eventKeys=[],this.customEvents=[],this.parent=null,this.updateSetting=Wi,this.removeSetting=zi,this._callControlHooks("preInstance",r);var i=qi(this,t)?this.constructor:void 0,o=i.controlName,c=i.controlIcon,s=i.controlType,l=i.controlFieldType,f=i.controlEventKeys,a=i.controlCustomEvents,h=i.name,d=i.setting;o&&c&&s||mi("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:Fr(10),this.name=o,this.icon=c;var D;this.type=(D=r==null?void 0:r.type)!==null&&D!==void 0?D:s,this.props=new Mt(r==null?void 0:r.props,(qi(this,t)?this.constructor:void 0).controlName);var m;this.controlType=(m=r==null?void 0:r.controlType)!==null&&m!==void 0?m:"base",this.setting=he(d);var g;this.fieldType=(g=r==null?void 0:r.fieldType)!==null&&g!==void 0?g:l,this.eventKeys=he(f),this.customEvents=he(a),Promise.resolve().then(function(){u._callControlHooks("postInstance",r)})}var n=t.prototype;return n._callControlHooks=function(){for(var u=arguments.length,i=new Array(u),o=0;o<u;o++)i[o]=arguments[o];var c,s=M0(i),l=s[0],f=s.slice(1);return(c=A0).emit.apply(c,[l,this].concat(Hr(f)))},n.preUpdate=function(u,i){this._callControlHooks("preUpdateProps",u,i)},n.postUpdate=function(u,i){this._callControlHooks("postUpdateProps",u,i)},n.updateProps=function(u,i){this.preUpdate(u,i),Ei(this.props,u,i),this.postUpdate(u,i)},n.preValidate=function(){var u=this;return ji(function(){var i,o,c;return Hi(this,function(s){switch(s.label){case 0:return i=Vi({},u.rules),[4,u._callControlHooks("preValidate",i)];case 1:return o=s.sent(),c=o[o.length-1],[2,c===!1?void 0:c]}})})()},n.validate=function(u,i){var o=this;return ji(function(){var c,s,l,f;return Hi(this,function(a){switch(a.label){case 0:return[4,o.preValidate()];case 1:c=a.sent(),s=c!==void 0?c:Vi({},o.rules),Array.isArray(i)&&i.forEach(function(h){s.hasOwnProperty(h)&&delete s[h]}),l=E0(s,u),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,l.validate(o.props)];case 3:return a.sent(),[2,!0];case 4:throw f=a.sent(),f.control||(f.control=o),f;case 5:return[2]}})})()},n.toDataBindModel=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this.fieldType,o=this.id,c=this.type,s=this.props,l=s.dataBind,f=s.datasourceBind,a=s.optionConfig,h=s.caption,d=s.required,p=s.maxLength,D=s.options,m=s.encrypted,g=s.encryptedMode;if(!(!i&&!l&&!f)){var A={parentId:u,fieldType:i,controlId:o,caption:h,type:c,props:{}};switch(l&&(A.dataBind=l),a){case"datasource":case void 0:f&&(A.datasourceBind=f);break;case"custom":A.props.options=D;break}return d!==void 0&&(A.required=d),p!==void 0&&(A.maxLength=p),m!==void 0&&(A.encrypted=m),g!==void 0&&(A.encryptedMode=g),A}},n.preToSchema=function(){this._callControlHooks("preToSchema",this)},n.toSchema=function(){return this.preToSchema(),{id:this.id,type:this.type,props:he(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,Hr(i.add))}i.remove&&this.removeSettingItem(i.remove),i.update}},b0(t,[{key:"rules",get:function(){var u=this.props.constructor.Rules;return u?new u(this.props):{}}}]),t}();Ye.controlName="\u63A7\u4EF6",Ye.controlIcon="icon",Ye.controlType="control",Ye.controlEventKeys=[],Ye.controlCustomEvents=[],Ye.setting=[],Ye.__is_control__=!0,Ye.removeSettingItem=zi,Ye.updateSettingItem=Wi;function zi(e){var t=this,n=Array.isArray(e)?e:[e];n.forEach(function(r){var u=typeof r!="string",i=t.setting.findIndex(function(s){return s.key===(u?r.key:r)});if(i!==-1){var o,c;u?t.setting[i].showItems=(o=t.setting[i].showItems)===null||o===void 0?void 0:o.filter(function(s){return!r.hideItems.includes(s)}):t.setting.splice(i,1),u&&!(!((c=t.setting[i].showItems)===null||c===void 0)&&c.length)&&t.setting.splice(i,1)}})}function Wi(e,t){var n=this,r=typeof e=="string"?[e]:e;r.forEach(function(u){var i=n.setting.find(function(l){return l.key===u});if(i){if(typeof t=="boolean")i.visible=t;else if(typeof t=="object"){var o,c=(o=t.type)!==null&&o!==void 0?o:"replace";if(c==="replace")i.showItems=t.showItems;else{var s;(s=i.showItems).push.apply(s,Hr(t.showItems))}}}})}function I0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zi(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 N0(e,t,n){return t&&Zi(e.prototype,t),n&&Zi(e,n),e}function x0(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var ln=function(){function t(n){I0(this,t),this.customEvents=[],this.parent=null;var r=x0(this,t)?this.constructor:void 0,u=r.controlType,i=r.controlFieldType,o=r.name,c=r.controlCustomEvents;u||mi("The ".concat(o," controlType is not define"));var s;this.id=(s=n==null?void 0:n.id)!==null&&s!==void 0?s:Fr(10);var l;this.type=(l=n==null?void 0:n.type)!==null&&l!==void 0?l:u,this.props=new Mt(n==null?void 0:n.props),this.customEvents=c;var f;this.controlType=(f=n==null?void 0:n.controlType)!==null&&f!==void 0?f:"base";var a;this.fieldType=(a=n==null?void 0:n.fieldType)!==null&&a!==void 0?a:i;var h;this.pageStatus=(h=n==null?void 0:n.pageStatus)!==null&&h!==void 0?h:Or.UNKNOWN}return N0(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}();ln.controlType="control",ln.__is_control__=!0,ln.controlCustomEvents=[];function O0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jn(e){return jn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jn(e)}function Wr(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&&Zr(e,t)}function R0(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function T0(e,t){return t&&(P0(t)==="object"||typeof t=="function")?t:O0(e)}function Zr(e,t){return Zr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Zr(e,t)}var P0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function $0(){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 Gr(e){var t=$0();return function(){var r=jn(e),u;if(t){var i=jn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return T0(this,u)}}var j0=function(e){Wr(n,e);var t=Gr(n);function n(r){zr(this,n);var u;u=t.call(this,r),u.dataBind={},u.caption={type:"string",required:!0,message:Ue.getMessage("pleaseEnterCaption")},u.isHideCaption={type:"boolean"},u.labelPosition={type:"enum",enum:["top","left"]},u.defaultState={type:"enum",enum:["default","readonly"]},u.required={type:"boolean"},u.captionTip={type:"string",required:!1,message:Ue.getMessage("pleaseEnterCaptionTip")};var i={fieldCode:{type:"string",required:!0,message:Ue.getMessage("pleaseEnterFieldCode")},dataCode:{type:"string",required:!0,message:Ue.getMessage("pleaseEnterFieldCode")}};if(R0(r.dataBind,on))u.dataBind={type:"object",required:!0,fields:he(i),message:Ue.getMessage("pleaseEnterFieldCode")};else{var o={type:"object",required:!0,fields:{},message:Ue.getMessage("pleaseEnterFieldCode")};Object.keys(r.dataBind).forEach(function(c){o.fields[c]={type:"object",required:!0,fields:he(i),message:Ue.getMessage("pleaseEnterFieldCode")}}),u.dataBind=o}return r.isShowCaptionTip&&(u.captionTip.required=!0),u}return n}(Mi),L0=function(e){Wr(n,e);var t=Gr(n);function n(r){zr(this,n);var u;return u=t.call(this,r),u.push({type:"string",required:r.isHide?!1:r.required,message:r.requiredMessage!==""?r.requiredMessage:Ue.getMessage("runtimeRequired",{caption:r.caption})}),u}return n}(Ii),Xr=function(e){Wr(n,e);var t=Gr(n);function n(r){zr(this,n);var u;u=t.call(this,r);var i;u.caption=(i=r==null?void 0:r.caption)!==null&&i!==void 0?i:"";var o;u.isHideCaption=(o=r==null?void 0:r.isHideCaption)!==null&&o!==void 0?o:!1;var c;u.isShowCaptionTip=(c=r==null?void 0:r.isShowCaptionTip)!==null&&c!==void 0?c:!1;var s;u.captionTip=(s=r==null?void 0:r.captionTip)!==null&&s!==void 0?s:"";var l;u.defaultState=(l=r==null?void 0:r.defaultState)!==null&&l!==void 0?l:"default";var f;u.labelPosition=(f=r==null?void 0:r.labelPosition)!==null&&f!==void 0?f:"top";var a;u.placeholder=(a=r==null?void 0:r.placeholder)!==null&&a!==void 0?a:"";var h;u.required=(h=r==null?void 0:r.required)!==null&&h!==void 0?h:!1;var d;u.requiredMessage=(d=r==null?void 0:r.requiredMessage)!==null&&d!==void 0?d:"",u.dataBind=new on(r==null?void 0:r.dataBind);var p;return u.defaultValue=(p=r==null?void 0:r.defaultValue)!==null&&p!==void 0?p:"",u}return n}(Mt);Xr.Rules=j0,Xr.RuntimeRules=L0;function q0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ln(e){return Ln=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ln(e)}function V0(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&&Kr(e,t)}function U0(e,t){return t&&(H0(t)==="object"||typeof t=="function")?t:q0(e)}function Kr(e,t){return Kr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Kr(e,t)}var H0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function z0(){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 W0(e){var t=z0();return function(){var r=Ln(e),u;if(t){var i=Ln(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return U0(this,u)}}var et=function(e){V0(n,e);var t=W0(n);function n(r){k0(this,n);var u;return u=t.call(this,r),u.controlType="form",u.props=new Xr(r==null?void 0:r.props),u}return n}(ln);function Z0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qn(e){return qn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},qn(e)}function X0(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&&Jr(e,t)}function K0(e,t){return t&&(J0(t)==="object"||typeof t=="function")?t:Z0(e)}function Jr(e,t){return Jr=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},Jr(e,t)}var J0=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Q0(){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 Y0(e){var t=Q0();return function(){var r=qn(e),u;if(t){var i=qn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return K0(this,u)}}var eh=function(e){X0(n,e);var t=Y0(n);function n(r){return G0(this,n),t.call(this,r)}return n}(Mt);function Qr(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 th(e){if(Array.isArray(e))return Qr(e)}function nh(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rh(){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 Gi(e){return th(e)||nh(e)||uh(e)||rh()}function uh(e,t){if(!!e){if(typeof e=="string")return Qr(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 Qr(e,t)}}function ih(e,t){var n;!((n=Object.getOwnPropertyDescriptors(e)[t])===null||n===void 0)&&n.enumerable&&Object.defineProperty(e,t,{enumerable:!1})}function Xi(e,t){e.parent=t,ih(e,"parent")}function oh(e,t){e.forEach(function(n){Xi(n,t)})}var Ki=Symbol("targetKey");function Ji(e){var t;return(t=e[Ki])!==null&&t!==void 0?t:e}function Qi(e,t){return oh(e,t),new Proxy(e,{get:function(r,u){for(var i=arguments.length,o=new Array(i>2?i-2:0),c=2;c<i;c++)o[c-2]=arguments[c];var s;return u===Ki?r:(s=Reflect).get.apply(s,[r,u].concat(Gi(o)))},set:function(r,u,i){for(var o=arguments.length,c=new Array(o>3?o-3:0),s=3;s<o;s++)c[s-3]=arguments[s];var l;if(Pt(e)&&u==="length"&&i===e.length)return!0;var f=(l=Reflect).set.apply(l,[r,u,i].concat(Gi(c)));return Je(i)&&Xi(i,t),f}})}function Yr(e,t,n,r){var u=r!=null?r:e,i=Qi(Ji(n!=null?n:[]),u);Object.defineProperty(e,t,{get:function(){return i},set:function(c){i=Qi(Ji(c),u)},enumerable:!0})}function eu(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 ah(e){if(Array.isArray(e))return eu(e)}function Yi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eo(e,t,n,r,u,i,o){try{var c=e[i](o),s=c.value}catch(l){n(l);return}c.done?t(s):Promise.resolve(s).then(r,u)}function sh(e){return function(){var t=this,n=arguments;return new Promise(function(r,u){var i=e.apply(t,n);function o(s){eo(i,r,u,o,c,"next",s)}function c(s){eo(i,r,u,o,c,"throw",s)}o(void 0)})}}function ch(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e,t,n){return typeof Reflect!="undefined"&&Reflect.get?jt=Reflect.get:jt=function(u,i,o){var c=yh(u,i);if(!!c){var s=Object.getOwnPropertyDescriptor(c,i);return s.get?s.get.call(o):s.value}},jt(e,t,n||e)}function gt(e){return gt=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gt(e)}function lh(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&&tu(e,t)}function hh(e,t){return t!=null&&typeof Symbol!="undefined"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function dh(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ph(){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 Dh(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){fh(e,u,n[u])})}return e}function gh(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 vh(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):gh(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function mh(e,t){return t&&(Eh(t)==="object"||typeof t=="function")?t:Yi(e)}function tu(e,t){return tu=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},tu(e,t)}function yh(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=gt(e),e!==null););return e}function to(e){return ah(e)||dh(e)||Ah(e)||ph()}var Eh=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Ah(e,t){if(!!e){if(typeof e=="string")return eu(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 eu(e,t)}}function Ch(){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 Fh(e){var t=Ch();return function(){var r=gt(e),u;if(t){var i=gt(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return mh(this,u)}}var wh=function(e,t){var n,r,u,i,o={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(l){return function(f){return s([l,f])}}function s(l){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=l[0]&2?r.return:l[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,l[1])).done)return u;switch(r=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(u=o.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){o.label=l[1];break}if(l[0]===6&&o.label<u[1]){o.label=u[1],u=l;break}if(u&&o.label<u[2]){o.label=u[2],o.ops.push(l);break}u[2]&&o.ops.pop(),o.trys.pop();continue}l=t.call(e,o)}catch(f){l=[6,f],r=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},bh=1e4,no=function(t){lh(r,t);var n=Fh(r);function r(i){ch(this,r);var o;o=n.call(this,i),o.controlType="layout";var c=hh(this,r)?this.constructor:void 0,s=c.excludes,l=c.childrenMaxLength;return o.props=new eh(i==null?void 0:i.props),Yr(Yi(o),"children",i==null?void 0:i.children),o.excludes=he(s),o.childrenMaxLength=l,o}var u=r.prototype;return u.judgeExcludesChildren=function(o){return this.excludes===!1||Array.isArray(this.excludes)&&!this.excludes.includes(o)},u.judgeJoinChildren=function(o){var c=this.judgeExcludesChildren(o);return c&&this.childrenMaxLength>this.children.length},u.validate=function(o,c){var s=this,l=this,f=function(){return jt(gt(r.prototype),"validate",s)};return sh(function(){return wh(this,function(a){switch(a.label){case 0:return[4,f().call(l,o,c)];case 1:return a.sent(),[4,Promise.all(l.children.map(function(h){return h.validate(o,c)}))];case 2:return a.sent(),[2,!0]}})})()},u.toDataBindModel=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,c=jt(gt(r.prototype),"toDataBindModel",this).call(this),s=c?[c]:[];return this.children.reduce(function(l,f){var a=f.toDataBindModel(o);if(Array.isArray(a)){var h=a.filter(function(d){return!!d});return to(l).concat(to(h))}return a&&l.push(a),l},s)},u.toSchema=function(){var o=jt(gt(r.prototype),"toSchema",this).call(this),c=this.children.map(function(s){var l=s.toSchema();return l});return vh(Dh({},o),{children:c})},r}(Ye);no.excludes=!1,no.childrenMaxLength=bh;function ro(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kn(e){return kn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},kn(e)}function _h(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&&nu(e,t)}function Sh(e,t){return t&&(Mh(t)==="object"||typeof t=="function")?t:ro(e)}function nu(e,t){return nu=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},nu(e,t)}var Mh=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function Ih(){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 Nh(e){var t=Ih();return function(){var r=kn(e),u;if(t){var i=kn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Sh(this,u)}}var xh=function(e){_h(n,e);var t=Nh(n);function n(r,u){Bh(this,n);var i;return i=t.call(this,u),Yr(ro(i),"headers",u==null?void 0:u.headers,r),i}return n}(Mt);K.LIST;function ru(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uo(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 Rh(e,t,n){return t&&uo(e.prototype,t),n&&uo(e,n),e}function Vn(e){return Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Vn(e)}function Th(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&&uu(e,t)}function Ph(e,t){return t&&($h(t)==="object"||typeof t=="function")?t:ru(e)}function uu(e,t){return uu=Object.setPrototypeOf||function(r,u){return r.__proto__=u,r},uu(e,t)}var $h=function(e){return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e};function jh(){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 Lh(e){var t=jh();return function(){var r=Vn(e),u;if(t){var i=Vn(this).constructor;u=Reflect.construct(r,arguments,i)}else u=r.apply(this,arguments);return Ph(this,u)}}var Un=function(e){Th(n,e);var t=Lh(n);function n(u){Oh(this,n);var i;return i=t.call(this,u),i.controlType="list",i.rowProps={},i.props=new xh(ru(i),u==null?void 0:u.props),Yr(ru(i),"children",u==null?void 0:u.children),i}var r=n.prototype;return r.setRowProps=function(i){this.rowProps=i},Rh(n,[{key:"length",get:function(){return this.children.length}}]),n}(ln);console.log(1);function Hn(e){return e.controlType===Ke.LAYOUT||e.controlType===Ke.WRAP||e.controlType===Ke.LIST||e.controlType===Ke.SEARCH}function hn(e,t){Array.isArray(e)&&e.map(n=>{if(n.type===Q.SUBTABLE){const r=n.getChildrenFormControl();t(n,r)}else Hn(n)?hn(n==null?void 0:n.children,t):n instanceof et&&t(n)})}function dn(e,t){Array.isArray(e)&&e.map(n=>{n.type===Q.DATA_VIEW||n.type===Q.SIMPLE_SEARCH?t(n):Hn(n)&&dn(n==null?void 0:n.children,t)})}class iu extends In{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 io(this._instance,r=>{t.push(r),n[r.id]||(n[r.id]=[]),n[r.id].push(r)}),this._flatInstances=t,this._instanceMap=n,this._flatInstances}get schema(){return this._schema}get instance(){return this._instance}get flatInstances(){return this._flatInstances}get instanceMap(){return this._instanceMap}get rules(){let t={};return dn(this._instance,n=>{t[n.id]=n.rules[0],hn(n.children,r=>{(r instanceof et||r instanceof Un)&&qh(t[n.id].fields,r)})}),t}get antdRules(){let t={};return dn(this._instance,n=>{t[n.id]=n.rules[0],hn(n.children,r=>{(r instanceof et||r instanceof Un)&&kh(t[n.id].fields,r)})}),t}}function io(e,t){Array.isArray(e)?e.map(n=>{t(n),Hn(n)&&io(n.children,t)}):t(e)}function ou(e){return e.props.isHide?!0:e.parent===null?!1:ou(e.parent)}function qh(e,t){if(!ou(t)){if(t instanceof et)e[t.id]=t.rules;else if(t.type===Q.SUBTABLE){e[t.id]=t.rules;const n={type:"array",fields:{}};t.children.forEach((r,u)=>{_t(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 kh(e,t){ou(t)||(t instanceof et?e[t.id]=t.rules:t.type===Q.SUBTABLE&&t.children.length&&(e[t.id]=[],t.children.forEach(n=>{let r={};_t(n.children,u=>{r[u.id]=u.rules}),e[t.id].push(r)})))}class Vh{constructor(t){const{state:n,emptyState:r,databindMapping:u,controlidMapping:i}=Uh(t.instance);this.emptyState=r,this.state=n,this.dataBindMapping=u,this.controlIdMapping=i}setState(t,n,r){const u=this.controlIdMapping[t];u!==void 0?this.state[u.dataView][t]=n:r!==void 0?Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,c=this.controlIdMapping[i].children;c!==void 0&&Object.keys(c).map(s=>{s===t&&(this.state[o][i][r][t]=n)})}):this.state[t]=n}getState(t,n){if(this.state[t]!==void 0)return this.state[t];{const u=this.controlIdMapping[t];if(u!==void 0)return this.state[u.dataView][t];if(n!==void 0){let i;return Object.keys(this.controlIdMapping).map(o=>{const c=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(l=>{var f;l===t&&(i=(f=this.state[c][o][n])==null?void 0:f[t])})}),i}else{let i=[];return Object.keys(this.controlIdMapping).map(o=>{const c=this.controlIdMapping[o].dataView,s=this.controlIdMapping[o].children;s!==void 0&&Object.keys(s).map(l=>{l===t&&this.state[c][o].map(f=>{i.push(f[t])})})}),i}}}getEmptyState(t){if(this.emptyState[t]!==void 0)return this.emptyState[t];{const r=this.controlIdMapping[t];if(r!==void 0)return this.emptyState[r.dataView][t];{let u;return Object.keys(this.controlIdMapping).map(i=>{const o=this.controlIdMapping[i].dataView,c=this.controlIdMapping[i].children;c!==void 0&&Object.keys(c).map(s=>{s===t&&(u=this.emptyState[o][i][t])})}),u}}}getDataBind(t){let n=this.controlIdMapping[t];if(n)return n.dataBind;e:for(let r in this.controlIdMapping){const u=this.controlIdMapping[r];if(u.children){for(let i in u.children)if(i===t){n=u.children[i];break e}}}return n==null?void 0:n.dataBind}}function Uh(e){let t={},n={},r={},u={};return dn(e,i=>{const o=i.id,c={},s={};hn([i],(l,f)=>{Hh(c,s,l),zh(r,o,l),Wh(u,o,l)}),t[o]=c,n[o]=s}),{state:t,emptyState:n,databindMapping:r,controlidMapping:u}}function Hh(e,t,n){var r;if(n instanceof et)e[n.id]=he(n.props.defaultValue),t[n.id]=he(n.props.defaultValue);else{const u={};_t(n.props.headers,i=>{u[i.id]=he(i.props.defaultValue)}),e[n.id]=new Array((r=n.props.defaultRows)!=null?r:1).fill(0).map(()=>he(u)),t[n.id]=u}}function zh(e,t,n){if(n instanceof et)n.props.dataBind instanceof pt?Object.keys(n.props.dataBind).map(r=>{const u=n.props.dataBind,i=u[r].dataCode;i!==void 0&&(e[i]===void 0&&(e[i]={controlId:n.id,fields:[],dataViewId:t}),e[i].fields.push({fieldCode:u[r].fieldCode,controlId:n.id,dataBind:u,dataViewId:[t]}))}):(e[n.props.dataBind.dataCode]===void 0&&(e[n.props.dataBind.dataCode]={controlId:t,fields:[],dataViewId:t}),e[n.props.dataBind.dataCode].fields.push({fieldCode:n.props.dataBind.fieldCode,controlId:n.id,dataBind:n.props.dataBind,dataViewId:[t]}));else{if(n.props.datasourceBind.dataCode===""){dt(`datasourceBind.dataCode is empty! maybe in preview mode, control:${n.id} type:${n.type}`);return}e[n.props.datasourceBind.dataCode]={controlId:n.id,fields:[],dataViewId:t};const r=n.id;_t(n.props.headers,u=>{u.props.dataBind instanceof pt?Object.keys(u.props.dataBind).map(i=>{const o=u.props.dataBind,c=o[i].dataCode;e[c].fields.push({fieldCode:o[i].fieldCode,controlId:u.id,dataBind:o,dataViewId:[t,r]})}):e[u.props.dataBind.dataCode].fields.push({fieldCode:u.props.dataBind.fieldCode,controlId:u.id,dataBind:u.props.dataBind,dataViewId:[t,r]})})}}function Wh(e,t,n){n instanceof et?e[n.id]={dataBind:n.props.dataBind,options:[],dataView:t}:n.type===Q.SUBTABLE&&(e[n.id]={dataBind:new on({dataCode:n.props.datasourceBind.dataCode,fieldCode:""}),dataView:t,children:{},options:[]},_t(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 oo=["splice","push","shift","pop","unshift","reverse"],au=Symbol("__engineProxy__"),su=Symbol("__engineTarget__"),ao=Symbol("__engineArrayBeforeSetCallbackFlag__"),so=Symbol("__engineProxyThisKey__"),He={type:"",args:[],callback:co};function co(){}Jh();function Zh(e,t,n,r,u){if(He.type){He.callback=u.bind(null,e,r);return}const i=Number(t);if(i>e.length){at(`Wrong array operations may cause unknown errors. It is recommended to use APIs such as ${oo.join(",")} for array operations`);return}if(!(Number.isNaN(i)&&t!=="length"))if(t==="length"){const c=n,s=e.length;if(c>e.length){at("Do not directly modify the length of the array data, please add new rows");return}return c===e.length?void 0:()=>u.call(null,e,r,"splice",[c,s-c])}else return i===e.length?()=>u.call(null,e,r,"push",[n]):()=>u.call(null,e,r,"splice",[i,1,n])}function Gh(e,t,n){return{__engineProxy__:!0,get(r,u,i){return u===au?!0:u===su?r:Array.isArray(r)&&u===ao?n:u===so?e:Reflect.get(r,u,i)},set(r,u,i,o){var h;let c=i;const s=r[u],l=e===""?u:e+"."+u;function f(d){if(typeof d=="object"&&d!==null)return d[au]!==!0?zn(d,t,n,l):zn(d[su],t,n,l)}c=(h=f(i))!=null?h:c;let a;if(Array.isArray(r)){const d=Zh(r,u,i,e,t);a=Reflect.set(r,u,c,o),d&&d()}else{try{let d=c;if(c=n.call(null,r,l,c,s),d!==c){const p=f(c);p!==void 0&&(c=p)}}catch(d){return _n(`${l} set error ${d}`),!0}a=Reflect.set(r,u,c,o),t.call(null,r,l,i,s)}return a}}}function zn(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]=zn(o,t,n,i))}return new Proxy(e,Gh(r,t,n))}function fo(e){const t=[];return e.forEach(n=>{t.push(n),n.controlType==="layout"&&t.push(...fo(n.children))}),t}function cu(e,t){if(t==="")return;const n=t.split(".");if(n.length===0)return;const r=n[0],u=n.slice(1),i=e.find(o=>o.id===r);return u.length===0?i:u.reduce((o,c)=>{var f,a;const s=Number(c);if(Number.isNaN(s)){const h=o!=null&&o.children?fo(o.children):void 0,d=h==null?void 0:h.find(p=>p.id===c);return d||(o instanceof et?o:void 0)}else return(a=(f=o==null?void 0:o.children)==null?void 0:f[s])!=null?a:o},i)}function Xh(e,t){return["push","unshift"].includes(e)?t:e==="splice"?t.slice(2):[]}function Kh(e,t,n){if(["push","unshift"].includes(e))return n;if(e==="splice")return t.slice(0,2).concat(n)}function Jh(){oo.forEach(e=>{const t=Array.prototype[e];Array.prototype[e]=function(...n){var r;if(this[au]){let u;const i=Xh(e,n);if(i.length){const o=(r=this[ao])==null?void 0:r.call(this,this[su],this[so],i),c=Kh(e,n,o);He.type=e,He.args=c,u=t.apply(this,c)}else He.type=e,He.args=n,u=t.apply(this,n);return typeof He.callback=="function"&&He.callback(e,n,u),He.type="",He.args=[],He.callback=co,u}else return t.apply(this,n)}})}class Qh{constructor(){this.actionMap=new Map,this.buildinActions={},this.actionUtils={},this.sources={}}execAction(t,n,...r){return it(this,null,function*(){const u=this.actionMap.get(t);if(!!u)try{return yield u.func.call(null,n,...r)}catch(i){_n(`${u.id} Exception during calling action: ${i}`)}})}addAction(t,n){this.actionMap.has(t)&&at("duplicated action key");const r=new Yh(t,n);this.actionMap.set(t,r)}}class Yh{constructor(t,n){this.id="",this.id=t,this.func=n}}class ed{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 he(n)}remove(t){this._dataStore.delete(t)}getRemoteData(t){return it(this,null,function*(){return this.executer===void 0?(_n("\u672A\u521D\u59CB\u5316executer"),[]):this.executer(t)})}}class vt{}class pn extends vt{validate(t){return Te(t)}transform(t){if(t==null)return"";if(!Je(t)&&!Ci(t))return String(t);if(Fl(t))return JSON.stringify(t);throw`${t} is not a string`}}class fu extends vt{validate(t){return Sn(t)||t===""}transform(t){if(t==null)return"";const n=!Je(t)&&!Ci(t)?Number(t):void 0;if(!Number.isNaN(n)&&n!==void 0)return n;throw`${t} is not a number`}}class td extends vt{validate(t){return wl(t)}transform(t){if(t==null)return[];function n(r){return r.map(u=>u?String(u):"")}if(Pt(t))return n(t);if(Te(t)&&Fi(t))try{const r=JSON.parse(t);if(Array.isArray(r))return n(r)}catch(r){}return[String(t)]}}class nd extends vt{validate(t){return bl(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(Pt(t))return n(t);if(Te(t)&&Fi(t))try{const u=JSON.parse(t);if(Pt(u))return n(u)}catch(u){}const r=Number(t);if(Number.isNaN(r))throw`${t} is not a number array`;return[r]}}class rd extends vt{validate(t){return t instanceof Nn||Je(t)&&"amount"in t&&Sn(t.amount)&&"currency"in t&&Te(t.currency)}transform(t,n){if(t==null||t==="")return new Nn({currency:n==null?void 0:n.currency});let r;if(Je(t)&&(r=new Nn(ge(ge({},n),t))),Te(t)&&Mn(t))try{const u=JSON.parse(t);r=new Nn(ge(ge({},n),u))}catch(u){}if(r){const u=new fu,i=new pn;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 ud extends vt{validate(t){return t instanceof xn||Je(t)&&"min"in t&&Te(t.min)&&"max"in t&&Te(t.max)}transform(t,n){if(t==null||t==="")return new xn;let r;if(Je(t)&&(r=new xn(ge(ge({},n),t))),Te(t)&&Mn(t))try{const u=JSON.parse(t);r=new xn(ge(ge({},n),u))}catch(u){}if(r){const u=new pn;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 id extends vt{validate(t){return t instanceof Rn||Je(t)&&"result"in t&&Sn(t.result)&&"unit"in t&&Te(t.unit)}transform(t,n){if(t==null||t==="")return new Rn({unit:n==null?void 0:n.unit});let r;if(Je(t)&&(r=new Rn(ge(ge({},n),t))),Te(t)&&Mn(t))try{const u=JSON.parse(t);r=new Rn(ge(ge({},n),u))}catch(u){}if(r){const u=new fu,i=new pn;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 od extends vt{validate(t){return t instanceof On}transform(t,n){if(t==null||t==="")return new On;let r;if(Je(t)&&(r=new On(ge(ge({},n),Mr.exports.camelizeKeys(t)))),Te(t)&&Mn(t))try{const u=JSON.parse(t);r=new On(ge(ge({},n),Mr.exports.camelizeKeys(u)))}catch(u){}if(r){const u=new pn;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 ad{static getValueChecker(t){let n;switch(t){case K.VARCHAR:case K.TIMESTAMP:case K.TEXT:case K.RELATION:case K.AUTO_NUMBER:n=new pn;break;case K.DECIMAL:n=new fu;break;case K.EMPLOYEES:case K.DEPARTMENTS:case K.IMAGE:case K.FILE:case K.ARRAY:n=new td;break;case K.MONEY:n=new rd;break;case K.TIMESCOPE:n=new ud;break;case K.CALC:n=new id;break;case K.DECIMAL_RANGE:n=new nd;break;case K.ADDRESS:n=new od;break}return n}}function sd(e){if(["min","max","currency","unit"].includes(e))return K.VARCHAR;if(["result","amount"].includes(e))return K.DECIMAL}function lo(e,t,n,r){var o;let u=(o=sd(t))!=null?o:e,i=ad.getValueChecker(u);if(!i||i.validate(n))return n;try{const c=i.transform(n,r);return c!==void 0?c:n}catch(c){throw`${t} ${c}`}}function cd(e,t,n){return Object.entries(e).reduce((r,[u,i])=>{const o=t[u];return r[u]=lo(i,u,o,n[u]),r},Object.assign({},t))}var lu={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",u=9007199254740991,i="[object Arguments]",o="[object Array]",c="[object Boolean]",s="[object Date]",l="[object Error]",f="[object Function]",a="[object GeneratorFunction]",h="[object Map]",d="[object Number]",p="[object Object]",D="[object Promise]",m="[object RegExp]",g="[object Set]",A="[object String]",M="[object Symbol]",w="[object WeakMap]",x="[object ArrayBuffer]",P="[object DataView]",L="[object Float32Array]",I="[object Float64Array]",j="[object Int8Array]",G="[object Int16Array]",z="[object Int32Array]",ee="[object Uint8Array]",Y="[object Uint8ClampedArray]",ue="[object Uint16Array]",re="[object Uint32Array]",X=/[\\^$.*+?()[\]{}|]/g,Nu=/\w*$/,xu=/^\[object .+?Constructor\]$/,Ou=/^(?:0|[1-9]\d*)$/,te={};te[i]=te[o]=te[x]=te[P]=te[c]=te[s]=te[L]=te[I]=te[j]=te[G]=te[z]=te[h]=te[d]=te[p]=te[m]=te[g]=te[A]=te[M]=te[ee]=te[Y]=te[ue]=te[re]=!0,te[l]=te[f]=te[w]=!1;var Ru=typeof je=="object"&&je&&je.Object===Object&&je,Tu=typeof self=="object"&&self&&self.Object===Object&&self,Ge=Ru||Tu||Function("return this")(),ir=t&&!t.nodeType&&t,or=ir&&!0&&e&&!e.nodeType&&e,Pu=or&&or.exports===ir;function ar(v,C){return v.set(C[0],C[1]),v}function sr(v,C){return v.add(C),v}function Ft(v,C){for(var b=-1,q=v?v.length:0;++b<q&&C(v[b],b,v)!==!1;);return v}function yn(v,C){for(var b=-1,q=C.length,ye=v.length;++b<q;)v[ye+b]=C[b];return v}function cr(v,C,b,q){var ye=-1,Ie=v?v.length:0;for(q&&Ie&&(b=v[++ye]);++ye<Ie;)b=C(b,v[ye],ye,v);return b}function $u(v,C){for(var b=-1,q=Array(v);++b<v;)q[b]=C(b);return q}function ju(v,C){return v==null?void 0:v[C]}function En(v){var C=!1;if(v!=null&&typeof v.toString!="function")try{C=!!(v+"")}catch(b){}return C}function An(v){var C=-1,b=Array(v.size);return v.forEach(function(q,ye){b[++C]=[ye,q]}),b}function Gt(v,C){return function(b){return v(C(b))}}function Cn(v){var C=-1,b=Array(v.size);return v.forEach(function(q){b[++C]=q}),b}var fr=Array.prototype,Lu=Function.prototype,Xt=Object.prototype,Fn=Ge["__core-js_shared__"],wn=function(){var v=/[^.]+$/.exec(Fn&&Fn.keys&&Fn.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),y=Lu.toString,E=Xt.hasOwnProperty,F=Xt.toString,B=RegExp("^"+y.call(E).replace(X,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=Pu?Ge.Buffer:void 0,O=Ge.Symbol,T=Ge.Uint8Array,_=Gt(Object.getPrototypeOf,Object),R=Object.create,V=Xt.propertyIsEnumerable,W=fr.splice,$=Object.getOwnPropertySymbols,Ce=N?N.isBuffer:void 0,De=Gt(Object.keys,Object),fe=Yt(Ge,"DataView"),ie=Yt(Ge,"Map"),me=Yt(Ge,"Promise"),ae=Yt(Ge,"Set"),be=Yt(Ge,"WeakMap"),se=Yt(Object,"create"),Fe=Rt(fe),ft=Rt(ie),Be=Rt(me),lt=Rt(ae),Kt=Rt(be),wt=O?O.prototype:void 0,lr=wt?wt.valueOf:void 0;function ht(v){var C=-1,b=v?v.length:0;for(this.clear();++C<b;){var q=v[C];this.set(q[0],q[1])}}function qu(){this.__data__=se?se(null):{}}function ku(v){return this.has(v)&&delete this.__data__[v]}function Vu(v){var C=this.__data__;if(se){var b=C[v];return b===r?void 0:b}return E.call(C,v)?C[v]:void 0}function Uu(v){var C=this.__data__;return se?C[v]!==void 0:E.call(C,v)}function Hu(v,C){var b=this.__data__;return b[v]=se&&C===void 0?r:C,this}ht.prototype.clear=qu,ht.prototype.delete=ku,ht.prototype.get=Vu,ht.prototype.has=Uu,ht.prototype.set=Hu;function Xe(v){var C=-1,b=v?v.length:0;for(this.clear();++C<b;){var q=v[C];this.set(q[0],q[1])}}function zu(){this.__data__=[]}function xt(v){var C=this.__data__,b=rt(C,v);if(b<0)return!1;var q=C.length-1;return b==q?C.pop():W.call(C,b,1),!0}function Wu(v){var C=this.__data__,b=rt(C,v);return b<0?void 0:C[b][1]}function Zu(v){return rt(this.__data__,v)>-1}function Gu(v,C){var b=this.__data__,q=rt(b,v);return q<0?b.push([v,C]):b[q][1]=C,this}Xe.prototype.clear=zu,Xe.prototype.delete=xt,Xe.prototype.get=Wu,Xe.prototype.has=Zu,Xe.prototype.set=Gu;function bt(v){var C=-1,b=v?v.length:0;for(this.clear();++C<b;){var q=v[C];this.set(q[0],q[1])}}function Xu(){this.__data__={hash:new ht,map:new(ie||Xe),string:new ht}}function Ku(v){return gr(this,v).delete(v)}function Ju(v){return gr(this,v).get(v)}function Qu(v){return gr(this,v).has(v)}function Yu(v,C){return gr(this,v).set(v,C),this}bt.prototype.clear=Xu,bt.prototype.delete=Ku,bt.prototype.get=Ju,bt.prototype.has=Qu,bt.prototype.set=Yu;function Bt(v){this.__data__=new Xe(v)}function ei(){this.__data__=new Xe}function ti(v){return this.__data__.delete(v)}function ni(v){return this.__data__.get(v)}function ri(v){return this.__data__.has(v)}function ui(v,C){var b=this.__data__;if(b instanceof Xe){var q=b.__data__;if(!ie||q.length<n-1)return q.push([v,C]),this;b=this.__data__=new bt(q)}return b.set(v,C),this}Bt.prototype.clear=ei,Bt.prototype.delete=ti,Bt.prototype.get=ni,Bt.prototype.has=ri,Bt.prototype.set=ui;function ii(v,C){var b=ai(v)||vD(v)?$u(v.length,String):[],q=b.length,ye=!!q;for(var Ie in v)(C||E.call(v,Ie))&&!(ye&&(Ie=="length"||dD(Ie,q)))&&b.push(Ie);return b}function hr(v,C,b){var q=v[C];(!(E.call(v,C)&&va(q,b))||b===void 0&&!(C in v))&&(v[C]=b)}function rt(v,C){for(var b=v.length;b--;)if(va(v[b][0],C))return b;return-1}function Me(v,C){return v&&pa(C,si(C),v)}function ce(v,C,b,q,ye,Ie,ke){var Oe;if(q&&(Oe=Ie?q(v,ye,Ie,ke):q(v)),Oe!==void 0)return Oe;if(!vr(v))return v;var Ea=ai(v);if(Ea){if(Oe=fD(v),!C)return aD(v,Oe)}else{var en=Ot(v),Aa=en==f||en==a;if(yD(v))return Dr(v,C);if(en==p||en==i||Aa&&!Ie){if(En(v))return Ie?v:{};if(Oe=lD(Aa?{}:v),!C)return sD(v,Me(Oe,v))}else{if(!te[en])return Ie?v:{};Oe=hD(v,en,ce,C)}}ke||(ke=new Bt);var Ca=ke.get(v);if(Ca)return Ca;if(ke.set(v,Oe),!Ea)var Fa=b?cD(v):si(v);return Ft(Fa||v,function(ci,mr){Fa&&(mr=ci,ci=v[mr]),hr(Oe,mr,ce(ci,C,b,q,mr,v,ke))}),Oe}function dr(v){return vr(v)?R(v):{}}function oi(v,C,b){var q=C(v);return ai(v)?q:yn(q,b(v))}function Jt(v){return F.call(v)}function Qt(v){if(!vr(v)||DD(v))return!1;var C=ya(v)||En(v)?B:xu;return C.test(Rt(v))}function pr(v){if(!ga(v))return De(v);var C=[];for(var b in Object(v))E.call(v,b)&&b!="constructor"&&C.push(b);return C}function Dr(v,C){if(C)return v.slice();var b=new v.constructor(v.length);return v.copy(b),b}function ut(v){var C=new v.constructor(v.byteLength);return new T(C).set(new T(v)),C}function tD(v,C){var b=C?ut(v.buffer):v.buffer;return new v.constructor(b,v.byteOffset,v.byteLength)}function nD(v,C,b){var q=C?b(An(v),!0):An(v);return cr(q,ar,new v.constructor)}function rD(v){var C=new v.constructor(v.source,Nu.exec(v));return C.lastIndex=v.lastIndex,C}function uD(v,C,b){var q=C?b(Cn(v),!0):Cn(v);return cr(q,sr,new v.constructor)}function iD(v){return lr?Object(lr.call(v)):{}}function oD(v,C){var b=C?ut(v.buffer):v.buffer;return new v.constructor(b,v.byteOffset,v.length)}function aD(v,C){var b=-1,q=v.length;for(C||(C=Array(q));++b<q;)C[b]=v[b];return C}function pa(v,C,b,q){b||(b={});for(var ye=-1,Ie=C.length;++ye<Ie;){var ke=C[ye],Oe=q?q(b[ke],v[ke],ke,b,v):void 0;hr(b,ke,Oe===void 0?v[ke]:Oe)}return b}function sD(v,C){return pa(v,Da(v),C)}function cD(v){return oi(v,si,Da)}function gr(v,C){var b=v.__data__;return pD(C)?b[typeof C=="string"?"string":"hash"]:b.map}function Yt(v,C){var b=ju(v,C);return Qt(b)?b:void 0}var Da=$?Gt($,Object):CD,Ot=Jt;(fe&&Ot(new fe(new ArrayBuffer(1)))!=P||ie&&Ot(new ie)!=h||me&&Ot(me.resolve())!=D||ae&&Ot(new ae)!=g||be&&Ot(new be)!=w)&&(Ot=function(v){var C=F.call(v),b=C==p?v.constructor:void 0,q=b?Rt(b):void 0;if(q)switch(q){case Fe:return P;case ft:return h;case Be:return D;case lt:return g;case Kt:return w}return C});function fD(v){var C=v.length,b=v.constructor(C);return C&&typeof v[0]=="string"&&E.call(v,"index")&&(b.index=v.index,b.input=v.input),b}function lD(v){return typeof v.constructor=="function"&&!ga(v)?dr(_(v)):{}}function hD(v,C,b,q){var ye=v.constructor;switch(C){case x:return ut(v);case c:case s:return new ye(+v);case P:return tD(v,q);case L:case I:case j:case G:case z:case ee:case Y:case ue:case re:return oD(v,q);case h:return nD(v,q,b);case d:case A:return new ye(v);case m:return rD(v);case g:return uD(v,q,b);case M:return iD(v)}}function dD(v,C){return C=C==null?u:C,!!C&&(typeof v=="number"||Ou.test(v))&&v>-1&&v%1==0&&v<C}function pD(v){var C=typeof v;return C=="string"||C=="number"||C=="symbol"||C=="boolean"?v!=="__proto__":v===null}function DD(v){return!!wn&&wn in v}function ga(v){var C=v&&v.constructor,b=typeof C=="function"&&C.prototype||Xt;return v===b}function Rt(v){if(v!=null){try{return y.call(v)}catch(C){}try{return v+""}catch(C){}}return""}function gD(v){return ce(v,!0,!0)}function va(v,C){return v===C||v!==v&&C!==C}function vD(v){return mD(v)&&E.call(v,"callee")&&(!V.call(v,"callee")||F.call(v)==i)}var ai=Array.isArray;function ma(v){return v!=null&&ED(v.length)&&!ya(v)}function mD(v){return AD(v)&&ma(v)}var yD=Ce||FD;function ya(v){var C=vr(v)?F.call(v):"";return C==f||C==a}function ED(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=u}function vr(v){var C=typeof v;return!!v&&(C=="object"||C=="function")}function AD(v){return!!v&&typeof v=="object"}function si(v){return ma(v)?ii(v):pr(v)}function CD(){return[]}function FD(){return!1}e.exports=gD})(lu,lu.exports);var fd=lu.exports;function ho(e){return e.reduce((n,r)=>{const{children:u}=r;return u.forEach(i=>{n[i.id]=ld(i)}),n},{})}function ld(e){return fd(e.props)}typeof window!="undefined"&&(window.engines={});let Lt=null,Dn="";class hu extends bi{constructor(t){super(),this.isMounted=!1,this.id=Fr(8),this.__pluginsApplied=!1,this.actionManager=new Qh,this._jobTasks=[],this.createControlInstance=this.createInstance,this.$options=Object.freeze(t);const{autoMount:n=!0,schema:r,beforeCreateInstance:u,externalParams:i,language:o=li,debug:c=!1}=this.$options;Ue.setLocale(o),this.debug=c,this.runtime=new iu({schema:r,beforeCreateInstance:u}),this.externalParams=i,this.store=new Vh({instance:this.runtime.instance}),this.debugLog("engine is Instantiation complete"),n&&this.mount()}debugLog(...t){this.debug&&_r(...t)}use(t){return this.__pluginsApplied||this.__plugins.push(t),this}registerControl(...t){return this.runtime.register(...t),this}static register(...t){return iu.register(...t)}static judgeControlIsRegistered(t){return iu.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=zn(this.store.state,this._proxyStateCallback.bind(this),this._proxyStateBeforeSetCallback.bind(this))}_proxyStateBeforeSetCallback(t,n,r,u){const i=cu(this.runtime.flatInstances,n);if(!i)return r;if(this.assertInstance(i,Q.SUBTABLE)){if(r===null)return[];const s=i.props.headers.reduce((f,a)=>{const h=a.children[0];return h&&h instanceof et&&(f[h.id]=h.fieldType),f},{}),l=this.getEmptyState(i.id);return r.map(f=>cd(s,f,l))}const o=n.split("."),c=o[o.length-1];try{return lo(i.fieldType,c,r,u)}catch(s){throw dt(`the id=${i.id}'s instance setState error, %o ${s}.`,r),s}}_proxyStateCallback(t,n,r,u,i){Array.isArray(t)?this._handlerArrayUpdate(t,n,r,u,i):this._handlerObjectUpdate(t,n,r,u)}_handlerArrayUpdate(t,n,r,u,i){const o=cu(this.runtime.flatInstances,n);if(!(o instanceof Un))return;const c=h=>[],s=Lt;let l=[],f=[],a=[];if(r&&u){switch(r){case"push":case"unshift":u.length,l=c(),f=u,o.children[r](...l),this.runtime.getFlatInstances();break;case"splice":if(u.length>2){u.length-2;const h=u.slice(2);l=c(),f=h;const d=u[0],p=u[1];o.children[r](d,p,...l),this.runtime.getFlatInstances()}else o.children[r](...u),this.runtime.getFlatInstances();break;default:o.children[r](...u),this.runtime.getFlatInstances();break}r==="splice"?a=i:["pop","shift"].includes(r)&&(a=[i]),this.emit("list-change",{instance:o,value:this.getState(o.id),options:Object.assign({},s,{changed:l,data:f,deleted:a!=null?a:[]})}),Lt=null}}_handlerObjectUpdate(t,n,r,u){const i=cu(this.runtime.flatInstances,n);if(!i)return;const o=this.getInstanceRowIndex(i),c=Lt||{};if(i instanceof Un){i.children.length=0;const s=r;let l=[];this.emit("list-change",{instance:i,value:r,options:fi(ge({},c),{changed:l,data:s,deleted:u!=null?u:[]})})}else this.emit("change",{instance:i,value:this.getState(i.id,o),rowIndex:o,options:fi(ge({},c),{oldValue:u})})}applyPlugins(){this.__pluginsApplied||(this.__plugins.forEach(t=>{var n;try{Dn=(n=t.pluginName)!=null?n:t.constructor.name,t.apply(this)}catch(r){at(`${Dn} Plugin apply Error
2
2
  ${r}`)}finally{Dn=""}}),this.__pluginsApplied=!0)}listControlCreateRow(t,n){throw new Error("\u8BE5api\u5DF2\u5E9F\u5F03")}listControlAddRow(t,n="subtable-row"){throw new Error("\u8BE5api\u5DF2\u5E9F\u5F03")}emit(t,n){return it(this,null,function*(){if(t==="engine-mounted"){if(this.isMounted)return dt("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 Ba(hu.prototype,this,"emit").call(this,t,n);return r&&u&&(r(),this._jobTasks.splice(this._jobTasks.indexOf(u),1)),i})}on(t,n){return Dn&&(n.applyingPluginName=Dn),super.on(t,n)}createControl(...t){return this.runtime.createControl(...t)}createInstance(t,n){return this.runtime.createControlInstance(t,n)}schemaEvent(t,n){this.emit(t,n)}updateInstanceProps(t,n,r,u){return this.setInstance(t,n,r,u)}getRules(t){var n;return t===void 0?this.runtime.rules:(n=this.runtime.rules[t])==null?void 0:n.fields}getAntdRules(t){var n;return t===void 0?this.runtime.antdRules:(n=this.runtime.antdRules[t])==null?void 0:n.fields}getState(t,n){return t===void 0?this.store.state:this.store.getState(t,n)}getEmptyState(t){return he(t===void 0?this.store.emptyState:this.store.getEmptyState(t))}setPayloadOptions(t){Lt=t}setState(t,n,r,u){Lt=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),Lt=null}setStates(t,n,r){let u=t;Object.keys(u).forEach(i=>{Object.entries(this.store.controlIdMapping).forEach(([o,c])=>{if(c.dataView===i){const s=u[i][o];s!==void 0&&this.setState(o,s,n,r)}else(o===i||c.children&&c.children[i])&&u[i]!==void 0&&this.setState(i,u[i],n,r)})})}getField(t,n,r){if(!n){const s=this.getDataBindMapping(t);if(s){const{controlId:l}=s;return this.getState(l)}return}const u=this.getDataBindMapping(t,n);if(!u)return;const{dataBind:i,controlId:o}=u,c=this.getState(o,r);return i instanceof pt?Object.entries(i).reduce((s,[l,f])=>f.fieldCode===n?s[l]:s,c):c}getData(t){var u,i,o,c,s,l,f,a;if(!t)return;let n=this.getDataBindMapping(t),r=this.getControlIdMapping();if(n){const{controlId:h}=n,d=this.getField(t);if(Array.isArray(d))return d.map(D=>{var g,A,M,w,x,P,L;let m={};for(let I in D)if((M=(A=(g=r[h])==null?void 0:g.children[I])==null?void 0:A.dataBind)!=null&&M.fieldCode)m[(w=r[h].children[I])==null?void 0:w.dataBind.fieldCode]=D[I];else if((x=r[h])!=null&&x.children[I])for(let j in D[I])m[(L=(P=r[h])==null?void 0:P.children[I])==null?void 0:L.dataBind[j].fieldCode]=D[I][j];return m});{let p={};for(let D in d)if((i=(u=r[D])==null?void 0:u.dataBind)!=null&&i.fieldCode)p[(o=r[D])==null?void 0:o.dataBind.fieldCode]=d[D];else if((s=(c=r[D])==null?void 0:c.dataBind)!=null&&s.dataCode)p[(l=r[D])==null?void 0:l.dataBind.dataCode]=d[D].map(m=>{var A,M,w;let g={};for(let x in m)if((A=r[D].children[x])!=null&&A.dataBind.fieldCode)g[(M=r[D].children[x])==null?void 0:M.dataBind.fieldCode]=m[x];else for(let P in m[x])g[(w=r[D].children[x])==null?void 0:w.dataBind[P].fieldCode]=m[x][P];return g});else if(r[D])for(let m in d[D])p[(a=(f=r[D])==null?void 0:f.dataBind[m])==null?void 0:a.fieldCode]=d[D][m];return p}}}setField(t,n,r,u,i){var l;const o=this.getDataBindMapping(t,n);if(!o)return;const{dataBind:c,controlId:s}=o;if(c instanceof pt){const f=(l=he(this.getState(s,u)))!=null?l:this.getEmptyState(s),a=Object.entries(c).reduce((h,[d,p])=>(p.fieldCode===n&&(h[d]=r),h),f);this.setState(s,a,u,i)}else this.setState(s,r,u,i)}setFields(t,n,r,u){const i=this.getDataBindMapping(t);if(!i)return;let o=[];i.fields.forEach(c=>{var a;const{dataBind:s,controlId:l,fieldCode:f}=c;if(!o.includes(f)&&!!Object.hasOwnProperty.call(n,f))if(s instanceof pt){const h=(a=he(this.getState(l,r)))!=null?a:this.getEmptyState(l),d=Object.entries(s).reduce((p,[D,m])=>{o.push(m.fieldCode);const g=n[m.fieldCode];return g!==void 0&&(p[D]=g),p},h);this.setState(c.controlId,d,r,u)}else this.setState(l,n[f],r,u)})}buildFields(t,n){const r=this.getDataBindMapping(t);if(!r)return;let u=[];const i={};return r.fields.forEach(o=>{const{dataBind:c,controlId:s,fieldCode:l}=o;if(!u.includes(l)&&!!Object.hasOwnProperty.call(n,l))if(c instanceof pt){const f=this.getEmptyState(s);i[o.controlId]=Object.entries(c).reduce((a,[h,d])=>{u.push(d.fieldCode);const p=n[d.fieldCode];return p!==void 0&&(a[h]=p),a},f)}else i[s]=n[l]}),i}setData(t,n){this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\uFF0C\u53C2\u6570\u4E3A%o\uFF0C%o\u3002",t,n);let r={};Object.keys(t).map(u=>{const i=t[u];if(Array.isArray(i))i.map(o=>{const c=this.getDataBindMapping(u);if(!c)return;let s=he(this.store.emptyState[c.dataViewId][c.controlId]),l=[];Object.keys(o).map(f=>{var h,d,p;if(l.includes(f))return;const a=(d=(h=this.store.dataBindMapping[u])==null?void 0:h.fields)==null?void 0:d.find(D=>D.fieldCode===f);if(a){if(a.dataBind instanceof on&&o[f]!==void 0)s[a.controlId]=o[f];else if(a.dataBind instanceof pt){let D=he((p=this.getEmptyState(a.controlId))!=null?p:{});Object.keys(a.dataBind).map(m=>{const g=a.dataBind[m];o[g.fieldCode]!==void 0&&(D[m]=o[g.fieldCode]),l.push(g.fieldCode)}),s[a.controlId]=D}}}),r[c.dataViewId]||(r[c.dataViewId]={}),r[c.dataViewId][c.controlId]||(r[c.dataViewId][c.controlId]=[]),r[c.dataViewId][c.controlId].push(s)});else if(i){let o=[];Object.keys(i).map(c=>{var l;if(o.includes(c))return;const s=this.getDataBindMapping(u,c);if(s){if(r[s.dataViewId[0]]||(r[s.dataViewId[0]]={}),s.dataBind instanceof on&&i[c]!==void 0)r[s.dataViewId[0]][s.controlId]=i[c];else if(s.dataBind instanceof pt){let f=he((l=this.getEmptyState(s.controlId))!=null?l:{});Object.keys(s.dataBind).map(a=>{const h=s.dataBind[a];i[h.fieldCode]!==void 0&&(f[a]=i[h.fieldCode]),o.push(h.fieldCode)}),r[s.dataViewId[0]][s.controlId]=f}}})}}),this.debugLog("engine setData\u65B9\u6CD5\u6570\u636E\u7EC4\u5408\u5B8C\u6210\uFF0C\u53C2\u6570\u4E3A%o\u3002",r),this.setStates(r,void 0,n),this.debugLog("engine setData\u65B9\u6CD5\u6267\u884C\u5B8C\u6210\u3002")}getDataBind(t){return this.store.getDataBind(t)}getInstance(t,n){const r=this.getInstances(t,n===-1);if(r.length>0)return n!==void 0?n===-1?r[0]:r[n]:r[0]}getInstances(t,n=!1){var u;if(t===void 0)return this.runtime.flatInstances;const r=this.runtime.flatInstances.filter(i=>i.id===t);if(n)if(r.length){const i=r[0];if(this.getInstanceRowIndex(i)!==void 0){const o=this.getInstanceInSubtableHeader(i);o&&r.unshift(o)}}else{const i=this.getControlIdMapping(),[o]=(u=Object.entries(i).find(([c,s])=>s.children&&t in s.children))!=null?u:[];if(o){const s=this.getInstance(o).props.headers.find(l=>l.children.find(f=>f.id===t));if(s){const l=s.children.find(f=>f.id===t);l&&r.unshift(l)}}}return r}setInstance(t,n,r,u){try{let i;if(typeof t=="string"?i=this.getInstance(t,u):i=t,!i)return;this.debugLog("[%o]: \u4FEE\u6539instance: %o\u7684%o\u5C5E\u6027\uFF0C\u4FEE\u6539\u7684\u503C\u4E3A%o\u3002",i.id,i,n,r),Ei(i.props,n,r),this.schemaEvent("schema-change",{instance:i,props:n,value:r})}catch(i){throw i}}getControlIdMapping(){return this.store.controlIdMapping}getDataBindMapping(t,n){if(!t&&!n)return this.store.dataBindMapping;const r=this.store.dataBindMapping[t];if(!r){dt(`No corresponding dataCode=${t} was found`);return}if(!n)return r;const u=r.fields.find(i=>i.fieldCode===n);if(!u){dt(`No corresponding fieldCode=${n} was found`);return}return u}getAction(){return this.actionManager}initDataManager(t){this.dataManager=new ed(t)}getDataManager(){return this.dataManager}assertInstance(t,n){return Te(n)?t.type===n:n.includes(t.type)}getInstanceRowIndex(t){if(!t.parent)return;let n;if(this.assertInstance(t.parent,Q.SUBTABLE))if(this.assertInstance(t,Q.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,Q.SUBTABLE_COLUMN)?t:this.getInstanceParentControl(t,Q.SUBTABLE_COLUMN);if(!r)return;const i=this.getInstanceParentControl(t,Q.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)}initSubTableRowPropsFromInstanceHeaders(t){const n=console,r=Date.now(),u="\u{1F42E} initSubTableRowPropsFromInstanceHeaders "+r;n.time(u),Object.assign(t.rowProps,ho(t.props.headers)),n.timeEnd(u)}initSubTableRowPropsFromProxySetNewValue(t,n){const r=console,u=Date.now(),i="\u{1F437} initSubTableRowPropsFromProxySetNewValue "+u;r.time(i),n.forEach(o=>{Object.assign(t.rowProps,{now:ho(t.props.headers)})}),r.timeEnd(i)}}class hd{}class dd{constructor(t,n){this.config=t,this.env=n}apply(t){this.engine=t;const n=this.config;if(!n)return;const r=po(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 po(e,t,n){if(!e.module||!e.module.compiled)return;const r=e.module.compiled,u={exports:{ctx:t,utils:t.getAction().actionUtils,env:n}};try{new Function("module","exports",r).call(u,u,u.exports)}catch(c){at(c.message+". fail to parse the module"),process.env.NODE_ENV!=="production"&&at("fail to parse the module")}const i={},o={};for(const[c,s]of Object.entries(u.exports))typeof s=="function"?i[c]=s:o[c]=s;return{funcMap:i,variables:o}}const pd={"engine-mounted":"did_mount","engine-submit":"will_submit","engine-submit-params":"do_submit","engine-submitted":"did_submit"};class Dd{constructor(t){this.config=t}apply(t){this.engine=t,Object.entries(pd).forEach(([n,r])=>{t.on(n,u=>it(this,null,function*(){const i=yield this.callLifecycleEvent(r,u);return i.includes(!1)?!1:i}))})}callLifecycleEvent(t,n){return it(this,null,function*(){const r=this.config;return!r||!Array.isArray(r[t])?[]:yield Promise.all(r[t].map(i=>it(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})))})}}class gd{constructor(t){this.config=t}apply(t){this.engine=t,Bi.events.forEach(n=>{n.code&&n.key&&this.engineAddEventListener(n.code,n.key)})}engineAddEventListener(t,n){this.engine.on(t,r=>it(this,null,function*(){if(!(t==="change"&&!this.engine.isMounted)&&r.instance!==void 0)return yield this.callControlEvent(n,r)}))}callControlEvent(t,n){return it(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=>it(this,null,function*(){return yield this.engine.getAction().execAction(i,n)})));return u.includes(!1)?!1:u})}}function du(){return du=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},du.apply(this,arguments)}var Do={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function Se(e){return typeof e=="number"}function mt(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 go(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function vo(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function mo(e){return e&&e.constructor.prototype.isUnit===!0||!1}function Wn(e){return typeof e=="string"}var $e=Array.isArray;function gn(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function pu(e){return Array.isArray(e)||gn(e)}function vd(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function md(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function yd(e){return e&&e.constructor.prototype.isRange===!0||!1}function yo(e){return e&&e.constructor.prototype.isIndex===!0||!1}function Ed(e){return typeof e=="boolean"}function Ad(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function Cd(e){return e&&e.constructor.prototype.isHelp===!0||!1}function Fd(e){return typeof e=="function"}function wd(e){return e instanceof Date}function bd(e){return e instanceof RegExp}function Bd(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!go(e)&&!vo(e))}function _d(e){return e===null}function Sd(e){return e===void 0}function Md(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Id(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function Nd(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function xd(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function Od(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Rd(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function Td(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Pd(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function $d(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function jd(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ld(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function qd(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function kd(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function Vd(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ud(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Hd(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function zd(e){return e&&e.constructor.prototype.isChain===!0||!1}function Du(e){var t=typeof e;return t==="object"?e===null?"null":mt(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":t}function It(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 It(n)});if(e instanceof Date)return new Date(e.valueOf());if(mt(e))return e;if(e instanceof RegExp)throw new TypeError("Cannot clone "+e);return Wd(e,It)}function Wd(e,t){var n={};for(var r in e)Zn(e,r)&&(n[r]=t(e[r]));return n}function gu(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(!gu(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)||!gu(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}else return e===t}}function Zn(e,t){return e&&Object.hasOwnProperty.call(e,t)}function Zd(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 Gd=["Matrix","Array"],Xd=["number","BigNumber","Fraction"],Eo=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.1.0-beta.0",
3
+ "version": "2.1.0-beta.1",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -22,7 +22,7 @@
22
22
  "postpublish": "node ../../scripts/postpublish.js"
23
23
  },
24
24
  "dependencies": {
25
- "@byteluck-fe/model-driven-core": "2.1.0-beta.0",
25
+ "@byteluck-fe/model-driven-core": "2.1.0-beta.1",
26
26
  "@byteluck-fe/model-driven-shared": "2.0.9",
27
27
  "lodash.clonedeep": "^4.5.0",
28
28
  "mathjs": "^11.3.3"
@@ -31,5 +31,5 @@
31
31
  "@types/lodash.clonedeep": "^4.5.7",
32
32
  "@types/node": "~18.0.3"
33
33
  },
34
- "gitHead": "1b8dacd513789bbc3dd2a365fc3b4e2a1ffc856a"
34
+ "gitHead": "a84dfe5916ef686b747184884087303d9849abcf"
35
35
  }