diff --git a/public/build/default/assets/ActionMessage-8f3d2156.js b/public/build/default/assets/ActionMessage-8f3d2156.js deleted file mode 100644 index 7398381de..000000000 --- a/public/build/default/assets/ActionMessage-8f3d2156.js +++ /dev/null @@ -1 +0,0 @@ -import{o as s,d as t,b as o,w as n,j as c,m as i,a as r,R as l,V as d}from"./app-a74308ca.js";const _={class:"text-sm text-gray-600"},v={__name:"ActionMessage",props:{on:Boolean},setup(e){return(a,m)=>(s(),t("div",null,[o(d,{"leave-active-class":"transition duration-1000 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:n(()=>[c(r("div",_,[l(a.$slots,"default")],512),[[i,e.on]])]),_:3})]))}};export{v as _}; diff --git a/public/build/default/assets/ActionSection-ac3ee188.js b/public/build/default/assets/ActionSection-ac3ee188.js deleted file mode 100644 index b9223e68f..000000000 --- a/public/build/default/assets/ActionSection-ac3ee188.js +++ /dev/null @@ -1 +0,0 @@ -import{J as a}from"./SectionTitle-2ef52e37.js";import{o as d,d as i,b as c,w as o,R as t,a as e}from"./app-a74308ca.js";const r={class:"md:grid md:grid-cols-3 md:gap-6"},n={class:"mt-5 md:mt-0 md:col-span-2"},l={class:"px-4 py-5 sm:p-6 bg-white dark:bg-cool-gray-800 shadow sm:rounded-lg"},h={__name:"ActionSection",setup(m){return(s,p)=>(d(),i("div",r,[c(a,null,{title:o(()=>[t(s.$slots,"title")]),description:o(()=>[t(s.$slots,"description")]),_:3}),e("div",n,[e("div",l,[t(s.$slots,"content")])])]))}};export{h as _}; diff --git a/public/build/default/assets/AdminLayout-32c66dcb.js b/public/build/default/assets/AdminLayout-32c66dcb.js deleted file mode 100644 index d2b0d83ff..000000000 --- a/public/build/default/assets/AdminLayout-32c66dcb.js +++ /dev/null @@ -1 +0,0 @@ -import{A as W}from"./AppLayout-3152d1d6.js";import{o as n,d as o,a,z as $,r as p,y as O,x as y,A as I,B as L,s as G,C as E,l as J,c as v,w as k,M as D,n as h,e as f,t as _,u as b,Z as X,b as S,F as q,g as N,i as Y,R as Z}from"./app-a74308ca.js";import{t as V,u as P,o as w,H as j,b as Q,N as H,a as x}from"./use-resolve-button-type-072501d0.js";import{c as ee,l as B,p as re}from"./open-closed-899a9696.js";import{u as te}from"./useAuthorizable-6eedd410.js";import{r as ne}from"./CloudArrowDownIcon-a2d92a40.js";import{u as le}from"./index-d1e58818.js";function ie(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.26 10.147a60.436 60.436 0 00-.491 6.347A48.627 48.627 0 0112 20.904a48.627 48.627 0 018.232-4.41 60.46 60.46 0 00-.491-6.347m-15.482 0a50.57 50.57 0 00-2.658-.813A59.905 59.905 0 0112 3.493a59.902 59.902 0 0110.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.697 50.697 0 0112 13.489a50.702 50.702 0 017.74-3.342M6.75 15a.75.75 0 100-1.5.75.75 0 000 1.5zm0 0v-3.675A55.378 55.378 0 0112 8.443m-7.007 11.55A5.981 5.981 0 006.75 15.75v-1.5"})])}function ae(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0112 12.75zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 01-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 002.248-2.354M12 12.75a2.25 2.25 0 01-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 00-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 01.4-2.253M12 8.25a2.25 2.25 0 00-2.248 2.146M12 8.25a2.25 2.25 0 012.248 2.146M8.683 5a6.032 6.032 0 01-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0115.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 00-.575-1.752M4.921 6a24.048 24.048 0 00-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 01-5.223 1.082"})])}function oe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6a7.5 7.5 0 107.5 7.5h-7.5V6z"}),a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 10.5H21A7.5 7.5 0 0013.5 3v7.5z"})])}function se(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.75 19.5l-7.5-7.5 7.5-7.5m-6 15L5.25 12l7.5-7.5"})])}function ce(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function ue(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z"})])}function de(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 011.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.56.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.893.149c-.425.07-.765.383-.93.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 01-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.397.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 01-.12-1.45l.527-.737c.25-.35.273-.806.108-1.204-.165-.397-.505-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.107-1.204l-.527-.738a1.125 1.125 0 01.12-1.45l.773-.773a1.125 1.125 0 011.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894z"}),a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})])}function me(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 7.5l3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0021 18V6a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 6v12a2.25 2.25 0 002.25 2.25z"})])}function he(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})])}function ve(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function fe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 01-2.25 2.25M16.5 7.5V18a2.25 2.25 0 002.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 002.25 2.25h13.5M6 7.5h3v3H6v-3z"})])}function be(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3v11.25A2.25 2.25 0 006 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0118 16.5h-2.25m-7.5 0h7.5m-7.5 0l-1 3m8.5-3l1 3m0 0l.5 1.5m-.5-1.5h-9.5m0 0l-.5 1.5m.75-9l3-3 2.148 2.148A12.061 12.061 0 0116.5 7.605"})])}function ge(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 01-3-3m3 3a3 3 0 100 6h13.5a3 3 0 100-6m-16.5-3a3 3 0 013-3h13.5a3 3 0 013 3m-19.5 0a4.5 4.5 0 01.9-2.7L5.737 5.1a3.375 3.375 0 012.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 01.9 2.7m0 0a3 3 0 01-3 3m0 3h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008zm-3 6h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008z"})])}function pe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 18.75h-9m9 0a3 3 0 013 3h-15a3 3 0 013-3m9 0v-3.375c0-.621-.503-1.125-1.125-1.125h-.871M7.5 18.75v-3.375c0-.621.504-1.125 1.125-1.125h.872m5.007 0H9.497m5.007 0a7.454 7.454 0 01-.982-3.172M9.497 14.25a7.454 7.454 0 00.981-3.172M5.25 4.236c-.982.143-1.954.317-2.916.52A6.003 6.003 0 007.73 9.728M5.25 4.236V4.5c0 2.108.966 3.99 2.48 5.228M5.25 4.236V2.721C7.456 2.41 9.71 2.25 12 2.25c2.291 0 4.545.16 6.75.47v1.516M7.73 9.728a6.726 6.726 0 002.748 1.35m8.272-6.842V4.5c0 2.108-.966 3.99-2.48 5.228m2.48-5.492a46.32 46.32 0 012.916.52 6.003 6.003 0 01-5.395 4.972m0 0a6.726 6.726 0 01-2.749 1.35m0 0a6.772 6.772 0 01-3.044 0"})])}function we(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z"})])}var xe=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(xe||{});let R=Symbol("DisclosureContext");function z(e){let r=E(R,null);if(r===null){let u=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,z),u}return r}let T=Symbol("DisclosurePanelContext");function ke(){return E(T,null)}let ye=$({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:r,attrs:u}){let l=p(e.defaultOpen?0:1),t=p(null),c=p(null),s={buttonId:p(`headlessui-disclosure-button-${V()}`),panelId:p(`headlessui-disclosure-panel-${V()}`),disclosureState:l,panel:t,button:c,toggleDisclosure(){l.value=P(l.value,{0:1,1:0})},closeDisclosure(){l.value!==1&&(l.value=1)},close(i){s.closeDisclosure();let m=(()=>i?i instanceof HTMLElement?i:i.value instanceof HTMLElement?w(i):w(s.button):w(s.button))();m==null||m.focus()}};return O(R,s),ee(y(()=>P(l.value,{0:B.Open,1:B.Closed}))),()=>{let{defaultOpen:i,...m}=e,g={open:l.value===0,close:s.close};return j({theirProps:m,ourProps:{},slot:g,slots:r,attrs:u,name:"Disclosure"})}}}),Me=$({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:r,slots:u,expose:l}){let t=z("DisclosureButton"),c=ke(),s=y(()=>c===null?!1:c.value===t.panelId.value);I(()=>{s.value||e.id!==null&&(t.buttonId.value=e.id)}),L(()=>{s.value||(t.buttonId.value=null)});let i=p(null);l({el:i,$el:i}),s.value||G(()=>{t.button.value=i.value});let m=Q(y(()=>({as:e.as,type:r.type})),i);function g(){var d;e.disabled||(s.value?(t.toggleDisclosure(),(d=w(t.button))==null||d.focus()):t.toggleDisclosure())}function M(d){var C;if(!e.disabled)if(s.value)switch(d.key){case x.Space:case x.Enter:d.preventDefault(),d.stopPropagation(),t.toggleDisclosure(),(C=w(t.button))==null||C.focus();break}else switch(d.key){case x.Space:case x.Enter:d.preventDefault(),d.stopPropagation(),t.toggleDisclosure();break}}function A(d){switch(d.key){case x.Space:d.preventDefault();break}}return()=>{var d;let C={open:t.disclosureState.value===0},{id:F,...U}=e,K=s.value?{ref:i,type:m.value,onClick:g,onKeydown:M}:{id:(d=t.buttonId.value)!=null?d:F,ref:i,type:m.value,"aria-expanded":t.disclosureState.value===0,"aria-controls":t.disclosureState.value===0||w(t.panel)?t.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:g,onKeydown:M,onKeyup:A};return j({ourProps:K,theirProps:U,slot:C,attrs:r,slots:u,name:"DisclosureButton"})}}}),Ce=$({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:r,slots:u,expose:l}){let t=z("DisclosurePanel");I(()=>{e.id!==null&&(t.panelId.value=e.id)}),L(()=>{t.panelId.value=null}),l({el:t.panel,$el:t.panel}),O(T,t.panelId);let c=re(),s=y(()=>c!==null?(c.value&B.Open)===B.Open:t.disclosureState.value===0);return()=>{var i;let m={open:t.disclosureState.value===0,close:t.close},{id:g,...M}=e,A={id:(i=t.panelId.value)!=null?i:g,ref:t.panel};return j({ourProps:A,theirProps:M,slot:m,attrs:r,slots:u,features:H.RenderStrategy|H.Static,visible:s.value,name:"DisclosurePanel"})}}});function _e(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[a("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"})])}const Se={key:1},Be={key:1,class:"flex-1"},Ae={__name:"SideNavItem",props:{item:Object,collapsed:Boolean},setup(e){const r=e,u=y(()=>{function l(t){return t.some(c=>c.active||l(c.children))}return l(r.item.children)});return(l,t)=>{const c=J("SideNavItem",!0);return!e.item.children.length&&e.item.visible?(n(),v(D(e.item.newtab?"a":b(X)),{key:0,class:h(["group flex w-full items-center rounded-md py-2 px-3 text-sm font-medium","hover:bg-gray-100 dark:hover:bg-gray-900",e.item.active?"text-gray-800 font-semibold dark:text-gray-200":"text-gray-600 dark:text-gray-400 font-medium"]),href:e.item.href,target:e.item.newtab?"_blank":null},{default:k(()=>[e.item.icon?(n(),v(D(e.item.icon),{key:0,class:h(["w-6 h-6 shrink-0 mr-2 group-hover:text-gray-600 dark:group-hover:text-gray-400",e.item.active?"text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"])):f("",!0),e.collapsed?f("",!0):(n(),o("span",Se,_(l.__(e.item.label)),1))]),_:1},8,["class","href","target"])):e.item.children.length&&e.item.visible?(n(),v(b(ye),{key:1,"default-open":u.value},{default:k(({open:s})=>[S(b(Me),{class:h(["group text-left flex w-full items-center rounded-md py-2 px-3 text-sm","hover:bg-gray-100 dark:hover:bg-gray-900",s?"font-semibold text-gray-800 dark:text-gray-200":"text-gray-600 dark:text-gray-400 font-medium"])},{default:k(()=>[e.item.icon?(n(),v(D(e.item.icon),{key:0,class:h(["w-6 h-6 shrink-0 mr-2 group-hover:text-gray-600 dark:group-hover:text-gray-400",s?"text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"])):f("",!0),e.collapsed?f("",!0):(n(),o("span",Be,_(l.__(e.item.label)),1)),e.collapsed?f("",!0):(n(),v(b(_e),{key:2,class:h(["w-6 h-6 shrink-0",s?"-rotate-180 text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"]))]),_:2},1032,["class"]),e.collapsed?f("",!0):(n(),v(b(Ce),{key:0,class:"ml-4"},{default:k(()=>[(n(!0),o(q,null,N(e.item.children,i=>(n(),v(c,{key:i.label,item:i},null,8,["item"]))),128))]),_:1}))]),_:1},8,["default-open"])):f("",!0)}}},De={class:"h-screen overflow-y-auto"},$e={class:"mt-2 px-2"},je={key:0,class:"mt-10 text-xs text-center text-gray-600 dark:text-gray-500"},ze={__name:"AdminSideMenu",props:{collapsed:Boolean},emits:["toggleCollapse"],setup(e){const{canWild:r,hasRole:u,can:l}=te(),t=[{label:"Dashboard",href:route("admin.dashboard"),active:route().current("admin.dashboard"),children:[],icon:ve,visible:!0},{label:"Servers",href:route("admin.server.index"),active:route().current("admin.server.*"),children:[],icon:ge,visible:r("servers")},{label:"Server Analytics",href:"#",active:route().current("admin.intel.server.*"),children:[{label:"Overview",href:route("admin.intel.server.index"),active:route().current("admin.intel.server.index"),children:[],icon:null,visible:r("server_intel")},{label:"Performance",href:route("admin.intel.server.performance"),active:route().current("admin.intel.server.performance"),children:[],icon:null,visible:r("server_intel")},{label:"Playerbase",href:route("admin.intel.server.playerbase"),active:route().current("admin.intel.server.playerbase"),children:[],icon:null,visible:r("server_intel")},{label:"Chatlog",href:route("admin.intel.server.chatlog"),active:route().current("admin.intel.server.chatlog"),children:[],icon:null,visible:r("server_intel")},{label:"Consolelog",href:route("admin.intel.server.consolelog"),active:route().current("admin.intel.server.consolelog"),children:[],icon:null,visible:r("server_intel")}],icon:be,visible:r("server_intel")},{label:"Players",href:"#",active:route().current("admin.intel.player.*")||route().current("admin.rank.*"),children:[{label:"List Players",href:route("admin.intel.player.list"),active:route().current("admin.intel.player.list"),children:[],icon:null,visible:!0},{label:"Player Ranks",href:route("admin.rank.index"),active:route().current("admin.rank.*"),children:[],icon:null,visible:r("ranks")}],icon:pe,visible:!0},{label:"Users",href:"#",active:!1,children:[{label:"List Users",href:route("admin.user.index"),active:route().current("admin.user.*"),children:[],icon:null,visible:r("users")},{label:"Roles & Permissions",href:route("admin.role.index"),active:route().current("admin.role.*"),children:[],icon:null,visible:r("roles")},{label:"User Badges",href:route("admin.badge.index"),active:route().current("admin.badge.*"),children:[],icon:null,visible:r("badges")},{label:"Online Users",href:route("admin.session.index"),active:route().current("admin.session.*"),children:[],icon:null,visible:r("sessions")}],icon:we,visible:!0},{label:"News",href:route("admin.news.index"),active:route().current("admin.news.*"),children:[],icon:fe,visible:r("news")},{label:"Polls",href:route("admin.poll.index"),active:route().current("admin.poll.*"),children:[],icon:oe,visible:r("polls")},{label:"Downloads",href:route("admin.download.index"),active:route().current("admin.download.*"),children:[],icon:ne,visible:r("downloads")},{label:"Custom Pages",href:route("admin.custom-page.index"),active:route().current("admin.custom-page.*"),children:[],icon:he,visible:r("custom_pages")},{label:"Ask DB",href:route("admin.ask-db.index"),active:route().current("admin.ask-db.*"),children:[],icon:ce,visible:r("ask_db")},{label:"Applicatons",active:!1,children:[{label:"List Application Forms",href:route("admin.recruitment.index"),active:route().current("admin.recruitment.index"),children:[],icon:null,visible:l("read recruitments")},{label:"Open Requests",href:route("admin.recruitment-submission.index-open"),active:route().current("admin.recruitment-submission.index-open"),children:[],icon:null,visible:l("read recruitment_submissions")},{label:"Closed Requests",href:route("admin.recruitment-submission.index-closed"),active:route().current("admin.recruitment-submission.index-closed"),children:[],icon:null,visible:l("read recruitment_submissions")}],icon:ie,visible:r("recruitments")||r("recruitment_submissions")},{label:"Custom Forms",active:!1,children:[{label:"List Forms",href:route("admin.custom-form.index"),active:route().current("admin.custom-form.index"),children:[],icon:null,visible:l("read custom_forms")},{label:"Submissions",href:route("admin.custom-form-submission.index"),active:route().current("admin.custom-form-submission.index"),children:[],icon:null,visible:l("read custom_form_submissions")},{label:"Archived Submissions",href:route("admin.custom-form-submission.index-archived"),active:route().current("admin.custom-form-submission.index-archived"),children:[],icon:null,visible:l("read custom_form_submissions")}],icon:ue,visible:r("custom_forms")||r("custom_form_submissions")},{label:"Commands",active:!1,children:[{label:"Run Command",href:route("admin.command-queue.create"),active:route().current("admin.command-queue.create"),children:[],icon:null,visible:l("create command_queues")},{label:"Command History",href:route("admin.command-queue.index"),active:route().current("admin.command-queue.index"),children:[],icon:null,visible:l("read command_queues")}],icon:me,visible:r("command_queues")},{label:"Settings",href:"#",active:!1,children:[{label:"General",href:route("admin.setting.general.show"),active:route().current("admin.setting.general.show"),children:[],icon:null,visible:!0},{label:"Theme",href:route("admin.setting.theme.show"),active:route().current("admin.setting.theme.show"),children:[],icon:null,visible:!0},{label:"Plugin",href:route("admin.setting.plugin.show"),active:route().current("admin.setting.plugin.show"),children:[],icon:null,visible:!0},{label:"Player",href:route("admin.setting.player.show"),active:route().current("admin.setting.player.show"),children:[],icon:null,visible:!0},{label:"Navigation",href:route("admin.setting.navigation.show"),active:route().current("admin.setting.navigation.show"),children:[],icon:null,visible:!0},{label:"SEO",href:route("admin.setting.seo.show"),active:route().current("admin.setting.seo.show"),children:[],icon:null,visible:!0},{label:"Dangerzone",href:route("admin.setting.danger.show"),active:route().current("admin.setting.danger.show"),children:[],icon:null,visible:u("superadmin")}],icon:de,visible:r("settings")},{label:"Debug",href:"#",active:!1,children:[{label:"Failed Jobs",href:route("admin.failed-job.index"),active:route().current("admin.failed-job.index"),children:[],icon:null,visible:l("read failed_jobs")},{label:"Pulse",href:"/admin/pulse",active:!1,children:[],icon:null,visible:!0,newtab:!0},{label:"Telescope",href:"/telescope",active:!1,children:[],icon:null,visible:!0,newtab:!0}],icon:ae,visible:u("superadmin")}];return(c,s)=>(n(),o("div",{class:h(["min-h-screen fixed bg-white shadow dark:bg-cool-gray-800 z-10 duration-300",e.collapsed?"w-16":"w-64"])},[a("div",De,[a("div",{class:h(["px-4 mt-2 flex",e.collapsed?"justify-center":"justify-end"])},[a("button",{onClick:s[0]||(s[0]=Y(i=>c.$emit("toggleCollapse"),["prevent"]))},[S(b(se),{class:h(["h-6 w-6 p-0.5 text-gray-400 hover:text-gray-600 dark:text-gray-600 dark:hover:text-gray-400",e.collapsed?"-rotate-180":""])},null,8,["class"])])],2),a("nav",$e,[(n(),o(q,null,N(t,i=>S(Ae,{key:i.label,item:i,collapsed:e.collapsed},null,8,["item","collapsed"])),64))]),e.collapsed?f("",!0):(n(),o("div",je,_(c.__("Web Version:"))+" "+_(c.$page.props.webVersion||"unknown"),1))])],2))}},qe={__name:"AdminLayout",setup(e){let r=le("is-admin-sidebar-menu-collapsed",!1);function u(){r.value=!r.value}return(l,t)=>(n(),v(W,null,{default:k(()=>[S(ze,{collapsed:b(r),onToggleCollapse:u},null,8,["collapsed"]),a("main",{class:h([b(r)?"ml-16":"ml-64"])},[Z(l.$slots,"default")],2)]),_:3}))}};export{qe as _,ge as a,we as r}; diff --git a/public/build/default/assets/AfterCreateSteps-76869e30.js b/public/build/default/assets/AfterCreateSteps-76869e30.js deleted file mode 100644 index 8d84c6f31..000000000 --- a/public/build/default/assets/AfterCreateSteps-76869e30.js +++ /dev/null @@ -1,7 +0,0 @@ -import{_ as p}from"./AdminLayout-32c66dcb.js";import{o as l,d as c,a as e,l as n,c as h,w as i,b as a,u as _,t,f as s}from"./app-a74308ca.js";import"./AppLayout-3152d1d6.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Icon-21b2c206.js";import"./useAuthorizable-6eedd410.js";import"./use-resolve-button-type-072501d0.js";import"./open-closed-899a9696.js";import"./CloudArrowDownIcon-a2d92a40.js";import"./index-d1e58818.js";function f(o,r){return l(),c("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}const g={class:"py-12 px-10 max-w-4xl mx-auto"},m={class:"bg-white shadow rounded p-6 dark:bg-gray-800"},y={class:"flex flex-col items-center justify-center"},v={class:"text-2xl font-bold text-green-500"},w={class:"uppercase font-bold mt-3 dark:text-gray-200 text-gray-800"},b={class:"flex flex-col space-y-4 mt-6 prose-lg prose dark:prose-dark"},x={target:"_blank",class:"text-light-blue-400 hover:text-light-blue-600 whitespace-nowrap",href:"https://github.com/MineTrax/plugin/releases/latest"},k=e("kbd",null,"plugins/Minetrax/config.yml",-1),S=e("br",null,null,-1),q={class:"dark:bg-gray-900"},C={class:"flex justify-end mt-4"},K={__name:"AfterCreateSteps",props:{server:{type:Object,required:!0},apiKey:{type:String,required:!0},apiSecret:{type:String,required:!0},apiHost:{type:String,required:!0}},setup(o){return(r,j)=>{const d=n("app-head"),u=n("InertiaLink");return l(),h(p,null,{default:i(()=>[a(d,{title:r.__("Server Created Successfully!")},null,8,["title"]),e("div",g,[e("div",m,[e("div",y,[a(_(f),{class:"h-32 text-green-500","aria-hidden":"true"}),e("h1",v,t(r.__("Server Added Successfully!")),1),e("h1",w,t(r.__("Follow below steps to add the Plugin!")),1)]),e("div",b,[e("p",null,[s(t(r.__("Download latest version of the MineTrax.jar Plugin and upload it into 'plugins' folder of your server."))+" ",1),e("a",x,t(r.__("Click here to Download")),1)]),e("p",null,[s(t(r.__("Restart your server once so that the plugin can generate the config file inside"))+" ",1),k,s(". ")]),S,e("p",null,[s(t(r.__("Open the config file and update the following details in it as provided below"))+": ",1),e("pre",q,`enabled: true -api-host: `+t(o.apiHost)+` -api-key: `+t(o.apiKey)+` -api-secret: `+t(o.apiSecret)+` -server-id: `+t(o.server.id)+` -webquery-host: 0.0.0.0 -webquery-port: `+t(o.server.webquery_port),1)]),e("p",null,t(r.__("Restart your server again and you are all set!")),1)]),e("div",C,[a(u,{as:"a",class:"text-light-blue-400 hover:text-light-blue-600 whitespace-nowrap",href:r.route("admin.server.index")},{default:i(()=>[s(t(r.__("Go back to Server List")),1)]),_:1},8,["href"])])])])]),_:1})}}};export{K as default}; diff --git a/public/build/default/assets/AlertCard-cf41131c.js b/public/build/default/assets/AlertCard-cf41131c.js deleted file mode 100644 index 1b109eac2..000000000 --- a/public/build/default/assets/AlertCard-cf41131c.js +++ /dev/null @@ -1 +0,0 @@ -import{r as n}from"./XMarkIcon-bee9ca1f.js";import{o as s,d as r,a as e,R as l,n as a,b as i,u as c,e as g}from"./app-a74308ca.js";const u={class:"flex"},b={class:"py-1"},m=e("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z"},null,-1),h=[m],v={class:"font-bold"},f={class:"text-sm"},w={__name:"AlertCard",props:{borderColor:{type:String,default:"border-green-500"},textColor:{type:String,default:"text-green-500"},titleClass:{type:String,default:""},closeButton:{type:Boolean,default:!1}},emits:["close"],setup(t){return(o,d)=>(s(),r("div",{class:a(`mb-4 bg-white dark:bg-cool-gray-800 border-t-4 ${t.borderColor} rounded-b ${t.textColor} px-4 py-3 shadow relative`),role:"alert"},[e("div",u,[e("div",b,[l(o.$slots,"icon",{},()=>[(s(),r("svg",{class:a(`fill-current h-6 w-6 ${t.textColor} mr-4`),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},h,2))])]),e("div",{class:a(t.titleClass)},[e("div",v,[l(o.$slots,"default")]),e("div",f,[l(o.$slots,"body")])],2)]),t.closeButton?(s(),r("button",{key:0,class:"absolute rounded-full bg-white dark:bg-gray-800 border dark:border-gray-900 dark:hover:bg-gray-700 hover:bg-gray-100 p-1 -top-5 -right-3",onClick:d[0]||(d[0]=y=>o.$emit("close"))},[i(c(n),{class:"h-5 w-5"})])):g("",!0)],2))}};export{w as _}; diff --git a/public/build/default/assets/ApiTokenManager-fb8781b7.js b/public/build/default/assets/ApiTokenManager-fb8781b7.js deleted file mode 100644 index 79482ae3d..000000000 --- a/public/build/default/assets/ApiTokenManager-fb8781b7.js +++ /dev/null @@ -1 +0,0 @@ -import{T as h,r as b,o as i,d as r,b as t,w as e,a,e as v,f as n,u as l,F as $,g as x,n as A,t as k}from"./app-a74308ca.js";import{_ as N}from"./ActionMessage-8f3d2156.js";import{_ as j}from"./ActionSection-ac3ee188.js";import{_ as P}from"./Button-44b6efc0.js";import{_ as U}from"./ConfirmationModal-36f26ede.js";import{_ as J}from"./DangerButton-ca6d77f8.js";import{_ as T}from"./DialogModal-77cb0705.js";import{_ as L}from"./FormSection-8f0dc51f.js";import{_ as M}from"./Input-d38466ba.js";import{_ as w}from"./Checkbox-268f4b48.js";import{_ as z}from"./InputError-addffce2.js";import{_ as S}from"./Label-8a3c3db9.js";import{_ as C}from"./SecondaryButton-e0111c47.js";import{J as E}from"./SectionBorder-2f450813.js";import"./SectionTitle-2ef52e37.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Modal-460ae743.js";const Y={class:"col-span-6 sm:col-span-4"},q={key:0,class:"col-span-6"},G={class:"mt-2 grid grid-cols-1 md:grid-cols-2 gap-4"},H={class:"flex items-center"},K={class:"ml-2 text-sm text-gray-600"},O={key:0},Q={class:"mt-10 sm:mt-0"},R={class:"space-y-6"},W={class:"flex items-center"},X={key:0,class:"text-sm text-gray-400"},Z=["onClick"],ee=["onClick"],se=a("div",null," Please copy your new API token. For your security, it won't be shown again. ",-1),te={key:0,class:"mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500"},oe={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},ne={class:"flex items-center"},le={class:"ml-2 text-sm text-gray-600"},Ae={__name:"ApiTokenManager",props:{tokens:Array,availablePermissions:Array,defaultPermissions:Array},setup(c){const m=h({name:"",permissions:c.defaultPermissions}),d=h({permissions:[]}),y=h({}),g=b(!1),p=b(null),f=b(null),I=()=>{m.post(route("api-tokens.store"),{preserveScroll:!0,onSuccess:()=>{g.value=!0,m.reset()}})},F=u=>{d.permissions=u.abilities,p.value=u},V=()=>{d.put(route("api-tokens.update",p.value),{preserveScroll:!0,preserveState:!0,onSuccess:()=>p.value=null})},D=u=>{f.value=u},B=()=>{y.delete(route("api-tokens.destroy",f.value),{preserveScroll:!0,preserveState:!0,onSuccess:()=>f.value=null})};return(u,o)=>(i(),r("div",null,[t(L,{onSubmitted:I},{title:e(()=>[n(" Create API Token ")]),description:e(()=>[n(" API tokens allow third-party services to authenticate with our application on your behalf. ")]),form:e(()=>[a("div",Y,[t(S,{for:"name",value:"Name"}),t(M,{id:"name",modelValue:l(m).name,"onUpdate:modelValue":o[0]||(o[0]=s=>l(m).name=s),type:"text",class:"mt-1 block w-full",autofocus:""},null,8,["modelValue"]),t(z,{message:l(m).errors.name,class:"mt-2"},null,8,["message"])]),c.availablePermissions.length>0?(i(),r("div",q,[t(S,{for:"permissions",value:"Permissions"}),a("div",G,[(i(!0),r($,null,x(c.availablePermissions,s=>(i(),r("div",{key:s},[a("label",H,[t(w,{checked:l(m).permissions,"onUpdate:checked":o[1]||(o[1]=_=>l(m).permissions=_),value:s},null,8,["checked","value"]),a("span",K,k(s),1)])]))),128))])])):v("",!0)]),actions:e(()=>[t(N,{on:l(m).recentlySuccessful,class:"mr-3"},{default:e(()=>[n(" Created. ")]),_:1},8,["on"]),t(P,{class:A({"opacity-25":l(m).processing}),disabled:l(m).processing},{default:e(()=>[n(" Create ")]),_:1},8,["class","disabled"])]),_:1}),c.tokens.length>0?(i(),r("div",O,[t(E),a("div",Q,[t(j,null,{title:e(()=>[n(" Manage API Tokens ")]),description:e(()=>[n(" You may delete any of your existing tokens if they are no longer needed. ")]),content:e(()=>[a("div",R,[(i(!0),r($,null,x(c.tokens,s=>(i(),r("div",{key:s.id,class:"flex items-center justify-between"},[a("div",null,k(s.name),1),a("div",W,[s.last_used_ago?(i(),r("div",X," Last used "+k(s.last_used_ago),1)):v("",!0),c.availablePermissions.length>0?(i(),r("button",{key:1,class:"cursor-pointer ml-6 text-sm text-gray-400 underline",onClick:_=>F(s)}," Permissions ",8,Z)):v("",!0),a("button",{class:"cursor-pointer ml-6 text-sm text-red-500",onClick:_=>D(s)}," Delete ",8,ee)])]))),128))])]),_:1})])])):v("",!0),t(T,{show:g.value,onClose:o[3]||(o[3]=s=>g.value=!1)},{title:e(()=>[n(" API Token ")]),content:e(()=>[se,u.$page.props.jetstream.flash.token?(i(),r("div",te,k(u.$page.props.jetstream.flash.token),1)):v("",!0)]),footer:e(()=>[t(C,{onClick:o[2]||(o[2]=s=>g.value=!1)},{default:e(()=>[n(" Close ")]),_:1})]),_:1},8,["show"]),t(T,{show:p.value!=null,onClose:o[6]||(o[6]=s=>p.value=null)},{title:e(()=>[n(" API Token Permissions ")]),content:e(()=>[a("div",oe,[(i(!0),r($,null,x(c.availablePermissions,s=>(i(),r("div",{key:s},[a("label",ne,[t(w,{checked:l(d).permissions,"onUpdate:checked":o[4]||(o[4]=_=>l(d).permissions=_),value:s},null,8,["checked","value"]),a("span",le,k(s),1)])]))),128))])]),footer:e(()=>[t(C,{onClick:o[5]||(o[5]=s=>p.value=null)},{default:e(()=>[n(" Cancel ")]),_:1}),t(P,{class:A(["ml-3",{"opacity-25":l(d).processing}]),disabled:l(d).processing,onClick:V},{default:e(()=>[n(" Save ")]),_:1},8,["class","disabled"])]),_:1},8,["show"]),t(U,{show:f.value!=null,onClose:o[8]||(o[8]=s=>f.value=null)},{title:e(()=>[n(" Delete API Token ")]),content:e(()=>[n(" Are you sure you would like to delete this API token? ")]),footer:e(()=>[t(C,{onClick:o[7]||(o[7]=s=>f.value=null)},{default:e(()=>[n(" Cancel ")]),_:1}),t(J,{class:A(["ml-3",{"opacity-25":l(y).processing}]),disabled:l(y).processing,onClick:B},{default:e(()=>[n(" Delete ")]),_:1},8,["class","disabled"])]),_:1},8,["show"])]))}};export{Ae as default}; diff --git a/public/build/default/assets/AppLayout-3152d1d6.js b/public/build/default/assets/AppLayout-3152d1d6.js deleted file mode 100644 index 628a85401..000000000 --- a/public/build/default/assets/AppLayout-3152d1d6.js +++ /dev/null @@ -1,18 +0,0 @@ -import{r as jr,x as je,S as Xe,E as uu,o as p,d as y,n as te,a as f,e as W,t as k,i as Xa,l as X,R as Ce,c as B,w as F,U as it,q as Ba,j as De,v as du,b as x,F as ue,g as we,m as pt,A as _o,B as lu,J as Dn,u as _,V as mu,f as I,T as cu,_ as hu}from"./app-a74308ca.js";import{_ as Se}from"./_plugin-vue_export-helper-c27b6911.js";import{I as q}from"./Icon-21b2c206.js";import{u as fu}from"./useAuthorizable-6eedd410.js";const vu={class:"max-w-screen-xl mx-auto py-2 px-3 sm:px-6 lg:px-8"},gu={class:"flex items-center justify-between flex-wrap"},pu={class:"w-0 flex-1 flex items-center min-w-0"},bu={key:0,class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},yu=f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),wu=[yu],$u={key:1,class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},Pu=f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},null,-1),ku=[Pu],Mu={class:"ml-3 font-medium text-sm text-white truncate"},Wu={class:"shrink-0 sm:ml-3"},xu=f("svg",{class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1),_u=[xu],Du={__name:"Banner",setup(a){const e=jr(!0),t=je(()=>{var n;return((n=Xe().props.jetstream.flash)==null?void 0:n.bannerStyle)||"success"}),r=je(()=>{var n;return((n=Xe().props.jetstream.flash)==null?void 0:n.banner)||""});return uu(r,async()=>{e.value=!0}),(n,i)=>(p(),y("div",null,[e.value&&r.value?(p(),y("div",{key:0,class:te({"bg-indigo-500":t.value=="success","bg-red-700":t.value=="danger"})},[f("div",vu,[f("div",gu,[f("div",pu,[f("span",{class:te(["flex p-2 rounded-lg",{"bg-indigo-600":t.value=="success","bg-red-600":t.value=="danger"}])},[t.value=="success"?(p(),y("svg",bu,wu)):W("",!0),t.value=="danger"?(p(),y("svg",$u,ku)):W("",!0)],2),f("p",Mu,k(r.value),1)]),f("div",Wu,[f("button",{type:"button",class:te(["-mr-1 flex p-2 rounded-md focus:outline-none sm:-mr-2 transition",{"hover:bg-indigo-600 focus:bg-indigo-600":t.value=="success","hover:bg-red-600 focus:bg-red-600":t.value=="danger"}]),"aria-label":"Dismiss",onClick:i[0]||(i[0]=Xa(u=>e.value=!1,["prevent"]))},_u,2)])])])],2)):W("",!0)]))}},Cu={props:{toast:Object,popstate:String},data(){return{milliseconds:this.toast&&this.toast.milliseconds?this.toast.milliseconds:3e3,id:null}},watch:{toast:{deep:!0,handler(a,e){this.fireToast()}}},mounted(){this.fireToast()},methods:{fireToast(){if(!this.toast||sessionStorage.getItem("toast-"+this.popstate))return;this.milliseconds=this.toast.milliseconds??3e3;const a=this.toast.type==="danger"?"error":this.toast.type;Toast.fire({icon:a,title:this.toast.title,text:this.toast.body,timer:this.milliseconds}),sessionStorage.setItem("toast-"+this.popstate,"1")}}};function Tu(a,e,t,r,n,i){return null}const ju=Se(Cu,[["render",Tu]]),Au=["href"],Do={__name:"ResponsiveNavLink",props:{active:Boolean,href:String,as:String,openInNewTab:{type:Boolean,default:!1}},setup(a){const e=a,t=je(()=>e.active?"block pl-3 pr-4 py-2 border-l-4 border-light-blue-400 text-base font-medium text-light-blue-700 bg-light-blue-50 dark:bg-cool-gray-900 focus:outline-none focus:text-light-blue-800 focus:bg-light-blue-100 dark:focus:bg-cool-gray-900 focus:border-light-blue-700 transition duration-150 ease-in-out":"block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200 hover:bg-gray-50 dark:hover:bg-cool-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-800 dark:focus:text-gray-200 focus:bg-gray-50 dark:focus:bg-cool-gray-900 focus:border-gray-300 transition duration-150 ease-in-out");return(r,n)=>{const i=X("InertiaLink");return p(),y("div",null,[a.as=="button"?(p(),y("button",{key:0,class:te([t.value,"w-full text-left"])},[Ce(r.$slots,"default")],2)):a.as!="button"&&!a.openInNewTab?(p(),B(i,{key:1,href:a.href,class:te(t.value)},{default:F(()=>[Ce(r.$slots,"default")]),_:3},8,["href","class"])):(p(),y("a",{key:2,target:"_blank",href:a.href,class:te(t.value)},[Ce(r.$slots,"default")],10,Au))])}}};var Su=/\s/;function zu(a){for(var e=a.length;e--&&Su.test(a.charAt(e)););return e}var Eu=zu,Nu=Eu,Fu=/^\s+/;function Ru(a){return a&&a.slice(0,Nu(a)+1).replace(Fu,"")}var Lu=Ru;function Hu(a){var e=typeof a;return a!=null&&(e=="object"||e=="function")}var Ze=Hu,Ou=typeof it=="object"&&it&&it.Object===Object&&it,Co=Ou,Vu=Co,Iu=typeof self=="object"&&self&&self.Object===Object&&self,Xu=Vu||Iu||Function("return this")(),xe=Xu,Bu=xe,Gu=Bu.Symbol,Ga=Gu,Cn=Ga,To=Object.prototype,qu=To.hasOwnProperty,Yu=To.toString,za=Cn?Cn.toStringTag:void 0;function Uu(a){var e=qu.call(a,za),t=a[za];try{a[za]=void 0;var r=!0}catch{}var n=Yu.call(a);return r&&(e?a[za]=t:delete a[za]),n}var Qu=Uu,Ku=Object.prototype,Ju=Ku.toString;function Zu(a){return Ju.call(a)}var ed=Zu,Tn=Ga,ad=Qu,td=ed,rd="[object Null]",nd="[object Undefined]",jn=Tn?Tn.toStringTag:void 0;function id(a){return a==null?a===void 0?nd:rd:jn&&jn in Object(a)?ad(a):td(a)}var qa=id;function od(a){return a!=null&&typeof a=="object"}var Pa=od,sd=qa,ud=Pa,dd="[object Symbol]";function ld(a){return typeof a=="symbol"||ud(a)&&sd(a)==dd}var Dt=ld,md=Lu,An=Ze,cd=Dt,Sn=0/0,hd=/^[-+]0x[0-9a-f]+$/i,fd=/^0b[01]+$/i,vd=/^0o[0-7]+$/i,gd=parseInt;function pd(a){if(typeof a=="number")return a;if(cd(a))return Sn;if(An(a)){var e=typeof a.valueOf=="function"?a.valueOf():a;a=An(e)?e+"":e}if(typeof a!="string")return a===0?a:+a;a=md(a);var t=fd.test(a);return t||vd.test(a)?gd(a.slice(2),t?2:8):hd.test(a)?Sn:+a}var Ar=pd,bd=Ar,zn=1/0,yd=17976931348623157e292;function wd(a){if(!a)return a===0?a:0;if(a=bd(a),a===zn||a===-zn){var e=a<0?-1:1;return e*yd}return a===a?a:0}var $d=wd,Pd=$d;function kd(a){var e=Pd(a),t=e%1;return e===e?t?e-t:e:0}var Ya=kd,Md=Ya,Wd="Expected a function";function xd(a,e){if(typeof e!="function")throw new TypeError(Wd);return a=Md(a),function(){if(--a<1)return e.apply(this,arguments)}}var _d=xd;function Dd(a){return a}var Ua=Dd,Cd=qa,Td=Ze,jd="[object AsyncFunction]",Ad="[object Function]",Sd="[object GeneratorFunction]",zd="[object Proxy]";function Ed(a){if(!Td(a))return!1;var e=Cd(a);return e==Ad||e==Sd||e==jd||e==zd}var jo=Ed,Nd=xe,Fd=Nd["__core-js_shared__"],Rd=Fd,Ut=Rd,En=function(){var a=/[^.]+$/.exec(Ut&&Ut.keys&&Ut.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function Ld(a){return!!En&&En in a}var Hd=Ld,Od=Function.prototype,Vd=Od.toString;function Id(a){if(a!=null){try{return Vd.call(a)}catch{}try{return a+""}catch{}}return""}var Ao=Id,Xd=jo,Bd=Hd,Gd=Ze,qd=Ao,Yd=/[\\^$.*+?()[\]{}|]/g,Ud=/^\[object .+?Constructor\]$/,Qd=Function.prototype,Kd=Object.prototype,Jd=Qd.toString,Zd=Kd.hasOwnProperty,el=RegExp("^"+Jd.call(Zd).replace(Yd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function al(a){if(!Gd(a)||Bd(a))return!1;var e=Xd(a)?el:Ud;return e.test(qd(a))}var tl=al;function rl(a,e){return a==null?void 0:a[e]}var nl=rl,il=tl,ol=nl;function sl(a,e){var t=ol(a,e);return il(t)?t:void 0}var ma=sl,ul=ma,dl=xe,ll=ul(dl,"WeakMap"),So=ll,Nn=So,ml=Nn&&new Nn,zo=ml,cl=Ua,Fn=zo,hl=Fn?function(a,e){return Fn.set(a,e),a}:cl,Eo=hl,fl=Ze,Rn=Object.create,vl=function(){function a(){}return function(e){if(!fl(e))return{};if(Rn)return Rn(e);a.prototype=e;var t=new a;return a.prototype=void 0,t}}(),Sr=vl,gl=Sr,pl=Ze;function bl(a){return function(){var e=arguments;switch(e.length){case 0:return new a;case 1:return new a(e[0]);case 2:return new a(e[0],e[1]);case 3:return new a(e[0],e[1],e[2]);case 4:return new a(e[0],e[1],e[2],e[3]);case 5:return new a(e[0],e[1],e[2],e[3],e[4]);case 6:return new a(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new a(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=gl(a.prototype),r=a.apply(t,e);return pl(r)?r:t}}var Ct=bl,yl=Ct,wl=xe,$l=1;function Pl(a,e,t){var r=e&$l,n=yl(a);function i(){var u=this&&this!==wl&&this instanceof i?n:a;return u.apply(r?t:this,arguments)}return i}var kl=Pl;function Ml(a,e,t){switch(t.length){case 0:return a.call(e);case 1:return a.call(e,t[0]);case 2:return a.call(e,t[0],t[1]);case 3:return a.call(e,t[0],t[1],t[2])}return a.apply(e,t)}var Qa=Ml,Wl=Math.max;function xl(a,e,t,r){for(var n=-1,i=a.length,u=t.length,l=-1,m=e.length,c=Wl(i-u,0),h=Array(m+c),b=!r;++l0){if(++e>=fm)return arguments[0]}else e=0;return a.apply(void 0,arguments)}}var Oo=pm,bm=Eo,ym=Oo,wm=ym(bm),Vo=wm,$m=/\{\n\/\* \[wrapped with (.+)\] \*/,Pm=/,? & /;function km(a){var e=a.match($m);return e?e[1].split(Pm):[]}var Mm=km,Wm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function xm(a,e){var t=e.length;if(!t)return a;var r=t-1;return e[r]=(t>1?"& ":"")+e[r],e=e.join(t>2?", ":" "),a.replace(Wm,`{ -/* [wrapped with `+e+`] */ -`)}var _m=xm;function Dm(a){return function(){return a}}var Cm=Dm,Tm=ma,jm=function(){try{var a=Tm(Object,"defineProperty");return a({},"",{}),a}catch{}}(),Am=jm,Sm=Cm,Vn=Am,zm=Ua,Em=Vn?function(a,e){return Vn(a,"toString",{configurable:!0,enumerable:!1,value:Sm(e),writable:!0})}:zm,Nm=Em,Fm=Nm,Rm=Oo,Lm=Rm(Fm),Nr=Lm;function Hm(a,e){for(var t=-1,r=a==null?0:a.length;++t-1}var ac=ec,tc=Om,rc=ac,nc=1,ic=2,oc=8,sc=16,uc=32,dc=64,lc=128,mc=256,cc=512,hc=[["ary",lc],["bind",nc],["bindKey",ic],["curry",oc],["curryRight",sc],["flip",cc],["partial",uc],["partialRight",dc],["rearg",mc]];function fc(a,e){return tc(hc,function(t){var r="_."+t[0];e&t[1]&&!rc(a,r)&&a.push(r)}),a.sort()}var vc=fc,gc=Mm,pc=_m,bc=Nr,yc=vc;function wc(a,e,t){var r=e+"";return bc(a,pc(r,yc(gc(r),t)))}var Io=wc,$c=hm,Pc=Vo,kc=Io,Mc=1,Wc=2,xc=4,_c=8,In=32,Xn=64;function Dc(a,e,t,r,n,i,u,l,m,c){var h=e&_c,b=h?u:void 0,g=h?void 0:u,w=h?i:void 0,T=h?void 0:i;e|=h?In:Xn,e&=~(h?Xn:In),e&xc||(e&=~(Mc|Wc));var R=[a,e,n,w,b,T,g,l,m,c],H=t.apply(void 0,R);return $c(a)&&Pc(H,R),H.placeholder=r,kc(H,a,e)}var Xo=Dc;function Cc(a){var e=a;return e.placeholder}var ka=Cc,Tc=9007199254740991,jc=/^(?:0|[1-9]\d*)$/;function Ac(a,e){var t=typeof a;return e=e??Tc,!!e&&(t=="number"||t!="symbol"&&jc.test(a))&&a>-1&&a%1==0&&a1&&C.reverse(),h&&m0&&(t=e.apply(this,arguments)),a<=1&&(e=void 0),t}}var Yo=Rh,Lh=Qa,ai=Math.max;function Hh(a,e,t){return e=ai(e===void 0?a.length-1:e,0),function(){for(var r=arguments,n=-1,i=ai(r.length-e,0),u=Array(i);++n=e||O<0||b&&G>=i}function E(){var j=er();if(H(j))return C(j);l=setTimeout(E,R(j))}function C(j){return l=void 0,g&&r?w(j):(r=n=void 0,u)}function S(){l!==void 0&&clearTimeout(l),c=0,r=m=n=l=void 0}function N(){return l===void 0?u:C(er())}function L(){var j=er(),O=H(j);if(r=arguments,n=this,m=j,O){if(l===void 0)return T(m);if(b)return clearTimeout(l),l=setTimeout(E,e),w(m)}return l===void 0&&(l=setTimeout(E,e)),u}return L.cancel=S,L.flush=N,L}var Qo=wf,$f="Expected a function";function Pf(a,e,t){if(typeof a!="function")throw new TypeError($f);return setTimeout(function(){a.apply(void 0,t)},e)}var Ko=Pf,kf=Ko,Mf=Le,Wf=Mf(function(a,e){return kf(a,1,e)}),xf=Wf,_f=Ko,Df=Le,Cf=Ar,Tf=Df(function(a,e,t){return _f(a,Cf(e)||0,t)}),jf=Tf,Af=Be,Sf=512;function zf(a){return Af(a,Sf)}var Ef=zf,Nf=ma,Ff=Nf(Object,"create"),Tt=Ff,ri=Tt;function Rf(){this.__data__=ri?ri(null):{},this.size=0}var Lf=Rf;function Hf(a){var e=this.has(a)&&delete this.__data__[a];return this.size-=e?1:0,e}var Of=Hf,Vf=Tt,If="__lodash_hash_undefined__",Xf=Object.prototype,Bf=Xf.hasOwnProperty;function Gf(a){var e=this.__data__;if(Vf){var t=e[a];return t===If?void 0:t}return Bf.call(e,a)?e[a]:void 0}var qf=Gf,Yf=Tt,Uf=Object.prototype,Qf=Uf.hasOwnProperty;function Kf(a){var e=this.__data__;return Yf?e[a]!==void 0:Qf.call(e,a)}var Jf=Kf,Zf=Tt,ev="__lodash_hash_undefined__";function av(a,e){var t=this.__data__;return this.size+=this.has(a)?0:1,t[a]=Zf&&e===void 0?ev:e,this}var tv=av,rv=Lf,nv=Of,iv=qf,ov=Jf,sv=tv;function Ma(a){var e=-1,t=a==null?0:a.length;for(this.clear();++e-1}var Mv=kv,Wv=jt;function xv(a,e){var t=this.__data__,r=Wv(t,a);return r<0?(++this.size,t.push([a,e])):t[r][1]=e,this}var _v=xv,Dv=lv,Cv=bv,Tv=$v,jv=Mv,Av=_v;function Wa(a){var e=-1,t=a==null?0:a.length;for(this.clear();++e0&&t(l)?e>1?rs(l,e-1,t,r,n):Cg(n,l):r||(n[n.length]=l)}return n}var ns=rs,jg=At;function Ag(){this.__data__=new jg,this.size=0}var Sg=Ag;function zg(a){var e=this.__data__,t=e.delete(a);return this.size=e.size,t}var Eg=zg;function Ng(a){return this.__data__.get(a)}var Fg=Ng;function Rg(a){return this.__data__.has(a)}var Lg=Rg,Hg=At,Og=Vr,Vg=Ir,Ig=200;function Xg(a,e){var t=this.__data__;if(t instanceof Hg){var r=t.__data__;if(!Og||r.lengthl))return!1;var c=i.get(a),h=i.get(e);if(c&&h)return c==e&&h==a;var b=-1,g=!0,w=t&vp?new mp:void 0;for(i.set(a,e),i.set(e,a);++b-1&&a%1==0&&a<=sb}var qr=ub,db=qa,lb=qr,mb=Pa,cb="[object Arguments]",hb="[object Array]",fb="[object Boolean]",vb="[object Date]",gb="[object Error]",pb="[object Function]",bb="[object Map]",yb="[object Number]",wb="[object Object]",$b="[object RegExp]",Pb="[object Set]",kb="[object String]",Mb="[object WeakMap]",Wb="[object ArrayBuffer]",xb="[object DataView]",_b="[object Float32Array]",Db="[object Float64Array]",Cb="[object Int8Array]",Tb="[object Int16Array]",jb="[object Int32Array]",Ab="[object Uint8Array]",Sb="[object Uint8ClampedArray]",zb="[object Uint16Array]",Eb="[object Uint32Array]",K={};K[_b]=K[Db]=K[Cb]=K[Tb]=K[jb]=K[Ab]=K[Sb]=K[zb]=K[Eb]=!0;K[cb]=K[hb]=K[Wb]=K[fb]=K[xb]=K[vb]=K[gb]=K[pb]=K[bb]=K[yb]=K[wb]=K[$b]=K[Pb]=K[kb]=K[Mb]=!1;function Nb(a){return mb(a)&&lb(a.length)&&!!K[db(a)]}var Fb=Nb;function Rb(a){return function(e){return a(e)}}var us=Rb,kt={exports:{}};kt.exports;(function(a,e){var t=Co,r=e&&!e.nodeType&&e,n=r&&!0&&a&&!a.nodeType&&a,i=n&&n.exports===r,u=i&&t.process,l=function(){try{var m=n&&n.require&&n.require("util").types;return m||u&&u.binding&&u.binding("util")}catch{}}();a.exports=l})(kt,kt.exports);var Lb=kt.exports,Hb=Fb,Ob=us,ci=Lb,hi=ci&&ci.isTypedArray,Vb=hi?Ob(hi):Hb,ds=Vb,Ib=nb,Xb=Gr,Bb=ze,Gb=ss,qb=Fr,Yb=ds,Ub=Object.prototype,Qb=Ub.hasOwnProperty;function Kb(a,e){var t=Bb(a),r=!t&&Xb(a),n=!t&&!r&&Gb(a),i=!t&&!r&&!n&&Yb(a),u=t||r||n||i,l=u?Ib(a.length,String):[],m=l.length;for(var c in a)(e||Qb.call(a,c))&&!(u&&(c=="length"||n&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||qb(c,m)))&&l.push(c);return l}var Jb=Kb,Zb=Object.prototype;function ey(a){var e=a&&a.constructor,t=typeof e=="function"&&e.prototype||Zb;return a===t}var ay=ey;function ty(a,e){return function(t){return a(e(t))}}var ry=ty,ny=ry,iy=ny(Object.keys,Object),oy=iy,sy=ay,uy=oy,dy=Object.prototype,ly=dy.hasOwnProperty;function my(a){if(!sy(a))return uy(a);var e=[];for(var t in Object(a))ly.call(a,t)&&t!="constructor"&&e.push(t);return e}var cy=my,hy=jo,fy=qr;function vy(a){return a!=null&&fy(a.length)&&!hy(a)}var gy=vy,py=Jb,by=cy,yy=gy;function wy(a){return yy(a)?py(a):by(a)}var ls=wy,$y=Gp,Py=tb,ky=ls;function My(a){return $y(a,ky,Py)}var Wy=My,fi=Wy,xy=1,_y=Object.prototype,Dy=_y.hasOwnProperty;function Cy(a,e,t,r,n,i){var u=t&xy,l=fi(a),m=l.length,c=fi(e),h=c.length;if(m!=h&&!u)return!1;for(var b=m;b--;){var g=l[b];if(!(u?g in e:Dy.call(e,g)))return!1}var w=i.get(a),T=i.get(e);if(w&&T)return w==e&&T==a;var R=!0;i.set(a,e),i.set(e,a);for(var H=u;++bn?0:n+e),t=t>n?n:t,t<0&&(t+=n),n=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(n);++r=r?a:N$(a,e,t)}var R$=F$,L$=Qa,H$=Br,O$=Le,V$=R$,I$=Ya,X$="Expected a function",B$=Math.max;function G$(a,e){if(typeof a!="function")throw new TypeError(X$);return e=e==null?0:B$(I$(e),0),O$(function(t){var r=t[e],n=V$(t,0,e);return r&&H$(n,r),L$(a,this,n)})}var q$=G$,Y$=Qo,U$=Ze,Q$="Expected a function";function K$(a,e,t){var r=!0,n=!0;if(typeof a!="function")throw new TypeError(Q$);return U$(t)&&(r="leading"in t?!!t.leading:r,n="trailing"in t?!!t.trailing:n),Y$(a,e,{leading:r,maxWait:e,trailing:n})}var J$=K$,Z$=qo;function eP(a){return Z$(a,1)}var aP=eP,tP=Ua;function rP(a){return typeof a=="function"?a:tP}var nP=rP,iP=nP,oP=ys;function sP(a,e){return oP(iP(e),a)}var uP=sP,dP={after:_d,ary:qo,before:Yo,bind:Kh,bindKey:of,curry:df,curryRight:cf,debounce:Qo,defer:xf,delay:jf,flip:Ef,memoize:es,negate:lg,once:hg,overArgs:n$,partial:ys,partialRight:v$,rearg:D$,rest:S$,spread:q$,throttle:J$,unary:aP,wrap:uP};function lP(a,e){return p(),y("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"})])}function mP(a,e){return p(),y("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])}function cP(a,e){return p(),y("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.752 15.002A9.718 9.718 0 0118 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 003 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 009.002-5.998z"})])}function hP(a,e){return p(),y("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"})])}const fP={name:"Search",components:{Icon:q,MagnifyingGlassIcon:mP},data(){return{showResults:!1,loading:!1,searchString:"",usersList:[],playersList:[]}},created:function(){window.addEventListener("click",a=>{this.$el.contains(a.target)||(this.showResults=!1,this.searchString="")})},methods:{performSearch:dP.debounce(function(){this.searchString&&(this.showResults=!0,this.loading=!0,axios.get(route("search",{q:this.searchString})).then(a=>{this.usersList=a.data.users,this.playersList=a.data.players}).finally(()=>{this.loading=!1}))},200)}},vP={class:"relative mx-auto text-gray-600 dark:text-gray-400"},gP=["placeholder"],pP={type:"submit",class:"absolute right-0 top-0 mt-3 mr-4"},bP={key:0,id:"results",class:"absolute bg-white dark:bg-cool-gray-800 px-3 py-1 w-full rounded-md shadow-lg z-50"},yP={key:0,id:"loading",class:"text-center p-2"},wP={key:1,id:"users"},$P={class:"text-xs text-gray-400 dark:text-gray-300 font-extrabold"},PP={class:"flex flex-col"},kP={class:"flex"},MP=["src"],WP={class:"text-sm"},xP={class:"text-gray-700 dark:text-gray-300 font-bold"},_P={class:"text-gray-500 dark:text-gray-500"},DP={class:"flex"},CP=["title","src"],TP={key:0,id:"emptyusers",class:"italic"},jP={key:2,id:"players",class:"mt-5 pb-4"},AP={class:"text-xs text-gray-400 dark:text-gray-300 font-extrabold"},SP={class:"flex flex-col"},zP={class:"flex items-center"},EP=["src"],NP={class:"text-sm"},FP={class:"text-gray-700 dark:text-gray-300 font-bold"},RP={class:"flex space-x-2"},LP=["src","alt","title"],HP=["title","src"],OP={key:0,id:"emptyplayers",class:"italic"};function VP(a,e,t,r,n,i){const u=X("MagnifyingGlassIcon"),l=X("inertia-link"),m=X("icon"),c=Ba("tippy");return p(),y("div",vP,[f("form",{onSubmit:e[2]||(e[2]=Xa((...h)=>i.performSearch&&i.performSearch(...h),["prevent"]))},[De(f("input",{"onUpdate:modelValue":e[0]||(e[0]=h=>n.searchString=h),"aria-label":"search",class:te(["border-none bg-gray-200 dark:bg-cool-gray-900 h-10 px-5 pr-10 focus:w-80 rounded-full text-sm focus:outline-none focus:ring-0",{"w-80":n.showResults}]),type:"search",name:"search",placeholder:a.__("Search")+"..",autocomplete:"off",onInput:e[1]||(e[1]=(...h)=>i.performSearch&&i.performSearch(...h))},null,42,gP),[[du,n.searchString]]),f("button",pP,[x(u,{class:"text-gray-400 dark:text-gray-600 h-4 w-4 stroke-2"})])],32),n.showResults&&n.searchString?(p(),y("div",bP,[n.loading?(p(),y("div",yP,k(a.__("Loading"))+"... ",1)):W("",!0),n.loading?W("",!0):(p(),y("div",wP,[f("span",$P,k(a.__("USERS")),1),f("div",PP,[(p(!0),y(ue,null,we(n.usersList,h=>(p(),B(l,{id:"user",key:h.username,as:"a",href:a.route("user.public.get",h.username),class:"flex px-2 py-1 justify-between hover:bg-light-blue-100 dark:hover:bg-cool-gray-900 rounded cursor-pointer"},{default:F(()=>[f("div",kP,[f("img",{class:"mr-3 w-10 h-10 rounded-full",src:h.profile_photo_url,alt:"Image"},null,8,MP),f("div",WP,[f("p",xP,k(h.title),1),f("p",_P," @"+k(h.username),1)])]),f("div",DP,[De(f("img",{title:h.country.name,src:h.country.photo_path,alt:"",class:"h-8 w-8 -mt-0.5 focus:outline-none"},null,8,CP),[[c]])])]),_:2},1032,["href"]))),128))]),!n.usersList||n.usersList.length<=0?(p(),y("div",TP,k(a.__("No users found.")),1)):W("",!0)])),n.loading?W("",!0):(p(),y("div",jP,[f("span",AP,k(a.__("PLAYERS")),1),f("div",SP,[(p(!0),y(ue,null,we(n.playersList,h=>(p(),B(l,{id:"player",key:h.uuid,as:"a",href:a.route("player.show",h.uuid),class:"flex justify-between px-2 py-1 hover:bg-light-blue-100 dark:hover:bg-cool-gray-900 rounded cursor-pointer"},{default:F(()=>[f("div",zP,[f("img",{class:"mr-3 w-8 h-8",src:h.avatar_url,alt:"Avatar"},null,8,EP),f("div",NP,[f("p",FP,k(h.title),1)])]),f("div",RP,[De(x(m,{class:"w-8 h-8 focus:outline-none",name:`rating-${h.rating}`,content:h.rating},null,8,["name","content"]),[[pt,h.rating!=null],[c]]),De(f("img",{src:h.rank.photo_path,alt:h.rank.name,title:h.rank.name,class:"h-8 w-8 focus:outline-none"},null,8,LP),[[pt,h.rank.photo_path],[c]]),De(f("img",{title:h.country.name,src:h.country.photo_path,alt:"",class:"h-8 w-8 -mt-0.5 focus:outline-none"},null,8,HP),[[c]])])]),_:2},1032,["href"]))),128))]),!n.playersList||n.playersList.length<=0?(p(),y("div",OP,k(a.__("No players found.")),1)):W("",!0)]))])):W("",!0)])}const ws=Se(fP,[["render",VP]]),IP={name:"ColorThemeToggle",components:{MoonIcon:cP,SunIcon:hP},data(){return{colorMode:window.colorMode}},methods:{toggleTheme(){this.colorMode==="dark"?(this.colorMode="light",window.colorMode="light",localStorage.theme="light",document.documentElement.classList.add("light"),document.documentElement.classList.remove("dark")):(this.colorMode="dark",window.colorMode="dark",localStorage.theme="dark",document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light")),window.location.reload()}}},XP=["title"],BP=["title"];function GP(a,e,t,r,n,i){const u=X("MoonIcon"),l=X("SunIcon"),m=Ba("tippy");return p(),y("div",null,[f("button",{onClick:e[0]||(e[0]=(...c)=>i.toggleTheme&&i.toggleTheme(...c))},[n.colorMode==="dark"?De((p(),y("span",{key:0,title:a.__("Use Light Theme")},[x(u,{class:"w-5 h-5 text-gray-400 focus:outline-none stroke-2"})],8,XP)),[[m]]):De((p(),y("span",{key:1,title:a.__("Use Dark Theme")},[x(l,{class:"w-6 h-6 text-gray-400 focus:outline-none stroke-2"})],8,BP)),[[m]])])])}const $s=Se(IP,[["render",GP]]),qP={computed:{logo(){return window.colorMode==="light"?this.$page.props.generalSettings.site_header_logo_path_light:this.$page.props.generalSettings.site_header_logo_path_dark}}},YP=["src"];function UP(a,e,t,r,n,i){return p(),y("img",{src:i.logo,alt:"Site Header Logo",class:"logo"},null,8,YP)}const $r=Se(qP,[["render",UP]]),QP={class:"flex items-center flex-shrink-0"},KP={__name:"AppLogoMark",props:{canShowAdminSidebar:{type:Boolean,default:!1}},setup(a){return(e,t)=>{const r=X("InertiaLink"),n=Ba("tippy");return p(),y("div",QP,[x(r,{href:e.route("home")},{default:F(()=>[x($r,{class:"block w-auto h-9"})]),_:1},8,["href"]),a.canShowAdminSidebar&&!e.route().current("admin.*")?De((p(),B(r,{key:0,title:e.__("Administration Section"),"aria-label":"Open Menu",class:"ml-2 focus:outline-none",href:e.route("admin.dashboard")},{default:F(()=>[x(q,{name:"cog",class:"w-6 h-6 text-gray-400 dark:text-gray-500 hover:animate-spin"})]),_:1},8,["title","href"])),[[n]]):W("",!0)])}}},JP=["href"],Si={__name:"NavLink",props:{href:String,active:Boolean,openInNewTab:{type:Boolean,default:!1}},setup(a){const e=a,t=je(()=>e.active?"inline-flex items-center px-1 pt-1 border-b-2 border-light-blue-400 text-sm leading-5 text-gray-900 dark:text-gray-200 focus:outline-none focus:border-light-blue-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm leading-5 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 hover:border-gray-300 focus:outline-none focus:text-gray-700 dark:focus:text-gray-300 focus:border-gray-300 transition duration-150 ease-in-out");return(r,n)=>{const i=X("InertiaLink");return a.openInNewTab?(p(),y("a",{key:1,target:"_blank",href:a.href,class:te(t.value)},[Ce(r.$slots,"default")],10,JP)):(p(),B(i,{key:0,href:a.href,class:te(t.value)},{default:F(()=>[Ce(r.$slots,"default")]),_:3},8,["href","class"]))}}},ZP={class:"relative"},Et={__name:"Dropdown",props:{align:{type:String,default:"right"},width:{type:String,default:"48"},contentClasses:{type:Array,default:()=>["py-1","bg-white"]}},setup(a){const e=a;let t=jr(!1);const r=u=>{t.value&&u.key==="Escape"&&(t.value=!1)};_o(()=>document.addEventListener("keydown",r)),lu(()=>document.removeEventListener("keydown",r));const n=je(()=>({48:"w-48"})[e.width.toString()]),i=je(()=>e.align==="left"?"origin-top-left left-0":e.align==="right"?"origin-top-right right-0":"origin-top");return(u,l)=>(p(),y("div",ZP,[f("div",{onClick:l[0]||(l[0]=m=>Dn(t)?t.value=!_(t):t=!_(t))},[Ce(u.$slots,"trigger")]),De(f("div",{class:"fixed inset-0 z-40",onClick:l[1]||(l[1]=m=>Dn(t)?t.value=!1:t=!1)},null,512),[[pt,_(t)]]),x(mu,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:F(()=>[De(f("div",{class:te(["absolute z-50 mt-2 rounded-md shadow-lg",[n.value,i.value]]),style:{display:"none"}},[f("div",{class:te(["rounded-md ring-1 ring-black ring-opacity-5 dark:bg-gray-800",a.contentClasses])},[Ce(u.$slots,"content")],2)],2),[[pt,_(t)]])]),_:3})]))}},ek=["href"],Qe={__name:"DropdownLink",props:{href:String,as:String,btnClass:String,openInNewTab:{type:Boolean,default:!1}},setup(a){return(e,t)=>{const r=X("InertiaLink");return p(),y("div",null,[a.as=="button"?(p(),y("button",{key:0,type:"submit",class:te(["block w-full px-4 py-2 text-sm leading-5 text-gray-700 dark:text-gray-400 text-left hover:bg-cool-gray-100 dark:hover:bg-cool-gray-900 focus:outline-none focus:bg-cool-gray-100 dark:focus:bg-cool-gray-900 transition duration-150 ease-in-out",a.btnClass])},[Ce(e.$slots,"default")],2)):a.as!="button"&&!a.openInNewTab?(p(),B(r,{key:1,href:a.href,class:te(["block px-4 py-2 text-sm leading-5 text-gray-700 dark:text-gray-400 hover:bg-cool-gray-100 dark:hover:bg-cool-gray-900 focus:outline-none focus:bg-cool-gray-100 dark:focus:bg-cool-gray-900 transition duration-150 ease-in-out",a.btnClass])},{default:F(()=>[Ce(e.$slots,"default")]),_:3},8,["href","class"])):(p(),y("a",{key:2,target:"_blank",href:a.href,class:te(["block px-4 py-2 text-sm leading-5 text-gray-700 dark:text-gray-400 hover:bg-cool-gray-100 dark:hover:bg-cool-gray-900 focus:outline-none focus:bg-cool-gray-100 dark:focus:bg-cool-gray-900 transition duration-150 ease-in-out",a.btnClass])},[Ce(e.$slots,"default")],10,ek))])}}},ak={components:{JetDropdown:Et,JetDropdownLink:Qe},props:{title:{type:String,required:!0},items:{type:Array,required:!0}}},tk={class:"inline-flex items-center px-1 pt-1 text-sm leading-5 text-gray-500 transition duration-150 ease-in-out border-b-2 border-transparent hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300"},rk={class:"inline-flex rounded-md"},nk={type:"button",class:"inline-flex items-center py-2 text-sm font-semibold leading-4 text-gray-500 transition duration-150 ease-in-out border border-transparent rounded-md dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 focus:outline-none"},ik=f("svg",{class:"ml-2 -mr-0.5 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[f("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1);function ok(a,e,t,r,n,i){const u=X("jet-dropdown-link"),l=X("jet-dropdown");return p(),y("div",tk,[x(l,{align:"right",width:"48"},{trigger:F(()=>[f("span",rk,[f("button",nk,[I(k(a.__(t.title))+" ",1),ik])])]),content:F(()=>[(p(!0),y(ue,null,we(t.items,m=>(p(),B(u,{key:m.key,class:"text-sm",href:a.route(m.route,m.route_params??null),"open-in-new-tab":m.is_open_in_new_tab},{default:F(()=>[I(k(a.__(m.title)),1)]),_:2},1032,["href","open-in-new-tab"]))),128))]),_:1})])}const sk=Se(ak,[["render",ok]]);function uk(a,e){for(var t in e)e.hasOwnProperty(t)&&a[t]===void 0&&(a[t]=e[t]);return a}function dk(a,e,t){var r;return a.length>e&&(t==null?(t="…",r=3):r=t.length,a=a.substring(0,e-r)+t),a}function zi(a,e){if(Array.prototype.indexOf)return a.indexOf(e);for(var t=0,r=a.length;t=0;t--)e(a[t])===!0&&a.splice(t,1)}function lk(a,e){if(!e.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var t=[],r=0,n;n=e.exec(a);)t.push(a.substring(r,n.index)),t.push(n[0]),r=n.index+n[0].length;return t.push(a.substring(r)),t}function Ps(a){throw new Error("Unhandled case for value: '".concat(a,"'"))}var Pr=function(){function a(e){e===void 0&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return a.prototype.setTagName=function(e){return this.tagName=e,this},a.prototype.getTagName=function(){return this.tagName||""},a.prototype.setAttr=function(e,t){var r=this.getAttrs();return r[e]=t,this},a.prototype.getAttr=function(e){return this.getAttrs()[e]},a.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},a.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},a.prototype.setClass=function(e){return this.setAttr("class",e)},a.prototype.addClass=function(e){for(var t=this.getClass(),r=this.whitespaceRegex,n=t?t.split(r):[],i=e.split(r),u;u=i.shift();)zi(n,u)===-1&&n.push(u);return this.getAttrs().class=n.join(" "),this},a.prototype.removeClass=function(e){for(var t=this.getClass(),r=this.whitespaceRegex,n=t?t.split(r):[],i=e.split(r),u;n.length&&(u=i.shift());){var l=zi(n,u);l!==-1&&n.splice(l,1)}return this.getAttrs().class=n.join(" "),this},a.prototype.getClass=function(){return this.getAttrs().class||""},a.prototype.hasClass=function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},a.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},a.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},a.prototype.getInnerHTML=function(){return this.innerHTML||""},a.prototype.getInnerHtml=function(){return this.getInnerHTML()},a.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return t=t?" "+t:"",["<",e,t,">",this.getInnerHtml(),""].join("")},a.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+'="'+e[r]+'"');return t.join(" ")},a}();function mk(a,e,t){var r,n;t==null?(t="…",n=3,r=8):(n=t.length,r=t.length);var i=function(C){var S={},N=C,L=N.match(/^([a-z]+):\/\//i);return L&&(S.scheme=L[1],N=N.substr(L[0].length)),L=N.match(/^(.*?)(?=(\?|#|\/|$))/i),L&&(S.host=L[1],N=N.substr(L[0].length)),L=N.match(/^\/(.*?)(?=(\?|#|$))/i),L&&(S.path=L[1],N=N.substr(L[0].length)),L=N.match(/^\?(.*?)(?=(#|$))/i),L&&(S.query=L[1],N=N.substr(L[0].length)),L=N.match(/^#(.*?)$/i),L&&(S.fragment=L[1]),S},u=function(C){var S="";return C.scheme&&C.host&&(S+=C.scheme+"://"),C.host&&(S+=C.host),C.path&&(S+="/"+C.path),C.query&&(S+="?"+C.query),C.fragment&&(S+="#"+C.fragment),S},l=function(C,S){var N=S/2,L=Math.ceil(N),j=-1*Math.floor(N),O="";return j<0&&(O=C.substr(j)),C.substr(0,L)+t+O};if(a.length<=e)return a;var m=e-n,c=i(a);if(c.query){var h=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);h&&(c.query=c.query.substr(0,h[1].length),a=u(c))}if(a.length<=e||(c.host&&(c.host=c.host.replace(/^www\./,""),a=u(c)),a.length<=e))return a;var b="";if(c.host&&(b+=c.host),b.length>=m)return c.host.length==e?(c.host.substr(0,e-n)+t).substr(0,m+r):l(b,m).substr(0,m+r);var g="";if(c.path&&(g+="/"+c.path),c.query&&(g+="?"+c.query),g)if((b+g).length>=m){if((b+g).length==e)return(b+g).substr(0,e);var w=m-b.length;return(b+l(g,w)).substr(0,m+r)}else b+=g;if(c.fragment){var T="#"+c.fragment;if((b+T).length>=m){if((b+T).length==e)return(b+T).substr(0,e);var R=m-b.length;return(b+l(T,R)).substr(0,m+r)}else b+=T}if(c.scheme&&c.host){var H=c.scheme+"://";if((b+H).length0&&(E=b.substr(-1*Math.floor(m/2))),(b.substr(0,Math.ceil(m/2))+t+E).substr(0,m+r)}function ck(a,e,t){if(a.length<=e)return a;var r,n;t==null?(t="…",r=8,n=3):(r=t.length,n=t.length);var i=e-n,u="";return i>0&&(u=a.substr(-1*Math.floor(i/2))),(a.substr(0,Math.ceil(i/2))+t+u).substr(0,i+r)}function hk(a,e,t){return dk(a,e,t)}var Ei=function(){function a(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return a.prototype.build=function(e){return new Pr({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},a.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},r=this.createCssClass(e);return r&&(t.class=r),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length-1},a.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),r=t&&t[0].toLowerCase();return r!=="javascript:"&&r!=="vbscript:"},a.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!!e&&(!t||!this.hasFullProtocolRegex.test(t))&&e.indexOf(".")===-1},a.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return e&&t?!this.hasFullProtocolRegex.test(t)&&!this.hasWordCharAfterProtocolRegex.test(e):!1},a.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,a.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,a.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+Ds+"]"),a.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,a}(),Wk=function(){var a=/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/,e=/(?:www\.)/,t=new RegExp("[/?#](?:["+Z+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+Z+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?");return new RegExp(["(?:","(",a.source,ir(2),")","|","(","(//)?",e.source,ir(6),")","|","(","(//)?",ir(10)+"\\.",Ts.source,"(?![-"+yk+"])",")",")","(?::[0-9]+)?","(?:"+t.source+")?"].join(""),"gi")}(),xk=new RegExp("["+Z+"]"),Ri=function(a){He(e,a);function e(t){var r=a.call(this,t)||this;return r.stripPrefix={scheme:!0,www:!0},r.stripTrailingSlash=!0,r.decodePercentEncoding=!0,r.matcherRegex=Wk,r.wordCharRegExp=xk,r.stripPrefix=t.stripPrefix,r.stripTrailingSlash=t.stripTrailingSlash,r.decodePercentEncoding=t.decodePercentEncoding,r}return e.prototype.parseMatches=function(t){for(var r=this.matcherRegex,n=this.stripPrefix,i=this.stripTrailingSlash,u=this.decodePercentEncoding,l=this.tagBuilder,m=[],c,h=function(){var g=c[0],w=c[1],T=c[4],R=c[5],H=c[9],E=c.index,C=R||H,S=t.charAt(E-1);if(!Mk.isValid(g,w)||E>0&&S==="@"||E>0&&C&&b.wordCharRegExp.test(S))return"continue";if(/\?$/.test(g)&&(g=g.substr(0,g.length-1)),b.matchHasUnbalancedClosingParen(g))g=g.substr(0,g.length-1);else{var N=b.matchHasInvalidCharAfterTld(g,w);N>-1&&(g=g.substr(0,N))}var L=["http://","https://"].find(function(A){return!!w&&w.indexOf(A)!==-1});if(L){var j=g.indexOf(L);g=g.substr(j),w=w.substr(j),E=E+j}var O=w?"scheme":T?"www":"tld",G=!!w;m.push(new _s({tagBuilder:l,matchedText:g,offset:E,urlMatchType:O,url:g,protocolUrlMatch:G,protocolRelativeMatch:!!C,stripPrefix:n,stripTrailingSlash:i,decodePercentEncoding:u}))},b=this;(c=r.exec(t))!==null;)h();return m},e.prototype.matchHasUnbalancedClosingParen=function(t){var r=t.charAt(t.length-1),n;if(r===")")n="(";else if(r==="]")n="[";else if(r==="}")n="{";else return!1;for(var i=0,u=0,l=t.length-1;u"?(g=new Fe(ae(ae({},g),{name:ie()})),Y()):!rr.test($)&&!fk.test($)&&$!==":"&&Pe()}function E($){$===">"?Pe():rr.test($)?h=3:Pe()}function C($){ia.test($)||($==="/"?h=12:$===">"?Y():$==="<"?ke():$==="="||nr.test($)||gk.test($)?Pe():h=5)}function S($){ia.test($)?h=6:$==="/"?h=12:$==="="?h=7:$===">"?Y():$==="<"?ke():nr.test($)&&Pe()}function N($){ia.test($)||($==="/"?h=12:$==="="?h=7:$===">"?Y():$==="<"?ke():nr.test($)?Pe():h=5)}function L($){ia.test($)||($==='"'?h=8:$==="'"?h=9:/[>=`]/.test($)?Pe():$==="<"?ke():h=10)}function j($){$==='"'&&(h=11)}function O($){$==="'"&&(h=11)}function G($){ia.test($)?h=4:$===">"?Y():$==="<"&&ke()}function A($){ia.test($)?h=4:$==="/"?h=12:$===">"?Y():$==="<"?ke():(h=4,Za())}function ee($){$===">"?(g=new Fe(ae(ae({},g),{isClosing:!0})),Y()):h=4}function Ee($){a.substr(m,2)==="--"?(m+=2,g=new Fe(ae(ae({},g),{type:"comment"})),h=14):a.substr(m,7).toUpperCase()==="DOCTYPE"?(m+=7,g=new Fe(ae(ae({},g),{type:"doctype"})),h=20):Pe()}function Ne($){$==="-"?h=15:$===">"?Pe():h=16}function le($){$==="-"?h=18:$===">"?Pe():h=16}function Oe($){$==="-"&&(h=17)}function ne($){$==="-"?h=18:h=16}function _e($){$===">"?Y():$==="!"?h=19:$==="-"||(h=16)}function Ge($){$==="-"?h=17:$===">"?Y():h=16}function Nt($){$===">"?Y():$==="<"&&ke()}function Pe(){h=0,g=l}function ke(){h=1,g=new Fe({idx:m})}function Y(){var $=a.slice(b,g.idx);$&&n($,b),g.type==="comment"?i(g.idx):g.type==="doctype"?u(g.idx):(g.isOpening&&t(g.name,g.idx),g.isClosing&&r(g.name,g.idx)),Pe(),b=m+1}function Ja(){var $=a.slice(b,m);n($,b),b=m+1}function ie(){var $=g.idx+(g.isClosing?2:1);return a.slice($,m).toLowerCase()}function Za(){m--}}var Fe=function(){function a(e){e===void 0&&(e={}),this.idx=e.idx!==void 0?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing}return a}(),Rk=function(){function a(e){e===void 0&&(e={}),this.version=a.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(e.urls),this.email=typeof e.email=="boolean"?e.email:this.email,this.phone=typeof e.phone=="boolean"?e.phone:this.phone,this.hashtag=e.hashtag||this.hashtag,this.mention=e.mention||this.mention,this.newWindow=typeof e.newWindow=="boolean"?e.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(e.stripPrefix),this.stripTrailingSlash=typeof e.stripTrailingSlash=="boolean"?e.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=typeof e.decodePercentEncoding=="boolean"?e.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=e.sanitizeHtml||!1;var t=this.mention;if(t!==!1&&["twitter","instagram","soundcloud","tiktok"].indexOf(t)===-1)throw new Error("invalid `mention` cfg '".concat(t,"' - see docs"));var r=this.hashtag;if(r!==!1&&["twitter","facebook","instagram","tiktok"].indexOf(r)===-1)throw new Error("invalid `hashtag` cfg '".concat(r,"' - see docs"));this.truncate=this.normalizeTruncateCfg(e.truncate),this.className=e.className||this.className,this.replaceFn=e.replaceFn||this.replaceFn,this.context=e.context||this}return a.link=function(e,t){var r=new a(t);return r.link(e)},a.parse=function(e,t){var r=new a(t);return r.parse(e)},a.prototype.normalizeUrlsCfg=function(e){return e==null&&(e=!0),typeof e=="boolean"?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:typeof e.schemeMatches=="boolean"?e.schemeMatches:!0,wwwMatches:typeof e.wwwMatches=="boolean"?e.wwwMatches:!0,tldMatches:typeof e.tldMatches=="boolean"?e.tldMatches:!0}},a.prototype.normalizeStripPrefixCfg=function(e){return e==null&&(e=!0),typeof e=="boolean"?{scheme:e,www:e}:{scheme:typeof e.scheme=="boolean"?e.scheme:!0,www:typeof e.www=="boolean"?e.www:!0}},a.prototype.normalizeTruncateCfg=function(e){return typeof e=="number"?{length:e,location:"end"}:uk(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},a.prototype.parse=function(e){var t=this,r=["a","style","script"],n=0,i=[];return Fk(e,{onOpenTag:function(u){r.indexOf(u)>=0&&n++},onText:function(u,l){if(n===0){var m=/( | |<|<|>|>|"|"|')/gi,c=lk(u,m),h=l;c.forEach(function(b,g){if(g%2===0){var w=t.parseText(b,h);i.push.apply(i,w)}h+=b.length})}},onCloseTag:function(u){r.indexOf(u)>=0&&(n=Math.max(n-1,0))},onComment:function(u){},onDoctype:function(u){}}),i=this.compactMatches(i),i=this.removeUnwantedMatches(i),i},a.prototype.compactMatches=function(e){e.sort(function(m,c){return m.getOffset()-c.getOffset()});for(var t=0;ti?t:t+1;e.splice(l,1);continue}if(e[t+1].getOffset()/g,">"));for(var t=this.parse(e),r=[],n=0,i=0,u=t.length;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ct(a,e,t){return Lk()?ct=Reflect.construct:ct=function(n,i,u){var l=[null];l.push.apply(l,i);var m=Function.bind.apply(n,l),c=new m;return u&&Mr(c,u.prototype),c},ct.apply(null,arguments)}function Te(a){return Hk(a)||Ok(a)||Vk(a)||Ik()}function Hk(a){if(Array.isArray(a))return Wr(a)}function Ok(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Vk(a,e){if(a){if(typeof a=="string")return Wr(a,e);var t=Object.prototype.toString.call(a).slice(8,-1);if(t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set")return Array.from(a);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Wr(a,e)}}function Wr(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,r=new Array(e);t1?t-1:0),n=1;n/gm),nM=Re(/^data-[\-\w.\u00B7-\uFFFF]/),iM=Re(/^aria-[\-\w]+$/),oM=Re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sM=Re(/^(?:\w+script|data):/i),uM=Re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dM=Re(/^html$/i),lM=function(){return typeof window>"u"?null:window},mM=function(e,t){if(Ke(e)!=="object"||typeof e.createPolicy!="function")return null;var r=null,n="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(n)&&(r=t.currentScript.getAttribute(n));var i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:function(l){return l},createScriptURL:function(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function As(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lM(),e=function(v){return As(v)};if(e.version="2.3.10",e.removed=[],!a||!a.document||a.document.nodeType!==9)return e.isSupported=!1,e;var t=a.document,r=a.document,n=a.DocumentFragment,i=a.HTMLTemplateElement,u=a.Node,l=a.Element,m=a.NodeFilter,c=a.NamedNodeMap,h=c===void 0?a.NamedNodeMap||a.MozNamedAttrMap:c,b=a.HTMLFormElement,g=a.DOMParser,w=a.trustedTypes,T=l.prototype,R=dt(T,"cloneNode"),H=dt(T,"nextSibling"),E=dt(T,"childNodes"),C=dt(T,"parentNode");if(typeof i=="function"){var S=r.createElement("template");S.content&&S.content.ownerDocument&&(r=S.content.ownerDocument)}var N=mM(w,t),L=N?N.createHTML(""):"",j=r,O=j.implementation,G=j.createNodeIterator,A=j.createDocumentFragment,ee=j.getElementsByTagName,Ee=t.importNode,Ne={};try{Ne=oa(r).documentMode?r.documentMode:{}}catch{}var le={};e.isSupported=typeof C=="function"&&O&&typeof O.createHTMLDocument<"u"&&Ne!==9;var Oe=tM,ne=rM,_e=nM,Ge=iM,Nt=sM,Pe=uM,ke=oM,Y=null,Ja=V({},[].concat(Te(Xi),Te(sr),Te(ur),Te(dr),Te(Bi))),ie=null,Za=V({},[].concat(Te(Gi),Te(lr),Te(qi),Te(lt))),$=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ja=null,Ft=null,ln=!0,Rt=!0,mn=!1,fa=!1,ra=!1,Lt=!1,Ht=!1,va=!1,et=!1,at=!1,cn=!0,Ot=!0,Aa=!1,ga={},pa=null,hn=V({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),fn=null,vn=V({},["audio","video","img","source","image","track"]),Vt=null,gn=V({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),It="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",qe="http://www.w3.org/1999/xhtml",tt=qe,Bt=!1,ba,au=["application/xhtml+xml","text/html"],tu="text/html",se,ya=null,ru=r.createElement("form"),pn=function(v){return v instanceof RegExp||v instanceof Function},Gt=function(v){ya&&ya===v||((!v||Ke(v)!=="object")&&(v={}),v=oa(v),ba=au.indexOf(v.PARSER_MEDIA_TYPE)===-1?ba=tu:ba=v.PARSER_MEDIA_TYPE,se=ba==="application/xhtml+xml"?function(P){return P}:ht,Y="ALLOWED_TAGS"in v?V({},v.ALLOWED_TAGS,se):Ja,ie="ALLOWED_ATTR"in v?V({},v.ALLOWED_ATTR,se):Za,Vt="ADD_URI_SAFE_ATTR"in v?V(oa(gn),v.ADD_URI_SAFE_ATTR,se):gn,fn="ADD_DATA_URI_TAGS"in v?V(oa(vn),v.ADD_DATA_URI_TAGS,se):vn,pa="FORBID_CONTENTS"in v?V({},v.FORBID_CONTENTS,se):hn,ja="FORBID_TAGS"in v?V({},v.FORBID_TAGS,se):{},Ft="FORBID_ATTR"in v?V({},v.FORBID_ATTR,se):{},ga="USE_PROFILES"in v?v.USE_PROFILES:!1,ln=v.ALLOW_ARIA_ATTR!==!1,Rt=v.ALLOW_DATA_ATTR!==!1,mn=v.ALLOW_UNKNOWN_PROTOCOLS||!1,fa=v.SAFE_FOR_TEMPLATES||!1,ra=v.WHOLE_DOCUMENT||!1,va=v.RETURN_DOM||!1,et=v.RETURN_DOM_FRAGMENT||!1,at=v.RETURN_TRUSTED_TYPE||!1,Ht=v.FORCE_BODY||!1,cn=v.SANITIZE_DOM!==!1,Ot=v.KEEP_CONTENT!==!1,Aa=v.IN_PLACE||!1,ke=v.ALLOWED_URI_REGEXP||ke,tt=v.NAMESPACE||qe,v.CUSTOM_ELEMENT_HANDLING&&pn(v.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=v.CUSTOM_ELEMENT_HANDLING.tagNameCheck),v.CUSTOM_ELEMENT_HANDLING&&pn(v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=v.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),v.CUSTOM_ELEMENT_HANDLING&&typeof v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=v.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fa&&(Rt=!1),et&&(va=!0),ga&&(Y=V({},Te(Bi)),ie=[],ga.html===!0&&(V(Y,Xi),V(ie,Gi)),ga.svg===!0&&(V(Y,sr),V(ie,lr),V(ie,lt)),ga.svgFilters===!0&&(V(Y,ur),V(ie,lr),V(ie,lt)),ga.mathMl===!0&&(V(Y,dr),V(ie,qi),V(ie,lt))),v.ADD_TAGS&&(Y===Ja&&(Y=oa(Y)),V(Y,v.ADD_TAGS,se)),v.ADD_ATTR&&(ie===Za&&(ie=oa(ie)),V(ie,v.ADD_ATTR,se)),v.ADD_URI_SAFE_ATTR&&V(Vt,v.ADD_URI_SAFE_ATTR,se),v.FORBID_CONTENTS&&(pa===hn&&(pa=oa(pa)),V(pa,v.FORBID_CONTENTS,se)),Ot&&(Y["#text"]=!0),ra&&V(Y,["html","head","body"]),Y.table&&(V(Y,["tbody"]),delete ja.tbody),$e&&$e(v),ya=v)},bn=V({},["mi","mo","mn","ms","mtext"]),yn=V({},["foreignobject","desc","title","annotation-xml"]),nu=V({},["title","style","font","a","script"]),rt=V({},sr);V(rt,ur),V(rt,eM);var qt=V({},dr);V(qt,aM);var iu=function(v){var P=C(v);(!P||!P.tagName)&&(P={namespaceURI:qe,tagName:"template"});var D=ht(v.tagName),U=ht(P.tagName);return v.namespaceURI===Xt?P.namespaceURI===qe?D==="svg":P.namespaceURI===It?D==="svg"&&(U==="annotation-xml"||bn[U]):!!rt[D]:v.namespaceURI===It?P.namespaceURI===qe?D==="math":P.namespaceURI===Xt?D==="math"&&yn[U]:!!qt[D]:v.namespaceURI===qe?P.namespaceURI===Xt&&!yn[U]||P.namespaceURI===It&&!bn[U]?!1:!qt[D]&&(nu[D]||!rt[D]):!1},Ve=function(v){Na(e.removed,{element:v});try{v.parentNode.removeChild(v)}catch{try{v.outerHTML=L}catch{v.remove()}}},wn=function(v,P){try{Na(e.removed,{attribute:P.getAttributeNode(v),from:P})}catch{Na(e.removed,{attribute:null,from:P})}if(P.removeAttribute(v),v==="is"&&!ie[v])if(va||et)try{Ve(P)}catch{}else try{P.setAttribute(v,"")}catch{}},$n=function(v){var P,D;if(Ht)v=""+v;else{var U=Qk(v,/^[\r\n\t ]+/);D=U&&U[0]}ba==="application/xhtml+xml"&&(v=''+v+"");var Me=N?N.createHTML(v):v;if(tt===qe)try{P=new g().parseFromString(Me,ba)}catch{}if(!P||!P.documentElement){P=O.createDocument(tt,"template",null);try{P.documentElement.innerHTML=Bt?"":Me}catch{}}var me=P.body||P.documentElement;return v&&D&&me.insertBefore(r.createTextNode(D),me.childNodes[0]||null),tt===qe?ee.call(P,ra?"html":"body")[0]:ra?P.documentElement:me},Pn=function(v){return G.call(v.ownerDocument||v,v,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT,null,!1)},ou=function(v){return v instanceof b&&(typeof v.nodeName!="string"||typeof v.textContent!="string"||typeof v.removeChild!="function"||!(v.attributes instanceof h)||typeof v.removeAttribute!="function"||typeof v.setAttribute!="function"||typeof v.namespaceURI!="string"||typeof v.insertBefore!="function")},Sa=function(v){return Ke(u)==="object"?v instanceof u:v&&Ke(v)==="object"&&typeof v.nodeType=="number"&&typeof v.nodeName=="string"},Ie=function(v,P,D){le[v]&&Uk(le[v],function(U){U.call(e,P,D,ya)})},kn=function(v){var P;if(Ie("beforeSanitizeElements",v,null),ou(v)||he(/[\u0080-\uFFFF]/,v.nodeName))return Ve(v),!0;var D=se(v.nodeName);if(Ie("uponSanitizeElement",v,{tagName:D,allowedTags:Y}),v.hasChildNodes()&&!Sa(v.firstElementChild)&&(!Sa(v.content)||!Sa(v.content.firstElementChild))&&he(/<[/\w]/g,v.innerHTML)&&he(/<[/\w]/g,v.textContent)||D==="select"&&he(/