@10yun/open-sdk 0.3.104 → 0.3.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @10yun/open-sdk might be problematic. Click here for more details.

@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-BTlaxxYf.cjs"),c={},s={class:"cloud-404-wrap"};function d(r,o){return e.openBlock(),e.createElementBlock("div",s,o[0]||(o[0]=[e.createElementVNode("div",{class:"cloud-404-box"},[e.createElementVNode("div",{class:"cloud-404-code"},"404"),e.createElementVNode("div",{class:"cloud-404-message"},"Not Found")],-1)]))}const n=t._export_sfc(c,[["render",d]]);exports.default=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-B3v9lOHq.cjs"),c={},s={class:"cloud-404-wrap"};function d(r,o){return e.openBlock(),e.createElementBlock("div",s,o[0]||(o[0]=[e.createElementVNode("div",{class:"cloud-404-box"},[e.createElementVNode("div",{class:"cloud-404-code"},"404"),e.createElementVNode("div",{class:"cloud-404-message"},"Not Found")],-1)]))}const n=t._export_sfc(c,[["render",d]]);exports.default=n;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as c, openBlock as s, createElementVNode as o } from "vue";
2
- import { _ as t } from "./index-s9I8lS_0.js";
2
+ import { _ as t } from "./index-BmQ9S59N.js";
3
3
  const d = {}, r = { class: "cloud-404-wrap" };
4
4
  function l(n, e) {
5
5
  return s(), c("div", r, e[0] || (e[0] = [
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BTlaxxYf.cjs"),c={},t={class:"cloud-none-wrap",style:{"background-color":"none"}};function r(s,o){return e.openBlock(),e.createElementBlock("div",t,o[0]||(o[0]=[e.createElementVNode("div",{class:"cloud-none-box"},[e.createElementVNode("div",{class:"cloud-none-code"},"不建议,子应用单独运行~"),e.createElementVNode("div",{class:"cloud-none-message"},"Not Alone")],-1)]))}const l=n._export_sfc(c,[["render",r]]);exports.default=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-B3v9lOHq.cjs"),c={},t={class:"cloud-none-wrap",style:{"background-color":"none"}};function r(s,o){return e.openBlock(),e.createElementBlock("div",t,o[0]||(o[0]=[e.createElementVNode("div",{class:"cloud-none-box"},[e.createElementVNode("div",{class:"cloud-none-code"},"不建议,子应用单独运行~"),e.createElementVNode("div",{class:"cloud-none-message"},"Not Alone")],-1)]))}const l=n._export_sfc(c,[["render",r]]);exports.default=l;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as n, openBlock as c, createElementVNode as o } from "vue";
2
- import { _ as s } from "./index-s9I8lS_0.js";
2
+ import { _ as s } from "./index-BmQ9S59N.js";
3
3
  const r = {}, t = {
4
4
  class: "cloud-none-wrap",
5
5
  style: { "background-color": "none" }
@@ -0,0 +1,25 @@
1
+ "use strict";const Z=require("pinia"),i=require("vue"),ht=require("element-plus"),Eo=require("@element-plus/icons-vue");require("element-plus/dist/index.css");require("element-plus/theme-chalk/dark/css-vars.css");const So=require("@10yun/cv-pc-ui");require("@10yun/cv-pc-ui/lib/cv-ui.css");const bo=require("@10yun/cv-icons-vue"),No=require("axios");function la(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const vo=la(Eo),Ao=la(bo);let ca={};function ua(e={}){ca=e}function tt(){return ca}const yo=60*60*24*7;class To{constructor(t){this.prefix=t.prefix||"",this.expired=t.expired||yo,this.crypto=!!t.crypto,this.merge=!!t.merge,this.keyExpired={session:{},local:{}},this.keyGroup={session:[],local:[]}}_checkExpiredKey(t,n){return!!(t&&(t=="session"||t=="local")&&this.keyExpired[t][n]>=Date.now())}_encodeData(){}_decodeData(){}_settKey(t,n,r){t&&(t=="session"||t=="local")&&(this.keyExpired[t][n]=r||this.expired,this.keyGroup[t].push(n))}_deleteKey(t,n){t&&(t=="session"||t=="local")&&(n?(delete this.keyExpired[t][n],this.keyGroup[t]=this.keyGroup[t].filter(r=>r!==n)):(this.keyExpired[t]={},this.keyGroup[t]=[]))}sessionSet(t,n,r){let a=JSON.stringify(n);sessionStorage.setItem(t,a),this._settKey("session",t,r)}sessionGet(t){let n=sessionStorage.getItem(t);try{return JSON.parse(n)}catch{return n}}sessionDel(t){if(!window.sessionStorage)return!1;sessionStorage.removeItem(t),this._deleteKey("session",t)}sessionClear(){if(!window.sessionStorage)return!1;sessionStorage.clear();for(let t in this.keyGroup.session)sessionStorage.removeItem(t);this._deleteKey("session")}localSet(t,n,r){if(!window.localStorage)return;(n===""||n===null||n===void 0)&&(n=null);const a=typeof n=="string"?n:JSON.stringify(n);window.localStorage.setItem(t,a),this._settKey("local",t,r)}localGet(t){if(!window.localStorage)return;this._checkExpiredKey("local",t);let n=window.localStorage.getItem(t);try{Object.keys(n).length==0||JSON.stringify(n)=="{}"?n="":n=JSON.parse(n)}catch{}return n}localDel(t){if(!window.localStorage)return!1;window.localStorage.removeItem(t),this._deleteKey("local",t)}localClear(){if(!window.localStorage)return!1;window.localStorage.clear();for(let t in this.keyGroup.local)window.localStorage.removeItem(t);this._deleteKey("local")}}function Co(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var Qe=Co();function Oo(){try{if(!Qe||!Qe.open)return!1;var e=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!e||t)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function Vn(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if(o.name!=="TypeError")throw o;for(var n=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,r=new n,a=0;a<e.length;a+=1)r.append(e[a]);return r.getBlob(t.type)}}typeof Promise>"u"&&require("lie/polyfill");const R=Promise;function W(e,t){t&&e.then(function(n){t(null,n)},function(n){t(n)})}function je(e,t,n){typeof t=="function"&&e.then(t),typeof n=="function"&&e.catch(n)}function ye(e){return typeof e!="string"&&(e=String(e)),e}function Un(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}const En="local-forage-detect-blob-support";let It;const fe={},Io=Object.prototype.toString,vt="readonly",Bt="readwrite";function wo(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),a=0;a<t;a++)r[a]=e.charCodeAt(a);return n}function Lo(e){return new R(function(t){var n=e.transaction(En,Bt),r=Vn([""]);n.objectStore(En).put(r,"key"),n.onabort=function(a){a.preventDefault(),a.stopPropagation(),t(!1)},n.oncomplete=function(){var a=navigator.userAgent.match(/Chrome\/(\d+)/),o=navigator.userAgent.match(/Edge\//);t(o||!a||parseInt(a[1],10)>=43)}}).catch(function(){return!1})}function Do(e){return typeof It=="boolean"?R.resolve(It):Lo(e).then(function(t){return It=t,It})}function Ft(e){var t=fe[e.name],n={};n.promise=new R(function(r,a){n.resolve=r,n.reject=a}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function Sn(e){var t=fe[e.name],n=t.deferredOperations.pop();if(n)return n.resolve(),n.promise}function bn(e,t){var n=fe[e.name],r=n.deferredOperations.pop();if(r)return r.reject(t),r.promise}function fa(e,t){return new R(function(n,r){if(fe[e.name]=fe[e.name]||ha(),e.db)if(t)Ft(e),e.db.close();else return n(e.db);var a=[e.name];t&&a.push(e.version);var o=Qe.open.apply(Qe,a);t&&(o.onupgradeneeded=function(s){var c=o.result;try{c.createObjectStore(e.storeName),s.oldVersion<=1&&c.createObjectStore(En)}catch(l){if(l.name!=="ConstraintError")throw l}}),o.onerror=function(s){s.preventDefault(),r(o.error)},o.onsuccess=function(){var s=o.result;s.onversionchange=function(c){c.target.close()},n(s),Sn(e)}})}function Bn(e){return fa(e,!1)}function xn(e){return fa(e,!0)}function da(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,a=e.version>e.db.version;if(r&&(e.version,e.version=e.db.version),a||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function ko(e){return new R(function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(a){var o=btoa(a.target.result||"");t({__local_forage_encoded_blob:!0,data:o,type:e.type})},r.readAsBinaryString(e)})}function _a(e){var t=wo(atob(e.data));return Vn([t],{type:e.type})}function ma(e){return e&&e.__local_forage_encoded_blob}function Ro(e){var t=this,n=t._initReady().then(function(){var r=fe[t._dbInfo.name];if(r&&r.dbReady)return r.dbReady});return je(n,e,e),n}function Po(e){Ft(e);for(var t=fe[e.name],n=t.forages,r=0;r<n.length;r++){const a=n[r];a._dbInfo.db&&(a._dbInfo.db.close(),a._dbInfo.db=null)}return e.db=null,Bn(e).then(a=>(e.db=a,da(e)?xn(e):a)).then(a=>{e.db=t.db=a;for(var o=0;o<n.length;o++)n[o]._dbInfo.db=a}).catch(a=>{throw bn(e,a),a})}function Te(e,t,n,r){r===void 0&&(r=1);try{var a=e.db.transaction(e.storeName,t);n(null,a)}catch(o){if(r>0&&(!e.db||o.name==="InvalidStateError"||o.name==="NotFoundError"))return R.resolve().then(()=>{if(!e.db||o.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),xn(e)}).then(()=>Po(e).then(function(){Te(e,t,n,r-1)})).catch(n);n(o)}}function ha(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Fo(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var a=fe[n.name];a||(a=ha(),fe[n.name]=a),a.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=Ro);var o=[];function s(){return R.resolve()}for(var c=0;c<a.forages.length;c++){var l=a.forages[c];l!==t&&o.push(l._initReady().catch(s))}var u=a.forages.slice(0);return R.all(o).then(function(){return n.db=a.db,Bn(n)}).then(function(d){return n.db=d,da(n,t._defaultConfig.version)?xn(n):d}).then(function(d){n.db=a.db=d,t._dbInfo=n;for(var f=0;f<u.length;f++){var m=u[f];m!==t&&(m._dbInfo.db=n.db,m._dbInfo.version=n.version)}})}function Mo(e,t){var n=this;e=ye(e);var r=new R(function(a,o){n.ready().then(function(){Te(n._dbInfo,vt,function(s,c){if(s)return o(s);try{var l=c.objectStore(n._dbInfo.storeName),u=l.get(e);u.onsuccess=function(){var d=u.result;d===void 0&&(d=null),ma(d)&&(d=_a(d)),a(d)},u.onerror=function(){o(u.error)}}catch(d){o(d)}})}).catch(o)});return W(r,t),r}function Vo(e,t){var n=this,r=new R(function(a,o){n.ready().then(function(){Te(n._dbInfo,vt,function(s,c){if(s)return o(s);try{var l=c.objectStore(n._dbInfo.storeName),u=l.openCursor(),d=1;u.onsuccess=function(){var f=u.result;if(f){var m=f.value;ma(m)&&(m=_a(m));var E=e(m,f.key,d++);E!==void 0?a(E):f.continue()}else a()},u.onerror=function(){o(u.error)}}catch(f){o(f)}})}).catch(o)});return W(r,t),r}function Uo(e,t,n){var r=this;e=ye(e);var a=new R(function(o,s){var c;r.ready().then(function(){return c=r._dbInfo,Io.call(t)==="[object Blob]"?Do(c.db).then(function(l){return l?t:ko(t)}):t}).then(function(l){Te(r._dbInfo,Bt,function(u,d){if(u)return s(u);try{var f=d.objectStore(r._dbInfo.storeName);l===null&&(l=void 0);var m=f.put(l,e);d.oncomplete=function(){l===void 0&&(l=null),o(l)},d.onabort=d.onerror=function(){var E=m.error?m.error:m.transaction.error;s(E)}}catch(E){s(E)}})}).catch(s)});return W(a,n),a}function Bo(e,t){var n=this;e=ye(e);var r=new R(function(a,o){n.ready().then(function(){Te(n._dbInfo,Bt,function(s,c){if(s)return o(s);try{var l=c.objectStore(n._dbInfo.storeName),u=l.delete(e);c.oncomplete=function(){a()},c.onerror=function(){o(u.error)},c.onabort=function(){var d=u.error?u.error:u.transaction.error;o(d)}}catch(d){o(d)}})}).catch(o)});return W(r,t),r}function xo(e){var t=this,n=new R(function(r,a){t.ready().then(function(){Te(t._dbInfo,Bt,function(o,s){if(o)return a(o);try{var c=s.objectStore(t._dbInfo.storeName),l=c.clear();s.oncomplete=function(){r()},s.onabort=s.onerror=function(){var u=l.error?l.error:l.transaction.error;a(u)}}catch(u){a(u)}})}).catch(a)});return W(n,e),n}function Go(e){var t=this,n=new R(function(r,a){t.ready().then(function(){Te(t._dbInfo,vt,function(o,s){if(o)return a(o);try{var c=s.objectStore(t._dbInfo.storeName),l=c.count();l.onsuccess=function(){r(l.result)},l.onerror=function(){a(l.error)}}catch(u){a(u)}})}).catch(a)});return W(n,e),n}function $o(e,t){var n=this,r=new R(function(a,o){if(e<0){a(null);return}n.ready().then(function(){Te(n._dbInfo,vt,function(s,c){if(s)return o(s);try{var l=c.objectStore(n._dbInfo.storeName),u=!1,d=l.openKeyCursor();d.onsuccess=function(){var f=d.result;if(!f){a(null);return}e===0||u?a(f.key):(u=!0,f.advance(e))},d.onerror=function(){o(d.error)}}catch(f){o(f)}})}).catch(o)});return W(r,t),r}function Wo(e){var t=this,n=new R(function(r,a){t.ready().then(function(){Te(t._dbInfo,vt,function(o,s){if(o)return a(o);try{var c=s.objectStore(t._dbInfo.storeName),l=c.openKeyCursor(),u=[];l.onsuccess=function(){var d=l.result;if(!d){r(u);return}u.push(d.key),d.continue()},l.onerror=function(){a(l.error)}}catch(d){a(d)}})}).catch(a)});return W(n,e),n}function Yo(e,t){t=Un.apply(this,arguments);var n=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r=this,a;if(!e.name)a=R.reject("Invalid arguments");else{const s=e.name===n.name&&r._dbInfo.db?R.resolve(r._dbInfo.db):Bn(e).then(c=>{const l=fe[e.name],u=l.forages;l.db=c;for(var d=0;d<u.length;d++)u[d]._dbInfo.db=c;return c});e.storeName?a=s.then(c=>{if(!c.objectStoreNames.contains(e.storeName))return;const l=c.version+1;Ft(e);const u=fe[e.name],d=u.forages;c.close();for(let m=0;m<d.length;m++){const E=d[m];E._dbInfo.db=null,E._dbInfo.version=l}return new R((m,E)=>{const v=Qe.open(e.name,l);v.onerror=S=>{v.result.close(),E(S)},v.onupgradeneeded=()=>{var S=v.result;S.deleteObjectStore(e.storeName)},v.onsuccess=()=>{const S=v.result;S.close(),m(S)}}).then(m=>{u.db=m;for(let E=0;E<d.length;E++){const v=d[E];v._dbInfo.db=m,Sn(v._dbInfo)}}).catch(m=>{throw(bn(e,m)||R.resolve()).catch(()=>{}),m})}):a=s.then(c=>{Ft(e);const l=fe[e.name],u=l.forages;c.close();for(var d=0;d<u.length;d++){const m=u[d];m._dbInfo.db=null}return new R((m,E)=>{var v=Qe.deleteDatabase(e.name);v.onerror=()=>{const S=v.result;S&&S.close(),E(v.error)},v.onblocked=()=>{},v.onsuccess=()=>{const S=v.result;S&&S.close(),m(S)}}).then(m=>{l.db=m;for(var E=0;E<u.length;E++){const v=u[E];Sn(v._dbInfo)}}).catch(m=>{throw(bn(e,m)||R.resolve()).catch(()=>{}),m})})}return W(a,t),a}var Ho={_driver:"asyncStorage",_initStorage:Fo,_support:Oo(),iterate:Vo,getItem:Mo,setItem:Uo,removeItem:Bo,clear:xo,length:Go,key:$o,keys:Wo,dropInstance:Yo};function Ko(){return typeof openDatabase=="function"}var we="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jo="~~local_forage_type~",ir=/^~~local_forage_type~([^~]+)~/,Mt="__lfsc__:",Nn=Mt.length,Gn="arbf",vn="blob",ga="si08",pa="ui08",Ea="uic8",Sa="si16",ba="si32",Na="ur16",va="ui32",Aa="fl32",ya="fl64",lr=Nn+Gn.length,cr=Object.prototype.toString;function Ta(e){var t=e.length*.75,n=e.length,r,a=0,o,s,c,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var u=new ArrayBuffer(t),d=new Uint8Array(u);for(r=0;r<n;r+=4)o=we.indexOf(e[r]),s=we.indexOf(e[r+1]),c=we.indexOf(e[r+2]),l=we.indexOf(e[r+3]),d[a++]=o<<2|s>>4,d[a++]=(s&15)<<4|c>>2,d[a++]=(c&3)<<6|l&63;return u}function An(e){var t=new Uint8Array(e),n="",r;for(r=0;r<t.length;r+=3)n+=we[t[r]>>2],n+=we[(t[r]&3)<<4|t[r+1]>>4],n+=we[(t[r+1]&15)<<2|t[r+2]>>6],n+=we[t[r+2]&63];return t.length%3===2?n=n.substring(0,n.length-1)+"=":t.length%3===1&&(n=n.substring(0,n.length-2)+"=="),n}function qo(e,t){var n="";if(e&&(n=cr.call(e)),e&&(n==="[object ArrayBuffer]"||e.buffer&&cr.call(e.buffer)==="[object ArrayBuffer]")){var r,a=Mt;e instanceof ArrayBuffer?(r=e,a+=Gn):(r=e.buffer,n==="[object Int8Array]"?a+=ga:n==="[object Uint8Array]"?a+=pa:n==="[object Uint8ClampedArray]"?a+=Ea:n==="[object Int16Array]"?a+=Sa:n==="[object Uint16Array]"?a+=Na:n==="[object Int32Array]"?a+=ba:n==="[object Uint32Array]"?a+=va:n==="[object Float32Array]"?a+=Aa:n==="[object Float64Array]"?a+=ya:t(new Error("Failed to get type for BinaryArray"))),t(a+An(r))}else if(n==="[object Blob]"){var o=new FileReader;o.onload=function(){var s=jo+e.type+"~"+An(this.result);t(Mt+vn+s)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(s){t(null,s)}}function Xo(e){if(e.substring(0,Nn)!==Mt)return JSON.parse(e);var t=e.substring(lr),n=e.substring(Nn,lr),r;if(n===vn&&ir.test(t)){var a=t.match(ir);r=a[1],t=t.substring(a[0].length)}var o=Ta(t);switch(n){case Gn:return o;case vn:return Vn([o],{type:r});case ga:return new Int8Array(o);case pa:return new Uint8Array(o);case Ea:return new Uint8ClampedArray(o);case Sa:return new Int16Array(o);case Na:return new Uint16Array(o);case ba:return new Int32Array(o);case va:return new Uint32Array(o);case Aa:return new Float32Array(o);case ya:return new Float64Array(o);default:throw new Error("Unkown type: "+n)}}var $n={serialize:qo,deserialize:Xo,stringToBuffer:Ta,bufferToString:An};function Ca(e,t,n,r){e.executeSql(`CREATE TABLE IF NOT EXISTS ${t.storeName} (id INTEGER PRIMARY KEY, key unique, value)`,[],n,r)}function Qo(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=typeof e[r]!="string"?e[r].toString():e[r];var a=new R(function(o,s){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(c){return s(c)}n.db.transaction(function(c){Ca(c,n,function(){t._dbInfo=n,o()},function(l,u){s(u)})},s)});return n.serializer=$n,a}function Le(e,t,n,r,a,o){e.executeSql(n,r,a,function(s,c){c.code===c.SYNTAX_ERR?s.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(l,u){u.rows.length?o(l,c):Ca(l,t,function(){l.executeSql(n,r,a,o)},o)},o):o(s,c)},o)}function Jo(e,t){var n=this;e=ye(e);var r=new R(function(a,o){n.ready().then(function(){var s=n._dbInfo;s.db.transaction(function(c){Le(c,s,`SELECT * FROM ${s.storeName} WHERE key = ? LIMIT 1`,[e],function(l,u){var d=u.rows.length?u.rows.item(0).value:null;d&&(d=s.serializer.deserialize(d)),a(d)},function(l,u){o(u)})})}).catch(o)});return W(r,t),r}function zo(e,t){var n=this,r=new R(function(a,o){n.ready().then(function(){var s=n._dbInfo;s.db.transaction(function(c){Le(c,s,`SELECT * FROM ${s.storeName}`,[],function(l,u){for(var d=u.rows,f=d.length,m=0;m<f;m++){var E=d.item(m),v=E.value;if(v&&(v=s.serializer.deserialize(v)),v=e(v,E.key,m+1),v!==void 0){a(v);return}}a()},function(l,u){o(u)})})}).catch(o)});return W(r,t),r}function Oa(e,t,n,r){var a=this;e=ye(e);var o=new R(function(s,c){a.ready().then(function(){t===void 0&&(t=null);var l=t,u=a._dbInfo;u.serializer.serialize(t,function(d,f){f?c(f):u.db.transaction(function(m){Le(m,u,`INSERT OR REPLACE INTO ${u.storeName} (key, value) VALUES (?, ?)`,[e,d],function(){s(l)},function(E,v){c(v)})},function(m){if(m.code===m.QUOTA_ERR){if(r>0){s(Oa.apply(a,[e,l,n,r-1]));return}c(m)}})})}).catch(c)});return W(o,n),o}function Zo(e,t,n){return Oa.apply(this,[e,t,n,1])}function es(e,t){var n=this;e=ye(e);var r=new R(function(a,o){n.ready().then(function(){var s=n._dbInfo;s.db.transaction(function(c){Le(c,s,`DELETE FROM ${s.storeName} WHERE key = ?`,[e],function(){a()},function(l,u){o(u)})})}).catch(o)});return W(r,t),r}function ts(e){var t=this,n=new R(function(r,a){t.ready().then(function(){var o=t._dbInfo;o.db.transaction(function(s){Le(s,o,`DELETE FROM ${o.storeName}`,[],function(){r()},function(c,l){a(l)})})}).catch(a)});return W(n,e),n}function ns(e){var t=this,n=new R(function(r,a){t.ready().then(function(){var o=t._dbInfo;o.db.transaction(function(s){Le(s,o,`SELECT COUNT(key) as c FROM ${o.storeName}`,[],function(c,l){var u=l.rows.item(0).c;r(u)},function(c,l){a(l)})})}).catch(a)});return W(n,e),n}function rs(e,t){var n=this,r=new R(function(a,o){n.ready().then(function(){var s=n._dbInfo;s.db.transaction(function(c){Le(c,s,`SELECT key FROM ${s.storeName} WHERE id = ? LIMIT 1`,[e+1],function(l,u){var d=u.rows.length?u.rows.item(0).key:null;a(d)},function(l,u){o(u)})})}).catch(o)});return W(r,t),r}function as(e){var t=this,n=new R(function(r,a){t.ready().then(function(){var o=t._dbInfo;o.db.transaction(function(s){Le(s,o,`SELECT key FROM ${o.storeName}`,[],function(c,l){for(var u=[],d=0;d<l.rows.length;d++)u.push(l.rows.item(d).key);r(u)},function(c,l){a(l)})})}).catch(a)});return W(n,e),n}function os(e){return new R(function(t,n){e.transaction(function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(a,o){for(var s=[],c=0;c<o.rows.length;c++)s.push(o.rows.item(c).name);t({db:e,storeNames:s})},function(a,o){n(o)})},function(r){n(r)})})}function ss(e,t){t=Un.apply(this,arguments);var n=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r=this,a;return e.name?a=new R(function(o){var s;e.name===n.name?s=r._dbInfo.db:s=openDatabase(e.name,"","",0),e.storeName?o({db:s,storeNames:[e.storeName]}):o(os(s))}).then(function(o){return new R(function(s,c){o.db.transaction(function(l){function u(E){return new R(function(v,S){l.executeSql(`DROP TABLE IF EXISTS ${E}`,[],function(){v()},function(I,g){S(g)})})}for(var d=[],f=0,m=o.storeNames.length;f<m;f++)d.push(u(o.storeNames[f]));R.all(d).then(function(){s()}).catch(function(E){c(E)})},function(l){c(l)})})}):a=R.reject("Invalid arguments"),W(a,t),a}var is={_driver:"webSQLStorage",_initStorage:Qo,_support:Ko(),iterate:zo,getItem:Jo,setItem:Zo,removeItem:es,clear:ts,length:ns,key:rs,keys:as,dropInstance:ss};function ls(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Ia(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function cs(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return!0}}function us(){return!cs()||localStorage.length>0}function fs(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=Ia(e,t._defaultConfig),us()?(t._dbInfo=n,n.serializer=$n,R.resolve()):R.reject()}function ds(e){var t=this,n=t.ready().then(function(){for(var r=t._dbInfo.keyPrefix,a=localStorage.length-1;a>=0;a--){var o=localStorage.key(a);o.indexOf(r)===0&&localStorage.removeItem(o)}});return W(n,e),n}function _s(e,t){var n=this;e=ye(e);var r=n.ready().then(function(){var a=n._dbInfo,o=localStorage.getItem(a.keyPrefix+e);return o&&(o=a.serializer.deserialize(o)),o});return W(r,t),r}function ms(e,t){var n=this,r=n.ready().then(function(){for(var a=n._dbInfo,o=a.keyPrefix,s=o.length,c=localStorage.length,l=1,u=0;u<c;u++){var d=localStorage.key(u);if(d.indexOf(o)===0){var f=localStorage.getItem(d);if(f&&(f=a.serializer.deserialize(f)),f=e(f,d.substring(s),l++),f!==void 0)return f}}});return W(r,t),r}function hs(e,t){var n=this,r=n.ready().then(function(){var a=n._dbInfo,o;try{o=localStorage.key(e)}catch{o=null}return o&&(o=o.substring(a.keyPrefix.length)),o});return W(r,t),r}function gs(e){var t=this,n=t.ready().then(function(){for(var r=t._dbInfo,a=localStorage.length,o=[],s=0;s<a;s++){var c=localStorage.key(s);c.indexOf(r.keyPrefix)===0&&o.push(c.substring(r.keyPrefix.length))}return o});return W(n,e),n}function ps(e){var t=this,n=t.keys().then(function(r){return r.length});return W(n,e),n}function Es(e,t){var n=this;e=ye(e);var r=n.ready().then(function(){var a=n._dbInfo;localStorage.removeItem(a.keyPrefix+e)});return W(r,t),r}function Ss(e,t,n){var r=this;e=ye(e);var a=r.ready().then(function(){t===void 0&&(t=null);var o=t;return new R(function(s,c){var l=r._dbInfo;l.serializer.serialize(t,function(u,d){if(d)c(d);else try{localStorage.setItem(l.keyPrefix+e,u),s(o)}catch(f){(f.name==="QuotaExceededError"||f.name==="NS_ERROR_DOM_QUOTA_REACHED")&&c(f),c(f)}})})});return W(a,n),a}function bs(e,t){if(t=Un.apply(this,arguments),e=typeof e!="function"&&e||{},!e.name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r=this,a;return e.name?a=new R(function(o){e.storeName?o(Ia(e,r._defaultConfig)):o(`${e.name}/`)}).then(function(o){for(var s=localStorage.length-1;s>=0;s--){var c=localStorage.key(s);c.indexOf(o)===0&&localStorage.removeItem(c)}}):a=R.reject("Invalid arguments"),W(a,t),a}var Ns={_driver:"localStorageWrapper",_initStorage:fs,_support:ls(),iterate:ms,getItem:_s,setItem:Ss,removeItem:Es,clear:ds,length:ps,key:hs,keys:gs,dropInstance:bs};const vs=(e,t)=>e===t||typeof e=="number"&&typeof t=="number"&&isNaN(e)&&isNaN(t),As=(e,t)=>{const n=e.length;let r=0;for(;r<n;){if(vs(e[r],t))return!0;r++}return!1},wa=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},lt={},ur={},Xe={INDEXEDDB:Ho,WEBSQL:is,LOCALSTORAGE:Ns},ys=[Xe.INDEXEDDB._driver,Xe.WEBSQL._driver,Xe.LOCALSTORAGE._driver],Rt=["dropInstance"],sn=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Rt),Ts={description:"",driver:ys.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Cs(e,t){e[t]=function(){const n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function ln(){for(let e=1;e<arguments.length;e++){const t=arguments[e];if(t)for(let n in t)t.hasOwnProperty(n)&&(wa(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}class Wn{constructor(t){for(let n in Xe)if(Xe.hasOwnProperty(n)){const r=Xe[n],a=r._driver;this[n]=a,lt[a]||this.defineDriver(r)}this._defaultConfig=ln({},Ts),this._config=ln({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(()=>{})}config(t){if(typeof t=="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(let n in t){if(n==="storeName"&&(t[n]=t[n].replace(/\W/g,"_")),n==="version"&&typeof t[n]!="number")return new Error("Database version must be a number.");this._config[n]=t[n]}return"driver"in t&&t.driver?this.setDriver(this._config.driver):!0}else return typeof t=="string"?this._config[t]:this._config}defineDriver(t,n,r){const a=new R(function(o,s){try{const c=t._driver,l=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!t._driver){s(l);return}const u=sn.concat("_initStorage");for(let m=0,E=u.length;m<E;m++){const v=u[m];if((!As(Rt,v)||t[v])&&typeof t[v]!="function"){s(l);return}}(function(){const m=function(E){return function(){const v=new Error(`Method ${E} is not implemented by the current driver`),S=R.reject(v);return W(S,arguments[arguments.length-1]),S}};for(let E=0,v=Rt.length;E<v;E++){const S=Rt[E];t[S]||(t[S]=m(S))}})();const f=function(m){lt[c],lt[c]=t,ur[c]=m,o()};"_support"in t?t._support&&typeof t._support=="function"?t._support().then(f,s):f(!!t._support):f(!0)}catch(c){s(c)}});return je(a,n,r),a}driver(){return this._driver||null}getDriver(t,n,r){const a=lt[t]?R.resolve(lt[t]):R.reject(new Error("Driver not found."));return je(a,n,r),a}getSerializer(t){const n=R.resolve($n);return je(n,t),n}ready(t){const n=this,r=n._driverSet.then(()=>(n._ready===null&&(n._ready=n._initDriver()),n._ready));return je(r,t,t),r}setDriver(t,n,r){const a=this;wa(t)||(t=[t]);const o=this._getSupportedDrivers(t);function s(){a._config.driver=a.driver()}function c(d){return a._extend(d),s(),a._ready=a._initStorage(a._config),a._ready}function l(d){return function(){let f=0;function m(){for(;f<d.length;){let v=d[f];return f++,a._dbInfo=null,a._ready=null,a.getDriver(v).then(c).catch(m)}s();const E=new Error("No available storage method found.");return a._driverSet=R.reject(E),a._driverSet}return m()}}const u=this._driverSet!==null?this._driverSet.catch(()=>R.resolve()):R.resolve();return this._driverSet=u.then(()=>{const d=o[0];return a._dbInfo=null,a._ready=null,a.getDriver(d).then(f=>{a._driver=f._driver,s(),a._wrapLibraryMethodsWithReady(),a._initDriver=l(o)})}).catch(()=>{s();const d=new Error("No available storage method found.");return a._driverSet=R.reject(d),a._driverSet}),je(this._driverSet,n,r),this._driverSet}supports(t){return!!ur[t]}_extend(t){ln(this,t)}_getSupportedDrivers(t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];this.supports(o)&&n.push(o)}return n}_wrapLibraryMethodsWithReady(){for(let t=0,n=sn.length;t<n;t++)Cs(this,sn[t])}createInstance(t){return new Wn(t)}}const Me=new Wn;class Os{constructor(t){this.db_name=t.db_name||"cvjs",Me.config({name:this.db_name,storeName:"common"}),this.keyExpired={},this.keyGroup=[],this.__open_log=!1,this.__timer={}}async idbTest(){try{cvUtils.isDevice_ios()&&await Me.setItem("__test__",$A.Time()),this.__open_log}catch(t){this.__open_log?ElMessageBox.alert(t.message,"温馨提示",{confirmButtonText:"OK"}).then(()=>{$A.reloadUrl()}):$A.reloadUrl()}}idbSave(t,n,r=100){typeof this.__timer[t]<"u"&&(clearTimeout(this.__timer[t]),delete this.__timer[t]),this.__timer[t]=setTimeout(async a=>{let o=JSON.parse(JSON.stringify(n));await Me.setItem(t,o)},r)}idbGetItem(t){return Me.getItem(t)}idbSetItem(t,n){let r="";return n&&n!="undefined"&&(r=JSON.parse(JSON.stringify(n))),Me.setItem(t,r)}idbDelItem(t){Me.removeItem(t).then(n=>{})}idbClear(){return Me.clear()}async idbGetString(t,n=""){const r=await this.idbGetItem(t);return typeof r=="string"||typeof r=="number"?r:n}async idbGetInt(t,n=0){const r=await this.idbGetItem(t);return typeof r=="number"?r:n}async idbGetBoolean(t,n=!1){const r=await this.idbGetItem(t);return typeof r=="boolean"?r:n}async idbGetArray(t,n=[]){const r=await this.idbGetItem(t);return cvUtils.isTypeArray(r)?r:n}async idbGetJson(t,n={}){const r=await this.idbGetItem(t);return cvUtils.isTypeJson(r)?r:n}}class Is{constructor(t){this.keyExpired={},this.keyGroup=[],this.__open_log=!1,this.__timer={}}setSessionStorage(t,n){return this.__operationSessionStorage(t,n)}getSessionStorageValue(t){return this.__operationSessionStorage(t)}sessGetString(t,n=""){let r=this.__operationSessionStorage(t);return typeof r=="string"||typeof r=="number"?r:n}getSessionStorageInt(t,n=0){let r=this.__operationSessionStorage(t);return typeof r=="number"?r:n}__operationSessionStorage(t,n){if(!t)return;let r="__state__";if(t.substring(0,5)==="cache"&&(r="__state:"+t+"__"),typeof n>"u")return this.__loadFromlSession(t,"",r);this.__savaToSession(t,n,r)}__savaToSession(t,n,r){try{typeof r>"u"&&(r="__seller__");let a=window.sessionStorage.getItem(r);a?a=JSON.parse(a):a={},a[t]=n,window.sessionStorage.setItem(r,JSON.stringify(a))}catch{}}__loadFromlSession(t,n,r){try{typeof r>"u"&&(r="__seller__");let a=window.sessionStorage.getItem(r);return!a||(a=JSON.parse(a),!a||typeof a[t]>"u")?n:a[t]}catch{return n}}}const O=new To({prefix:""}),ws=new Os({db_name:"ShiyunConsole"});window.gbIdbObj=ws;const Ls=new Is({});window.gbSessObj=Ls;O.idbGetItem=function(e){return window.gbIdbObj.idbGetItem(e)};O.idbSetItem=function(e,t){return window.gbIdbObj.idbSetItem(e,t)};O.idbDelItem=function(e){return window.gbIdbObj.idbDelItem(e)};O.idbGetString=function(e){return window.gbIdbObj.idbGetString(e)};O.idbSave=function(e,t){return window.gbIdbObj.idbSave(e,t)};O.idbGetString=function(e,t){return window.gbIdbObj.idbGetString(e,t)};O.idbGetJson=function(e,t){return window.gbIdbObj.idbGetJson(e,t)};/*!
2
+ * vite-plugin-qiankun.js v1.0.14
3
+ * (c) 2021-2022 Teng Mao Qing
4
+ * Released under the MIT License.
5
+ */var se=typeof window<"u"?window.proxy||window:{},Ds=function(e){se!=null&&se.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),se.qiankunName&&(window.moudleQiankunAppLifeCycles[se.qiankunName]=e))};function ks(e="/",t=null,n={}){e=="/"&&(e="/"+(window.localStorage.getItem("__syCacheMicroCurrSign__")||"base")),window.history.pushState(n,t,e)}var mt={};function ct(e){if(!se.__POWERED_BY_QIANKUN__)return!1;if(!Object.prototype.toString.call(e)==="[object Object]")throw Error("data必须是对象格式");mt.setGlobalState&&mt.setGlobalState({ignore:mt.name,msg:{...e}})}function Rs(e){let t=_e();e&&e.onGlobalStateChange&&e.onGlobalStateChange((n,r)=>{if(n&&n.msg)switch((n.msg||{}).COMM_TYPE||""){case"LoginSucc":case"LoginLogout":t.SA_ACCOUNT_REFRESH();break}Je().SA_MSG_CONTENT(n.msg)},!0),mt.setGlobalState=e&&e.setGlobalState,mt.name=e&&e.name}function Ps(e,t,n){Ds({bootstrap(r){},mount(r){Rs(r),t(r,!0)},unmount(r){n(r)},update(r){}})}const Je=Z.defineStore("cloudSdkQiankunStore",{state:()=>({qiankunExistState:se.__POWERED_BY_QIANKUN__||!1,msg:""}),getters:{xxxx:e=>{},msgContent:e=>e.msg},actions:{async init(){},QK_SEND_LOGIN_MSG(){ct({COMM_TYPE:"LoginSucc"})},QK_SEND_LOGOUT_MSG(){ct({COMM_TYPE:"LoginLogout"})},QK_SEND_MSG_REG_SUBMENU(e){ct({COMM_TYPE:"MicroRegisterMenu",COMM_TYPESTR:"注册子应用菜单",data:e||[]})},QK_SEND_MSG_ROUTER_BEFORE(e){ct({COMM_TYPE:"routerBefore",routerBase:e})},QIANKUN_SEND_MSG_AUTO(e){if(!Object.prototype.toString.call(e)==="[object Object]")throw Error("msgData消息必须是对象格式")},QIANKUN_SEND_MSG_TO_MICRO(e){if(!Object.prototype.toString.call(e)==="[object Object]")throw Error("msgData消息必须是对象格式");e.type&&e.type},QIANKUN_SEND_MSG_TO_MAIN(e,t){ct({COMM_TYPE:e,data:t||""})},SA_SET_QIANKUN_STATE(e){this.qiankunExistState=e},SA_MSG_CONTENT(e){this.msg=e}}});/*!
6
+ * shared v11.1.11
7
+ * (c) 2025 kazuya kawaguchi
8
+ * Released under the MIT License.
9
+ */function Fs(e,t){}const fr={};function Yn(e){fr[e]||(fr[e]=!0,void 0)}const he=typeof window<"u";let le,Be;if(process.env.NODE_ENV!=="production"){const e=he&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(le=t=>{e.mark(t)},Be=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const Ms=/\{([0-9a-zA-Z]+)\}/g;function xt(e,...t){return t.length===1&&U(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Ms,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const pe=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Vs=(e,t,n)=>Us({l:e,k:t,s:n}),Us=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),z=e=>typeof e=="number"&&isFinite(e),Bs=e=>Hn(e)==="[object Date]",ze=e=>Hn(e)==="[object RegExp]",Gt=e=>M(e)&&Object.keys(e).length===0,ee=Object.assign,xs=Object.create,$=(e=null)=>xs(e);let dr;const Ue=()=>dr||(dr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:$());function _r(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function mr(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Gs(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,a,o)=>`${a}="${mr(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,a,o)=>`${a}='${mr(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&void 0,e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript&#58;")}),e}const $s=Object.prototype.hasOwnProperty;function me(e,t){return $s.call(e,t)}const j=Array.isArray,Y=e=>typeof e=="function",D=e=>typeof e=="string",B=e=>typeof e=="boolean",U=e=>e!==null&&typeof e=="object",Ws=e=>U(e)&&Y(e.then)&&Y(e.catch),La=Object.prototype.toString,Hn=e=>La.call(e),M=e=>Hn(e)==="[object Object]",Ys=e=>e==null?"":j(e)||M(e)&&e.toString===La?JSON.stringify(e,null,2):String(e);function Kn(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const hr=2;function Hs(e,t=0,n=e.length){const r=e.split(/\r?\n/);let a=0;const o=[];for(let s=0;s<r.length;s++)if(a+=r[s].length+1,a>=t){for(let c=s-hr;c<=s+hr||n>a;c++){if(c<0||c>=r.length)continue;const l=c+1;o.push(`${l}${" ".repeat(3-String(l).length)}| ${r[c]}`);const u=r[c].length;if(c===s){const d=t-(a-u)+1,f=Math.max(1,n>a?u-d:n-t);o.push(" | "+" ".repeat(d)+"^".repeat(f))}else if(c>s){if(n>a){const d=Math.max(Math.min(n-a,u),1);o.push(" | "+"^".repeat(d))}a+=u+1}}break}return o.join(`
10
+ `)}function jn(){const e=new Map;return{events:e,on(n,r){const a=e.get(n);a&&a.push(r)||e.set(n,[r])},off(n,r){const a=e.get(n);a&&a.splice(a.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(a=>a(r)),(e.get("*")||[]).slice().map(a=>a(n,r))}}}const wt=e=>!U(e)||j(e);function Pt(e,t){if(wt(e)||wt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:a}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(U(r[o])&&!U(a[o])&&(a[o]=Array.isArray(r[o])?[]:$()),wt(a[o])||wt(r[o])?a[o]=r[o]:n.push({src:r[o],des:a[o]}))})}}/*!
11
+ * message-compiler v11.1.11
12
+ * (c) 2025 kazuya kawaguchi
13
+ * Released under the MIT License.
14
+ */function Ks(e,t,n){return{line:e,column:t,offset:n}}function yn(e,t,n){return{start:e,end:t}}const P={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},js=17,qs={[P.EXPECTED_TOKEN]:"Expected token: '{0}'",[P.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[P.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[P.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[P.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[P.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[P.EMPTY_PLACEHOLDER]:"Empty placeholder",[P.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[P.INVALID_LINKED_FORMAT]:"Invalid linked format",[P.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[P.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[P.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[P.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[P.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[P.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function nt(e,t,n={}){const{domain:r,messages:a,args:o}=n,s=process.env.NODE_ENV!=="production"?xt((a||qs)[e]||"",...o||[]):e,c=new SyntaxError(String(s));return c.code=e,t&&(c.location=t),c.domain=r,c}function Xs(e){throw e}const Qs=/<\/?[\w\s="/.':;#-\/]+>/,Js=e=>Qs.test(e),be=" ",zs="\r",re=`
15
+ `,Zs="\u2028",ei="\u2029";function ti(e){const t=e;let n=0,r=1,a=1,o=0;const s=A=>t[A]===zs&&t[A+1]===re,c=A=>t[A]===re,l=A=>t[A]===ei,u=A=>t[A]===Zs,d=A=>s(A)||c(A)||l(A)||u(A),f=()=>n,m=()=>r,E=()=>a,v=()=>o,S=A=>s(A)||l(A)||u(A)?re:t[A],I=()=>S(n),g=()=>S(n+o);function p(){return o=0,d(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}function T(){return s(n+o)&&o++,o++,t[n+o]}function N(){n=0,r=1,a=1,o=0}function w(A=0){o=A}function L(){const A=n+o;for(;A!==n;)p();o=0}return{index:f,line:m,column:E,peekOffset:v,charAt:S,currentChar:I,currentPeek:g,next:p,peek:T,reset:N,resetPeek:w,skipToPeek:L}}const Ce=void 0,ni=".",gr="'",ri="tokenizer";function ai(e,t={}){const n=t.location!==!1,r=ti(e),a=()=>r.index(),o=()=>Ks(r.line(),r.column(),r.index()),s=o(),c=a(),l={currentType:13,offset:c,startLoc:s,endLoc:s,lastType:13,lastOffset:c,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:d}=t;function f(_,h,y,...k){const X=u();if(h.column+=y,h.offset+=y,d){const Q=n?yn(X.startLoc,h):null,x=nt(_,Q,{domain:ri,args:k});d(x)}}function m(_,h,y){_.endLoc=o(),_.currentType=h;const k={type:h};return n&&(k.loc=yn(_.startLoc,_.endLoc)),y!=null&&(k.value=y),k}const E=_=>m(_,13);function v(_,h){return _.currentChar()===h?(_.next(),h):(f(P.EXPECTED_TOKEN,o(),0,h),"")}function S(_){let h="";for(;_.currentPeek()===be||_.currentPeek()===re;)h+=_.currentPeek(),_.peek();return h}function I(_){const h=S(_);return _.skipToPeek(),h}function g(_){if(_===Ce)return!1;const h=_.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h===95}function p(_){if(_===Ce)return!1;const h=_.charCodeAt(0);return h>=48&&h<=57}function T(_,h){const{currentType:y}=h;if(y!==2)return!1;S(_);const k=g(_.currentPeek());return _.resetPeek(),k}function N(_,h){const{currentType:y}=h;if(y!==2)return!1;S(_);const k=_.currentPeek()==="-"?_.peek():_.currentPeek(),X=p(k);return _.resetPeek(),X}function w(_,h){const{currentType:y}=h;if(y!==2)return!1;S(_);const k=_.currentPeek()===gr;return _.resetPeek(),k}function L(_,h){const{currentType:y}=h;if(y!==7)return!1;S(_);const k=_.currentPeek()===".";return _.resetPeek(),k}function A(_,h){const{currentType:y}=h;if(y!==8)return!1;S(_);const k=g(_.currentPeek());return _.resetPeek(),k}function F(_,h){const{currentType:y}=h;if(!(y===7||y===11))return!1;S(_);const k=_.currentPeek()===":";return _.resetPeek(),k}function V(_,h){const{currentType:y}=h;if(y!==9)return!1;const k=()=>{const Q=_.currentPeek();return Q==="{"?g(_.peek()):Q==="@"||Q==="|"||Q===":"||Q==="."||Q===be||!Q?!1:Q===re?(_.peek(),k()):ae(_,!1)},X=k();return _.resetPeek(),X}function q(_){S(_);const h=_.currentPeek()==="|";return _.resetPeek(),h}function ae(_,h=!0){const y=(X=!1,Q="")=>{const x=_.currentPeek();return x==="{"||x==="@"||!x?X:x==="|"?!(Q===be||Q===re):x===be?(_.peek(),y(!0,be)):x===re?(_.peek(),y(!0,re)):!0},k=y();return h&&_.resetPeek(),k}function K(_,h){const y=_.currentChar();return y===Ce?Ce:h(y)?(_.next(),y):null}function $e(_){const h=_.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36}function Yt(_){return K(_,$e)}function Ht(_){const h=_.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36||h===45}function Kt(_){return K(_,Ht)}function jt(_){const h=_.charCodeAt(0);return h>=48&&h<=57}function qt(_){return K(_,jt)}function Xt(_){const h=_.charCodeAt(0);return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function Se(_){return K(_,Xt)}function at(_){let h="",y="";for(;h=qt(_);)y+=h;return y}function Qt(_){let h="";for(;;){const y=_.currentChar();if(y==="{"||y==="}"||y==="@"||y==="|"||!y)break;if(y===be||y===re)if(ae(_))h+=y,_.next();else{if(q(_))break;h+=y,_.next()}else h+=y,_.next()}return h}function Jt(_){I(_);let h="",y="";for(;h=Kt(_);)y+=h;return _.currentChar()===Ce&&f(P.UNTERMINATED_CLOSING_BRACE,o(),0),y}function zt(_){I(_);let h="";return _.currentChar()==="-"?(_.next(),h+=`-${at(_)}`):h+=at(_),_.currentChar()===Ce&&f(P.UNTERMINATED_CLOSING_BRACE,o(),0),h}function Zt(_){return _!==gr&&_!==re}function or(_){I(_),v(_,"'");let h="",y="";for(;h=K(_,Zt);)h==="\\"?y+=en(_):y+=h;const k=_.currentChar();return k===re||k===Ce?(f(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),k===re&&(_.next(),v(_,"'")),y):(v(_,"'"),y)}function en(_){const h=_.currentChar();switch(h){case"\\":case"'":return _.next(),`\\${h}`;case"u":return Ct(_,h,4);case"U":return Ct(_,h,6);default:return f(P.UNKNOWN_ESCAPE_SEQUENCE,o(),0,h),""}}function Ct(_,h,y){v(_,h);let k="";for(let X=0;X<y;X++){const Q=Se(_);if(!Q){f(P.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${h}${k}${_.currentChar()}`);break}k+=Q}return`\\${h}${k}`}function tn(_){return _!=="{"&&_!=="}"&&_!==be&&_!==re}function nn(_){I(_);let h="",y="";for(;h=K(_,tn);)y+=h;return y}function rn(_){let h="",y="";for(;h=Yt(_);)y+=h;return y}function an(_){const h=y=>{const k=_.currentChar();return k==="{"||k==="@"||k==="|"||k==="("||k===")"||!k||k===be?y:(y+=k,_.next(),h(y))};return h("")}function ot(_){I(_);const h=v(_,"|");return I(_),h}function st(_,h){let y=null;switch(_.currentChar()){case"{":return h.braceNest>=1&&f(P.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),_.next(),y=m(h,2,"{"),I(_),h.braceNest++,y;case"}":return h.braceNest>0&&h.currentType===2&&f(P.EMPTY_PLACEHOLDER,o(),0),_.next(),y=m(h,3,"}"),h.braceNest--,h.braceNest>0&&I(_),h.inLinked&&h.braceNest===0&&(h.inLinked=!1),y;case"@":return h.braceNest>0&&f(P.UNTERMINATED_CLOSING_BRACE,o(),0),y=Re(_,h)||E(h),h.braceNest=0,y;default:{let X=!0,Q=!0,x=!0;if(q(_))return h.braceNest>0&&f(P.UNTERMINATED_CLOSING_BRACE,o(),0),y=m(h,1,ot(_)),h.braceNest=0,h.inLinked=!1,y;if(h.braceNest>0&&(h.currentType===4||h.currentType===5||h.currentType===6))return f(P.UNTERMINATED_CLOSING_BRACE,o(),0),h.braceNest=0,it(_,h);if(X=T(_,h))return y=m(h,4,Jt(_)),I(_),y;if(Q=N(_,h))return y=m(h,5,zt(_)),I(_),y;if(x=w(_,h))return y=m(h,6,or(_)),I(_),y;if(!X&&!Q&&!x)return y=m(h,12,nn(_)),f(P.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,y.value),I(_),y;break}}return y}function Re(_,h){const{currentType:y}=h;let k=null;const X=_.currentChar();switch((y===7||y===8||y===11||y===9)&&(X===re||X===be)&&f(P.INVALID_LINKED_FORMAT,o(),0),X){case"@":return _.next(),k=m(h,7,"@"),h.inLinked=!0,k;case".":return I(_),_.next(),m(h,8,".");case":":return I(_),_.next(),m(h,9,":");default:return q(_)?(k=m(h,1,ot(_)),h.braceNest=0,h.inLinked=!1,k):L(_,h)||F(_,h)?(I(_),Re(_,h)):A(_,h)?(I(_),m(h,11,rn(_))):V(_,h)?(I(_),X==="{"?st(_,h)||k:m(h,10,an(_))):(y===7&&f(P.INVALID_LINKED_FORMAT,o(),0),h.braceNest=0,h.inLinked=!1,it(_,h))}}function it(_,h){let y={type:13};if(h.braceNest>0)return st(_,h)||E(h);if(h.inLinked)return Re(_,h)||E(h);switch(_.currentChar()){case"{":return st(_,h)||E(h);case"}":return f(P.UNBALANCED_CLOSING_BRACE,o(),0),_.next(),m(h,3,"}");case"@":return Re(_,h)||E(h);default:{if(q(_))return y=m(h,1,ot(_)),h.braceNest=0,h.inLinked=!1,y;if(ae(_))return m(h,0,Qt(_));break}}return y}function on(){const{currentType:_,offset:h,startLoc:y,endLoc:k}=l;return l.lastType=_,l.lastOffset=h,l.lastStartLoc=y,l.lastEndLoc=k,l.offset=a(),l.startLoc=o(),r.currentChar()===Ce?m(l,13):it(r,l)}return{nextToken:on,currentOffset:a,currentPosition:o,context:u}}const oi="parser",si=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ii(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function li(e={}){const t=e.location!==!1,{onError:n}=e;function r(g,p,T,N,...w){const L=g.currentPosition();if(L.offset+=N,L.column+=N,n){const A=t?yn(T,L):null,F=nt(p,A,{domain:oi,args:w});n(F)}}function a(g,p,T){const N={type:g};return t&&(N.start=p,N.end=p,N.loc={start:T,end:T}),N}function o(g,p,T,N){t&&(g.end=p,g.loc&&(g.loc.end=T))}function s(g,p){const T=g.context(),N=a(3,T.offset,T.startLoc);return N.value=p,o(N,g.currentOffset(),g.currentPosition()),N}function c(g,p){const T=g.context(),{lastOffset:N,lastStartLoc:w}=T,L=a(5,N,w);return L.index=parseInt(p,10),g.nextToken(),o(L,g.currentOffset(),g.currentPosition()),L}function l(g,p){const T=g.context(),{lastOffset:N,lastStartLoc:w}=T,L=a(4,N,w);return L.key=p,g.nextToken(),o(L,g.currentOffset(),g.currentPosition()),L}function u(g,p){const T=g.context(),{lastOffset:N,lastStartLoc:w}=T,L=a(9,N,w);return L.value=p.replace(si,ii),g.nextToken(),o(L,g.currentOffset(),g.currentPosition()),L}function d(g){const p=g.nextToken(),T=g.context(),{lastOffset:N,lastStartLoc:w}=T,L=a(8,N,w);return p.type!==11?(r(g,P.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),L.value="",o(L,N,w),{nextConsumeToken:p,node:L}):(p.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,ge(p)),L.value=p.value||"",o(L,g.currentOffset(),g.currentPosition()),{node:L})}function f(g,p){const T=g.context(),N=a(7,T.offset,T.startLoc);return N.value=p,o(N,g.currentOffset(),g.currentPosition()),N}function m(g){const p=g.context(),T=a(6,p.offset,p.startLoc);let N=g.nextToken();if(N.type===8){const w=d(g);T.modifier=w.node,N=w.nextConsumeToken||g.nextToken()}switch(N.type!==9&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ge(N)),N=g.nextToken(),N.type===2&&(N=g.nextToken()),N.type){case 10:N.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ge(N)),T.key=f(g,N.value||"");break;case 4:N.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ge(N)),T.key=l(g,N.value||"");break;case 5:N.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ge(N)),T.key=c(g,N.value||"");break;case 6:N.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ge(N)),T.key=u(g,N.value||"");break;default:{r(g,P.UNEXPECTED_EMPTY_LINKED_KEY,p.lastStartLoc,0);const w=g.context(),L=a(7,w.offset,w.startLoc);return L.value="",o(L,w.offset,w.startLoc),T.key=L,o(T,w.offset,w.startLoc),{nextConsumeToken:N,node:T}}}return o(T,g.currentOffset(),g.currentPosition()),{node:T}}function E(g){const p=g.context(),T=p.currentType===1?g.currentOffset():p.offset,N=p.currentType===1?p.endLoc:p.startLoc,w=a(2,T,N);w.items=[];let L=null;do{const V=L||g.nextToken();switch(L=null,V.type){case 0:V.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ge(V)),w.items.push(s(g,V.value||""));break;case 5:V.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ge(V)),w.items.push(c(g,V.value||""));break;case 4:V.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ge(V)),w.items.push(l(g,V.value||""));break;case 6:V.value==null&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,ge(V)),w.items.push(u(g,V.value||""));break;case 7:{const q=m(g);w.items.push(q.node),L=q.nextConsumeToken||null;break}}}while(p.currentType!==13&&p.currentType!==1);const A=p.currentType===1?p.lastOffset:g.currentOffset(),F=p.currentType===1?p.lastEndLoc:g.currentPosition();return o(w,A,F),w}function v(g,p,T,N){const w=g.context();let L=N.items.length===0;const A=a(1,p,T);A.cases=[],A.cases.push(N);do{const F=E(g);L||(L=F.items.length===0),A.cases.push(F)}while(w.currentType!==13);return L&&r(g,P.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),o(A,g.currentOffset(),g.currentPosition()),A}function S(g){const p=g.context(),{offset:T,startLoc:N}=p,w=E(g);return p.currentType===13?w:v(g,T,N,w)}function I(g){const p=ai(g,ee({},e)),T=p.context(),N=a(0,T.offset,T.startLoc);return t&&N.loc&&(N.loc.source=g),N.body=S(p),e.onCacheKey&&(N.cacheKey=e.onCacheKey(g)),T.currentType!==13&&r(p,P.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,g[T.offset]||""),o(N,p.currentOffset(),p.currentPosition()),N}return{parse:I}}function ge(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function ci(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function pr(e,t){for(let n=0;n<e.length;n++)qn(e[n],t)}function qn(e,t){switch(e.type){case 1:pr(e.cases,t),t.helper("plural");break;case 2:pr(e.items,t);break;case 6:{qn(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function ui(e,t={}){const n=ci(e);n.helper("normalize"),e.body&&qn(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function fi(e){const t=e.body;return t.type===2?Er(t):t.cases.forEach(n=>Er(n)),e}function Er(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Kn(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const di="minifier";function qe(e){switch(e.t=e.type,e.type){case 0:{const t=e;qe(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)qe(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)qe(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;qe(t.key),t.k=t.key,delete t.key,t.modifier&&(qe(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw nt(P.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:di,args:[e.type]})}delete e.type}const _i="parser";function mi(e,t){const{filename:n,breakLineCode:r,needIndent:a}=t,o=t.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:a,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);const c=()=>s;function l(S,I){s.code+=S}function u(S,I=!0){const g=I?r:"";l(a?g+" ".repeat(S):g)}function d(S=!0){const I=++s.indentLevel;S&&u(I)}function f(S=!0){const I=--s.indentLevel;S&&u(I)}function m(){u(s.indentLevel)}return{context:c,push:l,indent:d,deindent:f,newline:m,helper:S=>`_${S}`,needIndent:()=>s.needIndent}}function hi(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ze(e,t.key),t.modifier?(e.push(", "),Ze(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function gi(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let o=0;o<a&&(Ze(e,t.items[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function pi(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let o=0;o<a&&(Ze(e,t.cases[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function Ei(e,t){t.body?Ze(e,t.body):e.push("null")}function Ze(e,t){const{helper:n}=e;switch(t.type){case 0:Ei(e,t);break;case 1:pi(e,t);break;case 2:gi(e,t);break;case 6:hi(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw nt(P.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:_i,args:[t.type]})}}const Si=(e,t={})=>{const n=D(t.mode)?t.mode:"normal",r=D(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
16
+ `,o=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],c=mi(e,{filename:r,breakLineCode:a,needIndent:o});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),s.length>0&&(c.push(`const { ${Kn(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),c.newline()),c.push("return "),Ze(c,e),c.deindent(o),c.push("}"),delete e.helpers;const{code:l,map:u}=c.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function bi(e,t={}){const n=ee({},t),r=!!n.jit,a=!!n.minify,o=n.optimize==null?!0:n.optimize,c=li(n).parse(e);return r?(o&&fi(c),a&&qe(c),{ast:c,code:""}):(ui(c,n),Si(c,n))}/*!
17
+ * core-base v11.1.11
18
+ * (c) 2025 kazuya kawaguchi
19
+ * Released under the MIT License.
20
+ */function Ni(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ue().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ue().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function de(e){return U(e)&&Xn(e)===0&&(me(e,"b")||me(e,"body"))}const Da=["b","body"];function vi(e){return De(e,Da)}const ka=["c","cases"];function Ai(e){return De(e,ka,[])}const Ra=["s","static"];function yi(e){return De(e,Ra)}const Pa=["i","items"];function Ti(e){return De(e,Pa,[])}const Fa=["t","type"];function Xn(e){return De(e,Fa)}const Ma=["v","value"];function Lt(e,t){const n=De(e,Ma);if(n!=null)return n;throw gt(t)}const Va=["m","modifier"];function Ci(e){return De(e,Va)}const Ua=["k","key"];function Oi(e){const t=De(e,Ua);if(t)return t;throw gt(6)}function De(e,t,n){for(let r=0;r<t.length;r++){const a=t[r];if(me(e,a)&&e[a]!=null)return e[a]}return n}const Ba=[...Da,...ka,...Ra,...Pa,...Ua,...Va,...Ma,...Fa];function gt(e){return new Error(`unhandled node type: ${e}`)}function cn(e){return n=>Ii(n,e)}function Ii(e,t){const n=vi(t);if(n==null)throw gt(0);if(Xn(n)===1){const o=Ai(n);return e.plural(o.reduce((s,c)=>[...s,Sr(e,c)],[]))}else return Sr(e,n)}function Sr(e,t){const n=yi(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Ti(t).reduce((a,o)=>[...a,Tn(e,o)],[]);return e.normalize(r)}}function Tn(e,t){const n=Xn(t);switch(n){case 3:return Lt(t,n);case 9:return Lt(t,n);case 4:{const r=t;if(me(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(me(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw gt(n)}case 5:{const r=t;if(me(r,"i")&&z(r.i))return e.interpolate(e.list(r.i));if(me(r,"index")&&z(r.index))return e.interpolate(e.list(r.index));throw gt(n)}case 6:{const r=t,a=Ci(r),o=Oi(r);return e.linked(Tn(e,o),a?Tn(e,a):void 0,e.type)}case 7:return Lt(t,n);case 8:return Lt(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const wi="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Li(e,t){t&&Js(e)&&(xt(wi,{source:e}),void 0)}const Di=e=>e;let Dt=$();function ki(e,t={}){let n=!1;const r=t.onError||Xs;return t.onError=a=>{n=!0,r(a)},{...bi(e,t),detectError:n}}function Ri(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&D(e)){const n=B(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Li(e,n);const a=(t.onCacheKey||Di)(e),o=Dt[a];if(o)return o;const{ast:s,detectError:c}=ki(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),l=cn(s);return c?l:Dt[a]=l}else{if(process.env.NODE_ENV!=="production"&&!de(e))return`${t.key}`,()=>e;const n=e.cacheKey;if(n){const r=Dt[n];return r||(Dt[n]=cn(e))}else return cn(e)}}let pt=null;function Pi(e){pt=e}function Fi(e,t,n){pt&&pt.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Mi=Vi("function:translate");function Vi(e){return t=>pt&&pt.emit(e,t)}const ne={INVALID_ARGUMENT:js,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Ui=24;function ve(e){return nt(e,null,process.env.NODE_ENV!=="production"?{messages:Bi}:void 0)}const Bi={[ne.INVALID_ARGUMENT]:"Invalid arguments",[ne.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ne.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ne.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ne.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ne.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ne.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Qn(e,t){return t.locale!=null?br(t.locale):br(e.locale)}let un;function br(e){if(D(e))return e;if(Y(e)){if(e.resolvedOnce&&un!=null)return un;if(e.constructor.name==="Function"){const t=e();if(Ws(t))throw ve(ne.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return un=t}else throw ve(ne.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ve(ne.NOT_SUPPORT_LOCALE_TYPE)}function xi(e,t,n){return[...new Set([n,...j(t)?t:U(t)?Object.keys(t):D(t)?[t]:[n]])]}function xa(e,t,n){const r=D(n)?n:Et,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let s=[n];for(;j(s);)s=Nr(o,s,t);const c=j(t)||!M(t)?t:t.default?t.default:null;s=D(c)?[c]:c,j(s)&&Nr(o,s,!1),a.__localeChainCache.set(r,o)}return o}function Nr(e,t,n){let r=!0;for(let a=0;a<t.length&&B(r);a++){const o=t[a];D(o)&&(r=Gi(e,t[a],n))}return r}function Gi(e,t,n){let r;const a=t.split("-");do{const o=a.join("-");r=$i(e,o,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function $i(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(j(n)||M(n))&&n[a]&&(r=n[a])}return r}const ke=[];ke[0]={w:[0],i:[3,0],"[":[4],o:[7]};ke[1]={w:[1],".":[2],"[":[4],o:[7]};ke[2]={w:[2],i:[3,0],0:[3,0]};ke[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};ke[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};ke[5]={"'":[4,0],o:8,l:[5,0]};ke[6]={'"':[4,0],o:8,l:[6,0]};const Wi=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Yi(e){return Wi.test(e)}function Hi(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Ki(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function ji(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Yi(t)?Hi(t):"*"+t}function qi(e){const t=[];let n=-1,r=0,a=0,o,s,c,l,u,d,f;const m=[];m[0]=()=>{s===void 0?s=c:s+=c},m[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},m[2]=()=>{m[0](),a++},m[3]=()=>{if(a>0)a--,r=4,m[0]();else{if(a=0,s===void 0||(s=ji(s),s===!1))return!1;m[1]()}};function E(){const v=e[n+1];if(r===5&&v==="'"||r===6&&v==='"')return n++,c="\\"+v,m[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&E())){if(l=Ki(o),f=ke[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(d=m[u[1]],d&&(c=o,d()===!1))))return;if(r===7)return t}}const vr=new Map;function Xi(e,t){return U(e)?e[t]:null}function Qi(e,t){if(!U(e))return null;let n=vr.get(t);if(n||(n=qi(t),n&&vr.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const s=n[o];if(Ba.includes(s)&&de(a))return null;const c=a[s];if(c===void 0||Y(a))return null;a=c,o++}return a}const oe={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},Ji=8,zi={[oe.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[oe.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[oe.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[oe.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[oe.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[oe.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[oe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function xe(e,...t){return xt(zi[e],...t)}const Zi="11.1.11",$t=-1,Et="en-US",Vt="",Ar=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function el(){return{upper:(e,t)=>t==="text"&&D(e)?e.toUpperCase():t==="vnode"&&U(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&D(e)?e.toLowerCase():t==="vnode"&&U(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&D(e)?Ar(e):t==="vnode"&&U(e)&&"__v_isVNode"in e?Ar(e.children):e}}let Ga;function tl(e){Ga=e}let $a;function nl(e){$a=e}let Wa;function rl(e){Wa=e}let Ya=null;const al=e=>{Ya=e},ol=()=>Ya;let Ha=null;const yr=e=>{Ha=e},sl=()=>Ha;let Tr=0;function il(e={}){const t=Y(e.onWarn)?e.onWarn:Fs,n=D(e.version)?e.version:Zi,r=D(e.locale)||Y(e.locale)?e.locale:Et,a=Y(r)?Et:r,o=j(e.fallbackLocale)||M(e.fallbackLocale)||D(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,s=M(e.messages)?e.messages:fn(a),c=M(e.datetimeFormats)?e.datetimeFormats:fn(a),l=M(e.numberFormats)?e.numberFormats:fn(a),u=ee($(),e.modifiers,el()),d=e.pluralRules||$(),f=Y(e.missing)?e.missing:null,m=B(e.missingWarn)||ze(e.missingWarn)?e.missingWarn:!0,E=B(e.fallbackWarn)||ze(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,S=!!e.unresolving,I=Y(e.postTranslation)?e.postTranslation:null,g=M(e.processor)?e.processor:null,p=B(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,N=Y(e.messageCompiler)?e.messageCompiler:Ga;process.env.NODE_ENV!=="production"&&Y(e.messageCompiler)&&Yn(xe(oe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=Y(e.messageResolver)?e.messageResolver:$a||Xi,L=Y(e.localeFallbacker)?e.localeFallbacker:Wa||xi,A=U(e.fallbackContext)?e.fallbackContext:void 0,F=e,V=U(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,q=U(F.__numberFormatters)?F.__numberFormatters:new Map,ae=U(F.__meta)?F.__meta:{};Tr++;const K={version:n,cid:Tr,locale:r,fallbackLocale:o,messages:s,modifiers:u,pluralRules:d,missing:f,missingWarn:m,fallbackWarn:E,fallbackFormat:v,unresolving:S,postTranslation:I,processor:g,warnHtmlMessage:p,escapeParameter:T,messageCompiler:N,messageResolver:w,localeFallbacker:L,fallbackContext:A,onWarn:t,__meta:ae};return K.datetimeFormats=c,K.numberFormats=l,K.__datetimeFormatters=V,K.__numberFormatters=q,process.env.NODE_ENV!=="production"&&(K.__v_emitter=F.__v_emitter!=null?F.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Fi(K,n,ae),K}const fn=e=>({[e]:$()});function Wt(e,t){return e instanceof RegExp?e.test(t):e}function Ka(e,t){return e instanceof RegExp?e.test(t):e}function Jn(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const c=e.__v_emitter;c&&c.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(o!==null){const c=o(e,n,t,a);return D(c)?c:t}else return process.env.NODE_ENV!=="production"&&Ka(r,t)&&s(xe(oe.NOT_FOUND_KEY,{key:t,locale:n})),t}function ut(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ja(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function ll(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(ja(e,t[r]))return!0;return!1}const Cr=typeof Intl<"u",qa={dateTimeFormat:Cr&&typeof Intl.DateTimeFormat<"u",numberFormat:Cr&&typeof Intl.NumberFormat<"u"};function Or(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!qa.dateTimeFormat)return o(xe(oe.CANNOT_FORMAT_DATE)),Vt;const[l,u,d,f]=Cn(...t),m=B(d.missingWarn)?d.missingWarn:e.missingWarn,E=B(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,v=!!d.part,S=Qn(e,d),I=s(e,a,S);if(!D(l)||l==="")return new Intl.DateTimeFormat(S,f).format(u);let g={},p,T=null,N=S,w=null;const L="datetime format";for(let V=0;V<I.length;V++){if(p=w=I[V],process.env.NODE_ENV!=="production"&&S!==p&&Wt(E,l)&&o(xe(oe.FALLBACK_TO_DATE_FORMAT,{key:l,target:p})),process.env.NODE_ENV!=="production"&&S!==p){const q=e.__v_emitter;q&&q.emit("fallback",{type:L,key:l,from:N,to:w,groupId:`${L}:${l}`})}if(g=n[p]||{},T=g[l],M(T))break;Jn(e,l,p,m,L),N=w}if(!M(T)||!D(p))return r?$t:l;let A=`${p}__${l}`;Gt(f)||(A=`${A}__${JSON.stringify(f)}`);let F=c.get(A);return F||(F=new Intl.DateTimeFormat(p,ee({},T,f)),c.set(A,F)),v?F.formatToParts(u):F.format(u)}const Xa=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Cn(...e){const[t,n,r,a]=e,o=$();let s=$(),c;if(D(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ve(ne.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();c=new Date(u);try{c.toISOString()}catch{throw ve(ne.INVALID_ISO_DATE_ARGUMENT)}}else if(Bs(t)){if(isNaN(t.getTime()))throw ve(ne.INVALID_DATE_ARGUMENT);c=t}else if(z(t))c=t;else throw ve(ne.INVALID_ARGUMENT);return D(n)?o.key=n:M(n)&&Object.keys(n).forEach(l=>{Xa.includes(l)?s[l]=n[l]:o[l]=n[l]}),D(r)?o.locale=r:M(r)&&(s=r),M(a)&&(s=a),[o.key||"",c,o,s]}function Ir(e,t,n){const r=e;for(const a in n){const o=`${t}__${a}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function wr(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!qa.numberFormat)return o(xe(oe.CANNOT_FORMAT_NUMBER)),Vt;const[l,u,d,f]=On(...t),m=B(d.missingWarn)?d.missingWarn:e.missingWarn,E=B(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,v=!!d.part,S=Qn(e,d),I=s(e,a,S);if(!D(l)||l==="")return new Intl.NumberFormat(S,f).format(u);let g={},p,T=null,N=S,w=null;const L="number format";for(let V=0;V<I.length;V++){if(p=w=I[V],process.env.NODE_ENV!=="production"&&S!==p&&Wt(E,l)&&o(xe(oe.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:p})),process.env.NODE_ENV!=="production"&&S!==p){const q=e.__v_emitter;q&&q.emit("fallback",{type:L,key:l,from:N,to:w,groupId:`${L}:${l}`})}if(g=n[p]||{},T=g[l],M(T))break;Jn(e,l,p,m,L),N=w}if(!M(T)||!D(p))return r?$t:l;let A=`${p}__${l}`;Gt(f)||(A=`${A}__${JSON.stringify(f)}`);let F=c.get(A);return F||(F=new Intl.NumberFormat(p,ee({},T,f)),c.set(A,F)),v?F.formatToParts(u):F.format(u)}const Qa=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function On(...e){const[t,n,r,a]=e,o=$();let s=$();if(!z(t))throw ve(ne.INVALID_ARGUMENT);const c=t;return D(n)?o.key=n:M(n)&&Object.keys(n).forEach(l=>{Qa.includes(l)?s[l]=n[l]:o[l]=n[l]}),D(r)?o.locale=r:M(r)&&(s=r),M(a)&&(s=a),[o.key||"",c,o,s]}function Lr(e,t,n){const r=e;for(const a in n){const o=`${t}__${a}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const cl=e=>e,ul=e=>"",fl="text",dl=e=>e.length===0?"":Kn(e),_l=Ys;function Dr(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ml(e){const t=z(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(z(e.named.count)||z(e.named.n))?z(e.named.count)?e.named.count:z(e.named.n)?e.named.n:t:t}function hl(e,t){t.count||(t.count=e),t.n||(t.n=e)}function gl(e={}){const t=e.locale,n=ml(e),r=U(e.pluralRules)&&D(t)&&Y(e.pluralRules[t])?e.pluralRules[t]:Dr,a=U(e.pluralRules)&&D(t)&&Y(e.pluralRules[t])?Dr:void 0,o=g=>g[r(n,g.length,a)],s=e.list||[],c=g=>s[g],l=e.named||$();z(e.pluralIndex)&&hl(n,l);const u=g=>l[g];function d(g,p){const T=Y(e.messages)?e.messages(g,!!p):U(e.messages)?e.messages[g]:!1;return T||(e.parent?e.parent.message(g):ul)}const f=g=>e.modifiers?e.modifiers[g]:cl,m=M(e.processor)&&Y(e.processor.normalize)?e.processor.normalize:dl,E=M(e.processor)&&Y(e.processor.interpolate)?e.processor.interpolate:_l,v=M(e.processor)&&D(e.processor.type)?e.processor.type:fl,I={list:c,named:u,plural:o,linked:(g,...p)=>{const[T,N]=p;let w="text",L="";p.length===1?U(T)?(L=T.modifier||L,w=T.type||w):D(T)&&(L=T||L):p.length===2&&(D(T)&&(L=T||L),D(N)&&(w=N||w));const A=d(g,!0)(I),F=w==="vnode"&&j(A)&&L?A[0]:A;return L?f(L)(F,w):F},message:d,type:v,interpolate:E,normalize:m,values:ee($(),s,l)};return I}const kr=()=>"",ce=e=>Y(e);function Rr(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:c}=e,[l,u]=In(...t),d=B(u.missingWarn)?u.missingWarn:e.missingWarn,f=B(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,m=B(u.escapeParameter)?u.escapeParameter:e.escapeParameter,E=!!u.resolvedMessage,v=D(u.default)||B(u.default)?B(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:null,S=n||v!=null&&(D(v)||Y(v)),I=Qn(e,u);m&&pl(u);let[g,p,T]=E?[l,I,c[I]||$()]:Ja(e,l,I,s,f,d),N=g,w=l;if(!E&&!(D(N)||de(N)||ce(N))&&S&&(N=v,w=N),!E&&(!(D(N)||de(N)||ce(N))||!D(p)))return a?$t:l;if(process.env.NODE_ENV!=="production"&&D(N)&&e.messageCompiler==null)return`${l}`,l;let L=!1;const A=()=>{L=!0},F=ce(N)?N:za(e,l,p,N,w,A);if(L)return N;const V=Nl(e,p,T,u),q=gl(V),ae=El(e,F,q);let K=r?r(ae,l):ae;if(m&&D(K)&&(K=Gs(K)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const $e={timestamp:Date.now(),key:D(l)?l:ce(N)?N.key:"",locale:p||(ce(N)?N.locale:""),format:D(N)?N:ce(N)?N.source:"",message:K};$e.meta=ee({},e.__meta,ol()||{}),Mi($e)}return K}function pl(e){j(e.list)?e.list=e.list.map(t=>D(t)?_r(t):t):U(e.named)&&Object.keys(e.named).forEach(t=>{D(e.named[t])&&(e.named[t]=_r(e.named[t]))})}function Ja(e,t,n,r,a,o){const{messages:s,onWarn:c,messageResolver:l,localeFallbacker:u}=e,d=u(e,r,n);let f=$(),m,E=null,v=n,S=null;const I="translate";for(let g=0;g<d.length;g++){if(m=S=d[g],process.env.NODE_ENV!=="production"&&n!==m&&!ja(n,m)&&Wt(a,t)&&c(xe(oe.FALLBACK_TO_TRANSLATE,{key:t,target:m})),process.env.NODE_ENV!=="production"&&n!==m){const w=e.__v_emitter;w&&w.emit("fallback",{type:I,key:t,from:v,to:S,groupId:`${I}:${t}`})}f=s[m]||$();let p=null,T,N;if(process.env.NODE_ENV!=="production"&&he&&(p=window.performance.now(),T="intlify-message-resolve-start",N="intlify-message-resolve-end",le&&le(T)),(E=l(f,t))===null&&(E=f[t]),process.env.NODE_ENV!=="production"&&he){const w=window.performance.now(),L=e.__v_emitter;L&&p&&E&&L.emit("message-resolve",{type:"message-resolve",key:t,message:E,time:w-p,groupId:`${I}:${t}`}),T&&N&&le&&Be&&(le(N),Be("intlify message resolve",T,N))}if(D(E)||de(E)||ce(E))break;if(!ll(m,d)){const w=Jn(e,t,m,o,I);w!==t&&(E=w)}v=S}return[E,m,f]}function za(e,t,n,r,a,o){const{messageCompiler:s,warnHtmlMessage:c}=e;if(ce(r)){const m=r;return m.locale=m.locale||n,m.key=m.key||t,m}if(s==null){const m=()=>r;return m.locale=n,m.key=t,m}let l=null,u,d;process.env.NODE_ENV!=="production"&&he&&(l=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",le&&le(u));const f=s(r,Sl(e,n,a,r,c,o));if(process.env.NODE_ENV!=="production"&&he){const m=window.performance.now(),E=e.__v_emitter;E&&l&&E.emit("message-compilation",{type:"message-compilation",message:r,time:m-l,groupId:`translate:${t}`}),u&&d&&le&&Be&&(le(d),Be("intlify message compilation",u,d))}return f.locale=n,f.key=t,f.source=r,f}function El(e,t,n){let r=null,a,o;process.env.NODE_ENV!=="production"&&he&&(r=window.performance.now(),a="intlify-message-evaluation-start",o="intlify-message-evaluation-end",le&&le(a));const s=t(n);if(process.env.NODE_ENV!=="production"&&he){const c=window.performance.now(),l=e.__v_emitter;l&&r&&l.emit("message-evaluation",{type:"message-evaluation",value:s,time:c-r,groupId:`translate:${t.key}`}),a&&o&&le&&Be&&(le(o),Be("intlify message evaluation",a,o))}return s}function In(...e){const[t,n,r]=e,a=$();if(!D(t)&&!z(t)&&!ce(t)&&!de(t))throw ve(ne.INVALID_ARGUMENT);const o=z(t)?String(t):(ce(t),t);return z(n)?a.plural=n:D(n)?a.default=n:M(n)&&!Gt(n)?a.named=n:j(n)&&(a.list=n),z(r)?a.plural=r:D(r)?a.default=r:M(r)&&ee(a,r),[o,a]}function Sl(e,t,n,r,a,o){return{locale:t,key:n,warnHtmlMessage:a,onError:s=>{if(o&&o(s),process.env.NODE_ENV!=="production"){const c=bl(r),l=`Message compilation error: ${s.message}`,u=s.location&&c&&Hs(c,s.location.start.offset,s.location.end.offset),d=e.__v_emitter;d&&c&&d.emit("compile-error",{message:c,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${n}`})}else throw s},onCacheKey:s=>Vs(t,n,s)}}function bl(e){if(D(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Nl(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:c,fallbackWarn:l,missingWarn:u,fallbackContext:d}=e,m={locale:t,modifiers:a,pluralRules:o,messages:(E,v)=>{let S=s(n,E);if(S==null&&(d||v)){const[,,I]=Ja(d||e,E,t,c,l,u);S=s(I,E)}if(D(S)||de(S)){let I=!1;const p=za(e,E,t,S,E,()=>{I=!0});return I?kr:p}else return ce(S)?S:kr}};return e.processor&&(m.processor=e.processor),r.list&&(m.list=r.list),r.named&&(m.named=r.named),z(r.plural)&&(m.pluralIndex=r.plural),m}Ni();function vl(){return Za().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Za(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Al=typeof Proxy=="function",yl="devtools-plugin:setup",Tl="plugin:settings:set";let Ye,wn;function Cl(){var e;return Ye!==void 0||(typeof window<"u"&&window.performance?(Ye=!0,wn=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Ye=!0,wn=globalThis.perf_hooks.performance):Ye=!1),Ye}function Ol(){return Cl()?wn.now():Date.now()}class Il{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const c=t.settings[s];r[s]=c.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const s=localStorage.getItem(a),c=JSON.parse(s);Object.assign(o,c)}catch{}this.fallbacks={getSettings(){return o},setSettings(s){try{localStorage.setItem(a,JSON.stringify(s))}catch{}o=s},now(){return Ol()}},n&&n.on(Tl,(s,c)=>{s===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(s,c)=>this.target?this.target.on[c]:(...l)=>{this.onQueue.push({method:c,args:l})}}),this.proxiedTarget=new Proxy({},{get:(s,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...l)=>(this.targetQueue.push({method:c,args:l,resolve:()=>{}}),this.fallbacks[c](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:c,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function wl(e,t){const n=e,r=Za(),a=vl(),o=Al&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))a.emit(yl,e,t);else{const s=o?new Il(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
21
+ * vue-i18n v11.1.11
22
+ * (c) 2025 kazuya kawaguchi
23
+ * Released under the MIT License.
24
+ */const Ll="11.1.11";function Dl(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ue().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ue().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ue().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ue().__INTLIFY_PROD_DEVTOOLS__=!1)}const H={UNEXPECTED_RETURN_TYPE:Ui,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function ie(e,...t){return nt(e,null,process.env.NODE_ENV!=="production"?{messages:kl,args:t}:void 0)}const kl={[H.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[H.INVALID_ARGUMENT]:"Invalid argument",[H.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[H.NOT_INSTALLED]:"Need to install with `app.use` function",[H.UNEXPECTED_ERROR]:"Unexpected error",[H.REQUIRED_VALUE]:"Required in value: {0}",[H.INVALID_VALUE]:"Invalid value",[H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[H.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[H.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Ln=pe("__translateVNode"),Dn=pe("__datetimeParts"),kn=pe("__numberParts"),Ge=pe("__enableEmitter"),St=pe("__disableEmitter"),eo=pe("__setPluralRules"),to=pe("__injectWithOption"),Rn=pe("__dispose"),ue={FALLBACK_TO_ROOT:Ji,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},Rl={[ue.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[ue.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[ue.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[ue.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
25
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[ue.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[ue.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function et(e,...t){return xt(Rl[e],...t)}function bt(e){if(!U(e)||de(e))return e;for(const t in e)if(me(e,t))if(!t.includes("."))U(e[t])&&bt(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,o=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in a||(a[n[s]]=$()),!U(a[n[s]])){process.env.NODE_ENV!=="production"&&(et(ue.IGNORE_OBJ_FLATTEN,{key:n[s]}),void 0),o=!0;break}a=a[n[s]]}if(o||(de(a)?Ba.includes(n[r])||delete e[t]:(a[n[r]]=e[t],delete e[t])),!de(a)){const s=a[n[r]];U(s)&&bt(s)}}return e}function zn(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=M(n)?n:j(r)?$():{[e]:$()};if(j(r)&&r.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:l,resource:u}=c;l?(s[l]=s[l]||$(),Pt(u,s[l])):Pt(u,s)}else D(c)&&Pt(JSON.parse(c),s)}),a==null&&o)for(const c in s)me(s,c)&&bt(s[c]);return s}function no(e){return e.type}function ro(e,t,n){let r=U(t.messages)?t.messages:$();"__i18nGlobal"in n&&(r=zn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(U(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(U(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function Pr(e){return i.createVNode(i.Text,null,e,0)}const Fr="__INTLIFY_META__",Mr=()=>[],Pl=()=>!1;let Vr=0;function Ur(e){return(t,n,r,a)=>e(n,r,i.getCurrentInstance()||void 0,a)}const Fl=()=>{const e=i.getCurrentInstance();let t=null;return e&&(t=no(e)[Fr])?{[Fr]:t}:null};function Zn(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,a=e.flatJson,o=he?i.ref:i.shallowRef;let s=B(e.inheritLocale)?e.inheritLocale:!0;const c=o(t&&s?t.locale.value:D(e.locale)?e.locale:Et),l=o(t&&s?t.fallbackLocale.value:D(e.fallbackLocale)||j(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),u=o(zn(c.value,e)),d=o(M(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),f=o(M(e.numberFormats)?e.numberFormats:{[c.value]:{}});let m=t?t.missingWarn:B(e.missingWarn)||ze(e.missingWarn)?e.missingWarn:!0,E=t?t.fallbackWarn:B(e.fallbackWarn)||ze(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:B(e.fallbackRoot)?e.fallbackRoot:!0,S=!!e.fallbackFormat,I=Y(e.missing)?e.missing:null,g=Y(e.missing)?Ur(e.missing):null,p=Y(e.postTranslation)?e.postTranslation:null,T=t?t.warnHtmlMessage:B(e.warnHtmlMessage)?e.warnHtmlMessage:!0,N=!!e.escapeParameter;const w=t?t.modifiers:M(e.modifiers)?e.modifiers:{};let L=e.pluralRules||t&&t.pluralRules,A;A=(()=>{r&&yr(null);const b={version:Ll,locale:c.value,fallbackLocale:l.value,messages:u.value,modifiers:w,pluralRules:L,missing:g===null?void 0:g,missingWarn:m,fallbackWarn:E,fallbackFormat:S,unresolving:!0,postTranslation:p===null?void 0:p,warnHtmlMessage:T,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};b.datetimeFormats=d.value,b.numberFormats=f.value,b.__datetimeFormatters=M(A)?A.__datetimeFormatters:void 0,b.__numberFormatters=M(A)?A.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(b.__v_emitter=M(A)?A.__v_emitter:void 0);const C=il(b);return r&&yr(C),C})(),ut(A,c.value,l.value);function V(){return[c.value,l.value,u.value,d.value,f.value]}const q=i.computed({get:()=>c.value,set:b=>{A.locale=b,c.value=b}}),ae=i.computed({get:()=>l.value,set:b=>{A.fallbackLocale=b,l.value=b,ut(A,c.value,b)}}),K=i.computed(()=>u.value),$e=i.computed(()=>d.value),Yt=i.computed(()=>f.value);function Ht(){return Y(p)?p:null}function Kt(b){p=b,A.postTranslation=b}function jt(){return I}function qt(b){b!==null&&(g=Ur(b)),I=b,A.missing=g}function Xt(b,C){return b!=="translate"||!C.resolvedMessage}const Se=(b,C,G,J,Pe,Ot)=>{V();let We;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=t?sl():void 0),We=b(A)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(G!=="translate exists"&&z(We)&&We===$t||G==="translate exists"&&!We){const[Fe,po]=C();if(process.env.NODE_ENV!=="production"&&t&&D(Fe)&&Xt(G,po)&&(v&&(Wt(E,Fe)||Ka(m,Fe))&&(et(ue.FALLBACK_TO_ROOT,{key:Fe,type:G}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:sr}=A;sr&&v&&sr.emit("fallback",{type:G,key:Fe,to:"global",groupId:`${G}:${Fe}`})}return t&&v?J(t):Pe(Fe)}else{if(Ot(We))return We;throw ie(H.UNEXPECTED_RETURN_TYPE)}};function at(...b){return Se(C=>Reflect.apply(Rr,null,[C,...b]),()=>In(...b),"translate",C=>Reflect.apply(C.t,C,[...b]),C=>C,C=>D(C))}function Qt(...b){const[C,G,J]=b;if(J&&!U(J))throw ie(H.INVALID_ARGUMENT);return at(C,G,ee({resolvedMessage:!0},J||{}))}function Jt(...b){return Se(C=>Reflect.apply(Or,null,[C,...b]),()=>Cn(...b),"datetime format",C=>Reflect.apply(C.d,C,[...b]),()=>Vt,C=>D(C)||j(C))}function zt(...b){return Se(C=>Reflect.apply(wr,null,[C,...b]),()=>On(...b),"number format",C=>Reflect.apply(C.n,C,[...b]),()=>Vt,C=>D(C)||j(C))}function Zt(b){return b.map(C=>D(C)||z(C)||B(C)?Pr(String(C)):C)}const en={normalize:Zt,interpolate:b=>b,type:"vnode"};function Ct(...b){return Se(C=>{let G;const J=C;try{J.processor=en,G=Reflect.apply(Rr,null,[J,...b])}finally{J.processor=null}return G},()=>In(...b),"translate",C=>C[Ln](...b),C=>[Pr(C)],C=>j(C))}function tn(...b){return Se(C=>Reflect.apply(wr,null,[C,...b]),()=>On(...b),"number format",C=>C[kn](...b),Mr,C=>D(C)||j(C))}function nn(...b){return Se(C=>Reflect.apply(Or,null,[C,...b]),()=>Cn(...b),"datetime format",C=>C[Dn](...b),Mr,C=>D(C)||j(C))}function rn(b){L=b,A.pluralRules=L}function an(b,C){return Se(()=>{if(!b)return!1;const G=D(C)?C:c.value,J=Re(G),Pe=A.messageResolver(J,b);return de(Pe)||ce(Pe)||D(Pe)},()=>[b],"translate exists",G=>Reflect.apply(G.te,G,[b,C]),Pl,G=>B(G))}function ot(b){let C=null;const G=xa(A,l.value,c.value);for(let J=0;J<G.length;J++){const Pe=u.value[G[J]]||{},Ot=A.messageResolver(Pe,b);if(Ot!=null){C=Ot;break}}return C}function st(b){const C=ot(b);return C??(t?t.tm(b)||{}:{})}function Re(b){return u.value[b]||{}}function it(b,C){if(a){const G={[b]:C};for(const J in G)me(G,J)&&bt(G[J]);C=G[b]}u.value[b]=C,A.messages=u.value}function on(b,C){u.value[b]=u.value[b]||{};const G={[b]:C};if(a)for(const J in G)me(G,J)&&bt(G[J]);C=G[b],Pt(C,u.value[b]),A.messages=u.value}function _(b){return d.value[b]||{}}function h(b,C){d.value[b]=C,A.datetimeFormats=d.value,Ir(A,b,C)}function y(b,C){d.value[b]=ee(d.value[b]||{},C),A.datetimeFormats=d.value,Ir(A,b,C)}function k(b){return f.value[b]||{}}function X(b,C){f.value[b]=C,A.numberFormats=f.value,Lr(A,b,C)}function Q(b,C){f.value[b]=ee(f.value[b]||{},C),A.numberFormats=f.value,Lr(A,b,C)}Vr++,t&&he&&(i.watch(t.locale,b=>{s&&(c.value=b,A.locale=b,ut(A,c.value,l.value))}),i.watch(t.fallbackLocale,b=>{s&&(l.value=b,A.fallbackLocale=b,ut(A,c.value,l.value))}));const x={id:Vr,locale:q,fallbackLocale:ae,get inheritLocale(){return s},set inheritLocale(b){s=b,b&&t&&(c.value=t.locale.value,l.value=t.fallbackLocale.value,ut(A,c.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:K,get modifiers(){return w},get pluralRules(){return L||{}},get isGlobal(){return r},get missingWarn(){return m},set missingWarn(b){m=b,A.missingWarn=m},get fallbackWarn(){return E},set fallbackWarn(b){E=b,A.fallbackWarn=E},get fallbackRoot(){return v},set fallbackRoot(b){v=b},get fallbackFormat(){return S},set fallbackFormat(b){S=b,A.fallbackFormat=S},get warnHtmlMessage(){return T},set warnHtmlMessage(b){T=b,A.warnHtmlMessage=b},get escapeParameter(){return N},set escapeParameter(b){N=b,A.escapeParameter=b},t:at,getLocaleMessage:Re,setLocaleMessage:it,mergeLocaleMessage:on,getPostTranslationHandler:Ht,setPostTranslationHandler:Kt,getMissingHandler:jt,setMissingHandler:qt,[eo]:rn};return x.datetimeFormats=$e,x.numberFormats=Yt,x.rt=Qt,x.te=an,x.tm=st,x.d=Jt,x.n=zt,x.getDateTimeFormat=_,x.setDateTimeFormat=h,x.mergeDateTimeFormat=y,x.getNumberFormat=k,x.setNumberFormat=X,x.mergeNumberFormat=Q,x[to]=n,x[Ln]=Ct,x[Dn]=nn,x[kn]=tn,process.env.NODE_ENV!=="production"&&(x[Ge]=b=>{A.__v_emitter=b},x[St]=()=>{A.__v_emitter=void 0}),x}const ao="vue-i18n: composer properties",dn={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Ml={"vue-i18n-resource-inspector":"Search for scopes ..."},Vl={"vue-i18n-timeline":16764185};let Pn;async function Ul(e,t){return new Promise((n,r)=>{try{wl({id:"vue-devtools-plugin-vue-i18n",label:dn["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:[ao],app:e},a=>{Pn=a,a.on.visitComponentTree(({componentInstance:s,treeNode:c})=>{Bl(s,c,t)}),a.on.inspectComponent(({componentInstance:s,instanceData:c})=>{s.vnode.el&&s.vnode.el.__VUE_I18N__&&c&&(t.mode==="legacy"?s.vnode.el.__VUE_I18N__!==t.global.__composer&&Br(c,s.vnode.el.__VUE_I18N__):Br(c,s.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:dn["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ml["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&Yl(s,t)});const o=new Map;a.on.getInspectorState(async s=>{if(s.app===e&&s.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),Kl(s,t),s.nodeId==="global"){if(!o.has(s.app)){const[c]=await a.getComponentInstances(s.app);o.set(s.app,c)}a.highlightElement(o.get(s.app))}else{const c=Hl(s.nodeId,t);c&&a.highlightElement(c)}}),a.on.editInspectorState(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&ql(s,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:dn["vue-i18n-timeline"],color:Vl["vue-i18n-timeline"]}),n(!0)})}catch{r(!1)}})}function oo(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Bl(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const a={label:`i18n (${oo(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Br(e,t){const n=ao;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:er(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 er(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];Y(r)&&"source"in r?t[n]=Wl(r):de(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:U(r)?t[n]=er(r):t[n]=r}),t}const xl={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Gl(e){return e.replace(/[<>"&]/g,$l)}function $l(e){return xl[e]||e}function Wl(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Gl(e.source)}")`:"(?)"}`}}}function Yl(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const o=t.mode==="composition"?a:a.__composer;n!==o&&e.rootNodes.push({id:o.id.toString(),label:`${oo(r)} Scope`})}}function Hl(e,t){let n=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){n=r;break}}return n}function so(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function Kl(e,t){const n=so(e.nodeId,t);return n&&(e.state=jl(n)),null}function jl(e){const t={},n="Locale related info",r=[{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]=r;const a="Locale messages info",o=[{type:a,key:"messages",editable:!1,value:er(e.messages.value)}];t[a]=o;{const s="Datetime formats info",c=[{type:s,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[s]=c;const l="Datetime formats info",u=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=u}return t}function Nt(e,t){if(Pn){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Pn.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 ql(e,t){const n=so(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&D(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(D(e.state.value)||j(e.state.value)||U(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&B(e.state.value)&&(n.inheritLocale=e.state.value)}}function Xl(e){const t=D(e.locale)?e.locale:Et,n=D(e.fallbackLocale)||j(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Y(e.missing)?e.missing:void 0,a=B(e.silentTranslationWarn)||ze(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=B(e.silentFallbackWarn)||ze(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=B(e.fallbackRoot)?e.fallbackRoot:!0,c=!!e.formatFallbackMessages,l=M(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=Y(e.postTranslation)?e.postTranslation:void 0,f=D(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,E=B(e.sync)?e.sync:!0;let v=e.messages;if(M(e.sharedMessages)){const w=e.sharedMessages;v=Object.keys(w).reduce((A,F)=>{const V=A[F]||(A[F]={});return ee(V,w[F]),A},v||{})}const{__i18n:S,__root:I,__injectWithOption:g}=e,p=e.datetimeFormats,T=e.numberFormats,N=e.flatJson;return{locale:t,fallbackLocale:n,messages:v,flatJson:N,datetimeFormats:p,numberFormats:T,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:s,fallbackFormat:c,modifiers:l,pluralRules:u,postTranslation:d,warnHtmlMessage:f,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:E,__i18n:S,__root:I,__injectWithOption:g}}function Fn(e={}){const t=Zn(Xl(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return B(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=B(a)?!a:a},get silentFallbackWarn(){return B(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=B(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,o){return t.te(a,o)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,o){t.setLocaleMessage(a,o)},mergeLocaleMessage(a,o){t.mergeLocaleMessage(a,o)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,o){t.setDateTimeFormat(a,o)},mergeDateTimeFormat(a,o){t.mergeDateTimeFormat(a,o)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,o){t.setNumberFormat(a,o)},mergeNumberFormat(a,o){t.mergeNumberFormat(a,o)}};return r.__extender=n,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const o=t;o[Ge]&&o[Ge](a)},r.__disableEmitter=()=>{const a=t;a[St]&&a[St]()}),r}function Ql(e,t,n){return{beforeCreate(){const r=i.getCurrentInstance();if(!r)throw ie(H.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const o=a.i18n;if(a.__i18n&&(o.__i18n=a.__i18n),o.__root=t,this===this.$root)this.$i18n=xr(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=Fn(o);const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=xr(e,a);else{this.$i18n=Fn({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&ro(t,a,a),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...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(r,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const a=this.__v_emitter=jn();r.__enableEmitter&&r.__enableEmitter(a),a.on("*",Nt)}},unmounted(){const r=i.getCurrentInstance();if(!r)throw ie(H.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Nt),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(r),delete this.$i18n}}}function xr(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[eo](t.pluralizationRules||e.pluralizationRules);const n=zn(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const tr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Jl({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===i.Fragment?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},$())}function io(){return i.Fragment}const zl=i.defineComponent({name:"i18n-t",props:ee({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>z(e)||!isNaN(e)}},tr),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||nr({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f[0]!=="_"),s=$();e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=D(e.plural)?+e.plural:e.plural);const c=Jl(t,o),l=a[Ln](e.keypath,c,s),u=ee($(),r),d=D(e.tag)||U(e.tag)?e.tag:io();return i.h(d,u,l)}}}),Gr=zl;function Zl(e){return j(e)&&!D(e[0])}function lo(e,t,n,r){const{slots:a,attrs:o}=t;return()=>{const s={part:!0};let c=$();e.locale&&(s.locale=e.locale),D(e.format)?s.key=e.format:U(e.format)&&(D(e.format.key)&&(s.key=e.format.key),c=Object.keys(e.format).reduce((m,E)=>n.includes(E)?ee($(),m,{[E]:e.format[E]}):m,$()));const l=r(e.value,s,c);let u=[s.key];j(l)?u=l.map((m,E)=>{const v=a[m.type],S=v?v({[m.type]:m.value,index:E,parts:l}):[m.value];return Zl(S)&&(S[0].key=`${m.type}-${E}`),S}):D(l)&&(u=[l]);const d=ee($(),o),f=D(e.tag)||U(e.tag)?e.tag:io();return i.h(f,d,u)}}const ec=i.defineComponent({name:"i18n-n",props:ee({value:{type:Number,required:!0},format:{type:[String,Object]}},tr),setup(e,t){const n=e.i18n||nr({useScope:e.scope,__useComponent:!0});return lo(e,t,Qa,(...r)=>n[kn](...r))}}),$r=ec;function tc(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function nc(e){const t=s=>{process.env.NODE_ENV!=="production"&&Yn(et(ue.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:c,value:l}=s;if(!c||!c.$)throw ie(H.UNEXPECTED_ERROR);const u=tc(e,c.$),d=Wr(l);return[Reflect.apply(u.t,u,[...Yr(d)]),u]};return{created:(s,c)=>{const[l,u]=t(c);he&&e.global===u&&(s.__i18nWatcher=i.watch(u.locale,()=>{c.instance&&c.instance.$forceUpdate()})),s.__composer=u,s.textContent=l},unmounted:s=>{he&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:c})=>{if(s.__composer){const l=s.__composer,u=Wr(c);s.textContent=Reflect.apply(l.t,l,[...Yr(u)])}},getSSRProps:s=>{const[c]=t(s);return{textContent:c}}}}function Wr(e){if(D(e))return{path:e};if(M(e)){if(!("path"in e))throw ie(H.REQUIRED_VALUE,"path");return e}else throw ie(H.INVALID_VALUE)}function Yr(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,s={},c=r||{};return D(n)&&(s.locale=n),z(a)&&(s.plural=a),z(o)&&(s.plural=o),[t,c,s]}function rc(e,t,...n){const r=M(n[0])?n[0]:{};(B(r.globalInstall)?r.globalInstall:!0)&&([Gr.name,"I18nT"].forEach(o=>e.component(o,Gr)),[$r.name,"I18nN"].forEach(o=>e.component(o,$r)),[Kr.name,"I18nD"].forEach(o=>e.component(o,Kr))),e.directive("t",nc(t))}const ac=pe("global-vue-i18n");function oc(e={}){const t=__VUE_I18N_LEGACY_API__&&B(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&Yn(et(ue.DEPRECATE_LEGACY_MODE));const n=B(e.globalInjection)?e.globalInjection:!0,r=new Map,[a,o]=sc(e,t),s=pe(process.env.NODE_ENV!=="production"?"vue-i18n":"");function c(f){return r.get(f)||null}function l(f,m){r.set(f,m)}function u(f){r.delete(f)}const d={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...m){if(process.env.NODE_ENV!=="production"&&(f.__VUE_I18N__=d),f.__VUE_I18N_SYMBOL__=s,f.provide(f.__VUE_I18N_SYMBOL__,d),M(m[0])){const S=m[0];d.__composerExtend=S.__composerExtend,d.__vueI18nExtend=S.__vueI18nExtend}let E=null;!t&&n&&(E=mc(f,d.global)),__VUE_I18N_FULL_INSTALL__&&rc(f,d,...m),__VUE_I18N_LEGACY_API__&&t&&f.mixin(Ql(o,o.__composer,d));const v=f.unmount;if(f.unmount=()=>{E&&E(),d.dispose(),v()},process.env.NODE_ENV!=="production"){if(!await Ul(f,d))throw ie(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const I=jn();if(t){const g=o;g.__enableEmitter&&g.__enableEmitter(I)}else{const g=o;g[Ge]&&g[Ge](I)}I.on("*",Nt)}},get global(){return o},dispose(){a.stop()},__instances:r,__getInstance:c,__setInstance:l,__deleteInstance:u};return d}function nr(e={}){const t=i.getCurrentInstance();if(t==null)throw ie(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ie(H.NOT_INSTALLED);const n=ic(t),r=cc(n),a=no(t),o=lc(e,a);if(o==="global")return ro(r,e,a),r;if(o==="parent"){let l=uc(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&(et(ue.NOT_FOUND_PARENT_SCOPE),void 0),l=r),l}const s=n;let c=s.__getInstance(t);if(c==null){const l=ee({},e);"__i18n"in a&&(l.__i18n=a.__i18n),r&&(l.__root=r),c=Zn(l),s.__composerExtend&&(c[Rn]=s.__composerExtend(c)),dc(s,t,c),s.__setInstance(t,c)}else process.env.NODE_ENV!=="production"&&o==="local"&&(et(ue.DUPLICATE_USE_I18N_CALLING),void 0);return c}function sc(e,t){const n=i.effectScope(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Fn(e)):n.run(()=>Zn(e));if(r==null)throw ie(H.UNEXPECTED_ERROR);return[n,r]}function ic(e){const t=i.inject(e.isCE?ac:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ie(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}function lc(e,t){return Gt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function cc(e){return e.mode==="composition"?e.global:e.global.__composer}function uc(e,t,n=!1){let r=null;const a=t.root;let o=fc(t,n);for(;o!=null;){const s=e;if(e.mode==="composition")r=s.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const c=s.__getInstance(o);c!=null&&(r=c.__composer,n&&r&&!r[to]&&(r=null))}if(r!=null||a===o)break;o=o.parent}return r}function fc(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function dc(e,t,n){let r=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=jn();const a=n;a[Ge]&&a[Ge](r),r.on("*",Nt)}},t),i.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",Nt),a[St]&&a[St](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=a[Rn];o&&(o(),delete a[Rn])},t)}const _c=["locale","fallbackLocale","availableLocales"],Hr=["t","rt","d","n","tm","te"];function mc(e,t){const n=Object.create(null);return _c.forEach(a=>{const o=Object.getOwnPropertyDescriptor(t,a);if(!o)throw ie(H.UNEXPECTED_ERROR);const s=i.isRef(o.value)?{get(){return o.value.value},set(c){o.value.value=c}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,a,s)}),e.config.globalProperties.$i18n=n,Hr.forEach(a=>{const o=Object.getOwnPropertyDescriptor(t,a);if(!o||!o.value)throw ie(H.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,o)}),()=>{delete e.config.globalProperties.$i18n,Hr.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const hc=i.defineComponent({name:"i18n-d",props:ee({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},tr),setup(e,t){const n=e.i18n||nr({useScope:e.scope,__useComponent:!0});return lo(e,t,Xa,(...r)=>n[Dn](...r))}}),Kr=hc;Dl();tl(Ri);nl(Qi);rl(xa);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ue();e.__INTLIFY__=!0,Pi(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const co=oc({legacy:!1,locale:"zh",fallbackLocale:"zh",globalInjection:!0,messages:{},warnHtmlMessage:!1,silentTranslationWarn:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackWarn:!1}),Ve=co.global;async function gc(e,t){const n=await t(e);Ve.setLocaleMessage(e,n),Ve.locale&&Ve.locale.value!==void 0?Ve.locale.value=e:Ve.locale=e}const He="__system:language__",Ke="zh";function pc(){return(window.navigator.language||navigator.browserLanguage||navigator.userLanguage||"").toLowerCase().trim()}function Ec(e){return e?e.toLowerCase().trim():""}const rt=Z.defineStore("cloudSdkLanguageStore",{state:()=>({languageDefault:Ke,languageName:O.localGet(He)||Ke,languageList:{zh:"简体中文","zh-cn":"简体中文","zh-CHT":"繁體中文",en:"English",ko:"한국어",ja:"日本語",de:"Deutsch",fr:"Français",id:"Indonesia"}}),getters:{languageSelect:e=>{let t=[],n=e.languageList;for(let r in n)t.push({label:n[r],value:r});return t}},actions:{async init(){let e=pc()||Ke;e=localStorage.getItem(He)||e;const t=cvUtils.urlGetParameterAll();t.language&&(e=t.language),e=Ec(e),Object.keys(this.languageList).includes(e)?this.languageName=e==="zh-cn"?"zh":e:this.languageName=Ke,localStorage.setItem(He,this.languageName)},async clear_cache(){O.localSet(He,Ke)},SA_LANGUAGE_DEFAULT(){return this.languageDefault},SA_LANGUAGE_LIST(){return this.languageList},SA_LANGUAGE_GET(){return this.languageName=localStorage.getItem(He)||Ke,this.languageName},SA_LANGUAGE_SET(e){this.languageName=e,O.localSet(He,e),Ve.locale.value=e}}}),jr="__system:themes__",Sc="light",_n="__system:layoutSidebarState__",bc="on",qr="__system:layoutNavTabs__",Nc="on",vc="__system:layoutWatermark__",Ac="on";function Xr(){let e=typeof window<"u"&&window.navigator.userAgent.toLowerCase();return`${e.match(/Chrome/i)}`=="chrome"?"chrome":`${e.match(/Webkit/i)}`=="webkit"?"webkit":null}const Ae=Z.defineStore("cloudSdkThemesStore",{state:()=>({layoutName:"",layoutNavTabs:O.localGet(qr)||Nc,layoutSidebarState:O.localGet(_n)||bc,themesName:O.localGet(jr)||Sc,themesList:[{name:"跟随系统",value:"auto"},{name:"明亮",value:"light"},{name:"暗黑",value:"dark"}],watermarkState:O.localGet(vc)||Ac}),actions:{async init(){["auto","light","dark"].indexOf(this.themesName);const e=cvUtils.urlGetParameterAll();e.themes&&(this.themesName=e.themes),this.synchTheme(),this.SA_THEMES_SET(this.themesName),this.layoutSidebarState=this.layoutSidebarState=="off"?"off":"on",this.SA_LAYOUT_SLIDEBAR_SET(this.layoutSidebarState),this.layoutNavTabs=this.layoutNavTabs=="off"?"off":"on",this.SA_LAYOUT_NAVTABS_SET(this.layoutNavTabs),this.watermarkState=this.watermarkState=="off"?"off":"on",this.SA_LAYOUT_WATERMARK_SET(this.watermarkState)},async clear_cache(){},SA_LAYOUT_WATERMARK_SET(e){this.watermarkState=e;const t=document.querySelector("html");t.classList.remove(e?"hideWatermark":"openWatermark"),t.classList.add(e?"openWatermark":"hideWatermark"),O.localSet(_n,e)},SA_LAYOUT_SLIDEBAR_SET(e){this.layoutSidebarState=e;const t=document.querySelector("html");t.classList.remove(e=="off"?"openSidebar":"hideSidebar"),t.classList.add(e=="on"?"openSidebar":"hideSidebar"),O.localSet(_n,e)},SA_LAYOUT_NAVTABS_SET(e){se.__POWERED_BY_QIANKUN__&&(e="off"),this.layoutNavTabs=e;const t=document.querySelector("html");t.classList.remove(e=="off"?"openNavtabs":"hideNavtabs"),t.classList.add(e=="on"?"openNavtabs":"hideNavtabs"),se.__POWERED_BY_QIANKUN__||O.localSet(qr,e)},SA_THEMES_SET(e){if(this.themesName=e||"light",!Xr()){__cc_isEEUiApp?ht.ElMessage.warning("仅Android设置支持主题功能"):ht.ElMessage.warning("仅客户端或Chrome浏览器支持主题功能");return}this.synchTheme(e)},synchTheme(e=void 0){typeof e>"u"?e=this.themesName:this.themesName=e;const t=document.body;switch(e){case"dark":if(!Xr())return;t.classList.add("sdk-theme-dark");break;case"light":let r=document.getElementById("dark-mode-style");r&&r.parentNode.removeChild(r),t.classList.remove("sdk-theme-dark");break;default:this.themesName="auto",window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?this.themesName="dark":this.themesName="light";break}const n=document.querySelector("html");n.classList.remove(this.themesName=="dark"?"light":"dark"),n.classList.add(this.themesName),O.localSet(jr,this.themesName)}}});function uo(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function fo(){return window.innerHeight}function yc(){return uo()-fo()>50?"landscape":"portrait"}const kt=uo(),Tc=fo(),mn=yc(),rr=Z.defineStore("cloudSdkWindowStore",{state:()=>({windowActive:!0,windowScrollY:0,windowTouch:"ontouchend"in document,windowWidth:kt,windowHeight:Tc,windowOrientation:mn,windowLandscape:mn==="landscape",windowPortrait:mn==="portrait",formLabelPosition:kt>576?"right":"top",formLabelWidth:kt>576?"auto":"",windowMax768:kt<=768,winSizeName:""}),getters:{winCalcSizeName:e=>(void 0).SA_GET_SIZE_TYPE()},actions:{async init(){},init_refresh(){},isSingle(){return document.querySelector(".electron-single-micro-apps")?1:0},isPortrait(){return document.querySelector(".window-portrait")?1:0},SA_SET_WINDOW_WIDTH(e){this.windowWidth=window.innerWidth},SA_GET_SIZE_TYPE(){switch(!0){case this.windowWidth<=768:return"app-small-768";case this.windowWidth<=992:return"app-small-992";case this.windowWidth<=1200:return"app-small-1200"}},SA_GET_WINDOW_WIDTH(){return this.winSizeName=this.SA_GET_SIZE_TYPE(),this.winSizeName}}}),ft="__system:keyboardConf__",hn="__syCacheApiFlag__",gn="__syCacheApiAuth__",Qr="__syCacheApiCode__",Jr="__syCacheApiKey__",pn="__syCacheSystemConfig__",zr="cacheClientId",Zr="cacheClientVersion",At=Z.defineStore("cloudSdkSystemStore",{state:()=>({cacheServerUrl:"",cacheClientInfo:{},cacheClientId:"",cacheClientVersion:"v7",clientNewVersion:null,keyboardType:null,keyboardHeight:0,safeAreaBottom:0,appNotificationPermission:!0,useSSOLogin:!1,sysIsElectron:!1,sysIsEEUiApp:!1,sysIsSoftware:!1,cacheKeyboard:{},systemConfig:{},apiKeyData:{},networkConnected:!0}),getters:{systemInfo:e=>({title:"",version:""})},actions:{async init(){await O.idbGetString("clearCache");const e=await O.idbGetString("cacheServerUrl");await O.idbSetItem("cacheServerUrl",e);const t=await O.idbGetString(Zr);await O.idbSetItem(Zr,this.cacheClientVersion),t!==this.cacheClientVersion?await this.clear_cache():await this.cache_read(),await this.__load_api_flag(),await this.__load_api_auth(),await this.__load_api_code(),await this.__load_api_key(),await this.__load_system_config(),this.SA_KEYBOARD_SET(),await te.setHeaders({"Sy-Client-Platform":"pc-web","Sy-Client-Id":this.cacheClientId})},async clear_cache(){const e=O.localGet(ft);O.localSet(ft,e),await O.idbDelItem("clearCache"),await O.idbDelItem(hn),await O.idbDelItem(gn),await O.idbDelItem(pn)},async cache_read(){this.cacheServerUrl=await O.idbGetString("cacheServerUrl"),this.cacheServerUrl&&(window.systemConfig.apiUrl=this.cacheServerUrl)},async __load_api_flag(){let e=await O.idbGetItem(hn);e||await te.flagGet("BASE_LOAD_COMMON_API_FLAG",{}).then(t=>{e=t.data||{},window._SY_OPEN_API_FLAG_||(window._SY_OPEN_API_FLAG_={}),window._SY_OPEN_API_FLAG_=Object.assign(window._SY_OPEN_API_FLAG_,e),O.idbSetItem(hn,e)}),await te.appendApiFlag(e)},async __load_api_auth(){let e=await O.idbGetItem(gn);e||await te.flagGet("BASE_LOAD_COMMON_API_AUTH",{}).then(t=>{e=t.data||{},window._SY_OPEN_API_FLAG_||(window._SY_OPEN_API_FLAG_={}),window._SY_OPEN_API_FLAG_=Object.assign(window._SY_OPEN_API_FLAG_,e),O.idbSetItem(gn,e)}),await te.appendApiAuth(e)},async __load_api_code(){let e=await O.idbGetItem(Qr);e||await te.flagGet("BASE_LOAD_COMMON_API_CODE",{}).then(t=>{e=t.data||{},O.idbSetItem(Qr,e)})},async __load_api_key(){let e=await O.idbGetString(zr);e||(e=cvUtils.randomString(6),await O.idbSetItem(zr,e)),this.cacheClientId=e,this.apiKeyData=await O.idbGetItem(Jr),this.apiKeyData||await te.setOptions({encrypt:!1}).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT",{client_id:e}).then(({data:t})=>{this.apiKeyData=t,O.idbSetItem(Jr,this.apiKeyData)})},async __load_system_config(){let e=await O.idbGetItem(pn);e?this.systemConfig=e:await te.flagGet("BASE_SYS_COMMON_PLAT_SETTING",{}).then(({data:t})=>{this.systemConfig=Object.assign({},this.systemConfig,t),O.idbSetItem(pn,this.systemConfig)})},SA_KEYBOARD_SET(e){return new Promise(t=>{let n=O.localGet(ft);n||(O.localSet(ft,O.localGet("__keyboard:data__")),O.localDel("__keyboard:data__"));const r=e||n||{};r.screenshot_key=(r.screenshot_key||"").trim().toLowerCase(),r.send_button_app=r.send_button_app||"button",r.send_button_desktop=r.send_button_desktop||"enter",O.localSet(ft,r),this.cacheKeyboard=r,cvUtils.__cc_isElectron,t(r)})},SA_SYS_IP_INFO(e,t){if(!cvUtils.strExists(e,"."))return;let n="__ip"+e.substring(0,1)+"__";const r=O.localSet(n);let a=cvUtils.strGetMiddle(e,"","."),o=r[a]||e;if(typeof o=="object"){typeof t=="function"&&t(o);return}const s={keyId:o||e};te.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO",{ip:e}).then(()=>{O.localSet(n,s),typeof t=="function"&&t(o)})}}});function Cc(e){return new Promise((t,n)=>{ht.ElMessageBox.confirm(e.message||"",e.title||"Warning",{confirmButtonText:e.confirmButtonText||"确认",cancelButtonText:e.cancelButtonText||"取消",showCancelButton:e.showCancelButton,type:"warning"}).then(()=>{t()}).catch(()=>{n()})})}function Oc(e){ht.ElNotification({title:e.title,message:e.message,type:e.type||"info",duration:1200,onClose:()=>{}})}function Ic(e,t,n=!1){return n?!!t.find(r=>r&&r.indexOf("*")&&new RegExp("^"+r.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*")+"$","g").test(e)?!0:r==e):t.includes(e)}function ea(e,t){let n="";return e.includes("http://")||e.includes("https://")?n=e:n=t+e,n=n.replace(/([^:]\/)\/+/g,"$1"),n}const ta={400:"请求错误",400:"无效请求",401:"未经授权",402:"支付请求",403:"拒绝访问",404:"请求出错",408:"请求超时",422:"请求验证",500:"响应错误",501:"服务未实现",502:"网络错误",503:"服务不可用",504:"网络超时",505:"HTTP版本不受支持"},na={400:"参数错误",401:"没有权限,请变更请求",402:"支付错误",403:"检查请求域名是否添加了域名白名单",404:"未找到该请求",408:"网络异常,请检查网络设置",422:"参数验证错误",504:"请求超时,请刷新重试",500:"请检查网络或服务器"};function wc(e,t){e=parseInt(e);let n="提示",r="程序异常,请检查网络或联系管理员";return ta[e]&&(n=ta[e]),na[e]&&(r=na[e]),{title:n,status:e,message:r}}class Lc{constructor(t={}){this.flagMap=t.flagMap||{},this.flagAuth=t.flagAuth||{},this.flagCurr="",this.baseURL=t.baseURL||"",this.baseMock=t.baseMock||"",this.requests=Object.assign({},t.requests||{}),this.requestTemp={},this.headers=Object.assign({},t.headers||{}),this.headerTemp={},this.configs=Object.assign({},t.configs||{}),this.configTemp={},this.customs=Object.assign({},t.customs||{}),this.customTemp={},this.encryptURL=t.encryptURL||[],this.encryptFlag=!1,this.retries=3,this.debugState=t.debug||!1,this.requestHandle=null,this._initReqHandle(t)}debugLog(){this.debugState}_initReqHandle(t){this.requestHandle=No.create({baseURL:this.baseURL,timeout:t.timeout||5e3,retry:2,retryDelay:1e3,headers:{"Content-Type":"application/json; charset=utf-8",...this.headers},requests:{...this.requests}})}get interceptors(){return this.requestHandle.interceptors}setApiFlag(t){return this.flagMap=t||{},this}appendApiFlag(t){return this.flagMap=Object.assign({},this.flagMap,t||{}),this}setApiAuth(t){return this.flagAuth=t||{},this}appendApiAuth(t){return this.flagAuth=Object.assign({},this.flagAuth,t||{}),this}setDefHeaders(t){return this.headers=Object.assign({},this.headers,t||{}),this}setHeaders(t){return this.headerTemp=Object.assign({},this.headerTemp,t||{}),this}setDefRequests(t){return this.requests=Object.assign({},this.requests,t||{}),this}setRequests(t){return this.requestTemp=Object.assign({},this.requestTemp,t||{}),this}setOptions(t={}){return this.configTemp=Object.assign({},this.configTemp,t||{}),this}setCustom(t){return this.customTemp=Object.assign({},this.customTemp,t||{}),this}setSignal(t){}encrypt(){return this.encryptFlag=!0,this}__encryp_parse(t){let n=!1;if(this.encryptURL&&Ic(t,this.encryptURL,!0)&&(n=!0),this.encryptFlag&&(n=!0),n){const r=window.navigator.userAgent;(/Windows NT 5.1|Windows XP/.test(r)||r.indexOf("Windows NT 6.0")!==-1||r.indexOf("Windows NT 6.1")!==-1||r.indexOf("Windows NT 6.2")!==-1)&&(n=!1)}return n}cancelRequest(t){if(!t)return 0;let n=[],r=0;return n.forEach((a,o)=>{a.id===t&&(r++,a.request&&a.request.abort())}),r>0&&(n=n.filter(a=>a.id!==t)),r}__parse_method_type(t){return t}async apiAll(t,n,r){let a=ea(n,this.baseURL);this.__encryp_parse(n);let o=this.__parse_method_type(t),s=this.flagAuth[this.flagCurr]||null,c={};s&&(c=s.split(",").reduce((m,E)=>{const[v,S]=E.split("=");return m[v]=S,m},{}));let l=Object.assign({},this.headers,this.headerTemp,{}),u=Object.assign({},this.requests,this.requestTemp,r||{}),d=Object.assign({},this.configs,this.configTemp,{}),f=Object.assign({},this.customs,this.customTemp,{flag:this.flagCurr,auth:c,time:Math.floor(Date.now()/1e3)});if(o=="UPLOAD")return this.requestHandle.request({url:a,data:u,...d,customs:f,headers:{...l,"Content-Type":"multipart/form-data"}});if(o!="DOWNLOAD")if(o=="MOCK")try{let m=n.includes(".json")?`${n}`:`${n}.json`,E=ea(m,this.baseMock+"/");const v=await fetch(E);responseInfo.statusCode=v.status,responseInfo.errMsg="request:ok";const S=await v.json();responseInfo.data=S}catch(m){let E=m.message;E.includes("Unexpected token")&&E.includes("is not valid JSON")&&(responseInfo.data={code:200,data:{}})}else return["GET","POST","PUT","PATCH","DELETE"].includes(o)?this.requestHandle.request({url:a,method:o,data:o!=="GET"?u:void 0,params:o==="GET"?u:void 0,...d,customs:f,headers:l}):{}}flagMockPost(){const t=arguments;return this.unifyApi("flag","MOCK",t)}flagMockGet(){const t=arguments;return this.unifyApi("flag","MOCK",t)}urlMockPost(){const t=arguments;return this.unifyApi("url","MOCK",t)}urlMockGet(){const t=arguments;return this.unifyApi("url","MOCK",t)}flagGet(){const t=arguments;return this.unifyApi("flag","GET",t)}urlGet(){const t=arguments;return this.unifyApi("url","GET",t)}flagPost(){const t=arguments;return this.unifyApi("flag","POST",t)}urlPost(){const t=arguments;return this.unifyApi("url","POST",t)}flagPut(){const t=arguments;return this.unifyApi("flag","PUT",t)}urlPut(){const t=arguments;return this.unifyApi("url","PUT",t)}flagPatch(){const t=arguments;return this.unifyApi("flag","PATCH",t)}urlPatch(){const t=arguments;return this.unifyApi("url","PATCH",t)}flagDel(){const t=arguments;return this.unifyApi("flag","DELETE",t)}urlDel(){const t=arguments;return this.unifyApi("url","DELETE",t)}flagUpload(){const t=arguments;return this.unifyApi("flag","UPLOAD",t)}urlUpload(){const t=arguments;return this.unifyApi("url","UPLOAD",t)}flagUpImg(){const t=arguments;return this.unifyApi("flag","UPLOAD",t)}urlUpImg(){const t=arguments;return this.unifyApi("url","UPLOAD",t)}unifyApi(t,n,r){let a=this,o=r.length||0;if(o<=0||o>3){let l=`-- ${n} : 参数为(1-3)个---`;return new Promise((u,d)=>d({message:l}))}let s="",c="";if(t=="flag"){let l=r[0];typeof l=="string"&&(l=l||"",s=l==""?"":this.flagMap[l]||""),c=" flag"+n+`:传入的标示 { ${l} },未匹配到 apiUrl `,this.flagCurr=l}if(t=="url"&&(s=r[0],typeof s=="string"&&(s=s||""),c=" 未匹配到 apiUrl "),s=="")return new Promise((l,u)=>u({message:c}));if(o==1)return function(l){return a.apiAll(n,s,l)};if(o==2||o==3){let l={},u=r[1],d=Object.prototype.toString.call(u);if(d==="[object String]"||d==="[object Number]"){let f=String(u).trim();if(/^\d+$/.test(f)&&(s.endsWith("/")||(s+="/"),s+=f),o==3){let m=r[2];Object.prototype.toString.call(m)==="[object Object]"&&(l=m||{})}}else d==="[object Object]"?l=u||{}:d==="[object FormData]"&&(l=u||new FormData);return a.apiAll(n,s,l)}else return new Promise((l,u)=>u({message:" 请求错误 "}))}}const Dc=Z.defineStore("cloudSdkCommonStore",{state:()=>({loginBaseShow:!1,loadingShow:!1}),getters:{},actions:{init(){},SA_LOGIN_SHOW(e){this.loginBaseShow=e},SA_LOADING_SHOW(e){this.loadingShow=e}}}),kc={BASE_LOAD_COMMON_API_FLAG:"/base.base_load/common/api_flag",BASE_LOAD_COMMON_API_AUTH:"/base.base_load/common/api_auth",BASE_LOAD_COMMON_API_CODE:"/base.base_load/common/api_code",BASE_ACCSYS_COMMON_KEYCLIENT:"/base.account_sys/common/key_client",BASE_SYS_COMMON_PLAT_SETTING:"/base.base_sys/common/plat_setting",BASE_SYS_COMMON_SYS_INFO:"/base.base_sys/common/system_info",SDK_FILE_COMMON_UPLOAD_SIGNATURE:"/sdks.sdk_file/common/upload_signature"},Rc={BASE_LOAD_COMMON_API_FLAG:"app:true;auth:false;",BASE_LOAD_COMMON_API_AUTH:"app:true;auth:false;",BASE_LOAD_COMMON_API_CODE:"app:true;auth:false;",BASE_ACCSYS_COMMON_KEYCLIENT:"app:true;auth:false;",BASE_SYS_COMMON_PLAT_SETTING:"app:true;auth:false;",SDK_FILE_COMMON_UPLOAD_SIGNATURE:"app=true,token=true"},Pc={100101:"未经授权,请登录"};function Fc(e){if(e.status&&e.status==401&&!se.__POWERED_BY_QIANKUN__){if(window.syCacheDialog401&&window.syCacheDialog401=="show")return!1;if(e.code==100206)window.syCacheDialog401="none";else return window.syCacheDialog401="show",_e().SA_ACCOUNT_LOGOUT(),Cc({title:"友情提示",message:Pc[100101],confirmButtonText:"确定",cancelButtonText:"取消",showCancelButton:!1}).then(()=>{window.syCacheDialog401="none",location.href="/login"}),!1}let t=(e.status?`[ ${e.status} ] `:"")+(e.title||"提示");Oc({title:t,message:e.message,type:e.type})}let Ne=null;function ar(e={}){const t=tt();Ne=new Lc({baseURL:t.syApiBaseUrl||"",headers:{"Content-Type":"application/json; charset=utf-8",syOpenAppProject:t.syAppProjectSign||"",syOpenAppId:t.syAppConnectId||"",syOpenAppRole:t.syAppConnectRole||"",syOpenAppToken:O.localGet("syCacheAppToken")||"",Authorization:"Bearer "+O.localGet("syCacheAppJwt")||""},requests:{},encryptURL:["users/login","users/editpass","/base.account_security/common/change_pwd","users/operation","users/delete/account","base.base_sys/license","users/bot/*","dialog/msg/*"],customs:{loading:!0,isFactory:!0}});let n={},r={};e&&(n=e.ApiFlagSet||{},r=e.ApiAuthSet||{});let a=Object.assign({},kc,n,t.syOpenApiFlag),o=Object.assign({},Rc,r,t.syOpenApiAuth);Ne.setApiFlag(a),Ne.setApiAuth(o);const s=Dc(),c=_e();return Ne.interceptors.request.use(l=>{const u=l.customs||{};if((u==null?void 0:u.loading)!=!1&&s.SA_LOADING_SHOW(!0),O.localGet("syCacheAppToken")||null){if(c.SA_ACCOUNT_CHECK_EXPIRED())return Promise.reject({status:401,code:100103})}else if(u.auth&&u.auth.token=="true")return u.showLogin&&s.SA_LOGIN_SHOW(!0),Promise.reject({status:401,code:100101});return l},l=>Promise.reject(l)),Ne.interceptors.response.use(l=>{var m;s.SA_LOADING_SHOW(!1),(m=l.config)!=null&&m.customs;let u=l.status||-1,d=l.data||{},f=d.status||d.code||-1;if(f=parseInt(f),d.msg||d.message,u!=200)return Promise.reject(l);if(u==200)return d.message&&(d.msg=d.message),Promise.resolve(d);throw{message:"请求出错,稍后重试"}},l=>{var g,p,T,N,w,L,A,F,V,q,ae,K;let u=((g=l==null?void 0:l.response)==null?void 0:g.status)||l.status||-1,d=(l==null?void 0:l.code)||"",f=l.message||((T=(p=l==null?void 0:l.response)==null?void 0:p.data)==null?void 0:T.message)||((N=l==null?void 0:l.response)==null?void 0:N.statusText)||"";u==-1&&(f.includes("timeout")||d.includes("ECONNABORTED")?u=504:f.includes("Network Error")?u=408:f.includes("Not Found")&&(u=404));let m=((L=(w=l==null?void 0:l.response)==null?void 0:w.data)==null?void 0:L.errorCode)||-1,E=((F=(A=l==null?void 0:l.response)==null?void 0:A.data)==null?void 0:F.errorMessage)||((q=(V=l==null?void 0:l.response)==null?void 0:V.data)==null?void 0:q.message),v=((K=(ae=l==null?void 0:l.config)==null?void 0:ae.customs)==null?void 0:K.flag)||"",S=wc(u),I={type:"error",title:S.title,message:S.message,status:u,code:m,error:E||f,flag:v};return(u==400||u==422)&&(m==400||m==422||m.toString().startsWith("400"))&&(I.message=E||S.message),Fc(I),Promise.reject(I)}),Ne}function Mc(){return Ne||(Ne=ar()),Ne}const te=new Proxy({},{get(e,t){const n=Mc();return typeof n[t]=="function"?n[t].bind(n):n[t]}});function Mn(e){return typeof e=="string"&&e.trim()!==""&&e!=="undefined"}const Oe="syCacheAppInfo",Ie="syCacheAppToken",dt="syCacheAppJwt",_t="syCacheAppRbac",ra={nickname:"",staff_nickname:"",id:0,email:"",name:"",token:"",avatar:"",created_at:"",updated_at:"",identity:[],userid:0,department_owner:null,department:null,okr_admin_owner:null,account_nick:"十云",account_mobile_show:"****",account_avatar:"https://10ui.cn/default/avatar/avatar4.jpg",account_avatar_cdn:"https://10ui.cn/default/avatar/avatar4.jpg",business_name:""};function Vc(e){return Math.floor(Date.now()/1e3)>=e}const _e=Z.defineStore("cloudSdkAccountStore",{state:()=>({account_nick:"",accountRbacData:[],accountInfo:O.localGet(Oe)||{},accountToken:O.localGet(Ie)||"",accountJwt:O.localGet(dt)||""}),getters:{cacheBizsId:e=>{var t;return((t=e.accountInfo)==null?void 0:t.business_id)||0},staffId:e=>{var t;return((t=e.accountInfo)==null?void 0:t.staff_id)||0},staffNick:e=>{var t;return((t=e.accountInfo)==null?void 0:t.staff_nick)||""},accountIsLogin:e=>{var n;const t=((n=e==null?void 0:e.accountInfo)==null?void 0:n.token_time)||0;return!!(Mn(e.accountToken)&&!Vc(t))},accountRole:e=>{var t;return(t=e.accountInfo)==null?void 0:t.identity},accRoleIsAdmin:e=>{var t;return((t=e.accountInfo)==null?void 0:t.acc_rules_type)=="sy-org-admin"}},actions:{init(){const e=cvUtils.urlGetParameterAll();e.token&&O.localSet("ACC_TOKEN_CACHE_KEY",e.token),this.SA_ACCOUNT_RBAC_REFRESH(),this.accountIsLogin?this.SA_ACCOUNT_REFRESH():this.SA_ACCOUNT_LOGOUT()},async clear_cache(){this.ACCOUNT_SET_PREV()},async clear_all(){},SA_ACCOUNT_IS_LOGGED(){return this.accountToken=O.localGet(Ie)||"",!!Mn(this.accountToken)},SA_ACCOUNT_JWT_GET(){return this.accountJwt||""},SA_ACCOUNT_TOKEN_GET(){return this.accountToken||""},SA_ACCOUNT_TOKEN_SET(e){this.accountToken=e,O.localSet(Ie,this.accountToken)},SA_ACCOUNT_CHECK_EXPIRED(e){var r;const t=((r=this==null?void 0:this.accountInfo)==null?void 0:r.token_time)||0;return(e||Math.floor(Date.now()/1e3))>=t},SA_ACCOUNT_INFO_GET(){return O.localGet(Oe)},SA_ACCOUNT_INFO_REFRESH(){return new Promise((e,t)=>{te.flagGet("BASE_ACCSYS_COMMON_INFO",{}).then(({data:n})=>{n=this._SA_ACCOUNT_INFO_PARSE(n),e(n)}).catch(n=>{t(n)})})},SA_ACCOUNT_INFO_PARSE(e){return e=e||ra,cvUtils.isEmpty(e.acc_pre_name)&&(e.acc_pre_name=e.acc_pre_nick),e.account_id=cvUtils.parseNumber(e.account_id),e.token_access=e.account_id>0?e.token_access||this.accountToken:"",e.account_avatar_cdn=e.account_avatar_cdn||e.per_avatar_cdn,e.account_mobile_hide=e.account_mobile_hide||e.ucenter_mobile_hide||e.ucenter_mobile,this.accountInfo=e,e},SA_ACCOUNT_INFO_SET(e){return new Promise(async t=>{const n=JSON.parse(JSON.stringify(e));this.accountInfo=this.SA_ACCOUNT_INFO_PARSE(n),this.accountToken=n.token_access,await O.idbSetItem(Oe,n),O.localSet(Oe,this.accountInfo),t()})},SA_ACCOUNT_GET_NICK(){return this.account_nick},SA_ACCOUNT_REFRESH(){this.accountInfo=O.localGet(Oe)||ra,this.accountToken=O.localGet(Ie)||"",this.accountJwt=O.localGet(dt)||"",te.setDefHeaders({syOpenAppToken:this.accountToken||"",Authorization:"Bearer "+this.accountJwt||""})},async SA_ACCOUNT_SIGNIN(e){e=this.SA_ACCOUNT_INFO_PARSE(e),O.localSet(Oe,e),O.localSet(Ie,e.token_access||""),O.localSet(dt,e.token_jwt||""),O.localSet(_t,""),O.idbSave(Ie,e.token_access||""),await this.SA_ACCOUNT_REFRESH(),await this.SA_ACCOUNT_RBAC_REFRESH(!0),Je().QK_SEND_LOGIN_MSG()},async SA_ACCOUNT_LOGOUT(e){this.ACCOUNT_SET_PREV(),O.sessionClear(),O.localSet(Oe,""),O.localSet(Ie,""),O.localSet(dt,""),O.localSet(_t,""),O.localDel(Oe),O.localDel(Ie),O.localDel(dt),O.localDel(_t),this.SA_ACCOUNT_REFRESH(),Je().QK_SEND_LOGOUT_MSG()},async SA_ACCOUNT_RBAC_REFRESH(e){return e=e||!1,new Promise(async t=>{if(this.accountToken){let n=O.localGet(_t)||"";e&&n==""?await te.flagGet("ORG_SYS_BASE_MYRBAC",{}).then(r=>{r.status==100600?this.SA_ACCOUNT_LOGOUT():r.status==200&&(O.localSet(_t,r.data||""),t(r.data||""))}).catch(()=>{t("")}):t(n)}else t([])})},ACCOUNT_SET_PREV(){}}});function aa(e){return e=e.replace(/^\//,""),e=e.replace(/\//g,"_"),e}function _o(e,t){t=t||1;let n="";e.path?n=e.path:e.component&&(n=e.component),e.component||(n="");let r="";if(e.name?r=e.name:n?r=aa(n):r="temp_name_"+t,r=aa(r),e.children&&e.children.length>0){let a=e.children,o=0,s=0;a.forEach((c,l)=>{c.isMenu==!0&&o++,c.isRbac==!0&&s++}),e.children_menu_num=o,e.children_opt_num=s}return{...e,path:n,name:r}}const Uc={},Bc=Uc,xc=Bc.VITE_SY_PRODUCT_SIGN;function mo(e){let t=Object.prototype.toString.call(e);if(t!="[object String]"&&t!="[object Array]")return!1;let n=O.localGet("syCacheAppRbac")||"";if(t=="[object String]")return Ut(e,n);if(t==="[object Array]"){for(const r of e)if(!Ut(r,n))return!1;return!0}return!1}function Ut(e,t){if(e=e||"",e=e.trim(),e=="")return!1;e.includes("@")||(e=`${xc}@${e}`);let n=t||O.localGet("syCacheAppRbac")||"";return n=n.trim(),Mn(n)?n=='"all@all"'||n=="all@all"?!0:n.split(",").map(a=>a.trim()).includes(e):!1}const yt=Z.defineStore("cloudSdkProductStore",{state:()=>({currMenuInfo:{},menuBadge:{},menuOpeneds:[],menuOnly:[],menuOriginal:[]}),getters:{menuCurrOpeneds:e=>e.menuOpeneds,menuCurrOnly:e=>e.menuOnly},actions:{async init(e){e=e||[],e&&(this.menuOriginal=JSON.parse(JSON.stringify(e)))},async clear_cache(){},SA_SET_MENU_BADGE_KEY(e,t){this.menuBadge[e]=t},SA_PRODUCT_INFO_GET(){},SA_MENU_SET(e){this.menuTree=e||[]},SA_MENU_PARSE(){var e=[];function t(o,s){let c=[];for(let l in o){let u=o[l];u=_o(u,l),u.isMenu===!0&&(u.isRbac&&!u.path||(u.children&&u.children.length>0&&(u.children=t(u.children,s)),u.collapsable===!1&&e.push(u.name),Ut(u.name,s)&&c.push(u)))}return c}let n=JSON.parse(JSON.stringify(this.menuOriginal)),r=O.localGet("syCacheAppRbac")||"",a=t(n,r);return this.menuOpeneds=e,this.menuOnly=a,a},SA_MENU_GET(){return this.menuTree}}}),Gc=[{meta:{title:"登录",isAlone:!0},isAlone:!0,name:"login",path:"/login",component:()=>Promise.resolve().then(()=>require("./login-DlQVinc0.cjs"))}],$c=[{meta:{title:"不建议单独运行",isAlone:!0},isAlone:!0,name:"alone_run",path:"/alone_run",component:()=>Promise.resolve().then(()=>require("./alone_run-B4SNm6r3.cjs"))},{meta:{title:"错误",isAlone:!0},isAlone:!0,name:"404",path:"/:catchAll(.*)",component:()=>Promise.resolve().then(()=>require("./404-Fl84S1VU.cjs"))}],Wc=[{meta:{title:"空页面",isAlone:!1},isAlone:!1,name:"none",path:"/none",component:()=>Promise.resolve().then(()=>require("./none-CISke5yB.cjs"))}],Tt=Z.defineStore("cloudSdkPermissionStore",{state:()=>({originalRoutes:[],whiteList:["404","login","alone_run","none"],addRoutes:[],routeAlive:0,rbacLastStr:O.localGet("syCacheAppRbac")||"",rbacArr:[]}),actions:{init(e){e=e||[],this.originalRoutes=e},clear_cache(){},SA_ROUTE_ALIVE_ADD(){this.routeAlive++},SA_PERMS_ROUTER_ADD(e,t){t=t||"",t!="console_passport"&&e.addRoute(...Gc),e.addRoute(...$c),e.addRoute(...Wc)},SA_PERMS_ROUTER_CHECK(e){let n=_o(e).name;return!!(this.whiteList.includes(n)||Ut(n,this.rbacLastStr))},SA_PERMS_ROUTER_SET(e){},async SA_PERMS_REFRESH(){}}}),oa={"org-business":"商家平台","org-operator":"运营平台","org-agent":"代理商平台","org-admin":"超管平台"};async function Yc(e){try{let t=document.querySelector("link[rel*='icon']");t||(t=document.createElement("link"),t.rel="shortcut icon",document.head.appendChild(t)),t.href=e,t.type="image/x-icon"}catch{}}const Hc=Z.defineStore("cloudSdkApplicationStore",{state:()=>({defaultCaseInfo:{PLAT_LOGO_CDN:"https://10ui.cn/10yun-img/logo-nobg.png",PLAT_BRAND:"十云",platinfo_login_bg:"",platinfo_version:"",platinfo_title:"十云",info_logo:"",info_version:"v1.25.xxxx"}}),getters:{openCaseInfo:e=>{let t=window.shiyunProductInfo||{},n=tt(),r=At().systemConfig||{},a=n.syAppConnectRole,o=Object.assign({},e.defaultCaseInfo,t),s=n.syProductTitle||"ShiyunProduct",c=oa[a]?oa[a]:"管理系统",l=s;const u=r.PLAT_BRAND||(o==null?void 0:o.PLAT_BRAND),d=r.PLAT_LOGO_CDN||o.PLAT_LOGO_CDN;d&&Yc(d);const f=c||"十云";let m="";return a=="org-business"&&(m=r.BIZS_LOGIN_BG||o.platinfo_login_bg),{LAST_IP_LOGO:d,LAST_IP_TITLE:l,LAST_IP_TYPE:f,LAST_IP_BRAND:u||l,LAST_IP_LOGIN_BG:m}}},actions:{async init(){},async __load_license(){}}});function Kc(){return new Promise(async e=>{rt().clear_cache(),Ae().clear_cache(),At().clear_cache(),_e().clear_cache(),yt().clear_cache(),O.idbSetItem("cacheClearHandle","handle").then(t=>{e()})})}function jc(){return{computed:{...Z.mapState(Je,["qiankunExistState"]),...Z.mapState(rt,["languageName","languageList","languageSelect"]),...Z.mapState(Ae,["themesName","themesList","layoutNavTabs","layoutSidebarState"]),...Z.mapState(rr,["windowWidth","windowHeight","windowActive","windowScrollY","windowTouch","windowLandscape","windowPortrait","formLabelPosition"]),...Z.mapState(At,["cacheServerUrl","systemConfig","sysIsElectron","sysIsEEUiApp","sysIsSoftware"]),...Z.mapState(_e,["accountIsLogin","accountInfo","accountToken","accountRole","accountRbacData","accRoleIsAdmin","staffId","staffNick"]),...Z.mapState(yt,["menuBadge","menuCurrOpeneds","menuCurrOnly"]),...Z.mapState(Hc,["openCaseInfo"])},watch:{windowActive(t){}},mounted(){}}}const Ee=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},qc={name:"HeaderSysSettDrawer",components:{},props:{modelVal:{type:Boolean,default:!1}},data(){return{localVal:!1,frameSysTheme:"",frameSysLanguage:"",frameSysNavTabs:null,frameSidebarState:null}},watch:{modelVal(e){this.localVal=e},frameSysTheme(e){Ae().SA_THEMES_SET(e)},frameSysLanguage(e){rt().SA_LANGUAGE_SET(e)},frameSidebarState(e){Ae().SA_LAYOUT_SLIDEBAR_SET(e)},frameSysNavTabs(e){Ae().SA_LAYOUT_NAVTABS_SET(e)}},created(){this.init()},methods:{init(){this.frameSysTheme=this.themesName,this.frameSysLanguage=this.languageName,this.frameSysNavTabs=this.layoutNavTabs,this.frameSidebarState=this.layoutSidebarState},frameTopSysSettClose(){this.localVal=!1,this.$emit("update:modelValue",this.localVal)},frameUpdateVersion(){},frameClearCache(){this.$parent.frameHandleCommand("clearCache")}}},Xc={class:"cloud-sett-drawer-body"},Qc={class:"cloud-sett-drawer-skin"};function Jc(e,t,n,r,a,o){const s=i.resolveComponent("el-card"),c=i.resolveComponent("el-form-item"),l=i.resolveComponent("el-option"),u=i.resolveComponent("el-select"),d=i.resolveComponent("cv-icons"),f=i.resolveComponent("el-button"),m=i.resolveComponent("el-switch"),E=i.resolveComponent("el-form"),v=i.resolveComponent("el-drawer");return i.openBlock(),i.createBlock(v,{title:"系统设置",modelValue:a.localVal,"onUpdate:modelValue":t[6]||(t[6]=S=>a.localVal=S),direction:"rtl",size:"450px","before-close":o.frameTopSysSettClose},{default:i.withCtx(()=>[i.createElementVNode("div",Xc,[i.createVNode(E,{labelWidth:"auto","label-position":"left"},{default:i.withCtx(()=>[i.createVNode(c,{label:"风格","label-position":"top"},{default:i.withCtx(()=>[i.createElementVNode("div",Qc,[i.createVNode(s),i.createVNode(s),i.createVNode(s)])]),_:1}),i.createVNode(c,{label:"主题"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:a.frameSysTheme,"onUpdate:modelValue":t[0]||(t[0]=S=>a.frameSysTheme=S),placeholder:e.$t("选项主题"),style:{width:"150px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.themesList,(S,I)=>(i.openBlock(),i.createBlock(l,{label:e.$t(S.name),value:S.value,key:I},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.$t(S.name)),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1}),i.createVNode(c,{label:"暗黑模式"},{default:i.withCtx(()=>[a.frameSysTheme=="light"?(i.openBlock(),i.createBlock(f,{key:0,onClick:t[1]||(t[1]=S=>a.frameSysTheme="dark"),class:"light-switch"},{default:i.withCtx(()=>[i.createVNode(d,{type:"cvSvgViewModeDark"})]),_:1})):i.createCommentVNode("",!0),a.frameSysTheme=="dark"?(i.openBlock(),i.createBlock(f,{key:1,onClick:t[2]||(t[2]=S=>a.frameSysTheme="light"),class:"dark-switch"},{default:i.withCtx(()=>[i.createVNode(d,{type:"cvSvgViewModeLight"})]),_:1})):i.createCommentVNode("",!0)]),_:1}),i.createVNode(c,{label:"侧栏显示"},{default:i.withCtx(()=>[i.createVNode(m,{modelValue:a.frameSidebarState,"onUpdate:modelValue":t[3]||(t[3]=S=>a.frameSidebarState=S),"active-text":"显示","inactive-text":"隐藏","active-value":"on","inactive-value":"off"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"导航标签栏"},{default:i.withCtx(()=>[i.createVNode(m,{modelValue:a.frameSysNavTabs,"onUpdate:modelValue":t[4]||(t[4]=S=>a.frameSysNavTabs=S),"active-text":"显示","inactive-text":"隐藏","active-value":"on","inactive-value":"off"},null,8,["modelValue"])]),_:1}),i.createVNode(c,{label:"语言"},{default:i.withCtx(()=>[i.createVNode(u,{modelValue:a.frameSysLanguage,"onUpdate:modelValue":t[5]||(t[5]=S=>a.frameSysLanguage=S),placeholder:e.$t("选项语言"),style:{width:"150px"}},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.languageSelect,(S,I)=>(i.openBlock(),i.createBlock(l,{label:S.label,value:S.value},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(S.label),1)]),_:2},1032,["label","value"]))),256))]),_:1},8,["modelValue","placeholder"])]),_:1}),i.createVNode(c,{label:"版本"},{default:i.withCtx(()=>[i.createVNode(f,{onClick:o.frameUpdateVersion},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.$t("更新版本")),1)]),_:1},8,["onClick"])]),_:1}),i.createVNode(c,{label:"缓存"},{default:i.withCtx(()=>[i.createVNode(f,{onClick:o.frameClearCache},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.$t("清除缓存")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})])]),_:1},8,["modelValue","before-close"])}const zc=Ee(qc,[["render",Jc]]),Zc={props:{className:""},data(){return{routeRefreshAnimation:"",routeRefreshNum:0}},computed:{...Z.mapState(Tt,["routeAlive"])},watch:{routeAlive(e){this.routeRefreshAnimation="subapp-slide-right",this.routeRefreshNum++,this.$nextTick(()=>{this.routeRefreshAnimation=""})}},methods:{}};function eu(e,t,n,r,a,o){const s=i.resolveComponent("router-view");return i.openBlock(),i.createBlock(s,{key:a.routeRefreshNum},{default:i.withCtx(({Component:c,route:l})=>[i.createVNode(i.Transition,{name:a.routeRefreshAnimation,mode:"out-in",appear:""},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(n.className),key:l.path},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(c)))],2))]),_:2},1032,["name"])]),_:1})}const ho=Ee(Zc,[["render",eu]]),sa=e=>Math.pow(e,3),tu=e=>e<.5?sa(e*2)/2:1-sa((1-e)*2)/2,nu={name:"SameNavTabs",data(){return{sett_tags:[{title:"概览",path:"/index",name:"index"}],activeTag:null,contextMenuVisible:!1,contextMenuStyle:{},top:0,editableTabs:[],left:0,isDisabledCloseLeftBtnFlag:!1,isDisabledCloseRightBtnFlag:!1}},watch:{$route(e){this.activeTag=this.$route.name;for(let t in this.sett_tags)if(this.sett_tags[t].name==this.activeTag)return;this.sett_tags.push({title:e.meta.title,path:e.path,name:e.name})}},mounted(){this.$nextTick(()=>{let e=document.body.getElementsByClassName("xxxxxx-tag");e&&e.length>0&&(e[0].oncontextmenu=this.openContextMenu)})},updated(){this.tagAutoScroll()},methods:{changeGdtBase(){const e=this.$refs.navScroll1.wrap,t=Date.now(),n=e.scrollLeft,r=window.requestAnimationFrame||(o=>setTimeout(o,16)),a=()=>{const o=(Date.now()-t)/500;o<1?(e.scrollLeft=n*(1-tu(o)),r(a)):e.scrollLeft=0};r(a)},changeGdtLeft(){this.changeGdtBase()},changeGdtRight(){const e=this.$refs.navScroll1.wrap,t=e.scrollLeft;e.scrollLeft=t+300},async removeTag(e,t){if(e.path!="/index"){if(this.$route.meta.close_tip){let n=!1;if(await this.$confirm("将要关闭正在编辑的页面, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{n=!1}).catch(()=>{n=!0}),n)return}if(this.sett_tags.splice(t,1),this.sett_tags.length==0){this.$router.push("/");return}e.title==this.activeTag&&t==this.sett_tags.length&&this.$router.push(this.sett_tags[t-1].path),e.title==this.activeTag&&t!=this.sett_tags.length&&this.$router.push(this.sett_tags[t].path)}},changeMenu(e){this.$route.path!=e.path&&this.$router.replace(e.path)},tagAutoScroll(){let e=document.querySelector("#tagId");e&&e.scrollIntoView()},openContextMenu(e){e.preventDefault();let t=e.srcElement?e.srcElement:e.target;if(t.id){let n=t.id.split("-")[1],r=0;for(;r<this.editableTabs.length&&this.editableTabs[r].title!=n;++r);r<=0?(this.isDisabledCloseLeftBtnFlag=!0,this.isDisabledCloseRightBtnFlag=!1):r>=this.editableTabs.length-1?(this.isDisabledCloseLeftBtnFlag=!1,this.isDisabledCloseRightBtnFlag=!0):(this.isDisabledCloseLeftBtnFlag=!1,this.isDisabledCloseRightBtnFlag=!1),this.contextMenuVisible=!0,this.left=e.clientX-270,this.top=e.clientY-50}},curTabReload(){},closeAllTabs(){this.closeContextMenu()},closeOtherTabs(e){this.closeContextMenu()},closeContextMenu(){this.contextMenuVisible=!1}}},ru={class:"cloud-navtabs__wrap"},au={class:"cloud-navtabs__box"},ou={class:"cloud-navtabs__main"},su={class:"cloud-navtabs__tags"};function iu(e,t,n,r,a,o){const s=i.resolveComponent("cv-icons"),c=i.resolveComponent("cv-btn-base"),l=i.resolveComponent("el-tag"),u=i.resolveComponent("el-scrollbar"),d=i.resolveComponent("cv-btn-text");return i.openBlock(),i.createElementBlock("div",ru,[i.createElementVNode("div",au,[i.createVNode(c,{class:"btn-opt-left",onClick:o.changeGdtLeft},{default:i.withCtx(()=>[i.createVNode(s,{type:"ElIconArrowLeft"})]),_:1},8,["onClick"]),i.createElementVNode("div",ou,[i.createVNode(u,{ref:"navScroll1"},{default:i.withCtx(()=>[i.createElementVNode("div",su,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.sett_tags,(f,m)=>(i.openBlock(),i.createBlock(l,{id:a.activeTag==f.name?"tagId":"",class:i.normalizeClass(["tag xxxxxx-tag",a.activeTag==f.name?"active":""]),key:f.name,closable:f.path!=="/index",onClose:E=>o.removeTag(f,m),onClick:E=>o.changeMenu(f),"disable-transitions":"",onContextmenu:i.withModifiers(o.openContextMenu,["prevent"])},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(f.title),1)]),_:2},1032,["id","class","closable","onClose","onClick","onContextmenu"]))),128))])]),_:1},512)]),i.createVNode(c,{class:"btn-opt-right",onClick:o.changeGdtRight},{default:i.withCtx(()=>[i.createVNode(s,{type:"ElIconArrowRight"})]),_:1},8,["onClick"]),i.createVNode(c,{class:"btn-opt-close"},{default:i.withCtx(()=>[t[5]||(t[5]=i.createTextVNode(" 关闭操作 ",-1)),i.createVNode(s,{type:"ElIconCaretBottom"})]),_:1,__:[5]}),i.withDirectives(i.createElementVNode("div",{class:"cloud-navtabs__contextmenu",style:i.normalizeStyle(a.contextMenuStyle)},[i.createElementVNode("ul",{style:i.normalizeStyle({left:a.left+"px",top:a.top+"px"})},[i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[0]||(t[0]=f=>o.curTabReload())},{default:i.withCtx(()=>t[6]||(t[6]=[i.createTextVNode("重新加载",-1)])),_:1,__:[6]})]),i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[1]||(t[1]=f=>o.closeAllTabs())},{default:i.withCtx(()=>t[7]||(t[7]=[i.createTextVNode("关闭所有",-1)])),_:1,__:[7]})]),i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[2]||(t[2]=f=>o.closeOtherTabs("left")),disabled:a.isDisabledCloseLeftBtnFlag},{default:i.withCtx(()=>t[8]||(t[8]=[i.createTextVNode("关闭左边",-1)])),_:1,__:[8]},8,["disabled"])]),i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[3]||(t[3]=f=>o.closeOtherTabs("right")),disabled:a.isDisabledCloseRightBtnFlag},{default:i.withCtx(()=>t[9]||(t[9]=[i.createTextVNode("关闭右边",-1)])),_:1,__:[9]},8,["disabled"])]),i.createElementVNode("li",null,[i.createVNode(d,{onClick:t[4]||(t[4]=f=>o.closeOtherTabs("other"))},{default:i.withCtx(()=>t[10]||(t[10]=[i.createTextVNode("关闭其他",-1)])),_:1,__:[10]})])],4)],4),[[i.vShow,a.contextMenuVisible]])])])}const lu=Ee(nu,[["render",iu]]),cu={name:"SidebarMenuItem",props:{menuData:{type:Array,default(e){return[]}},collapse:{type:[Boolean],default:!1},isChildren:{type:[Boolean],default:!1},appData:{type:[Array,Object],default(e){return{}}}},data(){return{}},computed:{badgeStyle(){return this.collapse?"position: absolute; right: 25px; margin-top: -20px":"position: absolute; right: 30px; "}},methods:{currBadge(e){return this.menuBadge[e]&&this.menuBadge[e]>0?this.menuBadge[e]:0},handleOpenMenu(e){if(e&&e.isWindow){var t=window.open("","MyWindowName","");t.location.href=e.path}else this.jumpsAuth(e.path)}}},uu={class:"cloud-subapp-menu-icon"},fu={key:1},du={key:0,class:"cloud-subapp-menu-icon"},_u={key:1,class:"cloud-subapp-menu-icon"};function mu(e,t,n,r,a,o){const s=i.resolveComponent("cv-icons"),c=i.resolveComponent("SidebarMenuItem",!0),l=i.resolveComponent("el-sub-menu"),u=i.resolveComponent("cv-badge"),d=i.resolveComponent("el-menu-item");return i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.menuData,f=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[f.isMenu==!0?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[f.children&&f.children.length>0&&f.children_menu_num>0?(i.openBlock(),i.createBlock(l,{key:f.name,index:f.name},{title:i.withCtx(()=>[i.createElementVNode("div",uu,[f.meta.icon?(i.openBlock(),i.createBlock(s,{key:0,type:f.meta.icon,size:"16"},null,8,["type"])):i.createCommentVNode("",!0),!f.meta.icon&&n.collapse?(i.openBlock(),i.createElementBlock("span",fu,i.toDisplayString(f.meta.short||f.meta.title),1)):i.createCommentVNode("",!0)]),i.createElementVNode("span",null,i.toDisplayString(f.meta.title||f.meta.short),1)]),default:i.withCtx(()=>[i.createVNode(c,{appData:n.appData,menuData:f.children,collapse:n.collapse,isChildren:""},null,8,["appData","menuData","collapse"])]),_:2},1032,["index"])):(i.openBlock(),i.createBlock(d,{index:f.name,key:"b"+f.name,onClick:m=>o.handleOpenMenu(f)},{title:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(f.meta.short||f.meta.title),1)]),default:i.withCtx(()=>[!f.meta.icon&&n.collapse&&!n.isChildren?(i.openBlock(),i.createElementBlock("div",du,i.toDisplayString(f.meta.short||f.meta.title),1)):(i.openBlock(),i.createElementBlock("div",_u,[f.meta.icon?(i.openBlock(),i.createBlock(s,{key:0,type:f.meta.icon,size:"16"},null,8,["type"])):i.createCommentVNode("",!0)])),f.meta.badge&&o.currBadge(f.meta.badge)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[o.currBadge(f.meta.badge)>0?(i.openBlock(),i.createBlock(u,{key:0,class:"menu-badge",type:"danger",max:999,value:o.currBadge(f.meta.badge),style:i.normalizeStyle(o.badgeStyle)},null,8,["value","style"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0)]),_:2},1032,["index","onClick"]))],64)):i.createCommentVNode("",!0)],64))),256)}const hu=Ee(cu,[["render",mu]]),gu={name:"SidebarMenuBox",components:{SidebarMenuItem:hu},props:{collapse:{type:[Boolean],default:!1}},data(){return{menuDefaultOpeneds:[],menuCurrList:[],activeName:null}},watch:{$route(e,t){if(e.meta.treeInfo){let n=e.meta.treeInfo,r=n.length-1;for(let a=r;a>=0;a--)n[a].isMenu==!0&&n[a].isPage==!0&&(this.activeName=n[a].name||e.name)}},menuCurrOnly(e){this.menuCurrList=e},menuCurrOpeneds(e){this.menuDefaultOpeneds=e}},created(){this.menuCurrList=this.menuCurrOnly,this.menuDefaultOpeneds=this.menuCurrOpeneds},methods:{handleOpen(e,t){},handleClose(e,t){}}},pu={class:"cloud-subapp-wrap"},Eu={class:"cloud-sidebar__title"},Su={class:"cloud-subapp-menu-box"};function bu(e,t,n,r,a,o){const s=i.resolveComponent("SidebarMenuItem"),c=i.resolveComponent("el-menu");return i.openBlock(),i.createElementBlock("div",pu,[i.createElementVNode("div",Eu,i.toDisplayString(e.openCaseInfo.LAST_IP_TITLE),1),i.createElementVNode("div",Su,[i.createVNode(c,{collapse:n.collapse,"default-openeds":a.menuDefaultOpeneds,"default-active":a.activeName,onOpen:o.handleOpen,onClose:o.handleClose},{default:i.withCtx(()=>[i.createVNode(s,{appData:e.openCaseInfo,menuData:a.menuCurrList,collapse:n.collapse},null,8,["appData","menuData","collapse"])]),_:1},8,["collapse","default-openeds","default-active","onOpen","onClose"])])])}const Nu=Ee(gu,[["render",bu]]),vu={name:"ChangePassword",props:{modelValue:{type:[String,Boolean],default:!1}},data(){return{visible:!1,formData:{},formRules:{old_pwd:[{required:!0,message:"请输入旧密码"}],new_pwd1:[{required:!0,message:"请输入新密码"}],new_pwd2:[{required:!0,message:"请重新输入新密码"}]}}},watch:{modelValue(e){this.visible=e}},created(){this.visible=this.modelValue},methods:{changeValue(e){this.visible=e,this.$emit("update:modelValue",e)},handleCancel(){this.changeValue(!1),this.formData={}},handleLogout(){const e=_e();this.$request.flagPost("BASE_PASSPORT_LOGOUT",{}).finally(()=>{e.SA_ACCOUNT_LOGOUT(),this.$router.push({path:"/login"})})},handleBeforeOk(){if(this.formData.new_pwd1!==this.formData.new_pwd2)return this.$message.error("两次密码不一致"),!1;this.$request.flagPut("BASE_ACCSEC_COMMON_CHG_PWD",this.formData).then(e=>{this.$confirm("修改成功,请重新登录","重新登录",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).finally(()=>{this.handleLogout()})}).catch(e=>{this.$message.error(e.message)})}}},Au={class:"dialog-footer"};function yu(e,t,n,r,a,o){const s=i.resolveComponent("el-input"),c=i.resolveComponent("el-form-item"),l=i.resolveComponent("el-form"),u=i.resolveComponent("el-button"),d=i.resolveComponent("el-dialog");return i.openBlock(),i.createBlock(d,{width:520,modelValue:a.visible,"onUpdate:modelValue":t[3]||(t[3]=f=>a.visible=f),title:"修改密码",onClose:o.handleCancel},{footer:i.withCtx(()=>[i.createElementVNode("div",Au,[i.createVNode(u,{onClick:o.handleCancel},{default:i.withCtx(()=>t[4]||(t[4]=[i.createTextVNode("取 消",-1)])),_:1,__:[4]},8,["onClick"]),i.createVNode(u,{type:"primary",onClick:o.handleBeforeOk},{default:i.withCtx(()=>t[5]||(t[5]=[i.createTextVNode("确 定",-1)])),_:1,__:[5]},8,["onClick"])])]),default:i.withCtx(()=>[i.createVNode(l,{model:a.formData,"label-width":"auto"},{default:i.withCtx(()=>[i.createVNode(c,{prop:"old_pwd",label:"原密码"},{default:i.withCtx(()=>[i.createVNode(s,{type:"password","show-password":"",modelValue:a.formData.old_pwd,"onUpdate:modelValue":t[0]||(t[0]=f=>a.formData.old_pwd=f)},null,8,["modelValue"])]),_:1}),i.createVNode(c,{prop:"new_pwd1",label:"新密码"},{default:i.withCtx(()=>[i.createVNode(s,{type:"password","show-password":"",modelValue:a.formData.new_pwd1,"onUpdate:modelValue":t[1]||(t[1]=f=>a.formData.new_pwd1=f)},null,8,["modelValue"])]),_:1}),i.createVNode(c,{prop:"new_pwd2",label:"确认密码"},{default:i.withCtx(()=>[i.createVNode(s,{type:"password","show-password":"",modelValue:a.formData.new_pwd2,"onUpdate:modelValue":t[2]||(t[2]=f=>a.formData.new_pwd2=f)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","onClose"])}const Tu=Ee(vu,[["render",yu]]),Cu={name:"SwitchBusiness",emits:["refreshFunc","reselectFunc","selectFunc"],props:{modelValue:{type:[Array],default:[]},reselectTitle:{type:[String],default:"退出选择"},reselectFunc:{type:[Function]},selectFunc:{type:[Function]}},watch:{modelValue(e){this.chainOriginalList=e,this.handleSearch()}},data(){return{chainKeyword:"",chainOriginalList:[],chainLastList:[]}},created(){this.chainOriginalList=this.modelValue,this.handleSearch()},methods:{handleSearch(e){this.chainLastList=this.chainListParse(this.chainOriginalList)},chainListParse(e){const t=e.filter(r=>{let a=this.chainKeyword.trim();return!a||r.business_name.toLowerCase().includes(a.toLowerCase())}).reduce((r,a)=>{const o=a.business_brand||"";return r[o]||(r[o]=[]),r[o].push(a),r},{}),n=[];for(const r in t)n.push({title:r,total:t[r].length||0,list:t[r]});return n.sort((r,a)=>r.title===""?-1:1),n},chainForceRefresh(){this.$emit("refreshFunc",!0)},chainReselection(){this.$emit("reselectFunc")},chainSelection(e){this.$emit("selectFunc",e)}}},Ou={class:"cloud-login-change-wrap"},Iu={class:"cloud-login-change-box1"},wu={class:"cloud-login-change-search"},Lu={class:"cloud-login-change-box2"},Du={class:"cloud-login-change-group-box"},ku={class:"cloud-login-change-group-title"},Ru={class:"cloud-login-change-group-sublist"},Pu=["onClick"],Fu={class:"cloud-login-change-item-left"},Mu={class:"cloud-login-change-item-left-icon"},Vu=["src"],Uu={class:"cloud-login-change-item-right"},Bu={class:"cloud-login-change-item-right-label"},xu={class:"cloud-login-change-item-right-label2"},Gu={class:"cloud-login-change-item-more"};function $u(e,t,n,r,a,o){const s=i.resolveComponent("el-input"),c=i.resolveComponent("el-button"),l=i.resolveComponent("cv-icons");return i.openBlock(),i.createElementBlock("div",Ou,[i.createElementVNode("div",Iu,[i.createElementVNode("div",{class:"cloud-login-change-refresh",onClick:t[0]||(t[0]=(...u)=>o.chainForceRefresh&&o.chainForceRefresh(...u))},"刷新账号权限"),i.createElementVNode("div",{class:"cloud-login-change-reset",onClick:t[1]||(t[1]=(...u)=>o.chainReselection&&o.chainReselection(...u))},i.toDisplayString(n.reselectTitle),1),t[4]||(t[4]=i.createElementVNode("div",{class:"cloud-login-change-title"},"选择商户",-1)),t[5]||(t[5]=i.createElementVNode("div",{class:"cloud-login-change-desc"},[i.createElementVNode("p",null,"为规范平台操作、统一平台账号;以便后续提供更多的功能体验;"),i.createElementVNode("p",null,"后续商户人员(含管理员)登录,需进一步通过 短信 或 扫码 进行验证。")],-1)),i.createElementVNode("div",wu,[i.createVNode(s,{modelValue:a.chainKeyword,"onUpdate:modelValue":t[2]||(t[2]=u=>a.chainKeyword=u),size:"large",placeholder:"搜索商户名称",clearable:"",style:{"max-width":"500px"},onInput:o.handleSearch},null,8,["modelValue","onInput"]),i.createVNode(c,{size:"large",onClick:o.handleSearch},{default:i.withCtx(()=>t[3]||(t[3]=[i.createTextVNode("搜索",-1)])),_:1,__:[3]},8,["onClick"])]),i.createElementVNode("div",Lu,[i.createElementVNode("div",Du,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.chainLastList,(u,d)=>(i.openBlock(),i.createElementBlock("div",{class:"cloud-login-change-group-item",key:d},[i.createElementVNode("div",ku,i.toDisplayString(u.title||"无")+"("+i.toDisplayString(u.total)+")",1),i.createElementVNode("div",Ru,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.list,(f,m)=>(i.openBlock(),i.createElementBlock("div",{class:"cloud-login-change-item-bao",key:m,onClick:E=>o.chainSelection(f)},[i.createElementVNode("div",Fu,[i.createElementVNode("div",Mu,[i.createElementVNode("img",{src:f.business_icon_cdn},null,8,Vu)])]),i.createElementVNode("div",Uu,[i.createElementVNode("div",Bu,i.toDisplayString(f.business_name),1),i.createElementVNode("div",xu,"【"+i.toDisplayString(f.acc_rules_type_str)+"】",1)]),i.createElementVNode("div",Gu,[i.createVNode(l,{type:"ElIconArrowRight"})])],8,Pu))),128))])]))),128))])])])])}const go=Ee(Cu,[["render",$u]]),Wu={name:"SameFrame",components:{SidebarMenuBox:Nu,SameNavTabs:lu,SameRouteView:ho,HeaderSysSettDrawer:zc,ChangePassword:Tu,SwitchBusiness:go},props:{},data(){return{frameHeadSysSettDia:!1,frameSidebarOpen:"off",breadcrumbPath:[],full_screen:!1,toData:{},chatUnreadTotal:0,emailUnreadTotal:0,chainAccountList:[],chainShowFlag:!1,changeShowFlag:!1}},computed:{headerInfoName(){return(this.accountInfo||{}).business_name||""},headerInfoNick(){let e=this.accountInfo||{};return e.staff_nick||e.account_mobile_hide||e.account_nick}},watch:{"$route.path"(e){this.$route.meta.treeInfo&&(this.breadcrumbPath=this.$route.meta.treeInfo)}},created(){},mounted(){this.frameSidebarOpen=this.layoutSidebarState,rr().$subscribe((t,n)=>{n.windowWidth<1061?this.frameSidebarOpen="off":this.frameSidebarOpen="on",Ae().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen)}),window.onresize=()=>{(document.mozFullScreen||document.fullScreen||document.webkitIsFullScreen||document.webkitRequestFullScreen||document.mozRequestFullScreen||document.msFullscreenEnabled)===void 0&&(this.full_screen=!1)}},methods:{frameSwicthMenu(){this.frameSidebarOpen=this.frameSidebarOpen=="on"?"off":"on",Ae().SA_LAYOUT_SLIDEBAR_SET(this.frameSidebarOpen)},framePageRefresh(){this.jumpsReload()},frameFullScreen(){let e=document.documentElement;this.full_screen?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen(),this.full_screen=!this.full_screen},frameTopSysSettOpen(){this.frameHeadSysSettDia=!0},frameTopSysSettClose(e){e(),this.frameHeadSysSettDia=!1},frameHandleCommand(e){const t=_e();switch(e){case"msg":this.$message.info("应用暂未开通,敬请期待");break;case"gongdan":this.$message.info("应用暂未开通,敬请期待");break;case"account_change":this.chainRefresh();break;case"account_chgpwd":this.changeShowFlag=!0;break;case"clearCache":this.$confirm("你确定要清除缓存吗?","清除缓存",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Kc().then(n=>{window.location.reload()})}).catch(n=>{});break;case"logout":this.$confirm("你确定要登出系统吗?","退出登录",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$request.flagPost("BASE_PASSPORT_LOGOUT",{}).then(n=>{n.code==200&&this.$message({message:"注销成功",type:"success"})}).finally(()=>{t.SA_ACCOUNT_LOGOUT(),this.$router.push({path:"/login"})})});break;default:this.$message.info("应用暂未开通,敬请期待");break}},chainRefresh(e){let t={};e===!0&&(t.isForceRefresh=1),this.$request.setOptions({timeout:1e4}).flagGet("ORG_SYS_BASE_CHANGE",t).then(n=>{this.chainShowFlag=!0,this.chainAccountList=n.data||[]})},chainReselection(){this.chainShowFlag=!1},chainSelection(e){let t="";e.acc_rules_type=="sy-org-admin"?t="OrgAdminPwdLogin":e.acc_rules_type=="sy-org-staff"&&(t="OrgStaffPwdLogin"),this.$request.flagPost("ORG_SYS_BASE_CHANGE",{handleType:t,business_id:e.business_id||0}).then(async n=>{n.status==200&&(await _e().SA_ACCOUNT_SIGNIN(n.data||{}),this.$message({type:"success",message:"登入成功...",duration:1e3}),location.reload())})}}},Yu={class:"cloud-layout__wrap"},Hu={class:"cloud-header__wrap"},Ku={class:"cloud-header__logo"},ju={href:"/",title:"官网",class:"cloud-header__logo-a"},qu=["src"],Xu={class:"cloud-header__logo-title"},Qu={class:"cloud-header__breadcrumb"},Ju={key:0,class:"chopt-num"},zu={key:0,class:"chopt-num"},Zu={class:"cloud-header__info"},ef=["src"],tf={class:"chinfo-infoname"},nf={class:"chinfo-infobname"},rf={class:"chinfo-infouname"},af={class:"cloud-sidebar__wrap"},of={class:"cloud-pages__wrap"};function sf(e,t,n,r,a,o){const s=i.resolveComponent("cv-icons"),c=i.resolveComponent("el-breadcrumb-item"),l=i.resolveComponent("el-breadcrumb"),u=i.resolveComponent("el-dropdown-item"),d=i.resolveComponent("el-dropdown-menu"),f=i.resolveComponent("el-dropdown"),m=i.resolveComponent("SidebarMenuBox"),E=i.resolveComponent("SameNavTabs"),v=i.resolveComponent("SameRouteView"),S=i.resolveComponent("HeaderSysSettDrawer"),I=i.resolveComponent("ChangePassword"),g=i.resolveComponent("SwitchBusiness");return i.openBlock(),i.createElementBlock("div",Yu,[i.createElementVNode("header",Hu,[i.createElementVNode("div",Ku,[i.createElementVNode("a",ju,[i.createElementVNode("img",{class:"cloud-header__logo-img",src:e.openCaseInfo.LAST_IP_LOGO,alt:""},null,8,qu)]),i.createElementVNode("div",Xu,i.toDisplayString(e.openCaseInfo.LAST_IP_BRAND),1)]),i.createElementVNode("div",{class:"cloud-header__opt",onClick:t[0]||(t[0]=(...p)=>o.frameSwicthMenu&&o.frameSwicthMenu(...p))},[a.frameSidebarOpen=="on"?(i.openBlock(),i.createBlock(s,{key:0,type:"ElIconFold",size:"20"})):i.createCommentVNode("",!0),a.frameSidebarOpen=="off"?(i.openBlock(),i.createBlock(s,{key:1,type:"ElIconExpand",size:"20"})):i.createCommentVNode("",!0)]),i.createElementVNode("div",{class:"cloud-header__opt",onClick:t[1]||(t[1]=(...p)=>o.framePageRefresh&&o.framePageRefresh(...p))},[i.createVNode(s,{type:"ElIconRefreshRight",size:"20"})]),i.createElementVNode("div",Qu,[i.createVNode(l,{separator:"/"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a.breadcrumbPath,(p,T)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[T==a.breadcrumbPath.length-1||!p.path||p.path==""?(i.openBlock(),i.createBlock(c,{key:T,class:"no-redirect"},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(p.title),1)]),_:2},1024)):(i.openBlock(),i.createBlock(c,{key:"b"+T,to:{path:p.path}},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(p.title),1)]),_:2},1032,["to"]))],64))),256))]),_:1})]),t[13]||(t[13]=i.createElementVNode("div",{class:"cloud-header__seat"},null,-1)),i.createElementVNode("div",{class:"cloud-header__opt chopt-relative",onClick:t[2]||(t[2]=p=>o.frameHandleCommand("msg"))},[i.createVNode(s,{type:"ElIconChatLineRound",size:"20"}),a.chatUnreadTotal>0?(i.openBlock(),i.createElementBlock("em",Ju,i.toDisplayString(a.chatUnreadTotal>99?"99+":a.chatUnreadTotal),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",{class:"cloud-header__opt chopt-relative",onClick:t[3]||(t[3]=p=>o.frameHandleCommand("gongdan"))},[i.createVNode(s,{type:"ElIconMessage",size:"20"}),a.emailUnreadTotal>0?(i.openBlock(),i.createElementBlock("em",zu,i.toDisplayString(a.emailUnreadTotal>99?"99+":a.emailUnreadTotal),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",Zu,[i.createVNode(f,{onCommand:o.frameHandleCommand,"popper-class":"cloud-header__info_dropdown"},{dropdown:i.withCtx(()=>[i.createVNode(d,null,{default:i.withCtx(()=>[i.createVNode(u,{command:"account_change"},{default:i.withCtx(()=>[i.createVNode(s,{type:"cvSvgPeopleSwitch",size:"15"}),t[9]||(t[9]=i.createTextVNode(" 切换账号 ",-1))]),_:1,__:[9]}),i.createVNode(u,{command:"account_chgpwd"},{default:i.withCtx(()=>[i.createVNode(s,{type:"cvSvgBaseLockOff",size:"15"}),t[10]||(t[10]=i.createTextVNode(" 修改密码 ",-1))]),_:1,__:[10]}),i.createVNode(u,{command:"clearCache",divided:""},{default:i.withCtx(()=>[i.createVNode(s,{type:"ElIconDelete",size:"15"}),t[11]||(t[11]=i.createTextVNode(" 清除缓存 ",-1))]),_:1,__:[11]}),i.createVNode(u,{command:"logout"},{default:i.withCtx(()=>[i.createVNode(s,{type:"cvSvgArrowExportRight",size:"14"}),t[12]||(t[12]=i.createTextVNode(" 退出登录 ",-1))]),_:1,__:[12]})]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("span",null,[i.createElementVNode("img",{class:"chinfo-avatar",src:e.accountInfo.account_avatar_cdn,title:"头像"},null,8,ef),i.createElementVNode("div",tf,[i.createElementVNode("div",nf,i.toDisplayString(o.headerInfoName),1),i.createElementVNode("div",rf,i.toDisplayString(o.headerInfoNick),1)]),i.createVNode(s,{type:"ElIconArrowDown"})])]),_:1},8,["onCommand"])]),i.createElementVNode("div",{title:"全屏",class:"cloud-header__opt",onClick:t[4]||(t[4]=(...p)=>o.frameFullScreen&&o.frameFullScreen(...p)),style:{"min-width":"50px"}},[a.full_screen?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(s,{key:0,type:"cvSvgArrowScreenUnfold",size:"20"})),a.full_screen?(i.openBlock(),i.createBlock(s,{key:1,type:"cvSvgArrowScreenFold",size:"20"})):i.createCommentVNode("",!0)]),i.createElementVNode("div",{title:"设置",class:"cloud-header__opt",onClick:t[5]||(t[5]=(...p)=>o.frameTopSysSettOpen&&o.frameTopSysSettOpen(...p)),style:{"min-width":"50px"}},[i.createVNode(s,{type:"cvSvgBaseSetting",size:"20"})])]),i.createElementVNode("section",af,[i.createVNode(m,{collapse:a.frameSidebarOpen=="off"},null,8,["collapse"])]),i.createElementVNode("section",of,[i.withDirectives(i.createVNode(E,null,null,512),[[i.vShow,e.layoutNavTabs=="on"]]),i.createVNode(v,{className:"cloud-pages__box"})]),i.createVNode(S,{modelValue:a.frameHeadSysSettDia,"onUpdate:modelValue":t[6]||(t[6]=p=>a.frameHeadSysSettDia=p)},null,8,["modelValue"]),i.createVNode(I,{modelValue:a.changeShowFlag,"onUpdate:modelValue":t[7]||(t[7]=p=>a.changeShowFlag=p)},null,8,["modelValue"]),a.chainShowFlag?(i.openBlock(),i.createBlock(g,{key:0,modelValue:a.chainAccountList,"onUpdate:modelValue":t[8]||(t[8]=p=>a.chainAccountList=p),reselectTitle:"取消切换",onRefreshFunc:o.chainRefresh,onReselectFunc:o.chainReselection,onSelectFunc:o.chainSelection,style:{background:"#fff","z-index":"1005"}},null,8,["modelValue","onRefreshFunc","onReselectFunc","onSelectFunc"])):i.createCommentVNode("",!0)])}const lf=Ee(Wu,[["render",sf]]),cf={data(){return{watemarkText:"shiyun"}},computed:{watemarkConf(){let e=this.openCaseInfo.LAST_IP_BRAND||"",n=_e().accountInfo||null;return n&&n.account_mobile_hide&&(e=n.business_name+n.account_mobile_hide),{content:e,zIndex:-1,rotate:-22,gap:[100,100],offset:[],font:{fontSize:16,color:this.fontColor}}},fontColor(){return this.themesName=="dark"?"rgba(255, 255, 255, .15)":"rgba(0, 0, 0, .15)"}}};function uf(e,t,n,r,a,o){const s=i.resolveComponent("el-watermark");return i.openBlock(),i.createBlock(s,i.mergeProps(o.watemarkConf,{style:{height:"100%"}}),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},16)}const ff=Ee(cf,[["render",uf]]);(function(){if(typeof EventTarget<"u"){let e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,n,r){this.func=e,typeof r!="boolean"&&(r=r||{},r.passive=!1),this.func(t,n,r)}}})();var df={methods:{jumpsXieyi(e){let t=tt(),n="";n=t.syApiBaseUrl+"base.base_sys/show_agreement/"+e+".html",n=n+"?syOpenAppProject="+t.syAppProjectSign,n=n+"&syOpenAppId="+t.syAppConnectId,window.open(n)},jumpsBack(){this.$router.go(-1)},jumpsReload(){Tt().SA_ROUTE_ALIVE_ADD()},jumpsMsgBack(e,t){this.$message({type:"success",duration:1e3,message:e||"",onClose:()=>{this.$router.go(-1),t&&typeof t=="function"&&t()}})},jumpsWinOpen(e){window.open(e)},jumpsRefresh(){this.$router.go(0)},jumpsTabs(e,t){this.$router.push({path:e||"/",query:t||{}}).catch(n=>n)},jumpsAuth(e,t){this.$router.push({path:e||"/",query:t||{}}).catch(n=>n)},jumpsQiankun(e){ks(e)}}};function _f(e){e.mixin(df)}function ia(e,t,n){const r=t.value;if(r)mo(r)||!1||e.parentNode&&e.parentNode.removeChild(e);else throw new Error(`需要指定权限标识! 如:v-auth="'xxxx_add'" 或 v-auth="['xxxx_xxx']"`)}function mf(e,t,n){n=n||"vue3",n=="vue2"?e.directive("auth",{inserted:ia}):e.directive("auth",{mounted:ia}),t.$_auth=mo}/*! Element Plus v2.10.5 */var hf={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};function gf(e){e.use(ht,{locale:hf});for(const[t,n]of Object.entries(vo))e.component("ElIcon"+t,n)}function pf(e){const t=tt(),n={signatureFn:te.flagPost("SDK_FILE_COMMON_UPLOAD_SIGNATURE"),upHeaders:{syOpenAppProject:t.syAppProjectSign||"",syOpenAppId:t.syAppConnectId||"",syOpenAppRole:t.syAppConnectRole||"",syOpenAppToken:O.localGet("syCacheAppToken")||"","Sy-Client-Platform":"pc-web",Authorization:"Bearer "+O.localGet("syCacheAppJwt")||"","Sy-Response-Type":"json"},upResponseFn(r,a,o){return r}};e.use(So,{cvCodeSms:{apiFunc:te.flagPost("SDK_SMS_COMMON_SMS_SEND")},cvUploadImage:{...n},upload:{...n},cvEditorQuill:{},cvEditorMarkdown:{}});for(const[r,a]of Object.entries(Ao))e.component("cvSvg"+r,a)}async function Ef(e,t){ua(t),ar(e),rt().init(),Ae().init(),await At().init(),await _e().init()}async function Sf(e,t,n,r,a="",o=null){yt().init(r),Tt().init(n);let s=e.config.globalProperties;s.$onLaunched=new Promise(l=>{s.$isResolve=l}),s.$request=te,s.$cache=O,gf(e),pf(e),mf(e,s),e.mixin(jc()),_f(e),await bf(t,r,a),e.use(co);let c=rt().SA_LANGUAGE_GET();gc(c,o),window.$t=Ve.t}async function bf(e,t,n){const r=Je(),a=_e(),o=yt(),s=Tt();r.QK_SEND_MSG_REG_SUBMENU(t);let c=tt().syProductSign||"";s.SA_PERMS_ROUTER_ADD(e,c),o.SA_MENU_PARSE(),r.QK_SEND_MSG_ROUTER_BEFORE(n);let l=!1,u=!1,d=!1;e.beforeEach((f,m,E)=>{const v=f.path||"",S=m.path,I=f.query||{};let g=a.accountIsLogin;if(se.__POWERED_BY_QIANKUN__&&(g=a.SA_ACCOUNT_IS_LOGGED()),I.token,g){if(l||(o.SA_MENU_PARSE(),l=!0),S=="/"&&v=="/none"){if(s.SA_PERMS_ROUTER_CHECK({name:"index"}))return E({path:"/"})}else if(!s.SA_PERMS_ROUTER_CHECK(f))return E({path:"/none",replace:!0});if((S=="/login"||S=="/index")&&(u||(r.QK_SEND_LOGIN_MSG(),u=!0,d=!1)),["/login","/alone_run"].includes(v))return E({path:"/"});E()}else{if(o.SA_MENU_PARSE(),l=!1,d||(r.QK_SEND_LOGOUT_MSG(),u=!1,d=!0),!["/login","/alone_run"].includes(v))return E({path:"/login",replace:!0});E()}}),e.isReady().then(async()=>{}),e.afterEach(function(f,m){var E;if((E=f==null?void 0:f.meta)!=null&&E.title&&!se.__POWERED_BY_QIANKUN__){let v="管理系统",S=f.meta.title;document.title=S?`${S} - ${v}`:`${v}`}})}async function Nf(e,t,n){se.__POWERED_BY_QIANKUN__?Ps(e,t,n):t()}exports.HttpObj=te;exports.SameRouteView=ho;exports.SameWatermark=ff;exports.StorageObj=O;exports.SwitchBusiness=go;exports._export_sfc=Ee;exports.console=lf;exports.createHttp=ar;exports.qiankunWindow=se;exports.sdkBootstrap=Nf;exports.sdkConfigGet=tt;exports.sdkConfigSet=ua;exports.sdkStartBefore=Ef;exports.sdkStarup=Sf;exports.useSdkAccountStore=_e;exports.useSdkLanguageStore=rt;exports.useSdkPermissionStore=Tt;exports.useSdkProductStore=yt;exports.useSdkQiankunStore=Je;exports.useSdkSystemStore=At;exports.useSdkThemesStore=Ae;exports.useSdkWindowStore=rr;