comp-hub 0.28.4 → 0.28.5
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/README.md +132 -132
- package/bin/cli.js +54 -54
- package/bin/lib/commands.js +173 -173
- package/bin/lib/constants.js +22 -22
- package/bin/lib/http.js +62 -62
- package/bin/lib/startup.js +183 -183
- package/bin/lib/utils.js +112 -112
- package/dist/website/container/assets/index-D6braxue.css +1 -0
- package/dist/website/container/assets/{index-CVxgDysj.js → index-DW_KDaXl.js} +1 -1
- package/dist/website/container/index.html +32 -32
- package/dist/website/container/js/vue2-sfc-loader.js +260 -260
- package/dist/website/container/js/vue3-sfc-loader.js +289 -289
- package/dist/website/item/assets/index-BWvMfSxu.css +1 -0
- package/dist/website/item/assets/{index-CGgDhzaN.js → index-Cqs5iLeY.js} +3 -3
- package/dist/website/item/index.html +30 -30
- package/dist/website/main/assets/{CanvasAnimation.vue_vue_type_script_setup_true_lang-gAGMSPxq.js → CanvasAnimation.vue_vue_type_script_setup_true_lang-Xr4R8ONt.js} +1 -1
- package/dist/website/main/assets/{index-eyM0Chsl.js → index-9E0N8vk2.js} +1 -1
- package/dist/website/main/assets/{index-JcGCRZej.js → index-B8QVBEgQ.js} +1 -1
- package/dist/website/main/assets/{index-D_mLoa5V.js → index-BEVcnNvI.js} +1 -1
- package/dist/website/main/assets/{index-BGAeKS26.js → index-BGYcKO_k.js} +2 -2
- package/dist/website/main/assets/{index-XEEaWsyW.js → index-BHUDEWGt.js} +1 -1
- package/dist/website/main/assets/{index-DKb_LuTB.js → index-BMSnGhSG.js} +1 -1
- package/dist/website/main/assets/{index-CKuqpXAR.js → index-BVcp4iEn.js} +1 -1
- package/dist/website/main/assets/{index-DcbQ_ahf.js → index-BYC9CuLh.js} +1 -1
- package/dist/website/main/assets/{index-DroKXXhR.js → index-BblV7ZcF.js} +1 -1
- package/dist/website/main/assets/{index-C1KlLhF1.js → index-BqUY_Pbs.js} +1 -1
- package/dist/website/main/assets/{index-DNWHN_5F.js → index-BwgqBNRu.js} +1 -1
- package/dist/website/main/assets/index-CG7uKVdX.js +1 -0
- package/dist/website/main/assets/{index-BbVoROfE.js → index-Cc3zDN4S.js} +1 -1
- package/dist/website/main/assets/{index-Cd1GqG9-.js → index-CdLdwW7r.js} +3 -3
- package/dist/website/main/assets/{index-BjMNHNZQ.js → index-CsUtZbBp.js} +1 -1
- package/dist/website/main/assets/index-CzTcYkCn.css +1 -0
- package/dist/website/main/assets/index-D-uwf4yo.css +1 -0
- package/dist/website/main/assets/{index-BUoUeU3q.js → index-D6MA33Hi.js} +1 -1
- package/dist/website/main/assets/{index-gswaBdwW.js → index-DGaY7dL7.js} +1 -1
- package/dist/website/main/assets/{index-B-RD5UzD.css → index-DIKKFNiV.css} +1 -1
- package/dist/website/main/assets/{index-DGh9vJu4.js → index-DbmFA7Z2.js} +1 -1
- package/dist/website/main/assets/{index-Dp1XrCJD.js → index-Dd8ha0TC.js} +1 -1
- package/dist/website/main/assets/{index-WPdppQti.js → index-Dfkpa19a.js} +1 -1
- package/dist/website/main/assets/{index-D4vHIupw.js → index-Diq3BceD.js} +1 -1
- package/dist/website/main/assets/{index-Bb4dzB_t.js → index-DkakQhTy.js} +1 -1
- package/dist/website/main/assets/{index-Cl0SK7oa.css → index-DxyEzkir.css} +1 -1
- package/dist/website/main/assets/{index-CEizeGti.js → index-Dz2nPzxk.js} +1 -1
- package/dist/website/main/assets/index-FFTkVbVX.css +1 -0
- package/dist/website/main/assets/{index-RTrUAzmO.js → index-RcR0UXkh.js} +1 -1
- package/dist/website/main/assets/{index-Cdv-VxRL.js → index-X1ZIWbVW.js} +2 -2
- package/dist/website/main/assets/{index-Car8xTN1.js → index-bdWvkmhc.js} +1 -1
- package/dist/website/main/assets/{index-D26LViqE.js → index-qSRqezAW.js} +1 -1
- package/dist/website/main/assets/{index-BXRWapP9.js → index-qsIY_6aA.js} +1 -1
- package/dist/website/main/assets/{index-D62zqHYv.js → index-rWF_BNTH.js} +1 -1
- package/dist/website/main/assets/{index-Cacmn-le.js → index-tKPA5N_x.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-CVJdloX3.js → index.vue_vue_type_script_setup_true_lang-BYKlY94g.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-DhkIAGmf.js → index.vue_vue_type_script_setup_true_lang-CCaH-GEy.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-CK2dnh4X.js → index.vue_vue_type_script_setup_true_lang-DPbqR98S.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-0kHDvgX-.js → index.vue_vue_type_script_setup_true_lang-DTrkhAMQ.js} +2 -2
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-_M-s3_Ie.js → index.vue_vue_type_script_setup_true_lang-DtCu4Izc.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-Q7u6DEB4.js → index.vue_vue_type_script_setup_true_lang-DzvWwe2g.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-iFwx3NZQ.js → index.vue_vue_type_style_index_0_lang-1ZphBFBL.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-CIN0y80j.js → index.vue_vue_type_style_index_0_lang-BNPcBMvg.js} +1 -1
- package/dist/website/main/assets/{index.vue_vue_type_style_index_0_lang-DTKsCZO_.js → index.vue_vue_type_style_index_0_lang-CwaGkvXy.js} +1 -1
- package/dist/website/main/assets/{useCompEditStore-CA87jjE-.js → useCompEditStore-DI3vFtGm.js} +2 -2
- package/dist/website/main/assets/{useCompEditStore-CiX1ghqX.css → useCompEditStore-EVZp94pg.css} +1 -1
- package/dist/website/main/assets/{useKeyword-CmJvOYMB.js → useKeyword-bWHMALoZ.js} +1 -1
- package/dist/website/main/assets/{useMessage-DRWIT9X-.js → useMessage-BVw3M4ej.js} +1 -1
- package/dist/website/main/assets/{useVscodeOpen-PzIPfNxl.js → useVscodeOpen-SZpyzVHG.js} +1 -1
- package/dist/website/main/index.html +2 -2
- package/package.json +45 -45
- package/dist/website/container/assets/index-h6S5dyy4.css +0 -1
- package/dist/website/item/assets/index-lq3uP4DP.css +0 -1
- package/dist/website/main/assets/index-CP6sOfKF.css +0 -1
- package/dist/website/main/assets/index-CmSN0r9I.css +0 -1
- package/dist/website/main/assets/index-DJ4AvgpT.css +0 -1
- package/dist/website/main/assets/index-tCnrZXQC.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aH as I,b as x,W as D,aJ as P,U}from"./vendor-ui-CGT0cG1n.js";import{z as F,u as p,T as G,p as m,t as d,B as N,l as f}from"./index-
|
|
1
|
+
import{aH as I,b as x,W as D,aJ as P,U}from"./vendor-ui-CGT0cG1n.js";import{z as F,u as p,T as G,p as m,t as d,B as N,l as f}from"./index-CdLdwW7r.js";import{c as B,a as K}from"./index.vue_vue_type_script_setup_true_lang-DTrkhAMQ.js";import{v as $,aA as H,y as M,aC as z,aD as J,ac as _,aF as V,af as Q,g as r,ao as g,a9 as W,aP as Y,ax as c,ab as X,l as j,r as u,aO as w}from"./vendor-core-BKehvho7.js";import{u as Z}from"./useKeyword-bWHMALoZ.js";import"./index-BYC9CuLh.js";import"./useCompMetaLocalStore-BKTMp_k8.js";/* empty css */import"./useVscodeOpen-SZpyzVHG.js";import"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./useCacheOssStore-OAoLDVbw.js";import"./useTeamHeaders-DxHN7-t0.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-BVw3M4ej.js";const q={class:"size-full p-[10px] pr-0"},_e=$({__name:"index",setup(ee){const{t:n}=H(),h=M()?.uid,v=z(),y=J(),C=F(),a=B(v.path)();_(p.PROVIDE_KEY_COMP_LIST_STORE,a);const E=new Map;_(p.PROVIDE_KEY_CALLBACKS,E);const i=I(`${G}`,"XTTJ"),T=V("compIframeContainer"),S=r(()=>f.DEFAULT_TAG_GROUP.map(e=>({label:n(e.label),value:e.value}))),l=Q({data:[],search:{column:[{prop:"keyword",component:g(x),label:r(()=>n("common.keyword")),value:"",autoQuery:!1,attributes:{placeholder:r(()=>n("comp.keywordPlaceholder")),fetchSuggestions:k,triggerOnFocus:!1,style:"width: 400px",fitInputWidth:!0}},{prop:"tag",component:g(D),label:r(()=>n("common.filter")),value:i.value,attributes:{options:S,style:"width: 200px",onChange:e=>{i.value=e,window?.umami?.track(m.FILTER_TAG,{tag:e,page:"share"})}}}]},pagination:{total:0,attributes:{pageSizes:[10,20,30]}},autoLoading:!1,fetchData:L}),b=r(()=>l.value?.search?.column[0]?.value??"");Z(b,T);function R(e){return e===f.DEFAULT_TAG_GROUP[0].value?JSON.stringify(C?.deps||[]):"[]"}function k(e,o){if(e.length<=1)return o([]);d.v1Keyword.keywordcontrollerQuerykeywordscomp({keyword:e,type:"compShare"}).then(s=>{const{keywords:t=[]}=s.data||{};o(t)})}async function L(e){a.setLoading(!0),e.keyword&&window?.umami?.track(m.SEARCH_COMPONENT,{keyword:e.keyword,tag:i.value,page:"share"});const o={...e,deps:R(i.value)},s=await d.v1Comp.compcontrollerComps({...o}),{rows:t,total:O}=s.data??{};a.renderList(t??[]),l.value.pagination.total=O??0,l.value.data=t??[],a.setLoading(!1)}function A(e){y.push({path:`/preview/${e}`})}return W(()=>{a.$reset()}),(e,o)=>{const s=U,t=P;return Y((X(),j("div",q,[u(c(N),{tableConfig:l.value},{table:w(()=>[u(s,{always:"",wrapClass:"pr-[10px]"},{default:w(()=>[u(K,{ref:"compIframeContainer",iuid:c(h),compType:c(p).IFRAME_ROUTES.CONTAINER.SHARE,onPreview:A},null,8,["iuid","compType"])]),_:1})]),_:1},8,["tableConfig"])])),[[t,c(a).loading]])}}});export{_e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-v-911ad151] .el-radio__input.is-checked+.el-radio__label span:first-child{box-shadow:0 0 8px currentColor}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.match-dot-green[data-v-ca24e35d]{background-color:#67c23a}.match-dot-blue[data-v-ca24e35d]{background-color:#409eff}.match-dot-orange[data-v-ca24e35d]{background-color:#e6a23c}.match-dot-red[data-v-ca24e35d]{background-color:#f56c6c}[data-v-ca24e35d] .not-matched{text-decoration:line-through;opacity:.6}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a3 as B,W as Ce,L as he,D as we,K as W,F as Te,J as Ee,a2 as Pe,f as ne,l as be,aH as ye,e as Me,d as Ve,U as Ae}from"./vendor-ui-CGT0cG1n.js";import{k as Se,u as w,n as k,j as xe,t as X,e as se,q as H,B as Oe,z as le,C as ke,A as $e,p as ae,i as De}from"./index-Cd1GqG9-.js";import{_ as Ie}from"./el-table-column-CGzXlVpD.js";/* empty css */import{v as O,aA as R,ab as p,j as V,ax as u,aO as m,r as l,Z as N,l as P,k as I,q as $,ap as y,F as Y,ah as G,g as C,aB as Re,a7 as re,W as Ne,af as x,aN as Be,i as M,aF as He,ai as Ye,aC as ce,_ as q,A as J,ac as Le,aD as Fe,aM as te,aj as ze,Q as je,K as Ue,al as Ke}from"./vendor-core-BKehvho7.js";import{_ as We}from"./index.vue_vue_type_style_index_0_lang-DTKsCZO_.js";/* empty css */import{_ as qe}from"./index.vue_vue_type_script_setup_true_lang-Q7u6DEB4.js";import{_ as Je}from"./index.vue_vue_type_script_setup_true_lang-0kHDvgX-.js";import{u as Xe}from"./useTeamHeaders-DxHN7-t0.js";import{B as Ge,_ as Qe}from"./index.vue_vue_type_script_setup_true_lang-DhkIAGmf.js";import{c as Ze,p as eo}from"./index-DcbQ_ahf.js";import{_ as oo}from"./index.vue_vue_type_script_setup_true_lang-_M-s3_Ie.js";import{_ as ao}from"./PanelBackground.vue_vue_type_script_setup_true_lang-BELCrrRh.js";import{_ as to}from"./BaseSegmented.vue_vue_type_script_setup_true_lang-DU79Plk1.js";import{_ as no}from"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./vendor-xterm-DbWxaMay.js";import"./useCompMetaLocalStore-BKTMp_k8.js";import"./useVscodeOpen-PzIPfNxl.js";import"./useCacheOssStore-OAoLDVbw.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-DRWIT9X-.js";import"./index.vue_vue_type_style_index_0_lang-CIN0y80j.js";import"./core-CcVTMiBP.js";const so=O({__name:"CompDepsTags",props:{compDeps:{},depsSetting:{}},setup(_){const{t:c}=R(),a=_,i=C(()=>{const r=new Map;return a.depsSetting?.forEach(e=>{r.set(e.name,e)}),r});function f(r,e){const t=e.match;try{switch(t){case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_ONLY_INSTALL:return!0;case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MAJOR_VERSION:{const n=k.parseVersion(r),o=k.parseVersion(e.version);return n.major===o.major}case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MINOR_VERSION:{const n=k.parseVersion(r),o=k.parseVersion(e.version);return n.major===o.major&&n.minor===o.minor}case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_EXACT_VERSION:{const n=k.parseVersion(r),o=k.parseVersion(e.version);return n.major===o.major&&n.minor===o.minor&&n.patch===o.patch}default:return!1}}catch(n){return console.warn(`Version parse failed: ${r} or ${e.version}`,n),!1}}function s(r){const e=i.value.get(r.name);return e?f(r.version,e):!1}function d(r){const e=i.value.get(r.name);if(!e||!f(r.version,e))return"";switch(e.match){case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_ONLY_INSTALL:return"match-dot-green";case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MAJOR_VERSION:return"match-dot-blue";case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MINOR_VERSION:return"match-dot-orange";case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_EXACT_VERSION:return"match-dot-red";default:return""}}return(r,e)=>(p(),V(u(Se),{list:_.compDeps,getKey:t=>t.name,class:"flex items-center gap-1"},{display:m(({visibleList:t,overflow:n})=>[(p(!0),P(Y,null,G(t,o=>(p(),V(u(B),{key:o.name,type:"info","disable-transitions":"",size:"small",class:N({"not-matched":!s(o)})},{default:m(()=>[d(o)?(p(),P("span",{key:0,class:N(["inline-block w-2 h-2 rounded-full mr-1",d(o)])},null,2)):I("",!0),$(" "+y(o.name)+" "+y(o.version),1)]),_:2},1032,["class"]))),128)),n>0?(p(),V(u(B),{key:0,type:"info",size:"small","disable-transitions":""},{default:m(()=>[$("+"+y(n)+" "+y(u(c)("common.more")),1)]),_:2},1024)):I("",!0)]),measure:m(({item:t})=>[l(u(B),{type:"info",size:"small","disable-transitions":"",class:N({"not-matched":!s(t)})},{default:m(()=>[d(t)?(p(),P("span",{key:0,class:N(["inline-block w-2 h-2 rounded-full mr-1",d(t)])},null,2)):I("",!0),$(" "+y(t.name)+" "+y(t.version),1)]),_:2},1032,["class"])]),_:1},8,["list","getKey"]))}}),lo=xe(so,[["__scopeId","data-v-3150bd08"]]),ro={class:"w-[100px]"},co=O({__name:"index",props:Ne({id:{type:String,default:""},version:{type:String,default:""}},{modelValue:{type:String,default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(_){const c=_,a=Re(_,"modelValue"),i=x([]),f=x(!1);function s(e){a.value=e}async function d(){if(f.value)return;const e=await X.v1Comp.compcontrollerVersions({compId:c.id});f.value=!0,i.value=e.data.rows.map(t=>({value:t.version,label:t.version}))}function r(){i.value=[{value:c.version,label:c.version}],a.value=c.version}return re(()=>{r()}),(e,t)=>{const n=he,o=Ce;return p(),P("div",ro,[l(o,{"model-value":a.value,onChange:s,onVisibleChange:d},{default:m(()=>[(p(!0),P(Y,null,G(i.value,T=>(p(),V(n,{key:T.value,label:T.label,value:T.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"])])}}}),io={class:"size-full flex flex-col gap-5"},mo={class:"p-2"},uo={class:"flex flex-wrap gap-2"},po={class:"flex-1 border border-(--el-border-color-light) rounded-md overflow-hidden"},_o=O({__name:"index",props:{compId:{},getCompDetail:{type:Function}},setup(_){const c=_,a=x(),i=C(()=>se.handleDepData(a.value?.dep??[])),f=(s,d)=>`npm install ${s}@${d}`;return Be(async()=>{const s=await c.getCompDetail(c.compId);s&&(a.value=s)}),(s,d)=>{const r=B;return p(),P("div",io,[M("div",mo,[M("div",uo,[(p(!0),P(Y,null,G(i.value,e=>(p(),V(r,{key:e.name,type:"info","disable-transitions":!0},{default:m(()=>[l(u(Ie),{class:"text-sm",text:f(e.name,e.version)},null,8,["text"])]),_:2},1024))),128))])]),M("div",po,[l(We)])])}}}),ie=O({__name:"index",props:{id:{type:String,default:""},name:{type:String,default:""},version:{type:String,default:""}},emits:["downloadSuccess"],setup(_,{emit:c}){const{t:a}=R(),i=_,f=c,s=He("dialogVueFinder");async function d(e){!e()||await W.confirm(a("comp.downloadVersionConfirm",{version:i.version}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm"||s.value?.open(r)}async function r(e){const t=Te.service({lock:!0,text:a("comp.downloading")});try{if(await W.confirm(a("comp.downloadPathConfirm",{path:e.path}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;const o=await H.v1Comp.compcontrollerDownload({compId:i.id,savePath:e.path,compName:i.name,version:i.version}),{isRepeat:T=!1}=o.data;if(T){if(await W.confirm(a("comp.downloadCoverConfirm",{name:i.name}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm"){t.close();return}await H.v1Comp.compcontrollerDownload({compId:i.id,savePath:e.path,compName:i.name,isCover:!0,version:i.version})}Ee.success(a("message.success.download")),f("downloadSuccess"),s.value?.close()}finally{t.close()}}return(e,t)=>{const n=we;return p(),P(Y,null,[l(qe,null,{default:m(({isLogin:o})=>[Ye(e.$slots,"default",{downloadHandler:d,isLogin:o},()=>[l(n,{type:"primary",link:"",onClick:T=>d(o)},{default:m(()=>[$(y(u(a)("common.download")),1)]),_:1},8,["onClick"])])]),_:3}),l(Je,{ref:"dialogVueFinder",onDownload:r},null,512)],64)}}}),fo={class:"h-[calc(100vh-160px)]"},vo=O({__name:"index",props:{compName:{type:String,default:""}},setup(_){const{t:c}=R(),a=_,i=ce(),{compId:f}=i.params,s=x({data:[],column:[{prop:"prevVersion",label:C(()=>c("team.prevVersion")),align:"center"},{prop:"newVersion",label:C(()=>c("team.newVersion")),align:"center"},{prop:"upgradeDesc",label:C(()=>c("team.upgradeDesc")),align:"center",showOverflowTooltip:{popperClass:"table-text-tooltip"}},{slot:"operation",prop:"operation",label:C(()=>c("common.operation")),align:"center"}],pagination:{total:0},fixedHeight:!1,fetchData:r}),d=C(()=>({id:f,name:a.compName}));async function r(e){if(!f)return;const t=await X.v1Comp.compcontrollerUpgraderecords({compId:f,...e}),{rows:n,total:o}=t.data||{};s.value.data=n||[],s.value.pagination.total=o||0}return(e,t)=>{const n=Pe;return p(),P("div",fo,[l(u(Oe),{tableConfig:s.value,border:"",stripe:""},{operation:m(({col:o})=>[l(n,q(J(o)),{default:m(({row:T})=>[l(ie,q(J({version:T.newVersion,...d.value})),null,16)]),_:1},16)]),_:1},8,["tableConfig"])])}}}),go={class:"size-full"},Co={class:"flex items-center"},ho={class:"flex-1"},wo={class:"text-xs ml-auto"},To=O({__name:"index",props:{version:{type:String,default:""},compAttrs:{type:Object,default:()=>({})}},setup(_){const c=_,{t:a}=R(),i=le(),f=C(()=>se.handleDepData(c.compAttrs.dep??[]));return(s,d)=>{const r=ne,e=be;return p(),V(u(ao),{class:"size-full flex-1 shrink-0 flex flex-col gap-1",bg:_.compAttrs?.bgColor},{default:m(({bg:t,updateColor:n})=>[l(r,{"body-class":"!p-0 !overflow-visible",class:"flex-1 relative z-10"},{default:m(()=>[M("div",go,[l(oo,{compAttrs:_.compAttrs,version:_.version,bgColor:t,compType:u(w).IFRAME_ROUTES.ITEM.PREVIEW_REMOTE},null,8,["compAttrs","version","bgColor","compType"])])]),_:2},1024),M("div",Co,[M("div",ho,[l(u(lo),{compDeps:f.value,depsSetting:u(i).deps},null,8,["compDeps","depsSetting"])]),M("span",wo,[M("span",null,y(u(a)("comp.bgPanel"))+":",1),l(e,{teleported:!0,modelValue:t,clearable:"",onChange:n,onActiveChange:n},null,8,["modelValue","onChange","onActiveChange"])])])]),_:1},8,["bg"])}}}),Eo={class:"size-full p-[10px] pr-0"},Po={key:0,class:"h-[50vh]"},bo={class:"flex-1"},yo={class:"mt-2"},Xo=O({__name:"index",props:{isTeamPreview:{type:Boolean,default:!1}},setup(_){const{t:c}=R(),a=_,i=ce(),f=i.query[w.ROUTE_STATE_KEY_VERSION]!==void 0,{compId:s}=i.params,d=C(()=>[{label:c("common.doc"),value:"doc",component:Qe,visible:()=>!0},{label:c("common.upgradeRecord"),value:"upgradeRecord",component:vo,visible:()=>!0}]),r=new Map;Le(w.PROVIDE_KEY_CALLBACKS,r);const e=Fe(),{teamId:t}=Xe(),n=x(!1),o=ye(ke,d.value[0]?.value),T=le(),L=$e(),S=Ze(s)(),E=x(S.latestVersion),Q=x(!1),v=C(()=>S.detail[E.value]),me=C(()=>v.value?.desc??""),ue=C(()=>Object.keys(v.value??{}).length>0),Z=C(()=>S.versionToFileAccessPath[E.value]??[]),pe=C(()=>Z.value.length?d.value.find(g=>g.value===o.value)?.component:void 0),de=C(()=>o.value==="doc"?{mdSrc:_e.value,compDesc:me.value,scrollContainer:".preview-container"}:o.value==="upgradeRecord"?{compName:v.value?.name||""}:{}),_e=C(()=>Z.value.find(h=>h.path.endsWith(`/${w.COMP_README_FILENAME}`))?.signedUrl??"");async function ee(){if(await T.initSetting(),!s)throw new Error("compId is required");const h=await X.v1Comp.compcontrollerCompdetail({compId:s,version:E.value}),{objectId:g,version:A,files:D,dep:F}=h.data,z={objectId:g,version:A,files:D.map(K=>K.path)},j=await H.v1Comp.compcontrollerCompfilesosssignedurl(z),b=eo(F,T.deps).map(K=>K.name),U=await H.v1Module.modulecontrollerPrebuild({deps:b}),{entryNameToFile:oe={}}=U.data;S.setDepEntryNameToFile(A,oe),S.setVersionToFileAccessPath(A,j.data.signedUrls),S.setDetail(A,{...h.data,_id:s}),E.value||(S.setLatestVersion(A),E.value=A)}function fe(){return Promise.resolve(v.value)}function ve(){a.isTeamPreview?L.addPayLoad(`/previewTeam/${t}/${s}`,{name:v.value?.name??""}):L.addPayLoad(`/preview/${s}`,{name:v.value?.name??""})}function ge(){window?.umami?.track(ae.PREVIEW_OPEN_NEWTAB,{compId:s,version:E.value});const{href:h}=e.resolve({name:"previewBlank",params:{compId:s,version:E.value}});window.open(h,"_blank")}return te(E,async h=>{h!==v.value?.version&&await ee()}),te(o,(h,g)=>{g&&h!==g&&window?.umami?.track(ae.PREVIEW_TAB_CHANGE,{compId:s,from:g,to:h})}),re(async()=>{(!ue.value||f)&&await ee(),ve(),Q.value=!0}),(h,g)=>{const A=ze("Icon"),D=Me,F=ne,z=Ve,j=Ae;return p(),P("div",Eo,[l(j,{"wrap-class":"preview-container",class:"size-full pr-[10px]"},{default:m(()=>[Q.value?(p(),P("div",Po,[l(u(Ge),{title:v.value?.name,actions:["maximize"]},{beforeActions:m(()=>[l(D,{type:"primary",circle:"",title:u(c)("common.openInNewPage"),onClick:ge},{default:m(()=>[l(A,{icon:"material-symbols:screen-share-rounded"})]),_:1},8,["title"])]),default:m(()=>[l(To,{compAttrs:v.value,version:E.value},null,8,["compAttrs","version"])]),_:1},8,["title"])])):I("",!0),l(F,{"body-class":"!p-0 flex items-center gap-1",class:"sticky top-0 mt-1 w-full z-10"},{default:m(()=>[M("div",bo,[l(u(to),{modelValue:u(o),"onUpdate:modelValue":g[0]||(g[0]=b=>je(o)?o.value=b:null),options:d.value},null,8,["modelValue","options"])]),l(D,{color:"#414141",onClick:g[1]||(g[1]=b=>n.value=!0)},{default:m(()=>[$(y(u(c)("common.terminal")),1)]),_:1}),l(co,{id:v.value?._id,modelValue:E.value,"onUpdate:modelValue":g[2]||(g[2]=b=>E.value=b),version:v.value?.version},null,8,["id","modelValue","version"]),l(ie,{id:v.value?._id,name:v.value?.name,version:v.value?.version},{default:m(({downloadHandler:b,isLogin:U})=>[l(D,{type:"primary",onClick:oe=>b(U)},{default:m(()=>[$(y(u(c)("common.download")),1)]),_:1},8,["onClick"])]),_:1},8,["id","name","version"])]),_:1}),M("div",yo,[l(u(De),null,{default:m(()=>[(p(),V(Ue,null,[(p(),V(Ke(pe.value),q(J(de.value)),null,16))],1024))]),_:1})]),l(z,{right:100,bottom:100,target:".preview-container"})]),_:1}),l(u(no),{modelValue:n.value,"onUpdate:modelValue":g[3]||(g[3]=b=>n.value=b),title:u(c)("common.depInstall"),width:"70%",top:"5vh","destroy-on-close":""},{default:m(()=>[v.value?._id?(p(),V(_o,{key:0,class:"h-[70vh]",compId:v.value?._id,getCompDetail:fe},null,8,["compId"])):I("",!0)]),_:1},8,["modelValue","title"])])}}});export{Xo as default};
|
|
1
|
+
import{a3 as B,W as Ce,L as he,D as we,K as W,F as Te,J as Ee,a2 as Pe,f as ne,l as ye,aH as Me,e as be,d as Ve,U as Ae}from"./vendor-ui-CGT0cG1n.js";import{k as Se,u as w,n as k,j as xe,t as X,e as se,q as H,B as Oe,z as le,C as ke,A as $e,p as ae,i as De}from"./index-CdLdwW7r.js";import{_ as Ie}from"./el-table-column-CGzXlVpD.js";/* empty css */import{v as O,aA as R,ab as p,j as V,ax as u,aO as m,r as l,Z as N,l as P,k as I,q as $,ap as M,F as Y,ah as G,g as C,aB as Re,a7 as re,W as Ne,af as x,aN as Be,i as b,aF as He,ai as Ye,aC as ce,_ as q,A as J,ac as Le,aD as Fe,aM as te,aj as ze,Q as je,K as Ue,al as Ke}from"./vendor-core-BKehvho7.js";import{_ as We}from"./index.vue_vue_type_style_index_0_lang-CwaGkvXy.js";/* empty css */import{_ as qe}from"./index.vue_vue_type_script_setup_true_lang-DzvWwe2g.js";import{_ as Je}from"./index.vue_vue_type_script_setup_true_lang-DTrkhAMQ.js";import{u as Xe}from"./useTeamHeaders-DxHN7-t0.js";import{B as Ge,_ as Qe}from"./index.vue_vue_type_script_setup_true_lang-CCaH-GEy.js";import{c as Ze,p as eo}from"./index-BYC9CuLh.js";import{_ as oo}from"./index.vue_vue_type_script_setup_true_lang-DtCu4Izc.js";import{_ as ao}from"./PanelBackground.vue_vue_type_script_setup_true_lang-BELCrrRh.js";import{_ as to}from"./BaseSegmented.vue_vue_type_script_setup_true_lang-DU79Plk1.js";import{_ as no}from"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import"./vendor-xterm-DbWxaMay.js";import"./useCompMetaLocalStore-BKTMp_k8.js";import"./useVscodeOpen-SZpyzVHG.js";import"./useCacheOssStore-OAoLDVbw.js";import"./EmptyStatusContainer.vue_vue_type_script_setup_true_lang-pswB5SUz.js";import"./useMessage-BVw3M4ej.js";import"./index.vue_vue_type_style_index_0_lang-BNPcBMvg.js";import"./core-CcVTMiBP.js";const so=O({__name:"CompDepsTags",props:{compDeps:{},depsSetting:{}},setup(_){const{t:c}=R(),a=_,i=C(()=>{const r=new Map;return a.depsSetting?.forEach(e=>{r.set(e.name,e)}),r});function f(r,e){const t=e.match;try{switch(t){case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_ONLY_INSTALL:return!0;case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MAJOR_VERSION:{const n=k.parseVersion(r),o=k.parseVersion(e.version);return n.major===o.major}case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MINOR_VERSION:{const n=k.parseVersion(r),o=k.parseVersion(e.version);return n.major===o.major&&n.minor===o.minor}case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_EXACT_VERSION:{const n=k.parseVersion(r),o=k.parseVersion(e.version);return n.major===o.major&&n.minor===o.minor&&n.patch===o.patch}default:return!1}}catch(n){return console.warn(`Version parse failed: ${r} or ${e.version}`,n),!1}}function s(r){const e=i.value.get(r.name);return e?f(r.version,e):!1}function d(r){const e=i.value.get(r.name);if(!e||!f(r.version,e))return"";switch(e.match){case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_ONLY_INSTALL:return"match-dot-green";case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MAJOR_VERSION:return"match-dot-blue";case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_MINOR_VERSION:return"match-dot-orange";case w.COMP_MATCH_TYPES.COMP_MATCH_TYPE_EXACT_VERSION:return"match-dot-red";default:return""}}return(r,e)=>(p(),V(u(Se),{list:_.compDeps,getKey:t=>t.name,class:"flex items-center gap-1"},{display:m(({visibleList:t,overflow:n})=>[(p(!0),P(Y,null,G(t,o=>(p(),V(u(B),{key:o.name,type:"info","disable-transitions":"",size:"small",class:N({"not-matched":!s(o)})},{default:m(()=>[d(o)?(p(),P("span",{key:0,class:N(["inline-block w-2 h-2 rounded-full mr-1",d(o)])},null,2)):I("",!0),$(" "+M(o.name)+" "+M(o.version),1)]),_:2},1032,["class"]))),128)),n>0?(p(),V(u(B),{key:0,type:"info",size:"small","disable-transitions":""},{default:m(()=>[$("+"+M(n)+" "+M(u(c)("common.more")),1)]),_:2},1024)):I("",!0)]),measure:m(({item:t})=>[l(u(B),{type:"info",size:"small","disable-transitions":"",class:N({"not-matched":!s(t)})},{default:m(()=>[d(t)?(p(),P("span",{key:0,class:N(["inline-block w-2 h-2 rounded-full mr-1",d(t)])},null,2)):I("",!0),$(" "+M(t.name)+" "+M(t.version),1)]),_:2},1032,["class"])]),_:1},8,["list","getKey"]))}}),lo=xe(so,[["__scopeId","data-v-ca24e35d"]]),ro={class:"w-[100px]"},co=O({__name:"index",props:Ne({id:{type:String,default:""},version:{type:String,default:""}},{modelValue:{type:String,default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(_){const c=_,a=Re(_,"modelValue"),i=x([]),f=x(!1);function s(e){a.value=e}async function d(){if(f.value)return;const e=await X.v1Comp.compcontrollerVersions({compId:c.id});f.value=!0,i.value=e.data.rows.map(t=>({value:t.version,label:t.version}))}function r(){i.value=[{value:c.version,label:c.version}],a.value=c.version}return re(()=>{r()}),(e,t)=>{const n=he,o=Ce;return p(),P("div",ro,[l(o,{"model-value":a.value,onChange:s,onVisibleChange:d},{default:m(()=>[(p(!0),P(Y,null,G(i.value,T=>(p(),V(n,{key:T.value,label:T.label,value:T.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"])])}}}),io={class:"size-full flex flex-col gap-5"},mo={class:"p-2"},uo={class:"flex flex-wrap gap-2"},po={class:"flex-1 border border-(--el-border-color-light) rounded-md overflow-hidden"},_o=O({__name:"index",props:{compId:{},getCompDetail:{type:Function}},setup(_){const c=_,a=x(),i=C(()=>se.handleDepData(a.value?.dep??[])),f=(s,d)=>`npm install ${s}@${d}`;return Be(async()=>{const s=await c.getCompDetail(c.compId);s&&(a.value=s)}),(s,d)=>{const r=B;return p(),P("div",io,[b("div",mo,[b("div",uo,[(p(!0),P(Y,null,G(i.value,e=>(p(),V(r,{key:e.name,type:"info","disable-transitions":!0},{default:m(()=>[l(u(Ie),{class:"text-sm",text:f(e.name,e.version)},null,8,["text"])]),_:2},1024))),128))])]),b("div",po,[l(We)])])}}}),ie=O({__name:"index",props:{id:{type:String,default:""},name:{type:String,default:""},version:{type:String,default:""}},emits:["downloadSuccess"],setup(_,{emit:c}){const{t:a}=R(),i=_,f=c,s=He("dialogVueFinder");async function d(e){!e()||await W.confirm(a("comp.downloadVersionConfirm",{version:i.version}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm"||s.value?.open(r)}async function r(e){const t=Te.service({lock:!0,text:a("comp.downloading")});try{if(await W.confirm(a("comp.downloadPathConfirm",{path:e.path}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm")return;const o=await H.v1Comp.compcontrollerDownload({compId:i.id,savePath:e.path,compName:i.name,version:i.version}),{isRepeat:T=!1}=o.data;if(T){if(await W.confirm(a("comp.downloadCoverConfirm",{name:i.name}),a("common.info"),{confirmButtonText:a("common.confirm"),cancelButtonText:a("common.cancel"),type:"warning"}).catch(()=>{})!=="confirm"){t.close();return}await H.v1Comp.compcontrollerDownload({compId:i.id,savePath:e.path,compName:i.name,isCover:!0,version:i.version})}Ee.success(a("message.success.download")),f("downloadSuccess"),s.value?.close()}finally{t.close()}}return(e,t)=>{const n=we;return p(),P(Y,null,[l(qe,null,{default:m(({isLogin:o})=>[Ye(e.$slots,"default",{downloadHandler:d,isLogin:o},()=>[l(n,{type:"primary",link:"",onClick:T=>d(o)},{default:m(()=>[$(M(u(a)("common.download")),1)]),_:1},8,["onClick"])])]),_:3}),l(Je,{ref:"dialogVueFinder",onDownload:r},null,512)],64)}}}),fo={class:"h-[calc(100vh-160px)]"},vo=O({__name:"index",props:{compName:{type:String,default:""}},setup(_){const{t:c}=R(),a=_,i=ce(),{compId:f}=i.params,s=x({data:[],column:[{prop:"prevVersion",label:C(()=>c("team.prevVersion")),align:"center"},{prop:"newVersion",label:C(()=>c("team.newVersion")),align:"center"},{prop:"upgradeDesc",label:C(()=>c("team.upgradeDesc")),align:"center",showOverflowTooltip:{popperClass:"table-text-tooltip"}},{slot:"operation",prop:"operation",label:C(()=>c("common.operation")),align:"center"}],pagination:{total:0},fixedHeight:!1,fetchData:r}),d=C(()=>({id:f,name:a.compName}));async function r(e){if(!f)return;const t=await X.v1Comp.compcontrollerUpgraderecords({compId:f,...e}),{rows:n,total:o}=t.data||{};s.value.data=n||[],s.value.pagination.total=o||0}return(e,t)=>{const n=Pe;return p(),P("div",fo,[l(u(Oe),{tableConfig:s.value,border:"",stripe:""},{operation:m(({col:o})=>[l(n,q(J(o)),{default:m(({row:T})=>[l(ie,q(J({version:T.newVersion,...d.value})),null,16)]),_:1},16)]),_:1},8,["tableConfig"])])}}}),go={class:"size-full"},Co={class:"flex items-center"},ho={class:"flex-1"},wo={class:"text-xs ml-auto"},To=O({__name:"index",props:{version:{type:String,default:""},compAttrs:{type:Object,default:()=>({})}},setup(_){const c=_,{t:a}=R(),i=le(),f=C(()=>se.handleDepData(c.compAttrs.dep??[]));return(s,d)=>{const r=ne,e=ye;return p(),V(u(ao),{class:"size-full flex-1 shrink-0 flex flex-col gap-1",bg:_.compAttrs?.bgColor},{default:m(({bg:t,updateColor:n})=>[l(r,{"body-class":"!p-0 !overflow-visible",class:"flex-1 relative z-10"},{default:m(()=>[b("div",go,[l(oo,{compAttrs:_.compAttrs,version:_.version,bgColor:t,compType:u(w).IFRAME_ROUTES.ITEM.PREVIEW_REMOTE},null,8,["compAttrs","version","bgColor","compType"])])]),_:2},1024),b("div",Co,[b("div",ho,[l(u(lo),{compDeps:f.value,depsSetting:u(i).deps},null,8,["compDeps","depsSetting"])]),b("span",wo,[b("span",null,M(u(a)("comp.bgPanel"))+":",1),l(e,{teleported:!0,modelValue:t,clearable:"",onChange:n,onActiveChange:n},null,8,["modelValue","onChange","onActiveChange"])])])]),_:1},8,["bg"])}}}),Eo={class:"size-full p-[10px] pr-0"},Po={key:0,class:"h-[50vh]"},yo={class:"flex-1"},Mo={class:"mt-2"},Xo=O({__name:"index",props:{isTeamPreview:{type:Boolean,default:!1}},setup(_){const{t:c}=R(),a=_,i=ce(),f=i.query[w.ROUTE_STATE_KEY_VERSION]!==void 0,{compId:s}=i.params,d=C(()=>[{label:c("common.doc"),value:"doc",component:Qe,visible:()=>!0},{label:c("common.upgradeRecord"),value:"upgradeRecord",component:vo,visible:()=>!0}]),r=new Map;Le(w.PROVIDE_KEY_CALLBACKS,r);const e=Fe(),{teamId:t}=Xe(),n=x(!1),o=Me(ke,d.value[0]?.value),T=le(),L=$e(),S=Ze(s)(),E=x(S.latestVersion),Q=x(!1),v=C(()=>S.detail[E.value]),me=C(()=>v.value?.desc??""),ue=C(()=>Object.keys(v.value??{}).length>0),Z=C(()=>S.versionToFileAccessPath[E.value]??[]),pe=C(()=>Z.value.length?d.value.find(g=>g.value===o.value)?.component:void 0),de=C(()=>o.value==="doc"?{mdSrc:_e.value,compDesc:me.value,scrollContainer:".preview-container"}:o.value==="upgradeRecord"?{compName:v.value?.name||""}:{}),_e=C(()=>Z.value.find(h=>h.path.endsWith(`/${w.COMP_README_FILENAME}`))?.signedUrl??"");async function ee(){if(await T.initSetting(),!s)throw new Error("compId is required");const h=await X.v1Comp.compcontrollerCompdetail({compId:s,version:E.value}),{objectId:g,version:A,files:D,dep:F}=h.data,z={objectId:g,version:A,files:D.map(K=>K.path)},j=await H.v1Comp.compcontrollerCompfilesosssignedurl(z),y=eo(F,T.deps).map(K=>K.name),U=await H.v1Module.modulecontrollerPrebuild({deps:y}),{entryNameToFile:oe={}}=U.data;S.setDepEntryNameToFile(A,oe),S.setVersionToFileAccessPath(A,j.data.signedUrls),S.setDetail(A,{...h.data,_id:s}),E.value||(S.setLatestVersion(A),E.value=A)}function fe(){return Promise.resolve(v.value)}function ve(){a.isTeamPreview?L.addPayLoad(`/previewTeam/${t}/${s}`,{name:v.value?.name??""}):L.addPayLoad(`/preview/${s}`,{name:v.value?.name??""})}function ge(){window?.umami?.track(ae.PREVIEW_OPEN_NEWTAB,{compId:s,version:E.value});const{href:h}=e.resolve({name:"previewBlank",params:{compId:s,version:E.value}});window.open(h,"_blank")}return te(E,async h=>{h!==v.value?.version&&await ee()}),te(o,(h,g)=>{g&&h!==g&&window?.umami?.track(ae.PREVIEW_TAB_CHANGE,{compId:s,from:g,to:h})}),re(async()=>{(!ue.value||f)&&await ee(),ve(),Q.value=!0}),(h,g)=>{const A=ze("Icon"),D=be,F=ne,z=Ve,j=Ae;return p(),P("div",Eo,[l(j,{"wrap-class":"preview-container",class:"size-full pr-[10px]"},{default:m(()=>[Q.value?(p(),P("div",Po,[l(u(Ge),{title:v.value?.name,actions:["maximize"]},{beforeActions:m(()=>[l(D,{type:"primary",circle:"",title:u(c)("common.openInNewPage"),onClick:ge},{default:m(()=>[l(A,{icon:"material-symbols:screen-share-rounded"})]),_:1},8,["title"])]),default:m(()=>[l(To,{compAttrs:v.value,version:E.value},null,8,["compAttrs","version"])]),_:1},8,["title"])])):I("",!0),l(F,{"body-class":"!p-0 flex items-center gap-1",class:"sticky top-0 mt-1 w-full z-10"},{default:m(()=>[b("div",yo,[l(u(to),{modelValue:u(o),"onUpdate:modelValue":g[0]||(g[0]=y=>je(o)?o.value=y:null),options:d.value},null,8,["modelValue","options"])]),l(D,{color:"#414141",onClick:g[1]||(g[1]=y=>n.value=!0)},{default:m(()=>[$(M(u(c)("common.terminal")),1)]),_:1}),l(co,{id:v.value?._id,modelValue:E.value,"onUpdate:modelValue":g[2]||(g[2]=y=>E.value=y),version:v.value?.version},null,8,["id","modelValue","version"]),l(ie,{id:v.value?._id,name:v.value?.name,version:v.value?.version},{default:m(({downloadHandler:y,isLogin:U})=>[l(D,{type:"primary",onClick:oe=>y(U)},{default:m(()=>[$(M(u(c)("common.download")),1)]),_:1},8,["onClick"])]),_:1},8,["id","name","version"])]),_:1}),b("div",Mo,[l(u(De),null,{default:m(()=>[(p(),V(Ue,null,[(p(),V(Ke(pe.value),q(J(de.value)),null,16))],1024))]),_:1})]),l(z,{right:100,bottom:100,target:".preview-container"})]),_:1}),l(u(no),{modelValue:n.value,"onUpdate:modelValue":g[3]||(g[3]=y=>n.value=y),title:u(c)("common.depInstall"),width:"70%",top:"5vh","destroy-on-close":""},{default:m(()=>[v.value?._id?(p(),V(_o,{key:0,class:"h-[70vh]",compId:v.value?._id,getCompDetail:fe},null,8,["compId"])):I("",!0)]),_:1},8,["modelValue","title"])])}}});export{Xo as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as De,A as Ye,J as P,a9 as ot,al as at,x as ut,y as ct,r as Ft,f as ft,a0 as dt}from"./vendor-ui-CGT0cG1n.js";import{y as ce,M as me,t as H,p as J,J as Le,m as Nt,j as St}from"./index-Cd1GqG9-.js";/* empty css */import{v as te,ab as j,l as le,F as Et,ah as pt,i as W,$ as At,ap as $,j as X,aO as T,q as ae,k as ht,g as q,aA as ie,aj as oe,r as b,ax as k,af as U,aF as re,ay as Ct,aE as mt,al as Bt,B as Mt,y as gt,X as Dt,a7 as Lt}from"./vendor-core-BKehvho7.js";import{_ as Be}from"./AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CP9hjm3T.js";import{_ as Fe}from"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import{m as ye}from"./md5-ohq5q_Pj.js";import{_ as Xe}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";import{h as vt}from"./moment-B-YVwB4U.js";import{_ as Ot}from"./index.vue_vue_type_script_setup_true_lang-CVJdloX3.js";import"./useCacheOssStore-OAoLDVbw.js";const kt=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],We=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function wt(e){if(e<=255)return kt[e];let t=0,n=We.length-1;for(;t<=n;){const r=t+n>>1,x=We[r];if(e<x[0]){n=r-1;continue}if(e>x[1]){t=r+1;continue}return x[2]}return"L"}function bt(e){const t=e.length;if(t===0)return null;const n=new Array(t);let r=!1;for(let l=0;l<t;){const o=e.charCodeAt(l);let F=o,c=1;if(o>=55296&&o<=56319&&l+1<t){const m=e.charCodeAt(l+1);m>=56320&&m<=57343&&(F=(o-55296<<10)+(m-56320)+65536,c=2)}const E=wt(F);(E==="R"||E==="AL"||E==="AN")&&(r=!0);for(let m=0;m<c;m++)n[l+m]=E;l+=c}if(!r)return null;let x=0;for(let l=0;l<t;l++){const o=n[l];if(o==="L"){x=0;break}if(o==="R"||o==="AL"){x=1;break}}const s=new Int8Array(t);for(let l=0;l<t;l++)s[l]=x;const i=x&1?"R":"L",a=i;let u=a;for(let l=0;l<t;l++)n[l]==="NSM"?n[l]=u:u=n[l];u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="AL"?"AN":"EN":(o==="R"||o==="L"||o==="AL")&&(u=o)}for(let l=0;l<t;l++)n[l]==="AL"&&(n[l]="R");for(let l=1;l<t-1;l++)n[l]==="ES"&&n[l-1]==="EN"&&n[l+1]==="EN"&&(n[l]="EN"),n[l]==="CS"&&(n[l-1]==="EN"||n[l-1]==="AN")&&n[l+1]===n[l-1]&&(n[l]=n[l-1]);for(let l=0;l<t;l++){if(n[l]!=="EN")continue;let o;for(o=l-1;o>=0&&n[o]==="ET";o--)n[o]="EN";for(o=l+1;o<t&&n[o]==="ET";o++)n[o]="EN"}for(let l=0;l<t;l++){const o=n[l];(o==="WS"||o==="ES"||o==="ET"||o==="CS")&&(n[l]="ON")}u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="L"?"L":"EN":(o==="R"||o==="L")&&(u=o)}for(let l=0;l<t;l++){if(n[l]!=="ON")continue;let o=l+1;for(;o<t&&n[o]==="ON";)o++;const F=l>0?n[l-1]:a,c=o<t?n[o]:a,E=F!=="L"?"R":"L";if(E===(c!=="L"?"R":"L"))for(let S=l;S<o;S++)n[S]=E;l=o-1}for(let l=0;l<t;l++)n[l]==="ON"&&(n[l]=i);for(let l=0;l<t;l++){const o=n[l];(s[l]&1)===0?o==="R"?s[l]++:(o==="AN"||o==="EN")&&(s[l]+=2):(o==="L"||o==="AN"||o==="EN")&&s[l]++}return s}function _t(e,t){const n=bt(e);if(n===null)return null;const r=new Int8Array(t.length);for(let x=0;x<t.length;x++)r[x]=n[t[x]];return r}const yt=/[ \t\n\r\f]+/g,Wt=/[\t\n\r\f]| {2,}|^ | $/;function Rt(e){const t=e??"normal";return t==="pre-wrap"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Tt(e){if(!Wt.test(e))return e;let t=e.replace(yt," ");return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function Pt(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
|
|
1
|
+
import{e as De,A as Ye,J as P,a9 as ot,al as at,x as ut,y as ct,r as Ft,f as ft,a0 as dt}from"./vendor-ui-CGT0cG1n.js";import{y as ce,M as me,t as H,p as J,J as Le,m as Nt,j as St}from"./index-CdLdwW7r.js";/* empty css */import{v as te,ab as j,l as le,F as Et,ah as pt,i as W,$ as At,ap as $,j as X,aO as T,q as ae,k as ht,g as q,aA as ie,aj as oe,r as b,ax as k,af as U,aF as re,ay as Ct,aE as mt,al as Bt,B as Mt,y as gt,X as Dt,a7 as Lt}from"./vendor-core-BKehvho7.js";import{_ as Be}from"./AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CP9hjm3T.js";import{_ as Fe}from"./BaseDialog.vue_vue_type_script_setup_true_lang-BROcUfEh.js";import{m as ye}from"./md5-ohq5q_Pj.js";import{_ as Xe}from"./LoadingWrapper.vue_vue_type_script_setup_true_lang-kJcgjuK5.js";import{h as vt}from"./moment-B-YVwB4U.js";import{_ as Ot}from"./index.vue_vue_type_script_setup_true_lang-BYKlY94g.js";import"./useCacheOssStore-OAoLDVbw.js";const kt=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],We=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function wt(e){if(e<=255)return kt[e];let t=0,n=We.length-1;for(;t<=n;){const r=t+n>>1,x=We[r];if(e<x[0]){n=r-1;continue}if(e>x[1]){t=r+1;continue}return x[2]}return"L"}function bt(e){const t=e.length;if(t===0)return null;const n=new Array(t);let r=!1;for(let l=0;l<t;){const o=e.charCodeAt(l);let F=o,c=1;if(o>=55296&&o<=56319&&l+1<t){const m=e.charCodeAt(l+1);m>=56320&&m<=57343&&(F=(o-55296<<10)+(m-56320)+65536,c=2)}const E=wt(F);(E==="R"||E==="AL"||E==="AN")&&(r=!0);for(let m=0;m<c;m++)n[l+m]=E;l+=c}if(!r)return null;let x=0;for(let l=0;l<t;l++){const o=n[l];if(o==="L"){x=0;break}if(o==="R"||o==="AL"){x=1;break}}const s=new Int8Array(t);for(let l=0;l<t;l++)s[l]=x;const i=x&1?"R":"L",a=i;let u=a;for(let l=0;l<t;l++)n[l]==="NSM"?n[l]=u:u=n[l];u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="AL"?"AN":"EN":(o==="R"||o==="L"||o==="AL")&&(u=o)}for(let l=0;l<t;l++)n[l]==="AL"&&(n[l]="R");for(let l=1;l<t-1;l++)n[l]==="ES"&&n[l-1]==="EN"&&n[l+1]==="EN"&&(n[l]="EN"),n[l]==="CS"&&(n[l-1]==="EN"||n[l-1]==="AN")&&n[l+1]===n[l-1]&&(n[l]=n[l-1]);for(let l=0;l<t;l++){if(n[l]!=="EN")continue;let o;for(o=l-1;o>=0&&n[o]==="ET";o--)n[o]="EN";for(o=l+1;o<t&&n[o]==="ET";o++)n[o]="EN"}for(let l=0;l<t;l++){const o=n[l];(o==="WS"||o==="ES"||o==="ET"||o==="CS")&&(n[l]="ON")}u=a;for(let l=0;l<t;l++){const o=n[l];o==="EN"?n[l]=u==="L"?"L":"EN":(o==="R"||o==="L")&&(u=o)}for(let l=0;l<t;l++){if(n[l]!=="ON")continue;let o=l+1;for(;o<t&&n[o]==="ON";)o++;const F=l>0?n[l-1]:a,c=o<t?n[o]:a,E=F!=="L"?"R":"L";if(E===(c!=="L"?"R":"L"))for(let S=l;S<o;S++)n[S]=E;l=o-1}for(let l=0;l<t;l++)n[l]==="ON"&&(n[l]=i);for(let l=0;l<t;l++){const o=n[l];(s[l]&1)===0?o==="R"?s[l]++:(o==="AN"||o==="EN")&&(s[l]+=2):(o==="L"||o==="AN"||o==="EN")&&s[l]++}return s}function _t(e,t){const n=bt(e);if(n===null)return null;const r=new Int8Array(t.length);for(let x=0;x<t.length;x++)r[x]=n[t[x]];return r}const yt=/[ \t\n\r\f]+/g,Wt=/[\t\n\r\f]| {2,}|^ | $/;function Rt(e){const t=e??"normal";return t==="pre-wrap"?{mode:t,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:t,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function Tt(e){if(!Wt.test(e))return e;let t=e.replace(yt," ");return t.charCodeAt(0)===32&&(t=t.slice(1)),t.length>0&&t.charCodeAt(t.length-1)===32&&(t=t.slice(0,-1)),t}function Pt(e){return/[\r\f]/.test(e)?e.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/[\r\f]/g,`
|
|
3
3
|
`):e}let pe=null,Ut;function It(){return pe===null&&(pe=new Intl.Segmenter(Ut,{granularity:"word"})),pe}const zt=new RegExp("\\p{Script=Arabic}","u"),fe=new RegExp("\\p{M}","u"),Ze=new RegExp("\\p{Nd}","u");function Re(e){return zt.test(e)}function Te(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function Z(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){const r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){const x=(n-55296<<10)+(r-56320)+65536;if(Te(x))return!0;t++;continue}}if(Te(n))return!0}}return!1}function $t(e){const t=Ne(e);return t!==null&&(ve.has(t)||ee.has(t))}const jt=new Set([" "," ","","\uFEFF"]);function Gt(e){return Z(e)}function Vt(e){const t=Ne(e);return t!==null&&jt.has(t)}function Kt(e){return!$t(e)&&!Vt(e)}const ve=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),de=new Set(['"',"(","[","{","“","‘","«","‹","(","〔","〈","《","「","『","【","〖","〘","〚"]),Oe=new Set(["'","’"]),ee=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),Ht=new Set([":",".","،","؛"]),Jt=new Set(["၏"]),qt=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function Qt(e){if(ke(e))return!0;let t=!1;for(const n of e){if(ee.has(n)){t=!0;continue}if(!(t&&fe.test(n)))return!1}return t}function Yt(e){for(const t of e)if(!ve.has(t)&&!ee.has(t))return!1;return e.length>0}function Xt(e){if(ke(e))return!0;for(const t of e)if(!de.has(t)&&!Oe.has(t)&&!fe.test(t))return!1;return e.length>0}function ke(e){let t=!1;for(const n of e)if(!(n==="\\"||fe.test(n))){if(de.has(n)||ee.has(n)||Oe.has(n)){t=!0;continue}return!1}return t}function et(e,t){const n=t-1;if(n<=0)return Math.max(n,0);const r=e.charCodeAt(n);if(r<56320||r>57343)return n;const x=n-1;if(x<0)return n;const s=e.charCodeAt(x);return s>=55296&&s<=56319?x:n}function Ne(e){if(e.length===0)return null;const t=et(e,e.length);return e.slice(t)}function Zt(e){const t=Array.from(e);let n=t.length;for(;n>0;){const r=t[n-1];if(fe.test(r)){n--;continue}if(de.has(r)||Oe.has(r)){n--;continue}break}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function e0(e,t,n){return n==="text"&&!t&&e.length===1&&e!=="-"&&e!=="—"?e:null}function Pe(e,t,n,r){const x=t[r],s=e[r];if(x==null)return s;const i=n[r];if(s.length===i)return s;const a=x.repeat(i);return e[r]=a,a}function Ue(e,t){return e&&t!==null&&Ht.has(t)}function t0(e){const t=Ne(e);return t!==null&&Jt.has(t)}function n0(e){if(e.length<2||e[0]!==" ")return null;const t=e.slice(1);return new RegExp("^\\p{M}+$","u").test(t)?{space:" ",marks:t}:null}function Me(e){let t=e.length;for(;t>0;){const n=et(e,t),r=e.slice(n,t);if(qt.has(r))return!0;if(!ee.has(r))return!1;t=n}return!1}function s0(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(t.preserveHardBreaks&&e===`
|
|
4
4
|
`)return"hard-break"}return e===" "?"space":e===" "||e===" "||e===""||e==="\uFEFF"?"glue":e===""?"zero-width-break":e===""?"soft-hyphen":"text"}const x0=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function G(e){return e.length===1?e[0]:e.join("")}function r0(e,t){const n=[];for(let r=e.length-1;r>=0;r--)n.push(e[r]);return n.push(t),G(n)}function i0(e,t,n,r){if(!x0.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const x=[];let s=null,i=[],a=n,u=!1,l=0;for(const o of e){const F=s0(o,r),c=F==="text"&&t;if(s!==null&&F===s&&c===u){i.push(o),l+=o.length;continue}s!==null&&x.push({text:G(i),isWordLike:u,kind:s,start:a}),s=F,i=[o],a=n+l,u=c,l+=o.length}return s!==null&&x.push({text:G(i),isWordLike:u,kind:s,start:a}),x}function ge(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const l0=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function o0(e,t){const n=e.texts[t];return n.startsWith("www.")?!0:l0.test(n)&&t+1<e.len&&e.kinds[t+1]==="text"&&e.texts[t+1]==="//"}function a0(e){return e.includes("?")&&(e.includes("://")||e.startsWith("www."))}function u0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),x=e.starts.slice();for(let i=0;i<e.len;i++){if(r[i]!=="text"||!o0(e,i))continue;const a=[t[i]];let u=i+1;for(;u<e.len&&!ge(r[u]);){a.push(t[u]),n[i]=!0;const l=t[u].includes("?");if(r[u]="text",t[u]="",u++,l)break}t[i]=G(a)}let s=0;for(let i=0;i<t.length;i++){const a=t[i];a.length!==0&&(s!==i&&(t[s]=a,n[s]=n[i],r[s]=r[i],x[s]=x[i]),s++)}return t.length=s,n.length=s,r.length=s,x.length=s,{len:s,texts:t,isWordLike:n,kinds:r,starts:x}}function c0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s];if(t.push(i),n.push(e.isWordLike[s]),r.push(e.kinds[s]),x.push(e.starts[s]),!a0(i))continue;const a=s+1;if(a>=e.len||ge(e.kinds[a]))continue;const u=[],l=e.starts[a];let o=a;for(;o<e.len&&!ge(e.kinds[o]);)u.push(e.texts[o]),o++;u.length>0&&(t.push(G(u)),n.push(!0),r.push("text"),x.push(l),s=o-1)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}const F0=new Set([":","-","/","×",",",".","+","–","—"]),Ie=/^[A-Za-z0-9_]+[,:;]*$/,ze=/[,:;]+$/;function tt(e){for(const t of e)if(Ze.test(t))return!0;return!1}function ue(e){if(e.length===0)return!1;for(const t of e)if(!(Ze.test(t)||F0.has(t)))return!1;return!0}function f0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s];if(a==="text"&&ue(i)&&tt(i)){const u=[i];let l=s+1;for(;l<e.len&&e.kinds[l]==="text"&&ue(e.texts[l]);)u.push(e.texts[l]),l++;t.push(G(u)),n.push(!0),r.push("text"),x.push(e.starts[s]),s=l-1;continue}t.push(i),n.push(e.isWordLike[s]),r.push(a),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function d0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s],a=e.kinds[s],u=e.isWordLike[s];if(a==="text"&&u&&Ie.test(i)){const l=[i];let o=ze.test(i),F=s+1;for(;o&&F<e.len&&e.kinds[F]==="text"&&e.isWordLike[F]&&Ie.test(e.texts[F]);){const c=e.texts[F];l.push(c),o=ze.test(c),F++}t.push(G(l)),n.push(!0),r.push("text"),x.push(e.starts[s]),s=F-1;continue}t.push(i),n.push(u),r.push(a),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function N0(e){const t=[],n=[],r=[],x=[];for(let s=0;s<e.len;s++){const i=e.texts[s];if(e.kinds[s]==="text"&&i.includes("-")){const a=i.split("-");let u=a.length>1;for(let l=0;l<a.length;l++){const o=a[l];if(!u)break;(o.length===0||!tt(o)||!ue(o))&&(u=!1)}if(u){let l=0;for(let o=0;o<a.length;o++){const F=a[o],c=o<a.length-1?`${F}-`:F;t.push(c),n.push(!0),r.push("text"),x.push(e.starts[s]+l),l+=c.length}continue}}t.push(i),n.push(e.isWordLike[s]),r.push(e.kinds[s]),x.push(e.starts[s])}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function S0(e){const t=[],n=[],r=[],x=[];let s=0;for(;s<e.len;){const i=[e.texts[s]];let a=e.isWordLike[s],u=e.kinds[s],l=e.starts[s];if(u==="glue"){const o=[i[0]],F=l;for(s++;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const c=G(o);if(s<e.len&&e.kinds[s]==="text")i[0]=c,i.push(e.texts[s]),a=e.isWordLike[s],u="text",l=F,s++;else{t.push(c),n.push(!1),r.push("glue"),x.push(F);continue}}else s++;if(u==="text")for(;s<e.len&&e.kinds[s]==="glue";){const o=[];for(;s<e.len&&e.kinds[s]==="glue";)o.push(e.texts[s]),s++;const F=G(o);if(s<e.len&&e.kinds[s]==="text"){i.push(F,e.texts[s]),a=a||e.isWordLike[s],s++;continue}i.push(F)}t.push(G(i)),n.push(a),r.push(u),x.push(l)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function E0(e){const t=e.texts.slice(),n=e.isWordLike.slice(),r=e.kinds.slice(),x=e.starts.slice();for(let s=0;s<t.length-1;s++){if(r[s]!=="text"||r[s+1]!=="text"||!Z(t[s])||!Z(t[s+1]))continue;const i=Zt(t[s]);i!==null&&(t[s]=i.head,t[s+1]=i.tail+t[s+1],x[s+1]=x[s]+i.head.length)}return{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function $e(e,t,n){const r=It();let x=0;const s=[],i=[],a=[],u=[],l=[],o=[],F=[],c=[],E=[],m=[],S=[],d=[];for(const f of r.segment(e))for(const p of i0(f.segment,f.isWordLike??!1,f.index,n)){let M=function(){o[N]!==null&&(i[N]=[Pe(s,o,F,N)],o[N]=null),i[N].push(p.text),a[N]=a[N]||p.isWordLike,c[N]=c[N]||D,E[N]=E[N]||_,m[N]=R,S[N]=V,d[N]=Ue(E[N],y)};const g=p.kind==="text",C=e0(p.text,p.isWordLike,p.kind),D=Z(p.text),_=Re(p.text),y=Ne(p.text),R=Me(p.text),V=t0(p.text),N=x-1;t.carryCJKAfterClosingQuote&&g&&x>0&&u[N]==="text"&&D&&c[N]&&m[N]||g&&x>0&&u[N]==="text"&&Yt(p.text)&&c[N]||g&&x>0&&u[N]==="text"&&S[N]?M():g&&x>0&&u[N]==="text"&&p.isWordLike&&_&&d[N]?(M(),a[N]=!0):C!==null&&x>0&&u[N]==="text"&&o[N]===C?F[N]=(F[N]??1)+1:g&&!p.isWordLike&&x>0&&u[N]==="text"&&!c[N]&&(Qt(p.text)||p.text==="-"&&a[N])?M():(s[x]=p.text,i[x]=[p.text],a[x]=p.isWordLike,u[x]=p.kind,l[x]=p.start,o[x]=C,F[x]=C===null?0:1,c[x]=D,E[x]=_,m[x]=R,S[x]=V,d[x]=Ue(_,y),x++)}for(let f=0;f<x;f++){if(o[f]!==null){s[f]=Pe(s,o,F,f);continue}s[f]=G(i[f])}for(let f=1;f<x;f++)u[f]==="text"&&!a[f]&&ke(s[f])&&u[f-1]==="text"&&!c[f-1]&&(s[f-1]+=s[f],a[f-1]=a[f-1]||a[f],s[f]="");const A=Array.from({length:x},()=>null);let L=-1;for(let f=x-1;f>=0;f--){const p=s[f];if(p.length!==0){if(u[f]==="text"&&!a[f]&&Xt(p)&&L>=0&&u[L]==="text"){const g=A[L]??[];g.push(p),A[L]=g,l[L]=l[f],s[f]="";continue}L=f}}for(let f=0;f<x;f++){const p=A[f];p!=null&&(s[f]=r0(p,s[f]))}let h=0;for(let f=0;f<x;f++){const p=s[f];p.length!==0&&(h!==f&&(s[h]=p,a[h]=a[f],u[h]=u[f],l[h]=l[f]),h++)}s.length=h,a.length=h,u.length=h,l.length=h;const O=S0({len:h,texts:s,isWordLike:a,kinds:u,starts:l}),v=E0(d0(N0(f0(c0(u0(O))))));for(let f=0;f<v.len-1;f++){const p=n0(v.texts[f]);p!==null&&(v.kinds[f]!=="space"&&v.kinds[f]!=="preserved-space"||v.kinds[f+1]!=="text"||!Re(v.texts[f+1])||(v.texts[f]=p.space,v.isWordLike[f]=!1,v.kinds[f]=v.kinds[f]==="preserved-space"?"preserved-space":"space",v.texts[f+1]=p.marks+v.texts[f+1],v.starts[f+1]=v.starts[f]+p.space.length))}return v}function p0(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];const n=[];let r=0;for(let x=0;x<e.len;x++)e.kinds[x]==="hard-break"&&(n.push({startSegmentIndex:r,endSegmentIndex:x,consumedEndSegmentIndex:x+1}),r=x+1);return r<e.len&&n.push({startSegmentIndex:r,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function A0(e){if(e.len<=1)return e;const t=[],n=[],r=[],x=[];let s=null,i=!1,a=0,u=!1,l=!1;function o(){s!==null&&(t.push(G(s)),n.push(i),r.push("text"),x.push(a),s=null)}for(let F=0;F<e.len;F++){const c=e.texts[F],E=e.kinds[F],m=e.isWordLike[F],S=e.starts[F];if(E==="text"){const d=Gt(c),A=Kt(c);if(s!==null&&u&&l){s.push(c),i=i||m,u=u||d,l=A;continue}o(),s=[c],i=m,a=S,u=d,l=A;continue}o(),t.push(c),n.push(m),r.push(E),x.push(S)}return o(),{len:t.length,texts:t,isWordLike:n,kinds:r,starts:x}}function h0(e,t,n="normal",r="normal"){const x=Rt(n),s=x.mode==="pre-wrap"?Pt(e):Tt(e);if(s.length===0)return{normalized:s,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const i=r==="keep-all"?A0($e(s,t,x)):$e(s,t,x);return{normalized:s,chunks:p0(i,x),...i}}let se=null;const je=new Map;let xe=null;const C0=96,m0=new RegExp("\\p{Emoji_Presentation}","u"),B0=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let Ae=null;const Ge=new Map;function we(){if(se!==null)return se;if(typeof OffscreenCanvas<"u")return se=new OffscreenCanvas(1,1).getContext("2d"),se;if(typeof document<"u")return se=document.createElement("canvas").getContext("2d"),se;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function M0(e){let t=je.get(e);return t||(t=new Map,je.set(e,t)),t}function Q(e,t){let n=t.get(e);return n===void 0&&(n={width:we().measureText(e).width,containsCJK:Z(e)},t.set(e,n)),n}function Se(){if(xe!==null)return xe;if(typeof navigator>"u")return xe={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},xe;const e=navigator.userAgent,n=navigator.vendor==="Apple Computer, Inc."&&e.includes("Safari/")&&!e.includes("Chrome/")&&!e.includes("Chromium/")&&!e.includes("CriOS/")&&!e.includes("FxiOS/")&&!e.includes("EdgiOS/"),r=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/");return xe={lineFitEpsilon:n?1/64:.005,carryCJKAfterClosingQuote:r,preferPrefixWidthsForBreakableRuns:n,preferEarlySoftHyphenBreak:n},xe}function g0(e){const t=e.match(/(\d+(?:\.\d+)?)\s*px/);return t?parseFloat(t[1]):16}function nt(){return Ae===null&&(Ae=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ae}function D0(e){return m0.test(e)||e.includes("️")}function L0(e){return B0.test(e)}function v0(e,t){let n=Ge.get(e);if(n!==void 0)return n;const r=we();r.font=e;const x=r.measureText("😀").width;if(n=0,x>t+.5&&typeof document<"u"&&document.body!==null){const s=document.createElement("span");s.style.font=e,s.style.display="inline-block",s.style.visibility="hidden",s.style.position="absolute",s.textContent="😀",document.body.appendChild(s);const i=s.getBoundingClientRect().width;document.body.removeChild(s),x-i>.5&&(n=x-i)}return Ge.set(e,n),n}function O0(e){let t=0;const n=nt();for(const r of n.segment(e))D0(r.segment)&&t++;return t}function k0(e,t){return t.emojiCount===void 0&&(t.emojiCount=O0(e)),t.emojiCount}function Y(e,t,n){return n===0?t.width:t.width-k0(e,t)*n}function w0(e,t,n,r,x){if(t.breakableFitAdvances!==void 0&&t.breakableFitMode===x)return t.breakableFitAdvances;t.breakableFitMode=x;const s=nt(),i=[];for(const o of s.segment(e))i.push(o.segment);if(i.length<=1)return t.breakableFitAdvances=null,t.breakableFitAdvances;if(x==="sum-graphemes"){const o=[];for(const F of i){const c=Q(F,n);o.push(Y(F,c,r))}return t.breakableFitAdvances=o,t.breakableFitAdvances}if(x==="pair-context"||i.length>C0){const o=[];let F=null,c=0;for(const E of i){const m=Q(E,n),S=Y(E,m,r);if(F===null)o.push(S);else{const d=F+E,A=Q(d,n);o.push(Y(d,A,r)-c)}F=E,c=S}return t.breakableFitAdvances=o,t.breakableFitAdvances}const a=[];let u="",l=0;for(const o of i){u+=o;const F=Q(u,n),c=Y(u,F,r);a.push(c-l),l=c}return t.breakableFitAdvances=a,t.breakableFitAdvances}function b0(e,t){const n=we();n.font=e;const r=M0(e),x=g0(e),s=t?v0(e,x):0;return{cache:r,fontSize:x,emojiCorrection:s}}function _0(e){return e==="space"||e==="zero-width-break"||e==="soft-hyphen"}function st(e){return e==="space"||e==="preserved-space"||e==="tab"||e==="zero-width-break"||e==="soft-hyphen"}function xt(e,t,n=e.widths.length){for(;t<n;){const r=e.kinds[t];if(!_0(r))break;t++}return t}function y0(e,t){if(t<=0)return 0;const n=e%t;return Math.abs(n)<=1e-6?t:t-n}function W0(e,t,n){return e.letterSpacing!==0&&t&&e.spacingGraphemeCounts[n]>0?e.letterSpacing:0}function be(e,t){return t===0?0:e+t}function R0(e,t){return e.letterSpacing!==0&&e.spacingGraphemeCounts[t]>0?e.letterSpacing:0}function T0(e,t,n,r,x){const s=t==="tab"?x+R0(e,n):e.lineEndFitAdvances[n];return be(r,s)}function Ve(e,t,n,r){const x=t==="tab"?0:e.lineEndFitAdvances[n];return be(r,x)}function Ke(e,t,n,r,x){const s=t==="tab"?x:e.lineEndPaintAdvances[n];return be(r,s)}function P0(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function U0(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function I0(e,t,n,r,x,s){let i=0,a=t;for(;i<e.length;){const u=a+e[i]+s;if((i+1<e.length?u+x:u)>n+r)break;a=u,i++}return{fitCount:i,fittedWidth:a}}function z0(e,t,n){const{widths:r,kinds:x,breakableFitAdvances:s}=e;if(r.length===0)return 0;const a=Se().lineFitEpsilon,u=t+a;let l=0,o=0,F=!1,c=0,E=0,m=0,S=0,d=-1,A=0;function L(){d=-1,A=0}function h(C=m,D=S,_=o){l++,n?.(_,c,E,C,D),o=0,F=!1,L()}function O(C,D){F=!0,c=C,E=0,m=C+1,S=0,o=D}function v(C,D,_){F=!0,c=C,E=D,m=C,S=D+1,o=_}function f(C,D){if(!F){O(C,D);return}o+=D,m=C+1,S=0}function p(C,D){const _=s[C];for(let y=D;y<_.length;y++){const R=_[y];F?o+R>u?(h(),v(C,y,R)):(o+=R,m=C,S=y+1):v(C,y,R)}F&&m===C&&S===_.length&&(m=C+1,S=0)}let g=0;for(;g<r.length&&!(!F&&(g=xt(e,g),g>=r.length));){const C=r[g],D=x[g],_=st(D);if(!F){C>u&&s[g]!==null?p(g,0):O(g,C),_&&(d=g+1,A=o-C),g++;continue}if(o+C>u){if(_){f(g,C),h(g+1,0,o-C),g++;continue}if(d>=0){if(m>d||m===d&&S>0){h();continue}h(d,0,A);continue}if(C>u&&s[g]!==null){h(),p(g,0),g++;continue}h();continue}f(g,C),_&&(d=g+1,A=o-C),g++}return F&&h(),l}function $0(e,t,n){if(e.simpleLineWalkFastPath)return z0(e,t,n);const{widths:r,kinds:x,breakableFitAdvances:s,discretionaryHyphenWidth:i,chunks:a}=e;if(r.length===0||a.length===0)return 0;const u=Se(),l=u.lineFitEpsilon,o=t+l;let F=0,c=0,E=!1,m=0,S=0,d=0,A=0,L=-1,h=0,O=0,v=null;function f(){L=-1,h=0,O=0,v=null}function p(N=d,M=A,B=c){F++,n?.(B,m,S,N,M),c=0,E=!1,f()}function g(N,M){E=!0,m=N,S=0,d=N+1,A=0,c=M}function C(N,M,B){E=!0,m=N,S=M,d=N,A=M+1,c=B}function D(N,M){if(!E){g(N,M);return}c+=M,d=N+1,A=0}function _(N,M,B,w,I,z){if(!M)return;const K=Ve(e,N,B,I),ne=Ke(e,N,B,I,w);L=B+1,h=c-z+K,O=c-z+ne,v=N}function y(N,M){const B=s[N];for(let w=M;w<B.length;w++){const I=B[w];if(!E)C(N,w,I);else{const z=P0(e,!0,I),K=c+z;U0(e,K)>o?(p(),C(N,w,I)):(c=K,d=N,A=w+1)}}E&&d===N&&A===B.length&&(d=N+1,A=0)}function R(N){if(v!=="soft-hyphen")return!1;const M=s[N];if(M==null)return!1;const{fitCount:B,fittedWidth:w}=I0(M,c,t,l,i,e.letterSpacing);return B===0?!1:(c=w,d=N,A=B,f(),B===M.length?(d=N+1,A=0,!0):(p(N,B,w+i),y(N,B),!0))}function V(N){F++,n?.(0,N.startSegmentIndex,0,N.consumedEndSegmentIndex,0),f()}for(let N=0;N<a.length;N++){const M=a[N];if(M.startSegmentIndex===M.endSegmentIndex){V(M);continue}E=!1,c=0,m=M.startSegmentIndex,S=0,d=M.startSegmentIndex,A=0,f();let B=M.startSegmentIndex;for(;B<M.endSegmentIndex&&!(!E&&(B=xt(e,B,M.endSegmentIndex),B>=M.endSegmentIndex));){const w=x[B],I=st(w),z=W0(e,E,B),K=w==="tab"?y0(c+z,e.tabStopAdvance):r[B],ne=z+K,Ee=T0(e,w,B,z,K);if(w==="soft-hyphen"){E&&(d=B+1,A=0,L=B+1,h=c+i,O=c+i,v=w),B++;continue}if(!E){Ee>o&&s[B]!==null?y(B,0):g(B,K),_(w,I,B,K,z,ne),B++;continue}if(c+Ee>o){const it=c+Ve(e,w,B,z),lt=c+Ke(e,w,B,z,K);if(v==="soft-hyphen"&&u.preferEarlySoftHyphenBreak&&h<=o){p(L,0,O);continue}if(v==="soft-hyphen"&&R(B)){B++;continue}if(I&&it<=o){D(B,ne),p(B+1,0,lt),B++;continue}if(L>=0&&h<=o){if(d>L||d===L&&A>0){p();continue}const _e=L;p(_e,0,O),B=_e;continue}if(Ee>o&&s[B]!==null){p(),y(B,0),B++;continue}p();continue}D(B,ne),_(w,I,B,K,z,ne),B++}if(E){const w=L===M.consumedEndSegmentIndex?O:c;p(M.consumedEndSegmentIndex,0,w)}}return F}let he=null,He=new WeakMap;function j0(){return he===null&&(he=new Intl.Segmenter(void 0,{granularity:"grapheme"})),he}function Je(e,t,n){let r=n.get(e);if(r!==void 0)return r;r=[];const x=j0();for(const s of x.segment(t[e]))r.push(s.segment);return n.set(e,r),r}function G0(e,t,n,r){return r>0&&e[r-1]==="soft-hyphen"&&!(t===r&&n>0)}function qe(e,t,n,r){for(let x=n;x<r;x++)e+=t[x];return e}function V0(e){let t=He.get(e);return t!==void 0||(t=new Map,He.set(e,t)),t}function K0(e,t,n,r,x,s){let i="";const a=G0(e.kinds,n,r,x);for(let u=n;u<x;u++)if(!(e.kinds[u]==="soft-hyphen"||e.kinds[u]==="hard-break"))if(u===n&&r>0){const l=Je(u,e.segments,t);i=qe(i,l,r,l.length)}else i+=e.segments[u];if(s>0){a&&(i+="-");const u=Je(x,e.segments,t);i=qe(i,u,n===x?r:0,s)}else a&&(i+="-");return i}let Ce=null;function H0(){return Ce===null&&(Ce=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Ce}function J0(e){return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}}function q0(e,t){const n=[];let r=[],x=0,s=!1,i=!1,a=!1;function u(){r.length!==0&&(n.push({text:r.length===1?r[0]:r.join(""),start:x}),r=[],s=!1,i=!1,a=!1)}function l(F,c,E){r=[F],x=c,s=E,i=Me(F),a=de.has(F)}function o(F,c){r.push(F),s=s||c;const E=Me(F);F.length===1&&ee.has(F)?i=i||E:i=E,a=!1}for(const F of H0().segment(e)){const c=F.segment,E=Z(c);if(r.length===0){l(c,F.index,E);continue}if(a||ve.has(c)||ee.has(c)||t.carryCJKAfterClosingQuote&&E&&i){o(c,E);continue}if(!s&&!E){o(c,E);continue}u(),l(c,F.index,E)}return u(),n}function Q0(e,t,n){return e}function Y0(e,t,n,r,x){const s=Se(),{cache:i,emojiCorrection:a}=b0(t,L0(e.normalized)),u=Y("-",Q("-",i),a)+0,o=Y(" ",Q(" ",i),a)*8;if(e.len===0)return J0();const F=[],c=[],E=[],m=[];let S=e.chunks.length<=1&&!0;const d=n?[]:null,A=[],L=[],h=n?[]:null,O=Array.from({length:e.len});function v(C,D,_,y,R,V,N,M){R!=="text"&&R!=="space"&&R!=="zero-width-break"&&(S=!1),F.push(D),c.push(_),E.push(y),m.push(R),d?.push(V),A.push(N),h!==null&&h.push(C)}function f(C,D,_,y,R){const V=Q(C,i),N=Q0(Y(C,V,a)),M=D==="space"||D==="preserved-space"||D==="zero-width-break"?0:N,B=M===0?0:M+0,w=D==="space"||D==="zero-width-break"?0:N;if(R&&y&&C.length>1){let I="sum-graphemes";ue(C)?I="pair-context":s.preferPrefixWidthsForBreakableRuns&&(I="segment-prefixes");const z=w0(C,V,i,a,I);v(C,N,B,w,D,_,z);return}v(C,N,B,w,D,_,null)}for(let C=0;C<e.len;C++){O[C]=F.length;const D=e.texts[C],_=e.isWordLike[C],y=e.kinds[C],R=e.starts[C];if(y==="soft-hyphen"){v(D,0,u,u,y,R,null);continue}if(y==="hard-break"){v(D,0,0,0,y,R,null);continue}if(y==="tab"){v(D,0,0,0,y,R,null);continue}const V=Q(D,i);if(y==="text"&&V.containsCJK){const M=q0(D,s);for(let B=0;B<M.length;B++){const w=M[B];f(w.text,"text",R+w.start,_,!Z(w.text))}continue}f(D,y,R,_,!0)}const p=X0(e.chunks,O,F.length),g=d===null?null:_t(e.normalized,d);return h!==null?{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:E,kinds:m,simpleLineWalkFastPath:S,segLevels:g,breakableFitAdvances:A,letterSpacing:x,spacingGraphemeCounts:L,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:p,segments:h}:{widths:F,lineEndFitAdvances:c,lineEndPaintAdvances:E,kinds:m,simpleLineWalkFastPath:S,segLevels:g,breakableFitAdvances:A,letterSpacing:x,spacingGraphemeCounts:L,discretionaryHyphenWidth:u,tabStopAdvance:o,chunks:p}}function X0(e,t,n){const r=[];for(let x=0;x<e.length;x++){const s=e[x],i=s.startSegmentIndex<t.length?t[s.startSegmentIndex]:n,a=s.endSegmentIndex<t.length?t[s.endSegmentIndex]:n,u=s.consumedEndSegmentIndex<t.length?t[s.consumedEndSegmentIndex]:n;r.push({startSegmentIndex:i,endSegmentIndex:a,consumedEndSegmentIndex:u})}return r}function Z0(e,t,n,r){const x="normal",i=h0(e,Se(),r?.whiteSpace,x);return Y0(i,t,n,x,0)}function en(e,t,n){return Z0(e,t,!0,n)}function tn(e,t,n,r,x,s,i){return{text:K0(e,t,r,x,s,i),width:n,start:{segmentIndex:r,graphemeIndex:x},end:{segmentIndex:s,graphemeIndex:i}}}function nn(e,t,n){const r=[];if(e.widths.length===0)return{lineCount:0,height:0,lines:r};const x=V0(e),s=$0(e,t,(i,a,u,l,o)=>{r.push(tn(e,x,i,a,u,l,o))});return{lineCount:s,height:s*n,lines:r}}const sn={class:"flex-1 text-sm text-[var(--el-text-color-primary)] whitespace-nowrap"},xn="14px Inter",rn=te({__name:"InfoList",props:{infoList:{}},setup(e){const t=e,n=q(()=>{if(!t.infoList||t.infoList.length===0)return 80;let r=0;for(const x of t.infoList){const s=en(x.label,xn),{lines:i}=nn(s,1e3,20);i.length>0&&(r=Math.max(r,i[0].width))}return Math.ceil(r+16)});return(r,x)=>{const s=De;return j(),le("div",null,[(j(!0),le(Et,null,pt(e.infoList,i=>(j(),le("div",{key:i.key,class:"flex items-center py-3 border-b border-[var(--el-border-color-lighter)] last:border-b-0"},[W("span",{class:"text-sm text-[var(--el-text-color-secondary)] whitespace-nowrap",style:At({width:n.value+"px"})},$(i.label),5),W("span",sn,$(i.value||i.defaultValue),1),i.handlerText?(j(),X(s,{key:0,link:"",type:"primary",onClick:a=>i.onHandler?.()},{default:T(()=>[ae($(i.handlerText),1)]),_:2},1032,["onClick"])):ht("",!0)]))),128))])}}});function ln(e){const n=new DOMParser().parseFromString(e,"text/xml");return{code:n.querySelector("Code")?.textContent||"",message:n.querySelector("Message")?.textContent||"",maxSize:n.querySelector("MaxSizeAllowed")?.textContent||"",proposedSize:n.querySelector("ProposedSize")?.textContent||""}}const on={class:"p-2"},an={class:"flex gap-2 flex-1"},un={class:"flex gap-2 flex-1"},cn=te({__name:"EmailDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x={OLD:"old",NEW:"new"},s=U(!1),i=U({}),a=U({}),u=U({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),l=q(()=>[{type:"input",field:"email",title:n("user.oldEmail"),value:r?.userInfo?.email,validate:[{required:!0,message:n("user.pleaseInputOldEmail"),trigger:"blur"},{validator:(S,d,A)=>{me.isEmail(d)?A():A(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{disabled:!0}},{type:"slotAuthCodeOld",field:"authCode",title:n("user.oldAuthCode"),validate:[{required:!0,message:n("user.pleaseInputAuthCode"),trigger:"blur"}]},{type:"input",field:"newEmail",title:n("user.newEmail"),value:"",validate:[{required:!0,message:n("user.pleaseInputNewEmail"),trigger:"blur"},{validator:(S,d,A)=>{me.isEmail(d)?A():A(new Error(n("user.pleaseInputCorrectEmail")))},trigger:"blur"}],props:{placeholder:n("user.pleaseInputNewEmail")}},{type:"slotAuthCodeNew",field:"newAuthCode",title:n("user.newAuthCode"),validate:[{required:!0,message:n("user.pleaseInputNewAuthCode"),trigger:"blur"}]}]);async function o(){u.value.submitBtn.loading=!0,H.v1User.usercontrollerUpdateemail(a.value).then(()=>{P.success(n("user.emailModified")),window?.umami?.track(J.USER_UPDATE_EMAIL_SUCCESS),r.setEmail(a.value.newEmail),m()}).catch(S=>{window?.umami?.track(J.USER_UPDATE_EMAIL_FAILED,{error:String(S)})}).finally(()=>{u.value.submitBtn.loading=!1})}function F(S,{end:d,startCountdown:A}){S===x.OLD?i.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),A()})}).finally(()=>{d()}):S===x.NEW&&i.value.validateField("newEmail").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.newEmail}).then(()=>{P.success(n("user.newAuthCodeSent")),A()})}).finally(()=>{d()})}function c(S){return n(`formCreate.${S}`)}function E(){s.value=!0}function m(){s.value=!1}return t({open:E,close:m}),(S,d)=>{const A=Ye,L=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":d[4]||(d[4]=h=>s.value=h),"show-close":!0,width:"500px"},{default:T(()=>[W("div",on,[b(L,{modelValue:a.value,"onUpdate:modelValue":d[2]||(d[2]=h=>a.value=h),api:i.value,"onUpdate:api":d[3]||(d[3]=h=>i.value=h),rule:l.value,option:u.value,t:c},{"type-slotAuthCodeOld":T(h=>[W("div",an,[b(A,{"model-value":String(h.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>h.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:d[0]||(d[0]=O=>F(x.OLD,O))},null,8,["text"])])]),"type-slotAuthCodeNew":T(h=>[W("div",un,[b(A,{"model-value":String(h.model.value??""),class:"flex-1",placeholder:k(n)("user.pleaseInputNewAuthCode"),onInput:O=>h.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:d[1]||(d[1]=O=>F(x.NEW,O))},null,8,["text"])])]),_:1},8,["modelValue","api","rule","option"])])]),_:1},8,["modelValue"])}}}),Fn={class:"p-2"},fn={class:"flex gap-2 flex-1"},dn=te({__name:"PasswordDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x=re("baseForm"),s=U(!1),i=U({}),a=U({}),u=U({onSubmit:()=>{o()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),l=q(()=>[{type:"input",field:"newPassword",title:r.isPasswordSet?n("user.newPassword"):n("user.setPassword"),value:"",props:{placeholder:n("user.pleaseInputNewPassword"),type:"password",showPassword:!0,autocomplete:"new-password"},validate:[{required:!0,message:n("user.pleaseInputNewPassword"),trigger:"blur"}]},{type:"input",field:"confirmNewPassword",title:r.isPasswordSet?n("user.confirmNewPassword"):n("user.confirmPassword"),value:"",props:{placeholder:n("user.pleaseConfirmNewPassword"),type:"password",showPassword:!0,autocomplete:"new-password"},validate:[{required:!0,message:n("user.pleaseConfirmNewPassword"),trigger:"blur"}]},{type:"input",field:"email",title:n("user.email"),value:r?.userInfo?.email,props:{disabled:!0},validate:[{required:!0,message:n("user.pleaseInputEmail"),trigger:"blur"}]},{type:"slotAuthCode",field:"emailAuthCode",title:n("user.authCode"),value:""}]);async function o(){u.value.submitBtn.loading=!0;const S={newPassword:ye(a.value.newPassword),confirmNewPassword:ye(a.value.confirmNewPassword),email:a.value.email,emailAuthCode:a.value.emailAuthCode};H.v1User.usercontrollerChangepassword(S).then(()=>{P.success(n("user.passwordModified")),window?.umami?.track(J.USER_UPDATE_PASSWORD_SUCCESS),x.value?.resetFields(),r.setIsPasswordSet(!0),m()}).catch(d=>{window?.umami?.track(J.USER_UPDATE_PASSWORD_FAILED,{error:String(d)})}).finally(()=>{u.value.submitBtn.loading=!1})}function F({end:S,startCountdown:d}){i.value.validateField("email").then(async()=>{await H.v1Email.emailcontrollerSendcode({email:a.value.email}).then(()=>{P.success(n("message.success.sendAuthCode")),d()})}).finally(()=>{S()})}function c(S){return n(`formCreate.${S}`)}function E(){s.value=!0}function m(){s.value=!1}return t({open:E,close:m}),(S,d)=>{const A=Ye,L=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":d[2]||(d[2]=h=>s.value=h),"show-close":!0,width:"500px"},{default:T(()=>[W("div",Fn,[b(L,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=h=>a.value=h),api:i.value,"onUpdate:api":d[1]||(d[1]=h=>i.value=h),rule:l.value,option:u.value,t:c},{"type-slotAuthCode":T(h=>[W("div",fn,[b(A,{"model-value":String(h.model.value),class:"flex-1",placeholder:k(n)("user.pleaseInputAuthCode"),onInput:O=>h.model.callback(O)},null,8,["model-value","placeholder","onInput"]),b(k(Be),{text:k(n)("user.getAuthCode"),"countdown-text":"user.resendAfterSeconds",duration:60,onSend:F},null,8,["text"])])]),_:1},8,["modelValue","api","rule","option"])])]),_:1},8,["modelValue"])}}}),Nn={class:"p-2"},Sn=te({__name:"NicknameDialog",setup(e,{expose:t}){const{t:n}=ie(),r=ce(),x=Le(),s=U(!1),i=U({onSubmit:()=>{l()},form:{labelWidth:"auto"},submitBtn:{loading:!1}}),a=U({}),u=q(()=>[{type:"input",field:"nickname",title:n("user.nickname"),value:r.userInfo.nickname,props:{placeholder:n("user.pleaseInputNickname")},validate:[{required:!0,message:n("user.pleaseInputNickname"),trigger:"blur"},{min:3,max:10,message:n("team.charLength",{min:2,max:10}),trigger:"blur"}]}]);async function l(){if(i.value.submitBtn.loading=!0,a.value.nickname===r.userInfo.nickname){P.success(n("message.success.update")),i.value.submitBtn.loading=!1,c();return}H.v1User.usercontrollerChangenickname({nickname:a.value.nickname}).then(()=>{r.setNickname(a.value.nickname),x.updateNickname(a.value.nickname),P.success(n("message.success.update")),window?.umami?.track(J.USER_UPDATE_NICKNAME_SUCCESS),c()}).catch(E=>{window?.umami?.track(J.USER_UPDATE_NICKNAME_FAILED,{error:String(E)})}).finally(()=>{i.value.submitBtn.loading=!1})}function o(E){return n(`formCreate.${E}`)}function F(){s.value=!0}function c(){s.value=!1}return t({open:F,close:c}),(E,m)=>{const S=oe("form-create");return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":m[1]||(m[1]=d=>s.value=d),width:"400px"},{default:T(()=>[W("div",Nn,[b(S,{modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=d=>a.value=d),rule:u.value,option:i.value,t:o},null,8,["modelValue","rule","option"])])]),_:1},8,["modelValue"])}}}),En=te({__name:"index",props:{cover:{type:Boolean}},setup(e){const{t}=ie(),n=e,r=gt(),x=Ct(),s=mt(),i=(S,d)=>{c.value.fileList&&(c.value.fileList=d),S?.raw&&(o.value=URL.createObjectURL(S.raw))},a=S=>{P.error(S.message)},l={autoUpload:!1,cover:!1,onChange:i,onExceed:(S,d)=>{if(c.value.cover&&c?.value?.limit===1){F.value?.clearFiles();const A=S[0];A.uid=at(),F.value.handleStart(A);return}P.warning(t("message.fileExceed",{limit:c?.value?.limit,selected:S.length,total:S.length+d.length}))},beforeUpload:rt(),onError:a},o=U(null),F=U(),c=q(()=>({...l,...me.convertKeysToCamelCase(x),...n})),E=q(()=>({...s,default:s.default?S=>s.default({...S,fileUrl:o.value}):void 0}));function m(S){F.value=S,r&&(r.exposed=S||{},r.exposeProxy=S||{})}return(S,d)=>(j(),X(Bt(Mt(k(ot),{...c.value,ref:m},E.value))))}}),{i18n:pn}=Nt,Qe=e=>e.size/1024/1024>20?(P.error(pn.global.t("message.validate.fileMaxSize",{size:20})),!1):!0;function rt(e={}){const{mode:t="extend",custom:n}=e;return r=>t==="override"&&n?n(r):t==="extend"?Qe(r)?n?n(r):!0:!1:Qe(r)}function An(e,t){const n=t.name.slice(t.name.lastIndexOf(".")+1).toLowerCase(),r=e.dir+e.key+"."+n,x=new FormData;return x.append("success_action_status","200"),x.append("policy",e.policy),x.append("x-oss-signature",e.signature),x.append("x-oss-signature-version",e.x_oss_signature_version),x.append("x-oss-credential",e.x_oss_credential),x.append("x-oss-date",e.x_oss_date),x.append("key",r),x.append("x-oss-security-token",e.security_token),x.append("Cache-Control","public, max-age=31536000"),x.append("file",t),{host:e.host,filePath:r,formData:x}}async function hn(e,t){return fetch(e,{method:"POST",body:t})}const Cn=["src"],mn=te({__name:"AvatarDialog",setup(e,{expose:t}){const{t:n}=ie(),r=Le(),x=U([]),s=U(!1),i=re("avatarUpload"),a=U(),u=q(()=>({limit:1,cover:!0,onError:o,beforeUpload:l,showFileList:!1,httpRequest:m})),l=rt({custom(A){return A.type.startsWith("image/")?!0:(P.error(n("message.validate.imageFormat")),a.value?.(),!1)}});function o(A){a.value?.(),P.error(A.message)}async function F(A){if(A.start(),a.value=A.end,!x.value||x.value.length===0){P.warning(n("message.validate.pleaseSelectFile")),a.value();return}i.value?.submit()}function c(A){H.v1User.usercontrollerChangeavatar({avatar:A}).then(()=>{r.updateAvatar(A),d(),P.success(n("user.avatarModified")),window?.umami?.track(J.USER_UPDATE_AVATAR_SUCCESS)}).catch(L=>{window?.umami?.track(J.USER_UPDATE_AVATAR_FAILED,{error:String(L)})}).finally(()=>{a.value?.()})}function E(){i.value?.clearFiles()}async function m(A){const L=await H.v1Oss.osscontrollerCompossdir(),{imageDir:h}=L.data,O=await H.v1Oss.osscontrollerPutpolicy({type:h});if(O.code!==0||!O.data)return P.error(O.message);const{host:v,filePath:f,formData:p}=An(O.data,A.file),g=await hn(v,p);if(g.ok)c(f);else{const C=await g.text(),D=ln(C);P.error(D.message),a.value?.()}}function S(){s.value=!0}function d(){s.value=!1,E()}return t({open:S,close:d}),(A,L)=>{const h=oe("Icon"),O=ct,v=De,f=ut;return j(),X(k(Fe),{modelValue:s.value,"onUpdate:modelValue":L[1]||(L[1]=p=>s.value=p),width:"400px",onClose:E},{default:T(()=>[b(f,{"label-width":"auto"},{default:T(()=>[b(O,{label:k(n)("user.avatar")},{default:T(()=>[b(k(En),Dt({ref:"avatarUpload","file-list":x.value,"onUpdate:fileList":L[0]||(L[0]=p=>x.value=p),class:"size-[70px] border border-gray-300 rounded-sm flex justify-center items-center upload-container"},u.value),{default:T(({fileUrl:p})=>[p?(j(),le("img",{key:0,src:p,class:"size-full"},null,8,Cn)):(j(),X(h,{key:1,icon:"material-symbols:add-2-rounded","font-size":"2rem"}))]),_:1},16,["file-list"])]),_:1},8,["label"]),b(O,null,{default:T(()=>[b(k(Xe),null,{default:T(({instance:p,loading:g})=>[b(v,{type:"primary",loading:g,onClick:C=>F(p)},{default:T(()=>[ae($(k(n)("common.submit")),1)]),_:1},8,["loading","onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),Bn=St(mn,[["__scopeId","data-v-6ea47d01"]]),Mn={class:"h-full p-[10px]"},gn={class:"grid grid-cols-[8fr_13fr] gap-[24px] max-w-[1400px] mx-auto my-0"},Dn={class:"text-center flex flex-col items-center gap-2 h-[120px]"},Ln={class:"flex flex-col gap-10"},vn={class:"flex items-center"},On={class:"size-[48px] flex items-center justify-center"},kn={class:"flex-1"},wn={class:"text-sm text-gray-500"},bn={class:"flex items-center"},_n={class:"size-[48px] flex items-center justify-center"},yn={class:"flex-1"},Wn={class:"text-sm text-gray-500"},Jn=te({__name:"index",setup(e){const{t}=ie(),n=ce(),r=Le(),x=q(()=>n.userInfo),s=re("emailDialog"),i=re("passwordDialog"),a=re("nicknameDialog"),u=re("avatarDialog"),l=F=>{if(!n.isPasswordSet){P.error(t("user.pleaseSetPasswordFirst"));return}F.start(),n.setAllowEmailLogin(!n.isAllowEmailLogin).then(()=>{P.success(n.isAllowEmailLogin?t("user.emailLoginEnabled"):t("user.emailLoginDisabled")),window?.umami?.track(J.USER_EMAIL_LOGIN_TOGGLE,{enabled:n.isAllowEmailLogin})}).finally(()=>{F.end()})},o=q(()=>[{key:"account",label:t("user.account"),value:x.value?.account},{key:"nickname",label:t("user.nickname"),value:x.value?.nickname,defaultValue:"--",editable:!0,handlerText:t("common.edit"),onHandler:()=>a.value?.open()},{key:"email",label:t("user.email"),value:x.value?.email,defaultValue:t("user.notBound"),editable:!0,handlerText:x.value?.email?t("user.change"):t("user.bind"),onHandler:()=>s.value?.open()},{key:"createTime",label:t("user.registerTime"),value:x.value?.createdAt?vt(x.value.createdAt).format("YYYY-MM-DD"):"--"}]);return Lt(async()=>{n.initUserInfo(),H.v1User.usercontrollerCheckpassword().then(F=>{n.setIsPasswordSet(F.data.isSetPassword)})}),(F,c)=>{const E=Ft,m=ft,S=oe("Icon"),d=De,A=dt;return j(),le("div",Mn,[W("div",gn,[b(m,{class:"col-start-1 row-span-2 row-start-1"},{header:T(()=>[W("span",null,$(k(t)("user.basicInfo")),1)]),default:T(()=>[W("div",Dn,[b(Ot,{size:80,shape:"square",src:k(r).avatar,text:k(r).avatarStr,class:"cursor-pointer",onClick:c[0]||(c[0]=L=>u.value?.open())},{default:T(()=>[ae($(x.value?.nickname?.charAt(0)||"U"),1)]),_:1},8,["src","text"]),W("h3",null,$(x.value?.account),1)]),b(E),b(k(rn),{"info-list":o.value},null,8,["info-list"])]),_:1}),b(m,{class:"col-start-2"},{header:T(()=>[W("span",null,$(k(t)("user.securitySettings")),1)]),default:T(()=>[W("div",Ln,[W("div",vn,[W("div",On,[b(S,{icon:"material-symbols:lock"})]),W("div",kn,[W("h4",null,$(k(t)("user.loginPassword")),1),W("p",wn,$(k(t)("user.passwordTip")),1)]),b(d,{type:"primary",onClick:c[1]||(c[1]=L=>i.value?.open())},{default:T(()=>[ae($(k(n)?.isPasswordSet?k(t)("user.changePassword"):k(t)("user.setPassword")),1)]),_:1})]),W("div",bn,[W("div",_n,[b(S,{icon:"material-symbols:mark-email-unread"})]),W("div",yn,[W("h4",null,$(k(t)("user.emailLogin")),1),W("p",Wn,$(k(t)("user.emailLoginTip")),1)]),b(k(Xe),null,{default:T(({instance:L,loading:h})=>[b(A,{loading:h,"model-value":k(n).isAllowEmailLogin,onChange:O=>l(L)},null,8,["loading","model-value","onChange"])]),_:1})])])]),_:1})]),b(cn,{ref:"emailDialog"},null,512),b(dn,{ref:"passwordDialog"},null,512),b(Sn,{ref:"nicknameDialog"},null,512),b(Bn,{ref:"avatarDialog"},null,512)])}}});export{Jn as default};
|