diff --git a/ui/dist/assets/HomeView-Bgpg7yOf.css b/ui/dist/assets/HomeView-Bgpg7yOf.css new file mode 100644 index 0000000..5f8d2e2 --- /dev/null +++ b/ui/dist/assets/HomeView-Bgpg7yOf.css @@ -0,0 +1 @@ +.section[data-v-bcc2a07c]{min-height:40vh;display:flex;flex-direction:row;align-items:end;position:relative}.section[data-v-bcc2a07c] .info[data-v-bcc2a07c]{flex:1;display:flex;flex-direction:column;align-items:start}.section[data-v-bcc2a07c][data-v-bcc2a07c]:nth-child(2n){flex-direction:row-reverse}.section[data-v-bcc2a07c][data-v-bcc2a07c]:nth-child(2n) .info[data-v-bcc2a07c]{align-items:flex-end}.section[data-v-bcc2a07c] .icon span[data-v-bcc2a07c]{font-size:10rem}.section[data-v-bcc2a07c][data-v-bcc2a07c]:not(:last-child){border-bottom:1px solid var(--bg-muted);padding-bottom:2em;margin-bottom:2em} diff --git a/ui/dist/assets/HomeView-CJc2c40X.css b/ui/dist/assets/HomeView-CJc2c40X.css deleted file mode 100644 index aa96b84..0000000 --- a/ui/dist/assets/HomeView-CJc2c40X.css +++ /dev/null @@ -1 +0,0 @@ -.section[data-v-3bf09066]{min-height:40vh;display:flex;flex-direction:row;align-items:end;position:relative}.section[data-v-3bf09066] .info[data-v-3bf09066]{flex:1;display:flex;flex-direction:column;align-items:start}.section[data-v-3bf09066][data-v-3bf09066]:nth-child(2n){flex-direction:row-reverse}.section[data-v-3bf09066][data-v-3bf09066]:nth-child(2n) .info[data-v-3bf09066]{align-items:flex-end}.section[data-v-3bf09066] .icon span[data-v-3bf09066]{font-size:10rem}.section[data-v-3bf09066][data-v-3bf09066]:not(:last-child){border-bottom:1px solid var(--bg-muted);padding-bottom:2em;margin-bottom:2em}a button[data-v-3bf09066]{display:flex;align-items:center;gap:1em} diff --git a/ui/dist/assets/HomeView-DsmSFpWt.js b/ui/dist/assets/HomeView-DsmSFpWt.js new file mode 100644 index 0000000..b385d6d --- /dev/null +++ b/ui/dist/assets/HomeView-DsmSFpWt.js @@ -0,0 +1 @@ +import{_ as d,r as l,o as i,c as _,a as s,b as n,w as c,p as r,d as u,e as a}from"./index-BbSnuvgB.js";const p={},e=o=>(r("data-v-bcc2a07c"),o=o(),u(),o),m={class:"section"},h={class:"info"},f=e(()=>s("h1",null,"Announcements",-1)),b=e(()=>s("button",null,[s("span",{class:"material-symbols-rounded"},"add"),a(" Create Announcement ")],-1)),v=e(()=>s("div",{class:"icon"},[s("span",{class:"material-symbols-rounded"},"campaign")],-1)),x={class:"section"},k={class:"info"},w=e(()=>s("h1",null,"Discord User Management",-1)),y=e(()=>s("button",null,[s("span",{class:"material-symbols-rounded"},"explore"),a(" Explore ")],-1)),I=e(()=>s("div",{class:"icon"},[s("span",{class:"material-symbols-rounded"},"group")],-1));function V(o,g){const t=l("router-link");return i(),_("main",null,[s("div",m,[s("div",h,[f,n(t,{to:"/announcements"},{default:c(()=>[b]),_:1})]),v]),s("div",x,[s("div",k,[w,n(t,{to:"/discord/users"},{default:c(()=>[y]),_:1})]),I])])}const C=d(p,[["render",V],["__scopeId","data-v-bcc2a07c"]]);export{C as default}; diff --git a/ui/dist/assets/HomeView-bL0hbgjZ.js b/ui/dist/assets/HomeView-bL0hbgjZ.js deleted file mode 100644 index 2c80401..0000000 --- a/ui/dist/assets/HomeView-bL0hbgjZ.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,r as a,o as c,c as d,a as s,b as l,w as i,p as r,d as _,e as p}from"./index-C8rYtQ9w.js";const u={},o=e=>(r("data-v-3bf09066"),e=e(),_(),e),m={class:"section"},h={class:"info"},f=o(()=>s("h1",null,"Announcements",-1)),v=o(()=>s("button",null,[s("span",{class:"material-symbols-rounded"},"add"),p(" Create Announcement ")],-1)),b=o(()=>s("div",{class:"icon"},[s("span",{class:"material-symbols-rounded"},"campaign")],-1)),x=o(()=>s("div",{class:"section"},[s("div",{class:"info"},[s("h1",null,"Discord User Management"),s("p",null,"Soon")]),s("div",{class:"icon"},[s("span",{class:"material-symbols-rounded"},"group")])],-1));function k(e,w){const n=a("router-link");return c(),d("main",null,[s("div",m,[s("div",h,[f,l(n,{to:"/announcements"},{default:i(()=>[v]),_:1})]),b]),x])}const S=t(u,[["render",k],["__scopeId","data-v-3bf09066"]]);export{S as default}; diff --git a/ui/dist/assets/api-Bz-ih7aU.js b/ui/dist/assets/api-Bz-ih7aU.js new file mode 100644 index 0000000..baa92b6 --- /dev/null +++ b/ui/dist/assets/api-Bz-ih7aU.js @@ -0,0 +1 @@ +import{J as c,g as i}from"./index-BbSnuvgB.js";const d=c("counter",()=>{const e=i([]),n=async()=>{e.value=await u.announements.getAll()};return n(),{announcements:e,update:n}}),m=["stair","non-stair","server","test"],p=async e=>{if(e)return new Promise((n,t)=>{const a=new FileReader;a.onload=()=>{const s=a.result;n(s.replace(/^data:image\/[a-z]+;base64,/,""))},a.onerror=t,a.readAsDataURL(e)})},o=()=>{d().update()},u={announements:{async getAll(){return fetch("/api/announcements").then(e=>e.json())},async create(e){const t=await(await fetch("/api/announcements",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return o(),t},async get(e){return fetch(`/api/announcements/${e}`).then(n=>n.json())},async update(e){const t=await(await fetch(`/api/announcements/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return o(),t},async delete(e){await fetch(`/api/announcements/${e}`,{method:"DELETE"}).then(o)},async getTypes(){return fetch("/api/announcements/types").then(e=>e.json())},async publish(e,n,t,a,s,r){fetch(`/api/announcements/${e}/publish`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,scope:n,server:t,type:a,persona:s,image:await p(r)})})},async discordServers(){return fetch("/api/announcements/discord/servers").then(e=>e.json())},async personas(){return fetch("/api/announcements/personas").then(e=>e.json())}},db:{async students(){return fetch("/api/students").then(e=>e.json())},async updateStudents(e){await fetch("/api/students",{method:"POST",headers:{"Content-Type":"application/xml"},body:e})},async updateModules(e){await fetch("/api/modules",{method:"POST",headers:{"Content-Type":"application/xml"},body:e})},async updateDegreeProgrammes(e){await fetch("/api/degree-programmes",{method:"POST",headers:{"Content-Type":"application/xml"},body:e})}}};export{m as A,u as a,d as u}; diff --git a/ui/dist/assets/index-B85zQkOr.css b/ui/dist/assets/index-B85zQkOr.css new file mode 100644 index 0000000..0886f46 --- /dev/null +++ b/ui/dist/assets/index-B85zQkOr.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css?family=Roboto:400,500,700";:root{--c-green-1: #0b6a5b;--c-green-2: #107d62;--c-green-3: #15906a;--c-green-4: #1aa272;--c-green-5: #1fb579;--c-pink-1: #b71d5c;--c-pink-2: #c32f6a;--c-pink-3: #cf4279;--c-pink-4: #db5487;--c-pink-5: #e76695;--c-yellow-1: #d68a05;--c-yellow-2: #dd9513;--c-yellow-3: #e4a020;--c-yellow-4: #ecab2e;--c-yellow-5: #f3b63b;--c-black-1: #000000;--c-black-2: #09090b;--c-black-3: #111115;--c-black-4: #1a1a20;--c-black-5: #22222a;--c-white-1: #ffffff;--c-white-2: #f9fbfc;--c-white-3: #f3f7f8;--c-white-4: #edf2f4;--c-white-5: #e7eef1;--c-stair-dark: var(--c-green-1);--c-stair-green: #04956c;--c-stair-green-20: #04956c33;--c-stair-lime: var(--c-green-5);--c-stair-graphite: var(--c-black-5);--c-stair-grey: var(--c-white-5);--c-stair-burgundy: var(--c-pink-1);--c-stair-ping: #cf4279;--c-stair-berry: #e76695;--c-stair-mustard: var(--c-yellow-2);--c-stair-yellow: var(--c-yellow-5)}:root{--bg-base: var(--c-white-1);--bg-soft: var(--c-white-3);--bg-muted: var(--c-white-5);--border: var(--c-black-3);--border-hover: var(--c-black-4);--fg-text: var(--c-stair-graphite);--fg-text-muted: #6c6c6c;--c-accent: var(--c-stair-green);--c-accent-hover: var(--c-stair-lime)}@media (prefers-color-scheme: dark){:root{--bg-base: var(--c-black-1);--bg-soft: var(--c-black-3);--bg-muted: var(--c-black-5);--border: var(--c-white-3);--border-hover: var(--c-white-4);--fg-text: var(--c-white-1)}}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}@font-face{font-family:Ingra;font-weight:400;font-style:normal;font-display:auto;src:local("Ingra"),url(/fonts/Ingra/Ingra-Regular.woff2) format("woff2")}@font-face{font-family:Ingra;font-weight:700;font-style:normal;font-display:auto;src:local("Ingra"),url(/fonts/Ingra/Ingra-Bold.woff2) format("woff2")}body{min-height:100vh;min-height:100svh;color:var(--fg-text);background:var(--bg-base);font-family:Ingra,Arial,Helvetica,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}header{background:var(--c-stair-lime);color:var(--c-white-1)}h1,.title{font-size:53px;font-weight:700;line-height:1.2;color:var(--c-stair-green)}h2,.subtitle{font-size:25px;font-weight:700;line-height:1.2;color:var(--fg-text)}h3,.lead{font-size:19px;font-weight:400;line-height:1.2;color:var(--fg-text)}body{font-size:12px;font-weight:400;line-height:1.25;color:var(--fg-text)}strong{font-weight:600}a{color:var(--c-accent);text-decoration:none}a:hover{color:var(--c-accent-hover)}input,textarea,select{font-size:1em;font-weight:400;font-family:Ingra,Arial,Helvetica,sans-serif;line-height:1.25;color:var(--fg-text);background:var(--bg-soft);border:1px solid var(--bg-muted);border-radius:4px;padding:8px 12px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--c-accent)}textarea{min-height:20ch}button{font-size:1em;font-weight:700;font-family:Ingra,Arial,Helvetica,sans-serif;line-height:1.25;color:var(--c-white-1);background:var(--c-stair-green);border:none;border-radius:.5em;padding:1em 2em;cursor:pointer;outline:none}button:hover{background:var(--c-stair-lime)}button.secondary{background:inherit;color:var(--c-stair-green);border:1px solid var(--bg-muted)}button.secondary:hover{background:var(--bg-base);border:1px solid var(--c-stair-green)}button.danger{background:var(--c-stair-burgundy)}button.danger:hover{background:var(--c-stair-berry)}button.warning{background:var(--c-stair-mustard)}button.warning:hover{background:var(--c-stair-yellow)}button:disabled{background:var(--c-stair-grey);cursor:not-allowed}button:disabled:hover{background:var(--c-white-4)}.card{background:var(--bg-soft);border:1px solid var(--bg-muted);border-radius:4px;padding:1em;margin:1em 0}button:has(span.material-symbols-rounded){display:flex;align-items:center;gap:1em}.discord-buttons a.discord-button,.discord-buttons button.discord-button{color:#fff;display:flex;align-items:center;justify-content:center;min-height:32px;min-width:60px;font-size:14px;font-weight:500;font-family:Roboto,sans-serif;line-height:16px;margin:4px 8px 4px 0;padding:2px 16px;border:none;border-radius:3px;box-sizing:border-box;cursor:pointer;transition:background-color .15s ease,color .15s ease}.discord-buttons a.discord-button:hover{color:#fff;text-decoration:none}.discord-buttons .discord-button .discord-button-emoji{width:19px;height:19px;margin-right:4px}.discord-buttons .discord-button.discord-button-primary{background-color:#5865f2}.discord-buttons .discord-button:not(.discord-button-disabled).discord-button-primary:hover{background-color:#4752c4}.discord-buttons .discord-button.discord-button-link,.discord-buttons .discord-button.discord-button-secondary{background-color:#4f545c}.discord-buttons .discord-button:not(.discord-button-disabled).discord-button-link:hover,.discord-buttons .discord-button:not(.discord-button-disabled).discord-button-secondary:hover{background-color:#474c53}.discord-light-theme .discord-buttons .discord-button.discord-button-link,.discord-light-theme .discord-buttons .discord-button.discord-button-secondary{background-color:#747f8d}.discord-light-theme .discord-buttons .discord-button:not(.discord-button-disabled).discord-button-link:hover,.discord-light-theme .discord-buttons .discord-button:not(.discord-button-disabled).discord-button-secondary:hover{background-color:#68727f}.discord-buttons .discord-button.discord-button-success{background-color:#3ba55c}.discord-buttons .discord-button:not(.discord-button-disabled).discord-button-success:hover{background-color:#359553}.discord-buttons .discord-button.discord-button-danger{background-color:#ed4245}.discord-buttons .discord-button:not(.discord-button-disabled).discord-button-danger:hover{background-color:#d53b3e}.discord-buttons .discord-button.discord-button-disabled,.discord-buttons .discord-button:disabled{opacity:.5;cursor:not-allowed}.discord-buttons .discord-button .outbound-link-icon{margin-left:8px;display:inline-flex}.discord-buttons{display:flex;flex-wrap:wrap}.discord-embed{color:#dcddde;display:flex;margin-top:8px;margin-bottom:8px;font-size:13px;line-height:150%}.discord-light-theme .discord-embed{color:#2e3338}.discord-embed .discord-embed-left-border{background-color:#202225;flex-shrink:0;width:4px;border-radius:4px 0 0 4px}.discord-light-theme .discord-embed .discord-embed-left-border{background-color:#e3e5e8}.discord-embed .discord-embed-container{background-color:#2f3136;display:flex;flex-direction:column;max-width:520px;padding:8px 16px 16px;border:1px solid rgba(46,48,54,.6);border-radius:0 4px 4px 0}.discord-light-theme .discord-embed .discord-embed-container{background-color:#f9f9f94d;border-color:#cdcdcd4d}.discord-embed .discord-embed-content{display:flex}.discord-embed .discord-embed-content .discord-embed-author{color:#fff;display:flex;align-items:center;font-weight:500;margin-top:8px}.discord-light-theme .discord-embed .discord-embed-content .discord-embed-author{color:#4f545c}.discord-embed .discord-embed-content .discord-embed-author a{color:#fff;font-weight:500}.discord-light-theme .discord-embed .discord-embed-content .discord-embed-author a{color:#4f545c}.discord-embed .discord-embed-content .discord-embed-author .discord-embed-author-icon{width:24px;height:24px;margin-right:8px;border-radius:50%}.discord-embed .discord-embed-content .discord-embed-title{color:#fff;font-size:16px;font-weight:600;margin-top:8px}.discord-embed .discord-embed-content .discord-embed-title a{color:#00b0f4;font-weight:600}.discord-embed .discord-embed-content .discord-embed-description{margin-top:8px}.discord-embed .discord-embed-content .discord-embed-image{max-width:100%;margin-top:16px;border-radius:4px}.discord-embed .discord-embed-content .discord-embed-thumbnail{max-width:80px;max-height:80px;margin-left:16px;margin-top:8px;border-radius:4px;object-fit:contain;object-position:top center}.discord-embed .discord-embed-footer{color:#72767d;display:flex;align-items:center;font-size:.85em;margin-top:8px}.discord-embed .discord-embed-footer .discord-embed-footer-icon{flex-shrink:0;width:20px;height:20px;margin-right:8px;border-radius:50%}.discord-embed .discord-embed-footer .discord-embed-footer-separator{color:#3b3c42;font-weight:700;margin:0 4px}.discord-light-theme .discord-embed .discord-embed-footer .discord-embed-footer-separator{color:#e4e4e4}.discord-embed .discord-embed-field{min-width:100%;margin-top:5px}.discord-embed .discord-embed-field.discord-embed-field-inline{flex-grow:1;flex-basis:auto;min-width:100px}.discord-embed .discord-embed-field .discord-embed-field-title{color:#72767d;font-weight:500;margin-bottom:2px}.discord-light-theme .discord-embed .discord-embed-field .discord-embed-field-title{color:#747f8d}.discord-embed .discord-embed-fields{display:flex;flex-wrap:wrap;margin-top:8px}.discord-message .discord-author-info{color:#fff;display:inline-flex;align-items:center;font-size:15px}.discord-compact-mode .discord-message .discord-author-info{display:inline-flex;flex-direction:row-reverse}.discord-message .discord-author-info .discord-author-username{font-size:1.1em;font-weight:500;letter-spacing:.5px}.discord-compact-mode .discord-message .discord-author-info .discord-author-username{margin-left:4px;margin-right:4px}.discord-light-theme .discord-message .discord-author-info .discord-author-username{color:#23262a}.discord-message .discord-author-info .discord-author-bot-tag{background-color:#5865f2;font-size:.65em;margin-left:5px;padding:3px 4px;border-radius:3px;line-height:100%;text-transform:uppercase}.discord-compact-mode .discord-message .discord-author-info .discord-author-bot-tag{margin-left:0;margin-right:5px;padding-left:3px;padding-right:3px;font-size:.6em}.discord-light-theme .discord-message .discord-author-info .discord-author-bot-tag{color:#fff}.discord-interaction{color:#b9bbbe;display:flex;align-items:center;position:relative;width:100%;font-size:.95em;margin-bottom:4px;padding-left:56px;line-height:150%;box-sizing:border-box}.discord-compact-mode .discord-interaction{margin-bottom:0;padding-left:64px}.discord-light-theme .discord-interaction{color:#4f5660}.discord-interaction:before{content:"";display:block;position:absolute;width:33px;top:50%;bottom:0;left:18px;margin:-1px 0 0;border-top-left-radius:6px;border-top:2px solid #4f545c;border-left:2px solid #4f545c;box-sizing:border-box}.discord-compact-mode .discord-interaction:before{left:26px}.discord-interaction .discord-interaction-author-info{font-size:1em;flex-direction:row-reverse}.discord-interaction .discord-interaction-author-avatar{width:16px;height:16px;margin-right:4px;border-radius:50%}.discord-compact-mode .discord-interaction .discord-interaction-author-avatar{display:none}.discord-interaction .discord-interaction-author-info .discord-author-username{font-size:1em;margin-right:4px;opacity:.65}.discord-compact-mode .discord-interaction .discord-interaction-author-info .discord-author-username{margin-left:0}.discord-interaction .discord-interaction-author-info .discord-author-bot-tag{font-size:.75em;margin:1px 4px 0 0}.discord-compact-mode .discord-interaction .discord-interaction-author-info .discord-author-bot-tag{font-size:.7em;padding-left:4px;padding-right:4px}.discord-interaction .discord-interaction-command .discord-interaction-command-name{color:#7289da;opacity:.65}.discord-interaction .discord-interaction-reply{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.discord-interaction .discord-interaction-reply .discord-interaction-reply-edited{color:#72767d;font-size:10px;margin-left:3px}.discord-interaction .discord-interaction-reply:hover{color:#fff}.discord-light-theme .discord-interaction .discord-interaction-reply:hover{color:#060607}.discord-markdown .discord-markdown-content>pre{max-width:90%;margin:.4em 0 0;white-space:pre-wrap;border-radius:4px;box-sizing:border-box}.discord-markdown .discord-markdown-content>pre>code{color:#b9bbbe;background-color:#2f3135;display:block;font-size:1em;padding:.5em;border:1px solid #202225;border-radius:4px}.discord-light-theme .discord-markdown .discord-markdown-content>pre>code{color:#4f5660;background-color:#f2f3f9;border-color:#e3e5e8}.discord-markdown .discord-markdown-content>code{background-color:#2f3136;font-size:.95em;padding:3px;border-radius:3px;white-space:pre-wrap}.discord-light-theme .discord-markdown .discord-markdown-content>code{background-color:#f2f3f5}.discord-markdown .discord-markdown-content .d-spoiler{color:transparent;background-color:#202225;border-radius:3px;transition:all .1s ease-in-out}.discord-light-theme .discord-markdown .discord-markdown-content .d-spoiler{background-color:#b9bbbe}.discord-markdown .discord-markdown-content .d-spoiler:hover{color:inherit;background-color:#ffffff1a}.discord-light-theme .discord-markdown .discord-markdown-content .d-spoiler:hover{background-color:#0000001a}.discord-markdown .discord-markdown-content>blockquote{position:relative;margin:0;padding:0 8px 0 16px}.discord-markdown .discord-markdown-content>blockquote:before{content:"";background-color:#4f545c;width:4px;position:absolute;top:0;left:0;bottom:0;border-radius:4px}.discord-light-theme .discord-markdown .discord-markdown-content>blockquote:before{background-color:#c7ccd1}.discord-message .discord-mention{color:#dee0fc;background-color:#5865f24d;font-weight:500;padding:0 2px;border-radius:3px;transition:background-color 50ms ease-out,color 50ms ease-out}.discord-message .discord-mention:hover{background-color:#5865f2}.discord-message{color:#dcddde;display:flex;flex-direction:column;font-size:.9em;margin:1em 0;padding:.25em 1em 0}.discord-message:hover{background-color:#32353b}.discord-compact-mode .discord-message{margin:.15em 0;padding-left:.25em;padding-right:.25em}.discord-light-theme .discord-message{color:#2e3338}.discord-light-theme .discord-message:hover{background-color:#fafafa}.discord-message.discord-ephemeral-highlight{background-color:#5865f20d}.discord-message.discord-mention-highlight{background-color:#faa61a1a}.discord-message.discord-ephemeral-highlight,.discord-message.discord-mention-highlight{position:relative}.discord-message.discord-ephemeral-highlight:before,.discord-message.discord-mention-highlight:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;width:2px}.discord-message.discord-ephemeral-highlight:before{background-color:#5865f2}.discord-message.discord-mention-highlight:before{background-color:#faa61a}.discord-message.discord-ephemeral-highlight:hover{background-color:#5865f21a}.discord-message.discord-mention-highlight:hover{background-color:#faa61a14}.discord-light-theme .discord-message.discord-mention-highlight:hover{background-color:#faa61a33}.discord-message a{color:#0096cf;font-weight:400;text-decoration:none}.discord-message a:hover{text-decoration:underline}.discord-light-theme .discord-message a{color:#00b0f4}.discord-message .discord-author-avatar{margin-top:1px;margin-right:16px;min-width:40px}.discord-compact-mode .discord-message .discord-author-avatar{display:none}.discord-message .discord-author-avatar img{width:40px;height:40px;border-radius:50%}.discord-message .discord-message-content{display:flex;width:100%;line-height:160%;font-weight:400;overflow-wrap:anywhere}.discord-message .discord-message-content .discord-message-timestamp{color:#72767d;font-size:12px;margin-left:3px}.discord-compact-mode .discord-message:hover .discord-message-content .discord-message-timestamp,.discord-compact-mode.discord-light-theme .discord-message:hover .discord-message-content .discord-message-timestamp,.discord-light-theme .discord-message .discord-message-content .discord-message-timestamp{color:#99aab5}.discord-compact-mode .discord-message .discord-message-content .discord-message-timestamp{display:inline-block;min-width:48px;font-size:11px;margin-left:0;margin-right:3px;text-align:right}.discord-compact-mode.discord-light-theme .discord-message .discord-message-content .discord-message-timestamp{color:#d1d9de}.discord-message .discord-message-body{position:relative;width:100%}.discord-compact-mode .discord-message-body{margin-left:.25em}.discord-message .discord-message-body .discord-message-edited{color:#72767d;font-size:10px;margin-left:3px}.discord-message .discord-message-ephemeral-notice{color:#72767d;font-size:12px;margin-top:4px}.discord-messages{color:#fff;background-color:#36393e;font-size:16px;font-family:Roboto,sans-serif;line-height:170%;border:1px solid rgba(255,255,255,.05)}.discord-messages.discord-light-theme{color:#747f8d;background-color:#f7f7f7;border-color:#dedede}.discord-reactions .discord-reaction{background-color:#2f3136;display:inline-flex;align-items:center;padding:0 .4em;border-radius:4px;margin-right:2px;margin-bottom:2px;border:1px solid transparent;transition:background-color .1s ease,border-color .1s ease}.discord-light-theme .discord-reactions .discord-reaction{background-color:#f2f3f5}.discord-reactions .discord-reaction:hover{background-color:#36393f;border-color:#fff3}.discord-light-theme .discord-reactions .discord-reaction:hover{border-color:#0003}.discord-reactions .discord-reaction.discord-reaction-active{background-color:#5865f226;border-color:#5865f2}.discord-reactions .discord-reaction .discord-reaction-emoji{width:16px;height:16px}.discord-reactions .discord-reaction .discord-reaction-count{margin-left:6px}.discord-reactions{display:flex;flex-wrap:wrap;padding:2px 0}.forbidden[data-v-be9d7e14]{display:grid;grid-template-columns:2fr 3fr;width:100%;min-height:100vh;min-height:100svh;background:var(--c-white-1)}button span[data-v-be9d7e14]{font-size:1rem;margin-right:.5rem;translate:0 .2em}main[data-v-be9d7e14]{display:flex;justify-content:center;align-items:center}main[data-v-be9d7e14] .panel[data-v-be9d7e14]{min-width:300px;width:60%;display:flex;flex-direction:column;align-items:flex-start;gap:3em}main[data-v-be9d7e14] .panel[data-v-be9d7e14] button[data-v-be9d7e14]{width:100%}aside[data-v-be9d7e14]{display:flex;justify-content:center;align-items:center;background-color:var(--c-stair-graphite)}aside[data-v-be9d7e14] .stan[data-v-be9d7e14]{max-height:80vh}@media screen and (max-width: 1200px){aside[data-v-be9d7e14]{display:none}.forbidden[data-v-be9d7e14]{grid-template-columns:1fr}}header[data-v-5c695e95]{width:100%;display:flex;justify-content:space-between;padding-right:2rem;position:sticky;top:0;z-index:1000}nav[data-v-5c695e95]{display:flex;align-items:center;gap:1rem;font-size:1rem}nav[data-v-5c695e95] a[data-v-5c695e95]{color:var(--c-white-1)}nav[data-v-5c695e95] a[data-v-5c695e95][data-v-5c695e95]:hover{color:var(--c-stair-graphite)}nav[data-v-5c695e95] a[data-v-5c695e95].router-link-active[data-v-5c695e95]{text-decoration:underline}nav[data-v-5c695e95] .user[data-v-5c695e95]{cursor:pointer;height:100%;position:relative;display:flex;align-items:center;padding:.5rem}nav[data-v-5c695e95] .user[data-v-5c695e95][data-v-5c695e95]:hover{background:#ffffff1a}nav[data-v-5c695e95] .user[data-v-5c695e95] .options[data-v-5c695e95]{position:absolute;cursor:auto;top:100%;right:0;background:var(--bg-soft);border:1px solid var(--bg-muted);box-shadow:0 0 20px #0003;border-radius:.5rem;padding:1rem;display:flex;flex-direction:column;gap:2rem;color:var(--fg-text)}nav[data-v-5c695e95] .user[data-v-5c695e95] .options[data-v-5c695e95] .action[data-v-5c695e95]{display:flex;justify-content:flex-end}nav[data-v-5c695e95] .user[data-v-5c695e95] .options[data-v-5c695e95] a[data-v-5c695e95]{color:var(--fg-text);display:block;padding:.5rem;text-align:center;text-decoration:none}nav[data-v-5c695e95] .user[data-v-5c695e95] .options[data-v-5c695e95] a[data-v-5c695e95][data-v-5c695e95]:hover{text-decoration:underline}nav[data-v-5c695e95] .user[data-v-5c695e95] .options[data-v-5c695e95] a[data-v-5c695e95] span[data-v-5c695e95]{font-size:1rem;margin-left:.5em;translate:0 .1em}nav[data-v-5c695e95] .user[data-v-5c695e95] .options[data-v-5c695e95] .data[data-v-5c695e95]{padding:0 1rem}#container[data-v-5c695e95]{max-width:1280px;margin:0 auto;padding:2rem} diff --git a/ui/dist/assets/index-C8rYtQ9w.js b/ui/dist/assets/index-BbSnuvgB.js similarity index 85% rename from ui/dist/assets/index-C8rYtQ9w.js rename to ui/dist/assets/index-BbSnuvgB.js index 0a9febe..83cac1d 100644 --- a/ui/dist/assets/index-C8rYtQ9w.js +++ b/ui/dist/assets/index-BbSnuvgB.js @@ -1,26 +1,26 @@ -const __vite__fileDeps=["assets/HomeView-bL0hbgjZ.js","assets/HomeView-CJc2c40X.css","assets/index-DYcvuVaE.js","assets/index-DxvYVIj-.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +const __vite__fileDeps=["assets/HomeView-DsmSFpWt.js","assets/HomeView-Bgpg7yOf.css","assets/index-BqXw2cr3.js","assets/api-Bz-ih7aU.js","assets/index-DxvYVIj-.css","assets/index-DUY4mzaV.js","assets/index-D_M3sScq.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** * @vue/shared v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function ys(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const te={},bt=[],Pe=()=>{},_i=()=>!1,xn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vs=e=>e.startsWith("onUpdate:"),he=Object.assign,bs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yi=Object.prototype.hasOwnProperty,K=(e,t)=>yi.call(e,t),N=Array.isArray,Et=e=>Qt(e)==="[object Map]",Sn=e=>Qt(e)==="[object Set]",qs=e=>Qt(e)==="[object Date]",V=e=>typeof e=="function",ce=e=>typeof e=="string",Ke=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",zr=e=>(ee(e)||V(e))&&V(e.then)&&V(e.catch),Gr=Object.prototype.toString,Qt=e=>Gr.call(e),vi=e=>Qt(e).slice(8,-1),Jr=e=>Qt(e)==="[object Object]",Es=e=>ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jt=ys(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},bi=/-(\w)/g,ke=Rn(e=>e.replace(bi,(t,n)=>n?n.toUpperCase():"")),Ei=/\B([A-Z])/g,At=Rn(e=>e.replace(Ei,"-$1").toLowerCase()),Cn=Rn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Bn=Rn(e=>e?`on${Cn(e)}`:""),nt=(e,t)=>!Object.is(e,t),ln=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},pn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let zs;const Yr=()=>zs||(zs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ws(e){if(N(e)){const t={};for(let n=0;n{if(n){const s=n.split(xi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function xs(e){let t="";if(ce(e))t=e;else if(N(e))for(let n=0;nPn(n,t))}const Kn=e=>ce(e)?e:e==null?"":N(e)||ee(e)&&(e.toString===Gr||!V(e.toString))?JSON.stringify(e,Zr,2):String(e),Zr=(e,t)=>t&&t.__v_isRef?Zr(e,t.value):Et(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Wn(s,o)+" =>"]=r,n),{})}:Sn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Wn(n))}:Ke(t)?Wn(t):ee(t)&&!N(t)&&!Jr(t)?String(t):t,Wn=(e,t="")=>{var n;return Ke(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function ys(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const te={},bt=[],Pe=()=>{},_i=()=>!1,Sn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vs=e=>e.startsWith("onUpdate:"),he=Object.assign,bs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yi=Object.prototype.hasOwnProperty,K=(e,t)=>yi.call(e,t),N=Array.isArray,Et=e=>Qt(e)==="[object Map]",Rn=e=>Qt(e)==="[object Set]",qs=e=>Qt(e)==="[object Date]",V=e=>typeof e=="function",ce=e=>typeof e=="string",Ke=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",zr=e=>(ee(e)||V(e))&&V(e.then)&&V(e.catch),Gr=Object.prototype.toString,Qt=e=>Gr.call(e),vi=e=>Qt(e).slice(8,-1),Jr=e=>Qt(e)==="[object Object]",Es=e=>ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jt=ys(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},bi=/-(\w)/g,ke=Cn(e=>e.replace(bi,(t,n)=>n?n.toUpperCase():"")),Ei=/\B([A-Z])/g,At=Cn(e=>e.replace(Ei,"-$1").toLowerCase()),Pn=Cn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kn=Cn(e=>e?`on${Pn(e)}`:""),nt=(e,t)=>!Object.is(e,t),cn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},gn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let zs;const Yr=()=>zs||(zs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ws(e){if(N(e)){const t={};for(let n=0;n{if(n){const s=n.split(xi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function xs(e){let t="";if(ce(e))t=e;else if(N(e))for(let n=0;nOn(n,t))}const Wn=e=>ce(e)?e:e==null?"":N(e)||ee(e)&&(e.toString===Gr||!V(e.toString))?JSON.stringify(e,Zr,2):String(e),Zr=(e,t)=>t&&t.__v_isRef?Zr(e,t.value):Et(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[qn(s,o)+" =>"]=r,n),{})}:Rn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>qn(n))}:Ke(t)?qn(t):ee(t)&&!N(t)&&!Jr(t)?String(t):t,qn=(e,t="")=>{var n;return Ke(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let xe;class eo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=xe,!t&&xe&&(this.index=(xe.scopes||(xe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=xe;try{return xe=this,t()}finally{xe=n}}}on(){xe=this}off(){xe=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ot()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=et,n=dt;try{return et=!0,dt=this,this._runnings++,Gs(this),this.fn()}finally{Js(this),this._runnings--,dt=n,et=t}}stop(){this.active&&(Gs(this),Js(this),this.onStop&&this.onStop(),this.active=!1)}}function Mi(e){return e.value}function Gs(e){e._trackId++,e._depsLength=0}function Js(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},gn=new WeakMap,ht=Symbol(""),rs=Symbol("");function be(e,t,n){if(et&&dt){let s=gn.get(e);s||gn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=lo(()=>s.delete(n))),oo(dt,r)}}function Be(e,t,n,s,r,o){const i=gn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&N(e)){const c=Number(s);i.forEach((d,f)=>{(f==="length"||!Ke(f)&&f>=c)&&l.push(d)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":N(e)?Es(n)&&l.push(i.get("length")):(l.push(i.get(ht)),Et(e)&&l.push(i.get(rs)));break;case"delete":N(e)||(l.push(i.get(ht)),Et(e)&&l.push(i.get(rs)));break;case"set":Et(e)&&l.push(i.get(ht));break}Rs();for(const c of l)c&&io(c,4);Cs()}function Li(e,t){const n=gn.get(e);return n&&n.get(t)}const ji=ys("__proto__,__v_isRef,__isVue"),co=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke)),Qs=Ni();function Ni(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=q(this);for(let o=0,i=this.length;o{e[t]=function(...n){rt(),Rs();const s=q(this)[t].apply(this,n);return Cs(),ot(),s}}),e}function $i(e){Ke(e)||(e=String(e));const t=q(this);return be(t,"has",e),t.hasOwnProperty(e)}class uo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Ji:po:o?ho:ao).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=N(t);if(!r){if(i&&K(Qs,n))return Reflect.get(Qs,n,s);if(n==="hasOwnProperty")return $i}const l=Reflect.get(t,n,s);return(Ke(n)?co.has(n):ji(n))||(r||be(t,"get",n),o)?l:ue(l)?i&&Es(n)?l:l.value:ee(l)?r?mo(l):Yt(l):l}}class fo extends uo{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const c=Ut(o);if(!mn(s)&&!Ut(s)&&(o=q(o),s=q(s)),!N(t)&&ue(o)&&!ue(s))return c?!1:(o.value=s,!0)}const i=N(t)&&Es(n)?Number(n)e,On=e=>Reflect.getPrototypeOf(e);function en(e,t,n=!1,s=!1){e=e.__v_raw;const r=q(e),o=q(t);n||(nt(t,o)&&be(r,"get",t),be(r,"get",o));const{has:i}=On(r),l=s?Ps:n?Ts:Bt;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function tn(e,t=!1){const n=this.__v_raw,s=q(n),r=q(e);return t||(nt(e,r)&&be(s,"has",e),be(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function nn(e,t=!1){return e=e.__v_raw,!t&&be(q(e),"iterate",ht),Reflect.get(e,"size",e)}function Ys(e){e=q(e);const t=q(this);return On(t).has.call(t,e)||(t.add(e),Be(t,"add",e,e)),this}function Xs(e,t){t=q(t);const n=q(this),{has:s,get:r}=On(n);let o=s.call(n,e);o||(e=q(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?nt(t,i)&&Be(n,"set",e,t):Be(n,"add",e,t),this}function Zs(e){const t=q(this),{has:n,get:s}=On(t);let r=n.call(t,e);r||(e=q(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Be(t,"delete",e,void 0),o}function er(){const e=q(this),t=e.size!==0,n=e.clear();return t&&Be(e,"clear",void 0,void 0),n}function sn(e,t){return function(s,r){const o=this,i=o.__v_raw,l=q(i),c=t?Ps:e?Ts:Bt;return!e&&be(l,"iterate",ht),i.forEach((d,f)=>s.call(r,c(d),c(f),o))}}function rn(e,t,n){return function(...s){const r=this.__v_raw,o=q(r),i=Et(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,d=r[e](...s),f=n?Ps:t?Ts:Bt;return!t&&be(o,"iterate",c?rs:ht),{next(){const{value:h,done:p}=d.next();return p?{value:h,done:p}:{value:l?[f(h[0]),f(h[1])]:f(h),done:p}},[Symbol.iterator](){return this}}}}function ze(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Di(){const e={get(o){return en(this,o)},get size(){return nn(this)},has:tn,add:Ys,set:Xs,delete:Zs,clear:er,forEach:sn(!1,!1)},t={get(o){return en(this,o,!1,!0)},get size(){return nn(this)},has:tn,add:Ys,set:Xs,delete:Zs,clear:er,forEach:sn(!1,!0)},n={get(o){return en(this,o,!0)},get size(){return nn(this,!0)},has(o){return tn.call(this,o,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:sn(!0,!1)},s={get(o){return en(this,o,!0,!0)},get size(){return nn(this,!0)},has(o){return tn.call(this,o,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:sn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=rn(o,!1,!1),n[o]=rn(o,!0,!1),t[o]=rn(o,!1,!0),s[o]=rn(o,!0,!0)}),[e,n,t,s]}const[Ui,Bi,Ki,Wi]=Di();function Os(e,t){const n=t?e?Wi:Ki:e?Bi:Ui;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(K(n,r)&&r in s?n:s,r,o)}const qi={get:Os(!1,!1)},zi={get:Os(!1,!0)},Gi={get:Os(!0,!1)};const ao=new WeakMap,ho=new WeakMap,po=new WeakMap,Ji=new WeakMap;function Qi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yi(e){return e.__v_skip||!Object.isExtensible(e)?0:Qi(vi(e))}function Yt(e){return Ut(e)?e:As(e,!1,Hi,qi,ao)}function go(e){return As(e,!1,ki,zi,ho)}function mo(e){return As(e,!0,Vi,Gi,po)}function As(e,t,n,s,r){if(!ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=Yi(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function pt(e){return Ut(e)?pt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ut(e){return!!(e&&e.__v_isReadonly)}function mn(e){return!!(e&&e.__v_isShallow)}function _o(e){return e?!!e.__v_raw:!1}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function Is(e){return Object.isExtensible(e)&&Qr(e,"__v_skip",!0),e}const Bt=e=>ee(e)?Yt(e):e,Ts=e=>ee(e)?mo(e):e;class yo{constructor(t,n,s,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ss(()=>t(this._value),()=>cn(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=q(this);return(!t._cacheable||t.effect.dirty)&&nt(t._value,t._value=t.effect.run())&&cn(t,4),vo(t),t.effect._dirtyLevel>=2&&cn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Xi(e,t,n=!1){let s,r;const o=V(e);return o?(s=e,r=Pe):(s=e.get,r=e.set),new yo(s,r,o||!r,n)}function vo(e){var t;et&&dt&&(e=q(e),oo(dt,(t=e.dep)!=null?t:e.dep=lo(()=>e.dep=void 0,e instanceof yo?e:void 0)))}function cn(e,t=4,n){e=q(e);const s=e.dep;s&&io(s,t)}function ue(e){return!!(e&&e.__v_isRef===!0)}function Kt(e){return bo(e,!1)}function Zi(e){return bo(e,!0)}function bo(e,t){return ue(e)?e:new el(e,t)}class el{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:q(t),this._value=n?t:Bt(t)}get value(){return vo(this),this._value}set value(t){const n=this.__v_isShallow||mn(t)||Ut(t);t=n?t:q(t),nt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Bt(t),cn(this,4))}}function Ve(e){return ue(e)?e.value:e}const tl={get:(e,t,n)=>Ve(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ue(r)&&!ue(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Eo(e){return pt(e)?e:new Proxy(e,tl)}function nl(e){const t=N(e)?new Array(e.length):{};for(const n in e)t[n]=rl(e,n);return t}class sl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Li(q(this._object),this._key)}}function rl(e,t,n){const s=e[t];return ue(s)?s:new sl(e,t,n)}/** +**/let xe;class eo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=xe,!t&&xe&&(this.index=(xe.scopes||(xe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=xe;try{return xe=this,t()}finally{xe=n}}}on(){xe=this}off(){xe=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ot()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=et,n=dt;try{return et=!0,dt=this,this._runnings++,Gs(this),this.fn()}finally{Js(this),this._runnings--,dt=n,et=t}}stop(){this.active&&(Gs(this),Js(this),this.onStop&&this.onStop(),this.active=!1)}}function Mi(e){return e.value}function Gs(e){e._trackId++,e._depsLength=0}function Js(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},mn=new WeakMap,ht=Symbol(""),rs=Symbol("");function be(e,t,n){if(et&&dt){let s=mn.get(e);s||mn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=lo(()=>s.delete(n))),oo(dt,r)}}function Be(e,t,n,s,r,o){const i=mn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&N(e)){const c=Number(s);i.forEach((d,f)=>{(f==="length"||!Ke(f)&&f>=c)&&l.push(d)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":N(e)?Es(n)&&l.push(i.get("length")):(l.push(i.get(ht)),Et(e)&&l.push(i.get(rs)));break;case"delete":N(e)||(l.push(i.get(ht)),Et(e)&&l.push(i.get(rs)));break;case"set":Et(e)&&l.push(i.get(ht));break}Rs();for(const c of l)c&&io(c,4);Cs()}function Li(e,t){const n=mn.get(e);return n&&n.get(t)}const ji=ys("__proto__,__v_isRef,__isVue"),co=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke)),Qs=Ni();function Ni(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=q(this);for(let o=0,i=this.length;o{e[t]=function(...n){rt(),Rs();const s=q(this)[t].apply(this,n);return Cs(),ot(),s}}),e}function $i(e){Ke(e)||(e=String(e));const t=q(this);return be(t,"has",e),t.hasOwnProperty(e)}class uo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Ji:po:o?ho:ao).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=N(t);if(!r){if(i&&K(Qs,n))return Reflect.get(Qs,n,s);if(n==="hasOwnProperty")return $i}const l=Reflect.get(t,n,s);return(Ke(n)?co.has(n):ji(n))||(r||be(t,"get",n),o)?l:ue(l)?i&&Es(n)?l:l.value:ee(l)?r?mo(l):Yt(l):l}}class fo extends uo{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const c=Ut(o);if(!_n(s)&&!Ut(s)&&(o=q(o),s=q(s)),!N(t)&&ue(o)&&!ue(s))return c?!1:(o.value=s,!0)}const i=N(t)&&Es(n)?Number(n)e,An=e=>Reflect.getPrototypeOf(e);function en(e,t,n=!1,s=!1){e=e.__v_raw;const r=q(e),o=q(t);n||(nt(t,o)&&be(r,"get",t),be(r,"get",o));const{has:i}=An(r),l=s?Ps:n?Ts:Bt;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function tn(e,t=!1){const n=this.__v_raw,s=q(n),r=q(e);return t||(nt(e,r)&&be(s,"has",e),be(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function nn(e,t=!1){return e=e.__v_raw,!t&&be(q(e),"iterate",ht),Reflect.get(e,"size",e)}function Ys(e){e=q(e);const t=q(this);return An(t).has.call(t,e)||(t.add(e),Be(t,"add",e,e)),this}function Xs(e,t){t=q(t);const n=q(this),{has:s,get:r}=An(n);let o=s.call(n,e);o||(e=q(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?nt(t,i)&&Be(n,"set",e,t):Be(n,"add",e,t),this}function Zs(e){const t=q(this),{has:n,get:s}=An(t);let r=n.call(t,e);r||(e=q(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Be(t,"delete",e,void 0),o}function er(){const e=q(this),t=e.size!==0,n=e.clear();return t&&Be(e,"clear",void 0,void 0),n}function sn(e,t){return function(s,r){const o=this,i=o.__v_raw,l=q(i),c=t?Ps:e?Ts:Bt;return!e&&be(l,"iterate",ht),i.forEach((d,f)=>s.call(r,c(d),c(f),o))}}function rn(e,t,n){return function(...s){const r=this.__v_raw,o=q(r),i=Et(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,d=r[e](...s),f=n?Ps:t?Ts:Bt;return!t&&be(o,"iterate",c?rs:ht),{next(){const{value:h,done:p}=d.next();return p?{value:h,done:p}:{value:l?[f(h[0]),f(h[1])]:f(h),done:p}},[Symbol.iterator](){return this}}}}function ze(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Di(){const e={get(o){return en(this,o)},get size(){return nn(this)},has:tn,add:Ys,set:Xs,delete:Zs,clear:er,forEach:sn(!1,!1)},t={get(o){return en(this,o,!1,!0)},get size(){return nn(this)},has:tn,add:Ys,set:Xs,delete:Zs,clear:er,forEach:sn(!1,!0)},n={get(o){return en(this,o,!0)},get size(){return nn(this,!0)},has(o){return tn.call(this,o,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:sn(!0,!1)},s={get(o){return en(this,o,!0,!0)},get size(){return nn(this,!0)},has(o){return tn.call(this,o,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:sn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=rn(o,!1,!1),n[o]=rn(o,!0,!1),t[o]=rn(o,!1,!0),s[o]=rn(o,!0,!0)}),[e,n,t,s]}const[Ui,Bi,Ki,Wi]=Di();function Os(e,t){const n=t?e?Wi:Ki:e?Bi:Ui;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(K(n,r)&&r in s?n:s,r,o)}const qi={get:Os(!1,!1)},zi={get:Os(!1,!0)},Gi={get:Os(!0,!1)};const ao=new WeakMap,ho=new WeakMap,po=new WeakMap,Ji=new WeakMap;function Qi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yi(e){return e.__v_skip||!Object.isExtensible(e)?0:Qi(vi(e))}function Yt(e){return Ut(e)?e:As(e,!1,Hi,qi,ao)}function go(e){return As(e,!1,ki,zi,ho)}function mo(e){return As(e,!0,Vi,Gi,po)}function As(e,t,n,s,r){if(!ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=Yi(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function pt(e){return Ut(e)?pt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ut(e){return!!(e&&e.__v_isReadonly)}function _n(e){return!!(e&&e.__v_isShallow)}function _o(e){return e?!!e.__v_raw:!1}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function Is(e){return Object.isExtensible(e)&&Qr(e,"__v_skip",!0),e}const Bt=e=>ee(e)?Yt(e):e,Ts=e=>ee(e)?mo(e):e;class yo{constructor(t,n,s,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ss(()=>t(this._value),()=>un(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=q(this);return(!t._cacheable||t.effect.dirty)&&nt(t._value,t._value=t.effect.run())&&un(t,4),vo(t),t.effect._dirtyLevel>=2&&un(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Xi(e,t,n=!1){let s,r;const o=V(e);return o?(s=e,r=Pe):(s=e.get,r=e.set),new yo(s,r,o||!r,n)}function vo(e){var t;et&&dt&&(e=q(e),oo(dt,(t=e.dep)!=null?t:e.dep=lo(()=>e.dep=void 0,e instanceof yo?e:void 0)))}function un(e,t=4,n){e=q(e);const s=e.dep;s&&io(s,t)}function ue(e){return!!(e&&e.__v_isRef===!0)}function Kt(e){return bo(e,!1)}function Zi(e){return bo(e,!0)}function bo(e,t){return ue(e)?e:new el(e,t)}class el{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:q(t),this._value=n?t:Bt(t)}get value(){return vo(this),this._value}set value(t){const n=this.__v_isShallow||_n(t)||Ut(t);t=n?t:q(t),nt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Bt(t),un(this,4))}}function Ve(e){return ue(e)?e.value:e}const tl={get:(e,t,n)=>Ve(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ue(r)&&!ue(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Eo(e){return pt(e)?e:new Proxy(e,tl)}function nl(e){const t=N(e)?new Array(e.length):{};for(const n in e)t[n]=rl(e,n);return t}class sl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Li(q(this._object),this._key)}}function rl(e,t,n){const s=e[t];return ue(s)?s:new sl(e,t,n)}/** * @vue/runtime-core v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function tt(e,t,n,s){try{return s?e(...s):e()}catch(r){An(r,t,n)}}function Me(e,t,n,s){if(V(e)){const r=tt(e,t,n,s);return r&&zr(r)&&r.catch(o=>{An(o,t,n)}),r}if(N(e)){const r=[];for(let o=0;o>>1,r=me[s],o=qt(r);oHe&&me.splice(t,1)}function cl(e){N(e)?wt.push(...e):(!Qe||!Qe.includes(e,e.allowRecurse?ut+1:ut))&&wt.push(e),xo()}function tr(e,t,n=Wt?He+1:0){for(;nqt(n)-qt(s));if(wt.length=0,Qe){Qe.push(...t);return}for(Qe=t,ut=0;ute.id==null?1/0:e.id,ul=(e,t)=>{const n=qt(e)-qt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ro(e){os=!1,Wt=!0,me.sort(ul);try{for(He=0;Hece(v)?v.trim():v)),h&&(r=n.map(pn))}let l,c=s[l=Bn(t)]||s[l=Bn(ke(t))];!c&&o&&(c=s[l=Bn(At(t))]),c&&Me(c,e,6,r);const d=s[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Me(d,e,6,r)}}function Co(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!V(e)){const c=d=>{const f=Co(d,t,!0);f&&(l=!0,he(i,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(ee(e)&&s.set(e,null),null):(N(o)?o.forEach(c=>i[c]=null):he(i,o),ee(e)&&s.set(e,i),i)}function Tn(e,t){return!e||!xn(t)?!1:(t=t.slice(2).replace(/Once$/,""),K(e,t[0].toLowerCase()+t.slice(1))||K(e,At(t))||K(e,t))}let le=null,Mn=null;function _n(e){const t=le;return le=e,Mn=e&&e.type.__scopeId||null,t}function Po(e){Mn=e}function Oo(){Mn=null}function un(e,t=le,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&dr(-1);const o=_n(t);let i;try{i=e(...r)}finally{_n(o),s._d&&dr(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function qn(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:d,renderCache:f,props:h,data:p,setupState:v,ctx:O,inheritAttrs:M}=e,k=_n(e);let I,L;try{if(n.shapeFlag&4){const W=r||s,z=W;I=Fe(d.call(z,W,f,h,v,p,O)),L=l}else{const W=t;I=Fe(W.length>1?W(h,{attrs:l,slots:i,emit:c}):W(h,null)),L=t.props?l:al(l)}}catch(W){Ht.length=0,An(W,e,1),I=de(st)}let F=I;if(L&&M!==!1){const W=Object.keys(L),{shapeFlag:z}=F;W.length&&z&7&&(o&&W.some(vs)&&(L=dl(L,o)),F=Ct(F,L,!1,!0))}return n.dirs&&(F=Ct(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&(F.transition=n.transition),I=F,_n(k),I}const al=e=>{let t;for(const n in e)(n==="class"||n==="style"||xn(n))&&((t||(t={}))[n]=e[n]);return t},dl=(e,t)=>{const n={};for(const s in e)(!vs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function hl(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?nr(s,i,d):!!i;if(c&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense;function ml(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):cl(e)}const _l=Symbol.for("v-scx"),yl=()=>Oe(_l),on={};function Nt(e,t,n){return To(e,t,n)}function To(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=te){if(t&&o){const H=t;t=(...oe)=>{H(...oe),z()}}const c=ae,d=H=>s===!0?H:at(H,s===!1?1:void 0);let f,h=!1,p=!1;if(ue(e)?(f=()=>e.value,h=mn(e)):pt(e)?(f=()=>d(e),h=!0):N(e)?(p=!0,h=e.some(H=>pt(H)||mn(H)),f=()=>e.map(H=>{if(ue(H))return H.value;if(pt(H))return d(H);if(V(H))return tt(H,c,2)})):V(e)?t?f=()=>tt(e,c,2):f=()=>(v&&v(),Me(e,c,3,[O])):f=Pe,t&&s){const H=f;f=()=>at(H())}let v,O=H=>{v=F.onStop=()=>{tt(H,c,4),v=F.onStop=void 0}},M;if($n)if(O=Pe,t?n&&Me(t,c,3,[f(),p?[]:void 0,O]):f(),r==="sync"){const H=yl();M=H.__watcherHandles||(H.__watcherHandles=[])}else return Pe;let k=p?new Array(e.length).fill(on):on;const I=()=>{if(!(!F.active||!F.dirty))if(t){const H=F.run();(s||h||(p?H.some((oe,U)=>nt(oe,k[U])):nt(H,k)))&&(v&&v(),Me(t,c,3,[H,k===on?void 0:p&&k[0]===on?[]:k,O]),k=H)}else F.run()};I.allowRecurse=!!t;let L;r==="sync"?L=I:r==="post"?L=()=>ve(I,c&&c.suspense):(I.pre=!0,c&&(I.id=c.uid),L=()=>Ls(I));const F=new Ss(f,Pe,L),W=no(),z=()=>{F.stop(),W&&bs(W.effects,F)};return t?n?I():k=F.run():r==="post"?ve(F.run.bind(F),c&&c.suspense):F.run(),M&&M.push(z),z}function vl(e,t,n){const s=this.proxy,r=ce(e)?e.includes(".")?Mo(s,e):()=>s[e]:e.bind(s,s);let o;V(t)?o=t:(o=t.handler,n=t);const i=Xt(this),l=To(r,o.bind(s),n);return i(),l}function Mo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{at(s,t,n)});else if(Jr(e))for(const s in e)at(e[s],t,n);return e}function yf(e,t){if(le===null)return e;const n=Fn(le)||le.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r!!e.type.__asyncLoader,Lo=e=>e.type.__isKeepAlive;function bl(e,t){jo(e,"a",t)}function El(e,t){jo(e,"da",t)}function jo(e,t,n=ae){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(jn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Lo(r.parent.vnode)&&wl(s,t,n,r),r=r.parent}}function wl(e,t,n,s){const r=jn(t,e,s,!0);$o(()=>{bs(s[t],r)},n)}function jn(e,t,n=ae,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;rt();const l=Xt(n),c=Me(t,n,e,i);return l(),ot(),c});return s?r.unshift(o):r.push(o),o}}const We=e=>(t,n=ae)=>(!$n||e==="sp")&&jn(e,(...s)=>t(...s),n),xl=We("bm"),No=We("m"),Sl=We("bu"),Rl=We("u"),Cl=We("bum"),$o=We("um"),Pl=We("sp"),Ol=We("rtg"),Al=We("rtc");function Il(e,t=ae){jn("ec",e,t)}function vf(e,t,n,s){let r;const o=n;if(N(e)||ce(e)){r=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,c=i.length;lvn(t)?!(t.type===st||t.type===Ie&&!Fo(t.children)):!0)?e:null}const is=e=>e?Xo(e)?Fn(e)||e.proxy:is(e.parent):null,Ft=he(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>is(e.parent),$root:e=>is(e.root),$emit:e=>e.emit,$options:e=>Ns(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ls(e.update)}),$nextTick:e=>e.n||(e.n=In.bind(e.proxy)),$watch:e=>vl.bind(e)}),zn=(e,t)=>e!==te&&!e.__isScriptSetup&&K(e,t),Tl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;let d;if(t[0]!=="$"){const v=i[t];if(v!==void 0)switch(v){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(zn(s,t))return i[t]=1,s[t];if(r!==te&&K(r,t))return i[t]=2,r[t];if((d=e.propsOptions[0])&&K(d,t))return i[t]=3,o[t];if(n!==te&&K(n,t))return i[t]=4,n[t];ls&&(i[t]=0)}}const f=Ft[t];let h,p;if(f)return t==="$attrs"&&be(e.attrs,"get",""),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==te&&K(n,t))return i[t]=4,n[t];if(p=c.config.globalProperties,K(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return zn(r,t)?(r[t]=n,!0):s!==te&&K(s,t)?(s[t]=n,!0):K(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==te&&K(e,i)||zn(t,i)||(l=o[0])&&K(l,i)||K(s,i)||K(Ft,i)||K(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:K(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function rr(e){return N(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ls=!0;function Ml(e){const t=Ns(e),n=e.proxy,s=e.ctx;ls=!1,t.beforeCreate&&or(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:d,created:f,beforeMount:h,mounted:p,beforeUpdate:v,updated:O,activated:M,deactivated:k,beforeDestroy:I,beforeUnmount:L,destroyed:F,unmounted:W,render:z,renderTracked:H,renderTriggered:oe,errorCaptured:U,serverPrefetch:B,expose:ie,inheritAttrs:pe,components:Ee,directives:Se,filters:it}=t;if(d&&Ll(d,s,null),i)for(const X in i){const J=i[X];V(J)&&(s[X]=J.bind(n))}if(r){const X=r.call(n,n);ee(X)&&(e.data=Yt(X))}if(ls=!0,o)for(const X in o){const J=o[X],De=V(J)?J.bind(n,n):V(J.get)?J.get.bind(n,n):Pe,qe=!V(J)&&V(J.set)?J.set.bind(n):Pe,je=Ce({get:De,set:qe});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>je.value,set:ye=>je.value=ye})}if(l)for(const X in l)Ho(l[X],s,n,X);if(c){const X=V(c)?c.call(n):c;Reflect.ownKeys(X).forEach(J=>{fn(J,X[J])})}f&&or(f,e,"c");function G(X,J){N(J)?J.forEach(De=>X(De.bind(n))):J&&X(J.bind(n))}if(G(xl,h),G(No,p),G(Sl,v),G(Rl,O),G(bl,M),G(El,k),G(Il,U),G(Al,H),G(Ol,oe),G(Cl,L),G($o,W),G(Pl,B),N(ie))if(ie.length){const X=e.exposed||(e.exposed={});ie.forEach(J=>{Object.defineProperty(X,J,{get:()=>n[J],set:De=>n[J]=De})})}else e.exposed||(e.exposed={});z&&e.render===Pe&&(e.render=z),pe!=null&&(e.inheritAttrs=pe),Ee&&(e.components=Ee),Se&&(e.directives=Se)}function Ll(e,t,n=Pe){N(e)&&(e=cs(e));for(const s in e){const r=e[s];let o;ee(r)?"default"in r?o=Oe(r.from||s,r.default,!0):o=Oe(r.from||s):o=Oe(r),ue(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function or(e,t,n){Me(N(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ho(e,t,n,s){const r=s.includes(".")?Mo(n,s):()=>n[s];if(ce(e)){const o=t[e];V(o)&&Nt(r,o)}else if(V(e))Nt(r,e.bind(n));else if(ee(e))if(N(e))e.forEach(o=>Ho(o,t,n,s));else{const o=V(e.handler)?e.handler.bind(n):t[e.handler];V(o)&&Nt(r,o,e)}}function Ns(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(d=>yn(c,d,i,!0)),yn(c,t,i)),ee(t)&&o.set(t,c),c}function yn(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&yn(e,o,n,!0),r&&r.forEach(i=>yn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=jl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const jl={data:ir,props:lr,emits:lr,methods:Lt,computed:Lt,beforeCreate:_e,created:_e,beforeMount:_e,mounted:_e,beforeUpdate:_e,updated:_e,beforeDestroy:_e,beforeUnmount:_e,destroyed:_e,unmounted:_e,activated:_e,deactivated:_e,errorCaptured:_e,serverPrefetch:_e,components:Lt,directives:Lt,watch:$l,provide:ir,inject:Nl};function ir(e,t){return t?e?function(){return he(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Nl(e,t){return Lt(cs(e),cs(t))}function cs(e){if(N(e)){const t={};for(let n=0;n1)return n&&V(t)?t.call(s&&s.proxy):t}}function Vl(){return!!(ae||le||xt)}const ko={},Do=()=>Object.create(ko),Uo=e=>Object.getPrototypeOf(e)===ko;function kl(e,t,n,s=!1){const r={},o=Do();e.propsDefaults=Object.create(null),Bo(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:go(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Dl(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=q(r),[c]=e.propsOptions;let d=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[p,v]=Ko(h,t,!0);he(i,p),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!c)return ee(e)&&s.set(e,bt),bt;if(N(o))for(let f=0;f-1,v[1]=M<0||O-1||K(v,"default"))&&l.push(h)}}}const d=[i,l];return ee(e)&&s.set(e,d),d}function cr(e){return e[0]!=="$"&&!jt(e)}function ur(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function fr(e,t){return ur(e)===ur(t)}function ar(e,t){return N(t)?t.findIndex(n=>fr(n,e)):V(t)&&fr(t,e)?0:-1}const Wo=e=>e[0]==="_"||e==="$stable",$s=e=>N(e)?e.map(Fe):[Fe(e)],Ul=(e,t,n)=>{if(t._n)return t;const s=un((...r)=>$s(t(...r)),n);return s._c=!1,s},qo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Wo(r))continue;const o=e[r];if(V(o))t[r]=Ul(r,o,s);else if(o!=null){const i=$s(o);t[r]=()=>i}}},zo=(e,t)=>{const n=$s(t);e.slots.default=()=>n},Bl=(e,t)=>{const n=e.slots=Do();if(e.vnode.shapeFlag&32){const s=t._;s?(he(n,t),Qr(n,"_",s,!0)):qo(t,n)}else t&&zo(e,t)},Kl=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=te;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(he(r,t),!n&&l===1&&delete r._):(o=!t.$stable,qo(t,r)),i=t}else t&&(zo(e,t),i={default:1});if(o)for(const l in r)!Wo(l)&&i[l]==null&&delete r[l]};function fs(e,t,n,s,r=!1){if(N(e)){e.forEach((p,v)=>fs(p,t&&(N(t)?t[v]:t),n,s,r));return}if($t(s)&&!r)return;const o=s.shapeFlag&4?Fn(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:c}=e,d=t&&t.r,f=l.refs===te?l.refs={}:l.refs,h=l.setupState;if(d!=null&&d!==c&&(ce(d)?(f[d]=null,K(h,d)&&(h[d]=null)):ue(d)&&(d.value=null)),V(c))tt(c,l,12,[i,f]);else{const p=ce(c),v=ue(c);if(p||v){const O=()=>{if(e.f){const M=p?K(h,c)?h[c]:f[c]:c.value;r?N(M)&&bs(M,o):N(M)?M.includes(o)||M.push(o):p?(f[c]=[o],K(h,c)&&(h[c]=f[c])):(c.value=[o],e.k&&(f[e.k]=c.value))}else p?(f[c]=i,K(h,c)&&(h[c]=i)):v&&(c.value=i,e.k&&(f[e.k]=i))};i?(O.id=-1,ve(O,n)):O()}}}const ve=ml;function Wl(e){return ql(e)}function ql(e,t){const n=Yr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:d,setElementText:f,parentNode:h,nextSibling:p,setScopeId:v=Pe,insertStaticContent:O}=e,M=(u,a,g,y=null,m=null,w=null,R=void 0,E=null,x=!!a.dynamicChildren)=>{if(u===a)return;u&&!Tt(u,a)&&(y=_(u),ye(u,m,w,!0),u=null),a.patchFlag===-2&&(x=!1,a.dynamicChildren=null);const{type:b,ref:P,shapeFlag:j}=a;switch(b){case Nn:k(u,a,g,y);break;case st:I(u,a,g,y);break;case Jn:u==null&&L(a,g,y,R);break;case Ie:Ee(u,a,g,y,m,w,R,E,x);break;default:j&1?z(u,a,g,y,m,w,R,E,x):j&6?Se(u,a,g,y,m,w,R,E,x):(j&64||j&128)&&b.process(u,a,g,y,m,w,R,E,x,A)}P!=null&&m&&fs(P,u&&u.ref,w,a||u,!a)},k=(u,a,g,y)=>{if(u==null)s(a.el=l(a.children),g,y);else{const m=a.el=u.el;a.children!==u.children&&d(m,a.children)}},I=(u,a,g,y)=>{u==null?s(a.el=c(a.children||""),g,y):a.el=u.el},L=(u,a,g,y)=>{[u.el,u.anchor]=O(u.children,a,g,y,u.el,u.anchor)},F=({el:u,anchor:a},g,y)=>{let m;for(;u&&u!==a;)m=p(u),s(u,g,y),u=m;s(a,g,y)},W=({el:u,anchor:a})=>{let g;for(;u&&u!==a;)g=p(u),r(u),u=g;r(a)},z=(u,a,g,y,m,w,R,E,x)=>{a.type==="svg"?R="svg":a.type==="math"&&(R="mathml"),u==null?H(a,g,y,m,w,R,E,x):B(u,a,m,w,R,E,x)},H=(u,a,g,y,m,w,R,E)=>{let x,b;const{props:P,shapeFlag:j,transition:T,dirs:$}=u;if(x=u.el=i(u.type,w,P&&P.is,P),j&8?f(x,u.children):j&16&&U(u.children,x,null,y,m,Gn(u,w),R,E),$&<(u,null,y,"created"),oe(x,u,u.scopeId,R,y),P){for(const Z in P)Z!=="value"&&!jt(Z)&&o(x,Z,null,P[Z],w,u.children,y,m,ge);"value"in P&&o(x,"value",null,P.value,w),(b=P.onVnodeBeforeMount)&&$e(b,y,u)}$&<(u,null,y,"beforeMount");const D=zl(m,T);D&&T.beforeEnter(x),s(x,a,g),((b=P&&P.onVnodeMounted)||D||$)&&ve(()=>{b&&$e(b,y,u),D&&T.enter(x),$&<(u,null,y,"mounted")},m)},oe=(u,a,g,y,m)=>{if(g&&v(u,g),y)for(let w=0;w{for(let b=x;b{const E=a.el=u.el;let{patchFlag:x,dynamicChildren:b,dirs:P}=a;x|=u.patchFlag&16;const j=u.props||te,T=a.props||te;let $;if(g&&ct(g,!1),($=T.onVnodeBeforeUpdate)&&$e($,g,a,u),P&<(a,u,g,"beforeUpdate"),g&&ct(g,!0),b?ie(u.dynamicChildren,b,E,g,y,Gn(a,m),w):R||J(u,a,E,null,g,y,Gn(a,m),w,!1),x>0){if(x&16)pe(E,a,j,T,g,y,m);else if(x&2&&j.class!==T.class&&o(E,"class",null,T.class,m),x&4&&o(E,"style",j.style,T.style,m),x&8){const D=a.dynamicProps;for(let Z=0;Z{$&&$e($,g,a,u),P&<(a,u,g,"updated")},y)},ie=(u,a,g,y,m,w,R)=>{for(let E=0;E{if(g!==y){if(g!==te)for(const E in g)!jt(E)&&!(E in y)&&o(u,E,g[E],null,R,a.children,m,w,ge);for(const E in y){if(jt(E))continue;const x=y[E],b=g[E];x!==b&&E!=="value"&&o(u,E,b,x,R,a.children,m,w,ge)}"value"in y&&o(u,"value",g.value,y.value,R)}},Ee=(u,a,g,y,m,w,R,E,x)=>{const b=a.el=u?u.el:l(""),P=a.anchor=u?u.anchor:l("");let{patchFlag:j,dynamicChildren:T,slotScopeIds:$}=a;$&&(E=E?E.concat($):$),u==null?(s(b,g,y),s(P,g,y),U(a.children||[],g,P,m,w,R,E,x)):j>0&&j&64&&T&&u.dynamicChildren?(ie(u.dynamicChildren,T,g,m,w,R,E),(a.key!=null||m&&a===m.subTree)&&Go(u,a,!0)):J(u,a,g,P,m,w,R,E,x)},Se=(u,a,g,y,m,w,R,E,x)=>{a.slotScopeIds=E,u==null?a.shapeFlag&512?m.ctx.activate(a,g,y,R,x):it(a,g,y,m,w,R,x):Re(u,a,x)},it=(u,a,g,y,m,w,R)=>{const E=u.component=nc(u,y,m);if(Lo(u)&&(E.ctx.renderer=A),sc(E),E.asyncDep){if(m&&m.registerDep(E,G),!u.el){const x=E.subTree=de(st);I(null,x,a,g)}}else G(E,u,a,g,m,w,R)},Re=(u,a,g)=>{const y=a.component=u.component;if(hl(u,a,g))if(y.asyncDep&&!y.asyncResolved){X(y,a,g);return}else y.next=a,ll(y.update),y.effect.dirty=!0,y.update();else a.el=u.el,y.vnode=a},G=(u,a,g,y,m,w,R)=>{const E=()=>{if(u.isMounted){let{next:P,bu:j,u:T,parent:$,vnode:D}=u;{const _t=Jo(u);if(_t){P&&(P.el=D.el,X(u,P,R)),_t.asyncDep.then(()=>{u.isUnmounted||E()});return}}let Z=P,ne;ct(u,!1),P?(P.el=D.el,X(u,P,R)):P=D,j&&ln(j),(ne=P.props&&P.props.onVnodeBeforeUpdate)&&$e(ne,$,P,D),ct(u,!0);const fe=qn(u),Ae=u.subTree;u.subTree=fe,M(Ae,fe,h(Ae.el),_(Ae),u,m,w),P.el=fe.el,Z===null&&pl(u,fe.el),T&&ve(T,m),(ne=P.props&&P.props.onVnodeUpdated)&&ve(()=>$e(ne,$,P,D),m)}else{let P;const{el:j,props:T}=a,{bm:$,m:D,parent:Z}=u,ne=$t(a);if(ct(u,!1),$&&ln($),!ne&&(P=T&&T.onVnodeBeforeMount)&&$e(P,Z,a),ct(u,!0),j&&re){const fe=()=>{u.subTree=qn(u),re(j,u.subTree,u,m,null)};ne?a.type.__asyncLoader().then(()=>!u.isUnmounted&&fe()):fe()}else{const fe=u.subTree=qn(u);M(null,fe,g,y,u,m,w),a.el=fe.el}if(D&&ve(D,m),!ne&&(P=T&&T.onVnodeMounted)){const fe=a;ve(()=>$e(P,Z,fe),m)}(a.shapeFlag&256||Z&&$t(Z.vnode)&&Z.vnode.shapeFlag&256)&&u.a&&ve(u.a,m),u.isMounted=!0,a=g=y=null}},x=u.effect=new Ss(E,Pe,()=>Ls(b),u.scope),b=u.update=()=>{x.dirty&&x.run()};b.id=u.uid,ct(u,!0),b()},X=(u,a,g)=>{a.component=u;const y=u.vnode.props;u.vnode=a,u.next=null,Dl(u,a.props,y,g),Kl(u,a.children,g),rt(),tr(u),ot()},J=(u,a,g,y,m,w,R,E,x=!1)=>{const b=u&&u.children,P=u?u.shapeFlag:0,j=a.children,{patchFlag:T,shapeFlag:$}=a;if(T>0){if(T&128){qe(b,j,g,y,m,w,R,E,x);return}else if(T&256){De(b,j,g,y,m,w,R,E,x);return}}$&8?(P&16&&ge(b,m,w),j!==b&&f(g,j)):P&16?$&16?qe(b,j,g,y,m,w,R,E,x):ge(b,m,w,!0):(P&8&&f(g,""),$&16&&U(j,g,y,m,w,R,E,x))},De=(u,a,g,y,m,w,R,E,x)=>{u=u||bt,a=a||bt;const b=u.length,P=a.length,j=Math.min(b,P);let T;for(T=0;TP?ge(u,m,w,!0,!1,j):U(a,g,y,m,w,R,E,x,j)},qe=(u,a,g,y,m,w,R,E,x)=>{let b=0;const P=a.length;let j=u.length-1,T=P-1;for(;b<=j&&b<=T;){const $=u[b],D=a[b]=x?Ye(a[b]):Fe(a[b]);if(Tt($,D))M($,D,g,null,m,w,R,E,x);else break;b++}for(;b<=j&&b<=T;){const $=u[j],D=a[T]=x?Ye(a[T]):Fe(a[T]);if(Tt($,D))M($,D,g,null,m,w,R,E,x);else break;j--,T--}if(b>j){if(b<=T){const $=T+1,D=$T)for(;b<=j;)ye(u[b],m,w,!0),b++;else{const $=b,D=b,Z=new Map;for(b=D;b<=T;b++){const we=a[b]=x?Ye(a[b]):Fe(a[b]);we.key!=null&&Z.set(we.key,b)}let ne,fe=0;const Ae=T-D+1;let _t=!1,Bs=0;const It=new Array(Ae);for(b=0;b=Ae){ye(we,m,w,!0);continue}let Ne;if(we.key!=null)Ne=Z.get(we.key);else for(ne=D;ne<=T;ne++)if(It[ne-D]===0&&Tt(we,a[ne])){Ne=ne;break}Ne===void 0?ye(we,m,w,!0):(It[Ne-D]=b+1,Ne>=Bs?Bs=Ne:_t=!0,M(we,a[Ne],g,null,m,w,R,E,x),fe++)}const Ks=_t?Gl(It):bt;for(ne=Ks.length-1,b=Ae-1;b>=0;b--){const we=D+b,Ne=a[we],Ws=we+1{const{el:w,type:R,transition:E,children:x,shapeFlag:b}=u;if(b&6){je(u.component.subTree,a,g,y);return}if(b&128){u.suspense.move(a,g,y);return}if(b&64){R.move(u,a,g,A);return}if(R===Ie){s(w,a,g);for(let j=0;jE.enter(w),m);else{const{leave:j,delayLeave:T,afterLeave:$}=E,D=()=>s(w,a,g),Z=()=>{j(w,()=>{D(),$&&$()})};T?T(w,D,Z):Z()}else s(w,a,g)},ye=(u,a,g,y=!1,m=!1)=>{const{type:w,props:R,ref:E,children:x,dynamicChildren:b,shapeFlag:P,patchFlag:j,dirs:T}=u;if(E!=null&&fs(E,null,g,u,!0),P&256){a.ctx.deactivate(u);return}const $=P&1&&T,D=!$t(u);let Z;if(D&&(Z=R&&R.onVnodeBeforeUnmount)&&$e(Z,a,u),P&6)Zt(u.component,g,y);else{if(P&128){u.suspense.unmount(g,y);return}$&<(u,null,a,"beforeUnmount"),P&64?u.type.remove(u,a,g,m,A,y):b&&(w!==Ie||j>0&&j&64)?ge(b,a,g,!1,!0):(w===Ie&&j&384||!m&&P&16)&&ge(x,a,g),y&>(u)}(D&&(Z=R&&R.onVnodeUnmounted)||$)&&ve(()=>{Z&&$e(Z,a,u),$&<(u,null,a,"unmounted")},g)},gt=u=>{const{type:a,el:g,anchor:y,transition:m}=u;if(a===Ie){mt(g,y);return}if(a===Jn){W(u);return}const w=()=>{r(g),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(u.shapeFlag&1&&m&&!m.persisted){const{leave:R,delayLeave:E}=m,x=()=>R(g,w);E?E(u.el,w,x):x()}else w()},mt=(u,a)=>{let g;for(;u!==a;)g=p(u),r(u),u=g;r(a)},Zt=(u,a,g)=>{const{bum:y,scope:m,update:w,subTree:R,um:E}=u;y&&ln(y),m.stop(),w&&(w.active=!1,ye(R,u,a,g)),E&&ve(E,a),ve(()=>{u.isUnmounted=!0},a),a&&a.pendingBranch&&!a.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===a.pendingId&&(a.deps--,a.deps===0&&a.resolve())},ge=(u,a,g,y=!1,m=!1,w=0)=>{for(let R=w;Ru.shapeFlag&6?_(u.component.subTree):u.shapeFlag&128?u.suspense.next():p(u.anchor||u.el);let C=!1;const S=(u,a,g)=>{u==null?a._vnode&&ye(a._vnode,null,null,!0):M(a._vnode||null,u,a,null,null,null,g),C||(C=!0,tr(),So(),C=!1),a._vnode=u},A={p:M,um:ye,m:je,r:gt,mt:it,mc:U,pc:J,pbc:ie,n:_,o:e};let Q,re;return{render:S,hydrate:Q,createApp:Hl(S,Q)}}function Gn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ct({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function zl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Go(e,t,n=!1){const s=e.children,r=t.children;if(N(s)&&N(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Jo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Jo(t)}const Jl=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),Nn=Symbol.for("v-txt"),st=Symbol.for("v-cmt"),Jn=Symbol.for("v-stc"),Ht=[];let Te=null;function St(e=!1){Ht.push(Te=e?null:[])}function Ql(){Ht.pop(),Te=Ht[Ht.length-1]||null}let zt=1;function dr(e){zt+=e}function Qo(e){return e.dynamicChildren=zt>0?Te||bt:null,Ql(),zt>0&&Te&&Te.push(e),e}function as(e,t,n,s,r,o){return Qo(se(e,t,n,s,r,o,!0))}function Fs(e,t,n,s,r){return Qo(de(e,t,n,s,r,!0))}function vn(e){return e?e.__v_isVNode===!0:!1}function Tt(e,t){return e.type===t.type&&e.key===t.key}const Yo=({key:e})=>e??null,an=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ce(e)||ue(e)||V(e)?{i:le,r:e,k:t,f:!!n}:e:null);function se(e,t=null,n=null,s=0,r=null,o=e===Ie?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Yo(t),ref:t&&an(t),scopeId:Mn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:le};return l?(Vs(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ce(n)?8:16),zt>0&&!i&&Te&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Te.push(c),c}const de=Yl;function Yl(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Ao)&&(e=st),vn(e)){const l=Ct(e,t,!0);return n&&Vs(l,n),zt>0&&!o&&Te&&(l.shapeFlag&6?Te[Te.indexOf(e)]=l:Te.push(l)),l.patchFlag|=-2,l}if(cc(e)&&(e=e.__vccOpts),t){t=Xl(t);let{class:l,style:c}=t;l&&!ce(l)&&(t.class=xs(l)),ee(c)&&(_o(c)&&!N(c)&&(c=he({},c)),t.style=ws(c))}const i=ce(e)?1:gl(e)?128:Jl(e)?64:ee(e)?4:V(e)?2:0;return se(e,t,n,s,r,i,o,!0)}function Xl(e){return e?_o(e)||Uo(e)?he({},e):e:null}function Ct(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:c}=e,d=t?Zl(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Yo(d),ref:t&&t.ref?n&&o?N(o)?o.concat(an(t)):[o,an(t)]:an(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ct(e.ssContent),ssFallback:e.ssFallback&&Ct(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&(f.transition=c.clone(f)),f}function Hs(e=" ",t=0){return de(Nn,null,e,t)}function hr(e="",t=!1){return t?(St(),Fs(st,null,e)):de(st,null,e)}function Fe(e){return e==null||typeof e=="boolean"?de(st):N(e)?de(Ie,null,e.slice()):typeof e=="object"?Ye(e):de(Nn,null,String(e))}function Ye(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ct(e)}function Vs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(N(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Vs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Uo(t)?t._ctx=le:r===3&&le&&(le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:le},n=32):(t=String(t),s&64?(n=16,t=[Hs(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zl(...e){const t={};for(let n=0;nae||le;let bn,ds;{const e=Yr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};bn=t("__VUE_INSTANCE_SETTERS__",n=>ae=n),ds=t("__VUE_SSR_SETTERS__",n=>$n=n)}const Xt=e=>{const t=ae;return bn(e),e.scope.on(),()=>{e.scope.off(),bn(t)}},pr=()=>{ae&&ae.scope.off(),bn(null)};function Xo(e){return e.vnode.shapeFlag&4}let $n=!1;function sc(e,t=!1){t&&ds(t);const{props:n,children:s}=e.vnode,r=Xo(e);kl(e,n,r,t),Bl(e,s);const o=r?rc(e,t):void 0;return t&&ds(!1),o}function rc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tl);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?ic(e):null,o=Xt(e);rt();const i=tt(s,e,0,[e.props,r]);if(ot(),o(),zr(i)){if(i.then(pr,pr),t)return i.then(l=>{gr(e,l,t)}).catch(l=>{An(l,e,0)});e.asyncDep=i}else gr(e,i,t)}else Zo(e,t)}function gr(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ee(t)&&(e.setupState=Eo(t)),Zo(e,n)}let mr;function Zo(e,t,n){const s=e.type;if(!e.render){if(!t&&mr&&!s.render){const r=s.template||Ns(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,d=he(he({isCustomElement:o,delimiters:l},i),c);s.render=mr(r,d)}}e.render=s.render||Pe}{const r=Xt(e);rt();try{Ml(e)}finally{ot(),r()}}}const oc={get(e,t){return be(e,"get",""),e[t]}};function ic(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,oc),slots:e.slots,emit:e.emit,expose:t}}function Fn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Eo(Is(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ft)return Ft[n](e)},has(t,n){return n in t||n in Ft}}))}function lc(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function cc(e){return V(e)&&"__vccOpts"in e}const Ce=(e,t)=>Xi(e,t,$n);function ei(e,t,n){const s=arguments.length;return s===2?ee(t)&&!N(t)?vn(t)?de(e,null,[t]):de(e,t):de(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&vn(n)&&(n=[n]),de(e,t,n))}const uc="3.4.27";/** +**/function tt(e,t,n,s){try{return s?e(...s):e()}catch(r){In(r,t,n)}}function Me(e,t,n,s){if(V(e)){const r=tt(e,t,n,s);return r&&zr(r)&&r.catch(o=>{In(o,t,n)}),r}if(N(e)){const r=[];for(let o=0;o>>1,r=me[s],o=qt(r);oHe&&me.splice(t,1)}function cl(e){N(e)?wt.push(...e):(!Qe||!Qe.includes(e,e.allowRecurse?ut+1:ut))&&wt.push(e),xo()}function tr(e,t,n=Wt?He+1:0){for(;nqt(n)-qt(s));if(wt.length=0,Qe){Qe.push(...t);return}for(Qe=t,ut=0;ute.id==null?1/0:e.id,ul=(e,t)=>{const n=qt(e)-qt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ro(e){os=!1,Wt=!0,me.sort(ul);try{for(He=0;Hece(v)?v.trim():v)),h&&(r=n.map(gn))}let l,c=s[l=Kn(t)]||s[l=Kn(ke(t))];!c&&o&&(c=s[l=Kn(At(t))]),c&&Me(c,e,6,r);const d=s[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Me(d,e,6,r)}}function Co(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!V(e)){const c=d=>{const f=Co(d,t,!0);f&&(l=!0,he(i,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(ee(e)&&s.set(e,null),null):(N(o)?o.forEach(c=>i[c]=null):he(i,o),ee(e)&&s.set(e,i),i)}function Mn(e,t){return!e||!Sn(t)?!1:(t=t.slice(2).replace(/Once$/,""),K(e,t[0].toLowerCase()+t.slice(1))||K(e,At(t))||K(e,t))}let le=null,Ln=null;function yn(e){const t=le;return le=e,Ln=e&&e.type.__scopeId||null,t}function Po(e){Ln=e}function Oo(){Ln=null}function fn(e,t=le,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&dr(-1);const o=yn(t);let i;try{i=e(...r)}finally{yn(o),s._d&&dr(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function zn(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:c,render:d,renderCache:f,props:h,data:p,setupState:v,ctx:O,inheritAttrs:M}=e,k=yn(e);let I,L;try{if(n.shapeFlag&4){const W=r||s,z=W;I=Fe(d.call(z,W,f,h,v,p,O)),L=l}else{const W=t;I=Fe(W.length>1?W(h,{attrs:l,slots:i,emit:c}):W(h,null)),L=t.props?l:al(l)}}catch(W){Ht.length=0,In(W,e,1),I=de(st)}let F=I;if(L&&M!==!1){const W=Object.keys(L),{shapeFlag:z}=F;W.length&&z&7&&(o&&W.some(vs)&&(L=dl(L,o)),F=Ct(F,L,!1,!0))}return n.dirs&&(F=Ct(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&(F.transition=n.transition),I=F,yn(k),I}const al=e=>{let t;for(const n in e)(n==="class"||n==="style"||Sn(n))&&((t||(t={}))[n]=e[n]);return t},dl=(e,t)=>{const n={};for(const s in e)(!vs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function hl(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:c}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?nr(s,i,d):!!i;if(c&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense;function ml(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):cl(e)}const _l=Symbol.for("v-scx"),yl=()=>Oe(_l),on={};function Nt(e,t,n){return To(e,t,n)}function To(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=te){if(t&&o){const H=t;t=(...oe)=>{H(...oe),z()}}const c=ae,d=H=>s===!0?H:at(H,s===!1?1:void 0);let f,h=!1,p=!1;if(ue(e)?(f=()=>e.value,h=_n(e)):pt(e)?(f=()=>d(e),h=!0):N(e)?(p=!0,h=e.some(H=>pt(H)||_n(H)),f=()=>e.map(H=>{if(ue(H))return H.value;if(pt(H))return d(H);if(V(H))return tt(H,c,2)})):V(e)?t?f=()=>tt(e,c,2):f=()=>(v&&v(),Me(e,c,3,[O])):f=Pe,t&&s){const H=f;f=()=>at(H())}let v,O=H=>{v=F.onStop=()=>{tt(H,c,4),v=F.onStop=void 0}},M;if(Fn)if(O=Pe,t?n&&Me(t,c,3,[f(),p?[]:void 0,O]):f(),r==="sync"){const H=yl();M=H.__watcherHandles||(H.__watcherHandles=[])}else return Pe;let k=p?new Array(e.length).fill(on):on;const I=()=>{if(!(!F.active||!F.dirty))if(t){const H=F.run();(s||h||(p?H.some((oe,U)=>nt(oe,k[U])):nt(H,k)))&&(v&&v(),Me(t,c,3,[H,k===on?void 0:p&&k[0]===on?[]:k,O]),k=H)}else F.run()};I.allowRecurse=!!t;let L;r==="sync"?L=I:r==="post"?L=()=>ve(I,c&&c.suspense):(I.pre=!0,c&&(I.id=c.uid),L=()=>Ls(I));const F=new Ss(f,Pe,L),W=no(),z=()=>{F.stop(),W&&bs(W.effects,F)};return t?n?I():k=F.run():r==="post"?ve(F.run.bind(F),c&&c.suspense):F.run(),M&&M.push(z),z}function vl(e,t,n){const s=this.proxy,r=ce(e)?e.includes(".")?Mo(s,e):()=>s[e]:e.bind(s,s);let o;V(t)?o=t:(o=t.handler,n=t);const i=Xt(this),l=To(r,o.bind(s),n);return i(),l}function Mo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{at(s,t,n)});else if(Jr(e))for(const s in e)at(e[s],t,n);return e}function yf(e,t){if(le===null)return e;const n=Hn(le)||le.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r!!e.type.__asyncLoader,Lo=e=>e.type.__isKeepAlive;function bl(e,t){jo(e,"a",t)}function El(e,t){jo(e,"da",t)}function jo(e,t,n=ae){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Nn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Lo(r.parent.vnode)&&wl(s,t,n,r),r=r.parent}}function wl(e,t,n,s){const r=Nn(t,e,s,!0);$o(()=>{bs(s[t],r)},n)}function Nn(e,t,n=ae,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;rt();const l=Xt(n),c=Me(t,n,e,i);return l(),ot(),c});return s?r.unshift(o):r.push(o),o}}const We=e=>(t,n=ae)=>(!Fn||e==="sp")&&Nn(e,(...s)=>t(...s),n),xl=We("bm"),No=We("m"),Sl=We("bu"),Rl=We("u"),Cl=We("bum"),$o=We("um"),Pl=We("sp"),Ol=We("rtg"),Al=We("rtc");function Il(e,t=ae){Nn("ec",e,t)}function vf(e,t,n,s){let r;const o=n;if(N(e)||ce(e)){r=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,c=i.length;lbn(t)?!(t.type===st||t.type===Ie&&!Fo(t.children)):!0)?e:null}const is=e=>e?Xo(e)?Hn(e)||e.proxy:is(e.parent):null,Ft=he(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>is(e.parent),$root:e=>is(e.root),$emit:e=>e.emit,$options:e=>Ns(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ls(e.update)}),$nextTick:e=>e.n||(e.n=Tn.bind(e.proxy)),$watch:e=>vl.bind(e)}),Gn=(e,t)=>e!==te&&!e.__isScriptSetup&&K(e,t),Tl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:c}=e;let d;if(t[0]!=="$"){const v=i[t];if(v!==void 0)switch(v){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Gn(s,t))return i[t]=1,s[t];if(r!==te&&K(r,t))return i[t]=2,r[t];if((d=e.propsOptions[0])&&K(d,t))return i[t]=3,o[t];if(n!==te&&K(n,t))return i[t]=4,n[t];ls&&(i[t]=0)}}const f=Ft[t];let h,p;if(f)return t==="$attrs"&&be(e.attrs,"get",""),f(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==te&&K(n,t))return i[t]=4,n[t];if(p=c.config.globalProperties,K(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Gn(r,t)?(r[t]=n,!0):s!==te&&K(s,t)?(s[t]=n,!0):K(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==te&&K(e,i)||Gn(t,i)||(l=o[0])&&K(l,i)||K(s,i)||K(Ft,i)||K(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:K(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function rr(e){return N(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ls=!0;function Ml(e){const t=Ns(e),n=e.proxy,s=e.ctx;ls=!1,t.beforeCreate&&or(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:c,inject:d,created:f,beforeMount:h,mounted:p,beforeUpdate:v,updated:O,activated:M,deactivated:k,beforeDestroy:I,beforeUnmount:L,destroyed:F,unmounted:W,render:z,renderTracked:H,renderTriggered:oe,errorCaptured:U,serverPrefetch:B,expose:ie,inheritAttrs:pe,components:Ee,directives:Se,filters:it}=t;if(d&&Ll(d,s,null),i)for(const X in i){const J=i[X];V(J)&&(s[X]=J.bind(n))}if(r){const X=r.call(n,n);ee(X)&&(e.data=Yt(X))}if(ls=!0,o)for(const X in o){const J=o[X],De=V(J)?J.bind(n,n):V(J.get)?J.get.bind(n,n):Pe,qe=!V(J)&&V(J.set)?J.set.bind(n):Pe,je=Ce({get:De,set:qe});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>je.value,set:ye=>je.value=ye})}if(l)for(const X in l)Ho(l[X],s,n,X);if(c){const X=V(c)?c.call(n):c;Reflect.ownKeys(X).forEach(J=>{an(J,X[J])})}f&&or(f,e,"c");function G(X,J){N(J)?J.forEach(De=>X(De.bind(n))):J&&X(J.bind(n))}if(G(xl,h),G(No,p),G(Sl,v),G(Rl,O),G(bl,M),G(El,k),G(Il,U),G(Al,H),G(Ol,oe),G(Cl,L),G($o,W),G(Pl,B),N(ie))if(ie.length){const X=e.exposed||(e.exposed={});ie.forEach(J=>{Object.defineProperty(X,J,{get:()=>n[J],set:De=>n[J]=De})})}else e.exposed||(e.exposed={});z&&e.render===Pe&&(e.render=z),pe!=null&&(e.inheritAttrs=pe),Ee&&(e.components=Ee),Se&&(e.directives=Se)}function Ll(e,t,n=Pe){N(e)&&(e=cs(e));for(const s in e){const r=e[s];let o;ee(r)?"default"in r?o=Oe(r.from||s,r.default,!0):o=Oe(r.from||s):o=Oe(r),ue(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function or(e,t,n){Me(N(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ho(e,t,n,s){const r=s.includes(".")?Mo(n,s):()=>n[s];if(ce(e)){const o=t[e];V(o)&&Nt(r,o)}else if(V(e))Nt(r,e.bind(n));else if(ee(e))if(N(e))e.forEach(o=>Ho(o,t,n,s));else{const o=V(e.handler)?e.handler.bind(n):t[e.handler];V(o)&&Nt(r,o,e)}}function Ns(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(d=>vn(c,d,i,!0)),vn(c,t,i)),ee(t)&&o.set(t,c),c}function vn(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&vn(e,o,n,!0),r&&r.forEach(i=>vn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=jl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const jl={data:ir,props:lr,emits:lr,methods:Lt,computed:Lt,beforeCreate:_e,created:_e,beforeMount:_e,mounted:_e,beforeUpdate:_e,updated:_e,beforeDestroy:_e,beforeUnmount:_e,destroyed:_e,unmounted:_e,activated:_e,deactivated:_e,errorCaptured:_e,serverPrefetch:_e,components:Lt,directives:Lt,watch:$l,provide:ir,inject:Nl};function ir(e,t){return t?e?function(){return he(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Nl(e,t){return Lt(cs(e),cs(t))}function cs(e){if(N(e)){const t={};for(let n=0;n1)return n&&V(t)?t.call(s&&s.proxy):t}}function Vl(){return!!(ae||le||xt)}const ko={},Do=()=>Object.create(ko),Uo=e=>Object.getPrototypeOf(e)===ko;function kl(e,t,n,s=!1){const r={},o=Do();e.propsDefaults=Object.create(null),Bo(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:go(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Dl(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=q(r),[c]=e.propsOptions;let d=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[p,v]=Ko(h,t,!0);he(i,p),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!c)return ee(e)&&s.set(e,bt),bt;if(N(o))for(let f=0;f-1,v[1]=M<0||O-1||K(v,"default"))&&l.push(h)}}}const d=[i,l];return ee(e)&&s.set(e,d),d}function cr(e){return e[0]!=="$"&&!jt(e)}function ur(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function fr(e,t){return ur(e)===ur(t)}function ar(e,t){return N(t)?t.findIndex(n=>fr(n,e)):V(t)&&fr(t,e)?0:-1}const Wo=e=>e[0]==="_"||e==="$stable",$s=e=>N(e)?e.map(Fe):[Fe(e)],Ul=(e,t,n)=>{if(t._n)return t;const s=fn((...r)=>$s(t(...r)),n);return s._c=!1,s},qo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Wo(r))continue;const o=e[r];if(V(o))t[r]=Ul(r,o,s);else if(o!=null){const i=$s(o);t[r]=()=>i}}},zo=(e,t)=>{const n=$s(t);e.slots.default=()=>n},Bl=(e,t)=>{const n=e.slots=Do();if(e.vnode.shapeFlag&32){const s=t._;s?(he(n,t),Qr(n,"_",s,!0)):qo(t,n)}else t&&zo(e,t)},Kl=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=te;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(he(r,t),!n&&l===1&&delete r._):(o=!t.$stable,qo(t,r)),i=t}else t&&(zo(e,t),i={default:1});if(o)for(const l in r)!Wo(l)&&i[l]==null&&delete r[l]};function fs(e,t,n,s,r=!1){if(N(e)){e.forEach((p,v)=>fs(p,t&&(N(t)?t[v]:t),n,s,r));return}if($t(s)&&!r)return;const o=s.shapeFlag&4?Hn(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:c}=e,d=t&&t.r,f=l.refs===te?l.refs={}:l.refs,h=l.setupState;if(d!=null&&d!==c&&(ce(d)?(f[d]=null,K(h,d)&&(h[d]=null)):ue(d)&&(d.value=null)),V(c))tt(c,l,12,[i,f]);else{const p=ce(c),v=ue(c);if(p||v){const O=()=>{if(e.f){const M=p?K(h,c)?h[c]:f[c]:c.value;r?N(M)&&bs(M,o):N(M)?M.includes(o)||M.push(o):p?(f[c]=[o],K(h,c)&&(h[c]=f[c])):(c.value=[o],e.k&&(f[e.k]=c.value))}else p?(f[c]=i,K(h,c)&&(h[c]=i)):v&&(c.value=i,e.k&&(f[e.k]=i))};i?(O.id=-1,ve(O,n)):O()}}}const ve=ml;function Wl(e){return ql(e)}function ql(e,t){const n=Yr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:c,setText:d,setElementText:f,parentNode:h,nextSibling:p,setScopeId:v=Pe,insertStaticContent:O}=e,M=(u,a,g,y=null,m=null,w=null,R=void 0,E=null,x=!!a.dynamicChildren)=>{if(u===a)return;u&&!Tt(u,a)&&(y=_(u),ye(u,m,w,!0),u=null),a.patchFlag===-2&&(x=!1,a.dynamicChildren=null);const{type:b,ref:P,shapeFlag:j}=a;switch(b){case $n:k(u,a,g,y);break;case st:I(u,a,g,y);break;case Qn:u==null&&L(a,g,y,R);break;case Ie:Ee(u,a,g,y,m,w,R,E,x);break;default:j&1?z(u,a,g,y,m,w,R,E,x):j&6?Se(u,a,g,y,m,w,R,E,x):(j&64||j&128)&&b.process(u,a,g,y,m,w,R,E,x,A)}P!=null&&m&&fs(P,u&&u.ref,w,a||u,!a)},k=(u,a,g,y)=>{if(u==null)s(a.el=l(a.children),g,y);else{const m=a.el=u.el;a.children!==u.children&&d(m,a.children)}},I=(u,a,g,y)=>{u==null?s(a.el=c(a.children||""),g,y):a.el=u.el},L=(u,a,g,y)=>{[u.el,u.anchor]=O(u.children,a,g,y,u.el,u.anchor)},F=({el:u,anchor:a},g,y)=>{let m;for(;u&&u!==a;)m=p(u),s(u,g,y),u=m;s(a,g,y)},W=({el:u,anchor:a})=>{let g;for(;u&&u!==a;)g=p(u),r(u),u=g;r(a)},z=(u,a,g,y,m,w,R,E,x)=>{a.type==="svg"?R="svg":a.type==="math"&&(R="mathml"),u==null?H(a,g,y,m,w,R,E,x):B(u,a,m,w,R,E,x)},H=(u,a,g,y,m,w,R,E)=>{let x,b;const{props:P,shapeFlag:j,transition:T,dirs:$}=u;if(x=u.el=i(u.type,w,P&&P.is,P),j&8?f(x,u.children):j&16&&U(u.children,x,null,y,m,Jn(u,w),R,E),$&<(u,null,y,"created"),oe(x,u,u.scopeId,R,y),P){for(const Z in P)Z!=="value"&&!jt(Z)&&o(x,Z,null,P[Z],w,u.children,y,m,ge);"value"in P&&o(x,"value",null,P.value,w),(b=P.onVnodeBeforeMount)&&$e(b,y,u)}$&<(u,null,y,"beforeMount");const D=zl(m,T);D&&T.beforeEnter(x),s(x,a,g),((b=P&&P.onVnodeMounted)||D||$)&&ve(()=>{b&&$e(b,y,u),D&&T.enter(x),$&<(u,null,y,"mounted")},m)},oe=(u,a,g,y,m)=>{if(g&&v(u,g),y)for(let w=0;w{for(let b=x;b{const E=a.el=u.el;let{patchFlag:x,dynamicChildren:b,dirs:P}=a;x|=u.patchFlag&16;const j=u.props||te,T=a.props||te;let $;if(g&&ct(g,!1),($=T.onVnodeBeforeUpdate)&&$e($,g,a,u),P&<(a,u,g,"beforeUpdate"),g&&ct(g,!0),b?ie(u.dynamicChildren,b,E,g,y,Jn(a,m),w):R||J(u,a,E,null,g,y,Jn(a,m),w,!1),x>0){if(x&16)pe(E,a,j,T,g,y,m);else if(x&2&&j.class!==T.class&&o(E,"class",null,T.class,m),x&4&&o(E,"style",j.style,T.style,m),x&8){const D=a.dynamicProps;for(let Z=0;Z{$&&$e($,g,a,u),P&<(a,u,g,"updated")},y)},ie=(u,a,g,y,m,w,R)=>{for(let E=0;E{if(g!==y){if(g!==te)for(const E in g)!jt(E)&&!(E in y)&&o(u,E,g[E],null,R,a.children,m,w,ge);for(const E in y){if(jt(E))continue;const x=y[E],b=g[E];x!==b&&E!=="value"&&o(u,E,b,x,R,a.children,m,w,ge)}"value"in y&&o(u,"value",g.value,y.value,R)}},Ee=(u,a,g,y,m,w,R,E,x)=>{const b=a.el=u?u.el:l(""),P=a.anchor=u?u.anchor:l("");let{patchFlag:j,dynamicChildren:T,slotScopeIds:$}=a;$&&(E=E?E.concat($):$),u==null?(s(b,g,y),s(P,g,y),U(a.children||[],g,P,m,w,R,E,x)):j>0&&j&64&&T&&u.dynamicChildren?(ie(u.dynamicChildren,T,g,m,w,R,E),(a.key!=null||m&&a===m.subTree)&&Go(u,a,!0)):J(u,a,g,P,m,w,R,E,x)},Se=(u,a,g,y,m,w,R,E,x)=>{a.slotScopeIds=E,u==null?a.shapeFlag&512?m.ctx.activate(a,g,y,R,x):it(a,g,y,m,w,R,x):Re(u,a,x)},it=(u,a,g,y,m,w,R)=>{const E=u.component=nc(u,y,m);if(Lo(u)&&(E.ctx.renderer=A),sc(E),E.asyncDep){if(m&&m.registerDep(E,G),!u.el){const x=E.subTree=de(st);I(null,x,a,g)}}else G(E,u,a,g,m,w,R)},Re=(u,a,g)=>{const y=a.component=u.component;if(hl(u,a,g))if(y.asyncDep&&!y.asyncResolved){X(y,a,g);return}else y.next=a,ll(y.update),y.effect.dirty=!0,y.update();else a.el=u.el,y.vnode=a},G=(u,a,g,y,m,w,R)=>{const E=()=>{if(u.isMounted){let{next:P,bu:j,u:T,parent:$,vnode:D}=u;{const _t=Jo(u);if(_t){P&&(P.el=D.el,X(u,P,R)),_t.asyncDep.then(()=>{u.isUnmounted||E()});return}}let Z=P,ne;ct(u,!1),P?(P.el=D.el,X(u,P,R)):P=D,j&&cn(j),(ne=P.props&&P.props.onVnodeBeforeUpdate)&&$e(ne,$,P,D),ct(u,!0);const fe=zn(u),Ae=u.subTree;u.subTree=fe,M(Ae,fe,h(Ae.el),_(Ae),u,m,w),P.el=fe.el,Z===null&&pl(u,fe.el),T&&ve(T,m),(ne=P.props&&P.props.onVnodeUpdated)&&ve(()=>$e(ne,$,P,D),m)}else{let P;const{el:j,props:T}=a,{bm:$,m:D,parent:Z}=u,ne=$t(a);if(ct(u,!1),$&&cn($),!ne&&(P=T&&T.onVnodeBeforeMount)&&$e(P,Z,a),ct(u,!0),j&&re){const fe=()=>{u.subTree=zn(u),re(j,u.subTree,u,m,null)};ne?a.type.__asyncLoader().then(()=>!u.isUnmounted&&fe()):fe()}else{const fe=u.subTree=zn(u);M(null,fe,g,y,u,m,w),a.el=fe.el}if(D&&ve(D,m),!ne&&(P=T&&T.onVnodeMounted)){const fe=a;ve(()=>$e(P,Z,fe),m)}(a.shapeFlag&256||Z&&$t(Z.vnode)&&Z.vnode.shapeFlag&256)&&u.a&&ve(u.a,m),u.isMounted=!0,a=g=y=null}},x=u.effect=new Ss(E,Pe,()=>Ls(b),u.scope),b=u.update=()=>{x.dirty&&x.run()};b.id=u.uid,ct(u,!0),b()},X=(u,a,g)=>{a.component=u;const y=u.vnode.props;u.vnode=a,u.next=null,Dl(u,a.props,y,g),Kl(u,a.children,g),rt(),tr(u),ot()},J=(u,a,g,y,m,w,R,E,x=!1)=>{const b=u&&u.children,P=u?u.shapeFlag:0,j=a.children,{patchFlag:T,shapeFlag:$}=a;if(T>0){if(T&128){qe(b,j,g,y,m,w,R,E,x);return}else if(T&256){De(b,j,g,y,m,w,R,E,x);return}}$&8?(P&16&&ge(b,m,w),j!==b&&f(g,j)):P&16?$&16?qe(b,j,g,y,m,w,R,E,x):ge(b,m,w,!0):(P&8&&f(g,""),$&16&&U(j,g,y,m,w,R,E,x))},De=(u,a,g,y,m,w,R,E,x)=>{u=u||bt,a=a||bt;const b=u.length,P=a.length,j=Math.min(b,P);let T;for(T=0;TP?ge(u,m,w,!0,!1,j):U(a,g,y,m,w,R,E,x,j)},qe=(u,a,g,y,m,w,R,E,x)=>{let b=0;const P=a.length;let j=u.length-1,T=P-1;for(;b<=j&&b<=T;){const $=u[b],D=a[b]=x?Ye(a[b]):Fe(a[b]);if(Tt($,D))M($,D,g,null,m,w,R,E,x);else break;b++}for(;b<=j&&b<=T;){const $=u[j],D=a[T]=x?Ye(a[T]):Fe(a[T]);if(Tt($,D))M($,D,g,null,m,w,R,E,x);else break;j--,T--}if(b>j){if(b<=T){const $=T+1,D=$T)for(;b<=j;)ye(u[b],m,w,!0),b++;else{const $=b,D=b,Z=new Map;for(b=D;b<=T;b++){const we=a[b]=x?Ye(a[b]):Fe(a[b]);we.key!=null&&Z.set(we.key,b)}let ne,fe=0;const Ae=T-D+1;let _t=!1,Bs=0;const It=new Array(Ae);for(b=0;b=Ae){ye(we,m,w,!0);continue}let Ne;if(we.key!=null)Ne=Z.get(we.key);else for(ne=D;ne<=T;ne++)if(It[ne-D]===0&&Tt(we,a[ne])){Ne=ne;break}Ne===void 0?ye(we,m,w,!0):(It[Ne-D]=b+1,Ne>=Bs?Bs=Ne:_t=!0,M(we,a[Ne],g,null,m,w,R,E,x),fe++)}const Ks=_t?Gl(It):bt;for(ne=Ks.length-1,b=Ae-1;b>=0;b--){const we=D+b,Ne=a[we],Ws=we+1{const{el:w,type:R,transition:E,children:x,shapeFlag:b}=u;if(b&6){je(u.component.subTree,a,g,y);return}if(b&128){u.suspense.move(a,g,y);return}if(b&64){R.move(u,a,g,A);return}if(R===Ie){s(w,a,g);for(let j=0;jE.enter(w),m);else{const{leave:j,delayLeave:T,afterLeave:$}=E,D=()=>s(w,a,g),Z=()=>{j(w,()=>{D(),$&&$()})};T?T(w,D,Z):Z()}else s(w,a,g)},ye=(u,a,g,y=!1,m=!1)=>{const{type:w,props:R,ref:E,children:x,dynamicChildren:b,shapeFlag:P,patchFlag:j,dirs:T}=u;if(E!=null&&fs(E,null,g,u,!0),P&256){a.ctx.deactivate(u);return}const $=P&1&&T,D=!$t(u);let Z;if(D&&(Z=R&&R.onVnodeBeforeUnmount)&&$e(Z,a,u),P&6)Zt(u.component,g,y);else{if(P&128){u.suspense.unmount(g,y);return}$&<(u,null,a,"beforeUnmount"),P&64?u.type.remove(u,a,g,m,A,y):b&&(w!==Ie||j>0&&j&64)?ge(b,a,g,!1,!0):(w===Ie&&j&384||!m&&P&16)&&ge(x,a,g),y&>(u)}(D&&(Z=R&&R.onVnodeUnmounted)||$)&&ve(()=>{Z&&$e(Z,a,u),$&<(u,null,a,"unmounted")},g)},gt=u=>{const{type:a,el:g,anchor:y,transition:m}=u;if(a===Ie){mt(g,y);return}if(a===Qn){W(u);return}const w=()=>{r(g),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(u.shapeFlag&1&&m&&!m.persisted){const{leave:R,delayLeave:E}=m,x=()=>R(g,w);E?E(u.el,w,x):x()}else w()},mt=(u,a)=>{let g;for(;u!==a;)g=p(u),r(u),u=g;r(a)},Zt=(u,a,g)=>{const{bum:y,scope:m,update:w,subTree:R,um:E}=u;y&&cn(y),m.stop(),w&&(w.active=!1,ye(R,u,a,g)),E&&ve(E,a),ve(()=>{u.isUnmounted=!0},a),a&&a.pendingBranch&&!a.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===a.pendingId&&(a.deps--,a.deps===0&&a.resolve())},ge=(u,a,g,y=!1,m=!1,w=0)=>{for(let R=w;Ru.shapeFlag&6?_(u.component.subTree):u.shapeFlag&128?u.suspense.next():p(u.anchor||u.el);let C=!1;const S=(u,a,g)=>{u==null?a._vnode&&ye(a._vnode,null,null,!0):M(a._vnode||null,u,a,null,null,null,g),C||(C=!0,tr(),So(),C=!1),a._vnode=u},A={p:M,um:ye,m:je,r:gt,mt:it,mc:U,pc:J,pbc:ie,n:_,o:e};let Q,re;return{render:S,hydrate:Q,createApp:Hl(S,Q)}}function Jn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ct({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function zl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Go(e,t,n=!1){const s=e.children,r=t.children;if(N(s)&&N(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Jo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Jo(t)}const Jl=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),$n=Symbol.for("v-txt"),st=Symbol.for("v-cmt"),Qn=Symbol.for("v-stc"),Ht=[];let Te=null;function St(e=!1){Ht.push(Te=e?null:[])}function Ql(){Ht.pop(),Te=Ht[Ht.length-1]||null}let zt=1;function dr(e){zt+=e}function Qo(e){return e.dynamicChildren=zt>0?Te||bt:null,Ql(),zt>0&&Te&&Te.push(e),e}function as(e,t,n,s,r,o){return Qo(se(e,t,n,s,r,o,!0))}function Fs(e,t,n,s,r){return Qo(de(e,t,n,s,r,!0))}function bn(e){return e?e.__v_isVNode===!0:!1}function Tt(e,t){return e.type===t.type&&e.key===t.key}const Yo=({key:e})=>e??null,dn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ce(e)||ue(e)||V(e)?{i:le,r:e,k:t,f:!!n}:e:null);function se(e,t=null,n=null,s=0,r=null,o=e===Ie?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Yo(t),ref:t&&dn(t),scopeId:Ln,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:le};return l?(Vs(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ce(n)?8:16),zt>0&&!i&&Te&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Te.push(c),c}const de=Yl;function Yl(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Ao)&&(e=st),bn(e)){const l=Ct(e,t,!0);return n&&Vs(l,n),zt>0&&!o&&Te&&(l.shapeFlag&6?Te[Te.indexOf(e)]=l:Te.push(l)),l.patchFlag|=-2,l}if(cc(e)&&(e=e.__vccOpts),t){t=Xl(t);let{class:l,style:c}=t;l&&!ce(l)&&(t.class=xs(l)),ee(c)&&(_o(c)&&!N(c)&&(c=he({},c)),t.style=ws(c))}const i=ce(e)?1:gl(e)?128:Jl(e)?64:ee(e)?4:V(e)?2:0;return se(e,t,n,s,r,i,o,!0)}function Xl(e){return e?_o(e)||Uo(e)?he({},e):e:null}function Ct(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:c}=e,d=t?Zl(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Yo(d),ref:t&&t.ref?n&&o?N(o)?o.concat(dn(t)):[o,dn(t)]:dn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ct(e.ssContent),ssFallback:e.ssFallback&&Ct(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&(f.transition=c.clone(f)),f}function Hs(e=" ",t=0){return de($n,null,e,t)}function hr(e="",t=!1){return t?(St(),Fs(st,null,e)):de(st,null,e)}function Fe(e){return e==null||typeof e=="boolean"?de(st):N(e)?de(Ie,null,e.slice()):typeof e=="object"?Ye(e):de($n,null,String(e))}function Ye(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ct(e)}function Vs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(N(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Vs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Uo(t)?t._ctx=le:r===3&&le&&(le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:le},n=32):(t=String(t),s&64?(n=16,t=[Hs(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zl(...e){const t={};for(let n=0;nae||le;let En,ds;{const e=Yr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};En=t("__VUE_INSTANCE_SETTERS__",n=>ae=n),ds=t("__VUE_SSR_SETTERS__",n=>Fn=n)}const Xt=e=>{const t=ae;return En(e),e.scope.on(),()=>{e.scope.off(),En(t)}},pr=()=>{ae&&ae.scope.off(),En(null)};function Xo(e){return e.vnode.shapeFlag&4}let Fn=!1;function sc(e,t=!1){t&&ds(t);const{props:n,children:s}=e.vnode,r=Xo(e);kl(e,n,r,t),Bl(e,s);const o=r?rc(e,t):void 0;return t&&ds(!1),o}function rc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tl);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?ic(e):null,o=Xt(e);rt();const i=tt(s,e,0,[e.props,r]);if(ot(),o(),zr(i)){if(i.then(pr,pr),t)return i.then(l=>{gr(e,l,t)}).catch(l=>{In(l,e,0)});e.asyncDep=i}else gr(e,i,t)}else Zo(e,t)}function gr(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ee(t)&&(e.setupState=Eo(t)),Zo(e,n)}let mr;function Zo(e,t,n){const s=e.type;if(!e.render){if(!t&&mr&&!s.render){const r=s.template||Ns(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,d=he(he({isCustomElement:o,delimiters:l},i),c);s.render=mr(r,d)}}e.render=s.render||Pe}{const r=Xt(e);rt();try{Ml(e)}finally{ot(),r()}}}const oc={get(e,t){return be(e,"get",""),e[t]}};function ic(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,oc),slots:e.slots,emit:e.emit,expose:t}}function Hn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Eo(Is(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ft)return Ft[n](e)},has(t,n){return n in t||n in Ft}}))}function lc(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function cc(e){return V(e)&&"__vccOpts"in e}const Ce=(e,t)=>Xi(e,t,Fn);function ei(e,t,n){const s=arguments.length;return s===2?ee(t)&&!N(t)?bn(t)?de(e,null,[t]):de(e,t):de(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&bn(n)&&(n=[n]),de(e,t,n))}const uc="3.4.27";/** * @vue/runtime-dom v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const fc="http://www.w3.org/2000/svg",ac="http://www.w3.org/1998/Math/MathML",Xe=typeof document<"u"?document:null,_r=Xe&&Xe.createElement("template"),dc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Xe.createElementNS(fc,e):t==="mathml"?Xe.createElementNS(ac,e):Xe.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Xe.createTextNode(e),createComment:e=>Xe.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xe.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{_r.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const l=_r.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},hc=Symbol("_vtc");function pc(e,t,n){const s=e[hc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const yr=Symbol("_vod"),gc=Symbol("_vsh"),mc=Symbol(""),_c=/(^|;)\s*display\s*:/;function yc(e,t,n){const s=e.style,r=ce(n);let o=!1;if(n&&!r){if(t)if(ce(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&dn(s,l,"")}else for(const i in t)n[i]==null&&dn(s,i,"");for(const i in n)i==="display"&&(o=!0),dn(s,i,n[i])}else if(r){if(t!==n){const i=s[mc];i&&(n+=";"+i),s.cssText=n,o=_c.test(n)}}else t&&e.removeAttribute("style");yr in e&&(e[yr]=o?s.display:"",e[gc]&&(s.display="none"))}const vr=/\s*!important$/;function dn(e,t,n){if(N(n))n.forEach(s=>dn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=vc(e,t);vr.test(n)?e.setProperty(At(s),n.replace(vr,""),"important"):e[s]=n}}const br=["Webkit","Moz","ms"],Qn={};function vc(e,t){const n=Qn[t];if(n)return n;let s=ke(t);if(s!=="filter"&&s in e)return Qn[t]=s;s=Cn(s);for(let r=0;rYn||(Rc.then(()=>Yn=0),Yn=Date.now());function Pc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Me(Oc(s,n.value),t,5,[s])};return n.value=e,n.attached=Cc(),n}function Oc(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Sr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ac=(e,t,n,s,r,o,i,l,c)=>{const d=r==="svg";t==="class"?pc(e,s,d):t==="style"?yc(e,n,s):xn(t)?vs(t)||xc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ic(e,t,s,d))?Ec(e,t,s,o,i,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),bc(e,t,s,d))};function Ic(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Sr(t)&&V(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Sr(t)&&ce(n)?!1:t in e}const En=e=>{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?n=>ln(t,n):t};function Tc(e){e.target.composing=!0}function Rr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rt=Symbol("_assign"),wf={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Rt]=En(r);const o=s||r.props&&r.props.type==="number";ft(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=pn(l)),e[Rt](l)}),n&&ft(e,"change",()=>{e.value=e.value.trim()}),t||(ft(e,"compositionstart",Tc),ft(e,"compositionend",Rr),ft(e,"change",Rr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e[Rt]=En(o),e.composing)return;const i=(r||e.type==="number")&&!/^0\d/.test(e.value)?pn(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===l)||(e.value=l))}},xf={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Sn(t);ft(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?pn(wn(i)):wn(i));e[Rt](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,In(()=>{e._assigning=!1})}),e[Rt]=En(s)},mounted(e,{value:t,modifiers:{number:n}}){Cr(e,t)},beforeUpdate(e,t,n){e[Rt]=En(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||Cr(e,t)}};function Cr(e,t,n){const s=e.multiple,r=N(t);if(!(s&&!r&&!Sn(t))){for(let o=0,i=e.options.length;oString(f)===String(c)):l.selected=Ai(t,c)>-1}else l.selected=t.has(c);else if(Pn(wn(l),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function wn(e){return"_value"in e?e._value:e.value}const Mc=["ctrl","shift","alt","meta"],Lc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Mc.some(n=>e[`${n}Key`]&&!t.includes(n))},Pr=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i{const t=Nc().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Hc(s);if(!r)return;const o=t._component;!V(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,Fc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Fc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Hc(e){return ce(e)?document.querySelector(e):e}var Vc=!1;/*! +**/const fc="http://www.w3.org/2000/svg",ac="http://www.w3.org/1998/Math/MathML",Xe=typeof document<"u"?document:null,_r=Xe&&Xe.createElement("template"),dc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Xe.createElementNS(fc,e):t==="mathml"?Xe.createElementNS(ac,e):Xe.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Xe.createTextNode(e),createComment:e=>Xe.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xe.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{_r.innerHTML=s==="svg"?`${e}`:s==="mathml"?`${e}`:e;const l=_r.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},hc=Symbol("_vtc");function pc(e,t,n){const s=e[hc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const yr=Symbol("_vod"),gc=Symbol("_vsh"),mc=Symbol(""),_c=/(^|;)\s*display\s*:/;function yc(e,t,n){const s=e.style,r=ce(n);let o=!1;if(n&&!r){if(t)if(ce(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&hn(s,l,"")}else for(const i in t)n[i]==null&&hn(s,i,"");for(const i in n)i==="display"&&(o=!0),hn(s,i,n[i])}else if(r){if(t!==n){const i=s[mc];i&&(n+=";"+i),s.cssText=n,o=_c.test(n)}}else t&&e.removeAttribute("style");yr in e&&(e[yr]=o?s.display:"",e[gc]&&(s.display="none"))}const vr=/\s*!important$/;function hn(e,t,n){if(N(n))n.forEach(s=>hn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=vc(e,t);vr.test(n)?e.setProperty(At(s),n.replace(vr,""),"important"):e[s]=n}}const br=["Webkit","Moz","ms"],Yn={};function vc(e,t){const n=Yn[t];if(n)return n;let s=ke(t);if(s!=="filter"&&s in e)return Yn[t]=s;s=Pn(s);for(let r=0;rXn||(Rc.then(()=>Xn=0),Xn=Date.now());function Pc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Me(Oc(s,n.value),t,5,[s])};return n.value=e,n.attached=Cc(),n}function Oc(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Sr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ac=(e,t,n,s,r,o,i,l,c)=>{const d=r==="svg";t==="class"?pc(e,s,d):t==="style"?yc(e,n,s):Sn(t)?vs(t)||xc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ic(e,t,s,d))?Ec(e,t,s,o,i,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),bc(e,t,s,d))};function Ic(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Sr(t)&&V(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Sr(t)&&ce(n)?!1:t in e}const wn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?n=>cn(t,n):t};function Tc(e){e.target.composing=!0}function Rr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rt=Symbol("_assign"),wf={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Rt]=wn(r);const o=s||r.props&&r.props.type==="number";ft(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=gn(l)),e[Rt](l)}),n&&ft(e,"change",()=>{e.value=e.value.trim()}),t||(ft(e,"compositionstart",Tc),ft(e,"compositionend",Rr),ft(e,"change",Rr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e[Rt]=wn(o),e.composing)return;const i=(r||e.type==="number")&&!/^0\d/.test(e.value)?gn(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===l)||(e.value=l))}},xf={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Rn(t);ft(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?gn(xn(i)):xn(i));e[Rt](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Tn(()=>{e._assigning=!1})}),e[Rt]=wn(s)},mounted(e,{value:t,modifiers:{number:n}}){Cr(e,t)},beforeUpdate(e,t,n){e[Rt]=wn(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||Cr(e,t)}};function Cr(e,t,n){const s=e.multiple,r=N(t);if(!(s&&!r&&!Rn(t))){for(let o=0,i=e.options.length;oString(f)===String(c)):l.selected=Ai(t,c)>-1}else l.selected=t.has(c);else if(On(xn(l),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function xn(e){return"_value"in e?e._value:e.value}const Mc=["ctrl","shift","alt","meta"],Lc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Mc.some(n=>e[`${n}Key`]&&!t.includes(n))},Pr=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i{const t=Nc().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Hc(s);if(!r)return;const o=t._component;!V(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,Fc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Fc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Hc(e){return ce(e)?document.querySelector(e):e}var Vc=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let ti;const Hn=e=>ti=e,ni=Symbol();function hs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Vt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Vt||(Vt={}));function kc(){const e=to(!0),t=e.run(()=>Kt({}));let n=[],s=[];const r=Is({install(o){Hn(r),r._a=o,o.provide(ni,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return!this._a&&!Vc?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const si=()=>{};function Ar(e,t,n,s=si){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&no()&&Ti(r),r}function yt(e,...t){e.slice().forEach(n=>{n(...t)})}const Dc=e=>e();function ps(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];hs(r)&&hs(s)&&e.hasOwnProperty(n)&&!ue(s)&&!pt(s)?e[n]=ps(r,s):e[n]=s}return e}const Uc=Symbol();function Bc(e){return!hs(e)||!e.hasOwnProperty(Uc)}const{assign:Je}=Object;function Kc(e){return!!(ue(e)&&e.effect)}function Wc(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let c;function d(){l||(n.state.value[e]=r?r():{});const f=nl(n.state.value[e]);return Je(f,o,Object.keys(i||{}).reduce((h,p)=>(h[p]=Is(Ce(()=>{Hn(n);const v=n._s.get(e);return i[p].call(v,v)})),h),{}))}return c=ri(e,d,t,n,s,!0),c}function ri(e,t,n={},s,r,o){let i;const l=Je({actions:{}},n),c={deep:!0};let d,f,h=[],p=[],v;const O=s.state.value[e];!o&&!O&&(s.state.value[e]={}),Kt({});let M;function k(U){let B;d=f=!1,typeof U=="function"?(U(s.state.value[e]),B={type:Vt.patchFunction,storeId:e,events:v}):(ps(s.state.value[e],U),B={type:Vt.patchObject,payload:U,storeId:e,events:v});const ie=M=Symbol();In().then(()=>{M===ie&&(d=!0)}),f=!0,yt(h,B,s.state.value[e])}const I=o?function(){const{state:B}=n,ie=B?B():{};this.$patch(pe=>{Je(pe,ie)})}:si;function L(){i.stop(),h=[],p=[],s._s.delete(e)}function F(U,B){return function(){Hn(s);const ie=Array.from(arguments),pe=[],Ee=[];function Se(G){pe.push(G)}function it(G){Ee.push(G)}yt(p,{args:ie,name:U,store:z,after:Se,onError:it});let Re;try{Re=B.apply(this&&this.$id===e?this:z,ie)}catch(G){throw yt(Ee,G),G}return Re instanceof Promise?Re.then(G=>(yt(pe,G),G)).catch(G=>(yt(Ee,G),Promise.reject(G))):(yt(pe,Re),Re)}}const W={_p:s,$id:e,$onAction:Ar.bind(null,p),$patch:k,$reset:I,$subscribe(U,B={}){const ie=Ar(h,U,B.detached,()=>pe()),pe=i.run(()=>Nt(()=>s.state.value[e],Ee=>{(B.flush==="sync"?f:d)&&U({storeId:e,type:Vt.direct,events:v},Ee)},Je({},c,B)));return ie},$dispose:L},z=Yt(W);s._s.set(e,z);const oe=(s._a&&s._a.runWithContext||Dc)(()=>s._e.run(()=>(i=to()).run(t)));for(const U in oe){const B=oe[U];if(ue(B)&&!Kc(B)||pt(B))o||(O&&Bc(B)&&(ue(B)?B.value=O[U]:ps(B,O[U])),s.state.value[e][U]=B);else if(typeof B=="function"){const ie=F(U,B);oe[U]=ie,l.actions[U]=B}}return Je(z,oe),Je(q(z),oe),Object.defineProperty(z,"$state",{get:()=>s.state.value[e],set:U=>{k(B=>{Je(B,U)})}}),s._p.forEach(U=>{Je(z,i.run(()=>U({store:z,app:s._a,pinia:s,options:l})))}),O&&o&&n.hydrate&&n.hydrate(z.$state,O),d=!0,f=!0,z}function Sf(e,t,n){let s,r;const o=typeof t=="function";s=e,r=o?n:t;function i(l,c){const d=Vl();return l=l||(d?Oe(ni,null):null),l&&Hn(l),l=ti,l._s.has(s)||(o?ri(s,t,r,l):Wc(s,r,l)),l._s.get(s)}return i.$id=s,i}const qc="/logo_protected_inverted.png";/*! + */let ti;const Vn=e=>ti=e,ni=Symbol();function hs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Vt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Vt||(Vt={}));function kc(){const e=to(!0),t=e.run(()=>Kt({}));let n=[],s=[];const r=Is({install(o){Vn(r),r._a=o,o.provide(ni,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return!this._a&&!Vc?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const si=()=>{};function Ar(e,t,n,s=si){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&no()&&Ti(r),r}function yt(e,...t){e.slice().forEach(n=>{n(...t)})}const Dc=e=>e();function ps(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];hs(r)&&hs(s)&&e.hasOwnProperty(n)&&!ue(s)&&!pt(s)?e[n]=ps(r,s):e[n]=s}return e}const Uc=Symbol();function Bc(e){return!hs(e)||!e.hasOwnProperty(Uc)}const{assign:Je}=Object;function Kc(e){return!!(ue(e)&&e.effect)}function Wc(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let c;function d(){l||(n.state.value[e]=r?r():{});const f=nl(n.state.value[e]);return Je(f,o,Object.keys(i||{}).reduce((h,p)=>(h[p]=Is(Ce(()=>{Vn(n);const v=n._s.get(e);return i[p].call(v,v)})),h),{}))}return c=ri(e,d,t,n,s,!0),c}function ri(e,t,n={},s,r,o){let i;const l=Je({actions:{}},n),c={deep:!0};let d,f,h=[],p=[],v;const O=s.state.value[e];!o&&!O&&(s.state.value[e]={}),Kt({});let M;function k(U){let B;d=f=!1,typeof U=="function"?(U(s.state.value[e]),B={type:Vt.patchFunction,storeId:e,events:v}):(ps(s.state.value[e],U),B={type:Vt.patchObject,payload:U,storeId:e,events:v});const ie=M=Symbol();Tn().then(()=>{M===ie&&(d=!0)}),f=!0,yt(h,B,s.state.value[e])}const I=o?function(){const{state:B}=n,ie=B?B():{};this.$patch(pe=>{Je(pe,ie)})}:si;function L(){i.stop(),h=[],p=[],s._s.delete(e)}function F(U,B){return function(){Vn(s);const ie=Array.from(arguments),pe=[],Ee=[];function Se(G){pe.push(G)}function it(G){Ee.push(G)}yt(p,{args:ie,name:U,store:z,after:Se,onError:it});let Re;try{Re=B.apply(this&&this.$id===e?this:z,ie)}catch(G){throw yt(Ee,G),G}return Re instanceof Promise?Re.then(G=>(yt(pe,G),G)).catch(G=>(yt(Ee,G),Promise.reject(G))):(yt(pe,Re),Re)}}const W={_p:s,$id:e,$onAction:Ar.bind(null,p),$patch:k,$reset:I,$subscribe(U,B={}){const ie=Ar(h,U,B.detached,()=>pe()),pe=i.run(()=>Nt(()=>s.state.value[e],Ee=>{(B.flush==="sync"?f:d)&&U({storeId:e,type:Vt.direct,events:v},Ee)},Je({},c,B)));return ie},$dispose:L},z=Yt(W);s._s.set(e,z);const oe=(s._a&&s._a.runWithContext||Dc)(()=>s._e.run(()=>(i=to()).run(t)));for(const U in oe){const B=oe[U];if(ue(B)&&!Kc(B)||pt(B))o||(O&&Bc(B)&&(ue(B)?B.value=O[U]:ps(B,O[U])),s.state.value[e][U]=B);else if(typeof B=="function"){const ie=F(U,B);oe[U]=ie,l.actions[U]=B}}return Je(z,oe),Je(q(z),oe),Object.defineProperty(z,"$state",{get:()=>s.state.value[e],set:U=>{k(B=>{Je(B,U)})}}),s._p.forEach(U=>{Je(z,i.run(()=>U({store:z,app:s._a,pinia:s,options:l})))}),O&&o&&n.hydrate&&n.hydrate(z.$state,O),d=!0,f=!0,z}function Sf(e,t,n){let s,r;const o=typeof t=="function";s=e,r=o?n:t;function i(l,c){const d=Vl();return l=l||(d?Oe(ni,null):null),l&&Vn(l),l=ti,l._s.has(s)||(o?ri(s,t,r,l):Wc(s,r,l)),l._s.get(s)}return i.$id=s,i}const qc="/logo_protected_inverted.png";/*! * vue-router v4.3.2 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const vt=typeof document<"u";function zc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Y=Object.assign;function Xn(e,t){const n={};for(const s in t){const r=t[s];n[s]=Le(r)?r.map(e):e(r)}return n}const kt=()=>{},Le=Array.isArray,oi=/#/g,Gc=/&/g,Jc=/\//g,Qc=/=/g,Yc=/\?/g,ii=/\+/g,Xc=/%5B/g,Zc=/%5D/g,li=/%5E/g,eu=/%60/g,ci=/%7B/g,tu=/%7C/g,ui=/%7D/g,nu=/%20/g;function ks(e){return encodeURI(""+e).replace(tu,"|").replace(Xc,"[").replace(Zc,"]")}function su(e){return ks(e).replace(ci,"{").replace(ui,"}").replace(li,"^")}function gs(e){return ks(e).replace(ii,"%2B").replace(nu,"+").replace(oi,"%23").replace(Gc,"%26").replace(eu,"`").replace(ci,"{").replace(ui,"}").replace(li,"^")}function ru(e){return gs(e).replace(Qc,"%3D")}function ou(e){return ks(e).replace(oi,"%23").replace(Yc,"%3F")}function iu(e){return e==null?"":ou(e).replace(Jc,"%2F")}function Gt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const lu=/\/$/,cu=e=>e.replace(lu,"");function Zn(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=du(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Gt(i)}}function uu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ir(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function fu(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Pt(t.matched[s],n.matched[r])&&fi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Pt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function fi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!au(e[n],t[n]))return!1;return!0}function au(e,t){return Le(e)?Tr(e,t):Le(t)?Tr(t,e):e===t}function Tr(e,t){return Le(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function du(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}var Jt;(function(e){e.pop="pop",e.push="push"})(Jt||(Jt={}));var Dt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Dt||(Dt={}));function hu(e){if(!e)if(vt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),cu(e)}const pu=/^[^#]+#/;function gu(e,t){return e.replace(pu,"#")+t}function mu(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Vn=()=>({left:window.scrollX,top:window.scrollY});function _u(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=mu(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Mr(e,t){return(history.state?history.state.position-t:-1)+e}const ms=new Map;function yu(e,t){ms.set(e,t)}function vu(e){const t=ms.get(e);return ms.delete(e),t}let bu=()=>location.protocol+"//"+location.host;function ai(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),Ir(c,"")}return Ir(n,e)+s+r}function Eu(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const v=ai(e,location),O=n.value,M=t.value;let k=0;if(p){if(n.value=v,t.value=p,i&&i===O){i=null;return}k=M?p.position-M.position:0}else s(v);r.forEach(I=>{I(n.value,O,{delta:k,type:Jt.pop,direction:k?k>0?Dt.forward:Dt.back:Dt.unknown})})};function c(){i=n.value}function d(p){r.push(p);const v=()=>{const O=r.indexOf(p);O>-1&&r.splice(O,1)};return o.push(v),v}function f(){const{history:p}=window;p.state&&p.replaceState(Y({},p.state,{scroll:Vn()}),"")}function h(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:c,listen:d,destroy:h}}function Lr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Vn():null}}function wu(e){const{history:t,location:n}=window,s={value:ai(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,d,f){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:bu()+e+c;try{t[f?"replaceState":"pushState"](d,"",p),r.value=d}catch(v){console.error(v),n[f?"replace":"assign"](p)}}function i(c,d){const f=Y({},t.state,Lr(r.value.back,c,r.value.forward,!0),d,{position:r.value.position});o(c,f,!0),s.value=c}function l(c,d){const f=Y({},r.value,t.state,{forward:c,scroll:Vn()});o(f.current,f,!0);const h=Y({},Lr(s.value,c,null),{position:f.position+1},d);o(c,h,!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function xu(e){e=hu(e);const t=wu(e),n=Eu(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Y({location:"",base:e,go:s,createHref:gu.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Su(e){return typeof e=="string"||e&&typeof e=="object"}function di(e){return typeof e=="string"||typeof e=="symbol"}const Ge={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},hi=Symbol("");var jr;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(jr||(jr={}));function Ot(e,t){return Y(new Error,{type:e,[hi]:!0},t)}function Ue(e,t){return e instanceof Error&&hi in e&&(t==null||!!(e.type&t))}const Nr="[^/]+?",Ru={sensitive:!1,strict:!1,start:!0,end:!0},Cu=/[.+*?^${}()[\]/\\]/g;function Pu(e,t){const n=Y({},Ru,t),s=[];let r=n.start?"^":"";const o=[];for(const d of e){const f=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let h=0;ht.length?t.length===1&&t[0]===80?1:-1:0}function Au(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Iu={type:0,value:""},Tu=/[a-zA-Z0-9_]/;function Mu(e){if(!e)return[[]];if(e==="/")return[[Iu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${d}": ${v}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,d="",f="";function h(){d&&(n===0?o.push({type:0,value:d}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:d,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=c}for(;l{i(L)}:kt}function i(f){if(di(f)){const h=s.get(f);h&&(s.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&s.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function c(f){let h=0;for(;h=0&&(f.record.path!==n[h].record.path||!pi(f,n[h]));)h++;n.splice(h,0,f),f.record.name&&!Hr(f)&&s.set(f.record.name,f)}function d(f,h){let p,v={},O,M;if("name"in f&&f.name){if(p=s.get(f.name),!p)throw Ot(1,{location:f});M=p.record.name,v=Y(Fr(h.params,p.keys.filter(L=>!L.optional).concat(p.parent?p.parent.keys.filter(L=>L.optional):[]).map(L=>L.name)),f.params&&Fr(f.params,p.keys.map(L=>L.name))),O=p.stringify(v)}else if(f.path!=null)O=f.path,p=n.find(L=>L.re.test(O)),p&&(v=p.parse(O),M=p.record.name);else{if(p=h.name?s.get(h.name):n.find(L=>L.re.test(h.path)),!p)throw Ot(1,{location:f,currentLocation:h});M=p.record.name,v=Y({},h.params,f.params),O=p.stringify(v)}const k=[];let I=p;for(;I;)k.unshift(I.record),I=I.parent;return{name:M,path:O,params:v,matched:k,meta:Fu(k)}}return e.forEach(f=>o(f)),{addRoute:o,resolve:d,removeRoute:i,getRoutes:l,getRecordMatcher:r}}function Fr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Nu(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:$u(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function $u(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Hr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Fu(e){return e.reduce((t,n)=>Y(t,n.meta),{})}function Vr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function pi(e,t){return t.children.some(n=>n===e||pi(e,n))}function Hu(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&gs(o)):[s&&gs(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Vu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Le(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const ku=Symbol(""),Dr=Symbol(""),kn=Symbol(""),Ds=Symbol(""),_s=Symbol("");function Mt(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ze(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const d=p=>{p===!1?c(Ot(4,{from:n,to:t})):p instanceof Error?c(p):Su(p)?c(Ot(2,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),l())},f=o(()=>e.call(s&&s.instances[r],t,n,d));let h=Promise.resolve(f);e.length<3&&(h=h.then(d)),h.catch(p=>c(p))})}function es(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Du(c)){const f=(c.__vccOpts||c)[t];f&&o.push(Ze(f,n,s,i,l,r))}else{let d=c();o.push(()=>d.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const h=zc(f)?f.default:f;i.components[l]=h;const v=(h.__vccOpts||h)[t];return v&&Ze(v,n,s,i,l,r)()}))}}return o}function Du(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ur(e){const t=Oe(kn),n=Oe(Ds),s=Ce(()=>{const c=Ve(e.to);return t.resolve(c)}),r=Ce(()=>{const{matched:c}=s.value,{length:d}=c,f=c[d-1],h=n.matched;if(!f||!h.length)return-1;const p=h.findIndex(Pt.bind(null,f));if(p>-1)return p;const v=Br(c[d-2]);return d>1&&Br(f)===v&&h[h.length-1].path!==v?h.findIndex(Pt.bind(null,c[d-2])):p}),o=Ce(()=>r.value>-1&&Ku(n.params,s.value.params)),i=Ce(()=>r.value>-1&&r.value===n.matched.length-1&&fi(n.params,s.value.params));function l(c={}){return Bu(c)?t[Ve(e.replace)?"replace":"push"](Ve(e.to)).catch(kt):Promise.resolve()}return{route:s,href:Ce(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}const Uu=Ln({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ur,setup(e,{slots:t}){const n=Yt(Ur(e)),{options:s}=Oe(kn),r=Ce(()=>({[Kr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Kr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:ei("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),hn=Uu;function Bu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ku(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Le(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function Br(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Kr=(e,t,n)=>e??t??n,Wu=Ln({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Oe(_s),r=Ce(()=>e.route||s.value),o=Oe(Dr,0),i=Ce(()=>{let d=Ve(o);const{matched:f}=r.value;let h;for(;(h=f[d])&&!h.components;)d++;return d}),l=Ce(()=>r.value.matched[i.value]);fn(Dr,Ce(()=>i.value+1)),fn(ku,l),fn(_s,r);const c=Kt();return Nt(()=>[c.value,l.value,e.name],([d,f,h],[p,v,O])=>{f&&(f.instances[h]=d,v&&v!==f&&d&&d===p&&(f.leaveGuards.size||(f.leaveGuards=v.leaveGuards),f.updateGuards.size||(f.updateGuards=v.updateGuards))),d&&f&&(!v||!Pt(f,v)||!p)&&(f.enterCallbacks[h]||[]).forEach(M=>M(d))},{flush:"post"}),()=>{const d=r.value,f=e.name,h=l.value,p=h&&h.components[f];if(!p)return Wr(n.default,{Component:p,route:d});const v=h.props[f],O=v?v===!0?d.params:typeof v=="function"?v(d):v:null,k=ei(p,Y({},O,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(h.instances[f]=null)},ref:c}));return Wr(n.default,{Component:k,route:d})||k}}});function Wr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const gi=Wu;function qu(e){const t=ju(e.routes,e),n=e.parseQuery||Hu,s=e.stringifyQuery||kr,r=e.history,o=Mt(),i=Mt(),l=Mt(),c=Zi(Ge);let d=Ge;vt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Xn.bind(null,_=>""+_),h=Xn.bind(null,iu),p=Xn.bind(null,Gt);function v(_,C){let S,A;return di(_)?(S=t.getRecordMatcher(_),A=C):A=_,t.addRoute(A,S)}function O(_){const C=t.getRecordMatcher(_);C&&t.removeRoute(C)}function M(){return t.getRoutes().map(_=>_.record)}function k(_){return!!t.getRecordMatcher(_)}function I(_,C){if(C=Y({},C||c.value),typeof _=="string"){const a=Zn(n,_,C.path),g=t.resolve({path:a.path},C),y=r.createHref(a.fullPath);return Y(a,g,{params:p(g.params),hash:Gt(a.hash),redirectedFrom:void 0,href:y})}let S;if(_.path!=null)S=Y({},_,{path:Zn(n,_.path,C.path).path});else{const a=Y({},_.params);for(const g in a)a[g]==null&&delete a[g];S=Y({},_,{params:h(a)}),C.params=h(C.params)}const A=t.resolve(S,C),Q=_.hash||"";A.params=f(p(A.params));const re=uu(s,Y({},_,{hash:su(Q),path:A.path})),u=r.createHref(re);return Y({fullPath:re,hash:Q,query:s===kr?Vu(_.query):_.query||{}},A,{redirectedFrom:void 0,href:u})}function L(_){return typeof _=="string"?Zn(n,_,c.value.path):Y({},_)}function F(_,C){if(d!==_)return Ot(8,{from:C,to:_})}function W(_){return oe(_)}function z(_){return W(Y(L(_),{replace:!0}))}function H(_){const C=_.matched[_.matched.length-1];if(C&&C.redirect){const{redirect:S}=C;let A=typeof S=="function"?S(_):S;return typeof A=="string"&&(A=A.includes("?")||A.includes("#")?A=L(A):{path:A},A.params={}),Y({query:_.query,hash:_.hash,params:A.path!=null?{}:_.params},A)}}function oe(_,C){const S=d=I(_),A=c.value,Q=_.state,re=_.force,u=_.replace===!0,a=H(S);if(a)return oe(Y(L(a),{state:typeof a=="object"?Y({},Q,a.state):Q,force:re,replace:u}),C||S);const g=S;g.redirectedFrom=C;let y;return!re&&fu(s,A,S)&&(y=Ot(16,{to:g,from:A}),je(A,A,!0,!1)),(y?Promise.resolve(y):ie(g,A)).catch(m=>Ue(m)?Ue(m,2)?m:qe(m):J(m,g,A)).then(m=>{if(m){if(Ue(m,2))return oe(Y({replace:u},L(m.to),{state:typeof m.to=="object"?Y({},Q,m.to.state):Q,force:re}),C||g)}else m=Ee(g,A,!0,u,Q);return pe(g,A,m),m})}function U(_,C){const S=F(_,C);return S?Promise.reject(S):Promise.resolve()}function B(_){const C=mt.values().next().value;return C&&typeof C.runWithContext=="function"?C.runWithContext(_):_()}function ie(_,C){let S;const[A,Q,re]=zu(_,C);S=es(A.reverse(),"beforeRouteLeave",_,C);for(const a of A)a.leaveGuards.forEach(g=>{S.push(Ze(g,_,C))});const u=U.bind(null,_,C);return S.push(u),ge(S).then(()=>{S=[];for(const a of o.list())S.push(Ze(a,_,C));return S.push(u),ge(S)}).then(()=>{S=es(Q,"beforeRouteUpdate",_,C);for(const a of Q)a.updateGuards.forEach(g=>{S.push(Ze(g,_,C))});return S.push(u),ge(S)}).then(()=>{S=[];for(const a of re)if(a.beforeEnter)if(Le(a.beforeEnter))for(const g of a.beforeEnter)S.push(Ze(g,_,C));else S.push(Ze(a.beforeEnter,_,C));return S.push(u),ge(S)}).then(()=>(_.matched.forEach(a=>a.enterCallbacks={}),S=es(re,"beforeRouteEnter",_,C,B),S.push(u),ge(S))).then(()=>{S=[];for(const a of i.list())S.push(Ze(a,_,C));return S.push(u),ge(S)}).catch(a=>Ue(a,8)?a:Promise.reject(a))}function pe(_,C,S){l.list().forEach(A=>B(()=>A(_,C,S)))}function Ee(_,C,S,A,Q){const re=F(_,C);if(re)return re;const u=C===Ge,a=vt?history.state:{};S&&(A||u?r.replace(_.fullPath,Y({scroll:u&&a&&a.scroll},Q)):r.push(_.fullPath,Q)),c.value=_,je(_,C,S,u),qe()}let Se;function it(){Se||(Se=r.listen((_,C,S)=>{if(!Zt.listening)return;const A=I(_),Q=H(A);if(Q){oe(Y(Q,{replace:!0}),A).catch(kt);return}d=A;const re=c.value;vt&&yu(Mr(re.fullPath,S.delta),Vn()),ie(A,re).catch(u=>Ue(u,12)?u:Ue(u,2)?(oe(u.to,A).then(a=>{Ue(a,20)&&!S.delta&&S.type===Jt.pop&&r.go(-1,!1)}).catch(kt),Promise.reject()):(S.delta&&r.go(-S.delta,!1),J(u,A,re))).then(u=>{u=u||Ee(A,re,!1),u&&(S.delta&&!Ue(u,8)?r.go(-S.delta,!1):S.type===Jt.pop&&Ue(u,20)&&r.go(-1,!1)),pe(A,re,u)}).catch(kt)}))}let Re=Mt(),G=Mt(),X;function J(_,C,S){qe(_);const A=G.list();return A.length?A.forEach(Q=>Q(_,C,S)):console.error(_),Promise.reject(_)}function De(){return X&&c.value!==Ge?Promise.resolve():new Promise((_,C)=>{Re.add([_,C])})}function qe(_){return X||(X=!_,it(),Re.list().forEach(([C,S])=>_?S(_):C()),Re.reset()),_}function je(_,C,S,A){const{scrollBehavior:Q}=e;if(!vt||!Q)return Promise.resolve();const re=!S&&vu(Mr(_.fullPath,0))||(A||!S)&&history.state&&history.state.scroll||null;return In().then(()=>Q(_,C,re)).then(u=>u&&_u(u)).catch(u=>J(u,_,C))}const ye=_=>r.go(_);let gt;const mt=new Set,Zt={currentRoute:c,listening:!0,addRoute:v,removeRoute:O,hasRoute:k,getRoutes:M,resolve:I,options:e,push:W,replace:z,go:ye,back:()=>ye(-1),forward:()=>ye(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:G.add,isReady:De,install(_){const C=this;_.component("RouterLink",hn),_.component("RouterView",gi),_.config.globalProperties.$router=C,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>Ve(c)}),vt&&!gt&&c.value===Ge&&(gt=!0,W(r.location).catch(Q=>{}));const S={};for(const Q in Ge)Object.defineProperty(S,Q,{get:()=>c.value[Q],enumerable:!0});_.provide(kn,C),_.provide(Ds,go(S)),_.provide(_s,c);const A=_.unmount;mt.add(_),_.unmount=function(){mt.delete(_),mt.size<1&&(d=Ge,Se&&Se(),Se=null,c.value=Ge,gt=!1,X=!1),A()}}};function ge(_){return _.reduce((C,S)=>C.then(()=>B(S)),Promise.resolve())}return Zt}function zu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iPt(d,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(d=>Pt(d,c))||r.push(c))}return[n,s,r]}function Rf(){return Oe(kn)}function Cf(){return Oe(Ds)}const Gu="/logo_protected.png",Ju="/assets/default-hat-B72TLDOC.svg",Dn=e=>(Po("data-v-be9d7e14"),e=e(),Oo(),e),Qu={class:"forbidden"},Yu=Dn(()=>se("img",{alt:"Stair Logo",class:"logo",src:Gu,height:"50"},null,-1)),Xu=Dn(()=>se("h1",null,"Sign in",-1)),Zu=Dn(()=>se("span",{class:"material-symbols-rounded"},"login",-1)),ef=Dn(()=>se("aside",null,[se("img",{class:"stan",src:Ju,type:"image/svg+xml"})],-1)),tf=Ln({__name:"Forbidden",setup(e){const t=()=>window.location.href="/api/auth/signin";return(n,s)=>(St(),as("div",Qu,[se("main",null,[se("div",{class:"panel"},[Yu,Xu,se("button",{onClick:t},[Zu,Hs(" Continue with Microsoft ")])])]),ef]))}}),mi=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},nf=mi(tf,[["__scopeId","data-v-be9d7e14"]]),Un=e=>(Po("data-v-5c695e95"),e=e(),Oo(),e),sf={key:1},rf=Un(()=>se("img",{alt:"Stair Logo",class:"logo",src:qc,height:"50"},null,-1)),of=Un(()=>se("span",{class:"material-symbols-rounded"},"home",-1)),lf=Un(()=>se("span",{class:"material-symbols-rounded"},"campaign",-1)),cf=Un(()=>se("div",{class:"action"},[se("a",{href:"/api/auth/signout"},[Hs(" Sign out "),se("span",{class:"material-symbols-rounded"},"logout")])],-1)),uf={class:"data"},ff={id:"container"},af=Ln({__name:"App",setup(e){const t=Kt(null),n=Kt(!1);return No(async()=>{const s=await fetch("/api/auth/me");s.ok?t.value=await s.json():t.value=!1,document.body.addEventListener("click",()=>{n.value=!1})}),(s,r)=>t.value==!1?(St(),Fs(nf,{key:0})):t.value?(St(),as("div",sf,[se("header",null,[de(Ve(hn),{to:"/"},{default:un(()=>[rf]),_:1}),se("nav",null,[de(Ve(hn),{title:"Home",to:"/"},{default:un(()=>[of]),_:1}),de(Ve(hn),{title:"Announcements",to:"/announcements"},{default:un(()=>[lf]),_:1}),se("div",{onClick:r[1]||(r[1]=Pr(o=>n.value=!0,["stop"])),class:"user"},[se("span",null,Kn(t.value.displayName),1),n.value?(St(),as("div",{key:0,onClick:r[0]||(r[0]=Pr(()=>{},["stop"])),class:"options"},[cf,se("div",uf,[se("h2",null,Kn(t.value.userPrincipalName),1),se("p",null,Kn(t.value.mail),1)])])):hr("",!0)])])]),se("div",ff,[de(Ve(gi))])])):hr("",!0)}}),df=mi(af,[["__scopeId","data-v-5c695e95"]]),hf="modulepreload",pf=function(e){return"/"+e},qr={},ts=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.all(n.map(l=>{if(l=pf(l),l in qr)return;qr[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":hf,c||(f.as="script",f.crossOrigin=""),f.href=l,i&&f.setAttribute("nonce",i),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},gf=qu({history:xu("/"),routes:[{path:"/",name:"home",component:()=>ts(()=>import("./HomeView-bL0hbgjZ.js"),__vite__mapDeps([0,1]))},{path:"/announcements",name:"announcements",component:()=>ts(()=>import("./index-DYcvuVaE.js"),__vite__mapDeps([2,3]))},{path:"/announcements/:id",name:"announcementWithId",component:()=>ts(()=>import("./index-DYcvuVaE.js"),__vite__mapDeps([2,3]))}]}),Us=$c(df);Us.use(kc());Us.use(gf);Us.mount("#app");export{fn as A,ei as B,xf as C,vf as D,Ve as E,Ie as F,xs as G,Cf as H,Rf as I,_f as J,mi as _,se as a,de as b,as as c,Oo as d,Hs as e,Sf as f,Kt as g,Ln as h,Nt as i,Ce as j,yf as k,gf as l,Fs as m,hr as n,St as o,Po as p,bf as q,mf as r,nl as s,Kn as t,Oe as u,wf as v,un as w,Ef as x,No as y,Cl as z}; + */const vt=typeof document<"u";function zc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Y=Object.assign;function Zn(e,t){const n={};for(const s in t){const r=t[s];n[s]=Le(r)?r.map(e):e(r)}return n}const kt=()=>{},Le=Array.isArray,oi=/#/g,Gc=/&/g,Jc=/\//g,Qc=/=/g,Yc=/\?/g,ii=/\+/g,Xc=/%5B/g,Zc=/%5D/g,li=/%5E/g,eu=/%60/g,ci=/%7B/g,tu=/%7C/g,ui=/%7D/g,nu=/%20/g;function ks(e){return encodeURI(""+e).replace(tu,"|").replace(Xc,"[").replace(Zc,"]")}function su(e){return ks(e).replace(ci,"{").replace(ui,"}").replace(li,"^")}function gs(e){return ks(e).replace(ii,"%2B").replace(nu,"+").replace(oi,"%23").replace(Gc,"%26").replace(eu,"`").replace(ci,"{").replace(ui,"}").replace(li,"^")}function ru(e){return gs(e).replace(Qc,"%3D")}function ou(e){return ks(e).replace(oi,"%23").replace(Yc,"%3F")}function iu(e){return e==null?"":ou(e).replace(Jc,"%2F")}function Gt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const lu=/\/$/,cu=e=>e.replace(lu,"");function es(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=du(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Gt(i)}}function uu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ir(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function fu(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Pt(t.matched[s],n.matched[r])&&fi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Pt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function fi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!au(e[n],t[n]))return!1;return!0}function au(e,t){return Le(e)?Tr(e,t):Le(t)?Tr(t,e):e===t}function Tr(e,t){return Le(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function du(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}var Jt;(function(e){e.pop="pop",e.push="push"})(Jt||(Jt={}));var Dt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Dt||(Dt={}));function hu(e){if(!e)if(vt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),cu(e)}const pu=/^[^#]+#/;function gu(e,t){return e.replace(pu,"#")+t}function mu(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const kn=()=>({left:window.scrollX,top:window.scrollY});function _u(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=mu(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Mr(e,t){return(history.state?history.state.position-t:-1)+e}const ms=new Map;function yu(e,t){ms.set(e,t)}function vu(e){const t=ms.get(e);return ms.delete(e),t}let bu=()=>location.protocol+"//"+location.host;function ai(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),Ir(c,"")}return Ir(n,e)+s+r}function Eu(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const v=ai(e,location),O=n.value,M=t.value;let k=0;if(p){if(n.value=v,t.value=p,i&&i===O){i=null;return}k=M?p.position-M.position:0}else s(v);r.forEach(I=>{I(n.value,O,{delta:k,type:Jt.pop,direction:k?k>0?Dt.forward:Dt.back:Dt.unknown})})};function c(){i=n.value}function d(p){r.push(p);const v=()=>{const O=r.indexOf(p);O>-1&&r.splice(O,1)};return o.push(v),v}function f(){const{history:p}=window;p.state&&p.replaceState(Y({},p.state,{scroll:kn()}),"")}function h(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:c,listen:d,destroy:h}}function Lr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?kn():null}}function wu(e){const{history:t,location:n}=window,s={value:ai(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,d,f){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:bu()+e+c;try{t[f?"replaceState":"pushState"](d,"",p),r.value=d}catch(v){console.error(v),n[f?"replace":"assign"](p)}}function i(c,d){const f=Y({},t.state,Lr(r.value.back,c,r.value.forward,!0),d,{position:r.value.position});o(c,f,!0),s.value=c}function l(c,d){const f=Y({},r.value,t.state,{forward:c,scroll:kn()});o(f.current,f,!0);const h=Y({},Lr(s.value,c,null),{position:f.position+1},d);o(c,h,!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function xu(e){e=hu(e);const t=wu(e),n=Eu(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Y({location:"",base:e,go:s,createHref:gu.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Su(e){return typeof e=="string"||e&&typeof e=="object"}function di(e){return typeof e=="string"||typeof e=="symbol"}const Ge={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},hi=Symbol("");var jr;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(jr||(jr={}));function Ot(e,t){return Y(new Error,{type:e,[hi]:!0},t)}function Ue(e,t){return e instanceof Error&&hi in e&&(t==null||!!(e.type&t))}const Nr="[^/]+?",Ru={sensitive:!1,strict:!1,start:!0,end:!0},Cu=/[.+*?^${}()[\]/\\]/g;function Pu(e,t){const n=Y({},Ru,t),s=[];let r=n.start?"^":"";const o=[];for(const d of e){const f=d.length?[]:[90];n.strict&&!d.length&&(r+="/");for(let h=0;ht.length?t.length===1&&t[0]===80?1:-1:0}function Au(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Iu={type:0,value:""},Tu=/[a-zA-Z0-9_]/;function Mu(e){if(!e)return[[]];if(e==="/")return[[Iu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${d}": ${v}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,d="",f="";function h(){d&&(n===0?o.push({type:0,value:d}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:d,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=c}for(;l{i(L)}:kt}function i(f){if(di(f)){const h=s.get(f);h&&(s.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&s.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function c(f){let h=0;for(;h=0&&(f.record.path!==n[h].record.path||!pi(f,n[h]));)h++;n.splice(h,0,f),f.record.name&&!Hr(f)&&s.set(f.record.name,f)}function d(f,h){let p,v={},O,M;if("name"in f&&f.name){if(p=s.get(f.name),!p)throw Ot(1,{location:f});M=p.record.name,v=Y(Fr(h.params,p.keys.filter(L=>!L.optional).concat(p.parent?p.parent.keys.filter(L=>L.optional):[]).map(L=>L.name)),f.params&&Fr(f.params,p.keys.map(L=>L.name))),O=p.stringify(v)}else if(f.path!=null)O=f.path,p=n.find(L=>L.re.test(O)),p&&(v=p.parse(O),M=p.record.name);else{if(p=h.name?s.get(h.name):n.find(L=>L.re.test(h.path)),!p)throw Ot(1,{location:f,currentLocation:h});M=p.record.name,v=Y({},h.params,f.params),O=p.stringify(v)}const k=[];let I=p;for(;I;)k.unshift(I.record),I=I.parent;return{name:M,path:O,params:v,matched:k,meta:Fu(k)}}return e.forEach(f=>o(f)),{addRoute:o,resolve:d,removeRoute:i,getRoutes:l,getRecordMatcher:r}}function Fr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Nu(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:$u(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function $u(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Hr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Fu(e){return e.reduce((t,n)=>Y(t,n.meta),{})}function Vr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function pi(e,t){return t.children.some(n=>n===e||pi(e,n))}function Hu(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&gs(o)):[s&&gs(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Vu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Le(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const ku=Symbol(""),Dr=Symbol(""),Dn=Symbol(""),Ds=Symbol(""),_s=Symbol("");function Mt(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ze(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const d=p=>{p===!1?c(Ot(4,{from:n,to:t})):p instanceof Error?c(p):Su(p)?c(Ot(2,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),l())},f=o(()=>e.call(s&&s.instances[r],t,n,d));let h=Promise.resolve(f);e.length<3&&(h=h.then(d)),h.catch(p=>c(p))})}function ts(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Du(c)){const f=(c.__vccOpts||c)[t];f&&o.push(Ze(f,n,s,i,l,r))}else{let d=c();o.push(()=>d.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const h=zc(f)?f.default:f;i.components[l]=h;const v=(h.__vccOpts||h)[t];return v&&Ze(v,n,s,i,l,r)()}))}}return o}function Du(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ur(e){const t=Oe(Dn),n=Oe(Ds),s=Ce(()=>{const c=Ve(e.to);return t.resolve(c)}),r=Ce(()=>{const{matched:c}=s.value,{length:d}=c,f=c[d-1],h=n.matched;if(!f||!h.length)return-1;const p=h.findIndex(Pt.bind(null,f));if(p>-1)return p;const v=Br(c[d-2]);return d>1&&Br(f)===v&&h[h.length-1].path!==v?h.findIndex(Pt.bind(null,c[d-2])):p}),o=Ce(()=>r.value>-1&&Ku(n.params,s.value.params)),i=Ce(()=>r.value>-1&&r.value===n.matched.length-1&&fi(n.params,s.value.params));function l(c={}){return Bu(c)?t[Ve(e.replace)?"replace":"push"](Ve(e.to)).catch(kt):Promise.resolve()}return{route:s,href:Ce(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}const Uu=jn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ur,setup(e,{slots:t}){const n=Yt(Ur(e)),{options:s}=Oe(Dn),r=Ce(()=>({[Kr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Kr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:ei("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),pn=Uu;function Bu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ku(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Le(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function Br(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Kr=(e,t,n)=>e??t??n,Wu=jn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Oe(_s),r=Ce(()=>e.route||s.value),o=Oe(Dr,0),i=Ce(()=>{let d=Ve(o);const{matched:f}=r.value;let h;for(;(h=f[d])&&!h.components;)d++;return d}),l=Ce(()=>r.value.matched[i.value]);an(Dr,Ce(()=>i.value+1)),an(ku,l),an(_s,r);const c=Kt();return Nt(()=>[c.value,l.value,e.name],([d,f,h],[p,v,O])=>{f&&(f.instances[h]=d,v&&v!==f&&d&&d===p&&(f.leaveGuards.size||(f.leaveGuards=v.leaveGuards),f.updateGuards.size||(f.updateGuards=v.updateGuards))),d&&f&&(!v||!Pt(f,v)||!p)&&(f.enterCallbacks[h]||[]).forEach(M=>M(d))},{flush:"post"}),()=>{const d=r.value,f=e.name,h=l.value,p=h&&h.components[f];if(!p)return Wr(n.default,{Component:p,route:d});const v=h.props[f],O=v?v===!0?d.params:typeof v=="function"?v(d):v:null,k=ei(p,Y({},O,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(h.instances[f]=null)},ref:c}));return Wr(n.default,{Component:k,route:d})||k}}});function Wr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const gi=Wu;function qu(e){const t=ju(e.routes,e),n=e.parseQuery||Hu,s=e.stringifyQuery||kr,r=e.history,o=Mt(),i=Mt(),l=Mt(),c=Zi(Ge);let d=Ge;vt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Zn.bind(null,_=>""+_),h=Zn.bind(null,iu),p=Zn.bind(null,Gt);function v(_,C){let S,A;return di(_)?(S=t.getRecordMatcher(_),A=C):A=_,t.addRoute(A,S)}function O(_){const C=t.getRecordMatcher(_);C&&t.removeRoute(C)}function M(){return t.getRoutes().map(_=>_.record)}function k(_){return!!t.getRecordMatcher(_)}function I(_,C){if(C=Y({},C||c.value),typeof _=="string"){const a=es(n,_,C.path),g=t.resolve({path:a.path},C),y=r.createHref(a.fullPath);return Y(a,g,{params:p(g.params),hash:Gt(a.hash),redirectedFrom:void 0,href:y})}let S;if(_.path!=null)S=Y({},_,{path:es(n,_.path,C.path).path});else{const a=Y({},_.params);for(const g in a)a[g]==null&&delete a[g];S=Y({},_,{params:h(a)}),C.params=h(C.params)}const A=t.resolve(S,C),Q=_.hash||"";A.params=f(p(A.params));const re=uu(s,Y({},_,{hash:su(Q),path:A.path})),u=r.createHref(re);return Y({fullPath:re,hash:Q,query:s===kr?Vu(_.query):_.query||{}},A,{redirectedFrom:void 0,href:u})}function L(_){return typeof _=="string"?es(n,_,c.value.path):Y({},_)}function F(_,C){if(d!==_)return Ot(8,{from:C,to:_})}function W(_){return oe(_)}function z(_){return W(Y(L(_),{replace:!0}))}function H(_){const C=_.matched[_.matched.length-1];if(C&&C.redirect){const{redirect:S}=C;let A=typeof S=="function"?S(_):S;return typeof A=="string"&&(A=A.includes("?")||A.includes("#")?A=L(A):{path:A},A.params={}),Y({query:_.query,hash:_.hash,params:A.path!=null?{}:_.params},A)}}function oe(_,C){const S=d=I(_),A=c.value,Q=_.state,re=_.force,u=_.replace===!0,a=H(S);if(a)return oe(Y(L(a),{state:typeof a=="object"?Y({},Q,a.state):Q,force:re,replace:u}),C||S);const g=S;g.redirectedFrom=C;let y;return!re&&fu(s,A,S)&&(y=Ot(16,{to:g,from:A}),je(A,A,!0,!1)),(y?Promise.resolve(y):ie(g,A)).catch(m=>Ue(m)?Ue(m,2)?m:qe(m):J(m,g,A)).then(m=>{if(m){if(Ue(m,2))return oe(Y({replace:u},L(m.to),{state:typeof m.to=="object"?Y({},Q,m.to.state):Q,force:re}),C||g)}else m=Ee(g,A,!0,u,Q);return pe(g,A,m),m})}function U(_,C){const S=F(_,C);return S?Promise.reject(S):Promise.resolve()}function B(_){const C=mt.values().next().value;return C&&typeof C.runWithContext=="function"?C.runWithContext(_):_()}function ie(_,C){let S;const[A,Q,re]=zu(_,C);S=ts(A.reverse(),"beforeRouteLeave",_,C);for(const a of A)a.leaveGuards.forEach(g=>{S.push(Ze(g,_,C))});const u=U.bind(null,_,C);return S.push(u),ge(S).then(()=>{S=[];for(const a of o.list())S.push(Ze(a,_,C));return S.push(u),ge(S)}).then(()=>{S=ts(Q,"beforeRouteUpdate",_,C);for(const a of Q)a.updateGuards.forEach(g=>{S.push(Ze(g,_,C))});return S.push(u),ge(S)}).then(()=>{S=[];for(const a of re)if(a.beforeEnter)if(Le(a.beforeEnter))for(const g of a.beforeEnter)S.push(Ze(g,_,C));else S.push(Ze(a.beforeEnter,_,C));return S.push(u),ge(S)}).then(()=>(_.matched.forEach(a=>a.enterCallbacks={}),S=ts(re,"beforeRouteEnter",_,C,B),S.push(u),ge(S))).then(()=>{S=[];for(const a of i.list())S.push(Ze(a,_,C));return S.push(u),ge(S)}).catch(a=>Ue(a,8)?a:Promise.reject(a))}function pe(_,C,S){l.list().forEach(A=>B(()=>A(_,C,S)))}function Ee(_,C,S,A,Q){const re=F(_,C);if(re)return re;const u=C===Ge,a=vt?history.state:{};S&&(A||u?r.replace(_.fullPath,Y({scroll:u&&a&&a.scroll},Q)):r.push(_.fullPath,Q)),c.value=_,je(_,C,S,u),qe()}let Se;function it(){Se||(Se=r.listen((_,C,S)=>{if(!Zt.listening)return;const A=I(_),Q=H(A);if(Q){oe(Y(Q,{replace:!0}),A).catch(kt);return}d=A;const re=c.value;vt&&yu(Mr(re.fullPath,S.delta),kn()),ie(A,re).catch(u=>Ue(u,12)?u:Ue(u,2)?(oe(u.to,A).then(a=>{Ue(a,20)&&!S.delta&&S.type===Jt.pop&&r.go(-1,!1)}).catch(kt),Promise.reject()):(S.delta&&r.go(-S.delta,!1),J(u,A,re))).then(u=>{u=u||Ee(A,re,!1),u&&(S.delta&&!Ue(u,8)?r.go(-S.delta,!1):S.type===Jt.pop&&Ue(u,20)&&r.go(-1,!1)),pe(A,re,u)}).catch(kt)}))}let Re=Mt(),G=Mt(),X;function J(_,C,S){qe(_);const A=G.list();return A.length?A.forEach(Q=>Q(_,C,S)):console.error(_),Promise.reject(_)}function De(){return X&&c.value!==Ge?Promise.resolve():new Promise((_,C)=>{Re.add([_,C])})}function qe(_){return X||(X=!_,it(),Re.list().forEach(([C,S])=>_?S(_):C()),Re.reset()),_}function je(_,C,S,A){const{scrollBehavior:Q}=e;if(!vt||!Q)return Promise.resolve();const re=!S&&vu(Mr(_.fullPath,0))||(A||!S)&&history.state&&history.state.scroll||null;return Tn().then(()=>Q(_,C,re)).then(u=>u&&_u(u)).catch(u=>J(u,_,C))}const ye=_=>r.go(_);let gt;const mt=new Set,Zt={currentRoute:c,listening:!0,addRoute:v,removeRoute:O,hasRoute:k,getRoutes:M,resolve:I,options:e,push:W,replace:z,go:ye,back:()=>ye(-1),forward:()=>ye(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:G.add,isReady:De,install(_){const C=this;_.component("RouterLink",pn),_.component("RouterView",gi),_.config.globalProperties.$router=C,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>Ve(c)}),vt&&!gt&&c.value===Ge&&(gt=!0,W(r.location).catch(Q=>{}));const S={};for(const Q in Ge)Object.defineProperty(S,Q,{get:()=>c.value[Q],enumerable:!0});_.provide(Dn,C),_.provide(Ds,go(S)),_.provide(_s,c);const A=_.unmount;mt.add(_),_.unmount=function(){mt.delete(_),mt.size<1&&(d=Ge,Se&&Se(),Se=null,c.value=Ge,gt=!1,X=!1),A()}}};function ge(_){return _.reduce((C,S)=>C.then(()=>B(S)),Promise.resolve())}return Zt}function zu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iPt(d,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(d=>Pt(d,c))||r.push(c))}return[n,s,r]}function Rf(){return Oe(Dn)}function Cf(){return Oe(Ds)}const Gu="/logo_protected.png",Ju="/assets/default-hat-B72TLDOC.svg",Un=e=>(Po("data-v-be9d7e14"),e=e(),Oo(),e),Qu={class:"forbidden"},Yu=Un(()=>se("img",{alt:"Stair Logo",class:"logo",src:Gu,height:"50"},null,-1)),Xu=Un(()=>se("h1",null,"Sign in",-1)),Zu=Un(()=>se("span",{class:"material-symbols-rounded"},"login",-1)),ef=Un(()=>se("aside",null,[se("img",{class:"stan",src:Ju,type:"image/svg+xml"})],-1)),tf=jn({__name:"Forbidden",setup(e){const t=()=>window.location.href="/api/auth/signin";return(n,s)=>(St(),as("div",Qu,[se("main",null,[se("div",{class:"panel"},[Yu,Xu,se("button",{onClick:t},[Zu,Hs(" Continue with Microsoft ")])])]),ef]))}}),mi=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},nf=mi(tf,[["__scopeId","data-v-be9d7e14"]]),Bn=e=>(Po("data-v-5c695e95"),e=e(),Oo(),e),sf={key:1},rf=Bn(()=>se("img",{alt:"Stair Logo",class:"logo",src:qc,height:"50"},null,-1)),of=Bn(()=>se("span",{class:"material-symbols-rounded"},"home",-1)),lf=Bn(()=>se("span",{class:"material-symbols-rounded"},"campaign",-1)),cf=Bn(()=>se("div",{class:"action"},[se("a",{href:"/api/auth/signout"},[Hs(" Sign out "),se("span",{class:"material-symbols-rounded"},"logout")])],-1)),uf={class:"data"},ff={id:"container"},af=jn({__name:"App",setup(e){const t=Kt(null),n=Kt(!1);return No(async()=>{const s=await fetch("/api/auth/me");s.ok?t.value=await s.json():t.value=!1,document.body.addEventListener("click",()=>{n.value=!1})}),(s,r)=>t.value==!1?(St(),Fs(nf,{key:0})):t.value?(St(),as("div",sf,[se("header",null,[de(Ve(pn),{to:"/"},{default:fn(()=>[rf]),_:1}),se("nav",null,[de(Ve(pn),{title:"Home",to:"/"},{default:fn(()=>[of]),_:1}),de(Ve(pn),{title:"Announcements",to:"/announcements"},{default:fn(()=>[lf]),_:1}),se("div",{onClick:r[1]||(r[1]=Pr(o=>n.value=!0,["stop"])),class:"user"},[se("span",null,Wn(t.value.displayName),1),n.value?(St(),as("div",{key:0,onClick:r[0]||(r[0]=Pr(()=>{},["stop"])),class:"options"},[cf,se("div",uf,[se("h2",null,Wn(t.value.userPrincipalName),1),se("p",null,Wn(t.value.mail),1)])])):hr("",!0)])])]),se("div",ff,[de(Ve(gi))])])):hr("",!0)}}),df=mi(af,[["__scopeId","data-v-5c695e95"]]),hf="modulepreload",pf=function(e){return"/"+e},qr={},ln=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.all(n.map(l=>{if(l=pf(l),l in qr)return;qr[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":hf,c||(f.as="script",f.crossOrigin=""),f.href=l,i&&f.setAttribute("nonce",i),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},gf=qu({history:xu("/"),routes:[{path:"/",name:"home",component:()=>ln(()=>import("./HomeView-DsmSFpWt.js"),__vite__mapDeps([0,1]))},{path:"/announcements",name:"announcements",component:()=>ln(()=>import("./index-BqXw2cr3.js"),__vite__mapDeps([2,3,4]))},{path:"/announcements/:id",name:"announcementWithId",component:()=>ln(()=>import("./index-BqXw2cr3.js"),__vite__mapDeps([2,3,4]))},{path:"/discord/users",name:"discord-users",component:()=>ln(()=>import("./index-DUY4mzaV.js"),__vite__mapDeps([5,3,6]))}]}),Us=$c(df);Us.use(kc());Us.use(gf);Us.mount("#app");export{ei as A,xf as B,vf as C,Ve as D,xs as E,Ie as F,Cf as G,Rf as H,_f as I,Sf as J,mi as _,se as a,de as b,as as c,Oo as d,Hs as e,jn as f,Kt as g,Nt as h,Ce as i,yf as j,gf as k,Fs as l,hr as m,bf as n,St as o,Po as p,nl as q,mf as r,Oe as s,Wn as t,Ef as u,wf as v,fn as w,No as x,Cl as y,an as z}; diff --git a/ui/dist/assets/index-DYcvuVaE.js b/ui/dist/assets/index-BqXw2cr3.js similarity index 55% rename from ui/dist/assets/index-DYcvuVaE.js rename to ui/dist/assets/index-BqXw2cr3.js index 3a23fbd..cfd3bf5 100644 --- a/ui/dist/assets/index-DYcvuVaE.js +++ b/ui/dist/assets/index-BqXw2cr3.js @@ -1,23 +1,23 @@ -import{f as Dt,g as I,h as T,i as ae,j as q,o as h,c as A,k as J,v as fe,a as b,t as S,F as P,l as Ue,_ as le,b as k,m as y,r as ge,n as R,q as j,e as U,s as ce,u as Lt,x as Pt,y as ye,z as zt,A as Ut,B as He,C as we,D as re,E as D,w as L,p as Ve,d as Fe,G as be,H as Ht,I as Xt,J as Jt}from"./index-C8rYtQ9w.js";const Et=Dt("counter",()=>{const e=I([]),o=async()=>{e.value=await z.announements.getAll()};return o(),{announcements:e,update:o}}),Xe=["stair","non-stair","server","test"],Qt=async e=>{if(e)return new Promise((o,n)=>{const t=new FileReader;t.onload=()=>{const l=t.result;o(l.replace(/^data:image\/[a-z]+;base64,/,""))},t.onerror=n,t.readAsDataURL(e)})},_e=()=>{Et().update()},z={announements:{async getAll(){return fetch("/api/announcements").then(e=>e.json())},async create(e){const n=await(await fetch("/api/announcements",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return _e(),n},async get(e){return fetch(`/api/announcements/${e}`).then(o=>o.json())},async update(e){const n=await(await fetch(`/api/announcements/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return _e(),n},async delete(e){await fetch(`/api/announcements/${e}`,{method:"DELETE"}).then(_e)},async getTypes(){return fetch("/api/announcements/types").then(e=>e.json())},async publish(e,o,n,t,l,r){fetch(`/api/announcements/${e}/publish`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,scope:o,server:n,type:t,persona:l,image:await Qt(r)})})},async discordServers(){return fetch("/api/announcements/discord/servers").then(e=>e.json())},async personas(){return fetch("/api/announcements/personas").then(e=>e.json())}}},Gt={class:"actions"},Zt=["disabled"],Yt=["disabled"],Wt=T({__name:"Edit",props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"],setup(e,{emit:o}){I([]),I([]);const n=e,t=I(JSON.parse(JSON.stringify(n.modelValue)));ae(()=>n.modelValue,i=>{t.value=JSON.parse(JSON.stringify(i))},{deep:!0});const l=o,r=async()=>{let i;t.value.id?i=await z.announements.update(t.value):(i=await z.announements.create(t.value),Ue.push(`/announcements/${i.id}`)),l("update:modelValue",i)},c=q(()=>JSON.stringify(t.value)===JSON.stringify(n.modelValue)),s=async()=>{t.value.id&&(await z.announements.delete(t.value.id),Ue.push("/announcements"))};return(i,u)=>(h(),A(P,null,[J(b("input",{type:"text","onUpdate:modelValue":u[0]||(u[0]=d=>t.value.title=d),placeholder:"Title"},null,512),[[fe,t.value.title]]),J(b("textarea",{"onUpdate:modelValue":u[1]||(u[1]=d=>t.value.message.de=d),placeholder:"German Content"},null,512),[[fe,t.value.message.de]]),J(b("textarea",{"onUpdate:modelValue":u[2]||(u[2]=d=>t.value.message.en=d),placeholder:"English Content"},` - `,512),[[fe,t.value.message.en]]),b("div",Gt,[b("button",{onClick:r,class:"danger",disabled:c.value},S(t.value.id?"Update":"Create"),9,Zt),b("button",{onClick:s,class:"danger",disabled:!t.value.id}," Delete ",8,Yt)])],64))}}),Kt=le(Wt,[["__scopeId","data-v-0bb9a1c1"]]);var en=Object.defineProperty,tn=Object.defineProperties,nn=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,Qe=(e,o,n)=>o in e?en(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,an=(e,o)=>{for(var n in o||(o={}))on.call(o,n)&&Qe(e,n,o[n]);if(Je)for(var n of Je(o))rn.call(o,n)&&Qe(e,n,o[n]);return e},ln=(e,o)=>tn(e,nn(o)),Ge={blue:"https://cdn.discordapp.com/embed/avatars/0.png",gray:"https://cdn.discordapp.com/embed/avatars/1.png",green:"https://cdn.discordapp.com/embed/avatars/2.png",orange:"https://cdn.discordapp.com/embed/avatars/3.png",red:"https://cdn.discordapp.com/embed/avatars/4.png",pink:"https://cdn.discordapp.com/embed/avatars/5.png"},Ze={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ye={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function cn(e){var o,n,t=[],l=1;if(typeof e=="string")if(Ze[e])t=Ze[e].slice(),n="rgb";else if(e==="transparent")l=0,n="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var r=e.slice(1);l=1,(i=r.length)<=4?(t=[parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16)],i===4&&(l=parseInt(r[3]+r[3],16)/255)):(t=[parseInt(r[0]+r[1],16),parseInt(r[2]+r[3],16),parseInt(r[4]+r[5],16)],i===8&&(l=parseInt(r[6]+r[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(o=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var c=o[1],s=c==="rgb";n=r=c.replace(/a$/,"");var i=r==="cmyk"?4:r==="gray"?1:3;t=o[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(u,d){if(/%$/.test(u))return d===i?parseFloat(u)/100:r==="rgb"?255*parseFloat(u)/100:parseFloat(u);if(r[d]==="h"){if(/deg$/.test(u))return parseFloat(u);if(Ye[u]!==void 0)return Ye[u]}return parseFloat(u)}),c===r&&t.push(1),l=s||t[i]===void 0?1:t[i],t=t.slice(0,i)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(u){return parseFloat(u)}),n=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],n="rgb",l=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),l=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(l/=100)):(n="rgb",t=[e>>>16,(65280&e)>>>8,255&e]);return{space:n,values:t,alpha:l}}var We,Ke,et,xe,Se,Ce,M,V,ie,tt,x,$,$e,G,nt,ot,X,rt,ue,W,at,K,de,me,Ie,Te,lt,ct,st,it,Oe,ut,dt,ee,te,je,mt,Re,_,Z,ht,pt,vt,he,ne,pe,ft,Ee,ve,Me,bt,gt,yt,kt,wt,_t,xt,St,Ct,Ae,$t,It,sn=function(e){var o,n,t,l,r,c=e[0]/360,s=e[1]/100,i=e[2]/100;if(s===0)return[r=255*i,r,r];o=2*i-(n=i<.5?i*(1+s):i+s-i*s),l=[0,0,0];for(var u=0;u<3;u++)(t=c+1/3*-(u-1))<0?t++:t>1&&t--,r=6*t<1?o+6*(n-o)*t:2*t<1?n:3*t<2?o+(n-o)*(2/3-t)*6:o,l[u]=255*r;return l},v=(We=/\r\n?/g,Ke=/\t/g,et=/\f/g,xe=function(e){return e.replace(We,` -`).replace(et,"").replace(Ke," ")},Se=function(e,o){var n=e||{};if(o!=null)for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(n[t]=o[t]);return n},Ce=function(e,o){var n,t=Object.keys(e).filter(function(r){var c=e[r];if(c==null||c.match==null)return!1;var s=c.order;return typeof s=="number"&&isFinite(s)||typeof console>"u"||console.warn("simple-markdown: Invalid order for rule `"+r+"`: "+String(s)),!0});t.sort(function(r,c){var s=e[r],i=e[c],u=s.order,d=i.order;if(u!==d)return u-d;var g=s.quality?0:1,w=i.quality?0:1;return g!==w?g-w:rc?1:0});var l=function(r,c){var s=[];for(n=c=c||n;r;){var i=null,u=null,d=null,g=NaN,w=0,m=t[0],f=e[m];do{var p=f.order,N=c.prevCapture==null?"":c.prevCapture[0],F=f.match(r,c,N);if(F){var O=f.quality?f.quality(F,c,N):0;O<=g||(i=m,u=f,d=F,g=O)}w++,m=t[w],f=e[m]}while(f&&(!d||f.order===p&&f.quality));if(u==null||d==null)throw new Error("Could not find a matching rule for the below content. The rule with highest `order` should always match content provided to it. Check the definition of `match` for '"+t[t.length-1]+`'. It seems to not match the following source: -`+r);if(d.index)throw new Error("`match` must return a capture starting at index 0 (the current parse index). Did you forget a ^ at the start of the RegExp?");var C=u.parse(d,l,c);Array.isArray(C)?Array.prototype.push.apply(s,C):(C.type==null&&(C.type=i),s.push(C)),c.prevCapture=d,r=r.substring(c.prevCapture[0].length)}return s};return function(r,c){return(n=Se(c,o)).inline||n.disableAutoBlockNewlines||(r+=` +import{f as I,g as T,h as ae,i as N,o as h,c as A,j as Q,v as fe,a as b,t as S,F as z,k as Pe,_ as le,b as k,l as y,r as ge,m as j,n as R,e as P,q as ce,s as Vt,u as Ft,x as ye,y as Dt,z as Lt,A as Ue,B as _e,C as re,D,w as L,p as Ne,d as Ve,E as be,G as zt,H as Pt,I as Ut}from"./index-BbSnuvgB.js";import{a as U,A as He,u as Ht}from"./api-Bz-ih7aU.js";const Xt={class:"actions"},Qt=["disabled"],Gt=["disabled"],Zt=I({__name:"Edit",props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"],setup(e,{emit:o}){T([]),T([]);const n=e,t=T(JSON.parse(JSON.stringify(n.modelValue)));ae(()=>n.modelValue,s=>{t.value=JSON.parse(JSON.stringify(s))},{deep:!0});const l=o,r=async()=>{let s;t.value.id?s=await U.announements.update(t.value):(s=await U.announements.create(t.value),Pe.push(`/announcements/${s.id}`)),l("update:modelValue",s)},c=N(()=>JSON.stringify(t.value)===JSON.stringify(n.modelValue)),i=async()=>{t.value.id&&(await U.announements.delete(t.value.id),Pe.push("/announcements"))};return(s,u)=>(h(),A(z,null,[Q(b("input",{type:"text","onUpdate:modelValue":u[0]||(u[0]=d=>t.value.title=d),placeholder:"Title"},null,512),[[fe,t.value.title]]),Q(b("textarea",{"onUpdate:modelValue":u[1]||(u[1]=d=>t.value.message.de=d),placeholder:"German Content"},null,512),[[fe,t.value.message.de]]),Q(b("textarea",{"onUpdate:modelValue":u[2]||(u[2]=d=>t.value.message.en=d),placeholder:"English Content"},` + `,512),[[fe,t.value.message.en]]),b("div",Xt,[b("button",{onClick:r,class:"danger",disabled:c.value},S(t.value.id?"Update":"Create"),9,Qt),b("button",{onClick:i,class:"danger",disabled:!t.value.id}," Delete ",8,Gt)])],64))}}),Jt=le(Zt,[["__scopeId","data-v-0bb9a1c1"]]);var Yt=Object.defineProperty,Wt=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,Qe=(e,o,n)=>o in e?Yt(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,nn=(e,o)=>{for(var n in o||(o={}))en.call(o,n)&&Qe(e,n,o[n]);if(Xe)for(var n of Xe(o))tn.call(o,n)&&Qe(e,n,o[n]);return e},on=(e,o)=>Wt(e,Kt(o)),Ge={blue:"https://cdn.discordapp.com/embed/avatars/0.png",gray:"https://cdn.discordapp.com/embed/avatars/1.png",green:"https://cdn.discordapp.com/embed/avatars/2.png",orange:"https://cdn.discordapp.com/embed/avatars/3.png",red:"https://cdn.discordapp.com/embed/avatars/4.png",pink:"https://cdn.discordapp.com/embed/avatars/5.png"},Ze={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Je={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function rn(e){var o,n,t=[],l=1;if(typeof e=="string")if(Ze[e])t=Ze[e].slice(),n="rgb";else if(e==="transparent")l=0,n="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var r=e.slice(1);l=1,(s=r.length)<=4?(t=[parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16)],s===4&&(l=parseInt(r[3]+r[3],16)/255)):(t=[parseInt(r[0]+r[1],16),parseInt(r[2]+r[3],16),parseInt(r[4]+r[5],16)],s===8&&(l=parseInt(r[6]+r[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(o=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var c=o[1],i=c==="rgb";n=r=c.replace(/a$/,"");var s=r==="cmyk"?4:r==="gray"?1:3;t=o[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(u,d){if(/%$/.test(u))return d===s?parseFloat(u)/100:r==="rgb"?255*parseFloat(u)/100:parseFloat(u);if(r[d]==="h"){if(/deg$/.test(u))return parseFloat(u);if(Je[u]!==void 0)return Je[u]}return parseFloat(u)}),c===r&&t.push(1),l=i||t[s]===void 0?1:t[s],t=t.slice(0,s)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(u){return parseFloat(u)}),n=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],n="rgb",l=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),l=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(l/=100)):(n="rgb",t=[e>>>16,(65280&e)>>>8,255&e]);return{space:n,values:t,alpha:l}}var Ye,We,Ke,we,xe,Se,M,V,se,et,x,$,Ce,Z,tt,nt,X,ot,ue,W,rt,K,de,me,$e,Ie,at,lt,ct,it,Oe,st,ut,ee,te,Te,dt,Re,w,J,mt,ht,pt,he,ne,pe,vt,je,ve,Ee,ft,bt,gt,yt,kt,_t,wt,xt,St,Me,Ct,$t,an=function(e){var o,n,t,l,r,c=e[0]/360,i=e[1]/100,s=e[2]/100;if(i===0)return[r=255*s,r,r];o=2*s-(n=s<.5?s*(1+i):s+i-s*i),l=[0,0,0];for(var u=0;u<3;u++)(t=c+1/3*-(u-1))<0?t++:t>1&&t--,r=6*t<1?o+6*(n-o)*t:2*t<1?n:3*t<2?o+(n-o)*(2/3-t)*6:o,l[u]=255*r;return l},v=(Ye=/\r\n?/g,We=/\t/g,Ke=/\f/g,we=function(e){return e.replace(Ye,` +`).replace(Ke,"").replace(We," ")},xe=function(e,o){var n=e||{};if(o!=null)for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(n[t]=o[t]);return n},Se=function(e,o){var n,t=Object.keys(e).filter(function(r){var c=e[r];if(c==null||c.match==null)return!1;var i=c.order;return typeof i=="number"&&isFinite(i)||typeof console>"u"||console.warn("simple-markdown: Invalid order for rule `"+r+"`: "+String(i)),!0});t.sort(function(r,c){var i=e[r],s=e[c],u=i.order,d=s.order;if(u!==d)return u-d;var g=i.quality?0:1,_=s.quality?0:1;return g!==_?g-_:rc?1:0});var l=function(r,c){var i=[];for(n=c=c||n;r;){var s=null,u=null,d=null,g=NaN,_=0,m=t[0],f=e[m];do{var p=f.order,q=c.prevCapture==null?"":c.prevCapture[0],F=f.match(r,c,q);if(F){var O=f.quality?f.quality(F,c,q):0;O<=g||(s=m,u=f,d=F,g=O)}_++,m=t[_],f=e[m]}while(f&&(!d||f.order===p&&f.quality));if(u==null||d==null)throw new Error("Could not find a matching rule for the below content. The rule with highest `order` should always match content provided to it. Check the definition of `match` for '"+t[t.length-1]+`'. It seems to not match the following source: +`+r);if(d.index)throw new Error("`match` must return a capture starting at index 0 (the current parse index). Did you forget a ^ at the start of the RegExp?");var C=u.parse(d,l,c);Array.isArray(C)?Array.prototype.push.apply(i,C):(C.type==null&&(C.type=s),i.push(C)),c.prevCapture=d,r=r.substring(c.prevCapture[0].length)}return i};return function(r,c){return(n=xe(c,o)).inline||n.disableAutoBlockNewlines||(r+=` -`),n.prevCapture=null,l(xe(r),n)}},M=function(e){var o=function(n,t){return t.inline?e.exec(n):null};return o.regex=e,o},V=function(e){var o=function(n,t){return t.inline?null:e.exec(n)};return o.regex=e,o},ie=function(e){var o=function(n,t){return e.exec(n)};return o.regex=e,o},tt=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,x=function(e,o,n){return{$$typeof:tt,type:e,key:o??void 0,ref:null,props:n,_owner:null}},$=function(e,o,n,t){n=n||{},t=t===void 0||t;var l="";for(var r in n){var c=n[r];Object.prototype.hasOwnProperty.call(n,r)&&c&&(l+=" "+X(r)+'="'+X(c)+'"')}var s="<"+e+l+">";return t?s+o+"":s},$e={},G=function(e){if(e==null)return null;try{var o=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").toLowerCase();if(o.indexOf("javascript:")===0||o.indexOf("vbscript:")===0||o.indexOf("data:")===0)return null}catch{return null}return e},nt=/[<>&"']/g,ot={"<":"<",">":">","&":"&",'"':""","'":"'","/":"/","`":"`"},X=function(e){return String(e).replace(nt,function(o){return ot[o]})},rt=/\\([^0-9A-Za-z\s])/g,ue=function(e){return e.replace(rt,"$1")},W=function(e,o,n){var t=n.inline||!1;n.inline=!0;var l=e(o,n);return n.inline=t,l},at=function(e,o,n){var t=n.inline||!1;n.inline=!1;var l=e(o+` +`),n.prevCapture=null,l(we(r),n)}},M=function(e){var o=function(n,t){return t.inline?e.exec(n):null};return o.regex=e,o},V=function(e){var o=function(n,t){return t.inline?null:e.exec(n)};return o.regex=e,o},se=function(e){var o=function(n,t){return e.exec(n)};return o.regex=e,o},et=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,x=function(e,o,n){return{$$typeof:et,type:e,key:o??void 0,ref:null,props:n,_owner:null}},$=function(e,o,n,t){n=n||{},t=t===void 0||t;var l="";for(var r in n){var c=n[r];Object.prototype.hasOwnProperty.call(n,r)&&c&&(l+=" "+X(r)+'="'+X(c)+'"')}var i="<"+e+l+">";return t?i+o+"":i},Ce={},Z=function(e){if(e==null)return null;try{var o=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").toLowerCase();if(o.indexOf("javascript:")===0||o.indexOf("vbscript:")===0||o.indexOf("data:")===0)return null}catch{return null}return e},tt=/[<>&"']/g,nt={"<":"<",">":">","&":"&",'"':""","'":"'","/":"/","`":"`"},X=function(e){return String(e).replace(tt,function(o){return nt[o]})},ot=/\\([^0-9A-Za-z\s])/g,ue=function(e){return e.replace(ot,"$1")},W=function(e,o,n){var t=n.inline||!1;n.inline=!0;var l=e(o,n);return n.inline=t,l},rt=function(e,o,n){var t=n.inline||!1;n.inline=!1;var l=e(o+` -`,n);return n.inline=t,l},K=function(e,o,n){return{content:W(o,e[1],n)}},de=function(){return{}},Ie="( *)("+(me="(?:[*+-]|\\d+\\.)")+") +",Te=new RegExp("^"+Ie),lt=new RegExp(Ie+"[^\\n]*(?:\\n(?!\\1"+me+` )[^\\n]*)*( -|$)`,"gm"),st=/^ (?= *`)|(` *) $/g,it=ct=/\n{2,}$/,Oe=/ *\n+$/,ut=new RegExp("^( *)("+me+`) [\\s\\S]+?(?: +`,n);return n.inline=t,l},K=function(e,o,n){return{content:W(o,e[1],n)}},de=function(){return{}},$e="( *)("+(me="(?:[*+-]|\\d+\\.)")+") +",Ie=new RegExp("^"+$e),at=new RegExp($e+"[^\\n]*(?:\\n(?!\\1"+me+` )[^\\n]*)*( +|$)`,"gm"),ct=/^ (?= *`)|(` *) $/g,it=lt=/\n{2,}$/,Oe=/ *\n+$/,st=new RegExp("^( *)("+me+`) [\\s\\S]+?(?: {2,}(?! )(?!\\1`+me+` )\\n*|\\s* -*$)`),dt=/(?:^|\n)( *)$/,yt=/^ *\| *| *\| *$/g,kt=/ *$/,wt=/^ *-+: *$/,_t=/^ *:-+: *$/,xt=/^ *:-+ *$/,St=function(e){return wt.test(e)?"right":_t.test(e)?"center":xt.test(e)?"left":null},Ct=function(e,o,n,t){return t&&(e=e.replace(yt,"")),e.trim().split("|").map(St)},Ae=function(e,o,n,t){var l=n.inTable;n.inTable=!0;var r=o(e.trim(),n);n.inTable=l;var c=[[]];return r.forEach(function(s,i){s.type==="tableSeparator"?(!t||i!==0&&i!==r.length-1)&&c.push([]):(s.type!=="text"||r[i+1]!=null&&r[i+1].type!=="tableSeparator"||(s.content=s.content.replace(kt,"")),c[c.length-1].push(s))}),c},$t=function(e,o,n,t){return e.trim().split(` -`).map(function(l){return Ae(l,o,n,t)})},ee={parseTable:(It=function(e){return function(o,n,t){t.inline=!0;var l=Ae(o[1],n,t,e),r=Ct(o[2],0,0,e),c=$t(o[3],n,t,e);return t.inline=!1,{type:"table",header:l,align:r,cells:c}}})(!0),parseNpTable:It(!1),TABLE_REGEX:/^ *(\|.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/,NPTABLE_REGEX:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/},te="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",je=`\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*`,mt=/mailto:/i,Re=function(e,o,n){var t=(e[2]||e[1]).replace(/\s+/g," ").toLowerCase();if(o._defs&&o._defs[t]){var l=o._defs[t];n.target=l.target,n.title=l.title}return o._refs=o._refs||{},o._refs[t]=o._refs[t]||[],o._refs[t].push(n),n},_=0,Z={Array:{react:function(e,o,n){for(var t=n.key,l=[],r=0,c=0;r"}},codeBlock:{order:_++,match:V(/^(?: [^\n]+\n*)+(?:\n *)+\n/),parse:function(e,o,n){return{lang:void 0,content:e[0].replace(/^ /gm,"").replace(/\n+$/,"")}},react:function(e,o,n){var t=e.lang?"markdown-code-"+e.lang:void 0;return x("pre",n.key,{children:x("code",null,{className:t,children:e.content})})},html:function(e,o,n){var t=e.lang?"markdown-code-"+e.lang:void 0,l=$("code",X(e.content),{class:t});return $("pre",l)}},fence:{order:_++,match:V(/^ *(`{3,}|~{3,}) *(?:(\S+) *)?\n([\s\S]+?)\n?\1 *(?:\n *)+\n/),parse:function(e,o,n){return{type:"codeBlock",lang:e[2]||void 0,content:e[3]}},react:null,html:null},blockQuote:{order:_++,match:V(/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/),parse:function(e,o,n){return{content:o(e[0].replace(/^ *> ?/gm,""),n)}},react:function(e,o,n){return x("blockquote",n.key,{children:o(e.content,n)})},html:function(e,o,n){return $("blockquote",o(e.content,n))}},list:{order:_++,match:function(e,o){var n=o.prevCapture==null?"":o.prevCapture[0],t=dt.exec(n),l=o._list||!o.inline;return t&&l?(e=t[1]+e,ut.exec(e)):null},parse:function(e,o,n){var t=e[2],l=t.length>1,r=l?+t:void 0,c=e[0].replace(it,` -`).match(lt),s=!1;return{ordered:l,start:r,items:c.map(function(i,u){var d=Te.exec(i),g=d?d[0].length:0,w=new RegExp("^ {1,"+g+"}","gm"),m=i.replace(w,"").replace(Te,""),f=u===c.length-1,p=m.indexOf(` +*$)`),ut=/(?:^|\n)( *)$/,gt=/^ *\| *| *\| *$/g,yt=/ *$/,kt=/^ *-+: *$/,_t=/^ *:-+: *$/,wt=/^ *:-+ *$/,xt=function(e){return kt.test(e)?"right":_t.test(e)?"center":wt.test(e)?"left":null},St=function(e,o,n,t){return t&&(e=e.replace(gt,"")),e.trim().split("|").map(xt)},Me=function(e,o,n,t){var l=n.inTable;n.inTable=!0;var r=o(e.trim(),n);n.inTable=l;var c=[[]];return r.forEach(function(i,s){i.type==="tableSeparator"?(!t||s!==0&&s!==r.length-1)&&c.push([]):(i.type!=="text"||r[s+1]!=null&&r[s+1].type!=="tableSeparator"||(i.content=i.content.replace(yt,"")),c[c.length-1].push(i))}),c},Ct=function(e,o,n,t){return e.trim().split(` +`).map(function(l){return Me(l,o,n,t)})},ee={parseTable:($t=function(e){return function(o,n,t){t.inline=!0;var l=Me(o[1],n,t,e),r=St(o[2],0,0,e),c=Ct(o[3],n,t,e);return t.inline=!1,{type:"table",header:l,align:r,cells:c}}})(!0),parseNpTable:$t(!1),TABLE_REGEX:/^ *(\|.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/,NPTABLE_REGEX:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/},te="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",Te=`\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*`,dt=/mailto:/i,Re=function(e,o,n){var t=(e[2]||e[1]).replace(/\s+/g," ").toLowerCase();if(o._defs&&o._defs[t]){var l=o._defs[t];n.target=l.target,n.title=l.title}return o._refs=o._refs||{},o._refs[t]=o._refs[t]||[],o._refs[t].push(n),n},w=0,J={Array:{react:function(e,o,n){for(var t=n.key,l=[],r=0,c=0;r"}},codeBlock:{order:w++,match:V(/^(?: [^\n]+\n*)+(?:\n *)+\n/),parse:function(e,o,n){return{lang:void 0,content:e[0].replace(/^ /gm,"").replace(/\n+$/,"")}},react:function(e,o,n){var t=e.lang?"markdown-code-"+e.lang:void 0;return x("pre",n.key,{children:x("code",null,{className:t,children:e.content})})},html:function(e,o,n){var t=e.lang?"markdown-code-"+e.lang:void 0,l=$("code",X(e.content),{class:t});return $("pre",l)}},fence:{order:w++,match:V(/^ *(`{3,}|~{3,}) *(?:(\S+) *)?\n([\s\S]+?)\n?\1 *(?:\n *)+\n/),parse:function(e,o,n){return{type:"codeBlock",lang:e[2]||void 0,content:e[3]}},react:null,html:null},blockQuote:{order:w++,match:V(/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/),parse:function(e,o,n){return{content:o(e[0].replace(/^ *> ?/gm,""),n)}},react:function(e,o,n){return x("blockquote",n.key,{children:o(e.content,n)})},html:function(e,o,n){return $("blockquote",o(e.content,n))}},list:{order:w++,match:function(e,o){var n=o.prevCapture==null?"":o.prevCapture[0],t=ut.exec(n),l=o._list||!o.inline;return t&&l?(e=t[1]+e,st.exec(e)):null},parse:function(e,o,n){var t=e[2],l=t.length>1,r=l?+t:void 0,c=e[0].replace(it,` +`).match(at),i=!1;return{ordered:l,start:r,items:c.map(function(s,u){var d=Ie.exec(s),g=d?d[0].length:0,_=new RegExp("^ {1,"+g+"}","gm"),m=s.replace(_,"").replace(Ie,""),f=u===c.length-1,p=m.indexOf(` -`)!==-1||f&&s;s=p;var N,F=n.inline,O=n._list;n._list=!0,p?(n.inline=!1,N=m.replace(Oe,` +`)!==-1||f&&i;i=p;var q,F=n.inline,O=n._list;n._list=!0,p?(n.inline=!1,q=m.replace(Oe,` -`)):(n.inline=!0,N=m.replace(Oe,""));var C=o(N,n);return n.inline=F,n._list=O,C})}},react:function(e,o,n){var t=e.ordered?"ol":"ul";return x(t,n.key,{start:e.start,children:e.items.map(function(l,r){return x("li",""+r,{children:o(l,n)})})})},html:function(e,o,n){var t=e.items.map(function(c){return $("li",o(c,n))}).join(""),l=e.ordered?"ol":"ul",r={start:e.start};return $(l,t,r)}},def:{order:_++,match:V(/^ *\[([^\]]+)\]: *]*)>?(?: +["(]([^\n]+)[")])? *\n(?: *\n)*/),parse:function(e,o,n){var t=e[1].replace(/\s+/g," ").toLowerCase(),l=e[2],r=e[3];return n._refs&&n._refs[t]&&n._refs[t].forEach(function(c){c.target=l,c.title=r}),n._defs=n._defs||{},n._defs[t]={target:l,title:r},{def:t,target:l,title:r}},react:function(){return null},html:function(){return""}},table:{order:_++,match:V(ee.TABLE_REGEX),parse:ee.parseTable,react:function(e,o,n){var t=function(c){return e.align[c]==null?{}:{textAlign:e.align[c]}},l=e.header.map(function(c,s){return x("th",""+s,{style:t(s),scope:"col",children:o(c,n)})}),r=e.cells.map(function(c,s){return x("tr",""+s,{children:c.map(function(i,u){return x("td",""+u,{style:t(u),children:o(i,n)})})})});return x("table",n.key,{children:[x("thead","thead",{children:x("tr",null,{children:l})}),x("tbody","tbody",{children:r})]})},html:function(e,o,n){var t=function(i){return e.align[i]==null?"":"text-align:"+e.align[i]+";"},l=e.header.map(function(i,u){return $("th",o(i,n),{style:t(u),scope:"col"})}).join(""),r=e.cells.map(function(i){var u=i.map(function(d,g){return $("td",o(d,n),{style:t(g)})}).join("");return $("tr",u)}).join(""),c=$("thead",$("tr",l)),s=$("tbody",r);return $("table",c+s)}},newline:{order:_++,match:V(/^(?:\n *)*\n/),parse:de,react:function(e,o,n){return` +`)):(n.inline=!0,q=m.replace(Oe,""));var C=o(q,n);return n.inline=F,n._list=O,C})}},react:function(e,o,n){var t=e.ordered?"ol":"ul";return x(t,n.key,{start:e.start,children:e.items.map(function(l,r){return x("li",""+r,{children:o(l,n)})})})},html:function(e,o,n){var t=e.items.map(function(c){return $("li",o(c,n))}).join(""),l=e.ordered?"ol":"ul",r={start:e.start};return $(l,t,r)}},def:{order:w++,match:V(/^ *\[([^\]]+)\]: *]*)>?(?: +["(]([^\n]+)[")])? *\n(?: *\n)*/),parse:function(e,o,n){var t=e[1].replace(/\s+/g," ").toLowerCase(),l=e[2],r=e[3];return n._refs&&n._refs[t]&&n._refs[t].forEach(function(c){c.target=l,c.title=r}),n._defs=n._defs||{},n._defs[t]={target:l,title:r},{def:t,target:l,title:r}},react:function(){return null},html:function(){return""}},table:{order:w++,match:V(ee.TABLE_REGEX),parse:ee.parseTable,react:function(e,o,n){var t=function(c){return e.align[c]==null?{}:{textAlign:e.align[c]}},l=e.header.map(function(c,i){return x("th",""+i,{style:t(i),scope:"col",children:o(c,n)})}),r=e.cells.map(function(c,i){return x("tr",""+i,{children:c.map(function(s,u){return x("td",""+u,{style:t(u),children:o(s,n)})})})});return x("table",n.key,{children:[x("thead","thead",{children:x("tr",null,{children:l})}),x("tbody","tbody",{children:r})]})},html:function(e,o,n){var t=function(s){return e.align[s]==null?"":"text-align:"+e.align[s]+";"},l=e.header.map(function(s,u){return $("th",o(s,n),{style:t(u),scope:"col"})}).join(""),r=e.cells.map(function(s){var u=s.map(function(d,g){return $("td",o(d,n),{style:t(g)})}).join("");return $("tr",u)}).join(""),c=$("thead",$("tr",l)),i=$("tbody",r);return $("table",c+i)}},newline:{order:w++,match:V(/^(?:\n *)*\n/),parse:de,react:function(e,o,n){return` `},html:function(e,o,n){return` -`}},paragraph:{order:_++,match:V(/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/),parse:K,react:function(e,o,n){return x("div",n.key,{className:"paragraph",children:o(e.content,n)})},html:function(e,o,n){return $("div",o(e.content,n),{class:"paragraph"})}},escape:{order:_++,match:M(/^\\([^0-9A-Za-z\s])/),parse:function(e,o,n){return{type:"text",content:e[1]}},react:null,html:null},tableSeparator:{order:_++,match:function(e,o){return o.inTable?/^ *\| */.exec(e):null},parse:function(){return{type:"tableSeparator"}},react:function(){return" | "},html:function(){return" | "}},autolink:{order:_++,match:M(/^<([^: >]+:\/[^ >]+)>/),parse:function(e,o,n){return{type:"link",content:[{type:"text",content:e[1]}],target:e[1]}},react:null,html:null},mailto:{order:_++,match:M(/^<([^ >]+@[^ >]+)>/),parse:function(e,o,n){var t=e[1],l=e[1];return mt.test(l)||(l="mailto:"+l),{type:"link",content:[{type:"text",content:t}],target:l}},react:null,html:null},url:{order:_++,match:M(/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/),parse:function(e,o,n){return{type:"link",content:[{type:"text",content:e[1]}],target:e[1],title:void 0}},react:null,html:null},link:{order:_++,match:M(new RegExp("^\\[("+te+")\\]\\("+je+"\\)")),parse:function(e,o,n){return{content:o(e[1],n),target:ue(e[2]),title:e[3]}},react:function(e,o,n){return x("a",n.key,{href:G(e.target),title:e.title,children:o(e.content,n)})},html:function(e,o,n){var t={href:G(e.target),title:e.title};return $("a",o(e.content,n),t)}},image:{order:_++,match:M(new RegExp("^!\\[("+te+")\\]\\("+je+"\\)")),parse:function(e,o,n){return{alt:e[1],target:ue(e[2]),title:e[3]}},react:function(e,o,n){return x("img",n.key,{src:G(e.target),alt:e.alt,title:e.title})},html:function(e,o,n){var t={src:G(e.target),alt:e.alt,title:e.title};return $("img","",t,!1)}},reflink:{order:_++,match:M(new RegExp("^\\[("+te+")\\]\\s*\\[([^\\]]*)\\]")),parse:function(e,o,n){return Re(e,n,{type:"link",content:o(e[1],n)})},react:null,html:null},refimage:{order:_++,match:M(new RegExp("^!\\[("+te+")\\]\\s*\\[([^\\]]*)\\]")),parse:function(e,o,n){return Re(e,n,{type:"image",alt:e[1]})},react:null,html:null},em:{order:_,match:M(new RegExp("^\\b_((?:__|\\\\[\\s\\S]|[^\\\\_])+?)_\\b|^\\*(?=\\S)((?:\\*\\*|\\\\[\\s\\S]|\\s+(?:\\\\[\\s\\S]|[^\\s\\*\\\\]|\\*\\*)|[^\\s\\*\\\\])+?)\\*(?!\\*)")),quality:function(e){return e[0].length+.2},parse:function(e,o,n){return{content:o(e[2]||e[1],n)}},react:function(e,o,n){return x("em",n.key,{children:o(e.content,n)})},html:function(e,o,n){return $("em",o(e.content,n))}},strong:{order:_,match:M(/^\*\*((?:\\[\s\S]|[^\\])+?)\*\*(?!\*)/),quality:function(e){return e[0].length+.1},parse:K,react:function(e,o,n){return x("strong",n.key,{children:o(e.content,n)})},html:function(e,o,n){return $("strong",o(e.content,n))}},u:{order:_++,match:M(/^__((?:\\[\s\S]|[^\\])+?)__(?!_)/),quality:function(e){return e[0].length},parse:K,react:function(e,o,n){return x("u",n.key,{children:o(e.content,n)})},html:function(e,o,n){return $("u",o(e.content,n))}},del:{order:_++,match:M(/^~~(?=\S)((?:\\[\s\S]|~(?!~)|[^\s~\\]|\s(?!~~))+?)~~/),parse:K,react:function(e,o,n){return x("del",n.key,{children:o(e.content,n)})},html:function(e,o,n){return $("del",o(e.content,n))}},inlineCode:{order:_++,match:M(/^(`+)([\s\S]*?[^`])\1(?!`)/),parse:function(e,o,n){return{content:e[2].replace(st,"$1")}},react:function(e,o,n){return x("code",n.key,{children:e.content})},html:function(e,o,n){return $("code",X(e.content))}},br:{order:_++,match:ie(/^ {2,}\n/),parse:de,react:function(e,o,n){return x("br",n.key,$e)},html:function(e,o,n){return"
"}},text:{order:_++,match:ie(/^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\n\n| {2,}\n|\w+:\S|$)/),parse:function(e,o,n){return{content:e[0]}},react:function(e,o,n){return e.content},html:function(e,o,n){return X(e.content)}}},ht=function(e,o){return o||typeof console>"u"||console.warn("simple-markdown ruleOutput should take 'react' or 'html' as the second argument."),function(n,t,l){return e[n.type][o](n,t,l)}},pt=function(e){var o=function(n,t){if(t=t||{},Array.isArray(n)){for(var l=t.key,r=[],c=null,s=0;sl.cssModuleNames[s]||s).join(" "));let r="";for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&n[s]&&(r+=` ${v.sanitizeText(s)}="${v.sanitizeText(n[s])}"`);const c=`<${e}${r}>`;return t?`${c+o}`:c}v.htmlTag=B;const se={blockQuote:Object.assign({},v.defaultRules.blockQuote,{match:(e,o,n)=>!/^$|\n *$/.test(n)||o.inQuote?null:/^( *>>> ([\s\S]*))|^( *> [^\n]*(\n *> [^\n]*)*\n?)/.exec(e),parse(e,o,n){const t=e[0],l=/^ *>>> ?/.exec(t)?/^ *>>> ?/:/^ *> ?/gm;return{content:o(t.replace(l,""),Object.assign({},n,{inQuote:!0})),type:"blockQuote"}}}),codeBlock:Object.assign({},v.defaultRules.codeBlock,{match:v.inlineRegex(/^```(([a-z0-9-]+?)\n+)?\n*([^]+?)\n*```/i),parse:(e,o,n)=>({lang:(e[2]||"").trim(),content:e[3]||"",inQuote:n.inQuote||!1}),html:(e,o,n)=>{const t=B("code",v.sanitizeText(e.content),{},n);return B("pre",t,null,n)}}),newline:v.defaultRules.newline,escape:v.defaultRules.escape,autolink:Object.assign({},v.defaultRules.autolink,{parse:e=>({content:[{type:"text",content:e[1]}],target:e[1]}),html:(e,o,n)=>B("a",o(e.content,n),{href:v.sanitizeUrl(e.target)},n)}),url:Object.assign({},v.defaultRules.url,{parse:e=>({content:[{type:"text",content:e[1]}],target:e[1]}),html:(e,o,n)=>B("a",o(e.content,n),{href:v.sanitizeUrl(e.target)},n)}),em:Object.assign({},v.defaultRules.em,{parse(e,o,n){const t=v.defaultRules.em.parse(e,o,Object.assign({},n,{inEmphasis:!0}));return n.inEmphasis?t.content:t}}),strong:v.defaultRules.strong,u:v.defaultRules.u,strike:Object.assign({},v.defaultRules.del,{match:v.inlineRegex(/^~~([\s\S]+?)~~(?!_)/)}),inlineCode:Object.assign({},v.defaultRules.inlineCode,{match:e=>v.defaultRules.inlineCode.match.regex.exec(e),html:(e,o,n)=>B("code",v.sanitizeText(e.content.trim()),null,n)}),text:Object.assign({},v.defaultRules.text,{match:e=>/^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff-]|\n\n|\n|\w+:\S|$)/.exec(e),html:(e,o,n)=>n.escapeHTML?v.sanitizeText(e.content):e.content}),emoticon:{order:v.defaultRules.text.order,match:e=>/^(¯\\_\(ツ\)_\/¯)/.exec(e),parse:e=>({type:"text",content:e[1]}),html:(e,o,n)=>o(e.content,n)},br:Object.assign({},v.defaultRules.br,{match:v.anyScopeRegex(/^\n/)}),spoiler:{order:0,match:e=>/^\|\|([\s\S]+?)\|\|/.exec(e),parse:(e,o,n)=>({content:o(e[1],n)}),html:(e,o,n)=>B("span",o(e.content,n),{class:"d-spoiler ddd"},n)}},un={user:e=>`@${v.sanitizeText(e.id)}`,channel:e=>`#${v.sanitizeText(e.id)}`,role:e=>`&${v.sanitizeText(e.id)}`,everyone:()=>"@everyone",here:()=>"@here"},Mt={discordUser:{order:v.defaultRules.strong.order,match:e=>/^<@!?([0-9]*)>/.exec(e),parse:e=>({id:e[1]}),html:(e,o,n)=>B("span",n.discordCallback.user(e),{class:"d-mention d-user"},n)},discordChannel:{order:v.defaultRules.strong.order,match:e=>/^<#?([0-9]*)>/.exec(e),parse:e=>({id:e[1]}),html:(e,o,n)=>B("span",n.discordCallback.channel(e),{class:"d-mention d-channel"},n)},discordRole:{order:v.defaultRules.strong.order,match:e=>/^<@&([0-9]*)>/.exec(e),parse:e=>({id:e[1]}),html:(e,o,n)=>B("span",n.discordCallback.role(e),{class:"d-mention d-role"},n)},discordEmoji:{order:v.defaultRules.strong.order,match:e=>/^<(a?):(\w+):(\d+)>/.exec(e),parse:e=>({animated:e[1]==="a",name:e[2],id:e[3]}),html:(e,o,n)=>B("img","",{class:"d-emoji"+(e.animated?" d-emoji-animated":""),src:`https://cdn.discordapp.com/emojis/${e.id}.${e.animated?"gif":"png"}`,alt:`:${e.name}:`},!1,n)},discordEveryone:{order:v.defaultRules.strong.order,match:e=>/^@everyone/.exec(e),parse:()=>({}),html:(e,o,n)=>B("span",n.discordCallback.everyone(e),{class:"d-mention d-user"},n)},discordHere:{order:v.defaultRules.strong.order,match:e=>/^@here/.exec(e),parse:()=>({}),html:(e,o,n)=>B("span",n.discordCallback.here(e),{class:"d-mention d-user"},n)}};Object.assign(se,Mt);const De=Object.assign({},Mt,{text:Object.assign({},v.defaultRules.text,{match:e=>/^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff-]|\n\n|\n|\w+:\S|$)/.exec(e),html:(e,o,n)=>n.escapeHTML?v.sanitizeText(e.content):e.content})}),Le=Object.assign({},se,{link:v.defaultRules.link}),Tt=v.parserFor(se),Ot=v.outputFor(se,"html"),dn=v.parserFor(De),mn=v.outputFor(De,"html"),hn=v.parserFor(Le),pn=v.outputFor(Le,"html");var vn={parser:e=>Tt(e,{inline:!0}),htmlOutput:Ot,toHTML:function(e,o,n,t){if((n||t)&&(!n||!t))throw new Error("You must pass both a custom parser and custom htmlOutput function, not just one");o=Object.assign({embed:!1,escapeHTML:!0,discordOnly:!1,discordCallback:{}},o||{});let l=Tt,r=Ot;n?(l=n,r=t):o.discordOnly?(l=dn,r=mn):o.embed&&(l=hn,r=pn);const c={inline:!0,inQuote:!1,inEmphasis:!1,escapeHTML:o.escapeHTML,cssModuleNames:o.cssModuleNames||null,discordCallback:Object.assign({},un,o.discordCallback)};return r(l(e,c),c)},rules:se,rulesDiscordOnly:De,rulesEmbed:Le,markdownEngine:v,htmlTag:B};const fn=new Date;var H=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",parseColorToRgba:(e,o)=>{var n;if(!e)return null;const[t,l,r,c]=(n=function(s){var i;Array.isArray(s)&&s.raw&&(s=String.raw(...arguments));var u=cn(s);return u.space?((i=Array(3))[0]=Math.min(Math.max(u.values[0],0),255),i[1]=Math.min(Math.max(u.values[1],0),255),i[2]=Math.min(Math.max(u.values[2],0),255),u.space[0]==="h"&&(i=sn(i)),i.push(Math.min(Math.max(u.alpha,0),1)),i):[]}(e))!=null?n:[];return`rgba(${t},${l},${r},${o??c})`},defaultTimestamp:fn,parseTimestamp:({timestamp:e,format:o="cozy"})=>{if(e instanceof Date||(e=new Date(e)),o==="compact"){const[r,c]=[e.getHours(),e.getMinutes()];return[r>12?r-12:r===0?12:r,`:${c.toString().padStart(2,"0")} `,r>=12?"PM":"AM"].join("")}const[n,t,l]=[e.getMonth()+1,e.getDate(),e.getFullYear()];return`${n.toString().padStart(2,"0")}/${t.toString().padStart(2,"0")}/${l}`},resolveImage:(e,o)=>{var n,t;return(t=(n=e[o])!=null?n:o)!=null?t:e==null?void 0:e.default},markdownParser:vn});const bn={avatars:ln(an({},Ge),{default:Ge.blue}),defaultMode:"cozy",defaultTheme:"dark",profiles:{}},ke=()=>{var e,o,n;return(n=(o=(e=Pt())==null?void 0:e.appContext.config.globalProperties)==null?void 0:o.$discordOptions)!=null?n:bn};var At=T({name:"OutboundLink"});const gn={class:"outbound-link-icon"},yn=k("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15"},[k("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),k("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})],-1);At.render=function(e,o,n,t,l,r){return h(),y("span",gn,[yn])};var kn=T({name:"DiscordButton",components:{OutboundLinkIcon:At},props:{disabled:Boolean,image:String,type:{type:String,default:"primary"},url:String}});kn.render=function(e,o,n,t,l,r){const c=ge("outbound-link-icon");return e.type==="link"&&e.url&&!e.disabled?(h(),y("a",{key:0,class:"discord-button discord-button-link",href:e.url,target:"_blank",rel:"noopener noreferrer"},[e.image?(h(),y("img",{key:0,class:"discord-button-emoji",src:e.image,alt:""},null,8,["src"])):R("",!0),j(e.$slots,"default"),k(c)],8,["href"])):(h(),y("button",{key:1,class:["discord-button",[`discord-button-${e.type}`,e.disabled?"discord-button-disabled":""]],disabled:e.disabled},[e.image?(h(),y("img",{key:0,class:"discord-button-emoji",src:e.image,alt:""},null,8,["src"])):R("",!0),j(e.$slots,"default"),e.type==="link"?(h(),y(c,{key:1})):R("",!0)],10,["disabled"]))};var wn=T({name:"DiscordButtons"});const _n={class:"discord-buttons"};wn.render=function(e,o,n,t,l,r){return h(),y("div",_n,[j(e.$slots,"default")])};var Be=T({name:"DiscordEmbed",props:{authorIcon:String,authorName:String,authorUrl:String,borderColor:String,embedTitle:String,footerIcon:String,image:String,thumbnail:String,timestamp:[Date,String],url:String},setup(e,{slots:o}){const{authorIcon:n,authorName:t,authorUrl:l,footerIcon:r,timestamp:c}=ce(e),s=q(()=>({icon:n==null?void 0:n.value,name:t==null?void 0:t.value,url:l==null?void 0:l.value})),i=q(()=>c!=null&&c.value?H.parseTimestamp({timestamp:c.value}):null),u=q(()=>o.footer||i.value),d=q(()=>o.footer&&(r==null?void 0:r.value)),g=q(()=>o.footer&&i.value);return{author:s,embedTimestamp:i,showFooter:u,showFooterIcon:d,showFooterSeparator:g}}});const xn={class:"discord-embed"},Sn={class:"discord-embed-container"},Cn={class:"discord-embed-content"},$n={key:0,class:"discord-embed-author"},In={key:2},Tn={key:1,class:"discord-embed-title"},On={key:1},jn={class:"discord-embed-description"},Rn={key:0,class:"discord-embed-footer"},En={key:0,class:"discord-embed-footer-separator"},Mn={key:1};Be.render=function(e,o,n,t,l,r){return h(),y("div",xn,[k("div",{class:"discord-embed-left-border",style:{"background-color":e.borderColor}},null,4),k("div",Sn,[k("div",Cn,[k("div",null,[e.author.name?(h(),y("div",$n,[e.author.icon?(h(),y("img",{key:0,class:"discord-embed-author-icon",src:e.author.icon,alt:""},null,8,["src"])):R("",!0),e.author.url?(h(),y("a",{key:1,href:e.author.url,target:"_blank",rel:"noopener noreferrer"},S(e.author.name),9,["href"])):(h(),y("span",In,S(e.author.name),1))])):R("",!0),e.embedTitle?(h(),y("div",Tn,[e.url?(h(),y("a",{key:0,href:e.url,target:"_blank",rel:"noopener noreferrer"},S(e.embedTitle),9,["href"])):(h(),y("span",On,S(e.embedTitle),1))])):R("",!0),k("div",jn,[j(e.$slots,"default")]),j(e.$slots,"fields"),e.image?(h(),y("img",{key:2,class:"discord-embed-image",src:e.image,alt:""},null,8,["src"])):R("",!0)]),e.thumbnail?(h(),y("img",{key:0,class:"discord-embed-thumbnail",src:e.thumbnail,alt:""},null,8,["src"])):R("",!0)]),e.showFooter?(h(),y("div",Rn,[e.showFooterIcon?(h(),y("img",{key:0,class:"discord-embed-footer-icon",src:e.footerIcon,alt:""},null,8,["src"])):R("",!0),k("span",null,[j(e.$slots,"footer"),e.showFooterSeparator?(h(),y("span",En," • ")):R("",!0),e.embedTimestamp?(h(),y("span",Mn,S(e.embedTimestamp),1)):R("",!0)])])):R("",!0)])])};var qe=T({name:"DiscordEmbedField",props:{fieldTitle:{type:String,required:!0},inline:Boolean}});const An={class:"discord-embed-field-title"};qe.render=function(e,o,n,t,l,r){return h(),y("div",{class:["discord-embed-field",{"discord-embed-field-inline":e.inline}]},[k("div",An,S(e.fieldTitle),1),j(e.$slots,"default")],2)};var Nn=T({name:"DiscordEmbedFields"});const Bn={class:"discord-embed-fields"};Nn.render=function(e,o,n,t,l,r){return h(),y("div",Bn,[j(e.$slots,"default")])};var Pe=T({name:"AuthorInfo",props:{author:String,bot:Boolean,roleColor:String}});const qn={class:"discord-author-info"},Vn={key:0,class:"discord-author-bot-tag"};Pe.render=function(e,o,n,t,l,r){return h(),y("span",qn,[k("span",{class:"discord-author-username",style:{color:e.roleColor}},S(e.author),5),e.bot?(h(),y("span",Vn," Bot ")):R("",!0)])};var Fn=T({components:{AuthorInfo:Pe},props:{author:String,avatar:String,bot:{type:Boolean,default:null},command:Boolean,edited:Boolean,ephemeral:Boolean,highlight:Boolean,profile:String,roleColor:String},setup(e){var o,n,t;const l=ke(),{author:r,avatar:c,bot:s,profile:i,roleColor:u}=ce(e),d=i!=null&&i.value&&(n=(o=l.profiles)==null?void 0:o[i==null?void 0:i.value])!=null?n:{};return{user:{author:!(r!=null&&r.value)&&(d!=null&&d.author)?d.author:(r==null?void 0:r.value)||"User",avatar:H.resolveImage(l.avatars,(c==null?void 0:c.value)||(d==null?void 0:d.avatar)),bot:(t=s.value)!=null?t:d==null?void 0:d.bot,roleColor:(u==null?void 0:u.value)||(d==null?void 0:d.roleColor)}}}});const Dn={class:"discord-interaction"},Ln={key:0,class:"discord-interaction-command"},Pn=U(" used "),zn={class:"discord-interaction-command-name"},Un=U(" /"),Hn={key:1,class:"discord-interaction-reply"},Xn={key:0,class:"discord-interaction-reply-edited"};Fn.render=function(e,o,n,t,l,r){const c=ge("author-info");return h(),y("div",Dn,[k("img",{class:"discord-interaction-author-avatar",src:e.user.avatar,alt:""},null,8,["src"]),k(c,{class:"discord-interaction-author-info",author:e.highlight?`@${e.user.author}`:e.user.author,bot:e.user.bot,"role-color":e.user.roleColor},null,8,["author","bot","role-color"]),e.command?(h(),y("span",Ln,[Pn,k("span",zn,[Un,j(e.$slots,"default")])])):(h(),y("span",Hn,[j(e.$slots,"default"),e.edited?(h(),y("span",Xn,"(edited)")):R("",!0)]))])};var Ne=T({name:"DiscordMarkdown",setup:(e,{slots:o})=>()=>{var n;const t=(n=o.default)==null?void 0:n.call(o).map(l=>typeof l.children=="string"&&l.children.length?He("span",{class:"discord-markdown-content",innerHTML:H.markdownParser.toHTML(l.children)}):l);return He("span",{class:"discord-markdown"},{default:()=>t})}}),Nt=T({name:"DiscordMention",props:{highlight:Boolean,profile:String,roleColor:String,type:{type:String,default:"user"}},setup(e){var o,n,t,l;const r=ke(),c=I(),{profile:s,roleColor:i,type:u}=ce(e),d=I(s!=null&&s.value&&(n=(o=r.profiles)==null?void 0:o[s==null?void 0:s.value])!=null?n:{}),g=I((l=i==null?void 0:i.value)!=null?l:(t=d==null?void 0:d.value)==null?void 0:t.roleColor),w=I(!1),m=()=>w.value=!0,f=()=>w.value=!1,p={background:H.parseColorToRgba(g==null?void 0:g.value,.1),hover:H.parseColorToRgba(g==null?void 0:g.value,.3)},N=q(()=>g!=null&&g.value&&u.value==="role"?{color:g.value,"background-color":w.value?p.hover:p.background}:{});ye(()=>{var C,E;g!=null&&g.value&&(u==null?void 0:u.value)==="role"&&((C=c==null?void 0:c.value)==null||C.addEventListener("mouseenter",m),(E=c==null?void 0:c.value)==null||E.addEventListener("mouseout",f))}),zt(()=>{var C,E;(C=c==null?void 0:c.value)==null||C.removeEventListener("mouseenter",m),(E=c==null?void 0:c.value)==null||E.removeEventListener("mouseout",f)});const F=q(()=>{var C;return u.value==="user"&&((C=d==null?void 0:d.value)!=null&&C.author)?d==null?void 0:d.value.author:u.value==="channel"?u.value:u.value.charAt(0).toUpperCase()+u.value.slice(1)}),O=q(()=>u.value==="channel"?"#":"@");return{root:c,colorStyle:N,defaultContent:F,mentionCharacter:O}}});Nt.render=function(e,o,n,t,l,r){return h(),y("span",{ref:"root",class:"discord-mention",style:e.colorStyle},[U(S(e.mentionCharacter),1),j(e.$slots,"default",{},()=>[U(S(e.defaultContent),1)])],4)};var Bt=T({name:"DiscordMessage",components:{AuthorInfo:Pe},props:{author:String,avatar:String,bot:{type:Boolean,default:null},edited:Boolean,profile:String,roleColor:String,timestamp:{type:[Date,String],default:H.defaultTimestamp}},setup(e,{slots:o}){var n,t,l;const r=ke(),{author:c,avatar:s,bot:i,profile:u,roleColor:d,timestamp:g}=ce(e),w=Lt("compactMode"),m=u!=null&&u.value&&(t=(n=r.profiles)==null?void 0:n[u==null?void 0:u.value])!=null?t:{},f={author:!(c!=null&&c.value)&&(m!=null&&m.author)?m.author:(c==null?void 0:c.value)||"User",avatar:H.resolveImage(r.avatars,(s==null?void 0:s.value)||(m==null?void 0:m.avatar)),bot:(l=i.value)!=null?l:m==null?void 0:m.bot,roleColor:(d==null?void 0:d.value)||(m==null?void 0:m.roleColor)},p=q(()=>{var O;return(O=o.interactions)==null?void 0:O.call(o).some(C=>{var E;return(E=C==null?void 0:C.props)==null?void 0:E.ephemeral})}),N=q(()=>{var O,C;return((O=o.default)==null?void 0:O.call(o).some(E=>{var Y,ze;return((Y=E==null?void 0:E.props)==null?void 0:Y.highlight)&&((ze=E==null?void 0:E.props)==null?void 0:ze.type)!=="channel"}))||((C=o.interactions)==null?void 0:C.call(o).some(E=>{var Y;return(Y=E==null?void 0:E.props)==null?void 0:Y.highlight}))}),F=q(()=>H.parseTimestamp({timestamp:g.value,format:w?"compact":"cozy"}));return{compactMode:w,ephemeralMessage:p,highlightMessage:N,messageTimestamp:F,user:f}}});const Jn={class:"discord-message-content"},Qn={class:"discord-author-avatar"},Gn={class:"discord-message-body"},Zn={key:0},Yn={class:"discord-message-timestamp"},Wn={class:"discord-message-timestamp"},Kn={key:2,class:"discord-message-edited"},eo={key:3,class:"discord-message-ephemeral-notice"};Bt.render=function(e,o,n,t,l,r){const c=ge("author-info");return h(),y("div",{class:["discord-message",{"discord-ephemeral-highlight":e.ephemeralMessage,"discord-mention-highlight":e.highlightMessage&&!e.ephemeralMessage}]},[j(e.$slots,"interactions"),k("div",Jn,[k("div",Qn,[k("img",{src:e.user.avatar,alt:""},null,8,["src"])]),k("div",Gn,[e.compactMode?(h(),y(P,{key:1},[k("span",Wn,S(e.messageTimestamp),1),k(c,{author:e.user.author,bot:e.user.bot,"role-color":e.user.roleColor},null,8,["author","bot","role-color"])],64)):(h(),y("div",Zn,[k(c,{author:e.user.author,bot:e.user.bot,"role-color":e.user.roleColor},null,8,["author","bot","role-color"]),k("span",Yn,S(e.messageTimestamp),1)])),j(e.$slots,"default"),e.edited?(h(),y("span",Kn,"(edited)")):R("",!0),j(e.$slots,"embeds"),j(e.$slots,"actions"),e.ephemeralMessage?(h(),y("div",eo," Only you can see this ")):R("",!0),j(e.$slots,"reactions")])])],2)};var qt=T({name:"DiscordMessages",props:{compactMode:{type:Boolean,default:null},lightTheme:{type:Boolean,default:null}},setup(e){const o=ke(),{compactMode:n,lightTheme:t}=ce(e),l={compact:(n==null?void 0:n.value)===!0||o.defaultMode==="compact"&&(n==null?void 0:n.value)!==!1,light:(t==null?void 0:t.value)===!0||o.defaultTheme==="light"&&(t==null?void 0:t.value)!==!1};return Ut("compactMode",l.compact),{layout:l}}});qt.render=function(e,o,n,t,l,r){return h(),y("div",{class:["discord-messages",{"discord-compact-mode":e.layout.compact,"discord-light-theme":e.layout.light}]},[j(e.$slots,"default")],2)};var to=T({name:"DiscordReaction",props:{active:Boolean,count:{type:Number,default:1},image:{type:String,required:!0},name:String}});const no={class:"discord-reaction-count"};to.render=function(e,o,n,t,l,r){return h(),y("div",{class:["discord-reaction",{"discord-reaction-active":e.active}],title:e.name},[k("img",{class:"discord-reaction-emoji",src:e.image,alt:e.name},null,8,["src","alt"]),k("span",no,S(e.count),1)],10,["title"])};var oo=T({name:"DiscordReactions"});const ro={class:"discord-reactions"};oo.render=function(e,o,n,t,l,r){return h(),y("div",ro,[j(e.$slots,"default")])};const Q=e=>(Ve("data-v-9201cbc3"),e=e(),Fe(),e),ao={class:"inputs"},lo={class:"dropdown"},co=Q(()=>b("label",null,"On Server",-1)),so=["value"],io={class:"dropdown"},uo=Q(()=>b("label",null,"As",-1)),mo=["value"],ho={class:"dropdown"},po=Q(()=>b("label",null,"Post as",-1)),vo=["value"],fo=["src"],bo=Q(()=>b("img",{src:"https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/1f1e9-1f1ea.svg",alt:"🇩🇪",title:"flag_de",draggable:"false",class:"flag"},null,-1)),go=Q(()=>b("br",null,null,-1)),yo=Q(()=>b("img",{src:"https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/1f1ec-1f1e7.svg",alt:"🇬🇧",title:"flag_gb",draggable:"false",class:"flag"},null,-1)),ko=Q(()=>b("br",null,null,-1)),wo={class:"actions"},_o=["disabled"],xo=T({__name:"Discord",props:{modelValue:{type:Object,required:!0}},setup(e){const o=I([]),n=I([]),t=I(""),l=I(""),r=I(Xe[0]),c=e,s=q(()=>({...c.modelValue})),i=I(null),u=I(null);ye(async()=>{o.value=await z.announements.discordServers(),t.value=o.value[0].id,n.value=await z.announements.personas(),l.value=n.value[0]}),ae(()=>i.value,async m=>{m?u.value=URL.createObjectURL(m):u.value=null});const d=async()=>{await z.announements.publish(s.value.id,"discord",String(o.value[0].id),r.value,l.value,i.value??void 0)},g=q(()=>!1),w=()=>{const m=document.createElement("input");m.type="file",m.accept="image/*",m.onchange=f=>{const p=f.target.files;p&&p.length>0&&(i.value=p[0])},m.click()};return(m,f)=>(h(),A(P,null,[b("div",ao,[b("div",lo,[co,J(b("select",{"onUpdate:modelValue":f[0]||(f[0]=p=>t.value=p)},[(h(!0),A(P,null,re(o.value,p=>(h(),A("option",{key:p.id,value:p.id},S(p.name),9,so))),128))],512),[[we,t.value]])]),b("div",io,[uo,J(b("select",{"onUpdate:modelValue":f[1]||(f[1]=p=>r.value=p)},[(h(!0),A(P,null,re(D(Xe),p=>(h(),A("option",{key:p,value:p},S(p),9,mo))),128))],512),[[we,r.value]])]),b("div",ho,[po,J(b("select",{"onUpdate:modelValue":f[2]||(f[2]=p=>l.value=p)},[(h(!0),A(P,null,re(n.value,p=>(h(),A("option",{key:p,value:p},S(p),9,vo))),128))],512),[[we,l.value]])]),b("button",{onClick:w,class:"align-right secondary"}," Set Image ")]),b("div",null,[k(D(qt),null,{default:L(()=>[(h(),y(D(Bt),{bot:!0,author:l.value,"role-color":"green",key:l.value},{default:L(()=>[k(D(Ne),null,{default:L(()=>[k(D(Nt),{type:"Announcements"})]),_:1}),u.value?(h(),A("img",{key:0,src:u.value,draggable:"false"},null,8,fo)):R("",!0),k(D(Be),null,{default:L(()=>[k(D(qe),{color:"#0b6a5c"},{default:L(()=>[k(D(Ne),null,{default:L(()=>[bo,U(" **"+S(s.value.title)+"** ",1),go,U(" "+S(s.value.message.de),1)]),_:1})]),_:1})]),_:1}),k(D(Be),null,{default:L(()=>[k(D(qe),{color:"#0b6a5c"},{default:L(()=>[k(D(Ne),null,{default:L(()=>[yo,U(" **"+S(s.value.title)+"** ",1),ko,U(" "+S(s.value.message.en),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["author"]))]),_:1})]),b("div",wo,[b("button",{onClick:d,class:"danger",disabled:g.value}," Publish ",8,_o)])],64))}}),So=le(xo,[["__scopeId","data-v-9201cbc3"]]),jt={monospace:"m",bold:"b",italic:"i","bold italic":"bi",script:"c","bold script":"bc",gothic:"g","gothic bold":"bg",doublestruck:"d",sans:"s","bold sans":"bs","italic sans":"is","bold italic sans":"bis",parenthesis:"p",circled:"o","circled negative":"on",squared:"q","squared negative":"qn",fullwidth:"w",flags:"f","numbers dot":"nd","numbers comma":"nc","numbers double circled":"ndc",roman:"r"},a={strike:{short:"s",code:822},"strike-curly":{short:"sc",code:820},underline:{short:"u",code:818},"underline-curly":{short:"uc",code:816},"underline-sm":{short:"u-sm",code:800},"underline-double":{short:"ud",code:819},"underline-double-sm":{short:"ud-sm",code:839},overline:{short:"o",code:773},"overline-curly":{short:"oc",code:771},"overline-sm":{short:"o-sm",code:772},"overline-double":{short:"od",code:831},slash:{short:"sl",code:824},"cross-above":{short:"ca",code:829},"plus-below":{short:"pb",code:799},"a-above":{short:"a-a",code:867},"c-above":{short:"c-a",code:872},"d-above":{short:"d-a",code:873},"e-above":{short:"e-a",code:868},"h-above":{short:"h-a",code:874},"i-above":{short:"i-a",code:869},"m-above":{short:"m-a",code:875},"o-above":{short:"o-a",code:870},"r-above":{short:"r-a",code:876},"u-above":{short:"u-a",code:871},"v-above":{short:"v-a",code:878},"x-above":{short:"x-a",code:879},"halo-breve":{short:"hb",code:1160},"halo-grave":{short:"hg",code:1161},"enclose-circle":{short:"en-c",code:8413},"enclose-backslash":{short:"en-cb",code:8416},"enclose-circle-backslash":{short:"en-cb",code:8416},"enclose-square":{short:"en-s",code:8414},"enclose-diamond":{short:"en-d",code:8415},"enclose-screen":{short:"en-scr",code:8418},"enclose-keycap":{short:"en-key",code:8419},diaeresis:{code:776},caron:{code:780},perispomeni:{code:834},tilde:{code:771},tildesm:{code:732},circumflex:{code:770},ringabove:{code:778},dotabove:{code:775},dotbelow:{code:803},grave:{code:832},gravedouble:{code:783},acute:{code:833},breve:{code:774},breveinverted:{code:785},commabelow:{code:806},macron:{code:772},cedilla:{code:807},ogonek:{code:808},solidus:{code:824},solidussm:{code:823},hookabove:{code:777},horn:{code:795},"space-zero":{code:65279},"space-hair":{code:8202},"space-thin":{code:8201},space:{code:32},"space-en":{code:8192},"space-figure":{code:8199},"space-cjk":{code:12288},"space-em":{code:8193},"space-ogham":{code:5760},CGJ:{code:847}};function Rt(e,o,n=[]){const t=String.fromCodePoint,l={m:[120432,120822],b:[119808,120782],i:[119860,48],bi:[119912,48],c:[119964,48],bc:[120016,48],g:[120068,48],d:[120120,120792],bg:[120172,48],s:[120224,120802],bs:[120276,120812],is:[120328,48],bis:[120380,48],o:[9398,9311],on:[127312,9311],p:[127248,120822],q:[127280,48],qn:[127344,48],w:[65313,65296],f:[127462,120822],nd:[120432,9351],nc:[120432,127233],ndc:[120432,9460],r:[120432,9460]},r={m:{" ":8192,"-":8211},i:{h:8462},c:{B:8492,E:8496,F:8497,H:8459,I:8464,L:8466,M:8499,R:8475,e:120046,g:120048,o:120056},g:{C:8493,H:8460,I:8465,R:8476,Z:8488},d:{C:8450,H:8461,N:8469,P:8473,Q:8474,R:8477,Z:8484},o:{0:9450,10:9321,11:9322,12:9323,13:9324,14:9325,15:9326,16:9327,17:9328,18:9329,19:9330,20:9331},on:{0:9471,11:9451,12:9452,13:9453,14:9454,15:9455,16:9456,17:9457,18:9458,19:9459,20:9460},p:{1:9332,2:9333,3:9334,4:9335,5:9336,6:9337,7:9338,8:9339,9:9340,10:9341,11:9342,12:9343,13:9344,14:9345,15:9346,16:9347,17:9348,18:9349,19:9350,20:9351},q:{hv:127306,mv:127307,sd:127308,ss:127309,ppv:127310,wc:127311,cl:127377,cool:127378,free:127379,id:127380,new:127381,ng:127382,ok:127383,sos:127384,"up!":127385,vs:127386,"3d":127387,"2ndscr":127388,"2k":127389,"4k":127390,"8k":127391,"5.1":127392,"7.1":127393,"22.2":127394,"60p":127395,"120p":127396,d:127397,hc:127398,hdr:127399,"hi-res":127400,"loss-less":127401,shv:127402,uhd:127403,vod:127404},qn:{ic:127371,pa:127372,sa:127373,ab:127374,wc:127375},w:{"!":65281,'"':65282,"#":65283,$:65284,"%":65285,"&":65286,"'":65287,"(":65288,")":65289,"*":65290,"+":65291,",":65292,"-":65293,".":65294,"/":65295,":":65306,";":65307,"<":65308,"=":65309,">":65310,"?":65311,"@":65312,"\\":65340,"[":65339,"]":65341,"^":65342,_:65343,"`":65344,"{":65371,"|":65372,"}":65373,"~":65374,"⦅":65375,"⦆":65376,"¢":65504,"£":65505,"¦":65508,"¥":65509,"₩":65510,ー:65392,"。":65392,"、":65380,"・":65381," ̄":65507,"¬":65506},f:{},nd:{0:127232,10:9361,11:9362,12:9363,13:9364,14:9365,15:9366,16:9367,17:9368,18:9369,19:9370,20:9371},ndc:{0:120822,10:9470},r:{I:8544,II:8545,III:8546,IV:8547,V:8548,VI:8549,VII:8550,VIII:8551,IX:8552,X:8553,XI:8554,XII:8555,L:8556,C:8557,D:8558,M:8559,i:8560,ii:8561,iii:8562,iv:8563,v:8564,vi:8565,vii:8566,viii:8567,ix:8568,x:8569,xi:8570,xii:8571,l:8572,c:8573,d:8574,m:8575}};for(var c=97;c<=122;c++)r.p[String.fromCharCode(c)]=9372+(c-97),r.w[String.fromCharCode(c)]=65345+(c-97);["on","q","qn","f"].forEach(m=>{for(var f=97;f<=122;f++)r[m][String.fromCharCode(f)]=l[m][0]+(f-97)});const s={ä:{char:"a",combine:t(a.diaeresis.code)},â:{char:"a",combine:t(a.circumflex.code)},á:{char:"a",combine:t(a.acute.code)},å:{char:"a",combine:t(a.ringabove.code)},ă:{char:"a",combine:t(a.breve.code)},ǟ:{char:"a",combine:t(a.diaeresis.code)+t(a.macron.code)},ã:{char:"a",combine:t(a.tilde.code)},ā:{char:"a",combine:t(a.macron.code)},ȧ:{char:"a",combine:t(a.dotabove.code)},ȃ:{char:"a",combine:t(a.breveinverted.code)},ḅ:{char:"b",combine:t(a.dotbelow.code)},č:{char:"c",combine:t(a.caron.code)},ć:{char:"c",combine:t(a.acute.code)},ç:{char:"c",combine:t(a.cedilla.code)},ḉ:{char:"c",combine:t(a.cedilla.code)+t(a.acute.code)},ċ:{char:"c",combine:t(a.dotabove.code)},ĉ:{char:"c",combine:t(a.circumflex.code)},è:{char:"e",combine:t(a.grave.code)},é:{char:"e",combine:t(a.acute.code)},ē:{char:"e",combine:t(a.macron.code)},ĕ:{char:"e",combine:t(a.breve.code)},ë:{char:"e",combine:t(a.diaeresis.code)},ě:{char:"e",combine:t(a.caron.code)},ę:{char:"e",combine:t(a.ogonek.code)},ȇ:{char:"e",combine:t(a.breveinverted.code)},ȅ:{char:"e",combine:t(a.gravedouble.code)},ê:{char:"e",combine:t(a.circumflex.code)},ğ:{char:"g",combine:t(a.breve.code)},ǧ:{char:"g",combine:t(a.caron.code)},ģ:{char:"g",combine:t(a.cedilla.code)},ġ:{char:"g",combine:t(a.dotabove.code)},ḥ:{char:"h",combine:t(a.dotbelow.code)},î:{char:"i",combine:t(a.circumflex.code)},í:{char:"i",combine:t(a.acute.code)},ì:{char:"i",combine:t(a.grave.code)},ĩ:{char:"i",combine:t(a.tilde.code)},ḱ:{char:"k",combine:t(a.acute.code)},ḳ:{char:"k",combine:t(a.dotbelow.code)},ņ:{char:"n",combine:t(a.ogonek.code)},ń:{char:"n",combine:t(a.acute.code)},õ:{char:"o",combine:t(a.tilde.code)},ö:{char:"o",combine:t(a.diaeresis.code)},ō:{char:"o",combine:t(a.macron.code)},ô:{char:"o",combine:t(a.circumflex.code)},ó:{char:"o",combine:t(a.acute.code)},ò:{char:"o",combine:t(a.grave.code)},ŕ:{char:"r",combine:t(a.acute.code)},ş:{char:"s",combine:t(a.cedilla.code)},ș:{char:"s",combine:t(a.commabelow.code)},ṩ:{char:"s",combine:t(a.dotbelow.code)+t(a.dotabove.code)},š:{char:"s",combine:t(a.caron.code)},ś:{char:"s",combine:t(a.acute.code)},ü:{char:"u",combine:t(a.diaeresis.code)},ù:{char:"u",combine:t(a.grave.code)},ú:{char:"u",combine:t(a.acute.code)},û:{char:"u",combine:t(a.circumflex.code)},ŭ:{char:"u",combine:t(a.breve.code)},ȕ:{char:"u",combine:t(a.gravedouble.code)},ȗ:{char:"u",combine:t(a.breveinverted.code)},ů:{char:"u",combine:t(a.ringabove.code)},ū:{char:"u",combine:t(a.macron.code)},ẁ:{char:"w",combine:t(a.grave.code)},ẃ:{char:"w",combine:t(a.acute.code)},ø:{char:"o",combine:t(a.solidussm.code)},đ:{char:"d",combine:t(a.macron.code)},à:{char:"a",combine:t(a.grave.code)},ả:{char:"a",combine:t(a.hookabove.code)},ạ:{char:"a",combine:t(a.dotbelow.code)},ẻ:{char:"e",combine:t(a.hookabove.code)},ẽ:{char:"e",combine:t(a.tilde.code)},ẹ:{char:"e",combine:t(a.dotbelow.code)},ỉ:{char:"i",combine:t(a.hookabove.code)},ị:{char:"i",combine:t(a.dotbelow.code)},ỏ:{char:"o",combine:t(a.hookabove.code)},ọ:{char:"o",combine:t(a.dotbelow.code)},ủ:{char:"u",combine:t(a.hookabove.code)},ũ:{char:"u",combine:t(a.tilde.code)},ụ:{char:"u",combine:t(a.dotbelow.code)},ý:{char:"y",combine:t(a.acute.code)},ỳ:{char:"y",combine:t(a.grave.code)},ỷ:{char:"y",combine:t(a.hookabove.code)},ỹ:{char:"y",combine:t(a.tilde.code)},ỵ:{char:"y",combine:t(a.dotbelow.code)},ắ:{char:"a",combine:t(a.breve.code)+t(a.acute.code)},ằ:{char:"a",combine:t(a.breve.code)+t(a.grave.code)},ẳ:{char:"a",combine:t(a.breve.code)+t(a.hookabove.code)},ẵ:{char:"a",combine:t(a.breve.code)+t(a.tilde.code)},ặ:{char:"a",combine:t(a.breve.code)+t(a.dotbelow.code)},ấ:{char:"a",combine:t(a.circumflex.code)+t(a.acute.code)},ầ:{char:"a",combine:t(a.circumflex.code)+t(a.grave.code)},ẩ:{char:"a",combine:t(a.circumflex.code)+t(a.hookabove.code)},ẫ:{char:"a",combine:t(a.circumflex.code)+t(a.tilde.code)},ậ:{char:"a",combine:t(a.circumflex.code)+t(a.dotbelow.code)},ế:{char:"e",combine:t(a.circumflex.code)+t(a.acute.code)},ề:{char:"e",combine:t(a.circumflex.code)+t(a.grave.code)},ể:{char:"e",combine:t(a.circumflex.code)+t(a.hookabove.code)},ễ:{char:"e",combine:t(a.circumflex.code)+t(a.tilde.code)},ệ:{char:"e",combine:t(a.circumflex.code)+t(a.dotbelow.code)},ố:{char:"o",combine:t(a.circumflex.code)+t(a.acute.code)},ồ:{char:"o",combine:t(a.circumflex.code)+t(a.grave.code)},ổ:{char:"o",combine:t(a.circumflex.code)+t(a.hookabove.code)},ỗ:{char:"o",combine:t(a.circumflex.code)+t(a.tilde.code)},ộ:{char:"o",combine:t(a.circumflex.code)+t(a.dotbelow.code)},ơ:{char:"o",combine:t(a.horn.code)},ớ:{char:"o",combine:t(a.horn.code)+t(a.acute.code)},ờ:{char:"o",combine:t(a.horn.code)+t(a.grave.code)},ở:{char:"o",combine:t(a.horn.code)+t(a.hookabove.code)},ỡ:{char:"o",combine:t(a.horn.code)+t(a.tilde.code)},ợ:{char:"o",combine:t(a.horn.code)+t(a.dotbelow.code)},ư:{char:"u",combine:t(a.horn.code)},ứ:{char:"u",combine:t(a.horn.code)+t(a.acute.code)},ừ:{char:"u",combine:t(a.horn.code)+t(a.grave.code)},ử:{char:"u",combine:t(a.horn.code)+t(a.hookabove.code)},ữ:{char:"u",combine:t(a.horn.code)+t(a.tilde.code)},ự:{char:"u",combine:t(a.horn.code)+t(a.dotbelow.code)}};for(const m of Object.keys(s))s[m.toUpperCase()]={char:m,combine:!1};const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",u="0123456789",d=function(){return jt[o]?jt[o]:l[o]?o:"m"}(),g=function(){let m="";return n.forEach(f=>{f=f.trim().toLowerCase();for(const p in a)(f===p||f===a[p].short)&&(m+=t(a[p].code))}),m}();if(typeof e=="string"&&r[d]&&(r[d][e]||r[d][e.toLowerCase()]))return r[d][e]?t(r[d][e]):t(r[d][e.toLowerCase()]);if(["roman","r"].includes(d)){if(typeof e=="number"){const p={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1};let N="",F=e;for(let O in p)for(;F>=p[O];){if(r[d][O])N+=O;else for(let C of O)N+=C;F-=p[O]}e=N}let m=e;const f=["VIII","viii","III","iii","XII","xii","VII","vii","IX","ix","XI","xi","IV","iv","VI","vi","II","ii","I","i","D","d","M","m","L","l","V","v","C","c","X","x"];for(let p of f)typeof m!="string"&&(m=String(m)),m.indexOf(p.toString())>-1&&(m=m.replaceAll(p,t(r[d][p])));return String(m)}let w="";for(let m of String(e)){let f;const p=m in s?s[m].combine:!1;m=p?s[m].char:m.normalize("NFD").replace(/[\u0300-\u036f]/g,""),r[d]&&r[d][m]&&(m=t(r[d][m])),d&&(f=i.indexOf(m))>-1?w+=t(f+l[d][0]):d&&(f=u.indexOf(m))>-1?w+=t(f+l[d][1]):w+=m,p&&(w+=p),g&&(w+=g)}return w}const Co={class:"info"},$o={class:"text-muted"},Io={class:"material-symbols-rounded"},To=T({__name:"Step",props:{title:String,description:String},setup(e){const o=I(!1);return(n,t)=>(h(),A("div",{class:be(["step",{done:o.value}]),onClick:t[0]||(t[0]=l=>o.value=!o.value)},[b("div",Co,[b("h4",null,S(e.title),1),b("p",$o,S(e.description),1)]),b("span",Io,S(o.value?"check_circle":"radio_button_unchecked"),1)],2))}}),oe=le(To,[["__scopeId","data-v-d464dde0"]]),Vt=e=>(Ve("data-v-ea13fd9a"),e=e(),Fe(),e),Oo={class:"checklist"},jo=Vt(()=>b("h2",null,"Checklist",-1)),Ro={class:"checklist"},Eo=Vt(()=>b("h2",null,"Caption",-1)),Mo=T({__name:"Instagram",props:{modelValue:{type:Object,required:!0}},setup(e){const o=I(""),n=e,t=()=>{const l=n.modelValue.message.de+` +`}},paragraph:{order:w++,match:V(/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/),parse:K,react:function(e,o,n){return x("div",n.key,{className:"paragraph",children:o(e.content,n)})},html:function(e,o,n){return $("div",o(e.content,n),{class:"paragraph"})}},escape:{order:w++,match:M(/^\\([^0-9A-Za-z\s])/),parse:function(e,o,n){return{type:"text",content:e[1]}},react:null,html:null},tableSeparator:{order:w++,match:function(e,o){return o.inTable?/^ *\| */.exec(e):null},parse:function(){return{type:"tableSeparator"}},react:function(){return" | "},html:function(){return" | "}},autolink:{order:w++,match:M(/^<([^: >]+:\/[^ >]+)>/),parse:function(e,o,n){return{type:"link",content:[{type:"text",content:e[1]}],target:e[1]}},react:null,html:null},mailto:{order:w++,match:M(/^<([^ >]+@[^ >]+)>/),parse:function(e,o,n){var t=e[1],l=e[1];return dt.test(l)||(l="mailto:"+l),{type:"link",content:[{type:"text",content:t}],target:l}},react:null,html:null},url:{order:w++,match:M(/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/),parse:function(e,o,n){return{type:"link",content:[{type:"text",content:e[1]}],target:e[1],title:void 0}},react:null,html:null},link:{order:w++,match:M(new RegExp("^\\[("+te+")\\]\\("+Te+"\\)")),parse:function(e,o,n){return{content:o(e[1],n),target:ue(e[2]),title:e[3]}},react:function(e,o,n){return x("a",n.key,{href:Z(e.target),title:e.title,children:o(e.content,n)})},html:function(e,o,n){var t={href:Z(e.target),title:e.title};return $("a",o(e.content,n),t)}},image:{order:w++,match:M(new RegExp("^!\\[("+te+")\\]\\("+Te+"\\)")),parse:function(e,o,n){return{alt:e[1],target:ue(e[2]),title:e[3]}},react:function(e,o,n){return x("img",n.key,{src:Z(e.target),alt:e.alt,title:e.title})},html:function(e,o,n){var t={src:Z(e.target),alt:e.alt,title:e.title};return $("img","",t,!1)}},reflink:{order:w++,match:M(new RegExp("^\\[("+te+")\\]\\s*\\[([^\\]]*)\\]")),parse:function(e,o,n){return Re(e,n,{type:"link",content:o(e[1],n)})},react:null,html:null},refimage:{order:w++,match:M(new RegExp("^!\\[("+te+")\\]\\s*\\[([^\\]]*)\\]")),parse:function(e,o,n){return Re(e,n,{type:"image",alt:e[1]})},react:null,html:null},em:{order:w,match:M(new RegExp("^\\b_((?:__|\\\\[\\s\\S]|[^\\\\_])+?)_\\b|^\\*(?=\\S)((?:\\*\\*|\\\\[\\s\\S]|\\s+(?:\\\\[\\s\\S]|[^\\s\\*\\\\]|\\*\\*)|[^\\s\\*\\\\])+?)\\*(?!\\*)")),quality:function(e){return e[0].length+.2},parse:function(e,o,n){return{content:o(e[2]||e[1],n)}},react:function(e,o,n){return x("em",n.key,{children:o(e.content,n)})},html:function(e,o,n){return $("em",o(e.content,n))}},strong:{order:w,match:M(/^\*\*((?:\\[\s\S]|[^\\])+?)\*\*(?!\*)/),quality:function(e){return e[0].length+.1},parse:K,react:function(e,o,n){return x("strong",n.key,{children:o(e.content,n)})},html:function(e,o,n){return $("strong",o(e.content,n))}},u:{order:w++,match:M(/^__((?:\\[\s\S]|[^\\])+?)__(?!_)/),quality:function(e){return e[0].length},parse:K,react:function(e,o,n){return x("u",n.key,{children:o(e.content,n)})},html:function(e,o,n){return $("u",o(e.content,n))}},del:{order:w++,match:M(/^~~(?=\S)((?:\\[\s\S]|~(?!~)|[^\s~\\]|\s(?!~~))+?)~~/),parse:K,react:function(e,o,n){return x("del",n.key,{children:o(e.content,n)})},html:function(e,o,n){return $("del",o(e.content,n))}},inlineCode:{order:w++,match:M(/^(`+)([\s\S]*?[^`])\1(?!`)/),parse:function(e,o,n){return{content:e[2].replace(ct,"$1")}},react:function(e,o,n){return x("code",n.key,{children:e.content})},html:function(e,o,n){return $("code",X(e.content))}},br:{order:w++,match:se(/^ {2,}\n/),parse:de,react:function(e,o,n){return x("br",n.key,Ce)},html:function(e,o,n){return"
"}},text:{order:w++,match:se(/^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\n\n| {2,}\n|\w+:\S|$)/),parse:function(e,o,n){return{content:e[0]}},react:function(e,o,n){return e.content},html:function(e,o,n){return X(e.content)}}},mt=function(e,o){return o||typeof console>"u"||console.warn("simple-markdown ruleOutput should take 'react' or 'html' as the second argument."),function(n,t,l){return e[n.type][o](n,t,l)}},ht=function(e){var o=function(n,t){if(t=t||{},Array.isArray(n)){for(var l=t.key,r=[],c=null,i=0;il.cssModuleNames[i]||i).join(" "));let r="";for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&n[i]&&(r+=` ${v.sanitizeText(i)}="${v.sanitizeText(n[i])}"`);const c=`<${e}${r}>`;return t?`${c+o}`:c}v.htmlTag=B;const ie={blockQuote:Object.assign({},v.defaultRules.blockQuote,{match:(e,o,n)=>!/^$|\n *$/.test(n)||o.inQuote?null:/^( *>>> ([\s\S]*))|^( *> [^\n]*(\n *> [^\n]*)*\n?)/.exec(e),parse(e,o,n){const t=e[0],l=/^ *>>> ?/.exec(t)?/^ *>>> ?/:/^ *> ?/gm;return{content:o(t.replace(l,""),Object.assign({},n,{inQuote:!0})),type:"blockQuote"}}}),codeBlock:Object.assign({},v.defaultRules.codeBlock,{match:v.inlineRegex(/^```(([a-z0-9-]+?)\n+)?\n*([^]+?)\n*```/i),parse:(e,o,n)=>({lang:(e[2]||"").trim(),content:e[3]||"",inQuote:n.inQuote||!1}),html:(e,o,n)=>{const t=B("code",v.sanitizeText(e.content),{},n);return B("pre",t,null,n)}}),newline:v.defaultRules.newline,escape:v.defaultRules.escape,autolink:Object.assign({},v.defaultRules.autolink,{parse:e=>({content:[{type:"text",content:e[1]}],target:e[1]}),html:(e,o,n)=>B("a",o(e.content,n),{href:v.sanitizeUrl(e.target)},n)}),url:Object.assign({},v.defaultRules.url,{parse:e=>({content:[{type:"text",content:e[1]}],target:e[1]}),html:(e,o,n)=>B("a",o(e.content,n),{href:v.sanitizeUrl(e.target)},n)}),em:Object.assign({},v.defaultRules.em,{parse(e,o,n){const t=v.defaultRules.em.parse(e,o,Object.assign({},n,{inEmphasis:!0}));return n.inEmphasis?t.content:t}}),strong:v.defaultRules.strong,u:v.defaultRules.u,strike:Object.assign({},v.defaultRules.del,{match:v.inlineRegex(/^~~([\s\S]+?)~~(?!_)/)}),inlineCode:Object.assign({},v.defaultRules.inlineCode,{match:e=>v.defaultRules.inlineCode.match.regex.exec(e),html:(e,o,n)=>B("code",v.sanitizeText(e.content.trim()),null,n)}),text:Object.assign({},v.defaultRules.text,{match:e=>/^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff-]|\n\n|\n|\w+:\S|$)/.exec(e),html:(e,o,n)=>n.escapeHTML?v.sanitizeText(e.content):e.content}),emoticon:{order:v.defaultRules.text.order,match:e=>/^(¯\\_\(ツ\)_\/¯)/.exec(e),parse:e=>({type:"text",content:e[1]}),html:(e,o,n)=>o(e.content,n)},br:Object.assign({},v.defaultRules.br,{match:v.anyScopeRegex(/^\n/)}),spoiler:{order:0,match:e=>/^\|\|([\s\S]+?)\|\|/.exec(e),parse:(e,o,n)=>({content:o(e[1],n)}),html:(e,o,n)=>B("span",o(e.content,n),{class:"d-spoiler ddd"},n)}},ln={user:e=>`@${v.sanitizeText(e.id)}`,channel:e=>`#${v.sanitizeText(e.id)}`,role:e=>`&${v.sanitizeText(e.id)}`,everyone:()=>"@everyone",here:()=>"@here"},jt={discordUser:{order:v.defaultRules.strong.order,match:e=>/^<@!?([0-9]*)>/.exec(e),parse:e=>({id:e[1]}),html:(e,o,n)=>B("span",n.discordCallback.user(e),{class:"d-mention d-user"},n)},discordChannel:{order:v.defaultRules.strong.order,match:e=>/^<#?([0-9]*)>/.exec(e),parse:e=>({id:e[1]}),html:(e,o,n)=>B("span",n.discordCallback.channel(e),{class:"d-mention d-channel"},n)},discordRole:{order:v.defaultRules.strong.order,match:e=>/^<@&([0-9]*)>/.exec(e),parse:e=>({id:e[1]}),html:(e,o,n)=>B("span",n.discordCallback.role(e),{class:"d-mention d-role"},n)},discordEmoji:{order:v.defaultRules.strong.order,match:e=>/^<(a?):(\w+):(\d+)>/.exec(e),parse:e=>({animated:e[1]==="a",name:e[2],id:e[3]}),html:(e,o,n)=>B("img","",{class:"d-emoji"+(e.animated?" d-emoji-animated":""),src:`https://cdn.discordapp.com/emojis/${e.id}.${e.animated?"gif":"png"}`,alt:`:${e.name}:`},!1,n)},discordEveryone:{order:v.defaultRules.strong.order,match:e=>/^@everyone/.exec(e),parse:()=>({}),html:(e,o,n)=>B("span",n.discordCallback.everyone(e),{class:"d-mention d-user"},n)},discordHere:{order:v.defaultRules.strong.order,match:e=>/^@here/.exec(e),parse:()=>({}),html:(e,o,n)=>B("span",n.discordCallback.here(e),{class:"d-mention d-user"},n)}};Object.assign(ie,jt);const Fe=Object.assign({},jt,{text:Object.assign({},v.defaultRules.text,{match:e=>/^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff-]|\n\n|\n|\w+:\S|$)/.exec(e),html:(e,o,n)=>n.escapeHTML?v.sanitizeText(e.content):e.content})}),De=Object.assign({},ie,{link:v.defaultRules.link}),It=v.parserFor(ie),Ot=v.outputFor(ie,"html"),cn=v.parserFor(Fe),sn=v.outputFor(Fe,"html"),un=v.parserFor(De),dn=v.outputFor(De,"html");var mn={parser:e=>It(e,{inline:!0}),htmlOutput:Ot,toHTML:function(e,o,n,t){if((n||t)&&(!n||!t))throw new Error("You must pass both a custom parser and custom htmlOutput function, not just one");o=Object.assign({embed:!1,escapeHTML:!0,discordOnly:!1,discordCallback:{}},o||{});let l=It,r=Ot;n?(l=n,r=t):o.discordOnly?(l=cn,r=sn):o.embed&&(l=un,r=dn);const c={inline:!0,inQuote:!1,inEmphasis:!1,escapeHTML:o.escapeHTML,cssModuleNames:o.cssModuleNames||null,discordCallback:Object.assign({},ln,o.discordCallback)};return r(l(e,c),c)},rules:ie,rulesDiscordOnly:Fe,rulesEmbed:De,markdownEngine:v,htmlTag:B};const hn=new Date;var H=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",parseColorToRgba:(e,o)=>{var n;if(!e)return null;const[t,l,r,c]=(n=function(i){var s;Array.isArray(i)&&i.raw&&(i=String.raw(...arguments));var u=rn(i);return u.space?((s=Array(3))[0]=Math.min(Math.max(u.values[0],0),255),s[1]=Math.min(Math.max(u.values[1],0),255),s[2]=Math.min(Math.max(u.values[2],0),255),u.space[0]==="h"&&(s=an(s)),s.push(Math.min(Math.max(u.alpha,0),1)),s):[]}(e))!=null?n:[];return`rgba(${t},${l},${r},${o??c})`},defaultTimestamp:hn,parseTimestamp:({timestamp:e,format:o="cozy"})=>{if(e instanceof Date||(e=new Date(e)),o==="compact"){const[r,c]=[e.getHours(),e.getMinutes()];return[r>12?r-12:r===0?12:r,`:${c.toString().padStart(2,"0")} `,r>=12?"PM":"AM"].join("")}const[n,t,l]=[e.getMonth()+1,e.getDate(),e.getFullYear()];return`${n.toString().padStart(2,"0")}/${t.toString().padStart(2,"0")}/${l}`},resolveImage:(e,o)=>{var n,t;return(t=(n=e[o])!=null?n:o)!=null?t:e==null?void 0:e.default},markdownParser:mn});const pn={avatars:on(nn({},Ge),{default:Ge.blue}),defaultMode:"cozy",defaultTheme:"dark",profiles:{}},ke=()=>{var e,o,n;return(n=(o=(e=Ft())==null?void 0:e.appContext.config.globalProperties)==null?void 0:o.$discordOptions)!=null?n:pn};var Et=I({name:"OutboundLink"});const vn={class:"outbound-link-icon"},fn=k("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15"},[k("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),k("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})],-1);Et.render=function(e,o,n,t,l,r){return h(),y("span",vn,[fn])};var bn=I({name:"DiscordButton",components:{OutboundLinkIcon:Et},props:{disabled:Boolean,image:String,type:{type:String,default:"primary"},url:String}});bn.render=function(e,o,n,t,l,r){const c=ge("outbound-link-icon");return e.type==="link"&&e.url&&!e.disabled?(h(),y("a",{key:0,class:"discord-button discord-button-link",href:e.url,target:"_blank",rel:"noopener noreferrer"},[e.image?(h(),y("img",{key:0,class:"discord-button-emoji",src:e.image,alt:""},null,8,["src"])):j("",!0),R(e.$slots,"default"),k(c)],8,["href"])):(h(),y("button",{key:1,class:["discord-button",[`discord-button-${e.type}`,e.disabled?"discord-button-disabled":""]],disabled:e.disabled},[e.image?(h(),y("img",{key:0,class:"discord-button-emoji",src:e.image,alt:""},null,8,["src"])):j("",!0),R(e.$slots,"default"),e.type==="link"?(h(),y(c,{key:1})):j("",!0)],10,["disabled"]))};var gn=I({name:"DiscordButtons"});const yn={class:"discord-buttons"};gn.render=function(e,o,n,t,l,r){return h(),y("div",yn,[R(e.$slots,"default")])};var qe=I({name:"DiscordEmbed",props:{authorIcon:String,authorName:String,authorUrl:String,borderColor:String,embedTitle:String,footerIcon:String,image:String,thumbnail:String,timestamp:[Date,String],url:String},setup(e,{slots:o}){const{authorIcon:n,authorName:t,authorUrl:l,footerIcon:r,timestamp:c}=ce(e),i=N(()=>({icon:n==null?void 0:n.value,name:t==null?void 0:t.value,url:l==null?void 0:l.value})),s=N(()=>c!=null&&c.value?H.parseTimestamp({timestamp:c.value}):null),u=N(()=>o.footer||s.value),d=N(()=>o.footer&&(r==null?void 0:r.value)),g=N(()=>o.footer&&s.value);return{author:i,embedTimestamp:s,showFooter:u,showFooterIcon:d,showFooterSeparator:g}}});const kn={class:"discord-embed"},_n={class:"discord-embed-container"},wn={class:"discord-embed-content"},xn={key:0,class:"discord-embed-author"},Sn={key:2},Cn={key:1,class:"discord-embed-title"},$n={key:1},In={class:"discord-embed-description"},On={key:0,class:"discord-embed-footer"},Tn={key:0,class:"discord-embed-footer-separator"},Rn={key:1};qe.render=function(e,o,n,t,l,r){return h(),y("div",kn,[k("div",{class:"discord-embed-left-border",style:{"background-color":e.borderColor}},null,4),k("div",_n,[k("div",wn,[k("div",null,[e.author.name?(h(),y("div",xn,[e.author.icon?(h(),y("img",{key:0,class:"discord-embed-author-icon",src:e.author.icon,alt:""},null,8,["src"])):j("",!0),e.author.url?(h(),y("a",{key:1,href:e.author.url,target:"_blank",rel:"noopener noreferrer"},S(e.author.name),9,["href"])):(h(),y("span",Sn,S(e.author.name),1))])):j("",!0),e.embedTitle?(h(),y("div",Cn,[e.url?(h(),y("a",{key:0,href:e.url,target:"_blank",rel:"noopener noreferrer"},S(e.embedTitle),9,["href"])):(h(),y("span",$n,S(e.embedTitle),1))])):j("",!0),k("div",In,[R(e.$slots,"default")]),R(e.$slots,"fields"),e.image?(h(),y("img",{key:2,class:"discord-embed-image",src:e.image,alt:""},null,8,["src"])):j("",!0)]),e.thumbnail?(h(),y("img",{key:0,class:"discord-embed-thumbnail",src:e.thumbnail,alt:""},null,8,["src"])):j("",!0)]),e.showFooter?(h(),y("div",On,[e.showFooterIcon?(h(),y("img",{key:0,class:"discord-embed-footer-icon",src:e.footerIcon,alt:""},null,8,["src"])):j("",!0),k("span",null,[R(e.$slots,"footer"),e.showFooterSeparator?(h(),y("span",Tn," • ")):j("",!0),e.embedTimestamp?(h(),y("span",Rn,S(e.embedTimestamp),1)):j("",!0)])])):j("",!0)])])};var Be=I({name:"DiscordEmbedField",props:{fieldTitle:{type:String,required:!0},inline:Boolean}});const jn={class:"discord-embed-field-title"};Be.render=function(e,o,n,t,l,r){return h(),y("div",{class:["discord-embed-field",{"discord-embed-field-inline":e.inline}]},[k("div",jn,S(e.fieldTitle),1),R(e.$slots,"default")],2)};var En=I({name:"DiscordEmbedFields"});const Mn={class:"discord-embed-fields"};En.render=function(e,o,n,t,l,r){return h(),y("div",Mn,[R(e.$slots,"default")])};var Le=I({name:"AuthorInfo",props:{author:String,bot:Boolean,roleColor:String}});const An={class:"discord-author-info"},qn={key:0,class:"discord-author-bot-tag"};Le.render=function(e,o,n,t,l,r){return h(),y("span",An,[k("span",{class:"discord-author-username",style:{color:e.roleColor}},S(e.author),5),e.bot?(h(),y("span",qn," Bot ")):j("",!0)])};var Bn=I({components:{AuthorInfo:Le},props:{author:String,avatar:String,bot:{type:Boolean,default:null},command:Boolean,edited:Boolean,ephemeral:Boolean,highlight:Boolean,profile:String,roleColor:String},setup(e){var o,n,t;const l=ke(),{author:r,avatar:c,bot:i,profile:s,roleColor:u}=ce(e),d=s!=null&&s.value&&(n=(o=l.profiles)==null?void 0:o[s==null?void 0:s.value])!=null?n:{};return{user:{author:!(r!=null&&r.value)&&(d!=null&&d.author)?d.author:(r==null?void 0:r.value)||"User",avatar:H.resolveImage(l.avatars,(c==null?void 0:c.value)||(d==null?void 0:d.avatar)),bot:(t=i.value)!=null?t:d==null?void 0:d.bot,roleColor:(u==null?void 0:u.value)||(d==null?void 0:d.roleColor)}}}});const Nn={class:"discord-interaction"},Vn={key:0,class:"discord-interaction-command"},Fn=P(" used "),Dn={class:"discord-interaction-command-name"},Ln=P(" /"),zn={key:1,class:"discord-interaction-reply"},Pn={key:0,class:"discord-interaction-reply-edited"};Bn.render=function(e,o,n,t,l,r){const c=ge("author-info");return h(),y("div",Nn,[k("img",{class:"discord-interaction-author-avatar",src:e.user.avatar,alt:""},null,8,["src"]),k(c,{class:"discord-interaction-author-info",author:e.highlight?`@${e.user.author}`:e.user.author,bot:e.user.bot,"role-color":e.user.roleColor},null,8,["author","bot","role-color"]),e.command?(h(),y("span",Vn,[Fn,k("span",Dn,[Ln,R(e.$slots,"default")])])):(h(),y("span",zn,[R(e.$slots,"default"),e.edited?(h(),y("span",Pn,"(edited)")):j("",!0)]))])};var Ae=I({name:"DiscordMarkdown",setup:(e,{slots:o})=>()=>{var n;const t=(n=o.default)==null?void 0:n.call(o).map(l=>typeof l.children=="string"&&l.children.length?Ue("span",{class:"discord-markdown-content",innerHTML:H.markdownParser.toHTML(l.children)}):l);return Ue("span",{class:"discord-markdown"},{default:()=>t})}}),Mt=I({name:"DiscordMention",props:{highlight:Boolean,profile:String,roleColor:String,type:{type:String,default:"user"}},setup(e){var o,n,t,l;const r=ke(),c=T(),{profile:i,roleColor:s,type:u}=ce(e),d=T(i!=null&&i.value&&(n=(o=r.profiles)==null?void 0:o[i==null?void 0:i.value])!=null?n:{}),g=T((l=s==null?void 0:s.value)!=null?l:(t=d==null?void 0:d.value)==null?void 0:t.roleColor),_=T(!1),m=()=>_.value=!0,f=()=>_.value=!1,p={background:H.parseColorToRgba(g==null?void 0:g.value,.1),hover:H.parseColorToRgba(g==null?void 0:g.value,.3)},q=N(()=>g!=null&&g.value&&u.value==="role"?{color:g.value,"background-color":_.value?p.hover:p.background}:{});ye(()=>{var C,E;g!=null&&g.value&&(u==null?void 0:u.value)==="role"&&((C=c==null?void 0:c.value)==null||C.addEventListener("mouseenter",m),(E=c==null?void 0:c.value)==null||E.addEventListener("mouseout",f))}),Dt(()=>{var C,E;(C=c==null?void 0:c.value)==null||C.removeEventListener("mouseenter",m),(E=c==null?void 0:c.value)==null||E.removeEventListener("mouseout",f)});const F=N(()=>{var C;return u.value==="user"&&((C=d==null?void 0:d.value)!=null&&C.author)?d==null?void 0:d.value.author:u.value==="channel"?u.value:u.value.charAt(0).toUpperCase()+u.value.slice(1)}),O=N(()=>u.value==="channel"?"#":"@");return{root:c,colorStyle:q,defaultContent:F,mentionCharacter:O}}});Mt.render=function(e,o,n,t,l,r){return h(),y("span",{ref:"root",class:"discord-mention",style:e.colorStyle},[P(S(e.mentionCharacter),1),R(e.$slots,"default",{},()=>[P(S(e.defaultContent),1)])],4)};var At=I({name:"DiscordMessage",components:{AuthorInfo:Le},props:{author:String,avatar:String,bot:{type:Boolean,default:null},edited:Boolean,profile:String,roleColor:String,timestamp:{type:[Date,String],default:H.defaultTimestamp}},setup(e,{slots:o}){var n,t,l;const r=ke(),{author:c,avatar:i,bot:s,profile:u,roleColor:d,timestamp:g}=ce(e),_=Vt("compactMode"),m=u!=null&&u.value&&(t=(n=r.profiles)==null?void 0:n[u==null?void 0:u.value])!=null?t:{},f={author:!(c!=null&&c.value)&&(m!=null&&m.author)?m.author:(c==null?void 0:c.value)||"User",avatar:H.resolveImage(r.avatars,(i==null?void 0:i.value)||(m==null?void 0:m.avatar)),bot:(l=s.value)!=null?l:m==null?void 0:m.bot,roleColor:(d==null?void 0:d.value)||(m==null?void 0:m.roleColor)},p=N(()=>{var O;return(O=o.interactions)==null?void 0:O.call(o).some(C=>{var E;return(E=C==null?void 0:C.props)==null?void 0:E.ephemeral})}),q=N(()=>{var O,C;return((O=o.default)==null?void 0:O.call(o).some(E=>{var Y,ze;return((Y=E==null?void 0:E.props)==null?void 0:Y.highlight)&&((ze=E==null?void 0:E.props)==null?void 0:ze.type)!=="channel"}))||((C=o.interactions)==null?void 0:C.call(o).some(E=>{var Y;return(Y=E==null?void 0:E.props)==null?void 0:Y.highlight}))}),F=N(()=>H.parseTimestamp({timestamp:g.value,format:_?"compact":"cozy"}));return{compactMode:_,ephemeralMessage:p,highlightMessage:q,messageTimestamp:F,user:f}}});const Un={class:"discord-message-content"},Hn={class:"discord-author-avatar"},Xn={class:"discord-message-body"},Qn={key:0},Gn={class:"discord-message-timestamp"},Zn={class:"discord-message-timestamp"},Jn={key:2,class:"discord-message-edited"},Yn={key:3,class:"discord-message-ephemeral-notice"};At.render=function(e,o,n,t,l,r){const c=ge("author-info");return h(),y("div",{class:["discord-message",{"discord-ephemeral-highlight":e.ephemeralMessage,"discord-mention-highlight":e.highlightMessage&&!e.ephemeralMessage}]},[R(e.$slots,"interactions"),k("div",Un,[k("div",Hn,[k("img",{src:e.user.avatar,alt:""},null,8,["src"])]),k("div",Xn,[e.compactMode?(h(),y(z,{key:1},[k("span",Zn,S(e.messageTimestamp),1),k(c,{author:e.user.author,bot:e.user.bot,"role-color":e.user.roleColor},null,8,["author","bot","role-color"])],64)):(h(),y("div",Qn,[k(c,{author:e.user.author,bot:e.user.bot,"role-color":e.user.roleColor},null,8,["author","bot","role-color"]),k("span",Gn,S(e.messageTimestamp),1)])),R(e.$slots,"default"),e.edited?(h(),y("span",Jn,"(edited)")):j("",!0),R(e.$slots,"embeds"),R(e.$slots,"actions"),e.ephemeralMessage?(h(),y("div",Yn," Only you can see this ")):j("",!0),R(e.$slots,"reactions")])])],2)};var qt=I({name:"DiscordMessages",props:{compactMode:{type:Boolean,default:null},lightTheme:{type:Boolean,default:null}},setup(e){const o=ke(),{compactMode:n,lightTheme:t}=ce(e),l={compact:(n==null?void 0:n.value)===!0||o.defaultMode==="compact"&&(n==null?void 0:n.value)!==!1,light:(t==null?void 0:t.value)===!0||o.defaultTheme==="light"&&(t==null?void 0:t.value)!==!1};return Lt("compactMode",l.compact),{layout:l}}});qt.render=function(e,o,n,t,l,r){return h(),y("div",{class:["discord-messages",{"discord-compact-mode":e.layout.compact,"discord-light-theme":e.layout.light}]},[R(e.$slots,"default")],2)};var Wn=I({name:"DiscordReaction",props:{active:Boolean,count:{type:Number,default:1},image:{type:String,required:!0},name:String}});const Kn={class:"discord-reaction-count"};Wn.render=function(e,o,n,t,l,r){return h(),y("div",{class:["discord-reaction",{"discord-reaction-active":e.active}],title:e.name},[k("img",{class:"discord-reaction-emoji",src:e.image,alt:e.name},null,8,["src","alt"]),k("span",Kn,S(e.count),1)],10,["title"])};var eo=I({name:"DiscordReactions"});const to={class:"discord-reactions"};eo.render=function(e,o,n,t,l,r){return h(),y("div",to,[R(e.$slots,"default")])};const G=e=>(Ne("data-v-9201cbc3"),e=e(),Ve(),e),no={class:"inputs"},oo={class:"dropdown"},ro=G(()=>b("label",null,"On Server",-1)),ao=["value"],lo={class:"dropdown"},co=G(()=>b("label",null,"As",-1)),io=["value"],so={class:"dropdown"},uo=G(()=>b("label",null,"Post as",-1)),mo=["value"],ho=["src"],po=G(()=>b("img",{src:"https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/1f1e9-1f1ea.svg",alt:"🇩🇪",title:"flag_de",draggable:"false",class:"flag"},null,-1)),vo=G(()=>b("br",null,null,-1)),fo=G(()=>b("img",{src:"https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/1f1ec-1f1e7.svg",alt:"🇬🇧",title:"flag_gb",draggable:"false",class:"flag"},null,-1)),bo=G(()=>b("br",null,null,-1)),go={class:"actions"},yo=["disabled"],ko=I({__name:"Discord",props:{modelValue:{type:Object,required:!0}},setup(e){const o=T([]),n=T([]),t=T(""),l=T(""),r=T(He[0]),c=e,i=N(()=>({...c.modelValue})),s=T(null),u=T(null);ye(async()=>{o.value=await U.announements.discordServers(),t.value=o.value[0].id,n.value=await U.announements.personas(),l.value=n.value[0]}),ae(()=>s.value,async m=>{m?u.value=URL.createObjectURL(m):u.value=null});const d=async()=>{await U.announements.publish(i.value.id,"discord",String(o.value[0].id),r.value,l.value,s.value??void 0)},g=N(()=>!1),_=()=>{const m=document.createElement("input");m.type="file",m.accept="image/*",m.onchange=f=>{const p=f.target.files;p&&p.length>0&&(s.value=p[0])},m.click()};return(m,f)=>(h(),A(z,null,[b("div",no,[b("div",oo,[ro,Q(b("select",{"onUpdate:modelValue":f[0]||(f[0]=p=>t.value=p)},[(h(!0),A(z,null,re(o.value,p=>(h(),A("option",{key:p.id,value:p.id},S(p.name),9,ao))),128))],512),[[_e,t.value]])]),b("div",lo,[co,Q(b("select",{"onUpdate:modelValue":f[1]||(f[1]=p=>r.value=p)},[(h(!0),A(z,null,re(D(He),p=>(h(),A("option",{key:p,value:p},S(p),9,io))),128))],512),[[_e,r.value]])]),b("div",so,[uo,Q(b("select",{"onUpdate:modelValue":f[2]||(f[2]=p=>l.value=p)},[(h(!0),A(z,null,re(n.value,p=>(h(),A("option",{key:p,value:p},S(p),9,mo))),128))],512),[[_e,l.value]])]),b("button",{onClick:_,class:"align-right secondary"}," Set Image ")]),b("div",null,[k(D(qt),null,{default:L(()=>[(h(),y(D(At),{bot:!0,author:l.value,"role-color":"green",key:l.value},{default:L(()=>[k(D(Ae),null,{default:L(()=>[k(D(Mt),{type:"Announcements"})]),_:1}),u.value?(h(),A("img",{key:0,src:u.value,draggable:"false"},null,8,ho)):j("",!0),k(D(qe),null,{default:L(()=>[k(D(Be),{color:"#0b6a5c"},{default:L(()=>[k(D(Ae),null,{default:L(()=>[po,P(" **"+S(i.value.title)+"** ",1),vo,P(" "+S(i.value.message.de),1)]),_:1})]),_:1})]),_:1}),k(D(qe),null,{default:L(()=>[k(D(Be),{color:"#0b6a5c"},{default:L(()=>[k(D(Ae),null,{default:L(()=>[fo,P(" **"+S(i.value.title)+"** ",1),bo,P(" "+S(i.value.message.en),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["author"]))]),_:1})]),b("div",go,[b("button",{onClick:d,class:"danger",disabled:g.value}," Publish ",8,yo)])],64))}}),_o=le(ko,[["__scopeId","data-v-9201cbc3"]]),Tt={monospace:"m",bold:"b",italic:"i","bold italic":"bi",script:"c","bold script":"bc",gothic:"g","gothic bold":"bg",doublestruck:"d",sans:"s","bold sans":"bs","italic sans":"is","bold italic sans":"bis",parenthesis:"p",circled:"o","circled negative":"on",squared:"q","squared negative":"qn",fullwidth:"w",flags:"f","numbers dot":"nd","numbers comma":"nc","numbers double circled":"ndc",roman:"r"},a={strike:{short:"s",code:822},"strike-curly":{short:"sc",code:820},underline:{short:"u",code:818},"underline-curly":{short:"uc",code:816},"underline-sm":{short:"u-sm",code:800},"underline-double":{short:"ud",code:819},"underline-double-sm":{short:"ud-sm",code:839},overline:{short:"o",code:773},"overline-curly":{short:"oc",code:771},"overline-sm":{short:"o-sm",code:772},"overline-double":{short:"od",code:831},slash:{short:"sl",code:824},"cross-above":{short:"ca",code:829},"plus-below":{short:"pb",code:799},"a-above":{short:"a-a",code:867},"c-above":{short:"c-a",code:872},"d-above":{short:"d-a",code:873},"e-above":{short:"e-a",code:868},"h-above":{short:"h-a",code:874},"i-above":{short:"i-a",code:869},"m-above":{short:"m-a",code:875},"o-above":{short:"o-a",code:870},"r-above":{short:"r-a",code:876},"u-above":{short:"u-a",code:871},"v-above":{short:"v-a",code:878},"x-above":{short:"x-a",code:879},"halo-breve":{short:"hb",code:1160},"halo-grave":{short:"hg",code:1161},"enclose-circle":{short:"en-c",code:8413},"enclose-backslash":{short:"en-cb",code:8416},"enclose-circle-backslash":{short:"en-cb",code:8416},"enclose-square":{short:"en-s",code:8414},"enclose-diamond":{short:"en-d",code:8415},"enclose-screen":{short:"en-scr",code:8418},"enclose-keycap":{short:"en-key",code:8419},diaeresis:{code:776},caron:{code:780},perispomeni:{code:834},tilde:{code:771},tildesm:{code:732},circumflex:{code:770},ringabove:{code:778},dotabove:{code:775},dotbelow:{code:803},grave:{code:832},gravedouble:{code:783},acute:{code:833},breve:{code:774},breveinverted:{code:785},commabelow:{code:806},macron:{code:772},cedilla:{code:807},ogonek:{code:808},solidus:{code:824},solidussm:{code:823},hookabove:{code:777},horn:{code:795},"space-zero":{code:65279},"space-hair":{code:8202},"space-thin":{code:8201},space:{code:32},"space-en":{code:8192},"space-figure":{code:8199},"space-cjk":{code:12288},"space-em":{code:8193},"space-ogham":{code:5760},CGJ:{code:847}};function Rt(e,o,n=[]){const t=String.fromCodePoint,l={m:[120432,120822],b:[119808,120782],i:[119860,48],bi:[119912,48],c:[119964,48],bc:[120016,48],g:[120068,48],d:[120120,120792],bg:[120172,48],s:[120224,120802],bs:[120276,120812],is:[120328,48],bis:[120380,48],o:[9398,9311],on:[127312,9311],p:[127248,120822],q:[127280,48],qn:[127344,48],w:[65313,65296],f:[127462,120822],nd:[120432,9351],nc:[120432,127233],ndc:[120432,9460],r:[120432,9460]},r={m:{" ":8192,"-":8211},i:{h:8462},c:{B:8492,E:8496,F:8497,H:8459,I:8464,L:8466,M:8499,R:8475,e:120046,g:120048,o:120056},g:{C:8493,H:8460,I:8465,R:8476,Z:8488},d:{C:8450,H:8461,N:8469,P:8473,Q:8474,R:8477,Z:8484},o:{0:9450,10:9321,11:9322,12:9323,13:9324,14:9325,15:9326,16:9327,17:9328,18:9329,19:9330,20:9331},on:{0:9471,11:9451,12:9452,13:9453,14:9454,15:9455,16:9456,17:9457,18:9458,19:9459,20:9460},p:{1:9332,2:9333,3:9334,4:9335,5:9336,6:9337,7:9338,8:9339,9:9340,10:9341,11:9342,12:9343,13:9344,14:9345,15:9346,16:9347,17:9348,18:9349,19:9350,20:9351},q:{hv:127306,mv:127307,sd:127308,ss:127309,ppv:127310,wc:127311,cl:127377,cool:127378,free:127379,id:127380,new:127381,ng:127382,ok:127383,sos:127384,"up!":127385,vs:127386,"3d":127387,"2ndscr":127388,"2k":127389,"4k":127390,"8k":127391,"5.1":127392,"7.1":127393,"22.2":127394,"60p":127395,"120p":127396,d:127397,hc:127398,hdr:127399,"hi-res":127400,"loss-less":127401,shv:127402,uhd:127403,vod:127404},qn:{ic:127371,pa:127372,sa:127373,ab:127374,wc:127375},w:{"!":65281,'"':65282,"#":65283,$:65284,"%":65285,"&":65286,"'":65287,"(":65288,")":65289,"*":65290,"+":65291,",":65292,"-":65293,".":65294,"/":65295,":":65306,";":65307,"<":65308,"=":65309,">":65310,"?":65311,"@":65312,"\\":65340,"[":65339,"]":65341,"^":65342,_:65343,"`":65344,"{":65371,"|":65372,"}":65373,"~":65374,"⦅":65375,"⦆":65376,"¢":65504,"£":65505,"¦":65508,"¥":65509,"₩":65510,ー:65392,"。":65392,"、":65380,"・":65381," ̄":65507,"¬":65506},f:{},nd:{0:127232,10:9361,11:9362,12:9363,13:9364,14:9365,15:9366,16:9367,17:9368,18:9369,19:9370,20:9371},ndc:{0:120822,10:9470},r:{I:8544,II:8545,III:8546,IV:8547,V:8548,VI:8549,VII:8550,VIII:8551,IX:8552,X:8553,XI:8554,XII:8555,L:8556,C:8557,D:8558,M:8559,i:8560,ii:8561,iii:8562,iv:8563,v:8564,vi:8565,vii:8566,viii:8567,ix:8568,x:8569,xi:8570,xii:8571,l:8572,c:8573,d:8574,m:8575}};for(var c=97;c<=122;c++)r.p[String.fromCharCode(c)]=9372+(c-97),r.w[String.fromCharCode(c)]=65345+(c-97);["on","q","qn","f"].forEach(m=>{for(var f=97;f<=122;f++)r[m][String.fromCharCode(f)]=l[m][0]+(f-97)});const i={ä:{char:"a",combine:t(a.diaeresis.code)},â:{char:"a",combine:t(a.circumflex.code)},á:{char:"a",combine:t(a.acute.code)},å:{char:"a",combine:t(a.ringabove.code)},ă:{char:"a",combine:t(a.breve.code)},ǟ:{char:"a",combine:t(a.diaeresis.code)+t(a.macron.code)},ã:{char:"a",combine:t(a.tilde.code)},ā:{char:"a",combine:t(a.macron.code)},ȧ:{char:"a",combine:t(a.dotabove.code)},ȃ:{char:"a",combine:t(a.breveinverted.code)},ḅ:{char:"b",combine:t(a.dotbelow.code)},č:{char:"c",combine:t(a.caron.code)},ć:{char:"c",combine:t(a.acute.code)},ç:{char:"c",combine:t(a.cedilla.code)},ḉ:{char:"c",combine:t(a.cedilla.code)+t(a.acute.code)},ċ:{char:"c",combine:t(a.dotabove.code)},ĉ:{char:"c",combine:t(a.circumflex.code)},è:{char:"e",combine:t(a.grave.code)},é:{char:"e",combine:t(a.acute.code)},ē:{char:"e",combine:t(a.macron.code)},ĕ:{char:"e",combine:t(a.breve.code)},ë:{char:"e",combine:t(a.diaeresis.code)},ě:{char:"e",combine:t(a.caron.code)},ę:{char:"e",combine:t(a.ogonek.code)},ȇ:{char:"e",combine:t(a.breveinverted.code)},ȅ:{char:"e",combine:t(a.gravedouble.code)},ê:{char:"e",combine:t(a.circumflex.code)},ğ:{char:"g",combine:t(a.breve.code)},ǧ:{char:"g",combine:t(a.caron.code)},ģ:{char:"g",combine:t(a.cedilla.code)},ġ:{char:"g",combine:t(a.dotabove.code)},ḥ:{char:"h",combine:t(a.dotbelow.code)},î:{char:"i",combine:t(a.circumflex.code)},í:{char:"i",combine:t(a.acute.code)},ì:{char:"i",combine:t(a.grave.code)},ĩ:{char:"i",combine:t(a.tilde.code)},ḱ:{char:"k",combine:t(a.acute.code)},ḳ:{char:"k",combine:t(a.dotbelow.code)},ņ:{char:"n",combine:t(a.ogonek.code)},ń:{char:"n",combine:t(a.acute.code)},õ:{char:"o",combine:t(a.tilde.code)},ö:{char:"o",combine:t(a.diaeresis.code)},ō:{char:"o",combine:t(a.macron.code)},ô:{char:"o",combine:t(a.circumflex.code)},ó:{char:"o",combine:t(a.acute.code)},ò:{char:"o",combine:t(a.grave.code)},ŕ:{char:"r",combine:t(a.acute.code)},ş:{char:"s",combine:t(a.cedilla.code)},ș:{char:"s",combine:t(a.commabelow.code)},ṩ:{char:"s",combine:t(a.dotbelow.code)+t(a.dotabove.code)},š:{char:"s",combine:t(a.caron.code)},ś:{char:"s",combine:t(a.acute.code)},ü:{char:"u",combine:t(a.diaeresis.code)},ù:{char:"u",combine:t(a.grave.code)},ú:{char:"u",combine:t(a.acute.code)},û:{char:"u",combine:t(a.circumflex.code)},ŭ:{char:"u",combine:t(a.breve.code)},ȕ:{char:"u",combine:t(a.gravedouble.code)},ȗ:{char:"u",combine:t(a.breveinverted.code)},ů:{char:"u",combine:t(a.ringabove.code)},ū:{char:"u",combine:t(a.macron.code)},ẁ:{char:"w",combine:t(a.grave.code)},ẃ:{char:"w",combine:t(a.acute.code)},ø:{char:"o",combine:t(a.solidussm.code)},đ:{char:"d",combine:t(a.macron.code)},à:{char:"a",combine:t(a.grave.code)},ả:{char:"a",combine:t(a.hookabove.code)},ạ:{char:"a",combine:t(a.dotbelow.code)},ẻ:{char:"e",combine:t(a.hookabove.code)},ẽ:{char:"e",combine:t(a.tilde.code)},ẹ:{char:"e",combine:t(a.dotbelow.code)},ỉ:{char:"i",combine:t(a.hookabove.code)},ị:{char:"i",combine:t(a.dotbelow.code)},ỏ:{char:"o",combine:t(a.hookabove.code)},ọ:{char:"o",combine:t(a.dotbelow.code)},ủ:{char:"u",combine:t(a.hookabove.code)},ũ:{char:"u",combine:t(a.tilde.code)},ụ:{char:"u",combine:t(a.dotbelow.code)},ý:{char:"y",combine:t(a.acute.code)},ỳ:{char:"y",combine:t(a.grave.code)},ỷ:{char:"y",combine:t(a.hookabove.code)},ỹ:{char:"y",combine:t(a.tilde.code)},ỵ:{char:"y",combine:t(a.dotbelow.code)},ắ:{char:"a",combine:t(a.breve.code)+t(a.acute.code)},ằ:{char:"a",combine:t(a.breve.code)+t(a.grave.code)},ẳ:{char:"a",combine:t(a.breve.code)+t(a.hookabove.code)},ẵ:{char:"a",combine:t(a.breve.code)+t(a.tilde.code)},ặ:{char:"a",combine:t(a.breve.code)+t(a.dotbelow.code)},ấ:{char:"a",combine:t(a.circumflex.code)+t(a.acute.code)},ầ:{char:"a",combine:t(a.circumflex.code)+t(a.grave.code)},ẩ:{char:"a",combine:t(a.circumflex.code)+t(a.hookabove.code)},ẫ:{char:"a",combine:t(a.circumflex.code)+t(a.tilde.code)},ậ:{char:"a",combine:t(a.circumflex.code)+t(a.dotbelow.code)},ế:{char:"e",combine:t(a.circumflex.code)+t(a.acute.code)},ề:{char:"e",combine:t(a.circumflex.code)+t(a.grave.code)},ể:{char:"e",combine:t(a.circumflex.code)+t(a.hookabove.code)},ễ:{char:"e",combine:t(a.circumflex.code)+t(a.tilde.code)},ệ:{char:"e",combine:t(a.circumflex.code)+t(a.dotbelow.code)},ố:{char:"o",combine:t(a.circumflex.code)+t(a.acute.code)},ồ:{char:"o",combine:t(a.circumflex.code)+t(a.grave.code)},ổ:{char:"o",combine:t(a.circumflex.code)+t(a.hookabove.code)},ỗ:{char:"o",combine:t(a.circumflex.code)+t(a.tilde.code)},ộ:{char:"o",combine:t(a.circumflex.code)+t(a.dotbelow.code)},ơ:{char:"o",combine:t(a.horn.code)},ớ:{char:"o",combine:t(a.horn.code)+t(a.acute.code)},ờ:{char:"o",combine:t(a.horn.code)+t(a.grave.code)},ở:{char:"o",combine:t(a.horn.code)+t(a.hookabove.code)},ỡ:{char:"o",combine:t(a.horn.code)+t(a.tilde.code)},ợ:{char:"o",combine:t(a.horn.code)+t(a.dotbelow.code)},ư:{char:"u",combine:t(a.horn.code)},ứ:{char:"u",combine:t(a.horn.code)+t(a.acute.code)},ừ:{char:"u",combine:t(a.horn.code)+t(a.grave.code)},ử:{char:"u",combine:t(a.horn.code)+t(a.hookabove.code)},ữ:{char:"u",combine:t(a.horn.code)+t(a.tilde.code)},ự:{char:"u",combine:t(a.horn.code)+t(a.dotbelow.code)}};for(const m of Object.keys(i))i[m.toUpperCase()]={char:m,combine:!1};const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",u="0123456789",d=function(){return Tt[o]?Tt[o]:l[o]?o:"m"}(),g=function(){let m="";return n.forEach(f=>{f=f.trim().toLowerCase();for(const p in a)(f===p||f===a[p].short)&&(m+=t(a[p].code))}),m}();if(typeof e=="string"&&r[d]&&(r[d][e]||r[d][e.toLowerCase()]))return r[d][e]?t(r[d][e]):t(r[d][e.toLowerCase()]);if(["roman","r"].includes(d)){if(typeof e=="number"){const p={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1};let q="",F=e;for(let O in p)for(;F>=p[O];){if(r[d][O])q+=O;else for(let C of O)q+=C;F-=p[O]}e=q}let m=e;const f=["VIII","viii","III","iii","XII","xii","VII","vii","IX","ix","XI","xi","IV","iv","VI","vi","II","ii","I","i","D","d","M","m","L","l","V","v","C","c","X","x"];for(let p of f)typeof m!="string"&&(m=String(m)),m.indexOf(p.toString())>-1&&(m=m.replaceAll(p,t(r[d][p])));return String(m)}let _="";for(let m of String(e)){let f;const p=m in i?i[m].combine:!1;m=p?i[m].char:m.normalize("NFD").replace(/[\u0300-\u036f]/g,""),r[d]&&r[d][m]&&(m=t(r[d][m])),d&&(f=s.indexOf(m))>-1?_+=t(f+l[d][0]):d&&(f=u.indexOf(m))>-1?_+=t(f+l[d][1]):_+=m,p&&(_+=p),g&&(_+=g)}return _}const wo={class:"info"},xo={class:"text-muted"},So={class:"material-symbols-rounded"},Co=I({__name:"Step",props:{title:String,description:String},setup(e){const o=T(!1);return(n,t)=>(h(),A("div",{class:be(["step",{done:o.value}]),onClick:t[0]||(t[0]=l=>o.value=!o.value)},[b("div",wo,[b("h4",null,S(e.title),1),b("p",xo,S(e.description),1)]),b("span",So,S(o.value?"check_circle":"radio_button_unchecked"),1)],2))}}),oe=le(Co,[["__scopeId","data-v-d464dde0"]]),Bt=e=>(Ne("data-v-ea13fd9a"),e=e(),Ve(),e),$o={class:"checklist"},Io=Bt(()=>b("h2",null,"Checklist",-1)),Oo={class:"checklist"},To=Bt(()=>b("h2",null,"Caption",-1)),Ro=I({__name:"Instagram",props:{modelValue:{type:Object,required:!0}},setup(e){const o=T(""),n=e,t=()=>{const l=n.modelValue.message.de+` --- -`+n.modelValue.message.en,r=/\*\*(.*?)\*\*|\*(.*?)\*/g,c=(g,w)=>Rt(w,"bold sans"),s=l.replace(r,c),i=/__(.*?)__|_(.*?)_/g,u=(g,w)=>Rt(w,"italic sans");return s.replace(i,u)};return ye(async()=>{o.value=t()}),ae(()=>n.modelValue,()=>{o.value=t()},{deep:!0}),(l,r)=>(h(),A(P,null,[b("div",Oo,[jo,b("div",Ro,[k(oe,{title:"Add Location",description:"Where is the Event going to be?"}),k(oe,{title:"Add Reminder",description:"People will be able to set a reminder for the Event."}),k(oe,{title:"Tag Accounts (optional)",description:"For example @schafluzern"}),k(oe,{title:"Post!",description:"You're ready to go!"}),k(oe,{title:"Share to Story",description:"Share to your Instagram Story."})])]),Eo,J(b("textarea",{class:"instagram","onUpdate:modelValue":r[0]||(r[0]=c=>o.value=c)},null,512),[[fe,o.value]])],64))}}),Ao=le(Mo,[["__scopeId","data-v-ea13fd9a"]]),Ft=e=>(Ve("data-v-a3c5d19d"),e=e(),Fe(),e),No=Ft(()=>b("h1",null,"Announcements",-1)),Bo={class:"announcement"},qo=Ft(()=>b("span",null,"+ New Announcement",-1)),Vo=[qo],Fo={class:"tab-list"},Do=["onClick"],Lo=T({__name:"index",setup(e){const o=I({title:"",message:{en:"",de:""}}),n=Ht(),t=Xt(),l=Et(),r={Edit:Kt,"Post on Discord":So,"Post on Instagram":Ao};let c=n.query.tab;const s=I("Edit");return Object.keys(r).includes(c)&&(s.value=c),ae(s,i=>{const u={tab:i};t.replace({query:u})}),ye(async()=>{const i=Number(n.params.id);i&&(o.value=await z.announements.get(i))}),ae(n,async()=>{const i=Number(n.params.id);i?o.value=await z.announements.get(i):o.value={title:"",message:{en:"",de:""}}}),(i,u)=>{const d=ge("router-link");return h(),A(P,null,[No,b("div",Bo,[b("aside",null,[(h(!0),A(P,null,re(D(l).announcements,g=>(h(),y(d,{key:g.id,to:`/announcements/${g.id}`},{default:L(()=>{var w;return[b("div",{class:be(["server",{selected:((w=o.value)==null?void 0:w.id)==g.id}])},[b("span",null,S(g.title),1)],2)]}),_:2},1032,["to"]))),128)),k(d,{to:"/announcements"},{default:L(()=>[b("div",{class:be(["server",{selected:o.value.id==null}])},Vo,2)]),_:1})]),b("main",null,[b("div",Fo,[(h(!0),A(P,null,re(Object.keys(r),g=>(h(),A("span",{onClick:w=>s.value=g,class:be({active:g===s.value})},S(g),11,Do))),256))]),(h(),y(Jt(r[s.value]),{modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=g=>o.value=g)},null,8,["modelValue"]))])])],64)}}}),zo=le(Lo,[["__scopeId","data-v-a3c5d19d"]]);export{zo as default}; +`+n.modelValue.message.en,r=/\*\*(.*?)\*\*|\*(.*?)\*/g,c=(g,_)=>Rt(_,"bold sans"),i=l.replace(r,c),s=/__(.*?)__|_(.*?)_/g,u=(g,_)=>Rt(_,"italic sans");return i.replace(s,u)};return ye(async()=>{o.value=t()}),ae(()=>n.modelValue,()=>{o.value=t()},{deep:!0}),(l,r)=>(h(),A(z,null,[b("div",$o,[Io,b("div",Oo,[k(oe,{title:"Add Location",description:"Where is the Event going to be?"}),k(oe,{title:"Add Reminder",description:"People will be able to set a reminder for the Event."}),k(oe,{title:"Tag Accounts (optional)",description:"For example @schafluzern"}),k(oe,{title:"Post!",description:"You're ready to go!"}),k(oe,{title:"Share to Story",description:"Share to your Instagram Story."})])]),To,Q(b("textarea",{class:"instagram","onUpdate:modelValue":r[0]||(r[0]=c=>o.value=c)},null,512),[[fe,o.value]])],64))}}),jo=le(Ro,[["__scopeId","data-v-ea13fd9a"]]),Nt=e=>(Ne("data-v-a3c5d19d"),e=e(),Ve(),e),Eo=Nt(()=>b("h1",null,"Announcements",-1)),Mo={class:"announcement"},Ao=Nt(()=>b("span",null,"+ New Announcement",-1)),qo=[Ao],Bo={class:"tab-list"},No=["onClick"],Vo=I({__name:"index",setup(e){const o=T({title:"",message:{en:"",de:""}}),n=zt(),t=Pt(),l=Ht(),r={Edit:Jt,"Post on Discord":_o,"Post on Instagram":jo};let c=n.query.tab;const i=T("Edit");return Object.keys(r).includes(c)&&(i.value=c),ae(i,s=>{const u={tab:s};t.replace({query:u})}),ye(async()=>{const s=Number(n.params.id);s&&(o.value=await U.announements.get(s))}),ae(n,async()=>{const s=Number(n.params.id);s?o.value=await U.announements.get(s):o.value={title:"",message:{en:"",de:""}}}),(s,u)=>{const d=ge("router-link");return h(),A(z,null,[Eo,b("div",Mo,[b("aside",null,[(h(!0),A(z,null,re(D(l).announcements,g=>(h(),y(d,{key:g.id,to:`/announcements/${g.id}`},{default:L(()=>{var _;return[b("div",{class:be(["server",{selected:((_=o.value)==null?void 0:_.id)==g.id}])},[b("span",null,S(g.title),1)],2)]}),_:2},1032,["to"]))),128)),k(d,{to:"/announcements"},{default:L(()=>[b("div",{class:be(["server",{selected:o.value.id==null}])},qo,2)]),_:1})]),b("main",null,[b("div",Bo,[(h(!0),A(z,null,re(Object.keys(r),g=>(h(),A("span",{onClick:_=>i.value=g,class:be({active:g===i.value})},S(g),11,No))),256))]),(h(),y(Ut(r[i.value]),{modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=g=>o.value=g)},null,8,["modelValue"]))])])],64)}}}),Lo=le(Vo,[["__scopeId","data-v-a3c5d19d"]]);export{Lo as default}; diff --git a/ui/dist/assets/index-DUY4mzaV.js b/ui/dist/assets/index-DUY4mzaV.js new file mode 100644 index 0000000..ca3dccf --- /dev/null +++ b/ui/dist/assets/index-DUY4mzaV.js @@ -0,0 +1 @@ +import{a as d}from"./api-Bz-ih7aU.js";import{f,g as m,x as v,o as r,c as _,a as s,t as i,m as p,e as h,F as g,p as b,d as S,_ as y}from"./index-BbSnuvgB.js";const e=n=>(b("data-v-38fdb21b"),n=n(),S(),n),U=e(()=>s("h1",null,"User Management",-1)),x={class:"user-management"},k={key:0,class:"stats"},w={class:"card"},C=e(()=>s("p",null,"HSLU-I Students",-1)),D={class:"card"},I=e(()=>s("p",null,"Students on Discord",-1)),E={class:"card"},H=e(()=>s("p",null,"Graduates on Discord",-1)),L=e(()=>s("h2",null,"Configuration",-1)),M={class:"config"},B={class:"config-option"},N=e(()=>s("div",{class:"info"},[s("h3",null,"Update Students"),s("p",null,"Update the list of students that is provided by the HSLU administration.")],-1)),V=e(()=>s("span",{class:"material-symbols-rounded"},"file_upload",-1)),F={class:"config-option"},$=e(()=>s("div",{class:"info"},[s("h3",null,"Update Modules"),s("p",null,"Update the list of modules that is provided by the HSLU administration.")],-1)),G=e(()=>s("span",{class:"material-symbols-rounded"},"file_upload",-1)),P={class:"config-option"},T=e(()=>s("div",{class:"info"},[s("h3",null,"Edit Degree Programmes"),s("p",null,"Edit the mapping between the HSLU degree programmes and the Discord roles & channels.")],-1)),j=e(()=>s("p",null,"soon",-1)),q=f({__name:"index",setup(n){const o=m(null),l=async a=>{const t=document.createElement("input");t.type="file",t.accept=".csv",t.onchange=async()=>{if(!t.files||t.files.length===0)return;const u=await t.files[0].text();a==="students"?await d.db.updateStudents(u):a==="modules"&&await d.db.updateModules(u)},t.click()};return v(async()=>{o.value=await d.db.students()}),(a,t)=>(r(),_(g,null,[U,s("div",x,[o.value?(r(),_("div",k,[s("div",w,[s("h1",null,i(o.value.enrolled),1),C]),s("div",D,[s("h1",null,i(o.value.discord.students),1),I]),s("div",E,[s("h1",null,i(o.value.discord.graduates),1),H])])):p("",!0),L,s("div",M,[s("div",B,[N,s("button",{class:"secondary",onClick:t[0]||(t[0]=c=>l("students"))},[V,h(" Update ")])]),s("div",F,[$,s("button",{class:"secondary",onClick:t[1]||(t[1]=c=>l("modules"))},[G,h(" Update ")])]),s("div",P,[T,p("",!0),j])])])],64))}}),J=y(q,[["__scopeId","data-v-38fdb21b"]]);export{J as default}; diff --git a/ui/dist/assets/index-D_M3sScq.css b/ui/dist/assets/index-D_M3sScq.css new file mode 100644 index 0000000..2d89471 --- /dev/null +++ b/ui/dist/assets/index-D_M3sScq.css @@ -0,0 +1 @@ +.user-management[data-v-38fdb21b]{display:flex;flex-direction:column;gap:1em}.stats[data-v-38fdb21b]{display:flex;flex-direction:row;flex-wrap:wrap;gap:1em}.stats[data-v-38fdb21b] .card[data-v-38fdb21b]{min-width:30ch;flex:1}.config[data-v-38fdb21b]{display:flex;flex-direction:column;gap:1em}.config-option[data-v-38fdb21b]{display:grid;grid-template-columns:1fr max-content;align-items:center;gap:1em}.config-option[data-v-38fdb21b][data-v-38fdb21b]:not(:last-child){padding-bottom:1em;border-bottom:1px solid var(--bg-muted)} diff --git a/ui/dist/assets/index-gAdpBI0b.css b/ui/dist/assets/index-gAdpBI0b.css deleted file mode 100644 index fd873f5..0000000 --- a/ui/dist/assets/index-gAdpBI0b.css +++ /dev/null @@ -1 +0,0 @@ -@import"https://fonts.googleapis.com/css?family=Roboto:400,500,700";:root{--c-green-1: #0b6a5b;--c-green-2: #107d62;--c-green-3: #15906a;--c-green-4: #1aa272;--c-green-5: #1fb579;--c-pink-1: #b71d5c;--c-pink-2: #c32f6a;--c-pink-3: #cf4279;--c-pink-4: #db5487;--c-pink-5: #e76695;--c-yellow-1: #d68a05;--c-yellow-2: #dd9513;--c-yellow-3: #e4a020;--c-yellow-4: #ecab2e;--c-yellow-5: #f3b63b;--c-black-1: #000000;--c-black-2: #09090b;--c-black-3: #111115;--c-black-4: #1a1a20;--c-black-5: #22222a;--c-white-1: #ffffff;--c-white-2: #f9fbfc;--c-white-3: #f3f7f8;--c-white-4: #edf2f4;--c-white-5: #e7eef1;--c-stair-dark: var(--c-green-1);--c-stair-green: #04956c;--c-stair-green-20: #04956c33;--c-stair-lime: var(--c-green-5);--c-stair-graphite: var(--c-black-5);--c-stair-grey: var(--c-white-5);--c-stair-burgundy: var(--c-pink-1);--c-stair-ping: #cf4279;--c-stair-berry: #e76695;--c-stair-mustard: var(--c-yellow-2);--c-stair-yellow: var(--c-yellow-5)}:root{--bg-base: var(--c-white-1);--bg-soft: var(--c-white-3);--bg-muted: var(--c-white-5);--border: var(--c-black-3);--border-hover: var(--c-black-4);--fg-text: var(--c-stair-graphite);--fg-text-muted: #6c6c6c;--c-accent: var(--c-stair-green);--c-accent-hover: var(--c-stair-lime)}@media (prefers-color-scheme: dark){:root{--bg-base: var(--c-black-1);--bg-soft: var(--c-black-3);--bg-muted: var(--c-black-5);--border: var(--c-white-3);--border-hover: var(--c-white-4);--fg-text: var(--c-white-1)}}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}@font-face{font-family:Ingra;font-weight:400;font-style:normal;font-display:auto;src:local("Ingra"),url(/fonts/Ingra/Ingra-Regular.woff2) format("woff2")}@font-face{font-family:Ingra;font-weight:700;font-style:normal;font-display:auto;src:local("Ingra"),url(/fonts/Ingra/Ingra-Bold.woff2) format("woff2")}body{min-height:100vh;min-height:100svh;color:var(--fg-text);background:var(--bg-base);font-family:Ingra,Arial,Helvetica,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}header{background:var(--c-stair-lime);color:var(--c-white-1)}h1,.title{font-size:53px;font-weight:700;line-height:1.2;color:var(--c-stair-green)}h2,.subtitle{font-size:25px;font-weight:700;line-height:1.2;color:var(--fg-text)}h3,.lead{font-size:19px;font-weight:400;line-height:1.2;color:var(--fg-text)}body{font-size:12px;font-weight:400;line-height:1.25;color:var(--fg-text)}strong{font-weight:600}a{color:var(--c-accent);text-decoration:none}a:hover{color:var(--c-accent-hover)}input,textarea,select{font-size:1em;font-weight:400;font-family:Ingra,Arial,Helvetica,sans-serif;line-height:1.25;color:var(--fg-text);background:var(--bg-soft);border:1px solid var(--bg-muted);border-radius:4px;padding:8px 12px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--c-accent)}textarea{min-height:20ch}button{font-size:1em;font-weight:700;font-family:Ingra,Arial,Helvetica,sans-serif;line-height:1.25;color:var(--c-white-1);background:var(--c-stair-green);border:none;border-radius:.5em;padding:1em 2em;cursor:pointer;outline:none}button:hover{background:var(--c-stair-lime)}button.secondary{background:inherit;color:var(--c-stair-green);border:1px solid var(--bg-muted)}button.secondary:hover{background:var(--bg-base);border:1px solid var(--c-stair-green)}button.danger{background:var(--c-stair-burgundy)}button.danger:hover{background:var(--c-stair-berry)}button.warning{background:var(--c-stair-mustard)}button.warning:hover{background:var(--c-stair-yellow)}button:disabled{background:var(--c-stair-grey);cursor:not-allowed}button:disabled:hover{background:var(--c-white-4)}.card{background:var(--bg-soft);border:1px solid var(--bg-muted);border-radius:4px;padding:1em;margin:1em 0}.discord-buttons a.discord-button,.discord-buttons button.discord-button{color:#fff;display:flex;align-items:center;justify-content:center;min-height:32px;min-width:60px;font-size:14px;font-weight:500;font-family:Roboto,sans-serif;line-height:16px;margin:4px 8px 4px 0;padding:2px 16px;border:none;border-radius:3px;box-sizing:border-box;cursor:pointer;transition:background-color .15s ease,color .15s ease}.discord-buttons a.discord-button:hover{color:#fff;text-decoration:none}.discord-buttons .discord-button .discord-button-emoji{width:19px;height:19px;margin-right:4px}.discord-buttons .discord-button.discord-button-primary{background-color:#5865f2}.discord-buttons .discord-button:not(.discord-button-disabled).discord-button-primary:hover{background-color:#4752c4}.discord-buttons .discord-button.discord-button-link,.discord-buttons .discord-button.discord-button-secondary{background-color:#4f545c}.discord-buttons .discord-button:not(.discord-button-disabled).discord-button-link:hover,.discord-buttons .discord-button:not(.discord-button-disabled).discord-button-secondary:hover{background-color:#474c53}.discord-light-theme .discord-buttons .discord-button.discord-button-link,.discord-light-theme .discord-buttons .discord-button.discord-button-secondary{background-color:#747f8d}.discord-light-theme .discord-buttons .discord-button:not(.discord-button-disabled).discord-button-link:hover,.discord-light-theme .discord-buttons .discord-button:not(.discord-button-disabled).discord-button-secondary:hover{background-color:#68727f}.discord-buttons .discord-button.discord-button-success{background-color:#3ba55c}.discord-buttons .discord-button:not(.discord-button-disabled).discord-button-success:hover{background-color:#359553}.discord-buttons .discord-button.discord-button-danger{background-color:#ed4245}.discord-buttons .discord-button:not(.discord-button-disabled).discord-button-danger:hover{background-color:#d53b3e}.discord-buttons .discord-button.discord-button-disabled,.discord-buttons .discord-button:disabled{opacity:.5;cursor:not-allowed}.discord-buttons .discord-button .outbound-link-icon{margin-left:8px;display:inline-flex}.discord-buttons{display:flex;flex-wrap:wrap}.discord-embed{color:#dcddde;display:flex;margin-top:8px;margin-bottom:8px;font-size:13px;line-height:150%}.discord-light-theme .discord-embed{color:#2e3338}.discord-embed .discord-embed-left-border{background-color:#202225;flex-shrink:0;width:4px;border-radius:4px 0 0 4px}.discord-light-theme .discord-embed .discord-embed-left-border{background-color:#e3e5e8}.discord-embed .discord-embed-container{background-color:#2f3136;display:flex;flex-direction:column;max-width:520px;padding:8px 16px 16px;border:1px solid rgba(46,48,54,.6);border-radius:0 4px 4px 0}.discord-light-theme .discord-embed .discord-embed-container{background-color:#f9f9f94d;border-color:#cdcdcd4d}.discord-embed .discord-embed-content{display:flex}.discord-embed .discord-embed-content .discord-embed-author{color:#fff;display:flex;align-items:center;font-weight:500;margin-top:8px}.discord-light-theme .discord-embed .discord-embed-content .discord-embed-author{color:#4f545c}.discord-embed .discord-embed-content .discord-embed-author a{color:#fff;font-weight:500}.discord-light-theme .discord-embed .discord-embed-content .discord-embed-author a{color:#4f545c}.discord-embed .discord-embed-content .discord-embed-author .discord-embed-author-icon{width:24px;height:24px;margin-right:8px;border-radius:50%}.discord-embed .discord-embed-content .discord-embed-title{color:#fff;font-size:16px;font-weight:600;margin-top:8px}.discord-embed .discord-embed-content .discord-embed-title a{color:#00b0f4;font-weight:600}.discord-embed .discord-embed-content .discord-embed-description{margin-top:8px}.discord-embed .discord-embed-content .discord-embed-image{max-width:100%;margin-top:16px;border-radius:4px}.discord-embed .discord-embed-content .discord-embed-thumbnail{max-width:80px;max-height:80px;margin-left:16px;margin-top:8px;border-radius:4px;object-fit:contain;object-position:top center}.discord-embed .discord-embed-footer{color:#72767d;display:flex;align-items:center;font-size:.85em;margin-top:8px}.discord-embed .discord-embed-footer .discord-embed-footer-icon{flex-shrink:0;width:20px;height:20px;margin-right:8px;border-radius:50%}.discord-embed .discord-embed-footer .discord-embed-footer-separator{color:#3b3c42;font-weight:700;margin:0 4px}.discord-light-theme .discord-embed .discord-embed-footer .discord-embed-footer-separator{color:#e4e4e4}.discord-embed .discord-embed-field{min-width:100%;margin-top:5px}.discord-embed .discord-embed-field.discord-embed-field-inline{flex-grow:1;flex-basis:auto;min-width:100px}.discord-embed .discord-embed-field .discord-embed-field-title{color:#72767d;font-weight:500;margin-bottom:2px}.discord-light-theme .discord-embed .discord-embed-field .discord-embed-field-title{color:#747f8d}.discord-embed .discord-embed-fields{display:flex;flex-wrap:wrap;margin-top:8px}.discord-message .discord-author-info{color:#fff;display:inline-flex;align-items:center;font-size:15px}.discord-compact-mode .discord-message .discord-author-info{display:inline-flex;flex-direction:row-reverse}.discord-message .discord-author-info .discord-author-username{font-size:1.1em;font-weight:500;letter-spacing:.5px}.discord-compact-mode .discord-message .discord-author-info .discord-author-username{margin-left:4px;margin-right:4px}.discord-light-theme .discord-message .discord-author-info .discord-author-username{color:#23262a}.discord-message .discord-author-info .discord-author-bot-tag{background-color:#5865f2;font-size:.65em;margin-left:5px;padding:3px 4px;border-radius:3px;line-height:100%;text-transform:uppercase}.discord-compact-mode .discord-message .discord-author-info .discord-author-bot-tag{margin-left:0;margin-right:5px;padding-left:3px;padding-right:3px;font-size:.6em}.discord-light-theme .discord-message .discord-author-info .discord-author-bot-tag{color:#fff}.discord-interaction{color:#b9bbbe;display:flex;align-items:center;position:relative;width:100%;font-size:.95em;margin-bottom:4px;padding-left:56px;line-height:150%;box-sizing:border-box}.discord-compact-mode .discord-interaction{margin-bottom:0;padding-left:64px}.discord-light-theme .discord-interaction{color:#4f5660}.discord-interaction:before{content:"";display:block;position:absolute;width:33px;top:50%;bottom:0;left:18px;margin:-1px 0 0;border-top-left-radius:6px;border-top:2px solid #4f545c;border-left:2px solid #4f545c;box-sizing:border-box}.discord-compact-mode .discord-interaction:before{left:26px}.discord-interaction .discord-interaction-author-info{font-size:1em;flex-direction:row-reverse}.discord-interaction .discord-interaction-author-avatar{width:16px;height:16px;margin-right:4px;border-radius:50%}.discord-compact-mode .discord-interaction .discord-interaction-author-avatar{display:none}.discord-interaction .discord-interaction-author-info .discord-author-username{font-size:1em;margin-right:4px;opacity:.65}.discord-compact-mode .discord-interaction .discord-interaction-author-info .discord-author-username{margin-left:0}.discord-interaction .discord-interaction-author-info .discord-author-bot-tag{font-size:.75em;margin:1px 4px 0 0}.discord-compact-mode .discord-interaction .discord-interaction-author-info .discord-author-bot-tag{font-size:.7em;padding-left:4px;padding-right:4px}.discord-interaction .discord-interaction-command .discord-interaction-command-name{color:#7289da;opacity:.65}.discord-interaction .discord-interaction-reply{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.discord-interaction .discord-interaction-reply .discord-interaction-reply-edited{color:#72767d;font-size:10px;margin-left:3px}.discord-interaction .discord-interaction-reply:hover{color:#fff}.discord-light-theme .discord-interaction .discord-interaction-reply:hover{color:#060607}.discord-markdown .discord-markdown-content>pre{max-width:90%;margin:.4em 0 0;white-space:pre-wrap;border-radius:4px;box-sizing:border-box}.discord-markdown .discord-markdown-content>pre>code{color:#b9bbbe;background-color:#2f3135;display:block;font-size:1em;padding:.5em;border:1px solid #202225;border-radius:4px}.discord-light-theme .discord-markdown .discord-markdown-content>pre>code{color:#4f5660;background-color:#f2f3f9;border-color:#e3e5e8}.discord-markdown .discord-markdown-content>code{background-color:#2f3136;font-size:.95em;padding:3px;border-radius:3px;white-space:pre-wrap}.discord-light-theme .discord-markdown .discord-markdown-content>code{background-color:#f2f3f5}.discord-markdown .discord-markdown-content .d-spoiler{color:transparent;background-color:#202225;border-radius:3px;transition:all .1s ease-in-out}.discord-light-theme .discord-markdown .discord-markdown-content .d-spoiler{background-color:#b9bbbe}.discord-markdown .discord-markdown-content .d-spoiler:hover{color:inherit;background-color:#ffffff1a}.discord-light-theme .discord-markdown .discord-markdown-content .d-spoiler:hover{background-color:#0000001a}.discord-markdown .discord-markdown-content>blockquote{position:relative;margin:0;padding:0 8px 0 16px}.discord-markdown .discord-markdown-content>blockquote:before{content:"";background-color:#4f545c;width:4px;position:absolute;top:0;left:0;bottom:0;border-radius:4px}.discord-light-theme .discord-markdown .discord-markdown-content>blockquote:before{background-color:#c7ccd1}.discord-message .discord-mention{color:#dee0fc;background-color:#5865f24d;font-weight:500;padding:0 2px;border-radius:3px;transition:background-color 50ms ease-out,color 50ms ease-out}.discord-message .discord-mention:hover{background-color:#5865f2}.discord-message{color:#dcddde;display:flex;flex-direction:column;font-size:.9em;margin:1em 0;padding:.25em 1em 0}.discord-message:hover{background-color:#32353b}.discord-compact-mode .discord-message{margin:.15em 0;padding-left:.25em;padding-right:.25em}.discord-light-theme .discord-message{color:#2e3338}.discord-light-theme .discord-message:hover{background-color:#fafafa}.discord-message.discord-ephemeral-highlight{background-color:#5865f20d}.discord-message.discord-mention-highlight{background-color:#faa61a1a}.discord-message.discord-ephemeral-highlight,.discord-message.discord-mention-highlight{position:relative}.discord-message.discord-ephemeral-highlight:before,.discord-message.discord-mention-highlight:before{content:"";display:block;position:absolute;top:0;left:0;bottom:0;width:2px}.discord-message.discord-ephemeral-highlight:before{background-color:#5865f2}.discord-message.discord-mention-highlight:before{background-color:#faa61a}.discord-message.discord-ephemeral-highlight:hover{background-color:#5865f21a}.discord-message.discord-mention-highlight:hover{background-color:#faa61a14}.discord-light-theme .discord-message.discord-mention-highlight:hover{background-color:#faa61a33}.discord-message a{color:#0096cf;font-weight:400;text-decoration:none}.discord-message a:hover{text-decoration:underline}.discord-light-theme .discord-message a{color:#00b0f4}.discord-message .discord-author-avatar{margin-top:1px;margin-right:16px;min-width:40px}.discord-compact-mode .discord-message .discord-author-avatar{display:none}.discord-message .discord-author-avatar img{width:40px;height:40px;border-radius:50%}.discord-message .discord-message-content{display:flex;width:100%;line-height:160%;font-weight:400;overflow-wrap:anywhere}.discord-message .discord-message-content .discord-message-timestamp{color:#72767d;font-size:12px;margin-left:3px}.discord-compact-mode .discord-message:hover .discord-message-content .discord-message-timestamp,.discord-compact-mode.discord-light-theme .discord-message:hover .discord-message-content .discord-message-timestamp,.discord-light-theme .discord-message .discord-message-content .discord-message-timestamp{color:#99aab5}.discord-compact-mode .discord-message .discord-message-content .discord-message-timestamp{display:inline-block;min-width:48px;font-size:11px;margin-left:0;margin-right:3px;text-align:right}.discord-compact-mode.discord-light-theme .discord-message .discord-message-content .discord-message-timestamp{color:#d1d9de}.discord-message .discord-message-body{position:relative;width:100%}.discord-compact-mode .discord-message-body{margin-left:.25em}.discord-message .discord-message-body .discord-message-edited{color:#72767d;font-size:10px;margin-left:3px}.discord-message .discord-message-ephemeral-notice{color:#72767d;font-size:12px;margin-top:4px}.discord-messages{color:#fff;background-color:#36393e;font-size:16px;font-family:Roboto,sans-serif;line-height:170%;border:1px solid rgba(255,255,255,.05)}.discord-messages.discord-light-theme{color:#747f8d;background-color:#f7f7f7;border-color:#dedede}.discord-reactions .discord-reaction{background-color:#2f3136;display:inline-flex;align-items:center;padding:0 .4em;border-radius:4px;margin-right:2px;margin-bottom:2px;border:1px solid transparent;transition:background-color .1s ease,border-color .1s ease}.discord-light-theme .discord-reactions .discord-reaction{background-color:#f2f3f5}.discord-reactions .discord-reaction:hover{background-color:#36393f;border-color:#fff3}.discord-light-theme .discord-reactions .discord-reaction:hover{border-color:#0003}.discord-reactions .discord-reaction.discord-reaction-active{background-color:#5865f226;border-color:#5865f2}.discord-reactions .discord-reaction .discord-reaction-emoji{width:16px;height:16px}.discord-reactions .discord-reaction .discord-reaction-count{margin-left:6px}.discord-reactions{display:flex;flex-wrap:wrap;padding:2px 0}.forbidden[data-v-be9d7e14]{display:grid;grid-template-columns:2fr 3fr;width:100%;min-height:100vh;min-height:100svh;background:var(--c-white-1)}button span[data-v-be9d7e14]{font-size:1rem;margin-right:.5rem;translate:0 .2em}main[data-v-be9d7e14]{display:flex;justify-content:center;align-items:center}main[data-v-be9d7e14] .panel[data-v-be9d7e14]{min-width:300px;width:60%;display:flex;flex-direction:column;align-items:flex-start;gap:3em}main[data-v-be9d7e14] .panel[data-v-be9d7e14] button[data-v-be9d7e14]{width:100%}aside[data-v-be9d7e14]{display:flex;justify-content:center;align-items:center;background-color:var(--c-stair-graphite)}aside[data-v-be9d7e14] .stan[data-v-be9d7e14]{max-height:80vh}@media screen and (max-width: 1200px){aside[data-v-be9d7e14]{display:none}.forbidden[data-v-be9d7e14]{grid-template-columns:1fr}}header[data-v-5c695e95]{width:100%;display:flex;justify-content:space-between;padding-right:2rem;position:sticky;top:0;z-index:1000}nav[data-v-5c695e95]{display:flex;align-items:center;gap:1rem;font-size:1rem}nav[data-v-5c695e95] a[data-v-5c695e95]{color:var(--c-white-1)}nav[data-v-5c695e95] a[data-v-5c695e95][data-v-5c695e95]:hover{color:var(--c-stair-graphite)}nav[data-v-5c695e95] a[data-v-5c695e95].router-link-active[data-v-5c695e95]{text-decoration:underline}nav[data-v-5c695e95] .user[data-v-5c695e95]{cursor:pointer;height:100%;position:relative;display:flex;align-items:center;padding:.5rem}nav[data-v-5c695e95] .user[data-v-5c695e95][data-v-5c695e95]:hover{background:#ffffff1a}nav[data-v-5c695e95] .user[data-v-5c695e95] .options[data-v-5c695e95]{position:absolute;cursor:auto;top:100%;right:0;background:var(--bg-soft);border:1px solid var(--bg-muted);box-shadow:0 0 20px #0003;border-radius:.5rem;padding:1rem;display:flex;flex-direction:column;gap:2rem;color:var(--fg-text)}nav[data-v-5c695e95] .user[data-v-5c695e95] .options[data-v-5c695e95] .action[data-v-5c695e95]{display:flex;justify-content:flex-end}nav[data-v-5c695e95] .user[data-v-5c695e95] .options[data-v-5c695e95] a[data-v-5c695e95]{color:var(--fg-text);display:block;padding:.5rem;text-align:center;text-decoration:none}nav[data-v-5c695e95] .user[data-v-5c695e95] .options[data-v-5c695e95] a[data-v-5c695e95][data-v-5c695e95]:hover{text-decoration:underline}nav[data-v-5c695e95] .user[data-v-5c695e95] .options[data-v-5c695e95] a[data-v-5c695e95] span[data-v-5c695e95]{font-size:1rem;margin-left:.5em;translate:0 .1em}nav[data-v-5c695e95] .user[data-v-5c695e95] .options[data-v-5c695e95] .data[data-v-5c695e95]{padding:0 1rem}#container[data-v-5c695e95]{max-width:1280px;margin:0 auto;padding:2rem} diff --git a/ui/dist/index.html b/ui/dist/index.html index 1d6dffa..b5048eb 100644 --- a/ui/dist/index.html +++ b/ui/dist/index.html @@ -12,8 +12,8 @@ /> STAIR PR Tools - - + +