hlrender 0.0.92 → 0.0.93
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/{affix-widget-ac978de1.js → affix-widget-14d1b389.js} +9 -9
- package/{alert-widget-0a291b69.js → alert-widget-77b3624d.js} +9 -9
- package/{anchor-widget-5276e8b4.js → anchor-widget-cdbcc2f9.js} +6 -6
- package/{auto-complete-widget-7d0681b1.js → auto-complete-widget-53505937.js} +8 -8
- package/{avatar-widget-69ab420c.js → avatar-widget-d697aa21.js} +9 -9
- package/{backtop-widget-20a14a39.js → backtop-widget-bfb335b1.js} +9 -9
- package/{badge-widget-e420cd77.js → badge-widget-facf3546.js} +9 -9
- package/{baseImp-5e9f6c21.js → baseImp-e1c6b8ae.js} +1396 -1395
- package/{breadcrumb-widget-e47bcad3.js → breadcrumb-widget-4819ac9b.js} +6 -6
- package/{button-widget-01cd2268.js → button-widget-cdf91666.js} +9 -9
- package/{cache-widget-9a93e7f9.js → cache-widget-2ae539a2.js} +7 -7
- package/{card-widget-cc074652.js → card-widget-34dea272.js} +7 -7
- package/{carousel-widget-b4b62c45.js → carousel-widget-0a59b1a5.js} +6 -6
- package/{cascader-widget-c6951ba6.js → cascader-widget-9b0b6f3c.js} +7 -7
- package/{chart-widget-0e8b4938.js → chart-widget-95d39ad1.js} +6 -6
- package/{checkbox-widget-464da2ec.js → checkbox-widget-d8e6ef96.js} +7 -7
- package/{collapse-widget-1aadcf3b.js → collapse-widget-e6d39906.js} +6 -6
- package/{color-picker-widget-8e63f592.js → color-picker-widget-79ccf8ec.js} +7 -7
- package/{cont-cell-widget-6f145c41.js → cont-cell-widget-b3044b2c.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-54734d72.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-741a3c0c.js} +4 -4
- package/{cont-widget-0f8870c8.js → cont-widget-919af7f9.js} +4 -4
- package/{content-wrapper-c80522ba.js → content-wrapper-6942f6e4.js} +2 -2
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-dc339d2c.js → content-wrapper.vue_vue_type_script_setup_true_lang-80e3c950.js} +1 -1
- package/{date-picker-range-widget-67cd9553.js → date-picker-range-widget-c95bbb1f.js} +7 -7
- package/{date-picker-widget-d136ed28.js → date-picker-widget-d1f9a6ec.js} +7 -7
- package/{default-slot-widget-b63daf70.js → default-slot-widget-e2c6066d.js} +7 -7
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-b168fef4.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8dab8a16.js} +4 -4
- package/{descriptions-widget-47a85fba.js → descriptions-widget-88c30070.js} +7 -7
- package/{dialog-widget-a80950f6.js → dialog-widget-7ddd7948.js} +8 -8
- package/{divider-widget-b145a71d.js → divider-widget-88c1d34c.js} +9 -9
- package/{drag-wrapper-252f2c09.js → drag-wrapper-9226c9c1.js} +4 -4
- package/{drawer-widget-3d5aa4e7.js → drawer-widget-2dfede41.js} +8 -8
- package/{dropdown-widget-1f4112ea.js → dropdown-widget-ad987b2b.js} +7 -7
- package/{empty-widget-362c5c77.js → empty-widget-a8d1a162.js} +9 -9
- package/{feedback-widget-7d531f18.js → feedback-widget-703430a1.js} +8 -8
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-0de83033.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-118e5926.js} +4 -4
- package/{file-upload-widget-4e774f00.js → file-upload-widget-5b29a37c.js} +8 -8
- package/{form-item-wrapper-4d5d5aea.js → form-item-wrapper-7d442945.js} +3 -3
- package/{form-widget-fb3aaf79.js → form-widget-9478ef91.js} +7 -7
- package/{grid-col-widget-9382ea55.js → grid-col-widget-a1a8f98c.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-7ea1181d.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-84e35941.js} +4 -4
- package/{grid-widget-7ca4dd09.js → grid-widget-0f999529.js} +4 -4
- package/{html-text-widget-a2577861.js → html-text-widget-6f59727a.js} +7 -7
- package/{iframe-widget-13c4e442.js → iframe-widget-ffeb5b2c.js} +6 -6
- package/{image-widget-d840c0f5.js → image-widget-8d5a5db8.js} +6 -6
- package/{index-a3039561.js → index-0f8ec041.js} +1 -1
- package/{input-number-widget-3393c446.js → input-number-widget-8f36050a.js} +7 -7
- package/{input-widget-c775d6a9.js → input-widget-4bc4b347.js} +8 -8
- package/{link-widget-3fc48a61.js → link-widget-eedc0d73.js} +9 -9
- package/{ltable-col-widget-80eb4a4a.js → ltable-col-widget-c55caad3.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-a0fe11d4.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-516ca919.js} +6 -6
- package/{ltable-widget-b73ed83c.js → ltable-widget-54f1f9fd.js} +4 -4
- package/{menu-widget-3034be21.js → menu-widget-2b3f904a.js} +7 -7
- package/{model-widget-a9f60da9.js → model-widget-6aa3068e.js} +6 -6
- package/{multirow-64cb721f.js → multirow-5e4508c7.js} +3 -3
- package/{multirow-widget-f9ff9e2f.js → multirow-widget-d62410fa.js} +7 -7
- package/package.json +2 -2
- package/{pagination-widget-39b53106.js → pagination-widget-6bdc345d.js} +6 -6
- package/{picture-upload-widget-7a70a28d.js → picture-upload-widget-d68a11be.js} +8 -8
- package/{progress-widget-28248d4e.js → progress-widget-ad6e0c76.js} +7 -7
- package/{radio-widget-449805f5.js → radio-widget-49a112e7.js} +7 -7
- package/{range-widget-3941aaca.js → range-widget-f58f169e.js} +8 -8
- package/{rate-widget-0b0a0c9e.js → rate-widget-de74e340.js} +7 -7
- package/render.es.js +23 -23
- package/render.umd.js +1 -1
- package/{result-widget-211feca8.js → result-widget-bcb859d8.js} +7 -7
- package/{rich-editor-widget-113a1274.js → rich-editor-widget-a010f0b6.js} +7 -7
- package/{router-widget-dd32bdcc.js → router-widget-9df7eea1.js} +6 -6
- package/{select-widget-c6a0af39.js → select-widget-10a361ec.js} +7 -7
- package/{sfc-f79a5537.js → sfc-22044d56.js} +3 -3
- package/{share-field-4ad79e1a.js → share-field-a5dabda9.js} +4 -4
- package/{share-file-20adf548.js → share-file-3a16f8aa.js} +2 -2
- package/{slider-widget-013a24a9.js → slider-widget-c3492e46.js} +7 -7
- package/{slot-7ebda734.js → slot-0ceb202b.js} +1 -1
- package/{static-text-widget-8bbb0a2e.js → static-text-widget-fba3026b.js} +7 -7
- package/{steps-widget-c264e42a.js → steps-widget-766759f9.js} +6 -6
- package/{subMenu-widget-44b84ee4.js → subMenu-widget-a00e8893.js} +2 -2
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-b6179538.js → subMenu-widget.vue_vue_type_script_setup_true_lang-c75be781.js} +1 -1
- package/{switch-widget-b7ba7dbf.js → switch-widget-f5172ba4.js} +7 -7
- package/{tab-pane-widget-0c426991.js → tab-pane-widget-ba7c1106.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-30a18710.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-feb79606.js} +4 -4
- package/{table-col-widget-d0a8233b.js → table-col-widget-20a14e68.js} +6 -6
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-f4913bd1.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-71c60813.js} +4 -4
- package/{table-widget-22774537.js → table-widget-7351d4a1.js} +8 -8
- package/{tabs-widget-a1ffc876.js → tabs-widget-34629054.js} +5 -5
- package/{tag-widget-433c4e9b.js → tag-widget-c0549d90.js} +9 -9
- package/{text-widget-2433f3ac.js → text-widget-a8843fa2.js} +9 -9
- package/{textarea-widget-5b245431.js → textarea-widget-2287b05a.js} +7 -7
- package/{time-picker-range-widget-47952cc5.js → time-picker-range-widget-39e56c32.js} +7 -7
- package/{time-picker-widget-c3a706e0.js → time-picker-widget-56ae94ac.js} +7 -7
- package/{time-select-widget-c6c07b7f.js → time-select-widget-54ea06f7.js} +7 -7
- package/{tmpl-widget-dae98631.js → tmpl-widget-fab8fb30.js} +7 -7
- package/{tree-select-widget-ba6a6430.js → tree-select-widget-0a0d41b3.js} +7 -7
- package/{tree-widget-2e12e4cc.js → tree-widget-524ab008.js} +6 -6
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-4e9abe9d.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-6f20c3a7.js} +2 -2
- package/{wrapper-widget-0076c77d.js → wrapper-widget-f924bbaf.js} +4 -4
package/render.umd.js
CHANGED
|
@@ -16,7 +16,7 @@ vars:页面设置中的全局变量`,method:"方法",params:"参数",loadType:"
|
|
|
16
16
|
`&&++this.index,this.lineStart=this.index,h+=`
|
|
17
17
|
`):h+=y}return d||this.throwUnexpectedToken(),m||this.curlyStack.pop(),{type:10,value:this.source.slice(v+1,this.index-g),cooked:h,head:m,tail:p,lineNumber:this.lineNumber,lineStart:this.lineStart,start:v,end:this.index}},f.prototype.testRegExp=function(h,d){var v="",m=h,p=this;d.indexOf("u")>=0&&(m=m.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(g,y,b){var _=parseInt(y||b,16);return _>1114111&&p.throwUnexpectedToken(u.Messages.InvalidRegExp),_<=65535?String.fromCharCode(_):v}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v));try{RegExp(m)}catch{this.throwUnexpectedToken(u.Messages.InvalidRegExp)}try{return new RegExp(h,d)}catch{return null}},f.prototype.scanRegExpBody=function(){var h=this.source[this.index];o.assert(h==="/","Regular expression literal must start with a slash");for(var d=this.source[this.index++],v=!1,m=!1;!this.eof();)if(h=this.source[this.index++],d+=h,h==="\\")h=this.source[this.index++],i.Character.isLineTerminator(h.charCodeAt(0))&&this.throwUnexpectedToken(u.Messages.UnterminatedRegExp),d+=h;else if(i.Character.isLineTerminator(h.charCodeAt(0)))this.throwUnexpectedToken(u.Messages.UnterminatedRegExp);else if(v)h==="]"&&(v=!1);else if(h==="/"){m=!0;break}else h==="["&&(v=!0);return m||this.throwUnexpectedToken(u.Messages.UnterminatedRegExp),d.substr(1,d.length-2)},f.prototype.scanRegExpFlags=function(){for(var h="",d="";!this.eof();){var v=this.source[this.index];if(!i.Character.isIdentifierPart(v.charCodeAt(0)))break;if(++this.index,v==="\\"&&!this.eof())if(v=this.source[this.index],v==="u"){++this.index;var m=this.index,p=this.scanHexEscape("u");if(p!==null)for(d+=p,h+="\\u";m<this.index;++m)h+=this.source[m];else this.index=m,d+="u",h+="\\u";this.tolerateUnexpectedToken()}else h+="\\",this.tolerateUnexpectedToken();else d+=v,h+=v}return d},f.prototype.scanRegExp=function(){var h=this.index,d=this.scanRegExpBody(),v=this.scanRegExpFlags(),m=this.testRegExp(d,v);return{type:9,value:"",pattern:d,flags:v,regex:m,lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},f.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var h=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(h)?this.scanIdentifier():h===40||h===41||h===59?this.scanPunctuator():h===39||h===34?this.scanStringLiteral():h===46?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(h)?this.scanNumericLiteral():h===96||h===125&&this.curlyStack[this.curlyStack.length-1]==="${"?this.scanTemplate():h>=55296&&h<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},f}();r.Scanner=c},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TokenName={},r.TokenName[1]="Boolean",r.TokenName[2]="<end>",r.TokenName[3]="Identifier",r.TokenName[4]="Keyword",r.TokenName[5]="Null",r.TokenName[6]="Numeric",r.TokenName[7]="Punctuator",r.TokenName[8]="String",r.TokenName[9]="RegularExpression",r.TokenName[10]="Template"},function(n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var o=a(10),i=a(12),u=a(13),s=function(){function c(){this.values=[],this.curly=this.paren=-1}return c.prototype.beforeFunctionExpression=function(f){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(f)>=0},c.prototype.isRegexStart=function(){var f=this.values[this.values.length-1],h=f!==null;switch(f){case"this":case"]":h=!1;break;case")":var d=this.values[this.paren-1];h=d==="if"||d==="while"||d==="for"||d==="with";break;case"}":if(h=!1,this.values[this.curly-3]==="function"){var v=this.values[this.curly-4];h=v?!this.beforeFunctionExpression(v):!1}else if(this.values[this.curly-4]==="function"){var v=this.values[this.curly-5];h=v?!this.beforeFunctionExpression(v):!0}break}return h},c.prototype.push=function(f){f.type===7||f.type===4?(f.value==="{"?this.curly=this.values.length:f.value==="("&&(this.paren=this.values.length),this.values.push(f.value)):this.values.push(null)},c}(),l=function(){function c(f,h){this.errorHandler=new o.ErrorHandler,this.errorHandler.tolerant=h?typeof h.tolerant=="boolean"&&h.tolerant:!1,this.scanner=new i.Scanner(f,this.errorHandler),this.scanner.trackComment=h?typeof h.comment=="boolean"&&h.comment:!1,this.trackRange=h?typeof h.range=="boolean"&&h.range:!1,this.trackLoc=h?typeof h.loc=="boolean"&&h.loc:!1,this.buffer=[],this.reader=new s}return c.prototype.errors=function(){return this.errorHandler.errors},c.prototype.getNextToken=function(){if(this.buffer.length===0){var f=this.scanner.scanComments();if(this.scanner.trackComment)for(var h=0;h<f.length;++h){var d=f[h],v=this.scanner.source.slice(d.slice[0],d.slice[1]),m={type:d.multiLine?"BlockComment":"LineComment",value:v};this.trackRange&&(m.range=d.range),this.trackLoc&&(m.loc=d.loc),this.buffer.push(m)}if(!this.scanner.eof()){var p=void 0;this.trackLoc&&(p={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var g=this.scanner.source[this.scanner.index]==="/"&&this.reader.isRegexStart(),y=g?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(y);var b={type:u.TokenName[y.type],value:this.scanner.source.slice(y.start,y.end)};if(this.trackRange&&(b.range=[y.start,y.end]),this.trackLoc&&(p.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},b.loc=p),y.type===9){var _=y.pattern,E=y.flags;b.regex={pattern:_,flags:E}}this.buffer.push(b)}}return this.buffer.shift()},c}();r.Tokenizer=l}])})})(_J);const bJ=Jm({__proto__:null,default:cg(Ei)},[Ei]),xJ=e=>{var t,n,r;return(r=(n=(t=e==null?void 0:e[0])==null?void 0:t.expression)==null?void 0:n.callee)==null?void 0:r.name},vD=e=>{if(e==null||e==null)return null;try{return Ei.parseScript(e)}catch(t){return zi.error("astTree",t,{script:e}),null}};function EJ(e){return vD(e==null?void 0:e.replaceAll(/return/g," "))}function mD(e){const t=[],n=EJ(e);function r(i){if(i.type===Ei.Syntax.MemberExpression){const u={root:"",properties:[]};a(i,u),u.root&&t.push(u)}else i.type===Ei.Syntax.CallExpression&&o(i,t);for(const u in i){const s=i[u];Array.isArray(s)?s.forEach(l=>l&&r(l)):s&&typeof s=="object"&&r(s)}}function a(i,u){var s=i.object,l=i.property;s.type===Ei.Syntax.MemberExpression?a(s,u):s.type===Ei.Syntax.Identifier&&(u.root=s.name),l.type===Ei.Syntax.Identifier?u.properties.push(l.name):(l.type===Ei.Syntax.Literal&&typeof l.value=="string"||l.type===Ei.Syntax.Literal&&typeof l.value=="number")&&u.properties.push(l.value)}function o(i,u){var s;(s=i.arguments)==null||s.forEach(l=>{if(l.type===Ei.Syntax.Identifier){const c={root:l.name,properties:[]};u.push(c)}})}return r(n),t}function wJ(e){var t=mD(e),n=t.map(r=>r.root);return pT(n)}function gD(){const e=()=>new Promise((n,r)=>{Promise.resolve().then(()=>Moe).then(a=>{Promise.resolve().then(()=>Loe).then(o=>{Promise.resolve().then(()=>bJ).then(i=>{n({escodegen:a,estraverse:o,esprima:i})})})})});function t(n,r,a,o){try{const i=n==null?void 0:n.esprima.parseScript(r);return n==null||n.estraverse.traverse(i,{enter(u){u=a(u,o)}}),n==null?void 0:n.escodegen.generate(i)}catch{return r}}return{init:e,replaceVariableName:t}}const yD=(e,t,n)=>{let r="";if(n){const a=new Date;a.setTime(a.getTime()+n*60*1e3),r=`; expires=${a.toUTCString()}`}document.cookie=`${e}=${t}${r}; path=/`},SJ=e=>{const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},CJ=e=>{yD(e,"",-1)};function AJ(){const t=document.cookie.split("; "),n={};return t.forEach(r=>{const[a,o]=r.split("=");Rc(a)||(n[a]=o)}),n}const _D={get(e){return SJ(e)},set(e,t,n){yD(e,t,n)},remove(e){CJ(e)},getAll(){return AJ()}};function bD(e,t){return function(){return e.apply(t,arguments)}}const{toString:TJ}=Object.prototype,{getPrototypeOf:xx}=Object,fg=(e=>t=>{const n=TJ.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Qs=e=>(e=e.toLowerCase(),t=>fg(t)===e),pg=e=>t=>typeof t===e,{isArray:Bp}=Array,Md=pg("undefined");function DJ(e){return e!==null&&!Md(e)&&e.constructor!==null&&!Md(e.constructor)&&Mo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xD=Qs("ArrayBuffer");function PJ(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xD(e.buffer),t}const OJ=pg("string"),Mo=pg("function"),ED=pg("number"),hg=e=>e!==null&&typeof e=="object",kJ=e=>e===!0||e===!1,dg=e=>{if(fg(e)!=="object")return!1;const t=xx(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},BJ=Qs("Date"),IJ=Qs("File"),NJ=Qs("Blob"),FJ=Qs("FileList"),MJ=e=>hg(e)&&Mo(e.pipe),LJ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mo(e.append)&&((t=fg(e))==="formdata"||t==="object"&&Mo(e.toString)&&e.toString()==="[object FormData]"))},RJ=Qs("URLSearchParams"),jJ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ld(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Bp(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let u;for(r=0;r<i;r++)u=o[r],t.call(null,e[u],u,e)}}function wD(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const SD=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),CD=e=>!Md(e)&&e!==SD;function Ex(){const{caseless:e}=CD(this)&&this||{},t={},n=(r,a)=>{const o=e&&wD(t,a)||a;dg(t[o])&&dg(r)?t[o]=Ex(t[o],r):dg(r)?t[o]=Ex({},r):Bp(r)?t[o]=r.slice():t[o]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Ld(arguments[r],n);return t}const VJ=(e,t,n,{allOwnKeys:r}={})=>(Ld(t,(a,o)=>{n&&Mo(a)?e[o]=bD(a,n):e[o]=a},{allOwnKeys:r}),e),zJ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),UJ=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},HJ=(e,t,n,r)=>{let a,o,i;const u={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&xx(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},WJ=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},GJ=e=>{if(!e)return null;if(Bp(e))return e;let t=e.length;if(!ED(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},KJ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xx(Uint8Array)),XJ=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},YJ=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},JJ=Qs("HTMLFormElement"),ZJ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),AD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),QJ=Qs("RegExp"),TD=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ld(n,(a,o)=>{t(a,o,e)!==!1&&(r[o]=a)}),Object.defineProperties(e,r)},qJ=e=>{TD(e,(t,n)=>{if(Mo(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Mo(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},$J=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return Bp(e)?r(e):r(String(e).split(t)),n},eZ=()=>{},tZ=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Sx="abcdefghijklmnopqrstuvwxyz",DD="0123456789",PD={DIGIT:DD,ALPHA:Sx,ALPHA_DIGIT:Sx+Sx.toUpperCase()+DD},nZ=(e=16,t=PD.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function rZ(e){return!!(e&&Mo(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const iZ=e=>{const t=new Array(10),n=(r,a)=>{if(hg(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const o=Bp(r)?[]:{};return Ld(r,(i,u)=>{const s=n(i,a+1);!Md(s)&&(o[u]=s)}),t[a]=void 0,o}}return r};return n(e,0)},aZ=Qs("AsyncFunction"),Ot={isArray:Bp,isArrayBuffer:xD,isBuffer:DJ,isFormData:LJ,isArrayBufferView:PJ,isString:OJ,isNumber:ED,isBoolean:kJ,isObject:hg,isPlainObject:dg,isUndefined:Md,isDate:BJ,isFile:IJ,isBlob:NJ,isRegExp:QJ,isFunction:Mo,isStream:MJ,isURLSearchParams:RJ,isTypedArray:KJ,isFileList:FJ,forEach:Ld,merge:Ex,extend:VJ,trim:jJ,stripBOM:zJ,inherits:UJ,toFlatObject:HJ,kindOf:fg,kindOfTest:Qs,endsWith:WJ,toArray:GJ,forEachEntry:XJ,matchAll:YJ,isHTMLForm:JJ,hasOwnProperty:AD,hasOwnProp:AD,reduceDescriptors:TD,freezeMethods:qJ,toObjectSet:$J,toCamelCase:ZJ,noop:eZ,toFiniteNumber:tZ,findKey:wD,global:SD,isContextDefined:CD,ALPHABET:PD,generateString:nZ,isSpecCompliantForm:rZ,toJSONObject:iZ,isAsyncFn:aZ,isThenable:e=>e&&(hg(e)||Mo(e))&&Mo(e.then)&&Mo(e.catch)};function Br(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}Ot.inherits(Br,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ot.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const OD=Br.prototype,kD={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{kD[e]={value:e}}),Object.defineProperties(Br,kD),Object.defineProperty(OD,"isAxiosError",{value:!0}),Br.from=(e,t,n,r,a,o)=>{const i=Object.create(OD);return Ot.toFlatObject(e,i,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),Br.call(i,e.message,t,n,r,a),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const oZ=null;function Cx(e){return Ot.isPlainObject(e)||Ot.isArray(e)}function BD(e){return Ot.endsWith(e,"[]")?e.slice(0,-2):e}function ID(e,t,n){return e?e.concat(t).map(function(a,o){return a=BD(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function sZ(e){return Ot.isArray(e)&&!e.some(Cx)}const lZ=Ot.toFlatObject(Ot,{},null,function(t){return/^is[A-Z]/.test(t)});function vg(e,t,n){if(!Ot.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ot.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!Ot.isUndefined(p[m])});const r=n.metaTokens,a=n.visitor||c,o=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&Ot.isSpecCompliantForm(t);if(!Ot.isFunction(a))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(Ot.isDate(v))return v.toISOString();if(!s&&Ot.isBlob(v))throw new Br("Blob is not supported. Use a Buffer instead.");return Ot.isArrayBuffer(v)||Ot.isTypedArray(v)?s&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,m,p){let g=v;if(v&&!p&&typeof v=="object"){if(Ot.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(Ot.isArray(v)&&sZ(v)||(Ot.isFileList(v)||Ot.endsWith(m,"[]"))&&(g=Ot.toArray(v)))return m=BD(m),g.forEach(function(b,_){!(Ot.isUndefined(b)||b===null)&&t.append(i===!0?ID([m],_,o):i===null?m:m+"[]",l(b))}),!1}return Cx(v)?!0:(t.append(ID(p,m,o),l(v)),!1)}const f=[],h=Object.assign(lZ,{defaultVisitor:c,convertValue:l,isVisitable:Cx});function d(v,m){if(!Ot.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(v),Ot.forEach(v,function(g,y){(!(Ot.isUndefined(g)||g===null)&&a.call(t,g,Ot.isString(y)?y.trim():y,m,h))===!0&&d(g,m?m.concat(y):[y])}),f.pop()}}if(!Ot.isObject(e))throw new TypeError("data must be an object");return d(e),t}function ND(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ax(e,t){this._pairs=[],e&&vg(e,this,t)}const FD=Ax.prototype;FD.append=function(t,n){this._pairs.push([t,n])},FD.toString=function(t){const n=t?function(r){return t.call(this,r,ND)}:ND;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function uZ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function MD(e,t,n){if(!t)return e;const r=n&&n.encode||uZ,a=n&&n.serialize;let o;if(a?o=a(t,n):o=Ot.isURLSearchParams(t)?t.toString():new Ax(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class cZ{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ot.forEach(this.handlers,function(r){r!==null&&t(r)})}}const LD=cZ,RD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fZ=typeof URLSearchParams<"u"?URLSearchParams:Ax,pZ=typeof FormData<"u"?FormData:null,hZ=typeof Blob<"u"?Blob:null,dZ=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),vZ=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),qs={isBrowser:!0,classes:{URLSearchParams:fZ,FormData:pZ,Blob:hZ},isStandardBrowserEnv:dZ,isStandardBrowserWebWorkerEnv:vZ,protocols:["http","https","file","blob","url","data"]};function mZ(e,t){return vg(e,new qs.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,o){return qs.isNode&&Ot.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function gZ(e){return Ot.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yZ(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}function jD(e){function t(n,r,a,o){let i=n[o++];const u=Number.isFinite(+i),s=o>=n.length;return i=!i&&Ot.isArray(a)?a.length:i,s?(Ot.hasOwnProp(a,i)?a[i]=[a[i],r]:a[i]=r,!u):((!a[i]||!Ot.isObject(a[i]))&&(a[i]=[]),t(n,r,a[i],o)&&Ot.isArray(a[i])&&(a[i]=yZ(a[i])),!u)}if(Ot.isFormData(e)&&Ot.isFunction(e.entries)){const n={};return Ot.forEachEntry(e,(r,a)=>{t(gZ(r),a,n,0)}),n}return null}const _Z={"Content-Type":void 0};function bZ(e,t,n){if(Ot.isString(e))try{return(t||JSON.parse)(e),Ot.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const mg={transitional:RD,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=Ot.isObject(t);if(o&&Ot.isHTMLForm(t)&&(t=new FormData(t)),Ot.isFormData(t))return a&&a?JSON.stringify(jD(t)):t;if(Ot.isArrayBuffer(t)||Ot.isBuffer(t)||Ot.isStream(t)||Ot.isFile(t)||Ot.isBlob(t))return t;if(Ot.isArrayBufferView(t))return t.buffer;if(Ot.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mZ(t,this.formSerializer).toString();if((u=Ot.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return vg(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),bZ(t)):t}],transformResponse:[function(t){const n=this.transitional||mg.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&Ot.isString(t)&&(r&&!this.responseType||a)){const i=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?Br.from(u,Br.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qs.classes.FormData,Blob:qs.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ot.forEach(["delete","get","head"],function(t){mg.headers[t]={}}),Ot.forEach(["post","put","patch"],function(t){mg.headers[t]=Ot.merge(_Z)});const Tx=mg,xZ=Ot.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),EZ=e=>{const t={};let n,r,a;return e&&e.split(`
|
|
18
18
|
`).forEach(function(i){a=i.indexOf(":"),n=i.substring(0,a).trim().toLowerCase(),r=i.substring(a+1).trim(),!(!n||t[n]&&xZ[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},VD=Symbol("internals");function Rd(e){return e&&String(e).trim().toLowerCase()}function gg(e){return e===!1||e==null?e:Ot.isArray(e)?e.map(gg):String(e)}function wZ(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const SZ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dx(e,t,n,r,a){if(Ot.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!Ot.isString(t)){if(Ot.isString(r))return t.indexOf(r)!==-1;if(Ot.isRegExp(r))return r.test(t)}}function CZ(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function AZ(e,t){const n=Ot.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,o,i){return this[r].call(this,t,a,o,i)},configurable:!0})})}class yg{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(u,s,l){const c=Rd(s);if(!c)throw new Error("header name must be a non-empty string");const f=Ot.findKey(a,c);(!f||a[f]===void 0||l===!0||l===void 0&&a[f]!==!1)&&(a[f||s]=gg(u))}const i=(u,s)=>Ot.forEach(u,(l,c)=>o(l,c,s));return Ot.isPlainObject(t)||t instanceof this.constructor?i(t,n):Ot.isString(t)&&(t=t.trim())&&!SZ(t)?i(EZ(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Rd(t),t){const r=Ot.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return wZ(a);if(Ot.isFunction(n))return n.call(this,a,r);if(Ot.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Rd(t),t){const r=Ot.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dx(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(i){if(i=Rd(i),i){const u=Ot.findKey(r,i);u&&(!n||Dx(r,r[u],u,n))&&(delete r[u],a=!0)}}return Ot.isArray(t)?t.forEach(o):o(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!t||Dx(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return Ot.forEach(this,(a,o)=>{const i=Ot.findKey(r,o);if(i){n[i]=gg(a),delete n[o];return}const u=t?CZ(o):String(o).trim();u!==o&&delete n[o],n[u]=gg(a),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ot.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&Ot.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
19
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[VD]=this[VD]={accessors:{}}).accessors,a=this.prototype;function o(i){const u=Rd(i);r[u]||(AZ(a,i),r[u]=!0)}return Ot.isArray(t)?t.forEach(o):o(t),this}}yg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ot.freezeMethods(yg.prototype),Ot.freezeMethods(yg);const Il=yg;function Px(e,t){const n=this||Tx,r=t||n,a=Il.from(r.headers);let o=r.data;return Ot.forEach(e,function(u){o=u.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function zD(e){return!!(e&&e.__CANCEL__)}function jd(e,t,n){Br.call(this,e??"canceled",Br.ERR_CANCELED,t,n),this.name="CanceledError"}Ot.inherits(jd,Br,{__CANCEL__:!0});function TZ(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Br("Request failed with status code "+n.status,[Br.ERR_BAD_REQUEST,Br.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const DZ=qs.isStandardBrowserEnv?function(){return{write:function(n,r,a,o,i,u){const s=[];s.push(n+"="+encodeURIComponent(r)),Ot.isNumber(a)&&s.push("expires="+new Date(a).toGMTString()),Ot.isString(o)&&s.push("path="+o),Ot.isString(i)&&s.push("domain="+i),u===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function PZ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OZ(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function UD(e,t){return e&&!PZ(t)?OZ(e,t):t}const kZ=qs.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(i){const u=Ot.isString(i)?a(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function BZ(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function IZ(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(s){const l=Date.now(),c=r[o];i||(i=l),n[a]=s,r[a]=l;let f=o,h=0;for(;f!==a;)h+=n[f++],f=f%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),l-i<t)return;const d=c&&l-c;return d?Math.round(h*1e3/d):void 0}}function HD(e,t){let n=0;const r=IZ(50,250);return a=>{const o=a.loaded,i=a.lengthComputable?a.total:void 0,u=o-n,s=r(u),l=o<=i;n=o;const c={loaded:o,total:i,progress:i?o/i:void 0,bytes:u,rate:s||void 0,estimated:s&&i&&l?(i-o)/s:void 0,event:a};c[t?"download":"upload"]=!0,e(c)}}const _g={http:oZ,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let a=e.data;const o=Il.from(e.headers).normalize(),i=e.responseType;let u;function s(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}Ot.isFormData(a)&&(qs.isStandardBrowserEnv||qs.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(d+":"+v))}const c=UD(e.baseURL,e.url);l.open(e.method.toUpperCase(),MD(c,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function f(){if(!l)return;const d=Il.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),m={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:e,request:l};TZ(function(g){n(g),s()},function(g){r(g),s()},m),l=null}if("onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(f)},l.onabort=function(){l&&(r(new Br("Request aborted",Br.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new Br("Network Error",Br.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||RD;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new Br(v,m.clarifyTimeoutError?Br.ETIMEDOUT:Br.ECONNABORTED,e,l)),l=null},qs.isStandardBrowserEnv){const d=(e.withCredentials||kZ(c))&&e.xsrfCookieName&&DZ.read(e.xsrfCookieName);d&&o.set(e.xsrfHeaderName,d)}a===void 0&&o.setContentType(null),"setRequestHeader"in l&&Ot.forEach(o.toJSON(),function(v,m){l.setRequestHeader(m,v)}),Ot.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",HD(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",HD(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=d=>{l&&(r(!d||d.type?new jd(null,e,l):d),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const h=BZ(c);if(h&&qs.protocols.indexOf(h)===-1){r(new Br("Unsupported protocol "+h+":",Br.ERR_BAD_REQUEST,e));return}l.send(a||null)})}};Ot.forEach(_g,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const NZ={getAdapter:e=>{e=Ot.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let a=0;a<t&&(n=e[a],!(r=Ot.isString(n)?_g[n.toLowerCase()]:n));a++);if(!r)throw r===!1?new Br(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Ot.hasOwnProp(_g,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!Ot.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:_g};function Ox(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jd(null,e)}function WD(e){return Ox(e),e.headers=Il.from(e.headers),e.data=Px.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),NZ.getAdapter(e.adapter||Tx.adapter)(e).then(function(r){return Ox(e),r.data=Px.call(e,e.transformResponse,r),r.headers=Il.from(r.headers),r},function(r){return zD(r)||(Ox(e),r&&r.response&&(r.response.data=Px.call(e,e.transformResponse,r.response),r.response.headers=Il.from(r.response.headers))),Promise.reject(r)})}const GD=e=>e instanceof Il?e.toJSON():e;function Ip(e,t){t=t||{};const n={};function r(l,c,f){return Ot.isPlainObject(l)&&Ot.isPlainObject(c)?Ot.merge.call({caseless:f},l,c):Ot.isPlainObject(c)?Ot.merge({},c):Ot.isArray(c)?c.slice():c}function a(l,c,f){if(Ot.isUndefined(c)){if(!Ot.isUndefined(l))return r(void 0,l,f)}else return r(l,c,f)}function o(l,c){if(!Ot.isUndefined(c))return r(void 0,c)}function i(l,c){if(Ot.isUndefined(c)){if(!Ot.isUndefined(l))return r(void 0,l)}else return r(void 0,c)}function u(l,c,f){if(f in t)return r(l,c);if(f in e)return r(void 0,l)}const s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(l,c)=>a(GD(l),GD(c),!0)};return Ot.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=s[c]||a,h=f(e[c],t[c],c);Ot.isUndefined(h)&&f!==u||(n[c]=h)}),n}const KD="1.4.0",kx={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{kx[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const XD={};kx.transitional=function(t,n,r){function a(o,i){return"[Axios v"+KD+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new Br(a(i," has been removed"+(n?" in "+n:"")),Br.ERR_DEPRECATED);return n&&!XD[i]&&(XD[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,u):!0}};function FZ(e,t,n){if(typeof e!="object")throw new Br("options must be an object",Br.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],i=t[o];if(i){const u=e[o],s=u===void 0||i(u,o,e);if(s!==!0)throw new Br("option "+o+" must be "+s,Br.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Br("Unknown option "+o,Br.ERR_BAD_OPTION)}}const Bx={assertOptions:FZ,validators:kx},wu=Bx.validators;class bg{constructor(t){this.defaults=t,this.interceptors={request:new LD,response:new LD}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ip(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Bx.assertOptions(r,{silentJSONParsing:wu.transitional(wu.boolean),forcedJSONParsing:wu.transitional(wu.boolean),clarifyTimeoutError:wu.transitional(wu.boolean)},!1),a!=null&&(Ot.isFunction(a)?n.paramsSerializer={serialize:a}:Bx.assertOptions(a,{encode:wu.function,serialize:wu.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&Ot.merge(o.common,o[n.method]),i&&Ot.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=Il.concat(i,o);const u=[];let s=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(s=s&&m.synchronous,u.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let c,f=0,h;if(!s){const v=[WD.bind(this),void 0];for(v.unshift.apply(v,u),v.push.apply(v,l),h=v.length,c=Promise.resolve(n);f<h;)c=c.then(v[f++],v[f++]);return c}h=u.length;let d=n;for(f=0;f<h;){const v=u[f++],m=u[f++];try{d=v(d)}catch(p){m.call(this,p);break}}try{c=WD.call(this,d)}catch(v){return Promise.reject(v)}for(f=0,h=l.length;f<h;)c=c.then(l[f++],l[f++]);return c}getUri(t){t=Ip(this.defaults,t);const n=UD(t.baseURL,t.url);return MD(n,t.params,t.paramsSerializer)}}Ot.forEach(["delete","get","head","options"],function(t){bg.prototype[t]=function(n,r){return this.request(Ip(r||{},{method:t,url:n,data:(r||{}).data}))}}),Ot.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,u){return this.request(Ip(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}bg.prototype[t]=n(),bg.prototype[t+"Form"]=n(!0)});const xg=bg;class Ix{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new jd(o,i,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ix(function(a){t=a}),cancel:t}}}const MZ=Ix;function LZ(e){return function(n){return e.apply(null,n)}}function RZ(e){return Ot.isObject(e)&&e.isAxiosError===!0}const Nx={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nx).forEach(([e,t])=>{Nx[t]=e});const jZ=Nx;function YD(e){const t=new xg(e),n=bD(xg.prototype.request,t);return Ot.extend(n,xg.prototype,t,{allOwnKeys:!0}),Ot.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return YD(Ip(e,a))},n}const Xi=YD(Tx);Xi.Axios=xg,Xi.CanceledError=jd,Xi.CancelToken=MZ,Xi.isCancel=zD,Xi.VERSION=KD,Xi.toFormData=vg,Xi.AxiosError=Br,Xi.Cancel=Xi.CanceledError,Xi.all=function(t){return Promise.all(t)},Xi.spread=LZ,Xi.isAxiosError=RZ,Xi.mergeConfig=Ip,Xi.AxiosHeaders=Il,Xi.formToJSON=e=>jD(Ot.isHTMLForm(e)?new FormData(e):e),Xi.HttpStatusCode=jZ,Xi.default=Xi;const JD=Xi,VZ=e=>{let t={};return e.map(n=>{t[n.name]=n.value}),t},zZ=e=>({moduleCache:{vue:mG},getFile(t){return Promise.resolve(e)},addStyle(t){const n=Object.assign(document.createElement("style"),{textContent:t}),r=document.head.getElementsByTagName("style")[0]||null;document.head.insertBefore(n,r)}}),ZD=e=>{var n;if(!e)return null;(n=e==null?void 0:e.trim())!=null&&n.includes("<template>")||(e=`<template>${e}</template>`);const t=zZ(e);return x.defineAsyncComponent({loader:async()=>{const r=await Promise.resolve().then(()=>joe),{loadModule:a}=r;return a("/myComponent.vue",t)}})},UZ=e=>{var r;if(!e)return"";var t=/<template>(?<templateBody>[^*]+)<\/template>/,n=t.exec(e);if(n&&(n==null?void 0:n.length)>0)try{return((r=n.groups)==null?void 0:r.templateBody)||""}catch{}return""};function Sa(e){var s,l,c;const t=()=>x.getCurrentInstance(),n=e??t(),r=(c=(l=(s=n==null?void 0:n.appContext)==null?void 0:s.app)==null?void 0:l.config)==null?void 0:c.globalProperties,a=r==null?void 0:r.$message,o=r==null?void 0:r.$confirm,i=r==null?void 0:r.$prompt,u=n==null?void 0:n.proxy;return{getInstance:t,instance:n,proxy:u,$message:a,$confirm:o,$prompt:i,globalProperties:r}}const HZ=function(e){return QD(window.location.href,e)},QD=function(e,t){const n=Eg(e);return n==null?void 0:n[t]},WZ=e=>/^(?:%[0-9A-Fa-f]{2}|[A-Za-z0-9\-_.!~*'()]|%20)*$/.test(e),qD=function(){return Eg(window.location.href)},$D=e=>{var t;return((t=e==null?void 0:e.split("?"))==null?void 0:t.at(0))||e||""},Eg=e=>{var a;const t={};let n=(a=e==null?void 0:e.split("?"))==null?void 0:a.at(1),r=n==null?void 0:n.split("&");for(let o=0;o<((r==null?void 0:r.length)||0);o++){let i=r==null?void 0:r[o].split("="),u=(i==null?void 0:i[0])||"",s=(i==null?void 0:i[1])||"";WZ(s)?t[u]=decodeURIComponent(s):t[u]=s}return t},e5=(e,t,n)=>{t=Object.assign(Eg(e)||{},t),e=$D(e);const r=Object.entries(t).map(([a,o])=>n===!1?`${a}=${o==null?void 0:o.toString()}`:`${encodeURIComponent(a)}=${encodeURIComponent(o==null?void 0:o.toString())}`).join("&");return r?`${e}?${r}`:e},GZ=e=>e5(e,qD()),t5=e=>{try{return new URL(e),!0}catch{return!1}},KZ=()=>{location.reload()},XZ=()=>{function e(s,l,c="",f=!1){const h=S=>{const[A,P=""]=S.split("#",2),[C,D=""]=A.split("?",2);return{path:C.replace(/^#/,"").replace(/\/+$/,""),searchParams:new URLSearchParams(D),hashFragment:P}},d=h(s),v=h(l),m=f?new URLSearchParams(d.searchParams):new URLSearchParams;v.searchParams.forEach((S,A)=>{m.set(A,S)});const p=(S,A)=>{const P=S.split("/").filter(Boolean),C=A.split("/").filter(Boolean);for(const D of C)D!=="."&&(D===".."?P.length>0&&P.pop():P.push(D));return`/${P.join("/")}`},y=((S,A)=>A.startsWith("/")?`/${A.replace(/^\/+/,"")}`:p(S,v.path))(d.path,v.path),b=m.toString(),E=`${`${y}${b?`?${b}`:""}`}${v.hashFragment?`#${v.hashFragment}`:""}`;return(a()?`/${c}#/${E}`:E).replace(/\/+/g,"/").replace(/^#\//,"#").replace(/%20/g,"+").replace(/[?#]/g,S=>S)}function t(s,l,c=""){return e(l,s,c)}const n=()=>window.location.hash,r=()=>window.location.pathname,a=()=>!!n();function o(s){const l=new URL(s);return l.pathname=l.pathname.replace(/\/{2,}/g,"/"),l.toString()}const i=s=>{const l="/";var c=window.location.href,[f]=c.split(/\/[^/]*#\//g,2);return[f,s].join(l)};return{resolveByCurrentUrl:(s,l="")=>{var f;if(t5(s))return s;const c=t(s,((f=n())==null?void 0:f.substring(1))||r(),l);return o(i(c))}}},{resolveByCurrentUrl:YZ}=XZ(),Nl={buildUrl:e5,getBaseUrl:$D,getQueryParam:QD,getLocationQueryParam:HZ,getQueryParams:Eg,getLocationQueryParams:qD,buildUrlByLocalQuery:GZ,isUrl:t5,refresh:KZ,resolveByCurrentUrl:YZ};class Fx{constructor(){U(this,"type","ok");U(this,"body")}}class JZ{constructor(t){U(this,"_app");this._app=t}open(t,n,r){if(!this._app)return;const a=document.createElement("div");document.body.appendChild(a);const o=()=>{document.body.removeChild(a)},i=x.h(t,{...n,onOk:u=>{r==null||r(this.ok({props:u,destroyDialog:o}))},onCancel:u=>{r==null||r(this.cancel({props:u,destroyDialog:o}))},onClose:u=>{r==null||r(this.close({props:u,destroyDialog:o}))}});i.appContext=this._app._context,x.render(i,a)}ok(t){const n=new Fx;return n.type="ok",n.body=t,n}cancel(t){const n=new Fx;return n.type="cancel",n.body=t,n}close(t){const n=new Fx;return n.type="close",n.body=t,n}}function ZZ(e){var n,r,a,o;var t=(o=(a=(r=(n=e==null?void 0:e.appContext)==null?void 0:n.app)==null?void 0:r.config)==null?void 0:a.globalProperties)==null?void 0:o.$dzModal;if(!t)throw new Error("No DzModal installed");return t}const QZ={install(e,t){const n=new JZ(e);e.config.globalProperties.$dzModal=n}},qZ=x.defineAsyncComponent(()=>Promise.resolve().then(()=>Nk));class $Z{constructor(){U(this,"fullscreen",{type:Boolean,default:!1});U(this,"width",{type:String});U(this,"height",{type:String});U(this,"title",{type:String});U(this,"url",{type:String});U(this,"dialogType",{type:Array});U(this,"callback",{type:Object})}}const eQ=new $Z,n5=(e,t)=>{const n=ZZ(e);n==null||n.open(qZ,t,r=>{var u,s;const a=jt(t==null?void 0:t.callback),o=r.body,i=()=>{var l;(l=o==null?void 0:o.destroyDialog)==null||l.call(o)};r.type==="ok"?(u=a==null?void 0:a.okCallback)==null||u.call(a,{data:r.body}).then(l=>{i()}):r.type==="cancel"?(s=a==null?void 0:a.cancelCallback)==null||s.call(a,{data:r.body}).then(l=>{i()}):r.type==="close"&&i()})};class go{static findUp(t,n,r={includeSelf:!0}){try{let a=t;for(;a;){if((r.includeSelf||a!==t)&&a.name===n)return{window:a,iframe:a.frameElement};const o=a.frameElement;if((o==null?void 0:o.id)===n)return{window:a,iframe:o};if(a===a.parent)break;a=a.parent}return null}catch(a){return console.warn("findWindowUp",a),null}}static findDown(t,n){try{if(t.name===n)return{window:t,iframe:t.frameElement};if(t.frames)for(let r=0;r<t.frames.length;r++){const a=t.frames[r],o=a.frameElement;if((o==null?void 0:o.id)===n)return{window:a,iframe:o};const i=go.findDown(a,n);if(i)return i}return null}catch(r){return console.warn("findWindowDown",r),null}}static find(t,n,r="both"){const a=go.findByIframeId(n,t);if(a)return a;if(r==="up"||r==="both"){const o=go.findUp(t,n);if(o)return o}if(r==="down"||r==="both"){const o=go.findDown(t,n);if(o)return o}if(r==="both"){const o=go.findDown(this.findTop(t),n);if(o)return o}return null}static findByIframeId(t,n=window){var a;const r=(a=n==null?void 0:n.document)==null?void 0:a.getElementById(t);return r?{window:r==null?void 0:r.contentWindow,iframe:r}:null}static findTop(t=window){try{let n=t;for(;n!==n.parent;)n=n.parent;return n}catch{return t}}}const wg=(e,t)=>e?(e.postMessage(Zr(t),"*"),!0):!1,tQ=(e,t)=>{const n=go.find(window,e);if(n)return wg(n.window,t)},nQ=(e,t)=>wg(e==null?void 0:e.contentWindow,t),rQ=e=>wg(window.parent,e),iQ=(e,t=!1)=>{const n=r=>{e==null||e(r),t&&window.removeEventListener("message",n)};window.addEventListener("message",n)};function r5(){return{send:wg,receive:iQ,sendToIframe:nQ,sendToIframeByName:tQ,sendToParent:rQ}}var Np={},aQ={get exports(){return Np},set exports(e){Np=e}};(function(e,t){(function(){var n,r=0xdeadbeefcafe,a=(r&16777215)==15715070;function o(Ee,Pe,je){Ee!=null&&(typeof Ee=="number"?this.fromNumber(Ee,Pe,je):Pe==null&&typeof Ee!="string"?this.fromString(Ee,256):this.fromString(Ee,Pe))}function i(){return new o(null)}function u(Ee,Pe,je,tt,Tt,Lt){for(;--Lt>=0;){var sn=Pe*this[Ee++]+je[tt]+Tt;Tt=Math.floor(sn/67108864),je[tt++]=sn&67108863}return Tt}function s(Ee,Pe,je,tt,Tt,Lt){for(var sn=Pe&32767,fn=Pe>>15;--Lt>=0;){var Vr=this[Ee]&32767,li=this[Ee++]>>15,Ea=fn*Vr+li*sn;Vr=sn*Vr+((Ea&32767)<<15)+je[tt]+(Tt&1073741823),Tt=(Vr>>>30)+(Ea>>>15)+fn*li+(Tt>>>30),je[tt++]=Vr&1073741823}return Tt}function l(Ee,Pe,je,tt,Tt,Lt){for(var sn=Pe&16383,fn=Pe>>14;--Lt>=0;){var Vr=this[Ee]&16383,li=this[Ee++]>>14,Ea=fn*Vr+li*sn;Vr=sn*Vr+((Ea&16383)<<14)+je[tt]+Tt,Tt=(Vr>>28)+(Ea>>14)+fn*li,je[tt++]=Vr&268435455}return Tt}var c=typeof navigator<"u";c&&a&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=s,n=30):c&&a&&navigator.appName!="Netscape"?(o.prototype.am=u,n=26):(o.prototype.am=l,n=28),o.prototype.DB=n,o.prototype.DM=(1<<n)-1,o.prototype.DV=1<<n;var f=52;o.prototype.FV=Math.pow(2,f),o.prototype.F1=f-n,o.prototype.F2=2*n-f;var h="0123456789abcdefghijklmnopqrstuvwxyz",d=new Array,v,m;for(v="0".charCodeAt(0),m=0;m<=9;++m)d[v++]=m;for(v="a".charCodeAt(0),m=10;m<36;++m)d[v++]=m;for(v="A".charCodeAt(0),m=10;m<36;++m)d[v++]=m;function p(Ee){return h.charAt(Ee)}function g(Ee,Pe){var je=d[Ee.charCodeAt(Pe)];return je??-1}function y(Ee){for(var Pe=this.t-1;Pe>=0;--Pe)Ee[Pe]=this[Pe];Ee.t=this.t,Ee.s=this.s}function b(Ee){this.t=1,this.s=Ee<0?-1:0,Ee>0?this[0]=Ee:Ee<-1?this[0]=Ee+this.DV:this.t=0}function _(Ee){var Pe=i();return Pe.fromInt(Ee),Pe}function E(Ee,Pe){var je;if(Pe==16)je=4;else if(Pe==8)je=3;else if(Pe==256)je=8;else if(Pe==2)je=1;else if(Pe==32)je=5;else if(Pe==4)je=2;else{this.fromRadix(Ee,Pe);return}this.t=0,this.s=0;for(var tt=Ee.length,Tt=!1,Lt=0;--tt>=0;){var sn=je==8?Ee[tt]&255:g(Ee,tt);if(sn<0){Ee.charAt(tt)=="-"&&(Tt=!0);continue}Tt=!1,Lt==0?this[this.t++]=sn:Lt+je>this.DB?(this[this.t-1]|=(sn&(1<<this.DB-Lt)-1)<<Lt,this[this.t++]=sn>>this.DB-Lt):this[this.t-1]|=sn<<Lt,Lt+=je,Lt>=this.DB&&(Lt-=this.DB)}je==8&&Ee[0]&128&&(this.s=-1,Lt>0&&(this[this.t-1]|=(1<<this.DB-Lt)-1<<Lt)),this.clamp(),Tt&&o.ZERO.subTo(this,this)}function w(){for(var Ee=this.s&this.DM;this.t>0&&this[this.t-1]==Ee;)--this.t}function S(Ee){if(this.s<0)return"-"+this.negate().toString(Ee);var Pe;if(Ee==16)Pe=4;else if(Ee==8)Pe=3;else if(Ee==2)Pe=1;else if(Ee==32)Pe=5;else if(Ee==4)Pe=2;else return this.toRadix(Ee);var je=(1<<Pe)-1,tt,Tt=!1,Lt="",sn=this.t,fn=this.DB-sn*this.DB%Pe;if(sn-- >0)for(fn<this.DB&&(tt=this[sn]>>fn)>0&&(Tt=!0,Lt=p(tt));sn>=0;)fn<Pe?(tt=(this[sn]&(1<<fn)-1)<<Pe-fn,tt|=this[--sn]>>(fn+=this.DB-Pe)):(tt=this[sn]>>(fn-=Pe)&je,fn<=0&&(fn+=this.DB,--sn)),tt>0&&(Tt=!0),Tt&&(Lt+=p(tt));return Tt?Lt:"0"}function A(){var Ee=i();return o.ZERO.subTo(this,Ee),Ee}function P(){return this.s<0?this.negate():this}function C(Ee){var Pe=this.s-Ee.s;if(Pe!=0)return Pe;var je=this.t;if(Pe=je-Ee.t,Pe!=0)return this.s<0?-Pe:Pe;for(;--je>=0;)if((Pe=this[je]-Ee[je])!=0)return Pe;return 0}function D(Ee){var Pe=1,je;return(je=Ee>>>16)!=0&&(Ee=je,Pe+=16),(je=Ee>>8)!=0&&(Ee=je,Pe+=8),(je=Ee>>4)!=0&&(Ee=je,Pe+=4),(je=Ee>>2)!=0&&(Ee=je,Pe+=2),(je=Ee>>1)!=0&&(Ee=je,Pe+=1),Pe}function O(){return this.t<=0?0:this.DB*(this.t-1)+D(this[this.t-1]^this.s&this.DM)}function k(Ee,Pe){var je;for(je=this.t-1;je>=0;--je)Pe[je+Ee]=this[je];for(je=Ee-1;je>=0;--je)Pe[je]=0;Pe.t=this.t+Ee,Pe.s=this.s}function I(Ee,Pe){for(var je=Ee;je<this.t;++je)Pe[je-Ee]=this[je];Pe.t=Math.max(this.t-Ee,0),Pe.s=this.s}function N(Ee,Pe){var je=Ee%this.DB,tt=this.DB-je,Tt=(1<<tt)-1,Lt=Math.floor(Ee/this.DB),sn=this.s<<je&this.DM,fn;for(fn=this.t-1;fn>=0;--fn)Pe[fn+Lt+1]=this[fn]>>tt|sn,sn=(this[fn]&Tt)<<je;for(fn=Lt-1;fn>=0;--fn)Pe[fn]=0;Pe[Lt]=sn,Pe.t=this.t+Lt+1,Pe.s=this.s,Pe.clamp()}function F(Ee,Pe){Pe.s=this.s;var je=Math.floor(Ee/this.DB);if(je>=this.t){Pe.t=0;return}var tt=Ee%this.DB,Tt=this.DB-tt,Lt=(1<<tt)-1;Pe[0]=this[je]>>tt;for(var sn=je+1;sn<this.t;++sn)Pe[sn-je-1]|=(this[sn]&Lt)<<Tt,Pe[sn-je]=this[sn]>>tt;tt>0&&(Pe[this.t-je-1]|=(this.s&Lt)<<Tt),Pe.t=this.t-je,Pe.clamp()}function R(Ee,Pe){for(var je=0,tt=0,Tt=Math.min(Ee.t,this.t);je<Tt;)tt+=this[je]-Ee[je],Pe[je++]=tt&this.DM,tt>>=this.DB;if(Ee.t<this.t){for(tt-=Ee.s;je<this.t;)tt+=this[je],Pe[je++]=tt&this.DM,tt>>=this.DB;tt+=this.s}else{for(tt+=this.s;je<Ee.t;)tt-=Ee[je],Pe[je++]=tt&this.DM,tt>>=this.DB;tt-=Ee.s}Pe.s=tt<0?-1:0,tt<-1?Pe[je++]=this.DV+tt:tt>0&&(Pe[je++]=tt),Pe.t=je,Pe.clamp()}function M(Ee,Pe){var je=this.abs(),tt=Ee.abs(),Tt=je.t;for(Pe.t=Tt+tt.t;--Tt>=0;)Pe[Tt]=0;for(Tt=0;Tt<tt.t;++Tt)Pe[Tt+je.t]=je.am(0,tt[Tt],Pe,Tt,0,je.t);Pe.s=0,Pe.clamp(),this.s!=Ee.s&&o.ZERO.subTo(Pe,Pe)}function j(Ee){for(var Pe=this.abs(),je=Ee.t=2*Pe.t;--je>=0;)Ee[je]=0;for(je=0;je<Pe.t-1;++je){var tt=Pe.am(je,Pe[je],Ee,2*je,0,1);(Ee[je+Pe.t]+=Pe.am(je+1,2*Pe[je],Ee,2*je+1,tt,Pe.t-je-1))>=Pe.DV&&(Ee[je+Pe.t]-=Pe.DV,Ee[je+Pe.t+1]=1)}Ee.t>0&&(Ee[Ee.t-1]+=Pe.am(je,Pe[je],Ee,2*je,0,1)),Ee.s=0,Ee.clamp()}function W(Ee,Pe,je){var tt=Ee.abs();if(!(tt.t<=0)){var Tt=this.abs();if(Tt.t<tt.t){Pe!=null&&Pe.fromInt(0),je!=null&&this.copyTo(je);return}je==null&&(je=i());var Lt=i(),sn=this.s,fn=Ee.s,Vr=this.DB-D(tt[tt.t-1]);Vr>0?(tt.lShiftTo(Vr,Lt),Tt.lShiftTo(Vr,je)):(tt.copyTo(Lt),Tt.copyTo(je));var li=Lt.t,Ea=Lt[li-1];if(Ea!=0){var $i=Ea*(1<<this.F1)+(li>1?Lt[li-2]>>this.F2:0),Sn=this.FV/$i,Cn=(1<<this.F1)/$i,Bi=1<<this.F2,bi=je.t,du=bi-li,ea=Pe??i();for(Lt.dlShiftTo(du,ea),je.compareTo(ea)>=0&&(je[je.t++]=1,je.subTo(ea,je)),o.ONE.dlShiftTo(li,ea),ea.subTo(Lt,Lt);Lt.t<li;)Lt[Lt.t++]=0;for(;--du>=0;){var Pc=je[--bi]==Ea?this.DM:Math.floor(je[bi]*Sn+(je[bi-1]+Bi)*Cn);if((je[bi]+=Lt.am(0,Pc,je,du,0,li))<Pc)for(Lt.dlShiftTo(du,ea),je.subTo(ea,je);je[bi]<--Pc;)je.subTo(ea,je)}Pe!=null&&(je.drShiftTo(li,Pe),sn!=fn&&o.ZERO.subTo(Pe,Pe)),je.t=li,je.clamp(),Vr>0&&je.rShiftTo(Vr,je),sn<0&&o.ZERO.subTo(je,je)}}}function L(Ee){var Pe=i();return this.abs().divRemTo(Ee,null,Pe),this.s<0&&Pe.compareTo(o.ZERO)>0&&Ee.subTo(Pe,Pe),Pe}function z(Ee){this.m=Ee}function G(Ee){return Ee.s<0||Ee.compareTo(this.m)>=0?Ee.mod(this.m):Ee}function Y(Ee){return Ee}function J(Ee){Ee.divRemTo(this.m,null,Ee)}function q(Ee,Pe,je){Ee.multiplyTo(Pe,je),this.reduce(je)}function le(Ee,Pe){Ee.squareTo(Pe),this.reduce(Pe)}z.prototype.convert=G,z.prototype.revert=Y,z.prototype.reduce=J,z.prototype.mulTo=q,z.prototype.sqrTo=le;function re(){if(this.t<1)return 0;var Ee=this[0];if(!(Ee&1))return 0;var Pe=Ee&3;return Pe=Pe*(2-(Ee&15)*Pe)&15,Pe=Pe*(2-(Ee&255)*Pe)&255,Pe=Pe*(2-((Ee&65535)*Pe&65535))&65535,Pe=Pe*(2-Ee*Pe%this.DV)%this.DV,Pe>0?this.DV-Pe:-Pe}function ie(Ee){this.m=Ee,this.mp=Ee.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<Ee.DB-15)-1,this.mt2=2*Ee.t}function ue(Ee){var Pe=i();return Ee.abs().dlShiftTo(this.m.t,Pe),Pe.divRemTo(this.m,null,Pe),Ee.s<0&&Pe.compareTo(o.ZERO)>0&&this.m.subTo(Pe,Pe),Pe}function ve(Ee){var Pe=i();return Ee.copyTo(Pe),this.reduce(Pe),Pe}function K(Ee){for(;Ee.t<=this.mt2;)Ee[Ee.t++]=0;for(var Pe=0;Pe<this.m.t;++Pe){var je=Ee[Pe]&32767,tt=je*this.mpl+((je*this.mph+(Ee[Pe]>>15)*this.mpl&this.um)<<15)&Ee.DM;for(je=Pe+this.m.t,Ee[je]+=this.m.am(0,tt,Ee,Pe,0,this.m.t);Ee[je]>=Ee.DV;)Ee[je]-=Ee.DV,Ee[++je]++}Ee.clamp(),Ee.drShiftTo(this.m.t,Ee),Ee.compareTo(this.m)>=0&&Ee.subTo(this.m,Ee)}function Z(Ee,Pe){Ee.squareTo(Pe),this.reduce(Pe)}function te(Ee,Pe,je){Ee.multiplyTo(Pe,je),this.reduce(je)}ie.prototype.convert=ue,ie.prototype.revert=ve,ie.prototype.reduce=K,ie.prototype.mulTo=te,ie.prototype.sqrTo=Z;function ce(){return(this.t>0?this[0]&1:this.s)==0}function pe(Ee,Pe){if(Ee>4294967295||Ee<1)return o.ONE;var je=i(),tt=i(),Tt=Pe.convert(this),Lt=D(Ee)-1;for(Tt.copyTo(je);--Lt>=0;)if(Pe.sqrTo(je,tt),(Ee&1<<Lt)>0)Pe.mulTo(tt,Tt,je);else{var sn=je;je=tt,tt=sn}return Pe.revert(je)}function de(Ee,Pe){var je;return Ee<256||Pe.isEven()?je=new z(Pe):je=new ie(Pe),this.exp(Ee,je)}o.prototype.copyTo=y,o.prototype.fromInt=b,o.prototype.fromString=E,o.prototype.clamp=w,o.prototype.dlShiftTo=k,o.prototype.drShiftTo=I,o.prototype.lShiftTo=N,o.prototype.rShiftTo=F,o.prototype.subTo=R,o.prototype.multiplyTo=M,o.prototype.squareTo=j,o.prototype.divRemTo=W,o.prototype.invDigit=re,o.prototype.isEven=ce,o.prototype.exp=pe,o.prototype.toString=S,o.prototype.negate=A,o.prototype.abs=P,o.prototype.compareTo=C,o.prototype.bitLength=O,o.prototype.mod=L,o.prototype.modPowInt=de,o.ZERO=_(0),o.ONE=_(1);function fe(){var Ee=i();return this.copyTo(Ee),Ee}function we(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function ke(){return this.t==0?this.s:this[0]<<24>>24}function ge(){return this.t==0?this.s:this[0]<<16>>16}function Ae(Ee){return Math.floor(Math.LN2*this.DB/Math.log(Ee))}function X(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Q(Ee){if(Ee==null&&(Ee=10),this.signum()==0||Ee<2||Ee>36)return"0";var Pe=this.chunkSize(Ee),je=Math.pow(Ee,Pe),tt=_(je),Tt=i(),Lt=i(),sn="";for(this.divRemTo(tt,Tt,Lt);Tt.signum()>0;)sn=(je+Lt.intValue()).toString(Ee).substr(1)+sn,Tt.divRemTo(tt,Tt,Lt);return Lt.intValue().toString(Ee)+sn}function ee(Ee,Pe){this.fromInt(0),Pe==null&&(Pe=10);for(var je=this.chunkSize(Pe),tt=Math.pow(Pe,je),Tt=!1,Lt=0,sn=0,fn=0;fn<Ee.length;++fn){var Vr=g(Ee,fn);if(Vr<0){Ee.charAt(fn)=="-"&&this.signum()==0&&(Tt=!0);continue}sn=Pe*sn+Vr,++Lt>=je&&(this.dMultiply(tt),this.dAddOffset(sn,0),Lt=0,sn=0)}Lt>0&&(this.dMultiply(Math.pow(Pe,Lt)),this.dAddOffset(sn,0)),Tt&&o.ZERO.subTo(this,this)}function me(Ee,Pe,je){if(typeof Pe=="number")if(Ee<2)this.fromInt(1);else for(this.fromNumber(Ee,je),this.testBit(Ee-1)||this.bitwiseTo(o.ONE.shiftLeft(Ee-1),at,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(Pe);)this.dAddOffset(2,0),this.bitLength()>Ee&&this.subTo(o.ONE.shiftLeft(Ee-1),this);else{var tt=new Array,Tt=Ee&7;tt.length=(Ee>>3)+1,Pe.nextBytes(tt),Tt>0?tt[0]&=(1<<Tt)-1:tt[0]=0,this.fromString(tt,256)}}function Be(){var Ee=this.t,Pe=new Array;Pe[0]=this.s;var je=this.DB-Ee*this.DB%8,tt,Tt=0;if(Ee-- >0)for(je<this.DB&&(tt=this[Ee]>>je)!=(this.s&this.DM)>>je&&(Pe[Tt++]=tt|this.s<<this.DB-je);Ee>=0;)je<8?(tt=(this[Ee]&(1<<je)-1)<<8-je,tt|=this[--Ee]>>(je+=this.DB-8)):(tt=this[Ee]>>(je-=8)&255,je<=0&&(je+=this.DB,--Ee)),tt&128&&(tt|=-256),Tt==0&&(this.s&128)!=(tt&128)&&++Tt,(Tt>0||tt!=this.s)&&(Pe[Tt++]=tt);return Pe}function Ie(Ee){return this.compareTo(Ee)==0}function Fe(Ee){return this.compareTo(Ee)<0?this:Ee}function Ne(Ee){return this.compareTo(Ee)>0?this:Ee}function We(Ee,Pe,je){var tt,Tt,Lt=Math.min(Ee.t,this.t);for(tt=0;tt<Lt;++tt)je[tt]=Pe(this[tt],Ee[tt]);if(Ee.t<this.t){for(Tt=Ee.s&this.DM,tt=Lt;tt<this.t;++tt)je[tt]=Pe(this[tt],Tt);je.t=this.t}else{for(Tt=this.s&this.DM,tt=Lt;tt<Ee.t;++tt)je[tt]=Pe(Tt,Ee[tt]);je.t=Ee.t}je.s=Pe(this.s,Ee.s),je.clamp()}function ze(Ee,Pe){return Ee&Pe}function Ye(Ee){var Pe=i();return this.bitwiseTo(Ee,ze,Pe),Pe}function at(Ee,Pe){return Ee|Pe}function Ft(Ee){var Pe=i();return this.bitwiseTo(Ee,at,Pe),Pe}function xt(Ee,Pe){return Ee^Pe}function Jt(Ee){var Pe=i();return this.bitwiseTo(Ee,xt,Pe),Pe}function Bt(Ee,Pe){return Ee&~Pe}function Pt(Ee){var Pe=i();return this.bitwiseTo(Ee,Bt,Pe),Pe}function pt(){for(var Ee=i(),Pe=0;Pe<this.t;++Pe)Ee[Pe]=this.DM&~this[Pe];return Ee.t=this.t,Ee.s=~this.s,Ee}function kn(Ee){var Pe=i();return Ee<0?this.rShiftTo(-Ee,Pe):this.lShiftTo(Ee,Pe),Pe}function rt(Ee){var Pe=i();return Ee<0?this.lShiftTo(-Ee,Pe):this.rShiftTo(Ee,Pe),Pe}function lt(Ee){if(Ee==0)return-1;var Pe=0;return Ee&65535||(Ee>>=16,Pe+=16),Ee&255||(Ee>>=8,Pe+=8),Ee&15||(Ee>>=4,Pe+=4),Ee&3||(Ee>>=2,Pe+=2),Ee&1||++Pe,Pe}function ne(){for(var Ee=0;Ee<this.t;++Ee)if(this[Ee]!=0)return Ee*this.DB+lt(this[Ee]);return this.s<0?this.t*this.DB:-1}function Oe(Ee){for(var Pe=0;Ee!=0;)Ee&=Ee-1,++Pe;return Pe}function Te(){for(var Ee=0,Pe=this.s&this.DM,je=0;je<this.t;++je)Ee+=Oe(this[je]^Pe);return Ee}function Me(Ee){var Pe=Math.floor(Ee/this.DB);return Pe>=this.t?this.s!=0:(this[Pe]&1<<Ee%this.DB)!=0}function Ue(Ee,Pe){var je=o.ONE.shiftLeft(Ee);return this.bitwiseTo(je,Pe,je),je}function ut(Ee){return this.changeBit(Ee,at)}function Et(Ee){return this.changeBit(Ee,Bt)}function kt(Ee){return this.changeBit(Ee,xt)}function Gt(Ee,Pe){for(var je=0,tt=0,Tt=Math.min(Ee.t,this.t);je<Tt;)tt+=this[je]+Ee[je],Pe[je++]=tt&this.DM,tt>>=this.DB;if(Ee.t<this.t){for(tt+=Ee.s;je<this.t;)tt+=this[je],Pe[je++]=tt&this.DM,tt>>=this.DB;tt+=this.s}else{for(tt+=this.s;je<Ee.t;)tt+=Ee[je],Pe[je++]=tt&this.DM,tt>>=this.DB;tt+=Ee.s}Pe.s=tt<0?-1:0,tt>0?Pe[je++]=tt:tt<-1&&(Pe[je++]=this.DV+tt),Pe.t=je,Pe.clamp()}function Dn(Ee){var Pe=i();return this.addTo(Ee,Pe),Pe}function mr(Ee){var Pe=i();return this.subTo(Ee,Pe),Pe}function si(Ee){var Pe=i();return this.multiplyTo(Ee,Pe),Pe}function jr(){var Ee=i();return this.squareTo(Ee),Ee}function gr(Ee){var Pe=i();return this.divRemTo(Ee,Pe,null),Pe}function sa(Ee){var Pe=i();return this.divRemTo(Ee,null,Pe),Pe}function Or(Ee){var Pe=i(),je=i();return this.divRemTo(Ee,Pe,je),new Array(Pe,je)}function Vi(Ee){this[this.t]=this.am(0,Ee-1,this,0,0,this.t),++this.t,this.clamp()}function vo(Ee,Pe){if(Ee!=0){for(;this.t<=Pe;)this[this.t++]=0;for(this[Pe]+=Ee;this[Pe]>=this.DV;)this[Pe]-=this.DV,++Pe>=this.t&&(this[this.t++]=0),++this[Pe]}}function ei(){}function no(Ee){return Ee}function ko(Ee,Pe,je){Ee.multiplyTo(Pe,je)}function ja(Ee,Pe){Ee.squareTo(Pe)}ei.prototype.convert=no,ei.prototype.revert=no,ei.prototype.mulTo=ko,ei.prototype.sqrTo=ja;function bs(Ee){return this.exp(Ee,new ei)}function ct(Ee,Pe,je){var tt=Math.min(this.t+Ee.t,Pe);for(je.s=0,je.t=tt;tt>0;)je[--tt]=0;var Tt;for(Tt=je.t-this.t;tt<Tt;++tt)je[tt+this.t]=this.am(0,Ee[tt],je,tt,0,this.t);for(Tt=Math.min(Ee.t,Pe);tt<Tt;++tt)this.am(0,Ee[tt],je,tt,0,Pe-tt);je.clamp()}function T(Ee,Pe,je){--Pe;var tt=je.t=this.t+Ee.t-Pe;for(je.s=0;--tt>=0;)je[tt]=0;for(tt=Math.max(Pe-this.t,0);tt<Ee.t;++tt)je[this.t+tt-Pe]=this.am(Pe-tt,Ee[tt],je,0,0,this.t+tt-Pe);je.clamp(),je.drShiftTo(1,je)}function B(Ee){this.r2=i(),this.q3=i(),o.ONE.dlShiftTo(2*Ee.t,this.r2),this.mu=this.r2.divide(Ee),this.m=Ee}function V(Ee){if(Ee.s<0||Ee.t>2*this.m.t)return Ee.mod(this.m);if(Ee.compareTo(this.m)<0)return Ee;var Pe=i();return Ee.copyTo(Pe),this.reduce(Pe),Pe}function H(Ee){return Ee}function $(Ee){for(Ee.drShiftTo(this.m.t-1,this.r2),Ee.t>this.m.t+1&&(Ee.t=this.m.t+1,Ee.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);Ee.compareTo(this.r2)<0;)Ee.dAddOffset(1,this.m.t+1);for(Ee.subTo(this.r2,Ee);Ee.compareTo(this.m)>=0;)Ee.subTo(this.m,Ee)}function he(Ee,Pe){Ee.squareTo(Pe),this.reduce(Pe)}function Ce(Ee,Pe,je){Ee.multiplyTo(Pe,je),this.reduce(je)}B.prototype.convert=V,B.prototype.revert=H,B.prototype.reduce=$,B.prototype.mulTo=Ce,B.prototype.sqrTo=he;function Re(Ee,Pe){var je=Ee.bitLength(),tt,Tt=_(1),Lt;if(je<=0)return Tt;je<18?tt=1:je<48?tt=3:je<144?tt=4:je<768?tt=5:tt=6,je<8?Lt=new z(Pe):Pe.isEven()?Lt=new B(Pe):Lt=new ie(Pe);var sn=new Array,fn=3,Vr=tt-1,li=(1<<tt)-1;if(sn[1]=Lt.convert(this),tt>1){var Ea=i();for(Lt.sqrTo(sn[1],Ea);fn<=li;)sn[fn]=i(),Lt.mulTo(Ea,sn[fn-2],sn[fn]),fn+=2}var $i=Ee.t-1,Sn,Cn=!0,Bi=i(),bi;for(je=D(Ee[$i])-1;$i>=0;){for(je>=Vr?Sn=Ee[$i]>>je-Vr&li:(Sn=(Ee[$i]&(1<<je+1)-1)<<Vr-je,$i>0&&(Sn|=Ee[$i-1]>>this.DB+je-Vr)),fn=tt;!(Sn&1);)Sn>>=1,--fn;if((je-=fn)<0&&(je+=this.DB,--$i),Cn)sn[Sn].copyTo(Tt),Cn=!1;else{for(;fn>1;)Lt.sqrTo(Tt,Bi),Lt.sqrTo(Bi,Tt),fn-=2;fn>0?Lt.sqrTo(Tt,Bi):(bi=Tt,Tt=Bi,Bi=bi),Lt.mulTo(Bi,sn[Sn],Tt)}for(;$i>=0&&!(Ee[$i]&1<<je);)Lt.sqrTo(Tt,Bi),bi=Tt,Tt=Bi,Bi=bi,--je<0&&(je=this.DB-1,--$i)}return Lt.revert(Tt)}function Je(Ee){var Pe=this.s<0?this.negate():this.clone(),je=Ee.s<0?Ee.negate():Ee.clone();if(Pe.compareTo(je)<0){var tt=Pe;Pe=je,je=tt}var Tt=Pe.getLowestSetBit(),Lt=je.getLowestSetBit();if(Lt<0)return Pe;for(Tt<Lt&&(Lt=Tt),Lt>0&&(Pe.rShiftTo(Lt,Pe),je.rShiftTo(Lt,je));Pe.signum()>0;)(Tt=Pe.getLowestSetBit())>0&&Pe.rShiftTo(Tt,Pe),(Tt=je.getLowestSetBit())>0&&je.rShiftTo(Tt,je),Pe.compareTo(je)>=0?(Pe.subTo(je,Pe),Pe.rShiftTo(1,Pe)):(je.subTo(Pe,je),je.rShiftTo(1,je));return Lt>0&&je.lShiftTo(Lt,je),je}function et(Ee){if(Ee<=0)return 0;var Pe=this.DV%Ee,je=this.s<0?Ee-1:0;if(this.t>0)if(Pe==0)je=this[0]%Ee;else for(var tt=this.t-1;tt>=0;--tt)je=(Pe*je+this[tt])%Ee;return je}function gt(Ee){var Pe=Ee.isEven();if(this.isEven()&&Pe||Ee.signum()==0)return o.ZERO;for(var je=Ee.clone(),tt=this.clone(),Tt=_(1),Lt=_(0),sn=_(0),fn=_(1);je.signum()!=0;){for(;je.isEven();)je.rShiftTo(1,je),Pe?((!Tt.isEven()||!Lt.isEven())&&(Tt.addTo(this,Tt),Lt.subTo(Ee,Lt)),Tt.rShiftTo(1,Tt)):Lt.isEven()||Lt.subTo(Ee,Lt),Lt.rShiftTo(1,Lt);for(;tt.isEven();)tt.rShiftTo(1,tt),Pe?((!sn.isEven()||!fn.isEven())&&(sn.addTo(this,sn),fn.subTo(Ee,fn)),sn.rShiftTo(1,sn)):fn.isEven()||fn.subTo(Ee,fn),fn.rShiftTo(1,fn);je.compareTo(tt)>=0?(je.subTo(tt,je),Pe&&Tt.subTo(sn,Tt),Lt.subTo(fn,Lt)):(tt.subTo(je,tt),Pe&&sn.subTo(Tt,sn),fn.subTo(Lt,fn))}if(tt.compareTo(o.ONE)!=0)return o.ZERO;if(fn.compareTo(Ee)>=0)return fn.subtract(Ee);if(fn.signum()<0)fn.addTo(Ee,fn);else return fn;return fn.signum()<0?fn.add(Ee):fn}var dt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Ct=(1<<26)/dt[dt.length-1];function nn(Ee){var Pe,je=this.abs();if(je.t==1&&je[0]<=dt[dt.length-1]){for(Pe=0;Pe<dt.length;++Pe)if(je[0]==dt[Pe])return!0;return!1}if(je.isEven())return!1;for(Pe=1;Pe<dt.length;){for(var tt=dt[Pe],Tt=Pe+1;Tt<dt.length&&tt<Ct;)tt*=dt[Tt++];for(tt=je.modInt(tt);Pe<Tt;)if(tt%dt[Pe++]==0)return!1}return je.millerRabin(Ee)}function dn(Ee){var Pe=this.subtract(o.ONE),je=Pe.getLowestSetBit();if(je<=0)return!1;var tt=Pe.shiftRight(je);Ee=Ee+1>>1,Ee>dt.length&&(Ee=dt.length);for(var Tt=i(),Lt=0;Lt<Ee;++Lt){Tt.fromInt(dt[Math.floor(Math.random()*dt.length)]);var sn=Tt.modPow(tt,this);if(sn.compareTo(o.ONE)!=0&&sn.compareTo(Pe)!=0){for(var fn=1;fn++<je&&sn.compareTo(Pe)!=0;)if(sn=sn.modPowInt(2,this),sn.compareTo(o.ONE)==0)return!1;if(sn.compareTo(Pe)!=0)return!1}}return!0}o.prototype.chunkSize=Ae,o.prototype.toRadix=Q,o.prototype.fromRadix=ee,o.prototype.fromNumber=me,o.prototype.bitwiseTo=We,o.prototype.changeBit=Ue,o.prototype.addTo=Gt,o.prototype.dMultiply=Vi,o.prototype.dAddOffset=vo,o.prototype.multiplyLowerTo=ct,o.prototype.multiplyUpperTo=T,o.prototype.modInt=et,o.prototype.millerRabin=dn,o.prototype.clone=fe,o.prototype.intValue=we,o.prototype.byteValue=ke,o.prototype.shortValue=ge,o.prototype.signum=X,o.prototype.toByteArray=Be,o.prototype.equals=Ie,o.prototype.min=Fe,o.prototype.max=Ne,o.prototype.and=Ye,o.prototype.or=Ft,o.prototype.xor=Jt,o.prototype.andNot=Pt,o.prototype.not=pt,o.prototype.shiftLeft=kn,o.prototype.shiftRight=rt,o.prototype.getLowestSetBit=ne,o.prototype.bitCount=Te,o.prototype.testBit=Me,o.prototype.setBit=ut,o.prototype.clearBit=Et,o.prototype.flipBit=kt,o.prototype.add=Dn,o.prototype.subtract=mr,o.prototype.multiply=si,o.prototype.divide=gr,o.prototype.remainder=sa,o.prototype.divideAndRemainder=Or,o.prototype.modPow=Re,o.prototype.modInverse=gt,o.prototype.pow=bs,o.prototype.gcd=Je,o.prototype.isProbablePrime=nn,o.prototype.square=jr,o.prototype.Barrett=B;var Wt,Yt,bn;function Hn(Ee){Yt[bn++]^=Ee&255,Yt[bn++]^=Ee>>8&255,Yt[bn++]^=Ee>>16&255,Yt[bn++]^=Ee>>24&255,bn>=Dt&&(bn-=Dt)}function yr(){Hn(new Date().getTime())}if(Yt==null){Yt=new Array,bn=0;var _r;if(typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var ti=new Uint8Array(32);for(window.crypto.getRandomValues(ti),_r=0;_r<32;++_r)Yt[bn++]=ti[_r]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ht=window.crypto.random(32);for(_r=0;_r<ht.length;++_r)Yt[bn++]=ht.charCodeAt(_r)&255}}for(;bn<Dt;)_r=Math.floor(65536*Math.random()),Yt[bn++]=_r>>>8,Yt[bn++]=_r&255;bn=0,yr()}function rn(){if(Wt==null){for(yr(),Wt=_t(),Wt.init(Yt),bn=0;bn<Yt.length;++bn)Yt[bn]=0;bn=0}return Wt.next()}function cn(Ee){var Pe;for(Pe=0;Pe<Ee.length;++Pe)Ee[Pe]=rn()}function oe(){}oe.prototype.nextBytes=cn;function be(){this.i=0,this.j=0,this.S=new Array}function Ve(Ee){var Pe,je,tt;for(Pe=0;Pe<256;++Pe)this.S[Pe]=Pe;for(je=0,Pe=0;Pe<256;++Pe)je=je+this.S[Pe]+Ee[Pe%Ee.length]&255,tt=this.S[Pe],this.S[Pe]=this.S[je],this.S[je]=tt;this.i=0,this.j=0}function qe(){var Ee;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,Ee=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=Ee,this.S[Ee+this.S[this.i]&255]}be.prototype.init=Ve,be.prototype.next=qe;function _t(){return new be}var Dt=256;e.exports={default:o,BigInteger:o,SecureRandom:oe}}).call(Zn)})(aQ);const{BigInteger:Fp}=Np;function oQ(e){let t=e.toString(16);if(t[0]!=="-")t.length%2===1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{t=t.substr(1);let n=t.length;n%2===1?n+=1:t.match(/^[0-7]/)||(n+=2);let r="";for(let a=0;a<n;a++)r+="f";r=new Fp(r,16),t=r.xor(e).add(Fp.ONE),t=t.toString(16).replace(/^-/,"")}return t}class i5{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const t=this.v.length/2;let n=t.toString(16);return n.length%2===1&&(n="0"+n),t<128?n:(128+n.length/2).toString(16)+n}getValue(){return""}}class a5 extends i5{constructor(t){super(),this.t="02",t&&(this.v=oQ(t))}getValue(){return this.v}}class sQ extends i5{constructor(t){super(),this.t="30",this.asn1Array=t}getValue(){return this.v=this.asn1Array.map(t=>t.getEncodedHex()).join(""),this.v}}function o5(e,t){return+e[t+2]<8?1:+e.substr(t+2,2)&127+1}function s5(e,t){const n=o5(e,t),r=e.substr(t+2,n*2);return r?(+r[0]<8?new Fp(r,16):new Fp(r.substr(2),16)).intValue():-1}function Mx(e,t){const n=o5(e,t);return t+(n+1)*2}var lQ={encodeDer(e,t){const n=new a5(e),r=new a5(t);return new sQ([n,r]).getEncodedHex()},decodeDer(e){const t=Mx(e,0),n=Mx(e,t),r=s5(e,t),a=e.substr(n,r*2),o=n+a.length,i=Mx(e,o),u=s5(e,o),s=e.substr(i,u*2),l=new Fp(a,16),c=new Fp(s,16);return{r:l,s:c}}};const{BigInteger:za}=Np,l5=new za("2"),u5=new za("3");class Su{constructor(t,n){this.x=n,this.q=t}equals(t){return t===this?!0:this.q.equals(t.q)&&this.x.equals(t.x)}toBigInteger(){return this.x}negate(){return new Su(this.q,this.x.negate().mod(this.q))}add(t){return new Su(this.q,this.x.add(t.toBigInteger()).mod(this.q))}subtract(t){return new Su(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))}multiply(t){return new Su(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))}divide(t){return new Su(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new Su(this.q,this.x.square().mod(this.q))}}class Cu{constructor(t,n,r,a){this.curve=t,this.x=n,this.y=r,this.z=a??za.ONE,this.zinv=null}getX(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}getY(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}equals(t){return t===this?!0:this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(za.ZERO)?t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(za.ZERO):!1}isInfinity(){return this.x===null&&this.y===null?!0:this.z.equals(za.ZERO)&&!this.y.toBigInteger().equals(za.ZERO)}negate(){return new Cu(this.curve,this.x,this.y.negate(),this.z)}add(t){if(this.isInfinity())return t;if(t.isInfinity())return this;const n=this.x.toBigInteger(),r=this.y.toBigInteger(),a=this.z,o=t.x.toBigInteger(),i=t.y.toBigInteger(),u=t.z,s=this.curve.q,l=n.multiply(u).mod(s),c=o.multiply(a).mod(s),f=l.subtract(c),h=r.multiply(u).mod(s),d=i.multiply(a).mod(s),v=h.subtract(d);if(za.ZERO.equals(f))return za.ZERO.equals(v)?this.twice():this.curve.infinity;const m=l.add(c),p=a.multiply(u).mod(s),g=f.square().mod(s),y=f.multiply(g).mod(s),b=p.multiply(v.square()).subtract(m.multiply(g)).mod(s),_=f.multiply(b).mod(s),E=v.multiply(g.multiply(l).subtract(b)).subtract(h.multiply(y)).mod(s),w=y.multiply(p).mod(s);return new Cu(this.curve,this.curve.fromBigInteger(_),this.curve.fromBigInteger(E),w)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=this.z,a=this.curve.q,o=this.curve.a.toBigInteger(),i=t.square().multiply(u5).add(o.multiply(r.square())).mod(a),u=n.shiftLeft(1).multiply(r).mod(a),s=n.square().mod(a),l=s.multiply(t).multiply(r).mod(a),c=u.square().mod(a),f=i.square().subtract(l.shiftLeft(3)).mod(a),h=u.multiply(f).mod(a),d=i.multiply(l.shiftLeft(2).subtract(f)).subtract(c.shiftLeft(1).multiply(s)).mod(a),v=u.multiply(c).mod(a);return new Cu(this.curve,this.curve.fromBigInteger(h),this.curve.fromBigInteger(d),v)}multiply(t){if(this.isInfinity())return this;if(!t.signum())return this.curve.infinity;const n=t.multiply(u5),r=this.negate();let a=this;for(let o=n.bitLength()-2;o>0;o--){a=a.twice();const i=n.testBit(o),u=t.testBit(o);i!==u&&(a=a.add(i?this:r))}return a}}var uQ={ECPointFp:Cu,ECCurveFp:class{constructor(t,n,r){this.q=t,this.a=this.fromBigInteger(n),this.b=this.fromBigInteger(r),this.infinity=new Cu(this,null,null)}equals(t){return t===this?!0:this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)}fromBigInteger(t){return new Su(this.q,t)}decodePointHex(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const n=this.fromBigInteger(new za(t.substr(2),16));let r=this.fromBigInteger(n.multiply(n.square()).add(n.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new za("4")).add(za.ONE),this.q));return r.toBigInteger().mod(l5).equals(new za(t.substr(0,2),16).subtract(l5))||(r=r.negate()),new Cu(this,n,r);case 4:case 6:case 7:const a=(t.length-2)/2,o=t.substr(2,a),i=t.substr(a+2,a);return new Cu(this,this.fromBigInteger(new za(o,16)),this.fromBigInteger(new za(i,16)));default:return null}}}};const{BigInteger:As,SecureRandom:cQ}=Np,{ECCurveFp:fQ}=uQ,pQ=new cQ,{curve:Mp,G:hQ,n:c5}=f5();function dQ(){return Mp}function f5(){const e=new As("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),t=new As("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),n=new As("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),r=new fQ(e,t,n),a="32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7",o="BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0",i=r.decodePointHex("04"+a+o),u=new As("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16);return{curve:r,G:i,n:u}}function vQ(e,t,n){const a=(e?new As(e,t,n):new As(c5.bitLength(),pQ)).mod(c5.subtract(As.ONE)).add(As.ONE),o=Vd(a.toString(16),64),i=hQ.multiply(a),u=Vd(i.getX().toBigInteger().toString(16),64),s=Vd(i.getY().toBigInteger().toString(16),64),l="04"+u+s;return{privateKey:o,publicKey:l}}function mQ(e){if(e.length!==130)throw new Error("Invalid public key to compress");const t=(e.length-2)/2,n=e.substr(2,t),r=new As(e.substr(t+2,t),16);let a="03";return r.mod(new As("2")).equals(As.ZERO)&&(a="02"),a+n}function gQ(e){e=unescape(encodeURIComponent(e));const t=e.length,n=[];for(let a=0;a<t;a++)n[a>>>2]|=(e.charCodeAt(a)&255)<<24-a%4*8;const r=[];for(let a=0;a<t;a++){const o=n[a>>>2]>>>24-a%4*8&255;r.push((o>>>4).toString(16)),r.push((o&15).toString(16))}return r.join("")}function Vd(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function yQ(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function _Q(e){const t=[];let n=0;for(let r=0;r<e.length*2;r+=2)t[r>>>3]|=parseInt(e[n],10)<<24-r%8*4,n++;try{const r=[];for(let a=0;a<e.length;a++){const o=t[a>>>2]>>>24-a%4*8&255;r.push(String.fromCharCode(o))}return decodeURIComponent(escape(r.join("")))}catch{throw new Error("Malformed UTF-8 data")}}function bQ(e){const t=[];let n=e.length;n%2!==0&&(e=Vd(e,n+1)),n=e.length;for(let r=0;r<n;r+=2)t.push(parseInt(e.substr(r,2),16));return t}function xQ(e){const t=Mp.decodePointHex(e);if(!t)return!1;const n=t.getX();return t.getY().square().equals(n.multiply(n.square()).add(n.multiply(Mp.a)).add(Mp.b))}function EQ(e,t){const n=Mp.decodePointHex(e);if(!n)return!1;const r=Mp.decodePointHex(t);return r?n.equals(r):!1}var wQ={getGlobalCurve:dQ,generateEcparam:f5,generateKeyPairHex:vQ,compressPublicKeyHex:mQ,utf8ToHex:gQ,leftPad:Vd,arrayToHex:yQ,arrayToUtf8:_Q,hexToArray:bQ,verifyPublicKey:xQ,comparePublicKeyHex:EQ};const Ts=new Uint32Array(68),Lx=new Uint32Array(64);function Lo(e,t){const n=t&31;return e<<n|e>>>32-n}function p5(e,t){const n=[];for(let r=e.length-1;r>=0;r--)n[r]=(e[r]^t[r])&255;return n}function SQ(e){return e^Lo(e,9)^Lo(e,17)}function CQ(e){return e^Lo(e,15)^Lo(e,23)}function Sg(e){let t=e.length*8,n=t%512;n=n>=448?512-n%448-1:448-n-1;const r=new Array((n-7)/8),a=new Array(8);for(let c=0,f=r.length;c<f;c++)r[c]=0;for(let c=0,f=a.length;c<f;c++)a[c]=0;t=t.toString(2);for(let c=7;c>=0;c--)if(t.length>8){const f=t.length-8;a[c]=parseInt(t.substr(f),2),t=t.substr(0,f)}else t.length>0&&(a[c]=parseInt(t,2),t="");const o=new Uint8Array([...e,128,...r,...a]),i=new DataView(o.buffer,0),u=o.length/64,s=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let c=0;c<u;c++){Ts.fill(0),Lx.fill(0);const f=16*c;for(let D=0;D<16;D++)Ts[D]=i.getUint32((f+D)*4,!1);for(let D=16;D<68;D++)Ts[D]=CQ(Ts[D-16]^Ts[D-9]^Lo(Ts[D-3],15))^Lo(Ts[D-13],7)^Ts[D-6];for(let D=0;D<64;D++)Lx[D]=Ts[D]^Ts[D+4];const h=2043430169,d=2055708042;let v=s[0],m=s[1],p=s[2],g=s[3],y=s[4],b=s[5],_=s[6],E=s[7],w,S,A,P,C;for(let D=0;D<64;D++)C=D>=0&&D<=15?h:d,w=Lo(Lo(v,12)+y+Lo(C,D),7),S=w^Lo(v,12),A=(D>=0&&D<=15?v^m^p:v&m|v&p|m&p)+g+S+Lx[D],P=(D>=0&&D<=15?y^b^_:y&b|~y&_)+E+w+Ts[D],g=p,p=Lo(m,9),m=v,v=A,E=_,_=Lo(b,19),b=y,y=SQ(P);s[0]^=v,s[1]^=m,s[2]^=p,s[3]^=g,s[4]^=y,s[5]^=b,s[6]^=_,s[7]^=E}const l=[];for(let c=0,f=s.length;c<f;c++){const h=s[c];l.push((h&4278190080)>>>24,(h&16711680)>>>16,(h&65280)>>>8,h&255)}return l}const zd=64,h5=new Uint8Array(zd),d5=new Uint8Array(zd);for(let e=0;e<zd;e++)h5[e]=54,d5[e]=92;function AQ(e,t){for(t.length>zd&&(t=Sg(t));t.length<zd;)t.push(0);const n=p5(t,h5),r=p5(t,d5),a=Sg([...n,...e]);return Sg([...r,...a])}var v5={sm3:Sg,hmac:AQ};const{BigInteger:yo}=Np,{encodeDer:TQ,decodeDer:DQ}=lQ,ir=wQ,Lp=v5.sm3,{G:Hc,curve:m5,n:Rp}=ir.generateEcparam(),g5=0;function PQ(e,t,n=1){e=typeof e=="string"?ir.hexToArray(ir.utf8ToHex(e)):Array.prototype.slice.call(e),t=ir.getGlobalCurve().decodePointHex(t);const r=ir.generateKeyPairHex(),a=new yo(r.privateKey,16);let o=r.publicKey;o.length>128&&(o=o.substr(o.length-128));const i=t.multiply(a),u=ir.hexToArray(ir.leftPad(i.getX().toBigInteger().toRadix(16),64)),s=ir.hexToArray(ir.leftPad(i.getY().toBigInteger().toRadix(16),64)),l=ir.arrayToHex(Lp([].concat(u,e,s)));let c=1,f=0,h=[];const d=[].concat(u,s),v=()=>{h=Lp([...d,c>>24&255,c>>16&255,c>>8&255,c&255]),c++,f=0};v();for(let p=0,g=e.length;p<g;p++)f===h.length&&v(),e[p]^=h[f++]&255;const m=ir.arrayToHex(e);return n===g5?o+m+l:o+l+m}function OQ(e,t,n=1,{output:r="string"}={}){t=new yo(t,16);let a=e.substr(128,64),o=e.substr(128+64);n===g5&&(a=e.substr(e.length-64),o=e.substr(128,e.length-128-64));const i=ir.hexToArray(o),s=ir.getGlobalCurve().decodePointHex("04"+e.substr(0,128)).multiply(t),l=ir.hexToArray(ir.leftPad(s.getX().toBigInteger().toRadix(16),64)),c=ir.hexToArray(ir.leftPad(s.getY().toBigInteger().toRadix(16),64));let f=1,h=0,d=[];const v=[].concat(l,c),m=()=>{d=Lp([...v,f>>24&255,f>>16&255,f>>8&255,f&255]),f++,h=0};m();for(let g=0,y=i.length;g<y;g++)h===d.length&&m(),i[g]^=d[h++]&255;return ir.arrayToHex(Lp([].concat(l,i,c)))===a.toLowerCase()?r==="array"?i:ir.arrayToUtf8(i):r==="array"?[]:""}function kQ(e,t,{pointPool:n,der:r,hash:a,publicKey:o,userId:i}={}){let u=typeof e=="string"?ir.utf8ToHex(e):ir.arrayToHex(e);a&&(o=o||_5(t),u=y5(u,o,i));const s=new yo(t,16),l=new yo(u,16);let c=null,f=null,h=null;do{do{let d;n&&n.length?d=n.pop():d=b5(),c=d.k,f=l.add(d.x1).mod(Rp)}while(f.equals(yo.ZERO)||f.add(c).equals(Rp));h=s.add(yo.ONE).modInverse(Rp).multiply(c.subtract(f.multiply(s))).mod(Rp)}while(h.equals(yo.ZERO));return r?TQ(f,h):ir.leftPad(f.toString(16),64)+ir.leftPad(h.toString(16),64)}function BQ(e,t,n,{der:r,hash:a,userId:o}={}){let i=typeof e=="string"?ir.utf8ToHex(e):ir.arrayToHex(e);a&&(i=y5(i,n,o));let u,s;if(r){const v=DQ(t);u=v.r,s=v.s}else u=new yo(t.substring(0,64),16),s=new yo(t.substring(64),16);const l=m5.decodePointHex(n),c=new yo(i,16),f=u.add(s).mod(Rp);if(f.equals(yo.ZERO))return!1;const h=Hc.multiply(s).add(l.multiply(f)),d=c.add(h.getX().toBigInteger()).mod(Rp);return u.equals(d)}function y5(e,t,n="1234567812345678"){n=ir.utf8ToHex(n);const r=ir.leftPad(Hc.curve.a.toBigInteger().toRadix(16),64),a=ir.leftPad(Hc.curve.b.toBigInteger().toRadix(16),64),o=ir.leftPad(Hc.getX().toBigInteger().toRadix(16),64),i=ir.leftPad(Hc.getY().toBigInteger().toRadix(16),64);let u,s;if(t.length===128)u=t.substr(0,64),s=t.substr(64,64);else{const h=Hc.curve.decodePointHex(t);u=ir.leftPad(h.getX().toBigInteger().toRadix(16),64),s=ir.leftPad(h.getY().toBigInteger().toRadix(16),64)}const l=ir.hexToArray(n+r+a+o+i+u+s),c=n.length*4;l.unshift(c&255),l.unshift(c>>8&255);const f=Lp(l);return ir.arrayToHex(Lp(f.concat(ir.hexToArray(e))))}function _5(e){const t=Hc.multiply(new yo(e,16)),n=ir.leftPad(t.getX().toBigInteger().toString(16),64),r=ir.leftPad(t.getY().toBigInteger().toString(16),64);return"04"+n+r}function b5(){const e=ir.generateKeyPairHex(),t=m5.decodePointHex(e.publicKey);return e.k=new yo(e.privateKey,16),e.x1=t.getX().toBigInteger(),e}var IQ={generateKeyPairHex:ir.generateKeyPairHex,compressPublicKeyHex:ir.compressPublicKeyHex,comparePublicKeyHex:ir.comparePublicKeyHex,doEncrypt:PQ,doDecrypt:OQ,doSignature:kQ,doVerifySignature:BQ,getPublicKeyFromPrivateKey:_5,getPoint:b5,verifyPublicKey:ir.verifyPublicKey};const{sm3:NQ,hmac:FQ}=v5;function MQ(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function x5(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function LQ(e){const t=[];let n=e.length;n%2!==0&&(e=MQ(e,n+1)),n=e.length;for(let r=0;r<n;r+=2)t.push(parseInt(e.substr(r,2),16));return t}function RQ(e){const t=[];for(let n=0,r=e.length;n<r;n++){const a=e.codePointAt(n);if(a<=127)t.push(a);else if(a<=2047)t.push(192|a>>>6),t.push(128|a&63);else if(a<=55295||a>=57344&&a<=65535)t.push(224|a>>>12),t.push(128|a>>>6&63),t.push(128|a&63);else if(a>=65536&&a<=1114111)n++,t.push(240|a>>>18&28),t.push(128|a>>>12&63),t.push(128|a>>>6&63),t.push(128|a&63);else throw t.push(a),new Error("input is not supported")}return t}var jQ=function(e,t){if(e=typeof e=="string"?RQ(e):Array.prototype.slice.call(e),t){if((t.mode||"hmac")!=="hmac")throw new Error("invalid mode");let r=t.key;if(!r)throw new Error("invalid key");return r=typeof r=="string"?LQ(r):Array.prototype.slice.call(r),x5(FQ(e,r))}return x5(NQ(e))};const Au=0,VQ=32,Wc=16,Cg=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],Ag=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function Rx(e){const t=[];for(let n=0,r=e.length;n<r;n+=2)t.push(parseInt(e.substr(n,2),16));return t}function zQ(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function UQ(e){const t=[];for(let n=0,r=e.length;n<r;n++){const a=e.codePointAt(n);if(a<=127)t.push(a);else if(a<=2047)t.push(192|a>>>6),t.push(128|a&63);else if(a<=55295||a>=57344&&a<=65535)t.push(224|a>>>12),t.push(128|a>>>6&63),t.push(128|a&63);else if(a>=65536&&a<=1114111)n++,t.push(240|a>>>18&28),t.push(128|a>>>12&63),t.push(128|a>>>6&63),t.push(128|a&63);else throw t.push(a),new Error("input is not supported")}return t}function HQ(e){const t=[];for(let n=0,r=e.length;n<r;n++)e[n]>=240&&e[n]<=247?(t.push(String.fromCodePoint(((e[n]&7)<<18)+((e[n+1]&63)<<12)+((e[n+2]&63)<<6)+(e[n+3]&63))),n+=3):e[n]>=224&&e[n]<=239?(t.push(String.fromCodePoint(((e[n]&15)<<12)+((e[n+1]&63)<<6)+(e[n+2]&63))),n+=2):e[n]>=192&&e[n]<=223?(t.push(String.fromCodePoint(((e[n]&31)<<6)+(e[n+1]&63))),n++):t.push(String.fromCodePoint(e[n]));return t.join("")}function jp(e,t){const n=t&31;return e<<n|e>>>32-n}function Tu(e){return(Cg[e>>>24&255]&255)<<24|(Cg[e>>>16&255]&255)<<16|(Cg[e>>>8&255]&255)<<8|Cg[e&255]&255}function Tg(e){return e^jp(e,2)^jp(e,10)^jp(e,18)^jp(e,24)}function Dg(e){return e^jp(e,13)^jp(e,23)}function WQ(e,t,n){const r=new Array(4),a=new Array(4);for(let o=0;o<4;o++)a[0]=e[4*o]&255,a[1]=e[4*o+1]&255,a[2]=e[4*o+2]&255,a[3]=e[4*o+3]&255,r[o]=a[0]<<24|a[1]<<16|a[2]<<8|a[3];for(let o=0,i;o<32;o+=4)i=r[1]^r[2]^r[3]^n[o+0],r[0]^=Tg(Tu(i)),i=r[2]^r[3]^r[0]^n[o+1],r[1]^=Tg(Tu(i)),i=r[3]^r[0]^r[1]^n[o+2],r[2]^=Tg(Tu(i)),i=r[0]^r[1]^r[2]^n[o+3],r[3]^=Tg(Tu(i));for(let o=0;o<16;o+=4)t[o]=r[3-o/4]>>>24&255,t[o+1]=r[3-o/4]>>>16&255,t[o+2]=r[3-o/4]>>>8&255,t[o+3]=r[3-o/4]&255}function GQ(e,t,n){const r=new Array(4),a=new Array(4);for(let o=0;o<4;o++)a[0]=e[0+4*o]&255,a[1]=e[1+4*o]&255,a[2]=e[2+4*o]&255,a[3]=e[3+4*o]&255,r[o]=a[0]<<24|a[1]<<16|a[2]<<8|a[3];r[0]^=2746333894,r[1]^=1453994832,r[2]^=1736282519,r[3]^=2993693404;for(let o=0,i;o<32;o+=4)i=r[1]^r[2]^r[3]^Ag[o+0],t[o+0]=r[0]^=Dg(Tu(i)),i=r[2]^r[3]^r[0]^Ag[o+1],t[o+1]=r[1]^=Dg(Tu(i)),i=r[3]^r[0]^r[1]^Ag[o+2],t[o+2]=r[2]^=Dg(Tu(i)),i=r[0]^r[1]^r[2]^Ag[o+3],t[o+3]=r[3]^=Dg(Tu(i));if(n===Au)for(let o=0,i;o<16;o++)i=t[o],t[o]=t[31-o],t[31-o]=i}function E5(e,t,n,{padding:r="pkcs#7",mode:a,iv:o=[],output:i="string"}={}){if(a==="cbc"&&(typeof o=="string"&&(o=Rx(o)),o.length!==128/8))throw new Error("iv is invalid");if(typeof t=="string"&&(t=Rx(t)),t.length!==128/8)throw new Error("key is invalid");if(typeof e=="string"?n!==Au?e=UQ(e):e=Rx(e):e=[...e],(r==="pkcs#5"||r==="pkcs#7")&&n!==Au){const h=Wc-e.length%Wc;for(let d=0;d<h;d++)e.push(h)}const u=new Array(VQ);GQ(t,u,n);const s=[];let l=o,c=e.length,f=0;for(;c>=Wc;){const h=e.slice(f,f+16),d=new Array(16);if(a==="cbc")for(let v=0;v<Wc;v++)n!==Au&&(h[v]^=l[v]);WQ(h,d,u);for(let v=0;v<Wc;v++)a==="cbc"&&n===Au&&(d[v]^=l[v]),s[f+v]=d[v];a==="cbc"&&(n!==Au?l=d:l=h),c-=Wc,f+=Wc}if((r==="pkcs#5"||r==="pkcs#7")&&n===Au){const h=s.length,d=s[h-1];for(let v=1;v<=d;v++)if(s[h-v]!==d)throw new Error("padding is invalid");s.splice(h-d,d)}return i!=="array"?n!==Au?zQ(s):HQ(s):s}var KQ={encrypt(e,t,n){return E5(e,t,1,n)},decrypt(e,t,n){return E5(e,t,0,n)}},Pg={sm2:IQ,sm3:jQ,sm4:KQ};const w5="04";function XQ(e,t){try{return w5+Pg.sm2.doEncrypt(e,t,1)}catch{return null}}function YQ(e,t){if(e==null)return null;try{return Pg.sm2.doDecrypt(e==null?void 0:e.substring(w5.length),t,1)}catch{return null}}const Ud={encrypt:XQ,decrypt:YQ},JQ="049967b032226da56be01b804ed59e6753e2731994f4c97bb25d39c0d3166af07b73e2651d09b98ae934a70303138e859545e8314e2eda20971e222a444ecd3547",ZQ="1e38a5c42fe3049bfbbcb2323a0cff3feb49e0b8156ac71eed525133603dbddb",S5=e=>(Es(e)&&(e=Zr(e)),Ud.encrypt(e,JQ)),C5=e=>Ud.decrypt(e,ZQ),A5=e=>`__${e}__mode`,QQ=(e,t)=>{const n=Es(t)?2:1;n===2&&(t=Zr(t));const r=S5(t);return{[e]:r,[A5(e)]:n}},T5=e=>{e||(e=window.location.href);const t=Nl.getQueryParams(e);if(!t)return null;const n={};return kr(t).map(r=>{let a=t[r];const o=t[A5(r)];return o!=null&&(a=C5(a),o==2&&(a=ii(a))),n[r]=a,a}),n},Og={decryptFromLocation:()=>T5(window.location.href),decryptFromUrl:T5,encryptToUrl:QQ,decryptData:C5,encryptData:S5};var Gc=(e=>(e.year="year",e.month="month",e.day="day",e.hour="hour",e.minute="minute",e.second="second",e.week="week",e))(Gc||{});function qQ(e){return e%4===0&&e%100!==0||e%400===0}function $Q(e){return[0,31,qQ(e)?29:28,31,30,31,30,31,31,30,31,30]}function kg(e,t){var n=new Date(e),r=new Date(t),a;n>r&&(a=n,n=r,r=a);var o=$Q(n.getFullYear())[n.getMonth()];let i=r.getFullYear()-n.getFullYear();i>0&&(n.setFullYear(r.getFullYear()),r<n&&(i-=1,n.setFullYear(n.getFullYear()-1)));let u=r.getMonth()-n.getMonth();u>0&&(n.setMonth(r.getMonth()),r<n&&(u-=1,n.setMonth(n.getMonth()-1)));let s=o+r.getDate()-n.getDate();s>=o&&(s-=o,n.setDate(r.getDate()),r<n&&(s-=1,n.setDate(n.getDate()-1)));const l=Math.abs(r.getTime()-n.getTime()),c=Math.floor(l%(24*60*60*1e3)/(60*60*1e3)),f=Math.floor(l%(60*60*1e3)/(60*1e3)),h=Math.floor(l%(60*1e3)/1e3);return{years:i,months:u,days:s,hours:c,minutes:f,seconds:h}}function D5(e,t,n="day"){var r=new Date(e);switch(n){case"year":r.setFullYear(r.getFullYear()+t);break;case"month":r.setMonth(r.getMonth()+t);break;case"week":r.setDate(r.getDate()+t*7);break;case"day":r.setDate(r.getDate()+t);break;case"hour":r.setHours(r.getHours()+t);break;case"minute":r.setMinutes(r.getMinutes()+t);break;case"second":r.setSeconds(r.getSeconds()+t);break}return r}function Hd(e,t,n="day"){var r=Math.abs(new Date(e).getTime()-new Date(t).getTime());const a=kg(e,t);switch(n){case"year":return a.years;case"month":return a.months+a.years*12;case"day":return Math.floor(r/(24*60*60*1e3));case"hour":return Math.floor(r/(60*60*1e3));case"minute":return Math.floor(r/(60*1e3));case"second":return Math.floor(r/1e3);case"week":return Math.floor(r/(7*24*60*60*1e3))}}function eq(e,t,n="day"){const r=kg(e,t);switch(n){case"year":return r.years;case"month":return r.months;case"day":return r.days;case"hour":return r.hours;case"minute":return r.minutes;case"second":return r.seconds}return 0}function Bg(e,t){if(!t)return String(e);if(!e)return"";var n=new Date(e);const r={yyyy:n.getFullYear(),yy:n.getFullYear().toString().slice(-2),MM:(n.getMonth()+1).toString().padStart(2,"0"),M:n.getMonth()+1,dd:n.getDate().toString().padStart(2,"0"),d:n.getDate(),HH:n.getHours().toString().padStart(2,"0"),H:n.getHours(),mm:n.getMinutes().toString().padStart(2,"0"),m:n.getMinutes(),ss:n.getSeconds().toString().padStart(2,"0"),s:n.getSeconds(),SSS:n.getMilliseconds(),fff:n.getMilliseconds().toString().padStart(3,"0"),gg:"上午",aa:"下午"};let a=t;for(let o in r)a=a.replace(o,r[o]);return a}function P5(e){return!isNaN(Date.parse(e))}function tq(e){if(P5(e))return new Date(e)}function O5(e){if(e){var t=new Date;if(P5(e))return new Date(e);var n=t.getFullYear()+"-"+t.getMonth()+"-"+t.getDate()+" "+e;return new Date(n)}}function k5(e){return Array.isArray(e)?e.map(t=>O5(t)):typeof e=="string"?O5(e):e}function nq(){return B5("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",/[xy]/g)}function Ig(){return B5("xxxxxxxxxxxxxxxxxxxxxxxxxxxx",/[xy]/g)}function B5(e,t,n=16){return e.replace(t,r=>{const a=Math.floor(Math.random()*n);return(r==="x"?a:a&3|8).toString(n)})}const $s=function(){return Math.floor(Math.random()*1e5+Math.random()*2e4+Math.random()*5e3)},I5=()=>Bg(new Date,"yyyyMMHHmmss")+"_"+$s();function jx(){return{addWindowName:()=>{window.name||(window.name=Ig())},addWindowHook:(a,o)=>{No(window,a,o)},openWindow:(a,o,i,u)=>{const s=o!=null&&o.target?"_blank":"_self",l=o!=null&&o.width&&(o!=null&&o.height)?`width=${o==null?void 0:o.width},height=${o==null?void 0:o.height}`:"";i||(i=window);var c=a;u&&(c=Nl.buildUrlByLocalQuery(a)),i==null||i.open(c,s,l)},disableFirefoxDefaultDrop:()=>{navigator.userAgent.toLowerCase().indexOf("firefox")!==-1&&(document.body.ondrop=function(o){o.stopPropagation(),o.preventDefault()})}}}const wi={info(e){xi.ElMessage({type:"info",message:e,dangerouslyUseHTMLString:!0})},error(e){xi.ElMessage({type:"error",message:e,dangerouslyUseHTMLString:!0})},success(e){xi.ElMessage({type:"success",message:e,dangerouslyUseHTMLString:!0})},warning(e){xi.ElMessage({type:"warning",message:e,dangerouslyUseHTMLString:!0})}},rq={delete(){return this.do(se.i18nt("designer.hint.confirmDelete"))},multiple(e){var t=e.map(n=>x.h("p",null,n));return this.do(x.h("p",null,t))},do(e){return xi.ElMessageBox.confirm(e,se.i18nt("designer.hint.prompt"),{confirmButtonText:se.i18nt("designer.hint.confirm"),cancelButtonText:se.i18nt("designer.hint.cancel"),type:"warning",appendTo:"body"})}},iq={info(e){xi.ElNotification({type:"info",message:e,dangerouslyUseHTMLString:!0})},error(e){xi.ElNotification({type:"error",message:e,dangerouslyUseHTMLString:!0})},success(e){xi.ElNotification({type:"success",message:e,dangerouslyUseHTMLString:!0})},warning(e){xi.ElNotification({type:"warning",message:e,dangerouslyUseHTMLString:!0})}},Ng=e=>{var a,o;const t=((a=e==null?void 0:e.exposed)==null?void 0:a.getRowScope())||{},n=((o=e==null?void 0:e.exposed)==null?void 0:o.getFormData())||{};var r=Og.decryptFromUrl(window.location.href);return{rowScope:t,formData:n,urlQuerys:r}};function aq(e,t,n,r){var h,d;let a=ri((h=e==null?void 0:e.content)==null?void 0:h.widgetId,!0),o=ri((d=e==null?void 0:e.content)==null?void 0:d.sourceId,!0);if(!a||!o)return null;const i=()=>new Promise((v,m)=>{var y;let p={};if(!a||a.length<=0){v(p);return}const g=(y=a==null?void 0:a.filter(b=>{var _;return!!((_=n==null?void 0:n.exposed)!=null&&_.findRefById(b,n))}))==null?void 0:y.map(b=>{var _;return(_=n==null?void 0:n.exposed)==null?void 0:_.findRefById(b,n)});Promise.all(g==null?void 0:g.map(b=>{var _;return(_=b==null?void 0:b.exposed)==null?void 0:_.getValue(!0)})).then(b=>{b.forEach(_=>{_!=null&&_.isSuccess&&(p=Object.assign({},p,_==null?void 0:_.data))}),v(p)}).catch(b=>{var E;const _=Array.isArray(b==null?void 0:b.message)?(E=Array.from(b==null?void 0:b.message))==null?void 0:E.map(w=>`<p class="pLine">${w}</p>`).join(""):b==null?void 0:b.message;iq.error(_||Zr(b))})}),u=v=>{var p;var m=(p=e==null?void 0:e.content)==null?void 0:p.schemaParamName;return m?{[m]:v}:{_formData:v}},s=(v,m,p)=>{if(!v)return p;const g=Ng(n);return Js(v,{formData:p||(g==null?void 0:g.formData)||{},arg:{urlQuery:g==null?void 0:g.urlQuerys,rowScope:g==null?void 0:g.rowScope},exp:m})},l=(v,m,p,g,y)=>{if(!v)return g;const b=Ng(n);return Js(v,{widgetId:y,respValue:g,respData:p,arg:{urlQuery:b==null?void 0:b.urlQuerys,rowScope:b==null?void 0:b.rowScope,formData:b==null?void 0:b.formData},exp:m})},c=()=>new Promise((v,m)=>{i().then(p=>{var b;var g=[];let y=u(s((b=e==null?void 0:e.content)==null?void 0:b.beforeFetch,t,p));o==null||o.forEach(_=>{var E=`${Ni.schema}.${_}`,w=_e.buildVariablePropValue(E,y);const S=_e.getValue(w,!1,!0,r);g.push({sourceId:_,params:y,resp:S})}),v(g)})}),f=v=>{v==null||v.forEach(m=>{let p=x.watch(m==null?void 0:m.resp,g=>{p==null||p(),a==null||a.forEach(y=>{var E,w,S,A,P,C;var b=(E=n==null?void 0:n.exposed)==null?void 0:E.findRefById(y);if(!b)return;const _=(w=e==null?void 0:e.content)==null?void 0:w.afterFetch;_?l(_,t,{...m,resp:g},g,y):(A=(S=b==null?void 0:b.exposed)==null?void 0:S.setValue)==null||A.call(S,g,!1),(C=(P=b==null?void 0:b.exposed)==null?void 0:P.clearChangeRecord)==null||C.call(P)})})})};c().then(v=>{f(v)})}function oq(e,t,n,r){const a=(l,c,f)=>{const{sendToIframe:h,receive:d}=r5();return new Promise((v,m)=>{var g,y;const p=Ig();d(b=>{console.log("mesWithIframe",b),f(p,b,_=>{_!=null&&_.isSuccess?v(!0):xi.ElNotification.error((_==null?void 0:_.message)||(b==null?void 0:b.data))})},!0),h((y=(g=l==null?void 0:l.data)==null?void 0:g.props)==null?void 0:y.iframeRef,{...c,msgId:p})})},o=(l,c)=>{var m,p;const f=((m=n==null?void 0:n.exposed)==null?void 0:m.getRowScope())||{},h=((p=n==null?void 0:n.exposed)==null?void 0:p.getFormData())||{};var d=Og.decryptFromUrl(window.location.href),v=Js(l,{data:{urlQuery:d,rowScope:f,formData:h},exp:c});return v},i=()=>{var h,d,v,m;var l=(h=e==null?void 0:e.content)!=null&&h.withQuery?Nl.getLocationQueryParams():{};let c=Object.assign(l||{},o((d=e==null?void 0:e.content)==null?void 0:d.setQueryFn,t));const f=Nl.buildUrl((v=e==null?void 0:e.content)==null?void 0:v.url,c,(m=e==null?void 0:e.content)==null?void 0:m.encodeQuery);return Nl.resolveByCurrentUrl(f)},u=()=>{var l,c,f,h;switch((l=e==null?void 0:e.content)==null?void 0:l.windowTarget){case og.self:return window;case og.top:return window.top||window;case og.parent:return window.parent;default:return(c=e==null?void 0:e.content)!=null&&c.windowTarget?(h=go.find(window,(f=e==null?void 0:e.content)==null?void 0:f.windowTarget))==null?void 0:h.window:window}};(()=>{var v,m;const{openWindow:l}=jx(),c=u(),f=i();if(((v=e==null?void 0:e.content)==null?void 0:v.windowModal)===nD.modal){var h={self:window==null?void 0:window.name,caller:c==null?void 0:c.name};const p=(b,_,E)=>{var w;console.log("handle onReceive"),Js((w=e==null?void 0:e.content)==null?void 0:w.onReceive,{data:{msgId:b,eventMsg:_},exp:t,callback:E})},g=b=>a(b,{command:"saveForm",args:{...h}},p),y=b=>a(b,{command:"cancelForm",args:{...h}},p);var d={...e==null?void 0:e.content,url:f,callback:{okCallback:g,cancelCallback:y}};if(c)if(c!=null&&c.openModalAsync)(m=c==null?void 0:c.openModalAsync)==null||m.call(c,d);else{wi.error(se.i18nt("designer.hint.windowNotSupport"));return}else n5(n,d)}else l(f,e==null?void 0:e.content,c==null?void 0:c.window,!1)})()}function sq(e,t,n,r){var c;let a=ri((c=e==null?void 0:e.content)==null?void 0:c.sourceId,!0);if(!a)return null;const o=(f,h,d)=>{if(!f)return d;const v=Ng(n);return Js(f,{formData:d||(v==null?void 0:v.formData)||{},arg:{urlQuery:v==null?void 0:v.urlQuerys,rowScope:v==null?void 0:v.rowScope},exp:h})},i=()=>{var m,p,g;var f=[];const h=(m=e==null?void 0:e.content)==null?void 0:m.params,d=ii(_ne(h,r));let v=(p=e==null?void 0:e.content)!=null&&p.beforeFetch?o((g=e==null?void 0:e.content)==null?void 0:g.beforeFetch,t,d):h;return a==null||a.forEach(y=>{var b=`${Ni.schema}.${y}`,_=_e.buildVariablePropValue(b,v);const E=_e.getValue(_,!1,!0,r);f.push({sourceId:y,params:v,resp:E})}),f},u=(f,h,d,v)=>{if(!f)return v;const m=Ng(n);return Js(f,{respValue:v,respData:d,arg:{urlQuery:m==null?void 0:m.urlQuerys,rowScope:m==null?void 0:m.rowScope,formData:m==null?void 0:m.formData},exp:h})},s=f=>{f==null||f.forEach(h=>{let d=x.watch(h==null?void 0:h.resp,v=>{var m,p;d==null||d(),(m=e==null?void 0:e.content)!=null&&m.afterFetch&&u((p=e==null?void 0:e.content)==null?void 0:p.afterFetch,t,{...h,resp:v},v)})})};var l=i();return s(l),l}function lq(e,t,n,r){var a,o,i,u,s,l,c;switch(e==null?void 0:e.type){case Ss.actionCode:return Js((a=e==null?void 0:e.content)==null?void 0:a.code,t);case Ss.actionURL:return oq(e,t,n);case Ss.actionShowWidget:{let f=(o=e==null?void 0:e.content)==null?void 0:o.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setHidden(!1)});return}case Ss.actionHideWidget:{let f=(i=e==null?void 0:e.content)==null?void 0:i.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setHidden(!0)});return}case Ss.actionEnableWidget:{let f=(u=e==null?void 0:e.content)==null?void 0:u.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setDisabled(!1)});return}case Ss.actionDisableWidget:{let f=(s=e==null?void 0:e.content)==null?void 0:s.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setDisabled(!0)});return}case Ss.actionOpenDialog:{let f=(l=e==null?void 0:e.content)==null?void 0:l.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setValue(!0)});return}case Ss.actionCloseDialog:{let f=(c=e==null?void 0:e.content)==null?void 0:c.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setValue(!1)});return}case Ss.actionSendSchema:return sq(e,t,n,r);case Ss.actionSaveFormData:return aq(e,t,n,r)}}const N5=(e,t)=>{const{state:n}=mx(async()=>{const r=await Promise.resolve().then(()=>Tme);var a=Object.entries(r).find(([o,i])=>o===e);if(a)return t!=null&&t.appContext.components[a[0]]||t==null||t.appContext.app.component(a[0],a[1]),a==null?void 0:a[1]},null);return n},uq=(e,t,n)=>{e&&e.interceptors.request.use(function(r){var a=r;return n&&(a=n(t,r)),a},function(r){return Promise.reject(r)})},cq=(e,t,n,r)=>{e&&e.interceptors.response.use(function(a){var o=a;return n&&(o=n(t,a)),o},function(a){var o=a;return r&&(o=r(t,a)),Promise.reject(o)})},Vx=(e,t)=>{const n=JD.create(e);return uq(n,t,e==null?void 0:e.willFetch),cq(n,t,e==null?void 0:e.fitFetch,e==null?void 0:e.errorFetch),new Promise((r,a)=>{n.request({url:e==null?void 0:e.url,data:e==null?void 0:e.data}).then(o=>{let i=o;var u=e==null?void 0:e.fitFetch;u&&u(t,o),r(i)}).catch(o=>{a(o)})})},fq={req:Vx,get:(e,t)=>(e.method="get",Vx(e,t)),post:(e,t)=>(e.method="post",Vx(e,t))};class pq{_emptyAndLength(t){return!!(t&&t.length===18)}_idCardRule(t){return/(^\d{17}(\d|X)$)/.test(t)}_checkProvince(t,n={}){const r={11:"北京市",12:"天津市",13:"河北省",14:"山西省",15:"内蒙古自治区",21:"辽宁省",22:"吉林省",23:"黑龙江省 ",31:"上海",32:"江苏省",33:"浙江省",34:"安徽省",35:"福建省",36:"江西省",37:"山东省",41:"河南省",42:"湖北省 ",43:"湖南省",44:"广东省",45:"广西壮族自治区",46:"海南省",50:"重庆",51:"四川省",52:"贵州省",53:"云南省",54:"西藏自治区 ",61:"陕西省",62:"甘肃省",63:"青海省",64:"宁夏回族自治区",65:"新疆维吾尔自治区",71:"台湾省",81:"香港特别行政区",82:"澳门特别行政区"},a=parseInt(t.substring(0,2));return n.provinceCode=a,n.provinceName=r[a],!!r[a]}_checkCity(t,n={}){const r=parseInt(t.substring(0,6)),a={};return n.cityCode=r,n.cityName=a[r],!0;//!!areaCodesObj[city]
|
|
19
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[VD]=this[VD]={accessors:{}}).accessors,a=this.prototype;function o(i){const u=Rd(i);r[u]||(AZ(a,i),r[u]=!0)}return Ot.isArray(t)?t.forEach(o):o(t),this}}yg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ot.freezeMethods(yg.prototype),Ot.freezeMethods(yg);const Il=yg;function Px(e,t){const n=this||Tx,r=t||n,a=Il.from(r.headers);let o=r.data;return Ot.forEach(e,function(u){o=u.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function zD(e){return!!(e&&e.__CANCEL__)}function jd(e,t,n){Br.call(this,e??"canceled",Br.ERR_CANCELED,t,n),this.name="CanceledError"}Ot.inherits(jd,Br,{__CANCEL__:!0});function TZ(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Br("Request failed with status code "+n.status,[Br.ERR_BAD_REQUEST,Br.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const DZ=qs.isStandardBrowserEnv?function(){return{write:function(n,r,a,o,i,u){const s=[];s.push(n+"="+encodeURIComponent(r)),Ot.isNumber(a)&&s.push("expires="+new Date(a).toGMTString()),Ot.isString(o)&&s.push("path="+o),Ot.isString(i)&&s.push("domain="+i),u===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function PZ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OZ(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function UD(e,t){return e&&!PZ(t)?OZ(e,t):t}const kZ=qs.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(i){const u=Ot.isString(i)?a(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function BZ(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function IZ(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(s){const l=Date.now(),c=r[o];i||(i=l),n[a]=s,r[a]=l;let f=o,h=0;for(;f!==a;)h+=n[f++],f=f%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),l-i<t)return;const d=c&&l-c;return d?Math.round(h*1e3/d):void 0}}function HD(e,t){let n=0;const r=IZ(50,250);return a=>{const o=a.loaded,i=a.lengthComputable?a.total:void 0,u=o-n,s=r(u),l=o<=i;n=o;const c={loaded:o,total:i,progress:i?o/i:void 0,bytes:u,rate:s||void 0,estimated:s&&i&&l?(i-o)/s:void 0,event:a};c[t?"download":"upload"]=!0,e(c)}}const _g={http:oZ,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let a=e.data;const o=Il.from(e.headers).normalize(),i=e.responseType;let u;function s(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}Ot.isFormData(a)&&(qs.isStandardBrowserEnv||qs.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(d+":"+v))}const c=UD(e.baseURL,e.url);l.open(e.method.toUpperCase(),MD(c,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function f(){if(!l)return;const d=Il.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),m={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:e,request:l};TZ(function(g){n(g),s()},function(g){r(g),s()},m),l=null}if("onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(f)},l.onabort=function(){l&&(r(new Br("Request aborted",Br.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new Br("Network Error",Br.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||RD;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new Br(v,m.clarifyTimeoutError?Br.ETIMEDOUT:Br.ECONNABORTED,e,l)),l=null},qs.isStandardBrowserEnv){const d=(e.withCredentials||kZ(c))&&e.xsrfCookieName&&DZ.read(e.xsrfCookieName);d&&o.set(e.xsrfHeaderName,d)}a===void 0&&o.setContentType(null),"setRequestHeader"in l&&Ot.forEach(o.toJSON(),function(v,m){l.setRequestHeader(m,v)}),Ot.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",HD(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",HD(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=d=>{l&&(r(!d||d.type?new jd(null,e,l):d),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const h=BZ(c);if(h&&qs.protocols.indexOf(h)===-1){r(new Br("Unsupported protocol "+h+":",Br.ERR_BAD_REQUEST,e));return}l.send(a||null)})}};Ot.forEach(_g,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const NZ={getAdapter:e=>{e=Ot.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let a=0;a<t&&(n=e[a],!(r=Ot.isString(n)?_g[n.toLowerCase()]:n));a++);if(!r)throw r===!1?new Br(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Ot.hasOwnProp(_g,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!Ot.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:_g};function Ox(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jd(null,e)}function WD(e){return Ox(e),e.headers=Il.from(e.headers),e.data=Px.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),NZ.getAdapter(e.adapter||Tx.adapter)(e).then(function(r){return Ox(e),r.data=Px.call(e,e.transformResponse,r),r.headers=Il.from(r.headers),r},function(r){return zD(r)||(Ox(e),r&&r.response&&(r.response.data=Px.call(e,e.transformResponse,r.response),r.response.headers=Il.from(r.response.headers))),Promise.reject(r)})}const GD=e=>e instanceof Il?e.toJSON():e;function Ip(e,t){t=t||{};const n={};function r(l,c,f){return Ot.isPlainObject(l)&&Ot.isPlainObject(c)?Ot.merge.call({caseless:f},l,c):Ot.isPlainObject(c)?Ot.merge({},c):Ot.isArray(c)?c.slice():c}function a(l,c,f){if(Ot.isUndefined(c)){if(!Ot.isUndefined(l))return r(void 0,l,f)}else return r(l,c,f)}function o(l,c){if(!Ot.isUndefined(c))return r(void 0,c)}function i(l,c){if(Ot.isUndefined(c)){if(!Ot.isUndefined(l))return r(void 0,l)}else return r(void 0,c)}function u(l,c,f){if(f in t)return r(l,c);if(f in e)return r(void 0,l)}const s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(l,c)=>a(GD(l),GD(c),!0)};return Ot.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=s[c]||a,h=f(e[c],t[c],c);Ot.isUndefined(h)&&f!==u||(n[c]=h)}),n}const KD="1.4.0",kx={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{kx[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const XD={};kx.transitional=function(t,n,r){function a(o,i){return"[Axios v"+KD+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new Br(a(i," has been removed"+(n?" in "+n:"")),Br.ERR_DEPRECATED);return n&&!XD[i]&&(XD[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,u):!0}};function FZ(e,t,n){if(typeof e!="object")throw new Br("options must be an object",Br.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],i=t[o];if(i){const u=e[o],s=u===void 0||i(u,o,e);if(s!==!0)throw new Br("option "+o+" must be "+s,Br.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Br("Unknown option "+o,Br.ERR_BAD_OPTION)}}const Bx={assertOptions:FZ,validators:kx},wu=Bx.validators;class bg{constructor(t){this.defaults=t,this.interceptors={request:new LD,response:new LD}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ip(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Bx.assertOptions(r,{silentJSONParsing:wu.transitional(wu.boolean),forcedJSONParsing:wu.transitional(wu.boolean),clarifyTimeoutError:wu.transitional(wu.boolean)},!1),a!=null&&(Ot.isFunction(a)?n.paramsSerializer={serialize:a}:Bx.assertOptions(a,{encode:wu.function,serialize:wu.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&Ot.merge(o.common,o[n.method]),i&&Ot.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=Il.concat(i,o);const u=[];let s=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(s=s&&m.synchronous,u.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let c,f=0,h;if(!s){const v=[WD.bind(this),void 0];for(v.unshift.apply(v,u),v.push.apply(v,l),h=v.length,c=Promise.resolve(n);f<h;)c=c.then(v[f++],v[f++]);return c}h=u.length;let d=n;for(f=0;f<h;){const v=u[f++],m=u[f++];try{d=v(d)}catch(p){m.call(this,p);break}}try{c=WD.call(this,d)}catch(v){return Promise.reject(v)}for(f=0,h=l.length;f<h;)c=c.then(l[f++],l[f++]);return c}getUri(t){t=Ip(this.defaults,t);const n=UD(t.baseURL,t.url);return MD(n,t.params,t.paramsSerializer)}}Ot.forEach(["delete","get","head","options"],function(t){bg.prototype[t]=function(n,r){return this.request(Ip(r||{},{method:t,url:n,data:(r||{}).data}))}}),Ot.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,u){return this.request(Ip(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}bg.prototype[t]=n(),bg.prototype[t+"Form"]=n(!0)});const xg=bg;class Ix{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(a=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new jd(o,i,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ix(function(a){t=a}),cancel:t}}}const MZ=Ix;function LZ(e){return function(n){return e.apply(null,n)}}function RZ(e){return Ot.isObject(e)&&e.isAxiosError===!0}const Nx={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nx).forEach(([e,t])=>{Nx[t]=e});const jZ=Nx;function YD(e){const t=new xg(e),n=bD(xg.prototype.request,t);return Ot.extend(n,xg.prototype,t,{allOwnKeys:!0}),Ot.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return YD(Ip(e,a))},n}const Xi=YD(Tx);Xi.Axios=xg,Xi.CanceledError=jd,Xi.CancelToken=MZ,Xi.isCancel=zD,Xi.VERSION=KD,Xi.toFormData=vg,Xi.AxiosError=Br,Xi.Cancel=Xi.CanceledError,Xi.all=function(t){return Promise.all(t)},Xi.spread=LZ,Xi.isAxiosError=RZ,Xi.mergeConfig=Ip,Xi.AxiosHeaders=Il,Xi.formToJSON=e=>jD(Ot.isHTMLForm(e)?new FormData(e):e),Xi.HttpStatusCode=jZ,Xi.default=Xi;const JD=Xi,VZ=e=>{let t={};return e.map(n=>{t[n.name]=n.value}),t},zZ=e=>({moduleCache:{vue:mG},getFile(t){return Promise.resolve(e)},addStyle(t){const n=Object.assign(document.createElement("style"),{textContent:t}),r=document.head.getElementsByTagName("style")[0]||null;document.head.insertBefore(n,r)}}),ZD=e=>{var n;if(!e)return null;(n=e==null?void 0:e.trim())!=null&&n.includes("<template>")||(e=`<template>${e}</template>`);const t=zZ(e);return x.defineAsyncComponent({loader:async()=>{const r=await Promise.resolve().then(()=>joe),{loadModule:a}=r;return a("/myComponent.vue",t)}})},UZ=e=>{var r;if(!e)return"";var t=/<template>(?<templateBody>[^*]+)<\/template>/,n=t.exec(e);if(n&&(n==null?void 0:n.length)>0)try{return((r=n.groups)==null?void 0:r.templateBody)||""}catch{}return""};function Sa(e){var s,l,c;const t=()=>x.getCurrentInstance(),n=e??t(),r=(c=(l=(s=n==null?void 0:n.appContext)==null?void 0:s.app)==null?void 0:l.config)==null?void 0:c.globalProperties,a=r==null?void 0:r.$message,o=r==null?void 0:r.$confirm,i=r==null?void 0:r.$prompt,u=n==null?void 0:n.proxy;return{getInstance:t,instance:n,proxy:u,$message:a,$confirm:o,$prompt:i,globalProperties:r}}const HZ=function(e){return QD(window.location.href,e)},QD=function(e,t){const n=Eg(e);return n==null?void 0:n[t]},WZ=e=>/^(?:%[0-9A-Fa-f]{2}|[A-Za-z0-9\-_.!~*'()]|%20)*$/.test(e),qD=function(){return Eg(window.location.href)},$D=e=>{var t;return((t=e==null?void 0:e.split("?"))==null?void 0:t.at(0))||e||""},Eg=e=>{var a;const t={};let n=(a=e==null?void 0:e.split("?"))==null?void 0:a.at(1),r=n==null?void 0:n.split("&");for(let o=0;o<((r==null?void 0:r.length)||0);o++){let i=r==null?void 0:r[o].split("="),u=(i==null?void 0:i[0])||"",s=(i==null?void 0:i[1])||"";WZ(s)?t[u]=decodeURIComponent(s):t[u]=s}return t},e5=(e,t,n)=>{t=Object.assign(Eg(e)||{},t),e=$D(e);const r=Object.entries(t).map(([a,o])=>n===!1?`${a}=${o==null?void 0:o.toString()}`:`${encodeURIComponent(a)}=${encodeURIComponent(o==null?void 0:o.toString())}`).join("&");return r?`${e}?${r}`:e},GZ=e=>e5(e,qD()),t5=e=>{try{return new URL(e),!0}catch{return!1}},KZ=()=>{location.reload()},XZ=()=>{function e(s,l,c="",f=!1){const h=S=>{const[A,P=""]=S.split("#",2),[C,D=""]=A.split("?",2);return{path:C.replace(/^#/,"").replace(/\/+$/,""),searchParams:new URLSearchParams(D),hashFragment:P}},d=h(s),v=h(l),m=f?new URLSearchParams(d.searchParams):new URLSearchParams;v.searchParams.forEach((S,A)=>{m.set(A,S)});const p=(S,A)=>{const P=S.split("/").filter(Boolean),C=A.split("/").filter(Boolean);for(const D of C)D!=="."&&(D===".."?P.length>0&&P.pop():P.push(D));return`/${P.join("/")}`},y=((S,A)=>A.startsWith("/")?`/${A.replace(/^\/+/,"")}`:p(S,v.path))(d.path,v.path),b=m.toString(),E=`${`${y}${b?`?${b}`:""}`}${v.hashFragment?`#${v.hashFragment}`:""}`;return(a()?`/${c}#/${E}`:E).replace(/\/+/g,"/").replace(/^#\//,"#").replace(/%20/g,"+").replace(/[?#]/g,S=>S)}function t(s,l,c=""){return e(l,s,c)}const n=()=>window.location.hash,r=()=>window.location.pathname,a=()=>!!n();function o(s){const l=new URL(s);return l.pathname=l.pathname.replace(/\/{2,}/g,"/"),l.toString()}const i=s=>{const l="/";var c=window.location.href,[f]=c.split(/\/[^/]*#\//g,2);return[f,s].join(l)};return{resolveByCurrentUrl:(s,l="")=>{var f;if(t5(s))return s;const c=t(s,((f=n())==null?void 0:f.substring(1))||r(),l);return o(i(c))}}},{resolveByCurrentUrl:YZ}=XZ(),Nl={buildUrl:e5,getBaseUrl:$D,getQueryParam:QD,getLocationQueryParam:HZ,getQueryParams:Eg,getLocationQueryParams:qD,buildUrlByLocalQuery:GZ,isUrl:t5,refresh:KZ,resolveByCurrentUrl:YZ};class Fx{constructor(){U(this,"type","ok");U(this,"body")}}class JZ{constructor(t){U(this,"_app");this._app=t}open(t,n,r){if(!this._app)return;const a=document.createElement("div");document.body.appendChild(a);const o=()=>{document.body.removeChild(a)},i=x.h(t,{...n,onOk:u=>{r==null||r(this.ok({props:u,destroyDialog:o}))},onCancel:u=>{r==null||r(this.cancel({props:u,destroyDialog:o}))},onClose:u=>{r==null||r(this.close({props:u,destroyDialog:o}))}});i.appContext=this._app._context,x.render(i,a)}ok(t){const n=new Fx;return n.type="ok",n.body=t,n}cancel(t){const n=new Fx;return n.type="cancel",n.body=t,n}close(t){const n=new Fx;return n.type="close",n.body=t,n}}function ZZ(e){var n,r,a,o;var t=(o=(a=(r=(n=e==null?void 0:e.appContext)==null?void 0:n.app)==null?void 0:r.config)==null?void 0:a.globalProperties)==null?void 0:o.$dzModal;if(!t)throw new Error("No DzModal installed");return t}const QZ={install(e,t){const n=new JZ(e);e.config.globalProperties.$dzModal=n}},qZ=x.defineAsyncComponent(()=>Promise.resolve().then(()=>Nk));class $Z{constructor(){U(this,"fullscreen",{type:Boolean,default:!1});U(this,"width",{type:String});U(this,"height",{type:String});U(this,"title",{type:String});U(this,"url",{type:String});U(this,"dialogType",{type:Array});U(this,"callback",{type:Object})}}const eQ=new $Z,n5=(e,t)=>{const n=ZZ(e);n==null||n.open(qZ,t,r=>{var u,s;const a=jt(t==null?void 0:t.callback),o=r.body,i=()=>{var l;(l=o==null?void 0:o.destroyDialog)==null||l.call(o)};r.type==="ok"?(u=a==null?void 0:a.okCallback)==null||u.call(a,{data:r.body}).then(l=>{i()}):r.type==="cancel"?(s=a==null?void 0:a.cancelCallback)==null||s.call(a,{data:r.body}).then(l=>{i()}):r.type==="close"&&i()})};class go{static findUp(t,n,r={includeSelf:!0}){try{let a=t;for(;a;){if((r.includeSelf||a!==t)&&a.name===n)return{window:a,iframe:a.frameElement};const o=a.frameElement;if((o==null?void 0:o.id)===n)return{window:a,iframe:o};if(a===a.parent)break;a=a.parent}return null}catch(a){return console.warn("findWindowUp",a),null}}static findDown(t,n){try{if(t.name===n)return{window:t,iframe:t.frameElement};if(t.frames)for(let r=0;r<t.frames.length;r++){const a=t.frames[r],o=a.frameElement;if((o==null?void 0:o.id)===n)return{window:a,iframe:o};const i=go.findDown(a,n);if(i)return i}return null}catch(r){return console.warn("findWindowDown",r),null}}static find(t,n,r="both"){const a=go.findByIframeId(n,t);if(a)return a;if(r==="up"||r==="both"){const o=go.findUp(t,n);if(o)return o}if(r==="down"||r==="both"){const o=go.findDown(t,n);if(o)return o}if(r==="both"){const o=go.findDown(this.findTop(t),n);if(o)return o}return null}static findByIframeId(t,n=window){var a;const r=(a=n==null?void 0:n.document)==null?void 0:a.getElementById(t);return r?{window:r==null?void 0:r.contentWindow,iframe:r}:null}static findTop(t=window){try{let n=t;for(;n!==n.parent;)n=n.parent;return n}catch{return t}}}const wg=(e,t)=>e?(e.postMessage(Zr(t),"*"),!0):!1,tQ=(e,t)=>{const n=go.find(window,e);if(n)return wg(n.window,t)},nQ=(e,t)=>wg(e==null?void 0:e.contentWindow,t),rQ=e=>wg(window.parent,e),iQ=(e,t=!1)=>{const n=r=>{e==null||e(r),t&&window.removeEventListener("message",n)};window.addEventListener("message",n)};function r5(){return{send:wg,receive:iQ,sendToIframe:nQ,sendToIframeByName:tQ,sendToParent:rQ}}var Np={},aQ={get exports(){return Np},set exports(e){Np=e}};(function(e,t){(function(){var n,r=0xdeadbeefcafe,a=(r&16777215)==15715070;function o(Ee,Pe,je){Ee!=null&&(typeof Ee=="number"?this.fromNumber(Ee,Pe,je):Pe==null&&typeof Ee!="string"?this.fromString(Ee,256):this.fromString(Ee,Pe))}function i(){return new o(null)}function u(Ee,Pe,je,tt,Tt,Lt){for(;--Lt>=0;){var sn=Pe*this[Ee++]+je[tt]+Tt;Tt=Math.floor(sn/67108864),je[tt++]=sn&67108863}return Tt}function s(Ee,Pe,je,tt,Tt,Lt){for(var sn=Pe&32767,fn=Pe>>15;--Lt>=0;){var Vr=this[Ee]&32767,li=this[Ee++]>>15,Ea=fn*Vr+li*sn;Vr=sn*Vr+((Ea&32767)<<15)+je[tt]+(Tt&1073741823),Tt=(Vr>>>30)+(Ea>>>15)+fn*li+(Tt>>>30),je[tt++]=Vr&1073741823}return Tt}function l(Ee,Pe,je,tt,Tt,Lt){for(var sn=Pe&16383,fn=Pe>>14;--Lt>=0;){var Vr=this[Ee]&16383,li=this[Ee++]>>14,Ea=fn*Vr+li*sn;Vr=sn*Vr+((Ea&16383)<<14)+je[tt]+Tt,Tt=(Vr>>28)+(Ea>>14)+fn*li,je[tt++]=Vr&268435455}return Tt}var c=typeof navigator<"u";c&&a&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=s,n=30):c&&a&&navigator.appName!="Netscape"?(o.prototype.am=u,n=26):(o.prototype.am=l,n=28),o.prototype.DB=n,o.prototype.DM=(1<<n)-1,o.prototype.DV=1<<n;var f=52;o.prototype.FV=Math.pow(2,f),o.prototype.F1=f-n,o.prototype.F2=2*n-f;var h="0123456789abcdefghijklmnopqrstuvwxyz",d=new Array,v,m;for(v="0".charCodeAt(0),m=0;m<=9;++m)d[v++]=m;for(v="a".charCodeAt(0),m=10;m<36;++m)d[v++]=m;for(v="A".charCodeAt(0),m=10;m<36;++m)d[v++]=m;function p(Ee){return h.charAt(Ee)}function g(Ee,Pe){var je=d[Ee.charCodeAt(Pe)];return je??-1}function y(Ee){for(var Pe=this.t-1;Pe>=0;--Pe)Ee[Pe]=this[Pe];Ee.t=this.t,Ee.s=this.s}function b(Ee){this.t=1,this.s=Ee<0?-1:0,Ee>0?this[0]=Ee:Ee<-1?this[0]=Ee+this.DV:this.t=0}function _(Ee){var Pe=i();return Pe.fromInt(Ee),Pe}function E(Ee,Pe){var je;if(Pe==16)je=4;else if(Pe==8)je=3;else if(Pe==256)je=8;else if(Pe==2)je=1;else if(Pe==32)je=5;else if(Pe==4)je=2;else{this.fromRadix(Ee,Pe);return}this.t=0,this.s=0;for(var tt=Ee.length,Tt=!1,Lt=0;--tt>=0;){var sn=je==8?Ee[tt]&255:g(Ee,tt);if(sn<0){Ee.charAt(tt)=="-"&&(Tt=!0);continue}Tt=!1,Lt==0?this[this.t++]=sn:Lt+je>this.DB?(this[this.t-1]|=(sn&(1<<this.DB-Lt)-1)<<Lt,this[this.t++]=sn>>this.DB-Lt):this[this.t-1]|=sn<<Lt,Lt+=je,Lt>=this.DB&&(Lt-=this.DB)}je==8&&Ee[0]&128&&(this.s=-1,Lt>0&&(this[this.t-1]|=(1<<this.DB-Lt)-1<<Lt)),this.clamp(),Tt&&o.ZERO.subTo(this,this)}function w(){for(var Ee=this.s&this.DM;this.t>0&&this[this.t-1]==Ee;)--this.t}function S(Ee){if(this.s<0)return"-"+this.negate().toString(Ee);var Pe;if(Ee==16)Pe=4;else if(Ee==8)Pe=3;else if(Ee==2)Pe=1;else if(Ee==32)Pe=5;else if(Ee==4)Pe=2;else return this.toRadix(Ee);var je=(1<<Pe)-1,tt,Tt=!1,Lt="",sn=this.t,fn=this.DB-sn*this.DB%Pe;if(sn-- >0)for(fn<this.DB&&(tt=this[sn]>>fn)>0&&(Tt=!0,Lt=p(tt));sn>=0;)fn<Pe?(tt=(this[sn]&(1<<fn)-1)<<Pe-fn,tt|=this[--sn]>>(fn+=this.DB-Pe)):(tt=this[sn]>>(fn-=Pe)&je,fn<=0&&(fn+=this.DB,--sn)),tt>0&&(Tt=!0),Tt&&(Lt+=p(tt));return Tt?Lt:"0"}function A(){var Ee=i();return o.ZERO.subTo(this,Ee),Ee}function P(){return this.s<0?this.negate():this}function C(Ee){var Pe=this.s-Ee.s;if(Pe!=0)return Pe;var je=this.t;if(Pe=je-Ee.t,Pe!=0)return this.s<0?-Pe:Pe;for(;--je>=0;)if((Pe=this[je]-Ee[je])!=0)return Pe;return 0}function D(Ee){var Pe=1,je;return(je=Ee>>>16)!=0&&(Ee=je,Pe+=16),(je=Ee>>8)!=0&&(Ee=je,Pe+=8),(je=Ee>>4)!=0&&(Ee=je,Pe+=4),(je=Ee>>2)!=0&&(Ee=je,Pe+=2),(je=Ee>>1)!=0&&(Ee=je,Pe+=1),Pe}function O(){return this.t<=0?0:this.DB*(this.t-1)+D(this[this.t-1]^this.s&this.DM)}function k(Ee,Pe){var je;for(je=this.t-1;je>=0;--je)Pe[je+Ee]=this[je];for(je=Ee-1;je>=0;--je)Pe[je]=0;Pe.t=this.t+Ee,Pe.s=this.s}function I(Ee,Pe){for(var je=Ee;je<this.t;++je)Pe[je-Ee]=this[je];Pe.t=Math.max(this.t-Ee,0),Pe.s=this.s}function N(Ee,Pe){var je=Ee%this.DB,tt=this.DB-je,Tt=(1<<tt)-1,Lt=Math.floor(Ee/this.DB),sn=this.s<<je&this.DM,fn;for(fn=this.t-1;fn>=0;--fn)Pe[fn+Lt+1]=this[fn]>>tt|sn,sn=(this[fn]&Tt)<<je;for(fn=Lt-1;fn>=0;--fn)Pe[fn]=0;Pe[Lt]=sn,Pe.t=this.t+Lt+1,Pe.s=this.s,Pe.clamp()}function F(Ee,Pe){Pe.s=this.s;var je=Math.floor(Ee/this.DB);if(je>=this.t){Pe.t=0;return}var tt=Ee%this.DB,Tt=this.DB-tt,Lt=(1<<tt)-1;Pe[0]=this[je]>>tt;for(var sn=je+1;sn<this.t;++sn)Pe[sn-je-1]|=(this[sn]&Lt)<<Tt,Pe[sn-je]=this[sn]>>tt;tt>0&&(Pe[this.t-je-1]|=(this.s&Lt)<<Tt),Pe.t=this.t-je,Pe.clamp()}function R(Ee,Pe){for(var je=0,tt=0,Tt=Math.min(Ee.t,this.t);je<Tt;)tt+=this[je]-Ee[je],Pe[je++]=tt&this.DM,tt>>=this.DB;if(Ee.t<this.t){for(tt-=Ee.s;je<this.t;)tt+=this[je],Pe[je++]=tt&this.DM,tt>>=this.DB;tt+=this.s}else{for(tt+=this.s;je<Ee.t;)tt-=Ee[je],Pe[je++]=tt&this.DM,tt>>=this.DB;tt-=Ee.s}Pe.s=tt<0?-1:0,tt<-1?Pe[je++]=this.DV+tt:tt>0&&(Pe[je++]=tt),Pe.t=je,Pe.clamp()}function M(Ee,Pe){var je=this.abs(),tt=Ee.abs(),Tt=je.t;for(Pe.t=Tt+tt.t;--Tt>=0;)Pe[Tt]=0;for(Tt=0;Tt<tt.t;++Tt)Pe[Tt+je.t]=je.am(0,tt[Tt],Pe,Tt,0,je.t);Pe.s=0,Pe.clamp(),this.s!=Ee.s&&o.ZERO.subTo(Pe,Pe)}function j(Ee){for(var Pe=this.abs(),je=Ee.t=2*Pe.t;--je>=0;)Ee[je]=0;for(je=0;je<Pe.t-1;++je){var tt=Pe.am(je,Pe[je],Ee,2*je,0,1);(Ee[je+Pe.t]+=Pe.am(je+1,2*Pe[je],Ee,2*je+1,tt,Pe.t-je-1))>=Pe.DV&&(Ee[je+Pe.t]-=Pe.DV,Ee[je+Pe.t+1]=1)}Ee.t>0&&(Ee[Ee.t-1]+=Pe.am(je,Pe[je],Ee,2*je,0,1)),Ee.s=0,Ee.clamp()}function W(Ee,Pe,je){var tt=Ee.abs();if(!(tt.t<=0)){var Tt=this.abs();if(Tt.t<tt.t){Pe!=null&&Pe.fromInt(0),je!=null&&this.copyTo(je);return}je==null&&(je=i());var Lt=i(),sn=this.s,fn=Ee.s,Vr=this.DB-D(tt[tt.t-1]);Vr>0?(tt.lShiftTo(Vr,Lt),Tt.lShiftTo(Vr,je)):(tt.copyTo(Lt),Tt.copyTo(je));var li=Lt.t,Ea=Lt[li-1];if(Ea!=0){var $i=Ea*(1<<this.F1)+(li>1?Lt[li-2]>>this.F2:0),Sn=this.FV/$i,Cn=(1<<this.F1)/$i,Bi=1<<this.F2,bi=je.t,du=bi-li,ea=Pe??i();for(Lt.dlShiftTo(du,ea),je.compareTo(ea)>=0&&(je[je.t++]=1,je.subTo(ea,je)),o.ONE.dlShiftTo(li,ea),ea.subTo(Lt,Lt);Lt.t<li;)Lt[Lt.t++]=0;for(;--du>=0;){var Pc=je[--bi]==Ea?this.DM:Math.floor(je[bi]*Sn+(je[bi-1]+Bi)*Cn);if((je[bi]+=Lt.am(0,Pc,je,du,0,li))<Pc)for(Lt.dlShiftTo(du,ea),je.subTo(ea,je);je[bi]<--Pc;)je.subTo(ea,je)}Pe!=null&&(je.drShiftTo(li,Pe),sn!=fn&&o.ZERO.subTo(Pe,Pe)),je.t=li,je.clamp(),Vr>0&&je.rShiftTo(Vr,je),sn<0&&o.ZERO.subTo(je,je)}}}function L(Ee){var Pe=i();return this.abs().divRemTo(Ee,null,Pe),this.s<0&&Pe.compareTo(o.ZERO)>0&&Ee.subTo(Pe,Pe),Pe}function z(Ee){this.m=Ee}function G(Ee){return Ee.s<0||Ee.compareTo(this.m)>=0?Ee.mod(this.m):Ee}function Y(Ee){return Ee}function J(Ee){Ee.divRemTo(this.m,null,Ee)}function q(Ee,Pe,je){Ee.multiplyTo(Pe,je),this.reduce(je)}function le(Ee,Pe){Ee.squareTo(Pe),this.reduce(Pe)}z.prototype.convert=G,z.prototype.revert=Y,z.prototype.reduce=J,z.prototype.mulTo=q,z.prototype.sqrTo=le;function re(){if(this.t<1)return 0;var Ee=this[0];if(!(Ee&1))return 0;var Pe=Ee&3;return Pe=Pe*(2-(Ee&15)*Pe)&15,Pe=Pe*(2-(Ee&255)*Pe)&255,Pe=Pe*(2-((Ee&65535)*Pe&65535))&65535,Pe=Pe*(2-Ee*Pe%this.DV)%this.DV,Pe>0?this.DV-Pe:-Pe}function ie(Ee){this.m=Ee,this.mp=Ee.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<Ee.DB-15)-1,this.mt2=2*Ee.t}function ue(Ee){var Pe=i();return Ee.abs().dlShiftTo(this.m.t,Pe),Pe.divRemTo(this.m,null,Pe),Ee.s<0&&Pe.compareTo(o.ZERO)>0&&this.m.subTo(Pe,Pe),Pe}function ve(Ee){var Pe=i();return Ee.copyTo(Pe),this.reduce(Pe),Pe}function K(Ee){for(;Ee.t<=this.mt2;)Ee[Ee.t++]=0;for(var Pe=0;Pe<this.m.t;++Pe){var je=Ee[Pe]&32767,tt=je*this.mpl+((je*this.mph+(Ee[Pe]>>15)*this.mpl&this.um)<<15)&Ee.DM;for(je=Pe+this.m.t,Ee[je]+=this.m.am(0,tt,Ee,Pe,0,this.m.t);Ee[je]>=Ee.DV;)Ee[je]-=Ee.DV,Ee[++je]++}Ee.clamp(),Ee.drShiftTo(this.m.t,Ee),Ee.compareTo(this.m)>=0&&Ee.subTo(this.m,Ee)}function Z(Ee,Pe){Ee.squareTo(Pe),this.reduce(Pe)}function te(Ee,Pe,je){Ee.multiplyTo(Pe,je),this.reduce(je)}ie.prototype.convert=ue,ie.prototype.revert=ve,ie.prototype.reduce=K,ie.prototype.mulTo=te,ie.prototype.sqrTo=Z;function ce(){return(this.t>0?this[0]&1:this.s)==0}function pe(Ee,Pe){if(Ee>4294967295||Ee<1)return o.ONE;var je=i(),tt=i(),Tt=Pe.convert(this),Lt=D(Ee)-1;for(Tt.copyTo(je);--Lt>=0;)if(Pe.sqrTo(je,tt),(Ee&1<<Lt)>0)Pe.mulTo(tt,Tt,je);else{var sn=je;je=tt,tt=sn}return Pe.revert(je)}function de(Ee,Pe){var je;return Ee<256||Pe.isEven()?je=new z(Pe):je=new ie(Pe),this.exp(Ee,je)}o.prototype.copyTo=y,o.prototype.fromInt=b,o.prototype.fromString=E,o.prototype.clamp=w,o.prototype.dlShiftTo=k,o.prototype.drShiftTo=I,o.prototype.lShiftTo=N,o.prototype.rShiftTo=F,o.prototype.subTo=R,o.prototype.multiplyTo=M,o.prototype.squareTo=j,o.prototype.divRemTo=W,o.prototype.invDigit=re,o.prototype.isEven=ce,o.prototype.exp=pe,o.prototype.toString=S,o.prototype.negate=A,o.prototype.abs=P,o.prototype.compareTo=C,o.prototype.bitLength=O,o.prototype.mod=L,o.prototype.modPowInt=de,o.ZERO=_(0),o.ONE=_(1);function fe(){var Ee=i();return this.copyTo(Ee),Ee}function we(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function ke(){return this.t==0?this.s:this[0]<<24>>24}function ge(){return this.t==0?this.s:this[0]<<16>>16}function Ae(Ee){return Math.floor(Math.LN2*this.DB/Math.log(Ee))}function X(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Q(Ee){if(Ee==null&&(Ee=10),this.signum()==0||Ee<2||Ee>36)return"0";var Pe=this.chunkSize(Ee),je=Math.pow(Ee,Pe),tt=_(je),Tt=i(),Lt=i(),sn="";for(this.divRemTo(tt,Tt,Lt);Tt.signum()>0;)sn=(je+Lt.intValue()).toString(Ee).substr(1)+sn,Tt.divRemTo(tt,Tt,Lt);return Lt.intValue().toString(Ee)+sn}function ee(Ee,Pe){this.fromInt(0),Pe==null&&(Pe=10);for(var je=this.chunkSize(Pe),tt=Math.pow(Pe,je),Tt=!1,Lt=0,sn=0,fn=0;fn<Ee.length;++fn){var Vr=g(Ee,fn);if(Vr<0){Ee.charAt(fn)=="-"&&this.signum()==0&&(Tt=!0);continue}sn=Pe*sn+Vr,++Lt>=je&&(this.dMultiply(tt),this.dAddOffset(sn,0),Lt=0,sn=0)}Lt>0&&(this.dMultiply(Math.pow(Pe,Lt)),this.dAddOffset(sn,0)),Tt&&o.ZERO.subTo(this,this)}function me(Ee,Pe,je){if(typeof Pe=="number")if(Ee<2)this.fromInt(1);else for(this.fromNumber(Ee,je),this.testBit(Ee-1)||this.bitwiseTo(o.ONE.shiftLeft(Ee-1),at,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(Pe);)this.dAddOffset(2,0),this.bitLength()>Ee&&this.subTo(o.ONE.shiftLeft(Ee-1),this);else{var tt=new Array,Tt=Ee&7;tt.length=(Ee>>3)+1,Pe.nextBytes(tt),Tt>0?tt[0]&=(1<<Tt)-1:tt[0]=0,this.fromString(tt,256)}}function Be(){var Ee=this.t,Pe=new Array;Pe[0]=this.s;var je=this.DB-Ee*this.DB%8,tt,Tt=0;if(Ee-- >0)for(je<this.DB&&(tt=this[Ee]>>je)!=(this.s&this.DM)>>je&&(Pe[Tt++]=tt|this.s<<this.DB-je);Ee>=0;)je<8?(tt=(this[Ee]&(1<<je)-1)<<8-je,tt|=this[--Ee]>>(je+=this.DB-8)):(tt=this[Ee]>>(je-=8)&255,je<=0&&(je+=this.DB,--Ee)),tt&128&&(tt|=-256),Tt==0&&(this.s&128)!=(tt&128)&&++Tt,(Tt>0||tt!=this.s)&&(Pe[Tt++]=tt);return Pe}function Ie(Ee){return this.compareTo(Ee)==0}function Fe(Ee){return this.compareTo(Ee)<0?this:Ee}function Ne(Ee){return this.compareTo(Ee)>0?this:Ee}function We(Ee,Pe,je){var tt,Tt,Lt=Math.min(Ee.t,this.t);for(tt=0;tt<Lt;++tt)je[tt]=Pe(this[tt],Ee[tt]);if(Ee.t<this.t){for(Tt=Ee.s&this.DM,tt=Lt;tt<this.t;++tt)je[tt]=Pe(this[tt],Tt);je.t=this.t}else{for(Tt=this.s&this.DM,tt=Lt;tt<Ee.t;++tt)je[tt]=Pe(Tt,Ee[tt]);je.t=Ee.t}je.s=Pe(this.s,Ee.s),je.clamp()}function ze(Ee,Pe){return Ee&Pe}function Ye(Ee){var Pe=i();return this.bitwiseTo(Ee,ze,Pe),Pe}function at(Ee,Pe){return Ee|Pe}function Ft(Ee){var Pe=i();return this.bitwiseTo(Ee,at,Pe),Pe}function xt(Ee,Pe){return Ee^Pe}function Jt(Ee){var Pe=i();return this.bitwiseTo(Ee,xt,Pe),Pe}function Bt(Ee,Pe){return Ee&~Pe}function Pt(Ee){var Pe=i();return this.bitwiseTo(Ee,Bt,Pe),Pe}function pt(){for(var Ee=i(),Pe=0;Pe<this.t;++Pe)Ee[Pe]=this.DM&~this[Pe];return Ee.t=this.t,Ee.s=~this.s,Ee}function kn(Ee){var Pe=i();return Ee<0?this.rShiftTo(-Ee,Pe):this.lShiftTo(Ee,Pe),Pe}function rt(Ee){var Pe=i();return Ee<0?this.lShiftTo(-Ee,Pe):this.rShiftTo(Ee,Pe),Pe}function lt(Ee){if(Ee==0)return-1;var Pe=0;return Ee&65535||(Ee>>=16,Pe+=16),Ee&255||(Ee>>=8,Pe+=8),Ee&15||(Ee>>=4,Pe+=4),Ee&3||(Ee>>=2,Pe+=2),Ee&1||++Pe,Pe}function ne(){for(var Ee=0;Ee<this.t;++Ee)if(this[Ee]!=0)return Ee*this.DB+lt(this[Ee]);return this.s<0?this.t*this.DB:-1}function Oe(Ee){for(var Pe=0;Ee!=0;)Ee&=Ee-1,++Pe;return Pe}function Te(){for(var Ee=0,Pe=this.s&this.DM,je=0;je<this.t;++je)Ee+=Oe(this[je]^Pe);return Ee}function Me(Ee){var Pe=Math.floor(Ee/this.DB);return Pe>=this.t?this.s!=0:(this[Pe]&1<<Ee%this.DB)!=0}function Ue(Ee,Pe){var je=o.ONE.shiftLeft(Ee);return this.bitwiseTo(je,Pe,je),je}function ut(Ee){return this.changeBit(Ee,at)}function Et(Ee){return this.changeBit(Ee,Bt)}function kt(Ee){return this.changeBit(Ee,xt)}function Gt(Ee,Pe){for(var je=0,tt=0,Tt=Math.min(Ee.t,this.t);je<Tt;)tt+=this[je]+Ee[je],Pe[je++]=tt&this.DM,tt>>=this.DB;if(Ee.t<this.t){for(tt+=Ee.s;je<this.t;)tt+=this[je],Pe[je++]=tt&this.DM,tt>>=this.DB;tt+=this.s}else{for(tt+=this.s;je<Ee.t;)tt+=Ee[je],Pe[je++]=tt&this.DM,tt>>=this.DB;tt+=Ee.s}Pe.s=tt<0?-1:0,tt>0?Pe[je++]=tt:tt<-1&&(Pe[je++]=this.DV+tt),Pe.t=je,Pe.clamp()}function Dn(Ee){var Pe=i();return this.addTo(Ee,Pe),Pe}function mr(Ee){var Pe=i();return this.subTo(Ee,Pe),Pe}function si(Ee){var Pe=i();return this.multiplyTo(Ee,Pe),Pe}function jr(){var Ee=i();return this.squareTo(Ee),Ee}function gr(Ee){var Pe=i();return this.divRemTo(Ee,Pe,null),Pe}function sa(Ee){var Pe=i();return this.divRemTo(Ee,null,Pe),Pe}function Or(Ee){var Pe=i(),je=i();return this.divRemTo(Ee,Pe,je),new Array(Pe,je)}function Vi(Ee){this[this.t]=this.am(0,Ee-1,this,0,0,this.t),++this.t,this.clamp()}function vo(Ee,Pe){if(Ee!=0){for(;this.t<=Pe;)this[this.t++]=0;for(this[Pe]+=Ee;this[Pe]>=this.DV;)this[Pe]-=this.DV,++Pe>=this.t&&(this[this.t++]=0),++this[Pe]}}function ei(){}function no(Ee){return Ee}function ko(Ee,Pe,je){Ee.multiplyTo(Pe,je)}function ja(Ee,Pe){Ee.squareTo(Pe)}ei.prototype.convert=no,ei.prototype.revert=no,ei.prototype.mulTo=ko,ei.prototype.sqrTo=ja;function bs(Ee){return this.exp(Ee,new ei)}function ct(Ee,Pe,je){var tt=Math.min(this.t+Ee.t,Pe);for(je.s=0,je.t=tt;tt>0;)je[--tt]=0;var Tt;for(Tt=je.t-this.t;tt<Tt;++tt)je[tt+this.t]=this.am(0,Ee[tt],je,tt,0,this.t);for(Tt=Math.min(Ee.t,Pe);tt<Tt;++tt)this.am(0,Ee[tt],je,tt,0,Pe-tt);je.clamp()}function T(Ee,Pe,je){--Pe;var tt=je.t=this.t+Ee.t-Pe;for(je.s=0;--tt>=0;)je[tt]=0;for(tt=Math.max(Pe-this.t,0);tt<Ee.t;++tt)je[this.t+tt-Pe]=this.am(Pe-tt,Ee[tt],je,0,0,this.t+tt-Pe);je.clamp(),je.drShiftTo(1,je)}function B(Ee){this.r2=i(),this.q3=i(),o.ONE.dlShiftTo(2*Ee.t,this.r2),this.mu=this.r2.divide(Ee),this.m=Ee}function V(Ee){if(Ee.s<0||Ee.t>2*this.m.t)return Ee.mod(this.m);if(Ee.compareTo(this.m)<0)return Ee;var Pe=i();return Ee.copyTo(Pe),this.reduce(Pe),Pe}function H(Ee){return Ee}function $(Ee){for(Ee.drShiftTo(this.m.t-1,this.r2),Ee.t>this.m.t+1&&(Ee.t=this.m.t+1,Ee.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);Ee.compareTo(this.r2)<0;)Ee.dAddOffset(1,this.m.t+1);for(Ee.subTo(this.r2,Ee);Ee.compareTo(this.m)>=0;)Ee.subTo(this.m,Ee)}function he(Ee,Pe){Ee.squareTo(Pe),this.reduce(Pe)}function Ce(Ee,Pe,je){Ee.multiplyTo(Pe,je),this.reduce(je)}B.prototype.convert=V,B.prototype.revert=H,B.prototype.reduce=$,B.prototype.mulTo=Ce,B.prototype.sqrTo=he;function Re(Ee,Pe){var je=Ee.bitLength(),tt,Tt=_(1),Lt;if(je<=0)return Tt;je<18?tt=1:je<48?tt=3:je<144?tt=4:je<768?tt=5:tt=6,je<8?Lt=new z(Pe):Pe.isEven()?Lt=new B(Pe):Lt=new ie(Pe);var sn=new Array,fn=3,Vr=tt-1,li=(1<<tt)-1;if(sn[1]=Lt.convert(this),tt>1){var Ea=i();for(Lt.sqrTo(sn[1],Ea);fn<=li;)sn[fn]=i(),Lt.mulTo(Ea,sn[fn-2],sn[fn]),fn+=2}var $i=Ee.t-1,Sn,Cn=!0,Bi=i(),bi;for(je=D(Ee[$i])-1;$i>=0;){for(je>=Vr?Sn=Ee[$i]>>je-Vr&li:(Sn=(Ee[$i]&(1<<je+1)-1)<<Vr-je,$i>0&&(Sn|=Ee[$i-1]>>this.DB+je-Vr)),fn=tt;!(Sn&1);)Sn>>=1,--fn;if((je-=fn)<0&&(je+=this.DB,--$i),Cn)sn[Sn].copyTo(Tt),Cn=!1;else{for(;fn>1;)Lt.sqrTo(Tt,Bi),Lt.sqrTo(Bi,Tt),fn-=2;fn>0?Lt.sqrTo(Tt,Bi):(bi=Tt,Tt=Bi,Bi=bi),Lt.mulTo(Bi,sn[Sn],Tt)}for(;$i>=0&&!(Ee[$i]&1<<je);)Lt.sqrTo(Tt,Bi),bi=Tt,Tt=Bi,Bi=bi,--je<0&&(je=this.DB-1,--$i)}return Lt.revert(Tt)}function Je(Ee){var Pe=this.s<0?this.negate():this.clone(),je=Ee.s<0?Ee.negate():Ee.clone();if(Pe.compareTo(je)<0){var tt=Pe;Pe=je,je=tt}var Tt=Pe.getLowestSetBit(),Lt=je.getLowestSetBit();if(Lt<0)return Pe;for(Tt<Lt&&(Lt=Tt),Lt>0&&(Pe.rShiftTo(Lt,Pe),je.rShiftTo(Lt,je));Pe.signum()>0;)(Tt=Pe.getLowestSetBit())>0&&Pe.rShiftTo(Tt,Pe),(Tt=je.getLowestSetBit())>0&&je.rShiftTo(Tt,je),Pe.compareTo(je)>=0?(Pe.subTo(je,Pe),Pe.rShiftTo(1,Pe)):(je.subTo(Pe,je),je.rShiftTo(1,je));return Lt>0&&je.lShiftTo(Lt,je),je}function et(Ee){if(Ee<=0)return 0;var Pe=this.DV%Ee,je=this.s<0?Ee-1:0;if(this.t>0)if(Pe==0)je=this[0]%Ee;else for(var tt=this.t-1;tt>=0;--tt)je=(Pe*je+this[tt])%Ee;return je}function gt(Ee){var Pe=Ee.isEven();if(this.isEven()&&Pe||Ee.signum()==0)return o.ZERO;for(var je=Ee.clone(),tt=this.clone(),Tt=_(1),Lt=_(0),sn=_(0),fn=_(1);je.signum()!=0;){for(;je.isEven();)je.rShiftTo(1,je),Pe?((!Tt.isEven()||!Lt.isEven())&&(Tt.addTo(this,Tt),Lt.subTo(Ee,Lt)),Tt.rShiftTo(1,Tt)):Lt.isEven()||Lt.subTo(Ee,Lt),Lt.rShiftTo(1,Lt);for(;tt.isEven();)tt.rShiftTo(1,tt),Pe?((!sn.isEven()||!fn.isEven())&&(sn.addTo(this,sn),fn.subTo(Ee,fn)),sn.rShiftTo(1,sn)):fn.isEven()||fn.subTo(Ee,fn),fn.rShiftTo(1,fn);je.compareTo(tt)>=0?(je.subTo(tt,je),Pe&&Tt.subTo(sn,Tt),Lt.subTo(fn,Lt)):(tt.subTo(je,tt),Pe&&sn.subTo(Tt,sn),fn.subTo(Lt,fn))}if(tt.compareTo(o.ONE)!=0)return o.ZERO;if(fn.compareTo(Ee)>=0)return fn.subtract(Ee);if(fn.signum()<0)fn.addTo(Ee,fn);else return fn;return fn.signum()<0?fn.add(Ee):fn}var dt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Ct=(1<<26)/dt[dt.length-1];function nn(Ee){var Pe,je=this.abs();if(je.t==1&&je[0]<=dt[dt.length-1]){for(Pe=0;Pe<dt.length;++Pe)if(je[0]==dt[Pe])return!0;return!1}if(je.isEven())return!1;for(Pe=1;Pe<dt.length;){for(var tt=dt[Pe],Tt=Pe+1;Tt<dt.length&&tt<Ct;)tt*=dt[Tt++];for(tt=je.modInt(tt);Pe<Tt;)if(tt%dt[Pe++]==0)return!1}return je.millerRabin(Ee)}function dn(Ee){var Pe=this.subtract(o.ONE),je=Pe.getLowestSetBit();if(je<=0)return!1;var tt=Pe.shiftRight(je);Ee=Ee+1>>1,Ee>dt.length&&(Ee=dt.length);for(var Tt=i(),Lt=0;Lt<Ee;++Lt){Tt.fromInt(dt[Math.floor(Math.random()*dt.length)]);var sn=Tt.modPow(tt,this);if(sn.compareTo(o.ONE)!=0&&sn.compareTo(Pe)!=0){for(var fn=1;fn++<je&&sn.compareTo(Pe)!=0;)if(sn=sn.modPowInt(2,this),sn.compareTo(o.ONE)==0)return!1;if(sn.compareTo(Pe)!=0)return!1}}return!0}o.prototype.chunkSize=Ae,o.prototype.toRadix=Q,o.prototype.fromRadix=ee,o.prototype.fromNumber=me,o.prototype.bitwiseTo=We,o.prototype.changeBit=Ue,o.prototype.addTo=Gt,o.prototype.dMultiply=Vi,o.prototype.dAddOffset=vo,o.prototype.multiplyLowerTo=ct,o.prototype.multiplyUpperTo=T,o.prototype.modInt=et,o.prototype.millerRabin=dn,o.prototype.clone=fe,o.prototype.intValue=we,o.prototype.byteValue=ke,o.prototype.shortValue=ge,o.prototype.signum=X,o.prototype.toByteArray=Be,o.prototype.equals=Ie,o.prototype.min=Fe,o.prototype.max=Ne,o.prototype.and=Ye,o.prototype.or=Ft,o.prototype.xor=Jt,o.prototype.andNot=Pt,o.prototype.not=pt,o.prototype.shiftLeft=kn,o.prototype.shiftRight=rt,o.prototype.getLowestSetBit=ne,o.prototype.bitCount=Te,o.prototype.testBit=Me,o.prototype.setBit=ut,o.prototype.clearBit=Et,o.prototype.flipBit=kt,o.prototype.add=Dn,o.prototype.subtract=mr,o.prototype.multiply=si,o.prototype.divide=gr,o.prototype.remainder=sa,o.prototype.divideAndRemainder=Or,o.prototype.modPow=Re,o.prototype.modInverse=gt,o.prototype.pow=bs,o.prototype.gcd=Je,o.prototype.isProbablePrime=nn,o.prototype.square=jr,o.prototype.Barrett=B;var Wt,Yt,bn;function Hn(Ee){Yt[bn++]^=Ee&255,Yt[bn++]^=Ee>>8&255,Yt[bn++]^=Ee>>16&255,Yt[bn++]^=Ee>>24&255,bn>=Dt&&(bn-=Dt)}function yr(){Hn(new Date().getTime())}if(Yt==null){Yt=new Array,bn=0;var _r;if(typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var ti=new Uint8Array(32);for(window.crypto.getRandomValues(ti),_r=0;_r<32;++_r)Yt[bn++]=ti[_r]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ht=window.crypto.random(32);for(_r=0;_r<ht.length;++_r)Yt[bn++]=ht.charCodeAt(_r)&255}}for(;bn<Dt;)_r=Math.floor(65536*Math.random()),Yt[bn++]=_r>>>8,Yt[bn++]=_r&255;bn=0,yr()}function rn(){if(Wt==null){for(yr(),Wt=_t(),Wt.init(Yt),bn=0;bn<Yt.length;++bn)Yt[bn]=0;bn=0}return Wt.next()}function cn(Ee){var Pe;for(Pe=0;Pe<Ee.length;++Pe)Ee[Pe]=rn()}function oe(){}oe.prototype.nextBytes=cn;function be(){this.i=0,this.j=0,this.S=new Array}function Ve(Ee){var Pe,je,tt;for(Pe=0;Pe<256;++Pe)this.S[Pe]=Pe;for(je=0,Pe=0;Pe<256;++Pe)je=je+this.S[Pe]+Ee[Pe%Ee.length]&255,tt=this.S[Pe],this.S[Pe]=this.S[je],this.S[je]=tt;this.i=0,this.j=0}function qe(){var Ee;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,Ee=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=Ee,this.S[Ee+this.S[this.i]&255]}be.prototype.init=Ve,be.prototype.next=qe;function _t(){return new be}var Dt=256;e.exports={default:o,BigInteger:o,SecureRandom:oe}}).call(Zn)})(aQ);const{BigInteger:Fp}=Np;function oQ(e){let t=e.toString(16);if(t[0]!=="-")t.length%2===1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{t=t.substr(1);let n=t.length;n%2===1?n+=1:t.match(/^[0-7]/)||(n+=2);let r="";for(let a=0;a<n;a++)r+="f";r=new Fp(r,16),t=r.xor(e).add(Fp.ONE),t=t.toString(16).replace(/^-/,"")}return t}class i5{constructor(){this.tlv=null,this.t="00",this.l="00",this.v=""}getEncodedHex(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}getLength(){const t=this.v.length/2;let n=t.toString(16);return n.length%2===1&&(n="0"+n),t<128?n:(128+n.length/2).toString(16)+n}getValue(){return""}}class a5 extends i5{constructor(t){super(),this.t="02",t&&(this.v=oQ(t))}getValue(){return this.v}}class sQ extends i5{constructor(t){super(),this.t="30",this.asn1Array=t}getValue(){return this.v=this.asn1Array.map(t=>t.getEncodedHex()).join(""),this.v}}function o5(e,t){return+e[t+2]<8?1:+e.substr(t+2,2)&127+1}function s5(e,t){const n=o5(e,t),r=e.substr(t+2,n*2);return r?(+r[0]<8?new Fp(r,16):new Fp(r.substr(2),16)).intValue():-1}function Mx(e,t){const n=o5(e,t);return t+(n+1)*2}var lQ={encodeDer(e,t){const n=new a5(e),r=new a5(t);return new sQ([n,r]).getEncodedHex()},decodeDer(e){const t=Mx(e,0),n=Mx(e,t),r=s5(e,t),a=e.substr(n,r*2),o=n+a.length,i=Mx(e,o),u=s5(e,o),s=e.substr(i,u*2),l=new Fp(a,16),c=new Fp(s,16);return{r:l,s:c}}};const{BigInteger:za}=Np,l5=new za("2"),u5=new za("3");class Su{constructor(t,n){this.x=n,this.q=t}equals(t){return t===this?!0:this.q.equals(t.q)&&this.x.equals(t.x)}toBigInteger(){return this.x}negate(){return new Su(this.q,this.x.negate().mod(this.q))}add(t){return new Su(this.q,this.x.add(t.toBigInteger()).mod(this.q))}subtract(t){return new Su(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))}multiply(t){return new Su(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))}divide(t){return new Su(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new Su(this.q,this.x.square().mod(this.q))}}class Cu{constructor(t,n,r,a){this.curve=t,this.x=n,this.y=r,this.z=a??za.ONE,this.zinv=null}getX(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}getY(){return this.zinv===null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}equals(t){return t===this?!0:this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(za.ZERO)?t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(za.ZERO):!1}isInfinity(){return this.x===null&&this.y===null?!0:this.z.equals(za.ZERO)&&!this.y.toBigInteger().equals(za.ZERO)}negate(){return new Cu(this.curve,this.x,this.y.negate(),this.z)}add(t){if(this.isInfinity())return t;if(t.isInfinity())return this;const n=this.x.toBigInteger(),r=this.y.toBigInteger(),a=this.z,o=t.x.toBigInteger(),i=t.y.toBigInteger(),u=t.z,s=this.curve.q,l=n.multiply(u).mod(s),c=o.multiply(a).mod(s),f=l.subtract(c),h=r.multiply(u).mod(s),d=i.multiply(a).mod(s),v=h.subtract(d);if(za.ZERO.equals(f))return za.ZERO.equals(v)?this.twice():this.curve.infinity;const m=l.add(c),p=a.multiply(u).mod(s),g=f.square().mod(s),y=f.multiply(g).mod(s),b=p.multiply(v.square()).subtract(m.multiply(g)).mod(s),_=f.multiply(b).mod(s),E=v.multiply(g.multiply(l).subtract(b)).subtract(h.multiply(y)).mod(s),w=y.multiply(p).mod(s);return new Cu(this.curve,this.curve.fromBigInteger(_),this.curve.fromBigInteger(E),w)}twice(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;const t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=this.z,a=this.curve.q,o=this.curve.a.toBigInteger(),i=t.square().multiply(u5).add(o.multiply(r.square())).mod(a),u=n.shiftLeft(1).multiply(r).mod(a),s=n.square().mod(a),l=s.multiply(t).multiply(r).mod(a),c=u.square().mod(a),f=i.square().subtract(l.shiftLeft(3)).mod(a),h=u.multiply(f).mod(a),d=i.multiply(l.shiftLeft(2).subtract(f)).subtract(c.shiftLeft(1).multiply(s)).mod(a),v=u.multiply(c).mod(a);return new Cu(this.curve,this.curve.fromBigInteger(h),this.curve.fromBigInteger(d),v)}multiply(t){if(this.isInfinity())return this;if(!t.signum())return this.curve.infinity;const n=t.multiply(u5),r=this.negate();let a=this;for(let o=n.bitLength()-2;o>0;o--){a=a.twice();const i=n.testBit(o),u=t.testBit(o);i!==u&&(a=a.add(i?this:r))}return a}}var uQ={ECPointFp:Cu,ECCurveFp:class{constructor(t,n,r){this.q=t,this.a=this.fromBigInteger(n),this.b=this.fromBigInteger(r),this.infinity=new Cu(this,null,null)}equals(t){return t===this?!0:this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)}fromBigInteger(t){return new Su(this.q,t)}decodePointHex(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:const n=this.fromBigInteger(new za(t.substr(2),16));let r=this.fromBigInteger(n.multiply(n.square()).add(n.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new za("4")).add(za.ONE),this.q));return r.toBigInteger().mod(l5).equals(new za(t.substr(0,2),16).subtract(l5))||(r=r.negate()),new Cu(this,n,r);case 4:case 6:case 7:const a=(t.length-2)/2,o=t.substr(2,a),i=t.substr(a+2,a);return new Cu(this,this.fromBigInteger(new za(o,16)),this.fromBigInteger(new za(i,16)));default:return null}}}};const{BigInteger:As,SecureRandom:cQ}=Np,{ECCurveFp:fQ}=uQ,pQ=new cQ,{curve:Mp,G:hQ,n:c5}=f5();function dQ(){return Mp}function f5(){const e=new As("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),t=new As("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),n=new As("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),r=new fQ(e,t,n),a="32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7",o="BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0",i=r.decodePointHex("04"+a+o),u=new As("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16);return{curve:r,G:i,n:u}}function vQ(e,t,n){const a=(e?new As(e,t,n):new As(c5.bitLength(),pQ)).mod(c5.subtract(As.ONE)).add(As.ONE),o=Vd(a.toString(16),64),i=hQ.multiply(a),u=Vd(i.getX().toBigInteger().toString(16),64),s=Vd(i.getY().toBigInteger().toString(16),64),l="04"+u+s;return{privateKey:o,publicKey:l}}function mQ(e){if(e.length!==130)throw new Error("Invalid public key to compress");const t=(e.length-2)/2,n=e.substr(2,t),r=new As(e.substr(t+2,t),16);let a="03";return r.mod(new As("2")).equals(As.ZERO)&&(a="02"),a+n}function gQ(e){e=unescape(encodeURIComponent(e));const t=e.length,n=[];for(let a=0;a<t;a++)n[a>>>2]|=(e.charCodeAt(a)&255)<<24-a%4*8;const r=[];for(let a=0;a<t;a++){const o=n[a>>>2]>>>24-a%4*8&255;r.push((o>>>4).toString(16)),r.push((o&15).toString(16))}return r.join("")}function Vd(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function yQ(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function _Q(e){const t=[];let n=0;for(let r=0;r<e.length*2;r+=2)t[r>>>3]|=parseInt(e[n],10)<<24-r%8*4,n++;try{const r=[];for(let a=0;a<e.length;a++){const o=t[a>>>2]>>>24-a%4*8&255;r.push(String.fromCharCode(o))}return decodeURIComponent(escape(r.join("")))}catch{throw new Error("Malformed UTF-8 data")}}function bQ(e){const t=[];let n=e.length;n%2!==0&&(e=Vd(e,n+1)),n=e.length;for(let r=0;r<n;r+=2)t.push(parseInt(e.substr(r,2),16));return t}function xQ(e){const t=Mp.decodePointHex(e);if(!t)return!1;const n=t.getX();return t.getY().square().equals(n.multiply(n.square()).add(n.multiply(Mp.a)).add(Mp.b))}function EQ(e,t){const n=Mp.decodePointHex(e);if(!n)return!1;const r=Mp.decodePointHex(t);return r?n.equals(r):!1}var wQ={getGlobalCurve:dQ,generateEcparam:f5,generateKeyPairHex:vQ,compressPublicKeyHex:mQ,utf8ToHex:gQ,leftPad:Vd,arrayToHex:yQ,arrayToUtf8:_Q,hexToArray:bQ,verifyPublicKey:xQ,comparePublicKeyHex:EQ};const Ts=new Uint32Array(68),Lx=new Uint32Array(64);function Lo(e,t){const n=t&31;return e<<n|e>>>32-n}function p5(e,t){const n=[];for(let r=e.length-1;r>=0;r--)n[r]=(e[r]^t[r])&255;return n}function SQ(e){return e^Lo(e,9)^Lo(e,17)}function CQ(e){return e^Lo(e,15)^Lo(e,23)}function Sg(e){let t=e.length*8,n=t%512;n=n>=448?512-n%448-1:448-n-1;const r=new Array((n-7)/8),a=new Array(8);for(let c=0,f=r.length;c<f;c++)r[c]=0;for(let c=0,f=a.length;c<f;c++)a[c]=0;t=t.toString(2);for(let c=7;c>=0;c--)if(t.length>8){const f=t.length-8;a[c]=parseInt(t.substr(f),2),t=t.substr(0,f)}else t.length>0&&(a[c]=parseInt(t,2),t="");const o=new Uint8Array([...e,128,...r,...a]),i=new DataView(o.buffer,0),u=o.length/64,s=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]);for(let c=0;c<u;c++){Ts.fill(0),Lx.fill(0);const f=16*c;for(let D=0;D<16;D++)Ts[D]=i.getUint32((f+D)*4,!1);for(let D=16;D<68;D++)Ts[D]=CQ(Ts[D-16]^Ts[D-9]^Lo(Ts[D-3],15))^Lo(Ts[D-13],7)^Ts[D-6];for(let D=0;D<64;D++)Lx[D]=Ts[D]^Ts[D+4];const h=2043430169,d=2055708042;let v=s[0],m=s[1],p=s[2],g=s[3],y=s[4],b=s[5],_=s[6],E=s[7],w,S,A,P,C;for(let D=0;D<64;D++)C=D>=0&&D<=15?h:d,w=Lo(Lo(v,12)+y+Lo(C,D),7),S=w^Lo(v,12),A=(D>=0&&D<=15?v^m^p:v&m|v&p|m&p)+g+S+Lx[D],P=(D>=0&&D<=15?y^b^_:y&b|~y&_)+E+w+Ts[D],g=p,p=Lo(m,9),m=v,v=A,E=_,_=Lo(b,19),b=y,y=SQ(P);s[0]^=v,s[1]^=m,s[2]^=p,s[3]^=g,s[4]^=y,s[5]^=b,s[6]^=_,s[7]^=E}const l=[];for(let c=0,f=s.length;c<f;c++){const h=s[c];l.push((h&4278190080)>>>24,(h&16711680)>>>16,(h&65280)>>>8,h&255)}return l}const zd=64,h5=new Uint8Array(zd),d5=new Uint8Array(zd);for(let e=0;e<zd;e++)h5[e]=54,d5[e]=92;function AQ(e,t){for(t.length>zd&&(t=Sg(t));t.length<zd;)t.push(0);const n=p5(t,h5),r=p5(t,d5),a=Sg([...n,...e]);return Sg([...r,...a])}var v5={sm3:Sg,hmac:AQ};const{BigInteger:yo}=Np,{encodeDer:TQ,decodeDer:DQ}=lQ,ir=wQ,Lp=v5.sm3,{G:Hc,curve:m5,n:Rp}=ir.generateEcparam(),g5=0;function PQ(e,t,n=1){e=typeof e=="string"?ir.hexToArray(ir.utf8ToHex(e)):Array.prototype.slice.call(e),t=ir.getGlobalCurve().decodePointHex(t);const r=ir.generateKeyPairHex(),a=new yo(r.privateKey,16);let o=r.publicKey;o.length>128&&(o=o.substr(o.length-128));const i=t.multiply(a),u=ir.hexToArray(ir.leftPad(i.getX().toBigInteger().toRadix(16),64)),s=ir.hexToArray(ir.leftPad(i.getY().toBigInteger().toRadix(16),64)),l=ir.arrayToHex(Lp([].concat(u,e,s)));let c=1,f=0,h=[];const d=[].concat(u,s),v=()=>{h=Lp([...d,c>>24&255,c>>16&255,c>>8&255,c&255]),c++,f=0};v();for(let p=0,g=e.length;p<g;p++)f===h.length&&v(),e[p]^=h[f++]&255;const m=ir.arrayToHex(e);return n===g5?o+m+l:o+l+m}function OQ(e,t,n=1,{output:r="string"}={}){t=new yo(t,16);let a=e.substr(128,64),o=e.substr(128+64);n===g5&&(a=e.substr(e.length-64),o=e.substr(128,e.length-128-64));const i=ir.hexToArray(o),s=ir.getGlobalCurve().decodePointHex("04"+e.substr(0,128)).multiply(t),l=ir.hexToArray(ir.leftPad(s.getX().toBigInteger().toRadix(16),64)),c=ir.hexToArray(ir.leftPad(s.getY().toBigInteger().toRadix(16),64));let f=1,h=0,d=[];const v=[].concat(l,c),m=()=>{d=Lp([...v,f>>24&255,f>>16&255,f>>8&255,f&255]),f++,h=0};m();for(let g=0,y=i.length;g<y;g++)h===d.length&&m(),i[g]^=d[h++]&255;return ir.arrayToHex(Lp([].concat(l,i,c)))===a.toLowerCase()?r==="array"?i:ir.arrayToUtf8(i):r==="array"?[]:""}function kQ(e,t,{pointPool:n,der:r,hash:a,publicKey:o,userId:i}={}){let u=typeof e=="string"?ir.utf8ToHex(e):ir.arrayToHex(e);a&&(o=o||_5(t),u=y5(u,o,i));const s=new yo(t,16),l=new yo(u,16);let c=null,f=null,h=null;do{do{let d;n&&n.length?d=n.pop():d=b5(),c=d.k,f=l.add(d.x1).mod(Rp)}while(f.equals(yo.ZERO)||f.add(c).equals(Rp));h=s.add(yo.ONE).modInverse(Rp).multiply(c.subtract(f.multiply(s))).mod(Rp)}while(h.equals(yo.ZERO));return r?TQ(f,h):ir.leftPad(f.toString(16),64)+ir.leftPad(h.toString(16),64)}function BQ(e,t,n,{der:r,hash:a,userId:o}={}){let i=typeof e=="string"?ir.utf8ToHex(e):ir.arrayToHex(e);a&&(i=y5(i,n,o));let u,s;if(r){const v=DQ(t);u=v.r,s=v.s}else u=new yo(t.substring(0,64),16),s=new yo(t.substring(64),16);const l=m5.decodePointHex(n),c=new yo(i,16),f=u.add(s).mod(Rp);if(f.equals(yo.ZERO))return!1;const h=Hc.multiply(s).add(l.multiply(f)),d=c.add(h.getX().toBigInteger()).mod(Rp);return u.equals(d)}function y5(e,t,n="1234567812345678"){n=ir.utf8ToHex(n);const r=ir.leftPad(Hc.curve.a.toBigInteger().toRadix(16),64),a=ir.leftPad(Hc.curve.b.toBigInteger().toRadix(16),64),o=ir.leftPad(Hc.getX().toBigInteger().toRadix(16),64),i=ir.leftPad(Hc.getY().toBigInteger().toRadix(16),64);let u,s;if(t.length===128)u=t.substr(0,64),s=t.substr(64,64);else{const h=Hc.curve.decodePointHex(t);u=ir.leftPad(h.getX().toBigInteger().toRadix(16),64),s=ir.leftPad(h.getY().toBigInteger().toRadix(16),64)}const l=ir.hexToArray(n+r+a+o+i+u+s),c=n.length*4;l.unshift(c&255),l.unshift(c>>8&255);const f=Lp(l);return ir.arrayToHex(Lp(f.concat(ir.hexToArray(e))))}function _5(e){const t=Hc.multiply(new yo(e,16)),n=ir.leftPad(t.getX().toBigInteger().toString(16),64),r=ir.leftPad(t.getY().toBigInteger().toString(16),64);return"04"+n+r}function b5(){const e=ir.generateKeyPairHex(),t=m5.decodePointHex(e.publicKey);return e.k=new yo(e.privateKey,16),e.x1=t.getX().toBigInteger(),e}var IQ={generateKeyPairHex:ir.generateKeyPairHex,compressPublicKeyHex:ir.compressPublicKeyHex,comparePublicKeyHex:ir.comparePublicKeyHex,doEncrypt:PQ,doDecrypt:OQ,doSignature:kQ,doVerifySignature:BQ,getPublicKeyFromPrivateKey:_5,getPoint:b5,verifyPublicKey:ir.verifyPublicKey};const{sm3:NQ,hmac:FQ}=v5;function MQ(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function x5(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function LQ(e){const t=[];let n=e.length;n%2!==0&&(e=MQ(e,n+1)),n=e.length;for(let r=0;r<n;r+=2)t.push(parseInt(e.substr(r,2),16));return t}function RQ(e){const t=[];for(let n=0,r=e.length;n<r;n++){const a=e.codePointAt(n);if(a<=127)t.push(a);else if(a<=2047)t.push(192|a>>>6),t.push(128|a&63);else if(a<=55295||a>=57344&&a<=65535)t.push(224|a>>>12),t.push(128|a>>>6&63),t.push(128|a&63);else if(a>=65536&&a<=1114111)n++,t.push(240|a>>>18&28),t.push(128|a>>>12&63),t.push(128|a>>>6&63),t.push(128|a&63);else throw t.push(a),new Error("input is not supported")}return t}var jQ=function(e,t){if(e=typeof e=="string"?RQ(e):Array.prototype.slice.call(e),t){if((t.mode||"hmac")!=="hmac")throw new Error("invalid mode");let r=t.key;if(!r)throw new Error("invalid key");return r=typeof r=="string"?LQ(r):Array.prototype.slice.call(r),x5(FQ(e,r))}return x5(NQ(e))};const Au=0,VQ=32,Wc=16,Cg=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],Ag=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function Rx(e){const t=[];for(let n=0,r=e.length;n<r;n+=2)t.push(parseInt(e.substr(n,2),16));return t}function zQ(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function UQ(e){const t=[];for(let n=0,r=e.length;n<r;n++){const a=e.codePointAt(n);if(a<=127)t.push(a);else if(a<=2047)t.push(192|a>>>6),t.push(128|a&63);else if(a<=55295||a>=57344&&a<=65535)t.push(224|a>>>12),t.push(128|a>>>6&63),t.push(128|a&63);else if(a>=65536&&a<=1114111)n++,t.push(240|a>>>18&28),t.push(128|a>>>12&63),t.push(128|a>>>6&63),t.push(128|a&63);else throw t.push(a),new Error("input is not supported")}return t}function HQ(e){const t=[];for(let n=0,r=e.length;n<r;n++)e[n]>=240&&e[n]<=247?(t.push(String.fromCodePoint(((e[n]&7)<<18)+((e[n+1]&63)<<12)+((e[n+2]&63)<<6)+(e[n+3]&63))),n+=3):e[n]>=224&&e[n]<=239?(t.push(String.fromCodePoint(((e[n]&15)<<12)+((e[n+1]&63)<<6)+(e[n+2]&63))),n+=2):e[n]>=192&&e[n]<=223?(t.push(String.fromCodePoint(((e[n]&31)<<6)+(e[n+1]&63))),n++):t.push(String.fromCodePoint(e[n]));return t.join("")}function jp(e,t){const n=t&31;return e<<n|e>>>32-n}function Tu(e){return(Cg[e>>>24&255]&255)<<24|(Cg[e>>>16&255]&255)<<16|(Cg[e>>>8&255]&255)<<8|Cg[e&255]&255}function Tg(e){return e^jp(e,2)^jp(e,10)^jp(e,18)^jp(e,24)}function Dg(e){return e^jp(e,13)^jp(e,23)}function WQ(e,t,n){const r=new Array(4),a=new Array(4);for(let o=0;o<4;o++)a[0]=e[4*o]&255,a[1]=e[4*o+1]&255,a[2]=e[4*o+2]&255,a[3]=e[4*o+3]&255,r[o]=a[0]<<24|a[1]<<16|a[2]<<8|a[3];for(let o=0,i;o<32;o+=4)i=r[1]^r[2]^r[3]^n[o+0],r[0]^=Tg(Tu(i)),i=r[2]^r[3]^r[0]^n[o+1],r[1]^=Tg(Tu(i)),i=r[3]^r[0]^r[1]^n[o+2],r[2]^=Tg(Tu(i)),i=r[0]^r[1]^r[2]^n[o+3],r[3]^=Tg(Tu(i));for(let o=0;o<16;o+=4)t[o]=r[3-o/4]>>>24&255,t[o+1]=r[3-o/4]>>>16&255,t[o+2]=r[3-o/4]>>>8&255,t[o+3]=r[3-o/4]&255}function GQ(e,t,n){const r=new Array(4),a=new Array(4);for(let o=0;o<4;o++)a[0]=e[0+4*o]&255,a[1]=e[1+4*o]&255,a[2]=e[2+4*o]&255,a[3]=e[3+4*o]&255,r[o]=a[0]<<24|a[1]<<16|a[2]<<8|a[3];r[0]^=2746333894,r[1]^=1453994832,r[2]^=1736282519,r[3]^=2993693404;for(let o=0,i;o<32;o+=4)i=r[1]^r[2]^r[3]^Ag[o+0],t[o+0]=r[0]^=Dg(Tu(i)),i=r[2]^r[3]^r[0]^Ag[o+1],t[o+1]=r[1]^=Dg(Tu(i)),i=r[3]^r[0]^r[1]^Ag[o+2],t[o+2]=r[2]^=Dg(Tu(i)),i=r[0]^r[1]^r[2]^Ag[o+3],t[o+3]=r[3]^=Dg(Tu(i));if(n===Au)for(let o=0,i;o<16;o++)i=t[o],t[o]=t[31-o],t[31-o]=i}function E5(e,t,n,{padding:r="pkcs#7",mode:a,iv:o=[],output:i="string"}={}){if(a==="cbc"&&(typeof o=="string"&&(o=Rx(o)),o.length!==128/8))throw new Error("iv is invalid");if(typeof t=="string"&&(t=Rx(t)),t.length!==128/8)throw new Error("key is invalid");if(typeof e=="string"?n!==Au?e=UQ(e):e=Rx(e):e=[...e],(r==="pkcs#5"||r==="pkcs#7")&&n!==Au){const h=Wc-e.length%Wc;for(let d=0;d<h;d++)e.push(h)}const u=new Array(VQ);GQ(t,u,n);const s=[];let l=o,c=e.length,f=0;for(;c>=Wc;){const h=e.slice(f,f+16),d=new Array(16);if(a==="cbc")for(let v=0;v<Wc;v++)n!==Au&&(h[v]^=l[v]);WQ(h,d,u);for(let v=0;v<Wc;v++)a==="cbc"&&n===Au&&(d[v]^=l[v]),s[f+v]=d[v];a==="cbc"&&(n!==Au?l=d:l=h),c-=Wc,f+=Wc}if((r==="pkcs#5"||r==="pkcs#7")&&n===Au){const h=s.length,d=s[h-1];for(let v=1;v<=d;v++)if(s[h-v]!==d)throw new Error("padding is invalid");s.splice(h-d,d)}return i!=="array"?n!==Au?zQ(s):HQ(s):s}var KQ={encrypt(e,t,n){return E5(e,t,1,n)},decrypt(e,t,n){return E5(e,t,0,n)}},Pg={sm2:IQ,sm3:jQ,sm4:KQ};const w5="04";function XQ(e,t){try{return w5+Pg.sm2.doEncrypt(e,t,1)}catch{return null}}function YQ(e,t){if(e==null)return null;try{return Pg.sm2.doDecrypt(e==null?void 0:e.substring(w5.length),t,1)}catch{return null}}const Ud={encrypt:XQ,decrypt:YQ},JQ="049967b032226da56be01b804ed59e6753e2731994f4c97bb25d39c0d3166af07b73e2651d09b98ae934a70303138e859545e8314e2eda20971e222a444ecd3547",ZQ="1e38a5c42fe3049bfbbcb2323a0cff3feb49e0b8156ac71eed525133603dbddb",S5=e=>(Es(e)&&(e=Zr(e)),Ud.encrypt(e,JQ)),C5=e=>Ud.decrypt(e,ZQ),A5=e=>`__${e}__mode`,QQ=(e,t)=>{const n=Es(t)?2:1;n===2&&(t=Zr(t));const r=S5(t);return{[e]:r,[A5(e)]:n}},T5=e=>{e||(e=window.location.href);const t=Nl.getQueryParams(e);if(!t)return null;const n={};return kr(t).map(r=>{let a=t[r];const o=t[A5(r)];return o!=null&&(a=C5(a),o==2&&(a=ii(a))),n[r]=a,a}),n},Og={decryptFromLocation:()=>T5(window.location.href),decryptFromUrl:T5,encryptToUrl:QQ,decryptData:C5,encryptData:S5};var Gc=(e=>(e.year="year",e.month="month",e.day="day",e.hour="hour",e.minute="minute",e.second="second",e.week="week",e))(Gc||{});function qQ(e){return e%4===0&&e%100!==0||e%400===0}function $Q(e){return[0,31,qQ(e)?29:28,31,30,31,30,31,31,30,31,30]}function kg(e,t){var n=new Date(e),r=new Date(t),a;n>r&&(a=n,n=r,r=a);var o=$Q(n.getFullYear())[n.getMonth()];let i=r.getFullYear()-n.getFullYear();i>0&&(n.setFullYear(r.getFullYear()),r<n&&(i-=1,n.setFullYear(n.getFullYear()-1)));let u=r.getMonth()-n.getMonth();u>0&&(n.setMonth(r.getMonth()),r<n&&(u-=1,n.setMonth(n.getMonth()-1)));let s=o+r.getDate()-n.getDate();s>=o&&(s-=o,n.setDate(r.getDate()),r<n&&(s-=1,n.setDate(n.getDate()-1)));const l=Math.abs(r.getTime()-n.getTime()),c=Math.floor(l%(24*60*60*1e3)/(60*60*1e3)),f=Math.floor(l%(60*60*1e3)/(60*1e3)),h=Math.floor(l%(60*1e3)/1e3);return{years:i,months:u,days:s,hours:c,minutes:f,seconds:h}}function D5(e,t,n="day"){var r=new Date(e);switch(n){case"year":r.setFullYear(r.getFullYear()+t);break;case"month":r.setMonth(r.getMonth()+t);break;case"week":r.setDate(r.getDate()+t*7);break;case"day":r.setDate(r.getDate()+t);break;case"hour":r.setHours(r.getHours()+t);break;case"minute":r.setMinutes(r.getMinutes()+t);break;case"second":r.setSeconds(r.getSeconds()+t);break}return r}function Hd(e,t,n="day"){var r=Math.abs(new Date(e).getTime()-new Date(t).getTime());const a=kg(e,t);switch(n){case"year":return a.years;case"month":return a.months+a.years*12;case"day":return Math.floor(r/(24*60*60*1e3));case"hour":return Math.floor(r/(60*60*1e3));case"minute":return Math.floor(r/(60*1e3));case"second":return Math.floor(r/1e3);case"week":return Math.floor(r/(7*24*60*60*1e3))}}function eq(e,t,n="day"){const r=kg(e,t);switch(n){case"year":return r.years;case"month":return r.months;case"day":return r.days;case"hour":return r.hours;case"minute":return r.minutes;case"second":return r.seconds}return 0}function Bg(e,t){if(!t)return String(e);if(!e)return"";var n=new Date(e);const r={yyyy:n.getFullYear(),yy:n.getFullYear().toString().slice(-2),MM:(n.getMonth()+1).toString().padStart(2,"0"),M:n.getMonth()+1,dd:n.getDate().toString().padStart(2,"0"),d:n.getDate(),HH:n.getHours().toString().padStart(2,"0"),H:n.getHours(),mm:n.getMinutes().toString().padStart(2,"0"),m:n.getMinutes(),ss:n.getSeconds().toString().padStart(2,"0"),s:n.getSeconds(),SSS:n.getMilliseconds(),fff:n.getMilliseconds().toString().padStart(3,"0"),gg:"上午",aa:"下午"};let a=t;for(let o in r)a=a.replace(o,r[o]);return a}function P5(e){return!isNaN(Date.parse(e))}function tq(e){if(P5(e))return new Date(e)}function O5(e){if(e){var t=new Date;if(P5(e))return new Date(e);var n=t.getFullYear()+"-"+t.getMonth()+"-"+t.getDate()+" "+e;return new Date(n)}}function k5(e){return Array.isArray(e)?e.map(t=>O5(t)):typeof e=="string"?O5(e):e}function nq(){return B5("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",/[xy]/g)}function Ig(){return B5("xxxxxxxxxxxxxxxxxxxxxxxxxxxx",/[xy]/g)}function B5(e,t,n=16){return e.replace(t,r=>{const a=Math.floor(Math.random()*n);return(r==="x"?a:a&3|8).toString(n)})}const $s=function(){return Math.floor(Math.random()*1e5+Math.random()*2e4+Math.random()*5e3)},I5=()=>Bg(new Date,"yyyyMMHHmmss")+"_"+$s();function jx(){return{addWindowName:()=>{window.name||(window.name=Ig())},addWindowHook:(a,o)=>{No(window,a,o)},openWindow:(a,o,i,u)=>{const s=o!=null&&o.target?"_blank":"_self",l=o!=null&&o.width&&(o!=null&&o.height)?`width=${o==null?void 0:o.width},height=${o==null?void 0:o.height}`:"";i||(i=window);var c=a;u&&(c=Nl.buildUrlByLocalQuery(a)),i==null||i.open(c,s,l)},disableFirefoxDefaultDrop:()=>{navigator.userAgent.toLowerCase().indexOf("firefox")!==-1&&(document.body.ondrop=function(o){o.stopPropagation(),o.preventDefault()})}}}const wi={info(e){xi.ElMessage({type:"info",message:e,dangerouslyUseHTMLString:!0})},error(e){xi.ElMessage({type:"error",message:e,dangerouslyUseHTMLString:!0})},success(e){xi.ElMessage({type:"success",message:e,dangerouslyUseHTMLString:!0})},warning(e){xi.ElMessage({type:"warning",message:e,dangerouslyUseHTMLString:!0})}},rq={delete(){return this.do(se.i18nt("designer.hint.confirmDelete"))},multiple(e){var t=e.map(n=>x.h("p",null,n));return this.do(x.h("p",null,t))},do(e){return xi.ElMessageBox.confirm(e,se.i18nt("designer.hint.prompt"),{confirmButtonText:se.i18nt("designer.hint.confirm"),cancelButtonText:se.i18nt("designer.hint.cancel"),type:"warning",appendTo:"body"})}},iq={info(e){xi.ElNotification({type:"info",message:e,dangerouslyUseHTMLString:!0})},error(e){xi.ElNotification({type:"error",message:e,dangerouslyUseHTMLString:!0})},success(e){xi.ElNotification({type:"success",message:e,dangerouslyUseHTMLString:!0})},warning(e){xi.ElNotification({type:"warning",message:e,dangerouslyUseHTMLString:!0})}},Ng=e=>{var a,o;const t=((a=e==null?void 0:e.exposed)==null?void 0:a.getRowScope())||{},n=((o=e==null?void 0:e.exposed)==null?void 0:o.getFormData())||{};var r=Og.decryptFromUrl(window.location.href);return{rowScope:t,formData:n,urlQuerys:r}};function aq(e,t,n,r){var h,d;let a=ri((h=e==null?void 0:e.content)==null?void 0:h.widgetId,!0),o=ri((d=e==null?void 0:e.content)==null?void 0:d.sourceId,!0);if(!a||!o)return null;const i=()=>new Promise((v,m)=>{var y;let p={};if(!a||a.length<=0){v(p);return}const g=(y=a==null?void 0:a.filter(b=>{var _;return!!((_=n==null?void 0:n.exposed)!=null&&_.findRefById(b,n))}))==null?void 0:y.map(b=>{var _;return(_=n==null?void 0:n.exposed)==null?void 0:_.findRefById(b,n)});Promise.all(g==null?void 0:g.map(b=>{var _;return(_=b==null?void 0:b.exposed)==null?void 0:_.getValue(!0)})).then(b=>{b.forEach(_=>{_!=null&&_.isSuccess&&(p=Object.assign({},p,_==null?void 0:_.data))}),v(p)}).catch(b=>{var E;const _=Array.isArray(b==null?void 0:b.message)?(E=Array.from(b==null?void 0:b.message))==null?void 0:E.map(w=>`<p class="pLine">${w}</p>`).join(""):b==null?void 0:b.message;iq.error(_||Zr(b))})}),u=v=>{var p;var m=(p=e==null?void 0:e.content)==null?void 0:p.schemaParamName;return m?{[m]:v}:{_formData:v}},s=(v,m,p)=>{if(!v)return p;const g=Ng(n);return Js(v,{formData:p||(g==null?void 0:g.formData)||{},arg:{urlQuery:g==null?void 0:g.urlQuerys,rowScope:g==null?void 0:g.rowScope},exp:m})},l=(v,m,p,g,y)=>{if(!v)return g;const b=Ng(n);return Js(v,{widgetId:y,respValue:g,respData:p,arg:{urlQuery:b==null?void 0:b.urlQuerys,rowScope:b==null?void 0:b.rowScope,formData:b==null?void 0:b.formData},exp:m})},c=()=>new Promise((v,m)=>{i().then(p=>{var b;var g=[];let y=u(s((b=e==null?void 0:e.content)==null?void 0:b.beforeFetch,t,p));o==null||o.forEach(_=>{var E=`${Ni.schema}.${_}`,w=_e.buildVariablePropValue(E,y);const S=_e.getValue(w,!1,!0,r);g.push({sourceId:_,params:y,resp:S})}),v(g)})}),f=v=>{v==null||v.forEach(m=>{let p=x.watch(m==null?void 0:m.resp,g=>{p==null||p(),a==null||a.forEach(y=>{var E,w,S,A,P,C;var b=(E=n==null?void 0:n.exposed)==null?void 0:E.findRefById(y);if(!b)return;const _=(w=e==null?void 0:e.content)==null?void 0:w.afterFetch;_?l(_,t,{...m,resp:g},g,y):(A=(S=b==null?void 0:b.exposed)==null?void 0:S.setValue)==null||A.call(S,g,!1),(C=(P=b==null?void 0:b.exposed)==null?void 0:P.clearChangeRecord)==null||C.call(P)})})})};c().then(v=>{f(v)})}function oq(e,t,n,r){const a=(l,c,f)=>{const{sendToIframe:h,receive:d}=r5();return new Promise((v,m)=>{var g,y;const p=Ig();d(b=>{f(p,b,_=>{_!=null&&_.isSuccess?v(!0):xi.ElNotification.error((_==null?void 0:_.message)||(b==null?void 0:b.data))})},!0),h((y=(g=l==null?void 0:l.data)==null?void 0:g.props)==null?void 0:y.iframeRef,{...c,msgId:p})})},o=(l,c)=>{var m,p;const f=((m=n==null?void 0:n.exposed)==null?void 0:m.getRowScope())||{},h=((p=n==null?void 0:n.exposed)==null?void 0:p.getFormData())||{};var d=Og.decryptFromUrl(window.location.href),v=Js(l,{data:{urlQuery:d,rowScope:f,formData:h},exp:c});return v},i=()=>{var h,d,v,m;var l=(h=e==null?void 0:e.content)!=null&&h.withQuery?Nl.getLocationQueryParams():{};let c=Object.assign(l||{},o((d=e==null?void 0:e.content)==null?void 0:d.setQueryFn,t));const f=Nl.buildUrl((v=e==null?void 0:e.content)==null?void 0:v.url,c,(m=e==null?void 0:e.content)==null?void 0:m.encodeQuery);return Nl.resolveByCurrentUrl(f)},u=()=>{var l,c,f,h;switch((l=e==null?void 0:e.content)==null?void 0:l.windowTarget){case og.self:return window;case og.top:return window.top||window;case og.parent:return window.parent;default:return(c=e==null?void 0:e.content)!=null&&c.windowTarget?(h=go.find(window,(f=e==null?void 0:e.content)==null?void 0:f.windowTarget))==null?void 0:h.window:window}};(()=>{var v,m;const{openWindow:l}=jx(),c=u(),f=i();if(((v=e==null?void 0:e.content)==null?void 0:v.windowModal)===nD.modal){var h={self:window==null?void 0:window.name,caller:c==null?void 0:c.name};const p=(A,P,C)=>{var O;const D=(O=e==null?void 0:e.content)==null?void 0:O.onReceive;D&&Js(D,{data:{msgId:A,eventMsg:P},exp:t,callback:C})},g=A=>a(A,{command:"saveForm",args:{...h}},p),y=A=>a(A,{command:"cancelForm",args:{...h}},p),{fullscreen:b,width:_,height:E,title:w,dialogType:S}=(e==null?void 0:e.content)||{};var d={fullscreen:b,width:_,height:E,title:w,dialogType:S,url:f,callback:{okCallback:g,cancelCallback:y}};if(c)if(c!=null&&c.openModalAsync)(m=c==null?void 0:c.openModalAsync)==null||m.call(c,d);else{wi.error(se.i18nt("designer.hint.windowNotSupport"));return}else n5(n,d)}else l(f,e==null?void 0:e.content,c==null?void 0:c.window,!1)})()}function sq(e,t,n,r){var c;let a=ri((c=e==null?void 0:e.content)==null?void 0:c.sourceId,!0);if(!a)return null;const o=(f,h,d)=>{if(!f)return d;const v=Ng(n);return Js(f,{formData:d||(v==null?void 0:v.formData)||{},arg:{urlQuery:v==null?void 0:v.urlQuerys,rowScope:v==null?void 0:v.rowScope},exp:h})},i=()=>{var m,p,g;var f=[];const h=(m=e==null?void 0:e.content)==null?void 0:m.params,d=ii(_ne(h,r));let v=(p=e==null?void 0:e.content)!=null&&p.beforeFetch?o((g=e==null?void 0:e.content)==null?void 0:g.beforeFetch,t,d):h;return a==null||a.forEach(y=>{var b=`${Ni.schema}.${y}`,_=_e.buildVariablePropValue(b,v);const E=_e.getValue(_,!1,!0,r);f.push({sourceId:y,params:v,resp:E})}),f},u=(f,h,d,v)=>{if(!f)return v;const m=Ng(n);return Js(f,{respValue:v,respData:d,arg:{urlQuery:m==null?void 0:m.urlQuerys,rowScope:m==null?void 0:m.rowScope,formData:m==null?void 0:m.formData},exp:h})},s=f=>{f==null||f.forEach(h=>{let d=x.watch(h==null?void 0:h.resp,v=>{var m,p;d==null||d(),(m=e==null?void 0:e.content)!=null&&m.afterFetch&&u((p=e==null?void 0:e.content)==null?void 0:p.afterFetch,t,{...h,resp:v},v)})})};var l=i();return s(l),l}function lq(e,t,n,r){var a,o,i,u,s,l,c;switch(e==null?void 0:e.type){case Ss.actionCode:return Js((a=e==null?void 0:e.content)==null?void 0:a.code,t);case Ss.actionURL:return oq(e,t,n);case Ss.actionShowWidget:{let f=(o=e==null?void 0:e.content)==null?void 0:o.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setHidden(!1)});return}case Ss.actionHideWidget:{let f=(i=e==null?void 0:e.content)==null?void 0:i.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setHidden(!0)});return}case Ss.actionEnableWidget:{let f=(u=e==null?void 0:e.content)==null?void 0:u.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setDisabled(!1)});return}case Ss.actionDisableWidget:{let f=(s=e==null?void 0:e.content)==null?void 0:s.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setDisabled(!0)});return}case Ss.actionOpenDialog:{let f=(l=e==null?void 0:e.content)==null?void 0:l.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setValue(!0)});return}case Ss.actionCloseDialog:{let f=(c=e==null?void 0:e.content)==null?void 0:c.widgetId;Array.isArray(f)||(f=[f]),f==null||f.forEach(h=>{var d,v,m;(m=(v=(d=n==null?void 0:n.exposed)==null?void 0:d.findRefById(h,n))==null?void 0:v.exposed)==null||m.setValue(!1)});return}case Ss.actionSendSchema:return sq(e,t,n,r);case Ss.actionSaveFormData:return aq(e,t,n,r)}}const N5=(e,t)=>{const{state:n}=mx(async()=>{const r=await Promise.resolve().then(()=>Tme);var a=Object.entries(r).find(([o,i])=>o===e);if(a)return t!=null&&t.appContext.components[a[0]]||t==null||t.appContext.app.component(a[0],a[1]),a==null?void 0:a[1]},null);return n},uq=(e,t,n)=>{e&&e.interceptors.request.use(function(r){var a=r;return n&&(a=n(t,r)),a},function(r){return Promise.reject(r)})},cq=(e,t,n,r)=>{e&&e.interceptors.response.use(function(a){var o=a;return n&&(o=n(t,a)),o},function(a){var o=a;return r&&(o=r(t,a)),Promise.reject(o)})},Vx=(e,t)=>{const n=JD.create(e);return uq(n,t,e==null?void 0:e.willFetch),cq(n,t,e==null?void 0:e.fitFetch,e==null?void 0:e.errorFetch),new Promise((r,a)=>{n.request({url:e==null?void 0:e.url,data:e==null?void 0:e.data}).then(o=>{let i=o;var u=e==null?void 0:e.fitFetch;u&&u(t,o),r(i)}).catch(o=>{a(o)})})},fq={req:Vx,get:(e,t)=>(e.method="get",Vx(e,t)),post:(e,t)=>(e.method="post",Vx(e,t))};class pq{_emptyAndLength(t){return!!(t&&t.length===18)}_idCardRule(t){return/(^\d{17}(\d|X)$)/.test(t)}_checkProvince(t,n={}){const r={11:"北京市",12:"天津市",13:"河北省",14:"山西省",15:"内蒙古自治区",21:"辽宁省",22:"吉林省",23:"黑龙江省 ",31:"上海",32:"江苏省",33:"浙江省",34:"安徽省",35:"福建省",36:"江西省",37:"山东省",41:"河南省",42:"湖北省 ",43:"湖南省",44:"广东省",45:"广西壮族自治区",46:"海南省",50:"重庆",51:"四川省",52:"贵州省",53:"云南省",54:"西藏自治区 ",61:"陕西省",62:"甘肃省",63:"青海省",64:"宁夏回族自治区",65:"新疆维吾尔自治区",71:"台湾省",81:"香港特别行政区",82:"澳门特别行政区"},a=parseInt(t.substring(0,2));return n.provinceCode=a,n.provinceName=r[a],!!r[a]}_checkCity(t,n={}){const r=parseInt(t.substring(0,6)),a={};return n.cityCode=r,n.cityName=a[r],!0;//!!areaCodesObj[city]
|
|
20
20
|
}_checkBirthday(t,n={}){const r=/^(\d{6})(\d{4})(\d{2})(\d{2})(\d{3})([0-9]|X)$/,a=t.match(r),o=parseInt(a[2]),i=parseInt(a[3]),u=parseInt(a[4]),s=new Date(o+"/"+(i<10?"0"+i:i)+"/"+(u<10?"0"+u:u));if(s.getFullYear()!=0&&(s.getMonth()<0||!s.getDate()))return!1;const l=new Date,c=kg(s,l);return n.birthday=s,n.birthdayText=o+"-"+i+"-"+u,n.age=c==null?void 0:c.years,n.dateDiff=c,s<=l}_checkSexCode(t,n={}){const r=parseInt(t==null?void 0:t.substring(17,18))%2==0;return n.sexCode=r?"2":"1",n.sexName=r?"女":"男",!0}_checkCode(t){const n=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],r=["1","0","X","9","8","7","6","5","4","3","2"];let a=0;for(let o=0;o<17;o++)a+=parseInt(t.substring(o,o+1))*n[o];return r[a%11]===t.substring(17,18)}_overallValid(t){return!io._emptyAndLength(t)||!io._idCardRule(t)||!io._checkProvince(t)||!io._checkCity(t)||!io._checkBirthday(t)?!1:io._checkCode(t)}}class Wd{static _convertTo18(t){if(t==null)return"";if(t.length!=15)return t;var n=t.substring(0,6)+"19"+t.substring(6),r=0;const a=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],o=n==null?void 0:n.split("");for(var i=0;i<o.length;i++)r+=(o[i].charCodeAt(0)-"0".charCodeAt(0))*a[i];var u=r%11,s=["1","0","X","9","8","7","6","5","4","3","2"];return n+s[u]}isValid(t){const n=Wd._convertTo18(t);return io._overallValid(n)}convertTo18(t){return Wd._convertTo18(t)}getInfo(t){const n=Wd._convertTo18(t);let r={},a={};return!io._emptyAndLength(n)||!io._idCardRule(n)||!io._checkProvince(n,r)||!io._checkCity(n,r)||!io._checkBirthday(n,r)||!io._checkCode(n)||!io._checkSexCode(n,r)?a:r}}const io=new pq,Fl=new Wd;function F5(e){return{mode:"cbc",iv:e}}function hq(e,t,n){if(e==null)return null;try{return Pg.sm4.encrypt(e,t,F5(n))}catch{return null}}function dq(e,t,n){if(e==null)return null;try{return Pg.sm4.decrypt(e,t,F5(n))}catch{return null}}const zx={encrypt:hq,decrypt:dq},M5="3.7.7",vq=M5,Vp=typeof Buffer=="function",L5=typeof TextDecoder=="function"?new TextDecoder:void 0,R5=typeof TextEncoder=="function"?new TextEncoder:void 0,mq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Gd=Array.prototype.slice.call(mq),Fg=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(Gd),gq=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,fa=String.fromCharCode.bind(String),j5=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),V5=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),z5=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),U5=e=>{let t,n,r,a,o="";const i=e.length%3;for(let u=0;u<e.length;){if((n=e.charCodeAt(u++))>255||(r=e.charCodeAt(u++))>255||(a=e.charCodeAt(u++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|a,o+=Gd[t>>18&63]+Gd[t>>12&63]+Gd[t>>6&63]+Gd[t&63]}return i?o.slice(0,i-3)+"===".substring(i):o},Ux=typeof btoa=="function"?e=>btoa(e):Vp?e=>Buffer.from(e,"binary").toString("base64"):U5,Hx=Vp?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,a=e.length;r<a;r+=4096)n.push(fa.apply(null,e.subarray(r,r+4096)));return Ux(n.join(""))},Mg=(e,t=!1)=>t?V5(Hx(e)):Hx(e),yq=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?fa(192|t>>>6)+fa(128|t&63):fa(224|t>>>12&15)+fa(128|t>>>6&63)+fa(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return fa(240|t>>>18&7)+fa(128|t>>>12&63)+fa(128|t>>>6&63)+fa(128|t&63)}},_q=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,H5=e=>e.replace(_q,yq),W5=Vp?e=>Buffer.from(e,"utf8").toString("base64"):R5?e=>Hx(R5.encode(e)):e=>Ux(H5(e)),zp=(e,t=!1)=>t?V5(W5(e)):W5(e),G5=e=>zp(e,!0),bq=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,xq=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return fa((n>>>10)+55296)+fa((n&1023)+56320);case 3:return fa((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fa((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},K5=e=>e.replace(bq,xq),X5=e=>{if(e=e.replace(/\s+/g,""),!gq.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n="",r,a;for(let o=0;o<e.length;)t=Fg[e.charAt(o++)]<<18|Fg[e.charAt(o++)]<<12|(r=Fg[e.charAt(o++)])<<6|(a=Fg[e.charAt(o++)]),n+=r===64?fa(t>>16&255):a===64?fa(t>>16&255,t>>8&255):fa(t>>16&255,t>>8&255,t&255);return n},Wx=typeof atob=="function"?e=>atob(z5(e)):Vp?e=>Buffer.from(e,"base64").toString("binary"):X5,Y5=Vp?e=>j5(Buffer.from(e,"base64")):e=>j5(Wx(e).split("").map(t=>t.charCodeAt(0))),J5=e=>Y5(Z5(e)),Eq=Vp?e=>Buffer.from(e,"base64").toString("utf8"):L5?e=>L5.decode(Y5(e)):e=>K5(Wx(e)),Z5=e=>z5(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Gx=e=>Eq(Z5(e)),wq=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},Q5=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),q5=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,Q5(n));e("fromBase64",function(){return Gx(this)}),e("toBase64",function(t){return zp(this,t)}),e("toBase64URI",function(){return zp(this,!0)}),e("toBase64URL",function(){return zp(this,!0)}),e("toUint8Array",function(){return J5(this)})},$5=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,Q5(n));e("toBase64",function(t){return Mg(this,t)}),e("toBase64URI",function(){return Mg(this,!0)}),e("toBase64URL",function(){return Mg(this,!0)})},Sq={version:M5,VERSION:vq,atob:Wx,atobPolyfill:X5,btoa:Ux,btoaPolyfill:U5,fromBase64:Gx,toBase64:zp,encode:zp,encodeURI:G5,encodeURL:G5,utob:H5,btou:K5,decode:Gx,isValid:wq,fromUint8Array:Mg,toUint8Array:J5,extendString:q5,extendUint8Array:$5,extendBuiltins:()=>{q5(),$5()}};class Cq{constructor(t,n){U(this,"hexcase",0);U(this,"b64pad","");this.hexcase=t||0,this.b64pad=n||""}hex_md5(t){return this.rstr2hex(this.rstr_md5(this.str2rstr_utf8(t)))}b64_md5(t){return this.rstr2b64(this.rstr_md5(this.str2rstr_utf8(t)))}any_md5(t,n){return this.rstr2any(this.rstr_md5(this.str2rstr_utf8(t)),n)}hex_hmac_md5(t,n){return this.rstr2hex(this.rstr_hmac_md5(this.str2rstr_utf8(t),this.str2rstr_utf8(n)))}b64_hmac_md5(t,n){return this.rstr2b64(this.rstr_hmac_md5(this.str2rstr_utf8(t),this.str2rstr_utf8(n)))}any_hmac_md5(t,n,r){return this.rstr2any(this.rstr_hmac_md5(this.str2rstr_utf8(t),this.str2rstr_utf8(n)),r)}md5_vm_test(){return this.hex_md5("abc").toLowerCase()=="900150983cd24fb0d6963f7d28e17f72"}rstr_md5(t){return this.binl2rstr(this.binl_md5(this.rstr2binl(t),t.length*8))}rstr_hmac_md5(t,n){var r=this.rstr2binl(t);r.length>16&&(r=this.binl_md5(r,t.length*8));for(var a=Array(16),o=Array(16),i=0;i<16;i++)a[i]=r[i]^909522486,o[i]=r[i]^1549556828;var u=this.binl_md5(a.concat(this.rstr2binl(n)),512+n.length*8);return this.binl2rstr(this.binl_md5(o.concat(u),512+128))}rstr2hex(t){try{this.hexcase}catch{this.hexcase=0}for(var n=this.hexcase?"0123456789ABCDEF":"0123456789abcdef",r="",a,o=0;o<t.length;o++)a=t.charCodeAt(o),r+=n.charAt(a>>>4&15)+n.charAt(a&15);return r}rstr2b64(t){try{this.b64pad}catch{this.b64pad=""}for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="",a=t.length,o=0;o<a;o+=3)for(var i=t.charCodeAt(o)<<16|(o+1<a?t.charCodeAt(o+1)<<8:0)|(o+2<a?t.charCodeAt(o+2):0),u=0;u<4;u++)o*8+u*6>t.length*8?r+=this.b64pad:r+=n.charAt(i>>>6*(3-u)&63);return r}rstr2any(t,n){var r=n.length,a,o,i,u,s,l=Array(Math.ceil(t.length/2));for(a=0;a<l.length;a++)l[a]=t.charCodeAt(a*2)<<8|t.charCodeAt(a*2+1);var c=Math.ceil(t.length*8/(Math.log(n.length)/Math.log(2))),f=Array(c);for(o=0;o<c;o++){for(s=Array(),u=0,a=0;a<l.length;a++)u=(u<<16)+l[a],i=Math.floor(u/r),u-=i*r,(s.length>0||i>0)&&(s[s.length]=i);f[o]=u,l=s}var h="";for(a=f.length-1;a>=0;a--)h+=n.charAt(f[a]);return h}str2rstr_utf8(t){for(var n="",r=-1,a,o;++r<t.length;)a=t.charCodeAt(r),o=r+1<t.length?t.charCodeAt(r+1):0,55296<=a&&a<=56319&&56320<=o&&o<=57343&&(a=65536+((a&1023)<<10)+(o&1023),r++),a<=127?n+=String.fromCharCode(a):a<=2047?n+=String.fromCharCode(192|a>>>6&31,128|a&63):a<=65535?n+=String.fromCharCode(224|a>>>12&15,128|a>>>6&63,128|a&63):a<=2097151&&(n+=String.fromCharCode(240|a>>>18&7,128|a>>>12&63,128|a>>>6&63,128|a&63));return n}str2rstr_utf16le(t){for(var n="",r=0;r<t.length;r++)n+=String.fromCharCode(t.charCodeAt(r)&255,t.charCodeAt(r)>>>8&255);return n}str2rstr_utf16be(t){for(var n="",r=0;r<t.length;r++)n+=String.fromCharCode(t.charCodeAt(r)>>>8&255,t.charCodeAt(r)&255);return n}rstr2binl(t){for(var n=Array(t.length>>2),r=0;r<n.length;r++)n[r]=0;for(var r=0;r<t.length*8;r+=8)n[r>>5]|=(t.charCodeAt(r/8)&255)<<r%32;return n}binl2rstr(t){for(var n="",r=0;r<t.length*32;r+=8)n+=String.fromCharCode(t[r>>5]>>>r%32&255);return n}binl_md5(t,n){t[n>>5]|=128<<n%32,t[(n+64>>>9<<4)+14]=n;for(var r=1732584193,a=-271733879,o=-1732584194,i=271733878,u=0;u<t.length;u+=16){var s=r,l=a,c=o,f=i;r=this.md5_ff(r,a,o,i,t[u+0],7,-680876936),i=this.md5_ff(i,r,a,o,t[u+1],12,-389564586),o=this.md5_ff(o,i,r,a,t[u+2],17,606105819),a=this.md5_ff(a,o,i,r,t[u+3],22,-1044525330),r=this.md5_ff(r,a,o,i,t[u+4],7,-176418897),i=this.md5_ff(i,r,a,o,t[u+5],12,1200080426),o=this.md5_ff(o,i,r,a,t[u+6],17,-1473231341),a=this.md5_ff(a,o,i,r,t[u+7],22,-45705983),r=this.md5_ff(r,a,o,i,t[u+8],7,1770035416),i=this.md5_ff(i,r,a,o,t[u+9],12,-1958414417),o=this.md5_ff(o,i,r,a,t[u+10],17,-42063),a=this.md5_ff(a,o,i,r,t[u+11],22,-1990404162),r=this.md5_ff(r,a,o,i,t[u+12],7,1804603682),i=this.md5_ff(i,r,a,o,t[u+13],12,-40341101),o=this.md5_ff(o,i,r,a,t[u+14],17,-1502002290),a=this.md5_ff(a,o,i,r,t[u+15],22,1236535329),r=this.md5_gg(r,a,o,i,t[u+1],5,-165796510),i=this.md5_gg(i,r,a,o,t[u+6],9,-1069501632),o=this.md5_gg(o,i,r,a,t[u+11],14,643717713),a=this.md5_gg(a,o,i,r,t[u+0],20,-373897302),r=this.md5_gg(r,a,o,i,t[u+5],5,-701558691),i=this.md5_gg(i,r,a,o,t[u+10],9,38016083),o=this.md5_gg(o,i,r,a,t[u+15],14,-660478335),a=this.md5_gg(a,o,i,r,t[u+4],20,-405537848),r=this.md5_gg(r,a,o,i,t[u+9],5,568446438),i=this.md5_gg(i,r,a,o,t[u+14],9,-1019803690),o=this.md5_gg(o,i,r,a,t[u+3],14,-187363961),a=this.md5_gg(a,o,i,r,t[u+8],20,1163531501),r=this.md5_gg(r,a,o,i,t[u+13],5,-1444681467),i=this.md5_gg(i,r,a,o,t[u+2],9,-51403784),o=this.md5_gg(o,i,r,a,t[u+7],14,1735328473),a=this.md5_gg(a,o,i,r,t[u+12],20,-1926607734),r=this.md5_hh(r,a,o,i,t[u+5],4,-378558),i=this.md5_hh(i,r,a,o,t[u+8],11,-2022574463),o=this.md5_hh(o,i,r,a,t[u+11],16,1839030562),a=this.md5_hh(a,o,i,r,t[u+14],23,-35309556),r=this.md5_hh(r,a,o,i,t[u+1],4,-1530992060),i=this.md5_hh(i,r,a,o,t[u+4],11,1272893353),o=this.md5_hh(o,i,r,a,t[u+7],16,-155497632),a=this.md5_hh(a,o,i,r,t[u+10],23,-1094730640),r=this.md5_hh(r,a,o,i,t[u+13],4,681279174),i=this.md5_hh(i,r,a,o,t[u+0],11,-358537222),o=this.md5_hh(o,i,r,a,t[u+3],16,-722521979),a=this.md5_hh(a,o,i,r,t[u+6],23,76029189),r=this.md5_hh(r,a,o,i,t[u+9],4,-640364487),i=this.md5_hh(i,r,a,o,t[u+12],11,-421815835),o=this.md5_hh(o,i,r,a,t[u+15],16,530742520),a=this.md5_hh(a,o,i,r,t[u+2],23,-995338651),r=this.md5_ii(r,a,o,i,t[u+0],6,-198630844),i=this.md5_ii(i,r,a,o,t[u+7],10,1126891415),o=this.md5_ii(o,i,r,a,t[u+14],15,-1416354905),a=this.md5_ii(a,o,i,r,t[u+5],21,-57434055),r=this.md5_ii(r,a,o,i,t[u+12],6,1700485571),i=this.md5_ii(i,r,a,o,t[u+3],10,-1894986606),o=this.md5_ii(o,i,r,a,t[u+10],15,-1051523),a=this.md5_ii(a,o,i,r,t[u+1],21,-2054922799),r=this.md5_ii(r,a,o,i,t[u+8],6,1873313359),i=this.md5_ii(i,r,a,o,t[u+15],10,-30611744),o=this.md5_ii(o,i,r,a,t[u+6],15,-1560198380),a=this.md5_ii(a,o,i,r,t[u+13],21,1309151649),r=this.md5_ii(r,a,o,i,t[u+4],6,-145523070),i=this.md5_ii(i,r,a,o,t[u+11],10,-1120210379),o=this.md5_ii(o,i,r,a,t[u+2],15,718787259),a=this.md5_ii(a,o,i,r,t[u+9],21,-343485551),r=this.safe_add(r,s),a=this.safe_add(a,l),o=this.safe_add(o,c),i=this.safe_add(i,f)}return[r,a,o,i]}md5_cmn(t,n,r,a,o,i){return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(n,t),this.safe_add(a,i)),o),r)}md5_ff(t,n,r,a,o,i,u){return this.md5_cmn(n&r|~n&a,t,n,o,i,u)}md5_gg(t,n,r,a,o,i,u){return this.md5_cmn(n&a|r&~a,t,n,o,i,u)}md5_hh(t,n,r,a,o,i,u){return this.md5_cmn(n^r^a,t,n,o,i,u)}md5_ii(t,n,r,a,o,i,u){return this.md5_cmn(r^(n|~a),t,n,o,i,u)}safe_add(t,n){var r=(t&65535)+(n&65535),a=(t>>16)+(n>>16)+(r>>16);return a<<16|r&65535}bit_rol(t,n){return t<<n|t>>>32-n}}const Kx=new Cq,Xx=(e,t)=>{if(!e)return"";e.timeStamp=new Date().getTime();const n=NY(e),a=Zr(n)+t,o=Kx==null?void 0:Kx.hex_md5(a),i=Sq.encode(o);return n.dataDigest=i,n},Aq={traceBody:Xx,encodeSM2:(e,t,n)=>{const r=Xx(e,t);return Ud.encrypt(Zr(r),n)},decodeSM2:(e,t)=>{if(Cr(e))return null;const n=Ud.decrypt(e,t);var r=ii(n);return n!==null&&r===null&&zi.info("decodeSM2",{sm2Decrypt:n}),r},encodeSM4:(e,t,n,r)=>{const a=Xx(e,t);return zx.encrypt(Zr(a),n,r)},decodeSM4:(e,t,n)=>{if(Cr(e))return null;const r=zx.decrypt(e,t,n);var a=ii(r);return r!==null&&a===null&&zi.info("decodeSM4",{sm4Decrypt:r}),a}};var Kd={},Tq={get exports(){return Kd},set exports(e){Kd=e}},Lg={},Dq={get exports(){return Lg},set exports(e){Lg=e}},Ro={},Qr={};Qr.__esModule=!0,Qr.extend=eP,Qr.indexOf=Iq,Qr.escapeExpression=Nq,Qr.isEmpty=Fq,Qr.createFrame=Mq,Qr.blockParams=Lq,Qr.appendContextPath=Rq;var Pq={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},Oq=/[&<>"'`=]/g,kq=/[&<>"'`=]/;function Bq(e){return Pq[e]}function eP(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var Yx=Object.prototype.toString;Qr.toString=Yx;var Jx=function(t){return typeof t=="function"};Jx(/x/)&&(Qr.isFunction=Jx=function(e){return typeof e=="function"&&Yx.call(e)==="[object Function]"}),Qr.isFunction=Jx;var tP=Array.isArray||function(e){return e&&typeof e=="object"?Yx.call(e)==="[object Array]":!1};Qr.isArray=tP;function Iq(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Nq(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return kq.test(e)?e.replace(Oq,Bq):e}function Fq(e){return!e&&e!==0?!0:!!(tP(e)&&e.length===0)}function Mq(e){var t=eP({},e);return t._parent=e,t}function Lq(e,t){return e.path=t,e}function Rq(e,t){return(e?e+".":"")+t}var ao={},jq={get exports(){return ao},set exports(e){ao=e}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(a,o){var i=o&&o.loc,u=void 0,s=void 0,l=void 0,c=void 0;i&&(u=i.start.line,s=i.end.line,l=i.start.column,c=i.end.column,a+=" - "+u+":"+l);for(var f=Error.prototype.constructor.call(this,a),h=0;h<n.length;h++)this[n[h]]=f[n[h]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{i&&(this.lineNumber=u,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:l,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=l,this.endColumn=c))}catch{}}r.prototype=new Error,t.default=r,e.exports=t.default})(jq,ao);var Xd={},Rg={},Vq={get exports(){return Rg},set exports(e){Rg=e}};(function(e,t){t.__esModule=!0;var n=Qr;t.default=function(r){r.registerHelper("blockHelperMissing",function(a,o){var i=o.inverse,u=o.fn;if(a===!0)return u(this);if(a===!1||a==null)return i(this);if(n.isArray(a))return a.length>0?(o.ids&&(o.ids=[o.name]),r.helpers.each(a,o)):i(this);if(o.data&&o.ids){var s=n.createFrame(o.data);s.contextPath=n.appendContextPath(o.data.contextPath,o.name),o={data:s}}return u(a,o)})},e.exports=t.default})(Vq,Rg);var jg={},zq={get exports(){return jg},set exports(e){jg=e}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Qr,a=ao,o=n(a);t.default=function(i){i.registerHelper("each",function(u,s){if(!s)throw new o.default("Must pass iterator to #each");var l=s.fn,c=s.inverse,f=0,h="",d=void 0,v=void 0;s.data&&s.ids&&(v=r.appendContextPath(s.data.contextPath,s.ids[0])+"."),r.isFunction(u)&&(u=u.call(this)),s.data&&(d=r.createFrame(s.data));function m(_,E,w){d&&(d.key=_,d.index=E,d.first=E===0,d.last=!!w,v&&(d.contextPath=v+_)),h=h+l(u[_],{data:d,blockParams:r.blockParams([u[_],_],[v+_,null])})}if(u&&typeof u=="object")if(r.isArray(u))for(var p=u.length;f<p;f++)f in u&&m(f,f,f===u.length-1);else if(typeof Symbol=="function"&&u[Symbol.iterator]){for(var g=[],y=u[Symbol.iterator](),b=y.next();!b.done;b=y.next())g.push(b.value);u=g;for(var p=u.length;f<p;f++)m(f,f,f===u.length-1)}else(function(){var _=void 0;Object.keys(u).forEach(function(E){_!==void 0&&m(_,f-1),_=E,f++}),_!==void 0&&m(_,f-1,!0)})();return f===0&&(h=c(this)),h})},e.exports=t.default})(zq,jg);var Vg={},Uq={get exports(){return Vg},set exports(e){Vg=e}};(function(e,t){t.__esModule=!0;function n(o){return o&&o.__esModule?o:{default:o}}var r=ao,a=n(r);t.default=function(o){o.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new a.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(Uq,Vg);var zg={},Hq={get exports(){return zg},set exports(e){zg=e}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Qr,a=ao,o=n(a);t.default=function(i){i.registerHelper("if",function(u,s){if(arguments.length!=2)throw new o.default("#if requires exactly one argument");return r.isFunction(u)&&(u=u.call(this)),!s.hash.includeZero&&!u||r.isEmpty(u)?s.inverse(this):s.fn(this)}),i.registerHelper("unless",function(u,s){if(arguments.length!=2)throw new o.default("#unless requires exactly one argument");return i.helpers.if.call(this,u,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(Hq,zg);var Ug={},Wq={get exports(){return Ug},set exports(e){Ug=e}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var r=[void 0],a=arguments[arguments.length-1],o=0;o<arguments.length-1;o++)r.push(arguments[o]);var i=1;a.hash.level!=null?i=a.hash.level:a.data&&a.data.level!=null&&(i=a.data.level),r[0]=i,n.log.apply(n,r)})},e.exports=t.default})(Wq,Ug);var Hg={},Gq={get exports(){return Hg},set exports(e){Hg=e}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(r,a,o){return r&&o.lookupProperty(r,a)})},e.exports=t.default})(Gq,Hg);var Wg={},Kq={get exports(){return Wg},set exports(e){Wg=e}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Qr,a=ao,o=n(a);t.default=function(i){i.registerHelper("with",function(u,s){if(arguments.length!=2)throw new o.default("#with requires exactly one argument");r.isFunction(u)&&(u=u.call(this));var l=s.fn;if(r.isEmpty(u))return s.inverse(this);var c=s.data;return s.data&&s.ids&&(c=r.createFrame(s.data),c.contextPath=r.appendContextPath(s.data.contextPath,s.ids[0])),l(u,{data:c,blockParams:r.blockParams([u],[c&&c.contextPath])})})},e.exports=t.default})(Kq,Wg),Xd.__esModule=!0,Xd.registerDefaultHelpers=s$,Xd.moveHelperToHooks=l$;function Kc(e){return e&&e.__esModule?e:{default:e}}var Xq=Rg,Yq=Kc(Xq),Jq=jg,Zq=Kc(Jq),Qq=Vg,qq=Kc(Qq),$q=zg,e$=Kc($q),t$=Ug,n$=Kc(t$),r$=Hg,i$=Kc(r$),a$=Wg,o$=Kc(a$);function s$(e){Yq.default(e),Zq.default(e),qq.default(e),e$.default(e),n$.default(e),i$.default(e),o$.default(e)}function l$(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])}var Zx={},Gg={},u$={get exports(){return Gg},set exports(e){Gg=e}};(function(e,t){t.__esModule=!0;var n=Qr;t.default=function(r){r.registerDecorator("inline",function(a,o,i,u){var s=a;return o.partials||(o.partials={},s=function(l,c){var f=i.partials;i.partials=n.extend({},f,o.partials);var h=a(l,c);return i.partials=f,h}),o.partials[u.args[0]]=u.fn,s})},e.exports=t.default})(u$,Gg),Zx.__esModule=!0,Zx.registerDefaultDecorators=h$;function c$(e){return e&&e.__esModule?e:{default:e}}var f$=Gg,p$=c$(f$);function h$(e){p$.default(e)}var Yd={},d$={get exports(){return Yd},set exports(e){Yd=e}};(function(e,t){t.__esModule=!0;var n=Qr,r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(o){if(typeof o=="string"){var i=n.indexOf(r.methodMap,o.toLowerCase());i>=0?o=i:o=parseInt(o,10)}return o},log:function(o){if(o=r.lookupLevel(o),typeof console<"u"&&r.lookupLevel(r.level)<=o){var i=r.methodMap[o];console[i]||(i="log");for(var u=arguments.length,s=Array(u>1?u-1:0),l=1;l<u;l++)s[l-1]=arguments[l];console[i].apply(console,s)}}};t.default=r,e.exports=t.default})(d$,Yd);var Up={},Qx={};Qx.__esModule=!0,Qx.createNewLookupObject=m$;var v$=Qr;function m$(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return v$.extend.apply(void 0,[Object.create(null)].concat(t))}Up.__esModule=!0,Up.createProtoAccessControl=b$,Up.resultIsAllowed=x$,Up.resetLoggedProperties=w$;function g$(e){return e&&e.__esModule?e:{default:e}}var nP=Qx,y$=Yd,_$=g$(y$),Kg=Object.create(null);function b$(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:nP.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:nP.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function x$(e,t,n){return rP(typeof e=="function"?t.methods:t.properties,n)}function rP(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(E$(t),!1)}function E$(e){Kg[e]!==!0&&(Kg[e]=!0,_$.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
21
21
|
You can add a runtime option to disable the check or this warning:
|
|
22
22
|
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function w$(){Object.keys(Kg).forEach(function(e){delete Kg[e]})}Ro.__esModule=!0,Ro.HandlebarsEnvironment=eE;function iP(e){return e&&e.__esModule?e:{default:e}}var Xc=Qr,S$=ao,qx=iP(S$),C$=Xd,A$=Zx,T$=Yd,Xg=iP(T$),D$=Up,P$="4.7.8";Ro.VERSION=P$;var O$=8;Ro.COMPILER_REVISION=O$;var k$=7;Ro.LAST_COMPATIBLE_COMPILER_REVISION=k$;var B$={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Ro.REVISION_CHANGES=B$;var $x="[object Object]";function eE(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},C$.registerDefaultHelpers(this),A$.registerDefaultDecorators(this)}eE.prototype={constructor:eE,logger:Xg.default,log:Xg.default.log,registerHelper:function(t,n){if(Xc.toString.call(t)===$x){if(n)throw new qx.default("Arg not supported with multiple helpers");Xc.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(Xc.toString.call(t)===$x)Xc.extend(this.partials,t);else{if(typeof n>"u")throw new qx.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=n}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,n){if(Xc.toString.call(t)===$x){if(n)throw new qx.default("Arg not supported with multiple decorators");Xc.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){D$.resetLoggedProperties()}};var I$=Xg.default.log;Ro.log=I$,Ro.createFrame=Xc.createFrame,Ro.logger=Xg.default;var Yg={},N$={get exports(){return Yg},set exports(e){Yg=e}};(function(e,t){t.__esModule=!0;function n(r){this.string=r}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(N$,Yg);var Du={},tE={};tE.__esModule=!0,tE.wrapHelper=F$;function F$(e,t){if(typeof e!="function")return e;var n=function(){var a=arguments[arguments.length-1];return arguments[arguments.length-1]=t(a),e.apply(this,arguments)};return n}Du.__esModule=!0,Du.checkRevision=z$,Du.template=U$,Du.wrapProgram=Jg,Du.resolvePartial=H$,Du.invokePartial=W$,Du.noop=sP;function M$(e){return e&&e.__esModule?e:{default:e}}function L$(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var R$=Qr,Ml=L$(R$),j$=ao,Ll=M$(j$),Rl=Ro,aP=Xd,V$=tE,oP=Up;function z$(e){var t=e&&e[0]||1,n=Rl.COMPILER_REVISION;if(!(t>=Rl.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Rl.COMPILER_REVISION))if(t<Rl.LAST_COMPATIBLE_COMPILER_REVISION){var r=Rl.REVISION_CHANGES[n],a=Rl.REVISION_CHANGES[t];throw new Ll.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+a+").")}else throw new Ll.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}function U$(e,t){if(!t)throw new Ll.default("No environment passed to template");if(!e||!e.main)throw new Ll.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&e.compiler[0]===7;function r(i,u,s){s.hash&&(u=Ml.extend({},u,s.hash),s.ids&&(s.ids[0]=!0)),i=t.VM.resolvePartial.call(this,i,u,s);var l=Ml.extend({},s,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),c=t.VM.invokePartial.call(this,i,u,l);if(c==null&&t.compile&&(s.partials[s.name]=t.compile(i,e.compilerOptions,t),c=s.partials[s.name](u,l)),c!=null){if(s.indent){for(var f=c.split(`
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as d, computed as k, resolveComponent as S, openBlock as i, createBlock as p, mergeProps as m, unref as t, withCtx as n, toHandlers as j, createSlots as v, renderList as h, resolveDynamicComponent as D, createCommentVNode as F, createVNode as V } from "vue";
|
|
2
2
|
import { a as $ } from "./enum-type-493ca5fb.js";
|
|
3
3
|
import { I as B } from "./field-base-5547436d.js";
|
|
4
|
-
import { _ as E } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
5
|
-
import { b as I } from "./share-field-
|
|
4
|
+
import { _ as E } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-6f20c3a7.js";
|
|
5
|
+
import { b as I } from "./share-field-a5dabda9.js";
|
|
6
6
|
import { w as O } from "./expression-6a929144.js";
|
|
7
|
-
import { D as P } from "./drag-wrapper-
|
|
8
|
-
import { g as W } from "./slot-
|
|
7
|
+
import { D as P } from "./drag-wrapper-9226c9c1.js";
|
|
8
|
+
import { g as W } from "./slot-0ceb202b.js";
|
|
9
9
|
import "./widget-base-4c2d6265.js";
|
|
10
10
|
import "./uuid-42b6e595.js";
|
|
11
|
-
import "./index-
|
|
11
|
+
import "./index-0f8ec041.js";
|
|
12
12
|
import "./enum-type-f8c7654b.js";
|
|
13
|
-
import "./baseImp-
|
|
13
|
+
import "./baseImp-e1c6b8ae.js";
|
|
14
14
|
import "./icon-e9532b43.js";
|
|
15
15
|
import "./dialog-47f6c88e.js";
|
|
16
16
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
@@ -18,7 +18,7 @@ import "element-plus";
|
|
|
18
18
|
import "./index-05c0fa7f.js";
|
|
19
19
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
20
20
|
import "./fieldobj-658deb6a.js";
|
|
21
|
-
import "./multirow-
|
|
21
|
+
import "./multirow-5e4508c7.js";
|
|
22
22
|
import "./source-map-b04aec4a.js";
|
|
23
23
|
import "./esprima-e8d15055.js";
|
|
24
24
|
const z = d({ componentName: O.FieldWidget }), se = /* @__PURE__ */ d({
|