From a2de157729d542fe3bd12e098d5ba30f190880b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A3=8A?= <13466513767@163.com> Date: Thu, 9 Apr 2026 14:16:13 +0800 Subject: [PATCH] =?UTF-8?q?'=E6=89=93=E5=8C=85'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 -- dist/assets/{login.076cf957.css => action.7327164c.css} | 0 dist/assets/index.a8f46cbf.js | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) rename dist/assets/{login.076cf957.css => action.7327164c.css} (100%) diff --git a/.gitignore b/.gitignore index 1da66c1..312b998 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,5 @@ node_modules .DS_Store -dist -dist-ssr *.local # Editor directories and files diff --git a/dist/assets/login.076cf957.css b/dist/assets/action.7327164c.css similarity index 100% rename from dist/assets/login.076cf957.css rename to dist/assets/action.7327164c.css diff --git a/dist/assets/index.a8f46cbf.js b/dist/assets/index.a8f46cbf.js index bde7a85..5217c20 100644 --- a/dist/assets/index.a8f46cbf.js +++ b/dist/assets/index.a8f46cbf.js @@ -169,5 +169,5 @@ ${i}`:u)}},onCacheKey:s=>Ace(t,n,s)}}function ufe(e){if(dt(e))return e;if(e.loc& * vue-i18n v9.14.5 * (c) 2025 kazuya kawaguchi * Released under the MIT License. - */const dfe="9.14.5";function ffe(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(es().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(es().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(es().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(es().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(es().__INTLIFY_PROD_DEVTOOLS__=!1)}const I_=Ba.__EXTEND_POINT__,zo=oh(I_),$n={FALLBACK_TO_ROOT:I_,NOT_SUPPORTED_PRESERVE:zo(),NOT_SUPPORTED_FORMATTER:zo(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:zo(),NOT_SUPPORTED_GET_CHOICE_INDEX:zo(),COMPONENT_NAME_LEGACY_COMPATIBLE:zo(),NOT_FOUND_PARENT_SCOPE:zo(),IGNORE_OBJ_FLATTEN:zo(),NOTICE_DROP_ALLOW_COMPOSITION:zo(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:zo()},pfe={[$n.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[$n.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[$n.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[$n.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[$n.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[$n.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[$n.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[$n.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[$n.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see \u{1F449} https://tinyurl.com/2p97mcze",[$n.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Ya(e,...t){return U2(pfe[e],...t)}const N_=fa.__EXTEND_POINT__,qa=oh(N_),on={UNEXPECTED_RETURN_TYPE:N_,INVALID_ARGUMENT:qa(),MUST_BE_CALL_SETUP_TOP:qa(),NOT_INSTALLED:qa(),NOT_AVAILABLE_IN_LEGACY_MODE:qa(),REQUIRED_VALUE:qa(),INVALID_VALUE:qa(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:qa(),NOT_INSTALLED_WITH_PROVIDE:qa(),UNEXPECTED_ERROR:qa(),NOT_COMPATIBLE_LEGACY_VUE_I18N:qa(),BRIDGE_SUPPORT_VUE_2_ONLY:qa(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:qa(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:qa(),__EXTEND_POINT__:qa()};function ra(e,...t){return Du(e,null,{messages:hfe,args:t})}const hfe={[on.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[on.INVALID_ARGUMENT]:"Invalid argument",[on.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[on.NOT_INSTALLED]:"Need to install with `app.use` function",[on.UNEXPECTED_ERROR]:"Unexpected error",[on.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[on.REQUIRED_VALUE]:"Required in value: {0}",[on.INVALID_VALUE]:"Invalid value",[on.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[on.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[on.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[on.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[on.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",[on.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},v1=oo("__translateVNode"),m1=oo("__datetimeParts"),g1=oo("__numberParts"),ai=oo("__enableEmitter"),ld=oo("__disableEmitter"),$_=oo("__setPluralRules");oo("__intlifyMeta");const P_=oo("__injectWithOption"),y1=oo("__dispose");function id(e){if(!an(e)||_r(e))return e;for(const t in e)if(!!Mr(e,t))if(!t.includes("."))an(e[t])&&id(e[t]);else{const n=t.split("."),a=n.length-1;let r=e,o=!1;for(let s=0;s{if("locale"in l&&"resource"in l){const{locale:u,resource:i}=l;u?(s[u]=s[u]||wn(),r0(i,s[u])):r0(i,s)}else dt(l)&&r0(JSON.parse(l),s)}),r==null&&o)for(const l in s)Mr(s,l)&&id(s[l]);return s}function R_(e){return e.type}function D_(e,t,n){let a=an(t.messages)?t.messages:wn();"__i18nGlobal"in n&&(a=uh(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,a[o])});{if(an(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(an(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function e8(e){return ee(hs,null,e,0)}const t8="__INTLIFY_META__",n8=()=>[],vfe=()=>!1;let a8=0;function r8(e){return(t,n,a,r)=>e(n,a,it()||void 0,r)}const mfe=()=>{const e=it();let t=null;return e&&(t=R_(e)[t8])?{[t8]:t}:null};function Z2(e={},t){const{__root:n,__injectWithOption:a}=e,r=n===void 0,o=e.flatJson,s=Qr?B:Zt,l=!!e.translateExistCompatible;l&&XS(Ya($n.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let u=Jt(e.inheritLocale)?e.inheritLocale:!0;const i=s(n&&u?n.locale.value:dt(e.locale)?e.locale:Cu),c=s(n&&u?n.fallbackLocale.value:dt(e.fallbackLocale)||kn(e.fallbackLocale)||Ht(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),f=s(uh(i.value,e)),p=s(Ht(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),m=s(Ht(e.numberFormats)?e.numberFormats:{[i.value]:{}});let h=n?n.missingWarn:Jt(e.missingWarn)||rl(e.missingWarn)?e.missingWarn:!0,v=n?n.fallbackWarn:Jt(e.fallbackWarn)||rl(e.fallbackWarn)?e.fallbackWarn:!0,g=n?n.fallbackRoot:Jt(e.fallbackRoot)?e.fallbackRoot:!0,b=!!e.fallbackFormat,w=xn(e.missing)?e.missing:null,y=xn(e.missing)?r8(e.missing):null,x=xn(e.postTranslation)?e.postTranslation:null,C=n?n.warnHtmlMessage:Jt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter;const S=n?n.modifiers:Ht(e.modifiers)?e.modifiers:{};let T=e.pluralRules||n&&n.pluralRules,A;A=(()=>{r&&j6(null);const se={version:dfe,locale:i.value,fallbackLocale:c.value,messages:f.value,modifiers:S,pluralRules:T,missing:y===null?void 0:y,missingWarn:h,fallbackWarn:v,fallbackFormat:b,unresolving:!0,postTranslation:x===null?void 0:x,warnHtmlMessage:C,escapeParameter:E,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};se.datetimeFormats=p.value,se.numberFormats=m.value,se.__datetimeFormatters=Ht(A)?A.__datetimeFormatters:void 0,se.__numberFormatters=Ht(A)?A.__numberFormatters:void 0,se.__v_emitter=Ht(A)?A.__v_emitter:void 0;const ye=efe(se);return r&&j6(ye),ye})(),Zu(A,i.value,c.value);function O(){return[i.value,c.value,f.value,p.value,m.value]}const I=k({get:()=>i.value,set:se=>{i.value=se,A.locale=i.value}}),D=k({get:()=>c.value,set:se=>{c.value=se,A.fallbackLocale=c.value,Zu(A,i.value,se)}}),K=k(()=>f.value),j=k(()=>p.value),z=k(()=>m.value);function P(){return xn(x)?x:null}function $(se){x=se,A.postTranslation=se}function L(){return w}function W(se){se!==null&&(y=r8(se)),w=se,A.missing=y}function M(se,ye){return se!=="translate"||!ye.resolvedMessage}const F=(se,ye,$e,et,pt,ze)=>{O();let at;try{W6(mfe()),r||(A.fallbackContext=n?Qde():void 0),at=se(A)}finally{W6(null),r||(A.fallbackContext=void 0)}if($e!=="translate exists"&&Un(at)&&at===lh||$e==="translate exists"&&!at){const[st,Ce]=ye();if(n&&dt(st)&&M($e,Ce)){g&&(ih(v,st)||b_(h,st))&&Qn(Ya($n.FALLBACK_TO_ROOT,{key:st,type:$e}));{const{__v_emitter:je}=A;je&&g&&je.emit("fallback",{type:$e,key:st,to:"global",groupId:`${$e}:${st}`})}}return n&&g?et(n):pt(st)}else{if(ze(at))return at;throw ra(on.UNEXPECTED_RETURN_TYPE)}};function H(...se){return F(ye=>Reflect.apply(Y6,null,[ye,...se]),()=>f1(...se),"translate",ye=>Reflect.apply(ye.t,ye,[...se]),ye=>ye,ye=>dt(ye))}function q(...se){const[ye,$e,et]=se;if(et&&!an(et))throw ra(on.INVALID_ARGUMENT);return H(ye,$e,wa({resolvedMessage:!0},et||{}))}function Q(...se){return F(ye=>Reflect.apply(X6,null,[ye,...se]),()=>p1(...se),"datetime format",ye=>Reflect.apply(ye.d,ye,[...se]),()=>tp,ye=>dt(ye))}function de(...se){return F(ye=>Reflect.apply(Z6,null,[ye,...se]),()=>h1(...se),"number format",ye=>Reflect.apply(ye.n,ye,[...se]),()=>tp,ye=>dt(ye))}function Z(se){return se.map(ye=>dt(ye)||Un(ye)||Jt(ye)?e8(String(ye)):ye)}const ue={normalize:Z,interpolate:se=>se,type:"vnode"};function Y(...se){return F(ye=>{let $e;const et=ye;try{et.processor=ue,$e=Reflect.apply(Y6,null,[et,...se])}finally{et.processor=null}return $e},()=>f1(...se),"translate",ye=>ye[v1](...se),ye=>[e8(ye)],ye=>kn(ye))}function G(...se){return F(ye=>Reflect.apply(Z6,null,[ye,...se]),()=>h1(...se),"number format",ye=>ye[g1](...se),n8,ye=>dt(ye)||kn(ye))}function pe(...se){return F(ye=>Reflect.apply(X6,null,[ye,...se]),()=>p1(...se),"datetime format",ye=>ye[m1](...se),n8,ye=>dt(ye)||kn(ye))}function we(se){T=se,A.pluralRules=T}function V(se,ye){return F(()=>{if(!se)return!1;const $e=dt(ye)?ye:i.value,et=xe($e),pt=A.messageResolver(et,se);return l?pt!=null:_r(pt)||xr(pt)||dt(pt)},()=>[se],"translate exists",$e=>Reflect.apply($e.te,$e,[se,ye]),vfe,$e=>Jt($e))}function ne(se){let ye=null;const $e=p_(A,c.value,i.value);for(let et=0;et<$e.length;et++){const pt=f.value[$e[et]]||{},ze=A.messageResolver(pt,se);if(ze!=null){ye=ze;break}}return ye}function me(se){const ye=ne(se);return ye!=null?ye:n?n.tm(se)||{}:{}}function xe(se){return f.value[se]||{}}function Se(se,ye){if(o){const $e={[se]:ye};for(const et in $e)Mr($e,et)&&id($e[et]);ye=$e[se]}f.value[se]=ye,A.messages=f.value}function Ae(se,ye){f.value[se]=f.value[se]||{};const $e={[se]:ye};if(o)for(const et in $e)Mr($e,et)&&id($e[et]);ye=$e[se],r0(ye,f.value[se]),A.messages=f.value}function ae(se){return p.value[se]||{}}function J(se,ye){p.value[se]=ye,A.datetimeFormats=p.value,J6(A,se,ye)}function oe(se,ye){p.value[se]=wa(p.value[se]||{},ye),A.datetimeFormats=p.value,J6(A,se,ye)}function fe(se){return m.value[se]||{}}function Pe(se,ye){m.value[se]=ye,A.numberFormats=m.value,Q6(A,se,ye)}function Te(se,ye){m.value[se]=wa(m.value[se]||{},ye),A.numberFormats=m.value,Q6(A,se,ye)}a8++,n&&Qr&&(ge(n.locale,se=>{u&&(i.value=se,A.locale=se,Zu(A,i.value,c.value))}),ge(n.fallbackLocale,se=>{u&&(c.value=se,A.fallbackLocale=se,Zu(A,i.value,c.value))}));const De={id:a8,locale:I,fallbackLocale:D,get inheritLocale(){return u},set inheritLocale(se){u=se,se&&n&&(i.value=n.locale.value,c.value=n.fallbackLocale.value,Zu(A,i.value,c.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:K,get modifiers(){return S},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(se){h=se,A.missingWarn=h},get fallbackWarn(){return v},set fallbackWarn(se){v=se,A.fallbackWarn=v},get fallbackRoot(){return g},set fallbackRoot(se){g=se},get fallbackFormat(){return b},set fallbackFormat(se){b=se,A.fallbackFormat=b},get warnHtmlMessage(){return C},set warnHtmlMessage(se){C=se,A.warnHtmlMessage=se},get escapeParameter(){return E},set escapeParameter(se){E=se,A.escapeParameter=se},t:H,getLocaleMessage:xe,setLocaleMessage:Se,mergeLocaleMessage:Ae,getPostTranslationHandler:P,setPostTranslationHandler:$,getMissingHandler:L,setMissingHandler:W,[$_]:we};return De.datetimeFormats=j,De.numberFormats=z,De.rt=q,De.te=V,De.tm=me,De.d=Q,De.n=de,De.getDateTimeFormat=ae,De.setDateTimeFormat=J,De.mergeDateTimeFormat=oe,De.getNumberFormat=fe,De.setNumberFormat=Pe,De.mergeNumberFormat=Te,De[P_]=a,De[v1]=Y,De[m1]=pe,De[g1]=G,De[ai]=se=>{A.__v_emitter=se},De[ld]=()=>{A.__v_emitter=void 0},De}function gfe(e){const t=dt(e.locale)?e.locale:Cu,n=dt(e.fallbackLocale)||kn(e.fallbackLocale)||Ht(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=xn(e.missing)?e.missing:void 0,r=Jt(e.silentTranslationWarn)||rl(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=Jt(e.silentFallbackWarn)||rl(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=Jt(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,u=Ht(e.modifiers)?e.modifiers:{},i=e.pluralizationRules,c=xn(e.postTranslation)?e.postTranslation:void 0,f=dt(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,m=Jt(e.sync)?e.sync:!0;e.formatter&&Qn(Ya($n.NOT_SUPPORTED_FORMATTER)),e.preserveDirectiveContent&&Qn(Ya($n.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let h=e.messages;if(Ht(e.sharedMessages)){const E=e.sharedMessages;h=Object.keys(E).reduce((T,A)=>{const _=T[A]||(T[A]={});return wa(_,E[A]),T},h||{})}const{__i18n:v,__root:g,__injectWithOption:b}=e,w=e.datetimeFormats,y=e.numberFormats,x=e.flatJson,C=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:h,flatJson:x,datetimeFormats:w,numberFormats:y,missing:a,missingWarn:r,fallbackWarn:o,fallbackRoot:s,fallbackFormat:l,modifiers:u,pluralRules:i,postTranslation:c,warnHtmlMessage:f,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:m,translateExistCompatible:C,__i18n:v,__root:g,__injectWithOption:b}}function b1(e={},t){{const n=Z2(gfe(e)),{__extender:a}=e,r={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return Qn(Ya($n.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(o){Qn(Ya($n.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return Jt(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=Jt(o)?!o:o},get silentFallbackWarn(){return Jt(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=Jt(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return Qn(Ya($n.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(o){Qn(Ya($n.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[s,l,u]=o,i={};let c=null,f=null;if(!dt(s))throw ra(on.INVALID_ARGUMENT);const p=s;return dt(l)?i.locale=l:kn(l)?c=l:Ht(l)&&(f=l),kn(u)?c=u:Ht(u)&&(f=u),Reflect.apply(n.t,n,[p,c||f||{},i])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[s,l,u]=o,i={plural:1};let c=null,f=null;if(!dt(s))throw ra(on.INVALID_ARGUMENT);const p=s;return dt(l)?i.locale=l:Un(l)?i.plural=l:kn(l)?c=l:Ht(l)&&(f=l),dt(u)?i.locale=u:kn(u)?c=u:Ht(u)&&(f=u),Reflect.apply(n.t,n,[p,c||f||{},i])},te(o,s){return n.te(o,s)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,s){n.setLocaleMessage(o,s)},mergeLocaleMessage(o,s){n.mergeLocaleMessage(o,s)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,s){n.setDateTimeFormat(o,s)},mergeDateTimeFormat(o,s){n.mergeDateTimeFormat(o,s)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,s){n.setNumberFormat(o,s)},mergeNumberFormat(o,s){n.mergeNumberFormat(o,s)},getChoiceIndex(o,s){return Qn(Ya($n.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return r.__extender=a,r.__enableEmitter=o=>{const s=n;s[ai]&&s[ai](o)},r.__disableEmitter=()=>{const o=n;o[ld]&&o[ld]()},r}}const Q2={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function yfe({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,r)=>[...a,...r.type===Ue?r.children:[r]],[]):t.reduce((n,a)=>{const r=e[a];return r&&(n[a]=r()),n},wn())}function M_(e){return Ue}const bfe=ve({name:"i18n-t",props:wa({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Un(e)||!isNaN(e)}},Q2),setup(e,t){const{slots:n,attrs:a}=t,r=e.i18n||ty({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),s=wn();e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=dt(e.plural)?+e.plural:e.plural);const l=yfe(t,o),u=r[v1](e.keypath,l,s),i=wa(wn(),a),c=dt(e.tag)||an(e.tag)?e.tag:M_();return Xe(c,i,u)}}}),Cv=bfe;function xfe(e){return kn(e)&&!dt(e[0])}function L_(e,t,n,a){const{slots:r,attrs:o}=t;return()=>{const s={part:!0};let l=wn();e.locale&&(s.locale=e.locale),dt(e.format)?s.key=e.format:an(e.format)&&(dt(e.format.key)&&(s.key=e.format.key),l=Object.keys(e.format).reduce((p,m)=>n.includes(m)?wa(wn(),p,{[m]:e.format[m]}):p,wn()));const u=a(e.value,s,l);let i=[s.key];kn(u)?i=u.map((p,m)=>{const h=r[p.type],v=h?h({[p.type]:p.value,index:m,parts:u}):[p.value];return xfe(v)&&(v[0].key=`${p.type}-${m}`),v}):dt(u)&&(i=[u]);const c=wa(wn(),o),f=dt(e.tag)||an(e.tag)?e.tag:M_();return Xe(f,c,i)}}const wfe=ve({name:"i18n-n",props:wa({value:{type:Number,required:!0},format:{type:[String,Object]}},Q2),setup(e,t){const n=e.i18n||ty({useScope:e.scope,__useComponent:!0});return L_(e,t,O_,(...a)=>n[g1](...a))}}),o8=wfe,Cfe=ve({name:"i18n-d",props:wa({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Q2),setup(e,t){const n=e.i18n||ty({useScope:e.scope,__useComponent:!0});return L_(e,t,A_,(...a)=>n[m1](...a))}}),s8=Cfe;function Efe(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function Sfe(e){const t=s=>{const{instance:l,modifiers:u,value:i}=s;if(!l||!l.$)throw ra(on.UNEXPECTED_ERROR);const c=Efe(e,l.$);u.preserve&&Qn(Ya($n.NOT_SUPPORTED_PRESERVE));const f=l8(i);return[Reflect.apply(c.t,c,[...i8(f)]),c]};return{created:(s,l)=>{const[u,i]=t(l);Qr&&e.global===i&&(s.__i18nWatcher=ge(i.locale,()=>{l.instance&&l.instance.$forceUpdate()})),s.__composer=i,s.textContent=u},unmounted:s=>{Qr&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:l})=>{if(s.__composer){const u=s.__composer,i=l8(l);s.textContent=Reflect.apply(u.t,u,[...i8(i)])}},getSSRProps:s=>{const[l]=t(s);return{textContent:l}}}}function l8(e){if(dt(e))return{path:e};if(Ht(e)){if(!("path"in e))throw ra(on.REQUIRED_VALUE,"path");return e}else throw ra(on.INVALID_VALUE)}function i8(e){const{path:t,locale:n,args:a,choice:r,plural:o}=e,s={},l=a||{};return dt(n)&&(s.locale=n),Un(r)&&(s.plural=r),Un(o)&&(s.plural=o),[t,l,s]}function _fe(e,t,...n){const a=Ht(n[0])?n[0]:{},r=!!a.useI18nComponentName,o=Jt(a.globalInstall)?a.globalInstall:!0;o&&r&&Qn(Ya($n.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Cv.name})),o&&([r?"i18n":Cv.name,"I18nT"].forEach(s=>e.component(s,Cv)),[o8.name,"I18nN"].forEach(s=>e.component(s,o8)),[s8.name,"I18nD"].forEach(s=>e.component(s,s8))),e.directive("t",Sfe(t))}const Ev={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},kfe={["vue-i18n-resource-inspector"]:"Search for scopes ..."},Tfe={["vue-i18n-timeline"]:16764185},B_="vue-i18n: composer properties";let x1;async function Afe(e,t){return new Promise((n,a)=>{try{Yp({id:"vue-devtools-plugin-vue-i18n",label:Ev["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[B_],app:e},r=>{x1=r,r.on.visitComponentTree(({componentInstance:s,treeNode:l})=>{Ofe(s,l,t)}),r.on.inspectComponent(({componentInstance:s,instanceData:l})=>{s.vnode.el&&s.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?s.vnode.el.__VUE_I18N__!==t.global.__composer&&u8(l,s.vnode.el.__VUE_I18N__):u8(l,s.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:Ev["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:kfe["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&Rfe(s,t)});const o=new Map;r.on.getInspectorState(async s=>{if(s.app===e&&s.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),Mfe(s,t),s.nodeId==="global"){if(!o.has(s.app)){const[l]=await r.getComponentInstances(s.app);o.set(s.app,l)}r.highlightElement(o.get(s.app))}else{const l=Dfe(s.nodeId,t);l&&r.highlightElement(l)}}),r.on.editInspectorState(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&Bfe(s,t)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:Ev["vue-i18n-timeline"],color:Tfe["vue-i18n-timeline"]}),n(!0)})}catch(r){console.error(r),a(!1)}})}function F_(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ofe(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const r={label:`i18n (${F_(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(r)}}function u8(e,t){const n=B_;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:ey(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function ey(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];xn(a)&&"source"in a?t[n]=Pfe(a):_r(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:an(a)?t[n]=ey(a):t[n]=a}),t}const Ife={"<":"<",">":">",'"':""","&":"&"};function Nfe(e){return e.replace(/[<>"&]/g,$fe)}function $fe(e){return Ife[e]||e}function Pfe(e){const t=e.source?`("${Nfe(e.source)}")`:"(?)";return{_custom:{type:"function",display:`\u0192 ${t}`}}}function Rfe(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,r]of t.__instances){const o=t.mode==="composition"?r:r.__composer;n!==o&&e.rootNodes.push({id:o.id.toString(),label:`${F_(a)} Scope`})}}function Dfe(e,t){let n=null;if(e!=="global"){for(const[a,r]of t.__instances.entries())if(r.id.toString()===e){n=a;break}}return n}function V_(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Mfe(e,t){const n=V_(e.nodeId,t);return n&&(e.state=Lfe(n)),null}function Lfe(e){const t={},n="Locale related info",a=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=a;const r="Locale messages info",o=[{type:r,key:"messages",editable:!1,value:ey(e.messages.value)}];t[r]=o;{const s="Datetime formats info",l=[{type:s,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[s]=l;const u="Datetime formats info",i=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=i}return t}function ud(e,t){if(x1){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),x1.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Bfe(e,t){const n=V_(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&dt(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(dt(e.state.value)||kn(e.state.value)||an(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&Jt(e.state.value)&&(n.inheritLocale=e.state.value)}}function Ffe(e,t,n){return{beforeCreate(){const a=it();if(!a)throw ra(on.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const o=r.i18n;if(r.__i18n&&(o.__i18n=r.__i18n),o.__root=t,this===this.$root)this.$i18n=c8(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=b1(o);const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=c8(e,r);else{this.$i18n=b1({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&D_(t,r,r),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,s)=>this.$i18n.te(o,s),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(a,this.$i18n)},mounted(){if(this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const r=this.__v_emitter=q2();a.__enableEmitter&&a.__enableEmitter(r),r.on("*",ud)}},unmounted(){const a=it();if(!a)throw ra(on.UNEXPECTED_ERROR);const r=this.$i18n;this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",ud),delete this.__v_emitter),this.$i18n&&(r.__disableEmitter&&r.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(a),delete this.$i18n}}}function c8(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[$_](t.pluralizationRules||e.pluralizationRules);const n=uh(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const Vfe=oo("global-vue-i18n");function zfe(e={},t){const n=__VUE_I18N_LEGACY_API__&&Jt(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=Jt(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,o=new Map,[s,l]=Hfe(e,n),u=oo("vue-i18n");n&&r&&Qn(Ya($n.NOTICE_DROP_ALLOW_COMPOSITION));function i(p){return o.get(p)||null}function c(p,m){o.set(p,m)}function f(p){o.delete(p)}{const p={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(m,...h){if(m.__VUE_I18N__=p,m.__VUE_I18N_SYMBOL__=u,m.provide(m.__VUE_I18N_SYMBOL__,p),Ht(h[0])){const b=h[0];p.__composerExtend=b.__composerExtend,p.__vueI18nExtend=b.__vueI18nExtend}let v=null;!n&&a&&(v=Jfe(m,p.global)),__VUE_I18N_FULL_INSTALL__&&_fe(m,p,...h),__VUE_I18N_LEGACY_API__&&n&&m.mixin(Ffe(l,l.__composer,p));const g=m.unmount;m.unmount=()=>{v&&v(),p.dispose(),g()};{if(!await Afe(m,p))throw ra(on.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const w=q2();if(n){const y=l;y.__enableEmitter&&y.__enableEmitter(w)}else{const y=l;y[ai]&&y[ai](w)}w.on("*",ud)}},get global(){return l},dispose(){s.stop()},__instances:o,__getInstance:i,__setInstance:c,__deleteInstance:f};return p}}function ty(e={}){const t=it();if(t==null)throw ra(on.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ra(on.NOT_INSTALLED);const n=Wfe(t),a=Kfe(n),r=R_(t),o=jfe(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw ra(on.NOT_AVAILABLE_IN_LEGACY_MODE);return Gfe(t,o,a,e)}if(o==="global")return D_(a,e,r),a;if(o==="parent"){let u=Ufe(n,t,e.__useComponent);return u==null&&(Qn(Ya($n.NOT_FOUND_PARENT_SCOPE)),u=a),u}const s=n;let l=s.__getInstance(t);if(l==null){const u=wa({},e);"__i18n"in r&&(u.__i18n=r.__i18n),a&&(u.__root=a),l=Z2(u),s.__composerExtend&&(l[y1]=s.__composerExtend(l)),Yfe(s,t,l),s.__setInstance(t,l)}return l}function Hfe(e,t,n){const a=lp();{const r=__VUE_I18N_LEGACY_API__&&t?a.run(()=>b1(e)):a.run(()=>Z2(e));if(r==null)throw ra(on.UNEXPECTED_ERROR);return[a,r]}}function Wfe(e){{const t=Be(e.isCE?Vfe:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ra(e.isCE?on.NOT_INSTALLED_WITH_PROVIDE:on.UNEXPECTED_ERROR);return t}}function jfe(e,t){return rh(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Kfe(e){return e.mode==="composition"?e.global:e.global.__composer}function Ufe(e,t,n=!1){let a=null;const r=t.root;let o=qfe(t,n);for(;o!=null;){const s=e;if(e.mode==="composition")a=s.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const l=s.__getInstance(o);l!=null&&(a=l.__composer,n&&a&&!a[P_]&&(a=null))}if(a!=null||r===o)break;o=o.parent}return a}function qfe(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Yfe(e,t,n){let a=null;yt(()=>{if(t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=q2();const r=n;r[ai]&&r[ai](a),a.on("*",ud)}},t),oi(()=>{const r=n;t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",ud),r[ld]&&r[ld](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=r[y1];o&&(o(),delete r[y1])},t)}function Gfe(e,t,n,a={}){const r=t==="local",o=Zt(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ra(on.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=Jt(a.inheritLocale)?a.inheritLocale:!dt(a.locale),l=B(!r||s?n.locale.value:dt(a.locale)?a.locale:Cu),u=B(!r||s?n.fallbackLocale.value:dt(a.fallbackLocale)||kn(a.fallbackLocale)||Ht(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:l.value),i=B(uh(l.value,a)),c=B(Ht(a.datetimeFormats)?a.datetimeFormats:{[l.value]:{}}),f=B(Ht(a.numberFormats)?a.numberFormats:{[l.value]:{}}),p=r?n.missingWarn:Jt(a.missingWarn)||rl(a.missingWarn)?a.missingWarn:!0,m=r?n.fallbackWarn:Jt(a.fallbackWarn)||rl(a.fallbackWarn)?a.fallbackWarn:!0,h=r?n.fallbackRoot:Jt(a.fallbackRoot)?a.fallbackRoot:!0,v=!!a.fallbackFormat,g=xn(a.missing)?a.missing:null,b=xn(a.postTranslation)?a.postTranslation:null,w=r?n.warnHtmlMessage:Jt(a.warnHtmlMessage)?a.warnHtmlMessage:!0,y=!!a.escapeParameter,x=r?n.modifiers:Ht(a.modifiers)?a.modifiers:{},C=a.pluralRules||r&&n.pluralRules;function E(){return[l.value,u.value,i.value,c.value,f.value]}const S=k({get:()=>o.value?o.value.locale.value:l.value,set:V=>{o.value&&(o.value.locale.value=V),l.value=V}}),T=k({get:()=>o.value?o.value.fallbackLocale.value:u.value,set:V=>{o.value&&(o.value.fallbackLocale.value=V),u.value=V}}),A=k(()=>o.value?o.value.messages.value:i.value),_=k(()=>c.value),O=k(()=>f.value);function I(){return o.value?o.value.getPostTranslationHandler():b}function D(V){o.value&&o.value.setPostTranslationHandler(V)}function K(){return o.value?o.value.getMissingHandler():g}function j(V){o.value&&o.value.setMissingHandler(V)}function z(V){return E(),V()}function P(...V){return o.value?z(()=>Reflect.apply(o.value.t,null,[...V])):z(()=>"")}function $(...V){return o.value?Reflect.apply(o.value.rt,null,[...V]):""}function L(...V){return o.value?z(()=>Reflect.apply(o.value.d,null,[...V])):z(()=>"")}function W(...V){return o.value?z(()=>Reflect.apply(o.value.n,null,[...V])):z(()=>"")}function M(V){return o.value?o.value.tm(V):{}}function F(V,ne){return o.value?o.value.te(V,ne):!1}function H(V){return o.value?o.value.getLocaleMessage(V):{}}function q(V,ne){o.value&&(o.value.setLocaleMessage(V,ne),i.value[V]=ne)}function Q(V,ne){o.value&&o.value.mergeLocaleMessage(V,ne)}function de(V){return o.value?o.value.getDateTimeFormat(V):{}}function Z(V,ne){o.value&&(o.value.setDateTimeFormat(V,ne),c.value[V]=ne)}function ie(V,ne){o.value&&o.value.mergeDateTimeFormat(V,ne)}function ue(V){return o.value?o.value.getNumberFormat(V):{}}function Y(V,ne){o.value&&(o.value.setNumberFormat(V,ne),f.value[V]=ne)}function G(V,ne){o.value&&o.value.mergeNumberFormat(V,ne)}const pe={get id(){return o.value?o.value.id:-1},locale:S,fallbackLocale:T,messages:A,datetimeFormats:_,numberFormats:O,get inheritLocale(){return o.value?o.value.inheritLocale:s},set inheritLocale(V){o.value&&(o.value.inheritLocale=V)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(i.value)},get modifiers(){return o.value?o.value.modifiers:x},get pluralRules(){return o.value?o.value.pluralRules:C},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:p},set missingWarn(V){o.value&&(o.value.missingWarn=V)},get fallbackWarn(){return o.value?o.value.fallbackWarn:m},set fallbackWarn(V){o.value&&(o.value.missingWarn=V)},get fallbackRoot(){return o.value?o.value.fallbackRoot:h},set fallbackRoot(V){o.value&&(o.value.fallbackRoot=V)},get fallbackFormat(){return o.value?o.value.fallbackFormat:v},set fallbackFormat(V){o.value&&(o.value.fallbackFormat=V)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:w},set warnHtmlMessage(V){o.value&&(o.value.warnHtmlMessage=V)},get escapeParameter(){return o.value?o.value.escapeParameter:y},set escapeParameter(V){o.value&&(o.value.escapeParameter=V)},t:P,getPostTranslationHandler:I,setPostTranslationHandler:D,getMissingHandler:K,setMissingHandler:j,rt:$,d:L,n:W,tm:M,te:F,getLocaleMessage:H,setLocaleMessage:q,mergeLocaleMessage:Q,getDateTimeFormat:de,setDateTimeFormat:Z,mergeDateTimeFormat:ie,getNumberFormat:ue,setNumberFormat:Y,mergeNumberFormat:G};function we(V){V.locale.value=l.value,V.fallbackLocale.value=u.value,Object.keys(i.value).forEach(ne=>{V.mergeLocaleMessage(ne,i.value[ne])}),Object.keys(c.value).forEach(ne=>{V.mergeDateTimeFormat(ne,c.value[ne])}),Object.keys(f.value).forEach(ne=>{V.mergeNumberFormat(ne,f.value[ne])}),V.escapeParameter=y,V.fallbackFormat=v,V.fallbackRoot=h,V.fallbackWarn=m,V.missingWarn=p,V.warnHtmlMessage=w}return md(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ra(on.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const V=o.value=e.proxy.$i18n.__composer;t==="global"?(l.value=V.locale.value,u.value=V.fallbackLocale.value,i.value=V.messages.value,c.value=V.datetimeFormats.value,f.value=V.numberFormats.value):r&&we(V)}),pe}const Xfe=["locale","fallbackLocale","availableLocales"],d8=["t","rt","d","n","tm","te"];function Jfe(e,t){const n=Object.create(null);return Xfe.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw ra(on.UNEXPECTED_ERROR);const s=jt(o.value)?{get(){return o.value.value},set(l){o.value.value=l}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,s)}),e.config.globalProperties.$i18n=n,d8.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw ra(on.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,d8.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}ffe();__INTLIFY_JIT_COMPILATION__?H6(ofe):H6(rfe);Xde(Ide);Jde(p_);{const e=es();e.__INTLIFY__=!0,Fde(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var Zfe={route:{dashboard:"Dashboard",document:"Document"},login:{title:"vue3-element-admin",username:"Username",password:"Password",login:"Login",code:"Verification Code",copyright:"",icp:""},navbar:{dashboard:"Dashboard",logout:"Logout",password:"Password",add:"Add",search:"Search",refresh:"ReFresh"}},Qfe={route:{dashboard:"\u9996\u9875",document:"\u9879\u76EE\u6587\u6863"},login:{title:"\u7BA1\u7406\u5E73\u53F0",username:"\u7528\u6237\u540D",password:"\u5BC6\u7801",login:"\u767B \u5F55",code:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",copyright:"",icp:""},navbar:{dashboard:"\u9996\u9875",logout:"\u6CE8\u9500",password:"\u4FEE\u6539\u5BC6\u7801",add:"\u65B0\u5EFA",search:"\u641C\u7D22",refresh:"\u91CD\u7F6E"}};const z_={"zh-cn":{...Qfe},en:{...Zfe}},H_=()=>{let e=_n.get("language");if(e)return e;e=navigator.language.toLowerCase();const t=Object.keys(z_);for(const n of t)if(e.indexOf(n)>-1)return n;return"zh-cn"},e0e=zfe({locale:H_(),messages:z_}),t0e=Ru({id:"app",state:()=>({device:"desktop",sidebar:{opened:_n.get("sidebarStatus")?!!+_n.get("sidebarStatus"):!0,withoutAnimation:!1},language:H_(),size:_n.get("size")||"default"}),actions:{toggleSidebar(){this.sidebar.opened=!this.sidebar.opened,this.sidebar.withoutAnimation=!1,this.sidebar.opened?_n.set("sidebarStatus",1):_n.set("sidebarStatus",0)},closeSideBar(e){_n.set("sidebarStatus",0),this.sidebar.opened=!1,this.sidebar.withoutAnimation=e},toggleDevice(e){this.device=e},setSize(e){this.size=e,_n.set("size",e)},setLanguage(e){this.language=e,_n.set("language",e)}}});function n0e(e){return Fn({url:"admin/routes",method:"post",data:e})}function Gpe(e){return Fn({url:"/youlai-admin/api/v1/menus",method:"get",params:e})}function Xpe(){return Fn({url:"/youlai-admin/api/v1/menus/options",method:"get"})}function Jpe(e){return Fn({url:"/youlai-admin/api/v1/menus/"+e,method:"delete"})}function Zpe(){return Fn({url:"/youlai-admin/api/v1/menus/resources",method:"get"})}function Qpe(e){return Fn({url:"/youlai-admin/api/v1/menus/"+e,method:"get"})}function ehe(e){return Fn({url:"/youlai-admin/api/v1/menus",method:"post",data:e})}function the(e,t){return Fn({url:"/youlai-admin/api/v1/menus/"+e,method:"put",data:t})}const Sv={"../../views/admin/index.vue":()=>Qt(()=>import("./index.ba523f48.js"),["assets/index.ba523f48.js","assets/table.5e79e8f5.css","assets/admin.a2e5b1ce.js","assets/filter.6957b13e.js","assets/editDialog.204a8c3f.js","assets/editPassword.1a9e2736.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js","assets/plus.14dbe932.js","assets/edit.147639b3.js"]),"../../views/dashboard/index.vue":()=>Qt(()=>import("./index.99c049d5.js"),["assets/index.99c049d5.js","assets/index.ba661266.css","assets/index.0dc1fe7a.js","assets/index.7447c703.css"]),"../../views/error-page/401.vue":()=>Qt(()=>import("./401.4d4ce405.js"),["assets/401.4d4ce405.js","assets/401.86848da3.css"]),"../../views/error-page/404.vue":()=>Qt(()=>import("./404.dde565c1.js"),["assets/404.dde565c1.js","assets/404.25bc9844.css"]),"../../views/log/action.vue":()=>Qt(()=>import("./action.25025aa2.js"),["assets/action.25025aa2.js","assets/login.076cf957.css","assets/table.5e79e8f5.css","assets/index.bb4ad3c3.js","assets/filter.6957b13e.js","assets/index.15ffec52.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js"]),"../../views/log/login.vue":()=>Qt(()=>import("./login.a1c6a85c.js"),["assets/login.a1c6a85c.js","assets/login.076cf957.css","assets/table.5e79e8f5.css","assets/index.bb4ad3c3.js","assets/filter.6957b13e.js","assets/index.c080f8a2.js","assets/index.6f7c26aa.css","assets/plugin-vue_export-helper.41ffa612.js","assets/search.8b061963.js"]),"../../views/login/index.vue":()=>Qt(()=>import("./index.9e77111a.js"),["assets/index.9e77111a.js","assets/index.ec71488e.css","assets/plugin-vue_export-helper.41ffa612.js","assets/lock.2eb1d007.js"]),"../../views/redirect/index.vue":()=>Qt(()=>import("./index.9a5b39df.js"),[]),"../../views/store/storeAccountList.vue":()=>Qt(()=>import("./storeAccountList.180b144a.js"),["assets/storeAccountList.180b144a.js","assets/storeAccountList.e443791b.css","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js"]),"../../views/user/archiveDetail.vue":()=>Qt(()=>import("./archiveDetail.fa7cf578.js"),["assets/archiveDetail.fa7cf578.js","assets/archiveDetail.9e056896.css","assets/index.c839390e.js","assets/userArchiveImages.4465f956.js"]),"../../views/user/index.vue":()=>Qt(()=>import("./index.2f4e4498.js"),["assets/index.2f4e4498.js","assets/index.2b902592.css","assets/index.c839390e.js","assets/userArchiveImages.4465f956.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js"]),"../../views/user/userAnalysis.vue":()=>Qt(()=>import("./userAnalysis.32c435a5.js"),["assets/userAnalysis.32c435a5.js","assets/userAnalysis.b260f445.css","assets/index.c839390e.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js"]),"../../views/user/userDetection.vue":()=>Qt(()=>import("./userDetection.94c3a814.js"),["assets/userDetection.94c3a814.js","assets/userDetection.c5eee74d.css","assets/index.c839390e.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js"]),"../../views/user/userQuestion.vue":()=>Qt(()=>import("./userQuestion.2ff3272c.js"),["assets/userQuestion.2ff3272c.js","assets/userQuestion.8a35497b.css","assets/index.c839390e.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js"]),"../../views/admin/components/editDialog.vue":()=>Qt(()=>import("./editDialog.204a8c3f.js"),["assets/editDialog.204a8c3f.js","assets/admin.a2e5b1ce.js","assets/filter.6957b13e.js"]),"../../views/admin/components/editPassword.vue":()=>Qt(()=>import("./editPassword.1a9e2736.js"),["assets/editPassword.1a9e2736.js","assets/admin.a2e5b1ce.js","assets/filter.6957b13e.js"]),"../../views/authority/admin/index.vue":()=>Qt(()=>import("./index.f4020f83.js"),["assets/index.f4020f83.js","assets/index.3082f74a.css","assets/table.5e79e8f5.css","assets/admin.a2e5b1ce.js","assets/filter.6957b13e.js","assets/editDialog.81608e38.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js","assets/plus.14dbe932.js"]),"../../views/authority/authority/index.vue":()=>Qt(()=>import("./index.958a46d5.js"),["assets/index.958a46d5.js","assets/table.5e79e8f5.css","assets/index.15ffec52.js","assets/filter.6957b13e.js","assets/index.c080f8a2.js","assets/index.6f7c26aa.css","assets/plugin-vue_export-helper.41ffa612.js","assets/index.c7b8a3d2.js","assets/index.9520a07b.css","assets/editDialog.89105c7f.js","assets/index.2c44e258.js","assets/index.0998872b.css","assets/plus.14dbe932.js","assets/edit.147639b3.js"]),"../../views/authority/role/index.vue":()=>Qt(()=>import("./index.a6cac437.js"),["assets/index.a6cac437.js","assets/index.3082f74a.css","assets/table.5e79e8f5.css","assets/editDialog.0a92660a.js","assets/filter.6957b13e.js","assets/index.15ffec52.js","assets/plus.14dbe932.js","assets/plugin-vue_export-helper.41ffa612.js","assets/edit.147639b3.js"]),"../../views/company/project/index.vue":()=>Qt(()=>import("./index.6d5c7009.js"),["assets/index.6d5c7009.js","assets/table.5e79e8f5.css","assets/editDialog.8ba00e76.js","assets/editDialog.7a3c2f6f.css","assets/filter.6957b13e.js","assets/plus.14dbe932.js","assets/plugin-vue_export-helper.41ffa612.js","assets/edit.147639b3.js"]),"../../views/system/menu/index.vue":()=>Qt(()=>import("./index.c8fcff8a.js"),["assets/index.c8fcff8a.js","assets/index.c7b8a3d2.js","assets/index.9520a07b.css","assets/Menu.01d87ba5.js","assets/index.2c44e258.js","assets/index.0998872b.css","assets/plus.14dbe932.js","assets/plugin-vue_export-helper.41ffa612.js","assets/search.8b061963.js","assets/edit.147639b3.js","assets/delete.17c46fee.js","assets/Perm.11170364.js","assets/Perm.8328f1bc.css"]),"../../views/system/role/index.vue":()=>Qt(()=>import("./index.b006d48a.js"),["assets/index.b006d48a.js","assets/index.20ec8834.css","assets/role.03b16bdd.js","assets/index.c7b8a3d2.js","assets/index.9520a07b.css","assets/plus.14dbe932.js","assets/plugin-vue_export-helper.41ffa612.js","assets/delete.17c46fee.js","assets/search.8b061963.js","assets/edit.147639b3.js"]),"../../views/system/user/index.vue":()=>Qt(()=>import("./index.41e36efc.js"),["assets/index.41e36efc.js","assets/role.03b16bdd.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js","assets/plus.14dbe932.js","assets/delete.17c46fee.js","assets/edit.147639b3.js","assets/lock.2eb1d007.js"]),"../../views/authority/admin/components/editDialog.vue":()=>Qt(()=>import("./editDialog.81608e38.js"),["assets/editDialog.81608e38.js","assets/admin.a2e5b1ce.js","assets/filter.6957b13e.js"]),"../../views/authority/authority/components/editDialog.vue":()=>Qt(()=>import("./editDialog.89105c7f.js"),["assets/editDialog.89105c7f.js","assets/index.15ffec52.js","assets/filter.6957b13e.js","assets/index.c7b8a3d2.js","assets/index.9520a07b.css","assets/index.2c44e258.js","assets/index.0998872b.css"]),"../../views/authority/role/components/editDialog.vue":()=>Qt(()=>import("./editDialog.0a92660a.js").then(function(e){return e.e}),["assets/editDialog.0a92660a.js","assets/filter.6957b13e.js"]),"../../views/company/project/components/editDialog.vue":()=>Qt(()=>import("./editDialog.8ba00e76.js").then(function(e){return e.e}),["assets/editDialog.8ba00e76.js","assets/editDialog.7a3c2f6f.css","assets/filter.6957b13e.js"]),"../../views/dashboard/components/Project/index.vue":()=>Qt(()=>import("./index.0dc1fe7a.js"),["assets/index.0dc1fe7a.js","assets/index.7447c703.css"]),"../../views/system/menu/components/Menu.vue":()=>Qt(()=>import("./Menu.01d87ba5.js"),["assets/Menu.01d87ba5.js","assets/index.c7b8a3d2.js","assets/index.9520a07b.css","assets/index.2c44e258.js","assets/index.0998872b.css","assets/plus.14dbe932.js","assets/plugin-vue_export-helper.41ffa612.js","assets/search.8b061963.js","assets/edit.147639b3.js","assets/delete.17c46fee.js"]),"../../views/system/menu/components/Perm.vue":()=>Qt(()=>import("./Perm.11170364.js"),["assets/Perm.11170364.js","assets/Perm.8328f1bc.css","assets/plus.14dbe932.js","assets/plugin-vue_export-helper.41ffa612.js","assets/delete.17c46fee.js","assets/search.8b061963.js","assets/edit.147639b3.js"])},a0e=()=>Qt(()=>import("./index.67768140.js"),["assets/index.67768140.js","assets/index.a7697668.css","assets/plugin-vue_export-helper.41ffa612.js","assets/index.c7b8a3d2.js","assets/index.9520a07b.css"]),r0e=(e,t)=>t.meta&&t.meta.roles?e.includes("ROOT")?!0:e.some(n=>{var a;if(((a=t.meta)==null?void 0:a.roles)!==void 0)return t.meta.roles.includes(n)}):!1,W_=(e,t)=>{const n=[];return e.forEach(a=>{const r={...a};r0e(t,r)&&(r.component=="Layout"?r.component=a0e:Sv[`../../views/${r.component}.vue`]?r.component=Sv[`../../views/${r.component}.vue`]:r.component=Sv["../../views/error-page/404.vue"],n.push(r),r.children&&(r.children=W_(r.children,t)))}),n},o0e=Ru({id:"permission",state:()=>({routes:[],addRoutes:[]}),actions:{setRoutes(e){this.addRoutes=e,this.routes=GS.concat(e)},generateRoutes(e){return new Promise((t,n)=>{n0e({project_id:br.projectId}).then(a=>{if(a.code!==Z0.ok.code)return n(a.message||"Error");var r=[];_n.remove(br.authKey),r=K_(a.data.menu),s0e(a.data.auth),_n.set(br.authKey,j_);const o=W_(r,e);this.setRoutes(o),t(o)})})}}}),s0e=e=>{if(!!e)for(var t=0;t{if(!e)return[];for(var t=[],n=0;n({theme:_n.get("theme")||getComputedStyle(f0e).getPropertyValue("--el-color-primary"),showSettings:i0e,tagsView:_n.get("tagsView")!=null?_n.get("tagsView"):u0e,fixedHeader:c0e,sidebarLogo:d0e}),actions:{async changeSetting(e){const{key:t,value:n}=e;switch(t){case"theme":this.theme=n;break;case"showSettings":this.showSettings=n;break;case"fixedHeader":this.fixedHeader=n;break;case"tagsView":this.tagsView=n,_n.set("tagsView",n);break;case"sidebarLogo":this.sidebarLogo=n;break}}}}),h0e=Ru({id:"tagsView",state:()=>({visitedViews:[],cachedViews:[]}),actions:{addVisitedView(e){var t,n;this.visitedViews.some(a=>a.path===e.path)||(e.meta&&e.meta.affix?this.visitedViews.unshift(Object.assign({},e,{title:((t=e.meta)==null?void 0:t.title)||"no-name"})):this.visitedViews.push(Object.assign({},e,{title:((n=e.meta)==null?void 0:n.title)||"no-name"})))},addCachedView(e){this.cachedViews.includes(e.name)||e.meta.keepAlive&&this.cachedViews.push(e.name)},delVisitedView(e){return new Promise(t=>{for(const[n,a]of this.visitedViews.entries())if(a.path===e.path){this.visitedViews.splice(n,1);break}t([...this.visitedViews])})},delCachedView(e){return new Promise(t=>{const n=this.cachedViews.indexOf(e.name);n>-1&&this.cachedViews.splice(n,1),t([...this.cachedViews])})},delOtherVisitedViews(e){return new Promise(t=>{this.visitedViews=this.visitedViews.filter(n=>{var a;return((a=n.meta)==null?void 0:a.affix)||n.path===e.path}),t([...this.visitedViews])})},delOtherCachedViews(e){return new Promise(t=>{const n=this.cachedViews.indexOf(e.name);n>-1?this.cachedViews=this.cachedViews.slice(n,n+1):this.cachedViews=[],t([...this.cachedViews])})},updateVisitedView(e){for(let t of this.visitedViews)if(t.path===e.path){t=Object.assign(t,e);break}},addView(e){this.addVisitedView(e),this.addCachedView(e)},delView(e){return new Promise(t=>{this.delVisitedView(e),this.delCachedView(e),t({visitedViews:[...this.visitedViews],cachedViews:[...this.cachedViews]})})},delOtherViews(e){return new Promise(t=>{this.delOtherVisitedViews(e),this.delOtherCachedViews(e),t({visitedViews:[...this.visitedViews],cachedViews:[...this.cachedViews]})})},delLeftViews(e){return new Promise(t=>{const n=this.visitedViews.findIndex(a=>a.path===e.path);n!==-1&&(this.visitedViews=this.visitedViews.filter((a,r)=>{if(r>=n||a.meta&&a.meta.affix)return!0;const o=this.cachedViews.indexOf(a.name);return o>-1&&this.cachedViews.splice(o,1),!1}),t({visitedViews:[...this.visitedViews]}))})},delRightViews(e){return new Promise(t=>{const n=this.visitedViews.findIndex(a=>a.path===e.path);n!==-1&&(this.visitedViews=this.visitedViews.filter((a,r)=>{if(r<=n||a.meta&&a.meta.affix)return!0;const o=this.cachedViews.indexOf(a.name);return o>-1&&this.cachedViews.splice(o,1),!1}),t({visitedViews:[...this.visitedViews]}))})},delAllViews(){return new Promise(e=>{const t=this.visitedViews.filter(n=>{var a;return(a=n.meta)==null?void 0:a.affix});this.visitedViews=t,this.cachedViews=[],e({visitedViews:[...this.visitedViews],cachedViews:[...this.cachedViews]})})},delAllVisitedViews(){return new Promise(e=>{const t=this.visitedViews.filter(n=>{var a;return(a=n.meta)==null?void 0:a.affix});this.visitedViews=t,e([...this.visitedViews])})},delAllCachedViews(){return new Promise(e=>{this.cachedViews=[],e([...this.cachedViews])})}}});var U_=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var o in r)r.hasOwnProperty(o)&&(a[o]=r[o])},e(t,n)};return function(t,n){e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ln;(function(e){e.InvalidFile="InvalidFile",e.InvalidToken="InvalidToken",e.InvalidMetadata="InvalidMetadata",e.InvalidChunkSize="InvalidChunkSize",e.InvalidCustomVars="InvalidCustomVars",e.NotAvailableUploadHost="NotAvailableUploadHost",e.ReadCacheFailed="ReadCacheFailed",e.InvalidCacheData="InvalidCacheData",e.WriteCacheFailed="WriteCacheFailed",e.RemoveCacheFailed="RemoveCacheFailed",e.GetCanvasContextFailed="GetCanvasContextFailed",e.UnsupportedFileType="UnsupportedFileType",e.FileReaderReadFailed="FileReaderReadFailed",e.NotAvailableXMLHttpRequest="NotAvailableXMLHttpRequest",e.InvalidProgressEventTarget="InvalidProgressEventTarget",e.RequestError="RequestError"})(Ln||(Ln={}));var Kn=function(){function e(t,n){this.name=t,this.message=n,this.stack=new Error().stack}return e}(),cd=function(e){U_(t,e);function t(n,a,r,o){var s=e.call(this,Ln.RequestError,r)||this;return s.code=n,s.reqId=a,s.isRequestError=!0,s.data=o,s}return t}(Kn),v0e=function(e){U_(t,e);function t(n,a){return a===void 0&&(a=""),e.call(this,0,a,n)||this}return t}(cd),m0e=function(){function e(t,n){this.runTask=t,this.limit=n,this.aborted=!1,this.queue=[],this.processing=[]}return e.prototype.enqueue=function(t){var n=this;return new Promise(function(a,r){n.queue.push({task:t,resolve:a,reject:r}),n.check()})},e.prototype.run=function(t){var n=this;this.queue=this.queue.filter(function(a){return a!==t}),this.processing.push(t),this.runTask(t.task).then(function(){n.processing=n.processing.filter(function(a){return a!==t}),t.resolve(),n.check()},function(a){return t.reject(a)})},e.prototype.check=function(){var t=this;if(!this.aborted){var n=this.processing.length,a=this.limit-n;this.queue.slice(0,a).forEach(function(r){t.run(r)})}},e.prototype.abort=function(){this.queue=[],this.aborted=!0},e}(),g0e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var o in r)r.hasOwnProperty(o)&&(a[o]=r[o])},e(t,n)};return function(t,n){e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ec=globalThis&&globalThis.__assign||function(){return Ec=Object.assign||function(e){for(var t,n=1,a=arguments.length;n127&&l<2048)u=String.fromCharCode(l>>6|192,l&63|128);else if((l&63488^55296)>0)u=String.fromCharCode(l>>12|224,l>>6&63|128,l&63|128);else{if((l&64512^55296)>0)throw new RangeError("Unmatched trail surrogate at "+s);var i=t.charCodeAt(++s);if((i&64512^56320)>0)throw new RangeError("Unmatched lead surrogate at "+(s-1));l=((l&1023)<<10)+(i&1023)+65536,u=String.fromCharCode(l>>18|240,l>>12&63|128,l>>6&63|128,l&63|128)}u!==null&&(r>a&&(n+=t.slice(a,r)),n+=u,a=r=s+1)}return r>a&&(n+=t.slice(a,o)),n}function C0e(e){var t=[],n=0,a=0,r=0;for(e+="";n>10&1023)),t.push(String.fromCharCode(56320|a&1023))):t.push(String.fromCharCode(a)),n+=r}return t.join("")}function E0e(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n,a,r,o,s,l,u,i,c=0,f=0,p="",m=[];if(!e)return e;e=w0e(e+"");do n=e.charCodeAt(c++),a=e.charCodeAt(c++),r=e.charCodeAt(c++),i=n<<16|a<<8|r,o=i>>18&63,s=i>>12&63,l=i>>6&63,u=i&63,m[f++]=t.charAt(o)+t.charAt(s)+t.charAt(l)+t.charAt(u);while(c>16&255,a=i>>8&255,r=i&255,l===64?m[f++]=String.fromCharCode(n):u===64?m[f++]=String.fromCharCode(n,a):m[f++]=String.fromCharCode(n,a,r);while(c>>25)+x|0,E+=(y&x|~y&C)+w[1]-389564586|0,E=(E<<12|E>>>20)+y|0,C+=(E&y|~E&x)+w[2]+606105819|0,C=(C<<17|C>>>15)+E|0,x+=(C&E|~C&y)+w[3]-1044525330|0,x=(x<<22|x>>>10)+C|0,y+=(x&C|~x&E)+w[4]-176418897|0,y=(y<<7|y>>>25)+x|0,E+=(y&x|~y&C)+w[5]+1200080426|0,E=(E<<12|E>>>20)+y|0,C+=(E&y|~E&x)+w[6]-1473231341|0,C=(C<<17|C>>>15)+E|0,x+=(C&E|~C&y)+w[7]-45705983|0,x=(x<<22|x>>>10)+C|0,y+=(x&C|~x&E)+w[8]+1770035416|0,y=(y<<7|y>>>25)+x|0,E+=(y&x|~y&C)+w[9]-1958414417|0,E=(E<<12|E>>>20)+y|0,C+=(E&y|~E&x)+w[10]-42063|0,C=(C<<17|C>>>15)+E|0,x+=(C&E|~C&y)+w[11]-1990404162|0,x=(x<<22|x>>>10)+C|0,y+=(x&C|~x&E)+w[12]+1804603682|0,y=(y<<7|y>>>25)+x|0,E+=(y&x|~y&C)+w[13]-40341101|0,E=(E<<12|E>>>20)+y|0,C+=(E&y|~E&x)+w[14]-1502002290|0,C=(C<<17|C>>>15)+E|0,x+=(C&E|~C&y)+w[15]+1236535329|0,x=(x<<22|x>>>10)+C|0,y+=(x&E|C&~E)+w[1]-165796510|0,y=(y<<5|y>>>27)+x|0,E+=(y&C|x&~C)+w[6]-1069501632|0,E=(E<<9|E>>>23)+y|0,C+=(E&x|y&~x)+w[11]+643717713|0,C=(C<<14|C>>>18)+E|0,x+=(C&y|E&~y)+w[0]-373897302|0,x=(x<<20|x>>>12)+C|0,y+=(x&E|C&~E)+w[5]-701558691|0,y=(y<<5|y>>>27)+x|0,E+=(y&C|x&~C)+w[10]+38016083|0,E=(E<<9|E>>>23)+y|0,C+=(E&x|y&~x)+w[15]-660478335|0,C=(C<<14|C>>>18)+E|0,x+=(C&y|E&~y)+w[4]-405537848|0,x=(x<<20|x>>>12)+C|0,y+=(x&E|C&~E)+w[9]+568446438|0,y=(y<<5|y>>>27)+x|0,E+=(y&C|x&~C)+w[14]-1019803690|0,E=(E<<9|E>>>23)+y|0,C+=(E&x|y&~x)+w[3]-187363961|0,C=(C<<14|C>>>18)+E|0,x+=(C&y|E&~y)+w[8]+1163531501|0,x=(x<<20|x>>>12)+C|0,y+=(x&E|C&~E)+w[13]-1444681467|0,y=(y<<5|y>>>27)+x|0,E+=(y&C|x&~C)+w[2]-51403784|0,E=(E<<9|E>>>23)+y|0,C+=(E&x|y&~x)+w[7]+1735328473|0,C=(C<<14|C>>>18)+E|0,x+=(C&y|E&~y)+w[12]-1926607734|0,x=(x<<20|x>>>12)+C|0,y+=(x^C^E)+w[5]-378558|0,y=(y<<4|y>>>28)+x|0,E+=(y^x^C)+w[8]-2022574463|0,E=(E<<11|E>>>21)+y|0,C+=(E^y^x)+w[11]+1839030562|0,C=(C<<16|C>>>16)+E|0,x+=(C^E^y)+w[14]-35309556|0,x=(x<<23|x>>>9)+C|0,y+=(x^C^E)+w[1]-1530992060|0,y=(y<<4|y>>>28)+x|0,E+=(y^x^C)+w[4]+1272893353|0,E=(E<<11|E>>>21)+y|0,C+=(E^y^x)+w[7]-155497632|0,C=(C<<16|C>>>16)+E|0,x+=(C^E^y)+w[10]-1094730640|0,x=(x<<23|x>>>9)+C|0,y+=(x^C^E)+w[13]+681279174|0,y=(y<<4|y>>>28)+x|0,E+=(y^x^C)+w[0]-358537222|0,E=(E<<11|E>>>21)+y|0,C+=(E^y^x)+w[3]-722521979|0,C=(C<<16|C>>>16)+E|0,x+=(C^E^y)+w[6]+76029189|0,x=(x<<23|x>>>9)+C|0,y+=(x^C^E)+w[9]-640364487|0,y=(y<<4|y>>>28)+x|0,E+=(y^x^C)+w[12]-421815835|0,E=(E<<11|E>>>21)+y|0,C+=(E^y^x)+w[15]+530742520|0,C=(C<<16|C>>>16)+E|0,x+=(C^E^y)+w[2]-995338651|0,x=(x<<23|x>>>9)+C|0,y+=(C^(x|~E))+w[0]-198630844|0,y=(y<<6|y>>>26)+x|0,E+=(x^(y|~C))+w[7]+1126891415|0,E=(E<<10|E>>>22)+y|0,C+=(y^(E|~x))+w[14]-1416354905|0,C=(C<<15|C>>>17)+E|0,x+=(E^(C|~y))+w[5]-57434055|0,x=(x<<21|x>>>11)+C|0,y+=(C^(x|~E))+w[12]+1700485571|0,y=(y<<6|y>>>26)+x|0,E+=(x^(y|~C))+w[3]-1894986606|0,E=(E<<10|E>>>22)+y|0,C+=(y^(E|~x))+w[10]-1051523|0,C=(C<<15|C>>>17)+E|0,x+=(E^(C|~y))+w[1]-2054922799|0,x=(x<<21|x>>>11)+C|0,y+=(C^(x|~E))+w[8]+1873313359|0,y=(y<<6|y>>>26)+x|0,E+=(x^(y|~C))+w[15]-30611744|0,E=(E<<10|E>>>22)+y|0,C+=(y^(E|~x))+w[6]-1560198380|0,C=(C<<15|C>>>17)+E|0,x+=(E^(C|~y))+w[13]+1309151649|0,x=(x<<21|x>>>11)+C|0,y+=(C^(x|~E))+w[4]-145523070|0,y=(y<<6|y>>>26)+x|0,E+=(x^(y|~C))+w[11]-1120210379|0,E=(E<<10|E>>>22)+y|0,C+=(y^(E|~x))+w[2]+718787259|0,C=(C<<15|C>>>17)+E|0,x+=(E^(C|~y))+w[9]-343485551|0,x=(x<<21|x>>>11)+C|0,b[0]=y+b[0]|0,b[1]=x+b[1]|0,b[2]=C+b[2]|0,b[3]=E+b[3]|0}function o(b){var w=[],y;for(y=0;y<64;y+=4)w[y>>2]=b.charCodeAt(y)+(b.charCodeAt(y+1)<<8)+(b.charCodeAt(y+2)<<16)+(b.charCodeAt(y+3)<<24);return w}function s(b){var w=[],y;for(y=0;y<64;y+=4)w[y>>2]=b[y]+(b[y+1]<<8)+(b[y+2]<<16)+(b[y+3]<<24);return w}function l(b){var w=b.length,y=[1732584193,-271733879,-1732584194,271733878],x,C,E,S,T,A;for(x=64;x<=w;x+=64)r(y,o(b.substring(x-64,x)));for(b=b.substring(x-64),C=b.length,E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x>2]|=b.charCodeAt(x)<<(x%4<<3);if(E[x>>2]|=128<<(x%4<<3),x>55)for(r(y,E),x=0;x<16;x+=1)E[x]=0;return S=w*8,S=S.toString(16).match(/(.*?)(.{0,8})$/),T=parseInt(S[2],16),A=parseInt(S[1],16)||0,E[14]=T,E[15]=A,r(y,E),y}function u(b){var w=b.length,y=[1732584193,-271733879,-1732584194,271733878],x,C,E,S,T,A;for(x=64;x<=w;x+=64)r(y,s(b.subarray(x-64,x)));for(b=x-64>2]|=b[x]<<(x%4<<3);if(E[x>>2]|=128<<(x%4<<3),x>55)for(r(y,E),x=0;x<16;x+=1)E[x]=0;return S=w*8,S=S.toString(16).match(/(.*?)(.{0,8})$/),T=parseInt(S[2],16),A=parseInt(S[1],16)||0,E[14]=T,E[15]=A,r(y,E),y}function i(b){var w="",y;for(y=0;y<4;y+=1)w+=a[b>>y*8+4&15]+a[b>>y*8&15];return w}function c(b){var w;for(w=0;wE?new ArrayBuffer(0):(S=E-C,T=new ArrayBuffer(S),A=new Uint8Array(T),_=new Uint8Array(this,C,S),A.set(_),T)}}();function f(b){return/[\u0080-\uFFFF]/.test(b)&&(b=unescape(encodeURIComponent(b))),b}function p(b,w){var y=b.length,x=new ArrayBuffer(y),C=new Uint8Array(x),E;for(E=0;E>2]|=w.charCodeAt(x)<<(x%4<<3);return this._finish(C,y),E=c(this._hash),b&&(E=v(E)),this.reset(),E},g.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},g.prototype.setState=function(b){return this._buff=b.buff,this._length=b.length,this._hash=b.hash,this},g.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},g.prototype._finish=function(b,w){var y=w,x,C,E;if(b[y>>2]|=128<<(y%4<<3),y>55)for(r(this._hash,b),y=0;y<16;y+=1)b[y]=0;x=this._length*8,x=x.toString(16).match(/(.*?)(.{0,8})$/),C=parseInt(x[2],16),E=parseInt(x[1],16)||0,b[14]=C,b[15]=E,r(this._hash,b)},g.hash=function(b,w){return g.hashBinary(f(b),w)},g.hashBinary=function(b,w){var y=l(b),x=c(y);return w?v(x):x},g.ArrayBuffer=function(){this.reset()},g.ArrayBuffer.prototype.append=function(b){var w=h(this._buff.buffer,b,!0),y=w.length,x;for(this._length+=b.byteLength,x=64;x<=y;x+=64)r(this._hash,s(w.subarray(x-64,x)));return this._buff=x-64>2]|=w[C]<<(C%4<<3);return this._finish(x,y),E=c(this._hash),b&&(E=v(E)),this.reset(),E},g.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.ArrayBuffer.prototype.getState=function(){var b=g.prototype.getState.call(this);return b.buff=m(b.buff),b},g.ArrayBuffer.prototype.setState=function(b){return b.buff=p(b.buff,!0),g.prototype.setState.call(this,b)},g.ArrayBuffer.prototype.destroy=g.prototype.destroy,g.ArrayBuffer.prototype._finish=g.prototype._finish,g.ArrayBuffer.hash=function(b,w){var y=u(new Uint8Array(b)),x=c(y);return w?v(x):x},g})})(Y_);var k0e=Y_.exports,np=globalThis&&globalThis.__assign||function(){return np=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]e.size)n=e.size;else for(;e.size>n*1e4;)n*=2;for(var a=[],r=Math.ceil(e.size/n),o=0;o3?t[1]:t[0];if(!n)throw new Kn(Ln.InvalidToken,"missing assess key field.");var a=null;try{a=JSON.parse(_0e(t[t.length-1]))}catch{throw new Kn(Ln.InvalidToken,"token parse failed.")}if(a==null)throw new Kn(Ln.InvalidToken,"putPolicy is null.");if(a.scope==null)throw new Kn(Ln.InvalidToken,"scope field is null.");var r=a.scope.split(":")[0];if(!r)throw new Kn(Ln.InvalidToken,"resolve bucketName failed.");return{assessKey:n,bucketName:r,scope:a.scope}}var Ts,Ti={z0:"z0",z1:"z1",z2:"z2",na0:"na0",as0:"as0",cnEast2:"cn-east-2"},H0e=(Ts={},Ts[Ti.z0]={srcUphost:["up.qiniup.com"],cdnUphost:["upload.qiniup.com"]},Ts[Ti.z1]={srcUphost:["up-z1.qiniup.com"],cdnUphost:["upload-z1.qiniup.com"]},Ts[Ti.z2]={srcUphost:["up-z2.qiniup.com"],cdnUphost:["upload-z2.qiniup.com"]},Ts[Ti.na0]={srcUphost:["up-na0.qiniup.com"],cdnUphost:["upload-na0.qiniup.com"]},Ts[Ti.as0]={srcUphost:["up-as0.qiniup.com"],cdnUphost:["upload-as0.qiniup.com"]},Ts[Ti.cnEast2]={srcUphost:["up-cn-east-2.qiniup.com"],cdnUphost:["upload-cn-east-2.qiniup.com"]},Ts),Qu=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},W0e=function(e,t,n,a){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(r){var o=encodeURIComponent(Qu(r))+n;return Array.isArray(e[r])?e[r].map(function(s){return o+encodeURIComponent(Qu(s))}).join(t):o+encodeURIComponent(Qu(e[r]))}).filter(Boolean).join(t):a?encodeURIComponent(Qu(a))+n+encodeURIComponent(Qu(e)):""},X_;X_=W0e;var ri=globalThis&&globalThis.__assign||function(){return ri=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]0)&&!(r=a.next()).done;)o.push(r.value)}catch(l){s={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(s)throw s.error}}return o},Z0e=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t1e4*tpe)return this.handleError(new Kn(Ln.InvalidFile,"file size exceed maximum value 10000G")),[2];if(this.putExtra.customVars&&!N0e(this.putExtra.customVars))return this.handleError(new Kn(Ln.InvalidCustomVars,"customVars key should start width x:")),[2];if(this.putExtra.metadata&&!I0e(this.putExtra.metadata))return this.handleError(new Kn(Ln.InvalidMetadata,"metadata key should start with x-qn-meta-")),[2];o.label=1;case 1:return o.trys.push([1,4,,5]),this.uploadAt=new Date().getTime(),[4,this.checkAndUpdateUploadHost()];case 2:return o.sent(),[4,this.run()];case 3:return t=o.sent(),this.onComplete(t.data),this.checkAndUnfreezeHost(),this.sendLog(t.reqId,200),[2];case 4:return n=o.sent(),this.aborted?(this.logger.warn("upload is aborted."),this.sendLog("",-2),[2]):(this.clear(),this.logger.error(n),n instanceof cd&&(this.sendLog(n.reqId,n.code),this.checkAndFreezeHost(n),a=++this.retryCount<=this.config.retryCount,r=epe.includes(n.code),r&&a)?(this.logger.warn("error auto retry: "+this.retryCount+"/"+this.config.retryCount+"."),this.putFile(),[2]):(this.onError(n),[3,5]));case 5:return[2]}})})},e.prototype.clear=function(){this.xhrList.forEach(function(t){t.onreadystatechange=null,t.abort()}),this.xhrList=[],this.logger.info("cleanup uploading xhr.")},e.prototype.stop=function(){this.logger.info("aborted."),this.clear(),this.aborted=!0},e.prototype.addXhr=function(t){this.xhrList.push(t)},e.prototype.sendLog=function(t,n){var a,r;this.logger.report({code:n,reqId:t,remoteIp:"",upType:"jssdk-h5",size:this.file.size,time:Math.floor(this.uploadAt/1e3),port:V0e((a=this.uploadHost)===null||a===void 0?void 0:a.getUrl()),host:z0e((r=this.uploadHost)===null||r===void 0?void 0:r.getUrl()),bytesSent:this.progress?this.progress.total.loaded:0,duration:Math.floor((new Date().getTime()-this.uploadAt)/1e3)})},e.prototype.getProgressInfoItem=function(t,n,a){return ap({size:n,loaded:t,percent:t/n*100},a==null?{}:{fromCache:a})},e}(),npe=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var o in r)r.hasOwnProperty(o)&&(a[o]=r[o])},e(t,n)};return function(t,n){e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Sc=globalThis&&globalThis.__assign||function(){return Sc=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]1024)throw new Kn(Ln.InvalidChunkSize,"chunkSize maximum value is 1024");return[4,this.initBeforeUploadChunks()];case 1:u.sent(),n=new m0e(function(i){return ec(l,void 0,void 0,function(){return tc(this,function(c){switch(c.label){case 0:if(this.aborted)throw n.abort(),new Error("pool is aborted");return[4,this.uploadChunk(i)];case 1:return c.sent(),[2]}})})},this.config.concurrentRequestLimit),a=null,r=this.getLocalKey(),o=this.chunks.map(function(i,c){return n.enqueue({chunk:i,index:c})}),u.label=2;case 2:return u.trys.push([2,5,,6]),[4,Promise.all(o)];case 3:return u.sent(),[4,this.mkFileReq()];case 4:return a=u.sent(),[3,6];case 5:throw s=u.sent(),s instanceof cd&&(s.code===612||s.code===400)&&w1(r,this.logger),s;case 6:return w1(r,this.logger),[2,a]}})})},t.prototype.uploadChunk=function(n){return ec(this,void 0,void 0,function(){var a,r,o,s,l,u,i,c,f,p=this;return tc(this,function(m){switch(m.label){case 0:return a=n.index,r=n.chunk,o=this.cachedUploadedList[a],this.logger.info("upload part "+a+", cache:",o),s=this.config.checkByMD5,l=function(){p.usedCacheList[a]=!0,p.updateChunkProgress(r.size,a),p.uploadedList[a]=o,p.updateLocalCache()},o&&!s?(l(),[2]):[4,B0e(r)];case 1:return u=m.sent(),this.logger.info("computed part md5.",u),o&&u===o.md5?(l(),[2]):(this.usedCacheList[a]=!1,i=function(h){p.updateChunkProgress(h.loaded,a)},c={body:r,md5:this.config.checkByServer?u:void 0,onProgress:i,onCreate:function(h){return p.addXhr(h)}},this.logger.info("part "+a+" start uploading."),[4,Y0e(this.token,this.key,n.index+1,this.getUploadInfo(),c)]);case 2:return f=m.sent(),this.logger.info("part "+a+" upload completed."),i({loaded:r.size,total:r.size}),this.uploadedList[a]={etag:f.data.etag,md5:f.data.md5,size:r.size},this.updateLocalCache(),[2]}})})},t.prototype.mkFileReq=function(){return ec(this,void 0,void 0,function(){var n,a,r=this;return tc(this,function(o){switch(o.label){case 0:return n=Sc(Sc(Sc({parts:this.uploadedList.map(function(s,l){return{etag:s.etag,partNumber:l+1}}),fname:this.putExtra.fname},this.putExtra.mimeType&&{mimeType:this.putExtra.mimeType}),this.putExtra.customVars&&{customVars:this.putExtra.customVars}),this.putExtra.metadata&&{metadata:this.putExtra.metadata}),this.logger.info("parts upload completed, make file.",n),[4,G0e(this.token,this.key,this.getUploadInfo(),{onCreate:function(s){return r.addXhr(s)},body:JSON.stringify(n)})];case 1:return a=o.sent(),this.logger.info("finish Resume Progress."),this.updateMkFileProgress(1),[2,a]}})})},t.prototype.initBeforeUploadChunks=function(){return ec(this,void 0,void 0,function(){var n,a,r;return tc(this,function(o){switch(o.label){case 0:return this.uploadedList=[],this.usedCacheList=[],n=D0e(this.getLocalKey(),this.logger),n?[3,2]:(this.logger.info("init upload parts from api."),[4,q0e(this.token,this.bucketName,this.key,this.uploadHost.getUrl())]);case 1:return a=o.sent(),this.logger.info("initd upload parts of id: "+a.data.uploadId+"."),this.uploadId=a.data.uploadId,this.cachedUploadedList=[],[3,3];case 2:r=["resume upload parts from local cache,","total "+n.data.length+" part,","id is "+n.id+"."],this.logger.info(r.join(" ")),this.cachedUploadedList=n.data,this.uploadId=n.id,o.label=3;case 3:return this.chunks=O0e(this.file,this.config.chunkSize),this.loaded={mkFileProgress:0,chunks:this.chunks.map(function(s){return 0})},this.notifyResumeProgress(),[2]}})})},t.prototype.getUploadInfo=function(){return{id:this.uploadId,url:this.uploadHost.getUrl()}},t.prototype.getLocalKey=function(){return R0e(this.file.name,this.key,this.file.size)},t.prototype.updateLocalCache=function(){P0e(this.getLocalKey(),{id:this.uploadId,data:this.uploadedList},this.logger)},t.prototype.updateChunkProgress=function(n,a){this.loaded.chunks[a]=n,this.notifyResumeProgress()},t.prototype.updateMkFileProgress=function(n){this.loaded.mkFileProgress=n,this.notifyResumeProgress()},t.prototype.notifyResumeProgress=function(){var n=this;this.progress={total:this.getProgressInfoItem($0e(this.loaded.chunks)+this.loaded.mkFileProgress,this.file.size+1),chunks:this.chunks.map(function(a,r){var o=n.usedCacheList[r];return n.getProgressInfoItem(n.loaded.chunks[r],a.size,o)}),uploadInfo:{id:this.uploadId,url:this.uploadHost.getUrl()}},this.onData(this.progress)},t}(Q_),h8=globalThis&&globalThis.__awaiter||function(e,t,n,a){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(c){try{i(a.next(c))}catch(f){s(f)}}function u(c){try{i(a.throw(c))}catch(f){s(f)}}function i(c){c.done?o(c.value):r(c.value).then(l,u)}i((a=a.apply(e,t||[])).next())})},v8=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,r,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(i){return function(c){return u([i,c])}}function u(i){if(a)throw new TypeError("Generator is already executing.");for(;n;)try{if(a=1,r&&(o=i[0]&2?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[i[0]&2,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return n.label++,{value:i[1],done:!1};case 5:n.label++,r=i[1],i=[0];continue;case 7:i=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]>>1^3988292384:a>>>=1;t[n]=a}return t},e.prototype.append=function(t){for(var n=this.crc,a=0;a>>8^this.table[(n^t[a])&255];this.crc=n},e.prototype.compute=function(){return(this.crc^-1)>>>0},e.prototype.readAsUint8Array=function(t){return h8(this,void 0,void 0,function(){var n;return v8(this,function(a){switch(a.label){case 0:return typeof t.arrayBuffer!="function"?[3,2]:(n=Uint8Array.bind,[4,t.arrayBuffer()]);case 1:return[2,new(n.apply(Uint8Array,[void 0,a.sent()]))];case 2:return[2,new Promise(function(r,o){var s=new FileReader;s.onload=function(){if(s.result==null){o();return}if(typeof s.result=="string"){o();return}r(new Uint8Array(s.result))},s.readAsArrayBuffer(t)})]}})})},e.prototype.file=function(t){return h8(this,void 0,void 0,function(){var n,a,r,o,s,l;return v8(this,function(u){switch(u.label){case 0:return t.size<=Li?(n=this.append,[4,this.readAsUint8Array(t)]):[3,2];case 1:return n.apply(this,[u.sent()]),[2,this.compute()];case 2:a=Math.ceil(t.size/Li),r=0,u.label=3;case 3:return r0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]0&&ek(e,t,n-1)};var r=[t.code||"",t.reqId||"",t.host||"",t.remoteIp||"",t.port||"",t.duration||"",t.time||"",t.bytesSent||"",t.upType||"",t.size||""].join(",");a.send(r)}var upe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),r,o=[],s;try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(l){s={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(s)throw s.error}}return o},_v=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]0)&&!(r=a.next()).done;)o.push(r.value)}catch(l){s={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(s)throw s.error}}return o},fpe=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t=t},e.prototype.freeze=function(t){t===void 0&&(t=20);var n=new Date().getTime()+t*1e3;Af.set(this.host,n)},e.prototype.unfreeze=function(){Af.delete(this.host)},e.prototype.getUrl=function(){return this.protocol+"://"+this.host},e.prototype.getUnfreezeTime=function(){return Af.get(this.host)},e}(),hpe=function(){function e(t){t===void 0&&(t=[]),this.initHosts=t,this.cachedHostsMap=new Map}return e.prototype.register=function(t,n,a,r){this.cachedHostsMap.set(t+"@"+n,a.map(function(o){return new ppe(o,r)}))},e.prototype.refresh=function(t,n,a){var r,o,s,l;return g8(this,void 0,void 0,function(){var u,i,c;return y8(this,function(f){switch(f.label){case 0:return u=this.cachedHostsMap.get(t+"@"+n)||[],u.length>0?[2]:this.initHosts.length>0?(this.register(t,n,this.initHosts,a),[2]):[4,U0e(t,n,a)];case 1:return i=f.sent(),(i==null?void 0:i.data)!=null&&(c=fpe(((o=(r=i.data.up)===null||r===void 0?void 0:r.acc)===null||o===void 0?void 0:o.main)||[],((l=(s=i.data.up)===null||s===void 0?void 0:s.acc)===null||l===void 0?void 0:l.backup)||[]),this.register(t,n,c,a)),[2]}})})},e.prototype.getUp=function(t,n,a){return g8(this,void 0,void 0,function(){var r,o,s;return y8(this,function(l){switch(l.label){case 0:return[4,this.refresh(t,n,a)];case 1:return l.sent(),r=this.cachedHostsMap.get(t+"@"+n)||[],r.length===0?[2,null]:(o=r.filter(function(u){return!u.isFrozen()}),o.length>0?[2,o[0]]:(s=r.slice().sort(function(u,i){return(u.getUnfreezeTime()||0)-(i.getUnfreezeTime()||0)}),[2,s[0]]))}})})},e}();function vpe(e,t,n,a){return e.config&&e.config.forceDirect?(a.info("ues forceDirect mode."),new m8(e,t,n,a)):e.file.size>4*Li?(a.info("file size over 4M, use Resume."),new rpe(e,t,n,a)):(a.info("file size less or equal than 4M, use Direct."),new m8(e,t,n,a))}function mpe(e,t,n,a,r){var o=new cpe(n,r==null?void 0:r.disableStatisticsReport,r==null?void 0:r.debugLogLevel,e.name),s={file:e,key:t,token:n,putExtra:a,config:bpe(r,o)},l=new hpe(s.config.uphost);return new x0e(function(u){var i=vpe(s,{onData:function(c){return u.next(c)},onError:function(c){return u.error(c)},onComplete:function(c){return u.complete(c)}},l,o);return i.putFile(),i.stop.bind(i)})}var Bi=globalThis&&globalThis.__assign||function(){return Bi=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0)&&!(r=a.next()).done;)o.push(r.value)}catch(l){s={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(s)throw s.error}}return o},kv=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t({}),actions:{reminder(e){vu.error(e||"\u7CFB\u7EDF\u51FA\u9519")},ok(e){vu.success(e)},upImage(e,t,n){let a=e.name.split("."),r=a[a.length-1];xpe().then(o=>{o.code===Z0.ok.code?this._upImage(e,o.data,this._getFileName(t,r),n):this.reminder(o.message)})},_upImage(e,t,n,a){let r=this;const o={state:void 0,next(i){},error(i){r.reminder("\u4E0A\u4F20\u5931\u8D25")},complete(i){a(t.url+i.key,i.key)}};let s={useCdnDomain:!0,disableStatisticsReport:!0,retryCount:6},l={customVars:{}};mpe(e,n,t.token,l,s).subscribe(o)},_getFileName(e,t){var f;let n=new Date,a=n.getFullYear(),r=n.getMonth()+1,o=n.getDate(),s=n.getHours(),l=n.getMinutes(),u=n.getSeconds(),i=n.getMilliseconds(),c=Math.random();return c=parseInt(c*1e3),((f=Z0.imageType[e])!=null?f:"")+"/"+a+"/"+r+"/"+o+"/"+s+l+u+i+c+"."+t}}}),Cpe=()=>({user:kce(),app:t0e(),permission:o0e(),setting:p0e(),tagsView:h0e(),my:wpe()});var Mu=Cpe,Epe={name:"zh-cn",el:{breadcrumb:{label:"\u9762\u5305\u5C51"},colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A",defaultLabel:"\u989C\u8272\u9009\u62E9\u5668",description:"\u5F53\u524D\u989C\u8272 {color}\uFF0C\u6309 Enter \u952E\u9009\u62E9\u65B0\u989C\u8272",alphaLabel:"\u9009\u62E9\u900F\u660E\u5EA6\u7684\u503C",alphaDescription:"\u900F\u660E\u5EA6 {alpha}, \u5F53\u524D\u989C\u8272 {color}",hueLabel:"\u9009\u62E9\u8272\u76F8\u503C",hueDescription:"\u8272\u76F8 {hue}, \u5F53\u524D\u989C\u8272 {color}",svLabel:"\u9009\u62E9\u9971\u548C\u5EA6\u4E0E\u660E\u5EA6\u7684\u503C",svDescription:"\u9971\u548C\u5EA6 {saturation}, \u660E\u5EA6 {brightness}, \u5F53\u524D\u989C\u8272 {color}",predefineDescription:"\u9009\u62E9 {value} \u4F5C\u4E3A\u989C\u8272"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",dateTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u65E5\u671F",monthTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u6708\u4EFD",yearTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u5E74\u4EFD",selectedDate:"\u5DF2\u9009\u65E5\u671F",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},weeksFull:{sun:"\u661F\u671F\u65E5",mon:"\u661F\u671F\u4E00",tue:"\u661F\u671F\u4E8C",wed:"\u661F\u671F\u4E09",thu:"\u661F\u671F\u56DB",fri:"\u661F\u671F\u4E94",sat:"\u661F\u671F\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},inputNumber:{decrease:"\u51CF\u5C11\u6570\u503C",increase:"\u589E\u52A0\u6570\u503C"},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},mention:{loading:"\u52A0\u8F7D\u4E2D"},dropdown:{toggleDropdown:"\u5207\u6362\u4E0B\u62C9\u9009\u9879"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",page:"\u9875",prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",currentPage:"\u7B2C {pager} \u9875",prevPages:"\u5411\u524D {pager} \u9875",nextPages:"\u5411\u540E {pager} \u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},dialog:{close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},drawer:{close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!",close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},upload:{deleteTip:"\u6309 Delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},slider:{defaultLabel:"\u6ED1\u5757\u4ECB\u4E8E {min} \u81F3 {max}",defaultRangeStartLabel:"\u9009\u62E9\u8D77\u59CB\u503C",defaultRangeEndLabel:"\u9009\u62E9\u7ED3\u675F\u503C"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1",selectAllLabel:"\u9009\u62E9\u6240\u6709\u884C",selectRowLabel:"\u9009\u62E9\u5F53\u524D\u884C",expandRowLabel:"\u5C55\u5F00\u5F53\u524D\u884C",collapseRowLabel:"\u6536\u8D77\u5F53\u524D\u884C",sortLabel:"\u6309 {column} \u6392\u5E8F",filterLabel:"\u6309 {column} \u8FC7\u6EE4"},tag:{close:"\u5173\u95ED\u6B64\u6807\u7B7E"},tour:{next:"\u4E0B\u4E00\u6B65",previous:"\u4E0A\u4E00\u6B65",finish:"\u7ED3\u675F\u5BFC\u89C8",close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"},carousel:{leftArrow:"\u4E0A\u4E00\u5F20\u5E7B\u706F\u7247",rightArrow:"\u4E0B\u4E00\u5F20\u5E7B\u706F\u7247",indicator:"\u5E7B\u706F\u7247\u5207\u6362\u81F3\u7D22\u5F15 {index}"}}};const Spe=ve({__name:"App",setup(e){const{app:t}=Mu(),n=k(()=>t.language),a=k(()=>t.size),r=B();return ge(n,o=>{r.value=o=="en"?iw:Epe},{immediate:!0}),(o,s)=>{const l=Nt("router-view");return N(),he(d(CC),{locale:r.value,size:a.value},{default:re(()=>[ee(l)]),_:1},8,["locale","size"])}}});const _pe=(e,t,n,a)=>(e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)),kpe=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}(),Tpe=e=>{document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e},Ape=()=>document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,x8=(e,t,n)=>{const a=Ape(),r=e-a,o=20;let s=0;t=typeof t=="undefined"?500:t;const l=function(){s+=o;const u=_pe(s,a,r,t);Tpe(u),s{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n};const Ipe=ve({__name:"index",props:{total:{required:!0,type:Number,default:0},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},emits:["update:page","update:limit","pagination"],setup(e,{emit:t}){const n=e,a=t,r=k({get:()=>n.page,set:u=>{a("update:page",u)}}),o=k({get(){return n.limit},set(u){a("update:limit",u)}});function s(u){a("update:page",1),a("pagination",{page:1,limit:u}),n.autoScroll&&x8(0,800)}function l(u){r.value=u,a("pagination",{page:u,limit:n.limit}),n.autoScroll&&x8(0,800)}return(u,i)=>{const c=Nt("el-pagination");return N(),U("div",{class:R([{hidden:e.hidden},"pagination-container"])},[ee(c,{background:e.background,"current-page":r.value,"onUpdate:currentPage":i[0]||(i[0]=f=>r.value=f),"page-size":o.value,"onUpdate:pageSize":i[1]||(i[1]=f=>o.value=f),layout:e.layout,"page-sizes":e.pageSizes,total:e.total,onSizeChange:s,onCurrentChange:l},null,8,["background","current-page","page-size","layout","page-sizes","total"])],2)}}});var Npe=Ope(Ipe,[["__scopeId","data-v-72233bcd"]]),tk={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + */const dfe="9.14.5";function ffe(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(es().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(es().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(es().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(es().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(es().__INTLIFY_PROD_DEVTOOLS__=!1)}const I_=Ba.__EXTEND_POINT__,zo=oh(I_),$n={FALLBACK_TO_ROOT:I_,NOT_SUPPORTED_PRESERVE:zo(),NOT_SUPPORTED_FORMATTER:zo(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:zo(),NOT_SUPPORTED_GET_CHOICE_INDEX:zo(),COMPONENT_NAME_LEGACY_COMPATIBLE:zo(),NOT_FOUND_PARENT_SCOPE:zo(),IGNORE_OBJ_FLATTEN:zo(),NOTICE_DROP_ALLOW_COMPOSITION:zo(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:zo()},pfe={[$n.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[$n.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[$n.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[$n.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[$n.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[$n.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[$n.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[$n.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[$n.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see \u{1F449} https://tinyurl.com/2p97mcze",[$n.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Ya(e,...t){return U2(pfe[e],...t)}const N_=fa.__EXTEND_POINT__,qa=oh(N_),on={UNEXPECTED_RETURN_TYPE:N_,INVALID_ARGUMENT:qa(),MUST_BE_CALL_SETUP_TOP:qa(),NOT_INSTALLED:qa(),NOT_AVAILABLE_IN_LEGACY_MODE:qa(),REQUIRED_VALUE:qa(),INVALID_VALUE:qa(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:qa(),NOT_INSTALLED_WITH_PROVIDE:qa(),UNEXPECTED_ERROR:qa(),NOT_COMPATIBLE_LEGACY_VUE_I18N:qa(),BRIDGE_SUPPORT_VUE_2_ONLY:qa(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:qa(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:qa(),__EXTEND_POINT__:qa()};function ra(e,...t){return Du(e,null,{messages:hfe,args:t})}const hfe={[on.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[on.INVALID_ARGUMENT]:"Invalid argument",[on.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[on.NOT_INSTALLED]:"Need to install with `app.use` function",[on.UNEXPECTED_ERROR]:"Unexpected error",[on.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[on.REQUIRED_VALUE]:"Required in value: {0}",[on.INVALID_VALUE]:"Invalid value",[on.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[on.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[on.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[on.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[on.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",[on.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},v1=oo("__translateVNode"),m1=oo("__datetimeParts"),g1=oo("__numberParts"),ai=oo("__enableEmitter"),ld=oo("__disableEmitter"),$_=oo("__setPluralRules");oo("__intlifyMeta");const P_=oo("__injectWithOption"),y1=oo("__dispose");function id(e){if(!an(e)||_r(e))return e;for(const t in e)if(!!Mr(e,t))if(!t.includes("."))an(e[t])&&id(e[t]);else{const n=t.split("."),a=n.length-1;let r=e,o=!1;for(let s=0;s{if("locale"in l&&"resource"in l){const{locale:u,resource:i}=l;u?(s[u]=s[u]||wn(),r0(i,s[u])):r0(i,s)}else dt(l)&&r0(JSON.parse(l),s)}),r==null&&o)for(const l in s)Mr(s,l)&&id(s[l]);return s}function R_(e){return e.type}function D_(e,t,n){let a=an(t.messages)?t.messages:wn();"__i18nGlobal"in n&&(a=uh(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,a[o])});{if(an(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(an(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function e8(e){return ee(hs,null,e,0)}const t8="__INTLIFY_META__",n8=()=>[],vfe=()=>!1;let a8=0;function r8(e){return(t,n,a,r)=>e(n,a,it()||void 0,r)}const mfe=()=>{const e=it();let t=null;return e&&(t=R_(e)[t8])?{[t8]:t}:null};function Z2(e={},t){const{__root:n,__injectWithOption:a}=e,r=n===void 0,o=e.flatJson,s=Qr?B:Zt,l=!!e.translateExistCompatible;l&&XS(Ya($n.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let u=Jt(e.inheritLocale)?e.inheritLocale:!0;const i=s(n&&u?n.locale.value:dt(e.locale)?e.locale:Cu),c=s(n&&u?n.fallbackLocale.value:dt(e.fallbackLocale)||kn(e.fallbackLocale)||Ht(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),f=s(uh(i.value,e)),p=s(Ht(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),m=s(Ht(e.numberFormats)?e.numberFormats:{[i.value]:{}});let h=n?n.missingWarn:Jt(e.missingWarn)||rl(e.missingWarn)?e.missingWarn:!0,v=n?n.fallbackWarn:Jt(e.fallbackWarn)||rl(e.fallbackWarn)?e.fallbackWarn:!0,g=n?n.fallbackRoot:Jt(e.fallbackRoot)?e.fallbackRoot:!0,b=!!e.fallbackFormat,w=xn(e.missing)?e.missing:null,y=xn(e.missing)?r8(e.missing):null,x=xn(e.postTranslation)?e.postTranslation:null,C=n?n.warnHtmlMessage:Jt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter;const S=n?n.modifiers:Ht(e.modifiers)?e.modifiers:{};let T=e.pluralRules||n&&n.pluralRules,A;A=(()=>{r&&j6(null);const se={version:dfe,locale:i.value,fallbackLocale:c.value,messages:f.value,modifiers:S,pluralRules:T,missing:y===null?void 0:y,missingWarn:h,fallbackWarn:v,fallbackFormat:b,unresolving:!0,postTranslation:x===null?void 0:x,warnHtmlMessage:C,escapeParameter:E,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};se.datetimeFormats=p.value,se.numberFormats=m.value,se.__datetimeFormatters=Ht(A)?A.__datetimeFormatters:void 0,se.__numberFormatters=Ht(A)?A.__numberFormatters:void 0,se.__v_emitter=Ht(A)?A.__v_emitter:void 0;const ye=efe(se);return r&&j6(ye),ye})(),Zu(A,i.value,c.value);function O(){return[i.value,c.value,f.value,p.value,m.value]}const I=k({get:()=>i.value,set:se=>{i.value=se,A.locale=i.value}}),D=k({get:()=>c.value,set:se=>{c.value=se,A.fallbackLocale=c.value,Zu(A,i.value,se)}}),K=k(()=>f.value),j=k(()=>p.value),z=k(()=>m.value);function P(){return xn(x)?x:null}function $(se){x=se,A.postTranslation=se}function L(){return w}function W(se){se!==null&&(y=r8(se)),w=se,A.missing=y}function M(se,ye){return se!=="translate"||!ye.resolvedMessage}const F=(se,ye,$e,et,pt,ze)=>{O();let at;try{W6(mfe()),r||(A.fallbackContext=n?Qde():void 0),at=se(A)}finally{W6(null),r||(A.fallbackContext=void 0)}if($e!=="translate exists"&&Un(at)&&at===lh||$e==="translate exists"&&!at){const[st,Ce]=ye();if(n&&dt(st)&&M($e,Ce)){g&&(ih(v,st)||b_(h,st))&&Qn(Ya($n.FALLBACK_TO_ROOT,{key:st,type:$e}));{const{__v_emitter:je}=A;je&&g&&je.emit("fallback",{type:$e,key:st,to:"global",groupId:`${$e}:${st}`})}}return n&&g?et(n):pt(st)}else{if(ze(at))return at;throw ra(on.UNEXPECTED_RETURN_TYPE)}};function H(...se){return F(ye=>Reflect.apply(Y6,null,[ye,...se]),()=>f1(...se),"translate",ye=>Reflect.apply(ye.t,ye,[...se]),ye=>ye,ye=>dt(ye))}function q(...se){const[ye,$e,et]=se;if(et&&!an(et))throw ra(on.INVALID_ARGUMENT);return H(ye,$e,wa({resolvedMessage:!0},et||{}))}function Q(...se){return F(ye=>Reflect.apply(X6,null,[ye,...se]),()=>p1(...se),"datetime format",ye=>Reflect.apply(ye.d,ye,[...se]),()=>tp,ye=>dt(ye))}function de(...se){return F(ye=>Reflect.apply(Z6,null,[ye,...se]),()=>h1(...se),"number format",ye=>Reflect.apply(ye.n,ye,[...se]),()=>tp,ye=>dt(ye))}function Z(se){return se.map(ye=>dt(ye)||Un(ye)||Jt(ye)?e8(String(ye)):ye)}const ue={normalize:Z,interpolate:se=>se,type:"vnode"};function Y(...se){return F(ye=>{let $e;const et=ye;try{et.processor=ue,$e=Reflect.apply(Y6,null,[et,...se])}finally{et.processor=null}return $e},()=>f1(...se),"translate",ye=>ye[v1](...se),ye=>[e8(ye)],ye=>kn(ye))}function G(...se){return F(ye=>Reflect.apply(Z6,null,[ye,...se]),()=>h1(...se),"number format",ye=>ye[g1](...se),n8,ye=>dt(ye)||kn(ye))}function pe(...se){return F(ye=>Reflect.apply(X6,null,[ye,...se]),()=>p1(...se),"datetime format",ye=>ye[m1](...se),n8,ye=>dt(ye)||kn(ye))}function we(se){T=se,A.pluralRules=T}function V(se,ye){return F(()=>{if(!se)return!1;const $e=dt(ye)?ye:i.value,et=xe($e),pt=A.messageResolver(et,se);return l?pt!=null:_r(pt)||xr(pt)||dt(pt)},()=>[se],"translate exists",$e=>Reflect.apply($e.te,$e,[se,ye]),vfe,$e=>Jt($e))}function ne(se){let ye=null;const $e=p_(A,c.value,i.value);for(let et=0;et<$e.length;et++){const pt=f.value[$e[et]]||{},ze=A.messageResolver(pt,se);if(ze!=null){ye=ze;break}}return ye}function me(se){const ye=ne(se);return ye!=null?ye:n?n.tm(se)||{}:{}}function xe(se){return f.value[se]||{}}function Se(se,ye){if(o){const $e={[se]:ye};for(const et in $e)Mr($e,et)&&id($e[et]);ye=$e[se]}f.value[se]=ye,A.messages=f.value}function Ae(se,ye){f.value[se]=f.value[se]||{};const $e={[se]:ye};if(o)for(const et in $e)Mr($e,et)&&id($e[et]);ye=$e[se],r0(ye,f.value[se]),A.messages=f.value}function ae(se){return p.value[se]||{}}function J(se,ye){p.value[se]=ye,A.datetimeFormats=p.value,J6(A,se,ye)}function oe(se,ye){p.value[se]=wa(p.value[se]||{},ye),A.datetimeFormats=p.value,J6(A,se,ye)}function fe(se){return m.value[se]||{}}function Pe(se,ye){m.value[se]=ye,A.numberFormats=m.value,Q6(A,se,ye)}function Te(se,ye){m.value[se]=wa(m.value[se]||{},ye),A.numberFormats=m.value,Q6(A,se,ye)}a8++,n&&Qr&&(ge(n.locale,se=>{u&&(i.value=se,A.locale=se,Zu(A,i.value,c.value))}),ge(n.fallbackLocale,se=>{u&&(c.value=se,A.fallbackLocale=se,Zu(A,i.value,c.value))}));const De={id:a8,locale:I,fallbackLocale:D,get inheritLocale(){return u},set inheritLocale(se){u=se,se&&n&&(i.value=n.locale.value,c.value=n.fallbackLocale.value,Zu(A,i.value,c.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:K,get modifiers(){return S},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(se){h=se,A.missingWarn=h},get fallbackWarn(){return v},set fallbackWarn(se){v=se,A.fallbackWarn=v},get fallbackRoot(){return g},set fallbackRoot(se){g=se},get fallbackFormat(){return b},set fallbackFormat(se){b=se,A.fallbackFormat=b},get warnHtmlMessage(){return C},set warnHtmlMessage(se){C=se,A.warnHtmlMessage=se},get escapeParameter(){return E},set escapeParameter(se){E=se,A.escapeParameter=se},t:H,getLocaleMessage:xe,setLocaleMessage:Se,mergeLocaleMessage:Ae,getPostTranslationHandler:P,setPostTranslationHandler:$,getMissingHandler:L,setMissingHandler:W,[$_]:we};return De.datetimeFormats=j,De.numberFormats=z,De.rt=q,De.te=V,De.tm=me,De.d=Q,De.n=de,De.getDateTimeFormat=ae,De.setDateTimeFormat=J,De.mergeDateTimeFormat=oe,De.getNumberFormat=fe,De.setNumberFormat=Pe,De.mergeNumberFormat=Te,De[P_]=a,De[v1]=Y,De[m1]=pe,De[g1]=G,De[ai]=se=>{A.__v_emitter=se},De[ld]=()=>{A.__v_emitter=void 0},De}function gfe(e){const t=dt(e.locale)?e.locale:Cu,n=dt(e.fallbackLocale)||kn(e.fallbackLocale)||Ht(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=xn(e.missing)?e.missing:void 0,r=Jt(e.silentTranslationWarn)||rl(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=Jt(e.silentFallbackWarn)||rl(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=Jt(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,u=Ht(e.modifiers)?e.modifiers:{},i=e.pluralizationRules,c=xn(e.postTranslation)?e.postTranslation:void 0,f=dt(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,m=Jt(e.sync)?e.sync:!0;e.formatter&&Qn(Ya($n.NOT_SUPPORTED_FORMATTER)),e.preserveDirectiveContent&&Qn(Ya($n.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let h=e.messages;if(Ht(e.sharedMessages)){const E=e.sharedMessages;h=Object.keys(E).reduce((T,A)=>{const _=T[A]||(T[A]={});return wa(_,E[A]),T},h||{})}const{__i18n:v,__root:g,__injectWithOption:b}=e,w=e.datetimeFormats,y=e.numberFormats,x=e.flatJson,C=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:h,flatJson:x,datetimeFormats:w,numberFormats:y,missing:a,missingWarn:r,fallbackWarn:o,fallbackRoot:s,fallbackFormat:l,modifiers:u,pluralRules:i,postTranslation:c,warnHtmlMessage:f,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:m,translateExistCompatible:C,__i18n:v,__root:g,__injectWithOption:b}}function b1(e={},t){{const n=Z2(gfe(e)),{__extender:a}=e,r={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return Qn(Ya($n.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(o){Qn(Ya($n.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return Jt(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=Jt(o)?!o:o},get silentFallbackWarn(){return Jt(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=Jt(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return Qn(Ya($n.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(o){Qn(Ya($n.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[s,l,u]=o,i={};let c=null,f=null;if(!dt(s))throw ra(on.INVALID_ARGUMENT);const p=s;return dt(l)?i.locale=l:kn(l)?c=l:Ht(l)&&(f=l),kn(u)?c=u:Ht(u)&&(f=u),Reflect.apply(n.t,n,[p,c||f||{},i])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[s,l,u]=o,i={plural:1};let c=null,f=null;if(!dt(s))throw ra(on.INVALID_ARGUMENT);const p=s;return dt(l)?i.locale=l:Un(l)?i.plural=l:kn(l)?c=l:Ht(l)&&(f=l),dt(u)?i.locale=u:kn(u)?c=u:Ht(u)&&(f=u),Reflect.apply(n.t,n,[p,c||f||{},i])},te(o,s){return n.te(o,s)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,s){n.setLocaleMessage(o,s)},mergeLocaleMessage(o,s){n.mergeLocaleMessage(o,s)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,s){n.setDateTimeFormat(o,s)},mergeDateTimeFormat(o,s){n.mergeDateTimeFormat(o,s)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,s){n.setNumberFormat(o,s)},mergeNumberFormat(o,s){n.mergeNumberFormat(o,s)},getChoiceIndex(o,s){return Qn(Ya($n.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return r.__extender=a,r.__enableEmitter=o=>{const s=n;s[ai]&&s[ai](o)},r.__disableEmitter=()=>{const o=n;o[ld]&&o[ld]()},r}}const Q2={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function yfe({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,r)=>[...a,...r.type===Ue?r.children:[r]],[]):t.reduce((n,a)=>{const r=e[a];return r&&(n[a]=r()),n},wn())}function M_(e){return Ue}const bfe=ve({name:"i18n-t",props:wa({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Un(e)||!isNaN(e)}},Q2),setup(e,t){const{slots:n,attrs:a}=t,r=e.i18n||ty({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),s=wn();e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=dt(e.plural)?+e.plural:e.plural);const l=yfe(t,o),u=r[v1](e.keypath,l,s),i=wa(wn(),a),c=dt(e.tag)||an(e.tag)?e.tag:M_();return Xe(c,i,u)}}}),Cv=bfe;function xfe(e){return kn(e)&&!dt(e[0])}function L_(e,t,n,a){const{slots:r,attrs:o}=t;return()=>{const s={part:!0};let l=wn();e.locale&&(s.locale=e.locale),dt(e.format)?s.key=e.format:an(e.format)&&(dt(e.format.key)&&(s.key=e.format.key),l=Object.keys(e.format).reduce((p,m)=>n.includes(m)?wa(wn(),p,{[m]:e.format[m]}):p,wn()));const u=a(e.value,s,l);let i=[s.key];kn(u)?i=u.map((p,m)=>{const h=r[p.type],v=h?h({[p.type]:p.value,index:m,parts:u}):[p.value];return xfe(v)&&(v[0].key=`${p.type}-${m}`),v}):dt(u)&&(i=[u]);const c=wa(wn(),o),f=dt(e.tag)||an(e.tag)?e.tag:M_();return Xe(f,c,i)}}const wfe=ve({name:"i18n-n",props:wa({value:{type:Number,required:!0},format:{type:[String,Object]}},Q2),setup(e,t){const n=e.i18n||ty({useScope:e.scope,__useComponent:!0});return L_(e,t,O_,(...a)=>n[g1](...a))}}),o8=wfe,Cfe=ve({name:"i18n-d",props:wa({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Q2),setup(e,t){const n=e.i18n||ty({useScope:e.scope,__useComponent:!0});return L_(e,t,A_,(...a)=>n[m1](...a))}}),s8=Cfe;function Efe(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function Sfe(e){const t=s=>{const{instance:l,modifiers:u,value:i}=s;if(!l||!l.$)throw ra(on.UNEXPECTED_ERROR);const c=Efe(e,l.$);u.preserve&&Qn(Ya($n.NOT_SUPPORTED_PRESERVE));const f=l8(i);return[Reflect.apply(c.t,c,[...i8(f)]),c]};return{created:(s,l)=>{const[u,i]=t(l);Qr&&e.global===i&&(s.__i18nWatcher=ge(i.locale,()=>{l.instance&&l.instance.$forceUpdate()})),s.__composer=i,s.textContent=u},unmounted:s=>{Qr&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:l})=>{if(s.__composer){const u=s.__composer,i=l8(l);s.textContent=Reflect.apply(u.t,u,[...i8(i)])}},getSSRProps:s=>{const[l]=t(s);return{textContent:l}}}}function l8(e){if(dt(e))return{path:e};if(Ht(e)){if(!("path"in e))throw ra(on.REQUIRED_VALUE,"path");return e}else throw ra(on.INVALID_VALUE)}function i8(e){const{path:t,locale:n,args:a,choice:r,plural:o}=e,s={},l=a||{};return dt(n)&&(s.locale=n),Un(r)&&(s.plural=r),Un(o)&&(s.plural=o),[t,l,s]}function _fe(e,t,...n){const a=Ht(n[0])?n[0]:{},r=!!a.useI18nComponentName,o=Jt(a.globalInstall)?a.globalInstall:!0;o&&r&&Qn(Ya($n.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Cv.name})),o&&([r?"i18n":Cv.name,"I18nT"].forEach(s=>e.component(s,Cv)),[o8.name,"I18nN"].forEach(s=>e.component(s,o8)),[s8.name,"I18nD"].forEach(s=>e.component(s,s8))),e.directive("t",Sfe(t))}const Ev={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},kfe={["vue-i18n-resource-inspector"]:"Search for scopes ..."},Tfe={["vue-i18n-timeline"]:16764185},B_="vue-i18n: composer properties";let x1;async function Afe(e,t){return new Promise((n,a)=>{try{Yp({id:"vue-devtools-plugin-vue-i18n",label:Ev["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[B_],app:e},r=>{x1=r,r.on.visitComponentTree(({componentInstance:s,treeNode:l})=>{Ofe(s,l,t)}),r.on.inspectComponent(({componentInstance:s,instanceData:l})=>{s.vnode.el&&s.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?s.vnode.el.__VUE_I18N__!==t.global.__composer&&u8(l,s.vnode.el.__VUE_I18N__):u8(l,s.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:Ev["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:kfe["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&Rfe(s,t)});const o=new Map;r.on.getInspectorState(async s=>{if(s.app===e&&s.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),Mfe(s,t),s.nodeId==="global"){if(!o.has(s.app)){const[l]=await r.getComponentInstances(s.app);o.set(s.app,l)}r.highlightElement(o.get(s.app))}else{const l=Dfe(s.nodeId,t);l&&r.highlightElement(l)}}),r.on.editInspectorState(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&Bfe(s,t)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:Ev["vue-i18n-timeline"],color:Tfe["vue-i18n-timeline"]}),n(!0)})}catch(r){console.error(r),a(!1)}})}function F_(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ofe(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const r={label:`i18n (${F_(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(r)}}function u8(e,t){const n=B_;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:ey(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function ey(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];xn(a)&&"source"in a?t[n]=Pfe(a):_r(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:an(a)?t[n]=ey(a):t[n]=a}),t}const Ife={"<":"<",">":">",'"':""","&":"&"};function Nfe(e){return e.replace(/[<>"&]/g,$fe)}function $fe(e){return Ife[e]||e}function Pfe(e){const t=e.source?`("${Nfe(e.source)}")`:"(?)";return{_custom:{type:"function",display:`\u0192 ${t}`}}}function Rfe(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,r]of t.__instances){const o=t.mode==="composition"?r:r.__composer;n!==o&&e.rootNodes.push({id:o.id.toString(),label:`${F_(a)} Scope`})}}function Dfe(e,t){let n=null;if(e!=="global"){for(const[a,r]of t.__instances.entries())if(r.id.toString()===e){n=a;break}}return n}function V_(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Mfe(e,t){const n=V_(e.nodeId,t);return n&&(e.state=Lfe(n)),null}function Lfe(e){const t={},n="Locale related info",a=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=a;const r="Locale messages info",o=[{type:r,key:"messages",editable:!1,value:ey(e.messages.value)}];t[r]=o;{const s="Datetime formats info",l=[{type:s,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[s]=l;const u="Datetime formats info",i=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=i}return t}function ud(e,t){if(x1){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),x1.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Bfe(e,t){const n=V_(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&dt(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(dt(e.state.value)||kn(e.state.value)||an(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&Jt(e.state.value)&&(n.inheritLocale=e.state.value)}}function Ffe(e,t,n){return{beforeCreate(){const a=it();if(!a)throw ra(on.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const o=r.i18n;if(r.__i18n&&(o.__i18n=r.__i18n),o.__root=t,this===this.$root)this.$i18n=c8(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=b1(o);const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=c8(e,r);else{this.$i18n=b1({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&D_(t,r,r),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,s)=>this.$i18n.te(o,s),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(a,this.$i18n)},mounted(){if(this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const r=this.__v_emitter=q2();a.__enableEmitter&&a.__enableEmitter(r),r.on("*",ud)}},unmounted(){const a=it();if(!a)throw ra(on.UNEXPECTED_ERROR);const r=this.$i18n;this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",ud),delete this.__v_emitter),this.$i18n&&(r.__disableEmitter&&r.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(a),delete this.$i18n}}}function c8(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[$_](t.pluralizationRules||e.pluralizationRules);const n=uh(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const Vfe=oo("global-vue-i18n");function zfe(e={},t){const n=__VUE_I18N_LEGACY_API__&&Jt(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=Jt(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,o=new Map,[s,l]=Hfe(e,n),u=oo("vue-i18n");n&&r&&Qn(Ya($n.NOTICE_DROP_ALLOW_COMPOSITION));function i(p){return o.get(p)||null}function c(p,m){o.set(p,m)}function f(p){o.delete(p)}{const p={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(m,...h){if(m.__VUE_I18N__=p,m.__VUE_I18N_SYMBOL__=u,m.provide(m.__VUE_I18N_SYMBOL__,p),Ht(h[0])){const b=h[0];p.__composerExtend=b.__composerExtend,p.__vueI18nExtend=b.__vueI18nExtend}let v=null;!n&&a&&(v=Jfe(m,p.global)),__VUE_I18N_FULL_INSTALL__&&_fe(m,p,...h),__VUE_I18N_LEGACY_API__&&n&&m.mixin(Ffe(l,l.__composer,p));const g=m.unmount;m.unmount=()=>{v&&v(),p.dispose(),g()};{if(!await Afe(m,p))throw ra(on.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const w=q2();if(n){const y=l;y.__enableEmitter&&y.__enableEmitter(w)}else{const y=l;y[ai]&&y[ai](w)}w.on("*",ud)}},get global(){return l},dispose(){s.stop()},__instances:o,__getInstance:i,__setInstance:c,__deleteInstance:f};return p}}function ty(e={}){const t=it();if(t==null)throw ra(on.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ra(on.NOT_INSTALLED);const n=Wfe(t),a=Kfe(n),r=R_(t),o=jfe(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw ra(on.NOT_AVAILABLE_IN_LEGACY_MODE);return Gfe(t,o,a,e)}if(o==="global")return D_(a,e,r),a;if(o==="parent"){let u=Ufe(n,t,e.__useComponent);return u==null&&(Qn(Ya($n.NOT_FOUND_PARENT_SCOPE)),u=a),u}const s=n;let l=s.__getInstance(t);if(l==null){const u=wa({},e);"__i18n"in r&&(u.__i18n=r.__i18n),a&&(u.__root=a),l=Z2(u),s.__composerExtend&&(l[y1]=s.__composerExtend(l)),Yfe(s,t,l),s.__setInstance(t,l)}return l}function Hfe(e,t,n){const a=lp();{const r=__VUE_I18N_LEGACY_API__&&t?a.run(()=>b1(e)):a.run(()=>Z2(e));if(r==null)throw ra(on.UNEXPECTED_ERROR);return[a,r]}}function Wfe(e){{const t=Be(e.isCE?Vfe:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ra(e.isCE?on.NOT_INSTALLED_WITH_PROVIDE:on.UNEXPECTED_ERROR);return t}}function jfe(e,t){return rh(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Kfe(e){return e.mode==="composition"?e.global:e.global.__composer}function Ufe(e,t,n=!1){let a=null;const r=t.root;let o=qfe(t,n);for(;o!=null;){const s=e;if(e.mode==="composition")a=s.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const l=s.__getInstance(o);l!=null&&(a=l.__composer,n&&a&&!a[P_]&&(a=null))}if(a!=null||r===o)break;o=o.parent}return a}function qfe(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Yfe(e,t,n){let a=null;yt(()=>{if(t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=q2();const r=n;r[ai]&&r[ai](a),a.on("*",ud)}},t),oi(()=>{const r=n;t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",ud),r[ld]&&r[ld](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=r[y1];o&&(o(),delete r[y1])},t)}function Gfe(e,t,n,a={}){const r=t==="local",o=Zt(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ra(on.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=Jt(a.inheritLocale)?a.inheritLocale:!dt(a.locale),l=B(!r||s?n.locale.value:dt(a.locale)?a.locale:Cu),u=B(!r||s?n.fallbackLocale.value:dt(a.fallbackLocale)||kn(a.fallbackLocale)||Ht(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:l.value),i=B(uh(l.value,a)),c=B(Ht(a.datetimeFormats)?a.datetimeFormats:{[l.value]:{}}),f=B(Ht(a.numberFormats)?a.numberFormats:{[l.value]:{}}),p=r?n.missingWarn:Jt(a.missingWarn)||rl(a.missingWarn)?a.missingWarn:!0,m=r?n.fallbackWarn:Jt(a.fallbackWarn)||rl(a.fallbackWarn)?a.fallbackWarn:!0,h=r?n.fallbackRoot:Jt(a.fallbackRoot)?a.fallbackRoot:!0,v=!!a.fallbackFormat,g=xn(a.missing)?a.missing:null,b=xn(a.postTranslation)?a.postTranslation:null,w=r?n.warnHtmlMessage:Jt(a.warnHtmlMessage)?a.warnHtmlMessage:!0,y=!!a.escapeParameter,x=r?n.modifiers:Ht(a.modifiers)?a.modifiers:{},C=a.pluralRules||r&&n.pluralRules;function E(){return[l.value,u.value,i.value,c.value,f.value]}const S=k({get:()=>o.value?o.value.locale.value:l.value,set:V=>{o.value&&(o.value.locale.value=V),l.value=V}}),T=k({get:()=>o.value?o.value.fallbackLocale.value:u.value,set:V=>{o.value&&(o.value.fallbackLocale.value=V),u.value=V}}),A=k(()=>o.value?o.value.messages.value:i.value),_=k(()=>c.value),O=k(()=>f.value);function I(){return o.value?o.value.getPostTranslationHandler():b}function D(V){o.value&&o.value.setPostTranslationHandler(V)}function K(){return o.value?o.value.getMissingHandler():g}function j(V){o.value&&o.value.setMissingHandler(V)}function z(V){return E(),V()}function P(...V){return o.value?z(()=>Reflect.apply(o.value.t,null,[...V])):z(()=>"")}function $(...V){return o.value?Reflect.apply(o.value.rt,null,[...V]):""}function L(...V){return o.value?z(()=>Reflect.apply(o.value.d,null,[...V])):z(()=>"")}function W(...V){return o.value?z(()=>Reflect.apply(o.value.n,null,[...V])):z(()=>"")}function M(V){return o.value?o.value.tm(V):{}}function F(V,ne){return o.value?o.value.te(V,ne):!1}function H(V){return o.value?o.value.getLocaleMessage(V):{}}function q(V,ne){o.value&&(o.value.setLocaleMessage(V,ne),i.value[V]=ne)}function Q(V,ne){o.value&&o.value.mergeLocaleMessage(V,ne)}function de(V){return o.value?o.value.getDateTimeFormat(V):{}}function Z(V,ne){o.value&&(o.value.setDateTimeFormat(V,ne),c.value[V]=ne)}function ie(V,ne){o.value&&o.value.mergeDateTimeFormat(V,ne)}function ue(V){return o.value?o.value.getNumberFormat(V):{}}function Y(V,ne){o.value&&(o.value.setNumberFormat(V,ne),f.value[V]=ne)}function G(V,ne){o.value&&o.value.mergeNumberFormat(V,ne)}const pe={get id(){return o.value?o.value.id:-1},locale:S,fallbackLocale:T,messages:A,datetimeFormats:_,numberFormats:O,get inheritLocale(){return o.value?o.value.inheritLocale:s},set inheritLocale(V){o.value&&(o.value.inheritLocale=V)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(i.value)},get modifiers(){return o.value?o.value.modifiers:x},get pluralRules(){return o.value?o.value.pluralRules:C},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:p},set missingWarn(V){o.value&&(o.value.missingWarn=V)},get fallbackWarn(){return o.value?o.value.fallbackWarn:m},set fallbackWarn(V){o.value&&(o.value.missingWarn=V)},get fallbackRoot(){return o.value?o.value.fallbackRoot:h},set fallbackRoot(V){o.value&&(o.value.fallbackRoot=V)},get fallbackFormat(){return o.value?o.value.fallbackFormat:v},set fallbackFormat(V){o.value&&(o.value.fallbackFormat=V)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:w},set warnHtmlMessage(V){o.value&&(o.value.warnHtmlMessage=V)},get escapeParameter(){return o.value?o.value.escapeParameter:y},set escapeParameter(V){o.value&&(o.value.escapeParameter=V)},t:P,getPostTranslationHandler:I,setPostTranslationHandler:D,getMissingHandler:K,setMissingHandler:j,rt:$,d:L,n:W,tm:M,te:F,getLocaleMessage:H,setLocaleMessage:q,mergeLocaleMessage:Q,getDateTimeFormat:de,setDateTimeFormat:Z,mergeDateTimeFormat:ie,getNumberFormat:ue,setNumberFormat:Y,mergeNumberFormat:G};function we(V){V.locale.value=l.value,V.fallbackLocale.value=u.value,Object.keys(i.value).forEach(ne=>{V.mergeLocaleMessage(ne,i.value[ne])}),Object.keys(c.value).forEach(ne=>{V.mergeDateTimeFormat(ne,c.value[ne])}),Object.keys(f.value).forEach(ne=>{V.mergeNumberFormat(ne,f.value[ne])}),V.escapeParameter=y,V.fallbackFormat=v,V.fallbackRoot=h,V.fallbackWarn=m,V.missingWarn=p,V.warnHtmlMessage=w}return md(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ra(on.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const V=o.value=e.proxy.$i18n.__composer;t==="global"?(l.value=V.locale.value,u.value=V.fallbackLocale.value,i.value=V.messages.value,c.value=V.datetimeFormats.value,f.value=V.numberFormats.value):r&&we(V)}),pe}const Xfe=["locale","fallbackLocale","availableLocales"],d8=["t","rt","d","n","tm","te"];function Jfe(e,t){const n=Object.create(null);return Xfe.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw ra(on.UNEXPECTED_ERROR);const s=jt(o.value)?{get(){return o.value.value},set(l){o.value.value=l}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,s)}),e.config.globalProperties.$i18n=n,d8.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw ra(on.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,d8.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}ffe();__INTLIFY_JIT_COMPILATION__?H6(ofe):H6(rfe);Xde(Ide);Jde(p_);{const e=es();e.__INTLIFY__=!0,Fde(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var Zfe={route:{dashboard:"Dashboard",document:"Document"},login:{title:"vue3-element-admin",username:"Username",password:"Password",login:"Login",code:"Verification Code",copyright:"",icp:""},navbar:{dashboard:"Dashboard",logout:"Logout",password:"Password",add:"Add",search:"Search",refresh:"ReFresh"}},Qfe={route:{dashboard:"\u9996\u9875",document:"\u9879\u76EE\u6587\u6863"},login:{title:"\u7BA1\u7406\u5E73\u53F0",username:"\u7528\u6237\u540D",password:"\u5BC6\u7801",login:"\u767B \u5F55",code:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",copyright:"",icp:""},navbar:{dashboard:"\u9996\u9875",logout:"\u6CE8\u9500",password:"\u4FEE\u6539\u5BC6\u7801",add:"\u65B0\u5EFA",search:"\u641C\u7D22",refresh:"\u91CD\u7F6E"}};const z_={"zh-cn":{...Qfe},en:{...Zfe}},H_=()=>{let e=_n.get("language");if(e)return e;e=navigator.language.toLowerCase();const t=Object.keys(z_);for(const n of t)if(e.indexOf(n)>-1)return n;return"zh-cn"},e0e=zfe({locale:H_(),messages:z_}),t0e=Ru({id:"app",state:()=>({device:"desktop",sidebar:{opened:_n.get("sidebarStatus")?!!+_n.get("sidebarStatus"):!0,withoutAnimation:!1},language:H_(),size:_n.get("size")||"default"}),actions:{toggleSidebar(){this.sidebar.opened=!this.sidebar.opened,this.sidebar.withoutAnimation=!1,this.sidebar.opened?_n.set("sidebarStatus",1):_n.set("sidebarStatus",0)},closeSideBar(e){_n.set("sidebarStatus",0),this.sidebar.opened=!1,this.sidebar.withoutAnimation=e},toggleDevice(e){this.device=e},setSize(e){this.size=e,_n.set("size",e)},setLanguage(e){this.language=e,_n.set("language",e)}}});function n0e(e){return Fn({url:"admin/routes",method:"post",data:e})}function Gpe(e){return Fn({url:"/youlai-admin/api/v1/menus",method:"get",params:e})}function Xpe(){return Fn({url:"/youlai-admin/api/v1/menus/options",method:"get"})}function Jpe(e){return Fn({url:"/youlai-admin/api/v1/menus/"+e,method:"delete"})}function Zpe(){return Fn({url:"/youlai-admin/api/v1/menus/resources",method:"get"})}function Qpe(e){return Fn({url:"/youlai-admin/api/v1/menus/"+e,method:"get"})}function ehe(e){return Fn({url:"/youlai-admin/api/v1/menus",method:"post",data:e})}function the(e,t){return Fn({url:"/youlai-admin/api/v1/menus/"+e,method:"put",data:t})}const Sv={"../../views/admin/index.vue":()=>Qt(()=>import("./index.ba523f48.js"),["assets/index.ba523f48.js","assets/table.5e79e8f5.css","assets/admin.a2e5b1ce.js","assets/filter.6957b13e.js","assets/editDialog.204a8c3f.js","assets/editPassword.1a9e2736.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js","assets/plus.14dbe932.js","assets/edit.147639b3.js"]),"../../views/dashboard/index.vue":()=>Qt(()=>import("./index.99c049d5.js"),["assets/index.99c049d5.js","assets/index.ba661266.css","assets/index.0dc1fe7a.js","assets/index.7447c703.css"]),"../../views/error-page/401.vue":()=>Qt(()=>import("./401.4d4ce405.js"),["assets/401.4d4ce405.js","assets/401.86848da3.css"]),"../../views/error-page/404.vue":()=>Qt(()=>import("./404.dde565c1.js"),["assets/404.dde565c1.js","assets/404.25bc9844.css"]),"../../views/log/action.vue":()=>Qt(()=>import("./action.25025aa2.js"),["assets/action.25025aa2.js","assets/action.7327164c.css","assets/table.5e79e8f5.css","assets/index.bb4ad3c3.js","assets/filter.6957b13e.js","assets/index.15ffec52.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js"]),"../../views/log/login.vue":()=>Qt(()=>import("./login.a1c6a85c.js"),["assets/login.a1c6a85c.js","assets/action.7327164c.css","assets/table.5e79e8f5.css","assets/index.bb4ad3c3.js","assets/filter.6957b13e.js","assets/index.c080f8a2.js","assets/index.6f7c26aa.css","assets/plugin-vue_export-helper.41ffa612.js","assets/search.8b061963.js"]),"../../views/login/index.vue":()=>Qt(()=>import("./index.9e77111a.js"),["assets/index.9e77111a.js","assets/index.ec71488e.css","assets/plugin-vue_export-helper.41ffa612.js","assets/lock.2eb1d007.js"]),"../../views/redirect/index.vue":()=>Qt(()=>import("./index.9a5b39df.js"),[]),"../../views/store/storeAccountList.vue":()=>Qt(()=>import("./storeAccountList.180b144a.js"),["assets/storeAccountList.180b144a.js","assets/storeAccountList.e443791b.css","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js"]),"../../views/user/archiveDetail.vue":()=>Qt(()=>import("./archiveDetail.fa7cf578.js"),["assets/archiveDetail.fa7cf578.js","assets/archiveDetail.9e056896.css","assets/index.c839390e.js","assets/userArchiveImages.4465f956.js"]),"../../views/user/index.vue":()=>Qt(()=>import("./index.2f4e4498.js"),["assets/index.2f4e4498.js","assets/index.2b902592.css","assets/index.c839390e.js","assets/userArchiveImages.4465f956.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js"]),"../../views/user/userAnalysis.vue":()=>Qt(()=>import("./userAnalysis.32c435a5.js"),["assets/userAnalysis.32c435a5.js","assets/userAnalysis.b260f445.css","assets/index.c839390e.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js"]),"../../views/user/userDetection.vue":()=>Qt(()=>import("./userDetection.94c3a814.js"),["assets/userDetection.94c3a814.js","assets/userDetection.c5eee74d.css","assets/index.c839390e.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js"]),"../../views/user/userQuestion.vue":()=>Qt(()=>import("./userQuestion.2ff3272c.js"),["assets/userQuestion.2ff3272c.js","assets/userQuestion.8a35497b.css","assets/index.c839390e.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js"]),"../../views/admin/components/editDialog.vue":()=>Qt(()=>import("./editDialog.204a8c3f.js"),["assets/editDialog.204a8c3f.js","assets/admin.a2e5b1ce.js","assets/filter.6957b13e.js"]),"../../views/admin/components/editPassword.vue":()=>Qt(()=>import("./editPassword.1a9e2736.js"),["assets/editPassword.1a9e2736.js","assets/admin.a2e5b1ce.js","assets/filter.6957b13e.js"]),"../../views/authority/admin/index.vue":()=>Qt(()=>import("./index.f4020f83.js"),["assets/index.f4020f83.js","assets/index.3082f74a.css","assets/table.5e79e8f5.css","assets/admin.a2e5b1ce.js","assets/filter.6957b13e.js","assets/editDialog.81608e38.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js","assets/plus.14dbe932.js"]),"../../views/authority/authority/index.vue":()=>Qt(()=>import("./index.958a46d5.js"),["assets/index.958a46d5.js","assets/table.5e79e8f5.css","assets/index.15ffec52.js","assets/filter.6957b13e.js","assets/index.c080f8a2.js","assets/index.6f7c26aa.css","assets/plugin-vue_export-helper.41ffa612.js","assets/index.c7b8a3d2.js","assets/index.9520a07b.css","assets/editDialog.89105c7f.js","assets/index.2c44e258.js","assets/index.0998872b.css","assets/plus.14dbe932.js","assets/edit.147639b3.js"]),"../../views/authority/role/index.vue":()=>Qt(()=>import("./index.a6cac437.js"),["assets/index.a6cac437.js","assets/index.3082f74a.css","assets/table.5e79e8f5.css","assets/editDialog.0a92660a.js","assets/filter.6957b13e.js","assets/index.15ffec52.js","assets/plus.14dbe932.js","assets/plugin-vue_export-helper.41ffa612.js","assets/edit.147639b3.js"]),"../../views/company/project/index.vue":()=>Qt(()=>import("./index.6d5c7009.js"),["assets/index.6d5c7009.js","assets/table.5e79e8f5.css","assets/editDialog.8ba00e76.js","assets/editDialog.7a3c2f6f.css","assets/filter.6957b13e.js","assets/plus.14dbe932.js","assets/plugin-vue_export-helper.41ffa612.js","assets/edit.147639b3.js"]),"../../views/system/menu/index.vue":()=>Qt(()=>import("./index.c8fcff8a.js"),["assets/index.c8fcff8a.js","assets/index.c7b8a3d2.js","assets/index.9520a07b.css","assets/Menu.01d87ba5.js","assets/index.2c44e258.js","assets/index.0998872b.css","assets/plus.14dbe932.js","assets/plugin-vue_export-helper.41ffa612.js","assets/search.8b061963.js","assets/edit.147639b3.js","assets/delete.17c46fee.js","assets/Perm.11170364.js","assets/Perm.8328f1bc.css"]),"../../views/system/role/index.vue":()=>Qt(()=>import("./index.b006d48a.js"),["assets/index.b006d48a.js","assets/index.20ec8834.css","assets/role.03b16bdd.js","assets/index.c7b8a3d2.js","assets/index.9520a07b.css","assets/plus.14dbe932.js","assets/plugin-vue_export-helper.41ffa612.js","assets/delete.17c46fee.js","assets/search.8b061963.js","assets/edit.147639b3.js"]),"../../views/system/user/index.vue":()=>Qt(()=>import("./index.41e36efc.js"),["assets/index.41e36efc.js","assets/role.03b16bdd.js","assets/search.8b061963.js","assets/plugin-vue_export-helper.41ffa612.js","assets/plus.14dbe932.js","assets/delete.17c46fee.js","assets/edit.147639b3.js","assets/lock.2eb1d007.js"]),"../../views/authority/admin/components/editDialog.vue":()=>Qt(()=>import("./editDialog.81608e38.js"),["assets/editDialog.81608e38.js","assets/admin.a2e5b1ce.js","assets/filter.6957b13e.js"]),"../../views/authority/authority/components/editDialog.vue":()=>Qt(()=>import("./editDialog.89105c7f.js"),["assets/editDialog.89105c7f.js","assets/index.15ffec52.js","assets/filter.6957b13e.js","assets/index.c7b8a3d2.js","assets/index.9520a07b.css","assets/index.2c44e258.js","assets/index.0998872b.css"]),"../../views/authority/role/components/editDialog.vue":()=>Qt(()=>import("./editDialog.0a92660a.js").then(function(e){return e.e}),["assets/editDialog.0a92660a.js","assets/filter.6957b13e.js"]),"../../views/company/project/components/editDialog.vue":()=>Qt(()=>import("./editDialog.8ba00e76.js").then(function(e){return e.e}),["assets/editDialog.8ba00e76.js","assets/editDialog.7a3c2f6f.css","assets/filter.6957b13e.js"]),"../../views/dashboard/components/Project/index.vue":()=>Qt(()=>import("./index.0dc1fe7a.js"),["assets/index.0dc1fe7a.js","assets/index.7447c703.css"]),"../../views/system/menu/components/Menu.vue":()=>Qt(()=>import("./Menu.01d87ba5.js"),["assets/Menu.01d87ba5.js","assets/index.c7b8a3d2.js","assets/index.9520a07b.css","assets/index.2c44e258.js","assets/index.0998872b.css","assets/plus.14dbe932.js","assets/plugin-vue_export-helper.41ffa612.js","assets/search.8b061963.js","assets/edit.147639b3.js","assets/delete.17c46fee.js"]),"../../views/system/menu/components/Perm.vue":()=>Qt(()=>import("./Perm.11170364.js"),["assets/Perm.11170364.js","assets/Perm.8328f1bc.css","assets/plus.14dbe932.js","assets/plugin-vue_export-helper.41ffa612.js","assets/delete.17c46fee.js","assets/search.8b061963.js","assets/edit.147639b3.js"])},a0e=()=>Qt(()=>import("./index.67768140.js"),["assets/index.67768140.js","assets/index.a7697668.css","assets/plugin-vue_export-helper.41ffa612.js","assets/index.c7b8a3d2.js","assets/index.9520a07b.css"]),r0e=(e,t)=>t.meta&&t.meta.roles?e.includes("ROOT")?!0:e.some(n=>{var a;if(((a=t.meta)==null?void 0:a.roles)!==void 0)return t.meta.roles.includes(n)}):!1,W_=(e,t)=>{const n=[];return e.forEach(a=>{const r={...a};r0e(t,r)&&(r.component=="Layout"?r.component=a0e:Sv[`../../views/${r.component}.vue`]?r.component=Sv[`../../views/${r.component}.vue`]:r.component=Sv["../../views/error-page/404.vue"],n.push(r),r.children&&(r.children=W_(r.children,t)))}),n},o0e=Ru({id:"permission",state:()=>({routes:[],addRoutes:[]}),actions:{setRoutes(e){this.addRoutes=e,this.routes=GS.concat(e)},generateRoutes(e){return new Promise((t,n)=>{n0e({project_id:br.projectId}).then(a=>{if(a.code!==Z0.ok.code)return n(a.message||"Error");var r=[];_n.remove(br.authKey),r=K_(a.data.menu),s0e(a.data.auth),_n.set(br.authKey,j_);const o=W_(r,e);this.setRoutes(o),t(o)})})}}}),s0e=e=>{if(!!e)for(var t=0;t{if(!e)return[];for(var t=[],n=0;n({theme:_n.get("theme")||getComputedStyle(f0e).getPropertyValue("--el-color-primary"),showSettings:i0e,tagsView:_n.get("tagsView")!=null?_n.get("tagsView"):u0e,fixedHeader:c0e,sidebarLogo:d0e}),actions:{async changeSetting(e){const{key:t,value:n}=e;switch(t){case"theme":this.theme=n;break;case"showSettings":this.showSettings=n;break;case"fixedHeader":this.fixedHeader=n;break;case"tagsView":this.tagsView=n,_n.set("tagsView",n);break;case"sidebarLogo":this.sidebarLogo=n;break}}}}),h0e=Ru({id:"tagsView",state:()=>({visitedViews:[],cachedViews:[]}),actions:{addVisitedView(e){var t,n;this.visitedViews.some(a=>a.path===e.path)||(e.meta&&e.meta.affix?this.visitedViews.unshift(Object.assign({},e,{title:((t=e.meta)==null?void 0:t.title)||"no-name"})):this.visitedViews.push(Object.assign({},e,{title:((n=e.meta)==null?void 0:n.title)||"no-name"})))},addCachedView(e){this.cachedViews.includes(e.name)||e.meta.keepAlive&&this.cachedViews.push(e.name)},delVisitedView(e){return new Promise(t=>{for(const[n,a]of this.visitedViews.entries())if(a.path===e.path){this.visitedViews.splice(n,1);break}t([...this.visitedViews])})},delCachedView(e){return new Promise(t=>{const n=this.cachedViews.indexOf(e.name);n>-1&&this.cachedViews.splice(n,1),t([...this.cachedViews])})},delOtherVisitedViews(e){return new Promise(t=>{this.visitedViews=this.visitedViews.filter(n=>{var a;return((a=n.meta)==null?void 0:a.affix)||n.path===e.path}),t([...this.visitedViews])})},delOtherCachedViews(e){return new Promise(t=>{const n=this.cachedViews.indexOf(e.name);n>-1?this.cachedViews=this.cachedViews.slice(n,n+1):this.cachedViews=[],t([...this.cachedViews])})},updateVisitedView(e){for(let t of this.visitedViews)if(t.path===e.path){t=Object.assign(t,e);break}},addView(e){this.addVisitedView(e),this.addCachedView(e)},delView(e){return new Promise(t=>{this.delVisitedView(e),this.delCachedView(e),t({visitedViews:[...this.visitedViews],cachedViews:[...this.cachedViews]})})},delOtherViews(e){return new Promise(t=>{this.delOtherVisitedViews(e),this.delOtherCachedViews(e),t({visitedViews:[...this.visitedViews],cachedViews:[...this.cachedViews]})})},delLeftViews(e){return new Promise(t=>{const n=this.visitedViews.findIndex(a=>a.path===e.path);n!==-1&&(this.visitedViews=this.visitedViews.filter((a,r)=>{if(r>=n||a.meta&&a.meta.affix)return!0;const o=this.cachedViews.indexOf(a.name);return o>-1&&this.cachedViews.splice(o,1),!1}),t({visitedViews:[...this.visitedViews]}))})},delRightViews(e){return new Promise(t=>{const n=this.visitedViews.findIndex(a=>a.path===e.path);n!==-1&&(this.visitedViews=this.visitedViews.filter((a,r)=>{if(r<=n||a.meta&&a.meta.affix)return!0;const o=this.cachedViews.indexOf(a.name);return o>-1&&this.cachedViews.splice(o,1),!1}),t({visitedViews:[...this.visitedViews]}))})},delAllViews(){return new Promise(e=>{const t=this.visitedViews.filter(n=>{var a;return(a=n.meta)==null?void 0:a.affix});this.visitedViews=t,this.cachedViews=[],e({visitedViews:[...this.visitedViews],cachedViews:[...this.cachedViews]})})},delAllVisitedViews(){return new Promise(e=>{const t=this.visitedViews.filter(n=>{var a;return(a=n.meta)==null?void 0:a.affix});this.visitedViews=t,e([...this.visitedViews])})},delAllCachedViews(){return new Promise(e=>{this.cachedViews=[],e([...this.cachedViews])})}}});var U_=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var o in r)r.hasOwnProperty(o)&&(a[o]=r[o])},e(t,n)};return function(t,n){e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ln;(function(e){e.InvalidFile="InvalidFile",e.InvalidToken="InvalidToken",e.InvalidMetadata="InvalidMetadata",e.InvalidChunkSize="InvalidChunkSize",e.InvalidCustomVars="InvalidCustomVars",e.NotAvailableUploadHost="NotAvailableUploadHost",e.ReadCacheFailed="ReadCacheFailed",e.InvalidCacheData="InvalidCacheData",e.WriteCacheFailed="WriteCacheFailed",e.RemoveCacheFailed="RemoveCacheFailed",e.GetCanvasContextFailed="GetCanvasContextFailed",e.UnsupportedFileType="UnsupportedFileType",e.FileReaderReadFailed="FileReaderReadFailed",e.NotAvailableXMLHttpRequest="NotAvailableXMLHttpRequest",e.InvalidProgressEventTarget="InvalidProgressEventTarget",e.RequestError="RequestError"})(Ln||(Ln={}));var Kn=function(){function e(t,n){this.name=t,this.message=n,this.stack=new Error().stack}return e}(),cd=function(e){U_(t,e);function t(n,a,r,o){var s=e.call(this,Ln.RequestError,r)||this;return s.code=n,s.reqId=a,s.isRequestError=!0,s.data=o,s}return t}(Kn),v0e=function(e){U_(t,e);function t(n,a){return a===void 0&&(a=""),e.call(this,0,a,n)||this}return t}(cd),m0e=function(){function e(t,n){this.runTask=t,this.limit=n,this.aborted=!1,this.queue=[],this.processing=[]}return e.prototype.enqueue=function(t){var n=this;return new Promise(function(a,r){n.queue.push({task:t,resolve:a,reject:r}),n.check()})},e.prototype.run=function(t){var n=this;this.queue=this.queue.filter(function(a){return a!==t}),this.processing.push(t),this.runTask(t.task).then(function(){n.processing=n.processing.filter(function(a){return a!==t}),t.resolve(),n.check()},function(a){return t.reject(a)})},e.prototype.check=function(){var t=this;if(!this.aborted){var n=this.processing.length,a=this.limit-n;this.queue.slice(0,a).forEach(function(r){t.run(r)})}},e.prototype.abort=function(){this.queue=[],this.aborted=!0},e}(),g0e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var o in r)r.hasOwnProperty(o)&&(a[o]=r[o])},e(t,n)};return function(t,n){e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ec=globalThis&&globalThis.__assign||function(){return Ec=Object.assign||function(e){for(var t,n=1,a=arguments.length;n127&&l<2048)u=String.fromCharCode(l>>6|192,l&63|128);else if((l&63488^55296)>0)u=String.fromCharCode(l>>12|224,l>>6&63|128,l&63|128);else{if((l&64512^55296)>0)throw new RangeError("Unmatched trail surrogate at "+s);var i=t.charCodeAt(++s);if((i&64512^56320)>0)throw new RangeError("Unmatched lead surrogate at "+(s-1));l=((l&1023)<<10)+(i&1023)+65536,u=String.fromCharCode(l>>18|240,l>>12&63|128,l>>6&63|128,l&63|128)}u!==null&&(r>a&&(n+=t.slice(a,r)),n+=u,a=r=s+1)}return r>a&&(n+=t.slice(a,o)),n}function C0e(e){var t=[],n=0,a=0,r=0;for(e+="";n>10&1023)),t.push(String.fromCharCode(56320|a&1023))):t.push(String.fromCharCode(a)),n+=r}return t.join("")}function E0e(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n,a,r,o,s,l,u,i,c=0,f=0,p="",m=[];if(!e)return e;e=w0e(e+"");do n=e.charCodeAt(c++),a=e.charCodeAt(c++),r=e.charCodeAt(c++),i=n<<16|a<<8|r,o=i>>18&63,s=i>>12&63,l=i>>6&63,u=i&63,m[f++]=t.charAt(o)+t.charAt(s)+t.charAt(l)+t.charAt(u);while(c>16&255,a=i>>8&255,r=i&255,l===64?m[f++]=String.fromCharCode(n):u===64?m[f++]=String.fromCharCode(n,a):m[f++]=String.fromCharCode(n,a,r);while(c>>25)+x|0,E+=(y&x|~y&C)+w[1]-389564586|0,E=(E<<12|E>>>20)+y|0,C+=(E&y|~E&x)+w[2]+606105819|0,C=(C<<17|C>>>15)+E|0,x+=(C&E|~C&y)+w[3]-1044525330|0,x=(x<<22|x>>>10)+C|0,y+=(x&C|~x&E)+w[4]-176418897|0,y=(y<<7|y>>>25)+x|0,E+=(y&x|~y&C)+w[5]+1200080426|0,E=(E<<12|E>>>20)+y|0,C+=(E&y|~E&x)+w[6]-1473231341|0,C=(C<<17|C>>>15)+E|0,x+=(C&E|~C&y)+w[7]-45705983|0,x=(x<<22|x>>>10)+C|0,y+=(x&C|~x&E)+w[8]+1770035416|0,y=(y<<7|y>>>25)+x|0,E+=(y&x|~y&C)+w[9]-1958414417|0,E=(E<<12|E>>>20)+y|0,C+=(E&y|~E&x)+w[10]-42063|0,C=(C<<17|C>>>15)+E|0,x+=(C&E|~C&y)+w[11]-1990404162|0,x=(x<<22|x>>>10)+C|0,y+=(x&C|~x&E)+w[12]+1804603682|0,y=(y<<7|y>>>25)+x|0,E+=(y&x|~y&C)+w[13]-40341101|0,E=(E<<12|E>>>20)+y|0,C+=(E&y|~E&x)+w[14]-1502002290|0,C=(C<<17|C>>>15)+E|0,x+=(C&E|~C&y)+w[15]+1236535329|0,x=(x<<22|x>>>10)+C|0,y+=(x&E|C&~E)+w[1]-165796510|0,y=(y<<5|y>>>27)+x|0,E+=(y&C|x&~C)+w[6]-1069501632|0,E=(E<<9|E>>>23)+y|0,C+=(E&x|y&~x)+w[11]+643717713|0,C=(C<<14|C>>>18)+E|0,x+=(C&y|E&~y)+w[0]-373897302|0,x=(x<<20|x>>>12)+C|0,y+=(x&E|C&~E)+w[5]-701558691|0,y=(y<<5|y>>>27)+x|0,E+=(y&C|x&~C)+w[10]+38016083|0,E=(E<<9|E>>>23)+y|0,C+=(E&x|y&~x)+w[15]-660478335|0,C=(C<<14|C>>>18)+E|0,x+=(C&y|E&~y)+w[4]-405537848|0,x=(x<<20|x>>>12)+C|0,y+=(x&E|C&~E)+w[9]+568446438|0,y=(y<<5|y>>>27)+x|0,E+=(y&C|x&~C)+w[14]-1019803690|0,E=(E<<9|E>>>23)+y|0,C+=(E&x|y&~x)+w[3]-187363961|0,C=(C<<14|C>>>18)+E|0,x+=(C&y|E&~y)+w[8]+1163531501|0,x=(x<<20|x>>>12)+C|0,y+=(x&E|C&~E)+w[13]-1444681467|0,y=(y<<5|y>>>27)+x|0,E+=(y&C|x&~C)+w[2]-51403784|0,E=(E<<9|E>>>23)+y|0,C+=(E&x|y&~x)+w[7]+1735328473|0,C=(C<<14|C>>>18)+E|0,x+=(C&y|E&~y)+w[12]-1926607734|0,x=(x<<20|x>>>12)+C|0,y+=(x^C^E)+w[5]-378558|0,y=(y<<4|y>>>28)+x|0,E+=(y^x^C)+w[8]-2022574463|0,E=(E<<11|E>>>21)+y|0,C+=(E^y^x)+w[11]+1839030562|0,C=(C<<16|C>>>16)+E|0,x+=(C^E^y)+w[14]-35309556|0,x=(x<<23|x>>>9)+C|0,y+=(x^C^E)+w[1]-1530992060|0,y=(y<<4|y>>>28)+x|0,E+=(y^x^C)+w[4]+1272893353|0,E=(E<<11|E>>>21)+y|0,C+=(E^y^x)+w[7]-155497632|0,C=(C<<16|C>>>16)+E|0,x+=(C^E^y)+w[10]-1094730640|0,x=(x<<23|x>>>9)+C|0,y+=(x^C^E)+w[13]+681279174|0,y=(y<<4|y>>>28)+x|0,E+=(y^x^C)+w[0]-358537222|0,E=(E<<11|E>>>21)+y|0,C+=(E^y^x)+w[3]-722521979|0,C=(C<<16|C>>>16)+E|0,x+=(C^E^y)+w[6]+76029189|0,x=(x<<23|x>>>9)+C|0,y+=(x^C^E)+w[9]-640364487|0,y=(y<<4|y>>>28)+x|0,E+=(y^x^C)+w[12]-421815835|0,E=(E<<11|E>>>21)+y|0,C+=(E^y^x)+w[15]+530742520|0,C=(C<<16|C>>>16)+E|0,x+=(C^E^y)+w[2]-995338651|0,x=(x<<23|x>>>9)+C|0,y+=(C^(x|~E))+w[0]-198630844|0,y=(y<<6|y>>>26)+x|0,E+=(x^(y|~C))+w[7]+1126891415|0,E=(E<<10|E>>>22)+y|0,C+=(y^(E|~x))+w[14]-1416354905|0,C=(C<<15|C>>>17)+E|0,x+=(E^(C|~y))+w[5]-57434055|0,x=(x<<21|x>>>11)+C|0,y+=(C^(x|~E))+w[12]+1700485571|0,y=(y<<6|y>>>26)+x|0,E+=(x^(y|~C))+w[3]-1894986606|0,E=(E<<10|E>>>22)+y|0,C+=(y^(E|~x))+w[10]-1051523|0,C=(C<<15|C>>>17)+E|0,x+=(E^(C|~y))+w[1]-2054922799|0,x=(x<<21|x>>>11)+C|0,y+=(C^(x|~E))+w[8]+1873313359|0,y=(y<<6|y>>>26)+x|0,E+=(x^(y|~C))+w[15]-30611744|0,E=(E<<10|E>>>22)+y|0,C+=(y^(E|~x))+w[6]-1560198380|0,C=(C<<15|C>>>17)+E|0,x+=(E^(C|~y))+w[13]+1309151649|0,x=(x<<21|x>>>11)+C|0,y+=(C^(x|~E))+w[4]-145523070|0,y=(y<<6|y>>>26)+x|0,E+=(x^(y|~C))+w[11]-1120210379|0,E=(E<<10|E>>>22)+y|0,C+=(y^(E|~x))+w[2]+718787259|0,C=(C<<15|C>>>17)+E|0,x+=(E^(C|~y))+w[9]-343485551|0,x=(x<<21|x>>>11)+C|0,b[0]=y+b[0]|0,b[1]=x+b[1]|0,b[2]=C+b[2]|0,b[3]=E+b[3]|0}function o(b){var w=[],y;for(y=0;y<64;y+=4)w[y>>2]=b.charCodeAt(y)+(b.charCodeAt(y+1)<<8)+(b.charCodeAt(y+2)<<16)+(b.charCodeAt(y+3)<<24);return w}function s(b){var w=[],y;for(y=0;y<64;y+=4)w[y>>2]=b[y]+(b[y+1]<<8)+(b[y+2]<<16)+(b[y+3]<<24);return w}function l(b){var w=b.length,y=[1732584193,-271733879,-1732584194,271733878],x,C,E,S,T,A;for(x=64;x<=w;x+=64)r(y,o(b.substring(x-64,x)));for(b=b.substring(x-64),C=b.length,E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x>2]|=b.charCodeAt(x)<<(x%4<<3);if(E[x>>2]|=128<<(x%4<<3),x>55)for(r(y,E),x=0;x<16;x+=1)E[x]=0;return S=w*8,S=S.toString(16).match(/(.*?)(.{0,8})$/),T=parseInt(S[2],16),A=parseInt(S[1],16)||0,E[14]=T,E[15]=A,r(y,E),y}function u(b){var w=b.length,y=[1732584193,-271733879,-1732584194,271733878],x,C,E,S,T,A;for(x=64;x<=w;x+=64)r(y,s(b.subarray(x-64,x)));for(b=x-64>2]|=b[x]<<(x%4<<3);if(E[x>>2]|=128<<(x%4<<3),x>55)for(r(y,E),x=0;x<16;x+=1)E[x]=0;return S=w*8,S=S.toString(16).match(/(.*?)(.{0,8})$/),T=parseInt(S[2],16),A=parseInt(S[1],16)||0,E[14]=T,E[15]=A,r(y,E),y}function i(b){var w="",y;for(y=0;y<4;y+=1)w+=a[b>>y*8+4&15]+a[b>>y*8&15];return w}function c(b){var w;for(w=0;wE?new ArrayBuffer(0):(S=E-C,T=new ArrayBuffer(S),A=new Uint8Array(T),_=new Uint8Array(this,C,S),A.set(_),T)}}();function f(b){return/[\u0080-\uFFFF]/.test(b)&&(b=unescape(encodeURIComponent(b))),b}function p(b,w){var y=b.length,x=new ArrayBuffer(y),C=new Uint8Array(x),E;for(E=0;E>2]|=w.charCodeAt(x)<<(x%4<<3);return this._finish(C,y),E=c(this._hash),b&&(E=v(E)),this.reset(),E},g.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},g.prototype.setState=function(b){return this._buff=b.buff,this._length=b.length,this._hash=b.hash,this},g.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},g.prototype._finish=function(b,w){var y=w,x,C,E;if(b[y>>2]|=128<<(y%4<<3),y>55)for(r(this._hash,b),y=0;y<16;y+=1)b[y]=0;x=this._length*8,x=x.toString(16).match(/(.*?)(.{0,8})$/),C=parseInt(x[2],16),E=parseInt(x[1],16)||0,b[14]=C,b[15]=E,r(this._hash,b)},g.hash=function(b,w){return g.hashBinary(f(b),w)},g.hashBinary=function(b,w){var y=l(b),x=c(y);return w?v(x):x},g.ArrayBuffer=function(){this.reset()},g.ArrayBuffer.prototype.append=function(b){var w=h(this._buff.buffer,b,!0),y=w.length,x;for(this._length+=b.byteLength,x=64;x<=y;x+=64)r(this._hash,s(w.subarray(x-64,x)));return this._buff=x-64>2]|=w[C]<<(C%4<<3);return this._finish(x,y),E=c(this._hash),b&&(E=v(E)),this.reset(),E},g.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.ArrayBuffer.prototype.getState=function(){var b=g.prototype.getState.call(this);return b.buff=m(b.buff),b},g.ArrayBuffer.prototype.setState=function(b){return b.buff=p(b.buff,!0),g.prototype.setState.call(this,b)},g.ArrayBuffer.prototype.destroy=g.prototype.destroy,g.ArrayBuffer.prototype._finish=g.prototype._finish,g.ArrayBuffer.hash=function(b,w){var y=u(new Uint8Array(b)),x=c(y);return w?v(x):x},g})})(Y_);var k0e=Y_.exports,np=globalThis&&globalThis.__assign||function(){return np=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]e.size)n=e.size;else for(;e.size>n*1e4;)n*=2;for(var a=[],r=Math.ceil(e.size/n),o=0;o3?t[1]:t[0];if(!n)throw new Kn(Ln.InvalidToken,"missing assess key field.");var a=null;try{a=JSON.parse(_0e(t[t.length-1]))}catch{throw new Kn(Ln.InvalidToken,"token parse failed.")}if(a==null)throw new Kn(Ln.InvalidToken,"putPolicy is null.");if(a.scope==null)throw new Kn(Ln.InvalidToken,"scope field is null.");var r=a.scope.split(":")[0];if(!r)throw new Kn(Ln.InvalidToken,"resolve bucketName failed.");return{assessKey:n,bucketName:r,scope:a.scope}}var Ts,Ti={z0:"z0",z1:"z1",z2:"z2",na0:"na0",as0:"as0",cnEast2:"cn-east-2"},H0e=(Ts={},Ts[Ti.z0]={srcUphost:["up.qiniup.com"],cdnUphost:["upload.qiniup.com"]},Ts[Ti.z1]={srcUphost:["up-z1.qiniup.com"],cdnUphost:["upload-z1.qiniup.com"]},Ts[Ti.z2]={srcUphost:["up-z2.qiniup.com"],cdnUphost:["upload-z2.qiniup.com"]},Ts[Ti.na0]={srcUphost:["up-na0.qiniup.com"],cdnUphost:["upload-na0.qiniup.com"]},Ts[Ti.as0]={srcUphost:["up-as0.qiniup.com"],cdnUphost:["upload-as0.qiniup.com"]},Ts[Ti.cnEast2]={srcUphost:["up-cn-east-2.qiniup.com"],cdnUphost:["upload-cn-east-2.qiniup.com"]},Ts),Qu=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},W0e=function(e,t,n,a){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(r){var o=encodeURIComponent(Qu(r))+n;return Array.isArray(e[r])?e[r].map(function(s){return o+encodeURIComponent(Qu(s))}).join(t):o+encodeURIComponent(Qu(e[r]))}).filter(Boolean).join(t):a?encodeURIComponent(Qu(a))+n+encodeURIComponent(Qu(e)):""},X_;X_=W0e;var ri=globalThis&&globalThis.__assign||function(){return ri=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]0)&&!(r=a.next()).done;)o.push(r.value)}catch(l){s={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(s)throw s.error}}return o},Z0e=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t1e4*tpe)return this.handleError(new Kn(Ln.InvalidFile,"file size exceed maximum value 10000G")),[2];if(this.putExtra.customVars&&!N0e(this.putExtra.customVars))return this.handleError(new Kn(Ln.InvalidCustomVars,"customVars key should start width x:")),[2];if(this.putExtra.metadata&&!I0e(this.putExtra.metadata))return this.handleError(new Kn(Ln.InvalidMetadata,"metadata key should start with x-qn-meta-")),[2];o.label=1;case 1:return o.trys.push([1,4,,5]),this.uploadAt=new Date().getTime(),[4,this.checkAndUpdateUploadHost()];case 2:return o.sent(),[4,this.run()];case 3:return t=o.sent(),this.onComplete(t.data),this.checkAndUnfreezeHost(),this.sendLog(t.reqId,200),[2];case 4:return n=o.sent(),this.aborted?(this.logger.warn("upload is aborted."),this.sendLog("",-2),[2]):(this.clear(),this.logger.error(n),n instanceof cd&&(this.sendLog(n.reqId,n.code),this.checkAndFreezeHost(n),a=++this.retryCount<=this.config.retryCount,r=epe.includes(n.code),r&&a)?(this.logger.warn("error auto retry: "+this.retryCount+"/"+this.config.retryCount+"."),this.putFile(),[2]):(this.onError(n),[3,5]));case 5:return[2]}})})},e.prototype.clear=function(){this.xhrList.forEach(function(t){t.onreadystatechange=null,t.abort()}),this.xhrList=[],this.logger.info("cleanup uploading xhr.")},e.prototype.stop=function(){this.logger.info("aborted."),this.clear(),this.aborted=!0},e.prototype.addXhr=function(t){this.xhrList.push(t)},e.prototype.sendLog=function(t,n){var a,r;this.logger.report({code:n,reqId:t,remoteIp:"",upType:"jssdk-h5",size:this.file.size,time:Math.floor(this.uploadAt/1e3),port:V0e((a=this.uploadHost)===null||a===void 0?void 0:a.getUrl()),host:z0e((r=this.uploadHost)===null||r===void 0?void 0:r.getUrl()),bytesSent:this.progress?this.progress.total.loaded:0,duration:Math.floor((new Date().getTime()-this.uploadAt)/1e3)})},e.prototype.getProgressInfoItem=function(t,n,a){return ap({size:n,loaded:t,percent:t/n*100},a==null?{}:{fromCache:a})},e}(),npe=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var o in r)r.hasOwnProperty(o)&&(a[o]=r[o])},e(t,n)};return function(t,n){e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Sc=globalThis&&globalThis.__assign||function(){return Sc=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]1024)throw new Kn(Ln.InvalidChunkSize,"chunkSize maximum value is 1024");return[4,this.initBeforeUploadChunks()];case 1:u.sent(),n=new m0e(function(i){return ec(l,void 0,void 0,function(){return tc(this,function(c){switch(c.label){case 0:if(this.aborted)throw n.abort(),new Error("pool is aborted");return[4,this.uploadChunk(i)];case 1:return c.sent(),[2]}})})},this.config.concurrentRequestLimit),a=null,r=this.getLocalKey(),o=this.chunks.map(function(i,c){return n.enqueue({chunk:i,index:c})}),u.label=2;case 2:return u.trys.push([2,5,,6]),[4,Promise.all(o)];case 3:return u.sent(),[4,this.mkFileReq()];case 4:return a=u.sent(),[3,6];case 5:throw s=u.sent(),s instanceof cd&&(s.code===612||s.code===400)&&w1(r,this.logger),s;case 6:return w1(r,this.logger),[2,a]}})})},t.prototype.uploadChunk=function(n){return ec(this,void 0,void 0,function(){var a,r,o,s,l,u,i,c,f,p=this;return tc(this,function(m){switch(m.label){case 0:return a=n.index,r=n.chunk,o=this.cachedUploadedList[a],this.logger.info("upload part "+a+", cache:",o),s=this.config.checkByMD5,l=function(){p.usedCacheList[a]=!0,p.updateChunkProgress(r.size,a),p.uploadedList[a]=o,p.updateLocalCache()},o&&!s?(l(),[2]):[4,B0e(r)];case 1:return u=m.sent(),this.logger.info("computed part md5.",u),o&&u===o.md5?(l(),[2]):(this.usedCacheList[a]=!1,i=function(h){p.updateChunkProgress(h.loaded,a)},c={body:r,md5:this.config.checkByServer?u:void 0,onProgress:i,onCreate:function(h){return p.addXhr(h)}},this.logger.info("part "+a+" start uploading."),[4,Y0e(this.token,this.key,n.index+1,this.getUploadInfo(),c)]);case 2:return f=m.sent(),this.logger.info("part "+a+" upload completed."),i({loaded:r.size,total:r.size}),this.uploadedList[a]={etag:f.data.etag,md5:f.data.md5,size:r.size},this.updateLocalCache(),[2]}})})},t.prototype.mkFileReq=function(){return ec(this,void 0,void 0,function(){var n,a,r=this;return tc(this,function(o){switch(o.label){case 0:return n=Sc(Sc(Sc({parts:this.uploadedList.map(function(s,l){return{etag:s.etag,partNumber:l+1}}),fname:this.putExtra.fname},this.putExtra.mimeType&&{mimeType:this.putExtra.mimeType}),this.putExtra.customVars&&{customVars:this.putExtra.customVars}),this.putExtra.metadata&&{metadata:this.putExtra.metadata}),this.logger.info("parts upload completed, make file.",n),[4,G0e(this.token,this.key,this.getUploadInfo(),{onCreate:function(s){return r.addXhr(s)},body:JSON.stringify(n)})];case 1:return a=o.sent(),this.logger.info("finish Resume Progress."),this.updateMkFileProgress(1),[2,a]}})})},t.prototype.initBeforeUploadChunks=function(){return ec(this,void 0,void 0,function(){var n,a,r;return tc(this,function(o){switch(o.label){case 0:return this.uploadedList=[],this.usedCacheList=[],n=D0e(this.getLocalKey(),this.logger),n?[3,2]:(this.logger.info("init upload parts from api."),[4,q0e(this.token,this.bucketName,this.key,this.uploadHost.getUrl())]);case 1:return a=o.sent(),this.logger.info("initd upload parts of id: "+a.data.uploadId+"."),this.uploadId=a.data.uploadId,this.cachedUploadedList=[],[3,3];case 2:r=["resume upload parts from local cache,","total "+n.data.length+" part,","id is "+n.id+"."],this.logger.info(r.join(" ")),this.cachedUploadedList=n.data,this.uploadId=n.id,o.label=3;case 3:return this.chunks=O0e(this.file,this.config.chunkSize),this.loaded={mkFileProgress:0,chunks:this.chunks.map(function(s){return 0})},this.notifyResumeProgress(),[2]}})})},t.prototype.getUploadInfo=function(){return{id:this.uploadId,url:this.uploadHost.getUrl()}},t.prototype.getLocalKey=function(){return R0e(this.file.name,this.key,this.file.size)},t.prototype.updateLocalCache=function(){P0e(this.getLocalKey(),{id:this.uploadId,data:this.uploadedList},this.logger)},t.prototype.updateChunkProgress=function(n,a){this.loaded.chunks[a]=n,this.notifyResumeProgress()},t.prototype.updateMkFileProgress=function(n){this.loaded.mkFileProgress=n,this.notifyResumeProgress()},t.prototype.notifyResumeProgress=function(){var n=this;this.progress={total:this.getProgressInfoItem($0e(this.loaded.chunks)+this.loaded.mkFileProgress,this.file.size+1),chunks:this.chunks.map(function(a,r){var o=n.usedCacheList[r];return n.getProgressInfoItem(n.loaded.chunks[r],a.size,o)}),uploadInfo:{id:this.uploadId,url:this.uploadHost.getUrl()}},this.onData(this.progress)},t}(Q_),h8=globalThis&&globalThis.__awaiter||function(e,t,n,a){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(c){try{i(a.next(c))}catch(f){s(f)}}function u(c){try{i(a.throw(c))}catch(f){s(f)}}function i(c){c.done?o(c.value):r(c.value).then(l,u)}i((a=a.apply(e,t||[])).next())})},v8=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,r,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(i){return function(c){return u([i,c])}}function u(i){if(a)throw new TypeError("Generator is already executing.");for(;n;)try{if(a=1,r&&(o=i[0]&2?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[i[0]&2,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return n.label++,{value:i[1],done:!1};case 5:n.label++,r=i[1],i=[0];continue;case 7:i=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]>>1^3988292384:a>>>=1;t[n]=a}return t},e.prototype.append=function(t){for(var n=this.crc,a=0;a>>8^this.table[(n^t[a])&255];this.crc=n},e.prototype.compute=function(){return(this.crc^-1)>>>0},e.prototype.readAsUint8Array=function(t){return h8(this,void 0,void 0,function(){var n;return v8(this,function(a){switch(a.label){case 0:return typeof t.arrayBuffer!="function"?[3,2]:(n=Uint8Array.bind,[4,t.arrayBuffer()]);case 1:return[2,new(n.apply(Uint8Array,[void 0,a.sent()]))];case 2:return[2,new Promise(function(r,o){var s=new FileReader;s.onload=function(){if(s.result==null){o();return}if(typeof s.result=="string"){o();return}r(new Uint8Array(s.result))},s.readAsArrayBuffer(t)})]}})})},e.prototype.file=function(t){return h8(this,void 0,void 0,function(){var n,a,r,o,s,l;return v8(this,function(u){switch(u.label){case 0:return t.size<=Li?(n=this.append,[4,this.readAsUint8Array(t)]):[3,2];case 1:return n.apply(this,[u.sent()]),[2,this.compute()];case 2:a=Math.ceil(t.size/Li),r=0,u.label=3;case 3:return r0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]0&&ek(e,t,n-1)};var r=[t.code||"",t.reqId||"",t.host||"",t.remoteIp||"",t.port||"",t.duration||"",t.time||"",t.bytesSent||"",t.upType||"",t.size||""].join(",");a.send(r)}var upe=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),r,o=[],s;try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(l){s={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(s)throw s.error}}return o},_v=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]0)&&!(r=a.next()).done;)o.push(r.value)}catch(l){s={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(s)throw s.error}}return o},fpe=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t=t},e.prototype.freeze=function(t){t===void 0&&(t=20);var n=new Date().getTime()+t*1e3;Af.set(this.host,n)},e.prototype.unfreeze=function(){Af.delete(this.host)},e.prototype.getUrl=function(){return this.protocol+"://"+this.host},e.prototype.getUnfreezeTime=function(){return Af.get(this.host)},e}(),hpe=function(){function e(t){t===void 0&&(t=[]),this.initHosts=t,this.cachedHostsMap=new Map}return e.prototype.register=function(t,n,a,r){this.cachedHostsMap.set(t+"@"+n,a.map(function(o){return new ppe(o,r)}))},e.prototype.refresh=function(t,n,a){var r,o,s,l;return g8(this,void 0,void 0,function(){var u,i,c;return y8(this,function(f){switch(f.label){case 0:return u=this.cachedHostsMap.get(t+"@"+n)||[],u.length>0?[2]:this.initHosts.length>0?(this.register(t,n,this.initHosts,a),[2]):[4,U0e(t,n,a)];case 1:return i=f.sent(),(i==null?void 0:i.data)!=null&&(c=fpe(((o=(r=i.data.up)===null||r===void 0?void 0:r.acc)===null||o===void 0?void 0:o.main)||[],((l=(s=i.data.up)===null||s===void 0?void 0:s.acc)===null||l===void 0?void 0:l.backup)||[]),this.register(t,n,c,a)),[2]}})})},e.prototype.getUp=function(t,n,a){return g8(this,void 0,void 0,function(){var r,o,s;return y8(this,function(l){switch(l.label){case 0:return[4,this.refresh(t,n,a)];case 1:return l.sent(),r=this.cachedHostsMap.get(t+"@"+n)||[],r.length===0?[2,null]:(o=r.filter(function(u){return!u.isFrozen()}),o.length>0?[2,o[0]]:(s=r.slice().sort(function(u,i){return(u.getUnfreezeTime()||0)-(i.getUnfreezeTime()||0)}),[2,s[0]]))}})})},e}();function vpe(e,t,n,a){return e.config&&e.config.forceDirect?(a.info("ues forceDirect mode."),new m8(e,t,n,a)):e.file.size>4*Li?(a.info("file size over 4M, use Resume."),new rpe(e,t,n,a)):(a.info("file size less or equal than 4M, use Direct."),new m8(e,t,n,a))}function mpe(e,t,n,a,r){var o=new cpe(n,r==null?void 0:r.disableStatisticsReport,r==null?void 0:r.debugLogLevel,e.name),s={file:e,key:t,token:n,putExtra:a,config:bpe(r,o)},l=new hpe(s.config.uphost);return new x0e(function(u){var i=vpe(s,{onData:function(c){return u.next(c)},onError:function(c){return u.error(c)},onComplete:function(c){return u.complete(c)}},l,o);return i.putFile(),i.stop.bind(i)})}var Bi=globalThis&&globalThis.__assign||function(){return Bi=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0)&&!(r=a.next()).done;)o.push(r.value)}catch(l){s={error:l}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(s)throw s.error}}return o},kv=globalThis&&globalThis.__spread||function(){for(var e=[],t=0;t({}),actions:{reminder(e){vu.error(e||"\u7CFB\u7EDF\u51FA\u9519")},ok(e){vu.success(e)},upImage(e,t,n){let a=e.name.split("."),r=a[a.length-1];xpe().then(o=>{o.code===Z0.ok.code?this._upImage(e,o.data,this._getFileName(t,r),n):this.reminder(o.message)})},_upImage(e,t,n,a){let r=this;const o={state:void 0,next(i){},error(i){r.reminder("\u4E0A\u4F20\u5931\u8D25")},complete(i){a(t.url+i.key,i.key)}};let s={useCdnDomain:!0,disableStatisticsReport:!0,retryCount:6},l={customVars:{}};mpe(e,n,t.token,l,s).subscribe(o)},_getFileName(e,t){var f;let n=new Date,a=n.getFullYear(),r=n.getMonth()+1,o=n.getDate(),s=n.getHours(),l=n.getMinutes(),u=n.getSeconds(),i=n.getMilliseconds(),c=Math.random();return c=parseInt(c*1e3),((f=Z0.imageType[e])!=null?f:"")+"/"+a+"/"+r+"/"+o+"/"+s+l+u+i+c+"."+t}}}),Cpe=()=>({user:kce(),app:t0e(),permission:o0e(),setting:p0e(),tagsView:h0e(),my:wpe()});var Mu=Cpe,Epe={name:"zh-cn",el:{breadcrumb:{label:"\u9762\u5305\u5C51"},colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A",defaultLabel:"\u989C\u8272\u9009\u62E9\u5668",description:"\u5F53\u524D\u989C\u8272 {color}\uFF0C\u6309 Enter \u952E\u9009\u62E9\u65B0\u989C\u8272",alphaLabel:"\u9009\u62E9\u900F\u660E\u5EA6\u7684\u503C",alphaDescription:"\u900F\u660E\u5EA6 {alpha}, \u5F53\u524D\u989C\u8272 {color}",hueLabel:"\u9009\u62E9\u8272\u76F8\u503C",hueDescription:"\u8272\u76F8 {hue}, \u5F53\u524D\u989C\u8272 {color}",svLabel:"\u9009\u62E9\u9971\u548C\u5EA6\u4E0E\u660E\u5EA6\u7684\u503C",svDescription:"\u9971\u548C\u5EA6 {saturation}, \u660E\u5EA6 {brightness}, \u5F53\u524D\u989C\u8272 {color}",predefineDescription:"\u9009\u62E9 {value} \u4F5C\u4E3A\u989C\u8272"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",dateTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u65E5\u671F",monthTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u6708\u4EFD",yearTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u5E74\u4EFD",selectedDate:"\u5DF2\u9009\u65E5\u671F",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},weeksFull:{sun:"\u661F\u671F\u65E5",mon:"\u661F\u671F\u4E00",tue:"\u661F\u671F\u4E8C",wed:"\u661F\u671F\u4E09",thu:"\u661F\u671F\u56DB",fri:"\u661F\u671F\u4E94",sat:"\u661F\u671F\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},inputNumber:{decrease:"\u51CF\u5C11\u6570\u503C",increase:"\u589E\u52A0\u6570\u503C"},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},mention:{loading:"\u52A0\u8F7D\u4E2D"},dropdown:{toggleDropdown:"\u5207\u6362\u4E0B\u62C9\u9009\u9879"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",page:"\u9875",prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",currentPage:"\u7B2C {pager} \u9875",prevPages:"\u5411\u524D {pager} \u9875",nextPages:"\u5411\u540E {pager} \u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},dialog:{close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},drawer:{close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!",close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},upload:{deleteTip:"\u6309 Delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},slider:{defaultLabel:"\u6ED1\u5757\u4ECB\u4E8E {min} \u81F3 {max}",defaultRangeStartLabel:"\u9009\u62E9\u8D77\u59CB\u503C",defaultRangeEndLabel:"\u9009\u62E9\u7ED3\u675F\u503C"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1",selectAllLabel:"\u9009\u62E9\u6240\u6709\u884C",selectRowLabel:"\u9009\u62E9\u5F53\u524D\u884C",expandRowLabel:"\u5C55\u5F00\u5F53\u524D\u884C",collapseRowLabel:"\u6536\u8D77\u5F53\u524D\u884C",sortLabel:"\u6309 {column} \u6392\u5E8F",filterLabel:"\u6309 {column} \u8FC7\u6EE4"},tag:{close:"\u5173\u95ED\u6B64\u6807\u7B7E"},tour:{next:"\u4E0B\u4E00\u6B65",previous:"\u4E0A\u4E00\u6B65",finish:"\u7ED3\u675F\u5BFC\u89C8",close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"},carousel:{leftArrow:"\u4E0A\u4E00\u5F20\u5E7B\u706F\u7247",rightArrow:"\u4E0B\u4E00\u5F20\u5E7B\u706F\u7247",indicator:"\u5E7B\u706F\u7247\u5207\u6362\u81F3\u7D22\u5F15 {index}"}}};const Spe=ve({__name:"App",setup(e){const{app:t}=Mu(),n=k(()=>t.language),a=k(()=>t.size),r=B();return ge(n,o=>{r.value=o=="en"?iw:Epe},{immediate:!0}),(o,s)=>{const l=Nt("router-view");return N(),he(d(CC),{locale:r.value,size:a.value},{default:re(()=>[ee(l)]),_:1},8,["locale","size"])}}});const _pe=(e,t,n,a)=>(e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)),kpe=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}(),Tpe=e=>{document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e},Ape=()=>document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,x8=(e,t,n)=>{const a=Ape(),r=e-a,o=20;let s=0;t=typeof t=="undefined"?500:t;const l=function(){s+=o;const u=_pe(s,a,r,t);Tpe(u),s{const n=e.__vccOpts||e;for(const[a,r]of t)n[a]=r;return n};const Ipe=ve({__name:"index",props:{total:{required:!0,type:Number,default:0},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},emits:["update:page","update:limit","pagination"],setup(e,{emit:t}){const n=e,a=t,r=k({get:()=>n.page,set:u=>{a("update:page",u)}}),o=k({get(){return n.limit},set(u){a("update:limit",u)}});function s(u){a("update:page",1),a("pagination",{page:1,limit:u}),n.autoScroll&&x8(0,800)}function l(u){r.value=u,a("pagination",{page:u,limit:n.limit}),n.autoScroll&&x8(0,800)}return(u,i)=>{const c=Nt("el-pagination");return N(),U("div",{class:R([{hidden:e.hidden},"pagination-container"])},[ee(c,{background:e.background,"current-page":r.value,"onUpdate:currentPage":i[0]||(i[0]=f=>r.value=f),"page-size":o.value,"onUpdate:pageSize":i[1]||(i[1]=f=>o.value=f),layout:e.layout,"page-sizes":e.pageSizes,total:e.total,onSizeChange:s,onCurrentChange:l},null,8,["background","current-page","page-size","layout","page-sizes","total"])],2)}}});var Npe=Ope(Ipe,[["__scopeId","data-v-72233bcd"]]),tk={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */(function(e,t){(function(n,a){e.exports=a()})(Lt,function(){var n={};n.version="0.2.0";var a=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(h){var v,g;for(v in h)g=h[v],g!==void 0&&h.hasOwnProperty(v)&&(a[v]=g);return this},n.status=null,n.set=function(h){var v=n.isStarted();h=r(h,a.minimum,1),n.status=h===1?null:h;var g=n.render(!v),b=g.querySelector(a.barSelector),w=a.speed,y=a.easing;return g.offsetWidth,l(function(x){a.positionUsing===""&&(a.positionUsing=n.getPositioningCSS()),u(b,s(h,w,y)),h===1?(u(g,{transition:"none",opacity:1}),g.offsetWidth,setTimeout(function(){u(g,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){n.remove(),x()},w)},w)):setTimeout(x,w)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var h=function(){setTimeout(function(){!n.status||(n.trickle(),h())},a.trickleSpeed)};return a.trickle&&h(),this},n.done=function(h){return!h&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(h){var v=n.status;return v?(typeof h!="number"&&(h=(1-v)*r(Math.random()*v,.1,.95)),v=r(v+h,0,.994),n.set(v)):n.start()},n.trickle=function(){return n.inc(Math.random()*a.trickleRate)},function(){var h=0,v=0;n.promise=function(g){return!g||g.state()==="resolved"?this:(v===0&&n.start(),h++,v++,g.always(function(){v--,v===0?(h=0,n.done()):n.set((h-v)/h)}),this)}}(),n.render=function(h){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var v=document.createElement("div");v.id="nprogress",v.innerHTML=a.template;var g=v.querySelector(a.barSelector),b=h?"-100":o(n.status||0),w=document.querySelector(a.parent),y;return u(g,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),a.showSpinner||(y=v.querySelector(a.spinnerSelector),y&&m(y)),w!=document.body&&c(w,"nprogress-custom-parent"),w.appendChild(v),v},n.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(a.parent),"nprogress-custom-parent");var h=document.getElementById("nprogress");h&&m(h)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var h=document.body.style,v="WebkitTransform"in h?"Webkit":"MozTransform"in h?"Moz":"msTransform"in h?"ms":"OTransform"in h?"O":"";return v+"Perspective"in h?"translate3d":v+"Transform"in h?"translate":"margin"};function r(h,v,g){return hg?g:h}function o(h){return(-1+h)*100}function s(h,v,g){var b;return a.positionUsing==="translate3d"?b={transform:"translate3d("+o(h)+"%,0,0)"}:a.positionUsing==="translate"?b={transform:"translate("+o(h)+"%,0)"}:b={"margin-left":o(h)+"%"},b.transition="all "+v+"ms "+g,b}var l=function(){var h=[];function v(){var g=h.shift();g&&g(v)}return function(g){h.push(g),h.length==1&&v()}}(),u=function(){var h=["Webkit","O","Moz","ms"],v={};function g(x){return x.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(C,E){return E.toUpperCase()})}function b(x){var C=document.body.style;if(x in C)return x;for(var E=h.length,S=x.charAt(0).toUpperCase()+x.slice(1),T;E--;)if(T=h[E]+S,T in C)return T;return x}function w(x){return x=g(x),v[x]||(v[x]=b(x))}function y(x,C,E){C=w(C),x.style[C]=E}return function(x,C){var E=arguments,S,T;if(E.length==2)for(S in C)T=C[S],T!==void 0&&C.hasOwnProperty(S)&&y(x,S,T);else y(x,E[1],E[2])}}();function i(h,v){var g=typeof h=="string"?h:p(h);return g.indexOf(" "+v+" ")>=0}function c(h,v){var g=p(h),b=g+v;i(g,v)||(h.className=b.substring(1))}function f(h,v){var g=p(h),b;!i(h,v)||(b=g.replace(" "+v+" "," "),h.className=b.substring(1,b.length-1))}function p(h){return(" "+(h.className||"")+" ").replace(/\s+/gi," ")}function m(h){h&&h.parentNode&&h.parentNode.removeChild(h)}return n})})(tk);var Fi=tk.exports;Fi.configure({showSpinner:!1});const $pe=["/login"];xu.beforeEach(async(e,t,n)=>{Fi.start();const{user:a,permission:r}=Mu(),o=a.token;if(o)if(console.log("hasToken",o,e.path),e.path==="/login")console.log("\u8DF3\u8F6C\u5230\u9996\u9875"),n({path:"/"}),Fi.done();else if(a.roles.length>0)e.matched.length===0?t.name?n({name:t.name}):n("/401"):n();else try{await a.getUserInfo();const l=a.roles;(await r.generateRoutes(l)).forEach(i=>{xu.addRoute(i)}),n({...e,replace:!0})}catch(l){console.log(l),await a.resetToken(),vu.error(l||"Has Error"),n(`/login?redirect=${e.path}`),Fi.done()}else $pe.indexOf(e.path)!==-1?n():(n(`/login?redirect=${e.path}`),Fi.done())});xu.afterEach(()=>{Fi.done()});if(typeof window!="undefined"){let e=function(){var t=document.body,n=document.getElementById("__svg__icons__dom__");n||(n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.style.position="absolute",n.style.width="0",n.style.height="0",n.id="__svg__icons__dom__",n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),n.innerHTML='',t.insertBefore(n,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}function Ppe(e){return Fn({url:"/youlai-admin/api/v1/dict-items/select_list",method:"get",params:{typeCode:e}})}const Rpe={mounted(e,t){var o;const{user:n}=Mu();if(n.roles.includes("ROOT"))return!0;const{value:r}=t;if(r){const s=r;((o=n.perms)==null?void 0:o.some(u=>s.includes(u)))||e.parentNode&&e.parentNode.removeChild(e)}else throw new Error(`need perms! Like v-has-perm="['sys:user:add','sys:user:edit']"`)}},Dpe={mounted(e,t){const{value:n}=t;if(n){const a=n,{user:r}=Mu();r.roles.some(s=>a.includes(s))||e.parentNode&&e.parentNode.removeChild(e)}else throw new Error(`need roles! Like v-has-role="['admin','test']"`)}};var w8=Object.freeze(Object.defineProperty({__proto__:null,hasPerm:Rpe,hasRole:Dpe},Symbol.toStringTag,{value:"Module"}));const ay=ox(Spe);Object.keys(w8).forEach(e=>{ay.directive(e,w8[e])});ay.config.globalProperties.$getDictItemsByTypeCode=Ppe;ay.component("Pagination",Npe).use($le()).use(xu).use(sle).use(e0e).mount("#app");export{vu as $,_n as A,Dt as B,Hn as C,jt as D,$9 as E,Ue as F,yt as G,Vt as H,le as I,it as J,Mpe as K,Fe as L,ht as M,Pt as N,Ge as O,wc as P,cg as Q,$a as R,YV as S,J5 as T,hn as U,Lpe as V,Z0 as W,F1 as X,br as Y,Fn as Z,Ope as _,Nt as a,tle as a0,Qt as a1,Ha as a2,Gpe as a3,Qpe as a4,the as a5,ehe as a6,Jpe as a7,Xpe as a8,_2 as a9,Zpe as aa,Hpe as ab,Bpe as ac,Fpe as ad,zpe as ae,Vpe as af,Wpe as ag,jpe as ah,Upe as ai,Kpe as aj,N as b,he as c,ve as d,re as e,ee as f,U as g,Et as h,e0e as i,d as j,Ze as k,xu as l,X as m,R as n,md as o,Mu as p,qpe as q,B as r,k as s,Ne as t,Ype as u,ce as v,ge as w,St as x,ha as y,ft as z};