hlrender 0.0.75 → 0.0.77
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-de9dc089.js → affix-widget-0636ed2c.js} +9 -9
- package/{alert-widget-f788d795.js → alert-widget-859baeeb.js} +9 -9
- package/{anchor-widget-bc09e584.js → anchor-widget-9a05ecb9.js} +6 -6
- package/{auto-complete-widget-fab142b7.js → auto-complete-widget-2d8df918.js} +8 -8
- package/{avatar-widget-3c634d86.js → avatar-widget-3a6f717a.js} +9 -9
- package/{backtop-widget-81d6831d.js → backtop-widget-d6d663ce.js} +9 -9
- package/{badge-widget-b8e486b6.js → badge-widget-3ef839b8.js} +9 -9
- package/{baseImp-538197fc.js → baseImp-c3f2b9b7.js} +3 -5
- package/{breadcrumb-widget-bc4b7b98.js → breadcrumb-widget-f95787ce.js} +6 -6
- package/{button-widget-dc7ab546.js → button-widget-70e1dcba.js} +9 -9
- package/{cache-widget-2f6ad52f.js → cache-widget-12b01f20.js} +7 -7
- package/{card-widget-4ac7ee97.js → card-widget-49485e0f.js} +7 -7
- package/{carousel-widget-d0b1f340.js → carousel-widget-55708867.js} +6 -6
- package/{cascader-widget-087f01a5.js → cascader-widget-6a2ecd16.js} +7 -7
- package/{chart-widget-9eea3d45.js → chart-widget-3635b95e.js} +6 -6
- package/{checkbox-widget-48ef28fe.js → checkbox-widget-4e2d5208.js} +7 -7
- package/{collapse-widget-d5d543ce.js → collapse-widget-4c1295f6.js} +6 -6
- package/{color-picker-widget-604707d3.js → color-picker-widget-33f3978f.js} +7 -7
- package/{cont-cell-widget-dbe5fe12.js → cont-cell-widget-339f17f2.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-b67b0644.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-5fe7bf75.js} +4 -4
- package/{cont-widget-235c2a60.js → cont-widget-d7cf3744.js} +4 -4
- package/{content-wrapper-c99d4029.js → content-wrapper-8ae5259d.js} +2 -2
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-62458bff.js → content-wrapper.vue_vue_type_script_setup_true_lang-00e75a4c.js} +1 -1
- package/{date-picker-range-widget-0aedd09b.js → date-picker-range-widget-20a1f741.js} +7 -7
- package/{date-picker-widget-e0e4b669.js → date-picker-widget-b0fd2312.js} +7 -7
- package/{default-slot-widget-406c35bc.js → default-slot-widget-2a36a22a.js} +7 -7
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-f5c2e1ca.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-3ba574d1.js} +4 -4
- package/{descriptions-widget-f6b162a3.js → descriptions-widget-fb22efd9.js} +7 -7
- package/{dialog-widget-d8f463f2.js → dialog-widget-d62ffaac.js} +8 -8
- package/{divider-widget-4bc29bef.js → divider-widget-7c1de73d.js} +9 -9
- package/{drag-wrapper-a8459c51.js → drag-wrapper-a1f3cf80.js} +4 -4
- package/{drawer-widget-8bc59b1f.js → drawer-widget-6c700ecd.js} +8 -8
- package/{dropdown-widget-0c0a81fa.js → dropdown-widget-3e66de59.js} +7 -7
- package/{empty-widget-13c3d4b2.js → empty-widget-b8d41f63.js} +9 -9
- package/{feedback-widget-5361b1b5.js → feedback-widget-9e5a5346.js} +8 -8
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-2bb127c3.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-34349c75.js} +4 -4
- package/{file-upload-widget-4f0920c2.js → file-upload-widget-8e569392.js} +8 -8
- package/{form-item-wrapper-57a35b31.js → form-item-wrapper-95388655.js} +3 -3
- package/{form-widget-a94de2d9.js → form-widget-ff464b47.js} +7 -7
- package/{grid-col-widget-bbe48502.js → grid-col-widget-5a22ea17.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-e7c718d0.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-033d2a15.js} +4 -4
- package/{grid-widget-df3b9604.js → grid-widget-2144e9f9.js} +4 -4
- package/{html-text-widget-b94c67c9.js → html-text-widget-153d745d.js} +7 -7
- package/{iframe-widget-ef0656ee.js → iframe-widget-f0dab80d.js} +6 -6
- package/{image-widget-f78d447a.js → image-widget-7dfb483d.js} +6 -6
- package/{index-38b6c3c9.js → index-d2889274.js} +1 -1
- package/{input-number-widget-b08f5709.js → input-number-widget-8f50b912.js} +7 -7
- package/{input-widget-373574c0.js → input-widget-564eb3d8.js} +8 -8
- package/{link-widget-4ea02982.js → link-widget-18d1bb66.js} +9 -9
- package/{ltable-col-widget-9735563f.js → ltable-col-widget-c0390674.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-a9b497bb.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-8c8608d4.js} +6 -6
- package/{ltable-widget-cc013be9.js → ltable-widget-86ccdfa9.js} +4 -4
- package/{menu-widget-49091861.js → menu-widget-67e80a16.js} +7 -7
- package/{model-widget-9b755a41.js → model-widget-61caa626.js} +6 -6
- package/{multirow-df74092f.js → multirow-2e9af15c.js} +3 -3
- package/{multirow-widget-8cc36e29.js → multirow-widget-3c54a68d.js} +7 -7
- package/package.json +1 -1
- package/{pagination-widget-04dfa067.js → pagination-widget-927195de.js} +6 -6
- package/{picture-upload-widget-d2d6cdc5.js → picture-upload-widget-f8c67eca.js} +8 -8
- package/{progress-widget-ef51afc1.js → progress-widget-26d3fdad.js} +7 -7
- package/{radio-widget-aa6b101b.js → radio-widget-78760915.js} +7 -7
- package/{range-widget-67ac998c.js → range-widget-fd1ec9a9.js} +8 -8
- package/{rate-widget-c4032d3d.js → rate-widget-579b7773.js} +7 -7
- package/render.es.js +23 -23
- package/render.umd.js +1 -1
- package/{result-widget-322ac285.js → result-widget-78ab13dc.js} +7 -7
- package/{rich-editor-widget-ac77ded5.js → rich-editor-widget-26b0693a.js} +7 -7
- package/{router-widget-f6b78de1.js → router-widget-72a89fd7.js} +6 -6
- package/{select-widget-4f624361.js → select-widget-ff116436.js} +7 -7
- package/{sfc-c6882f1f.js → sfc-5552bf81.js} +3 -3
- package/{share-field-8ca563ee.js → share-field-575a3056.js} +4 -4
- package/{share-file-89612645.js → share-file-2c1cf71a.js} +2 -2
- package/{slider-widget-290de60c.js → slider-widget-ce3196d1.js} +7 -7
- package/{slot-137db49f.js → slot-36040852.js} +1 -1
- package/{static-text-widget-7fc113a2.js → static-text-widget-1542a8df.js} +7 -7
- package/{steps-widget-608bd69f.js → steps-widget-eddb81e7.js} +6 -6
- package/{subMenu-widget-9308c247.js → subMenu-widget-b5995010.js} +2 -2
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-d9523a8c.js → subMenu-widget.vue_vue_type_script_setup_true_lang-c642315b.js} +1 -1
- package/{switch-widget-2d9da7b6.js → switch-widget-efe7a6f4.js} +7 -7
- package/{tab-pane-widget-3c1c3466.js → tab-pane-widget-4289214c.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-c9a0bed9.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-79d06f60.js} +4 -4
- package/{table-col-widget-864b5044.js → table-col-widget-ff7df5e0.js} +6 -6
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-ac62bab2.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-b8d134b5.js} +4 -4
- package/{table-widget-717ceb57.js → table-widget-01fd7eb6.js} +8 -8
- package/{tabs-widget-56b3d648.js → tabs-widget-79073e6d.js} +5 -5
- package/{tag-widget-7b0b80dc.js → tag-widget-9beef8d7.js} +9 -9
- package/{text-widget-58cda516.js → text-widget-920a0674.js} +9 -9
- package/{textarea-widget-bb4a3956.js → textarea-widget-f2d37a85.js} +7 -7
- package/{time-picker-range-widget-db0426ae.js → time-picker-range-widget-adedb981.js} +7 -7
- package/{time-picker-widget-d68daf3e.js → time-picker-widget-c7fc9d86.js} +7 -7
- package/{time-select-widget-6e59ccf7.js → time-select-widget-4f11d056.js} +7 -7
- package/{tmpl-widget-6b895954.js → tmpl-widget-814e5e93.js} +7 -7
- package/{tree-select-widget-794c7cc7.js → tree-select-widget-f29a0737.js} +7 -7
- package/{tree-widget-32724178.js → tree-widget-b62f1dbf.js} +6 -6
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b7c78b19.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7e4b09e3.js} +2 -2
- package/{wrapper-widget-dfb433f1.js → wrapper-widget-d22fada9.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}])})})(yJ);const _J=Ym({__proto__:null,default:ug(xi)},[xi]),bJ=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},dD=e=>{if(e==null||e==null)return null;try{return xi.parseScript(e)}catch(t){return console.log(t,e),null}};function xJ(e){return dD(e==null?void 0:e.replaceAll(/return/g," "))}function vD(e){const t=[],n=xJ(e);function r(i){if(i.type===xi.Syntax.MemberExpression){const u={root:"",properties:[]};a(i,u),u.root&&t.push(u)}else i.type===xi.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===xi.Syntax.MemberExpression?a(s,u):s.type===xi.Syntax.Identifier&&(u.root=s.name),l.type===xi.Syntax.Identifier?u.properties.push(l.name):(l.type===xi.Syntax.Literal&&typeof l.value=="string"||l.type===xi.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===xi.Syntax.Identifier){const c={root:l.name,properties:[]};u.push(c)}})}return r(n),t}function EJ(e){var t=vD(e),n=t.map(r=>r.root);return fT(n)}function mD(){const e=()=>new Promise((n,r)=>{Promise.resolve().then(()=>Noe).then(a=>{Promise.resolve().then(()=>Foe).then(o=>{Promise.resolve().then(()=>_J).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 gD=(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=/`},wJ=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},SJ=e=>{gD(e,"",-1)};function CJ(){const t=document.cookie.split("; "),n={};return t.forEach(r=>{const[a,o]=r.split("=");Lc(a)||(n[a]=o)}),n}const yD={get(e){return wJ(e)},set(e,t,n){gD(e,t,n)},remove(e){SJ(e)},getAll(){return CJ()}};function _D(e,t){return function(){return e.apply(t,arguments)}}const{toString:AJ}=Object.prototype,{getPrototypeOf:_x}=Object,cg=(e=>t=>{const n=AJ.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Js=e=>(e=e.toLowerCase(),t=>cg(t)===e),fg=e=>t=>typeof t===e,{isArray:kp}=Array,Fd=fg("undefined");function TJ(e){return e!==null&&!Fd(e)&&e.constructor!==null&&!Fd(e.constructor)&&Mo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bD=Js("ArrayBuffer");function DJ(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bD(e.buffer),t}const PJ=fg("string"),Mo=fg("function"),xD=fg("number"),pg=e=>e!==null&&typeof e=="object",OJ=e=>e===!0||e===!1,hg=e=>{if(cg(e)!=="object")return!1;const t=_x(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kJ=Js("Date"),BJ=Js("File"),IJ=Js("Blob"),NJ=Js("FileList"),FJ=e=>pg(e)&&Mo(e.pipe),MJ=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Mo(e.append)&&((t=cg(e))==="formdata"||t==="object"&&Mo(e.toString)&&e.toString()==="[object FormData]"))},LJ=Js("URLSearchParams"),RJ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Md(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),kp(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 ED(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 wD=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),SD=e=>!Fd(e)&&e!==wD;function bx(){const{caseless:e}=SD(this)&&this||{},t={},n=(r,a)=>{const o=e&&ED(t,a)||a;hg(t[o])&&hg(r)?t[o]=bx(t[o],r):hg(r)?t[o]=bx({},r):kp(r)?t[o]=r.slice():t[o]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Md(arguments[r],n);return t}const jJ=(e,t,n,{allOwnKeys:r}={})=>(Md(t,(a,o)=>{n&&Mo(a)?e[o]=_D(a,n):e[o]=a},{allOwnKeys:r}),e),VJ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zJ=(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)},UJ=(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&&_x(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},HJ=(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},WJ=e=>{if(!e)return null;if(kp(e))return e;let t=e.length;if(!xD(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},GJ=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_x(Uint8Array)),KJ=(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])}},XJ=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},YJ=Js("HTMLFormElement"),JJ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),CD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ZJ=Js("RegExp"),AD=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Md(n,(a,o)=>{t(a,o,e)!==!1&&(r[o]=a)}),Object.defineProperties(e,r)},QJ=e=>{AD(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+"'")})}})},qJ=(e,t)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return kp(e)?r(e):r(String(e).split(t)),n},$J=()=>{},eZ=(e,t)=>(e=+e,Number.isFinite(e)?e:t),xx="abcdefghijklmnopqrstuvwxyz",TD="0123456789",DD={DIGIT:TD,ALPHA:xx,ALPHA_DIGIT:xx+xx.toUpperCase()+TD},tZ=(e=16,t=DD.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function nZ(e){return!!(e&&Mo(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const rZ=e=>{const t=new Array(10),n=(r,a)=>{if(pg(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const o=kp(r)?[]:{};return Md(r,(i,u)=>{const s=n(i,a+1);!Fd(s)&&(o[u]=s)}),t[a]=void 0,o}}return r};return n(e,0)},iZ=Js("AsyncFunction"),Pt={isArray:kp,isArrayBuffer:bD,isBuffer:TJ,isFormData:MJ,isArrayBufferView:DJ,isString:PJ,isNumber:xD,isBoolean:OJ,isObject:pg,isPlainObject:hg,isUndefined:Fd,isDate:kJ,isFile:BJ,isBlob:IJ,isRegExp:ZJ,isFunction:Mo,isStream:FJ,isURLSearchParams:LJ,isTypedArray:GJ,isFileList:NJ,forEach:Md,merge:bx,extend:jJ,trim:RJ,stripBOM:VJ,inherits:zJ,toFlatObject:UJ,kindOf:cg,kindOfTest:Js,endsWith:HJ,toArray:WJ,forEachEntry:KJ,matchAll:XJ,isHTMLForm:YJ,hasOwnProperty:CD,hasOwnProp:CD,reduceDescriptors:AD,freezeMethods:QJ,toObjectSet:qJ,toCamelCase:JJ,noop:$J,toFiniteNumber:eZ,findKey:ED,global:wD,isContextDefined:SD,ALPHABET:DD,generateString:tZ,isSpecCompliantForm:nZ,toJSONObject:rZ,isAsyncFn:iZ,isThenable:e=>e&&(pg(e)||Mo(e))&&Mo(e.then)&&Mo(e.catch)};function kr(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)}Pt.inherits(kr,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:Pt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const PD=kr.prototype,OD={};["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=>{OD[e]={value:e}}),Object.defineProperties(kr,OD),Object.defineProperty(PD,"isAxiosError",{value:!0}),kr.from=(e,t,n,r,a,o)=>{const i=Object.create(PD);return Pt.toFlatObject(e,i,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),kr.call(i,e.message,t,n,r,a),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const aZ=null;function Ex(e){return Pt.isPlainObject(e)||Pt.isArray(e)}function kD(e){return Pt.endsWith(e,"[]")?e.slice(0,-2):e}function BD(e,t,n){return e?e.concat(t).map(function(a,o){return a=kD(a),!n&&o?"["+a+"]":a}).join(n?".":""):t}function oZ(e){return Pt.isArray(e)&&!e.some(Ex)}const sZ=Pt.toFlatObject(Pt,{},null,function(t){return/^is[A-Z]/.test(t)});function dg(e,t,n){if(!Pt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Pt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!Pt.isUndefined(p[m])});const r=n.metaTokens,a=n.visitor||c,o=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&Pt.isSpecCompliantForm(t);if(!Pt.isFunction(a))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(Pt.isDate(v))return v.toISOString();if(!s&&Pt.isBlob(v))throw new kr("Blob is not supported. Use a Buffer instead.");return Pt.isArrayBuffer(v)||Pt.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(Pt.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(Pt.isArray(v)&&oZ(v)||(Pt.isFileList(v)||Pt.endsWith(m,"[]"))&&(g=Pt.toArray(v)))return m=kD(m),g.forEach(function(b,_){!(Pt.isUndefined(b)||b===null)&&t.append(i===!0?BD([m],_,o):i===null?m:m+"[]",l(b))}),!1}return Ex(v)?!0:(t.append(BD(p,m,o),l(v)),!1)}const f=[],h=Object.assign(sZ,{defaultVisitor:c,convertValue:l,isVisitable:Ex});function d(v,m){if(!Pt.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(v),Pt.forEach(v,function(g,y){(!(Pt.isUndefined(g)||g===null)&&a.call(t,g,Pt.isString(y)?y.trim():y,m,h))===!0&&d(g,m?m.concat(y):[y])}),f.pop()}}if(!Pt.isObject(e))throw new TypeError("data must be an object");return d(e),t}function ID(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Sx(e,t){this._pairs=[],e&&dg(e,this,t)}const ND=Sx.prototype;ND.append=function(t,n){this._pairs.push([t,n])},ND.toString=function(t){const n=t?function(r){return t.call(this,r,ID)}:ID;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function lZ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function FD(e,t,n){if(!t)return e;const r=n&&n.encode||lZ,a=n&&n.serialize;let o;if(a?o=a(t,n):o=Pt.isURLSearchParams(t)?t.toString():new Sx(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class uZ{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){Pt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const MD=uZ,LD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cZ=typeof URLSearchParams<"u"?URLSearchParams:Sx,fZ=typeof FormData<"u"?FormData:null,pZ=typeof Blob<"u"?Blob:null,hZ=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),dZ=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Zs={isBrowser:!0,classes:{URLSearchParams:cZ,FormData:fZ,Blob:pZ},isStandardBrowserEnv:hZ,isStandardBrowserWebWorkerEnv:dZ,protocols:["http","https","file","blob","url","data"]};function vZ(e,t){return dg(e,new Zs.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,o){return Zs.isNode&&Pt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function mZ(e){return Pt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gZ(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 RD(e){function t(n,r,a,o){let i=n[o++];const u=Number.isFinite(+i),s=o>=n.length;return i=!i&&Pt.isArray(a)?a.length:i,s?(Pt.hasOwnProp(a,i)?a[i]=[a[i],r]:a[i]=r,!u):((!a[i]||!Pt.isObject(a[i]))&&(a[i]=[]),t(n,r,a[i],o)&&Pt.isArray(a[i])&&(a[i]=gZ(a[i])),!u)}if(Pt.isFormData(e)&&Pt.isFunction(e.entries)){const n={};return Pt.forEachEntry(e,(r,a)=>{t(mZ(r),a,n,0)}),n}return null}const yZ={"Content-Type":void 0};function _Z(e,t,n){if(Pt.isString(e))try{return(t||JSON.parse)(e),Pt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const vg={transitional:LD,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=Pt.isObject(t);if(o&&Pt.isHTMLForm(t)&&(t=new FormData(t)),Pt.isFormData(t))return a&&a?JSON.stringify(RD(t)):t;if(Pt.isArrayBuffer(t)||Pt.isBuffer(t)||Pt.isStream(t)||Pt.isFile(t)||Pt.isBlob(t))return t;if(Pt.isArrayBufferView(t))return t.buffer;if(Pt.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 vZ(t,this.formSerializer).toString();if((u=Pt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return dg(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),_Z(t)):t}],transformResponse:[function(t){const n=this.transitional||vg.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&Pt.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"?kr.from(u,kr.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:Zs.classes.FormData,Blob:Zs.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Pt.forEach(["delete","get","head"],function(t){vg.headers[t]={}}),Pt.forEach(["post","put","patch"],function(t){vg.headers[t]=Pt.merge(yZ)});const Cx=vg,bZ=Pt.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"]),xZ=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]&&bZ[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},jD=Symbol("internals");function Ld(e){return e&&String(e).trim().toLowerCase()}function mg(e){return e===!1||e==null?e:Pt.isArray(e)?e.map(mg):String(e)}function EZ(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 wZ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ax(e,t,n,r,a){if(Pt.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!Pt.isString(t)){if(Pt.isString(r))return t.indexOf(r)!==-1;if(Pt.isRegExp(r))return r.test(t)}}function SZ(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function CZ(e,t){const n=Pt.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 gg{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function o(u,s,l){const c=Ld(s);if(!c)throw new Error("header name must be a non-empty string");const f=Pt.findKey(a,c);(!f||a[f]===void 0||l===!0||l===void 0&&a[f]!==!1)&&(a[f||s]=mg(u))}const i=(u,s)=>Pt.forEach(u,(l,c)=>o(l,c,s));return Pt.isPlainObject(t)||t instanceof this.constructor?i(t,n):Pt.isString(t)&&(t=t.trim())&&!wZ(t)?i(xZ(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Ld(t),t){const r=Pt.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return EZ(a);if(Pt.isFunction(n))return n.call(this,a,r);if(Pt.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ld(t),t){const r=Pt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ax(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function o(i){if(i=Ld(i),i){const u=Pt.findKey(r,i);u&&(!n||Ax(r,r[u],u,n))&&(delete r[u],a=!0)}}return Pt.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||Ax(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const n=this,r={};return Pt.forEach(this,(a,o)=>{const i=Pt.findKey(r,o);if(i){n[i]=mg(a),delete n[o];return}const u=t?SZ(o):String(o).trim();u!==o&&delete n[o],n[u]=mg(a),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Pt.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&Pt.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[jD]=this[jD]={accessors:{}}).accessors,a=this.prototype;function o(i){const u=Ld(i);r[u]||(CZ(a,i),r[u]=!0)}return Pt.isArray(t)?t.forEach(o):o(t),this}}gg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Pt.freezeMethods(gg.prototype),Pt.freezeMethods(gg);const kl=gg;function Tx(e,t){const n=this||Cx,r=t||n,a=kl.from(r.headers);let o=r.data;return Pt.forEach(e,function(u){o=u.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function VD(e){return!!(e&&e.__CANCEL__)}function Rd(e,t,n){kr.call(this,e??"canceled",kr.ERR_CANCELED,t,n),this.name="CanceledError"}Pt.inherits(Rd,kr,{__CANCEL__:!0});function AZ(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new kr("Request failed with status code "+n.status,[kr.ERR_BAD_REQUEST,kr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const TZ=Zs.isStandardBrowserEnv?function(){return{write:function(n,r,a,o,i,u){const s=[];s.push(n+"="+encodeURIComponent(r)),Pt.isNumber(a)&&s.push("expires="+new Date(a).toGMTString()),Pt.isString(o)&&s.push("path="+o),Pt.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 DZ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function PZ(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function zD(e,t){return e&&!DZ(t)?PZ(e,t):t}const OZ=Zs.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=Pt.isString(i)?a(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function kZ(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function BZ(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 UD(e,t){let n=0;const r=BZ(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 yg={http:aZ,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let a=e.data;const o=kl.from(e.headers).normalize(),i=e.responseType;let u;function s(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}Pt.isFormData(a)&&(Zs.isStandardBrowserEnv||Zs.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=zD(e.baseURL,e.url);l.open(e.method.toUpperCase(),FD(c,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function f(){if(!l)return;const d=kl.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};AZ(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 kr("Request aborted",kr.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new kr("Network Error",kr.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||LD;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new kr(v,m.clarifyTimeoutError?kr.ETIMEDOUT:kr.ECONNABORTED,e,l)),l=null},Zs.isStandardBrowserEnv){const d=(e.withCredentials||OZ(c))&&e.xsrfCookieName&&TZ.read(e.xsrfCookieName);d&&o.set(e.xsrfHeaderName,d)}a===void 0&&o.setContentType(null),"setRequestHeader"in l&&Pt.forEach(o.toJSON(),function(v,m){l.setRequestHeader(m,v)}),Pt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",UD(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",UD(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=d=>{l&&(r(!d||d.type?new Rd(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=kZ(c);if(h&&Zs.protocols.indexOf(h)===-1){r(new kr("Unsupported protocol "+h+":",kr.ERR_BAD_REQUEST,e));return}l.send(a||null)})}};Pt.forEach(yg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const IZ={getAdapter:e=>{e=Pt.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let a=0;a<t&&(n=e[a],!(r=Pt.isString(n)?yg[n.toLowerCase()]:n));a++);if(!r)throw r===!1?new kr(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Pt.hasOwnProp(yg,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!Pt.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:yg};function Dx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rd(null,e)}function HD(e){return Dx(e),e.headers=kl.from(e.headers),e.data=Tx.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),IZ.getAdapter(e.adapter||Cx.adapter)(e).then(function(r){return Dx(e),r.data=Tx.call(e,e.transformResponse,r),r.headers=kl.from(r.headers),r},function(r){return VD(r)||(Dx(e),r&&r.response&&(r.response.data=Tx.call(e,e.transformResponse,r.response),r.response.headers=kl.from(r.response.headers))),Promise.reject(r)})}const WD=e=>e instanceof kl?e.toJSON():e;function Bp(e,t){t=t||{};const n={};function r(l,c,f){return Pt.isPlainObject(l)&&Pt.isPlainObject(c)?Pt.merge.call({caseless:f},l,c):Pt.isPlainObject(c)?Pt.merge({},c):Pt.isArray(c)?c.slice():c}function a(l,c,f){if(Pt.isUndefined(c)){if(!Pt.isUndefined(l))return r(void 0,l,f)}else return r(l,c,f)}function o(l,c){if(!Pt.isUndefined(c))return r(void 0,c)}function i(l,c){if(Pt.isUndefined(c)){if(!Pt.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(WD(l),WD(c),!0)};return Pt.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=s[c]||a,h=f(e[c],t[c],c);Pt.isUndefined(h)&&f!==u||(n[c]=h)}),n}const GD="1.4.0",Px={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Px[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const KD={};Px.transitional=function(t,n,r){function a(o,i){return"[Axios v"+GD+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new kr(a(i," has been removed"+(n?" in "+n:"")),kr.ERR_DEPRECATED);return n&&!KD[i]&&(KD[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 NZ(e,t,n){if(typeof e!="object")throw new kr("options must be an object",kr.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 kr("option "+o+" must be "+s,kr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new kr("Unknown option "+o,kr.ERR_BAD_OPTION)}}const Ox={assertOptions:NZ,validators:Px},Eu=Ox.validators;class _g{constructor(t){this.defaults=t,this.interceptors={request:new MD,response:new MD}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bp(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Ox.assertOptions(r,{silentJSONParsing:Eu.transitional(Eu.boolean),forcedJSONParsing:Eu.transitional(Eu.boolean),clarifyTimeoutError:Eu.transitional(Eu.boolean)},!1),a!=null&&(Pt.isFunction(a)?n.paramsSerializer={serialize:a}:Ox.assertOptions(a,{encode:Eu.function,serialize:Eu.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&Pt.merge(o.common,o[n.method]),i&&Pt.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=kl.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=[HD.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=HD.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=Bp(this.defaults,t);const n=zD(t.baseURL,t.url);return FD(n,t.params,t.paramsSerializer)}}Pt.forEach(["delete","get","head","options"],function(t){_g.prototype[t]=function(n,r){return this.request(Bp(r||{},{method:t,url:n,data:(r||{}).data}))}}),Pt.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,u){return this.request(Bp(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}_g.prototype[t]=n(),_g.prototype[t+"Form"]=n(!0)});const bg=_g;class kx{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 Rd(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 kx(function(a){t=a}),cancel:t}}}const FZ=kx;function MZ(e){return function(n){return e.apply(null,n)}}function LZ(e){return Pt.isObject(e)&&e.isAxiosError===!0}const Bx={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(Bx).forEach(([e,t])=>{Bx[t]=e});const RZ=Bx;function XD(e){const t=new bg(e),n=_D(bg.prototype.request,t);return Pt.extend(n,bg.prototype,t,{allOwnKeys:!0}),Pt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return XD(Bp(e,a))},n}const Ki=XD(Cx);Ki.Axios=bg,Ki.CanceledError=Rd,Ki.CancelToken=FZ,Ki.isCancel=VD,Ki.VERSION=GD,Ki.toFormData=dg,Ki.AxiosError=kr,Ki.Cancel=Ki.CanceledError,Ki.all=function(t){return Promise.all(t)},Ki.spread=MZ,Ki.isAxiosError=LZ,Ki.mergeConfig=Bp,Ki.AxiosHeaders=kl,Ki.formToJSON=e=>RD(Pt.isHTMLForm(e)?new FormData(e):e),Ki.HttpStatusCode=RZ,Ki.default=Ki;const YD=Ki,jZ=e=>{let t={};return e.map(n=>{t[n.name]=n.value}),t},VZ=e=>({moduleCache:{vue:vG},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)}}),JD=e=>{var n;if(!e)return null;(n=e==null?void 0:e.trim())!=null&&n.includes("<template>")||(e=`<template>${e}</template>`);const t=VZ(e);return x.defineAsyncComponent({loader:async()=>{const r=await Promise.resolve().then(()=>Loe),{loadModule:a}=r;return a("/myComponent.vue",t)}})},zZ=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 pa(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 UZ=function(e){return ZD(window.location.href,e)},ZD=function(e,t){const n=xg(e);return n==null?void 0:n[t]},HZ=e=>/^(?:%[0-9A-Fa-f]{2}|[A-Za-z0-9\-_.!~*'()]|%20)*$/.test(e),QD=function(){return xg(window.location.href)},qD=e=>{var t;return((t=e==null?void 0:e.split("?"))==null?void 0:t.at(0))||e||""},xg=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])||"";HZ(s)?t[u]=decodeURIComponent(s):t[u]=s}return t},$D=(e,t,n)=>{t=Object.assign(xg(e)||{},t),e=qD(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},WZ=e=>$D(e,QD()),e5=e=>{try{return new URL(e),!0}catch{return!1}},GZ=()=>{location.reload()},KZ=()=>{function e(u,s,l=!1){const c=E=>{const[w,S=""]=E.split("#",2),[A,P=""]=w.split("?",2);return{path:A.replace(/^#/,"").replace(/\/+$/,""),searchParams:new URLSearchParams(P),hashFragment:S}},f=c(u),h=c(s),d=l?new URLSearchParams(f.searchParams):new URLSearchParams;h.searchParams.forEach((E,w)=>{d.set(w,E)});const v=(E,w)=>{const S=E.split("/").filter(Boolean),A=w.split("/").filter(Boolean);for(const P of A)P!=="."&&(P===".."?S.length>0&&S.pop():S.push(P));return`/${S.join("/")}`},p=((E,w)=>w.startsWith("/")?`/${w.replace(/^\/+/,"")}`:v(E,h.path))(f.path,h.path),g=d.toString(),b=`${`${p}${g?`?${g}`:""}`}${h.hashFragment?`#${h.hashFragment}`:""}`;return(a()?`/#/${b}`:b).replace(/\/+/g,"/").replace(/^#\//,"#").replace(/%20/g,"+").replace(/[?#]/g,E=>E)}function t(u,s){return e(s,u)}const n=()=>window.location.hash,r=()=>window.location.pathname,a=()=>!!n(),o=u=>{u.startsWith("/")||(u="/"+u);const s=window.location.origin;return e5(u)||u.startsWith("http")?u:s+u};return{resolveByCurrentUrl:u=>{var l;const s=t(u,((l=n())==null?void 0:l.substring(1))||r());return o(s)}}},{resolveByCurrentUrl:XZ}=KZ(),Bl={buildUrl:$D,getBaseUrl:qD,getQueryParam:ZD,getLocationQueryParam:UZ,getQueryParams:xg,getLocationQueryParams:QD,buildUrlByLocalQuery:WZ,isUrl:e5,refresh:GZ,resolveByCurrentUrl:XZ};class Ix{constructor(){H(this,"type","ok");H(this,"body")}}class YZ{constructor(t){H(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 Ix;return n.type="ok",n.body=t,n}cancel(t){const n=new Ix;return n.type="cancel",n.body=t,n}close(t){const n=new Ix;return n.type="close",n.body=t,n}}function JZ(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 ZZ={install(e,t){const n=new YZ(e);e.config.globalProperties.$dzModal=n}},QZ=x.defineAsyncComponent(()=>Promise.resolve().then(()=>Ik));class qZ{constructor(){H(this,"fullscreen",{type:Boolean,default:!1});H(this,"width",{type:String});H(this,"height",{type:String});H(this,"title",{type:String});H(this,"url",{type:String});H(this,"dialogType",{type:Array});H(this,"callback",{type:Object})}}const $Z=new qZ,t5=(e,t)=>{const n=JZ(e);n==null||n.open(QZ,t,r=>{var u,s;const a=Kt(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 yo{static findUp(t,n,r={includeSelf:!0}){try{let a=t;for(;a;){if(console.log("正在查找",a,n),(r.includeSelf||a!==t)&&a.name===n)return console.log("window匹配",a),{window:a,iframe:a.frameElement};const o=a.frameElement;if((o==null?void 0:o.id)===n)return console.log("iframe匹配",o),{window:a,iframe:o};if(a===a.parent){console.log("到达顶层时停止",a);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=yo.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=yo.findByIframeId(n,t);if(a)return a;if(r==="up"||r==="both"){const o=yo.findUp(t,n);if(o)return o}if(r==="down"||r==="both"){const o=yo.findDown(t,n);if(o)return o}if(r==="both"){const o=yo.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 Eg=(e,t)=>(console.log("send to ",e,t),e?(e.postMessage(Qr(t),"*"),!0):!1),eQ=(e,t)=>{const n=yo.find(window,e);if(n)return Eg(n.window,t)},tQ=(e,t)=>Eg(e==null?void 0:e.contentWindow,t),nQ=e=>Eg(window.parent,e),rQ=(e,t=!1)=>{const n=r=>{e==null||e(r),t&&window.removeEventListener("message",n)};window.addEventListener("message",n)};function n5(){return{send:Eg,receive:rQ,sendToIframe:tQ,sendToIframeByName:eQ,sendToParent:nQ}}var Ip={},iQ={get exports(){return Ip},set exports(e){Ip=e}};(function(e,t){(function(){var n,r=0xdeadbeefcafe,a=(r&16777215)==15715070;function o(we,ke,je){we!=null&&(typeof we=="number"?this.fromNumber(we,ke,je):ke==null&&typeof we!="string"?this.fromString(we,256):this.fromString(we,ke))}function i(){return new o(null)}function u(we,ke,je,nt,Tt,Rt){for(;--Rt>=0;){var ln=ke*this[we++]+je[nt]+Tt;Tt=Math.floor(ln/67108864),je[nt++]=ln&67108863}return Tt}function s(we,ke,je,nt,Tt,Rt){for(var ln=ke&32767,pn=ke>>15;--Rt>=0;){var zr=this[we]&32767,si=this[we++]>>15,Sa=pn*zr+si*ln;zr=ln*zr+((Sa&32767)<<15)+je[nt]+(Tt&1073741823),Tt=(zr>>>30)+(Sa>>>15)+pn*si+(Tt>>>30),je[nt++]=zr&1073741823}return Tt}function l(we,ke,je,nt,Tt,Rt){for(var ln=ke&16383,pn=ke>>14;--Rt>=0;){var zr=this[we]&16383,si=this[we++]>>14,Sa=pn*zr+si*ln;zr=ln*zr+((Sa&16383)<<14)+je[nt]+Tt,Tt=(zr>>28)+(Sa>>14)+pn*si,je[nt++]=zr&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(we){return h.charAt(we)}function g(we,ke){var je=d[we.charCodeAt(ke)];return je??-1}function y(we){for(var ke=this.t-1;ke>=0;--ke)we[ke]=this[ke];we.t=this.t,we.s=this.s}function b(we){this.t=1,this.s=we<0?-1:0,we>0?this[0]=we:we<-1?this[0]=we+this.DV:this.t=0}function _(we){var ke=i();return ke.fromInt(we),ke}function E(we,ke){var je;if(ke==16)je=4;else if(ke==8)je=3;else if(ke==256)je=8;else if(ke==2)je=1;else if(ke==32)je=5;else if(ke==4)je=2;else{this.fromRadix(we,ke);return}this.t=0,this.s=0;for(var nt=we.length,Tt=!1,Rt=0;--nt>=0;){var ln=je==8?we[nt]&255:g(we,nt);if(ln<0){we.charAt(nt)=="-"&&(Tt=!0);continue}Tt=!1,Rt==0?this[this.t++]=ln:Rt+je>this.DB?(this[this.t-1]|=(ln&(1<<this.DB-Rt)-1)<<Rt,this[this.t++]=ln>>this.DB-Rt):this[this.t-1]|=ln<<Rt,Rt+=je,Rt>=this.DB&&(Rt-=this.DB)}je==8&&we[0]&128&&(this.s=-1,Rt>0&&(this[this.t-1]|=(1<<this.DB-Rt)-1<<Rt)),this.clamp(),Tt&&o.ZERO.subTo(this,this)}function w(){for(var we=this.s&this.DM;this.t>0&&this[this.t-1]==we;)--this.t}function S(we){if(this.s<0)return"-"+this.negate().toString(we);var ke;if(we==16)ke=4;else if(we==8)ke=3;else if(we==2)ke=1;else if(we==32)ke=5;else if(we==4)ke=2;else return this.toRadix(we);var je=(1<<ke)-1,nt,Tt=!1,Rt="",ln=this.t,pn=this.DB-ln*this.DB%ke;if(ln-- >0)for(pn<this.DB&&(nt=this[ln]>>pn)>0&&(Tt=!0,Rt=p(nt));ln>=0;)pn<ke?(nt=(this[ln]&(1<<pn)-1)<<ke-pn,nt|=this[--ln]>>(pn+=this.DB-ke)):(nt=this[ln]>>(pn-=ke)&je,pn<=0&&(pn+=this.DB,--ln)),nt>0&&(Tt=!0),Tt&&(Rt+=p(nt));return Tt?Rt:"0"}function A(){var we=i();return o.ZERO.subTo(this,we),we}function P(){return this.s<0?this.negate():this}function C(we){var ke=this.s-we.s;if(ke!=0)return ke;var je=this.t;if(ke=je-we.t,ke!=0)return this.s<0?-ke:ke;for(;--je>=0;)if((ke=this[je]-we[je])!=0)return ke;return 0}function D(we){var ke=1,je;return(je=we>>>16)!=0&&(we=je,ke+=16),(je=we>>8)!=0&&(we=je,ke+=8),(je=we>>4)!=0&&(we=je,ke+=4),(je=we>>2)!=0&&(we=je,ke+=2),(je=we>>1)!=0&&(we=je,ke+=1),ke}function O(){return this.t<=0?0:this.DB*(this.t-1)+D(this[this.t-1]^this.s&this.DM)}function k(we,ke){var je;for(je=this.t-1;je>=0;--je)ke[je+we]=this[je];for(je=we-1;je>=0;--je)ke[je]=0;ke.t=this.t+we,ke.s=this.s}function I(we,ke){for(var je=we;je<this.t;++je)ke[je-we]=this[je];ke.t=Math.max(this.t-we,0),ke.s=this.s}function N(we,ke){var je=we%this.DB,nt=this.DB-je,Tt=(1<<nt)-1,Rt=Math.floor(we/this.DB),ln=this.s<<je&this.DM,pn;for(pn=this.t-1;pn>=0;--pn)ke[pn+Rt+1]=this[pn]>>nt|ln,ln=(this[pn]&Tt)<<je;for(pn=Rt-1;pn>=0;--pn)ke[pn]=0;ke[Rt]=ln,ke.t=this.t+Rt+1,ke.s=this.s,ke.clamp()}function F(we,ke){ke.s=this.s;var je=Math.floor(we/this.DB);if(je>=this.t){ke.t=0;return}var nt=we%this.DB,Tt=this.DB-nt,Rt=(1<<nt)-1;ke[0]=this[je]>>nt;for(var ln=je+1;ln<this.t;++ln)ke[ln-je-1]|=(this[ln]&Rt)<<Tt,ke[ln-je]=this[ln]>>nt;nt>0&&(ke[this.t-je-1]|=(this.s&Rt)<<Tt),ke.t=this.t-je,ke.clamp()}function R(we,ke){for(var je=0,nt=0,Tt=Math.min(we.t,this.t);je<Tt;)nt+=this[je]-we[je],ke[je++]=nt&this.DM,nt>>=this.DB;if(we.t<this.t){for(nt-=we.s;je<this.t;)nt+=this[je],ke[je++]=nt&this.DM,nt>>=this.DB;nt+=this.s}else{for(nt+=this.s;je<we.t;)nt-=we[je],ke[je++]=nt&this.DM,nt>>=this.DB;nt-=we.s}ke.s=nt<0?-1:0,nt<-1?ke[je++]=this.DV+nt:nt>0&&(ke[je++]=nt),ke.t=je,ke.clamp()}function M(we,ke){var je=this.abs(),nt=we.abs(),Tt=je.t;for(ke.t=Tt+nt.t;--Tt>=0;)ke[Tt]=0;for(Tt=0;Tt<nt.t;++Tt)ke[Tt+je.t]=je.am(0,nt[Tt],ke,Tt,0,je.t);ke.s=0,ke.clamp(),this.s!=we.s&&o.ZERO.subTo(ke,ke)}function j(we){for(var ke=this.abs(),je=we.t=2*ke.t;--je>=0;)we[je]=0;for(je=0;je<ke.t-1;++je){var nt=ke.am(je,ke[je],we,2*je,0,1);(we[je+ke.t]+=ke.am(je+1,2*ke[je],we,2*je+1,nt,ke.t-je-1))>=ke.DV&&(we[je+ke.t]-=ke.DV,we[je+ke.t+1]=1)}we.t>0&&(we[we.t-1]+=ke.am(je,ke[je],we,2*je,0,1)),we.s=0,we.clamp()}function W(we,ke,je){var nt=we.abs();if(!(nt.t<=0)){var Tt=this.abs();if(Tt.t<nt.t){ke!=null&&ke.fromInt(0),je!=null&&this.copyTo(je);return}je==null&&(je=i());var Rt=i(),ln=this.s,pn=we.s,zr=this.DB-D(nt[nt.t-1]);zr>0?(nt.lShiftTo(zr,Rt),Tt.lShiftTo(zr,je)):(nt.copyTo(Rt),Tt.copyTo(je));var si=Rt.t,Sa=Rt[si-1];if(Sa!=0){var $i=Sa*(1<<this.F1)+(si>1?Rt[si-2]>>this.F2:0),Sn=this.FV/$i,Cn=(1<<this.F1)/$i,Oi=1<<this.F2,bi=je.t,hu=bi-si,ea=ke??i();for(Rt.dlShiftTo(hu,ea),je.compareTo(ea)>=0&&(je[je.t++]=1,je.subTo(ea,je)),o.ONE.dlShiftTo(si,ea),ea.subTo(Rt,Rt);Rt.t<si;)Rt[Rt.t++]=0;for(;--hu>=0;){var Dc=je[--bi]==Sa?this.DM:Math.floor(je[bi]*Sn+(je[bi-1]+Oi)*Cn);if((je[bi]+=Rt.am(0,Dc,je,hu,0,si))<Dc)for(Rt.dlShiftTo(hu,ea),je.subTo(ea,je);je[bi]<--Dc;)je.subTo(ea,je)}ke!=null&&(je.drShiftTo(si,ke),ln!=pn&&o.ZERO.subTo(ke,ke)),je.t=si,je.clamp(),zr>0&&je.rShiftTo(zr,je),ln<0&&o.ZERO.subTo(je,je)}}}function L(we){var ke=i();return this.abs().divRemTo(we,null,ke),this.s<0&&ke.compareTo(o.ZERO)>0&&we.subTo(ke,ke),ke}function z(we){this.m=we}function G(we){return we.s<0||we.compareTo(this.m)>=0?we.mod(this.m):we}function Y(we){return we}function J(we){we.divRemTo(this.m,null,we)}function Q(we,ke,je){we.multiplyTo(ke,je),this.reduce(je)}function ue(we,ke){we.squareTo(ke),this.reduce(ke)}z.prototype.convert=G,z.prototype.revert=Y,z.prototype.reduce=J,z.prototype.mulTo=Q,z.prototype.sqrTo=ue;function ae(){if(this.t<1)return 0;var we=this[0];if(!(we&1))return 0;var ke=we&3;return ke=ke*(2-(we&15)*ke)&15,ke=ke*(2-(we&255)*ke)&255,ke=ke*(2-((we&65535)*ke&65535))&65535,ke=ke*(2-we*ke%this.DV)%this.DV,ke>0?this.DV-ke:-ke}function te(we){this.m=we,this.mp=we.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<we.DB-15)-1,this.mt2=2*we.t}function se(we){var ke=i();return we.abs().dlShiftTo(this.m.t,ke),ke.divRemTo(this.m,null,ke),we.s<0&&ke.compareTo(o.ZERO)>0&&this.m.subTo(ke,ke),ke}function me(we){var ke=i();return we.copyTo(ke),this.reduce(ke),ke}function K(we){for(;we.t<=this.mt2;)we[we.t++]=0;for(var ke=0;ke<this.m.t;++ke){var je=we[ke]&32767,nt=je*this.mpl+((je*this.mph+(we[ke]>>15)*this.mpl&this.um)<<15)&we.DM;for(je=ke+this.m.t,we[je]+=this.m.am(0,nt,we,ke,0,this.m.t);we[je]>=we.DV;)we[je]-=we.DV,we[++je]++}we.clamp(),we.drShiftTo(this.m.t,we),we.compareTo(this.m)>=0&&we.subTo(this.m,we)}function $(we,ke){we.squareTo(ke),this.reduce(ke)}function ee(we,ke,je){we.multiplyTo(ke,je),this.reduce(je)}te.prototype.convert=se,te.prototype.revert=me,te.prototype.reduce=K,te.prototype.mulTo=ee,te.prototype.sqrTo=$;function ce(){return(this.t>0?this[0]&1:this.s)==0}function fe(we,ke){if(we>4294967295||we<1)return o.ONE;var je=i(),nt=i(),Tt=ke.convert(this),Rt=D(we)-1;for(Tt.copyTo(je);--Rt>=0;)if(ke.sqrTo(je,nt),(we&1<<Rt)>0)ke.mulTo(nt,Tt,je);else{var ln=je;je=nt,nt=ln}return ke.revert(je)}function de(we,ke){var je;return we<256||ke.isEven()?je=new z(ke):je=new te(ke),this.exp(we,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=ae,o.prototype.isEven=ce,o.prototype.exp=fe,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 pe(){var we=i();return this.copyTo(we),we}function xe(){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 De(){return this.t==0?this.s:this[0]<<24>>24}function ge(){return this.t==0?this.s:this[0]<<16>>16}function Ae(we){return Math.floor(Math.LN2*this.DB/Math.log(we))}function X(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Z(we){if(we==null&&(we=10),this.signum()==0||we<2||we>36)return"0";var ke=this.chunkSize(we),je=Math.pow(we,ke),nt=_(je),Tt=i(),Rt=i(),ln="";for(this.divRemTo(nt,Tt,Rt);Tt.signum()>0;)ln=(je+Rt.intValue()).toString(we).substr(1)+ln,Tt.divRemTo(nt,Tt,Rt);return Rt.intValue().toString(we)+ln}function ne(we,ke){this.fromInt(0),ke==null&&(ke=10);for(var je=this.chunkSize(ke),nt=Math.pow(ke,je),Tt=!1,Rt=0,ln=0,pn=0;pn<we.length;++pn){var zr=g(we,pn);if(zr<0){we.charAt(pn)=="-"&&this.signum()==0&&(Tt=!0);continue}ln=ke*ln+zr,++Rt>=je&&(this.dMultiply(nt),this.dAddOffset(ln,0),Rt=0,ln=0)}Rt>0&&(this.dMultiply(Math.pow(ke,Rt)),this.dAddOffset(ln,0)),Tt&&o.ZERO.subTo(this,this)}function ve(we,ke,je){if(typeof ke=="number")if(we<2)this.fromInt(1);else for(this.fromNumber(we,je),this.testBit(we-1)||this.bitwiseTo(o.ONE.shiftLeft(we-1),ot,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(ke);)this.dAddOffset(2,0),this.bitLength()>we&&this.subTo(o.ONE.shiftLeft(we-1),this);else{var nt=new Array,Tt=we&7;nt.length=(we>>3)+1,ke.nextBytes(nt),Tt>0?nt[0]&=(1<<Tt)-1:nt[0]=0,this.fromString(nt,256)}}function Be(){var we=this.t,ke=new Array;ke[0]=this.s;var je=this.DB-we*this.DB%8,nt,Tt=0;if(we-- >0)for(je<this.DB&&(nt=this[we]>>je)!=(this.s&this.DM)>>je&&(ke[Tt++]=nt|this.s<<this.DB-je);we>=0;)je<8?(nt=(this[we]&(1<<je)-1)<<8-je,nt|=this[--we]>>(je+=this.DB-8)):(nt=this[we]>>(je-=8)&255,je<=0&&(je+=this.DB,--we)),nt&128&&(nt|=-256),Tt==0&&(this.s&128)!=(nt&128)&&++Tt,(Tt>0||nt!=this.s)&&(ke[Tt++]=nt);return ke}function Ie(we){return this.compareTo(we)==0}function Ne(we){return this.compareTo(we)<0?this:we}function Fe(we){return this.compareTo(we)>0?this:we}function ze(we,ke,je){var nt,Tt,Rt=Math.min(we.t,this.t);for(nt=0;nt<Rt;++nt)je[nt]=ke(this[nt],we[nt]);if(we.t<this.t){for(Tt=we.s&this.DM,nt=Rt;nt<this.t;++nt)je[nt]=ke(this[nt],Tt);je.t=this.t}else{for(Tt=this.s&this.DM,nt=Rt;nt<we.t;++nt)je[nt]=ke(Tt,we[nt]);je.t=we.t}je.s=ke(this.s,we.s),je.clamp()}function Ve(we,ke){return we&ke}function Ye(we){var ke=i();return this.bitwiseTo(we,Ve,ke),ke}function ot(we,ke){return we|ke}function Lt(we){var ke=i();return this.bitwiseTo(we,ot,ke),ke}function At(we,ke){return we^ke}function nn(we){var ke=i();return this.bitwiseTo(we,At,ke),ke}function Bt(we,ke){return we&~ke}function Dt(we){var ke=i();return this.bitwiseTo(we,Bt,ke),ke}function ht(){for(var we=i(),ke=0;ke<this.t;++ke)we[ke]=this.DM&~this[ke];return we.t=this.t,we.s=~this.s,we}function kn(we){var ke=i();return we<0?this.rShiftTo(-we,ke):this.lShiftTo(we,ke),ke}function it(we){var ke=i();return we<0?this.lShiftTo(-we,ke):this.rShiftTo(we,ke),ke}function ut(we){if(we==0)return-1;var ke=0;return we&65535||(we>>=16,ke+=16),we&255||(we>>=8,ke+=8),we&15||(we>>=4,ke+=4),we&3||(we>>=2,ke+=2),we&1||++ke,ke}function re(){for(var we=0;we<this.t;++we)if(this[we]!=0)return we*this.DB+ut(this[we]);return this.s<0?this.t*this.DB:-1}function Oe(we){for(var ke=0;we!=0;)we&=we-1,++ke;return ke}function Te(){for(var we=0,ke=this.s&this.DM,je=0;je<this.t;++je)we+=Oe(this[je]^ke);return we}function Me(we){var ke=Math.floor(we/this.DB);return ke>=this.t?this.s!=0:(this[ke]&1<<we%this.DB)!=0}function Ue(we,ke){var je=o.ONE.shiftLeft(we);return this.bitwiseTo(je,ke,je),je}function ct(we){return this.changeBit(we,ot)}function wt(we){return this.changeBit(we,Bt)}function Ft(we){return this.changeBit(we,At)}function Wt(we,ke){for(var je=0,nt=0,Tt=Math.min(we.t,this.t);je<Tt;)nt+=this[je]+we[je],ke[je++]=nt&this.DM,nt>>=this.DB;if(we.t<this.t){for(nt+=we.s;je<this.t;)nt+=this[je],ke[je++]=nt&this.DM,nt>>=this.DB;nt+=this.s}else{for(nt+=this.s;je<we.t;)nt+=we[je],ke[je++]=nt&this.DM,nt>>=this.DB;nt+=we.s}ke.s=nt<0?-1:0,nt>0?ke[je++]=nt:nt<-1&&(ke[je++]=this.DV+nt),ke.t=je,ke.clamp()}function On(we){var ke=i();return this.addTo(we,ke),ke}function vr(we){var ke=i();return this.subTo(we,ke),ke}function oi(we){var ke=i();return this.multiplyTo(we,ke),ke}function jr(){var we=i();return this.squareTo(we),we}function Tr(we){var ke=i();return this.divRemTo(we,ke,null),ke}function la(we){var ke=i();return this.divRemTo(we,null,ke),ke}function Lr(we){var ke=i(),je=i();return this.divRemTo(we,ke,je),new Array(ke,je)}function ji(we){this[this.t]=this.am(0,we-1,this,0,0,this.t),++this.t,this.clamp()}function vo(we,ke){if(we!=0){for(;this.t<=ke;)this[this.t++]=0;for(this[ke]+=we;this[ke]>=this.DV;)this[ke]-=this.DV,++ke>=this.t&&(this[this.t++]=0),++this[ke]}}function ti(){}function Vi(we){return we}function mo(we,ke,je){we.multiplyTo(ke,je)}function qi(we,ke){we.squareTo(ke)}ti.prototype.convert=Vi,ti.prototype.revert=Vi,ti.prototype.mulTo=mo,ti.prototype.sqrTo=qi;function bs(we){return this.exp(we,new ti)}function ft(we,ke,je){var nt=Math.min(this.t+we.t,ke);for(je.s=0,je.t=nt;nt>0;)je[--nt]=0;var Tt;for(Tt=je.t-this.t;nt<Tt;++nt)je[nt+this.t]=this.am(0,we[nt],je,nt,0,this.t);for(Tt=Math.min(we.t,ke);nt<Tt;++nt)this.am(0,we[nt],je,nt,0,ke-nt);je.clamp()}function T(we,ke,je){--ke;var nt=je.t=this.t+we.t-ke;for(je.s=0;--nt>=0;)je[nt]=0;for(nt=Math.max(ke-this.t,0);nt<we.t;++nt)je[this.t+nt-ke]=this.am(ke-nt,we[nt],je,0,0,this.t+nt-ke);je.clamp(),je.drShiftTo(1,je)}function B(we){this.r2=i(),this.q3=i(),o.ONE.dlShiftTo(2*we.t,this.r2),this.mu=this.r2.divide(we),this.m=we}function V(we){if(we.s<0||we.t>2*this.m.t)return we.mod(this.m);if(we.compareTo(this.m)<0)return we;var ke=i();return we.copyTo(ke),this.reduce(ke),ke}function U(we){return we}function q(we){for(we.drShiftTo(this.m.t-1,this.r2),we.t>this.m.t+1&&(we.t=this.m.t+1,we.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);we.compareTo(this.r2)<0;)we.dAddOffset(1,this.m.t+1);for(we.subTo(this.r2,we);we.compareTo(this.m)>=0;)we.subTo(this.m,we)}function he(we,ke){we.squareTo(ke),this.reduce(ke)}function Ce(we,ke,je){we.multiplyTo(ke,je),this.reduce(je)}B.prototype.convert=V,B.prototype.revert=U,B.prototype.reduce=q,B.prototype.mulTo=Ce,B.prototype.sqrTo=he;function Re(we,ke){var je=we.bitLength(),nt,Tt=_(1),Rt;if(je<=0)return Tt;je<18?nt=1:je<48?nt=3:je<144?nt=4:je<768?nt=5:nt=6,je<8?Rt=new z(ke):ke.isEven()?Rt=new B(ke):Rt=new te(ke);var ln=new Array,pn=3,zr=nt-1,si=(1<<nt)-1;if(ln[1]=Rt.convert(this),nt>1){var Sa=i();for(Rt.sqrTo(ln[1],Sa);pn<=si;)ln[pn]=i(),Rt.mulTo(Sa,ln[pn-2],ln[pn]),pn+=2}var $i=we.t-1,Sn,Cn=!0,Oi=i(),bi;for(je=D(we[$i])-1;$i>=0;){for(je>=zr?Sn=we[$i]>>je-zr&si:(Sn=(we[$i]&(1<<je+1)-1)<<zr-je,$i>0&&(Sn|=we[$i-1]>>this.DB+je-zr)),pn=nt;!(Sn&1);)Sn>>=1,--pn;if((je-=pn)<0&&(je+=this.DB,--$i),Cn)ln[Sn].copyTo(Tt),Cn=!1;else{for(;pn>1;)Rt.sqrTo(Tt,Oi),Rt.sqrTo(Oi,Tt),pn-=2;pn>0?Rt.sqrTo(Tt,Oi):(bi=Tt,Tt=Oi,Oi=bi),Rt.mulTo(Oi,ln[Sn],Tt)}for(;$i>=0&&!(we[$i]&1<<je);)Rt.sqrTo(Tt,Oi),bi=Tt,Tt=Oi,Oi=bi,--je<0&&(je=this.DB-1,--$i)}return Rt.revert(Tt)}function Je(we){var ke=this.s<0?this.negate():this.clone(),je=we.s<0?we.negate():we.clone();if(ke.compareTo(je)<0){var nt=ke;ke=je,je=nt}var Tt=ke.getLowestSetBit(),Rt=je.getLowestSetBit();if(Rt<0)return ke;for(Tt<Rt&&(Rt=Tt),Rt>0&&(ke.rShiftTo(Rt,ke),je.rShiftTo(Rt,je));ke.signum()>0;)(Tt=ke.getLowestSetBit())>0&&ke.rShiftTo(Tt,ke),(Tt=je.getLowestSetBit())>0&&je.rShiftTo(Tt,je),ke.compareTo(je)>=0?(ke.subTo(je,ke),ke.rShiftTo(1,ke)):(je.subTo(ke,je),je.rShiftTo(1,je));return Rt>0&&je.lShiftTo(Rt,je),je}function et(we){if(we<=0)return 0;var ke=this.DV%we,je=this.s<0?we-1:0;if(this.t>0)if(ke==0)je=this[0]%we;else for(var nt=this.t-1;nt>=0;--nt)je=(ke*je+this[nt])%we;return je}function gt(we){var ke=we.isEven();if(this.isEven()&&ke||we.signum()==0)return o.ZERO;for(var je=we.clone(),nt=this.clone(),Tt=_(1),Rt=_(0),ln=_(0),pn=_(1);je.signum()!=0;){for(;je.isEven();)je.rShiftTo(1,je),ke?((!Tt.isEven()||!Rt.isEven())&&(Tt.addTo(this,Tt),Rt.subTo(we,Rt)),Tt.rShiftTo(1,Tt)):Rt.isEven()||Rt.subTo(we,Rt),Rt.rShiftTo(1,Rt);for(;nt.isEven();)nt.rShiftTo(1,nt),ke?((!ln.isEven()||!pn.isEven())&&(ln.addTo(this,ln),pn.subTo(we,pn)),ln.rShiftTo(1,ln)):pn.isEven()||pn.subTo(we,pn),pn.rShiftTo(1,pn);je.compareTo(nt)>=0?(je.subTo(nt,je),ke&&Tt.subTo(ln,Tt),Rt.subTo(pn,Rt)):(nt.subTo(je,nt),ke&&ln.subTo(Tt,ln),pn.subTo(Rt,pn))}if(nt.compareTo(o.ONE)!=0)return o.ZERO;if(pn.compareTo(we)>=0)return pn.subtract(we);if(pn.signum()<0)pn.addTo(we,pn);else return pn;return pn.signum()<0?pn.add(we):pn}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],St=(1<<26)/dt[dt.length-1];function sn(we){var ke,je=this.abs();if(je.t==1&&je[0]<=dt[dt.length-1]){for(ke=0;ke<dt.length;++ke)if(je[0]==dt[ke])return!0;return!1}if(je.isEven())return!1;for(ke=1;ke<dt.length;){for(var nt=dt[ke],Tt=ke+1;Tt<dt.length&&nt<St;)nt*=dt[Tt++];for(nt=je.modInt(nt);ke<Tt;)if(nt%dt[ke++]==0)return!1}return je.millerRabin(we)}function _n(we){var ke=this.subtract(o.ONE),je=ke.getLowestSetBit();if(je<=0)return!1;var nt=ke.shiftRight(je);we=we+1>>1,we>dt.length&&(we=dt.length);for(var Tt=i(),Rt=0;Rt<we;++Rt){Tt.fromInt(dt[Math.floor(Math.random()*dt.length)]);var ln=Tt.modPow(nt,this);if(ln.compareTo(o.ONE)!=0&&ln.compareTo(ke)!=0){for(var pn=1;pn++<je&&ln.compareTo(ke)!=0;)if(ln=ln.modPowInt(2,this),ln.compareTo(o.ONE)==0)return!1;if(ln.compareTo(ke)!=0)return!1}}return!0}o.prototype.chunkSize=Ae,o.prototype.toRadix=Z,o.prototype.fromRadix=ne,o.prototype.fromNumber=ve,o.prototype.bitwiseTo=ze,o.prototype.changeBit=Ue,o.prototype.addTo=Wt,o.prototype.dMultiply=ji,o.prototype.dAddOffset=vo,o.prototype.multiplyLowerTo=ft,o.prototype.multiplyUpperTo=T,o.prototype.modInt=et,o.prototype.millerRabin=_n,o.prototype.clone=pe,o.prototype.intValue=xe,o.prototype.byteValue=De,o.prototype.shortValue=ge,o.prototype.signum=X,o.prototype.toByteArray=Be,o.prototype.equals=Ie,o.prototype.min=Ne,o.prototype.max=Fe,o.prototype.and=Ye,o.prototype.or=Lt,o.prototype.xor=nn,o.prototype.andNot=Dt,o.prototype.not=ht,o.prototype.shiftLeft=kn,o.prototype.shiftRight=it,o.prototype.getLowestSetBit=re,o.prototype.bitCount=Te,o.prototype.testBit=Me,o.prototype.setBit=ct,o.prototype.clearBit=wt,o.prototype.flipBit=Ft,o.prototype.add=On,o.prototype.subtract=vr,o.prototype.multiply=oi,o.prototype.divide=Tr,o.prototype.remainder=la,o.prototype.divideAndRemainder=Lr,o.prototype.modPow=Re,o.prototype.modInverse=gt,o.prototype.pow=bs,o.prototype.gcd=Je,o.prototype.isProbablePrime=sn,o.prototype.square=jr,o.prototype.Barrett=B;var Gt,Jt,rt;function Ot(we){Jt[rt++]^=we&255,Jt[rt++]^=we>>8&255,Jt[rt++]^=we>>16&255,Jt[rt++]^=we>>24&255,rt>=kt&&(rt-=kt)}function Qt(){Ot(new Date().getTime())}if(Jt==null){Jt=new Array,rt=0;var fn;if(typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var Wn=new Uint8Array(32);for(window.crypto.getRandomValues(Wn),fn=0;fn<32;++fn)Jt[rt++]=Wn[fn]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var Un=window.crypto.random(32);for(fn=0;fn<Un.length;++fn)Jt[rt++]=Un.charCodeAt(fn)&255}}for(;rt<kt;)fn=Math.floor(65536*Math.random()),Jt[rt++]=fn>>>8,Jt[rt++]=fn&255;rt=0,Qt()}function Vr(){if(Gt==null){for(Qt(),Gt=bt(),Gt.init(Jt),rt=0;rt<Jt.length;++rt)Jt[rt]=0;rt=0}return Gt.next()}function yr(we){var ke;for(ke=0;ke<we.length;++ke)we[ke]=Vr()}function le(){}le.prototype.nextBytes=yr;function Ee(){this.i=0,this.j=0,this.S=new Array}function We(we){var ke,je,nt;for(ke=0;ke<256;++ke)this.S[ke]=ke;for(je=0,ke=0;ke<256;++ke)je=je+this.S[ke]+we[ke%we.length]&255,nt=this.S[ke],this.S[ke]=this.S[je],this.S[je]=nt;this.i=0,this.j=0}function $e(){var we;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,we=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=we,this.S[we+this.S[this.i]&255]}Ee.prototype.init=We,Ee.prototype.next=$e;function bt(){return new Ee}var kt=256;e.exports={default:o,BigInteger:o,SecureRandom:le}}).call(Qn)})(iQ);const{BigInteger:Np}=Ip;function aQ(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 Np(r,16),t=r.xor(e).add(Np.ONE),t=t.toString(16).replace(/^-/,"")}return t}class r5{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 i5 extends r5{constructor(t){super(),this.t="02",t&&(this.v=aQ(t))}getValue(){return this.v}}class oQ extends r5{constructor(t){super(),this.t="30",this.asn1Array=t}getValue(){return this.v=this.asn1Array.map(t=>t.getEncodedHex()).join(""),this.v}}function a5(e,t){return+e[t+2]<8?1:+e.substr(t+2,2)&127+1}function o5(e,t){const n=a5(e,t),r=e.substr(t+2,n*2);return r?(+r[0]<8?new Np(r,16):new Np(r.substr(2),16)).intValue():-1}function Nx(e,t){const n=a5(e,t);return t+(n+1)*2}var sQ={encodeDer(e,t){const n=new i5(e),r=new i5(t);return new oQ([n,r]).getEncodedHex()},decodeDer(e){const t=Nx(e,0),n=Nx(e,t),r=o5(e,t),a=e.substr(n,r*2),o=n+a.length,i=Nx(e,o),u=o5(e,o),s=e.substr(i,u*2),l=new Np(a,16),c=new Np(s,16);return{r:l,s:c}}};const{BigInteger:Ua}=Ip,s5=new Ua("2"),l5=new Ua("3");class wu{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 wu(this.q,this.x.negate().mod(this.q))}add(t){return new wu(this.q,this.x.add(t.toBigInteger()).mod(this.q))}subtract(t){return new wu(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))}multiply(t){return new wu(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))}divide(t){return new wu(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new wu(this.q,this.x.square().mod(this.q))}}class Su{constructor(t,n,r,a){this.curve=t,this.x=n,this.y=r,this.z=a??Ua.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(Ua.ZERO)?t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(Ua.ZERO):!1}isInfinity(){return this.x===null&&this.y===null?!0:this.z.equals(Ua.ZERO)&&!this.y.toBigInteger().equals(Ua.ZERO)}negate(){return new Su(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(Ua.ZERO.equals(f))return Ua.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 Su(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(l5).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 Su(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(l5),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 lQ={ECPointFp:Su,ECCurveFp:class{constructor(t,n,r){this.q=t,this.a=this.fromBigInteger(n),this.b=this.fromBigInteger(r),this.infinity=new Su(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 wu(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 Ua(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 Ua("4")).add(Ua.ONE),this.q));return r.toBigInteger().mod(s5).equals(new Ua(t.substr(0,2),16).subtract(s5))||(r=r.negate()),new Su(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 Su(this,this.fromBigInteger(new Ua(o,16)),this.fromBigInteger(new Ua(i,16)));default:return null}}}};const{BigInteger:Cs,SecureRandom:uQ}=Ip,{ECCurveFp:cQ}=lQ,fQ=new uQ,{curve:Fp,G:pQ,n:u5}=c5();function hQ(){return Fp}function c5(){const e=new Cs("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),t=new Cs("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),n=new Cs("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),r=new cQ(e,t,n),a="32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7",o="BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0",i=r.decodePointHex("04"+a+o),u=new Cs("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16);return{curve:r,G:i,n:u}}function dQ(e,t,n){const a=(e?new Cs(e,t,n):new Cs(u5.bitLength(),fQ)).mod(u5.subtract(Cs.ONE)).add(Cs.ONE),o=jd(a.toString(16),64),i=pQ.multiply(a),u=jd(i.getX().toBigInteger().toString(16),64),s=jd(i.getY().toBigInteger().toString(16),64),l="04"+u+s;return{privateKey:o,publicKey:l}}function vQ(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 Cs(e.substr(t+2,t),16);let a="03";return r.mod(new Cs("2")).equals(Cs.ZERO)&&(a="02"),a+n}function mQ(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 jd(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function gQ(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function yQ(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 _Q(e){const t=[];let n=e.length;n%2!==0&&(e=jd(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 bQ(e){const t=Fp.decodePointHex(e);if(!t)return!1;const n=t.getX();return t.getY().square().equals(n.multiply(n.square()).add(n.multiply(Fp.a)).add(Fp.b))}function xQ(e,t){const n=Fp.decodePointHex(e);if(!n)return!1;const r=Fp.decodePointHex(t);return r?n.equals(r):!1}var EQ={getGlobalCurve:hQ,generateEcparam:c5,generateKeyPairHex:dQ,compressPublicKeyHex:vQ,utf8ToHex:mQ,leftPad:jd,arrayToHex:gQ,arrayToUtf8:yQ,hexToArray:_Q,verifyPublicKey:bQ,comparePublicKeyHex:xQ};const As=new Uint32Array(68),Fx=new Uint32Array(64);function Lo(e,t){const n=t&31;return e<<n|e>>>32-n}function f5(e,t){const n=[];for(let r=e.length-1;r>=0;r--)n[r]=(e[r]^t[r])&255;return n}function wQ(e){return e^Lo(e,9)^Lo(e,17)}function SQ(e){return e^Lo(e,15)^Lo(e,23)}function wg(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++){As.fill(0),Fx.fill(0);const f=16*c;for(let D=0;D<16;D++)As[D]=i.getUint32((f+D)*4,!1);for(let D=16;D<68;D++)As[D]=SQ(As[D-16]^As[D-9]^Lo(As[D-3],15))^Lo(As[D-13],7)^As[D-6];for(let D=0;D<64;D++)Fx[D]=As[D]^As[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+Fx[D],P=(D>=0&&D<=15?y^b^_:y&b|~y&_)+E+w+As[D],g=p,p=Lo(m,9),m=v,v=A,E=_,_=Lo(b,19),b=y,y=wQ(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 Vd=64,p5=new Uint8Array(Vd),h5=new Uint8Array(Vd);for(let e=0;e<Vd;e++)p5[e]=54,h5[e]=92;function CQ(e,t){for(t.length>Vd&&(t=wg(t));t.length<Vd;)t.push(0);const n=f5(t,p5),r=f5(t,h5),a=wg([...n,...e]);return wg([...r,...a])}var d5={sm3:wg,hmac:CQ};const{BigInteger:_o}=Ip,{encodeDer:AQ,decodeDer:TQ}=sQ,ar=EQ,Mp=d5.sm3,{G:Uc,curve:v5,n:Lp}=ar.generateEcparam(),m5=0;function DQ(e,t,n=1){e=typeof e=="string"?ar.hexToArray(ar.utf8ToHex(e)):Array.prototype.slice.call(e),t=ar.getGlobalCurve().decodePointHex(t);const r=ar.generateKeyPairHex(),a=new _o(r.privateKey,16);let o=r.publicKey;o.length>128&&(o=o.substr(o.length-128));const i=t.multiply(a),u=ar.hexToArray(ar.leftPad(i.getX().toBigInteger().toRadix(16),64)),s=ar.hexToArray(ar.leftPad(i.getY().toBigInteger().toRadix(16),64)),l=ar.arrayToHex(Mp([].concat(u,e,s)));let c=1,f=0,h=[];const d=[].concat(u,s),v=()=>{h=Mp([...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=ar.arrayToHex(e);return n===m5?o+m+l:o+l+m}function PQ(e,t,n=1,{output:r="string"}={}){t=new _o(t,16);let a=e.substr(128,64),o=e.substr(128+64);n===m5&&(a=e.substr(e.length-64),o=e.substr(128,e.length-128-64));const i=ar.hexToArray(o),s=ar.getGlobalCurve().decodePointHex("04"+e.substr(0,128)).multiply(t),l=ar.hexToArray(ar.leftPad(s.getX().toBigInteger().toRadix(16),64)),c=ar.hexToArray(ar.leftPad(s.getY().toBigInteger().toRadix(16),64));let f=1,h=0,d=[];const v=[].concat(l,c),m=()=>{d=Mp([...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 ar.arrayToHex(Mp([].concat(l,i,c)))===a.toLowerCase()?r==="array"?i:ar.arrayToUtf8(i):r==="array"?[]:""}function OQ(e,t,{pointPool:n,der:r,hash:a,publicKey:o,userId:i}={}){let u=typeof e=="string"?ar.utf8ToHex(e):ar.arrayToHex(e);a&&(o=o||y5(t),u=g5(u,o,i));const s=new _o(t,16),l=new _o(u,16);let c=null,f=null,h=null;do{do{let d;n&&n.length?d=n.pop():d=_5(),c=d.k,f=l.add(d.x1).mod(Lp)}while(f.equals(_o.ZERO)||f.add(c).equals(Lp));h=s.add(_o.ONE).modInverse(Lp).multiply(c.subtract(f.multiply(s))).mod(Lp)}while(h.equals(_o.ZERO));return r?AQ(f,h):ar.leftPad(f.toString(16),64)+ar.leftPad(h.toString(16),64)}function kQ(e,t,n,{der:r,hash:a,userId:o}={}){let i=typeof e=="string"?ar.utf8ToHex(e):ar.arrayToHex(e);a&&(i=g5(i,n,o));let u,s;if(r){const v=TQ(t);u=v.r,s=v.s}else u=new _o(t.substring(0,64),16),s=new _o(t.substring(64),16);const l=v5.decodePointHex(n),c=new _o(i,16),f=u.add(s).mod(Lp);if(f.equals(_o.ZERO))return!1;const h=Uc.multiply(s).add(l.multiply(f)),d=c.add(h.getX().toBigInteger()).mod(Lp);return u.equals(d)}function g5(e,t,n="1234567812345678"){n=ar.utf8ToHex(n);const r=ar.leftPad(Uc.curve.a.toBigInteger().toRadix(16),64),a=ar.leftPad(Uc.curve.b.toBigInteger().toRadix(16),64),o=ar.leftPad(Uc.getX().toBigInteger().toRadix(16),64),i=ar.leftPad(Uc.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=Uc.curve.decodePointHex(t);u=ar.leftPad(h.getX().toBigInteger().toRadix(16),64),s=ar.leftPad(h.getY().toBigInteger().toRadix(16),64)}const l=ar.hexToArray(n+r+a+o+i+u+s),c=n.length*4;l.unshift(c&255),l.unshift(c>>8&255);const f=Mp(l);return ar.arrayToHex(Mp(f.concat(ar.hexToArray(e))))}function y5(e){const t=Uc.multiply(new _o(e,16)),n=ar.leftPad(t.getX().toBigInteger().toString(16),64),r=ar.leftPad(t.getY().toBigInteger().toString(16),64);return"04"+n+r}function _5(){const e=ar.generateKeyPairHex(),t=v5.decodePointHex(e.publicKey);return e.k=new _o(e.privateKey,16),e.x1=t.getX().toBigInteger(),e}var BQ={generateKeyPairHex:ar.generateKeyPairHex,compressPublicKeyHex:ar.compressPublicKeyHex,comparePublicKeyHex:ar.comparePublicKeyHex,doEncrypt:DQ,doDecrypt:PQ,doSignature:OQ,doVerifySignature:kQ,getPublicKeyFromPrivateKey:y5,getPoint:_5,verifyPublicKey:ar.verifyPublicKey};const{sm3:IQ,hmac:NQ}=d5;function FQ(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function b5(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function MQ(e){const t=[];let n=e.length;n%2!==0&&(e=FQ(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 LQ(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 RQ=function(e,t){if(e=typeof e=="string"?LQ(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"?MQ(r):Array.prototype.slice.call(r),b5(NQ(e,r))}return b5(IQ(e))};const Cu=0,jQ=32,Hc=16,Sg=[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],Cg=[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 Mx(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 VQ(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function zQ(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 UQ(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 Rp(e,t){const n=t&31;return e<<n|e>>>32-n}function Au(e){return(Sg[e>>>24&255]&255)<<24|(Sg[e>>>16&255]&255)<<16|(Sg[e>>>8&255]&255)<<8|Sg[e&255]&255}function Ag(e){return e^Rp(e,2)^Rp(e,10)^Rp(e,18)^Rp(e,24)}function Tg(e){return e^Rp(e,13)^Rp(e,23)}function HQ(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]^=Ag(Au(i)),i=r[2]^r[3]^r[0]^n[o+1],r[1]^=Ag(Au(i)),i=r[3]^r[0]^r[1]^n[o+2],r[2]^=Ag(Au(i)),i=r[0]^r[1]^r[2]^n[o+3],r[3]^=Ag(Au(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 WQ(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]^Cg[o+0],t[o+0]=r[0]^=Tg(Au(i)),i=r[2]^r[3]^r[0]^Cg[o+1],t[o+1]=r[1]^=Tg(Au(i)),i=r[3]^r[0]^r[1]^Cg[o+2],t[o+2]=r[2]^=Tg(Au(i)),i=r[0]^r[1]^r[2]^Cg[o+3],t[o+3]=r[3]^=Tg(Au(i));if(n===Cu)for(let o=0,i;o<16;o++)i=t[o],t[o]=t[31-o],t[31-o]=i}function x5(e,t,n,{padding:r="pkcs#7",mode:a,iv:o=[],output:i="string"}={}){if(a==="cbc"&&(typeof o=="string"&&(o=Mx(o)),o.length!==128/8))throw new Error("iv is invalid");if(typeof t=="string"&&(t=Mx(t)),t.length!==128/8)throw new Error("key is invalid");if(typeof e=="string"?n!==Cu?e=zQ(e):e=Mx(e):e=[...e],(r==="pkcs#5"||r==="pkcs#7")&&n!==Cu){const h=Hc-e.length%Hc;for(let d=0;d<h;d++)e.push(h)}const u=new Array(jQ);WQ(t,u,n);const s=[];let l=o,c=e.length,f=0;for(;c>=Hc;){const h=e.slice(f,f+16),d=new Array(16);if(a==="cbc")for(let v=0;v<Hc;v++)n!==Cu&&(h[v]^=l[v]);HQ(h,d,u);for(let v=0;v<Hc;v++)a==="cbc"&&n===Cu&&(d[v]^=l[v]),s[f+v]=d[v];a==="cbc"&&(n!==Cu?l=d:l=h),c-=Hc,f+=Hc}if((r==="pkcs#5"||r==="pkcs#7")&&n===Cu){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!==Cu?VQ(s):UQ(s):s}var GQ={encrypt(e,t,n){return x5(e,t,1,n)},decrypt(e,t,n){return x5(e,t,0,n)}},Dg={sm2:BQ,sm3:RQ,sm4:GQ};const E5="04";function KQ(e,t){try{return E5+Dg.sm2.doEncrypt(e,t,1)}catch{return null}}function XQ(e,t){if(e==null)return null;try{return Dg.sm2.doDecrypt(e==null?void 0:e.substring(E5.length),t,1)}catch{return null}}const zd={encrypt:KQ,decrypt:XQ},YQ="049967b032226da56be01b804ed59e6753e2731994f4c97bb25d39c0d3166af07b73e2651d09b98ae934a70303138e859545e8314e2eda20971e222a444ecd3547",JQ="1e38a5c42fe3049bfbbcb2323a0cff3feb49e0b8156ac71eed525133603dbddb",w5=e=>(Es(e)&&(e=Qr(e)),zd.encrypt(e,YQ)),S5=e=>zd.decrypt(e,JQ),C5=e=>`__${e}__mode`,ZQ=(e,t)=>{const n=Es(t)?2:1;n===2&&(t=Qr(t));const r=w5(t);return{[e]:r,[C5(e)]:n}},A5=e=>{e||(e=window.location.href);const t=Bl.getQueryParams(e);if(!t)return null;const n={};return Or(t).map(r=>{let a=t[r];const o=t[C5(r)];return o!=null&&(a=S5(a),o==2&&(a=ri(a))),n[r]=a,a}),n},Pg={decryptFromLocation:()=>A5(window.location.href),decryptFromUrl:A5,encryptToUrl:ZQ,decryptData:S5,encryptData:w5};var Wc=(e=>(e.year="year",e.month="month",e.day="day",e.hour="hour",e.minute="minute",e.second="second",e.week="week",e))(Wc||{});function QQ(e){return e%4===0&&e%100!==0||e%400===0}function qQ(e){return[0,31,QQ(e)?29:28,31,30,31,30,31,31,30,31,30]}function Og(e,t){var n=new Date(e),r=new Date(t),a;n>r&&(a=n,n=r,r=a);var o=qQ(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 T5(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 Ud(e,t,n="day"){var r=Math.abs(new Date(e).getTime()-new Date(t).getTime());const a=Og(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 $Q(e,t,n="day"){const r=Og(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 kg(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 D5(e){return!isNaN(Date.parse(e))}function eq(e){if(D5(e))return new Date(e)}function P5(e){if(e){var t=new Date;if(D5(e))return new Date(e);var n=t.getFullYear()+"-"+t.getMonth()+"-"+t.getDate()+" "+e;return new Date(n)}}function O5(e){return Array.isArray(e)?e.map(t=>P5(t)):typeof e=="string"?P5(e):e}function tq(){return k5("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",/[xy]/g)}function Bg(){return k5("xxxxxxxxxxxxxxxxxxxxxxxxxxxx",/[xy]/g)}function k5(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 Il=function(){return Math.floor(Math.random()*1e5+Math.random()*2e4+Math.random()*5e3)},B5=()=>kg(new Date,"yyyyMMHHmmss")+"_"+Il();function Lx(){return{addWindowName:()=>{window.name||(window.name=Bg())},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=Bl.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 vi={info(e){ki.ElMessage({type:"info",message:e,dangerouslyUseHTMLString:!0})},error(e){ki.ElMessage({type:"error",message:e,dangerouslyUseHTMLString:!0})},success(e){ki.ElMessage({type:"success",message:e,dangerouslyUseHTMLString:!0})},warning(e){ki.ElMessage({type:"warning",message:e,dangerouslyUseHTMLString:!0})}},nq={delete(){return this.do(oe.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 ki.ElMessageBox.confirm(e,oe.i18nt("designer.hint.prompt"),{confirmButtonText:oe.i18nt("designer.hint.confirm"),cancelButtonText:oe.i18nt("designer.hint.cancel"),type:"warning",appendTo:"body"})}},rq={info(e){ki.ElNotification({type:"info",message:e,dangerouslyUseHTMLString:!0})},error(e){ki.ElNotification({type:"error",message:e,dangerouslyUseHTMLString:!0})},success(e){ki.ElNotification({type:"success",message:e,dangerouslyUseHTMLString:!0})},warning(e){ki.ElNotification({type:"warning",message:e,dangerouslyUseHTMLString:!0})}},Ig=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=Pg.decryptFromUrl(window.location.href);return{rowScope:t,formData:n,urlQuerys:r}};function iq(e,t,n,r){var h,d;let a=ra((h=e==null?void 0:e.content)==null?void 0:h.widgetId,!0),o=ra((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;rq.error(_||Qr(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=Ig(n);return Ol(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=Ig(n);return Ol(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=`${Ii.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 aq(e,t,n,r){const a=(l,c)=>{const{sendToIframe:f,receive:h}=n5();return new Promise((d,v)=>{var p,g;const m=Bg();f((g=(p=l==null?void 0:l.data)==null?void 0:p.props)==null?void 0:g.iframeRef,{...c,msgId:m}),h(y=>{var b,_,E,w;((b=y==null?void 0:y.data)==null?void 0:b.msgId)===m&&((_=y==null?void 0:y.data)!=null&&_.result?d(!0):(E=y==null?void 0:y.data)!=null&&E.msg&&vi.error((w=y==null?void 0:y.data)==null?void 0:w.msg))},!0)})},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=Pg.decryptFromUrl(window.location.href),v=Ol(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?Bl.getLocationQueryParams():{};let c=Object.assign(l||{},o((d=e==null?void 0:e.content)==null?void 0:d.setQueryFn,t));const f=Bl.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 Bl.resolveByCurrentUrl(f)},u=()=>{var l,c,f,h;switch((l=e==null?void 0:e.content)==null?void 0:l.windowTarget){case ag.self:return window;case ag.top:return window.top||window;case ag.parent:return window.parent;default:return(c=e==null?void 0:e.content)!=null&&c.windowTarget?(h=yo.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}=Lx(),c=u(),f=i();if(((v=e==null?void 0:e.content)==null?void 0:v.windowModal)===tD.modal){var h={self:window==null?void 0:window.name,caller:c==null?void 0:c.name};const p=y=>a(y,{command:"saveForm",args:{...h}}),g=y=>a(y,{command:"cancelForm",args:{...h}});var d={...e==null?void 0:e.content,url:f,callback:{okCallback:p,cancelCallback:g}};if(c)if(c!=null&&c.openModalAsync)(m=c==null?void 0:c.openModalAsync)==null||m.call(c,d);else{vi.error(oe.i18nt("designer.hint.windowNotSupport"));return}else t5(n,d)}else l(f,e==null?void 0:e.content,c==null?void 0:c.window,!1)})()}function oq(e,t,n,r){var c;let a=ra((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=Ig(n);return Ol(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=ri(yne(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=`${Ii.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=Ig(n);return Ol(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 sq(e,t,n,r){var a,o,i,u,s,l,c;switch(e==null?void 0:e.type){case ws.actionCode:return Ol((a=e==null?void 0:e.content)==null?void 0:a.code,t);case ws.actionURL:return aq(e,t,n);case ws.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 ws.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 ws.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 ws.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 ws.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 ws.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 ws.actionSendSchema:return oq(e,t,n,r);case ws.actionSaveFormData:return iq(e,t,n,r)}}const I5=(e,t)=>{const{state:n}=dx(async()=>{const r=await Promise.resolve().then(()=>Cme);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},lq=(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)})},uq=(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)})},Rx=(e,t)=>{const n=YD.create(e);return lq(n,t,e==null?void 0:e.willFetch),uq(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)})})},cq={req:Rx,get:(e,t)=>(e.method="get",Rx(e,t)),post:(e,t)=>(e.method="post",Rx(e,t))};class fq{_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[jD]=this[jD]={accessors:{}}).accessors,a=this.prototype;function o(i){const u=Ld(i);r[u]||(CZ(a,i),r[u]=!0)}return Pt.isArray(t)?t.forEach(o):o(t),this}}gg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Pt.freezeMethods(gg.prototype),Pt.freezeMethods(gg);const kl=gg;function Tx(e,t){const n=this||Cx,r=t||n,a=kl.from(r.headers);let o=r.data;return Pt.forEach(e,function(u){o=u.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function VD(e){return!!(e&&e.__CANCEL__)}function Rd(e,t,n){kr.call(this,e??"canceled",kr.ERR_CANCELED,t,n),this.name="CanceledError"}Pt.inherits(Rd,kr,{__CANCEL__:!0});function AZ(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new kr("Request failed with status code "+n.status,[kr.ERR_BAD_REQUEST,kr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const TZ=Zs.isStandardBrowserEnv?function(){return{write:function(n,r,a,o,i,u){const s=[];s.push(n+"="+encodeURIComponent(r)),Pt.isNumber(a)&&s.push("expires="+new Date(a).toGMTString()),Pt.isString(o)&&s.push("path="+o),Pt.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 DZ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function PZ(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function zD(e,t){return e&&!DZ(t)?PZ(e,t):t}const OZ=Zs.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=Pt.isString(i)?a(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function kZ(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function BZ(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 UD(e,t){let n=0;const r=BZ(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 yg={http:aZ,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let a=e.data;const o=kl.from(e.headers).normalize(),i=e.responseType;let u;function s(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}Pt.isFormData(a)&&(Zs.isStandardBrowserEnv||Zs.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=zD(e.baseURL,e.url);l.open(e.method.toUpperCase(),FD(c,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function f(){if(!l)return;const d=kl.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};AZ(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 kr("Request aborted",kr.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new kr("Network Error",kr.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||LD;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new kr(v,m.clarifyTimeoutError?kr.ETIMEDOUT:kr.ECONNABORTED,e,l)),l=null},Zs.isStandardBrowserEnv){const d=(e.withCredentials||OZ(c))&&e.xsrfCookieName&&TZ.read(e.xsrfCookieName);d&&o.set(e.xsrfHeaderName,d)}a===void 0&&o.setContentType(null),"setRequestHeader"in l&&Pt.forEach(o.toJSON(),function(v,m){l.setRequestHeader(m,v)}),Pt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",UD(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",UD(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=d=>{l&&(r(!d||d.type?new Rd(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=kZ(c);if(h&&Zs.protocols.indexOf(h)===-1){r(new kr("Unsupported protocol "+h+":",kr.ERR_BAD_REQUEST,e));return}l.send(a||null)})}};Pt.forEach(yg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const IZ={getAdapter:e=>{e=Pt.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let a=0;a<t&&(n=e[a],!(r=Pt.isString(n)?yg[n.toLowerCase()]:n));a++);if(!r)throw r===!1?new kr(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Pt.hasOwnProp(yg,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!Pt.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:yg};function Dx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rd(null,e)}function HD(e){return Dx(e),e.headers=kl.from(e.headers),e.data=Tx.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),IZ.getAdapter(e.adapter||Cx.adapter)(e).then(function(r){return Dx(e),r.data=Tx.call(e,e.transformResponse,r),r.headers=kl.from(r.headers),r},function(r){return VD(r)||(Dx(e),r&&r.response&&(r.response.data=Tx.call(e,e.transformResponse,r.response),r.response.headers=kl.from(r.response.headers))),Promise.reject(r)})}const WD=e=>e instanceof kl?e.toJSON():e;function Bp(e,t){t=t||{};const n={};function r(l,c,f){return Pt.isPlainObject(l)&&Pt.isPlainObject(c)?Pt.merge.call({caseless:f},l,c):Pt.isPlainObject(c)?Pt.merge({},c):Pt.isArray(c)?c.slice():c}function a(l,c,f){if(Pt.isUndefined(c)){if(!Pt.isUndefined(l))return r(void 0,l,f)}else return r(l,c,f)}function o(l,c){if(!Pt.isUndefined(c))return r(void 0,c)}function i(l,c){if(Pt.isUndefined(c)){if(!Pt.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(WD(l),WD(c),!0)};return Pt.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=s[c]||a,h=f(e[c],t[c],c);Pt.isUndefined(h)&&f!==u||(n[c]=h)}),n}const GD="1.4.0",Px={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Px[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const KD={};Px.transitional=function(t,n,r){function a(o,i){return"[Axios v"+GD+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new kr(a(i," has been removed"+(n?" in "+n:"")),kr.ERR_DEPRECATED);return n&&!KD[i]&&(KD[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 NZ(e,t,n){if(typeof e!="object")throw new kr("options must be an object",kr.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 kr("option "+o+" must be "+s,kr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new kr("Unknown option "+o,kr.ERR_BAD_OPTION)}}const Ox={assertOptions:NZ,validators:Px},Eu=Ox.validators;class _g{constructor(t){this.defaults=t,this.interceptors={request:new MD,response:new MD}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bp(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&Ox.assertOptions(r,{silentJSONParsing:Eu.transitional(Eu.boolean),forcedJSONParsing:Eu.transitional(Eu.boolean),clarifyTimeoutError:Eu.transitional(Eu.boolean)},!1),a!=null&&(Pt.isFunction(a)?n.paramsSerializer={serialize:a}:Ox.assertOptions(a,{encode:Eu.function,serialize:Eu.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&Pt.merge(o.common,o[n.method]),i&&Pt.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=kl.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=[HD.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=HD.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=Bp(this.defaults,t);const n=zD(t.baseURL,t.url);return FD(n,t.params,t.paramsSerializer)}}Pt.forEach(["delete","get","head","options"],function(t){_g.prototype[t]=function(n,r){return this.request(Bp(r||{},{method:t,url:n,data:(r||{}).data}))}}),Pt.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,u){return this.request(Bp(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}_g.prototype[t]=n(),_g.prototype[t+"Form"]=n(!0)});const bg=_g;class kx{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 Rd(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 kx(function(a){t=a}),cancel:t}}}const FZ=kx;function MZ(e){return function(n){return e.apply(null,n)}}function LZ(e){return Pt.isObject(e)&&e.isAxiosError===!0}const Bx={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(Bx).forEach(([e,t])=>{Bx[t]=e});const RZ=Bx;function XD(e){const t=new bg(e),n=_D(bg.prototype.request,t);return Pt.extend(n,bg.prototype,t,{allOwnKeys:!0}),Pt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return XD(Bp(e,a))},n}const Ki=XD(Cx);Ki.Axios=bg,Ki.CanceledError=Rd,Ki.CancelToken=FZ,Ki.isCancel=VD,Ki.VERSION=GD,Ki.toFormData=dg,Ki.AxiosError=kr,Ki.Cancel=Ki.CanceledError,Ki.all=function(t){return Promise.all(t)},Ki.spread=MZ,Ki.isAxiosError=LZ,Ki.mergeConfig=Bp,Ki.AxiosHeaders=kl,Ki.formToJSON=e=>RD(Pt.isHTMLForm(e)?new FormData(e):e),Ki.HttpStatusCode=RZ,Ki.default=Ki;const YD=Ki,jZ=e=>{let t={};return e.map(n=>{t[n.name]=n.value}),t},VZ=e=>({moduleCache:{vue:vG},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)}}),JD=e=>{var n;if(!e)return null;(n=e==null?void 0:e.trim())!=null&&n.includes("<template>")||(e=`<template>${e}</template>`);const t=VZ(e);return x.defineAsyncComponent({loader:async()=>{const r=await Promise.resolve().then(()=>Loe),{loadModule:a}=r;return a("/myComponent.vue",t)}})},zZ=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 pa(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 UZ=function(e){return ZD(window.location.href,e)},ZD=function(e,t){const n=xg(e);return n==null?void 0:n[t]},HZ=e=>/^(?:%[0-9A-Fa-f]{2}|[A-Za-z0-9\-_.!~*'()]|%20)*$/.test(e),QD=function(){return xg(window.location.href)},qD=e=>{var t;return((t=e==null?void 0:e.split("?"))==null?void 0:t.at(0))||e||""},xg=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])||"";HZ(s)?t[u]=decodeURIComponent(s):t[u]=s}return t},$D=(e,t,n)=>{t=Object.assign(xg(e)||{},t),e=qD(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},WZ=e=>$D(e,QD()),e5=e=>{try{return new URL(e),!0}catch{return!1}},GZ=()=>{location.reload()},KZ=()=>{function e(u,s,l=!1){const c=E=>{const[w,S=""]=E.split("#",2),[A,P=""]=w.split("?",2);return{path:A.replace(/^#/,"").replace(/\/+$/,""),searchParams:new URLSearchParams(P),hashFragment:S}},f=c(u),h=c(s),d=l?new URLSearchParams(f.searchParams):new URLSearchParams;h.searchParams.forEach((E,w)=>{d.set(w,E)});const v=(E,w)=>{const S=E.split("/").filter(Boolean),A=w.split("/").filter(Boolean);for(const P of A)P!=="."&&(P===".."?S.length>0&&S.pop():S.push(P));return`/${S.join("/")}`},p=((E,w)=>w.startsWith("/")?`/${w.replace(/^\/+/,"")}`:v(E,h.path))(f.path,h.path),g=d.toString(),b=`${`${p}${g?`?${g}`:""}`}${h.hashFragment?`#${h.hashFragment}`:""}`;return(a()?`/#/${b}`:b).replace(/\/+/g,"/").replace(/^#\//,"#").replace(/%20/g,"+").replace(/[?#]/g,E=>E)}function t(u,s){return e(s,u)}const n=()=>window.location.hash,r=()=>window.location.pathname,a=()=>!!n(),o=u=>(u.startsWith("/")||(u="/"+u),window.location.origin+u);return{resolveByCurrentUrl:u=>{var l;if(e5(u))return u;const s=t(u,((l=n())==null?void 0:l.substring(1))||r());return o(s)}}},{resolveByCurrentUrl:XZ}=KZ(),Bl={buildUrl:$D,getBaseUrl:qD,getQueryParam:ZD,getLocationQueryParam:UZ,getQueryParams:xg,getLocationQueryParams:QD,buildUrlByLocalQuery:WZ,isUrl:e5,refresh:GZ,resolveByCurrentUrl:XZ};class Ix{constructor(){H(this,"type","ok");H(this,"body")}}class YZ{constructor(t){H(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 Ix;return n.type="ok",n.body=t,n}cancel(t){const n=new Ix;return n.type="cancel",n.body=t,n}close(t){const n=new Ix;return n.type="close",n.body=t,n}}function JZ(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 ZZ={install(e,t){const n=new YZ(e);e.config.globalProperties.$dzModal=n}},QZ=x.defineAsyncComponent(()=>Promise.resolve().then(()=>Ik));class qZ{constructor(){H(this,"fullscreen",{type:Boolean,default:!1});H(this,"width",{type:String});H(this,"height",{type:String});H(this,"title",{type:String});H(this,"url",{type:String});H(this,"dialogType",{type:Array});H(this,"callback",{type:Object})}}const $Z=new qZ,t5=(e,t)=>{const n=JZ(e);n==null||n.open(QZ,t,r=>{var u,s;const a=Kt(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 yo{static findUp(t,n,r={includeSelf:!0}){try{let a=t;for(;a;){if(console.log("正在查找",a,n),(r.includeSelf||a!==t)&&a.name===n)return console.log("window匹配",a),{window:a,iframe:a.frameElement};const o=a.frameElement;if((o==null?void 0:o.id)===n)return console.log("iframe匹配",o),{window:a,iframe:o};if(a===a.parent){console.log("到达顶层时停止",a);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=yo.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=yo.findByIframeId(n,t);if(a)return a;if(r==="up"||r==="both"){const o=yo.findUp(t,n);if(o)return o}if(r==="down"||r==="both"){const o=yo.findDown(t,n);if(o)return o}if(r==="both"){const o=yo.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 Eg=(e,t)=>(console.log("send to ",e,t),e?(e.postMessage(Qr(t),"*"),!0):!1),eQ=(e,t)=>{const n=yo.find(window,e);if(n)return Eg(n.window,t)},tQ=(e,t)=>Eg(e==null?void 0:e.contentWindow,t),nQ=e=>Eg(window.parent,e),rQ=(e,t=!1)=>{const n=r=>{e==null||e(r),t&&window.removeEventListener("message",n)};window.addEventListener("message",n)};function n5(){return{send:Eg,receive:rQ,sendToIframe:tQ,sendToIframeByName:eQ,sendToParent:nQ}}var Ip={},iQ={get exports(){return Ip},set exports(e){Ip=e}};(function(e,t){(function(){var n,r=0xdeadbeefcafe,a=(r&16777215)==15715070;function o(we,ke,je){we!=null&&(typeof we=="number"?this.fromNumber(we,ke,je):ke==null&&typeof we!="string"?this.fromString(we,256):this.fromString(we,ke))}function i(){return new o(null)}function u(we,ke,je,nt,Tt,Rt){for(;--Rt>=0;){var ln=ke*this[we++]+je[nt]+Tt;Tt=Math.floor(ln/67108864),je[nt++]=ln&67108863}return Tt}function s(we,ke,je,nt,Tt,Rt){for(var ln=ke&32767,pn=ke>>15;--Rt>=0;){var zr=this[we]&32767,si=this[we++]>>15,Sa=pn*zr+si*ln;zr=ln*zr+((Sa&32767)<<15)+je[nt]+(Tt&1073741823),Tt=(zr>>>30)+(Sa>>>15)+pn*si+(Tt>>>30),je[nt++]=zr&1073741823}return Tt}function l(we,ke,je,nt,Tt,Rt){for(var ln=ke&16383,pn=ke>>14;--Rt>=0;){var zr=this[we]&16383,si=this[we++]>>14,Sa=pn*zr+si*ln;zr=ln*zr+((Sa&16383)<<14)+je[nt]+Tt,Tt=(zr>>28)+(Sa>>14)+pn*si,je[nt++]=zr&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(we){return h.charAt(we)}function g(we,ke){var je=d[we.charCodeAt(ke)];return je??-1}function y(we){for(var ke=this.t-1;ke>=0;--ke)we[ke]=this[ke];we.t=this.t,we.s=this.s}function b(we){this.t=1,this.s=we<0?-1:0,we>0?this[0]=we:we<-1?this[0]=we+this.DV:this.t=0}function _(we){var ke=i();return ke.fromInt(we),ke}function E(we,ke){var je;if(ke==16)je=4;else if(ke==8)je=3;else if(ke==256)je=8;else if(ke==2)je=1;else if(ke==32)je=5;else if(ke==4)je=2;else{this.fromRadix(we,ke);return}this.t=0,this.s=0;for(var nt=we.length,Tt=!1,Rt=0;--nt>=0;){var ln=je==8?we[nt]&255:g(we,nt);if(ln<0){we.charAt(nt)=="-"&&(Tt=!0);continue}Tt=!1,Rt==0?this[this.t++]=ln:Rt+je>this.DB?(this[this.t-1]|=(ln&(1<<this.DB-Rt)-1)<<Rt,this[this.t++]=ln>>this.DB-Rt):this[this.t-1]|=ln<<Rt,Rt+=je,Rt>=this.DB&&(Rt-=this.DB)}je==8&&we[0]&128&&(this.s=-1,Rt>0&&(this[this.t-1]|=(1<<this.DB-Rt)-1<<Rt)),this.clamp(),Tt&&o.ZERO.subTo(this,this)}function w(){for(var we=this.s&this.DM;this.t>0&&this[this.t-1]==we;)--this.t}function S(we){if(this.s<0)return"-"+this.negate().toString(we);var ke;if(we==16)ke=4;else if(we==8)ke=3;else if(we==2)ke=1;else if(we==32)ke=5;else if(we==4)ke=2;else return this.toRadix(we);var je=(1<<ke)-1,nt,Tt=!1,Rt="",ln=this.t,pn=this.DB-ln*this.DB%ke;if(ln-- >0)for(pn<this.DB&&(nt=this[ln]>>pn)>0&&(Tt=!0,Rt=p(nt));ln>=0;)pn<ke?(nt=(this[ln]&(1<<pn)-1)<<ke-pn,nt|=this[--ln]>>(pn+=this.DB-ke)):(nt=this[ln]>>(pn-=ke)&je,pn<=0&&(pn+=this.DB,--ln)),nt>0&&(Tt=!0),Tt&&(Rt+=p(nt));return Tt?Rt:"0"}function A(){var we=i();return o.ZERO.subTo(this,we),we}function P(){return this.s<0?this.negate():this}function C(we){var ke=this.s-we.s;if(ke!=0)return ke;var je=this.t;if(ke=je-we.t,ke!=0)return this.s<0?-ke:ke;for(;--je>=0;)if((ke=this[je]-we[je])!=0)return ke;return 0}function D(we){var ke=1,je;return(je=we>>>16)!=0&&(we=je,ke+=16),(je=we>>8)!=0&&(we=je,ke+=8),(je=we>>4)!=0&&(we=je,ke+=4),(je=we>>2)!=0&&(we=je,ke+=2),(je=we>>1)!=0&&(we=je,ke+=1),ke}function O(){return this.t<=0?0:this.DB*(this.t-1)+D(this[this.t-1]^this.s&this.DM)}function k(we,ke){var je;for(je=this.t-1;je>=0;--je)ke[je+we]=this[je];for(je=we-1;je>=0;--je)ke[je]=0;ke.t=this.t+we,ke.s=this.s}function I(we,ke){for(var je=we;je<this.t;++je)ke[je-we]=this[je];ke.t=Math.max(this.t-we,0),ke.s=this.s}function N(we,ke){var je=we%this.DB,nt=this.DB-je,Tt=(1<<nt)-1,Rt=Math.floor(we/this.DB),ln=this.s<<je&this.DM,pn;for(pn=this.t-1;pn>=0;--pn)ke[pn+Rt+1]=this[pn]>>nt|ln,ln=(this[pn]&Tt)<<je;for(pn=Rt-1;pn>=0;--pn)ke[pn]=0;ke[Rt]=ln,ke.t=this.t+Rt+1,ke.s=this.s,ke.clamp()}function F(we,ke){ke.s=this.s;var je=Math.floor(we/this.DB);if(je>=this.t){ke.t=0;return}var nt=we%this.DB,Tt=this.DB-nt,Rt=(1<<nt)-1;ke[0]=this[je]>>nt;for(var ln=je+1;ln<this.t;++ln)ke[ln-je-1]|=(this[ln]&Rt)<<Tt,ke[ln-je]=this[ln]>>nt;nt>0&&(ke[this.t-je-1]|=(this.s&Rt)<<Tt),ke.t=this.t-je,ke.clamp()}function R(we,ke){for(var je=0,nt=0,Tt=Math.min(we.t,this.t);je<Tt;)nt+=this[je]-we[je],ke[je++]=nt&this.DM,nt>>=this.DB;if(we.t<this.t){for(nt-=we.s;je<this.t;)nt+=this[je],ke[je++]=nt&this.DM,nt>>=this.DB;nt+=this.s}else{for(nt+=this.s;je<we.t;)nt-=we[je],ke[je++]=nt&this.DM,nt>>=this.DB;nt-=we.s}ke.s=nt<0?-1:0,nt<-1?ke[je++]=this.DV+nt:nt>0&&(ke[je++]=nt),ke.t=je,ke.clamp()}function M(we,ke){var je=this.abs(),nt=we.abs(),Tt=je.t;for(ke.t=Tt+nt.t;--Tt>=0;)ke[Tt]=0;for(Tt=0;Tt<nt.t;++Tt)ke[Tt+je.t]=je.am(0,nt[Tt],ke,Tt,0,je.t);ke.s=0,ke.clamp(),this.s!=we.s&&o.ZERO.subTo(ke,ke)}function j(we){for(var ke=this.abs(),je=we.t=2*ke.t;--je>=0;)we[je]=0;for(je=0;je<ke.t-1;++je){var nt=ke.am(je,ke[je],we,2*je,0,1);(we[je+ke.t]+=ke.am(je+1,2*ke[je],we,2*je+1,nt,ke.t-je-1))>=ke.DV&&(we[je+ke.t]-=ke.DV,we[je+ke.t+1]=1)}we.t>0&&(we[we.t-1]+=ke.am(je,ke[je],we,2*je,0,1)),we.s=0,we.clamp()}function W(we,ke,je){var nt=we.abs();if(!(nt.t<=0)){var Tt=this.abs();if(Tt.t<nt.t){ke!=null&&ke.fromInt(0),je!=null&&this.copyTo(je);return}je==null&&(je=i());var Rt=i(),ln=this.s,pn=we.s,zr=this.DB-D(nt[nt.t-1]);zr>0?(nt.lShiftTo(zr,Rt),Tt.lShiftTo(zr,je)):(nt.copyTo(Rt),Tt.copyTo(je));var si=Rt.t,Sa=Rt[si-1];if(Sa!=0){var $i=Sa*(1<<this.F1)+(si>1?Rt[si-2]>>this.F2:0),Sn=this.FV/$i,Cn=(1<<this.F1)/$i,Oi=1<<this.F2,bi=je.t,hu=bi-si,ea=ke??i();for(Rt.dlShiftTo(hu,ea),je.compareTo(ea)>=0&&(je[je.t++]=1,je.subTo(ea,je)),o.ONE.dlShiftTo(si,ea),ea.subTo(Rt,Rt);Rt.t<si;)Rt[Rt.t++]=0;for(;--hu>=0;){var Dc=je[--bi]==Sa?this.DM:Math.floor(je[bi]*Sn+(je[bi-1]+Oi)*Cn);if((je[bi]+=Rt.am(0,Dc,je,hu,0,si))<Dc)for(Rt.dlShiftTo(hu,ea),je.subTo(ea,je);je[bi]<--Dc;)je.subTo(ea,je)}ke!=null&&(je.drShiftTo(si,ke),ln!=pn&&o.ZERO.subTo(ke,ke)),je.t=si,je.clamp(),zr>0&&je.rShiftTo(zr,je),ln<0&&o.ZERO.subTo(je,je)}}}function L(we){var ke=i();return this.abs().divRemTo(we,null,ke),this.s<0&&ke.compareTo(o.ZERO)>0&&we.subTo(ke,ke),ke}function z(we){this.m=we}function G(we){return we.s<0||we.compareTo(this.m)>=0?we.mod(this.m):we}function Y(we){return we}function J(we){we.divRemTo(this.m,null,we)}function Q(we,ke,je){we.multiplyTo(ke,je),this.reduce(je)}function ue(we,ke){we.squareTo(ke),this.reduce(ke)}z.prototype.convert=G,z.prototype.revert=Y,z.prototype.reduce=J,z.prototype.mulTo=Q,z.prototype.sqrTo=ue;function ae(){if(this.t<1)return 0;var we=this[0];if(!(we&1))return 0;var ke=we&3;return ke=ke*(2-(we&15)*ke)&15,ke=ke*(2-(we&255)*ke)&255,ke=ke*(2-((we&65535)*ke&65535))&65535,ke=ke*(2-we*ke%this.DV)%this.DV,ke>0?this.DV-ke:-ke}function te(we){this.m=we,this.mp=we.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<we.DB-15)-1,this.mt2=2*we.t}function se(we){var ke=i();return we.abs().dlShiftTo(this.m.t,ke),ke.divRemTo(this.m,null,ke),we.s<0&&ke.compareTo(o.ZERO)>0&&this.m.subTo(ke,ke),ke}function me(we){var ke=i();return we.copyTo(ke),this.reduce(ke),ke}function K(we){for(;we.t<=this.mt2;)we[we.t++]=0;for(var ke=0;ke<this.m.t;++ke){var je=we[ke]&32767,nt=je*this.mpl+((je*this.mph+(we[ke]>>15)*this.mpl&this.um)<<15)&we.DM;for(je=ke+this.m.t,we[je]+=this.m.am(0,nt,we,ke,0,this.m.t);we[je]>=we.DV;)we[je]-=we.DV,we[++je]++}we.clamp(),we.drShiftTo(this.m.t,we),we.compareTo(this.m)>=0&&we.subTo(this.m,we)}function $(we,ke){we.squareTo(ke),this.reduce(ke)}function ee(we,ke,je){we.multiplyTo(ke,je),this.reduce(je)}te.prototype.convert=se,te.prototype.revert=me,te.prototype.reduce=K,te.prototype.mulTo=ee,te.prototype.sqrTo=$;function ce(){return(this.t>0?this[0]&1:this.s)==0}function fe(we,ke){if(we>4294967295||we<1)return o.ONE;var je=i(),nt=i(),Tt=ke.convert(this),Rt=D(we)-1;for(Tt.copyTo(je);--Rt>=0;)if(ke.sqrTo(je,nt),(we&1<<Rt)>0)ke.mulTo(nt,Tt,je);else{var ln=je;je=nt,nt=ln}return ke.revert(je)}function de(we,ke){var je;return we<256||ke.isEven()?je=new z(ke):je=new te(ke),this.exp(we,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=ae,o.prototype.isEven=ce,o.prototype.exp=fe,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 pe(){var we=i();return this.copyTo(we),we}function xe(){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 De(){return this.t==0?this.s:this[0]<<24>>24}function ge(){return this.t==0?this.s:this[0]<<16>>16}function Ae(we){return Math.floor(Math.LN2*this.DB/Math.log(we))}function X(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Z(we){if(we==null&&(we=10),this.signum()==0||we<2||we>36)return"0";var ke=this.chunkSize(we),je=Math.pow(we,ke),nt=_(je),Tt=i(),Rt=i(),ln="";for(this.divRemTo(nt,Tt,Rt);Tt.signum()>0;)ln=(je+Rt.intValue()).toString(we).substr(1)+ln,Tt.divRemTo(nt,Tt,Rt);return Rt.intValue().toString(we)+ln}function ne(we,ke){this.fromInt(0),ke==null&&(ke=10);for(var je=this.chunkSize(ke),nt=Math.pow(ke,je),Tt=!1,Rt=0,ln=0,pn=0;pn<we.length;++pn){var zr=g(we,pn);if(zr<0){we.charAt(pn)=="-"&&this.signum()==0&&(Tt=!0);continue}ln=ke*ln+zr,++Rt>=je&&(this.dMultiply(nt),this.dAddOffset(ln,0),Rt=0,ln=0)}Rt>0&&(this.dMultiply(Math.pow(ke,Rt)),this.dAddOffset(ln,0)),Tt&&o.ZERO.subTo(this,this)}function ve(we,ke,je){if(typeof ke=="number")if(we<2)this.fromInt(1);else for(this.fromNumber(we,je),this.testBit(we-1)||this.bitwiseTo(o.ONE.shiftLeft(we-1),ot,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(ke);)this.dAddOffset(2,0),this.bitLength()>we&&this.subTo(o.ONE.shiftLeft(we-1),this);else{var nt=new Array,Tt=we&7;nt.length=(we>>3)+1,ke.nextBytes(nt),Tt>0?nt[0]&=(1<<Tt)-1:nt[0]=0,this.fromString(nt,256)}}function Be(){var we=this.t,ke=new Array;ke[0]=this.s;var je=this.DB-we*this.DB%8,nt,Tt=0;if(we-- >0)for(je<this.DB&&(nt=this[we]>>je)!=(this.s&this.DM)>>je&&(ke[Tt++]=nt|this.s<<this.DB-je);we>=0;)je<8?(nt=(this[we]&(1<<je)-1)<<8-je,nt|=this[--we]>>(je+=this.DB-8)):(nt=this[we]>>(je-=8)&255,je<=0&&(je+=this.DB,--we)),nt&128&&(nt|=-256),Tt==0&&(this.s&128)!=(nt&128)&&++Tt,(Tt>0||nt!=this.s)&&(ke[Tt++]=nt);return ke}function Ie(we){return this.compareTo(we)==0}function Ne(we){return this.compareTo(we)<0?this:we}function Fe(we){return this.compareTo(we)>0?this:we}function ze(we,ke,je){var nt,Tt,Rt=Math.min(we.t,this.t);for(nt=0;nt<Rt;++nt)je[nt]=ke(this[nt],we[nt]);if(we.t<this.t){for(Tt=we.s&this.DM,nt=Rt;nt<this.t;++nt)je[nt]=ke(this[nt],Tt);je.t=this.t}else{for(Tt=this.s&this.DM,nt=Rt;nt<we.t;++nt)je[nt]=ke(Tt,we[nt]);je.t=we.t}je.s=ke(this.s,we.s),je.clamp()}function Ve(we,ke){return we&ke}function Ye(we){var ke=i();return this.bitwiseTo(we,Ve,ke),ke}function ot(we,ke){return we|ke}function Lt(we){var ke=i();return this.bitwiseTo(we,ot,ke),ke}function At(we,ke){return we^ke}function nn(we){var ke=i();return this.bitwiseTo(we,At,ke),ke}function Bt(we,ke){return we&~ke}function Dt(we){var ke=i();return this.bitwiseTo(we,Bt,ke),ke}function ht(){for(var we=i(),ke=0;ke<this.t;++ke)we[ke]=this.DM&~this[ke];return we.t=this.t,we.s=~this.s,we}function kn(we){var ke=i();return we<0?this.rShiftTo(-we,ke):this.lShiftTo(we,ke),ke}function it(we){var ke=i();return we<0?this.lShiftTo(-we,ke):this.rShiftTo(we,ke),ke}function ut(we){if(we==0)return-1;var ke=0;return we&65535||(we>>=16,ke+=16),we&255||(we>>=8,ke+=8),we&15||(we>>=4,ke+=4),we&3||(we>>=2,ke+=2),we&1||++ke,ke}function re(){for(var we=0;we<this.t;++we)if(this[we]!=0)return we*this.DB+ut(this[we]);return this.s<0?this.t*this.DB:-1}function Oe(we){for(var ke=0;we!=0;)we&=we-1,++ke;return ke}function Te(){for(var we=0,ke=this.s&this.DM,je=0;je<this.t;++je)we+=Oe(this[je]^ke);return we}function Me(we){var ke=Math.floor(we/this.DB);return ke>=this.t?this.s!=0:(this[ke]&1<<we%this.DB)!=0}function Ue(we,ke){var je=o.ONE.shiftLeft(we);return this.bitwiseTo(je,ke,je),je}function ct(we){return this.changeBit(we,ot)}function wt(we){return this.changeBit(we,Bt)}function Ft(we){return this.changeBit(we,At)}function Wt(we,ke){for(var je=0,nt=0,Tt=Math.min(we.t,this.t);je<Tt;)nt+=this[je]+we[je],ke[je++]=nt&this.DM,nt>>=this.DB;if(we.t<this.t){for(nt+=we.s;je<this.t;)nt+=this[je],ke[je++]=nt&this.DM,nt>>=this.DB;nt+=this.s}else{for(nt+=this.s;je<we.t;)nt+=we[je],ke[je++]=nt&this.DM,nt>>=this.DB;nt+=we.s}ke.s=nt<0?-1:0,nt>0?ke[je++]=nt:nt<-1&&(ke[je++]=this.DV+nt),ke.t=je,ke.clamp()}function On(we){var ke=i();return this.addTo(we,ke),ke}function vr(we){var ke=i();return this.subTo(we,ke),ke}function oi(we){var ke=i();return this.multiplyTo(we,ke),ke}function jr(){var we=i();return this.squareTo(we),we}function Tr(we){var ke=i();return this.divRemTo(we,ke,null),ke}function la(we){var ke=i();return this.divRemTo(we,null,ke),ke}function Lr(we){var ke=i(),je=i();return this.divRemTo(we,ke,je),new Array(ke,je)}function ji(we){this[this.t]=this.am(0,we-1,this,0,0,this.t),++this.t,this.clamp()}function vo(we,ke){if(we!=0){for(;this.t<=ke;)this[this.t++]=0;for(this[ke]+=we;this[ke]>=this.DV;)this[ke]-=this.DV,++ke>=this.t&&(this[this.t++]=0),++this[ke]}}function ti(){}function Vi(we){return we}function mo(we,ke,je){we.multiplyTo(ke,je)}function qi(we,ke){we.squareTo(ke)}ti.prototype.convert=Vi,ti.prototype.revert=Vi,ti.prototype.mulTo=mo,ti.prototype.sqrTo=qi;function bs(we){return this.exp(we,new ti)}function ft(we,ke,je){var nt=Math.min(this.t+we.t,ke);for(je.s=0,je.t=nt;nt>0;)je[--nt]=0;var Tt;for(Tt=je.t-this.t;nt<Tt;++nt)je[nt+this.t]=this.am(0,we[nt],je,nt,0,this.t);for(Tt=Math.min(we.t,ke);nt<Tt;++nt)this.am(0,we[nt],je,nt,0,ke-nt);je.clamp()}function T(we,ke,je){--ke;var nt=je.t=this.t+we.t-ke;for(je.s=0;--nt>=0;)je[nt]=0;for(nt=Math.max(ke-this.t,0);nt<we.t;++nt)je[this.t+nt-ke]=this.am(ke-nt,we[nt],je,0,0,this.t+nt-ke);je.clamp(),je.drShiftTo(1,je)}function B(we){this.r2=i(),this.q3=i(),o.ONE.dlShiftTo(2*we.t,this.r2),this.mu=this.r2.divide(we),this.m=we}function V(we){if(we.s<0||we.t>2*this.m.t)return we.mod(this.m);if(we.compareTo(this.m)<0)return we;var ke=i();return we.copyTo(ke),this.reduce(ke),ke}function U(we){return we}function q(we){for(we.drShiftTo(this.m.t-1,this.r2),we.t>this.m.t+1&&(we.t=this.m.t+1,we.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);we.compareTo(this.r2)<0;)we.dAddOffset(1,this.m.t+1);for(we.subTo(this.r2,we);we.compareTo(this.m)>=0;)we.subTo(this.m,we)}function he(we,ke){we.squareTo(ke),this.reduce(ke)}function Ce(we,ke,je){we.multiplyTo(ke,je),this.reduce(je)}B.prototype.convert=V,B.prototype.revert=U,B.prototype.reduce=q,B.prototype.mulTo=Ce,B.prototype.sqrTo=he;function Re(we,ke){var je=we.bitLength(),nt,Tt=_(1),Rt;if(je<=0)return Tt;je<18?nt=1:je<48?nt=3:je<144?nt=4:je<768?nt=5:nt=6,je<8?Rt=new z(ke):ke.isEven()?Rt=new B(ke):Rt=new te(ke);var ln=new Array,pn=3,zr=nt-1,si=(1<<nt)-1;if(ln[1]=Rt.convert(this),nt>1){var Sa=i();for(Rt.sqrTo(ln[1],Sa);pn<=si;)ln[pn]=i(),Rt.mulTo(Sa,ln[pn-2],ln[pn]),pn+=2}var $i=we.t-1,Sn,Cn=!0,Oi=i(),bi;for(je=D(we[$i])-1;$i>=0;){for(je>=zr?Sn=we[$i]>>je-zr&si:(Sn=(we[$i]&(1<<je+1)-1)<<zr-je,$i>0&&(Sn|=we[$i-1]>>this.DB+je-zr)),pn=nt;!(Sn&1);)Sn>>=1,--pn;if((je-=pn)<0&&(je+=this.DB,--$i),Cn)ln[Sn].copyTo(Tt),Cn=!1;else{for(;pn>1;)Rt.sqrTo(Tt,Oi),Rt.sqrTo(Oi,Tt),pn-=2;pn>0?Rt.sqrTo(Tt,Oi):(bi=Tt,Tt=Oi,Oi=bi),Rt.mulTo(Oi,ln[Sn],Tt)}for(;$i>=0&&!(we[$i]&1<<je);)Rt.sqrTo(Tt,Oi),bi=Tt,Tt=Oi,Oi=bi,--je<0&&(je=this.DB-1,--$i)}return Rt.revert(Tt)}function Je(we){var ke=this.s<0?this.negate():this.clone(),je=we.s<0?we.negate():we.clone();if(ke.compareTo(je)<0){var nt=ke;ke=je,je=nt}var Tt=ke.getLowestSetBit(),Rt=je.getLowestSetBit();if(Rt<0)return ke;for(Tt<Rt&&(Rt=Tt),Rt>0&&(ke.rShiftTo(Rt,ke),je.rShiftTo(Rt,je));ke.signum()>0;)(Tt=ke.getLowestSetBit())>0&&ke.rShiftTo(Tt,ke),(Tt=je.getLowestSetBit())>0&&je.rShiftTo(Tt,je),ke.compareTo(je)>=0?(ke.subTo(je,ke),ke.rShiftTo(1,ke)):(je.subTo(ke,je),je.rShiftTo(1,je));return Rt>0&&je.lShiftTo(Rt,je),je}function et(we){if(we<=0)return 0;var ke=this.DV%we,je=this.s<0?we-1:0;if(this.t>0)if(ke==0)je=this[0]%we;else for(var nt=this.t-1;nt>=0;--nt)je=(ke*je+this[nt])%we;return je}function gt(we){var ke=we.isEven();if(this.isEven()&&ke||we.signum()==0)return o.ZERO;for(var je=we.clone(),nt=this.clone(),Tt=_(1),Rt=_(0),ln=_(0),pn=_(1);je.signum()!=0;){for(;je.isEven();)je.rShiftTo(1,je),ke?((!Tt.isEven()||!Rt.isEven())&&(Tt.addTo(this,Tt),Rt.subTo(we,Rt)),Tt.rShiftTo(1,Tt)):Rt.isEven()||Rt.subTo(we,Rt),Rt.rShiftTo(1,Rt);for(;nt.isEven();)nt.rShiftTo(1,nt),ke?((!ln.isEven()||!pn.isEven())&&(ln.addTo(this,ln),pn.subTo(we,pn)),ln.rShiftTo(1,ln)):pn.isEven()||pn.subTo(we,pn),pn.rShiftTo(1,pn);je.compareTo(nt)>=0?(je.subTo(nt,je),ke&&Tt.subTo(ln,Tt),Rt.subTo(pn,Rt)):(nt.subTo(je,nt),ke&&ln.subTo(Tt,ln),pn.subTo(Rt,pn))}if(nt.compareTo(o.ONE)!=0)return o.ZERO;if(pn.compareTo(we)>=0)return pn.subtract(we);if(pn.signum()<0)pn.addTo(we,pn);else return pn;return pn.signum()<0?pn.add(we):pn}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],St=(1<<26)/dt[dt.length-1];function sn(we){var ke,je=this.abs();if(je.t==1&&je[0]<=dt[dt.length-1]){for(ke=0;ke<dt.length;++ke)if(je[0]==dt[ke])return!0;return!1}if(je.isEven())return!1;for(ke=1;ke<dt.length;){for(var nt=dt[ke],Tt=ke+1;Tt<dt.length&&nt<St;)nt*=dt[Tt++];for(nt=je.modInt(nt);ke<Tt;)if(nt%dt[ke++]==0)return!1}return je.millerRabin(we)}function _n(we){var ke=this.subtract(o.ONE),je=ke.getLowestSetBit();if(je<=0)return!1;var nt=ke.shiftRight(je);we=we+1>>1,we>dt.length&&(we=dt.length);for(var Tt=i(),Rt=0;Rt<we;++Rt){Tt.fromInt(dt[Math.floor(Math.random()*dt.length)]);var ln=Tt.modPow(nt,this);if(ln.compareTo(o.ONE)!=0&&ln.compareTo(ke)!=0){for(var pn=1;pn++<je&&ln.compareTo(ke)!=0;)if(ln=ln.modPowInt(2,this),ln.compareTo(o.ONE)==0)return!1;if(ln.compareTo(ke)!=0)return!1}}return!0}o.prototype.chunkSize=Ae,o.prototype.toRadix=Z,o.prototype.fromRadix=ne,o.prototype.fromNumber=ve,o.prototype.bitwiseTo=ze,o.prototype.changeBit=Ue,o.prototype.addTo=Wt,o.prototype.dMultiply=ji,o.prototype.dAddOffset=vo,o.prototype.multiplyLowerTo=ft,o.prototype.multiplyUpperTo=T,o.prototype.modInt=et,o.prototype.millerRabin=_n,o.prototype.clone=pe,o.prototype.intValue=xe,o.prototype.byteValue=De,o.prototype.shortValue=ge,o.prototype.signum=X,o.prototype.toByteArray=Be,o.prototype.equals=Ie,o.prototype.min=Ne,o.prototype.max=Fe,o.prototype.and=Ye,o.prototype.or=Lt,o.prototype.xor=nn,o.prototype.andNot=Dt,o.prototype.not=ht,o.prototype.shiftLeft=kn,o.prototype.shiftRight=it,o.prototype.getLowestSetBit=re,o.prototype.bitCount=Te,o.prototype.testBit=Me,o.prototype.setBit=ct,o.prototype.clearBit=wt,o.prototype.flipBit=Ft,o.prototype.add=On,o.prototype.subtract=vr,o.prototype.multiply=oi,o.prototype.divide=Tr,o.prototype.remainder=la,o.prototype.divideAndRemainder=Lr,o.prototype.modPow=Re,o.prototype.modInverse=gt,o.prototype.pow=bs,o.prototype.gcd=Je,o.prototype.isProbablePrime=sn,o.prototype.square=jr,o.prototype.Barrett=B;var Gt,Jt,rt;function Ot(we){Jt[rt++]^=we&255,Jt[rt++]^=we>>8&255,Jt[rt++]^=we>>16&255,Jt[rt++]^=we>>24&255,rt>=kt&&(rt-=kt)}function Qt(){Ot(new Date().getTime())}if(Jt==null){Jt=new Array,rt=0;var fn;if(typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var Wn=new Uint8Array(32);for(window.crypto.getRandomValues(Wn),fn=0;fn<32;++fn)Jt[rt++]=Wn[fn]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var Un=window.crypto.random(32);for(fn=0;fn<Un.length;++fn)Jt[rt++]=Un.charCodeAt(fn)&255}}for(;rt<kt;)fn=Math.floor(65536*Math.random()),Jt[rt++]=fn>>>8,Jt[rt++]=fn&255;rt=0,Qt()}function Vr(){if(Gt==null){for(Qt(),Gt=bt(),Gt.init(Jt),rt=0;rt<Jt.length;++rt)Jt[rt]=0;rt=0}return Gt.next()}function yr(we){var ke;for(ke=0;ke<we.length;++ke)we[ke]=Vr()}function le(){}le.prototype.nextBytes=yr;function Ee(){this.i=0,this.j=0,this.S=new Array}function We(we){var ke,je,nt;for(ke=0;ke<256;++ke)this.S[ke]=ke;for(je=0,ke=0;ke<256;++ke)je=je+this.S[ke]+we[ke%we.length]&255,nt=this.S[ke],this.S[ke]=this.S[je],this.S[je]=nt;this.i=0,this.j=0}function $e(){var we;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,we=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=we,this.S[we+this.S[this.i]&255]}Ee.prototype.init=We,Ee.prototype.next=$e;function bt(){return new Ee}var kt=256;e.exports={default:o,BigInteger:o,SecureRandom:le}}).call(Qn)})(iQ);const{BigInteger:Np}=Ip;function aQ(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 Np(r,16),t=r.xor(e).add(Np.ONE),t=t.toString(16).replace(/^-/,"")}return t}class r5{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 i5 extends r5{constructor(t){super(),this.t="02",t&&(this.v=aQ(t))}getValue(){return this.v}}class oQ extends r5{constructor(t){super(),this.t="30",this.asn1Array=t}getValue(){return this.v=this.asn1Array.map(t=>t.getEncodedHex()).join(""),this.v}}function a5(e,t){return+e[t+2]<8?1:+e.substr(t+2,2)&127+1}function o5(e,t){const n=a5(e,t),r=e.substr(t+2,n*2);return r?(+r[0]<8?new Np(r,16):new Np(r.substr(2),16)).intValue():-1}function Nx(e,t){const n=a5(e,t);return t+(n+1)*2}var sQ={encodeDer(e,t){const n=new i5(e),r=new i5(t);return new oQ([n,r]).getEncodedHex()},decodeDer(e){const t=Nx(e,0),n=Nx(e,t),r=o5(e,t),a=e.substr(n,r*2),o=n+a.length,i=Nx(e,o),u=o5(e,o),s=e.substr(i,u*2),l=new Np(a,16),c=new Np(s,16);return{r:l,s:c}}};const{BigInteger:Ua}=Ip,s5=new Ua("2"),l5=new Ua("3");class wu{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 wu(this.q,this.x.negate().mod(this.q))}add(t){return new wu(this.q,this.x.add(t.toBigInteger()).mod(this.q))}subtract(t){return new wu(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))}multiply(t){return new wu(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))}divide(t){return new wu(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))}square(){return new wu(this.q,this.x.square().mod(this.q))}}class Su{constructor(t,n,r,a){this.curve=t,this.x=n,this.y=r,this.z=a??Ua.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(Ua.ZERO)?t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(Ua.ZERO):!1}isInfinity(){return this.x===null&&this.y===null?!0:this.z.equals(Ua.ZERO)&&!this.y.toBigInteger().equals(Ua.ZERO)}negate(){return new Su(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(Ua.ZERO.equals(f))return Ua.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 Su(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(l5).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 Su(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(l5),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 lQ={ECPointFp:Su,ECCurveFp:class{constructor(t,n,r){this.q=t,this.a=this.fromBigInteger(n),this.b=this.fromBigInteger(r),this.infinity=new Su(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 wu(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 Ua(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 Ua("4")).add(Ua.ONE),this.q));return r.toBigInteger().mod(s5).equals(new Ua(t.substr(0,2),16).subtract(s5))||(r=r.negate()),new Su(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 Su(this,this.fromBigInteger(new Ua(o,16)),this.fromBigInteger(new Ua(i,16)));default:return null}}}};const{BigInteger:Cs,SecureRandom:uQ}=Ip,{ECCurveFp:cQ}=lQ,fQ=new uQ,{curve:Fp,G:pQ,n:u5}=c5();function hQ(){return Fp}function c5(){const e=new Cs("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),t=new Cs("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),n=new Cs("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),r=new cQ(e,t,n),a="32C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7",o="BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0",i=r.decodePointHex("04"+a+o),u=new Cs("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16);return{curve:r,G:i,n:u}}function dQ(e,t,n){const a=(e?new Cs(e,t,n):new Cs(u5.bitLength(),fQ)).mod(u5.subtract(Cs.ONE)).add(Cs.ONE),o=jd(a.toString(16),64),i=pQ.multiply(a),u=jd(i.getX().toBigInteger().toString(16),64),s=jd(i.getY().toBigInteger().toString(16),64),l="04"+u+s;return{privateKey:o,publicKey:l}}function vQ(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 Cs(e.substr(t+2,t),16);let a="03";return r.mod(new Cs("2")).equals(Cs.ZERO)&&(a="02"),a+n}function mQ(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 jd(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function gQ(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function yQ(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 _Q(e){const t=[];let n=e.length;n%2!==0&&(e=jd(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 bQ(e){const t=Fp.decodePointHex(e);if(!t)return!1;const n=t.getX();return t.getY().square().equals(n.multiply(n.square()).add(n.multiply(Fp.a)).add(Fp.b))}function xQ(e,t){const n=Fp.decodePointHex(e);if(!n)return!1;const r=Fp.decodePointHex(t);return r?n.equals(r):!1}var EQ={getGlobalCurve:hQ,generateEcparam:c5,generateKeyPairHex:dQ,compressPublicKeyHex:vQ,utf8ToHex:mQ,leftPad:jd,arrayToHex:gQ,arrayToUtf8:yQ,hexToArray:_Q,verifyPublicKey:bQ,comparePublicKeyHex:xQ};const As=new Uint32Array(68),Fx=new Uint32Array(64);function Lo(e,t){const n=t&31;return e<<n|e>>>32-n}function f5(e,t){const n=[];for(let r=e.length-1;r>=0;r--)n[r]=(e[r]^t[r])&255;return n}function wQ(e){return e^Lo(e,9)^Lo(e,17)}function SQ(e){return e^Lo(e,15)^Lo(e,23)}function wg(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++){As.fill(0),Fx.fill(0);const f=16*c;for(let D=0;D<16;D++)As[D]=i.getUint32((f+D)*4,!1);for(let D=16;D<68;D++)As[D]=SQ(As[D-16]^As[D-9]^Lo(As[D-3],15))^Lo(As[D-13],7)^As[D-6];for(let D=0;D<64;D++)Fx[D]=As[D]^As[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+Fx[D],P=(D>=0&&D<=15?y^b^_:y&b|~y&_)+E+w+As[D],g=p,p=Lo(m,9),m=v,v=A,E=_,_=Lo(b,19),b=y,y=wQ(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 Vd=64,p5=new Uint8Array(Vd),h5=new Uint8Array(Vd);for(let e=0;e<Vd;e++)p5[e]=54,h5[e]=92;function CQ(e,t){for(t.length>Vd&&(t=wg(t));t.length<Vd;)t.push(0);const n=f5(t,p5),r=f5(t,h5),a=wg([...n,...e]);return wg([...r,...a])}var d5={sm3:wg,hmac:CQ};const{BigInteger:_o}=Ip,{encodeDer:AQ,decodeDer:TQ}=sQ,ar=EQ,Mp=d5.sm3,{G:Uc,curve:v5,n:Lp}=ar.generateEcparam(),m5=0;function DQ(e,t,n=1){e=typeof e=="string"?ar.hexToArray(ar.utf8ToHex(e)):Array.prototype.slice.call(e),t=ar.getGlobalCurve().decodePointHex(t);const r=ar.generateKeyPairHex(),a=new _o(r.privateKey,16);let o=r.publicKey;o.length>128&&(o=o.substr(o.length-128));const i=t.multiply(a),u=ar.hexToArray(ar.leftPad(i.getX().toBigInteger().toRadix(16),64)),s=ar.hexToArray(ar.leftPad(i.getY().toBigInteger().toRadix(16),64)),l=ar.arrayToHex(Mp([].concat(u,e,s)));let c=1,f=0,h=[];const d=[].concat(u,s),v=()=>{h=Mp([...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=ar.arrayToHex(e);return n===m5?o+m+l:o+l+m}function PQ(e,t,n=1,{output:r="string"}={}){t=new _o(t,16);let a=e.substr(128,64),o=e.substr(128+64);n===m5&&(a=e.substr(e.length-64),o=e.substr(128,e.length-128-64));const i=ar.hexToArray(o),s=ar.getGlobalCurve().decodePointHex("04"+e.substr(0,128)).multiply(t),l=ar.hexToArray(ar.leftPad(s.getX().toBigInteger().toRadix(16),64)),c=ar.hexToArray(ar.leftPad(s.getY().toBigInteger().toRadix(16),64));let f=1,h=0,d=[];const v=[].concat(l,c),m=()=>{d=Mp([...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 ar.arrayToHex(Mp([].concat(l,i,c)))===a.toLowerCase()?r==="array"?i:ar.arrayToUtf8(i):r==="array"?[]:""}function OQ(e,t,{pointPool:n,der:r,hash:a,publicKey:o,userId:i}={}){let u=typeof e=="string"?ar.utf8ToHex(e):ar.arrayToHex(e);a&&(o=o||y5(t),u=g5(u,o,i));const s=new _o(t,16),l=new _o(u,16);let c=null,f=null,h=null;do{do{let d;n&&n.length?d=n.pop():d=_5(),c=d.k,f=l.add(d.x1).mod(Lp)}while(f.equals(_o.ZERO)||f.add(c).equals(Lp));h=s.add(_o.ONE).modInverse(Lp).multiply(c.subtract(f.multiply(s))).mod(Lp)}while(h.equals(_o.ZERO));return r?AQ(f,h):ar.leftPad(f.toString(16),64)+ar.leftPad(h.toString(16),64)}function kQ(e,t,n,{der:r,hash:a,userId:o}={}){let i=typeof e=="string"?ar.utf8ToHex(e):ar.arrayToHex(e);a&&(i=g5(i,n,o));let u,s;if(r){const v=TQ(t);u=v.r,s=v.s}else u=new _o(t.substring(0,64),16),s=new _o(t.substring(64),16);const l=v5.decodePointHex(n),c=new _o(i,16),f=u.add(s).mod(Lp);if(f.equals(_o.ZERO))return!1;const h=Uc.multiply(s).add(l.multiply(f)),d=c.add(h.getX().toBigInteger()).mod(Lp);return u.equals(d)}function g5(e,t,n="1234567812345678"){n=ar.utf8ToHex(n);const r=ar.leftPad(Uc.curve.a.toBigInteger().toRadix(16),64),a=ar.leftPad(Uc.curve.b.toBigInteger().toRadix(16),64),o=ar.leftPad(Uc.getX().toBigInteger().toRadix(16),64),i=ar.leftPad(Uc.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=Uc.curve.decodePointHex(t);u=ar.leftPad(h.getX().toBigInteger().toRadix(16),64),s=ar.leftPad(h.getY().toBigInteger().toRadix(16),64)}const l=ar.hexToArray(n+r+a+o+i+u+s),c=n.length*4;l.unshift(c&255),l.unshift(c>>8&255);const f=Mp(l);return ar.arrayToHex(Mp(f.concat(ar.hexToArray(e))))}function y5(e){const t=Uc.multiply(new _o(e,16)),n=ar.leftPad(t.getX().toBigInteger().toString(16),64),r=ar.leftPad(t.getY().toBigInteger().toString(16),64);return"04"+n+r}function _5(){const e=ar.generateKeyPairHex(),t=v5.decodePointHex(e.publicKey);return e.k=new _o(e.privateKey,16),e.x1=t.getX().toBigInteger(),e}var BQ={generateKeyPairHex:ar.generateKeyPairHex,compressPublicKeyHex:ar.compressPublicKeyHex,comparePublicKeyHex:ar.comparePublicKeyHex,doEncrypt:DQ,doDecrypt:PQ,doSignature:OQ,doVerifySignature:kQ,getPublicKeyFromPrivateKey:y5,getPoint:_5,verifyPublicKey:ar.verifyPublicKey};const{sm3:IQ,hmac:NQ}=d5;function FQ(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function b5(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function MQ(e){const t=[];let n=e.length;n%2!==0&&(e=FQ(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 LQ(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 RQ=function(e,t){if(e=typeof e=="string"?LQ(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"?MQ(r):Array.prototype.slice.call(r),b5(NQ(e,r))}return b5(IQ(e))};const Cu=0,jQ=32,Hc=16,Sg=[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],Cg=[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 Mx(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 VQ(e){return e.map(t=>(t=t.toString(16),t.length===1?"0"+t:t)).join("")}function zQ(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 UQ(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 Rp(e,t){const n=t&31;return e<<n|e>>>32-n}function Au(e){return(Sg[e>>>24&255]&255)<<24|(Sg[e>>>16&255]&255)<<16|(Sg[e>>>8&255]&255)<<8|Sg[e&255]&255}function Ag(e){return e^Rp(e,2)^Rp(e,10)^Rp(e,18)^Rp(e,24)}function Tg(e){return e^Rp(e,13)^Rp(e,23)}function HQ(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]^=Ag(Au(i)),i=r[2]^r[3]^r[0]^n[o+1],r[1]^=Ag(Au(i)),i=r[3]^r[0]^r[1]^n[o+2],r[2]^=Ag(Au(i)),i=r[0]^r[1]^r[2]^n[o+3],r[3]^=Ag(Au(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 WQ(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]^Cg[o+0],t[o+0]=r[0]^=Tg(Au(i)),i=r[2]^r[3]^r[0]^Cg[o+1],t[o+1]=r[1]^=Tg(Au(i)),i=r[3]^r[0]^r[1]^Cg[o+2],t[o+2]=r[2]^=Tg(Au(i)),i=r[0]^r[1]^r[2]^Cg[o+3],t[o+3]=r[3]^=Tg(Au(i));if(n===Cu)for(let o=0,i;o<16;o++)i=t[o],t[o]=t[31-o],t[31-o]=i}function x5(e,t,n,{padding:r="pkcs#7",mode:a,iv:o=[],output:i="string"}={}){if(a==="cbc"&&(typeof o=="string"&&(o=Mx(o)),o.length!==128/8))throw new Error("iv is invalid");if(typeof t=="string"&&(t=Mx(t)),t.length!==128/8)throw new Error("key is invalid");if(typeof e=="string"?n!==Cu?e=zQ(e):e=Mx(e):e=[...e],(r==="pkcs#5"||r==="pkcs#7")&&n!==Cu){const h=Hc-e.length%Hc;for(let d=0;d<h;d++)e.push(h)}const u=new Array(jQ);WQ(t,u,n);const s=[];let l=o,c=e.length,f=0;for(;c>=Hc;){const h=e.slice(f,f+16),d=new Array(16);if(a==="cbc")for(let v=0;v<Hc;v++)n!==Cu&&(h[v]^=l[v]);HQ(h,d,u);for(let v=0;v<Hc;v++)a==="cbc"&&n===Cu&&(d[v]^=l[v]),s[f+v]=d[v];a==="cbc"&&(n!==Cu?l=d:l=h),c-=Hc,f+=Hc}if((r==="pkcs#5"||r==="pkcs#7")&&n===Cu){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!==Cu?VQ(s):UQ(s):s}var GQ={encrypt(e,t,n){return x5(e,t,1,n)},decrypt(e,t,n){return x5(e,t,0,n)}},Dg={sm2:BQ,sm3:RQ,sm4:GQ};const E5="04";function KQ(e,t){try{return E5+Dg.sm2.doEncrypt(e,t,1)}catch{return null}}function XQ(e,t){if(e==null)return null;try{return Dg.sm2.doDecrypt(e==null?void 0:e.substring(E5.length),t,1)}catch{return null}}const zd={encrypt:KQ,decrypt:XQ},YQ="049967b032226da56be01b804ed59e6753e2731994f4c97bb25d39c0d3166af07b73e2651d09b98ae934a70303138e859545e8314e2eda20971e222a444ecd3547",JQ="1e38a5c42fe3049bfbbcb2323a0cff3feb49e0b8156ac71eed525133603dbddb",w5=e=>(Es(e)&&(e=Qr(e)),zd.encrypt(e,YQ)),S5=e=>zd.decrypt(e,JQ),C5=e=>`__${e}__mode`,ZQ=(e,t)=>{const n=Es(t)?2:1;n===2&&(t=Qr(t));const r=w5(t);return{[e]:r,[C5(e)]:n}},A5=e=>{e||(e=window.location.href);const t=Bl.getQueryParams(e);if(!t)return null;const n={};return Or(t).map(r=>{let a=t[r];const o=t[C5(r)];return o!=null&&(a=S5(a),o==2&&(a=ri(a))),n[r]=a,a}),n},Pg={decryptFromLocation:()=>A5(window.location.href),decryptFromUrl:A5,encryptToUrl:ZQ,decryptData:S5,encryptData:w5};var Wc=(e=>(e.year="year",e.month="month",e.day="day",e.hour="hour",e.minute="minute",e.second="second",e.week="week",e))(Wc||{});function QQ(e){return e%4===0&&e%100!==0||e%400===0}function qQ(e){return[0,31,QQ(e)?29:28,31,30,31,30,31,31,30,31,30]}function Og(e,t){var n=new Date(e),r=new Date(t),a;n>r&&(a=n,n=r,r=a);var o=qQ(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 T5(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 Ud(e,t,n="day"){var r=Math.abs(new Date(e).getTime()-new Date(t).getTime());const a=Og(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 $Q(e,t,n="day"){const r=Og(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 kg(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 D5(e){return!isNaN(Date.parse(e))}function eq(e){if(D5(e))return new Date(e)}function P5(e){if(e){var t=new Date;if(D5(e))return new Date(e);var n=t.getFullYear()+"-"+t.getMonth()+"-"+t.getDate()+" "+e;return new Date(n)}}function O5(e){return Array.isArray(e)?e.map(t=>P5(t)):typeof e=="string"?P5(e):e}function tq(){return k5("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",/[xy]/g)}function Bg(){return k5("xxxxxxxxxxxxxxxxxxxxxxxxxxxx",/[xy]/g)}function k5(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 Il=function(){return Math.floor(Math.random()*1e5+Math.random()*2e4+Math.random()*5e3)},B5=()=>kg(new Date,"yyyyMMHHmmss")+"_"+Il();function Lx(){return{addWindowName:()=>{window.name||(window.name=Bg())},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=Bl.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 vi={info(e){ki.ElMessage({type:"info",message:e,dangerouslyUseHTMLString:!0})},error(e){ki.ElMessage({type:"error",message:e,dangerouslyUseHTMLString:!0})},success(e){ki.ElMessage({type:"success",message:e,dangerouslyUseHTMLString:!0})},warning(e){ki.ElMessage({type:"warning",message:e,dangerouslyUseHTMLString:!0})}},nq={delete(){return this.do(oe.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 ki.ElMessageBox.confirm(e,oe.i18nt("designer.hint.prompt"),{confirmButtonText:oe.i18nt("designer.hint.confirm"),cancelButtonText:oe.i18nt("designer.hint.cancel"),type:"warning",appendTo:"body"})}},rq={info(e){ki.ElNotification({type:"info",message:e,dangerouslyUseHTMLString:!0})},error(e){ki.ElNotification({type:"error",message:e,dangerouslyUseHTMLString:!0})},success(e){ki.ElNotification({type:"success",message:e,dangerouslyUseHTMLString:!0})},warning(e){ki.ElNotification({type:"warning",message:e,dangerouslyUseHTMLString:!0})}},Ig=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=Pg.decryptFromUrl(window.location.href);return{rowScope:t,formData:n,urlQuerys:r}};function iq(e,t,n,r){var h,d;let a=ra((h=e==null?void 0:e.content)==null?void 0:h.widgetId,!0),o=ra((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;rq.error(_||Qr(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=Ig(n);return Ol(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=Ig(n);return Ol(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=`${Ii.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 aq(e,t,n,r){const a=(l,c)=>{const{sendToIframe:f,receive:h}=n5();return new Promise((d,v)=>{var p,g;const m=Bg();f((g=(p=l==null?void 0:l.data)==null?void 0:p.props)==null?void 0:g.iframeRef,{...c,msgId:m}),h(y=>{var b,_,E,w;((b=y==null?void 0:y.data)==null?void 0:b.msgId)===m&&((_=y==null?void 0:y.data)!=null&&_.result?d(!0):(E=y==null?void 0:y.data)!=null&&E.msg&&vi.error((w=y==null?void 0:y.data)==null?void 0:w.msg))},!0)})},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=Pg.decryptFromUrl(window.location.href),v=Ol(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?Bl.getLocationQueryParams():{};let c=Object.assign(l||{},o((d=e==null?void 0:e.content)==null?void 0:d.setQueryFn,t));const f=Bl.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 Bl.resolveByCurrentUrl(f)},u=()=>{var l,c,f,h;switch((l=e==null?void 0:e.content)==null?void 0:l.windowTarget){case ag.self:return window;case ag.top:return window.top||window;case ag.parent:return window.parent;default:return(c=e==null?void 0:e.content)!=null&&c.windowTarget?(h=yo.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}=Lx(),c=u(),f=i();if(((v=e==null?void 0:e.content)==null?void 0:v.windowModal)===tD.modal){var h={self:window==null?void 0:window.name,caller:c==null?void 0:c.name};const p=y=>a(y,{command:"saveForm",args:{...h}}),g=y=>a(y,{command:"cancelForm",args:{...h}});var d={...e==null?void 0:e.content,url:f,callback:{okCallback:p,cancelCallback:g}};if(c)if(c!=null&&c.openModalAsync)(m=c==null?void 0:c.openModalAsync)==null||m.call(c,d);else{vi.error(oe.i18nt("designer.hint.windowNotSupport"));return}else t5(n,d)}else l(f,e==null?void 0:e.content,c==null?void 0:c.window,!1)})()}function oq(e,t,n,r){var c;let a=ra((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=Ig(n);return Ol(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=ri(yne(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=`${Ii.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=Ig(n);return Ol(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 sq(e,t,n,r){var a,o,i,u,s,l,c;switch(e==null?void 0:e.type){case ws.actionCode:return Ol((a=e==null?void 0:e.content)==null?void 0:a.code,t);case ws.actionURL:return aq(e,t,n);case ws.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 ws.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 ws.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 ws.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 ws.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 ws.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 ws.actionSendSchema:return oq(e,t,n,r);case ws.actionSaveFormData:return iq(e,t,n,r)}}const I5=(e,t)=>{const{state:n}=dx(async()=>{const r=await Promise.resolve().then(()=>Cme);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},lq=(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)})},uq=(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)})},Rx=(e,t)=>{const n=YD.create(e);return lq(n,t,e==null?void 0:e.willFetch),uq(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)})})},cq={req:Rx,get:(e,t)=>(e.method="get",Rx(e,t)),post:(e,t)=>(e.method="post",Rx(e,t))};class fq{_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=Og(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 Hd{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=Hd._convertTo18(t);return io._overallValid(n)}convertTo18(t){return Hd._convertTo18(t)}getInfo(t){const n=Hd._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 fq,Nl=new Hd;function N5(e){return{mode:"cbc",iv:e}}function pq(e,t,n){if(e==null)return null;try{return Dg.sm4.encrypt(e,t,N5(n))}catch{return null}}function hq(e,t,n){if(e==null)return null;try{return Dg.sm4.decrypt(e,t,N5(n))}catch{return null}}const jx={encrypt:pq,decrypt:hq},F5="3.7.7",dq=F5,jp=typeof Buffer=="function",M5=typeof TextDecoder=="function"?new TextDecoder:void 0,L5=typeof TextEncoder=="function"?new TextEncoder:void 0,vq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Wd=Array.prototype.slice.call(vq),Ng=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(Wd),mq=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,ha=String.fromCharCode.bind(String),R5=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),j5=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),V5=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),z5=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+=Wd[t>>18&63]+Wd[t>>12&63]+Wd[t>>6&63]+Wd[t&63]}return i?o.slice(0,i-3)+"===".substring(i):o},Vx=typeof btoa=="function"?e=>btoa(e):jp?e=>Buffer.from(e,"binary").toString("base64"):z5,zx=jp?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,a=e.length;r<a;r+=4096)n.push(ha.apply(null,e.subarray(r,r+4096)));return Vx(n.join(""))},Fg=(e,t=!1)=>t?j5(zx(e)):zx(e),gq=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?ha(192|t>>>6)+ha(128|t&63):ha(224|t>>>12&15)+ha(128|t>>>6&63)+ha(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return ha(240|t>>>18&7)+ha(128|t>>>12&63)+ha(128|t>>>6&63)+ha(128|t&63)}},yq=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,U5=e=>e.replace(yq,gq),H5=jp?e=>Buffer.from(e,"utf8").toString("base64"):L5?e=>zx(L5.encode(e)):e=>Vx(U5(e)),Vp=(e,t=!1)=>t?j5(H5(e)):H5(e),W5=e=>Vp(e,!0),_q=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,bq=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 ha((n>>>10)+55296)+ha((n&1023)+56320);case 3:return ha((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return ha((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},G5=e=>e.replace(_q,bq),K5=e=>{if(e=e.replace(/\s+/g,""),!mq.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=Ng[e.charAt(o++)]<<18|Ng[e.charAt(o++)]<<12|(r=Ng[e.charAt(o++)])<<6|(a=Ng[e.charAt(o++)]),n+=r===64?ha(t>>16&255):a===64?ha(t>>16&255,t>>8&255):ha(t>>16&255,t>>8&255,t&255);return n},Ux=typeof atob=="function"?e=>atob(V5(e)):jp?e=>Buffer.from(e,"base64").toString("binary"):K5,X5=jp?e=>R5(Buffer.from(e,"base64")):e=>R5(Ux(e).split("").map(t=>t.charCodeAt(0))),Y5=e=>X5(J5(e)),xq=jp?e=>Buffer.from(e,"base64").toString("utf8"):M5?e=>M5.decode(X5(e)):e=>G5(Ux(e)),J5=e=>V5(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Hx=e=>xq(J5(e)),Eq=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)},Z5=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Q5=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,Z5(n));e("fromBase64",function(){return Hx(this)}),e("toBase64",function(t){return Vp(this,t)}),e("toBase64URI",function(){return Vp(this,!0)}),e("toBase64URL",function(){return Vp(this,!0)}),e("toUint8Array",function(){return Y5(this)})},q5=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,Z5(n));e("toBase64",function(t){return Fg(this,t)}),e("toBase64URI",function(){return Fg(this,!0)}),e("toBase64URL",function(){return Fg(this,!0)})},wq={version:F5,VERSION:dq,atob:Ux,atobPolyfill:K5,btoa:Vx,btoaPolyfill:z5,fromBase64:Hx,toBase64:Vp,encode:Vp,encodeURI:W5,encodeURL:W5,utob:U5,btou:G5,decode:Hx,isValid:Eq,fromUint8Array:Fg,toUint8Array:Y5,extendString:Q5,extendUint8Array:q5,extendBuiltins:()=>{Q5(),q5()}};class Sq{constructor(t,n){H(this,"hexcase",0);H(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 Wx=new Sq,Gx=(e,t)=>{if(!e)return"";e.timeStamp=new Date().getTime();const n=IY(e),a=Qr(n)+t,o=Wx==null?void 0:Wx.hex_md5(a),i=wq.encode(o);return n.dataDigest=i,n},Cq={traceBody:Gx,encodeSM2:(e,t,n)=>{const r=Gx(e,t);return zd.encrypt(Qr(r),n)},decodeSM2:(e,t)=>{if(Pr(e))return null;const n=zd.decrypt(e,t);var r=ri(n);return n!==null&&r===null&&console.log(n),r},encodeSM4:(e,t,n,r)=>{const a=Gx(e,t);return jx.encrypt(Qr(a),n,r)},decodeSM4:(e,t,n)=>{if(Pr(e))return null;const r=jx.decrypt(e,t,n);var a=ri(r);return r!==null&&a===null&&console.log(r),a}};var Gd={},Aq={get exports(){return Gd},set exports(e){Gd=e}},Mg={},Tq={get exports(){return Mg},set exports(e){Mg=e}},Ro={},qr={};qr.__esModule=!0,qr.extend=$5,qr.indexOf=Bq,qr.escapeExpression=Iq,qr.isEmpty=Nq,qr.createFrame=Fq,qr.blockParams=Mq,qr.appendContextPath=Lq;var Dq={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},Pq=/[&<>"'`=]/g,Oq=/[&<>"'`=]/;function kq(e){return Dq[e]}function $5(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 Kx=Object.prototype.toString;qr.toString=Kx;var Xx=function(t){return typeof t=="function"};Xx(/x/)&&(qr.isFunction=Xx=function(e){return typeof e=="function"&&Kx.call(e)==="[object Function]"}),qr.isFunction=Xx;var eP=Array.isArray||function(e){return e&&typeof e=="object"?Kx.call(e)==="[object Array]":!1};qr.isArray=eP;function Bq(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Iq(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return Oq.test(e)?e.replace(Pq,kq):e}function Nq(e){return!e&&e!==0?!0:!!(eP(e)&&e.length===0)}function Fq(e){var t=$5({},e);return t._parent=e,t}function Mq(e,t){return e.path=t,e}function Lq(e,t){return(e?e+".":"")+t}var ao={},Rq={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})(Rq,ao);var Kd={},Lg={},jq={get exports(){return Lg},set exports(e){Lg=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})(jq,Lg);var Rg={},Vq={get exports(){return Rg},set exports(e){Rg=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})(Vq,Rg);var jg={},zq={get exports(){return jg},set exports(e){jg=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})(zq,jg);var Vg={},Uq={get exports(){return Vg},set exports(e){Vg=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})(Uq,Vg);var zg={},Hq={get exports(){return zg},set exports(e){zg=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})(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("lookup",function(r,a,o){return r&&o.lookupProperty(r,a)})},e.exports=t.default})(Wq,Ug);var Hg={},Gq={get exports(){return Hg},set exports(e){Hg=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})(Gq,Hg),Kd.__esModule=!0,Kd.registerDefaultHelpers=o$,Kd.moveHelperToHooks=s$;function Gc(e){return e&&e.__esModule?e:{default:e}}var Kq=Lg,Xq=Gc(Kq),Yq=Rg,Jq=Gc(Yq),Zq=jg,Qq=Gc(Zq),qq=Vg,$q=Gc(qq),e$=zg,t$=Gc(e$),n$=Ug,r$=Gc(n$),i$=Hg,a$=Gc(i$);function o$(e){Xq.default(e),Jq.default(e),Qq.default(e),$q.default(e),t$.default(e),r$.default(e),a$.default(e)}function s$(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])}var Yx={},Wg={},l$={get exports(){return Wg},set exports(e){Wg=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})(l$,Wg),Yx.__esModule=!0,Yx.registerDefaultDecorators=p$;function u$(e){return e&&e.__esModule?e:{default:e}}var c$=Wg,f$=u$(c$);function p$(e){f$.default(e)}var Xd={},h$={get exports(){return Xd},set exports(e){Xd=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})(h$,Xd);var zp={},Jx={};Jx.__esModule=!0,Jx.createNewLookupObject=v$;var d$=qr;function v$(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return d$.extend.apply(void 0,[Object.create(null)].concat(t))}zp.__esModule=!0,zp.createProtoAccessControl=_$,zp.resultIsAllowed=b$,zp.resetLoggedProperties=E$;function m$(e){return e&&e.__esModule?e:{default:e}}var tP=Jx,g$=Xd,y$=m$(g$),Gg=Object.create(null);function _$(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:tP.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:tP.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function b$(e,t,n){return nP(typeof e=="function"?t.methods:t.properties,n)}function nP(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(x$(t),!1)}function x$(e){Gg[e]!==!0&&(Gg[e]=!0,y$.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 E$(){Object.keys(Gg).forEach(function(e){delete Gg[e]})}Ro.__esModule=!0,Ro.HandlebarsEnvironment=qx;function rP(e){return e&&e.__esModule?e:{default:e}}var Kc=qr,w$=ao,Zx=rP(w$),S$=Kd,C$=Yx,A$=Xd,Kg=rP(A$),T$=zp,D$="4.7.8";Ro.VERSION=D$;var P$=8;Ro.COMPILER_REVISION=P$;var O$=7;Ro.LAST_COMPATIBLE_COMPILER_REVISION=O$;var k$={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=k$;var Qx="[object Object]";function qx(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},S$.registerDefaultHelpers(this),C$.registerDefaultDecorators(this)}qx.prototype={constructor:qx,logger:Kg.default,log:Kg.default.log,registerHelper:function(t,n){if(Kc.toString.call(t)===Qx){if(n)throw new Zx.default("Arg not supported with multiple helpers");Kc.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(Kc.toString.call(t)===Qx)Kc.extend(this.partials,t);else{if(typeof n>"u")throw new Zx.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(Kc.toString.call(t)===Qx){if(n)throw new Zx.default("Arg not supported with multiple decorators");Kc.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){T$.resetLoggedProperties()}};var B$=Kg.default.log;Ro.log=B$,Ro.createFrame=Kc.createFrame,Ro.logger=Kg.default;var Xg={},I$={get exports(){return Xg},set exports(e){Xg=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})(I$,Xg);var Tu={},$x={};$x.__esModule=!0,$x.wrapHelper=N$;function N$(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}Tu.__esModule=!0,Tu.checkRevision=V$,Tu.template=z$,Tu.wrapProgram=Yg,Tu.resolvePartial=U$,Tu.invokePartial=H$,Tu.noop=oP;function F$(e){return e&&e.__esModule?e:{default:e}}function M$(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 L$=qr,Fl=M$(L$),R$=ao,Ml=F$(R$),Ll=Ro,iP=Kd,j$=$x,aP=zp;function V$(e){var t=e&&e[0]||1,n=Ll.COMPILER_REVISION;if(!(t>=Ll.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Ll.COMPILER_REVISION))if(t<Ll.LAST_COMPATIBLE_COMPILER_REVISION){var r=Ll.REVISION_CHANGES[n],a=Ll.REVISION_CHANGES[t];throw new Ml.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 Ml.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 z$(e,t){if(!t)throw new Ml.default("No environment passed to template");if(!e||!e.main)throw new Ml.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=Fl.extend({},u,s.hash),s.ids&&(s.ids[0]=!0)),i=t.VM.resolvePartial.call(this,i,u,s);var l=Fl.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-191bd46c.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-7e4b09e3.js";
|
|
5
|
+
import { b as I } from "./share-field-575a3056.js";
|
|
6
6
|
import { w as O } from "./expression-d5b80f77.js";
|
|
7
|
-
import { D as P } from "./drag-wrapper-
|
|
8
|
-
import { g as W } from "./slot-
|
|
7
|
+
import { D as P } from "./drag-wrapper-a1f3cf80.js";
|
|
8
|
+
import { g as W } from "./slot-36040852.js";
|
|
9
9
|
import "./widget-base-4c2d6265.js";
|
|
10
10
|
import "./uuid-ed2f919d.js";
|
|
11
|
-
import "./index-
|
|
11
|
+
import "./index-d2889274.js";
|
|
12
12
|
import "./enum-type-b23cb43d.js";
|
|
13
|
-
import "./baseImp-
|
|
13
|
+
import "./baseImp-c3f2b9b7.js";
|
|
14
14
|
import "./icon-e9532b43.js";
|
|
15
15
|
import "./dialog-1557bf9c.js";
|
|
16
16
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
@@ -18,7 +18,7 @@ import "element-plus";
|
|
|
18
18
|
import "./index-521c2d0f.js";
|
|
19
19
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
20
20
|
import "./fieldobj-838392f7.js";
|
|
21
|
-
import "./multirow-
|
|
21
|
+
import "./multirow-2e9af15c.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({
|