@acedatacloud/nexior 2.15.5 → 2.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Auth.9a7ea04d.js → Auth.d52583ab.js} +1 -1
- package/dist/assets/{Callback.23586baf.js → Callback.970d9e08.js} +1 -1
- package/dist/assets/{Chatdoc.089bf62e.js → Chatdoc.6097dd33.js} +1 -1
- package/dist/assets/{Console.abff75b8.js → Console.c954b40f.js} +1 -1
- package/dist/assets/{Conversation.a9511a61.js → Conversation.50b65136.js} +1 -1
- package/dist/assets/{Conversation.11fa30dc.js → Conversation.73bd72ea.js} +1 -1
- package/dist/assets/{CopyToClipboard.06037c3f.js → CopyToClipboard.86cc641d.js} +1 -1
- package/dist/assets/{DarkSelector.a970b239.js → DarkSelector.c53c8b77.js} +1 -1
- package/dist/assets/{Detail.ada17bec.js → Detail.b7fdaf4c.js} +1 -1
- package/dist/assets/{Extra.1809265d.js → Extra.4db05f52.js} +1 -1
- package/dist/assets/{History.f2a1cf47.js → History.54b7b9c5.js} +1 -1
- package/dist/assets/{ImageNavigator.2fcf2407.js → ImageNavigator.0e4648e2.js} +1 -1
- package/dist/assets/Index.03aecd6b.js +1 -0
- package/dist/assets/Index.05213a21.css +1 -0
- package/dist/assets/{Index.e56580da.js → Index.0a0b3473.js} +1 -1
- package/dist/assets/{Index.1e73cf05.js → Index.0a17bd4d.js} +1 -1
- package/dist/assets/{Index.7dab4e07.js → Index.35340919.js} +1 -1
- package/dist/assets/{Index.a87a9863.js → Index.366c909b.js} +1 -1
- package/dist/assets/{Index.ec46d26d.js → Index.48af7c0b.js} +1 -1
- package/dist/assets/{Index.ad05ea6f.js → Index.4e8bfabb.js} +1 -1
- package/dist/assets/Index.57e792f1.css +1 -0
- package/dist/assets/{Index.6bcaa092.js → Index.58c94739.js} +1 -1
- package/dist/assets/{Index.2a111b5a.js → Index.82db5785.js} +1 -1
- package/dist/assets/{Index.3a674162.js → Index.88fbdd26.js} +1 -1
- package/dist/assets/{Index.3bbb1b21.js → Index.a4d159f9.js} +1 -1
- package/dist/assets/{Index.3c44d81c.js → Index.ce4977d9.js} +1 -1
- package/dist/assets/{Index.d57f3a84.js → Index.eb88999d.js} +1 -1
- package/dist/assets/{Index.c7d2bb5f.js → Index.fa5bf33f.js} +1 -1
- package/dist/assets/{InfoIcon.48bd38f9.js → InfoIcon.000d8723.js} +1 -1
- package/dist/assets/{Invitees.13e9b67b.js → Invitees.cbbdd817.js} +1 -1
- package/dist/assets/{List.a1774198.js → List.2a7373c7.js} +1 -1
- package/dist/assets/{List.35ca9114.js → List.4544ff35.js} +1 -1
- package/dist/assets/{List.0d2e5273.js → List.7d2f41b3.js} +1 -1
- package/dist/assets/{Login.6a60b5dc.js → Login.c6181d49.js} +1 -1
- package/dist/assets/{Main.b163921e.js → Main.de69edb3.js} +1 -1
- package/dist/assets/{Manage.159260f7.js → Manage.e006fa0d.js} +1 -1
- package/dist/assets/{MarkdownRenderer.aa262e85.js → MarkdownRenderer.733db8ec.js} +1 -1
- package/dist/assets/{Navigator.e83d4082.js → Navigator.0c9a3f05.js} +1 -1
- package/dist/assets/{Pagination.e70aeba8.js → Pagination.94f19837.js} +1 -1
- package/dist/assets/{Setting.35ac9719.js → Setting.fcd14b49.js} +1 -1
- package/dist/assets/{Status.b402ebb3.js → Status.00cb3a46.js} +1 -1
- package/dist/assets/{Subscribe.6139a9aa.js → Subscribe.7f61cf5f.js} +1 -1
- package/dist/assets/{VideoNavigator.5969c4ae.js → VideoNavigator.5cb13b7f.js} +1 -1
- package/dist/assets/{distribution.82beb040.js → distribution.5cd82324.js} +1 -1
- package/dist/assets/{index.f558cdf9.js → index.ce82318e.js} +1 -1
- package/dist/assets/{order.36e86fea.js → order.91c6f9e0.js} +1 -1
- package/dist/assets/{price.a5aea48c.js → price.85f8f286.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/Index.144cc5e8.js +0 -1
- package/dist/assets/Index.86ebef95.css +0 -1
- package/dist/assets/Index.9d0ca645.css +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
var Ge=Object.defineProperty,Qe=Object.defineProperties;var Ye=Object.getOwnPropertyDescriptors;var oe=Object.getOwnPropertySymbols;var Xe=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable;var G=(s,e,o)=>e in s?Ge(s,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):s[e]=o,d=(s,e)=>{for(var o in e||(e={}))Xe.call(e,o)&&G(s,o,e[o]);if(oe)for(var o of oe(e))Ke.call(e,o)&&G(s,o,e[o]);return s},j=(s,e)=>Qe(s,Ye(e));var N=(s,e,o)=>(G(s,typeof e!="symbol"?e+"":e,o),o);import{v as Je,w as Ze,x as y,z as et,A as tt,B as st,C as ot,D as rt,F as z,G as nt,H as it,I as at}from"./vendor-others.56d45bbc.js";import{a as O}from"./vendor-axios.168e6950.js";import{_ as _t,H as ce,al as C,e as ct,V as X,M as H,W as ut,o as S,f as dt,L as q,S as K,T as pt,U as Et,aD as lt}from"./vendor-@vue.01066951.js";import{Q as mt}from"./vendor-qrcode.3f236d35.js";import{E as vt,a as At,b as Tt,z as It,v as Rt}from"./vendor-element-plus.0a44791e.js";import{l as m,f as Ot,a as Dt,b as Lt,c as Pt,d as jt,e as gt,g as ht,h as Vt,i as kt,j as ft,k as yt,m as bt,n as wt,o as $t,p as Ct,q as xt,r as St,s as Ut,t as Nt,u as zt,v as Mt,w as qt,x as Bt,y as Ht,z as Ft,A as Wt,B as Gt,C as Qt,D as Yt,E as Xt,F as Kt,G as Jt,H as Zt,I as es,J as ts,K as ss,L as os,M as rs,N as ns,O as is,P as as,Q as _s,R as cs,S as us,T as ds,U as ps,V as Es,W as ls,X as ms,Y as vs,Z as As,_ as Ts,$ as Is,a0 as Rs,a1 as Os,a2 as Ds,a3 as Ls,a4 as Ps,a5 as js,a6 as gs,a7 as hs,a8 as Vs,a9 as ks,aa as fs,ab as ys,ac as bs,ad as ws,ae as $s,af as Cs,ag as xs,ah as Ss,ai as Us,aj as Ns,ak as zs,al as Ms,am as qs,an as Bs,ao as Hs,ap as Fs}from"./vendor-fortawesome.ea56e829.js";const Ws=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const c of r)if(c.type==="childList")for(const n of c.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&i(n)}).observe(document,{childList:!0,subtree:!0});function o(r){const c={};return r.integrity&&(c.integrity=r.integrity),r.referrerpolicy&&(c.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?c.credentials="include":r.crossorigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(r){if(r.ep)return;r.ep=!0;const c=o(r);fetch(r.href,c)}};Ws();const U=window.location.origin==="https://hub-test.acedata.cloud",ue=U?"https://platform-test.acedata.cloud":"https://platform.acedata.cloud",J=U?"https://hub-test.acedata.cloud":"https://hub.acedata.cloud",de=U?"https://auth-test.acedata.cloud":"https://auth.acedata.cloud",D=U?"https://api-test.acedata.cloud":"https://api.acedata.cloud";new URL(ue).host;const F=new URL(J).host;new URL(de).host;new URL(D).host;const re="create",Gs="update",Q="delete",Y="retrieve",M="retrieve_batch",Qs="modulepreload",ne={},Ys="/",t=function(e,o){return!o||o.length===0?e():Promise.all(o.map(i=>{if(i=`${Ys}${i}`,i in ne)return;ne[i]=!0;const r=i.endsWith(".css"),c=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${c}`))return;const n=document.createElement("link");if(n.rel=r?"stylesheet":Qs,r||(n.as="script",n.crossOrigin=""),n.href=i,document.head.appendChild(n),r)return new Promise((a,u)=>{n.addEventListener("load",a),n.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())};function Xs(s){switch(s){case"./ar/api.json":return t(()=>import("./api.a332bb5c.js"),[]);case"./ar/application.json":return t(()=>import("./application.e6a79b83.js"),[]);case"./ar/chat.json":return t(()=>import("./chat.c5786f25.js"),[]);case"./ar/chatdoc.json":return t(()=>import("./chatdoc.c9102d6b.js"),[]);case"./ar/common.json":return t(()=>import("./common.49d7894d.js"),[]);case"./ar/console.json":return t(()=>import("./console.3eac0149.js"),[]);case"./ar/credential.json":return t(()=>import("./credential.eb41fe73.js"),[]);case"./ar/distribution.json":return t(()=>import("./distribution.b5b433ca.js"),[]);case"./ar/flux.json":return t(()=>import("./flux.ebccaa4e.js"),[]);case"./ar/hailuo.json":return t(()=>import("./hailuo.37108325.js"),[]);case"./ar/headshots.json":return t(()=>import("./headshots.5fdd5f0b.js"),[]);case"./ar/index.json":return t(()=>import("./index.8677a92c.js"),[]);case"./ar/luma.json":return t(()=>import("./luma.a2c4798b.js"),[]);case"./ar/midjourney.json":return t(()=>import("./midjourney.6fdf3710.js"),[]);case"./ar/order.json":return t(()=>import("./order.a215bde7.js"),[]);case"./ar/pika.json":return t(()=>import("./pika.06076435.js"),[]);case"./ar/proxy.json":return t(()=>import("./proxy.e373b98b.js"),[]);case"./ar/qrart.json":return t(()=>import("./qrart.0074d7b1.js"),[]);case"./ar/service.json":return t(()=>import("./service.d728679c.js"),[]);case"./ar/site.json":return t(()=>import("./site.c5d2323b.js"),[]);case"./ar/suno.json":return t(()=>import("./suno.f295034e.js"),[]);case"./ar/usage.json":return t(()=>import("./usage.d72320b1.js"),[]);case"./ar/user.json":return t(()=>import("./user.08c501a5.js"),[]);case"./de/api.json":return t(()=>import("./api.818af659.js"),[]);case"./de/application.json":return t(()=>import("./application.7e46e171.js"),[]);case"./de/chat.json":return t(()=>import("./chat.aba815b5.js"),[]);case"./de/chatdoc.json":return t(()=>import("./chatdoc.a330c226.js"),[]);case"./de/common.json":return t(()=>import("./common.0bb76e04.js"),[]);case"./de/console.json":return t(()=>import("./console.6f8b5c9d.js"),[]);case"./de/credential.json":return t(()=>import("./credential.842dfa48.js"),[]);case"./de/distribution.json":return t(()=>import("./distribution.a9896fef.js"),[]);case"./de/flux.json":return t(()=>import("./flux.6bff76dc.js"),[]);case"./de/hailuo.json":return t(()=>import("./hailuo.3b8f72eb.js"),[]);case"./de/headshots.json":return t(()=>import("./headshots.6501db19.js"),[]);case"./de/index.json":return t(()=>import("./index.b44a7261.js"),[]);case"./de/luma.json":return t(()=>import("./luma.992755c1.js"),[]);case"./de/midjourney.json":return t(()=>import("./midjourney.4116bbd1.js"),[]);case"./de/order.json":return t(()=>import("./order.02f20e45.js"),[]);case"./de/pika.json":return t(()=>import("./pika.94c4f48e.js"),[]);case"./de/proxy.json":return t(()=>import("./proxy.6197ed3c.js"),[]);case"./de/qrart.json":return t(()=>import("./qrart.7efcbab8.js"),[]);case"./de/service.json":return t(()=>import("./service.be2b65e6.js"),[]);case"./de/site.json":return t(()=>import("./site.de131573.js"),[]);case"./de/suno.json":return t(()=>import("./suno.93c5c302.js"),[]);case"./de/usage.json":return t(()=>import("./usage.04f0f71e.js"),[]);case"./de/user.json":return t(()=>import("./user.8c2740d5.js"),[]);case"./el/api.json":return t(()=>import("./api.73a91481.js"),[]);case"./el/application.json":return t(()=>import("./application.3e1aa320.js"),[]);case"./el/chat.json":return t(()=>import("./chat.461512c7.js"),[]);case"./el/chatdoc.json":return t(()=>import("./chatdoc.38093bef.js"),[]);case"./el/common.json":return t(()=>import("./common.ae083051.js"),[]);case"./el/console.json":return t(()=>import("./console.f2b5361b.js"),[]);case"./el/credential.json":return t(()=>import("./credential.04598fa3.js"),[]);case"./el/distribution.json":return t(()=>import("./distribution.fec7067a.js"),[]);case"./el/flux.json":return t(()=>import("./flux.82000e74.js"),[]);case"./el/hailuo.json":return t(()=>import("./hailuo.b58fe7ac.js"),[]);case"./el/headshots.json":return t(()=>import("./headshots.56eae7e4.js"),[]);case"./el/index.json":return t(()=>import("./index.3dcc9f0d.js"),[]);case"./el/luma.json":return t(()=>import("./luma.90f454c9.js"),[]);case"./el/midjourney.json":return t(()=>import("./midjourney.a515e2c2.js"),[]);case"./el/order.json":return t(()=>import("./order.1c358a68.js"),[]);case"./el/pika.json":return t(()=>import("./pika.0af44318.js"),[]);case"./el/proxy.json":return t(()=>import("./proxy.77adcc26.js"),[]);case"./el/qrart.json":return t(()=>import("./qrart.a829fa5f.js"),[]);case"./el/service.json":return t(()=>import("./service.62f9c8e6.js"),[]);case"./el/site.json":return t(()=>import("./site.53ec062b.js"),[]);case"./el/suno.json":return t(()=>import("./suno.6e2d25cf.js"),[]);case"./el/usage.json":return t(()=>import("./usage.771626b6.js"),[]);case"./el/user.json":return t(()=>import("./user.97a64233.js"),[]);case"./en/api.json":return t(()=>import("./api.7dc36d47.js"),[]);case"./en/application.json":return t(()=>import("./application.0fac8022.js"),[]);case"./en/chat.json":return t(()=>import("./chat.816635a4.js"),[]);case"./en/chatdoc.json":return t(()=>import("./chatdoc.c99b8fc5.js"),[]);case"./en/common.json":return t(()=>import("./common.df148e38.js"),[]);case"./en/console.json":return t(()=>import("./console.7aefcf17.js"),[]);case"./en/credential.json":return t(()=>import("./credential.1193646d.js"),[]);case"./en/distribution.json":return t(()=>import("./distribution.40bd61b0.js"),[]);case"./en/flux.json":return t(()=>import("./flux.aa8f0ba0.js"),[]);case"./en/hailuo.json":return t(()=>import("./hailuo.603baf35.js"),[]);case"./en/headshots.json":return t(()=>import("./headshots.1a490a07.js"),[]);case"./en/index.json":return t(()=>import("./index.db83989d.js"),[]);case"./en/luma.json":return t(()=>import("./luma.68816b5a.js"),[]);case"./en/midjourney.json":return t(()=>import("./midjourney.a7d2fe5f.js"),[]);case"./en/order.json":return t(()=>import("./order.9ac50540.js"),[]);case"./en/pika.json":return t(()=>import("./pika.4d50c4b8.js"),[]);case"./en/proxy.json":return t(()=>import("./proxy.d6167c9e.js"),[]);case"./en/qrart.json":return t(()=>import("./qrart.8bd2b8b5.js"),[]);case"./en/service.json":return t(()=>import("./service.847fd288.js"),[]);case"./en/site.json":return t(()=>import("./site.9d5b0661.js"),[]);case"./en/suno.json":return t(()=>import("./suno.8554b243.js"),[]);case"./en/usage.json":return t(()=>import("./usage.b2867a7c.js"),[]);case"./en/user.json":return t(()=>import("./user.3529d32e.js"),[]);case"./es/api.json":return t(()=>import("./api.213cd308.js"),[]);case"./es/application.json":return t(()=>import("./application.538c1d62.js"),[]);case"./es/chat.json":return t(()=>import("./chat.c09e9754.js"),[]);case"./es/chatdoc.json":return t(()=>import("./chatdoc.be4f6cf9.js"),[]);case"./es/common.json":return t(()=>import("./common.3f10865b.js"),[]);case"./es/console.json":return t(()=>import("./console.a2466212.js"),[]);case"./es/credential.json":return t(()=>import("./credential.af11f12c.js"),[]);case"./es/distribution.json":return t(()=>import("./distribution.04b256bf.js"),[]);case"./es/flux.json":return t(()=>import("./flux.cc80368d.js"),[]);case"./es/hailuo.json":return t(()=>import("./hailuo.b75c4887.js"),[]);case"./es/headshots.json":return t(()=>import("./headshots.592a7a6d.js"),[]);case"./es/index.json":return t(()=>import("./index.f964e456.js"),[]);case"./es/luma.json":return t(()=>import("./luma.31f6450b.js"),[]);case"./es/midjourney.json":return t(()=>import("./midjourney.d5dccaef.js"),[]);case"./es/order.json":return t(()=>import("./order.a8b6322f.js"),[]);case"./es/pika.json":return t(()=>import("./pika.fabb00c1.js"),[]);case"./es/proxy.json":return t(()=>import("./proxy.eecf47a3.js"),[]);case"./es/qrart.json":return t(()=>import("./qrart.46ec60ea.js"),[]);case"./es/service.json":return t(()=>import("./service.99fe12fc.js"),[]);case"./es/site.json":return t(()=>import("./site.dca111ff.js"),[]);case"./es/suno.json":return t(()=>import("./suno.3e4d79c0.js"),[]);case"./es/usage.json":return t(()=>import("./usage.4880575b.js"),[]);case"./es/user.json":return t(()=>import("./user.167a4041.js"),[]);case"./fi/api.json":return t(()=>import("./api.0f034ae6.js"),[]);case"./fi/application.json":return t(()=>import("./application.07ad8042.js"),[]);case"./fi/chat.json":return t(()=>import("./chat.1a84dfe6.js"),[]);case"./fi/chatdoc.json":return t(()=>import("./chatdoc.eb31a140.js"),[]);case"./fi/common.json":return t(()=>import("./common.b423a5ed.js"),[]);case"./fi/console.json":return t(()=>import("./console.c66adbdf.js"),[]);case"./fi/credential.json":return t(()=>import("./credential.f872a714.js"),[]);case"./fi/distribution.json":return t(()=>import("./distribution.d131e1b9.js"),[]);case"./fi/flux.json":return t(()=>import("./flux.3712c862.js"),[]);case"./fi/hailuo.json":return t(()=>import("./hailuo.76df33b6.js"),[]);case"./fi/headshots.json":return t(()=>import("./headshots.c94c35eb.js"),[]);case"./fi/index.json":return t(()=>import("./index.37465f4e.js"),[]);case"./fi/luma.json":return t(()=>import("./luma.eb9a8302.js"),[]);case"./fi/midjourney.json":return t(()=>import("./midjourney.e167aae9.js"),[]);case"./fi/order.json":return t(()=>import("./order.d217f5ff.js"),[]);case"./fi/pika.json":return t(()=>import("./pika.dcb09dca.js"),[]);case"./fi/proxy.json":return t(()=>import("./proxy.133d11fd.js"),[]);case"./fi/qrart.json":return t(()=>import("./qrart.e05e900a.js"),[]);case"./fi/service.json":return t(()=>import("./service.2508f46e.js"),[]);case"./fi/site.json":return t(()=>import("./site.7e02b1ab.js"),[]);case"./fi/suno.json":return t(()=>import("./suno.17cc1852.js"),[]);case"./fi/usage.json":return t(()=>import("./usage.b0968cb7.js"),[]);case"./fi/user.json":return t(()=>import("./user.6ed11ce4.js"),[]);case"./fr/api.json":return t(()=>import("./api.3170d3cc.js"),[]);case"./fr/application.json":return t(()=>import("./application.be4edbdb.js"),[]);case"./fr/chat.json":return t(()=>import("./chat.5bdb1fa9.js"),[]);case"./fr/chatdoc.json":return t(()=>import("./chatdoc.82bb469d.js"),[]);case"./fr/common.json":return t(()=>import("./common.659f33c4.js"),[]);case"./fr/console.json":return t(()=>import("./console.ef2fcc3d.js"),[]);case"./fr/credential.json":return t(()=>import("./credential.d432557a.js"),[]);case"./fr/distribution.json":return t(()=>import("./distribution.632802b2.js"),[]);case"./fr/flux.json":return t(()=>import("./flux.d3981c83.js"),[]);case"./fr/hailuo.json":return t(()=>import("./hailuo.3894ef18.js"),[]);case"./fr/headshots.json":return t(()=>import("./headshots.b7f623fd.js"),[]);case"./fr/index.json":return t(()=>import("./index.1a15ffa9.js"),[]);case"./fr/luma.json":return t(()=>import("./luma.18e6d08f.js"),[]);case"./fr/midjourney.json":return t(()=>import("./midjourney.eafd626e.js"),[]);case"./fr/order.json":return t(()=>import("./order.278cc8ec.js"),[]);case"./fr/pika.json":return t(()=>import("./pika.8ef358ba.js"),[]);case"./fr/proxy.json":return t(()=>import("./proxy.31dfefac.js"),[]);case"./fr/qrart.json":return t(()=>import("./qrart.e9bb61b6.js"),[]);case"./fr/service.json":return t(()=>import("./service.ebc8e30e.js"),[]);case"./fr/site.json":return t(()=>import("./site.44c62f61.js"),[]);case"./fr/suno.json":return t(()=>import("./suno.ae23362d.js"),[]);case"./fr/usage.json":return t(()=>import("./usage.b40a1557.js"),[]);case"./fr/user.json":return t(()=>import("./user.637aff20.js"),[]);case"./it/api.json":return t(()=>import("./api.fc827dfb.js"),[]);case"./it/application.json":return t(()=>import("./application.74e344c5.js"),[]);case"./it/chat.json":return t(()=>import("./chat.2249a770.js"),[]);case"./it/chatdoc.json":return t(()=>import("./chatdoc.6f26a6c3.js"),[]);case"./it/common.json":return t(()=>import("./common.d5838598.js"),[]);case"./it/console.json":return t(()=>import("./console.5a8befab.js"),[]);case"./it/credential.json":return t(()=>import("./credential.f4a14d2a.js"),[]);case"./it/distribution.json":return t(()=>import("./distribution.2445a0a4.js"),[]);case"./it/flux.json":return t(()=>import("./flux.85acdc01.js"),[]);case"./it/hailuo.json":return t(()=>import("./hailuo.0a3d1340.js"),[]);case"./it/headshots.json":return t(()=>import("./headshots.1cbbfdec.js"),[]);case"./it/index.json":return t(()=>import("./index.c087482b.js"),[]);case"./it/luma.json":return t(()=>import("./luma.e7b2fcf0.js"),[]);case"./it/midjourney.json":return t(()=>import("./midjourney.b64f9044.js"),[]);case"./it/order.json":return t(()=>import("./order.3e7803d7.js"),[]);case"./it/pika.json":return t(()=>import("./pika.920207f1.js"),[]);case"./it/proxy.json":return t(()=>import("./proxy.329911e7.js"),[]);case"./it/qrart.json":return t(()=>import("./qrart.6ea7e5e1.js"),[]);case"./it/service.json":return t(()=>import("./service.6d83c187.js"),[]);case"./it/site.json":return t(()=>import("./site.2b75a139.js"),[]);case"./it/suno.json":return t(()=>import("./suno.50e562c7.js"),[]);case"./it/usage.json":return t(()=>import("./usage.fa1a36cb.js"),[]);case"./it/user.json":return t(()=>import("./user.280e7fdd.js"),[]);case"./ja/api.json":return t(()=>import("./api.40468439.js"),[]);case"./ja/application.json":return t(()=>import("./application.44ac4a6b.js"),[]);case"./ja/chat.json":return t(()=>import("./chat.c1313474.js"),[]);case"./ja/chatdoc.json":return t(()=>import("./chatdoc.6e05604b.js"),[]);case"./ja/common.json":return t(()=>import("./common.d5497470.js"),[]);case"./ja/console.json":return t(()=>import("./console.60252e24.js"),[]);case"./ja/credential.json":return t(()=>import("./credential.d4f63a8b.js"),[]);case"./ja/distribution.json":return t(()=>import("./distribution.4abbea61.js"),[]);case"./ja/flux.json":return t(()=>import("./flux.35de7d11.js"),[]);case"./ja/hailuo.json":return t(()=>import("./hailuo.d63e17d4.js"),[]);case"./ja/headshots.json":return t(()=>import("./headshots.ad352e10.js"),[]);case"./ja/index.json":return t(()=>import("./index.391197bf.js"),[]);case"./ja/luma.json":return t(()=>import("./luma.52656c21.js"),[]);case"./ja/midjourney.json":return t(()=>import("./midjourney.e4c1f3aa.js"),[]);case"./ja/order.json":return t(()=>import("./order.5b71322d.js"),[]);case"./ja/pika.json":return t(()=>import("./pika.08878d2e.js"),[]);case"./ja/proxy.json":return t(()=>import("./proxy.1b499543.js"),[]);case"./ja/qrart.json":return t(()=>import("./qrart.379ba2c5.js"),[]);case"./ja/service.json":return t(()=>import("./service.8cd05403.js"),[]);case"./ja/site.json":return t(()=>import("./site.7c4177ff.js"),[]);case"./ja/suno.json":return t(()=>import("./suno.293d1084.js"),[]);case"./ja/usage.json":return t(()=>import("./usage.3299fdd7.js"),[]);case"./ja/user.json":return t(()=>import("./user.073bb362.js"),[]);case"./ko/api.json":return t(()=>import("./api.1072ae11.js"),[]);case"./ko/application.json":return t(()=>import("./application.69f2d78e.js"),[]);case"./ko/chat.json":return t(()=>import("./chat.cba3af00.js"),[]);case"./ko/chatdoc.json":return t(()=>import("./chatdoc.4963b715.js"),[]);case"./ko/common.json":return t(()=>import("./common.86058aa9.js"),[]);case"./ko/console.json":return t(()=>import("./console.1ac9637c.js"),[]);case"./ko/credential.json":return t(()=>import("./credential.74124158.js"),[]);case"./ko/distribution.json":return t(()=>import("./distribution.f1e4ae1b.js"),[]);case"./ko/flux.json":return t(()=>import("./flux.704493e1.js"),[]);case"./ko/hailuo.json":return t(()=>import("./hailuo.b5941733.js"),[]);case"./ko/headshots.json":return t(()=>import("./headshots.ae3d4804.js"),[]);case"./ko/index.json":return t(()=>import("./index.815395c4.js"),[]);case"./ko/luma.json":return t(()=>import("./luma.0a2d1bc5.js"),[]);case"./ko/midjourney.json":return t(()=>import("./midjourney.e142e4ba.js"),[]);case"./ko/order.json":return t(()=>import("./order.add6d5c2.js"),[]);case"./ko/pika.json":return t(()=>import("./pika.f8fa49a8.js"),[]);case"./ko/proxy.json":return t(()=>import("./proxy.a3f16b8e.js"),[]);case"./ko/qrart.json":return t(()=>import("./qrart.135c26db.js"),[]);case"./ko/service.json":return t(()=>import("./service.d83bf89d.js"),[]);case"./ko/site.json":return t(()=>import("./site.9b960df6.js"),[]);case"./ko/suno.json":return t(()=>import("./suno.220b4f81.js"),[]);case"./ko/usage.json":return t(()=>import("./usage.3b165b46.js"),[]);case"./ko/user.json":return t(()=>import("./user.eee57bcd.js"),[]);case"./pl/api.json":return t(()=>import("./api.ae1c3f85.js"),[]);case"./pl/application.json":return t(()=>import("./application.1ffb2c4e.js"),[]);case"./pl/chat.json":return t(()=>import("./chat.0259ba8b.js"),[]);case"./pl/chatdoc.json":return t(()=>import("./chatdoc.cb5d28e1.js"),[]);case"./pl/common.json":return t(()=>import("./common.332fa235.js"),[]);case"./pl/console.json":return t(()=>import("./console.1bb43f37.js"),[]);case"./pl/credential.json":return t(()=>import("./credential.c70da515.js"),[]);case"./pl/distribution.json":return t(()=>import("./distribution.f28ca36e.js"),[]);case"./pl/flux.json":return t(()=>import("./flux.4a85f636.js"),[]);case"./pl/hailuo.json":return t(()=>import("./hailuo.aa84f90f.js"),[]);case"./pl/headshots.json":return t(()=>import("./headshots.a6439b75.js"),[]);case"./pl/index.json":return t(()=>import("./index.63b639eb.js"),[]);case"./pl/luma.json":return t(()=>import("./luma.e617a083.js"),[]);case"./pl/midjourney.json":return t(()=>import("./midjourney.bfa5a88f.js"),[]);case"./pl/order.json":return t(()=>import("./order.8d3d3f7d.js"),[]);case"./pl/pika.json":return t(()=>import("./pika.74af89ef.js"),[]);case"./pl/proxy.json":return t(()=>import("./proxy.27ed7c24.js"),[]);case"./pl/qrart.json":return t(()=>import("./qrart.ad7eceaa.js"),[]);case"./pl/service.json":return t(()=>import("./service.5ff88101.js"),[]);case"./pl/site.json":return t(()=>import("./site.2c4bc670.js"),[]);case"./pl/suno.json":return t(()=>import("./suno.9099124a.js"),[]);case"./pl/usage.json":return t(()=>import("./usage.4a0c5964.js"),[]);case"./pl/user.json":return t(()=>import("./user.f9c585bf.js"),[]);case"./pt/api.json":return t(()=>import("./api.729038af.js"),[]);case"./pt/application.json":return t(()=>import("./application.2e2dc69d.js"),[]);case"./pt/chat.json":return t(()=>import("./chat.5b3b6e73.js"),[]);case"./pt/chatdoc.json":return t(()=>import("./chatdoc.369240c0.js"),[]);case"./pt/common.json":return t(()=>import("./common.12de3aff.js"),[]);case"./pt/console.json":return t(()=>import("./console.d241b50f.js"),[]);case"./pt/credential.json":return t(()=>import("./credential.193339b9.js"),[]);case"./pt/distribution.json":return t(()=>import("./distribution.2dae690c.js"),[]);case"./pt/flux.json":return t(()=>import("./flux.3ba35e0e.js"),[]);case"./pt/hailuo.json":return t(()=>import("./hailuo.48169a81.js"),[]);case"./pt/headshots.json":return t(()=>import("./headshots.9f5c1eb1.js"),[]);case"./pt/index.json":return t(()=>import("./index.2f2bd2f0.js"),[]);case"./pt/luma.json":return t(()=>import("./luma.3d28b187.js"),[]);case"./pt/midjourney.json":return t(()=>import("./midjourney.2ccedef1.js"),[]);case"./pt/order.json":return t(()=>import("./order.29387b0c.js"),[]);case"./pt/pika.json":return t(()=>import("./pika.a6994bfe.js"),[]);case"./pt/proxy.json":return t(()=>import("./proxy.a908dbb4.js"),[]);case"./pt/qrart.json":return t(()=>import("./qrart.90fccf7d.js"),[]);case"./pt/service.json":return t(()=>import("./service.f4552453.js"),[]);case"./pt/site.json":return t(()=>import("./site.7a809230.js"),[]);case"./pt/suno.json":return t(()=>import("./suno.6dd48e26.js"),[]);case"./pt/usage.json":return t(()=>import("./usage.f2504542.js"),[]);case"./pt/user.json":return t(()=>import("./user.d80f3bba.js"),[]);case"./ru/api.json":return t(()=>import("./api.69c809ee.js"),[]);case"./ru/application.json":return t(()=>import("./application.cc12550d.js"),[]);case"./ru/chat.json":return t(()=>import("./chat.7f5f30fd.js"),[]);case"./ru/chatdoc.json":return t(()=>import("./chatdoc.26e34f62.js"),[]);case"./ru/common.json":return t(()=>import("./common.76e73cc9.js"),[]);case"./ru/console.json":return t(()=>import("./console.ae88ad84.js"),[]);case"./ru/credential.json":return t(()=>import("./credential.fdfc75af.js"),[]);case"./ru/distribution.json":return t(()=>import("./distribution.169757d7.js"),[]);case"./ru/flux.json":return t(()=>import("./flux.e9ef5810.js"),[]);case"./ru/hailuo.json":return t(()=>import("./hailuo.d4c2b8de.js"),[]);case"./ru/headshots.json":return t(()=>import("./headshots.6a51ab17.js"),[]);case"./ru/index.json":return t(()=>import("./index.f13c8e0d.js"),[]);case"./ru/luma.json":return t(()=>import("./luma.0e37bf0d.js"),[]);case"./ru/midjourney.json":return t(()=>import("./midjourney.189899ef.js"),[]);case"./ru/order.json":return t(()=>import("./order.524b686a.js"),[]);case"./ru/pika.json":return t(()=>import("./pika.17a67df4.js"),[]);case"./ru/proxy.json":return t(()=>import("./proxy.438efd9f.js"),[]);case"./ru/qrart.json":return t(()=>import("./qrart.17b19230.js"),[]);case"./ru/service.json":return t(()=>import("./service.49b63035.js"),[]);case"./ru/site.json":return t(()=>import("./site.96eba8d6.js"),[]);case"./ru/suno.json":return t(()=>import("./suno.7a01211e.js"),[]);case"./ru/usage.json":return t(()=>import("./usage.0cf4c0cc.js"),[]);case"./ru/user.json":return t(()=>import("./user.ec9b9e19.js"),[]);case"./sr/api.json":return t(()=>import("./api.cc772840.js"),[]);case"./sr/application.json":return t(()=>import("./application.746d8c67.js"),[]);case"./sr/chat.json":return t(()=>import("./chat.ceae5335.js"),[]);case"./sr/chatdoc.json":return t(()=>import("./chatdoc.5968870d.js"),[]);case"./sr/common.json":return t(()=>import("./common.bc10c6d4.js"),[]);case"./sr/console.json":return t(()=>import("./console.606e5a51.js"),[]);case"./sr/credential.json":return t(()=>import("./credential.5ea3ce28.js"),[]);case"./sr/distribution.json":return t(()=>import("./distribution.203b5891.js"),[]);case"./sr/flux.json":return t(()=>import("./flux.0ede9546.js"),[]);case"./sr/hailuo.json":return t(()=>import("./hailuo.7ca07086.js"),[]);case"./sr/headshots.json":return t(()=>import("./headshots.fd93138d.js"),[]);case"./sr/index.json":return t(()=>import("./index.93a0aa5d.js"),[]);case"./sr/luma.json":return t(()=>import("./luma.4a08cf42.js"),[]);case"./sr/midjourney.json":return t(()=>import("./midjourney.3a6a941b.js"),[]);case"./sr/order.json":return t(()=>import("./order.d2ad515f.js"),[]);case"./sr/pika.json":return t(()=>import("./pika.7224b0f1.js"),[]);case"./sr/proxy.json":return t(()=>import("./proxy.e01ba053.js"),[]);case"./sr/qrart.json":return t(()=>import("./qrart.3a0b978c.js"),[]);case"./sr/service.json":return t(()=>import("./service.26f94202.js"),[]);case"./sr/site.json":return t(()=>import("./site.3ebc262d.js"),[]);case"./sr/suno.json":return t(()=>import("./suno.187d3beb.js"),[]);case"./sr/usage.json":return t(()=>import("./usage.a438d3e1.js"),[]);case"./sr/user.json":return t(()=>import("./user.63e6d5b1.js"),[]);case"./sv/api.json":return t(()=>import("./api.49b52521.js"),[]);case"./sv/application.json":return t(()=>import("./application.e25e0a92.js"),[]);case"./sv/chat.json":return t(()=>import("./chat.1ed130b1.js"),[]);case"./sv/chatdoc.json":return t(()=>import("./chatdoc.8b1244bd.js"),[]);case"./sv/common.json":return t(()=>import("./common.2d0527ed.js"),[]);case"./sv/console.json":return t(()=>import("./console.0dd7da82.js"),[]);case"./sv/credential.json":return t(()=>import("./credential.f3da317c.js"),[]);case"./sv/distribution.json":return t(()=>import("./distribution.00e29fe2.js"),[]);case"./sv/flux.json":return t(()=>import("./flux.5f78b248.js"),[]);case"./sv/hailuo.json":return t(()=>import("./hailuo.db591cd1.js"),[]);case"./sv/headshots.json":return t(()=>import("./headshots.563e619d.js"),[]);case"./sv/index.json":return t(()=>import("./index.e0fe452a.js"),[]);case"./sv/luma.json":return t(()=>import("./luma.d078b9c2.js"),[]);case"./sv/midjourney.json":return t(()=>import("./midjourney.024feb94.js"),[]);case"./sv/order.json":return t(()=>import("./order.c70b9393.js"),[]);case"./sv/pika.json":return t(()=>import("./pika.f11cf01e.js"),[]);case"./sv/proxy.json":return t(()=>import("./proxy.45f75aef.js"),[]);case"./sv/qrart.json":return t(()=>import("./qrart.8b93c87b.js"),[]);case"./sv/service.json":return t(()=>import("./service.f87877d7.js"),[]);case"./sv/site.json":return t(()=>import("./site.53081110.js"),[]);case"./sv/suno.json":return t(()=>import("./suno.5eff8ce9.js"),[]);case"./sv/usage.json":return t(()=>import("./usage.fea8e259.js"),[]);case"./sv/user.json":return t(()=>import("./user.6107ec3a.js"),[]);case"./uk/api.json":return t(()=>import("./api.c8f12c88.js"),[]);case"./uk/application.json":return t(()=>import("./application.391cc2f4.js"),[]);case"./uk/chat.json":return t(()=>import("./chat.4eec9d13.js"),[]);case"./uk/chatdoc.json":return t(()=>import("./chatdoc.e6a3302d.js"),[]);case"./uk/common.json":return t(()=>import("./common.3366b53f.js"),[]);case"./uk/console.json":return t(()=>import("./console.1ef2a589.js"),[]);case"./uk/credential.json":return t(()=>import("./credential.57d6cf16.js"),[]);case"./uk/distribution.json":return t(()=>import("./distribution.e37416a9.js"),[]);case"./uk/flux.json":return t(()=>import("./flux.63ef3571.js"),[]);case"./uk/hailuo.json":return t(()=>import("./hailuo.6eaa7dc4.js"),[]);case"./uk/headshots.json":return t(()=>import("./headshots.880f2cb1.js"),[]);case"./uk/index.json":return t(()=>import("./index.86722d1a.js"),[]);case"./uk/luma.json":return t(()=>import("./luma.ce424894.js"),[]);case"./uk/midjourney.json":return t(()=>import("./midjourney.c6623005.js"),[]);case"./uk/order.json":return t(()=>import("./order.3ac01c79.js"),[]);case"./uk/pika.json":return t(()=>import("./pika.f451cd2a.js"),[]);case"./uk/proxy.json":return t(()=>import("./proxy.5342d506.js"),[]);case"./uk/qrart.json":return t(()=>import("./qrart.5c067cd7.js"),[]);case"./uk/service.json":return t(()=>import("./service.e6e75f15.js"),[]);case"./uk/site.json":return t(()=>import("./site.1884a74b.js"),[]);case"./uk/suno.json":return t(()=>import("./suno.77fa3e0f.js"),[]);case"./uk/usage.json":return t(()=>import("./usage.d3fdd7f1.js"),[]);case"./uk/user.json":return t(()=>import("./user.b9d90188.js"),[]);case"./zh-CN/api.json":return t(()=>import("./api.89ab9415.js"),[]);case"./zh-CN/application.json":return t(()=>import("./application.40ba0f44.js"),[]);case"./zh-CN/chat.json":return t(()=>import("./chat.17dac350.js"),[]);case"./zh-CN/chatdoc.json":return t(()=>import("./chatdoc.d6fa331d.js"),[]);case"./zh-CN/common.json":return t(()=>import("./common.bc6d3758.js"),[]);case"./zh-CN/console.json":return t(()=>import("./console.7460147d.js"),[]);case"./zh-CN/credential.json":return t(()=>import("./credential.338b5853.js"),[]);case"./zh-CN/distribution.json":return t(()=>import("./distribution.5edcdee0.js"),[]);case"./zh-CN/flux.json":return t(()=>import("./flux.4dc922cd.js"),[]);case"./zh-CN/hailuo.json":return t(()=>import("./hailuo.95a516b3.js"),[]);case"./zh-CN/headshots.json":return t(()=>import("./headshots.cf88ab1d.js"),[]);case"./zh-CN/index.json":return t(()=>import("./index.0988453d.js"),[]);case"./zh-CN/luma.json":return t(()=>import("./luma.3c482943.js"),[]);case"./zh-CN/midjourney.json":return t(()=>import("./midjourney.9f515f7b.js"),[]);case"./zh-CN/order.json":return t(()=>import("./order.e6baafc7.js"),[]);case"./zh-CN/pika.json":return t(()=>import("./pika.6b347451.js"),[]);case"./zh-CN/proxy.json":return t(()=>import("./proxy.424636df.js"),[]);case"./zh-CN/qrart.json":return t(()=>import("./qrart.07d6f069.js"),[]);case"./zh-CN/service.json":return t(()=>import("./service.825fb571.js"),[]);case"./zh-CN/site.json":return t(()=>import("./site.d923e8bd.js"),[]);case"./zh-CN/suno.json":return t(()=>import("./suno.3304fc53.js"),[]);case"./zh-CN/usage.json":return t(()=>import("./usage.f849bfdf.js"),[]);case"./zh-CN/user.json":return t(()=>import("./user.226c4ac3.js"),[]);case"./zh-TW/api.json":return t(()=>import("./api.0ed4a0ea.js"),[]);case"./zh-TW/application.json":return t(()=>import("./application.a4d96684.js"),[]);case"./zh-TW/chat.json":return t(()=>import("./chat.88a37127.js"),[]);case"./zh-TW/chatdoc.json":return t(()=>import("./chatdoc.a7a590fd.js"),[]);case"./zh-TW/common.json":return t(()=>import("./common.ef8768a3.js"),[]);case"./zh-TW/console.json":return t(()=>import("./console.b5e9a43c.js"),[]);case"./zh-TW/credential.json":return t(()=>import("./credential.276e510d.js"),[]);case"./zh-TW/distribution.json":return t(()=>import("./distribution.dc7ef2a5.js"),[]);case"./zh-TW/flux.json":return t(()=>import("./flux.08705b63.js"),[]);case"./zh-TW/hailuo.json":return t(()=>import("./hailuo.2cb82586.js"),[]);case"./zh-TW/headshots.json":return t(()=>import("./headshots.4c83a9b2.js"),[]);case"./zh-TW/index.json":return t(()=>import("./index.0542cd26.js"),[]);case"./zh-TW/luma.json":return t(()=>import("./luma.baf56472.js"),[]);case"./zh-TW/midjourney.json":return t(()=>import("./midjourney.50c422d9.js"),[]);case"./zh-TW/order.json":return t(()=>import("./order.fb26e6cb.js"),[]);case"./zh-TW/pika.json":return t(()=>import("./pika.91dfce8e.js"),[]);case"./zh-TW/proxy.json":return t(()=>import("./proxy.91a75f89.js"),[]);case"./zh-TW/qrart.json":return t(()=>import("./qrart.17a3b939.js"),[]);case"./zh-TW/service.json":return t(()=>import("./service.5820e29d.js"),[]);case"./zh-TW/site.json":return t(()=>import("./site.f7c684ed.js"),[]);case"./zh-TW/suno.json":return t(()=>import("./suno.36c79daf.js"),[]);case"./zh-TW/usage.json":return t(()=>import("./usage.88bceb01.js"),[]);case"./zh-TW/user.json":return t(()=>import("./user.04f9b8d7.js"),[]);default:return new Promise(function(e,o){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+s)))})}}function Ks(s){switch(s){case"./ar/api.json":return t(()=>import("./api.a332bb5c.js"),[]);case"./ar/application.json":return t(()=>import("./application.e6a79b83.js"),[]);case"./ar/chat.json":return t(()=>import("./chat.c5786f25.js"),[]);case"./ar/chatdoc.json":return t(()=>import("./chatdoc.c9102d6b.js"),[]);case"./ar/common.json":return t(()=>import("./common.49d7894d.js"),[]);case"./ar/console.json":return t(()=>import("./console.3eac0149.js"),[]);case"./ar/credential.json":return t(()=>import("./credential.eb41fe73.js"),[]);case"./ar/distribution.json":return t(()=>import("./distribution.b5b433ca.js"),[]);case"./ar/flux.json":return t(()=>import("./flux.ebccaa4e.js"),[]);case"./ar/hailuo.json":return t(()=>import("./hailuo.37108325.js"),[]);case"./ar/headshots.json":return t(()=>import("./headshots.5fdd5f0b.js"),[]);case"./ar/index.json":return t(()=>import("./index.8677a92c.js"),[]);case"./ar/luma.json":return t(()=>import("./luma.a2c4798b.js"),[]);case"./ar/midjourney.json":return t(()=>import("./midjourney.6fdf3710.js"),[]);case"./ar/order.json":return t(()=>import("./order.a215bde7.js"),[]);case"./ar/pika.json":return t(()=>import("./pika.06076435.js"),[]);case"./ar/proxy.json":return t(()=>import("./proxy.e373b98b.js"),[]);case"./ar/qrart.json":return t(()=>import("./qrart.0074d7b1.js"),[]);case"./ar/service.json":return t(()=>import("./service.d728679c.js"),[]);case"./ar/site.json":return t(()=>import("./site.c5d2323b.js"),[]);case"./ar/suno.json":return t(()=>import("./suno.f295034e.js"),[]);case"./ar/usage.json":return t(()=>import("./usage.d72320b1.js"),[]);case"./ar/user.json":return t(()=>import("./user.08c501a5.js"),[]);case"./de/api.json":return t(()=>import("./api.818af659.js"),[]);case"./de/application.json":return t(()=>import("./application.7e46e171.js"),[]);case"./de/chat.json":return t(()=>import("./chat.aba815b5.js"),[]);case"./de/chatdoc.json":return t(()=>import("./chatdoc.a330c226.js"),[]);case"./de/common.json":return t(()=>import("./common.0bb76e04.js"),[]);case"./de/console.json":return t(()=>import("./console.6f8b5c9d.js"),[]);case"./de/credential.json":return t(()=>import("./credential.842dfa48.js"),[]);case"./de/distribution.json":return t(()=>import("./distribution.a9896fef.js"),[]);case"./de/flux.json":return t(()=>import("./flux.6bff76dc.js"),[]);case"./de/hailuo.json":return t(()=>import("./hailuo.3b8f72eb.js"),[]);case"./de/headshots.json":return t(()=>import("./headshots.6501db19.js"),[]);case"./de/index.json":return t(()=>import("./index.b44a7261.js"),[]);case"./de/luma.json":return t(()=>import("./luma.992755c1.js"),[]);case"./de/midjourney.json":return t(()=>import("./midjourney.4116bbd1.js"),[]);case"./de/order.json":return t(()=>import("./order.02f20e45.js"),[]);case"./de/pika.json":return t(()=>import("./pika.94c4f48e.js"),[]);case"./de/proxy.json":return t(()=>import("./proxy.6197ed3c.js"),[]);case"./de/qrart.json":return t(()=>import("./qrart.7efcbab8.js"),[]);case"./de/service.json":return t(()=>import("./service.be2b65e6.js"),[]);case"./de/site.json":return t(()=>import("./site.de131573.js"),[]);case"./de/suno.json":return t(()=>import("./suno.93c5c302.js"),[]);case"./de/usage.json":return t(()=>import("./usage.04f0f71e.js"),[]);case"./de/user.json":return t(()=>import("./user.8c2740d5.js"),[]);case"./el/api.json":return t(()=>import("./api.73a91481.js"),[]);case"./el/application.json":return t(()=>import("./application.3e1aa320.js"),[]);case"./el/chat.json":return t(()=>import("./chat.461512c7.js"),[]);case"./el/chatdoc.json":return t(()=>import("./chatdoc.38093bef.js"),[]);case"./el/common.json":return t(()=>import("./common.ae083051.js"),[]);case"./el/console.json":return t(()=>import("./console.f2b5361b.js"),[]);case"./el/credential.json":return t(()=>import("./credential.04598fa3.js"),[]);case"./el/distribution.json":return t(()=>import("./distribution.fec7067a.js"),[]);case"./el/flux.json":return t(()=>import("./flux.82000e74.js"),[]);case"./el/hailuo.json":return t(()=>import("./hailuo.b58fe7ac.js"),[]);case"./el/headshots.json":return t(()=>import("./headshots.56eae7e4.js"),[]);case"./el/index.json":return t(()=>import("./index.3dcc9f0d.js"),[]);case"./el/luma.json":return t(()=>import("./luma.90f454c9.js"),[]);case"./el/midjourney.json":return t(()=>import("./midjourney.a515e2c2.js"),[]);case"./el/order.json":return t(()=>import("./order.1c358a68.js"),[]);case"./el/pika.json":return t(()=>import("./pika.0af44318.js"),[]);case"./el/proxy.json":return t(()=>import("./proxy.77adcc26.js"),[]);case"./el/qrart.json":return t(()=>import("./qrart.a829fa5f.js"),[]);case"./el/service.json":return t(()=>import("./service.62f9c8e6.js"),[]);case"./el/site.json":return t(()=>import("./site.53ec062b.js"),[]);case"./el/suno.json":return t(()=>import("./suno.6e2d25cf.js"),[]);case"./el/usage.json":return t(()=>import("./usage.771626b6.js"),[]);case"./el/user.json":return t(()=>import("./user.97a64233.js"),[]);case"./en/api.json":return t(()=>import("./api.7dc36d47.js"),[]);case"./en/application.json":return t(()=>import("./application.0fac8022.js"),[]);case"./en/chat.json":return t(()=>import("./chat.816635a4.js"),[]);case"./en/chatdoc.json":return t(()=>import("./chatdoc.c99b8fc5.js"),[]);case"./en/common.json":return t(()=>import("./common.df148e38.js"),[]);case"./en/console.json":return t(()=>import("./console.7aefcf17.js"),[]);case"./en/credential.json":return t(()=>import("./credential.1193646d.js"),[]);case"./en/distribution.json":return t(()=>import("./distribution.40bd61b0.js"),[]);case"./en/flux.json":return t(()=>import("./flux.aa8f0ba0.js"),[]);case"./en/hailuo.json":return t(()=>import("./hailuo.603baf35.js"),[]);case"./en/headshots.json":return t(()=>import("./headshots.1a490a07.js"),[]);case"./en/index.json":return t(()=>import("./index.db83989d.js"),[]);case"./en/luma.json":return t(()=>import("./luma.68816b5a.js"),[]);case"./en/midjourney.json":return t(()=>import("./midjourney.a7d2fe5f.js"),[]);case"./en/order.json":return t(()=>import("./order.9ac50540.js"),[]);case"./en/pika.json":return t(()=>import("./pika.4d50c4b8.js"),[]);case"./en/proxy.json":return t(()=>import("./proxy.d6167c9e.js"),[]);case"./en/qrart.json":return t(()=>import("./qrart.8bd2b8b5.js"),[]);case"./en/service.json":return t(()=>import("./service.847fd288.js"),[]);case"./en/site.json":return t(()=>import("./site.9d5b0661.js"),[]);case"./en/suno.json":return t(()=>import("./suno.8554b243.js"),[]);case"./en/usage.json":return t(()=>import("./usage.b2867a7c.js"),[]);case"./en/user.json":return t(()=>import("./user.3529d32e.js"),[]);case"./es/api.json":return t(()=>import("./api.213cd308.js"),[]);case"./es/application.json":return t(()=>import("./application.538c1d62.js"),[]);case"./es/chat.json":return t(()=>import("./chat.c09e9754.js"),[]);case"./es/chatdoc.json":return t(()=>import("./chatdoc.be4f6cf9.js"),[]);case"./es/common.json":return t(()=>import("./common.3f10865b.js"),[]);case"./es/console.json":return t(()=>import("./console.a2466212.js"),[]);case"./es/credential.json":return t(()=>import("./credential.af11f12c.js"),[]);case"./es/distribution.json":return t(()=>import("./distribution.04b256bf.js"),[]);case"./es/flux.json":return t(()=>import("./flux.cc80368d.js"),[]);case"./es/hailuo.json":return t(()=>import("./hailuo.b75c4887.js"),[]);case"./es/headshots.json":return t(()=>import("./headshots.592a7a6d.js"),[]);case"./es/index.json":return t(()=>import("./index.f964e456.js"),[]);case"./es/luma.json":return t(()=>import("./luma.31f6450b.js"),[]);case"./es/midjourney.json":return t(()=>import("./midjourney.d5dccaef.js"),[]);case"./es/order.json":return t(()=>import("./order.a8b6322f.js"),[]);case"./es/pika.json":return t(()=>import("./pika.fabb00c1.js"),[]);case"./es/proxy.json":return t(()=>import("./proxy.eecf47a3.js"),[]);case"./es/qrart.json":return t(()=>import("./qrart.46ec60ea.js"),[]);case"./es/service.json":return t(()=>import("./service.99fe12fc.js"),[]);case"./es/site.json":return t(()=>import("./site.dca111ff.js"),[]);case"./es/suno.json":return t(()=>import("./suno.3e4d79c0.js"),[]);case"./es/usage.json":return t(()=>import("./usage.4880575b.js"),[]);case"./es/user.json":return t(()=>import("./user.167a4041.js"),[]);case"./fi/api.json":return t(()=>import("./api.0f034ae6.js"),[]);case"./fi/application.json":return t(()=>import("./application.07ad8042.js"),[]);case"./fi/chat.json":return t(()=>import("./chat.1a84dfe6.js"),[]);case"./fi/chatdoc.json":return t(()=>import("./chatdoc.eb31a140.js"),[]);case"./fi/common.json":return t(()=>import("./common.b423a5ed.js"),[]);case"./fi/console.json":return t(()=>import("./console.c66adbdf.js"),[]);case"./fi/credential.json":return t(()=>import("./credential.f872a714.js"),[]);case"./fi/distribution.json":return t(()=>import("./distribution.d131e1b9.js"),[]);case"./fi/flux.json":return t(()=>import("./flux.3712c862.js"),[]);case"./fi/hailuo.json":return t(()=>import("./hailuo.76df33b6.js"),[]);case"./fi/headshots.json":return t(()=>import("./headshots.c94c35eb.js"),[]);case"./fi/index.json":return t(()=>import("./index.37465f4e.js"),[]);case"./fi/luma.json":return t(()=>import("./luma.eb9a8302.js"),[]);case"./fi/midjourney.json":return t(()=>import("./midjourney.e167aae9.js"),[]);case"./fi/order.json":return t(()=>import("./order.d217f5ff.js"),[]);case"./fi/pika.json":return t(()=>import("./pika.dcb09dca.js"),[]);case"./fi/proxy.json":return t(()=>import("./proxy.133d11fd.js"),[]);case"./fi/qrart.json":return t(()=>import("./qrart.e05e900a.js"),[]);case"./fi/service.json":return t(()=>import("./service.2508f46e.js"),[]);case"./fi/site.json":return t(()=>import("./site.7e02b1ab.js"),[]);case"./fi/suno.json":return t(()=>import("./suno.17cc1852.js"),[]);case"./fi/usage.json":return t(()=>import("./usage.b0968cb7.js"),[]);case"./fi/user.json":return t(()=>import("./user.6ed11ce4.js"),[]);case"./fr/api.json":return t(()=>import("./api.3170d3cc.js"),[]);case"./fr/application.json":return t(()=>import("./application.be4edbdb.js"),[]);case"./fr/chat.json":return t(()=>import("./chat.5bdb1fa9.js"),[]);case"./fr/chatdoc.json":return t(()=>import("./chatdoc.82bb469d.js"),[]);case"./fr/common.json":return t(()=>import("./common.659f33c4.js"),[]);case"./fr/console.json":return t(()=>import("./console.ef2fcc3d.js"),[]);case"./fr/credential.json":return t(()=>import("./credential.d432557a.js"),[]);case"./fr/distribution.json":return t(()=>import("./distribution.632802b2.js"),[]);case"./fr/flux.json":return t(()=>import("./flux.d3981c83.js"),[]);case"./fr/hailuo.json":return t(()=>import("./hailuo.3894ef18.js"),[]);case"./fr/headshots.json":return t(()=>import("./headshots.b7f623fd.js"),[]);case"./fr/index.json":return t(()=>import("./index.1a15ffa9.js"),[]);case"./fr/luma.json":return t(()=>import("./luma.18e6d08f.js"),[]);case"./fr/midjourney.json":return t(()=>import("./midjourney.eafd626e.js"),[]);case"./fr/order.json":return t(()=>import("./order.278cc8ec.js"),[]);case"./fr/pika.json":return t(()=>import("./pika.8ef358ba.js"),[]);case"./fr/proxy.json":return t(()=>import("./proxy.31dfefac.js"),[]);case"./fr/qrart.json":return t(()=>import("./qrart.e9bb61b6.js"),[]);case"./fr/service.json":return t(()=>import("./service.ebc8e30e.js"),[]);case"./fr/site.json":return t(()=>import("./site.44c62f61.js"),[]);case"./fr/suno.json":return t(()=>import("./suno.ae23362d.js"),[]);case"./fr/usage.json":return t(()=>import("./usage.b40a1557.js"),[]);case"./fr/user.json":return t(()=>import("./user.637aff20.js"),[]);case"./it/api.json":return t(()=>import("./api.fc827dfb.js"),[]);case"./it/application.json":return t(()=>import("./application.74e344c5.js"),[]);case"./it/chat.json":return t(()=>import("./chat.2249a770.js"),[]);case"./it/chatdoc.json":return t(()=>import("./chatdoc.6f26a6c3.js"),[]);case"./it/common.json":return t(()=>import("./common.d5838598.js"),[]);case"./it/console.json":return t(()=>import("./console.5a8befab.js"),[]);case"./it/credential.json":return t(()=>import("./credential.f4a14d2a.js"),[]);case"./it/distribution.json":return t(()=>import("./distribution.2445a0a4.js"),[]);case"./it/flux.json":return t(()=>import("./flux.85acdc01.js"),[]);case"./it/hailuo.json":return t(()=>import("./hailuo.0a3d1340.js"),[]);case"./it/headshots.json":return t(()=>import("./headshots.1cbbfdec.js"),[]);case"./it/index.json":return t(()=>import("./index.c087482b.js"),[]);case"./it/luma.json":return t(()=>import("./luma.e7b2fcf0.js"),[]);case"./it/midjourney.json":return t(()=>import("./midjourney.b64f9044.js"),[]);case"./it/order.json":return t(()=>import("./order.3e7803d7.js"),[]);case"./it/pika.json":return t(()=>import("./pika.920207f1.js"),[]);case"./it/proxy.json":return t(()=>import("./proxy.329911e7.js"),[]);case"./it/qrart.json":return t(()=>import("./qrart.6ea7e5e1.js"),[]);case"./it/service.json":return t(()=>import("./service.6d83c187.js"),[]);case"./it/site.json":return t(()=>import("./site.2b75a139.js"),[]);case"./it/suno.json":return t(()=>import("./suno.50e562c7.js"),[]);case"./it/usage.json":return t(()=>import("./usage.fa1a36cb.js"),[]);case"./it/user.json":return t(()=>import("./user.280e7fdd.js"),[]);case"./ja/api.json":return t(()=>import("./api.40468439.js"),[]);case"./ja/application.json":return t(()=>import("./application.44ac4a6b.js"),[]);case"./ja/chat.json":return t(()=>import("./chat.c1313474.js"),[]);case"./ja/chatdoc.json":return t(()=>import("./chatdoc.6e05604b.js"),[]);case"./ja/common.json":return t(()=>import("./common.d5497470.js"),[]);case"./ja/console.json":return t(()=>import("./console.60252e24.js"),[]);case"./ja/credential.json":return t(()=>import("./credential.d4f63a8b.js"),[]);case"./ja/distribution.json":return t(()=>import("./distribution.4abbea61.js"),[]);case"./ja/flux.json":return t(()=>import("./flux.35de7d11.js"),[]);case"./ja/hailuo.json":return t(()=>import("./hailuo.d63e17d4.js"),[]);case"./ja/headshots.json":return t(()=>import("./headshots.ad352e10.js"),[]);case"./ja/index.json":return t(()=>import("./index.391197bf.js"),[]);case"./ja/luma.json":return t(()=>import("./luma.52656c21.js"),[]);case"./ja/midjourney.json":return t(()=>import("./midjourney.e4c1f3aa.js"),[]);case"./ja/order.json":return t(()=>import("./order.5b71322d.js"),[]);case"./ja/pika.json":return t(()=>import("./pika.08878d2e.js"),[]);case"./ja/proxy.json":return t(()=>import("./proxy.1b499543.js"),[]);case"./ja/qrart.json":return t(()=>import("./qrart.379ba2c5.js"),[]);case"./ja/service.json":return t(()=>import("./service.8cd05403.js"),[]);case"./ja/site.json":return t(()=>import("./site.7c4177ff.js"),[]);case"./ja/suno.json":return t(()=>import("./suno.293d1084.js"),[]);case"./ja/usage.json":return t(()=>import("./usage.3299fdd7.js"),[]);case"./ja/user.json":return t(()=>import("./user.073bb362.js"),[]);case"./ko/api.json":return t(()=>import("./api.1072ae11.js"),[]);case"./ko/application.json":return t(()=>import("./application.69f2d78e.js"),[]);case"./ko/chat.json":return t(()=>import("./chat.cba3af00.js"),[]);case"./ko/chatdoc.json":return t(()=>import("./chatdoc.4963b715.js"),[]);case"./ko/common.json":return t(()=>import("./common.86058aa9.js"),[]);case"./ko/console.json":return t(()=>import("./console.1ac9637c.js"),[]);case"./ko/credential.json":return t(()=>import("./credential.74124158.js"),[]);case"./ko/distribution.json":return t(()=>import("./distribution.f1e4ae1b.js"),[]);case"./ko/flux.json":return t(()=>import("./flux.704493e1.js"),[]);case"./ko/hailuo.json":return t(()=>import("./hailuo.b5941733.js"),[]);case"./ko/headshots.json":return t(()=>import("./headshots.ae3d4804.js"),[]);case"./ko/index.json":return t(()=>import("./index.815395c4.js"),[]);case"./ko/luma.json":return t(()=>import("./luma.0a2d1bc5.js"),[]);case"./ko/midjourney.json":return t(()=>import("./midjourney.e142e4ba.js"),[]);case"./ko/order.json":return t(()=>import("./order.add6d5c2.js"),[]);case"./ko/pika.json":return t(()=>import("./pika.f8fa49a8.js"),[]);case"./ko/proxy.json":return t(()=>import("./proxy.a3f16b8e.js"),[]);case"./ko/qrart.json":return t(()=>import("./qrart.135c26db.js"),[]);case"./ko/service.json":return t(()=>import("./service.d83bf89d.js"),[]);case"./ko/site.json":return t(()=>import("./site.9b960df6.js"),[]);case"./ko/suno.json":return t(()=>import("./suno.220b4f81.js"),[]);case"./ko/usage.json":return t(()=>import("./usage.3b165b46.js"),[]);case"./ko/user.json":return t(()=>import("./user.eee57bcd.js"),[]);case"./pl/api.json":return t(()=>import("./api.ae1c3f85.js"),[]);case"./pl/application.json":return t(()=>import("./application.1ffb2c4e.js"),[]);case"./pl/chat.json":return t(()=>import("./chat.0259ba8b.js"),[]);case"./pl/chatdoc.json":return t(()=>import("./chatdoc.cb5d28e1.js"),[]);case"./pl/common.json":return t(()=>import("./common.332fa235.js"),[]);case"./pl/console.json":return t(()=>import("./console.1bb43f37.js"),[]);case"./pl/credential.json":return t(()=>import("./credential.c70da515.js"),[]);case"./pl/distribution.json":return t(()=>import("./distribution.f28ca36e.js"),[]);case"./pl/flux.json":return t(()=>import("./flux.4a85f636.js"),[]);case"./pl/hailuo.json":return t(()=>import("./hailuo.aa84f90f.js"),[]);case"./pl/headshots.json":return t(()=>import("./headshots.a6439b75.js"),[]);case"./pl/index.json":return t(()=>import("./index.63b639eb.js"),[]);case"./pl/luma.json":return t(()=>import("./luma.e617a083.js"),[]);case"./pl/midjourney.json":return t(()=>import("./midjourney.bfa5a88f.js"),[]);case"./pl/order.json":return t(()=>import("./order.8d3d3f7d.js"),[]);case"./pl/pika.json":return t(()=>import("./pika.74af89ef.js"),[]);case"./pl/proxy.json":return t(()=>import("./proxy.27ed7c24.js"),[]);case"./pl/qrart.json":return t(()=>import("./qrart.ad7eceaa.js"),[]);case"./pl/service.json":return t(()=>import("./service.5ff88101.js"),[]);case"./pl/site.json":return t(()=>import("./site.2c4bc670.js"),[]);case"./pl/suno.json":return t(()=>import("./suno.9099124a.js"),[]);case"./pl/usage.json":return t(()=>import("./usage.4a0c5964.js"),[]);case"./pl/user.json":return t(()=>import("./user.f9c585bf.js"),[]);case"./pt/api.json":return t(()=>import("./api.729038af.js"),[]);case"./pt/application.json":return t(()=>import("./application.2e2dc69d.js"),[]);case"./pt/chat.json":return t(()=>import("./chat.5b3b6e73.js"),[]);case"./pt/chatdoc.json":return t(()=>import("./chatdoc.369240c0.js"),[]);case"./pt/common.json":return t(()=>import("./common.12de3aff.js"),[]);case"./pt/console.json":return t(()=>import("./console.d241b50f.js"),[]);case"./pt/credential.json":return t(()=>import("./credential.193339b9.js"),[]);case"./pt/distribution.json":return t(()=>import("./distribution.2dae690c.js"),[]);case"./pt/flux.json":return t(()=>import("./flux.3ba35e0e.js"),[]);case"./pt/hailuo.json":return t(()=>import("./hailuo.48169a81.js"),[]);case"./pt/headshots.json":return t(()=>import("./headshots.9f5c1eb1.js"),[]);case"./pt/index.json":return t(()=>import("./index.2f2bd2f0.js"),[]);case"./pt/luma.json":return t(()=>import("./luma.3d28b187.js"),[]);case"./pt/midjourney.json":return t(()=>import("./midjourney.2ccedef1.js"),[]);case"./pt/order.json":return t(()=>import("./order.29387b0c.js"),[]);case"./pt/pika.json":return t(()=>import("./pika.a6994bfe.js"),[]);case"./pt/proxy.json":return t(()=>import("./proxy.a908dbb4.js"),[]);case"./pt/qrart.json":return t(()=>import("./qrart.90fccf7d.js"),[]);case"./pt/service.json":return t(()=>import("./service.f4552453.js"),[]);case"./pt/site.json":return t(()=>import("./site.7a809230.js"),[]);case"./pt/suno.json":return t(()=>import("./suno.6dd48e26.js"),[]);case"./pt/usage.json":return t(()=>import("./usage.f2504542.js"),[]);case"./pt/user.json":return t(()=>import("./user.d80f3bba.js"),[]);case"./ru/api.json":return t(()=>import("./api.69c809ee.js"),[]);case"./ru/application.json":return t(()=>import("./application.cc12550d.js"),[]);case"./ru/chat.json":return t(()=>import("./chat.7f5f30fd.js"),[]);case"./ru/chatdoc.json":return t(()=>import("./chatdoc.26e34f62.js"),[]);case"./ru/common.json":return t(()=>import("./common.76e73cc9.js"),[]);case"./ru/console.json":return t(()=>import("./console.ae88ad84.js"),[]);case"./ru/credential.json":return t(()=>import("./credential.fdfc75af.js"),[]);case"./ru/distribution.json":return t(()=>import("./distribution.169757d7.js"),[]);case"./ru/flux.json":return t(()=>import("./flux.e9ef5810.js"),[]);case"./ru/hailuo.json":return t(()=>import("./hailuo.d4c2b8de.js"),[]);case"./ru/headshots.json":return t(()=>import("./headshots.6a51ab17.js"),[]);case"./ru/index.json":return t(()=>import("./index.f13c8e0d.js"),[]);case"./ru/luma.json":return t(()=>import("./luma.0e37bf0d.js"),[]);case"./ru/midjourney.json":return t(()=>import("./midjourney.189899ef.js"),[]);case"./ru/order.json":return t(()=>import("./order.524b686a.js"),[]);case"./ru/pika.json":return t(()=>import("./pika.17a67df4.js"),[]);case"./ru/proxy.json":return t(()=>import("./proxy.438efd9f.js"),[]);case"./ru/qrart.json":return t(()=>import("./qrart.17b19230.js"),[]);case"./ru/service.json":return t(()=>import("./service.49b63035.js"),[]);case"./ru/site.json":return t(()=>import("./site.96eba8d6.js"),[]);case"./ru/suno.json":return t(()=>import("./suno.7a01211e.js"),[]);case"./ru/usage.json":return t(()=>import("./usage.0cf4c0cc.js"),[]);case"./ru/user.json":return t(()=>import("./user.ec9b9e19.js"),[]);case"./sr/api.json":return t(()=>import("./api.cc772840.js"),[]);case"./sr/application.json":return t(()=>import("./application.746d8c67.js"),[]);case"./sr/chat.json":return t(()=>import("./chat.ceae5335.js"),[]);case"./sr/chatdoc.json":return t(()=>import("./chatdoc.5968870d.js"),[]);case"./sr/common.json":return t(()=>import("./common.bc10c6d4.js"),[]);case"./sr/console.json":return t(()=>import("./console.606e5a51.js"),[]);case"./sr/credential.json":return t(()=>import("./credential.5ea3ce28.js"),[]);case"./sr/distribution.json":return t(()=>import("./distribution.203b5891.js"),[]);case"./sr/flux.json":return t(()=>import("./flux.0ede9546.js"),[]);case"./sr/hailuo.json":return t(()=>import("./hailuo.7ca07086.js"),[]);case"./sr/headshots.json":return t(()=>import("./headshots.fd93138d.js"),[]);case"./sr/index.json":return t(()=>import("./index.93a0aa5d.js"),[]);case"./sr/luma.json":return t(()=>import("./luma.4a08cf42.js"),[]);case"./sr/midjourney.json":return t(()=>import("./midjourney.3a6a941b.js"),[]);case"./sr/order.json":return t(()=>import("./order.d2ad515f.js"),[]);case"./sr/pika.json":return t(()=>import("./pika.7224b0f1.js"),[]);case"./sr/proxy.json":return t(()=>import("./proxy.e01ba053.js"),[]);case"./sr/qrart.json":return t(()=>import("./qrart.3a0b978c.js"),[]);case"./sr/service.json":return t(()=>import("./service.26f94202.js"),[]);case"./sr/site.json":return t(()=>import("./site.3ebc262d.js"),[]);case"./sr/suno.json":return t(()=>import("./suno.187d3beb.js"),[]);case"./sr/usage.json":return t(()=>import("./usage.a438d3e1.js"),[]);case"./sr/user.json":return t(()=>import("./user.63e6d5b1.js"),[]);case"./sv/api.json":return t(()=>import("./api.49b52521.js"),[]);case"./sv/application.json":return t(()=>import("./application.e25e0a92.js"),[]);case"./sv/chat.json":return t(()=>import("./chat.1ed130b1.js"),[]);case"./sv/chatdoc.json":return t(()=>import("./chatdoc.8b1244bd.js"),[]);case"./sv/common.json":return t(()=>import("./common.2d0527ed.js"),[]);case"./sv/console.json":return t(()=>import("./console.0dd7da82.js"),[]);case"./sv/credential.json":return t(()=>import("./credential.f3da317c.js"),[]);case"./sv/distribution.json":return t(()=>import("./distribution.00e29fe2.js"),[]);case"./sv/flux.json":return t(()=>import("./flux.5f78b248.js"),[]);case"./sv/hailuo.json":return t(()=>import("./hailuo.db591cd1.js"),[]);case"./sv/headshots.json":return t(()=>import("./headshots.563e619d.js"),[]);case"./sv/index.json":return t(()=>import("./index.e0fe452a.js"),[]);case"./sv/luma.json":return t(()=>import("./luma.d078b9c2.js"),[]);case"./sv/midjourney.json":return t(()=>import("./midjourney.024feb94.js"),[]);case"./sv/order.json":return t(()=>import("./order.c70b9393.js"),[]);case"./sv/pika.json":return t(()=>import("./pika.f11cf01e.js"),[]);case"./sv/proxy.json":return t(()=>import("./proxy.45f75aef.js"),[]);case"./sv/qrart.json":return t(()=>import("./qrart.8b93c87b.js"),[]);case"./sv/service.json":return t(()=>import("./service.f87877d7.js"),[]);case"./sv/site.json":return t(()=>import("./site.53081110.js"),[]);case"./sv/suno.json":return t(()=>import("./suno.5eff8ce9.js"),[]);case"./sv/usage.json":return t(()=>import("./usage.fea8e259.js"),[]);case"./sv/user.json":return t(()=>import("./user.6107ec3a.js"),[]);case"./uk/api.json":return t(()=>import("./api.c8f12c88.js"),[]);case"./uk/application.json":return t(()=>import("./application.391cc2f4.js"),[]);case"./uk/chat.json":return t(()=>import("./chat.4eec9d13.js"),[]);case"./uk/chatdoc.json":return t(()=>import("./chatdoc.e6a3302d.js"),[]);case"./uk/common.json":return t(()=>import("./common.3366b53f.js"),[]);case"./uk/console.json":return t(()=>import("./console.1ef2a589.js"),[]);case"./uk/credential.json":return t(()=>import("./credential.57d6cf16.js"),[]);case"./uk/distribution.json":return t(()=>import("./distribution.e37416a9.js"),[]);case"./uk/flux.json":return t(()=>import("./flux.63ef3571.js"),[]);case"./uk/hailuo.json":return t(()=>import("./hailuo.6eaa7dc4.js"),[]);case"./uk/headshots.json":return t(()=>import("./headshots.880f2cb1.js"),[]);case"./uk/index.json":return t(()=>import("./index.86722d1a.js"),[]);case"./uk/luma.json":return t(()=>import("./luma.ce424894.js"),[]);case"./uk/midjourney.json":return t(()=>import("./midjourney.c6623005.js"),[]);case"./uk/order.json":return t(()=>import("./order.3ac01c79.js"),[]);case"./uk/pika.json":return t(()=>import("./pika.f451cd2a.js"),[]);case"./uk/proxy.json":return t(()=>import("./proxy.5342d506.js"),[]);case"./uk/qrart.json":return t(()=>import("./qrart.5c067cd7.js"),[]);case"./uk/service.json":return t(()=>import("./service.e6e75f15.js"),[]);case"./uk/site.json":return t(()=>import("./site.1884a74b.js"),[]);case"./uk/suno.json":return t(()=>import("./suno.77fa3e0f.js"),[]);case"./uk/usage.json":return t(()=>import("./usage.d3fdd7f1.js"),[]);case"./uk/user.json":return t(()=>import("./user.b9d90188.js"),[]);case"./zh-CN/api.json":return t(()=>import("./api.89ab9415.js"),[]);case"./zh-CN/application.json":return t(()=>import("./application.40ba0f44.js"),[]);case"./zh-CN/chat.json":return t(()=>import("./chat.17dac350.js"),[]);case"./zh-CN/chatdoc.json":return t(()=>import("./chatdoc.d6fa331d.js"),[]);case"./zh-CN/common.json":return t(()=>import("./common.bc6d3758.js"),[]);case"./zh-CN/console.json":return t(()=>import("./console.7460147d.js"),[]);case"./zh-CN/credential.json":return t(()=>import("./credential.338b5853.js"),[]);case"./zh-CN/distribution.json":return t(()=>import("./distribution.5edcdee0.js"),[]);case"./zh-CN/flux.json":return t(()=>import("./flux.4dc922cd.js"),[]);case"./zh-CN/hailuo.json":return t(()=>import("./hailuo.95a516b3.js"),[]);case"./zh-CN/headshots.json":return t(()=>import("./headshots.cf88ab1d.js"),[]);case"./zh-CN/index.json":return t(()=>import("./index.0988453d.js"),[]);case"./zh-CN/luma.json":return t(()=>import("./luma.3c482943.js"),[]);case"./zh-CN/midjourney.json":return t(()=>import("./midjourney.9f515f7b.js"),[]);case"./zh-CN/order.json":return t(()=>import("./order.e6baafc7.js"),[]);case"./zh-CN/pika.json":return t(()=>import("./pika.6b347451.js"),[]);case"./zh-CN/proxy.json":return t(()=>import("./proxy.424636df.js"),[]);case"./zh-CN/qrart.json":return t(()=>import("./qrart.07d6f069.js"),[]);case"./zh-CN/service.json":return t(()=>import("./service.825fb571.js"),[]);case"./zh-CN/site.json":return t(()=>import("./site.d923e8bd.js"),[]);case"./zh-CN/suno.json":return t(()=>import("./suno.3304fc53.js"),[]);case"./zh-CN/usage.json":return t(()=>import("./usage.f849bfdf.js"),[]);case"./zh-CN/user.json":return t(()=>import("./user.226c4ac3.js"),[]);case"./zh-TW/api.json":return t(()=>import("./api.0ed4a0ea.js"),[]);case"./zh-TW/application.json":return t(()=>import("./application.a4d96684.js"),[]);case"./zh-TW/chat.json":return t(()=>import("./chat.88a37127.js"),[]);case"./zh-TW/chatdoc.json":return t(()=>import("./chatdoc.a7a590fd.js"),[]);case"./zh-TW/common.json":return t(()=>import("./common.ef8768a3.js"),[]);case"./zh-TW/console.json":return t(()=>import("./console.b5e9a43c.js"),[]);case"./zh-TW/credential.json":return t(()=>import("./credential.276e510d.js"),[]);case"./zh-TW/distribution.json":return t(()=>import("./distribution.dc7ef2a5.js"),[]);case"./zh-TW/flux.json":return t(()=>import("./flux.08705b63.js"),[]);case"./zh-TW/hailuo.json":return t(()=>import("./hailuo.2cb82586.js"),[]);case"./zh-TW/headshots.json":return t(()=>import("./headshots.4c83a9b2.js"),[]);case"./zh-TW/index.json":return t(()=>import("./index.0542cd26.js"),[]);case"./zh-TW/luma.json":return t(()=>import("./luma.baf56472.js"),[]);case"./zh-TW/midjourney.json":return t(()=>import("./midjourney.50c422d9.js"),[]);case"./zh-TW/order.json":return t(()=>import("./order.fb26e6cb.js"),[]);case"./zh-TW/pika.json":return t(()=>import("./pika.91dfce8e.js"),[]);case"./zh-TW/proxy.json":return t(()=>import("./proxy.91a75f89.js"),[]);case"./zh-TW/qrart.json":return t(()=>import("./qrart.17a3b939.js"),[]);case"./zh-TW/service.json":return t(()=>import("./service.5820e29d.js"),[]);case"./zh-TW/site.json":return t(()=>import("./site.f7c684ed.js"),[]);case"./zh-TW/suno.json":return t(()=>import("./suno.36c79daf.js"),[]);case"./zh-TW/usage.json":return t(()=>import("./usage.88bceb01.js"),[]);case"./zh-TW/user.json":return t(()=>import("./user.04f9b8d7.js"),[]);default:return new Promise(function(e,o){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+s)))})}}const Z="en",Js=[{value:"en",label:"English"},{value:"de",label:"Deutsch"},{value:"pt",label:"Portugu\xEAs"},{value:"es",label:"Espa\xF1ol"},{value:"fr",label:"Fran\xE7ais"},{value:"zh-CN",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"zh-TW",label:"\u7E41\u9AD4\u4E2D\u6587"},{value:"it",label:"Italiano"},{value:"ko",label:"\uD55C\uAD6D\uC5B4"},{value:"ja",label:"\u65E5\u672C\u8A9E"},{value:"ru",label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},{value:"pl",label:"Polski"},{value:"fi",label:"Suomi"},{value:"sv",label:"Svenska"},{value:"el",label:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC"},{value:"uk",label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"},{value:"ar",label:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629"},{value:"sr",label:"\u0421\u0440\u043F\u0441\u043A\u0438"}],Zs=()=>Je({}),L=Zs(),eo=async(s,e)=>{try{return(await Ks(`./${e}/${s}.json`)).default}catch{return(await Xs(`./${Z}/${s}.json`)).default}},ie=s=>{var i,r;const e=(i=Intl.getCanonicalLocales(s||navigator.language))==null?void 0:i[0],o=Js.map(c=>c.value);if(e&&o.includes(e))return console.debug("canonicalLang",e),e;{const c=(r=e==null?void 0:e.split("-"))==null?void 0:r[0];if(c&&o.includes(c))return console.debug("canonicalLangPrefix",c),c}return Z},to=async(s,e)=>{const o=["index","api","application","qrart","luma","pika","flux","hailuo","headshots","suno","common","console","credential","distribution","order","proxy","service","usage","user","site","chat","midjourney","chatdoc"],i=o.map(n=>eo(n,e)),r=await Promise.all(i),c={};return o.forEach((n,a)=>{const u=r[a];for(const v in u)if(u.hasOwnProperty(v)){const A=u[v];c[`${n}.${v}`]=A.message}}),s.global.setLocaleMessage(e,c),_t()},so=async s=>{L.global.availableLocales.includes(s)||await to(L,s),L.mode==="legacy"?L.global.locale=s:L.global.locale.value=s,O.defaults.headers&&(O.defaults.headers["Accept-Language"]=s);const e=document.querySelector("html");e&&e.setAttribute("lang",s)};L.global.t;const Gu="assistant",Qu="user",oo="gpt-3.5",ro="gpt-3.5-browsing",no="gpt-4",io="gpt-4-browsing",ao="gpt-4-vision",_o="gpt-4-all",co="gpt-4o",uo="o1",po="o1-mini",Eo="o3-mini",lo="deepseek-chat",mo="deepseek-reasoner",V="https://cdn.acedata.cloud/7dljuv.png",ee="https://cdn.acedata.cloud/bc71ae.png",pe="b1fbcc32-e218-4253-9dc3-4fe600a1bfb9",Ee={name:oo,icon:V,getDisplayName:()=>L.global.t("chat.model.35Standard"),getDescription:()=>L.global.t("chat.model.35StandardDescription")},le={name:ro,icon:V,getDisplayName:()=>L.global.t("chat.model.35Browsing"),getDescription:()=>L.global.t("chat.model.35BrowsingDescription")},me={name:no,icon:V,getDisplayName:()=>L.global.t("chat.model.4Standard"),getDescription:()=>L.global.t("chat.model.4StandardDescription")},ve={name:io,icon:V,getDisplayName:()=>L.global.t("chat.model.4Browsing"),getDescription:()=>L.global.t("chat.model.4BrowsingDescription")},Ae={name:ao,icon:V,getDisplayName:()=>L.global.t("chat.model.4Vision"),getDescription:()=>L.global.t("chat.model.4VisionDescription")},Te={name:_o,icon:V,getDisplayName:()=>L.global.t("chat.model.4All"),getDescription:()=>L.global.t("chat.model.4AllDescription")},te={name:co,icon:V,getDisplayName:()=>L.global.t("chat.model.4O"),getDescription:()=>L.global.t("chat.model.4ODescription")},Ie={name:lo,icon:ee,getDisplayName:()=>L.global.t("chat.model.deepseekChat"),getDescription:()=>L.global.t("chat.model.deepseekChatDescription")},Re={name:mo,icon:ee,getDisplayName:()=>L.global.t("chat.model.deepseekReasoner"),getDescription:()=>L.global.t("chat.model.deepseekReasonerDescription")},Oe={name:uo,icon:V,getDisplayName:()=>L.global.t("chat.model.o1"),getDescription:()=>L.global.t("chat.model.o1Description")},De={name:po,icon:V,getDisplayName:()=>L.global.t("chat.model.o1Mini"),getDescription:()=>L.global.t("chat.model.o1MiniDescription")},Le={name:Eo,icon:V,getDisplayName:()=>L.global.t("chat.model.o3Mini"),getDescription:()=>L.global.t("chat.model.o3MiniDescription")},vo={icon:V,name:"chatgpt",getDisplayName:()=>L.global.t("chat.modelGroup.chatgpt"),getDescription:()=>L.global.t("chat.modelGroup.chatgptDescription"),models:[Ee,le,me,ve,Ae,Te,te,Oe,De,Le]},Yu={icon:ee,name:"deepseek",getDisplayName:()=>L.global.t("chat.modelGroup.deepseek"),getDescription:()=>L.global.t("chat.modelGroup.deepseekDescription"),models:[Ie,Re]},Xu=[Ee,le,me,ve,Ae,Te,te,Oe,De,Le,Ie,Re],Pe="5d732942-4d44-48be-958e-dd8474d8aa8d",Ao="fast",je="d87e5e99-b797-4ade-9e73-b896896b0461",Ku="1:1",Ju=1,Zu=100,ed=0,td=Ao,sd="1",ge="38ecf158-36f2-42f2-8e7f-6786cdfc2452",od=2,rd=20,nd="",id="text",ad="1:1",_d=!1,cd=5,ud="center",dd="square",pd="square",Ed="square",ld=0,md="H",vd=0,he="dff45a0d-2858-4936-8e2b-3d49c52aff11",Ad=!0,Td=!1,Id=!1,Ve="c7d407fa-0f87-4031-abbb-4f0716ff51ad",Rd="2.0",Od="creative",Dd=!1,ke="e8ebe055-429a-48e9-9d34-5089eae5fd89",Ld="flux",fe="5eaa73b7-b9a7-4a17-afb3-f658fd5495b0",Pd="minimax-t2v",ye="3b2ec5fb-cfcb-49f0-9393-6b8617a2d8c4",be="f2b646d8-3cfd-46ef-969a-1ea9eebde329",jd="chirp-v3-5",we={"zh-CN":"cny","zh-TW":"cny",en:"usd",de:"eur",pt:"eur",es:"eur",fr:"eur",it:"eur",ko:"krw",ja:"jpy",ru:"rub",pl:"pln",fi:"eur",sv:"sek",el:"eur",uk:"uah",ar:"sar",sr:"rsd"},gd={cny:"\uFFE5",usd:"$",eur:"\u20AC",jpy:"\xA5",krw:"\u20A9",gbp:"\xA3",rub:"\u20BD",pln:"z\u0142",sek:"kr",uah:"\u20B4",sar:"\uFDFC",rsd:"din"},To=()=>({}).VITE_BASE_URL_PLATFORM?{}.VITE_BASE_URL_PLATFORM:ue,Io=()=>({}).VITE_BASE_URL_HUB?{}.VITE_BASE_URL_HUB:window.location.origin||J,W=()=>({}).VITE_BASE_URL_AUTH?{}.VITE_BASE_URL_AUTH:de;var Ro="/assets/favicon.4bb7e3ef.ico";const g=O.create({baseURL:`${To()}/api/v1`,headers:{"Content-type":"application/json",Accept:"application/json"},paramsSerializer(s){return Ze.stringify(s,{arrayFormat:"repeat"})}});g.interceptors.request.use(s=>{var c,n;const e=(c=P.getters.token)==null?void 0:c.access,o=(n=P.getters.user)==null?void 0:n.id,i=P.getters.fingerprint,r=y("LOCALE");return console.debug("userId",o),console.debug("fingerprint",i),e&&(s.headers.Authorization=`Bearer ${e}`),r&&(s.headers["accept-language"]=r),i&&(s.headers["x-fingerprint"]=i),o&&(s.headers["x-user-id"]=o),s});g.interceptors.response.use(s=>s,s=>{var e;return((e=s==null?void 0:s.response)==null?void 0:e.status)===401&&P.dispatch("login"),Promise.reject(s)});class Oo{constructor(){N(this,"key","applications")}async getAll(e){return await g.get(`/${this.key}/`,{params:e})}async get(e){return await g.get(`/${this.key}/${e}`)}async create(e){return await g.post(`/${this.key}/`,e)}async update(e,o){return await g.put(`/${this.key}/${e}`,o)}async delete(e){return await g.delete(`/${this.key}/${e}`)}}const k=new Oo;class Do{async getMe(){return g.get("/users/me")}async getInvitees(e){return g.get("/users/me/invitees",{params:e})}async updateMe(e){return g.put("/users/me",e)}async getVerify(){return g.get("/users/verify")}async updateVerify(e){return g.put("/users/verify",e)}}const Lo=new Do;var E=(s=>(s.Request="Request",s.Success="Success",s.Error="Error",s.None="None",s))(E||{}),h=(s=>(s.USAGE="Usage",s.PERIOD="Period",s))(h||{}),Po=(s=>(s.PENDING="pending",s.ANSWERING="answering",s.FINISHED="finished",s.FAILED="failed",s))(Po||{}),B=(s=>(s.CHAT="chat",s.RETRIEVE="retrieve",s.UPDATE="update",s.DELETE="delete",s.RETRIEVE_BATCH="retrieve_batch",s))(B||{});class jo{async chatConversation(e,o){return new Promise(async(i,r)=>{try{const c=await fetch(`${D}/aichat/conversations`,{method:"POST",headers:{authorization:`Bearer ${o.token}`,"Content-Type":"application/json",Accept:"text/event-stream"},signal:o.signal,body:JSON.stringify(e)});if(!c.body)throw new Error("ReadableStream not supported.");const n=c.body.getReader(),a=new TextDecoder;let u="",v,A="";for(;;){const{done:T,value:l}=await n.read();if(T)break;A+=a.decode(l,{stream:!0});const I=A.split(`
|
|
2
2
|
`);A=I.pop()||"";for(const R of I){const _=R.trim();if(!!_&&_.startsWith("data: ")){const p=_.substring(6).trim();if(p==="[DONE]"){i({answer:u,delta_answer:""});return}try{const w=JSON.parse(p);w.delta_answer&&(u+=w.delta_answer),w.id&&(v=w.id),o!=null&&o.stream&&o.stream({answer:u,delta_answer:w.delta_answer||"",id:v})}catch(w){console.error("JSON parse error:",w)}}}}i({answer:u,delta_answer:""})}catch(c){console.error("Error:",c),r(c)}})}async getConversations(e,o){return await O.post("/aichat/conversations",d(d(d({action:B.RETRIEVE_BATCH},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),{headers:{"content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async deleteConversation(e,o){return await O.post("/aichat/conversations",{action:B.DELETE,id:e},{headers:{"content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async updateConversation(e,o){return await O.post("/aichat/conversations",d({action:B.UPDATE},e),{headers:{"content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D,signal:o.signal})}}const go=new jo;class ho{async task(e,o){return await O.post("/midjourney/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/midjourney/tasks",d(d(d(d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),e.type?{type:e.type}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),e.createdAtMax!==void 0?{created_at_max:e.createdAtMax}:{}),e.createdAtMin!==void 0?{created_at_min:e.createdAtMin}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async imagine(e,o){return await O.post("/midjourney/imagine",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:D})}}const Vo=new ho;class ko{async createRepository(e,o){return await O.post("/chatdoc/repositories",{action:re,name:e.name,description:e.description},{headers:{authorization:`Bearer ${o.token}`,accept:"application/json","content-type":"application/json","x-record-exempt":"true"},baseURL:D})}async deleteRepository(e,o){return await O.post("/chatdoc/repositories",{action:Q,id:e},{headers:{authorization:`Bearer ${o.token}`,accept:"application/json","content-type":"application/json","x-record-exempt":"true"},baseURL:D})}async getRepository(e,o){return await O.post("/chatdoc/repositories",{action:Y,id:e},{headers:{authorization:`Bearer ${o.token}`,accept:"application/json","content-type":"application/json","x-record-exempt":"true"},baseURL:D})}async getAllRepositories(e){return await O.post("/chatdoc/repositories",{action:M},{headers:{authorization:`Bearer ${e.token}`,accept:"application/json","content-type":"application/json","x-record-exempt":"true"},baseURL:D})}async getAllDocuments(e,o){return await O.post("/chatdoc/documents",{action:M,repository_id:e},{headers:{authorization:`Bearer ${o.token}`,accept:"application/json","content-type":"application/json","x-record-exempt":"true"},baseURL:D})}async getAllConversations(e,o){return await O.post("/chatdoc/conversations",{action:M,repository_id:e},{headers:{authorization:`Bearer ${o.token}`,accept:"application/json","content-type":"application/json","x-record-exempt":"true"},baseURL:D})}async getRepositories(e){return await O.post("/chatdoc/repositories",d(d({action:M},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),{headers:{accept:"application/json","content-type":"application/json","x-record-exempt":"true"},baseURL:D})}async createDocument(e,o){return await O.post("/chatdoc/documents",{action:re,repository_id:e.repositoryId,file_url:e.fileUrl,file_name:e.fileName},{headers:{authorization:`Bearer ${o.token}`,accept:"application/json","content-type":"application/json"},baseURL:D})}async retrieveDocument(e,o){return await O.post("/chatdoc/documents",{action:Y,id:e},{headers:{authorization:`Bearer ${o.token}`,accept:"application/json","content-type":"application/json","x-record-exempt":"true"},baseURL:D})}async retrieveConversation(e,o){return await O.post("/chatdoc/conversations",{action:Y,id:e},{headers:{authorization:`Bearer ${o.token}`,accept:"application/json","content-type":"application/json","x-record-exempt":"true"},baseURL:D})}async deleteDocument(e,o){return await O.post("/chatdoc/documents",{action:Q,id:e},{headers:{authorization:`Bearer ${o.token}`,accept:"application/json","content-type":"application/json","x-record-exempt":"true"},baseURL:D})}async updateConversation(e){return await O.post("/chatdoc/conversations",{action:Gs,id:e.id,messages:e.messages},{headers:{accept:"application/json","content-type":"application/json","x-record-exempt":"true"},baseURL:D})}async deleteConversation(e){return await O.post("/chatdoc/conversations",{action:Q,id:e},{headers:{accept:"application/json","content-type":"application/json","x-record-exempt":"true"},baseURL:D})}async chatConversation(e,o){return await O.post("/chatdoc/conversations",{repository_id:e.repositoryId,question:e.question,id:e.id,stateful:!0},{headers:{authorization:`Bearer ${o.token}`,accept:"application/x-ndjson","content-type":"application/json"},baseURL:D,responseType:"stream",onDownloadProgress:({event:i})=>{const c=i.target.response.split(`\r
|
|
3
|
-
`).filter(a=>!!a),n=c[c.length-1];if(n){const a=JSON.parse(n);o!=null&&o.stream&&(o==null||o.stream(a))}}})}}const b=new ko;class fo{async token(e){return g.post("/token",e,{baseURL:`${W()}/oauth2/v1`})}}const yo=new fo;class bo{constructor(){N(this,"key","services")}async getAll(e){return await g.get(`/${this.key}/`,{params:e})}async get(e){return await g.get(`/${this.key}/${e}`)}async create(e){return await g.post(`/${this.key}/`,e)}async update(e,o){return await g.put(`/${this.key}/${e}`,o)}async delete(e){return await g.delete(`/${this.key}/${e}`)}}const f=new bo;class wo{async task(e,o){return await O.post("/qrart/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/qrart/tasks",d(d(d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),e.createdAtMax!==void 0?{created_at_max:e.createdAtMax}:{}),e.createdAtMin!==void 0?{created_at_min:e.createdAtMin}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async generate(e,o){return await O.post("/qrart/generate",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:D})}}const $o=new wo;class Co{async task(e,o){return await O.post("/luma/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/luma/tasks",d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async generate(e,o){return await O.post("/luma/videos",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:D})}}const xo=new Co;class So{async task(e,o){return await O.post("/pika/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/pika/tasks",d(d(d(d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),e.type?{type:e.type}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),e.createdAtMax!==void 0?{created_at_max:e.createdAtMax}:{}),e.createdAtMin!==void 0?{created_at_min:e.createdAtMin}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async generate(e,o){return await O.post("/pika/videos",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:D})}}const Uo=new So;class No{async task(e,o){return await O.post("/flux/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/flux/tasks",d(d(d(d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),e.type?{type:e.type}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),e.createdAtMax!==void 0?{created_at_max:e.createdAtMax}:{}),e.createdAtMin!==void 0?{created_at_min:e.createdAtMin}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async generate(e,o){return await O.post("/flux/images",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:D})}}const zo=new No;class Mo{async task(e,o){return await O.post("/hailuo/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/hailuo/tasks",d(d(d(d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),e.type?{type:e.type}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),e.createdAtMax!==void 0?{created_at_max:e.createdAtMax}:{}),e.createdAtMin!==void 0?{created_at_min:e.createdAtMin}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async generate(e,o){return await O.post("/hailuo/videos",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:D})}}const qo=new Mo;class Bo{async task(e,o){return await O.post("/headshots/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/headshots/tasks",d(d(d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),e.createdAtMax!==void 0?{created_at_max:e.createdAtMax}:{}),e.createdAtMin!==void 0?{created_at_min:e.createdAtMin}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async generate(e,o){return await O.post("/headshots/generate",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:D})}}const Ho=new Bo;class Fo{constructor(){N(this,"key","sites")}async initialize(e){return await g.post(`/${this.key}/initialize/`,e)}async getAll(e){return await g.get(`/${this.key}/`,{params:e})}async get(e){return await g.get(`/${this.key}/${e}`)}async create(e){return await g.post(`/${this.key}/`,e)}async update(e,o){return await g.put(`/${this.key}/${e}`,o)}}const $e=new Fo;class Wo{async task(e,o){return await O.post("/suno/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/suno/tasks",d(d(d(d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.userId?{user_id:e.userId}:{}),e.type?{type:e.type}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),e.createdAtMax!==void 0?{created_at_max:e.createdAtMax}:{}),e.createdAtMin!==void 0?{created_at_min:e.createdAtMin}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async audio(e,o){return await O.post("/suno/audios",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json"},baseURL:D})}async lyric(e,o){return await O.post("/suno/lyrics",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json"},baseURL:D})}async upload(e,o){return await O.post("/suno/upload",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json"},baseURL:D})}}const Go=new Wo;class Qo{async rate(e){return g.post("/exchange-rate",e)}}const Yo=new Qo;function $(s,e){const o=new Map;return[...s,...e].forEach(i=>{o.set(i.id,i)}),Array.from(o.values()).sort((i,r)=>new Date(i.created_at)-new Date(r.created_at))}const Xo=({commit:s})=>{s("resetAll")},Ce=async({commit:s},e)=>{console.debug(Ce,"set credential",e),s("setCredential",e)},Ko=({commit:s},e)=>{s("setConfig",e)},Jo=({commit:s},e)=>{s("setMode",e)},Zo=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},er=({commit:s},e)=>{s("setApplication",e)},tr=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for midjourney"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:je}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),sr=({commit:s},e)=>{s("setTasks",e)},or=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for midjourney"),e.status.getService=E.Request,f.get(je).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),rr=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r,n,c);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");Vo.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n,type:"imagine"},{token:A}).then(l=>{var p;console.debug("get imagine tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var nr={setService:Zo,getService:or,resetAll:Xo,setCredential:Ce,setConfig:Ko,setMode:Jo,setApplication:er,getApplications:tr,setTasks:sr,getTasks:rr};const ir=s=>{s.application=void 0,s.applications=void 0,s.config={},s.tasks={items:void 0,total:void 0}},ar=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},_r=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},cr=(s,e)=>{s.service=e},ur=(s,e)=>{s.credential=e},dr=(s,e)=>{s.application=e},pr=(s,e)=>{s.applications=e},Er=(s,e)=>{s.config=e},lr=(s,e)=>{s.tasks=e};var mr={setApplication:dr,setApplications:pr,setConfig:Er,setTasksItems:ar,setTasksTotal:_r,setCredential:ur,setService:cr,setTasks:lr,resetAll:ir},xe=()=>({service:void 0,application:void 0,applications:void 0,tasks:{items:void 0,total:void 0},credential:void 0,config:{},status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const vr={namespaced:!0,state:xe,mutations:mr,actions:nr};var Se=()=>({model:te,modelGroup:vo,applications:void 0,application:void 0,conversations:void 0,service:void 0,credential:void 0,status:{getService:E.None,getApplications:E.None,getConversations:E.None}});const Ar=({commit:s})=>{s("resetAll")},Tr=async({commit:s},e)=>{s("setModel",e)},Ir=async({commit:s},e)=>{s("setModelGroup",e)},Rr=async({commit:s},e)=>{console.debug("set application",e),s("setApplication",e)},Or=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},Dr=async({commit:s},e)=>{console.debug("set conversations",e),s("setConversations",e)},Lr=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},Pr=async({commit:s,state:e},o)=>{console.debug("set conversation",o);const i=e.conversations||[],r=i==null?void 0:i.findIndex(c=>c.id===o.id);r>-1?i[r]=o:i==null||i.unshift(o),s("setConversations",i),console.debug("set conversation success",i)},jr=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for chat"),e.status.getService=E.Request,f.get(pe).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),gr=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for chat"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:pe}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),hr=async({commit:s,state:e,rootState:o})=>new Promise((i,r)=>{var a;e.status.getConversations=E.Request;const c=e.credential;console.debug("credential",c);const n=c==null?void 0:c.token;if(!n)return e.status.getConversations=E.Error,r(new Error("Token not found"));go.getConversations({userId:(a=o.user)==null?void 0:a.id},{token:n}).then(u=>{var A,T;console.debug("get conversations success",(T=(A=u.data)==null?void 0:A.items)==null?void 0:T.length),s("setConversations",u.data.items);const v=u.data.items;i(v)}).catch(u=>{e.status.getConversations=E.Error,s("setConversations",[]),r(u)})});var Vr={resetAll:Ar,setModel:Tr,setModelGroup:Ir,getService:jr,setService:Or,setCredential:Lr,setApplication:Rr,getApplications:gr,setConversation:Pr,setConversations:Dr,getConversations:hr};const kr=s=>{s.application=void 0,s.conversations=void 0,s.credential=void 0,s.service=void 0},fr=(s,e)=>{s.model=e},yr=(s,e)=>{s.modelGroup=e},br=(s,e)=>{s.credential=e},wr=(s,e)=>{s.application=e},$r=(s,e)=>{s.applications=e},Cr=(s,e)=>{s.service=e},xr=(s,e)=>{s.conversations=e};var Sr={setModel:fr,setModelGroup:yr,setService:Cr,setCredential:br,setConversations:xr,setApplication:wr,setApplications:$r,resetAll:kr};const Ur={namespaced:!0,state:Se,mutations:Sr,actions:Vr},Nr=async({commit:s},e)=>{s("setApplication",e)},zr=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},Mr=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},qr=async({commit:s},e)=>{s("setRepository",e)},Br=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for chatdoc"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:Pe}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),Hr=({commit:s})=>{s("resetAll")},Fr=async({commit:s,state:e})=>{console.debug("start to get repositories");const o=e.credential;console.log("credential",o);const i=o==null?void 0:o.token;if(!i)return s("setRepositories",void 0),Promise.reject("no token");const r=(await b.getAllRepositories({token:i})).data.items;return console.debug("get repositories success",r),s("setRepositories",r),r},Wr=async({state:s},e)=>{console.debug("start to delete repository");const o=s.credential;console.log("credential",o);const i=o==null?void 0:o.token;if(!i)return Promise.reject("no token");const r=(await b.deleteRepository(e.id,{token:i})).data;return console.debug("delete repository success",r),r},Gr=async({state:s},e)=>{console.debug("start to delete document");const o=s.credential;console.log("credential",o);const i=o==null?void 0:o.token;if(!i)return Promise.reject("no token");const r=(await b.deleteDocument(e.id,{token:i})).data;return console.debug("delete document success",r),r},Qr=async({commit:s,state:e})=>new Promise(async(o,i)=>{console.debug("start to get service for chatdoc"),e.status.getService=E.Request,f.get(Pe).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Yr=async({state:s},e)=>{console.debug("start to create repository");const o=s.credential;console.log("credential",o);const i=o==null?void 0:o.token;if(!i)return Promise.reject("no token");const r=(await b.createRepository(e,{token:i})).data;return console.debug("create repository success",r),r},Xr=async({state:s},e)=>{console.debug("start to create document");const o=s.credential;console.log("credential",o);const i=o==null?void 0:o.token;if(!i)return Promise.reject("no token");const r=(await b.createDocument(e,{token:i})).data;return console.debug("create document success",r),r},Kr=async({commit:s,state:e},o)=>{console.debug("set conversation",o);const i=e.repositories.find(n=>n.id===o.repositoryId),r=i==null?void 0:i.conversations;if(!r)return Promise.reject("no conversations");const c=r==null?void 0:r.findIndex(n=>n.id===o.id);c>-1&&(r[c].messages=o.messages),console.debug("set conversation success",r)},Jr=async({commit:s,state:e},o)=>{console.debug("start to get documents");const i=e.credential;console.log("credential for getDocuments",i);const r=i==null?void 0:i.token;if(!r)return s("setRepository",{id:o.repositoryId,documents:[]}),[];const c=(await b.getAllDocuments(o.repositoryId,{token:r})).data.items;return console.debug("get documents success",c),s("setRepository",{id:o.repositoryId,documents:c}),c},Zr=async({commit:s,state:e},o)=>{console.debug("start to get conversations");const i=e.credential;console.log("credential for getConversations",i);const r=i==null?void 0:i.token;if(!r)return s("setRepository",{id:o.repositoryId,conversations:[]}),[];const c=(await b.getAllConversations(o.repositoryId,{token:r})).data.items;return console.debug("get conversations success",c),s("setRepository",{id:o.repositoryId,conversations:c}),c},en=async({commit:s,state:e},o)=>{console.debug("start to get repository");const i=e.credential,r=i==null?void 0:i.token;if(!r)return s("setRepository",{id:o.id}),Promise.reject("no token");const c=(await b.getRepository(o.id,{token:r})).data;return console.debug("get repository success",c),s("setRepository",c),c};var tn={setService:Mr,setConversation:Kr,getService:Qr,createRepository:Yr,setApplication:Nr,getApplications:Br,getRepositories:Fr,setCredential:zr,deleteRepository:Wr,getRepository:en,setRepository:qr,getConversations:Zr,getDocuments:Jr,resetAll:Hr,createDocument:Xr,deleteDocument:Gr};const sn=s=>{s.application=void 0,s.repositories=[]},on=(s,e)=>{s.service=e},rn=(s,e)=>{s.application=e},nn=(s,e)=>{s.applications=e},an=(s,e)=>{const o=s.repositories;if(o&&e){e.forEach(i=>{const r=o==null?void 0:o.findIndex(c=>c.id===i.id);r!==-1&&(e[r]=d(d({},o[r]),i))}),s.repositories=e;return}else s.repositories=e},_n=(s,e)=>{s.credential=e},cn=(s,e)=>{console.debug("mutation",e);const o=e,i=s.repositories;if(!i){console.debug("no repositories");return}const r=i.findIndex(c=>c.id===o.id);if(r===-1){console.debug("no repository found");return}console.debug("set repository for index",r,o),i[r]=d(d({},i[r]),o)};var un={setService:on,setApplication:rn,setApplications:nn,setRepositories:an,setRepository:cn,setCredential:_n,resetAll:sn},Ue=()=>({service:void 0,application:void 0,applications:void 0,repositories:void 0,credential:void 0,status:{getService:E.None,getApplications:E.None,getRepositories:E.None}});const dn={namespaced:!0,state:Ue,mutations:un,actions:tn},pn=({commit:s})=>{s("resetAll")},En=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},ln=({commit:s},e)=>{s("setConfig",e)},mn=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},vn=({commit:s},e)=>{s("setApplication",e)},An=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for qrart"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:ge}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),Tn=({commit:s},e)=>{s("setTasks",e)},In=({commit:s},e)=>{s("setTasksItems",e)},Rn=({commit:s},e)=>{s("setTasksTotal",e)},On=({commit:s},e)=>{s("setTasksActive",e)},Dn=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for qrart"),e.status.getService=E.Request,f.get(ge).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Ln=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");$o.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n},{token:A}).then(l=>{var p;console.debug("get qrart tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var Pn={setService:mn,getService:Dn,resetAll:pn,setCredential:En,setConfig:ln,setApplication:vn,getApplications:An,setTasks:Tn,setTasksItems:In,setTasksTotal:Rn,setTasksActive:On,getTasks:Ln};const jn=s=>{s.service=void 0,s.application=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},gn=(s,e)=>{s.service=e},hn=(s,e)=>{s.applications=e},Vn=(s,e)=>{s.credential=e},kn=(s,e)=>{s.application=e},fn=(s,e)=>{s.config=e},yn=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},bn=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},wn=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},$n=(s,e)=>{s.tasks=e};var Cn={setTasks:$n,setApplication:kn,setApplications:hn,setConfig:fn,setCredential:Vn,setService:gn,setTasksActive:wn,setTasksItems:yn,setTasksTotal:bn,resetAll:jn},Ne=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const xn={namespaced:!0,state:Ne,mutations:Cn,actions:Pn},Sn=({commit:s})=>{s("resetAll")},Un=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},Nn=({commit:s},e)=>{s("setConfig",e)},zn=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},Mn=({commit:s},e)=>{s("setApplication",e)},qn=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for luma"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:he}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),Bn=({commit:s},e)=>{s("setTasks",e)},Hn=({commit:s},e)=>{s("setTasksItems",e)},Fn=({commit:s},e)=>{s("setTasksTotal",e)},Wn=({commit:s},e)=>{s("setTasksActive",e)},Gn=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for luma"),e.status.getService=E.Request,f.get(he).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Qn=async({commit:s,state:e,rootState:o},{offset:i,limit:r})=>new Promise((c,n)=>{var v;console.debug("start to get tasks",i,r);const a=e.credential,u=a==null?void 0:a.token;if(!u)return n("no token");xo.tasks({userId:(v=o==null?void 0:o.user)==null?void 0:v.id},{token:u}).then(A=>{console.debug("get imagine tasks success",A.data.items),s("setTasksItems",A.data.items),s("setTasksTotal",A.data.count),c(A.data.items)}).catch(A=>n(A))});var Yn={setService:zn,getService:Gn,resetAll:Sn,setCredential:Un,setConfig:Nn,setApplication:Mn,getApplications:qn,setTasks:Bn,setTasksItems:Hn,setTasksTotal:Fn,setTasksActive:Wn,getTasks:Qn};const Xn=s=>{s.service=void 0,s.application=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},Kn=(s,e)=>{s.service=e},Jn=(s,e)=>{s.credential=e},Zn=(s,e)=>{s.application=e},ei=(s,e)=>{s.applications=e},ti=(s,e)=>{s.config=e},si=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},oi=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},ri=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},ni=(s,e)=>{s.tasks=e};var ii={setTasks:ni,setApplication:Zn,setApplications:ei,setConfig:ti,setCredential:Jn,setService:Kn,setTasksActive:ri,setTasksItems:si,setTasksTotal:oi,resetAll:Xn},ze=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const ai={namespaced:!0,state:ze,mutations:ii,actions:Yn},_i=({commit:s})=>{s("resetAll")},ci=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},ui=({commit:s},e)=>{s("setConfig",e)},di=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},pi=({commit:s},e)=>{s("setApplication",e)},Ei=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for pika"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:Ve}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),li=({commit:s},e)=>{s("setTasks",e)},mi=({commit:s},e)=>{s("setTasksItems",e)},vi=({commit:s},e)=>{s("setTasksTotal",e)},Ai=({commit:s},e)=>{s("setTasksActive",e)},Ti=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for pika"),e.status.getService=E.Request,f.get(Ve).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Ii=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");Uo.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n,type:"videos"},{token:A}).then(l=>{var p;console.debug("get videos tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var Ri={setService:di,getService:Ti,resetAll:_i,setCredential:ci,setConfig:ui,setApplication:pi,getApplications:Ei,setTasks:li,setTasksItems:mi,setTasksTotal:vi,setTasksActive:Ai,getTasks:Ii};const Oi=s=>{s.service=void 0,s.application=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},Di=(s,e)=>{s.service=e},Li=(s,e)=>{s.credential=e},Pi=(s,e)=>{s.application=e},ji=(s,e)=>{s.applications=e},gi=(s,e)=>{s.config=e},hi=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},Vi=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},ki=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},fi=(s,e)=>{s.tasks=e};var yi={setTasks:fi,setApplication:Pi,setApplications:ji,setConfig:gi,setCredential:Li,setService:Di,setTasksActive:ki,setTasksItems:hi,setTasksTotal:Vi,resetAll:Oi},bi=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const wi={namespaced:!0,state:bi,mutations:yi,actions:Ri},$i=({commit:s})=>{s("resetAll")},Ci=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},xi=({commit:s},e)=>{s("setConfig",e)},Si=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},Ui=({commit:s},e)=>{s("setApplication",e)},Ni=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for flux"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:ke}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),zi=({commit:s},e)=>{s("setTasks",e)},Mi=({commit:s},e)=>{s("setTasksItems",e)},qi=({commit:s},e)=>{s("setTasksTotal",e)},Bi=({commit:s},e)=>{s("setTasksActive",e)},Hi=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for flux"),e.status.getService=E.Request,f.get(ke).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Fi=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");zo.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n,type:"images"},{token:A}).then(l=>{var p;console.debug("get videos tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var Wi={setService:Si,getService:Hi,resetAll:$i,setCredential:Ci,setConfig:xi,setApplication:Ui,getApplications:Ni,setTasks:zi,setTasksItems:Mi,setTasksTotal:qi,setTasksActive:Bi,getTasks:Fi};const Gi=s=>{s.service=void 0,s.application=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},Qi=(s,e)=>{s.service=e},Yi=(s,e)=>{s.credential=e},Xi=(s,e)=>{s.application=e},Ki=(s,e)=>{s.applications=e},Ji=(s,e)=>{s.config=e},Zi=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},ea=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},ta=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},sa=(s,e)=>{s.tasks=e};var oa={setTasks:sa,setApplication:Xi,setApplications:Ki,setConfig:Ji,setCredential:Yi,setService:Qi,setTasksActive:ta,setTasksItems:Zi,setTasksTotal:ea,resetAll:Gi},ra=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const na={namespaced:!0,state:ra,mutations:oa,actions:Wi},ia=({commit:s})=>{s("resetAll")},aa=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},_a=({commit:s},e)=>{s("setConfig",e)},ca=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},ua=({commit:s},e)=>{s("setApplication",e)},da=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for hailuo"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:fe}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),pa=({commit:s},e)=>{s("setTasks",e)},Ea=({commit:s},e)=>{s("setTasksItems",e)},la=({commit:s},e)=>{s("setTasksTotal",e)},ma=({commit:s},e)=>{s("setTasksActive",e)},va=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for hailuo"),e.status.getService=E.Request,f.get(fe).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Aa=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");qo.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n,type:"videos"},{token:A}).then(l=>{var p;console.debug("get videos tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var Ta={setService:ca,getService:va,resetAll:ia,setCredential:aa,setConfig:_a,setApplication:ua,getApplications:da,setTasks:pa,setTasksItems:Ea,setTasksTotal:la,setTasksActive:ma,getTasks:Aa};const Ia=s=>{s.service=void 0,s.application=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},Ra=(s,e)=>{s.service=e},Oa=(s,e)=>{s.credential=e},Da=(s,e)=>{s.application=e},La=(s,e)=>{s.applications=e},Pa=(s,e)=>{s.config=e},ja=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},ga=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},ha=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},Va=(s,e)=>{s.tasks=e};var ka={setTasks:Va,setApplication:Da,setApplications:La,setConfig:Pa,setCredential:Oa,setService:Ra,setTasksActive:ha,setTasksItems:ja,setTasksTotal:ga,resetAll:Ia},fa=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const ya={namespaced:!0,state:fa,mutations:ka,actions:Ta},ba=({commit:s})=>{s("resetAll")},wa=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},$a=({commit:s},e)=>{s("setConfig",e)},Ca=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},xa=({commit:s},e)=>{s("setApplication",e)},Sa=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for headshots"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:ye}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),Ua=({commit:s},e)=>{s("setTasks",e)},Na=({commit:s},e)=>{s("setTasksItems",e)},za=({commit:s},e)=>{s("setTasksTotal",e)},Ma=({commit:s},e)=>{s("setTasksActive",e)},qa=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for headshots"),e.status.getService=E.Request,f.get(ye).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Ba=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");Ho.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n},{token:A}).then(l=>{var p;console.debug("get videos tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var Ha={setService:Ca,getService:qa,resetAll:ba,setCredential:wa,setConfig:$a,setApplication:xa,getApplications:Sa,setTasks:Ua,setTasksItems:Na,setTasksTotal:za,setTasksActive:Ma,getTasks:Ba};const Fa=s=>{s.service=void 0,s.application=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},Wa=(s,e)=>{s.service=e},Ga=(s,e)=>{s.credential=e},Qa=(s,e)=>{s.application=e},Ya=(s,e)=>{s.applications=e},Xa=(s,e)=>{s.config=e},Ka=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},Ja=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},Za=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},e_=(s,e)=>{s.tasks=e};var t_={setTasks:e_,setApplication:Qa,setApplications:Ya,setConfig:Xa,setCredential:Ga,setService:Wa,setTasksActive:Za,setTasksItems:Ka,setTasksTotal:Ja,resetAll:Fa},Me=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const s_={namespaced:!0,state:Me,mutations:t_,actions:Ha},o_=({commit:s})=>{s("resetAll")},r_=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},n_=({commit:s},e)=>{s("setConfig",e)},i_=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},a_=({commit:s},e)=>{s("setApplication",e)},__=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for suno"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:be}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),c_=({commit:s},e)=>{s("setTasks",e)},u_=({commit:s},e)=>{s("setTasksItems",e)},d_=({commit:s},e)=>{s("setTasksTotal",e)},p_=({commit:s},e)=>{s("setTasksActive",e)},E_=({commit:s},e)=>{s("setAudio",e)},l_=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for suno"),e.status.getService=E.Request,f.get(be).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),m_=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r,n,c);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");Go.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n,type:"audios"},{token:A}).then(l=>{var p;console.debug("get imagine tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var v_={setService:i_,getService:l_,resetAll:o_,setCredential:r_,setConfig:n_,setApplication:a_,getApplications:__,setTasks:c_,setTasksItems:u_,setTasksTotal:d_,setTasksActive:p_,getTasks:m_,setAudio:E_};const A_=s=>{s.service=void 0,s.application=void 0,s.applications=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},T_=(s,e)=>{s.applications=e},I_=(s,e)=>{s.service=e},R_=(s,e)=>{s.credential=e},O_=(s,e)=>{s.application=e},D_=(s,e)=>{s.config=e},L_=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},P_=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},j_=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},g_=(s,e)=>{s.audio=e},h_=(s,e)=>{s.tasks=e};var V_={setTasks:h_,setApplication:O_,setApplications:T_,setConfig:D_,setCredential:R_,setService:I_,setTasksActive:j_,setTasksItems:L_,setTasksTotal:P_,setAudio:g_,resetAll:A_},qe=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,audio:{volume:100},credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const k_={namespaced:!0,state:qe,mutations:V_,actions:v_};var f_=()=>({fingerprint:void 0,currency:"usd",exchange:void 0,user:{},auth:{flow:"redirect",visible:!1},token:{access:void 0,refresh:void 0,expiration:void 0},setting:{},site:{},chatdoc:Ue(),chat:Se(),midjourney:xe(),qrart:Ne(),luma:ze(),suno:qe(),headshots:Me()});const y_=(s,e)=>{s.user=d(d({},s.user),e)},b_=(s,e)=>{s.token=d(d({},s.token),e)},w_=(s,e)=>{s.auth=d(d({},s.auth),e)},$_=(s,e)=>{s.fingerprint=e},C_=s=>{s.token={}},x_=s=>{s.site={}},S_=s=>{s.user={}},U_=(s,e)=>{s.site=d(d({},s.site),e)},N_=(s,e)=>{s.exchange=d(d({},s.exchange),e)},z_=(s,e)=>{s.currency=e};var M_={setUser:y_,setSite:U_,setAuth:w_,setCurrency:z_,setExchange:N_,resetUser:S_,setFingerprint:$_,setToken:b_,resetToken:C_,resetSite:x_};const hd=s=>{try{JSON.parse(s)}catch{return!1}return!0},q_=()=>navigator.userAgent.toLowerCase().includes("micromessenger"),se=()=>window.location.host.includes(F),B_=()=>se()&&window.location.host!==F,Be=s=>s!=null&&s.origin?s==null?void 0:s.origin:se()?J:window.location.host.includes("localhost")?`http://localhost-${et()}`:window.location.origin,H_=({commit:s})=>{s("resetToken"),s("resetUser")},F_=({commit:s})=>{s("resetUser")},W_=({commit:s})=>{s("resetSite")},G_=({commit:s})=>{s("resetToken")},Q_=({commit:s},e)=>{s("setToken",e)},Y_=({commit:s},e)=>{s("setUser",e)},X_=({commit:s},e)=>{s("setCurrency",e)},K_=({commit:s},e)=>{s("setExchange",e)},J_=({commit:s},e)=>{s("setFingerprint",e)},Z_=async({commit:s})=>{console.debug("start to get user");try{s("resetUser");const{data:e}=await Lo.getMe();return s("setUser",e),console.debug("get user success",e),e}catch(e){console.error("get user failed",e)}},ec=async({commit:s})=>{const i=(await(await tt.load()).get()).visitorId;return console.debug("visitorId",i),s("setFingerprint",i),i},tc=async({commit:s},e)=>{console.debug("start to get token using code",e);try{s("resetToken");const{data:o}=await yo.token({code:e});console.debug("get token success",o);const i={access:o.access_token,refresh:o.refresh_token,expiration:o.expires_in};return s("setToken",i),console.debug("get token success",o),i}catch(o){console.error("get token failed",o)}},sc=async({state:s,commit:e},o)=>{if(o.source===o.target)return;const i=`${o.source}-${o.target}`;console.debug("start to get exchange rate",i);try{const{data:r}=await Yo.rate(o);return console.debug("get exchange rate success",r),e("setExchange",{[i]:r.rate}),s.exchange[i]}catch{console.error("get exchange rate failed")}},oc=async({state:s,commit:e,dispatch:o})=>{console.debug("start to initialize site");const i=Be(s==null?void 0:s.site);try{const{data:r}=await $e.initialize({origin:i});e("setSite",r),console.debug("initialize site success",r)}catch(r){console.error("initialize site failed",r),o("login")}},rc=async({state:s,commit:e})=>{var o,i,r;console.debug("start to get site");try{const c=Be(s==null?void 0:s.site),n=(r=(i=(o=await $e.getAll({origin:c}))==null?void 0:o.data)==null?void 0:i.items)==null?void 0:r[0];e("setSite",n),console.debug("get site success",n)}catch(c){console.error("get site failed",c)}},nc=async({state:s,commit:e})=>{var i;const o=(i=s==null?void 0:s.site)==null?void 0:i.origin;e("setAuth",{flow:"redirect"}),Mc({redirect:window.location.pathname,site:o})},ic=async({dispatch:s})=>{await s("resetAll"),await s("chat/resetAll"),await s("midjourney/resetAll"),await s("chatdoc/resetAll"),await s("qrart/resetAll"),await s("login")};var ac={login:nc,logout:ic,resetToken:G_,resetAll:H_,resetUser:F_,resetSite:W_,setToken:Q_,setFingerprint:J_,setCurrency:X_,setUser:Y_,getFingerprint:ec,getExchangeRate:sc,getToken:tc,getUser:Z_,initializeSite:oc,getSite:rc,setExchange:K_};const _c=s=>!!s.token.access,cc=s=>s.user,uc=s=>s.token,dc=s=>s.setting,pc=s=>s.site,Ec=s=>s.fingerprint;var lc={authenticated:_c,user:cc,token:uc,site:pc,fingerprint:Ec,setting:dc},mc={state:f_,mutations:M_,actions:ac,getters:lc},vc=["chat.application","chat.service","chat.credential","chat.conversations","chat.model","chat.modelGroup"],Ac=["midjourney.config","midjourney.credential","midjourney.mode","midjourney.application"],Tc=["chatdoc.repositories","chatdoc.credential","chatdoc.service","chatdoc.application"],Ic=["qrart.config","qrart.credential","qrart.application"],Rc=["luma.credential","luma.application","luma.tasks"],Oc=["pika.credential","pika.application"],Dc=["flux.credential","flux.application"],Lc=["hailuo.credential","hailuo.application"],Pc=["headshots.credential","headshots.application"],jc=["suno.credential","suno.application"],gc=["user","token","setting","locale","dark","site","currency","exchange","fingerprint"];const hc=st(j(d({},mc),{modules:{midjourney:vr,chat:Ur,qrart:xn,luma:ai,pika:wi,flux:na,hailuo:ya,headshots:s_,suno:k_,chatdoc:dn},plugins:[ot({paths:[...gc,...vc,...Ac,...Tc,...Ic,...Rc,...Oc,...Dc,...Lc,...Pc,...jc]})]}));var P=hc;const x=(s=window.location.hostname)=>{const e=rt.parse(s);return e.error||!e.listed||e.domain===s?s:"."+e.domain};window.getDomain=x;const Vc=async()=>{const s=new URLSearchParams(window.location.search),e=s.get("inviter_id");if(e){const c=new Date;c.setDate(c.getDate()+7),console.debug("set INVITER_ID to cookies",e),z("INVITER_ID",e,{expires:c,path:"/",domain:x()})}const o=s.get("theme");if(o)console.log("set THEME to cookies",o),z("THEME",o,{path:"/",domain:x()});else if(!y("THEME")){const c=window.matchMedia("(prefers-color-scheme: dark)").matches;console.debug("set THEME to cookies",c?"dark":"light"),z("THEME",c?"dark":"light",{path:"/",domain:x()})}const i=s.get("lang");let r;i?r=ie(i):y("LOCALE")||(r=ie()),r&&(console.debug("set LOCALE to cookies",r),z("LOCALE",r,{path:"/",domain:x()}))},kc=async()=>{var o;const s=((o=P.state.site)==null?void 0:o.title)||"";let e=document.querySelector("title");e||(e=document.createElement("title"),document.head.appendChild(e)),e.innerHTML=s},fc=async()=>{var o;const s=((o=P.state.site)==null?void 0:o.description)||"";let e=document.querySelector('meta[name="description"]');e||(e=document.createElement("meta"),e.setAttribute("name","description"),document.head.appendChild(e)),e.setAttribute("content",s)},yc=async()=>{var o,i;const s=((i=(o=P.state.site)==null?void 0:o.keywords)==null?void 0:i.join(","))||"";let e=document.querySelector('meta[name="keywords"]');e||(e=document.createElement("meta"),e.setAttribute("name","keywords"),document.head.appendChild(e)),e.setAttribute("content",s)},bc=async()=>{var o;const s=((o=P.state.site)==null?void 0:o.favicon)||"";let e=document.querySelector('link[rel="icon"]');e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=s||Ro},wc=async()=>{await P.dispatch("getSite");const s=P.state.site;console.debug("site",s),s!=null&&s.origin||await P.dispatch("initializeSite")},$c=async()=>{const e=new URLSearchParams(window.location.search).get("code");if(console.debug("get code",e),e){console.debug("start get token by code",e);const o=await P.dispatch("getToken",e);console.debug("success get token",o)}},Cc=async()=>{const s=P.state.token;if(!(s!=null&&s.access)){console.debug("no access token, skip get user");return}console.debug("start to get user");const e=await P.dispatch("getUser");console.debug("get user",e)},xc=async()=>{const s=y("LOCALE");console.debug("initialize currency",s);const e=we;let o="usd";s&&e[s]&&(o=e[s]),console.debug("set currency",o),await P.dispatch("setCurrency",o)},Sc=async()=>{const s=y("LOCALE"),e=we;if(!s||!e[s])return;const o=e[s],r={source:"usd",target:o};console.debug("initialize exchange rate",r),await P.dispatch("getExchangeRate",r)},Uc=async()=>{if(se()&&!B_()&&q_()){console.debug("redirect to sub domain with prefix");const s=new Date().toISOString().split("T")[0].replace(/-/g,""),e=window.location.href.replace(F,`${s}.${F}`);console.debug("redirect to",e),window.location.href=e}},Nc=async()=>{await P.dispatch("getFingerprint")},zc=()=>{var o,i,r,c,n,a,u,v,A;return(r=(i=(o=P==null?void 0:P.state)==null?void 0:o.site)==null?void 0:i.distribution)!=null&&r.force_inviter_id?(a=(n=(c=P==null?void 0:P.state)==null?void 0:c.site)==null?void 0:n.distribution)==null?void 0:a.force_inviter_id:new URLSearchParams(window.location.search).get("inviter_id")||y("INVITER_ID")||((A=(v=(u=P==null?void 0:P.state)==null?void 0:u.site)==null?void 0:v.distribution)==null?void 0:A.default_inviter_id)},Mc=({redirect:s="/",site:e=window.location.origin})=>{const o=Io(),i=W(),r=zc(),c=`${o}/auth/callback?redirect=${s}`,n=`${i}/auth/login`,a=d(d({site:e},r?{inviter_id:r}:{}),c?{redirect:c}:{}),u=`${n}?${new URLSearchParams(a).toString()}`;window.location.href=u},qc="index",Bc="auth-login",Hc="auth-callback",He="site-index",Fc="chat-conversation",ae="chat-conversation-new",Wc="midjourney-index",Gc="qrart-index",Vd="qrart-history",Qc="luma-index",kd="luma-history",Yc="pika-index",fd="pika-history",Xc="flux-index",Kc="hailuo-index",yd="hailuo-history",Jc="headshots-index",bd="headshots-history",Zc="chatdoc-index",eu="chatdoc-conversation",tu="chatdoc-conversation-new",su="chatdoc-setting",ou="chatdoc-knowledge",ru="suno-index",wd="suno-history",nu="profile-index",iu="console-root",au="console-order-list",_u="console-order-detail",_e="console-application-list",cu="console-application-extra",uu="console-application-subscribe",du="distribution-index",pu="distribution-history",Eu="distribution-invitees",lu="console-usage-list";var mu={path:"/auth",component:()=>t(()=>import("./Auth.9a7ea04d.js"),["assets/Auth.9a7ea04d.js","assets/Auth.fd7a68cc.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js","assets/vendor-fortawesome.ea56e829.js"]),children:[{path:"login",name:Bc,component:()=>t(()=>import("./Login.6a60b5dc.js"),["assets/Login.6a60b5dc.js","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js","assets/vendor-fortawesome.ea56e829.js"])},{path:"callback",name:Hc,component:()=>t(()=>import("./Callback.23586baf.js"),["assets/Callback.23586baf.js","assets/Callback.dcef08ed.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js","assets/vendor-fortawesome.ea56e829.js"])}]},vu={path:"/console",meta:{auth:!0},component:()=>t(()=>import("./Console.abff75b8.js"),["assets/Console.abff75b8.js","assets/Console.5c756b88.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:iu,redirect:{name:_e}},{path:"orders",name:au,component:()=>t(()=>import("./List.0d2e5273.js"),["assets/List.0d2e5273.js","assets/List.b9ed2f01.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/order.36e86fea.js","assets/Pagination.e70aeba8.js","assets/Pagination.a75eb2f0.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/order.aa35b6fb.js","assets/price.a5aea48c.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])},{path:"orders/:id",name:_u,component:()=>t(()=>import("./Detail.ada17bec.js"),["assets/Detail.ada17bec.js","assets/Detail.c6180471.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/order.36e86fea.js","assets/order.aa35b6fb.js","assets/vendor-qrcode.3f236d35.js","assets/price.a5aea48c.js","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js"])},{path:"applications",name:_e,component:()=>t(()=>import("./List.a1774198.js"),["assets/List.a1774198.js","assets/List.6e2820e9.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/credential.26787c24.js","assets/Pagination.e70aeba8.js","assets/Pagination.a75eb2f0.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])},{path:"applications/:id/extra",name:cu,component:()=>t(()=>import("./Extra.1809265d.js"),["assets/Extra.1809265d.js","assets/Extra.8ae37a97.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/api.f60246f3.js","assets/price.a5aea48c.js","assets/order.36e86fea.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js","assets/vendor-fortawesome.ea56e829.js"])},{path:"applications/:id/subscribe",name:uu,component:()=>t(()=>import("./Subscribe.6139a9aa.js"),["assets/Subscribe.6139a9aa.js","assets/Subscribe.7bc86667.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/api.f60246f3.js","assets/order.36e86fea.js","assets/price.a5aea48c.js","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])},{path:"usages",name:lu,component:()=>t(()=>import("./List.35ca9114.js"),["assets/List.35ca9114.js","assets/List.f8805050.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/credential.26787c24.js","assets/Pagination.e70aeba8.js","assets/Pagination.a75eb2f0.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Au={path:"/chat",component:()=>t(()=>import("./Main.b163921e.js"),["assets/Main.b163921e.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",redirect:{name:ae}},{path:"conversations",name:ae,component:()=>t(()=>import("./Conversation.a9511a61.js"),["assets/Conversation.a9511a61.js","assets/Conversation.499bd9c5.css","assets/vendor-axios.168e6950.js","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/MarkdownRenderer.aa262e85.js","assets/MarkdownRenderer.f404d95c.css","assets/vendor-markdown.421d17f1.js","assets/vendor-highlight.js.6ee9ffbc.js","assets/vendor-highlight.js.4e8df926.css","assets/vendor-fortawesome.ea56e829.js","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/vendor-qrcode.3f236d35.js"])},{path:"conversations/:id",name:Fc,component:()=>t(()=>import("./Conversation.a9511a61.js"),["assets/Conversation.a9511a61.js","assets/Conversation.499bd9c5.css","assets/vendor-axios.168e6950.js","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/MarkdownRenderer.aa262e85.js","assets/MarkdownRenderer.f404d95c.css","assets/vendor-markdown.421d17f1.js","assets/vendor-highlight.js.6ee9ffbc.js","assets/vendor-highlight.js.4e8df926.css","assets/vendor-fortawesome.ea56e829.js","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/vendor-qrcode.3f236d35.js"])}]},Tu={path:"/midjourney",meta:{auth:!0},component:()=>t(()=>import("./Main.b163921e.js"),["assets/Main.b163921e.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Wc,component:()=>t(()=>import("./Index.6bcaa092.js"),["assets/Index.6bcaa092.js","assets/Index.b884977d.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/ImageNavigator.2fcf2407.js","assets/ImageNavigator.16238971.css","assets/InfoIcon.48bd38f9.js","assets/InfoIcon.26ac9f9c.css","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Iu={path:"/distribution",meta:{auth:!0},component:()=>t(()=>import("./Main.b163921e.js"),["assets/Main.b163921e.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:du,component:()=>t(()=>import("./Index.ec46d26d.js"),["assets/Index.ec46d26d.js","assets/Index.a8112020.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/distribution.82beb040.js","assets/price.a5aea48c.js","assets/vendor-qrcode.3f236d35.js","assets/vendor-axios.168e6950.js"])},{path:"history",name:pu,component:()=>t(()=>import("./History.f2a1cf47.js"),["assets/History.f2a1cf47.js","assets/History.9fc30c32.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Pagination.e70aeba8.js","assets/Pagination.a75eb2f0.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/distribution.82beb040.js","assets/price.a5aea48c.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])},{path:"invitees",name:Eu,component:()=>t(()=>import("./Invitees.13e9b67b.js"),["assets/Invitees.13e9b67b.js","assets/Invitees.0568a6f7.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Pagination.e70aeba8.js","assets/Pagination.a75eb2f0.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Ru={path:"/chatdoc",meta:{auth:!0},component:()=>t(()=>import("./Main.b163921e.js"),["assets/Main.b163921e.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Zc,component:()=>t(()=>import("./Index.3a674162.js"),["assets/Index.3a674162.js","assets/Index.877f522f.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Chatdoc.089bf62e.js","assets/Chatdoc.b833a665.css","assets/vendor-fortawesome.ea56e829.js","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])},{path:"repositories/:repositoryId/conversations",name:tu,component:()=>t(()=>import("./Conversation.11fa30dc.js"),["assets/Conversation.11fa30dc.js","assets/Conversation.c2ebf796.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Chatdoc.089bf62e.js","assets/Chatdoc.b833a665.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/MarkdownRenderer.aa262e85.js","assets/MarkdownRenderer.f404d95c.css","assets/vendor-markdown.421d17f1.js","assets/vendor-highlight.js.6ee9ffbc.js","assets/vendor-highlight.js.4e8df926.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-qrcode.3f236d35.js"])},{path:"repositories/:repositoryId/conversations/:conversationId",name:eu,component:()=>t(()=>import("./Conversation.11fa30dc.js"),["assets/Conversation.11fa30dc.js","assets/Conversation.c2ebf796.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Chatdoc.089bf62e.js","assets/Chatdoc.b833a665.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/MarkdownRenderer.aa262e85.js","assets/MarkdownRenderer.f404d95c.css","assets/vendor-markdown.421d17f1.js","assets/vendor-highlight.js.6ee9ffbc.js","assets/vendor-highlight.js.4e8df926.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-qrcode.3f236d35.js"])},{path:"repositories/:repositoryId/manage",name:ou,component:()=>t(()=>import("./Manage.159260f7.js"),["assets/Manage.159260f7.js","assets/Manage.07d2ae70.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Chatdoc.089bf62e.js","assets/Chatdoc.b833a665.css","assets/vendor-fortawesome.ea56e829.js","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])},{path:"repositories/:repositoryId",name:su,component:()=>t(()=>import("./Setting.35ac9719.js"),["assets/Setting.35ac9719.js","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Chatdoc.089bf62e.js","assets/Chatdoc.b833a665.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Ou={path:"/qrart",meta:{auth:!0},component:()=>t(()=>import("./Main.b163921e.js"),["assets/Main.b163921e.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Gc,component:()=>t(()=>import("./Index.a87a9863.js"),["assets/Index.a87a9863.js","assets/Index.360c148a.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/InfoIcon.48bd38f9.js","assets/InfoIcon.26ac9f9c.css","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Du={path:"/luma",meta:{auth:!0},component:()=>t(()=>import("./Main.b163921e.js"),["assets/Main.b163921e.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Qc,component:()=>t(()=>import("./Index.ad05ea6f.js"),["assets/Index.ad05ea6f.js","assets/Index.293bbe87.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/VideoNavigator.5969c4ae.js","assets/VideoNavigator.4d75a1bf.css","assets/InfoIcon.48bd38f9.js","assets/InfoIcon.26ac9f9c.css","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Lu={path:"/pika",meta:{auth:!0},component:()=>t(()=>import("./Main.b163921e.js"),["assets/Main.b163921e.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Yc,component:()=>t(()=>import("./Index.7dab4e07.js"),["assets/Index.7dab4e07.js","assets/Index.fd7c5169.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/VideoNavigator.5969c4ae.js","assets/VideoNavigator.4d75a1bf.css","assets/InfoIcon.48bd38f9.js","assets/InfoIcon.26ac9f9c.css","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Pu={path:"/flux",meta:{auth:!0},component:()=>t(()=>import("./Main.b163921e.js"),["assets/Main.b163921e.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Xc,component:()=>t(()=>import("./Index.d57f3a84.js"),["assets/Index.d57f3a84.js","assets/Index.55013973.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/ImageNavigator.2fcf2407.js","assets/ImageNavigator.16238971.css","assets/InfoIcon.48bd38f9.js","assets/InfoIcon.26ac9f9c.css","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},ju={path:"/hailuo",meta:{auth:!0},component:()=>t(()=>import("./Main.b163921e.js"),["assets/Main.b163921e.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Kc,component:()=>t(()=>import("./Index.3bbb1b21.js"),["assets/Index.3bbb1b21.js","assets/Index.f68215c5.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/VideoNavigator.5969c4ae.js","assets/VideoNavigator.4d75a1bf.css","assets/InfoIcon.48bd38f9.js","assets/InfoIcon.26ac9f9c.css","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},gu={path:"/headshots",meta:{auth:!0},component:()=>t(()=>import("./Main.b163921e.js"),["assets/Main.b163921e.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Jc,component:()=>t(()=>import("./Index.e56580da.js"),["assets/Index.e56580da.js","assets/Index.50894ed5.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/InfoIcon.48bd38f9.js","assets/InfoIcon.26ac9f9c.css","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/CopyToClipboard.06037c3f.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},hu={path:"/suno",meta:{auth:!0},component:()=>t(()=>import("./Main.b163921e.js"),["assets/Main.b163921e.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:ru,component:()=>t(()=>import("./Index.1e73cf05.js"),["assets/Index.1e73cf05.js","assets/Index.9deb653e.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/Status.b402ebb3.js","assets/Status.104093f6.css","assets/InfoIcon.48bd38f9.js","assets/InfoIcon.26ac9f9c.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Vu={path:"/site",component:()=>t(()=>import("./Main.b163921e.js"),["assets/Main.b163921e.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:He,component:()=>t(()=>import("./Index.c7d2bb5f.js"),["assets/Index.c7d2bb5f.js","assets/Index.278c7793.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},ku={path:"/profile",component:()=>t(()=>import("./Main.b163921e.js"),["assets/Main.b163921e.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.e83d4082.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:nu,component:()=>t(()=>import("./Index.3c44d81c.js"),["assets/Index.3c44d81c.js","assets/Index.0014e6b1.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.a970b239.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]};const fu=[{path:"/",component:()=>t(()=>import("./Index.2a111b5a.js"),["assets/Index.2a111b5a.js","assets/Index.9d0ca645.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js","assets/vendor-fortawesome.ea56e829.js"]),children:[{path:"",name:qc,component:()=>t(()=>import("./Index.144cc5e8.js"),["assets/Index.144cc5e8.js","assets/Index.86ebef95.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},vu,Ru,mu,Au,Ou,Du,Lu,Pu,ju,gu,hu,Tu,Iu,Vu,ku],Fe=nt({history:it(),routes:fu});Fe.beforeEach(async(s,e,o)=>{const i=y("LOCALE")||Z;return await so(i),o()});var We=(s,e)=>{const o=s.__vccOpts||s;for(const[i,r]of e)o[i]=r;return o};const yu=ce({name:"AuthPanel",components:{ElDialog:vt,QrCode:mt},data(){return{showQR:!1,qrLink:""}},computed:{iframeUrl(){return`${W()}/auth/login?inviter_id=${this.inviterId}`},inviterId(){var e,o,i,r,c,n,a,u,v,A,T,l,I;return(r=(i=(o=(e=this.$store)==null?void 0:e.state)==null?void 0:o.site)==null?void 0:i.distribution)!=null&&r.force_inviter_id?(u=(a=(n=(c=this.$store)==null?void 0:c.state)==null?void 0:n.site)==null?void 0:a.distribution)==null?void 0:u.force_inviter_id:((v=this.$route.query.inviter_id)==null?void 0:v.toString())||y("INVITER_ID")||((I=(l=(T=(A=this.$store)==null?void 0:A.state)==null?void 0:T.site)==null?void 0:l.distribution)==null?void 0:I.default_inviter_id)},authenticated(){return!!this.$store.state.token.access}},mounted(){window.addEventListener("message",async s=>{var e;if(s.origin===W()){if(console.debug("received from child page",s),s.data.name==="login"){const o=s.data.data,i={access:o.access_token,refresh:o.refresh_token,expiration:o.expires_in};await this.$store.dispatch("setToken",i),await this.$store.dispatch("getUser"),(e=this.$store.state.site)!=null&&e.origin||(await this.$store.dispatch("initializeSite"),await this.$router.push({name:He})),window.location.reload()}if(s.data.name==="show_qr"){const o=s.data.data;this.qrLink=o.qrLink,this.showQR=!0}}})}}),bu=["src"];function wu(s,e,o,i,r,c){const n=C("el-dialog"),a=C("qr-code");return S(),ct(ut,null,[X(n,{"model-value":!s.authenticated,"modal-class":"dialog",width:"400px","show-close":!1,"close-on-press-escape":!1,"close-on-click-modal":!1},{default:H(()=>[dt("iframe",{width:"360",height:"560",src:s.iframeUrl,frameborder:"0"},null,8,bu)]),_:1},8,["model-value"]),X(n,{modelValue:s.showQR,"onUpdate:modelValue":e[0]||(e[0]=u=>s.showQR=u),width:"400px","show-close":!0},{default:H(()=>[s.qrLink?(S(),q(a,{key:0,value:s.qrLink,width:230,height:230,class:"qrcode",type:"image/jpeg",color:{dark:"#000000ff",light:"#ffffffff"}},null,8,["value"])):K("v-if",!0)]),_:1},8,["modelValue"])],64)}var $u=We(yu,[["render",wu],["__scopeId","data-v-6c178208"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/AuthPanel.vue"]]);const Cu=ce({components:{ElConfigProvider:At,AuthPanel:$u,ElTag:Tt},data(){return{isTest:U,locale:It}},computed:{authPopup(){return this.$store.state.auth.flow==="popup"&&this.$store.state.auth.visible}}});function xu(s,e,o,i,r,c){const n=C("auth-panel"),a=C("router-view"),u=C("el-tag"),v=C("el-config-provider");return S(),q(v,{locale:s.locale},{default:H(()=>[s.authPopup?(S(),q(n,{key:0})):K("v-if",!0),X(a),s.isTest?(S(),q(u,{key:1,size:"large",class:"tag",type:"warning"},{default:H(()=>[pt(Et(s.$t("index.button.testEnv")),1)]),_:1})):K("v-if",!0)]),_:1},8,["locale"])}var Su=We(Cu,[["render",xu],["__file","/home/runner/work/Nexior/Nexior/src/App.vue"]]);var Uu={install:(s,e)=>{s.config.globalProperties.$dayjs={format(o,i=""){return at(o).format(i||e.formatString)}}}};m.add(Ot);m.add(Dt);m.add(Lt);m.add(Pt);m.add(jt);m.add(gt);m.add(ht);m.add(Vt);m.add(kt);m.add(ft);m.add(yt);m.add(bt);m.add(wt);m.add($t);m.add(Ct);m.add(xt);m.add(St);m.add(Ut);m.add(Nt);m.add(zt);m.add(Mt);m.add(qt);m.add(Bt);m.add(Ht);m.add(Ft);m.add(Wt);m.add(Gt);m.add(Qt);m.add(Yt);m.add(Xt);m.add(Kt);m.add(Jt);m.add(Zt);m.add(es);m.add(ts);m.add(ss);m.add(os);m.add(rs);m.add(ns);m.add(is);m.add(as);m.add(_s);m.add(cs);m.add(us);m.add(ds);m.add(ps);m.add(Es);m.add(ls);m.add(ms);m.add(vs);m.add(As);m.add(Ts);m.add(Is);m.add(Rs);m.add(Os);m.add(Ds);m.add(Ls);m.add(Ps);m.add(js);m.add(gs);m.add(hs);m.add(Vs);m.add(ks);m.add(fs);m.add(ys);m.add(bs);m.add(ws);m.add($s);m.add(Cs);m.add(xs);m.add(Ss);m.add(Us);m.add(Ns);m.add(zs);m.add(Ms);m.add(qs);m.add(Bs);m.add(Hs);m.add(Fs);const Nu=async()=>{await Uc(),await Vc(),await $c(),await Cc(),await wc(),xc(),Sc(),kc(),fc(),yc(),bc(),Nc();const s=lt(Su);s.use(Fe),s.use(P),s.use(L),s.use(Uu,{formatString:"YYYY-MM-DD HH:mm:ss"}),s.directive("loading",Rt),s.mount("#app"),console.debug("app mounted"),window.app=s};Nu();export{hd as $,He as A,g as B,P as C,gd as D,uu as E,k as F,_u as G,cu as H,h as I,f as J,Po as K,Gu as L,To as M,Yu as N,vo as O,E as P,go as Q,qc as R,Js as S,Xu as T,De as U,ve as V,Te as W,te as X,Re as Y,Ie as Z,We as _,Bc as a,Qu as a0,Ae as a1,t as a2,L as a3,Ku as a4,Zu as a5,sd as a6,Ju as a7,ed as a8,Vo as a9,xo as aA,Dd as aB,Od as aC,Rd as aD,Uo as aE,Ld as aF,zo as aG,Pd as aH,qo as aI,Ho as aJ,jd as aK,Go as aL,$e as aM,td as aa,pu as ab,Eu as ac,Lo as ad,ou as ae,tu as af,b as ag,eu as ah,id as ai,ad as aj,od as ak,rd as al,_d as am,pd as an,Ed as ao,ld as ap,md as aq,ud as ar,cd as as,vd as at,dd as au,nd as av,$o as aw,Ad as ax,Id as ay,Td as az,iu as b,W as c,_e as d,au as e,lu as f,x as g,du as h,se as i,ae as j,Fc as k,Wc as l,Gc as m,Vd as n,ru as o,wd as p,Qc as q,Yc as r,so as s,Kc as t,kd as u,fd as v,yd as w,Jc as x,bd as y,nu as z};
|
|
3
|
+
`).filter(a=>!!a),n=c[c.length-1];if(n){const a=JSON.parse(n);o!=null&&o.stream&&(o==null||o.stream(a))}}})}}const b=new ko;class fo{async token(e){return g.post("/token",e,{baseURL:`${W()}/oauth2/v1`})}}const yo=new fo;class bo{constructor(){N(this,"key","services")}async getAll(e){return await g.get(`/${this.key}/`,{params:e})}async get(e){return await g.get(`/${this.key}/${e}`)}async create(e){return await g.post(`/${this.key}/`,e)}async update(e,o){return await g.put(`/${this.key}/${e}`,o)}async delete(e){return await g.delete(`/${this.key}/${e}`)}}const f=new bo;class wo{async task(e,o){return await O.post("/qrart/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/qrart/tasks",d(d(d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),e.createdAtMax!==void 0?{created_at_max:e.createdAtMax}:{}),e.createdAtMin!==void 0?{created_at_min:e.createdAtMin}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async generate(e,o){return await O.post("/qrart/generate",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:D})}}const $o=new wo;class Co{async task(e,o){return await O.post("/luma/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/luma/tasks",d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async generate(e,o){return await O.post("/luma/videos",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:D})}}const xo=new Co;class So{async task(e,o){return await O.post("/pika/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/pika/tasks",d(d(d(d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),e.type?{type:e.type}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),e.createdAtMax!==void 0?{created_at_max:e.createdAtMax}:{}),e.createdAtMin!==void 0?{created_at_min:e.createdAtMin}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async generate(e,o){return await O.post("/pika/videos",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:D})}}const Uo=new So;class No{async task(e,o){return await O.post("/flux/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/flux/tasks",d(d(d(d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),e.type?{type:e.type}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),e.createdAtMax!==void 0?{created_at_max:e.createdAtMax}:{}),e.createdAtMin!==void 0?{created_at_min:e.createdAtMin}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async generate(e,o){return await O.post("/flux/images",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:D})}}const zo=new No;class Mo{async task(e,o){return await O.post("/hailuo/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/hailuo/tasks",d(d(d(d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),e.type?{type:e.type}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),e.createdAtMax!==void 0?{created_at_max:e.createdAtMax}:{}),e.createdAtMin!==void 0?{created_at_min:e.createdAtMin}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async generate(e,o){return await O.post("/hailuo/videos",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:D})}}const qo=new Mo;class Bo{async task(e,o){return await O.post("/headshots/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/headshots/tasks",d(d(d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.userId?{user_id:e.userId}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),e.createdAtMax!==void 0?{created_at_max:e.createdAtMax}:{}),e.createdAtMin!==void 0?{created_at_min:e.createdAtMin}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async generate(e,o){return await O.post("/headshots/generate",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:D})}}const Ho=new Bo;class Fo{constructor(){N(this,"key","sites")}async initialize(e){return await g.post(`/${this.key}/initialize/`,e)}async getAll(e){return await g.get(`/${this.key}/`,{params:e})}async get(e){return await g.get(`/${this.key}/${e}`)}async create(e){return await g.post(`/${this.key}/`,e)}async update(e,o){return await g.put(`/${this.key}/${e}`,o)}}const $e=new Fo;class Wo{async task(e,o){return await O.post("/suno/tasks",{action:"retrieve",id:e},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async tasks(e,o){return await O.post("/suno/tasks",d(d(d(d(d(d(d(d({action:"retrieve_batch"},e.ids?{ids:e.ids}:{}),e.userId?{user_id:e.userId}:{}),e.type?{type:e.type}:{}),e.applicationId?{application_id:e.applicationId}:{}),e.limit!==void 0?{limit:e.limit}:{}),e.offset!==void 0?{offset:e.offset}:{}),e.createdAtMax!==void 0?{created_at_max:e.createdAtMax}:{}),e.createdAtMin!==void 0?{created_at_min:e.createdAtMin}:{}),{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${o.token}`,"x-record-exempt":"true"},baseURL:D})}async audio(e,o){return await O.post("/suno/audios",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json"},baseURL:D})}async lyric(e,o){return await O.post("/suno/lyrics",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json"},baseURL:D})}async upload(e,o){return await O.post("/suno/upload",e,{headers:{authorization:`Bearer ${o.token}`,"content-type":"application/json"},baseURL:D})}}const Go=new Wo;class Qo{async rate(e){return g.post("/exchange-rate",e)}}const Yo=new Qo;function $(s,e){const o=new Map;return[...s,...e].forEach(i=>{o.set(i.id,i)}),Array.from(o.values()).sort((i,r)=>new Date(i.created_at)-new Date(r.created_at))}const Xo=({commit:s})=>{s("resetAll")},Ce=async({commit:s},e)=>{console.debug(Ce,"set credential",e),s("setCredential",e)},Ko=({commit:s},e)=>{s("setConfig",e)},Jo=({commit:s},e)=>{s("setMode",e)},Zo=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},er=({commit:s},e)=>{s("setApplication",e)},tr=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for midjourney"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:je}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),sr=({commit:s},e)=>{s("setTasks",e)},or=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for midjourney"),e.status.getService=E.Request,f.get(je).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),rr=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r,n,c);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");Vo.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n,type:"imagine"},{token:A}).then(l=>{var p;console.debug("get imagine tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var nr={setService:Zo,getService:or,resetAll:Xo,setCredential:Ce,setConfig:Ko,setMode:Jo,setApplication:er,getApplications:tr,setTasks:sr,getTasks:rr};const ir=s=>{s.application=void 0,s.applications=void 0,s.config={},s.tasks={items:void 0,total:void 0}},ar=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},_r=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},cr=(s,e)=>{s.service=e},ur=(s,e)=>{s.credential=e},dr=(s,e)=>{s.application=e},pr=(s,e)=>{s.applications=e},Er=(s,e)=>{s.config=e},lr=(s,e)=>{s.tasks=e};var mr={setApplication:dr,setApplications:pr,setConfig:Er,setTasksItems:ar,setTasksTotal:_r,setCredential:ur,setService:cr,setTasks:lr,resetAll:ir},xe=()=>({service:void 0,application:void 0,applications:void 0,tasks:{items:void 0,total:void 0},credential:void 0,config:{},status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const vr={namespaced:!0,state:xe,mutations:mr,actions:nr};var Se=()=>({model:te,modelGroup:vo,applications:void 0,application:void 0,conversations:void 0,service:void 0,credential:void 0,status:{getService:E.None,getApplications:E.None,getConversations:E.None}});const Ar=({commit:s})=>{s("resetAll")},Tr=async({commit:s},e)=>{s("setModel",e)},Ir=async({commit:s},e)=>{s("setModelGroup",e)},Rr=async({commit:s},e)=>{console.debug("set application",e),s("setApplication",e)},Or=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},Dr=async({commit:s},e)=>{console.debug("set conversations",e),s("setConversations",e)},Lr=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},Pr=async({commit:s,state:e},o)=>{console.debug("set conversation",o);const i=e.conversations||[],r=i==null?void 0:i.findIndex(c=>c.id===o.id);r>-1?i[r]=o:i==null||i.unshift(o),s("setConversations",i),console.debug("set conversation success",i)},jr=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for chat"),e.status.getService=E.Request,f.get(pe).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),gr=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for chat"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:pe}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),hr=async({commit:s,state:e,rootState:o})=>new Promise((i,r)=>{var a;e.status.getConversations=E.Request;const c=e.credential;console.debug("credential",c);const n=c==null?void 0:c.token;if(!n)return e.status.getConversations=E.Error,r(new Error("Token not found"));go.getConversations({userId:(a=o.user)==null?void 0:a.id},{token:n}).then(u=>{var A,T;console.debug("get conversations success",(T=(A=u.data)==null?void 0:A.items)==null?void 0:T.length),s("setConversations",u.data.items);const v=u.data.items;i(v)}).catch(u=>{e.status.getConversations=E.Error,s("setConversations",[]),r(u)})});var Vr={resetAll:Ar,setModel:Tr,setModelGroup:Ir,getService:jr,setService:Or,setCredential:Lr,setApplication:Rr,getApplications:gr,setConversation:Pr,setConversations:Dr,getConversations:hr};const kr=s=>{s.application=void 0,s.conversations=void 0,s.credential=void 0,s.service=void 0},fr=(s,e)=>{s.model=e},yr=(s,e)=>{s.modelGroup=e},br=(s,e)=>{s.credential=e},wr=(s,e)=>{s.application=e},$r=(s,e)=>{s.applications=e},Cr=(s,e)=>{s.service=e},xr=(s,e)=>{s.conversations=e};var Sr={setModel:fr,setModelGroup:yr,setService:Cr,setCredential:br,setConversations:xr,setApplication:wr,setApplications:$r,resetAll:kr};const Ur={namespaced:!0,state:Se,mutations:Sr,actions:Vr},Nr=async({commit:s},e)=>{s("setApplication",e)},zr=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},Mr=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},qr=async({commit:s},e)=>{s("setRepository",e)},Br=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for chatdoc"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:Pe}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),Hr=({commit:s})=>{s("resetAll")},Fr=async({commit:s,state:e})=>{console.debug("start to get repositories");const o=e.credential;console.log("credential",o);const i=o==null?void 0:o.token;if(!i)return s("setRepositories",void 0),Promise.reject("no token");const r=(await b.getAllRepositories({token:i})).data.items;return console.debug("get repositories success",r),s("setRepositories",r),r},Wr=async({state:s},e)=>{console.debug("start to delete repository");const o=s.credential;console.log("credential",o);const i=o==null?void 0:o.token;if(!i)return Promise.reject("no token");const r=(await b.deleteRepository(e.id,{token:i})).data;return console.debug("delete repository success",r),r},Gr=async({state:s},e)=>{console.debug("start to delete document");const o=s.credential;console.log("credential",o);const i=o==null?void 0:o.token;if(!i)return Promise.reject("no token");const r=(await b.deleteDocument(e.id,{token:i})).data;return console.debug("delete document success",r),r},Qr=async({commit:s,state:e})=>new Promise(async(o,i)=>{console.debug("start to get service for chatdoc"),e.status.getService=E.Request,f.get(Pe).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Yr=async({state:s},e)=>{console.debug("start to create repository");const o=s.credential;console.log("credential",o);const i=o==null?void 0:o.token;if(!i)return Promise.reject("no token");const r=(await b.createRepository(e,{token:i})).data;return console.debug("create repository success",r),r},Xr=async({state:s},e)=>{console.debug("start to create document");const o=s.credential;console.log("credential",o);const i=o==null?void 0:o.token;if(!i)return Promise.reject("no token");const r=(await b.createDocument(e,{token:i})).data;return console.debug("create document success",r),r},Kr=async({commit:s,state:e},o)=>{console.debug("set conversation",o);const i=e.repositories.find(n=>n.id===o.repositoryId),r=i==null?void 0:i.conversations;if(!r)return Promise.reject("no conversations");const c=r==null?void 0:r.findIndex(n=>n.id===o.id);c>-1&&(r[c].messages=o.messages),console.debug("set conversation success",r)},Jr=async({commit:s,state:e},o)=>{console.debug("start to get documents");const i=e.credential;console.log("credential for getDocuments",i);const r=i==null?void 0:i.token;if(!r)return s("setRepository",{id:o.repositoryId,documents:[]}),[];const c=(await b.getAllDocuments(o.repositoryId,{token:r})).data.items;return console.debug("get documents success",c),s("setRepository",{id:o.repositoryId,documents:c}),c},Zr=async({commit:s,state:e},o)=>{console.debug("start to get conversations");const i=e.credential;console.log("credential for getConversations",i);const r=i==null?void 0:i.token;if(!r)return s("setRepository",{id:o.repositoryId,conversations:[]}),[];const c=(await b.getAllConversations(o.repositoryId,{token:r})).data.items;return console.debug("get conversations success",c),s("setRepository",{id:o.repositoryId,conversations:c}),c},en=async({commit:s,state:e},o)=>{console.debug("start to get repository");const i=e.credential,r=i==null?void 0:i.token;if(!r)return s("setRepository",{id:o.id}),Promise.reject("no token");const c=(await b.getRepository(o.id,{token:r})).data;return console.debug("get repository success",c),s("setRepository",c),c};var tn={setService:Mr,setConversation:Kr,getService:Qr,createRepository:Yr,setApplication:Nr,getApplications:Br,getRepositories:Fr,setCredential:zr,deleteRepository:Wr,getRepository:en,setRepository:qr,getConversations:Zr,getDocuments:Jr,resetAll:Hr,createDocument:Xr,deleteDocument:Gr};const sn=s=>{s.application=void 0,s.repositories=[]},on=(s,e)=>{s.service=e},rn=(s,e)=>{s.application=e},nn=(s,e)=>{s.applications=e},an=(s,e)=>{const o=s.repositories;if(o&&e){e.forEach(i=>{const r=o==null?void 0:o.findIndex(c=>c.id===i.id);r!==-1&&(e[r]=d(d({},o[r]),i))}),s.repositories=e;return}else s.repositories=e},_n=(s,e)=>{s.credential=e},cn=(s,e)=>{console.debug("mutation",e);const o=e,i=s.repositories;if(!i){console.debug("no repositories");return}const r=i.findIndex(c=>c.id===o.id);if(r===-1){console.debug("no repository found");return}console.debug("set repository for index",r,o),i[r]=d(d({},i[r]),o)};var un={setService:on,setApplication:rn,setApplications:nn,setRepositories:an,setRepository:cn,setCredential:_n,resetAll:sn},Ue=()=>({service:void 0,application:void 0,applications:void 0,repositories:void 0,credential:void 0,status:{getService:E.None,getApplications:E.None,getRepositories:E.None}});const dn={namespaced:!0,state:Ue,mutations:un,actions:tn},pn=({commit:s})=>{s("resetAll")},En=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},ln=({commit:s},e)=>{s("setConfig",e)},mn=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},vn=({commit:s},e)=>{s("setApplication",e)},An=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for qrart"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:ge}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),Tn=({commit:s},e)=>{s("setTasks",e)},In=({commit:s},e)=>{s("setTasksItems",e)},Rn=({commit:s},e)=>{s("setTasksTotal",e)},On=({commit:s},e)=>{s("setTasksActive",e)},Dn=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for qrart"),e.status.getService=E.Request,f.get(ge).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Ln=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");$o.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n},{token:A}).then(l=>{var p;console.debug("get qrart tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var Pn={setService:mn,getService:Dn,resetAll:pn,setCredential:En,setConfig:ln,setApplication:vn,getApplications:An,setTasks:Tn,setTasksItems:In,setTasksTotal:Rn,setTasksActive:On,getTasks:Ln};const jn=s=>{s.service=void 0,s.application=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},gn=(s,e)=>{s.service=e},hn=(s,e)=>{s.applications=e},Vn=(s,e)=>{s.credential=e},kn=(s,e)=>{s.application=e},fn=(s,e)=>{s.config=e},yn=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},bn=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},wn=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},$n=(s,e)=>{s.tasks=e};var Cn={setTasks:$n,setApplication:kn,setApplications:hn,setConfig:fn,setCredential:Vn,setService:gn,setTasksActive:wn,setTasksItems:yn,setTasksTotal:bn,resetAll:jn},Ne=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const xn={namespaced:!0,state:Ne,mutations:Cn,actions:Pn},Sn=({commit:s})=>{s("resetAll")},Un=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},Nn=({commit:s},e)=>{s("setConfig",e)},zn=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},Mn=({commit:s},e)=>{s("setApplication",e)},qn=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for luma"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:he}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),Bn=({commit:s},e)=>{s("setTasks",e)},Hn=({commit:s},e)=>{s("setTasksItems",e)},Fn=({commit:s},e)=>{s("setTasksTotal",e)},Wn=({commit:s},e)=>{s("setTasksActive",e)},Gn=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for luma"),e.status.getService=E.Request,f.get(he).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Qn=async({commit:s,state:e,rootState:o},{offset:i,limit:r})=>new Promise((c,n)=>{var v;console.debug("start to get tasks",i,r);const a=e.credential,u=a==null?void 0:a.token;if(!u)return n("no token");xo.tasks({userId:(v=o==null?void 0:o.user)==null?void 0:v.id},{token:u}).then(A=>{console.debug("get imagine tasks success",A.data.items),s("setTasksItems",A.data.items),s("setTasksTotal",A.data.count),c(A.data.items)}).catch(A=>n(A))});var Yn={setService:zn,getService:Gn,resetAll:Sn,setCredential:Un,setConfig:Nn,setApplication:Mn,getApplications:qn,setTasks:Bn,setTasksItems:Hn,setTasksTotal:Fn,setTasksActive:Wn,getTasks:Qn};const Xn=s=>{s.service=void 0,s.application=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},Kn=(s,e)=>{s.service=e},Jn=(s,e)=>{s.credential=e},Zn=(s,e)=>{s.application=e},ei=(s,e)=>{s.applications=e},ti=(s,e)=>{s.config=e},si=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},oi=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},ri=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},ni=(s,e)=>{s.tasks=e};var ii={setTasks:ni,setApplication:Zn,setApplications:ei,setConfig:ti,setCredential:Jn,setService:Kn,setTasksActive:ri,setTasksItems:si,setTasksTotal:oi,resetAll:Xn},ze=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const ai={namespaced:!0,state:ze,mutations:ii,actions:Yn},_i=({commit:s})=>{s("resetAll")},ci=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},ui=({commit:s},e)=>{s("setConfig",e)},di=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},pi=({commit:s},e)=>{s("setApplication",e)},Ei=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for pika"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:Ve}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),li=({commit:s},e)=>{s("setTasks",e)},mi=({commit:s},e)=>{s("setTasksItems",e)},vi=({commit:s},e)=>{s("setTasksTotal",e)},Ai=({commit:s},e)=>{s("setTasksActive",e)},Ti=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for pika"),e.status.getService=E.Request,f.get(Ve).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Ii=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");Uo.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n,type:"videos"},{token:A}).then(l=>{var p;console.debug("get videos tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var Ri={setService:di,getService:Ti,resetAll:_i,setCredential:ci,setConfig:ui,setApplication:pi,getApplications:Ei,setTasks:li,setTasksItems:mi,setTasksTotal:vi,setTasksActive:Ai,getTasks:Ii};const Oi=s=>{s.service=void 0,s.application=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},Di=(s,e)=>{s.service=e},Li=(s,e)=>{s.credential=e},Pi=(s,e)=>{s.application=e},ji=(s,e)=>{s.applications=e},gi=(s,e)=>{s.config=e},hi=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},Vi=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},ki=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},fi=(s,e)=>{s.tasks=e};var yi={setTasks:fi,setApplication:Pi,setApplications:ji,setConfig:gi,setCredential:Li,setService:Di,setTasksActive:ki,setTasksItems:hi,setTasksTotal:Vi,resetAll:Oi},bi=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const wi={namespaced:!0,state:bi,mutations:yi,actions:Ri},$i=({commit:s})=>{s("resetAll")},Ci=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},xi=({commit:s},e)=>{s("setConfig",e)},Si=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},Ui=({commit:s},e)=>{s("setApplication",e)},Ni=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for flux"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:ke}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),zi=({commit:s},e)=>{s("setTasks",e)},Mi=({commit:s},e)=>{s("setTasksItems",e)},qi=({commit:s},e)=>{s("setTasksTotal",e)},Bi=({commit:s},e)=>{s("setTasksActive",e)},Hi=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for flux"),e.status.getService=E.Request,f.get(ke).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Fi=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");zo.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n,type:"images"},{token:A}).then(l=>{var p;console.debug("get videos tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var Wi={setService:Si,getService:Hi,resetAll:$i,setCredential:Ci,setConfig:xi,setApplication:Ui,getApplications:Ni,setTasks:zi,setTasksItems:Mi,setTasksTotal:qi,setTasksActive:Bi,getTasks:Fi};const Gi=s=>{s.service=void 0,s.application=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},Qi=(s,e)=>{s.service=e},Yi=(s,e)=>{s.credential=e},Xi=(s,e)=>{s.application=e},Ki=(s,e)=>{s.applications=e},Ji=(s,e)=>{s.config=e},Zi=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},ea=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},ta=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},sa=(s,e)=>{s.tasks=e};var oa={setTasks:sa,setApplication:Xi,setApplications:Ki,setConfig:Ji,setCredential:Yi,setService:Qi,setTasksActive:ta,setTasksItems:Zi,setTasksTotal:ea,resetAll:Gi},ra=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const na={namespaced:!0,state:ra,mutations:oa,actions:Wi},ia=({commit:s})=>{s("resetAll")},aa=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},_a=({commit:s},e)=>{s("setConfig",e)},ca=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},ua=({commit:s},e)=>{s("setApplication",e)},da=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for hailuo"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:fe}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),pa=({commit:s},e)=>{s("setTasks",e)},Ea=({commit:s},e)=>{s("setTasksItems",e)},la=({commit:s},e)=>{s("setTasksTotal",e)},ma=({commit:s},e)=>{s("setTasksActive",e)},va=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for hailuo"),e.status.getService=E.Request,f.get(fe).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Aa=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");qo.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n,type:"videos"},{token:A}).then(l=>{var p;console.debug("get videos tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var Ta={setService:ca,getService:va,resetAll:ia,setCredential:aa,setConfig:_a,setApplication:ua,getApplications:da,setTasks:pa,setTasksItems:Ea,setTasksTotal:la,setTasksActive:ma,getTasks:Aa};const Ia=s=>{s.service=void 0,s.application=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},Ra=(s,e)=>{s.service=e},Oa=(s,e)=>{s.credential=e},Da=(s,e)=>{s.application=e},La=(s,e)=>{s.applications=e},Pa=(s,e)=>{s.config=e},ja=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},ga=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},ha=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},Va=(s,e)=>{s.tasks=e};var ka={setTasks:Va,setApplication:Da,setApplications:La,setConfig:Pa,setCredential:Oa,setService:Ra,setTasksActive:ha,setTasksItems:ja,setTasksTotal:ga,resetAll:Ia},fa=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const ya={namespaced:!0,state:fa,mutations:ka,actions:Ta},ba=({commit:s})=>{s("resetAll")},wa=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},$a=({commit:s},e)=>{s("setConfig",e)},Ca=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},xa=({commit:s},e)=>{s("setApplication",e)},Sa=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for headshots"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:ye}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),Ua=({commit:s},e)=>{s("setTasks",e)},Na=({commit:s},e)=>{s("setTasksItems",e)},za=({commit:s},e)=>{s("setTasksTotal",e)},Ma=({commit:s},e)=>{s("setTasksActive",e)},qa=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for headshots"),e.status.getService=E.Request,f.get(ye).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),Ba=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");Ho.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n},{token:A}).then(l=>{var p;console.debug("get videos tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var Ha={setService:Ca,getService:qa,resetAll:ba,setCredential:wa,setConfig:$a,setApplication:xa,getApplications:Sa,setTasks:Ua,setTasksItems:Na,setTasksTotal:za,setTasksActive:Ma,getTasks:Ba};const Fa=s=>{s.service=void 0,s.application=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},Wa=(s,e)=>{s.service=e},Ga=(s,e)=>{s.credential=e},Qa=(s,e)=>{s.application=e},Ya=(s,e)=>{s.applications=e},Xa=(s,e)=>{s.config=e},Ka=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},Ja=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},Za=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},e_=(s,e)=>{s.tasks=e};var t_={setTasks:e_,setApplication:Qa,setApplications:Ya,setConfig:Xa,setCredential:Ga,setService:Wa,setTasksActive:Za,setTasksItems:Ka,setTasksTotal:Ja,resetAll:Fa},Me=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const s_={namespaced:!0,state:Me,mutations:t_,actions:Ha},o_=({commit:s})=>{s("resetAll")},r_=async({commit:s},e)=>{console.debug("set credential",e),s("setCredential",e)},n_=({commit:s},e)=>{s("setConfig",e)},i_=async({commit:s},e)=>{console.debug("set service",e),s("setService",e)},a_=({commit:s},e)=>{s("setApplication",e)},__=async({commit:s,state:e,rootState:o})=>(console.debug("start to get applications for suno"),new Promise((i,r)=>{var c;e.status.getApplications=E.Request,k.getAll({user_id:(c=o==null?void 0:o.user)==null?void 0:c.id,service_id:be}).then(n=>{var v,A,T,l,I,R;console.debug("get applications success",n==null?void 0:n.data),e.status.getApplications=E.Success;const a=(v=n.data.items)==null?void 0:v.find(_=>(_==null?void 0:_.type)===h.PERIOD),u=(A=n.data.items)==null?void 0:A.find(_=>(_==null?void 0:_.type)===h.USAGE);if(a&&(a==null?void 0:a.remaining_amount)){console.debug("set application with Period",a),s("setApplication",a);const _=(T=a==null?void 0:a.credentials)==null?void 0:T.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Period",a),s("setCredential",_)}else if(u){console.debug("set application with Usage",u),s("setApplication",u);const _=(l=u==null?void 0:u.credentials)==null?void 0:l.find(p=>(p==null?void 0:p.host)===window.location.origin);console.debug("set credential with Usage",a),s("setCredential",_)}else console.debug("set application with null",(I=n.data.items)==null?void 0:I[0]),s("setApplication",(R=n.data.items)==null?void 0:R[0]);i(n.data.items),console.debug("save application success",n.data.items[0])}).catch(n=>{e.status.getApplications=E.Error,r(n)})})),c_=({commit:s},e)=>{s("setTasks",e)},u_=({commit:s},e)=>{s("setTasksItems",e)},d_=({commit:s},e)=>{s("setTasksTotal",e)},p_=({commit:s},e)=>{s("setTasksActive",e)},E_=({commit:s},e)=>{s("setAudio",e)},l_=async({commit:s,state:e})=>new Promise((o,i)=>{console.debug("start to get service for suno"),e.status.getService=E.Request,f.get(be).then(r=>{e.status.getService=E.Success,s("setService",r.data),o(r.data)}).catch(r=>{e.status.getService=E.Error,i(r)})}),m_=async({commit:s,state:e,rootState:o},{offset:i,limit:r,createdAtMin:c,createdAtMax:n})=>new Promise((a,u)=>{var T;console.debug("start to get tasks",i,r,n,c);const v=e.credential,A=v==null?void 0:v.token;if(!A)return u("no token");Go.tasks({userId:(T=o==null?void 0:o.user)==null?void 0:T.id,createdAtMin:c,createdAtMax:n,type:"audios"},{token:A}).then(l=>{var p;console.debug("get imagine tasks success",l.data.items);const I=((p=e==null?void 0:e.tasks)==null?void 0:p.items)||[];console.debug("existing items",I);const R=l.data.items||[];console.debug("new items",R);const _=$(I,R);s("setTasksItems",_),s("setTasksTotal",l.data.count),a(l.data.items)}).catch(l=>u(l))});var v_={setService:i_,getService:l_,resetAll:o_,setCredential:r_,setConfig:n_,setApplication:a_,getApplications:__,setTasks:c_,setTasksItems:u_,setTasksTotal:d_,setTasksActive:p_,getTasks:m_,setAudio:E_};const A_=s=>{s.service=void 0,s.application=void 0,s.applications=void 0,s.config=void 0,s.credential=void 0,s.tasks=void 0},T_=(s,e)=>{s.applications=e},I_=(s,e)=>{s.service=e},R_=(s,e)=>{s.credential=e},O_=(s,e)=>{s.application=e},D_=(s,e)=>{s.config=e},L_=(s,e)=>{const o=j(d({},s.tasks),{items:e});s.tasks=o},P_=(s,e)=>{const o=j(d({},s.tasks),{total:e});s.tasks=o},j_=(s,e)=>{const o=j(d({},s.tasks),{active:e});s.tasks=o},g_=(s,e)=>{s.audio=e},h_=(s,e)=>{s.tasks=e};var V_={setTasks:h_,setApplication:O_,setApplications:T_,setConfig:D_,setCredential:R_,setService:I_,setTasksActive:j_,setTasksItems:L_,setTasksTotal:P_,setAudio:g_,resetAll:A_},qe=()=>({service:void 0,application:void 0,applications:void 0,tasks:void 0,audio:{volume:100},credential:void 0,config:void 0,status:{getService:E.None,getApplications:E.None,getTasks:E.None}});const k_={namespaced:!0,state:qe,mutations:V_,actions:v_};var f_=()=>({fingerprint:void 0,currency:"usd",exchange:void 0,user:{},auth:{flow:"redirect",visible:!1},token:{access:void 0,refresh:void 0,expiration:void 0},setting:{},site:{},chatdoc:Ue(),chat:Se(),midjourney:xe(),qrart:Ne(),luma:ze(),suno:qe(),headshots:Me()});const y_=(s,e)=>{s.user=d(d({},s.user),e)},b_=(s,e)=>{s.token=d(d({},s.token),e)},w_=(s,e)=>{s.auth=d(d({},s.auth),e)},$_=(s,e)=>{s.fingerprint=e},C_=s=>{s.token={}},x_=s=>{s.site={}},S_=s=>{s.user={}},U_=(s,e)=>{s.site=d(d({},s.site),e)},N_=(s,e)=>{s.exchange=d(d({},s.exchange),e)},z_=(s,e)=>{s.currency=e};var M_={setUser:y_,setSite:U_,setAuth:w_,setCurrency:z_,setExchange:N_,resetUser:S_,setFingerprint:$_,setToken:b_,resetToken:C_,resetSite:x_};const hd=s=>{try{JSON.parse(s)}catch{return!1}return!0},q_=()=>navigator.userAgent.toLowerCase().includes("micromessenger"),se=()=>window.location.host.includes(F),B_=()=>se()&&window.location.host!==F,Be=s=>s!=null&&s.origin?s==null?void 0:s.origin:se()?J:window.location.host.includes("localhost")?`http://localhost-${et()}`:window.location.origin,H_=({commit:s})=>{s("resetToken"),s("resetUser")},F_=({commit:s})=>{s("resetUser")},W_=({commit:s})=>{s("resetSite")},G_=({commit:s})=>{s("resetToken")},Q_=({commit:s},e)=>{s("setToken",e)},Y_=({commit:s},e)=>{s("setUser",e)},X_=({commit:s},e)=>{s("setCurrency",e)},K_=({commit:s},e)=>{s("setExchange",e)},J_=({commit:s},e)=>{s("setFingerprint",e)},Z_=async({commit:s})=>{console.debug("start to get user");try{s("resetUser");const{data:e}=await Lo.getMe();return s("setUser",e),console.debug("get user success",e),e}catch(e){console.error("get user failed",e)}},ec=async({commit:s})=>{const i=(await(await tt.load()).get()).visitorId;return console.debug("visitorId",i),s("setFingerprint",i),i},tc=async({commit:s},e)=>{console.debug("start to get token using code",e);try{s("resetToken");const{data:o}=await yo.token({code:e});console.debug("get token success",o);const i={access:o.access_token,refresh:o.refresh_token,expiration:o.expires_in};return s("setToken",i),console.debug("get token success",o),i}catch(o){console.error("get token failed",o)}},sc=async({state:s,commit:e},o)=>{if(o.source===o.target)return;const i=`${o.source}-${o.target}`;console.debug("start to get exchange rate",i);try{const{data:r}=await Yo.rate(o);return console.debug("get exchange rate success",r),e("setExchange",{[i]:r.rate}),s.exchange[i]}catch{console.error("get exchange rate failed")}},oc=async({state:s,commit:e,dispatch:o})=>{console.debug("start to initialize site");const i=Be(s==null?void 0:s.site);try{const{data:r}=await $e.initialize({origin:i});e("setSite",r),console.debug("initialize site success",r)}catch(r){console.error("initialize site failed",r),o("login")}},rc=async({state:s,commit:e})=>{var o,i,r;console.debug("start to get site");try{const c=Be(s==null?void 0:s.site),n=(r=(i=(o=await $e.getAll({origin:c}))==null?void 0:o.data)==null?void 0:i.items)==null?void 0:r[0];e("setSite",n),console.debug("get site success",n)}catch(c){console.error("get site failed",c)}},nc=async({state:s,commit:e})=>{var i;const o=(i=s==null?void 0:s.site)==null?void 0:i.origin;e("setAuth",{flow:"redirect"}),Mc({redirect:window.location.pathname,site:o})},ic=async({dispatch:s})=>{await s("resetAll"),await s("chat/resetAll"),await s("midjourney/resetAll"),await s("chatdoc/resetAll"),await s("qrart/resetAll"),await s("login")};var ac={login:nc,logout:ic,resetToken:G_,resetAll:H_,resetUser:F_,resetSite:W_,setToken:Q_,setFingerprint:J_,setCurrency:X_,setUser:Y_,getFingerprint:ec,getExchangeRate:sc,getToken:tc,getUser:Z_,initializeSite:oc,getSite:rc,setExchange:K_};const _c=s=>!!s.token.access,cc=s=>s.user,uc=s=>s.token,dc=s=>s.setting,pc=s=>s.site,Ec=s=>s.fingerprint;var lc={authenticated:_c,user:cc,token:uc,site:pc,fingerprint:Ec,setting:dc},mc={state:f_,mutations:M_,actions:ac,getters:lc},vc=["chat.application","chat.service","chat.credential","chat.conversations","chat.model","chat.modelGroup"],Ac=["midjourney.config","midjourney.credential","midjourney.mode","midjourney.application"],Tc=["chatdoc.repositories","chatdoc.credential","chatdoc.service","chatdoc.application"],Ic=["qrart.config","qrart.credential","qrart.application"],Rc=["luma.credential","luma.application","luma.tasks"],Oc=["pika.credential","pika.application"],Dc=["flux.credential","flux.application"],Lc=["hailuo.credential","hailuo.application"],Pc=["headshots.credential","headshots.application"],jc=["suno.credential","suno.application"],gc=["user","token","setting","locale","dark","site","currency","exchange","fingerprint"];const hc=st(j(d({},mc),{modules:{midjourney:vr,chat:Ur,qrart:xn,luma:ai,pika:wi,flux:na,hailuo:ya,headshots:s_,suno:k_,chatdoc:dn},plugins:[ot({paths:[...gc,...vc,...Ac,...Tc,...Ic,...Rc,...Oc,...Dc,...Lc,...Pc,...jc]})]}));var P=hc;const x=(s=window.location.hostname)=>{const e=rt.parse(s);return e.error||!e.listed||e.domain===s?s:"."+e.domain};window.getDomain=x;const Vc=async()=>{const s=new URLSearchParams(window.location.search),e=s.get("inviter_id");if(e){const c=new Date;c.setDate(c.getDate()+7),console.debug("set INVITER_ID to cookies",e),z("INVITER_ID",e,{expires:c,path:"/",domain:x()})}const o=s.get("theme");if(o)console.log("set THEME to cookies",o),z("THEME",o,{path:"/",domain:x()});else if(!y("THEME")){const c=window.matchMedia("(prefers-color-scheme: dark)").matches;console.debug("set THEME to cookies",c?"dark":"light"),z("THEME",c?"dark":"light",{path:"/",domain:x()})}const i=s.get("lang");let r;i?r=ie(i):y("LOCALE")||(r=ie()),r&&(console.debug("set LOCALE to cookies",r),z("LOCALE",r,{path:"/",domain:x()}))},kc=async()=>{var o;const s=((o=P.state.site)==null?void 0:o.title)||"";let e=document.querySelector("title");e||(e=document.createElement("title"),document.head.appendChild(e)),e.innerHTML=s},fc=async()=>{var o;const s=((o=P.state.site)==null?void 0:o.description)||"";let e=document.querySelector('meta[name="description"]');e||(e=document.createElement("meta"),e.setAttribute("name","description"),document.head.appendChild(e)),e.setAttribute("content",s)},yc=async()=>{var o,i;const s=((i=(o=P.state.site)==null?void 0:o.keywords)==null?void 0:i.join(","))||"";let e=document.querySelector('meta[name="keywords"]');e||(e=document.createElement("meta"),e.setAttribute("name","keywords"),document.head.appendChild(e)),e.setAttribute("content",s)},bc=async()=>{var o;const s=((o=P.state.site)==null?void 0:o.favicon)||"";let e=document.querySelector('link[rel="icon"]');e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=s||Ro},wc=async()=>{await P.dispatch("getSite");const s=P.state.site;console.debug("site",s),s!=null&&s.origin||await P.dispatch("initializeSite")},$c=async()=>{const e=new URLSearchParams(window.location.search).get("code");if(console.debug("get code",e),e){console.debug("start get token by code",e);const o=await P.dispatch("getToken",e);console.debug("success get token",o)}},Cc=async()=>{const s=P.state.token;if(!(s!=null&&s.access)){console.debug("no access token, skip get user");return}console.debug("start to get user");const e=await P.dispatch("getUser");console.debug("get user",e)},xc=async()=>{const s=y("LOCALE");console.debug("initialize currency",s);const e=we;let o="usd";s&&e[s]&&(o=e[s]),console.debug("set currency",o),await P.dispatch("setCurrency",o)},Sc=async()=>{const s=y("LOCALE"),e=we;if(!s||!e[s])return;const o=e[s],r={source:"usd",target:o};console.debug("initialize exchange rate",r),await P.dispatch("getExchangeRate",r)},Uc=async()=>{if(se()&&!B_()&&q_()){console.debug("redirect to sub domain with prefix");const s=new Date().toISOString().split("T")[0].replace(/-/g,""),e=window.location.href.replace(F,`${s}.${F}`);console.debug("redirect to",e),window.location.href=e}},Nc=async()=>{await P.dispatch("getFingerprint")},zc=()=>{var o,i,r,c,n,a,u,v,A;return(r=(i=(o=P==null?void 0:P.state)==null?void 0:o.site)==null?void 0:i.distribution)!=null&&r.force_inviter_id?(a=(n=(c=P==null?void 0:P.state)==null?void 0:c.site)==null?void 0:n.distribution)==null?void 0:a.force_inviter_id:new URLSearchParams(window.location.search).get("inviter_id")||y("INVITER_ID")||((A=(v=(u=P==null?void 0:P.state)==null?void 0:u.site)==null?void 0:v.distribution)==null?void 0:A.default_inviter_id)},Mc=({redirect:s="/",site:e=window.location.origin})=>{const o=Io(),i=W(),r=zc(),c=`${o}/auth/callback?redirect=${s}`,n=`${i}/auth/login`,a=d(d({site:e},r?{inviter_id:r}:{}),c?{redirect:c}:{}),u=`${n}?${new URLSearchParams(a).toString()}`;window.location.href=u},qc="index",Bc="auth-login",Hc="auth-callback",He="site-index",Fc="chat-conversation",ae="chat-conversation-new",Wc="midjourney-index",Gc="qrart-index",Vd="qrart-history",Qc="luma-index",kd="luma-history",Yc="pika-index",fd="pika-history",Xc="flux-index",Kc="hailuo-index",yd="hailuo-history",Jc="headshots-index",bd="headshots-history",Zc="chatdoc-index",eu="chatdoc-conversation",tu="chatdoc-conversation-new",su="chatdoc-setting",ou="chatdoc-knowledge",ru="suno-index",wd="suno-history",nu="profile-index",iu="console-root",au="console-order-list",_u="console-order-detail",_e="console-application-list",cu="console-application-extra",uu="console-application-subscribe",du="distribution-index",pu="distribution-history",Eu="distribution-invitees",lu="console-usage-list";var mu={path:"/auth",component:()=>t(()=>import("./Auth.d52583ab.js"),["assets/Auth.d52583ab.js","assets/Auth.fd7a68cc.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js","assets/vendor-fortawesome.ea56e829.js"]),children:[{path:"login",name:Bc,component:()=>t(()=>import("./Login.c6181d49.js"),["assets/Login.c6181d49.js","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js","assets/vendor-fortawesome.ea56e829.js"])},{path:"callback",name:Hc,component:()=>t(()=>import("./Callback.970d9e08.js"),["assets/Callback.970d9e08.js","assets/Callback.dcef08ed.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js","assets/vendor-fortawesome.ea56e829.js"])}]},vu={path:"/console",meta:{auth:!0},component:()=>t(()=>import("./Console.c954b40f.js"),["assets/Console.c954b40f.js","assets/Console.5c756b88.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:iu,redirect:{name:_e}},{path:"orders",name:au,component:()=>t(()=>import("./List.7d2f41b3.js"),["assets/List.7d2f41b3.js","assets/List.b9ed2f01.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/order.91c6f9e0.js","assets/Pagination.94f19837.js","assets/Pagination.a75eb2f0.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/order.aa35b6fb.js","assets/price.85f8f286.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])},{path:"orders/:id",name:_u,component:()=>t(()=>import("./Detail.b7fdaf4c.js"),["assets/Detail.b7fdaf4c.js","assets/Detail.c6180471.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/order.91c6f9e0.js","assets/order.aa35b6fb.js","assets/vendor-qrcode.3f236d35.js","assets/price.85f8f286.js","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js"])},{path:"applications",name:_e,component:()=>t(()=>import("./List.2a7373c7.js"),["assets/List.2a7373c7.js","assets/List.6e2820e9.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/credential.26787c24.js","assets/Pagination.94f19837.js","assets/Pagination.a75eb2f0.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])},{path:"applications/:id/extra",name:cu,component:()=>t(()=>import("./Extra.4db05f52.js"),["assets/Extra.4db05f52.js","assets/Extra.8ae37a97.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/api.f60246f3.js","assets/price.85f8f286.js","assets/order.91c6f9e0.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js","assets/vendor-fortawesome.ea56e829.js"])},{path:"applications/:id/subscribe",name:uu,component:()=>t(()=>import("./Subscribe.7f61cf5f.js"),["assets/Subscribe.7f61cf5f.js","assets/Subscribe.7bc86667.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/api.f60246f3.js","assets/order.91c6f9e0.js","assets/price.85f8f286.js","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])},{path:"usages",name:lu,component:()=>t(()=>import("./List.4544ff35.js"),["assets/List.4544ff35.js","assets/List.f8805050.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/credential.26787c24.js","assets/Pagination.94f19837.js","assets/Pagination.a75eb2f0.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Au={path:"/chat",component:()=>t(()=>import("./Main.de69edb3.js"),["assets/Main.de69edb3.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",redirect:{name:ae}},{path:"conversations",name:ae,component:()=>t(()=>import("./Conversation.50b65136.js"),["assets/Conversation.50b65136.js","assets/Conversation.499bd9c5.css","assets/vendor-axios.168e6950.js","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/MarkdownRenderer.733db8ec.js","assets/MarkdownRenderer.f404d95c.css","assets/vendor-markdown.421d17f1.js","assets/vendor-highlight.js.6ee9ffbc.js","assets/vendor-highlight.js.4e8df926.css","assets/vendor-fortawesome.ea56e829.js","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/vendor-qrcode.3f236d35.js"])},{path:"conversations/:id",name:Fc,component:()=>t(()=>import("./Conversation.50b65136.js"),["assets/Conversation.50b65136.js","assets/Conversation.499bd9c5.css","assets/vendor-axios.168e6950.js","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/MarkdownRenderer.733db8ec.js","assets/MarkdownRenderer.f404d95c.css","assets/vendor-markdown.421d17f1.js","assets/vendor-highlight.js.6ee9ffbc.js","assets/vendor-highlight.js.4e8df926.css","assets/vendor-fortawesome.ea56e829.js","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/vendor-qrcode.3f236d35.js"])}]},Tu={path:"/midjourney",meta:{auth:!0},component:()=>t(()=>import("./Main.de69edb3.js"),["assets/Main.de69edb3.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Wc,component:()=>t(()=>import("./Index.58c94739.js"),["assets/Index.58c94739.js","assets/Index.b884977d.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/ImageNavigator.0e4648e2.js","assets/ImageNavigator.16238971.css","assets/InfoIcon.000d8723.js","assets/InfoIcon.26ac9f9c.css","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Iu={path:"/distribution",meta:{auth:!0},component:()=>t(()=>import("./Main.de69edb3.js"),["assets/Main.de69edb3.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:du,component:()=>t(()=>import("./Index.48af7c0b.js"),["assets/Index.48af7c0b.js","assets/Index.a8112020.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/distribution.5cd82324.js","assets/price.85f8f286.js","assets/vendor-qrcode.3f236d35.js","assets/vendor-axios.168e6950.js"])},{path:"history",name:pu,component:()=>t(()=>import("./History.54b7b9c5.js"),["assets/History.54b7b9c5.js","assets/History.9fc30c32.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Pagination.94f19837.js","assets/Pagination.a75eb2f0.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/distribution.5cd82324.js","assets/price.85f8f286.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])},{path:"invitees",name:Eu,component:()=>t(()=>import("./Invitees.cbbdd817.js"),["assets/Invitees.cbbdd817.js","assets/Invitees.0568a6f7.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Pagination.94f19837.js","assets/Pagination.a75eb2f0.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Ru={path:"/chatdoc",meta:{auth:!0},component:()=>t(()=>import("./Main.de69edb3.js"),["assets/Main.de69edb3.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Zc,component:()=>t(()=>import("./Index.88fbdd26.js"),["assets/Index.88fbdd26.js","assets/Index.877f522f.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Chatdoc.6097dd33.js","assets/Chatdoc.b833a665.css","assets/vendor-fortawesome.ea56e829.js","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])},{path:"repositories/:repositoryId/conversations",name:tu,component:()=>t(()=>import("./Conversation.73bd72ea.js"),["assets/Conversation.73bd72ea.js","assets/Conversation.c2ebf796.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Chatdoc.6097dd33.js","assets/Chatdoc.b833a665.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/MarkdownRenderer.733db8ec.js","assets/MarkdownRenderer.f404d95c.css","assets/vendor-markdown.421d17f1.js","assets/vendor-highlight.js.6ee9ffbc.js","assets/vendor-highlight.js.4e8df926.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-qrcode.3f236d35.js"])},{path:"repositories/:repositoryId/conversations/:conversationId",name:eu,component:()=>t(()=>import("./Conversation.73bd72ea.js"),["assets/Conversation.73bd72ea.js","assets/Conversation.c2ebf796.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Chatdoc.6097dd33.js","assets/Chatdoc.b833a665.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/MarkdownRenderer.733db8ec.js","assets/MarkdownRenderer.f404d95c.css","assets/vendor-markdown.421d17f1.js","assets/vendor-highlight.js.6ee9ffbc.js","assets/vendor-highlight.js.4e8df926.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-qrcode.3f236d35.js"])},{path:"repositories/:repositoryId/manage",name:ou,component:()=>t(()=>import("./Manage.e006fa0d.js"),["assets/Manage.e006fa0d.js","assets/Manage.07d2ae70.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Chatdoc.6097dd33.js","assets/Chatdoc.b833a665.css","assets/vendor-fortawesome.ea56e829.js","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])},{path:"repositories/:repositoryId",name:su,component:()=>t(()=>import("./Setting.fcd14b49.js"),["assets/Setting.fcd14b49.js","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Chatdoc.6097dd33.js","assets/Chatdoc.b833a665.css","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Ou={path:"/qrart",meta:{auth:!0},component:()=>t(()=>import("./Main.de69edb3.js"),["assets/Main.de69edb3.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Gc,component:()=>t(()=>import("./Index.366c909b.js"),["assets/Index.366c909b.js","assets/Index.360c148a.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/InfoIcon.000d8723.js","assets/InfoIcon.26ac9f9c.css","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Du={path:"/luma",meta:{auth:!0},component:()=>t(()=>import("./Main.de69edb3.js"),["assets/Main.de69edb3.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Qc,component:()=>t(()=>import("./Index.4e8bfabb.js"),["assets/Index.4e8bfabb.js","assets/Index.293bbe87.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/VideoNavigator.5cb13b7f.js","assets/VideoNavigator.4d75a1bf.css","assets/InfoIcon.000d8723.js","assets/InfoIcon.26ac9f9c.css","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Lu={path:"/pika",meta:{auth:!0},component:()=>t(()=>import("./Main.de69edb3.js"),["assets/Main.de69edb3.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Yc,component:()=>t(()=>import("./Index.35340919.js"),["assets/Index.35340919.js","assets/Index.fd7c5169.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/VideoNavigator.5cb13b7f.js","assets/VideoNavigator.4d75a1bf.css","assets/InfoIcon.000d8723.js","assets/InfoIcon.26ac9f9c.css","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Pu={path:"/flux",meta:{auth:!0},component:()=>t(()=>import("./Main.de69edb3.js"),["assets/Main.de69edb3.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Xc,component:()=>t(()=>import("./Index.eb88999d.js"),["assets/Index.eb88999d.js","assets/Index.55013973.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/ImageNavigator.0e4648e2.js","assets/ImageNavigator.16238971.css","assets/InfoIcon.000d8723.js","assets/InfoIcon.26ac9f9c.css","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},ju={path:"/hailuo",meta:{auth:!0},component:()=>t(()=>import("./Main.de69edb3.js"),["assets/Main.de69edb3.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Kc,component:()=>t(()=>import("./Index.a4d159f9.js"),["assets/Index.a4d159f9.js","assets/Index.f68215c5.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/VideoNavigator.5cb13b7f.js","assets/VideoNavigator.4d75a1bf.css","assets/InfoIcon.000d8723.js","assets/InfoIcon.26ac9f9c.css","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},gu={path:"/headshots",meta:{auth:!0},component:()=>t(()=>import("./Main.de69edb3.js"),["assets/Main.de69edb3.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:Jc,component:()=>t(()=>import("./Index.0a0b3473.js"),["assets/Index.0a0b3473.js","assets/Index.50894ed5.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/InfoIcon.000d8723.js","assets/InfoIcon.26ac9f9c.css","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/CopyToClipboard.86cc641d.js","assets/CopyToClipboard.12a4b594.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},hu={path:"/suno",meta:{auth:!0},component:()=>t(()=>import("./Main.de69edb3.js"),["assets/Main.de69edb3.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:ru,component:()=>t(()=>import("./Index.0a17bd4d.js"),["assets/Index.0a17bd4d.js","assets/Index.9deb653e.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/Status.00cb3a46.js","assets/Status.104093f6.css","assets/InfoIcon.000d8723.js","assets/InfoIcon.26ac9f9c.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},Vu={path:"/site",component:()=>t(()=>import("./Main.de69edb3.js"),["assets/Main.de69edb3.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:He,component:()=>t(()=>import("./Index.fa5bf33f.js"),["assets/Index.fa5bf33f.js","assets/Index.278c7793.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},ku={path:"/profile",component:()=>t(()=>import("./Main.de69edb3.js"),["assets/Main.de69edb3.js","assets/Main.1968e108.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/Navigator.0c9a3f05.js","assets/Navigator.07d34811.css","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"]),children:[{path:"",name:nu,component:()=>t(()=>import("./Index.ce4977d9.js"),["assets/Index.ce4977d9.js","assets/Index.0014e6b1.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/DarkSelector.c53c8b77.js","assets/DarkSelector.07c1e7ad.css","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]};const fu=[{path:"/",component:()=>t(()=>import("./Index.82db5785.js"),["assets/Index.82db5785.js","assets/Index.57e792f1.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-vue-dark-switch.dc692e95.js","assets/vendor-vue-dark-switch.90267f56.css","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js","assets/vendor-fortawesome.ea56e829.js"]),children:[{path:"",name:qc,component:()=>t(()=>import("./Index.03aecd6b.js"),["assets/Index.03aecd6b.js","assets/Index.05213a21.css","assets/vendor-others.56d45bbc.js","assets/vendor-others.fbff9a31.css","assets/vendor-@vue.01066951.js","assets/vendor-element-plus.0a44791e.js","assets/vendor-fortawesome.ea56e829.js","assets/vendor-axios.168e6950.js","assets/vendor-qrcode.3f236d35.js"])}]},vu,Ru,mu,Au,Ou,Du,Lu,Pu,ju,gu,hu,Tu,Iu,Vu,ku],Fe=nt({history:it(),routes:fu});Fe.beforeEach(async(s,e,o)=>{const i=y("LOCALE")||Z;return await so(i),o()});var We=(s,e)=>{const o=s.__vccOpts||s;for(const[i,r]of e)o[i]=r;return o};const yu=ce({name:"AuthPanel",components:{ElDialog:vt,QrCode:mt},data(){return{showQR:!1,qrLink:""}},computed:{iframeUrl(){return`${W()}/auth/login?inviter_id=${this.inviterId}`},inviterId(){var e,o,i,r,c,n,a,u,v,A,T,l,I;return(r=(i=(o=(e=this.$store)==null?void 0:e.state)==null?void 0:o.site)==null?void 0:i.distribution)!=null&&r.force_inviter_id?(u=(a=(n=(c=this.$store)==null?void 0:c.state)==null?void 0:n.site)==null?void 0:a.distribution)==null?void 0:u.force_inviter_id:((v=this.$route.query.inviter_id)==null?void 0:v.toString())||y("INVITER_ID")||((I=(l=(T=(A=this.$store)==null?void 0:A.state)==null?void 0:T.site)==null?void 0:l.distribution)==null?void 0:I.default_inviter_id)},authenticated(){return!!this.$store.state.token.access}},mounted(){window.addEventListener("message",async s=>{var e;if(s.origin===W()){if(console.debug("received from child page",s),s.data.name==="login"){const o=s.data.data,i={access:o.access_token,refresh:o.refresh_token,expiration:o.expires_in};await this.$store.dispatch("setToken",i),await this.$store.dispatch("getUser"),(e=this.$store.state.site)!=null&&e.origin||(await this.$store.dispatch("initializeSite"),await this.$router.push({name:He})),window.location.reload()}if(s.data.name==="show_qr"){const o=s.data.data;this.qrLink=o.qrLink,this.showQR=!0}}})}}),bu=["src"];function wu(s,e,o,i,r,c){const n=C("el-dialog"),a=C("qr-code");return S(),ct(ut,null,[X(n,{"model-value":!s.authenticated,"modal-class":"dialog",width:"400px","show-close":!1,"close-on-press-escape":!1,"close-on-click-modal":!1},{default:H(()=>[dt("iframe",{width:"360",height:"560",src:s.iframeUrl,frameborder:"0"},null,8,bu)]),_:1},8,["model-value"]),X(n,{modelValue:s.showQR,"onUpdate:modelValue":e[0]||(e[0]=u=>s.showQR=u),width:"400px","show-close":!0},{default:H(()=>[s.qrLink?(S(),q(a,{key:0,value:s.qrLink,width:230,height:230,class:"qrcode",type:"image/jpeg",color:{dark:"#000000ff",light:"#ffffffff"}},null,8,["value"])):K("v-if",!0)]),_:1},8,["modelValue"])],64)}var $u=We(yu,[["render",wu],["__scopeId","data-v-6c178208"],["__file","/home/runner/work/Nexior/Nexior/src/components/common/AuthPanel.vue"]]);const Cu=ce({components:{ElConfigProvider:At,AuthPanel:$u,ElTag:Tt},data(){return{isTest:U,locale:It}},computed:{authPopup(){return this.$store.state.auth.flow==="popup"&&this.$store.state.auth.visible}}});function xu(s,e,o,i,r,c){const n=C("auth-panel"),a=C("router-view"),u=C("el-tag"),v=C("el-config-provider");return S(),q(v,{locale:s.locale},{default:H(()=>[s.authPopup?(S(),q(n,{key:0})):K("v-if",!0),X(a),s.isTest?(S(),q(u,{key:1,size:"large",class:"tag",type:"warning"},{default:H(()=>[pt(Et(s.$t("index.button.testEnv")),1)]),_:1})):K("v-if",!0)]),_:1},8,["locale"])}var Su=We(Cu,[["render",xu],["__file","/home/runner/work/Nexior/Nexior/src/App.vue"]]);var Uu={install:(s,e)=>{s.config.globalProperties.$dayjs={format(o,i=""){return at(o).format(i||e.formatString)}}}};m.add(Ot);m.add(Dt);m.add(Lt);m.add(Pt);m.add(jt);m.add(gt);m.add(ht);m.add(Vt);m.add(kt);m.add(ft);m.add(yt);m.add(bt);m.add(wt);m.add($t);m.add(Ct);m.add(xt);m.add(St);m.add(Ut);m.add(Nt);m.add(zt);m.add(Mt);m.add(qt);m.add(Bt);m.add(Ht);m.add(Ft);m.add(Wt);m.add(Gt);m.add(Qt);m.add(Yt);m.add(Xt);m.add(Kt);m.add(Jt);m.add(Zt);m.add(es);m.add(ts);m.add(ss);m.add(os);m.add(rs);m.add(ns);m.add(is);m.add(as);m.add(_s);m.add(cs);m.add(us);m.add(ds);m.add(ps);m.add(Es);m.add(ls);m.add(ms);m.add(vs);m.add(As);m.add(Ts);m.add(Is);m.add(Rs);m.add(Os);m.add(Ds);m.add(Ls);m.add(Ps);m.add(js);m.add(gs);m.add(hs);m.add(Vs);m.add(ks);m.add(fs);m.add(ys);m.add(bs);m.add(ws);m.add($s);m.add(Cs);m.add(xs);m.add(Ss);m.add(Us);m.add(Ns);m.add(zs);m.add(Ms);m.add(qs);m.add(Bs);m.add(Hs);m.add(Fs);const Nu=async()=>{await Uc(),await Vc(),await $c(),await Cc(),await wc(),xc(),Sc(),kc(),fc(),yc(),bc(),Nc();const s=lt(Su);s.use(Fe),s.use(P),s.use(L),s.use(Uu,{formatString:"YYYY-MM-DD HH:mm:ss"}),s.directive("loading",Rt),s.mount("#app"),console.debug("app mounted"),window.app=s};Nu();export{hd as $,He as A,g as B,P as C,gd as D,uu as E,k as F,_u as G,cu as H,h as I,f as J,Po as K,Gu as L,To as M,Yu as N,vo as O,E as P,go as Q,qc as R,Js as S,Xu as T,De as U,ve as V,Te as W,te as X,Re as Y,Ie as Z,We as _,Bc as a,Qu as a0,Ae as a1,t as a2,L as a3,Ku as a4,Zu as a5,sd as a6,Ju as a7,ed as a8,Vo as a9,xo as aA,Dd as aB,Od as aC,Rd as aD,Uo as aE,Ld as aF,zo as aG,Pd as aH,qo as aI,Ho as aJ,jd as aK,Go as aL,$e as aM,td as aa,pu as ab,Eu as ac,Lo as ad,ou as ae,tu as af,b as ag,eu as ah,id as ai,ad as aj,od as ak,rd as al,_d as am,pd as an,Ed as ao,ld as ap,md as aq,ud as ar,cd as as,vd as at,dd as au,nd as av,$o as aw,Ad as ax,Id as ay,Td as az,iu as b,W as c,_e as d,au as e,lu as f,x as g,du as h,se as i,ae as j,Fc as k,Wc as l,Gc as m,Vd as n,ru as o,wd as p,Qc as q,Yc as r,so as s,Kc as t,kd as u,fd as v,yd as w,Jc as x,bd as y,nu as z};
|